:root{--navy:#0f3d5e;--blue:#1677ff;--teal:#14b8a6;--ink:#10233a;--muted:#64748b;--bg:#f6f8fb;--line:#e6ebf1;--white:#fff;--shadow:0 8px 22px rgba(15,61,94,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px/1.45 Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer;border:0;background:transparent;color:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:20px 12px;z-index:5}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--navy);font-size:19px;font-weight:800;letter-spacing:-.7px;padding:0 9px 22px}.brand-mark{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:var(--navy);color:#fff;font-size:14px}.brand-thin{font-weight:500;color:#53708a}.nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:8px;text-align:left;color:#5b6b7e;font-weight:600;font-size:13px}.nav-item:hover,.nav-item.active{background:#edf5ff;color:var(--blue)}.nav-item>span{width:17px;font-size:17px;text-align:center}.nav-item .badge{margin-left:auto;background:var(--blue);color:#fff;border-radius:99px;font-size:10px;padding:1px 5px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:12px}.admin-only{display:none}.is-admin .admin-only{display:flex}.muted{color:#8795a6}.main{margin-left:220px;min-height:100vh}.topbar{height:62px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;justify-content:space-between;position:sticky;top:0;z-index:4}.crumb{font-weight:700}.top-actions{display:flex;align-items:center;gap:15px}.icon-button{position:relative;font-size:18px}.icon-button i{position:absolute;width:6px;height:6px;background:#ef4444;border-radius:50%;top:0;right:0}.profile{display:flex;align-items:center;gap:7px}.avatar{background:#dceafa;color:var(--navy);border-radius:50%;width:31px;height:31px;display:grid;place-items:center;font-size:10px;font-weight:800}.profile-text{text-align:left;font-weight:700;font-size:12px}.profile-text small{display:block;color:var(--muted);font-weight:400}.menu-button{display:none}.view{display:none;padding:28px 32px 48px;max-width:1320px;margin:auto}.view.active{display:block}.hero-row,.page-heading,.section-title,.number-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);font-weight:800;margin:0 0 5px}h1{font-size:25px;letter-spacing:-.8px;line-height:1.2;margin:0;color:#102a43}h2{font-size:17px;margin:0;letter-spacing:-.3px}h3{margin:0;font-size:15px}.lead,.section-title p{color:var(--muted);margin:6px 0 0}.balance-chip{display:grid;grid-template-columns:auto auto;gap:2px 18px;align-items:center;background:linear-gradient(130deg,#113e5e,#1a6282);color:#fff;padding:12px 15px;border-radius:10px;min-width:205px}.balance-chip span{font-size:11px;opacity:.75}.balance-chip strong{font-size:18px}.balance-chip button{color:#d9f3ff;text-decoration:underline;font-size:11px;text-align:left}.search-filter{display:flex;gap:8px;margin:24px 0 12px}.search{display:flex;align-items:center;gap:8px;flex:1;background:#fff;border:1px solid var(--line);border-radius:8px;padding:0 12px;color:#8190a2}.search input,.mini-search input{border:0;outline:0;width:100%;height:40px;background:transparent}.filter-button,.secondary-button{border:1px solid #d7e0ea;padding:0 12px;height:40px;border-radius:7px;background:#fff;font-weight:600;font-size:13px}.category-row{display:flex;gap:8px;overflow:auto;padding-bottom:6px}.pill{white-space:nowrap;border:1px solid #dce5ee;border-radius:99px;padding:6px 12px;color:#5e7084;background:#fff}.pill.active{background:var(--navy);border-color:var(--navy);color:#fff}.section-title{align-items:center;margin:21px 0 12px}.text-button{color:var(--blue);font-weight:700}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.project-card{background:#fff;border:1px solid var(--line);padding:15px;border-radius:10px;transition:.18s box-shadow,.18s transform}.project-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.project-top{display:flex;justify-content:space-between;align-items:center}.flag{font-size:20px}.stock,.status{font-size:11px;border-radius:99px;padding:3px 7px;font-weight:700}.good,.success{color:#16805c;background:#ebfaf3}.warn,.warning{color:#b65e08;background:#fff5dc}.empty{color:#758397;background:#f2f5f7}.project-card h3{margin:15px 0 2px}.project-card p{color:var(--muted);font-size:12px;margin:0}.price{font-size:21px;font-weight:800;letter-spacing:-.7px;margin:14px 0 10px}.price span{font-size:13px}.price small{font-size:11px;color:var(--muted);font-weight:400;letter-spacing:0}.primary-button{background:var(--blue);color:#fff;border-radius:7px;min-height:38px;padding:0 14px;font-size:13px;font-weight:700}.primary-button:hover{background:#0768e8}.project-card .primary-button,.full{width:100%}.muted-card{opacity:.68}.page-heading{margin-bottom:21px}.data-card,.wallet-card,.help-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;box-shadow:0 1px 2px rgba(16,35,58,.02)}.tabs{display:flex;gap:19px;border-bottom:1px solid var(--line);margin:0 -18px 12px;padding:0 18px}.tab{padding:0 0 10px;color:var(--muted);font-weight:600}.tab.active{color:var(--blue);border-bottom:2px solid var(--blue)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:700px;text-align:left}th{font-size:11px;color:#7a8999;font-weight:700;padding:8px 7px}td{padding:12px 7px;border-top:1px solid #eef2f6;font-size:12px}.process{color:#1767bc;background:#eaf4ff}.wallet-grid{display:grid;grid-template-columns:minmax(245px,.8fr) 1.2fr;gap:14px}.wallet-card{background:linear-gradient(135deg,#113e5e,#176584);color:#fff;display:flex;flex-direction:column;align-items:flex-start;min-height:195px}.wallet-card p{margin:0;opacity:.75}.wallet-card strong{font-size:30px;margin:10px 0 16px}.wallet-card .primary-button{background:#fff;color:var(--navy)}.wallet-card small{opacity:.7;margin-top:auto}.help-card{display:flex;gap:14px}.help-icon{font-size:22px;color:var(--teal)}.help-card p{color:var(--muted);margin:6px 0 14px}.help-card dl{display:grid;grid-template-columns:92px 1fr;gap:6px;margin:0;font-size:12px}.help-card dt{color:var(--muted)}.help-card dd{margin:0;font-weight:600}.empty-state{padding:28px 0;text-align:center;color:var(--muted)}.inbox-layout{display:grid;grid-template-columns:245px 1fr;background:#fff;border:1px solid var(--line);border-radius:10px;min-height:450px;overflow:hidden}.numbers-panel{border-right:1px solid var(--line);padding:12px}.mini-search{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:7px;padding:0 8px;color:#8794a5}.mini-search input{height:34px}.number-item{width:100%;display:flex;justify-content:space-between;text-align:left;padding:12px 9px;border-radius:7px;margin-top:4px}.number-item:hover,.number-item.active{background:#eff6ff}.number-item b,.number-item small{display:block}.number-item small{color:var(--muted);font-size:11px;margin-top:2px}.number-item em{font-style:normal;background:var(--blue);color:#fff;width:17px;height:17px;text-align:center;border-radius:50%;font-size:10px}.message-panel{padding:20px}.number-head{align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px}.number-head h3{display:inline;margin-left:6px}.number-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.message-empty{text-align:center;color:#9aa6b4;padding:60px 0 20px}.sms-card{max-width:570px;margin:auto;background:#f8fbff;border:1px solid #daeaff;border-radius:10px;padding:15px}.sms-meta{display:flex;justify-content:space-between;color:#6b7b90;font-size:11px}.sms-card strong{display:block;font-size:18px;margin:9px 0}.sms-card mark{background:transparent;color:var(--blue);letter-spacing:1px}.sms-card p{color:#516278;font-size:12px}.copy-button{color:var(--blue);font-weight:700}.live{color:#13795b;font-size:12px;font-weight:700}.live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#17b56d;margin-right:5px}.admin-banner{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(100deg,#e9f5f8,#f8fcff);border:1px solid #d8e9ee;border-radius:11px;padding:21px}.admin-banner p:not(.eyebrow){color:var(--muted);margin:6px 0 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:15px 0}.metrics article{background:#fff;border:1px solid var(--line);border-radius:9px;padding:14px}.metrics span,.metrics small{display:block;color:var(--muted);font-size:11px}.metrics strong{font-size:20px;display:block;margin:6px 0}.metrics .up{color:#12946c}.warn-text{color:#c06c15!important}.admin-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:13px}.admin-list>div{display:grid;grid-template-columns:auto 1fr auto;gap:6px 10px;align-items:center;padding:11px 0;border-top:1px solid var(--line)}.admin-list>div:first-child{border:0}.admin-list small{grid-column:2;color:var(--muted)}.admin-list button{grid-column:3;grid-row:1/3;color:var(--blue);font-weight:700}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quick-grid button{padding:11px;border:1px solid var(--line);border-radius:7px;text-align:left;font-size:12px;font-weight:600}.quick-grid span{color:var(--blue);margin-right:5px}.bottom-nav{display:none}.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(11,29,45,.48);z-index:12;align-items:center;justify-content:center;padding:18px}.modal-backdrop.open{display:flex}.purchase-modal{position:relative;background:#fff;border-radius:14px;width:min(480px,100%);padding:24px;box-shadow:0 24px 70px rgba(11,29,45,.25)}.purchase-modal h2{margin-bottom:18px}.close{position:absolute;right:16px;top:12px;font-size:25px;color:var(--muted)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.purchase-modal label{display:grid;gap:6px;font-weight:600;font-size:12px;margin:0 0 12px}.purchase-modal input,.purchase-modal select{height:38px;border:1px solid var(--line);border-radius:7px;padding:0 9px;background:#fff}.quantity{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}.quantity input{border:0;text-align:center;width:100%;height:36px}.quantity button{width:32px;font-size:17px}.order-total{display:flex;justify-content:space-between;padding:12px 0;margin-top:3px;border-top:1px solid var(--line)}.order-total strong{font-size:19px}.full{width:100%}
@media(max-width:900px){.sidebar{width:196px}.main{margin-left:196px}.view{padding:24px}.project-grid{grid-template-columns:repeat(2,1fr)}.metrics{grid-template-columns:1fr 1fr}.admin-grid{grid-template-columns:1fr}.topbar{padding:0 24px}}
@media(max-width:700px){body{padding-bottom:62px;font-size:13px}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0);box-shadow:20px 0 40px rgba(0,0,0,.14)}.main{margin:0}.topbar{height:54px;padding:0 13px}.menu-button{display:block;font-size:18px}.crumb{font-size:13px}.profile-text,.icon-button{display:none}.view{padding:17px 13px 30px}.hero-row,.page-heading{display:block}.hero-row h1,h1{font-size:22px}.lead{font-size:12px}.balance-chip{margin-top:14px;width:100%;padding:10px 12px}.search-filter{margin:17px 0 10px;display:grid;grid-template-columns:1fr 1fr}.search{grid-column:1/-1}.search input{height:38px}.filter-button{height:38px;padding:0 8px;font-size:12px}.search-filter .primary-button{min-height:38px;padding:0 8px}.project-grid{grid-template-columns:1fr;gap:9px}.project-card{padding:13px}.project-card h3{margin-top:11px}.price{margin:10px 0 8px;font-size:19px}.wallet-grid,.inbox-layout,.settings-grid{grid-template-columns:1fr}.help-card{margin-top:0}.numbers-panel{border-right:0;border-bottom:1px solid var(--line);max-height:190px;overflow:auto}.message-panel{padding:14px}.number-head{align-items:flex-start}.number-head .secondary-button{height:32px;padding:0 8px;font-size:11px}.admin-banner{padding:15px;align-items:flex-start}.admin-banner .secondary-button{display:none}.metrics{gap:8px}.metrics article{padding:11px}.metrics strong{font-size:17px}.tabs{gap:14px;overflow:auto}.table-wrap{margin:0 -8px}.settings-actions{align-items:flex-start;flex-direction:column}.bottom-nav{position:fixed;z-index:8;bottom:0;left:0;right:0;height:58px;display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{display:grid;place-content:center;gap:1px;color:#66768a;font-size:16px;min-width:52px}.bottom-nav button span{font-size:10px}.bottom-nav button.active{color:var(--blue)}.bottom-nav .scan{color:#fff;background:var(--navy);border-radius:50%;width:42px;height:42px;margin-top:-12px;box-shadow:0 5px 12px rgba(15,61,94,.3)}.modal-backdrop{align-items:end;padding:0}.purchase-modal{border-radius:14px 14px 0 0;width:100%;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}.purchase-modal h2{margin-bottom:15px}.close{right:15px;top:10px;font-size:24px}.form-row{gap:9px}.purchase-modal label{gap:5px;font-size:12px;margin:0 0 10px}.purchase-modal input,.purchase-modal select{height:38px}.quantity input{height:36px}.quantity button{width:32px}.order-total{padding:12px 0}.order-total strong{font-size:18px}.full{width:100%}}
.settings-card{display:none;background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px;margin-top:18px}.settings-card.open{display:block}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.settings-grid label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#334b63}.settings-grid input,.settings-grid textarea{border:1px solid #d9e2ec;border-radius:8px;padding:10px 11px;outline:0;resize:vertical;background:#fff;color:var(--ink)}.settings-grid input:focus,.settings-grid textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(22,119,255,.12)}.wide{grid-column:1/-1}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:19px;padding-top:17px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
@media(max-width:700px){.settings-grid{grid-template-columns:1fr}.settings-actions{align-items:flex-start;flex-direction:column}}
.empty-market{grid-column:1/-1;min-height:230px;display:grid;place-content:center;gap:8px;text-align:center;background:#fff;border:1px dashed #cbd8e6;border-radius:12px;color:var(--muted)}.empty-market b{font-size:17px;color:#334e68}.empty-market span{font-size:13px}.empty-table{padding:42px 8px!important;text-align:center;color:var(--muted)}
.admin-portal #market,.admin-portal #orders,.admin-portal #inbox,.admin-portal #wallet,.admin-portal .bottom-nav{display:none!important}.admin-portal .nav .nav-item{display:none}.admin-portal .admin-menu{margin-top:4px;border-top:0;padding-top:0}.admin-portal .sidebar-bottom .admin-only{display:flex}.admin-back-link{display:none!important}.admin-portal .admin-menu .admin-only,.admin-portal .sidebar-bottom .admin-only{display:flex!important}.admin-portal .admin-menu-title{display:block!important}.body-admin-market .admin-menu .admin-only,.body-admin-market .admin-menu-title{display:none!important}.body-admin-market .admin-back-link{display:flex!important;text-decoration:none;background:#eaf3ff;border:1px solid #d9eafe;margin-bottom:8px}.admin-portal .sidebar-bottom .muted{display:none}.admin-auth-pending #admin{display:none!important}
.admin-portal .sidebar{padding:18px 12px}.admin-portal .brand{padding-bottom:16px}.admin-portal .admin-menu{display:grid;gap:4px;align-content:start}.admin-menu-title{display:block!important;margin:8px 10px 5px;color:#95a3b3;font-size:10px;letter-spacing:.12em;font-weight:800}.admin-portal .nav-item{min-height:40px;border:1px solid transparent}.admin-portal .nav-item.active{background:#eaf3ff;border-color:#d9eafe;box-shadow:none}.admin-portal #admin{max-width:1440px}.admin-page-heading{display:flex;justify-content:space-between;align-items:flex-start;margin:2px 0 16px}.admin-page-heading .lead{max-width:650px}.admin-two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.compact-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.compact-form label{display:grid;gap:6px;font-weight:700;font-size:12px;color:#41566b}.compact-form label:nth-child(3){grid-column:1/-1}.compact-form input,.compact-form select,.admin-filters input,.admin-filters select,td select{height:37px;border:1px solid #d9e2ec;border-radius:7px;padding:0 9px;background:#fff;color:var(--ink)}.compact-form .primary-button{width:max-content}.compact-form .form-message{align-self:center;color:var(--muted);font-size:12px}.admin-filters{display:flex;gap:8px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.admin-filters select,.admin-filters input{min-width:150px}.sync-notice{display:grid;gap:5px;padding:13px 14px;background:#f6faff;border:1px solid #dbeafa;border-radius:8px;color:#5c7187;font-size:12px}.sync-notice b{color:#1c4d78}.page-actions{display:flex;justify-content:flex-end;margin-top:15px}#admin-workspace{margin-top:17px}#admin-workspace .data-card{margin-bottom:14px}
.admin-portal .admin-banner{display:none!important}.admin-portal .admin-grid{grid-template-columns:1fr}.admin-portal .admin-grid>article:last-child,.admin-portal .settings-card{display:none!important}.toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.toolbar-row .mini-search{width:min(360px,100%)}td code{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;color:#1774d1;font-size:11px;white-space:nowrap}@media(max-width:700px){.admin-two-col{grid-template-columns:1fr}.toolbar-row{align-items:stretch;flex-direction:column}.admin-portal .sidebar{overflow:auto}.admin-filters .mini-search{width:100%}.admin-filters select{flex:1;min-width:130px}}
.admin-portal .view#admin{max-width:none;margin:0;padding:22px 28px 32px}.admin-portal #admin-workspace{margin-top:0}.admin-portal .admin-page-heading{min-height:0;margin:0 0 12px;justify-content:flex-end}.admin-portal .admin-page-heading>div{display:none}.admin-portal .admin-page-heading:empty{display:none}.admin-portal .admin-page-heading+.data-card{min-height:calc(100vh - 136px)}.admin-portal #admin-workspace .data-card{border-radius:10px;box-shadow:none}.admin-portal .metrics{margin-top:0}.admin-portal .admin-grid .data-card{min-height:calc(100vh - 310px)}.admin-portal .table-wrap{min-height:calc(100vh - 225px)}.admin-portal .table-wrap table{table-layout:auto}.admin-portal .data-card .section-title{margin-top:0}@media(max-width:700px){.admin-portal .view#admin{padding:14px 12px 26px}.admin-portal .admin-page-heading+.data-card{min-height:calc(100vh - 112px)}.admin-portal .table-wrap{min-height:0}}
.number-filter-form{padding:2px 0 14px;border-bottom:1px solid var(--line)}.number-filter-form .mini-search{min-width:260px}.pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px;color:var(--muted);font-size:12px}.pager .secondary-button{height:34px}.floating-search{position:fixed;right:28px;bottom:28px;z-index:10;display:flex;align-items:center;gap:7px;background:var(--blue);color:#fff;min-height:42px;padding:0 15px;border-radius:99px;box-shadow:0 10px 24px rgba(22,119,255,.3);font-weight:700}@media(max-width:700px){.number-filter-form .mini-search{min-width:100%}.pager{justify-content:center}.floating-search{right:16px;bottom:72px}}
.number-filter-form .floating-search.inline-number-search{position:static;display:flex;min-height:36px;padding:0 12px;border-radius:7px;box-shadow:none;order:1}.number-filter-form .mini-search{order:2}@media(max-width:700px){.number-filter-form .floating-search.inline-number-search{width:100%;justify-content:center}.number-filter-form .mini-search{order:1}}
.number-filter-form.compact-number-filters{flex-wrap:wrap!important;gap:6px}.number-filter-form{flex-wrap:wrap!important;gap:6px}.number-filter-form .mini-search{order:0!important;flex:0 1 250px;min-width:190px}.number-filter-form select{order:1;flex:1 1 0;min-width:105px!important}.number-filter-form .primary-button{order:3;flex:0 0 auto;min-height:36px;padding:0 14px;white-space:nowrap}.number-filter-form .floating-search.inline-number-search{order:2!important;flex:0 0 auto;white-space:nowrap}@media(max-width:700px){.number-filter-form{flex-wrap:wrap!important}.number-filter-form .mini-search{flex:1 0 100%;min-width:100%}.number-filter-form select{flex:1 1 42%;min-width:0!important}}
.admin-portal .admin-page-heading{display:contents}.admin-portal .admin-page-heading>span{display:none}.admin-portal .admin-page-heading>button{position:fixed;top:11px;right:200px;z-index:8;min-height:36px;white-space:nowrap}.admin-portal .admin-page-heading+.data-card{margin-top:0}@media(max-width:700px){.admin-portal .admin-page-heading>button{position:static;margin:0 0 10px}.admin-portal .admin-page-heading{display:flex;justify-content:flex-end}}
.admin-portal #admin-workspace .table-wrap{height:650px;min-height:650px;max-height:calc(100vh - 230px);overflow:auto;border:1px solid #edf1f5;border-radius:8px}.admin-portal #admin-workspace .table-wrap table{width:100%;min-width:0;table-layout:fixed}.admin-portal #admin-workspace .table-wrap thead{position:sticky;top:0;z-index:2;background:#fbfcfe}.admin-portal #admin-workspace .table-wrap th{padding:9px 8px;white-space:nowrap;font-size:12px}.admin-portal #admin-workspace .table-wrap td{padding:8px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-portal #admin-workspace .number-table th:nth-child(1),.admin-portal #admin-workspace .number-table td.col-phone{width:118px}.admin-portal #admin-workspace .number-table th:nth-child(2),.admin-portal #admin-workspace .number-table td.col-user{width:128px}.admin-portal #admin-workspace .number-table th:nth-child(3),.admin-portal #admin-workspace .number-table td.col-project{width:150px}.admin-portal #admin-workspace .number-table th:nth-child(4),.admin-portal #admin-workspace .number-table td.col-meta{width:150px}.admin-portal #admin-workspace .number-table th:nth-child(5),.admin-portal #admin-workspace .number-table td.col-time{width:148px;white-space:normal}.admin-portal #admin-workspace .number-table th:nth-child(6),.admin-portal #admin-workspace .number-table td.col-code{width:110px;white-space:normal}.admin-portal #admin-workspace .number-table th:nth-child(7),.admin-portal #admin-workspace .number-table td.col-actions{width:188px;overflow:visible}.admin-portal #admin-workspace td select{max-width:100%;width:100%}.number-actions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}.number-actions .secondary-button,.number-actions .primary-button{min-height:30px;padding:0 10px;font-size:12px;white-space:nowrap}.number-actions .secondary-button{border:1px solid #d7e0ea;background:#fff;border-radius:6px}.sms-code{color:#0f3d5e;font-size:14px;letter-spacing:.04em}@media(max-width:700px){.admin-portal #admin-workspace .table-wrap{height:auto;min-height:0;max-height:calc(100vh - 260px)}.number-actions{flex-wrap:wrap}}
.project-results{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.results-toolbar{display:flex;justify-content:space-between;gap:12px;padding:11px 16px;border-bottom:1px solid #edf1f5;color:var(--muted);font-size:12px}.results-toolbar b{color:var(--blue)}.result-table-wrap{overflow:auto}.project-table{min-width:700px}.project-table th{padding:11px 16px;background:#fbfcfe}.project-table td{padding:12px 16px;vertical-align:middle}.project-name{display:flex;align-items:center;gap:10px;min-width:235px}.project-name b,.project-name small{display:block}.project-name small{font-size:11px;color:var(--muted);margin-top:2px}.app-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;background:#edf2f7;color:#38536d;font-size:12px;font-weight:800;flex:0 0 auto}.app-icon.telegram{background:#e3f4ff;color:#229ed9}.app-icon.whatsapp{background:#e8f9ef;color:#20a85b}.app-icon.google{background:#fff1f0;color:#e24736}.app-icon.discord{background:#eceeff;color:#5865f2}.app-icon.facebook{background:#eaf3ff;color:#1877f2}.app-icon.tiktok{background:#eef2f5;color:#111}.app-icon.apple{background:#eff2f3;color:#111}.app-icon.wechat{background:#e9f9ef;color:#15a85a}.app-icon.alipay{background:#e8f6ff;color:#1677ff}.type-tag{font-size:11px;border-radius:99px;padding:4px 8px;color:#44617b;background:#f0f5fa;white-space:nowrap}.table-price{font-size:16px;color:#102a43}.per-unit{color:var(--muted);font-size:11px;margin-left:3px}.project-table .primary-button{min-width:84px}
.project-results>.project-card{display:none}
@media(max-width:700px){.project-results{border-radius:8px}.results-toolbar{padding:9px 12px;font-size:11px}.results-toolbar span:last-child{display:none}.project-table th{padding:9px 12px}.project-table td{padding:10px 12px}.project-table{min-width:625px}.project-name{min-width:205px}.app-icon{width:28px;height:28px;font-size:11px}}
/* numbers workbench compact */
.compact-number-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 0 10px;border-bottom:1px solid var(--line)}
.compact-number-filters .mini-search{flex:1 1 160px;min-width:140px;max-width:220px;height:32px;padding:0 8px;border:1px solid #d7e0ea;border-radius:6px;background:#fff;display:flex;align-items:center;gap:6px;font-size:12px;color:#8a97a8}
.compact-number-filters .mini-search input{border:0;outline:0;width:100%;height:30px;background:transparent;font-size:12px;color:var(--ink)}
.compact-number-filters select{flex:0 1 auto;min-width:0!important;width:auto;height:32px;padding:0 8px;border:1px solid #d7e0ea;border-radius:6px;background:#fff;font-size:12px;color:#41566b}
.compact-number-filters .primary-button{height:32px;min-height:32px;padding:0 12px;font-size:12px;border-radius:6px;order:10}
.number-mode-tip{margin:8px 0 0;padding:7px 10px;border-radius:6px;background:#fff7e8;color:#9a6700;font-size:12px}
.number-actions .ghost-button{min-height:30px;padding:0 10px;font-size:12px;border:1px solid #e5eaf0;border-radius:6px;background:#f8fafc;color:#64748b}
.number-actions .ghost-button:hover{background:#eef2f6;color:#334155}
.admin-portal #admin-workspace .number-table th:nth-child(7),.admin-portal #admin-workspace .number-table td.col-actions{width:250px;overflow:visible}
.number-hidden-float{position:fixed;right:28px;bottom:120px;z-index:12;display:inline-flex;align-items:center;gap:6px;background:#334155;color:#fff;min-height:42px;padding:0 16px;border-radius:99px;box-shadow:0 10px 24px rgba(15,23,42,.25);font-weight:700;font-size:13px}
.number-hidden-float:hover{background:#1e293b}
@media(max-width:700px){.compact-number-filters .mini-search{max-width:none;flex:1 1 100%}.number-hidden-float{right:16px;bottom:110px}}
.admin-portal #admin-workspace .number-table th:nth-child(5),.admin-portal #admin-workspace .number-table td.col-time{width:138px}
.admin-portal #admin-workspace .number-table th:nth-child(6),.admin-portal #admin-workspace .number-table td.col-remark{width:140px;overflow:visible;white-space:normal}
.admin-portal #admin-workspace .number-table th:nth-child(7),.admin-portal #admin-workspace .number-table td.col-code{width:100px}
.admin-portal #admin-workspace .number-table th:nth-child(8),.admin-portal #admin-workspace .number-table td.col-actions{width:250px;overflow:visible}
.remark-input{width:100%;min-width:0;height:30px;padding:0 8px;border:1px solid #d7e0ea;border-radius:6px;background:#fff;font-size:12px;color:var(--ink)}
.remark-input:focus{outline:none;border-color:#1677ff;box-shadow:0 0 0 2px rgba(22,119,255,.12)}
.remark-input.saved{border-color:#22c55e;background:#f0fdf4}
/* purchase page: no wasted empty height */
.admin-portal #admin-workspace .purchase-workbench{min-height:0!important}
.admin-portal .admin-page-heading+.purchase-workbench,
.admin-portal #admin-workspace .data-card.purchase-workbench{min-height:0!important}
.buy-note{margin:8px 0 6px;padding:0;color:var(--muted);font-size:12px;line-height:1.4}
.buy-result{margin-top:4px}
.buy-result-placeholder{padding:18px 8px;text-align:center;color:var(--muted);font-size:13px;display:flex;flex-direction:column;gap:4px;align-items:center}
.buy-result-placeholder b{color:#334e68;font-size:14px}
.admin-portal #admin-workspace .buy-table-wrap,
.admin-portal #admin-workspace .buy-result .table-wrap{height:auto!important;min-height:0!important;max-height:none;overflow:visible;border:1px solid #edf1f5;border-radius:8px}
.admin-portal #admin-workspace .buy-table{width:100%;min-width:0;table-layout:auto}
.admin-portal #admin-workspace .buy-table th{padding:9px 10px;font-size:12px;background:#fbfcfe;white-space:nowrap}
.admin-portal #admin-workspace .buy-table td{padding:10px;vertical-align:middle;white-space:nowrap}
/* numbers page: mobile-only refinements (desktop unchanged) */
.number-mobile-list{display:none}
.filter-more-btn{display:none}
@media(max-width:700px){
  .admin-portal .view#admin{padding:10px 8px 70px}
  .admin-portal #admin-workspace .data-card.number-workbench{padding:10px 8px 12px;border-radius:8px;min-height:0!important}
  .compact-number-filters{gap:5px;padding:0 0 8px}
  .compact-number-filters .mini-search{height:28px;font-size:11px;padding:0 6px;flex:1 1 calc(100% - 70px);max-width:none;min-width:0}
  .compact-number-filters .mini-search input{height:26px;font-size:11px}
  .compact-number-filters select{height:28px;padding:0 6px;font-size:11px;flex:1 1 calc(50% - 4px)}
  .compact-number-filters select[name="user_id"]{flex:1 1 calc(50% - 4px)}
  .compact-number-filters select[name="project"]{flex:1 1 calc(50% - 4px)}
  .compact-number-filters select[name="page_size"]{flex:0 1 auto;min-width:64px}
  .compact-number-filters .filter-extra{display:none}
  .compact-number-filters.show-extra-filters .filter-extra{display:block;flex:1 1 calc(50% - 4px)}
  .compact-number-filters .filter-more-btn{display:inline-flex;align-items:center;justify-content:center;height:28px;min-height:28px;padding:0 8px;font-size:11px;border:1px solid #d7e0ea;border-radius:6px;background:#fff;color:#64748b}
  .compact-number-filters .primary-button{height:28px;min-height:28px;padding:0 10px;font-size:11px}
  .number-desktop{display:none!important}
  .number-mobile-list{display:flex;flex-direction:column;gap:8px;margin-top:6px}
  .number-card{border:1px solid #e8eef4;border-radius:8px;padding:8px 8px 7px;background:#fff}
  .number-card .nc-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px}
  .number-card .nc-phone{font-size:13px;letter-spacing:.02em;color:#0f3d5e}
  .number-card .nc-line{font-size:11px;line-height:1.35;color:#334e68;margin:2px 0}
  .number-card .nc-line.muted{color:#94a3b8;font-size:10px}
  .number-card .nc-row{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:11px}
  .number-card .nc-row>span{flex:0 0 36px;color:#94a3b8;font-size:10px}
  .number-card .nc-row select,.number-card .remark-input{flex:1;min-width:0;height:26px;font-size:11px;padding:0 6px;border:1px solid #d7e0ea;border-radius:5px;background:#fff}
  .number-card .nc-code{flex:1;font-size:12px;min-height:18px}
  .number-card .number-actions{gap:4px;flex-wrap:nowrap}
  .number-card .number-actions .secondary-button,
  .number-card .number-actions .primary-button,
  .number-card .number-actions .ghost-button{min-height:24px;height:24px;padding:0 7px;font-size:10px;border-radius:5px}
  .number-card .sms-code{font-size:13px}
  .pager{margin-top:8px;font-size:11px;gap:6px}
  .pager .secondary-button{height:28px;font-size:11px;padding:0 8px}
  .number-mode-tip{margin:6px 0 0;padding:5px 8px;font-size:11px}
  .number-hidden-float{right:12px;bottom:88px;min-height:34px;padding:0 12px;font-size:12px}
  .admin-portal #admin-workspace .number-table-wrap{height:auto!important;min-height:0!important}
}
@media(min-width:701px){
  .number-mobile-list,.filter-more-btn{display:none!important}
}

.avatar.has-image{padding:0;overflow:hidden;background:transparent}
.avatar.has-image img{width:100%;height:100%;object-fit:cover;display:block}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.account-card h2{margin:0 0 6px;font-size:16px}
.account-card .muted{margin:0 0 12px;font-size:12px}
.account-avatar-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.account-avatar{width:72px;height:72px;border-radius:50%;background:#0f3d5e;color:#fff;display:grid;place-items:center;font-weight:700;font-size:22px;overflow:hidden;flex:0 0 auto}
.account-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.account-avatar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.account-upload-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid #d7e0ea;border-radius:7px;background:#fff}
@media(max-width:700px){.account-grid{grid-template-columns:1fr}.account-avatar{width:56px;height:56px;font-size:16px}}

/* Sidebar close + mobile polish */
.sidebar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.sidebar-head .brand{padding-bottom:18px;flex:1}
.sidebar-close{display:none;width:34px;height:34px;border-radius:8px;font-size:22px;line-height:1;color:#64748b;flex:0 0 auto;margin-top:2px}
.sidebar-backdrop{display:none}
@media(max-width:700px){
  .sidebar{z-index:30;width:min(86vw,280px);padding:14px 10px 20px;overflow:auto;-webkit-overflow-scrolling:touch}
  .sidebar-close{display:grid;place-items:center}
  .sidebar-backdrop{position:fixed;inset:0;background:rgba(10,24,38,.42);z-index:25;display:none;opacity:0;transition:opacity .18s}
  .sidebar-backdrop.open{display:block;opacity:1}
  body.sidebar-open{overflow:hidden}
  .menu-button{position:relative;z-index:31;width:36px;height:36px;border-radius:8px}
  body.sidebar-open .menu-button{z-index:20}
  .admin-portal body,body.admin-portal{padding-bottom:0}
  body.admin-portal{padding-bottom:0!important}
  .admin-portal .bottom-nav{display:none!important}
  .admin-portal .sidebar .nav-item{min-height:38px;font-size:13px;padding:8px 10px}
  .admin-portal .view#admin{padding:10px 8px 28px}
  .admin-portal .metrics{grid-template-columns:1fr 1fr;gap:6px;margin:0 0 10px}
  .admin-portal .metrics article{padding:9px 10px;border-radius:8px}
  .admin-portal .metrics span,.admin-portal .metrics small{font-size:10px}
  .admin-portal .metrics strong{font-size:15px;margin:4px 0}
  .admin-portal .admin-list>div{padding:9px 0;gap:4px 8px;font-size:12px}
  .admin-portal .data-card{padding:12px 10px}
  .admin-portal #admin-workspace .data-card{padding:10px 8px;min-height:0!important}
  .admin-portal #admin-workspace .table-wrap{height:auto!important;min-height:0!important;max-height:none;border:0;border-radius:0;overflow:auto;-webkit-overflow-scrolling:touch}
  .admin-portal #admin-workspace table{min-width:560px;font-size:11px}
  .admin-portal #admin-workspace th,.admin-portal #admin-workspace td{padding:7px 6px;font-size:11px}
  .admin-portal .admin-filters,.admin-portal .compact-number-filters{gap:5px}
  .admin-portal .admin-filters .mini-search,.admin-portal .compact-number-filters .mini-search{min-width:100%;flex:1 0 100%}
  .admin-portal .admin-filters select,.admin-portal .admin-filters input,.admin-portal .compact-number-filters select{min-height:30px;height:30px;font-size:11px;padding:0 6px;border-radius:6px}
  .admin-portal .admin-filters .primary-button,.admin-portal .compact-number-filters .primary-button,.admin-portal .admin-filters .secondary-button{min-height:30px;height:30px;padding:0 10px;font-size:11px}
  .admin-portal .compact-form{grid-template-columns:1fr;gap:8px}
  .admin-portal .compact-form label{font-size:11px}
  .admin-portal .compact-form input,.admin-portal .compact-form select,.admin-portal .compact-form textarea{min-height:32px;font-size:12px}
  .admin-portal .pager{flex-wrap:wrap;justify-content:center;gap:6px;font-size:11px;margin-top:10px}
  .admin-portal .pager .secondary-button{height:28px;padding:0 8px;font-size:11px}
  .admin-portal .number-hidden-float{right:10px;bottom:18px;min-height:34px;padding:0 11px;font-size:11px}
  .admin-portal .buy-result-placeholder{padding:28px 12px;font-size:12px}
  .admin-portal .buy-note{font-size:11px;margin:6px 0 8px}
  .admin-portal .sync-notice{font-size:11px;padding:10px}
  .admin-portal .page-actions{display:flex;flex-wrap:wrap;gap:8px}
  .admin-portal .account-grid{gap:8px}
  .admin-portal .account-card h2{font-size:14px}
  .admin-portal .settings-grid{gap:10px;margin-top:8px}
  .admin-portal .settings-grid label{font-size:11px}
  .admin-portal .pricing-search-card .admin-filters{gap:5px}
  .topbar{z-index:20}
  .crumb{font-size:12px;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .profile .avatar{width:28px;height:28px;font-size:9px}
  .hero-row h1,h1{font-size:18px;letter-spacing:-.4px}
  .lead{font-size:11px}
  .section-title{margin:14px 0 8px}
  .section-title h2{font-size:14px}
  .section-title p{font-size:11px}
  .search-filter{margin:12px 0 8px;gap:6px}
  .category-row{gap:6px}
  .pill{padding:5px 10px;font-size:11px}
  .project-results{overflow:auto}
  .wallet-card{min-height:150px;padding:14px}
  .wallet-card strong{font-size:24px}
  .inbox-layout{min-height:0}
  .numbers-panel{max-height:160px}
  .data-card{padding:12px 10px}
  .login-modal{padding:18px 14px calc(18px + env(safe-area-inset-bottom))}
}
@media(min-width:701px){
  .sidebar-close,.sidebar-backdrop{display:none!important}
}

/* ===== Frontend market polish (desktop + mobile) ===== */
body:not(.admin-portal){
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(22,119,255,.08), transparent 60%),
    radial-gradient(700px 360px at 92% 4%, rgba(20,184,166,.07), transparent 55%),
    var(--bg);
}
body:not(.admin-portal) .main{background:transparent}
body:not(.admin-portal) .sidebar{background:rgba(255,255,255,.96)}
body:not(.admin-portal) .topbar{background:rgba(255,255,255,.86)}
body:not(.admin-portal) .view{max-width:1180px}
.market-hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
  padding:22px 24px;border-radius:16px;margin-bottom:14px;
  background:linear-gradient(135deg,#0f3d5e 0%,#176584 55%,#1a7a8c 100%);
  color:#fff;box-shadow:0 14px 34px rgba(15,61,94,.18);
}
.market-hero-copy .eyebrow{color:#9ad7ff;margin-bottom:8px}
.market-hero h1{color:#fff;font-size:28px;letter-spacing:-.6px;max-width:14em}
.market-hero .lead{color:rgba(255,255,255,.78);margin-top:8px;font-size:13px}
.market-hero .balance-chip{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(8px);min-width:180px;border-radius:12px;
}
.market-hero .balance-chip span{opacity:.8}
.market-hero .balance-chip button{color:#dff4ff}
.market-panel{
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 14px 10px;
  box-shadow:0 1px 2px rgba(16,35,58,.03);margin-bottom:6px;
}
body:not(.admin-portal) .search-filter{margin:0 0 10px}
body:not(.admin-portal) .search{border-radius:10px;border-color:#d9e4ef;background:#f8fbfe}
body:not(.admin-portal) .search:focus-within{border-color:#8cbcf5;box-shadow:0 0 0 3px rgba(22,119,255,.1);background:#fff}
body:not(.admin-portal) .filter-button{border-radius:10px;background:#f8fbfe}
body:not(.admin-portal) .category-row{padding-bottom:4px;gap:7px}
body:not(.admin-portal) .pill{border-radius:999px;background:#f7fafc;transition:.15s background,.15s color}
body:not(.admin-portal) .pill:hover{background:#eef5ff;color:var(--blue)}
body:not(.admin-portal) .section-title{margin:18px 0 10px}
body:not(.admin-portal) .project-results{border-radius:14px;box-shadow:0 1px 2px rgba(16,35,58,.03)}
body:not(.admin-portal) .results-toolbar{padding:12px 16px;background:#fbfcfe}
body:not(.admin-portal) .project-table .primary-button{border-radius:8px}
body:not(.admin-portal) .empty-market{min-height:260px;border-radius:14px;background:linear-gradient(180deg,#fff,#f7fbff)}
body:not(.admin-portal) .page-heading{margin-bottom:16px;align-items:center}
body:not(.admin-portal) .data-card{border-radius:14px;padding:18px}
body:not(.admin-portal) .orders-card .tabs{gap:16px}
body:not(.admin-portal) .wallet-card{border-radius:16px;min-height:210px;box-shadow:0 12px 28px rgba(15,61,94,.16)}
body:not(.admin-portal) .help-card{border-radius:14px}
body:not(.admin-portal) .inbox-layout{border-radius:14px;min-height:480px;box-shadow:0 1px 2px rgba(16,35,58,.03)}
body:not(.admin-portal) .number-item{border-radius:10px}
body:not(.admin-portal) .sms-card{border-radius:12px}
body:not(.admin-portal) .purchase-modal{border-radius:16px}
body:not(.admin-portal) .bottom-nav{backdrop-filter:blur(10px);background:rgba(255,255,255,.94)}
.project-mobile-list,.orders-mobile-list{display:none}
.numbers-list{display:flex;flex-direction:column;gap:2px;margin-top:6px}
@media(max-width:700px){
  body:not(.admin-portal) .view{padding:12px 10px 78px}
  .market-hero{display:block;padding:14px 14px 12px;border-radius:12px;margin-bottom:10px}
  .market-hero h1{font-size:18px;line-height:1.3;max-width:none}
  .market-hero .lead{font-size:11px;margin-top:6px}
  .market-hero .balance-chip{margin-top:12px;width:100%;padding:10px 12px;grid-template-columns:1fr auto;min-width:0}
  .market-panel{padding:10px;border-radius:12px}
  body:not(.admin-portal) .search-filter{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 8px}
  body:not(.admin-portal) .search{grid-column:1/-1}
  body:not(.admin-portal) .search input{height:36px;font-size:13px}
  body:not(.admin-portal) .filter-button{height:34px;font-size:11px;padding:0 6px}
  body:not(.admin-portal) .search-filter .primary-button{grid-column:1/-1;min-height:34px;font-size:13px}
  body:not(.admin-portal) .pill{padding:5px 10px;font-size:11px}
  body:not(.admin-portal) .section-title{margin:12px 0 8px}
  body:not(.admin-portal) .section-title h2{font-size:14px}
  body:not(.admin-portal) .section-title p{font-size:11px}
  body:not(.admin-portal) .project-results{border:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible}
  body:not(.admin-portal) .results-toolbar{padding:8px 2px 10px;border:0;background:transparent;font-size:11px}
  .project-desktop,.orders-desktop{display:none!important}
  .project-mobile-list{display:flex;flex-direction:column;gap:8px}
  .project-m-card{background:#fff;border:1px solid #e7eef5;border-radius:12px;padding:10px;box-shadow:0 1px 2px rgba(16,35,58,.03)}
  .pmc-top{display:flex;gap:9px;align-items:center}
  .pmc-top b{display:block;font-size:13px;color:#102a43}
  .pmc-top small{display:block;margin-top:2px;font-size:10px;color:#8090a3}
  .pmc-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
  .pmc-price{font-size:16px;font-weight:800;color:#0f3d5e}
  .pmc-price small{font-size:10px;color:#8090a3;font-weight:500;margin-left:2px}
  .project-m-card .primary-button{min-height:30px;padding:0 12px;font-size:12px;border-radius:8px}
  body:not(.admin-portal) .empty-market{min-height:180px;padding:20px 14px;border-radius:12px;font-size:12px}
  body:not(.admin-portal) .empty-market b{font-size:14px}
  body:not(.admin-portal) .page-heading{margin-bottom:10px}
  body:not(.admin-portal) .page-heading h1{font-size:18px}
  body:not(.admin-portal) .page-heading .primary-button{width:100%;margin-top:8px;min-height:34px}
  body:not(.admin-portal) .orders-card{padding:10px;border-radius:12px}
  body:not(.admin-portal) .orders-card .tabs{margin:0 0 10px;padding:0 2px 8px;gap:12px;font-size:12px}
  .orders-mobile-list{display:flex;flex-direction:column;gap:8px}
  .order-m-card{border:1px solid #e8eef4;border-radius:10px;padding:10px}
  .omc-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
  .omc-top b{font-size:12px}
  .omc-line{margin:6px 0 8px;font-size:11px;color:#64748b}
  body:not(.admin-portal) .inbox-layout{min-height:0;border-radius:12px}
  body:not(.admin-portal) .numbers-panel{max-height:170px;padding:10px}
  body:not(.admin-portal) .message-panel{padding:12px}
  body:not(.admin-portal) .number-head{flex-wrap:wrap;gap:8px;padding-bottom:10px}
  body:not(.admin-portal) .number-head h3{font-size:14px;margin-left:0}
  body:not(.admin-portal) .sms-card{padding:12px;margin-top:10px}
  body:not(.admin-portal) .sms-card strong{font-size:16px}
  body:not(.admin-portal) .wallet-grid{gap:10px}
  body:not(.admin-portal) .wallet-card{min-height:150px;padding:14px;border-radius:14px}
  body:not(.admin-portal) .wallet-card strong{font-size:26px}
  body:not(.admin-portal) .help-card{padding:14px;border-radius:12px;gap:10px}
  body:not(.admin-portal) .wallet-flow-card{padding:12px;border-radius:12px;margin-top:10px}
  body:not(.admin-portal) .live{font-size:11px}
  body:not(.admin-portal) .bottom-nav{height:56px}
  body:not(.admin-portal) .bottom-nav .scan{width:40px;height:40px;margin-top:-10px}
}
@media(min-width:701px){
  .project-mobile-list,.orders-mobile-list{display:none!important}
}

/* Brand logo */
.brand{gap:10px}
.brand-logo{width:34px;height:34px;border-radius:10px;display:block;flex:0 0 auto;box-shadow:0 4px 12px rgba(15,61,94,.18);object-fit:cover}
.brand-text{font-size:18px;font-weight:800;letter-spacing:-.6px;color:var(--navy);line-height:1}
.brand-mark{display:none}
.login-modal .login-brand{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.login-modal .login-brand img{width:40px;height:40px;border-radius:11px;box-shadow:0 6px 16px rgba(15,61,94,.2)}
.login-modal .login-brand strong{font-size:16px;color:var(--navy)}
@media(max-width:700px){
  .brand-logo{width:30px;height:30px;border-radius:9px}
  .brand-text{font-size:16px}
}

/* Customer portal: no admin entry, 3-nav only */
body.customer-portal .admin-menu,
body.customer-portal .admin-back-link,
body:not(.admin-portal) .admin-menu{display:none!important}
body.customer-portal .sidebar-bottom{border-top:0;padding-top:0;margin-top:auto}
body.customer-portal .customer-nav{gap:6px}
body.customer-portal .customer-bottom-nav{justify-content:space-around}
body.customer-portal .customer-bottom-nav button{flex:1;max-width:120px}
body.customer-portal .profile-caret{color:#94a3b8;font-size:12px}

/* Desktop customer layout */
@media(min-width:701px){
  body.customer-portal .view{padding:28px 36px 48px;max-width:1120px}
  body.customer-portal .market-hero{padding:26px 28px;margin-bottom:16px}
  body.customer-portal .market-hero h1{font-size:30px}
  body.customer-portal .market-panel{padding:16px 16px 12px;margin-bottom:8px}
  body.customer-portal .project-results{overflow:hidden}
  body.customer-portal .project-table th{padding:12px 16px}
  body.customer-portal .project-table td{padding:13px 16px}
  body.customer-portal .orders-card{padding:20px}
  body.customer-portal .inbox-layout{min-height:520px}
  body.customer-portal .wallet-grid{gap:16px}
  body.customer-portal .page-heading h1{font-size:26px}
}

/* Mobile customer layout — distinct from desktop */
@media(max-width:700px){
  body.customer-portal .sidebar .customer-nav .nav-item{min-height:42px;font-size:14px}
  body.customer-portal .view{padding:10px 10px 72px}
  body.customer-portal .topbar{height:52px;padding:0 10px}
  body.customer-portal .crumb{font-size:13px;font-weight:700}
  body.customer-portal .market-hero{
    padding:14px 12px 12px;border-radius:12px;margin-bottom:8px;
    background:linear-gradient(145deg,#0f3d5e,#176584 60%,#14918a);
  }
  body.customer-portal .market-hero h1{font-size:17px;letter-spacing:-.3px}
  body.customer-portal .market-hero .lead{font-size:11px;line-height:1.45}
  body.customer-portal .market-hero .balance-chip{
    margin-top:10px;padding:9px 11px;border-radius:10px;
    grid-template-columns:1fr auto;align-items:center;
  }
  body.customer-portal .market-hero .balance-chip strong{font-size:16px}
  body.customer-portal .market-panel{padding:8px;border-radius:12px;border:1px solid #e8eef5}
  body.customer-portal .search-filter{gap:6px;margin:0 0 8px}
  body.customer-portal .category-row{margin:0 -2px;padding:0 2px 2px}
  body.customer-portal .section-title{margin:10px 2px 8px}
  body.customer-portal .project-m-card{border-radius:11px;padding:11px}
  body.customer-portal .pmc-price{font-size:17px}
  body.customer-portal .page-heading{margin-bottom:8px}
  body.customer-portal .page-heading h1{font-size:17px}
  body.customer-portal .page-heading .lead{font-size:11px}
  body.customer-portal .page-heading .primary-button{min-height:32px;font-size:12px;margin-top:8px}
  body.customer-portal .orders-card{padding:8px;border-radius:12px}
  body.customer-portal .orders-card .tabs{gap:10px;margin:0 0 8px;padding:0 0 8px;overflow:auto;font-size:12px}
  body.customer-portal .order-m-card{padding:11px;border-radius:10px}
  body.customer-portal .inbox-layout{border-radius:12px;border:1px solid #e8eef5}
  body.customer-portal .numbers-panel{max-height:150px;padding:8px}
  body.customer-portal .message-panel{padding:10px 10px 14px;min-height:220px}
  body.customer-portal .number-item{padding:10px 8px;margin-top:3px}
  body.customer-portal .number-item b{font-size:13px}
  body.customer-portal .sms-card{margin-top:8px;padding:11px}
  body.customer-portal .wallet-card{border-radius:14px;padding:14px;min-height:140px}
  body.customer-portal .help-card{border-radius:12px;padding:12px}
  body.customer-portal .customer-bottom-nav{
    height:54px;padding-bottom:env(safe-area-inset-bottom);
    box-shadow:0 -4px 18px rgba(15,61,94,.06);
  }
  body.customer-portal .customer-bottom-nav button{font-size:15px;gap:2px}
  body.customer-portal .customer-bottom-nav button span{font-size:10px}
  body.customer-portal .customer-bottom-nav .scan{
    width:44px;height:44px;margin-top:-14px;font-size:17px;
    box-shadow:0 6px 14px rgba(15,61,94,.28);
  }
  body.customer-portal .purchase-modal h2{font-size:17px}
  body.customer-portal .login-modal{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
}

/* Guest welcome + login redesign 鈥?customer only */
html.customer-portal.is-guest .sidebar,
html.customer-portal.is-guest .sidebar-backdrop,
html.customer-portal.is-guest .bottom-nav,
html.customer-portal.is-guest .menu-button,
html.customer-portal.auth-pending .sidebar,
html.customer-portal.auth-pending .sidebar-backdrop,
html.customer-portal.auth-pending .bottom-nav,
html.customer-portal.auth-pending .menu-button,
body.customer-portal.is-guest .sidebar,
body.customer-portal.is-guest .sidebar-backdrop,
body.customer-portal.is-guest .bottom-nav,
body.customer-portal.is-guest .menu-button,
body.customer-portal.auth-pending .sidebar,
body.customer-portal.auth-pending .sidebar-backdrop,
body.customer-portal.auth-pending .bottom-nav,
body.customer-portal.auth-pending .menu-button{display:none!important}
html.customer-portal.is-guest .main,
html.customer-portal.auth-pending .main,
body.customer-portal.is-guest .main,
body.customer-portal.auth-pending .main{margin-left:0}
html.customer-portal.is-guest .topbar,
html.customer-portal.auth-pending .topbar,
body.customer-portal.is-guest .topbar,
body.customer-portal.auth-pending .topbar{padding:0 18px}
html.customer-portal.is-guest #crumb,
html.customer-portal.auth-pending #crumb,
body.customer-portal.is-guest #crumb,
body.customer-portal.auth-pending #crumb{display:none}
html.customer-portal.is-guest .view#welcome,
html.customer-portal.auth-pending .view#welcome,
body.customer-portal.is-guest .view#welcome,
body.customer-portal.auth-pending .view#welcome{display:block;padding:0;max-width:none;margin:0}
html.customer-portal.is-guest .view:not(#welcome),
html.customer-portal.auth-pending .view:not(#welcome),
body.customer-portal.is-guest .view:not(#welcome),
body.customer-portal.auth-pending .view:not(#welcome){display:none!important}
html.is-authed #welcome,
body.is-authed #welcome{display:none!important}

/* Admin dedicated login gate */
html.admin-portal #welcome,
body.admin-portal #welcome,
.admin-portal .guest-brand,
.admin-portal .customer-nav,
.admin-portal .customer-bottom-nav{display:none!important}
html.admin-portal.admin-boot .app-shell,
body.admin-portal.admin-boot .app-shell,
html.admin-portal.admin-auth-pending .app-shell,
body.admin-portal.admin-auth-pending .app-shell{visibility:hidden!important;pointer-events:none}
html.admin-portal.admin-boot::before{
  content:"正在进入管理后台…";position:fixed;inset:0;z-index:90;display:grid;place-items:center;
  color:rgba(255,255,255,.92);font:650 15px/1.4 "PingFang SC","Microsoft YaHei",sans-serif;
  background:linear-gradient(145deg,#06263d 0%,#0f4d6a 45%,#0f766e 100%);
}
html.admin-portal.admin-auth-pending #login-modal,
body.admin-portal.admin-auth-pending #login-modal{
  display:flex!important;opacity:1!important;pointer-events:auto!important;z-index:100;
  background:linear-gradient(145deg,#06263d 0%,#0f4d6a 42%,#0f766e 100%)!important;
  align-items:center;justify-content:center;padding:24px;
}
.admin-portal.admin-auth-pending .login-sheet{
  width:min(420px,100%);grid-template-columns:1fr;box-shadow:0 28px 70px rgba(0,0,0,.35);
}
.admin-portal.admin-auth-pending .login-aside{min-height:0;padding:28px 28px 18px}
.admin-portal.admin-auth-pending .auth-tabs,
.admin-portal.admin-auth-pending #close-login{display:none!important}
.admin-portal.admin-auth-pending .login-main{padding:8px 28px 28px}

@keyframes yl-welcome-in{
  from{opacity:0;transform:translateY(18px) scale(.985);filter:blur(4px)}
  to{opacity:1;transform:none;filter:none}
}
@keyframes yl-orb-float{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(18px,-22px,0) scale(1.12)}
}
@keyframes yl-orb-float-b{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-22px,16px,0) scale(1.1)}
}
@keyframes yl-mark-pulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.05)}
}
@keyframes yl-shine{
  0%{background-position:0% 40%}
  50%{background-position:100% 60%}
  100%{background-position:0% 40%}
}
@keyframes yl-cta-glow{
  0%,100%{box-shadow:0 10px 24px rgba(22,119,255,.28)}
  50%{box-shadow:0 14px 32px rgba(22,119,255,.45),0 0 0 6px rgba(22,119,255,.12)}
}
@keyframes yl-frame-in{
  from{opacity:0;transform:scale(.92)}
  to{opacity:1;transform:scale(1)}
}
@keyframes yl-aurora{
  0%{transform:rotate(0deg) scale(1);opacity:.55}
  50%{transform:rotate(180deg) scale(1.15);opacity:.85}
  100%{transform:rotate(360deg) scale(1);opacity:.55}
}
@keyframes yl-ring-spin{
  to{transform:rotate(360deg)}
}
@keyframes yl-ring-spin-rev{
  to{transform:rotate(-360deg)}
}
@keyframes yl-spark{
  0%,100%{opacity:.15;transform:scale(.6)}
  50%{opacity:1;transform:scale(1.2)}
}
@keyframes yl-glow-breathe{
  0%,100%{opacity:.45;transform:scale(.92)}
  50%{opacity:.9;transform:scale(1.08)}
}

.welcome-page{
  min-height:calc(100vh - 62px);display:grid;grid-template-columns:1.05fr .95fr;gap:0;
  background:#fff;overflow:hidden;
}
.welcome-visual{
  background:
    radial-gradient(520px 300px at 22% 18%, rgba(126,231,213,.42), transparent 58%),
    radial-gradient(460px 280px at 78% 72%, rgba(59,130,246,.32), transparent 55%),
    radial-gradient(380px 240px at 55% 45%, rgba(168,85,247,.16), transparent 60%),
    linear-gradient(145deg,#06263d 0%,#0f4d6a 38%,#0f766e 72%,#0b5c8a 100%);
  background-size:220% 220%;
  animation:yl-shine 10s ease-in-out infinite;
  position:relative;min-height:100%;overflow:hidden;
  isolation:isolate;
}
.welcome-aurora{
  position:absolute;inset:-30%;z-index:0;pointer-events:none;
  background:conic-gradient(from 120deg,rgba(20,184,166,.0),rgba(56,189,248,.35),rgba(99,102,241,.28),rgba(45,212,191,.32),rgba(20,184,166,0));
  filter:blur(40px);animation:yl-aurora 16s linear infinite;
  mix-blend-mode:screen;
}
.welcome-grid{
  position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.22;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size:36px 36px;
  mask-image:radial-gradient(circle at 50% 48%, #000 20%, transparent 72%);
}
.welcome-visual::before{
  content:"";position:absolute;inset:10% 12%;border:1px solid rgba(255,255,255,.22);border-radius:24px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 24px 70px rgba(0,0,0,.22),0 0 80px rgba(45,212,191,.12);
  animation:yl-frame-in .9s cubic-bezier(.2,.8,.2,1) both;
  pointer-events:none;z-index:1;
  background:linear-gradient(135deg,rgba(255,255,255,.06),transparent 40%,rgba(56,189,248,.05));
}
.welcome-visual::after{display:none!important;content:none!important}
.welcome-orb{
  position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none;z-index:0;
  opacity:.85;
}
.welcome-orb-a{
  width:210px;height:210px;left:8%;top:14%;
  background:radial-gradient(circle,rgba(45,212,191,.7),rgba(20,184,166,.15) 45%,transparent 70%);
  animation:yl-orb-float 6.5s ease-in-out infinite;
}
.welcome-orb-b{
  width:170px;height:170px;right:8%;bottom:16%;
  background:radial-gradient(circle,rgba(96,165,250,.65),rgba(99,102,241,.2) 48%,transparent 72%);
  animation:yl-orb-float-b 7.8s ease-in-out infinite;
}
.welcome-orb-c{
  width:110px;height:110px;left:46%;bottom:12%;
  background:radial-gradient(circle,rgba(255,255,255,.4),rgba(250,204,21,.18) 40%,transparent 70%);
  animation:yl-orb-float 5.5s ease-in-out infinite reverse;
}
.welcome-spark{
  position:absolute;width:6px;height:6px;border-radius:50%;z-index:2;pointer-events:none;
  background:#fff;box-shadow:0 0 10px 2px rgba(125,211,252,.9);
  animation:yl-spark 2.8s ease-in-out infinite;
}
.welcome-spark.s1{left:22%;top:28%;animation-delay:.2s}
.welcome-spark.s2{right:24%;top:34%;width:4px;height:4px;animation-delay:.9s}
.welcome-spark.s3{left:30%;bottom:26%;animation-delay:1.4s}
.welcome-spark.s4{right:30%;bottom:32%;width:5px;height:5px;animation-delay:.5s}
.welcome-spark.s5{left:52%;top:22%;width:3px;height:3px;animation-delay:1.8s}
.welcome-mark{
  position:absolute;inset:0;display:grid;place-items:center;z-index:3;
  animation:yl-frame-in 1s .15s cubic-bezier(.2,.8,.2,1) both;
}
.welcome-glow{
  position:absolute;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(45,212,191,.45),rgba(56,189,248,.2) 45%,transparent 70%);
  filter:blur(8px);animation:yl-glow-breathe 3.4s ease-in-out infinite;z-index:0;
}
.welcome-ring{
  position:absolute;width:148px;height:148px;border-radius:50%;z-index:1;
  background:conic-gradient(from 0deg,#2dd4bf,#38bdf8,#818cf8,#2dd4bf,transparent 60%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 2px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 2px));
  animation:yl-ring-spin 8s linear infinite;
  opacity:.9;
}
.welcome-ring-2{
  width:176px;height:176px;opacity:.45;
  background:conic-gradient(from 180deg,transparent,#7dd3fc,#a78bfa,transparent 55%);
  animation:yl-ring-spin-rev 12s linear infinite;
}
.welcome-mark img{
  position:relative;z-index:2;
  width:112px;height:112px;border-radius:26px;
  background:rgba(255,255,255,.1)!important;
  backdrop-filter:blur(10px);
  padding:16px;box-sizing:border-box;
  box-shadow:0 18px 40px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.16),0 0 40px rgba(45,212,191,.25)!important;
  animation:yl-mark-pulse 3.2s ease-in-out infinite;
}
.welcome-content{padding:48px 44px 40px;display:flex;flex-direction:column;justify-content:center;max-width:560px}
.welcome-anim{
  opacity:0;
  animation:yl-welcome-in .75s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay:var(--d,0s);
}
.welcome-logo{width:56px;height:56px;border-radius:14px;margin-bottom:18px}
.welcome-content .eyebrow{margin-bottom:10px}
.welcome-content h1{font-size:32px;letter-spacing:-.8px;line-height:1.2;margin:0;color:#0f2a43}
.welcome-content .lead{margin:12px 0 22px;font-size:14px;line-height:1.65;color:#5b6f84;max-width:34em}
.welcome-points{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.welcome-points li{
  display:grid;gap:2px;padding:12px 14px;border:1px solid #e7eef5;border-radius:12px;background:#f8fbfe;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease,background .25s ease;
}
.welcome-points li:hover{
  transform:translateY(-2px);
  border-color:#cfe3ff;background:#f3f8ff;
  box-shadow:0 10px 22px rgba(15,61,94,.08);
}
.welcome-points b{font-size:13px;color:#12324d}
.welcome-points span{font-size:12px;color:#6b7f94}
.welcome-actions{margin-top:24px}
.welcome-actions .primary-button,
.welcome-cta{
  min-height:44px;padding:0 22px;border-radius:10px;font-size:14px;
  animation:yl-cta-glow 2.4s ease-in-out infinite;
  transition:transform .2s ease,filter .2s ease;
}
.welcome-cta:hover{transform:translateY(-1px) scale(1.02);filter:brightness(1.05)}
.welcome-hint{margin:10px 0 0;font-size:12px;color:#8a9aab}
@media (prefers-reduced-motion:reduce){
  .welcome-visual,.welcome-orb,.welcome-mark img,.welcome-cta,.welcome-anim,
  .welcome-aurora,.welcome-ring,.welcome-glow,.welcome-spark{animation:none!important}
  .welcome-anim{opacity:1}
}

.login-sheet{
  position:relative;width:min(820px,100%);background:#fff;border-radius:18px;overflow:hidden;
  display:grid;grid-template-columns:.9fr 1.1fr;box-shadow:0 28px 70px rgba(11,29,45,.28);
}
.login-aside{
  padding:36px 28px;color:#fff;
  background:linear-gradient(160deg,#0f3d5e 0%,#176584 55%,#0f766e 100%);
  display:flex;flex-direction:column;justify-content:flex-end;gap:10px;min-height:360px;
}
.login-aside img{width:48px;height:48px;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,.2);margin-bottom:auto}
.login-aside h3{margin:0;font-size:22px;letter-spacing:-.4px}
.login-aside p{margin:0;font-size:13px;line-height:1.55;opacity:.86}
.login-main{padding:34px 32px 30px}
.login-main h2{margin:0 0 18px;font-size:24px;letter-spacing:-.5px}
.login-main label{display:grid;gap:6px;font-weight:700;font-size:12px;color:#41566b;margin:0 0 12px}
.login-main input{height:42px;border:1px solid #d7e2ec;border-radius:10px;padding:0 12px;background:#f8fbfe}
.login-main input:focus{outline:0;border-color:#8cbcf5;box-shadow:0 0 0 3px rgba(22,119,255,.12);background:#fff}
.login-main .form-message{margin:4px 0 14px;font-size:12px;color:#7a8b9c}
.login-main .primary-button{min-height:44px;border-radius:10px;font-size:14px}
.login-sheet .close{position:absolute;right:14px;top:10px;z-index:2;font-size:24px;color:#94a3b8}

@media(max-width:700px){
  body.customer-portal.is-guest{padding-bottom:0}
  body.customer-portal.is-guest .topbar{height:52px;padding:0 12px}
  body.customer-portal.is-guest .view#welcome{min-height:calc(100vh - 52px)}
  .welcome-page{grid-template-columns:1fr;min-height:calc(100vh - 52px)}
  .welcome-visual{min-height:180px}
  .welcome-visual::before{inset:14px;border-radius:16px}
  .welcome-mark img{width:72px;height:72px;padding:12px;border-radius:18px}
  .welcome-ring{width:100px;height:100px}
  .welcome-ring-2{width:120px;height:120px}
  .welcome-glow{width:120px;height:120px}
  .welcome-orb-a{width:110px;height:110px}
  .welcome-orb-b{width:90px;height:90px}
  .welcome-orb-c{width:60px;height:60px}
  .welcome-content{padding:22px 16px 28px;max-width:none}
  .welcome-logo{width:44px;height:44px;border-radius:12px;margin-bottom:12px}
  .welcome-content h1{font-size:22px;letter-spacing:-.4px}
  .welcome-content .lead{font-size:13px;margin:10px 0 16px}
  .welcome-points{gap:8px}
  .welcome-points li{padding:10px 11px;border-radius:10px}
  .welcome-actions{margin-top:18px}
  .welcome-actions .primary-button{width:100%}
  .login-sheet{grid-template-columns:1fr;width:100%;border-radius:16px 16px 0 0;max-height:92vh;overflow:auto}
  #login-modal.modal-backdrop{align-items:flex-end;padding:0}
  .login-aside{min-height:0;padding:20px 18px 16px;gap:6px}
  .login-aside img{width:40px;height:40px;margin:0 0 8px}
  .login-aside h3{font-size:18px}
  .login-aside p{font-size:12px}
  .login-main{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
  .login-main h2{font-size:20px;margin-bottom:14px}
}

/* Logo: no white box, use SVG */
.brand-logo,.welcome-logo,.login-aside img{background:transparent!important;box-shadow:none!important;border-radius:12px;object-fit:contain}
.avatar.is-brand{
  padding:0;overflow:hidden;background:linear-gradient(145deg,#0f3d5e,#14b8a6)!important;
  box-shadow:0 0 0 2px rgba(20,184,166,.18),0 4px 12px rgba(15,61,94,.16);
}
.avatar.is-brand img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.guest-brand{
  display:none;align-items:center;gap:8px;text-decoration:none;color:#0f3d5e;
  font-weight:800;font-size:15px;letter-spacing:-.4px;
}
.guest-brand img{width:28px;height:28px;border-radius:8px;display:block}
.guest-brand span span{font-weight:500;color:#53708a;margin-left:1px}
body.is-guest .guest-brand,
html.is-guest .guest-brand{display:inline-flex}
body.customer-portal.is-guest .topbar{justify-content:space-between;gap:12px}
body.is-guest .profile{
  padding:4px 12px 4px 4px;border-radius:999px;border:1px solid #d7e5f0;background:#fff;
  box-shadow:0 4px 14px rgba(15,61,94,.06);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
body.is-guest .profile:hover{
  border-color:#b7d4f5;box-shadow:0 8px 20px rgba(22,119,255,.12);transform:translateY(-1px);
}
body.is-guest .profile .avatar{width:30px;height:30px}
body.is-guest .profile-text{font-size:13px;font-weight:700;color:#12324d}
body.is-guest #profile-role{color:#6b7f94;font-weight:500}
body.is-guest .profile-caret{display:none}
body.is-authed .guest-brand{display:none!important}
.settings-layout{
  display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:start;min-height:420px;
}
.settings-side{
  position:sticky;top:78px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 10px;
  display:grid;gap:4px;align-content:start;
}
.settings-side-title{
  margin:2px 8px 8px;font-size:10px;letter-spacing:.12em;font-weight:800;color:#95a3b3;text-transform:uppercase;
}
.settings-side-item{
  display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:8px 10px;border-radius:8px;
  text-align:left;color:#5b6b7e;font-weight:650;font-size:13px;border:1px solid transparent;
}
.settings-side-item>span{width:16px;text-align:center;opacity:.75}
.settings-side-item:hover{background:#f5f8fb;color:var(--navy)}
.settings-side-item.active{background:#eaf3ff;border-color:#d9eafe;color:var(--blue)}
.settings-main{min-width:0}
.settings-pane{display:none}
.settings-pane.active{display:block}
.settings-pane-card{margin:0}
.settings-pane-desc{margin:6px 0 14px}
.settings-pane-actions{
  grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:6px;
  padding-top:14px;border-top:1px solid var(--line);
}
.settings-pane-actions .form-message{margin:0}
@media(max-width:900px){
  .settings-layout{grid-template-columns:1fr}
  .settings-side{position:static;display:flex;flex-wrap:wrap;gap:6px;padding:10px}
  .settings-side-title{width:100%;margin:0 2px 4px}
  .settings-side-item{width:auto;min-height:34px;padding:6px 12px;border-radius:999px;background:#f5f8fb}
}
.auth-tabs{display:flex;gap:6px;margin:0 0 16px}
.auth-tab{flex:1;min-height:34px;border-radius:8px;border:1px solid #d7e2ec;background:#f5f8fb;color:#5b6f84;font-weight:700;font-size:12px}
.auth-tab.active{background:#eaf3ff;border-color:#cfe3ff;color:var(--blue)}
.auth-pane{display:none}
.auth-pane.active{display:block}
.login-main .secondary-button.full{width:100%;min-height:40px;border-radius:10px}
@media(max-width:700px){
  .auth-tabs{margin-bottom:12px}
}

.mail-hint{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:#f3faf8;border:1px solid #d7efe8;color:#3f5b55;font-size:12px;line-height:1.55}
.mail-hint code{font-family:Consolas,Menlo,monospace;background:#e7f5f0;padding:1px 5px;border-radius:4px;color:#0f766e}
.customer-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:180px}
.customer-actions .text-button{font-size:12px;padding:0}
.customer-actions .text-button.danger{color:#c2410c}