/* NanoLink visual language, adapted to the operations console. */
:root{--ink:#111827;--muted:#6b7280;--line:#e5e7eb;--bg:#f3f4f6;--surface:#fff;--soft:#f6f7f9;--accent:#1f3a8a;--accent-soft:#eef2ff;--orange:#1f3a8a;--yellow:#1f3a8a;--green:#047857;--blue:#1f3a8a;--danger:#b91c1c;--shadow:none;--control-line:#d1d5db;--ring:0 0 0 3px rgba(31,58,138,.16)}
html,body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
button,input,select,textarea{font:inherit}button{transition:background .15s,border-color .15s,color .15s}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:var(--ring)}::selection{background:#dbe2ff}
.app{grid-template-columns:224px minmax(0,1fr)}.sidebar{padding:22px 14px 16px}.sidebar .brand{padding:0 10px 30px;gap:10px;letter-spacing:0}.brand>span{background:#111;color:#fff;border-radius:8px;font-weight:700}.brand b{font-size:15px}.brand-platform-line{color:var(--muted)!important;font-weight:400;font-size:11px!important;letter-spacing:0!important}.sidebar nav{gap:6px}.sidebar nav button{height:40px;padding:0 12px;border-radius:8px;color:#374151;font-weight:400}.sidebar nav button:hover{background:var(--soft);font-weight:400}.sidebar nav button.active{background:var(--accent-soft);color:var(--accent);box-shadow:none;font-weight:600}.admin-box{padding-top:16px}.admin-box>span{background:var(--soft);color:#374151;border:1px solid var(--line)}
main>header{height:80px;padding:0 28px;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.2) blur(8px)}header h1{font-size:22px;line-height:1.4;letter-spacing:-.02em;font-weight:650}#pageKicker,#modalKicker,.eyebrow,.login-copy p{font-size:10px;color:var(--muted);letter-spacing:1.2px;font-weight:500}header p{margin-bottom:2px}.header-actions button,.ghost-btn{height:32px;border-color:var(--control-line);border-radius:8px;background:#fff}.header-actions button:hover,.ghost-btn:hover{background:var(--soft)}.content{padding:24px 28px 48px;max-width:1440px}
.stats,.compact-stats,.dashboard-grid,.merchant-summary{gap:16px}.section,.compact-stats+.section,.stats+.dashboard-grid{margin-top:16px}.dashboard-grid>.section{margin-top:0}.merchant-summary{margin-bottom:16px}.stat,.section,.merchant-summary button,.store-card,.detail-card,.attention,.followup-card,.order-period-bar{border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat{padding:18px 20px;min-height:124px}.stat strong{font-size:30px;font-weight:650;letter-spacing:-1px;margin:12px 0 4px;line-height:1.25}.stat p,.stat span{font-size:12px}.merchant-summary button{padding:18px 20px;box-shadow:var(--shadow)}.merchant-summary strong{font-size:28px;font-weight:650;line-height:1.3}.merchant-summary button:hover{border-color:var(--control-line);background:var(--soft)}.section-head{padding:14px 20px;min-height:62px}.section-head h2{font-size:15px;font-weight:650}.section-head p{font-size:12px}.section-head .actions{flex-wrap:wrap}.toolbar{padding:16px 20px;gap:12px;flex-wrap:wrap}
.login-card input,.field input,.field select,.field textarea,.toolbar input,.toolbar select,.toolbar:has(#merchantSearch) #merchantFilter,.antd-date-trigger{height:38px;border:1px solid var(--control-line);border-radius:10px;background-color:#fff;padding:0 12px;box-shadow:none;font-size:14px}.field textarea{height:auto;min-height:84px;padding:8px 12px}.field label{font-size:12.5px;font-weight:500;color:var(--muted)}.field input:focus,.field select:focus,.toolbar input:focus,.login-card input:focus{border-color:var(--accent);box-shadow:var(--ring);background-color:#fff}select{background-color:#fff!important}.order-filters input{background-color:#fff!important}.primary,.accent-btn,.custom-date-range>button{background:#111;color:#fff;border:1px solid #111;border-radius:10px;font-weight:600;height:38px}.primary:hover,.accent-btn:hover,.custom-date-range>button:hover{background:#000}.primary{margin-top:20px}.accent-btn{padding:0 16px}.soft,.detail-actions .soft{background:#fff;border:1px solid var(--control-line);color:var(--ink)}.soft:hover{background:var(--soft)}.danger{background:#fff;color:var(--danger);border:1px solid #fecaca}.danger:hover{background:#fef2f2}.text-action,.link-btn{color:var(--accent);text-decoration:none}.text-action:hover,.link-btn:hover{color:#172554;text-decoration:underline}.send-binding-invite{color:var(--accent)!important}.detail-actions{flex-wrap:wrap}.detail-actions button{height:38px;border-radius:10px}.table-pagination button{border-color:var(--control-line)}
th,td{padding:13px 20px;font-size:13px;border-bottom-color:var(--line)}th{background:var(--soft);font-size:12px;color:var(--muted);font-weight:500;letter-spacing:0}tbody tr:hover{background:var(--soft)}.merchant-table th:last-child{background:var(--soft)}.merchant-table tbody tr:hover td:last-child{background:var(--soft)}.company-cell>span{background:var(--soft);color:#374151;border:1px solid var(--line);font-weight:600;border-radius:10px}.client-info small,.client-info b{font-size:12px}.tag{height:22px;border-radius:999px;padding:0 8px;font-size:12px;font-weight:500;border:1px solid transparent}.tag.trial,.tag.manager{background:var(--accent-soft);color:var(--accent)}.tag.paid,.tag.success,.tag.active,.tag.claimed{background:#ecfdf5;color:#047857}.tag.expiring,.tag.unpaid,.tag.pending,.tag.frozen{background:#fffbeb;color:#b45309}.tag.expired,.tag.refunded,.tag.suspended,.tag.revoked,.tag.cancelled{background:#fef2f2;color:#b91c1c}.tag.basic,.tag.pro,.tag.enterprise,.tag.owner{background:var(--soft);color:#374151;border-color:var(--line)}
.bar{background:var(--accent);border-radius:5px 5px 0 0}.dot.pro{background:var(--accent)}.dot.enterprise{background:#111827}.dot.trial{background:#c7d2fe}.attention{background:var(--soft);box-shadow:none}.attention:hover{background:#fff;border-color:var(--control-line)}.attention small,.attention>span{font-size:12px}.plan-list>div{padding:14px 0}.order-period-bar{margin-bottom:16px;padding:8px 12px}.order-period-tabs button,.pills button{border-radius:8px;background:transparent;color:#374151;font-weight:500}.order-period-tabs button.active,.pills button.active{background:#111;color:#fff}.followup-col{background:var(--soft);border-radius:10px}
.modal-mask{background:rgba(17,24,39,.3)}.modal-card{background:var(--bg);box-shadow:-8px 0 32px rgba(16,24,40,.08)}.modal-head{height:80px;padding:0 24px}.modal-head h2{font-size:20px;line-height:1.4;font-weight:650}.modal-head button{background:var(--soft);border:1px solid var(--line);border-radius:10px;width:34px;height:34px;line-height:1}.modal-head button:hover{background:#e5e7eb}.modal-body{padding:20px}.detail-card{padding:18px 20px;margin-bottom:16px}.modal:not(.centered) .detail-card h3,.modal.centered .detail-card h3{font-size:15px;font-weight:650}.detail-grid{gap:12px}.detail-grid label{background:var(--soft);border:1px solid #edf0f3;padding:12px;border-radius:10px;font-size:12px}.detail-grid b{font-size:14px;font-weight:600;overflow-wrap:anywhere}.merchant-hero,.settings-profile{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:18px 20px;margin-bottom:16px}.merchant-hero>span,.settings-profile>span{background:var(--accent-soft);color:var(--accent);border-radius:10px;font-weight:650}.merchant-hero p,.settings-profile p{color:var(--muted);overflow-wrap:anywhere}.merchant-hero-title{flex-wrap:wrap}.merchant-hero-edit{height:32px;border:1px solid var(--control-line);border-radius:8px;font-weight:500}.merchant-hero-edit:hover{background:var(--soft)}.modal.centered .modal-card{border-radius:14px;width:min(720px,calc(100vw - 40px))}.modal.centered.compact-modal .modal-card{width:min(520px,calc(100vw - 40px))}.modal.centered.compact-modal .modal-head{border-radius:14px 14px 0 0}.modal.centered.compact-modal .modal-body{border-radius:0 0 14px 14px;background:var(--bg)}.modal.centered .setting-row b,.modal.centered .field label{font-size:13px}.modal.centered .setting-row p{font-size:12px}.antd-date-panel{top:44px;box-shadow:var(--shadow);border-color:var(--line);border-radius:10px}.antd-date-cell.selected{background:var(--accent)}.antd-date-trigger[aria-expanded="true"]{border-color:var(--accent)}
.login-shell{background:var(--bg)}.login-aside{background:#fff;border-right:1px solid var(--line);padding:40px 48px}.login-aside .brand{letter-spacing:0}.login-copy h1{font-size:clamp(36px,4vw,60px);line-height:1.25;letter-spacing:-.04em;font-weight:650}.login-copy span{font-size:14px;max-width:390px}.login-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:28px;margin:32px;max-width:420px;width:calc(100% - 64px);justify-self:center}.login-card h2{font-size:24px;font-weight:650}.login-card>.muted{font-size:13px}.login-card label{margin-top:20px;font-size:12.5px;color:var(--muted);font-weight:500}.login-card .primary{width:100%;height:44px}.login-foot{letter-spacing:.8px}.toast{background:rgba(17,24,39,.94);box-shadow:0 8px 24px rgba(0,0,0,.12)}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar input{max-width:100%}}
@media(max-width:760px){.app{display:block}.sidebar{width:224px}.content{padding:16px 14px 40px}main>header{height:72px;padding:0 14px}header h1{font-size:20px}.login-shell{grid-template-columns:1fr}.login-aside{padding:24px;min-height:240px;border-right:0;border-bottom:1px solid var(--line)}.login-copy h1{font-size:36px}.login-card{margin:24px;width:calc(100% - 48px);padding:24px}.stats,.compact-stats,.merchant-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.stat,.merchant-summary button{padding:16px;min-height:110px}.stat strong{font-size:26px}.toolbar{padding:14px;align-items:stretch}.toolbar input{width:100%}.toolbar select{min-width:0;flex:1}.detail-grid,.merchant-full-grid{grid-template-columns:minmax(0,1fr)}.modal-body{padding:14px}.detail-card{padding:16px}.modal-head{padding:0 18px}.merchant-hero{flex-wrap:wrap}.merchant-hero>div{min-width:160px}.modal.centered{padding:16px}.modal.centered .modal-card{max-height:calc(100dvh - 32px)}.two-col{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Flat card surfaces throughout the console. */
.stat,.section,.merchant-summary button,.store-card,.detail-card,.attention,.followup-card,.order-period-bar,.merchant-hero,.settings-profile,.login-card,.modal-card,.modal.centered .modal-card{box-shadow:none}
