/* Operations workspace: calm light surfaces, full-width work areas, clear task hierarchy. */
:root{--canvas:#f3f5f7;--surface:#fff;--surface-soft:#f8fafb;--ink:#202b35;--muted:#667480;--subtle:#87939d;--line:#e4e9ee;--forest:#235b4e;--forest-deep:#19483d;--forest-soft:#eaf3ef;--wine:#235b4e;--wine-hover:#19483d;--wine-soft:#eaf3ef;--sidebar-width:224px;--radius:10px;--focus:#6d9f91}
body{font-size:14px;letter-spacing:0;background:var(--canvas);color:var(--ink)}
.sidebar{background:#fff;color:var(--ink);border-right:1px solid var(--line);padding:24px 12px 16px}.sidebar-brand{color:#244e43;padding:0 10px 26px}.sidebar-brand .brand-mark{color:#235b4e}.sidebar-brand small{color:#7c8990;opacity:1;font-size:10px}.sidebar-section-label,.sidebar-note{display:none}.sidebar nav .nav-group-title{padding:9px 12px;color:#647480;font-size:13px;min-height:40px;gap:10px;border-radius:7px}.nav-index{display:inline-flex;align-items:center;justify-content:center;font-family:ui-monospace,monospace;width:24px;height:24px;border:1px solid #e6ebe8;border-radius:7px;color:#7b9289;background:#f9fbfa;font-size:11px}.sidebar nav a{color:#6b7782}.sidebar nav a:hover,.sidebar nav button:hover{color:#235b4e;background:#f3f7f5}.sidebar nav .nav-link{padding:9px 14px 9px 46px;min-height:38px;font-size:13px;border-radius:7px}.sidebar nav .nav-link.is-active{background:#eaf3ef;color:#235b4e;font-weight:600;border:1px solid #dcebe4}.sidebar nav .nav-link.is-active span{color:#558b7d}.nav-group{margin:2px 0 6px}.nav-children{padding:0 0 4px}.nav-chevron{color:#7d9287}
.topbar{min-height:76px;padding:16px 28px;background:#fff;backdrop-filter:none;box-shadow:none}.topbar-heading h1{font-size:19px;margin:0 0 4px}.topbar-heading p{font-size:12px;line-height:1.6;color:#7c8893}.operator-avatar{border-radius:10px}.operator-copy{gap:1px}.operator-caption{font-size:10px}#operator-name{font-size:13px}#content{max-width:none;width:100%;padding:26px 28px 40px;margin:0}.workspace-footer{padding:0 28px 18px;color:#89959e;letter-spacing:.03em}
.panel,#legacy-panels .card{border-radius:10px;background:#fff;border:1px solid var(--line);box-shadow:0 2px 4px #20332c03;margin-bottom:20px;overflow:hidden}.panel-head{padding:18px 22px;border-bottom:1px solid #edf0f2;min-height:64px}.panel-head h2{font-size:15px;color:#253b35;font-weight:600}.panel-body{padding:22px}.content-grid{gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid>.panel{margin:0 0 20px}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:16px}.metric{padding:20px;border-radius:9px;border:1px solid #e8edf0;background:#fbfcfd}.metric span{font-size:13px;color:#74818c}.metric strong{font-size:30px;letter-spacing:-.7px;color:#235b4e;font-weight:600;line-height:1.2;margin-top:14px;font-variant-numeric:tabular-nums}.todo-row{padding:18px 0;color:#34423b;border-color:#edf0f1}.todo-row strong{font-size:24px;color:#235b4e}.todo-row small{font-size:12px;line-height:1.6;color:#7e8b93}
.btn,#legacy-panels .btn{min-height:38px;padding:8px 15px;line-height:1.5;border-radius:7px;border:1px solid #dfe5e8;background:#fff;color:#43525d;box-shadow:none;font-size:13px}.btn:hover,#legacy-panels .btn:hover{border-color:#9ebcaf;background:#f4f9f6;color:#235b4e}.btn.primary,#legacy-panels .btn.primary{background:#235b4e;border-color:#235b4e;color:#fff}.btn.primary:hover{background:#19483d}.btn.danger,#legacy-panels .btn.danger{background:#fff7f6;border-color:#efd9d5;color:#ad5144}.btn.small,.btn.sm,#legacy-panels .btn.sm{min-height:32px;padding:6px 10px;font-size:12px}.row{gap:10px}.filter-row{gap:16px}.filter-row label{font-size:12px;color:#697a86}.filter-row input,.filter-row select{min-width:150px}.filter-row>button{align-self:flex-end}#new-page input,#new-page select,#new-page textarea,.dialog input,.dialog select,.dialog textarea,#legacy-panels input,#legacy-panels select,#legacy-panels textarea{min-height:40px;border:1px solid #dfe5e9;border-radius:7px;padding:8px 12px;color:#35434e;background:#fff;font-size:14px;line-height:1.6}input::placeholder,textarea::placeholder{color:#929ca4}.notice.is-visible{border-radius:8px;background:#edf5f1;color:#507464;border:1px solid #dcebe2;font-size:13px;line-height:1.8;padding:14px 18px}.notice.danger{color:#ac5147;background:#fff3f0;border-color:#f0dcd6}.notice.warning{background:#fff9ed;border-color:#eee2c7;color:#8c733f}
#new-page table,#legacy-panels table,.dialog .table-scroll table{font-size:13px;line-height:1.7;width:100%;border-collapse:collapse}#new-page th,#legacy-panels th,.dialog .table-scroll th{padding:13px 16px;background:#f7f9fb;color:#70808c;font-size:12px;font-weight:600;border-bottom:1px solid #e6ebee;white-space:nowrap;text-align:left}#new-page td,#legacy-panels td,.dialog .table-scroll td{padding:15px 16px;border-bottom:1px solid #edf0f3;color:#43535e;vertical-align:middle;overflow-wrap:anywhere}#new-page tbody tr:hover,#legacy-panels tbody tr:hover{background:#fafcfb}.table-scroll,.tw{overflow:auto;max-width:100%;scrollbar-width:thin}.table-scroll:focus-visible{outline-offset:-3px}.pager{padding:0 2px;gap:12px;min-height:40px;font-size:13px;color:#74828d}.empty-state{padding:44px 20px;color:#89969f}.empty-orbit{color:#a5bbb2}.tag,.badge{border-radius:5px;font-size:11px;padding:3px 7px;line-height:1.5}.tag{background:#edf4f0;color:#527563}.definition,.page-note{color:#7b8992;font-size:12px;line-height:1.9}
.dialog-backdrop{padding:24px;background:#20302962;backdrop-filter:blur(2px)}.dialog{width:580px;background:#fff;border-radius:12px;border:1px solid #ffffffa6;box-shadow:0 18px 80px #1530252b;max-height:calc(100dvh - 48px)}.dialog.wide{width:calc(100vw - 64px);max-width:1600px}.dialog header{padding:18px 24px;background:#fff;border-bottom:1px solid #e9edef}.dialog header h2{font-size:18px;color:#263b32;margin:0}.dialog header .eyebrow{display:none}.dialog-body{padding:24px;font-size:14px;line-height:1.8;background:#fff}.dialog footer{padding:14px 24px;border-top:1px solid #e9edef;background:#fbfcfd}.dialog p{color:#73828c}.dialog input,.dialog textarea{font-size:14px}.form-grid{gap:0 24px}.field{font-size:13px;line-height:1.6;color:#64727d;margin-bottom:20px}.check-row{padding:12px;border-color:#e4ebe6;background:#f7faf8;color:#557362}.json-preview{background:#f5f8fa;color:#697984;border-radius:8px;padding:18px}.sensitive-value{background:#eff6f2;color:#315f4e}
.user-workspace-tabs,.profile-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid #e3e9ed;margin:0 0 22px;padding:0;overflow-x:auto;scrollbar-width:thin;flex:none}.user-workspace-tabs button,.profile-tabs button{flex:none;position:relative;padding:13px 2px;font-size:14px;line-height:1.6;border:0;background:none;color:#788690;min-height:48px;white-space:nowrap}.user-workspace-tabs button[aria-selected=true],.profile-tabs button[aria-selected=true]{font-weight:600;color:#235b4e}.user-workspace-tabs button[aria-selected=true]:after,.profile-tabs button[aria-selected=true]:after{content:"";position:absolute;height:3px;bottom:0;left:0;right:0;background:#235b4e;border-radius:3px 3px 0 0}.profile-tabs button span{display:inline-block;padding:0 6px;font-size:11px;margin-left:7px;border-radius:5px;background:#f0f3f5;color:#81908b}.profile-tabs button[aria-selected=true] span{background:#eaf3ef;color:#235b4e}.profile-banner{padding:0 0 24px;margin-bottom:0;gap:18px;border:0;border-radius:0;display:flex;align-items:center}.profile-banner img,.profile-avatar-empty{width:72px;height:72px;border-radius:16px;object-fit:cover;flex:none}.profile-avatar-empty{display:flex;align-items:center;justify-content:center;background:#edf4f0;color:#4e7667;font-size:26px}.profile-banner-main{min-width:0;flex:1}.profile-kind{display:block;color:#81918c;font-size:11px;line-height:1.6;letter-spacing:.03em}.profile-banner h3{font-size:24px;line-height:1.5;margin:3px 0;color:#273c33;overflow-wrap:anywhere}.profile-banner p{font-size:13px;line-height:1.7;color:#7e8c94;margin:4px 0 0}.profile-banner-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.profile-tab-panel{min-height:320px;outline:none}.profile-block+.profile-block{margin-top:28px}.profile-block h4{font-size:14px;line-height:1.6;color:#476054;margin:0 0 16px;padding:0 0 10px;border-bottom:1px solid #edf1f2;font-weight:600}.detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px;margin:0}.detail-grid>div{display:flex;flex-direction:column;gap:6px;min-width:0;padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid #edf1f3}.detail-grid dt{font-size:12px;color:#8b989f;line-height:1.6}.detail-grid dd{font-size:14px;line-height:1.8;color:#3d505b;white-space:pre-wrap;overflow-wrap:anywhere}.profile-tab-panel .table-scroll{border:1px solid #e8edef;border-radius:8px}.profile-tab-panel .table-scroll tr:last-child td{border-bottom:0}.profile-tab-panel .review-image{width:72px;height:90px;border-radius:8px}.bar-column i{background:#86b5a4}.funnel-list i{background:#86b5a4}.status-dot{background:#7cab99}.toast-item{background:#254f40;color:#fff;border-radius:8px}.toast-item.is-error{background:#a65b4c}
.login-story{background:#193f34}.login-panel{background:#f8faf9}.login-card{max-width:390px}.login-card h2{font-size:28px}.login-card form{gap:18px}.login-story-copy h1{font-size:46px}.login-submit{background:#235b4e!important;border-color:#235b4e!important}.login-card .field{margin-bottom:0}
@media(min-width:1700px){#content{padding:30px 40px 44px}.topbar{padding-left:40px;padding-right:40px}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}}
@media(max-width:1200px){.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-banner-actions{max-width:200px}.content-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){:root{--sidebar-width:224px}#content{padding:18px 16px 32px}.topbar{padding:12px 16px;min-height:68px}.sidebar{background:#fff}.dialog-backdrop{padding:10px}.dialog,.dialog.wide{width:100%;max-height:calc(100dvh - 20px);border-radius:10px}.dialog header,.dialog-body,.dialog footer{padding:16px}.profile-banner{align-items:flex-start;flex-wrap:wrap;gap:14px}.profile-banner-actions{max-width:none;width:100%;justify-content:flex-start}.profile-tabs{gap:22px;margin-bottom:18px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.profile-tab-panel{min-height:240px}.profile-banner h3{font-size:22px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric{padding:16px}.metric strong{font-size:26px}.panel-head,.panel-body{padding:16px}.filter-row label{min-width:130px}.filter-row input,.filter-row select{min-width:0;width:100%}.filter-row>button{flex:1}.user-workspace-tabs{gap:24px}.workspace-footer{padding-left:16px}}
@media(max-width:420px){.detail-grid{grid-template-columns:1fr}.operator-copy{display:none}.profile-banner img{width:64px;height:64px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.profile-subsection+.profile-subsection{margin-top:24px}.profile-subsection h5{font-size:13px;line-height:1.6;font-weight:600;color:#587568;margin:0 0 18px;padding-left:10px;border-left:3px solid #a9c6ba}.detail-grid>.profile-field-long{grid-column:1 / -1;min-height:0;padding:0 0 18px}.profile-field-long dd{max-width:100%;line-height:1.9}.profile-tab-panel .detail-grid{align-items:start}#p-users #uKw{flex:1 1 260px!important;max-width:420px}#p-users>.card:first-of-type h2{font-size:17px;margin-bottom:6px}#p-users>.card:first-of-type .sub{font-size:13px;color:#7d8b94}#legacy-panels .pager{justify-content:flex-end;gap:12px}.pager button{flex:none}

#legacy-panels .pager{font-size:13px;line-height:1.8}#legacy-panels .pager .btn{min-height:36px;padding:7px 12px;font-size:12px}.pager-count{margin-right:auto}

.health-prepare .metric:last-child strong{font-size:20px;line-height:1.6}.profile-field-long dd{max-width:100ch}

.health-prepare .metric:last-child strong{font-size:18px;white-space:pre-line;overflow-wrap:normal;word-break:keep-all}

#content .sub, #content .empty, #content .u-id, #content th,
#content .metric-label, #content .stat-label { color: #53616b; }
#content button:focus-visible, #content a:focus-visible, #content summary:focus-visible {
  outline: 2px solid #245e54;
  outline-offset: 2px;
}
.order-more summary { cursor: pointer; padding: 5px 8px; min-height: 32px; color: #43535e; }
.order-more button { margin: 4px 0; }
#p-refunds .pagination { padding: 10px 14px; display: flex; gap: 8px; }
@media (max-width: 650px) {
  .order-list { overflow: visible; }
  .order-list table, .order-list tbody { display: block; width: 100%; min-width: 0; }
  .order-list thead { display: none; }
  .order-list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px; border-bottom: 1px solid #dce4e1; }
  .order-list td { min-width: 0; padding: 5px 4px; border: 0; overflow-wrap: anywhere; }
  .order-list td:nth-child(1), .order-list td:nth-child(2), .order-list td:nth-child(8) { grid-column: 1 / -1; }
  .order-list td:nth-child(3)::after { content: " 币"; }
  .order-list td:nth-child(6)::before { content: "创建 "; }
  .order-list td:nth-child(7)::before { content: "到账 "; }
  .order-list td:nth-child(8) .ops { justify-content: flex-start; }
}

.import-picker { display: flex; align-items: center; gap: 12px; position: relative; cursor: pointer; overflow-wrap: anywhere; }
.import-picker input[type=file] { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; }
.import-picker:focus-within { outline: 2px solid #245e54; outline-offset: 3px; }
#profile-detail .profile-block .empty { min-height: 0; padding: 10px 0 14px; text-align: left; }
#profile-detail .profile-block .empty::before { display: none; }

@media (max-width: 650px) {
  #content .legacy-panel .sub { font-size: 13px; line-height: 1.55; }
}

@media (max-width: 650px) {
  #content:is([data-route=quality],[data-route=team],[data-route=tasks],[data-route=sessions],[data-route=audit]) #new-page .table-scroll table,
  #content:is([data-route=quality],[data-route=team],[data-route=tasks],[data-route=sessions],[data-route=audit]) #new-page .table-scroll tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  #content:is([data-route=quality],[data-route=team],[data-route=tasks],[data-route=sessions],[data-route=audit]) #new-page .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #content:is([data-route=quality],[data-route=team],[data-route=tasks],[data-route=sessions],[data-route=audit]) #new-page tbody tr {
    display: block;
    border-bottom: 1px solid #dce4e1;
    padding: 10px;
  }
  #content:is([data-route=quality],[data-route=team],[data-route=tasks],[data-route=sessions],[data-route=audit]) #new-page td[data-heading] {
    display: block;
    width: 100%;
    padding: 5px 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  #content:is([data-route=quality],[data-route=team],[data-route=tasks],[data-route=sessions],[data-route=audit]) #new-page td[data-heading]::before {
    content: attr(data-heading);
    display: inline-block;
    min-width: 65px;
    margin-right: 8px;
    font-size: 12px;
    color: #53616b;
  }
}
