:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#e9f3ff;background:#050c1b;font-size:14px}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 40% 0%,#0c2e5a,#071323 58%,#030a17)}button,input,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.desktop{display:flex;min-height:100vh}.sidebar{width:240px;background:linear-gradient(#092a50,#05172e 45%,#041020);border-right:1px solid #195183;min-height:100vh;display:flex;flex-direction:column;flex-shrink:0;box-shadow:3px 0 25px #0006}.logo{padding:16px 14px 19px;text-align:center;border-bottom:1px solid #225889}.logo img{display:block;width:142px;height:135px;object-fit:cover;border:1px solid #1c7fe5;border-radius:12px;margin:0 auto 8px;box-shadow:0 0 15px #065ed266}.logo strong{display:block;color:#ffe4a1;font-size:19px}.logo small{font-size:11px;color:#8db7e5}nav{padding:13px;display:flex;flex-direction:column;gap:5px}nav button{width:100%;text-align:left;color:#afcef0;background:transparent;border:1px solid transparent;padding:12px 13px;border-radius:8px}nav button:hover{background:#124074}nav button.selected{color:#fff;border-color:#268be4;background:linear-gradient(90deg,#1257a3,#073461);box-shadow:inset 3px 0 0 #ffcc63}.sidebar-bottom{margin-top:auto;padding:15px;color:#7094b6;font-size:11px;border-top:1px solid #22517d}.sidebar-bottom button{background:none;border:0;color:#9cbdeb;margin-top:10px}.main{flex:1;min-width:0}.topbar{position:sticky;top:0;z-index:8;height:70px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px;border-bottom:1px solid #1a487b;background:#061a33ee;backdrop-filter:blur(10px)}.topbar b{display:block;font-size:22px;color:#ffde9e}.topbar small{display:block;color:#87aace}.admin-info{color:#bcd8f6;font-size:12px}.admin-info span{color:#ffde8a}.admin-info i{display:inline-block;background:#1aeb91;width:8px;height:8px;border-radius:50%;margin-left:6px}.hamburger{display:none;color:white;border:1px solid #2265a3;background:#122c4f;border-radius:7px;padding:7px 10px}.content{padding:24px;max-width:1260px;margin:auto}.cards{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:14px;margin-bottom:20px}.stat{border:1px solid #205d95;background:linear-gradient(120deg,#0c315e,#08213e);border-radius:13px;padding:19px 16px;box-shadow:inset 0 0 14px #083e7c}.stat span{display:block;color:#a6c5e9;font-size:12px}.stat strong{display:block;font-size:30px;color:#ffe4a1;margin-top:8px}.panel{background:linear-gradient(160deg,#0a294e,#071a33);border:1px solid #1d679f;border-radius:13px;padding:20px;margin-bottom:20px;box-shadow:0 4px 22px #0005,inset 0 0 17px #155b9030}.panel h2{color:#ffdda0;margin:0 0 14px;font-size:19px}.panel p,.hint{color:#9abde1;line-height:1.65}.hint{font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field label{display:block;color:#a8cdf3;font-weight:650;font-size:12px;margin-bottom:6px}.field input,.field textarea,.field select,.input{display:block;width:100%;min-width:0;padding:11px 12px;border-radius:8px;border:1px solid #346494;background:#06172d;color:#e7f5ff;outline:none}.field input:focus,.field textarea:focus,.field select:focus{border-color:#26b8ff;box-shadow:0 0 0 2px #1599d62e}.field textarea{min-height:165px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}.action{border:1px solid #266cb1;color:#fff;border-radius:9px;background:#102c4f;font-weight:650;padding:10px 17px;min-height:40px}.action.primary{background:linear-gradient(#2db5ff,#0763e6);border-color:#4ab2ff;box-shadow:inset 0 1px 3px #fff8,0 4px 11px #086dec47}.action.green{background:linear-gradient(#0ac07d,#00794e);border-color:#22eb99}.action.red{background:linear-gradient(#dc4a4e,#a51b23);border-color:#ff5555}.action:disabled{opacity:.6}.actions-inline{display:flex;gap:7px;flex-wrap:wrap}.pill{display:inline-block;border-radius:7px;padding:5px 9px;font-size:12px;background:#153858;color:#bbe0ff;border:1px solid #2867a6}.pill.submitted{background:#634c1c;color:#ffdf83;border-color:#ba8b3d}.pill.dispatched{background:#09523f;color:#7dffd2;border-color:#278669}.pill.canceled{background:#53242d;color:#ff9fa3;border-color:#a64b53}.pill.awaiting_payment{background:#173761}.table-wrap{overflow:auto;border-radius:9px;border:1px solid #21456c}table{border-collapse:collapse;width:100%;min-width:660px;background:#071b33;font-size:12px}th,td{padding:12px 10px;border-bottom:1px solid #183f66;text-align:left;vertical-align:top;white-space:nowrap}th{position:sticky;top:0;color:#cfe8ff;background:#11365e;font-size:12px}td{color:#c3d8f0}td.address-cell{font-family:monospace;max-width:220px;overflow:hidden;text-overflow:ellipsis}tr:hover td{background:#0a2b4b}.pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:13px;color:#9dbdde}.pager button{background:#0b315b;color:#d9edff;border:1px solid #2666a3;border-radius:6px;padding:8px 12px}.pager button:disabled{opacity:.45}.section-note{font-size:12px;border:1px solid #70591c;background:#3b311724;color:#ffda92;padding:11px;border-radius:8px;margin:9px 0}.muted{font-size:12px;color:#96aeca}.price-samples{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.price-samples div{border-radius:9px;background:linear-gradient(#f4feff,#cdeeff);padding:17px 5px;text-align:center;color:#06305e;font-weight:700}.price-samples b{display:block;color:#006cef;margin-top:7px}.auth-cover{position:fixed;z-index:50;inset:0;display:grid;place-items:center;background:radial-gradient(circle at center,#133869,#020711 70%);padding:16px}.auth-card{width:min(100%,395px);text-align:center;padding:25px;border-radius:17px;border:1px solid #237ccc;background:linear-gradient(#0a345f,#061527);box-shadow:0 0 30px #0565c58a}.auth-card img{width:150px;height:142px;border-radius:12px;object-fit:cover;border:1px solid #168eff}.auth-card h2{color:#ffe5aa;margin:12px 0 4px}.auth-card p{color:#acc9e9;margin:0 0 17px}.auth-card input{width:100%;border:1px solid #3063a6;color:#fff;background:#0a2446;padding:13px;border-radius:8px;margin:6px 0}.auth-card .action{width:100%;margin:9px 0 10px}.auth-card small{color:#85a7ca;font-size:11px}.toast{display:none;position:fixed;z-index:100;bottom:24px;left:50%;transform:translateX(-50%);border:1px solid #2aa8ff;border-radius:9px;padding:12px 20px;background:#123e68;color:#fff;box-shadow:0 6px 30px #000b}.toast.show{display:block}.dialog-overlay{position:fixed;z-index:70;inset:0;padding:14px;background:#010711c9;display:grid;place-items:center;backdrop-filter:blur(4px)}.dialog-card{border:1px solid #248deb;background:linear-gradient(135deg,#0d3769,#06172e);box-shadow:0 0 28px #1772c7;max-width:530px;width:100%;max-height:85vh;overflow:auto;border-radius:15px;padding:15px}.dialog-head{display:flex;align-items:center;gap:8px;border-bottom:1px solid #28578f;padding-bottom:9px;margin-bottom:14px;color:#ffe09b;font-size:18px}.dialog-head img{height:42px;width:43px;object-fit:cover;border-radius:7px}.dialog-head button{margin-left:auto;background:none;border:0;color:#fff;font-size:24px}.dialog-body{font-size:13px;line-height:1.7;color:#c9e0fa;white-space:pre-wrap;word-break:break-all}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.welcome-preview{border:1px solid #366b9c;background:#0b2440;padding:15px;border-radius:10px;color:#d4ecff;white-space:pre-wrap;line-height:1.7}@media(max-width:970px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.price-samples{grid-template-columns:repeat(3,1fr)}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.sidebar{position:fixed;top:0;bottom:0;z-index:15;transform:translateX(-100%);transition:transform .2s;overflow:auto}.sidebar.open{transform:none}.hamburger{display:block}.topbar{padding:0 12px}.topbar b{font-size:18px}.content{padding:12px}.cards{grid-template-columns:repeat(2,1fr)}.panel{padding:13px}.form-grid,.form-grid.three{grid-template-columns:1fr}.price-samples{grid-template-columns:repeat(3,1fr)}.admin-info{font-size:10px}.logo img{height:80px;width:85px}}@media(max-width:360px){.cards{grid-template-columns:1fr 1fr}.stat{padding:9px}.stat strong{font-size:22px}}
/* Phase 3: readable forms and mobile table scrolling */
.field textarea{width:100%;background:#0b284c;color:#eef7ff;border:1px solid #32638f;border-radius:8px;padding:12px;line-height:1.5;resize:vertical;min-height:80px}
.wrap-data{max-width:280px;word-break:break-all}.notice-td{max-width:340px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.form-actions button{margin:4px}.table-wrap{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.action{white-space:nowrap}.content .panel{max-width:100%}
.sidebar button[data-page]{min-height:45px}
/* Chigua 32722 management: isolated visual system */
body.chigua-mode{background:#070407}body.chigua-mode .topbar{background:#0b0710f2;border-bottom-color:#64213e}body.chigua-mode .topbar b{color:#ff7aaa}body.chigua-mode .sidebar button[data-page="chigua"].selected{background:linear-gradient(90deg,#a80043,#4e0b2b);border-color:#ff3f89;box-shadow:inset 3px 0 0 #ff71a8;color:#fff}body.chigua-mode .content{max-width:1380px}.chigua-admin{color:#f8eef3}.chigua-admin-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px;padding:3px 2px}.chigua-admin-head h1{margin:0;color:#fff;font-size:26px}.chigua-admin-head h1 span{color:#ff4b91;font-size:17px;margin-left:8px}.chigua-admin-head p{margin:6px 0 0;color:#9e8993}.chigua-preview-btn{border:1px solid #ff4b91;background:linear-gradient(90deg,#ff2e78,#d8145e);color:#fff;border-radius:9px;padding:11px 18px;font-weight:800;box-shadow:0 5px 18px #ff2e7740}.chigua-tabs{display:flex;gap:5px;border-bottom:1px solid #422030;margin-bottom:14px}.chigua-tabs button{border:0;border-bottom:3px solid transparent;background:#0f0b0e;color:#9c8992;padding:12px 18px;font-weight:800}.chigua-tabs button.active{color:#fff;border-bottom-color:#ff3d83;background:linear-gradient(#2b0b19,#15070d);box-shadow:inset 0 -6px 18px #ff2f7628}.chigua-tab{display:none}.chigua-tab.active{display:block}.chigua-dark-panel{border:1px solid #452132;background:linear-gradient(155deg,#100a0e,#090609);border-radius:12px;padding:18px;margin-bottom:15px;box-shadow:0 7px 28px #0007,inset 0 0 22px #ff2f7608}.chigua-dark-panel h2{margin:0 0 15px;color:#fff;font-size:18px}.chigua-dark-panel h2 small{color:#9d8992;font-size:11px;margin-left:6px}.chigua-admin .field label{color:#d4c3cb}.chigua-admin .field input,.chigua-admin .field textarea,.chigua-admin .field select{background:#080608;border-color:#49313c;color:#fff}.chigua-admin .field input:focus,.chigua-admin .field textarea:focus{border-color:#ff4b91;box-shadow:0 0 0 2px #ff3b8228}.chigua-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.chigua-admin-preview{display:flex;align-items:center;gap:14px;margin-top:14px;padding:12px;border:1px solid #3f2631;border-radius:11px;background:#080608}.chigua-admin-preview img{width:230px;max-width:45%;height:96px;object-fit:cover;object-position:center 16%;border-radius:8px;border:1px solid #6b2442}.chigua-admin-preview b{display:block;color:#ff6ca2}.chigua-admin-preview span{display:block;color:#8f7c85;margin-top:6px}.chigua-link-settings{margin-top:17px;border-top:1px solid #35212a;padding-top:12px}.chigua-link-settings h3{margin:0 0 10px;color:#ff6a9f}.chigua-link-row{display:grid;grid-template-columns:48px minmax(180px,.7fr) minmax(260px,1.3fr);gap:10px;align-items:end;margin:10px 0;padding:11px;border:1px solid #38222c;border-radius:10px;background:#0a0709}.chigua-link-row .grow{min-width:0}.chigua-switch{display:flex;align-items:center;justify-content:center;height:41px}.chigua-switch input{display:none}.chigua-switch span{position:relative;width:40px;height:22px;border-radius:99px;background:#362831;border:1px solid #5e4853}.chigua-switch span:after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#92828a;transition:.15s}.chigua-switch input:checked+span{background:#8c073c;border-color:#ff3d83}.chigua-switch input:checked+span:after{left:21px;background:#fff}.chigua-status{margin-top:13px;padding:11px 12px;border:1px solid #58441c;border-radius:9px;background:#211a0c;color:#ffdc8d}.chigua-status small{display:block;color:#a39069;margin-top:6px}.chigua-route-edit{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:13px;border:1px solid #3a222d;border-radius:11px;background:#080608;margin-bottom:10px}.chigua-route-no{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#ff337e;color:#fff;font-weight:900}.chigua-checks{display:flex;gap:18px;color:#d8c4cd;margin-top:10px}.chigua-checks label{display:flex;align-items:center;gap:6px}.chigua-checks input{accent-color:#ff3d83}.chigua-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.chigua-panel-title span{color:#8e7a83;font-size:12px}.chigua-notice-preview{padding:18px;border:1.5px solid #ff3a84;border-radius:14px;background:#0c0508;box-shadow:0 0 18px #ff2d7440;text-align:center;margin-bottom:15px}.chigua-notice-preview>b{display:block;color:#ff70a7;font-size:22px}.chigua-notice-preview>span{display:block;margin-top:10px;color:#fff;font-weight:800}.chigua-notice-preview p{margin:12px 0 0;color:#e2d1d8}.chigua-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.chigua-stat-grid>div{border:1px solid #4a2536;border-radius:11px;padding:16px;background:linear-gradient(140deg,#160811,#080608)}.chigua-stat-grid small{display:block;color:#9f8b94}.chigua-stat-grid b{display:block;color:#ff76aa;font-size:28px;margin-top:7px}.chigua-save{background:linear-gradient(90deg,#ff2e78,#ff4f96)!important;border-color:#ff63a2!important}.chigua-admin .action:not(.primary){border-color:#553345;background:#130b10}.chigua-admin .action:hover{border-color:#ff4b91}
@media(max-width:820px){.chigua-admin-head{align-items:flex-start;flex-direction:column}.chigua-tabs{overflow:auto}.chigua-tabs button{white-space:nowrap}.chigua-settings-grid{grid-template-columns:1fr}.chigua-link-row{grid-template-columns:42px 1fr}.chigua-link-row .grow{grid-column:2}.chigua-stat-grid{grid-template-columns:repeat(2,1fr)}.chigua-route-edit{grid-template-columns:1fr}.chigua-route-no{display:none}.chigua-admin-preview img{width:150px}.chigua-panel-title{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.chigua-admin-preview{align-items:flex-start;flex-direction:column}.chigua-admin-preview img{width:100%;max-width:100%;height:135px}.chigua-stat-grid{grid-template-columns:1fr 1fr}.chigua-link-row{grid-template-columns:34px 1fr;padding:9px}.chigua-tabs button{padding:11px 13px}.chigua-admin-head h1{font-size:22px}}

/* Chigua stats date range */
.chigua-stat-filter{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 14px}.chigua-quick-ranges{display:flex;gap:8px;flex-wrap:wrap}.chigua-quick-ranges .action{min-height:36px;padding:7px 13px}.chigua-custom-range{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.chigua-custom-range label{display:grid;gap:5px;color:#bda8b1;font-size:12px}.chigua-custom-range input{height:38px;border:1px solid #49313c;border-radius:8px;background:#080608;color:#fff;padding:6px 10px;min-width:145px;color-scheme:dark}.chigua-custom-range span{color:#7f6e76;padding-bottom:10px}.chigua-stat-caption{color:#a58e98;font-size:12px;margin:0 0 11px}.chigua-stat-caption b{color:#ff77aa}.chigua-tab[data-cg-panel="stats"] .chigua-stat-grid{margin-top:0}@media(max-width:700px){.chigua-stat-filter,.chigua-custom-range{align-items:stretch}.chigua-custom-range{width:100%;display:grid;grid-template-columns:1fr 22px 1fr}.chigua-custom-range .action{grid-column:1/-1}.chigua-custom-range span{text-align:center;padding:30px 0 0}.chigua-custom-range input{min-width:0;width:100%}}
