*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;background:#0b1018;color:#f7f2e8}
a{text-decoration:none;color:inherit}
.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 20% 10%,rgba(218,168,83,.35),transparent 28%),linear-gradient(135deg,#07090d,#151b25 55%,#0b0f15)}
.login-card{width:min(430px,calc(100vw - 34px));padding:38px;border-radius:28px;background:rgba(15,21,31,.9);border:1px solid rgba(255,255,255,.12);box-shadow:0 28px 80px rgba(0,0,0,.45)}
.login-logo{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,#f8db91,#b77c29);color:#241504;font-size:24px;font-weight:900;margin-bottom:20px}
.login-card h1{margin:0 0 8px;font-size:30px}.login-card p{margin:0 0 24px;color:#aab4c3}
.login-card label{display:block;margin:14px 0 8px;color:#d4dbe6}.login-card input{width:100%;height:50px;border-radius:15px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;padding:0 15px;font-size:16px;outline:none}
.login-card button{width:100%;height:52px;border:0;border-radius:16px;margin-top:22px;background:linear-gradient(135deg,#f8db91,#b77c29);color:#241504;font-weight:900;font-size:17px}
.tips{margin-top:16px;color:#8490a0;font-size:13px;line-height:1.6}
.alert{padding:13px 15px;border-radius:14px;margin-bottom:14px}.alert.error{color:#ffd6d6;background:rgba(255,77,77,.15);border:1px solid rgba(255,77,77,.25)}.alert.ok{color:#c7ffdf;background:rgba(78,214,141,.14);border:1px solid rgba(78,214,141,.25)}

.app{min-height:100vh;display:flex}
.side{width:250px;min-height:100vh;position:sticky;top:0;padding:22px;background:linear-gradient(180deg,#111824,#090d13);border-right:1px solid rgba(255,255,255,.08)}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.brand-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#f8db91,#b77c29);color:#241504;font-weight:900;font-size:22px}
.brand strong{display:block;font-size:18px}.brand span{display:block;color:#8d98a8;font-size:12px;margin-top:3px}
.nav{display:grid;gap:8px}.nav a{padding:13px 14px;border-radius:14px;color:#aeb8c8}
.nav a.active,.nav a:hover{color:#fff;background:rgba(218,168,83,.13);border:1px solid rgba(218,168,83,.22)}
.side-user{position:absolute;left:22px;right:22px;bottom:22px;display:flex;justify-content:space-between;color:#9ba6b7}.side-user a{color:#f2c46f}

.main{flex:1;padding:28px}
.top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:22px}
.top h1{margin:0;font-size:30px}.top p{margin:8px 0 0;color:#909aaa}
.top-links{display:flex;gap:10px}
.btn{display:inline-flex;align-items:center;height:42px;padding:0 16px;border-radius:13px;font-weight:800}
.btn.ghost{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.04);color:#d7deea}
.btn.gold{background:linear-gradient(135deg,#f8db91,#b77c29);color:#241504}

.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.stat,.panel,.module-card,.clock-module{border:1px solid rgba(255,255,255,.09);background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.03));border-radius:22px;box-shadow:0 20px 50px rgba(0,0,0,.18)}
.stat{padding:20px}.stat span,.stat em{display:block;color:#9ba6b7;font-style:normal}.stat strong{display:block;font-size:32px;margin:8px 0;color:#fff}

.module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.module-card{display:block;padding:22px;min-height:150px}
.module-card b{display:inline-flex;padding:6px 10px;border-radius:999px;color:#f2c46f;background:rgba(218,168,83,.13);font-size:13px}
.module-card h2{margin:16px 0 8px;font-size:22px}
.module-card p{color:#a6b1c0;line-height:1.6;margin:0}

.panel{padding:20px;margin-bottom:16px}
.panel-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;margin-bottom:16px}
.panel-title h2{margin:0}.panel-title span{color:#909aaa;font-size:13px}

.card-grid,.room-grid-v2{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.hand-card,.room-tile{padding:18px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.1)}
.hand-card h3,.room-tile strong{display:block;margin:0;font-size:28px}
.hand-card p,.room-tile span{display:block;color:#cfd7e4;margin:8px 0}
.hand-card button,.hand-card a{display:inline-flex;border:0;border-radius:12px;padding:9px 12px;background:linear-gradient(135deg,#f8db91,#b77c29);color:#241504;font-weight:900}
.room-tile em{display:inline-flex;color:#f2c46f;font-style:normal}
.room-tile.selected{border-color:rgba(248,216,137,.55);background:rgba(218,168,83,.13)}

.room-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.empty{padding:40px;text-align:center;color:#a6b1c0}.empty h2{color:#fff}
.console-steps{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.console-steps div{padding:16px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.console-steps b{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(218,168,83,.18);color:#f2c46f}
.console-steps h3{margin:10px 0 6px}.console-steps p{color:#a6b1c0;margin:0;line-height:1.5}
.notice{margin-top:16px;padding:14px;border-radius:16px;color:#f2c46f;background:rgba(218,168,83,.12);border:1px solid rgba(218,168,83,.22)}

.clock-board{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.clock-left{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.clock-module{padding:20px;min-height:160px}
.clock-module p{color:#a6b1c0;line-height:1.6}
.clock-module.pending{border-color:rgba(248,216,137,.28)}
.clock-module.assigned{border-color:rgba(89,155,255,.28)}
.clock-module.serving{border-color:rgba(78,214,141,.24)}
.clock-module.warning{border-color:rgba(255,99,99,.3)}
.queue-list{display:grid;gap:10px}
.queue-card{display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;padding:14px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.queue-card b{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(218,168,83,.15);color:#f2c46f}
.queue-card strong,.queue-card span{display:block}.queue-card span{color:#9ba6b7;font-size:13px;margin-top:4px}.queue-card em{color:#f2c46f;font-style:normal;font-size:13px}

.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;min-width:800px}
.table th,.table td{padding:13px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;color:#d9e0ec}
.table th{color:#95a1b2;background:rgba(255,255,255,.035)}
.tag{display:inline-flex;padding:5px 9px;border-radius:999px;color:#f2c46f;background:rgba(218,168,83,.13)}
.perm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.perm-item{padding:14px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.perm-item b,.perm-item span,.perm-item em{display:block}.perm-item b{color:#f2c46f}.perm-item em{color:#7f8a99;font-style:normal;font-size:12px;margin-top:6px}

@media(max-width:980px){
    .app{display:block}
    .side{position:static;width:100%;min-height:auto}
    .side-user{position:static;margin-top:18px}
    .main{padding:18px}
    .top,.room-layout,.clock-board{display:block}
    .stat-grid{grid-template-columns:repeat(2,1fr)}
    .clock-left{grid-template-columns:1fr}
    .panel{margin-top:16px}
}
@media(max-width:560px){
    .stat-grid,.console-steps{grid-template-columns:1fr}
    .top-links{margin-top:12px}
    .top h1{font-size:24px}
}

/* SUYANG_UI2_SIMPLE_NAV */
.mobile-top,
.bottom-nav {
    display: none;
}

.mobile-hero {
    display: none;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.quick-card {
    display: block;
    min-height: 118px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.045);
}

.quick-card b {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-size: 12px;
}

.quick-card strong {
    display: block;
    margin-top: 12px;
    font-size: 20px;
}

.quick-card span {
    display: block;
    margin-top: 7px;
    color: #a6b1c0;
    line-height: 1.45;
    font-size: 14px;
}

.quick-card.soft b {
    color: #f2c46f;
    background: rgba(218,168,83,.13);
    border: 1px solid rgba(218,168,83,.22);
}

.stat-grid.compact .stat {
    padding: 16px;
}

.stat-grid.compact .stat strong {
    font-size: 28px;
}

@media(max-width:980px) {
    body {
        padding-bottom: 74px;
    }

    .side {
        display: none;
    }

    .mobile-top {
        position: sticky;
        top: 0;
        z-index: 50;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        background: rgba(10,15,23,.94);
        border-bottom: 1px solid rgba(255,255,255,.08);
        backdrop-filter: blur(16px);
    }

    .mobile-top strong,
    .mobile-top span {
        display: block;
    }

    .mobile-top strong {
        font-size: 18px;
    }

    .mobile-top span {
        color: #9ba6b7;
        font-size: 13px;
        margin-top: 2px;
    }

    .mobile-top a {
        color: #f2c46f;
        font-weight: 800;
    }

    .main {
        padding: 16px;
    }

    .top {
        display: none;
    }

    .mobile-hero {
        display: block;
        margin-bottom: 14px;
        padding: 18px;
        border-radius: 22px;
        background:
            radial-gradient(circle at 20% 10%, rgba(218,168,83,.20), transparent 45%),
            rgba(255,255,255,.045);
        border: 1px solid rgba(255,255,255,.08);
    }

    .mobile-hero h2 {
        margin: 0 0 6px;
        font-size: 24px;
    }

    .mobile-hero p {
        margin: 0;
        color: #a6b1c0;
        line-height: 1.5;
    }

    .stat-grid,
    .stat-grid.compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 12px;
    }

    .stat-grid .stat {
        padding: 14px;
        border-radius: 18px;
    }

    .stat span {
        font-size: 13px;
    }

    .stat strong,
    .stat-grid.compact .stat strong {
        font-size: 25px;
        margin: 6px 0 2px;
    }

    .stat em {
        font-size: 12px;
    }

    .panel {
        padding: 16px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .panel-title {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .panel-title h2 {
        font-size: 20px;
    }

    .panel-title span {
        display: none;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quick-card {
        min-height: 108px;
        padding: 14px;
        border-radius: 18px;
    }

    .quick-card strong {
        margin-top: 10px;
        font-size: 18px;
    }

    .quick-card span {
        font-size: 12px;
        line-height: 1.35;
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 4px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: rgba(10,15,23,.96);
        border-top: 1px solid rgba(255,255,255,.08);
        backdrop-filter: blur(16px);
    }

    .bottom-nav a {
        display: grid;
        place-items: center;
        min-height: 44px;
        border-radius: 14px;
        color: #aeb8c8;
        font-size: 13px;
        font-weight: 700;
    }

    .bottom-nav a:hover {
        color: #241504;
        background: linear-gradient(135deg,#f8db91,#b77c29);
    }
}

@media(max-width:420px) {
    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-card {
        padding: 13px;
    }

    .quick-card strong {
        font-size: 17px;
    }
}

/* SUYANG_UI3_BACK */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #8f9aaa;
    font-size: 14px;
}

.breadcrumb button {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 7px 12px;
    color: #f2c46f;
    background: rgba(218,168,83,.10);
    cursor: pointer;
}

.breadcrumb a {
    color: #d7deea;
}

.breadcrumb em {
    color: #f2c46f;
    font-style: normal;
}

.real-button {
    border: 1px solid rgba(255,255,255,.13);
    cursor: pointer;
    font-family: inherit;
}

.mobile-back {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    min-height: 38px;
    padding: 0 12px;
    color: #f2c46f;
    background: rgba(218,168,83,.10);
    font-weight: 800;
}

.mobile-title {
    flex: 1;
    padding: 0 12px;
}

.mobile-home {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: #241504 !important;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
}

@media(max-width:980px) {
    .mobile-top {
        gap: 6px;
    }

    .mobile-top strong {
        font-size: 16px;
    }

    .mobile-top span {
        font-size: 12px;
    }

    .breadcrumb {
        display: none;
    }
}

/* SUYANG_V22_CARD_ROOM_BIND */
.room-layout-v22 {
    grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
}

.room-console-panel {
    min-height: 520px;
}

.room-status-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(248,216,137,.22);
    background: rgba(218,168,83,.08);
}

.room-status-card b,
.room-status-card strong,
.room-status-card span,
.room-status-card em {
    display: block;
}

.room-status-card b {
    font-size: 34px;
    color: #fff;
}

.room-status-card strong {
    margin-top: 6px;
    color: #f2c46f;
    font-size: 20px;
}

.room-status-card span,
.room-status-card em {
    margin-top: 6px;
    color: #a6b1c0;
    font-style: normal;
}

.console-block {
    margin-top: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
}

.console-block h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.console-block p {
    margin: 0 0 14px;
    color: #a6b1c0;
    line-height: 1.6;
}

.bind-form {
    display: grid;
    gap: 14px;
}

.bind-form label {
    display: grid;
    gap: 8px;
    color: #d5deea;
}

.bind-form select {
    width: 100%;
    min-height: 48px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    background: #151b25;
    padding: 0 14px;
    outline: none;
}

.real-submit {
    border: 0;
    cursor: pointer;
    justify-content: center;
}

.inline-btn {
    margin-top: 8px;
}

.entry-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.entry-info-grid div,
.next-actions div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.entry-info-grid span,
.entry-info-grid strong {
    display: block;
}

.entry-info-grid span {
    color: #9ba6b7;
    margin-bottom: 6px;
    font-size: 13px;
}

.entry-info-grid strong {
    color: #fff;
}

.next-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.next-actions b,
.next-actions span {
    display: block;
}

.next-actions b {
    color: #f2c46f;
    margin-bottom: 6px;
}

.next-actions span {
    color: #a6b1c0;
    font-size: 13px;
    line-height: 1.5;
}

.empty-line {
    padding: 14px;
    border-radius: 14px;
    color: #9ba6b7;
    background: rgba(255,255,255,.035);
}

.mini-list {
    display: grid;
    gap: 10px;
}

.mini-list div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
}

.mini-list strong,
.mini-list span {
    display: block;
}

.mini-list span {
    color: #9ba6b7;
    margin-top: 5px;
}

.room-status-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.room-status-actions form {
    margin: 0;
}

.card-action-form {
    margin: 0;
}

.inline-form {
    margin: 0;
    display: inline;
}

.small-danger,
.small-link {
    min-height: 30px;
    border: 1px solid rgba(255,99,99,.25);
    border-radius: 10px;
    padding: 6px 10px;
    color: #ffb3a9;
    background: rgba(255,99,99,.1);
    cursor: pointer;
}

.small-link {
    display: inline-flex;
    border-color: rgba(218,168,83,.22);
    color: #f2c46f;
    background: rgba(218,168,83,.1);
}

.hand-card.status-free {
    border-color: rgba(78,214,141,.24);
}

.hand-card.status-issued {
    border-color: rgba(248,216,137,.36);
}

.hand-card.status-in_room,
.hand-card.status-serving {
    border-color: rgba(89,155,255,.32);
}

.room-tile.status-free {
    border-color: rgba(78,214,141,.24);
}

.room-tile.status-in_use,
.room-tile.status-waiting_start {
    border-color: rgba(248,216,137,.34);
}

.room-tile.status-serving {
    border-color: rgba(89,155,255,.36);
}

.room-tile.status-checkout {
    border-color: rgba(255,180,90,.38);
}

@media(max-width:980px) {
    .room-layout-v22 {
        display: block;
    }

    .room-status-card,
    .entry-info-grid,
    .next-actions {
        grid-template-columns: 1fr;
    }

    .room-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-console-panel {
        min-height: auto;
    }
}

/* SUYANG_V23_CALL_CLOCK_WORKER */
.room-tile-rich small,
.room-tile-rich i {
    display: block;
    margin-top: 6px;
    color: #9ba6b7;
    font-style: normal;
    font-size: 12px;
    line-height: 1.35;
}

.room-tile-rich em {
    display: block;
    margin-top: 8px;
    color: #f2c46f;
    font-style: normal;
    font-size: 12px;
}

.call-form {
    display: grid;
    gap: 13px;
}

.call-form label {
    display: grid;
    gap: 8px;
    color: #d5deea;
}

.call-form select {
    width: 100%;
    min-height: 48px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    background: #151b25;
    padding: 0 14px;
    outline: none;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.check-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px;
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.check-list input {
    width: 18px;
    height: 18px;
}

.call-list {
    display: grid;
    gap: 10px;
}

.call-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.call-row strong,
.call-row span {
    display: block;
}

.call-row span {
    color: #9ba6b7;
    margin-top: 5px;
    font-size: 13px;
}

.call-row em {
    color: #8f9aaa;
    font-style: normal;
    font-size: 12px;
}

.call-row.status-reserved {
    border-color: rgba(176,123,255,.28);
}

.call-row.status-waiting_start,
.call-row.status-assigned {
    border-color: rgba(89,155,255,.32);
}

.call-row.status-serving {
    border-color: rgba(78,214,141,.28);
}

.clock-board-v23 .clock-left {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clock-module.reserved {
    border-color: rgba(176,123,255,.28);
}

.clock-task {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 10px;
}

.clock-task b,
.clock-task strong,
.clock-task span {
    display: block;
}

.clock-task b {
    color: #f2c46f;
    margin-bottom: 5px;
}

.clock-task span {
    color: #9ba6b7;
    margin-top: 5px;
    font-size: 13px;
}

.clock-task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clock-task-actions form {
    margin: 0;
}

.clock-task-actions button,
.worker-task button {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
    cursor: pointer;
}

.clock-task-actions em {
    color: #9ba6b7;
    font-style: normal;
    font-size: 12px;
}

.worker-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.worker-summary div {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.worker-summary span,
.worker-summary strong {
    display: block;
}

.worker-summary span {
    color: #9ba6b7;
    margin-bottom: 6px;
}

.worker-task {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 10px;
}

.worker-task strong,
.worker-task span {
    display: block;
}

.worker-task span {
    color: #9ba6b7;
    margin-top: 5px;
    font-size: 13px;
}

.worker-task.serving {
    border-color: rgba(78,214,141,.28);
}

.worker-task.reserved {
    border-color: rgba(176,123,255,.28);
}

.worker-task em {
    color: #f2c46f;
    font-style: normal;
    font-size: 13px;
}

@media(max-width:980px) {
    .clock-board-v23 .clock-left,
    .worker-summary {
        grid-template-columns: 1fr;
    }

    .clock-task,
    .worker-task,
    .call-row {
        grid-template-columns: 1fr;
    }

    .clock-task-actions {
        justify-content: flex-start;
    }
}

/* SUYANG_V24_QUEUE */
.clock-board-v24 {
    grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr);
}

.clock-right {
    display: grid;
    gap: 16px;
    align-content: start;
}

.queue-card-click {
    color: inherit;
}

.queue-card-click.selected {
    border-color: rgba(248,216,137,.55);
    background: rgba(218,168,83,.13);
}

.queue-card.status-free {
    border-color: rgba(78,214,141,.24);
}

.queue-card.status-assigned {
    border-color: rgba(89,155,255,.32);
}

.queue-card.status-working {
    border-color: rgba(248,216,137,.36);
}

.queue-card.status-rest,
.queue-card.status-leave,
.queue-card.status-locked,
.queue-card.status-stopped {
    opacity: .82;
    border-color: rgba(160,160,180,.22);
}

.worker-mini-info {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.worker-mini-info div {
    padding: 13px;
    border-radius: 15px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.worker-mini-info span,
.worker-mini-info strong {
    display: block;
}

.worker-mini-info span {
    color: #9ba6b7;
    font-size: 12px;
    margin-bottom: 5px;
}

.worker-mini-info strong {
    color: #fff;
}

.danger-notice {
    color: #ffb3a9;
    background: rgba(255,99,99,.10);
    border-color: rgba(255,99,99,.22);
}

.queue-op-form {
    display: grid;
    gap: 12px;
}

.queue-op-form label {
    display: grid;
    gap: 7px;
    color: #d5deea;
    font-size: 14px;
}

.queue-op-form input,
.queue-op-form select {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    background: #151b25;
    padding: 0 12px;
    outline: none;
}

.op-group {
    padding: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
}

.op-group h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #f2c46f;
}

.op-buttons {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
}

.op-buttons button,
.op-inline button {
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
    cursor: pointer;
}

.op-inline {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 8px;
    margin-bottom: 8px;
}

.op-inline:last-child {
    margin-bottom: 0;
}

.queue-log-list {
    display: grid;
    gap: 9px;
}

.queue-log-list div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
}

.queue-log-list strong,
.queue-log-list span,
.queue-log-list em {
    display: block;
}

.queue-log-list strong {
    color: #f2c46f;
}

.queue-log-list span {
    color: #d5deea;
    margin-top: 5px;
    font-size: 13px;
}

.queue-log-list em {
    color: #8f9aaa;
    margin-top: 5px;
    font-style: normal;
    font-size: 12px;
}

@media(max-width:980px) {
    .clock-board-v24 {
        display: block;
    }

    .clock-right {
        margin-top: 16px;
    }

    .worker-mini-info {
        grid-template-columns: 1fr;
    }

    .op-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

/* SUYANG_V241_GLOBAL_COMPACT */
.clock-summary-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.clock-summary-row div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.clock-summary-row span,
.clock-summary-row strong {
    display: block;
}

.clock-summary-row span {
    color: #9ba6b7;
    font-size: 13px;
}

.clock-summary-row strong {
    font-size: 28px;
    margin-top: 5px;
    color: #fff;
}

.clock-workgrid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.clock-module.priority {
    min-height: 260px;
    max-height: 520px;
    overflow: auto;
}

.clock-task.compact {
    padding: 12px;
    border-radius: 15px;
}

.queue-list.compact {
    grid-template-columns: 1fr;
}

.queue-list.compact .queue-card {
    padding: 11px;
}

.queue-list.compact .queue-card b {
    width: 30px;
    height: 30px;
}

.drawer-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.52);
    display: flex;
    justify-content: flex-end;
}

.worker-drawer-modal {
    width: min(480px, 100vw);
    height: 100vh;
    overflow: auto;
    padding: 20px;
    background: #0f151f;
    border-left: 1px solid rgba(248,216,137,.28);
    box-shadow: -20px 0 60px rgba(0,0,0,.42);
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.drawer-head h2 {
    margin: 0;
    font-size: 26px;
}

.drawer-head p {
    margin: 6px 0 0;
    color: #9ba6b7;
}

.drawer-head a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 12px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.tech-grid .panel:first-child {
    grid-column: 1 / -1;
}

.tech-head {
    margin-bottom: 14px;
}

.worker-summary {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid {
    grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
}

.hand-card,
.room-tile {
    padding: 14px;
    border-radius: 18px;
}

.hand-card h3,
.room-tile strong {
    font-size: 24px;
}

.room-tile-rich small,
.room-tile-rich em,
.room-tile-rich i {
    font-size: 11px;
}

.console-block {
    padding: 14px;
    border-radius: 18px;
}

.console-block h3 {
    font-size: 18px;
}

.panel {
    padding: 16px;
}

.panel-title {
    margin-bottom: 12px;
}

@media(max-width:980px) {
    .clock-summary-row {
        grid-template-columns: repeat(4,1fr);
        gap: 8px;
    }

    .clock-summary-row div {
        padding: 10px;
        border-radius: 15px;
    }

    .clock-summary-row span {
        font-size: 11px;
    }

    .clock-summary-row strong {
        font-size: 22px;
    }

    .clock-workgrid,
    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .clock-module.priority {
        min-height: 210px;
        max-height: 430px;
        padding: 13px;
    }

    .clock-module.priority .panel-title h2 {
        font-size: 18px;
    }

    .clock-task.compact {
        grid-template-columns: 1fr;
    }

    .clock-task-actions button,
    .worker-task button {
        width: 100%;
    }

    .drawer-mask {
        justify-content: center;
        align-items: flex-end;
    }

    .worker-drawer-modal {
        width: 100vw;
        height: 88vh;
        border-left: 0;
        border-top: 1px solid rgba(248,216,137,.28);
        border-radius: 24px 24px 0 0;
    }

    .card-grid,
    .room-grid-v2 {
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
    }

    .hand-card,
    .room-tile {
        padding: 13px;
    }

    .hand-card h3,
    .room-tile strong {
        font-size: 23px;
    }

    .console-block {
        padding: 13px;
    }

    .worker-summary {
        grid-template-columns: repeat(3,1fr);
    }
}

@media(max-width:520px) {
    .clock-workgrid,
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }

    .clock-module.priority {
        max-height: 360px;
    }

    .clock-task b,
    .clock-task strong,
    .clock-task span {
        font-size: 12px;
    }

    .clock-task-actions button {
        min-height: 38px;
        font-size: 12px;
    }

    .worker-summary {
        grid-template-columns: 1fr;
    }
}

/* SUYANG_V242_FULLSCREEN_MODULES */
.panel-title a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: #f2c46f;
    background: rgba(218,168,83,.11);
    border: 1px solid rgba(218,168,83,.20);
    font-size: 13px;
    font-weight: 800;
}

.more-card-link {
    display: block;
    margin-top: 10px;
    padding: 11px;
    border-radius: 14px;
    color: #f2c46f;
    background: rgba(218,168,83,.08);
    border: 1px solid rgba(218,168,83,.18);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.clock-task small {
    display: block;
    margin-top: 5px;
    color: #7f8a99;
    font-size: 12px;
}

.fullscreen-head {
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 10%, rgba(218,168,83,.18), transparent 45%),
        rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.fullscreen-head h2 {
    margin: 12px 0 6px;
    font-size: 28px;
}

.fullscreen-head p {
    margin: 0;
    color: #a6b1c0;
    line-height: 1.5;
}

.back-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
}

.fullscreen-panel {
    min-height: 60vh;
}

.fullscreen-panel .clock-task {
    grid-template-columns: 1fr auto;
}

.fullscreen-workers {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.module-click-card {
    position: relative;
}

.module-click-card .panel-title {
    align-items: center;
}

@media(max-width:980px) {
    .fullscreen-head {
        padding: 15px;
        border-radius: 20px;
    }

    .fullscreen-head h2 {
        font-size: 23px;
    }

    .fullscreen-panel {
        min-height: 65vh;
    }

    .fullscreen-panel .clock-task {
        grid-template-columns: 1fr;
    }

    .fullscreen-workers {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .panel-title a {
        min-height: 30px;
        padding: 0 9px;
        font-size: 12px;
    }
}

@media(max-width:520px) {
    .fullscreen-workers {
        grid-template-columns: 1fr 1fr;
    }
}

/* SUYANG_V243_ROOM_DRAWER */
.room-main-panel {
    min-height: 70vh;
}

.room-grid-drawer {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.room-drawer-mask {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(0,0,0,.52);
    display: flex;
    justify-content: flex-end;
}

.room-drawer-modal {
    width: min(620px, 100vw);
    height: 100vh;
    overflow: auto;
    padding: 20px;
    background: #0f151f;
    border-left: 1px solid rgba(248,216,137,.28);
    box-shadow: -20px 0 60px rgba(0,0,0,.42);
}

.room-drawer-head {
    position: sticky;
    top: 0;
    z-index: 3;
    padding-bottom: 12px;
    background: #0f151f;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.room-drawer-head h2 {
    margin: 0;
    font-size: 28px;
}

.room-drawer-head p {
    margin: 6px 0 0;
    color: #9ba6b7;
}

.room-drawer-head a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
}

@media(max-width:980px) {
    .room-drawer-mask {
        justify-content: center;
        align-items: flex-end;
    }

    .room-drawer-modal {
        width: 100vw;
        height: 88vh;
        border-left: 0;
        border-top: 1px solid rgba(248,216,137,.28);
        border-radius: 24px 24px 0 0;
        padding: 16px;
    }

    .room-drawer-head {
        margin: -16px -16px 14px;
        padding: 16px;
        border-radius: 24px 24px 0 0;
    }

    .room-drawer-head h2 {
        font-size: 24px;
    }

    .room-grid-drawer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:520px) {
    .room-grid-drawer {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-drawer-modal {
        height: 90vh;
    }
}

/* SUYANG_V244_ROOM_PROJECT_CARD */
.room-tile-projects {
    min-height: 178px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.room-card-head strong {
    font-size: 32px !important;
    line-height: 1;
}

.room-card-head span {
    margin: 0 !important;
    padding-top: 3px;
    color: #f2c46f !important;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.room-service-list {
    display: grid;
    gap: 6px;
}

.room-service-line {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 7px;
    align-items: center;
    padding: 6px 7px;
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06);
}

.room-service-line b {
    color: #f2c46f;
    font-size: 12px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-service-line strong {
    display: block;
    font-size: 12px !important;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-service-line small {
    display: block;
    margin-top: 3px;
    color: #9ba6b7;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-service-line.status-serving {
    border-color: rgba(78,214,141,.22);
}

.room-service-line.status-waiting_start,
.room-service-line.status-assigned {
    border-color: rgba(89,155,255,.25);
}

.room-service-line.status-reserved,
.room-service-line.status-pending {
    border-color: rgba(248,216,137,.22);
}

.room-more-line {
    padding: 6px 8px;
    border-radius: 10px;
    color: #f2c46f;
    background: rgba(218,168,83,.08);
    font-size: 11px;
    text-align: center;
}

.room-card-people {
    margin-top: 4px;
    display: grid;
    gap: 5px;
}

.room-card-people b {
    color: #f2c46f;
    font-size: 14px;
}

.room-card-people span {
    margin: 0 !important;
    color: #9ba6b7 !important;
    font-size: 12px;
    line-height: 1.35;
}

.room-card-empty {
    margin-top: 6px;
    color: #9ba6b7;
    font-size: 13px;
}

@media(max-width:980px) {
    .room-tile-projects {
        min-height: 168px;
        padding: 12px;
        gap: 7px;
    }

    .room-card-head strong {
        font-size: 29px !important;
    }

    .room-card-head span {
        font-size: 14px;
    }

    .room-service-line {
        grid-template-columns: 38px 1fr;
        padding: 5px 6px;
    }

    .room-service-line strong {
        font-size: 11px !important;
    }

    .room-service-line small {
        font-size: 9.5px;
    }
}

@media(max-width:420px) {
    .room-card-head strong {
        font-size: 27px !important;
    }

    .room-tile-projects {
        min-height: 164px;
    }

    .room-service-line {
        grid-template-columns: 35px 1fr;
    }
}

/* SUYANG_V246_HAND_REVISED */
.batch-issue-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(218,168,83,.08);
    border: 1px solid rgba(218,168,83,.18);
}

.batch-issue-box.big {
    margin-bottom: 16px;
}

.batch-issue-box label {
    color: #f2c46f;
    font-weight: 900;
    white-space: nowrap;
}

.batch-issue-box select {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: #151b25;
    color: #fff;
    padding: 0 10px;
}

.batch-issue-box button {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 13px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
}

.hand-card-form {
    margin-top: auto;
}

.hand-wait-room {
    margin-top: auto;
    padding: 9px 10px;
    border-radius: 12px;
    color: #f2c46f;
    background: rgba(218,168,83,.10);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.room-console-full-head h2 {
    font-size: 34px;
}

@media(max-width:700px) {
    .batch-issue-box {
        grid-template-columns: 1fr;
    }

    .batch-issue-box button {
        width: 100%;
    }
}

/* SUYANG_V247_TOP_NAV_OPEN_CHECKOUT */
.mobile-top-v2 {
    display: none;
}

@media(max-width:980px) {
    body {
        padding-bottom: 0 !important;
    }

    .side,
    .bottom-nav,
    .mobile-top {
        display: none !important;
    }

    .mobile-top-v2 {
        position: sticky;
        top: 0;
        z-index: 90;
        display: block;
        background: rgba(10,15,23,.96);
        border-bottom: 1px solid rgba(255,255,255,.08);
        backdrop-filter: blur(16px);
    }

    .mobile-top-line {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px 8px;
    }

    .mobile-title {
        flex: 1;
        min-width: 0;
    }

    .mobile-title strong,
    .mobile-title span {
        display: block;
    }

    .mobile-title strong {
        font-size: 16px;
    }

    .mobile-title span {
        color: #9ba6b7;
        font-size: 12px;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-main-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 12px 10px;
        scrollbar-width: none;
    }

    .mobile-main-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-main-nav a {
        flex: 0 0 auto;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 0 14px;
        border-radius: 999px;
        color: #d7deea;
        background: rgba(255,255,255,.055);
        border: 1px solid rgba(255,255,255,.08);
        font-weight: 800;
        font-size: 14px;
    }

    .mobile-main-nav a.active {
        color: #241504;
        background: linear-gradient(135deg,#f8db91,#b77c29);
        border-color: transparent;
    }

    .main {
        padding-top: 14px !important;
    }
}

.open-input-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.open-input-box input {
    min-height: 48px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.12);
    background: #151b25;
    color: #fff;
    padding: 0 14px;
    outline: none;
}

.open-input-box button {
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
}

.selected-basket {
    margin-top: 12px;
    padding: 13px;
    border-radius: 15px;
    background: rgba(218,168,83,.08);
    border: 1px solid rgba(218,168,83,.18);
    color: #d7deea;
}

.selected-basket strong {
    color: #f2c46f;
}

.open-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.open-card-item {
    position: relative;
    min-height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
}

.open-card-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.open-card-item span {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.open-card-item.checked {
    background: rgba(218,168,83,.18);
    border-color: rgba(248,216,137,.55);
}

.open-card-item.checked span {
    color: #f2c46f;
}

.fixed-action-bar {
    position: sticky;
    bottom: 12px;
    z-index: 30;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(10,15,23,.92);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}

.checkout-total {
    padding: 22px;
    border-radius: 20px;
    background: rgba(218,168,83,.10);
    border: 1px solid rgba(218,168,83,.22);
}

.checkout-total span,
.checkout-total strong,
.checkout-total em {
    display: block;
}

.checkout-total span {
    color: #9ba6b7;
}

.checkout-total strong {
    margin-top: 8px;
    font-size: 42px;
    color: #f2c46f;
}

.checkout-total em {
    margin-top: 8px;
    color: #a6b1c0;
    font-style: normal;
}

.checkout-hand-card {
    color: inherit;
}

@media(max-width:700px) {
    .open-input-box {
        grid-template-columns: 1fr;
    }

    .open-input-box button {
        min-height: 44px;
    }

    .open-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fixed-action-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: grid;
        grid-template-columns: 1fr 1.7fr;
    }
}

/* SUYANG_V248_VOICE_OPEN */
.open-input-box-v248 {
    grid-template-columns: 1fr auto auto;
}

.open-input-box-v248 .voice-btn {
    background: rgba(218,168,83,.16);
    border: 1px solid rgba(218,168,83,.28);
    color: #f2c46f;
}

.voice-tip {
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: #a6b1c0;
    font-size: 13px;
    line-height: 1.5;
}

@media(max-width:700px) {
    .open-input-box-v248 {
        grid-template-columns: 1fr;
    }

    .open-input-box-v248 button {
        min-height: 44px;
    }
}

/* SUYANG_V249_OPEN_SLIM */
.open-slim-panel {
    padding: 14px;
    margin-bottom: 12px;
}

.open-slim-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.open-slim-title h2 {
    margin: 0;
    font-size: 26px;
}

.open-slim-title p {
    margin: 5px 0 0;
    color: #9ba6b7;
    font-size: 13px;
    line-height: 1.45;
}

.open-slim-title span {
    flex: 0 0 auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #f2c46f;
    background: rgba(218,168,83,.10);
    border: 1px solid rgba(218,168,83,.20);
    font-size: 12px;
    font-weight: 900;
}

.open-input-box-v249 {
    grid-template-columns: 1fr auto;
}

.open-input-box-v249 input {
    min-height: 46px;
}

.open-input-box-v249 button {
    min-height: 46px;
}

.selected-basket-slim {
    margin-top: 10px;
    padding: 11px 12px;
    line-height: 1.45;
}

.open-cards-panel {
    padding: 14px;
}

.compact-title {
    margin-bottom: 10px;
}

.compact-title h2 {
    font-size: 20px;
}

.open-card-grid-slim {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}

.open-card-grid-slim .open-card-item {
    min-height: 52px;
    border-radius: 14px;
}

.open-card-grid-slim .open-card-item span {
    font-size: 16px;
}

.fixed-action-bar-slim {
    padding: 8px;
    border-radius: 16px;
    bottom: 8px;
}

.fixed-action-bar-slim .btn {
    min-height: 42px;
    height: 42px;
}

@media(max-width:700px) {
    .open-slim-panel {
        padding: 13px;
    }

    .open-slim-title h2 {
        font-size: 24px;
    }

    .open-input-box-v249 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .open-input-box-v249 button {
        width: 100%;
    }

    .open-card-grid-slim {
        grid-template-columns: repeat(3, 1fr);
    }

    .fixed-action-bar-slim {
        grid-template-columns: 1fr 1.8fr;
    }
}

/* SUYANG_V410_RECOMMENDED_IDLE_CARDS */
.recommend-tip {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #a6b1c0;
    background: rgba(218,168,83,.07);
    border: 1px solid rgba(218,168,83,.16);
    font-size: 13px;
    line-height: 1.5;
}

@media(max-width:700px) {
    .recommend-tip {
        font-size: 12px;
        padding: 9px 10px;
    }
}

/* SUYANG_V411_OPEN_RATIO_OPTIMIZE */
.open-slim-panel {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 18px !important;
}

.open-slim-title {
    margin-bottom: 8px !important;
    align-items: center !important;
}

.open-slim-title h2 {
    font-size: 22px !important;
    line-height: 1.1 !important;
}

.open-slim-title p {
    margin-top: 3px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.open-slim-title span {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
}

.open-input-box-v249 {
    gap: 7px !important;
}

.open-input-box-v249 input {
    min-height: 40px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
}

.open-input-box-v249 button {
    min-height: 40px !important;
    border-radius: 13px !important;
}

.selected-basket-slim {
    margin-top: 7px !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
}

.open-cards-panel {
    padding: 12px !important;
    min-height: 52vh;
}

.compact-title {
    margin-bottom: 8px !important;
}

.compact-title h2 {
    font-size: 22px !important;
}

.compact-title span {
    font-size: 12px !important;
}

.recommend-tip {
    margin-bottom: 8px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.open-card-grid-slim {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    gap: 7px !important;
}

.open-card-grid-slim .open-card-item {
    min-height: 44px !important;
    border-radius: 12px !important;
}

.open-card-grid-slim .open-card-item span {
    font-size: 15px !important;
}

.fixed-action-bar-slim {
    padding: 7px !important;
    border-radius: 15px !important;
    bottom: 6px !important;
}

.fixed-action-bar-slim .btn {
    min-height: 39px !important;
    height: 39px !important;
    font-size: 14px !important;
}

@media(max-width:700px) {
    .open-card-grid-slim {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 7px !important;
    }

    .open-card-grid-slim .open-card-item {
        min-height: 43px !important;
    }

    .open-card-grid-slim .open-card-item span {
        font-size: 14px !important;
    }

    .open-cards-panel {
        min-height: 55vh;
    }

    .open-slim-title h2 {
        font-size: 21px !important;
    }

    .open-input-box-v249 {
        grid-template-columns: 1fr auto !important;
    }

    .open-input-box-v249 button {
        width: auto !important;
        padding: 0 12px !important;
        white-space: nowrap;
    }
}

@media(max-width:390px) {
    .open-card-grid-slim {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .open-card-grid-slim .open-card-item span {
        font-size: 13px !important;
    }
}

/* SUYANG_V412_CHILD_ENTRY */
.setting-form {
    display: grid;
    gap: 14px;
}

.setting-form label {
    display: grid;
    gap: 8px;
    color: #d5deea;
}

.setting-form input {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: #151b25;
    color: #fff;
    padding: 0 14px;
}

.child-line-box {
    margin-top: 8px;
    display: grid;
    grid-template-columns: auto 96px 90px 1fr;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.child-line-box label {
    color: #f2c46f;
    font-weight: 900;
    white-space: nowrap;
}

.child-line-box select,
.child-line-box input {
    min-height: 36px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.12);
    background: #151b25;
    color: #fff;
    padding: 0 9px;
}

.child-line-box span {
    color: #9ba6b7;
    font-size: 12px;
    line-height: 1.3;
}

@media(max-width:700px) {
    .child-line-box {
        grid-template-columns: auto 1fr 1fr;
    }

    .child-line-box span {
        grid-column: 1 / -1;
    }
}

/* SUYANG_V413_KEYBOARD_FIX */
:root {
    --app-vh: 1vh;
}

@media(max-width:980px) {
    html,
    body {
        min-height: calc(var(--app-vh) * 100);
        overflow-x: hidden;
    }

    .main {
        min-height: calc(var(--app-vh) * 100 - 120px);
    }

    body.keyboard-open .fixed-action-bar,
    body.keyboard-open .fixed-action-bar-slim {
        position: static !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
        transform: none !important;
    }

    body.keyboard-open .mobile-top-v2 {
        position: sticky;
        top: 0;
    }

    body.keyboard-open .open-cards-panel {
        min-height: auto !important;
    }

    body.keyboard-open input,
    body.keyboard-open select,
    body.keyboard-open textarea {
        scroll-margin-top: 150px;
        scroll-margin-bottom: 220px;
    }
}


/* SUYANG_V414_IOS_KEYBOARD_STRONG_FIX */
:root {
    --app-vh: 1vh;
}

@media(max-width:980px) {
    html,
    body {
        height: auto !important;
        min-height: auto !important;
        overflow-x: hidden !important;
    }

    .main {
        min-height: auto !important;
    }

    /* 手机端不再让底部确认栏 fixed/sticky，避免 iPhone 输入法撑高页面后不恢复 */
    .fixed-action-bar,
    .fixed-action-bar-slim {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }

    /* 输入法打开时直接隐藏确认栏，防止它和键盘抢高度 */
    body.keyboard-open .fixed-action-bar,
    body.keyboard-open .fixed-action-bar-slim {
        display: none !important;
    }

    body.keyboard-open .open-cards-panel {
        min-height: auto !important;
    }

    body.keyboard-open input,
    body.keyboard-open textarea,
    body.keyboard-open select {
        scroll-margin-top: 150px;
        scroll-margin-bottom: 240px;
    }

    body.keyboard-open .mobile-top-v2 {
        position: sticky;
        top: 0;
    }
}


/* SUYANG_V415_OPEN_NO_BOTTOM_BLOCK */
:root {
    --app-vh: 1vh;
}

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

@media(max-width:980px) {
    .main {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
    }

    .panel,
    .open-slim-panel,
    .open-cards-panel {
        max-width: 100% !important;
    }

    .open-submit-row {
        display: grid;
        grid-template-columns: 1fr 1.8fr;
        gap: 8px;
        margin-top: 9px;
        padding: 8px;
        border-radius: 15px;
        background: rgba(10,15,23,.68);
        border: 1px solid rgba(255,255,255,.08);
    }

    .open-submit-row .btn {
        width: 100%;
        min-height: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* 老的底部确认栏彻底不再占位 */
    .fixed-action-bar,
    .fixed-action-bar-slim {
        display: none !important;
        position: static !important;
    }

    .open-input-box-v249 {
        grid-template-columns: minmax(0, 1fr) 104px !important;
        gap: 7px !important;
        width: 100% !important;
    }

    .open-input-box-v249 input {
        min-width: 0 !important;
        width: 100% !important;
    }

    .open-input-box-v249 button {
        width: 104px !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .open-slim-title {
        min-width: 0 !important;
    }

    .open-slim-title > div {
        min-width: 0 !important;
    }

    .open-slim-title span {
        max-width: 92px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.keyboard-open .open-cards-panel {
        min-height: auto !important;
    }

    body.keyboard-open input,
    body.keyboard-open textarea,
    body.keyboard-open select {
        scroll-margin-top: 150px;
        scroll-margin-bottom: 240px;
    }
}

@media(max-width:390px) {
    .open-input-box-v249 {
        grid-template-columns: 1fr !important;
    }

    .open-input-box-v249 button {
        width: 100% !important;
    }

    .open-submit-row {
        grid-template-columns: 1fr 1.6fr;
    }
}


/* SUYANG_V417_DUAL_INPUT_FIXED_SCREEN */
@media(max-width:980px) {
    body.page-open-fixed {
        height: 100svh !important;
        max-height: 100svh !important;
        overflow: hidden !important;
    }

    body.page-open-fixed .main {
        height: calc(100svh - 118px) !important;
        max-height: calc(100svh - 118px) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
    }

    body.page-open-fixed .top {
        display: none !important;
    }

    body.page-open-fixed form#openForm {
        height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    body.page-open-fixed .open-slim-panel {
        flex: 0 0 auto !important;
        padding: 9px 10px !important;
        margin: 0 !important;
        border-radius: 17px !important;
    }

    body.page-open-fixed .open-slim-title {
        margin-bottom: 6px !important;
    }

    body.page-open-fixed .open-slim-title h2 {
        font-size: 20px !important;
    }

    body.page-open-fixed .open-slim-title p {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .open-input-box-v417 {
        grid-template-columns: minmax(0,1fr) 54px 54px !important;
        gap: 6px !important;
    }

    .open-input-box-v417 input {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 37px !important;
        height: 37px !important;
        font-size: 13px !important;
    }

    .open-input-box-v417 button {
        width: 54px !important;
        min-height: 37px !important;
        height: 37px !important;
        padding: 0 !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        border-radius: 12px !important;
    }

    .open-input-box-v417 .system-input-btn {
        background: rgba(218,168,83,.13) !important;
        color: #f2c46f !important;
        border: 1px solid rgba(218,168,83,.25) !important;
    }

    .mobile-card-keypad {
        display: grid;
        gap: 5px;
        margin-top: 6px;
    }

    .keypad-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .mobile-card-keypad button {
        min-height: 32px;
        border: 0;
        border-radius: 10px;
        color: #dce5f2;
        background: rgba(255,255,255,.065);
        border: 1px solid rgba(255,255,255,.08);
        font-weight: 900;
        font-size: 12px;
    }

    .mobile-card-keypad .keypad-ok {
        color: #241504;
        background: linear-gradient(135deg,#f8db91,#b77c29);
        border-color: transparent;
    }

    /* 只有临时语音/系统输入时，隐藏自定义键盘，给系统输入法让位 */
    body.system-input-mode .mobile-card-keypad {
        display: none !important;
    }

    body.page-open-fixed .child-line-box {
        margin-top: 6px !important;
        padding: 7px 8px !important;
        border-radius: 12px !important;
        grid-template-columns: auto 1fr 1fr !important;
        gap: 6px !important;
    }

    body.page-open-fixed .child-line-box label {
        font-size: 13px !important;
    }

    body.page-open-fixed .child-line-box select,
    body.page-open-fixed .child-line-box input {
        min-height: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    body.page-open-fixed .child-line-box span {
        grid-column: 1 / -1;
        font-size: 11px !important;
    }

    body.page-open-fixed .selected-basket-slim {
        margin-top: 6px !important;
        padding: 7px 9px !important;
        font-size: 12px !important;
    }

    body.page-open-fixed .open-submit-row {
        margin-top: 7px !important;
        padding: 6px !important;
        border-radius: 13px !important;
    }

    body.page-open-fixed .open-submit-row .btn {
        min-height: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }

    body.page-open-fixed .open-cards-panel {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 10px !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }

    body.page-open-fixed .compact-title {
        margin-bottom: 6px !important;
    }

    body.page-open-fixed .compact-title h2 {
        font-size: 19px !important;
    }

    body.page-open-fixed .compact-title span {
        font-size: 11px !important;
    }

    body.page-open-fixed .recommend-tip {
        padding: 7px 8px !important;
        margin-bottom: 7px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    body.page-open-fixed .open-card-grid-slim {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    body.page-open-fixed .open-card-grid-slim .open-card-item {
        min-height: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
    }

    body.page-open-fixed .open-card-grid-slim .open-card-item span {
        font-size: 13px !important;
    }

    body.page-open-fixed .more-card-link {
        margin-top: 7px !important;
        padding: 8px !important;
        font-size: 12px !important;
    }
}

/* 电脑端继续正常输入，不显示手机自定义键盘 */
@media(min-width:981px) {
    .mobile-card-keypad {
        display: none !important;
    }
}

@media(max-width:390px) {
    .open-input-box-v417 {
        grid-template-columns: minmax(0,1fr) 50px 50px !important;
    }

    .open-input-box-v417 button {
        width: 50px !important;
        font-size: 11px !important;
    }

    body.page-open-fixed .open-card-grid-slim {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    body.page-open-fixed .open-card-grid-slim .open-card-item span {
        font-size: 12px !important;
    }
}

/* SUYANG_V418_DUAL_INPUT_FIX */
@media(max-width:980px) {
    body.page-open-fixed {
        height: 100svh !important;
        max-height: 100svh !important;
        overflow: hidden !important;
    }

    body.page-open-fixed .main {
        height: calc(100svh - 118px) !important;
        max-height: calc(100svh - 118px) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
    }

    body.page-open-fixed .top {
        display: none !important;
    }

    body.page-open-fixed form#openForm {
        height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    .open-input-box-v418 {
        grid-template-columns: minmax(0,1fr) 54px 54px !important;
        gap: 6px !important;
    }

    .open-input-box-v418 input {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 37px !important;
        height: 37px !important;
        font-size: 13px !important;
    }

    .open-input-box-v418 button {
        width: 54px !important;
        min-height: 37px !important;
        height: 37px !important;
        padding: 0 !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        border-radius: 12px !important;
    }

    .open-input-box-v418 .system-input-btn {
        background: rgba(218,168,83,.13) !important;
        color: #f2c46f !important;
        border: 1px solid rgba(218,168,83,.25) !important;
    }

    .mobile-card-keypad {
        display: grid !important;
        gap: 5px !important;
        margin-top: 6px !important;
    }

    .keypad-row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 5px !important;
    }

    .mobile-card-keypad button {
        min-height: 32px !important;
        border: 0 !important;
        border-radius: 10px !important;
        color: #dce5f2 !important;
        background: rgba(255,255,255,.065) !important;
        border: 1px solid rgba(255,255,255,.08) !important;
        font-weight: 900 !important;
        font-size: 12px !important;
    }

    .mobile-card-keypad .keypad-ok {
        color: #241504 !important;
        background: linear-gradient(135deg,#f8db91,#b77c29) !important;
        border-color: transparent !important;
    }

    body.system-input-mode .mobile-card-keypad {
        display: none !important;
    }

    body.page-open-fixed .open-slim-panel {
        flex: 0 0 auto !important;
        padding: 9px 10px !important;
        margin: 0 !important;
        border-radius: 17px !important;
    }

    body.page-open-fixed .open-cards-panel {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 10px !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }

    body.page-open-fixed .open-card-grid-slim {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    body.page-open-fixed .open-card-grid-slim .open-card-item {
        min-height: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
    }

    body.page-open-fixed .open-card-grid-slim .open-card-item span {
        font-size: 13px !important;
    }
}

@media(min-width:981px) {
    .mobile-card-keypad {
        display: none !important;
    }
}

@media(max-width:390px) {
    .open-input-box-v418 {
        grid-template-columns: minmax(0,1fr) 50px 50px !important;
    }

    .open-input-box-v418 button {
        width: 50px !important;
        font-size: 11px !important;
    }
}

/* SUYANG_V419_NATIVE_KEYBOARD_OPEN */
.mobile-card-keypad {
    display: none !important;
}

@media(max-width:980px) {
    body.page-open-fixed {
        height: auto !important;
        max-height: none !important;
        overflow: auto !important;
    }

    body.page-open-fixed .main,
    .main {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .open-native-form {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    .open-slim-panel {
        position: sticky;
        top: 96px;
        z-index: 40;
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        border-radius: 18px !important;
        background: rgba(15,21,31,.96) !important;
        backdrop-filter: blur(12px);
    }

    .open-slim-title {
        margin-bottom: 7px !important;
        align-items: center !important;
    }

    .open-slim-title h2 {
        font-size: 21px !important;
        line-height: 1.1 !important;
    }

    .open-slim-title p {
        margin-top: 3px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .open-input-box-native {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 82px !important;
        gap: 7px !important;
    }

    .open-input-box-native input {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
    }

    .open-input-box-native button {
        width: 82px !important;
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        white-space: nowrap !important;
        border-radius: 13px !important;
        font-size: 13px !important;
    }

    .child-line-box {
        margin-top: 7px !important;
        padding: 7px 8px !important;
        border-radius: 12px !important;
        grid-template-columns: auto 1fr 1fr !important;
        gap: 6px !important;
    }

    .child-line-box span {
        grid-column: 1 / -1;
        font-size: 11px !important;
    }

    .selected-basket-slim {
        margin-top: 7px !important;
        padding: 7px 9px !important;
        font-size: 12px !important;
    }

    .open-submit-row {
        margin-top: 7px !important;
        padding: 6px !important;
        border-radius: 13px !important;
        display: grid !important;
        grid-template-columns: 1fr 1.8fr !important;
        gap: 8px !important;
        background: rgba(10,15,23,.68);
        border: 1px solid rgba(255,255,255,.08);
    }

    .open-submit-row .btn {
        min-height: 37px !important;
        height: 37px !important;
        font-size: 13px !important;
    }

    .open-cards-panel {
        padding: 12px !important;
        border-radius: 18px !important;
        min-height: 45vh;
    }

    .open-card-grid-slim {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }

    .open-card-grid-slim .open-card-item {
        min-height: 39px !important;
        height: 39px !important;
        border-radius: 11px !important;
    }

    .open-card-grid-slim .open-card-item span {
        font-size: 13px !important;
    }
}

@media(max-width:390px) {
    .open-input-box-native {
        grid-template-columns: minmax(0, 1fr) 76px !important;
    }

    .open-input-box-native button {
        width: 76px !important;
        font-size: 12px !important;
    }
}

/* SUYANG_V420_OPEN_OPERATE_FIXED */
@media(max-width:980px) {
    /* 开牌主操作页：定格，不上下滑动 */
    body.open-operate-fixed {
        height: 100svh !important;
        max-height: 100svh !important;
        overflow: hidden !important;
    }

    body.open-operate-fixed .top {
        display: none !important;
    }

    body.open-operate-fixed .main {
        height: calc(100svh - 118px) !important;
        max-height: calc(100svh - 118px) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    body.open-operate-fixed .open-native-form {
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    body.open-operate-fixed .open-slim-panel {
        position: static !important;
        flex: 0 0 auto !important;
        padding: 8px 10px !important;
        margin: 0 !important;
        border-radius: 17px !important;
        background: rgba(15,21,31,.96) !important;
    }

    body.open-operate-fixed .open-slim-title {
        margin-bottom: 6px !important;
    }

    body.open-operate-fixed .open-slim-title h2 {
        font-size: 20px !important;
        line-height: 1.1 !important;
    }

    body.open-operate-fixed .open-slim-title p {
        margin-top: 2px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    body.open-operate-fixed .open-slim-title span {
        min-height: 26px !important;
        max-width: 82px !important;
        font-size: 11px !important;
    }

    body.open-operate-fixed .open-input-box-native {
        grid-template-columns: minmax(0, 1fr) 78px !important;
        gap: 6px !important;
    }

    body.open-operate-fixed .open-input-box-native input {
        min-height: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
    }

    body.open-operate-fixed .open-input-box-native button {
        width: 78px !important;
        min-height: 38px !important;
        height: 38px !important;
        font-size: 12px !important;
    }

    body.open-operate-fixed .child-line-box {
        margin-top: 6px !important;
        padding: 6px 8px !important;
        border-radius: 12px !important;
        grid-template-columns: auto 1fr 1fr !important;
        gap: 6px !important;
    }

    body.open-operate-fixed .child-line-box label {
        font-size: 12px !important;
    }

    body.open-operate-fixed .child-line-box select,
    body.open-operate-fixed .child-line-box input {
        min-height: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    body.open-operate-fixed .child-line-box span {
        grid-column: 1 / -1 !important;
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }

    body.open-operate-fixed .selected-basket-slim {
        margin-top: 6px !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        max-height: 42px !important;
        overflow: hidden !important;
    }

    body.open-operate-fixed .open-submit-row {
        margin-top: 6px !important;
        padding: 6px !important;
        border-radius: 13px !important;
        display: grid !important;
        grid-template-columns: 1fr 1.8fr !important;
        gap: 8px !important;
    }

    body.open-operate-fixed .open-submit-row .btn {
        min-height: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }

    body.open-operate-fixed .open-cards-panel {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 10px !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }

    body.open-operate-fixed .compact-title {
        margin-bottom: 6px !important;
    }

    body.open-operate-fixed .compact-title h2 {
        font-size: 18px !important;
    }

    body.open-operate-fixed .compact-title span {
        font-size: 11px !important;
    }

    body.open-operate-fixed .recommend-tip {
        margin-bottom: 6px !important;
        padding: 6px 8px !important;
        font-size: 10.5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.open-operate-fixed .open-card-grid-slim {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    body.open-operate-fixed .open-card-grid-slim .open-card-item {
        min-height: 37px !important;
        height: 37px !important;
        border-radius: 11px !important;
    }

    body.open-operate-fixed .open-card-grid-slim .open-card-item span {
        font-size: 12.5px !important;
    }

    body.open-operate-fixed .more-card-link {
        margin-top: 6px !important;
        padding: 7px !important;
        font-size: 11px !important;
    }

    /* 查看全部空闲手牌：这是浏览页，可以滚动 */
    body.open-browse-scroll {
        height: auto !important;
        max-height: none !important;
        overflow: auto !important;
    }

    body.open-browse-scroll .main {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.open-browse-scroll .open-native-form {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    body.open-browse-scroll .open-cards-panel {
        min-height: auto !important;
        overflow: visible !important;
    }
}

@media(max-width:390px) {
    body.open-operate-fixed .open-card-grid-slim {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    body.open-operate-fixed .open-input-box-native {
        grid-template-columns: minmax(0, 1fr) 72px !important;
    }

    body.open-operate-fixed .open-input-box-native button {
        width: 72px !important;
        font-size: 11px !important;
    }
}

/* SUYANG_V50_CHECKOUT */
.checkout-operate-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.checkout-operate-head h2 {
    margin: 0;
    font-size: 28px;
}

.checkout-operate-head p {
    margin: 5px 0 0;
    color: #9ba6b7;
}

.checkout-operate-head span {
    flex: 0 0 auto;
    color: #f2c46f;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(218,168,83,.10);
    border: 1px solid rgba(218,168,83,.20);
}

.checkout-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 12px;
}

.checkout-card {
    color: inherit;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.checkout-card div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.checkout-card strong {
    font-size: 28px;
    color: #fff;
}

.checkout-card span {
    color: #f2c46f;
    font-weight: 800;
}

.checkout-card p,
.checkout-card em {
    display: block;
    margin: 8px 0 0;
    color: #9ba6b7;
    font-style: normal;
}

.checkout-card b {
    display: block;
    margin-top: 12px;
    color: #f2c46f;
    font-size: 24px;
}

.checkout-detail-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 330px;
    gap: 14px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 14px;
}

.checkout-top-card,
.checkout-pay-panel {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.checkout-card-title {
    margin-top: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.checkout-card-title h2 {
    margin: 0;
    font-size: 36px;
}

.checkout-card-title p {
    margin: 5px 0 0;
    color: #9ba6b7;
}

.checkout-card-title strong {
    color: #f2c46f;
    font-size: 32px;
}

.compact-panel {
    padding: 14px;
}

.member-inline-form,
.quick-member-form {
    display: grid;
    gap: 8px;
}

.member-inline-form {
    grid-template-columns: 1fr auto;
}

.member-inline-form input,
.quick-member-form input,
.checkout-pay-panel input,
.checkout-pay-panel select {
    min-height: 42px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.12);
    background: #151b25;
    color: #fff;
    padding: 0 12px;
}

.member-inline-form button,
.quick-member-form button {
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    padding: 0 12px;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    font-weight: 900;
}

.quick-member {
    margin-top: 10px;
    color: #d5deea;
}

.quick-member summary {
    color: #f2c46f;
    cursor: pointer;
}

.quick-member-form {
    margin-top: 10px;
}

.member-box {
    padding: 12px;
    border-radius: 16px;
    background: rgba(218,168,83,.08);
    border: 1px solid rgba(218,168,83,.18);
}

.member-box strong,
.member-box span {
    display: block;
}

.member-box span {
    margin-top: 5px;
    color: #9ba6b7;
}

.checkout-item-list {
    display: grid;
    gap: 8px;
}

.checkout-item-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
}

.checkout-item-row strong,
.checkout-item-row span {
    display: block;
}

.checkout-item-row span {
    margin-top: 4px;
    color: #9ba6b7;
    font-size: 13px;
}

.checkout-item-row b {
    color: #f2c46f;
    white-space: nowrap;
}

.checkout-pay-panel {
    position: sticky;
    top: 16px;
}

.checkout-pay-panel form {
    display: grid;
    gap: 12px;
}

.checkout-pay-panel label {
    display: grid;
    gap: 6px;
    color: #d5deea;
}

.pay-total-card {
    padding: 14px;
    border-radius: 17px;
    background: rgba(218,168,83,.10);
    border: 1px solid rgba(218,168,83,.22);
}

.pay-total-card span,
.pay-total-card strong {
    display: block;
}

.pay-total-card span {
    color: #9ba6b7;
}

.pay-total-card strong {
    margin-top: 5px;
    color: #f2c46f;
    font-size: 34px;
}

.pay-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pay-result div {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
}

.pay-result span,
.pay-result strong {
    display: block;
}

.pay-result span {
    color: #9ba6b7;
    font-size: 12px;
}

.pay-result strong {
    color: #f2c46f;
    margin-top: 4px;
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media(max-width:980px) {
    .checkout-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .checkout-operate-head {
        padding: 13px;
        border-radius: 19px;
    }

    .checkout-operate-head h2 {
        font-size: 24px;
    }

    .checkout-operate-head p {
        font-size: 13px;
    }

    .checkout-card {
        padding: 13px;
        border-radius: 18px;
    }

    .checkout-card strong {
        font-size: 24px;
    }

    .checkout-card b {
        font-size: 20px;
    }

    .checkout-detail-layout {
        grid-template-columns: 1fr;
    }

    .checkout-pay-panel {
        position: static;
    }

    .checkout-card-title h2 {
        font-size: 30px;
    }

    .checkout-card-title strong {
        font-size: 27px;
    }
}

@media(max-width:520px) {
    .checkout-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-inline-form {
        grid-template-columns: 1fr;
    }

    .pay-result {
        grid-template-columns: 1fr 1fr;
    }
}

/* SUYANG_V51_CHECKOUT_SIMPLE */
.checkout-simple {
    display: grid;
    gap: 14px;
}

.checkout-simple-head {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.checkout-simple-head h2 {
    margin: 0;
    font-size: 36px;
}

.checkout-simple-head p {
    margin: 5px 0 0;
    color: #9ba6b7;
}

.checkout-simple-head > strong {
    font-size: 34px;
    color: #f2c46f;
    white-space: nowrap;
}

.checkout-fast-panel {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    display: grid;
    gap: 12px;
}

.pay-total-mini {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border-radius: 17px;
    background: rgba(218,168,83,.10);
    border: 1px solid rgba(218,168,83,.22);
}

.pay-total-mini span {
    color: #9ba6b7;
}

.pay-total-mini b {
    color: #f2c46f;
    font-size: 30px;
}

.checkout-fast-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 10px;
}

.checkout-fast-grid label,
.member-pay-inline label {
    display: grid;
    gap: 6px;
    color: #d5deea;
}

.checkout-fast-grid input,
.checkout-fast-grid select,
.member-pay-inline input,
.checkout-note-input {
    min-height: 42px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.12);
    background: #151b25;
    color: #fff;
    padding: 0 12px;
}

.member-pay-inline {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border-radius: 16px;
    background: rgba(218,168,83,.08);
    border: 1px solid rgba(218,168,83,.18);
}

.member-pay-inline span {
    color: #9ba6b7;
    font-size: 13px;
    line-height: 1.35;
}

.pay-result-simple {
    grid-template-columns: 1fr 1fr;
}

.checkout-note-input {
    width: 100%;
}

.checkout-main-submit {
    min-height: 48px;
    font-size: 17px;
}

.checkout-items-lower {
    padding: 14px;
}

@media(max-width:980px) {
    .checkout-simple-head {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 13px;
        border-radius: 19px;
    }

    .checkout-simple-head .back-chip {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .checkout-simple-head h2 {
        font-size: 32px;
    }

    .checkout-simple-head > strong {
        font-size: 28px;
    }

    .checkout-fast-panel {
        padding: 13px;
        border-radius: 19px;
    }

    .pay-total-mini {
        padding: 11px;
    }

    .pay-total-mini b {
        font-size: 27px;
    }

    .checkout-fast-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-fast-grid label:first-child {
        grid-column: 1 / -1;
    }

    .member-pay-inline {
        grid-template-columns: 1fr;
    }

    .checkout-main-submit {
        min-height: 46px;
    }
}

@media(max-width:520px) {
    .checkout-fast-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-fast-grid input,
    .checkout-fast-grid select,
    .member-pay-inline input,
    .checkout-note-input {
        min-height: 40px;
    }

    .checkout-simple-head h2 {
        font-size: 30px;
    }
}

/* SUYANG_V52_CHECKOUT_LOCKED_FAST */
.checkout-v52-panel {
    gap: 10px !important;
}

.v52-total {
    padding: 12px !important;
}

.v52-methods {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.v52-methods button {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
    color: #dce5f2;
    font-weight: 900;
}

.v52-methods button.active {
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    border-color: transparent;
}

.v52-member-box {
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(218,168,83,.08);
    border: 1px solid rgba(218,168,83,.18);
}

.member-display {
    padding: 10px;
    border-radius: 13px;
    background: rgba(10,15,23,.45);
    border: 1px solid rgba(255,255,255,.08);
}

.member-display span,
.member-display strong {
    display: block;
}

.member-display span {
    color: #9ba6b7;
    font-size: 12px;
}

.member-display strong {
    color: #f2c46f;
    margin-top: 4px;
    font-size: 20px;
}

.member-balance-line {
    color: #9ba6b7;
    font-size: 13px;
}

.member-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.member-keypad button {
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-weight: 900;
}

.v52-amount-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}

.v52-amount-row div {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
}

.v52-amount-row span,
.v52-amount-row strong {
    display: block;
}

.v52-amount-row span {
    color: #9ba6b7;
    font-size: 12px;
}

.v52-amount-row strong {
    color: #f2c46f;
    margin-top: 4px;
    font-size: 18px;
}

@media(max-width:980px) {
    .checkout-v52-head {
        padding: 12px !important;
    }

    .checkout-v52-panel {
        padding: 12px !important;
    }

    .v52-methods {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .v52-methods button {
        min-height: 38px;
        font-size: 12px;
        border-radius: 12px;
    }

    .v52-amount-row {
        grid-template-columns: repeat(3,1fr);
        gap: 6px;
    }

    .v52-amount-row div {
        padding: 8px;
    }

    .v52-amount-row strong {
        font-size: 16px;
    }

    .member-keypad button {
        min-height: 36px;
    }
}

@media(max-width:390px) {
    .v52-methods button {
        font-size: 11px;
    }

    .v52-amount-row strong {
        font-size: 14px;
    }
}

/* SUYANG_V53_MIXED_MEMBER_APPLY */
.v53-methods {
    grid-template-columns: repeat(6,1fr);
}

.mixed-pay-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.mixed-pay-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mixed-pay-title strong {
    color: #f2c46f;
}

.mixed-pay-title span {
    color: #9ba6b7;
    font-size: 13px;
}

.mixed-pay-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;
}

.mixed-pay-grid label {
    display: grid;
    gap: 5px;
    color: #d5deea;
    font-size: 13px;
}

.mixed-pay-grid input {
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: #151b25;
    color: #fff;
    padding: 0 10px;
}

.mixed-member-mini {
    display: grid;
    gap: 8px;
}

.mixed-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mixed-summary div {
    padding: 10px;
    border-radius: 14px;
    background: rgba(218,168,83,.08);
    border: 1px solid rgba(218,168,83,.18);
}

.mixed-summary span,
.mixed-summary strong {
    display: block;
}

.mixed-summary span {
    color: #9ba6b7;
    font-size: 12px;
}

.mixed-summary strong {
    margin-top: 4px;
    color: #f2c46f;
}

.member-apply-link {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 14px;
    color: #f2c46f;
    background: rgba(218,168,83,.08);
    border: 1px solid rgba(218,168,83,.18);
    font-weight: 900;
}

.member-apply-panel form {
    display: grid;
    gap: 14px;
}

.member-apply-panel label {
    display: grid;
    gap: 7px;
    color: #d5deea;
}

.member-apply-panel input,
.member-apply-panel select {
    min-height: 42px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.12);
    background: #151b25;
    color: #fff;
    padding: 0 12px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
    gap: 10px;
}

.package-grid label {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.package-grid input {
    display: none;
}

.package-grid input:checked + span {
    color: #f2c46f;
}

.package-grid label:has(input:checked) {
    border-color: rgba(248,216,137,.55);
    background: rgba(218,168,83,.12);
}

.package-grid span {
    font-weight: 900;
}

.package-grid small {
    margin-top: 5px;
    display: block;
    color: #9ba6b7;
}

@media(max-width:980px) {
    .v53-methods {
        grid-template-columns: repeat(3,1fr);
    }

    .mixed-pay-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .package-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:520px) {
    .mixed-pay-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .package-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

/* SUYANG_V54_CUSTOM_MONEY_KEYPAD */
.money-key-input {
    cursor: pointer;
    caret-color: transparent;
}

.money-keypad-mask {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,.48);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.money-keypad-panel {
    width: min(520px, 100vw);
    padding: 14px;
    border-radius: 22px 22px 0 0;
    background: #0f151f;
    border-top: 1px solid rgba(248,216,137,.28);
    box-shadow: 0 -18px 50px rgba(0,0,0,.38);
}

.money-keypad-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.money-keypad-head span {
    color: #9ba6b7;
}

.money-keypad-head strong {
    color: #f2c46f;
    font-size: 28px;
}

.money-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.money-keypad
cd /www/wwwroot/124.220.10.151

mysql -usuyang_zhiyu -psykj.141592 suyang_zhiyu <<'SQL'
CREATE TABLE IF NOT EXISTS sy_member_recharge_payments (
  id INT AUTO_INCREMENT PRIMARY KEY,
  recharge_id INT NOT NULL DEFAULT 0,
  member_id INT NOT NULL DEFAULT 0,
  member_no VARCHAR(50) DEFAULT '',
  pay_method VARCHAR(50) DEFAULT '',
  amount DECIMAL(10,2) NOT NULL DEFAULT 0,
  operator_id INT NOT NULL DEFAULT 0,
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  KEY idx_recharge_id (recharge_id),
  KEY idx_member_id (member_id),
  KEY idx_pay_method (pay_method),
  KEY idx_created_at (created_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
SQL

python3 - <<'PY'
from pathlib import Path
import re

p = Path("frontdesk/checkout.php")
s = p.read_text(encoding="utf-8", errors="ignore")

# 结账混合支付金额框改成自定义金额键盘，不弹手机输入法
repls = {
'''<label>现金<input type="number" step="0.01" min="0" name="mixed_cash" id="mixedCash" value="0" oninput="calcMixed()"></label>''':
'''<label>现金<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="现金" name="mixed_cash" id="mixedCash" value="0.00" onclick="openMoneyKeypad(this)"></label>''',

'''<label>微信<input type="number" step="0.01" min="0" name="mixed_wechat" id="mixedWechat" value="0" oninput="calcMixed()"></label>''':
'''<label>微信<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="微信" name="mixed_wechat" id="mixedWechat" value="0.00" onclick="openMoneyKeypad(this)"></label>''',

'''<label>支付宝<input type="number" step="0.01" min="0" name="mixed_alipay" id="mixedAlipay" value="0" oninput="calcMixed()"></label>''':
'''<label>支付宝<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="支付宝" name="mixed_alipay" id="mixedAlipay" value="0.00" onclick="openMoneyKeypad(this)"></label>''',

'''<label>会员<input type="number" step="0.01" min="0" name="mixed_member" id="mixedMember" value="0" oninput="calcMixed();toggleMixedMember();"></label>''':
'''<label>会员<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="会员余额" name="mixed_member" id="mixedMember" value="0.00" onclick="openMoneyKeypad(this)"></label>''',

'''<label>其他<input type="number" step="0.01" min="0" name="mixed_other" id="mixedOther" value="0" oninput="calcMixed()"></label>''':
'''<label>其他<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="其他" name="mixed_other" id="mixedOther" value="0.00" onclick="openMoneyKeypad(this)"></label>'''
}

for a,b in repls.items():
    s = s.replace(a,b)

# 插入金额键盘弹窗
if 'moneyKeypadMask' not in s:
    marker = '''            <button class="btn gold real-submit checkout-main-submit" id="checkoutSubmit" type="submit" <?php echo $unfinished ? 'disabled' : ''; ?>>
                确认结账
            </button>'''
    keypad = r'''
            <div class="money-keypad-mask" id="moneyKeypadMask" style="display:none;">
                <div class="money-keypad-panel">
                    <div class="money-keypad-head">
                        <span id="moneyKeypadTitle">输入金额</span>
                        <strong id="moneyKeypadValue">0.00</strong>
                    </div>
                    <div class="money-keypad-grid">
                        <button type="button" data-money="1">1</button>
                        <button type="button" data-money="2">2</button>
                        <button type="button" data-money="3">3</button>
                        <button type="button" data-money="4">4</button>
                        <button type="button" data-money="5">5</button>
                        <button type="button" data-money="6">6</button>
                        <button type="button" data-money="7">7</button>
                        <button type="button" data-money="8">8</button>
                        <button type="button" data-money="9">9</button>
                        <button type="button" data-action="clear">清空</button>
                        <button type="button" data-money="0">0</button>
                        <button type="button" data-action="back">退格</button>
                        <button type="button" data-money=".">.</button>
                        <button type="button" data-action="ok" class="money-ok">确定</button>
                    </div>
                </div>
            </div>

''' + marker
    s = s.replace(marker, keypad)

# 插入金额键盘 JS
if 'let currentMoneyInput' not in s:
    js_marker = '''    document.querySelectorAll('.member-keypad button').forEach(btn => {'''
    money_js = r'''
    let currentMoneyInput = null;
    let currentMoneyValue = '';

    window.openMoneyKeypad = function(input) {
        currentMoneyInput = input;
        currentMoneyValue = (input.value || '0').replace(/[^\d.]/g, '');
        if (!currentMoneyValue || currentMoneyValue === '0.00') currentMoneyValue = '';

        document.getElementById('moneyKeypadTitle').innerText = input.dataset.moneyTitle || '输入金额';
        document.getElementById('moneyKeypadValue').innerText = currentMoneyValue || '0.00';
        document.getElementById('moneyKeypadMask').style.display = 'flex';
    };

    function closeMoneyKeypad(save) {
        if (save && currentMoneyInput) {
            let v = parseFloat(currentMoneyValue || '0');
            if (isNaN(v)) v = 0;
            currentMoneyInput.value = v.toFixed(2);

            if (typeof calcMixed === 'function') calcMixed();
            if (typeof toggleMixedMember === 'function') toggleMixedMember();
        }

        document.getElementById('moneyKeypadMask').style.display = 'none';
        currentMoneyInput = null;
        currentMoneyValue = '';
    }

    document.addEventListener('click', function(e){
        const moneyBtn = e.target.closest('.money-keypad-grid button');
        if (!moneyBtn) return;

        const num = moneyBtn.dataset.money;
        const action = moneyBtn.dataset.action;

        if (num !== undefined) {
            if (num === '.' && currentMoneyValue.indexOf('.') >= 0) return;
            currentMoneyValue += num;
        }

        if (action === 'back') currentMoneyValue = currentMoneyValue.slice(0, -1);
        if (action === 'clear') currentMoneyValue = '';
        if (action === 'ok') {
            closeMoneyKeypad(true);
            return;
        }

        document.getElementById('moneyKeypadValue').innerText = currentMoneyValue || '0.00';
    });

    document.addEventListener('click', function(e){
        if (e.target.id === 'moneyKeypadMask') {
            closeMoneyKeypad(true);
        }
    });

'''
    s = s.replace(js_marker, money_js + js_marker)

p.write_text(s, encoding="utf-8")
PY

python3 - <<'PY'
from pathlib import Path
import re

p = Path("frontdesk/member_apply.php")
s = p.read_text(encoding="utf-8", errors="ignore")

# 服务器端：会员办理/充值增加混合支付拆分校验
s = s.replace(
'''        $pay_method = $_POST['pay_method'] ?? 'wechat';

        if ($phone === '') throw new Exception('请输入手机号');''',
'''        $pay_method = $_POST['pay_method'] ?? 'wechat';

        if ($phone === '') throw new Exception('请输入手机号');'''
)

s = s.replace(
'''        $recharge = (float)$pack['recharge_amount'];
        $gift = (float)$pack['gift_amount'];
        $arrive = $recharge + $gift;

        $pdo->beginTransaction();''',
'''        $recharge = (float)$pack['recharge_amount'];
        $gift = (float)$pack['gift_amount'];
        $arrive = $recharge + $gift;

        $rechargePayRows = [];

        if ($pay_method === 'mixed') {
            $rechargePayRows = [
                'cash' => round(max(0, (float)($_POST['apply_mixed_cash'] ?? 0)), 2),
                'wechat' => round(max(0, (float)($_POST['apply_mixed_wechat'] ?? 0)), 2),
                'alipay' => round(max(0, (float)($_POST['apply_mixed_alipay'] ?? 0)), 2),
                'other' => round(max(0, (float)($_POST['apply_mixed_other'] ?? 0)), 2),
            ];

            $mixedTotal = array_sum($rechargePayRows);

            if (abs($mixedTotal - $recharge) > 0.009) {
                throw new Exception('充值混合支付合计必须等于实收金额。当前合计 ¥' . number_format($mixedTotal,2) . '，应收 ¥' . number_format($recharge,2));
            }
        } else {
            $rechargePayRows = [$pay_method => $recharge];
        }

        $pdo->beginTransaction();'''
)

s = s.replace(
'''        $stmt = $pdo->prepare("
            INSERT INTO sy_member_recharges
            (member_id, member_no, package_id, package_name, recharge_amount, gift_amount, arrive_amount, pay_method, paid_amount, entry_id, card_no, operator_id, note)
            VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
        ");
        $stmt->execute([
            $member_id,
            $member_no,
            (int)$pack['id'],
            $pack['package_name'],
            $recharge,
            $gift,
            $arrive,
            $pay_method,
            $recharge,
            $entry_id,
            $entry['card_no'] ?? '',
            current_user()['id'] ?? 0,
            '会员办理/充值'
        ]);''',
'''        $stmt = $pdo->prepare("
            INSERT INTO sy_member_recharges
            (member_id, member_no, package_id, package_name, recharge_amount, gift_amount, arrive_amount, pay_method, paid_amount, entry_id, card_no, operator_id, note)
            VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
        ");
        $stmt->execute([
            $member_id,
            $member_no,
            (int)$pack['id'],
            $pack['package_name'],
            $recharge,
            $gift,
            $arrive,
            $pay_method,
            $recharge,
            $entry_id,
            $entry['card_no'] ?? '',
            current_user()['id'] ?? 0,
            '会员办理/充值'
        ]);

        $recharge_id = (int)$pdo->lastInsertId();

        foreach ($rechargePayRows as $method => $amount) {
            $amount = round((float)$amount, 2);
            if ($amount <= 0) continue;

            $stmt = $pdo->prepare("
                INSERT INTO sy_member_recharge_payments
                (recharge_id, member_id, member_no, pay_method, amount, operator_id)
                VALUES (?, ?, ?, ?, ?, ?)
            ");
            $stmt->execute([
                $recharge_id,
                $member_id,
                $member_no,
                $method,
                $amount,
                current_user()['id'] ?? 0
            ]);
        }'''
)

# 套餐 radio 增加 data-recharge，方便前端计算混合支付应收
s = s.replace(
'''<input type="radio" name="package_id" value="<?php echo (int)$p['id']; ?>" required>''',
'''<input type="radio" name="package_id" value="<?php echo (int)$p['id']; ?>" data-recharge="<?php echo number_format((float)$p['recharge_amount'],2,'.',''); ?>" required>'''
)

# 收款方式增加混合支付
s = s.replace(
'''                <label><input type="radio" name="pay_method" value="other"><span>其他</span></label>
            </div>
        </div>

        <button class="btn gold real-submit" type="submit">确认办理并绑定</button>''',
'''                <label><input type="radio" name="pay_method" value="other"><span>其他</span></label>
                <label><input type="radio" name="pay_method" value="mixed"><span>混合</span></label>
            </div>

            <div class="apply-mixed-pay-box" id="applyMixedPayBox" style="display:none;">
                <div class="mixed-pay-title">
                    <strong>充值混合支付</strong>
                    <span id="applyMixedStatus">请选择套餐后录入金额</span>
                </div>

                <div class="mixed-pay-grid">
                    <label>现金<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="现金" name="apply_mixed_cash" id="applyMixedCash" value="0.00" onclick="openMoneyKeypad(this)"></label>
                    <label>微信<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="微信" name="apply_mixed_wechat" id="applyMixedWechat" value="0.00" onclick="openMoneyKeypad(this)"></label>
                    <label>支付宝<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="支付宝" name="apply_mixed_alipay" id="applyMixedAlipay" value="0.00" onclick="openMoneyKeypad(this)"></label>
                    <label>其他<input type="text" inputmode="none" readonly class="money-key-input" data-money-title="其他" name="apply_mixed_other" id="applyMixedOther" value="0.00" onclick="openMoneyKeypad(this)"></label>
                </div>

                <div class="mixed-summary">
                    <div><span>已收合计</span><strong id="applyMixedTotal">¥0.00</strong></div>
                    <div><span>还差</span><strong id="applyMixedDiff">¥0.00</strong></div>
                </div>
            </div>
        </div>

        <div class="money-keypad-mask" id="moneyKeypadMask" style="display:none;">
            <div class="money-keypad-panel">
                <div class="money-keypad-head">
                    <span id="moneyKeypadTitle">输入金额</span>
                    <strong id="moneyKeypadValue">0.00</strong>
                </div>
                <div class="money-keypad-grid">
                    <button type="button" data-money="1">1</button>
                    <button type="button" data-money="2">2</button>
                    <button type="button" data-money="3">3</button>
                    <button type="button" data-money="4">4</button>
                    <button type="button" data-money="5">5</button>
                    <button type="button" data-money="6">6</button>
                    <button type="button" data-money="7">7</button>
                    <button type="button" data-money="8">8</button>
                    <button type="button" data-money="9">9</button>
                    <button type="button" data-action="clear">清空</button>
                    <button type="button" data-money="0">0</button>
                    <button type="button" data-action="back">退格</button>
                    <button type="button" data-money=".">.</button>
                    <button type="button" data-action="ok" class="money-ok">确定</button>
                </div>
            </div>
        </div>

        <button class="btn gold real-submit" type="submit">确认办理并绑定</button>'''
)

# 加会员办理页 JS
if 'function getSelectedPackageAmount' not in s:
    s = s.replace(
'''<?php page_footer(); ?>''',
r'''
<script>
(function(){
    let currentMoneyInput = null;
    let currentMoneyValue = '';

    function money(v){ return '¥' + Number(v || 0).toFixed(2); }

    function getSelectedPackageAmount(){
        const checked = document.querySelector('input[name="package_id"]:checked');
        return checked ? parseFloat(checked.dataset.recharge || '0') : 0;
    }

    window.calcApplyMixed = function(){
        const target = getSelectedPackageAmount();
        const vals = [
            parseFloat(document.getElementById('applyMixedCash')?.value || '0'),
            parseFloat(document.getElementById('applyMixedWechat')?.value || '0'),
            parseFloat(document.getElementById('applyMixedAlipay')?.value || '0'),
            parseFloat(document.getElementById('applyMixedOther')?.value || '0')
        ];

        const sum = vals.reduce((a,b)=>a+(isNaN(b)?0:b),0);
        const diff = target - sum;

        const totalEl = document.getElementById('applyMixedTotal');
        const diffEl = document.getElementById('applyMixedDiff');
        const statusEl = document.getElementById('applyMixedStatus');

        if (totalEl) totalEl.innerText = money(sum);
        if (diffEl) diffEl.innerText = money(Math.max(0,diff));
        if (statusEl) statusEl.innerText = Math.abs(diff) < 0.01 ? '金额已对平' : ('还差 ' + money(Math.max(0,diff)));
    };

    function toggleApplyMixed(){
        const pay = document.querySelector('input[name="pay_method"]:checked')?.value || 'wechat';
        const box = document.getElementById('applyMixedPayBox');
        if (box) box.style.display = pay === 'mixed' ? 'grid' : 'none';
        calcApplyMixed();
    }

    document.querySelectorAll('input[name="pay_method"]').forEach(r=>r.addEventListener('change', toggleApplyMixed));
    document.querySelectorAll('input[name="package_id"]').forEach(r=>r.addEventListener('change', calcApplyMixed));

    window.openMoneyKeypad = function(input) {
        currentMoneyInput = input;
        currentMoneyValue = (input.value || '0').replace(/[^\d.]/g, '');
        if (!currentMoneyValue || currentMoneyValue === '0.00') currentMoneyValue = '';

        document.getElementById('moneyKeypadTitle').innerText = input.dataset.moneyTitle || '输入金额';
        document.getElementById('moneyKeypadValue').innerText = currentMoneyValue || '0.00';
        document.getElementById('moneyKeypadMask').style.display = 'flex';
    };

    function closeMoneyKeypad(save) {
        if (save && currentMoneyInput) {
            let v = parseFloat(currentMoneyValue || '0');
            if (isNaN(v)) v = 0;
            currentMoneyInput.value = v.toFixed(2);
            calcApplyMixed();
        }

        document.getElementById('moneyKeypadMask').style.display = 'none';
        currentMoneyInput = null;
        currentMoneyValue = '';
    }

    document.addEventListener('click', function(e){
        const moneyBtn = e.target.closest('.money-keypad-grid button');
        if (!moneyBtn) return;

        const num = moneyBtn.dataset.money;
        const action = moneyBtn.dataset.action;

        if (num !== undefined) {
            if (num === '.' && currentMoneyValue.indexOf('.') >= 0) return;
            currentMoneyValue += num;
        }

        if (action === 'back') currentMoneyValue = currentMoneyValue.slice(0, -1);
        if (action === 'clear') currentMoneyValue = '';
        if (action === 'ok') {
            closeMoneyKeypad(true);
            return;
        }

        document.getElementById('moneyKeypadValue').innerText = currentMoneyValue || '0.00';
    });

    document.addEventListener('click', function(e){
        if (e.target.id === 'moneyKeypadMask') closeMoneyKeypad(true);
    });

    toggleApplyMixed();
})();
</script>
<?php page_footer(); ?>'''
    )

p.write_text(s, encoding="utf-8")
PY

cat >> assets/style.css <<'CSS'

/* SUYANG_V54_CUSTOM_MONEY_KEYPAD */
.money-key-input {
    cursor: pointer;
    caret-color: transparent;
}

.money-keypad-mask {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,.48);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.money-keypad-panel {
    width: min(520px, 100vw);
    padding: 14px;
    border-radius: 22px 22px 0 0;
    background: #0f151f;
    border-top: 1px solid rgba(248,216,137,.28);
    box-shadow: 0 -18px 50px rgba(0,0,0,.38);
}

.money-keypad-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.money-keypad-head span {
    color: #9ba6b7;
}

.money-keypad-head strong {
    color: #f2c46f;
    font-size: 28px;
}

.money-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.money-keypad-grid button {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.money-keypad-grid .money-ok {
    grid-column: span 2;
    color: #241504;
    background: linear-gradient(135deg,#f8db91,#b77c29);
    border-color: transparent;
}

.apply-mixed-pay-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

@media(max-width:700px) {
    .money-keypad-panel {
        padding: 12px;
    }

    .money-keypad-grid button {
        min-height: 44px;
    }

    .money-keypad-head strong {
        font-size: 24px;
    }
}

/* SUYANG_V54B_CENTER_MONEY_KEYPAD */
.money-keypad-mask{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px;
    background: rgba(4,10,18,.66);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.money-keypad-panel{
    width: min(560px, calc(100vw - 28px));
    max-width: 560px;
    border-radius: 26px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(20,27,39,.98) 0%, rgba(10,17,28,.98) 100%);
    border: 1px solid rgba(248,216,137,.22);
    box-shadow:
        0 28px 80px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.money-keypad-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.money-keypad-head span{
    color: #c9d3df;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .5px;
}

.money-keypad-head strong{
    color: #f2c46f;
    font-size: 46px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1px;
}

.money-keypad-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.money-keypad-grid button{
    min-height: 62px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, #f8f8f8 0%, #dddddd 100%);
    color: #245cc4;
    font-size: 30px;
    font-weight: 900;
    box-shadow:
        0 4px 14px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.85);
    transition: transform .08s ease, box-shadow .08s ease, opacity .08s ease;
}

.money-keypad-grid button:active{
    transform: scale(.97);
    box-shadow:
        0 2px 8px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.55);
}

.money-keypad-grid button[data-action="clear"],
.money-keypad-grid button[data-action="back"]{
    color: #2f6dd7;
    font-size: 24px;
}

.money-keypad-grid button[data-money="."]{
    font-size: 34px;
}

.money-keypad-grid .money-ok{
    grid-column: span 2;
    color: #241504;
    background: linear-gradient(135deg,#fae19b 0%, #efc86c 45%, #c68931 100%);
    border-color: rgba(255,214,120,.55);
    box-shadow:
        0 8px 22px rgba(198,137,49,.28),
        inset 0 1px 0 rgba(255,255,255,.45);
    font-size: 26px;
}

.money-key-input{
    cursor: pointer;
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

@media(max-width: 768px){
    .money-keypad-mask{
        padding: 14px;
    }

    .money-keypad-panel{
        width: min(520px, calc(100vw - 20px));
        border-radius: 22px;
        padding: 14px;
    }

    .money-keypad-head{
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .money-keypad-head span{
        font-size: 17px;
    }

    .money-keypad-head strong{
        font-size: 40px;
    }

    .money-keypad-grid{
        gap: 10px;
    }

    .money-keypad-grid button{
        min-height: 58px;
        border-radius: 16px;
        font-size: 28px;
    }

    .money-keypad-grid button[data-action="clear"],
    .money-keypad-grid button[data-action="back"]{
        font-size: 22px;
    }

    .money-keypad-grid .money-ok{
        font-size: 24px;
    }
}

@media(max-width: 430px){
    .money-keypad-panel{
        width: calc(100vw - 18px);
        border-radius: 20px;
        padding: 12px;
    }

    .money-keypad-head strong{
        font-size: 36px;
    }

    .money-keypad-grid{
        gap: 9px;
    }

    .money-keypad-grid button{
        min-height: 54px;
        font-size: 26px;
        border-radius: 15px;
    }

    .money-keypad-grid button[data-action="clear"],
    .money-keypad-grid button[data-action="back"]{
        font-size: 20px;
    }

    .money-keypad-grid .money-ok{
        font-size: 22px;
    }
}

/* SUYANG_V55_MIXED_MEMBER_CONFIRM_AND_BIG_KEYPAD */

/* 金额键盘改成更像会员号键盘的大按钮居中版 */
.money-keypad-mask{
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    background: rgba(3,8,15,.68) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.money-keypad-panel{
    width: min(680px, calc(100vw - 20px)) !important;
    max-width: 680px !important;
    border-radius: 28px !important;
    padding: 18px !important;
    background: linear-gradient(180deg, rgba(20,28,42,.98), rgba(10,17,28,.99)) !important;
    border: 1px solid rgba(248,216,137,.24) !important;
    box-shadow: 0 26px 80px rgba(0,0,0,.55) !important;
}

.money-keypad-head{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.money-keypad-head span{
    color: #d9e2ef !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

.money-keypad-head strong{
    color: #f2c46f !important;
    font-size: 46px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.money-keypad-grid{
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

.money-keypad-grid button{
    min-height: 66px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 5px 16px rgba(0,0,0,.22) !important;
}

.money-keypad-grid button:active{
    transform: scale(.97) !important;
}

.money-keypad-grid button[data-action="clear"],
.money-keypad-grid button[data-action="back"]{
    color: #f2c46f !important;
    font-size: 23px !important;
}

.money-keypad-grid .money-ok{
    grid-column: span 2 !important;
    color: #241504 !important;
    background: linear-gradient(135deg,#fae19b,#e4ab38) !important;
    border-color: rgba(255,214,120,.55) !important;
    font-size: 26px !important;
}

/* 混合支付会员确认 */
.confirm-member-btn{
    min-height: 40px;
    border: 0;
    border-radius: 13px;
    color: #241504;
    background: linear-gradient(135deg,#fae19b,#d9952d);
    font-weight: 900;
}

.mixed-member-status{
    padding: 9px 10px;
    border-radius: 12px;
    color: #aeb8c7;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    line-height: 1.4;
}

.mixed-member-status.ok{
    color: #8fe6b0;
    border-color: rgba(143,230,176,.25);
    background: rgba(143,230,176,.08);
}

.member-money-locked{
    cursor: pointer;
}

@media(max-width:700px){
    .money-keypad-panel{
        width: calc(100vw - 18px) !important;
        border-radius: 24px !important;
        padding: 14px !important;
    }

    .money-keypad-head strong{
        font-size: 40px !important;
    }

    .money-keypad-grid{
        gap: 10px !important;
    }

    .money-keypad-grid button{
        min-height: 62px !important;
        border-radius: 18px !important;
        font-size: 28px !important;
    }
}

@media(max-width:390px){
    .money-keypad-grid button{
        min-height: 58px !important;
        font-size: 26px !important;
    }

    .money-keypad-head strong{
        font-size: 36px !important;
    }
}

/* SUYANG_V56_CHECKOUT_PAY_MODE */
.pay-mode-card {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
}

.pay-mode-card span {
    color: #9ba6b7;
    font-size: 18px;
    font-weight: 800;
}

.pay-mode-card b {
    grid-row: span 2;
    color: #f2c46f;
    font-size: 38px;
    font-weight: 900;
    white-space: nowrap;
}

.pay-mode-card em {
    grid-column: 1 / 2;
    color: #d5deea;
    font-style: normal;
    font-size: 14px;
}

.confirm-member-btn {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    color: #241504;
    background: linear-gradient(135deg,#fae19b,#d9952d);
    font-weight: 900;
    font-size: 15px;
}

.mixed-member-status {
    padding: 9px 10px;
    border-radius: 12px;
    color: #aeb8c7;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    line-height: 1.4;
}

.mixed-member-status.ok {
    color: #8fe6b0;
    border-color: rgba(143,230,176,.25);
    background: rgba(143,230,176,.08);
}

@media(max-width:700px) {
    .pay-mode-card span {
        font-size: 16px;
    }

    .pay-mode-card b {
        font-size: 32px;
    }

    .pay-mode-card em {
        font-size: 12px;
    }
}

/* SUYANG_V57_KEYPAD_ANTI_ZOOM */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

body {
    overscroll-behavior-x: none !important;
}

.main,
.app,
.panel,
.checkout-simple,
.checkout-fast-panel,
.v52-member-box,
.mixed-member-mini,
.money-keypad-panel {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.member-keypad,
.member-keypad *,
.money-keypad-grid,
.money-keypad-grid *,
.money-keypad-panel,
.money-keypad-panel *,
.v52-methods,
.v52-methods *,
.v53-methods,
.v53-methods * {
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.member-keypad button,
.money-keypad-grid button,
.v52-methods button,
.v53-methods button {
    touch-action: manipulation !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

/* iPhone Safari：input 字号小于 16px 容易自动放大 */
input,
select,
textarea {
    font-size: 16px !important;
}

/* 会员号键盘放大一点，减少误点 */
.member-keypad {
    gap: 10px !important;
}

.member-keypad button {
    min-height: 48px !important;
    border-radius: 15px !important;
    font-size: 20px !important;
}

/* 结账方式按钮防止文字撑开 */
.v52-methods button,
.v53-methods button {
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

/* 金额键盘继续保持大按钮 */
.money-keypad-grid button {
    min-height: 66px !important;
    font-size: 30px !important;
}

/* 防止弹窗内容被横向拖动 */
.money-keypad-mask {
    overflow: hidden !important;
}

@media(max-width:700px) {
    .member-keypad {
        gap: 9px !important;
    }

    .member-keypad button {
        min-height: 50px !important;
        font-size: 20px !important;
    }

    .money-keypad-grid button {
        min-height: 62px !important;
        font-size: 28px !important;
    }
}

@media(max-width:390px) {
    .member-keypad button {
        min-height: 48px !important;
        font-size: 19px !important;
    }

    .money-keypad-grid button {
        min-height: 58px !important;
        font-size: 26px !important;
    }
}

/* SUYANG_V58_CLEAR_MEMBER_FIX */
.member-action-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.clear-checkout-member-btn{
    min-height:42px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    color:#f2c46f;
    background:rgba(255,255,255,.055);
    font-weight:900;
    font-size:15px;
}

.clear-checkout-member-btn:active,
.confirm-member-btn:active{
    transform:scale(.98);
}

@media(max-width:700px){
    .member-action-row{
        grid-template-columns:1fr 1fr;
        gap:7px;
    }

    .clear-checkout-member-btn,
    .confirm-member-btn{
        min-height:44px;
        font-size:14px;
    }
}

/* SUYANG_V511_MIXED_MEMBER_CLICK_FIX */
#mixedMember{
    cursor:pointer !important;
    pointer-events:auto !important;
}

.member-money-locked{
    color:#f2c46f !important;
    background:rgba(218,168,83,.08) !important;
    border-color:rgba(218,168,83,.22) !important;
}

.member-money-locked::placeholder{
    color:#f2c46f !important;
}

.mixed-member-mini{
    display:grid;
    gap:9px;
    padding:10px;
    border-radius:16px;
    background:rgba(218,168,83,.07);
    border:1px solid rgba(218,168,83,.16);
}

.confirm-member-btn{
    min-height:44px;
    border:0;
    border-radius:14px;
    color:#241504;
    background:linear-gradient(135deg,#fae19b,#d9952d);
    font-weight:900;
    font-size:15px;
}

.mixed-member-status{
    padding:9px 10px;
    border-radius:12px;
    color:#aeb8c7;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
    font-size:13px;
    line-height:1.4;
}

.mixed-member-status.ok{
    color:#8fe6b0;
    border-color:rgba(143,230,176,.25);
    background:rgba(143,230,176,.08);
}

/* SUYANG_V512_MIXED_MEMBER_FINAL_FIX */
#mixedMember {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.member-amount-confirmed {
    color: #8fe6b0 !important;
    background: rgba(143,230,176,.08) !important;
    border-color: rgba(143,230,176,.28) !important;
    font-weight: 900 !important;
}

.member-money-locked {
    color: #f2c46f !important;
    background: rgba(218,168,83,.08) !important;
    border-color: rgba(218,168,83,.22) !important;
}

.member-money-locked::placeholder {
    color: #f2c46f !important;
}

.mixed-member-mini {
    display: grid;
    gap: 9px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(218,168,83,.07);
    border: 1px solid rgba(218,168,83,.16);
}

.mixed-member-status {
    padding: 9px 10px;
    border-radius: 12px;
    color: #aeb8c7;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    line-height: 1.4;
}

.mixed-member-status.ok {
    color: #8fe6b0;
    border-color: rgba(143,230,176,.25);
    background: rgba(143,230,176,.08);
}

.confirm-member-btn {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    color: #241504;
    background: linear-gradient(135deg,#fae19b,#d9952d);
    font-weight: 900;
    font-size: 15px;
}

/* SUYANG_V514_CHECKOUT_BUTTON_FINAL */
.mixed-other-auto{
    color:inherit !important;
    background:#151b25 !important;
    border-color:rgba(255,255,255,.12) !important;
}

#checkoutSubmit:not(:disabled){
    opacity:1 !important;
    filter:none !important;
}

#checkoutSubmit:disabled{
    opacity:.48 !important;
}

/* SUYANG_V515_HIDE_MIXED_MEMBER_INFO */
.mixed-member-hidden-after-amount{
    display:none !important;
}

.member-amount-confirmed{
    color:#8fe6b0 !important;
    background:rgba(143,230,176,.08) !important;
    border-color:rgba(143,230,176,.28) !important;
    font-weight:900 !important;
}

/* SUYANG_V516_INLINE_MEMBER_ERROR */
.pay-inline-error{
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,82,82,.10);
    border: 1px solid rgba(255,82,82,.28);
    color: #ffb4b4;
    font-weight: 800;
    line-height: 1.45;
}

#checkoutMemberStatus,
#mixedMemberStatus{
    transition: all .15s ease;
}

#checkoutMemberStatus:not(.ok),
#mixedMemberStatus:not(.ok){
    color: #ffb4b4;
    border-color: rgba(255,82,82,.28);
    background: rgba(255,82,82,.08);
}

/* SUYANG_V518_CLEAR_MIXED_ON_SWITCH */
.member-money-locked{
    color:#f2c46f !important;
    background:rgba(218,168,83,.08) !important;
    border-color:rgba(218,168,83,.22) !important;
}

.member-money-locked::placeholder{
    color:#f2c46f !important;
}

/* SUYANG_V519_CHECKOUT_CLEAN */
.v519-methods{}
.member-confirm-box,
.mixed-member-mini{
    display:grid;
    gap:9px;
    padding:10px;
    border-radius:16px;
    background:rgba(218,168,83,.07);
    border:1px solid rgba(218,168,83,.16);
}

.pay-mode-card{
    display:grid!important;
    grid-template-columns:1fr auto;
    gap:4px 12px;
    align-items:center;
}

.pay-mode-card span{
    color:#9ba6b7;
    font-size:18px;
    font-weight:800;
}

.pay-mode-card b{
    grid-row:span 2;
    color:#f2c46f;
    font-size:38px;
    font-weight:900;
    white-space:nowrap;
}

.pay-mode-card em{
    grid-column:1/2;
    color:#d5deea;
    font-style:normal;
    font-size:14px;
}

.v53-methods{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:8px;
}

.v53-methods button{
    min-height:42px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:rgba(255,255,255,.055);
    color:#dce5f2;
    font-weight:900;
}

.v53-methods button.active{
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#b77c29);
    border-color:transparent;
}

.member-keypad{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px!important;
}

.member-keypad button{
    min-height:50px!important;
    border-radius:15px!important;
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:20px!important;
    font-weight:900;
    touch-action:manipulation!important;
    user-select:none!important;
    -webkit-user-select:none!important;
}

.confirm-member-btn{
    min-height:44px;
    border:0;
    border-radius:14px;
    color:#241504;
    background:linear-gradient(135deg,#fae19b,#d9952d);
    font-weight:900;
    font-size:15px;
}

.mixed-member-status{
    padding:9px 10px;
    border-radius:12px;
    color:#ffb4b4;
    background:rgba(255,82,82,.08);
    border:1px solid rgba(255,82,82,.25);
    font-size:13px;
    line-height:1.4;
}

.mixed-member-status.ok{
    color:#8fe6b0;
    border-color:rgba(143,230,176,.25);
    background:rgba(143,230,176,.08);
}

.mixed-pay-box{
    display:grid;
    gap:10px;
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
}

.mixed-pay-title{
    display:flex;
    justify-content:space-between;
    gap:10px;
}

.mixed-pay-title strong{color:#f2c46f;}
.mixed-pay-title span{color:#9ba6b7;font-size:13px;}

.mixed-pay-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
}

.mixed-pay-grid label{
    display:grid;
    gap:5px;
    color:#d5deea;
    font-size:13px;
}

.mixed-pay-grid input{
    min-height:38px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.12);
    background:#151b25;
    color:#fff;
    padding:0 10px;
    font-size:16px!important;
}

.member-money-locked{
    color:#f2c46f!important;
    background:rgba(218,168,83,.08)!important;
    border-color:rgba(218,168,83,.22)!important;
}

.member-amount-confirmed{
    color:#8fe6b0!important;
    background:rgba(143,230,176,.08)!important;
    border-color:rgba(143,230,176,.28)!important;
    font-weight:900!important;
}

.mixed-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.mixed-summary div{
    padding:10px;
    border-radius:14px;
    background:rgba(218,168,83,.08);
    border:1px solid rgba(218,168,83,.18);
}

.mixed-summary span,
.mixed-summary strong{
    display:block;
}

.mixed-summary span{
    color:#9ba6b7;
    font-size:12px;
}

.mixed-summary strong{
    margin-top:4px;
    color:#f2c46f;
}

.money-keypad-mask{
    position:fixed!important;
    inset:0!important;
    z-index:99999!important;
    display:flex;
    align-items:center!important;
    justify-content:center!important;
    padding:16px!important;
    background:rgba(3,8,15,.68)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
}

.money-keypad-panel{
    width:min(680px, calc(100vw - 20px))!important;
    border-radius:28px!important;
    padding:18px!important;
    background:linear-gradient(180deg, rgba(20,28,42,.98), rgba(10,17,28,.99))!important;
    border:1px solid rgba(248,216,137,.24)!important;
    box-shadow:0 26px 80px rgba(0,0,0,.55)!important;
}

.money-keypad-head{
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    margin-bottom:14px!important;
    padding-bottom:12px!important;
    border-bottom:1px solid rgba(255,255,255,.08)!important;
}

.money-keypad-head span{
    color:#d9e2ef!important;
    font-size:20px!important;
    font-weight:900!important;
}

.money-keypad-head strong{
    color:#f2c46f!important;
    font-size:46px!important;
    line-height:1!important;
    font-weight:900!important;
}

.money-keypad-grid{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:12px!important;
}

.money-keypad-grid button{
    min-height:66px!important;
    border-radius:20px!important;
    border:1px solid rgba(255,255,255,.11)!important;
    background:rgba(255,255,255,.07)!important;
    color:#fff!important;
    font-size:30px!important;
    font-weight:900!important;
    touch-action:manipulation!important;
    user-select:none!important;
    -webkit-user-select:none!important;
}

.money-keypad-grid .money-ok{
    grid-column:span 2!important;
    color:#241504!important;
    background:linear-gradient(135deg,#fae19b,#e4ab38)!important;
    border-color:rgba(255,214,120,.55)!important;
    font-size:26px!important;
}

.pay-inline-error{
    padding:10px 12px;
    border-radius:14px;
    background:rgba(255,82,82,.10);
    border:1px solid rgba(255,82,82,.28);
    color:#ffb4b4;
    font-weight:800;
    line-height:1.45;
}

@media(max-width:980px){
    .v53-methods{grid-template-columns:repeat(3,1fr);}
    .mixed-pay-grid{grid-template-columns:repeat(2,1fr);}
    .pay-mode-card b{font-size:32px;}
    .pay-mode-card span{font-size:16px;}
    .pay-mode-card em{font-size:12px;}
}

/* SUYANG_V60_WAITER_ORDER */
.order-page{
    display:grid;
    gap:12px;
}

.order-operate-panel{
    padding:14px;
    border-radius:22px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.order-title-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:12px;
}

.order-title-row h2{
    margin:0;
    font-size:28px;
}

.order-title-row p{
    margin:5px 0 0;
    color:#9ba6b7;
}

.order-title-row span{
    color:#f2c46f;
    font-weight:900;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(218,168,83,.10);
    border:1px solid rgba(218,168,83,.20);
    white-space:nowrap;
}

.order-card-input{
    display:grid;
    grid-template-columns:minmax(0,1fr) 86px;
    gap:8px;
}

.order-card-input input,
.order-remark{
    min-height:42px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:#151b25;
    color:#fff;
    padding:0 12px;
    font-size:16px;
}

.order-card-input button{
    border:0;
    border-radius:14px;
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#b77c29);
    font-weight:900;
}

.order-current-card{
    margin-top:10px;
    padding:11px;
    border-radius:16px;
    background:rgba(218,168,83,.08);
    border:1px solid rgba(218,168,83,.18);
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
}

.order-current-card strong{
    display:block;
    color:#fff;
    font-size:26px;
}

.order-current-card span{
    display:block;
    margin-top:4px;
    color:#9ba6b7;
}

.order-current-card b{
    color:#f2c46f;
    font-size:24px;
    white-space:nowrap;
}

.order-empty-tip,
.order-selected-item{
    margin-top:10px;
    padding:10px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    color:#9ba6b7;
}

.order-selected-item span,
.order-selected-item strong{
    display:block;
}

.order-selected-item strong{
    margin-top:4px;
    color:#dce5f2;
}

.order-selected-item.active{
    background:rgba(143,230,176,.08);
    border-color:rgba(143,230,176,.24);
}

.order-selected-item.active strong{
    color:#8fe6b0;
}

.order-qty-row{
    margin-top:10px;
    display:grid;
    grid-template-columns:auto 48px 70px 48px;
    gap:8px;
    align-items:center;
}

.order-qty-row span{
    color:#d5deea;
    font-weight:900;
}

.order-qty-row button{
    min-height:42px;
    border:0;
    border-radius:14px;
    color:#fff;
    background:rgba(255,255,255,.08);
    font-size:22px;
    font-weight:900;
}

.order-qty-row input{
    min-height:42px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:#151b25;
    color:#fff;
    text-align:center;
    font-size:18px;
    font-weight:900;
}

.order-remark{
    width:100%;
    margin-top:10px;
}

.order-submit{
    margin-top:10px;
    width:100%;
    min-height:46px;
    font-size:16px;
}

.order-catalog-panel,
.active-card-panel,
.order-recent-panel{
    padding:14px;
}

.order-catalog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:10px;
}

.order-item-btn{
    text-align:left;
    min-height:72px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.045);
    color:#fff;
    padding:12px;
}

.order-item-btn strong,
.order-item-btn span{
    display:block;
}

.order-item-btn strong{
    font-size:17px;
}

.order-item-btn span{
    margin-top:7px;
    color:#9ba6b7;
    font-size:12px;
}

.order-item-btn.active{
    border-color:rgba(248,216,137,.55);
    background:rgba(218,168,83,.12);
}

.order-item-btn.active strong{
    color:#f2c46f;
}

.active-card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
    gap:9px;
}

.active-card-grid a{
    display:grid;
    gap:4px;
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
    color:inherit;
}

.active-card-grid strong{
    font-size:22px;
    color:#fff;
}

.active-card-grid span{
    color:#9ba6b7;
}

.active-card-grid b{
    color:#f2c46f;
}

@media(max-width:980px){
    .order-title-row h2{
        font-size:24px;
    }

    .order-title-row p{
        font-size:12px;
    }

    .order-operate-panel{
        padding:12px;
        border-radius:19px;
    }

    .order-catalog-grid{
        grid-template-columns:repeat(2,1fr);
        gap:8px;
    }

    .order-item-btn{
        min-height:68px;
        border-radius:16px;
        padding:10px;
    }

    .order-item-btn strong{
        font-size:15px;
    }

    .active-card-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:390px){
    .active-card-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .order-card-input{
        grid-template-columns:minmax(0,1fr) 76px;
    }
}

/* SUYANG_V61_WAITER_ORDER_POLISH */
.order-v61-page{
    display:grid;
    gap:14px;
}

.order-v61-top,
.order-v61-panel{
    padding:16px;
    border-radius:24px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.order-v61-head,
.order-v61-panel-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.order-v61-head h2,
.order-v61-panel-head h2{
    margin:0;
    font-size:30px;
    color:#fff;
}

.order-v61-head p{
    margin:6px 0 0;
    color:#9ba6b7;
    line-height:1.45;
}

.order-v61-head span,
.order-v61-panel-head span{
    color:#f2c46f;
    font-weight:900;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(218,168,83,.10);
    border:1px solid rgba(218,168,83,.20);
    white-space:nowrap;
}

.order-v61-form{
    display:grid;
    gap:12px;
}

.order-v61-search{
    display:grid;
    grid-template-columns:minmax(0,1fr) 96px;
    gap:10px;
}

.order-v61-search input,
.order-v61-remark{
    min-height:48px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.12);
    background:#151b25;
    color:#fff;
    padding:0 14px;
    font-size:16px;
}

.order-v61-search button,
.order-v61-submit{
    border:0;
    border-radius:16px;
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#b77c29);
    font-weight:900;
    font-size:16px;
}

.order-v61-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:14px;
    border-radius:18px;
    background:rgba(218,168,83,.08);
    border:1px solid rgba(218,168,83,.20);
}

.order-v61-card strong{
    display:block;
    color:#fff;
    font-size:34px;
    line-height:1;
}

.order-v61-card p{
    margin:8px 0 0;
    color:#9ba6b7;
}

.order-v61-card b{
    color:#f2c46f;
    font-size:30px;
    white-space:nowrap;
}

.order-v61-tip,
.order-v61-selected{
    padding:13px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    color:#9ba6b7;
}

.order-v61-selected span,
.order-v61-selected strong{
    display:block;
}

.order-v61-selected strong{
    margin-top:5px;
    color:#dce5f2;
    font-size:18px;
}

.order-v61-selected.active{
    background:rgba(143,230,176,.08);
    border-color:rgba(143,230,176,.25);
}

.order-v61-selected.active strong{
    color:#8fe6b0;
}

.order-v61-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) 160px;
    gap:10px;
    align-items:center;
}

.order-v61-qty{
    display:grid;
    grid-template-columns:auto 52px 76px 52px;
    gap:8px;
    align-items:center;
}

.order-v61-qty span{
    color:#dce5f2;
    font-weight:900;
}

.order-v61-qty button{
    min-height:48px;
    border:0;
    border-radius:16px;
    color:#fff;
    background:rgba(255,255,255,.08);
    font-size:24px;
    font-weight:900;
}

.order-v61-qty input{
    min-height:48px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.12);
    background:#151b25;
    color:#fff;
    text-align:center;
    font-size:22px;
    font-weight:900;
}

.order-v61-submit{
    min-height:52px;
}

.order-v61-submit:disabled{
    opacity:.45;
}

.order-v61-catalog{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:12px;
}

.order-v61-item{
    min-height:106px;
    text-align:left;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.045);
    color:#fff;
    padding:14px;
    display:grid;
    gap:6px;
    align-content:center;
}

.order-v61-item strong{
    font-size:20px;
    line-height:1.15;
}

.order-v61-item span{
    color:#9ba6b7;
    font-size:13px;
}

.order-v61-item b{
    color:#f2c46f;
    font-size:18px;
}

.order-v61-item.active{
    background:rgba(218,168,83,.13);
    border-color:rgba(248,216,137,.58);
}

.order-v61-item.active strong{
    color:#f2c46f;
}

.order-v61-active{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
    gap:10px;
}

.order-v61-active a{
    display:grid;
    gap:6px;
    min-height:94px;
    padding:13px;
    border-radius:18px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
    color:inherit;
}

.order-v61-active strong{
    color:#fff;
    font-size:25px;
}

.order-v61-active span{
    color:#9ba6b7;
}

.order-v61-active b{
    color:#f2c46f;
    font-size:20px;
}

@media(max-width:980px){
    .order-v61-top,
    .order-v61-panel{
        padding:14px;
        border-radius:22px;
    }

    .order-v61-head h2,
    .order-v61-panel-head h2{
        font-size:26px;
    }

    .order-v61-head p{
        font-size:13px;
    }

    .order-v61-search{
        grid-template-columns:minmax(0,1fr) 88px;
    }

    .order-v61-card strong{
        font-size:32px;
    }

    .order-v61-card b{
        font-size:28px;
    }

    .order-v61-actions{
        grid-template-columns:1fr;
    }

    .order-v61-submit{
        width:100%;
    }

    .order-v61-catalog{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .order-v61-item{
        min-height:104px;
        padding:13px;
        border-radius:20px;
    }

    .order-v61-item strong{
        font-size:19px;
    }

    .order-v61-active{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:390px){
    .order-v61-catalog{
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .order-v61-item{
        min-height:98px;
        padding:12px;
    }

    .order-v61-item strong{
        font-size:17px;
    }

    .order-v61-item b{
        font-size:16px;
    }
}

/* SUYANG_V62_WAITER_MULTI_SELECT */
.order-v62-page{
    display:grid;
    gap:14px;
}

.order-v62-sticky{
    position:sticky;
    top:0;
    z-index:20;
    padding:14px;
    border-radius:24px;
    background:rgba(15,22,34,.96);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.order-v62-form{
    display:grid;
    gap:10px;
}

.order-v62-head{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
}

.order-v62-head h2{
    margin:0;
    font-size:30px;
    color:#fff;
}

.order-v62-head p{
    margin:5px 0 0;
    color:#9ba6b7;
}

.order-v62-head span{
    color:#f2c46f;
    font-weight:900;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(218,168,83,.10);
    border:1px solid rgba(218,168,83,.20);
    white-space:nowrap;
}

.order-v62-cardline{
    display:grid;
    grid-template-columns:minmax(0,1fr) 92px;
    gap:9px;
}

.order-v62-cardline input,
.order-v62-remark{
    min-height:48px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.12);
    background:#151b25;
    color:#fff;
    padding:0 14px;
    font-size:16px;
}

.order-v62-cardline button,
.order-v62-submit{
    min-height:48px;
    border:0;
    border-radius:16px;
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#b77c29);
    font-weight:900;
    font-size:16px;
}

.order-v62-current{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:18px;
    background:rgba(218,168,83,.08);
    border:1px solid rgba(218,168,83,.20);
}

.order-v62-current strong{
    display:block;
    color:#fff;
    font-size:32px;
    line-height:1;
}

.order-v62-current span{
    display:block;
    margin-top:7px;
    color:#9ba6b7;
}

.order-v62-current b{
    color:#f2c46f;
    font-size:28px;
    white-space:nowrap;
}

.order-v62-tip{
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    color:#9ba6b7;
}

.order-v62-cart{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:16px;
    background:rgba(143,230,176,.08);
    border:1px solid rgba(143,230,176,.22);
}

.order-v62-cart span,
.order-v62-cart strong{
    display:block;
}

.order-v62-cart span{
    color:#9ba6b7;
    font-size:12px;
}

.order-v62-cart strong{
    margin-top:4px;
    color:#8fe6b0;
    line-height:1.35;
}

.order-v62-cart b{
    color:#f2c46f;
    font-size:24px;
    white-space:nowrap;
}

.order-v62-submit:disabled{
    opacity:.45;
}

.order-v62-panel{
    padding:16px;
    border-radius:24px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.order-v62-panel-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.order-v62-panel-head h2{
    margin:0;
    font-size:28px;
}

.order-v62-panel-head span{
    color:#9ba6b7;
    font-size:13px;
}

.order-v62-catalog{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(175px,1fr));
    gap:12px;
}

.order-v62-item{
    border:1px solid rgba(255,255,255,.09);
    border-radius:22px;
    background:rgba(255,255,255,.045);
    color:#fff;
    padding:12px;
    display:grid;
    gap:10px;
    text-align:left;
    min-height:128px;
}

.order-v62-item-main{
    display:grid;
    gap:5px;
}

.order-v62-item strong{
    font-size:20px;
    line-height:1.15;
}

.order-v62-item span{
    color:#9ba6b7;
    font-size:13px;
}

.order-v62-item b{
    color:#f2c46f;
    font-size:18px;
}

.order-v62-item.active{
    background:rgba(218,168,83,.14);
    border-color:rgba(248,216,137,.55);
}

.order-v62-item.active strong{
    color:#f2c46f;
}

.order-v62-item-qty{
    display:grid;
    grid-template-columns:44px 1fr 44px;
    gap:8px;
    align-items:center;
}

.order-v62-item-qty button{
    min-height:42px;
    border:0;
    border-radius:14px;
    color:#fff;
    background:rgba(255,255,255,.10);
    font-size:22px;
    font-weight:900;
}

.order-v62-item-qty em{
    min-height:42px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:rgba(0,0,0,.16);
    color:#fff;
    font-style:normal;
    font-size:20px;
    font-weight:900;
}

.order-v62-active{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
    gap:10px;
}

.order-v62-active a{
    display:grid;
    gap:6px;
    min-height:94px;
    padding:13px;
    border-radius:18px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
    color:inherit;
}

.order-v62-active strong{
    color:#fff;
    font-size:25px;
}

.order-v62-active span{
    color:#9ba6b7;
}

.order-v62-active b{
    color:#f2c46f;
    font-size:20px;
}

@media(max-width:980px){
    .order-v62-sticky{
        top:0;
        padding:12px;
        border-radius:22px;
    }

    .order-v62-head h2{
        font-size:25px;
    }

    .order-v62-head p{
        font-size:12px;
    }

    .order-v62-current strong{
        font-size:30px;
    }

    .order-v62-current b{
        font-size:26px;
    }

    .order-v62-catalog{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .order-v62-item{
        min-height:128px;
        padding:11px;
        border-radius:20px;
    }

    .order-v62-item strong{
        font-size:18px;
    }

    .order-v62-panel{
        padding:14px;
        border-radius:22px;
    }

    .order-v62-panel-head h2{
        font-size:24px;
    }

    .order-v62-active{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:390px){
    .order-v62-cardline{
        grid-template-columns:minmax(0,1fr) 82px;
    }

    .order-v62-item{
        min-height:122px;
    }

    .order-v62-item strong{
        font-size:17px;
    }

    .order-v62-item b{
        font-size:16px;
    }

    .order-v62-item-qty{
        grid-template-columns:40px 1fr 40px;
    }

    .order-v62-item-qty button,
    .order-v62-item-qty em{
        min-height:40px;
    }
}

/* SUYANG_V63_WAITER_ORDER_SIMPLE_SELECT */
.order-v63-page{
    display:grid;
    gap:14px;
}

.order-v63-top{
    padding:14px;
    border-radius:24px;
    background:rgba(15,22,34,.96);
    border:1px solid rgba(255,255,255,.08);
}

.order-v63-form{
    display:grid;
    gap:10px;
}

.order-v63-title{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
}

.order-v63-title h2{
    margin:0;
    font-size:30px;
    color:#fff;
}

.order-v63-title p{
    margin:5px 0 0;
    color:#9ba6b7;
}

.order-v63-title span{
    color:#f2c46f;
    font-weight:900;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(218,168,83,.10);
    border:1px solid rgba(218,168,83,.20);
    white-space:nowrap;
}

.order-v63-confirm-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 118px;
    gap:10px;
}

.order-v63-confirm-row input,
.order-v63-remark{
    min-height:52px;
    border-radius:17px;
    border:1px solid rgba(255,255,255,.12);
    background:#151b25;
    color:#fff;
    padding:0 15px;
    font-size:18px;
    font-weight:800;
}

.order-v63-confirm-row button,
.order-v63-submit{
    min-height:52px;
    border:0;
    border-radius:17px;
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#b77c29);
    font-weight:900;
    font-size:16px;
}

.order-v63-current{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:18px;
    background:rgba(218,168,83,.08);
    border:1px solid rgba(218,168,83,.20);
}

.order-v63-current strong{
    display:block;
    color:#fff;
    font-size:34px;
    line-height:1;
}

.order-v63-current span{
    display:block;
    margin-top:7px;
    color:#9ba6b7;
}

.order-v63-current b{
    color:#f2c46f;
    font-size:28px;
    white-space:nowrap;
}

.order-v63-tip{
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    color:#9ba6b7;
}

.order-v63-cart{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:17px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.order-v63-cart span,
.order-v63-cart strong{
    display:block;
}

.order-v63-cart span{
    color:#9ba6b7;
    font-size:12px;
}

.order-v63-cart strong{
    margin-top:4px;
    color:#dce5f2;
    line-height:1.35;
}

.order-v63-cart b{
    color:#f2c46f;
    font-size:24px;
    white-space:nowrap;
}

.order-v63-submit{
    width:100%;
    font-size:18px;
}

.order-v63-submit:disabled{
    opacity:.45;
}

.order-v63-success{
    padding:12px;
    border-radius:16px;
    background:rgba(143,230,176,.09);
    border:1px solid rgba(143,230,176,.26);
    color:#8fe6b0;
    font-weight:900;
    line-height:1.45;
}

.order-v63-panel{
    padding:16px;
    border-radius:24px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.order-v63-panel-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.order-v63-panel-head h2{
    margin:0;
    font-size:28px;
}

.order-v63-panel-head span{
    color:#9ba6b7;
    font-size:13px;
}

.order-v63-catalog{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(175px,1fr));
    gap:12px;
}

.order-v63-item{
    position:relative;
    border:2px solid rgba(255,255,255,.09);
    border-radius:24px;
    background:rgba(255,255,255,.045);
    color:#fff;
    padding:12px;
    display:grid;
    gap:10px;
    text-align:left;
    min-height:132px;
    overflow:hidden;
}

.order-v63-check{
    display:none;
    position:absolute;
    top:9px;
    right:9px;
    padding:5px 9px;
    border-radius:999px;
    color:#241504;
    background:linear-gradient(135deg,#fae19b,#d9952d);
    font-size:12px;
    font-weight:900;
}

.order-v63-item-main{
    display:grid;
    gap:5px;
}

.order-v63-item strong{
    font-size:20px;
    line-height:1.15;
}

.order-v63-item span{
    color:#9ba6b7;
    font-size:13px;
}

.order-v63-item b{
    color:#f2c46f;
    font-size:18px;
}

.order-v63-item.active{
    background:linear-gradient(180deg, rgba(218,168,83,.26), rgba(218,168,83,.12));
    border-color:#f2c46f;
    box-shadow:0 0 0 2px rgba(242,196,111,.18), 0 12px 30px rgba(0,0,0,.22);
}

.order-v63-item.active .order-v63-check{
    display:block;
}

.order-v63-item.active strong{
    color:#f2c46f;
}

.order-v63-item.active span{
    color:#f0dba6;
}

.order-v63-item-qty{
    display:grid;
    grid-template-columns:46px 1fr 46px;
    gap:8px;
    align-items:center;
}

.order-v63-item-qty button{
    min-height:44px;
    border:0;
    border-radius:15px;
    color:#fff;
    background:rgba(255,255,255,.12);
    font-size:24px;
    font-weight:900;
}

.order-v63-item.active .order-v63-item-qty button{
    color:#241504;
    background:linear-gradient(135deg,#fae19b,#d9952d);
}

.order-v63-item-qty em{
    min-height:44px;
    display:grid;
    place-items:center;
    border-radius:15px;
    background:rgba(0,0,0,.18);
    color:#fff;
    font-style:normal;
    font-size:22px;
    font-weight:900;
}

.order-v63-active{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
    gap:10px;
}

.order-v63-active a{
    display:grid;
    gap:6px;
    min-height:94px;
    padding:13px;
    border-radius:18px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
    color:inherit;
}

.order-v63-active strong{
    color:#fff;
    font-size:25px;
}

.order-v63-active span{
    color:#9ba6b7;
}

.order-v63-active b{
    color:#f2c46f;
    font-size:20px;
}

.order-v63-detail{
    margin-bottom:30px;
}

@media(max-width:980px){
    .order-v63-top{
        padding:12px;
        border-radius:22px;
    }

    .order-v63-title h2{
        font-size:26px;
    }

    .order-v63-title p{
        font-size:12px;
    }

    .order-v63-confirm-row{
        grid-template-columns:minmax(0,1fr) 108px;
        gap:8px;
    }

    .order-v63-confirm-row input,
    .order-v63-confirm-row button{
        min-height:50px;
        font-size:16px;
    }

    .order-v63-current strong{
        font-size:31px;
    }

    .order-v63-current b{
        font-size:26px;
    }

    .order-v63-panel{
        padding:14px;
        border-radius:22px;
    }

    .order-v63-panel-head h2{
        font-size:24px;
    }

    .order-v63-catalog{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .order-v63-item{
        min-height:130px;
        padding:11px;
        border-radius:21px;
    }

    .order-v63-item strong{
        font-size:18px;
    }

    .order-v63-active{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:390px){
    .order-v63-confirm-row{
        grid-template-columns:minmax(0,1fr) 96px;
    }

    .order-v63-catalog{
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .order-v63-item{
        min-height:126px;
    }

    .order-v63-item strong{
        font-size:17px;
    }

    .order-v63-item b{
        font-size:16px;
    }

    .order-v63-item-qty{
        grid-template-columns:40px 1fr 40px;
    }

    .order-v63-item-qty button,
    .order-v63-item-qty em{
        min-height:40px;
    }
}

/* SUYANG_V66_REMOVE_ORDER_REMARK */
.order-v65-remark,
.order-v64-remark,
.order-v63-remark,
.order-v62-remark{
    display:none !important;
}

/* SUYANG_V67B_ORDER_CARD_LOOKUP_ERROR */
.order-v65-tip.is-error,
.order-v64-tip.is-error,
.order-v63-tip.is-error,
.order-v62-tip.is-error{
    color:#ffb4b4 !important;
    background:rgba(255,82,82,.10) !important;
    border-color:rgba(255,82,82,.30) !important;
    font-weight:900 !important;
    line-height:1.45 !important;
}

.order-v65-tip,
.order-v64-tip,
.order-v63-tip,
.order-v62-tip{
    min-height:48px;
    display:flex;
    align-items:center;
}

/* SUYANG_V67C_ORDER_ERROR_RED_NOTICE */
.order-v65-tip.is-error,
.order-v64-tip.is-error,
.order-v63-tip.is-error,
.order-v62-tip.is-error,
.pay-inline-error,
.alert.error {
    color: #ff6b6b !important;
    background: rgba(255, 70, 70, .14) !important;
    border: 1px solid rgba(255, 70, 70, .42) !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    box-shadow: 0 0 0 2px rgba(255,70,70,.06) !important;
}

.order-v65-tip.is-error::before,
.order-v64-tip.is-error::before,
.order-v63-tip.is-error::before,
.order-v62-tip.is-error::before {
    content: "提醒：";
    color: #ff3b3b;
    font-weight: 900;
    margin-right: 4px;
}

/* SUYANG_V67D_FORCE_RED_ORDER_ERROR */
.order-error-red {
    color: #ff4d4f !important;
    background: rgba(255, 77, 79, .16) !important;
    border: 2px solid rgba(255, 77, 79, .65) !important;
    font-weight: 900 !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
    box-shadow: 0 0 0 3px rgba(255,77,79,.10) !important;
}

.order-error-red::before {
    content: "提醒：";
    color: #ff2f2f !important;
    font-weight: 900 !important;
}

.order-v65-tip.order-error-red,
.order-v64-tip.order-error-red,
.order-v63-tip.order-error-red,
.order-v62-tip.order-error-red {
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
}

/* SUYANG_V521_PREVENT_DOUBLE_TAP_ZOOM */
html,
body{
    max-width:100vw !important;
    overflow-x:hidden !important;
    -webkit-text-size-adjust:100% !important;
}

button,
.btn,
a.module-card,
.checkout-v520-methods button,
.checkout-v520-panel button,
.member-keypad button,
.money-keypad-grid button,
.order-v65-item,
.order-v65-item-qty button,
.waterbar-v69-actions button{
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.checkout-v520-mask,
.checkout-v520-panel,
.checkout-v520-methods,
.checkout-v520-methods button{
    touch-action: manipulation !important;
}

.checkout-v520-panel{
    max-width: calc(100vw - 20px) !important;
    overflow-x: hidden !important;
}

.checkout-v520-methods button{
    font-size: 18px !important;
    min-height: 58px !important;
}

input,
select,
textarea{
    font-size:16px !important;
}

/* SUYANG_V522_MIXED_PAY_MODAL_FIX */
.checkout-v520-mask{
    overflow:hidden !important;
    align-items:center !important;
    justify-content:center !important;
}

.checkout-v520-panel{
    width: calc(100vw - 24px) !important;
    max-width: 680px !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    box-sizing:border-box !important;
    padding:14px 14px calc(18px + env(safe-area-inset-bottom)) !important;
}

.checkout-v520-panel *,
.checkout-v520-panel *::before,
.checkout-v520-panel *::after{
    box-sizing:border-box !important;
}

.mixed-pay-box{
    width:100% !important;
    overflow:hidden !important;
}

.mixed-pay-grid{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
}

.mixed-pay-grid label{
    min-width:0 !important;
    width:100% !important;
}

.mixed-pay-grid input{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:48px !important;
    font-size:18px !important;
    font-weight:900 !important;
}

.mixed-member-mini{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
}

.member-display{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
}

.member-display strong{
    overflow-wrap:anywhere !important;
    word-break:break-all !important;
}

.member-keypad{
    width:100% !important;
    max-width:100% !important;
}

.member-keypad button{
    min-width:0 !important;
}

.mixed-summary{
    width:100% !important;
    grid-template-columns:1fr 1fr !important;
}

.checkout-v520-panel-actions{
    position:sticky !important;
    bottom:0 !important;
    z-index:20 !important;
    margin:14px -2px 0 !important;
    padding:12px 0 2px !important;
    background:linear-gradient(180deg, rgba(17,26,39,.78), rgba(17,26,39,1) 38%) !important;
    backdrop-filter:blur(8px) !important;
    -webkit-backdrop-filter:blur(8px) !important;
}

.checkout-v520-panel-actions .confirm{
    min-height:56px !important;
    font-size:18px !important;
}

.checkout-v520-panel-actions .cancel{
    min-height:56px !important;
}

.money-keypad-mask{
    z-index:100000 !important;
}

@media(max-width:430px){
    .checkout-v520-panel{
        width: calc(100vw - 18px) !important;
        max-height: calc(100vh - 86px) !important;
        border-radius:24px !important;
        padding:12px 12px calc(16px + env(safe-area-inset-bottom)) !important;
    }

    .checkout-v520-methods{
        grid-template-columns:1fr 1fr !important;
        gap:8px !important;
    }

    .checkout-v520-methods button{
        min-height:54px !important;
        font-size:17px !important;
    }

    .mixed-pay-grid{
        grid-template-columns:1fr 1fr !important;
        gap:8px !important;
    }

    .mixed-pay-grid input{
        height:46px !important;
        font-size:17px !important;
    }

    .checkout-v520-panel-actions{
        grid-template-columns:1fr 1.25fr !important;
    }
}

@media(max-width:360px){
    .mixed-pay-grid{
        grid-template-columns:1fr !important;
    }

    .mixed-summary{
        grid-template-columns:1fr !important;
    }
}

/* SUYANG_V523_MOVE_PAY_ACTIONS_UP */
.checkout-v520-panel-actions.v523-moved{
    position: sticky !important;
    top: 0 !important;
    bottom: auto !important;
    z-index: 80 !important;
    margin: 10px 0 8px !important;
    padding: 10px 0 !important;
    background: linear-gradient(180deg, rgba(17,26,39,1), rgba(17,26,39,.94)) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.checkout-v520-panel-actions.v523-moved button{
    min-height: 58px !important;
    font-size: 18px !important;
}

.checkout-v520-panel-actions.v523-moved .confirm{
    background: linear-gradient(135deg,#f8db91,#d9952d) !important;
    color: #241504 !important;
}

.checkout-v520-panel-actions.v523-moved .confirm:disabled{
    opacity: .42 !important;
    filter: grayscale(.25) !important;
}

.pay-action-hint{
    margin: 0 0 12px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #dce5f2 !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
}

.pay-action-hint.ok{
    color: #8fe6b0 !important;
    background: rgba(143,230,176,.09) !important;
    border-color: rgba(143,230,176,.26) !important;
}

.pay-action-hint.danger{
    color: #ff6b6b !important;
    background: rgba(255,70,70,.14) !important;
    border-color: rgba(255,70,70,.42) !important;
}

.checkout-v520-panel{
    padding-bottom: 90px !important;
}

.mixed-pay-title span{
    font-weight: 900 !important;
}

@media(max-width:430px){
    .checkout-v520-panel-actions.v523-moved{
        grid-template-columns: 1fr 1.35fr !important;
    }

    .checkout-v520-panel-actions.v523-moved button{
        min-height: 56px !important;
        font-size: 17px !important;
    }
}

/* SUYANG_V524_MIXED_PAY_ONE_COLUMN_MOBILE */
.checkout-v520-panel{
    width: calc(100vw - 28px) !important;
    max-width: 680px !important;
    overflow-x: hidden !important;
}

.checkout-v520-panel *,
.checkout-v520-panel *::before,
.checkout-v520-panel *::after{
    box-sizing: border-box !important;
}

.mixed-pay-box{
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.mixed-pay-grid{
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.mixed-pay-grid label{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 6px !important;
}

.mixed-pay-grid input{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    display: block !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.mixed-summary{
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr 1fr !important;
}

.mixed-summary div{
    min-width: 0 !important;
}

.checkout-v520-panel-actions.v523-moved{
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr 1.35fr !important;
}

.pay-action-hint{
    width: 100% !important;
    max-width: 100% !important;
}

@media(min-width:700px){
    .mixed-pay-grid{
        grid-template-columns: 1fr 1fr !important;
    }
}

@media(max-width:430px){
    .checkout-v520-panel{
        width: calc(100vw - 22px) !important;
        max-width: calc(100vw - 22px) !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .mixed-pay-grid{
        grid-template-columns: 1fr !important;
    }

    .mixed-summary{
        grid-template-columns: 1fr 1fr !important;
    }
}

@media(max-width:360px){
    .mixed-summary{
        grid-template-columns: 1fr !important;
    }
}

/* SUYANG_V525_MIXED_FULLSCREEN */
body.v525-no-scroll{
    overflow:hidden !important;
}

.v525-mixed-mask{
    position:fixed !important;
    inset:0 !important;
    z-index:99970 !important;
    background:rgba(3,8,15,.96) !important;
    display:flex;
    align-items:stretch;
    justify-content:center;
    padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.v525-mixed-page{
    width:100vw;
    max-width:760px;
    height:100vh;
    overflow-y:auto;
    overflow-x:hidden;
    padding:16px 16px calc(96px + env(safe-area-inset-bottom));
    box-sizing:border-box;
    color:#fff;
}

.v525-mixed-page *,
.v525-mixed-page *::before,
.v525-mixed-page *::after{
    box-sizing:border-box;
}

.v525-mixed-head{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) 54px;
    gap:10px;
    align-items:center;
    margin-bottom:14px;
}

.v525-mixed-head h2{
    margin:0;
    font-size:30px;
    color:#fff;
}

.v525-mixed-head p{
    margin:5px 0 0;
    color:#9ba6b7;
    font-size:13px;
}

.v525-back,
.v525-close{
    border:0;
    border-radius:18px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-weight:900;
}

.v525-back{
    min-height:48px;
}

.v525-close{
    width:54px;
    height:54px;
    font-size:34px;
    line-height:1;
}

.v525-total-card{
    padding:16px;
    border-radius:24px;
    background:rgba(218,168,83,.10);
    border:1px solid rgba(218,168,83,.28);
    margin-bottom:14px;
}

.v525-total-card span,
.v525-total-card strong{
    display:block;
}

.v525-total-card span{
    color:#9ba6b7;
    font-weight:900;
}

.v525-total-card strong{
    margin-top:4px;
    color:#f2c46f;
    font-size:42px;
    line-height:1;
}

.v525-pay-list{
    display:grid;
    gap:10px;
}

.v525-pay-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 138px 84px;
    gap:9px;
    align-items:center;
    padding:12px;
    border-radius:22px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
}

.v525-pay-row strong{
    display:block;
    font-size:22px;
    color:#fff;
}

.v525-pay-row span{
    display:block;
    margin-top:4px;
    color:#9ba6b7;
    font-size:13px;
    overflow-wrap:anywhere;
}

.v525-amount,
.v525-fill{
    min-height:52px;
    border:0;
    border-radius:16px;
    font-weight:900;
}

.v525-amount{
    color:#f2c46f;
    background:#111722;
    border:1px solid rgba(255,255,255,.10);
    font-size:20px;
}

.v525-amount.member{
    font-size:16px;
}

.v525-amount.has-value{
    color:#8fe6b0;
    background:rgba(143,230,176,.08);
    border-color:rgba(143,230,176,.26);
}

.v525-fill{
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#b77c29);
    font-size:14px;
}

.v525-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
}

.v525-summary div{
    padding:14px;
    border-radius:20px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
}

.v525-summary span,
.v525-summary strong{
    display:block;
}

.v525-summary span{
    color:#9ba6b7;
    font-weight:900;
}

.v525-summary strong{
    margin-top:6px;
    color:#f2c46f;
    font-size:24px;
}

.v525-summary .ok{
    background:rgba(143,230,176,.09);
    border-color:rgba(143,230,176,.28);
}

.v525-summary .ok strong{
    color:#8fe6b0;
}

.v525-summary .danger{
    background:rgba(255,70,70,.13);
    border-color:rgba(255,70,70,.35);
}

.v525-summary .danger strong{
    color:#ff6b6b;
}

.v525-bottom{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:99980;
    width:100vw;
    max-width:760px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr 1.5fr;
    gap:10px;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:linear-gradient(180deg, rgba(3,8,15,.55), rgba(3,8,15,1));
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.v525-bottom button{
    min-height:58px;
    border:0;
    border-radius:18px;
    font-weight:900;
    font-size:18px;
}

.v525-cancel{
    color:#fff;
    background:rgba(255,255,255,.10);
}

.v525-confirm{
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#d9952d);
}

.v525-confirm:disabled{
    opacity:.42;
    filter:grayscale(.25);
}

.v525-member-mask{
    position:fixed;
    inset:0;
    z-index:99990;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    background:rgba(0,0,0,.62);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

.v525-member-panel{
    width:min(560px,100%);
    max-height:92vh;
    overflow:auto;
    padding:16px;
    border-radius:26px;
    background:#111a27;
    border:1px solid rgba(248,216,137,.24);
}

.v525-member-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.v525-member-head h2{
    margin:0;
    font-size:26px;
}

.v525-member-head button{
    width:46px;
    height:46px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:28px;
}

.v525-member-display{
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
}

.v525-member-display span,
.v525-member-display strong{
    display:block;
}

.v525-member-display span{
    color:#9ba6b7;
}

.v525-member-display strong{
    margin-top:6px;
    color:#fff;
    font-size:22px;
    overflow-wrap:anywhere;
}

.v525-member-confirm{
    width:100%;
    min-height:52px;
    margin-top:10px;
    border:0;
    border-radius:17px;
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#b77c29);
    font-weight:900;
    font-size:17px;
}

.v525-member-status{
    margin-top:10px;
    padding:10px 12px;
    border-radius:15px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
    color:#dce5f2;
    font-weight:900;
    line-height:1.45;
}

.v525-member-status.ok{
    color:#8fe6b0;
    background:rgba(143,230,176,.09);
    border-color:rgba(143,230,176,.26);
}

.v525-member-status.danger{
    color:#ff6b6b;
    background:rgba(255,70,70,.14);
    border-color:rgba(255,70,70,.42);
}

.v525-member-keypad{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:12px;
}

.v525-member-keypad button{
    min-height:58px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:24px;
    font-weight:900;
}

@media(max-width:430px){
    .v525-mixed-page{
        padding-left:12px;
        padding-right:12px;
    }

    .v525-pay-row{
        grid-template-columns:minmax(0,1fr) 126px;
        grid-template-areas:
            "info amount"
            "info fill";
    }

    .v525-pay-row > div{
        grid-area:info;
    }

    .v525-pay-row .v525-amount{
        grid-area:amount;
    }

    .v525-pay-row .v525-fill{
        grid-area:fill;
        min-height:42px;
        font-size:13px;
    }

    .v525-summary{
        grid-template-columns:1fr;
    }

    .v525-bottom{
        grid-template-columns:1fr 1.35fr;
        padding-left:12px;
        padding-right:12px;
    }
}

/* SUYANG_V527_SINGLE_MEMBER_COLLAPSE */
.member-confirmed-done .member-keypad,
.member-confirmed-done .confirm-member-btn{
    display:none !important;
}

.member-confirmed-done{
    padding-bottom:12px !important;
}

.single-member-change-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:10px;
    padding:10px 12px;
    border-radius:15px;
    background:rgba(143,230,176,.09);
    border:1px solid rgba(143,230,176,.28);
    color:#8fe6b0;
    font-weight:900;
}

.single-member-change-bar button{
    min-height:40px;
    border:0;
    border-radius:13px;
    padding:0 14px;
    color:#241504;
    background:linear-gradient(135deg,#f8db91,#d9952d);
    font-weight:900;
    white-space:nowrap;
}

.member-confirmed-done .member-display{
    background:rgba(143,230,176,.08) !important;
    border-color:rgba(143,230,176,.28) !important;
}

.member-confirmed-done .member-display strong{
    color:#8fe6b0 !important;
}

/* SUYANG_V528_FORCE_HIDE_MEMBER_KEYPAD */
#singleMemberBox.member-confirmed-done .member-keypad,
#singleMemberBox.member-confirmed-done .confirm-member-btn{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
}

#singleMemberBox.member-confirmed-done{
    gap:10px !important;
}

/* SUYANG_V84A_MEMBER_EDIT_STATUS_MOBILE_FIX */
@media(max-width:760px){
    .me-v84-status-box{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:14px !important;
        align-items:stretch !important;
    }

    .me-v84-status-box > div{
        width:100% !important;
        min-width:0 !important;
    }

    .me-v84-status-box strong{
        display:block !important;
        white-space:normal !important;
        word-break:normal !important;
        line-height:1.45 !important;
        font-size:20px !important;
    }

    .me-v84-status-box span{
        display:block !important;
        white-space:normal !important;
        word-break:normal !important;
        line-height:1.65 !important;
        font-size:15px !important;
    }

    .me-v84-status-box form{
        width:100% !important;
        min-width:0 !important;
    }

    .me-v84-status-box input,
    .me-v84-status-box button{
        width:100% !important;
        box-sizing:border-box !important;
    }
}

/* SUYANG_V84C_MEMBER_NO_DISPLAY_FIX */
.mq-v83-detail-head h2,
.me-v84-member-card h2,
.me-v84-result strong,
.mq-v83-result strong,
.member-risk-v73-card strong,
.member-v71-row strong{
    word-break:break-all !important;
    overflow-wrap:anywhere !important;
    max-width:100% !important;
}

@media(max-width:760px){
    .mq-v83-detail-head h2,
    .me-v84-member-card h2{
        font-size:28px !important;
        line-height:1.2 !important;
    }
}
