:root {
    --ink: #12233f;
    --ink-2: #203754;
    --teal: #0e8f86;
    --teal-soft: #e7f4f1;
    --copper: #b97947;
    --paper: #f5f7f8;
    --white: #ffffff;
    --line: #dce3e7;
    --muted: #687689;
    --danger: #a53f45;
    --shadow: 0 24px 70px rgba(18, 35, 63, .12);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.desk-muted { color: var(--muted); line-height: 1.7; }
.desk-eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.desk-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.desk-brand img { width: 45px; height: 45px; object-fit: contain; }
.desk-brand span { display: flex; flex-direction: column; gap: 2px; }
.desk-brand strong { font-size: 19px; letter-spacing: -.02em; }
.desk-brand small { color: #8090a4; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.desk-brand--light { color: var(--white); }
.desk-brand--light small { color: rgba(255,255,255,.62); }

/* 登录页 */
.desk-access-page { overflow-x: hidden; background: var(--white); }
.desk-access-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); min-height: 100vh; }
.desk-access-story { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 720px; padding: 46px clamp(38px, 5vw, 84px); color: var(--white); background: var(--ink); isolation: isolate; }
.desk-access-story::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 82% 20%, rgba(14,143,134,.24), transparent 32%), linear-gradient(145deg, #0b1930, #172e4d 72%, #10233c); }
.desk-access-story::after { content: ""; position: absolute; z-index: -1; right: -13%; bottom: -35%; width: 660px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.desk-access-copy { position: relative; z-index: 2; max-width: 650px; margin-top: clamp(80px, 12vh, 145px); }
.desk-access-copy .desk-eyebrow { color: #5dd1c2; }
.desk-access-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 6.3vw, 92px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.desk-access-copy > p:last-child { max-width: 510px; margin-top: 26px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.7; }
.desk-access-visual { position: absolute; z-index: 1; right: -4%; bottom: -3%; width: min(56%, 670px); opacity: .56; mix-blend-mode: screen; pointer-events: none; }
.desk-access-visual img { display: block; width: 100%; mask-image: linear-gradient(to top, rgba(0,0,0,.8), transparent 96%); }
.desk-access-meta { display: flex; gap: 28px; margin-top: auto; padding-top: 60px; color: rgba(255,255,255,.54); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.desk-access-meta span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 9px; border-radius: 50%; background: #5dd1c2; vertical-align: middle; }
.desk-access-panel { display: grid; place-items: center; padding: 48px; background: #fbfcfc; }
.desk-access-form-wrap { width: min(100%, 430px); }
.desk-access-form-wrap h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 46px; font-weight: 500; letter-spacing: -.04em; }
.desk-access-form-wrap form { display: grid; gap: 19px; margin-top: 38px; }
.desk-field { display: grid; gap: 8px; }
.desk-field > span { color: var(--ink-2); font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.desk-field em { color: #91a0af; font-size: 10px; font-style: normal; font-weight: 500; text-transform: uppercase; }
.desk-field input, .desk-batch-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; outline: none; background: var(--white); color: var(--ink); transition: border .18s, box-shadow .18s; }
.desk-field input { height: 51px; padding: 0 15px; }
.desk-field input:focus, .desk-batch-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,143,134,.1); }
.desk-primary-button, .desk-secondary-button { min-height: 48px; border-radius: 4px; padding: 0 18px; font-weight: 750; transition: transform .16s, box-shadow .16s, opacity .16s; }
.desk-primary-button { display: flex; align-items: center; justify-content: space-between; border: 0; background: var(--ink); color: var(--white); box-shadow: 0 12px 30px rgba(18,35,63,.18); }
.desk-primary-button b { color: #64d6c7; font-size: 20px; }
.desk-secondary-button { border: 1px solid var(--ink); background: var(--white); color: var(--ink); }
.desk-primary-button:hover, .desk-secondary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(18,35,63,.13); }
.desk-primary-button:disabled, .desk-secondary-button:disabled { cursor: wait; opacity: .55; }
.desk-primary-button.is-loading span::after { content: " ···"; }
.desk-login-error { min-height: 18px; color: var(--danger); font-size: 13px; }
.desk-access-foot { margin-top: 32px; color: #8b98a6; font-size: 11px; line-height: 1.6; }

/* 工作台 */
.desk-workspace { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.desk-rail { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 31px 23px 24px; border-right: 1px solid #1f3857; color: var(--white); background: var(--ink); }
.desk-nav { display: grid; gap: 7px; margin-top: 56px; }
.desk-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 5px; color: #aebbc9; font-size: 13px; font-weight: 650; }
.desk-nav a::after { content: ""; position: absolute; right: -23px; width: 3px; height: 0; background: #54c9bc; transition: height .18s; }
.desk-nav a:hover, .desk-nav a.is-active { color: var(--white); background: rgba(255,255,255,.07); }
.desk-nav a.is-active::after { height: 28px; }
.desk-nav img { width: 28px; height: 28px; object-fit: contain; filter: saturate(.9); }
.desk-rail-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.desk-rail-foot div { display: flex; flex-direction: column; gap: 3px; }
.desk-rail-foot strong { font-size: 11px; }
.desk-rail-foot small { color: #8495a8; font-size: 10px; }
.desk-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #54c9bc; box-shadow: 0 0 0 5px rgba(84,201,188,.11); }
.desk-stage { min-width: 0; }
.desk-topbar { display: flex; align-items: center; min-height: 106px; padding: 23px clamp(25px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(16px); }
.desk-topbar h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; letter-spacing: -.035em; text-transform: capitalize; }
.desk-topbar .desk-eyebrow { margin-bottom: 4px; }
.desk-account { display: grid; grid-template-columns: auto 34px; margin-left: auto; text-align: right; }
.desk-account span { font-size: 13px; font-weight: 750; }
.desk-account small { color: var(--muted); font-size: 10px; }
.desk-account a { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; margin-left: 12px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.desk-menu-button { display: none; margin-right: 15px; border: 0; background: transparent; color: var(--ink); font-size: 22px; }
.desk-content { width: min(100%, 1440px); margin: 0 auto; padding: clamp(28px, 4vw, 62px); }
.desk-view { display: grid; gap: 27px; }
.desk-hero-card { position: relative; display: flex; justify-content: space-between; overflow: hidden; min-height: 285px; padding: clamp(32px, 5vw, 66px); color: var(--white); background: linear-gradient(122deg, #12233f, #1b3d5a); box-shadow: var(--shadow); }
.desk-hero-card::after { content: ""; position: absolute; inset: auto -120px -240px auto; width: 500px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.desk-hero-card h2, .desk-section-lead h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4vw, 59px); font-weight: 500; line-height: 1.03; letter-spacing: -.05em; }
.desk-hero-card p:last-child { max-width: 530px; color: rgba(255,255,255,.68); line-height: 1.7; }
.desk-hero-card > img { position: relative; z-index: 1; width: 180px; height: 180px; object-fit: contain; opacity: .88; }
.desk-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.desk-stat-grid article { position: relative; display: grid; gap: 11px; min-height: 155px; padding: 27px; border: 1px solid var(--line); background: var(--white); }
.desk-stat-grid article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--teal); }
.desk-stat-grid span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.desk-stat-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.desk-stat-grid small { color: #9aa5b0; }
.desk-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.desk-action-grid a { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 15px; min-height: 103px; padding: 20px; border: 1px solid var(--line); background: var(--white); transition: transform .18s, box-shadow .18s; }
.desk-action-grid a:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(18,35,63,.09); }
.desk-action-grid img { width: 42px; height: 42px; object-fit: contain; }
.desk-action-grid div { display: grid; gap: 5px; }
.desk-action-grid strong { font-size: 13px; }
.desk-action-grid span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.desk-action-grid b { color: var(--teal); font-size: 20px; }
.desk-section-lead { display: flex; align-items: center; justify-content: space-between; min-height: 190px; padding: 35px 42px; border-bottom: 1px solid var(--line); background: var(--white); }
.desk-section-lead p:last-child { max-width: 630px; color: var(--muted); line-height: 1.7; }
.desk-section-lead > img { width: 118px; height: 118px; object-fit: contain; }
.desk-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.desk-tool-grid--single { grid-template-columns: minmax(0, 760px); }
.desk-tool-card { min-width: 0; padding: 27px; border: 1px solid var(--line); background: var(--white); }
.desk-tool-card--wide { width: 100%; }
.desk-card-title { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid #edf0f2; }
.desk-card-title img { width: 43px; height: 43px; object-fit: contain; }
.desk-card-title h3 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.desk-card-title p { margin: 0; color: var(--muted); font-size: 11px; }
.desk-api-form { display: grid; gap: 16px; margin-top: 22px; }
.desk-api-form button { width: 100%; }
.desk-batch-form { display: grid; grid-template-columns: 1fr 180px; align-items: end; gap: 14px; margin-top: 22px; }
.desk-batch-form textarea { min-height: 130px; padding: 14px; resize: vertical; }
.desk-result { display: none; max-height: 310px; overflow: auto; margin: 20px 0 0; padding: 16px; border: 1px solid #d8e9e5; border-radius: 3px; color: #173c3a; background: #f0f8f6; font: 12px/1.65 Consolas, monospace; white-space: pre-wrap; }
.desk-result.is-visible { display: block; }

/* 商户资料列表与页内汇总 */
.desk-stat-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.desk-stat-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.desk-compact-metrics article { min-height: 132px; padding: 22px; }
.desk-compact-metrics strong { font-size: 28px; }
.desk-compact-metrics b { color: var(--ink-2); font-weight: 700; }
.desk-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--white); }
.desk-filter label { display: grid; flex: 1 1 170px; gap: 7px; min-width: 130px; }
.desk-filter label > span { color: var(--ink-2); font-size: 11px; font-weight: 750; }
.desk-filter .desk-filter-grow { flex: 1 1 280px; }
.desk-filter input, .desk-filter select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; outline: none; color: var(--ink); background: var(--white); }
.desk-filter input[type="datetime-local"] { min-width: 0; }
.desk-filter input:focus, .desk-filter select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,143,134,.1); }
.desk-filter button { flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
.desk-filter.is-loading { opacity: .66; pointer-events: none; }
.desk-table-card { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.desk-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
.desk-table-card table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12px; }
.desk-table-card th, .desk-table-card td { padding: 14px 16px; border-bottom: 1px solid #edf0f2; text-align: left; white-space: nowrap; }
.desk-table-card th { color: var(--muted); background: #f9fafb; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.desk-table-card tbody tr:hover { background: #f7fbfa; }
.desk-table-card tbody tr:last-child td { border-bottom: 0; }
.desk-detail-button { min-width: 64px; padding: 7px 12px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); background: var(--white); font-size: 11px; font-weight: 750; }
.desk-detail-button:hover, .desk-detail-button:focus-visible { border-color: var(--teal); color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(14,143,134,.1); }
.desk-number { text-align: right !important; font-variant-numeric: tabular-nums; }
.desk-mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: 11px; }
.desk-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.desk-badge--success { color: #08756e; background: #e4f5f0; }
.desk-badge--pending { color: #7b5b13; background: #fff4d8; }
.desk-badge--warning { color: #915523; background: #fff0e1; }
.desk-badge--danger { color: #963b42; background: #fae9eb; }
.desk-credit { color: #08756e; font-weight: 750; }
.desk-debit { color: var(--danger); font-weight: 750; }
.desk-empty { display: none; padding: 54px 20px; color: var(--muted); text-align: center; }
.desk-empty.is-visible { display: block; }
.desk-pager { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.desk-pager div { display: flex; gap: 8px; }
.desk-pager button { min-width: 78px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); background: var(--white); }
.desk-pager button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.desk-pager button:disabled { cursor: default; opacity: .4; }
.desk-detail-open { overflow: hidden; }
.desk-detail-layer { position: fixed; z-index: 80; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(520px, 760px); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s, visibility .2s; }
.desk-detail-layer.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }
.desk-detail-backdrop { grid-column: 1 / -1; grid-row: 1; width: 100%; height: 100%; border: 0; background: rgba(10,24,43,.54); cursor: default; }
.desk-detail-panel { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; background: var(--paper); box-shadow: -28px 0 80px rgba(10,24,43,.24); transform: translateX(36px); transition: transform .22s ease; }
.desk-detail-layer.is-visible .desk-detail-panel { transform: translateX(0); }
.desk-detail-panel > header { display: flex; align-items: center; justify-content: space-between; min-height: 116px; padding: 28px 34px; border-bottom: 1px solid var(--line); background: var(--white); }
.desk-detail-panel h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; letter-spacing: -.035em; }
.desk-detail-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); font-size: 25px; line-height: 1; }
.desk-detail-close:hover, .desk-detail-close:focus-visible { border-color: var(--teal); color: var(--teal); outline: none; }
.desk-detail-body { display: grid; gap: 18px; overflow-y: auto; padding: 26px 34px 48px; }
.desk-detail-section { border: 1px solid var(--line); background: var(--white); }
.desk-detail-section h3 { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; letter-spacing: .08em; }
.desk-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.desk-detail-grid > div { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 17px 20px; border-right: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; }
.desk-detail-grid > div:nth-child(2n) { border-right: 0; }
.desk-detail-grid > div.is-wide { grid-column: 1 / -1; border-right: 0; }
.desk-detail-grid span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.desk-detail-grid strong { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.6; }
.desk-detail-grid pre { max-height: 190px; overflow: auto; margin: 0; padding: 12px; color: #d8ece8; background: #132640; font: 11px/1.65 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.desk-toast { position: fixed; z-index: 50; right: 26px; bottom: 26px; max-width: min(420px, calc(100vw - 40px)); padding: 14px 18px; border-left: 3px solid var(--danger); color: var(--white); background: #26364c; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .2s, transform .2s; }
.desk-toast.is-visible { opacity: 1; transform: translateY(0); }

/* 首次登录谷歌验证器绑定 */
.desk-google-bind-open { overflow: hidden; }
.desk-google-bind-layer { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 28px; background: rgba(10,24,43,.78); backdrop-filter: blur(8px); }
.desk-google-bind-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); width: min(880px, 100%); border: 1px solid rgba(255,255,255,.16); background: var(--white); box-shadow: 0 28px 90px rgba(5,18,34,.36); }
.desk-google-bind-intro { position: relative; overflow: hidden; min-height: 540px; padding: 58px 52px; color: var(--white); background: var(--ink); }
.desk-google-bind-intro::after { content: ""; position: absolute; right: -130px; bottom: -160px; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 68px rgba(255,255,255,.035), 0 0 0 136px rgba(255,255,255,.025); }
.desk-google-bind-intro img { position: relative; z-index: 1; width: 78px; height: 78px; object-fit: contain; }
.desk-google-bind-intro .desk-eyebrow { position: relative; z-index: 1; margin-top: 78px; color: #80d5ca; }
.desk-google-bind-intro h2 { position: relative; z-index: 1; margin: 13px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 50px; font-weight: 500; line-height: 1.02; letter-spacing: -.05em; }
.desk-google-bind-intro > p:last-child { position: relative; z-index: 1; max-width: 420px; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.8; }
.desk-google-bind-form { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 45px; }
.desk-google-qrcode { display: grid; place-items: center; align-self: center; width: 222px; height: 222px; margin-bottom: 30px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 38px rgba(18,35,63,.08); }
.desk-google-qrcode canvas, .desk-google-qrcode table { max-width: 190px; max-height: 190px; }
.desk-google-bind-form label { margin-bottom: 8px; color: var(--ink-2); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.desk-google-bind-form input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 3px; outline: none; color: var(--ink); background: var(--white); font: 22px/1 Consolas, monospace; letter-spacing: .28em; text-align: center; }
.desk-google-bind-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,143,134,.1); }
.desk-google-bind-error { min-height: 38px; margin: 8px 0 4px; color: var(--danger); font-size: 11px; line-height: 1.5; text-align: center; }
.desk-google-bind-form .desk-primary-button { width: 100%; min-height: 48px; }
.desk-google-bind-form .desk-primary-button:disabled { cursor: wait; opacity: .62; }
.desk-google-bind-logout { margin-top: 18px; color: var(--muted); font-size: 11px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.desk-google-bind-logout:hover { color: var(--ink); }

/* 文档 */
.desk-guide-page { background: var(--white); }
.desk-guide-head { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 14px clamp(24px, 5vw, 76px); color: var(--white); background: rgba(18,35,63,.97); backdrop-filter: blur(12px); }
.desk-guide-head nav { display: flex; gap: 24px; align-items: center; color: #b8c3cf; font-size: 12px; }
.desk-guide-head nav a:last-child { padding: 10px 15px; border: 1px solid rgba(255,255,255,.22); color: var(--white); }
.desk-guide-shell { display: grid; grid-template-columns: 220px minmax(0, 820px); gap: clamp(35px, 7vw, 100px); justify-content: center; padding: 70px 30px 110px; }
.desk-guide-toc { position: sticky; top: 120px; align-self: start; display: grid; gap: 12px; border-left: 1px solid var(--line); padding-left: 20px; }
.desk-guide-toc p { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.desk-guide-toc a { color: var(--muted); font-size: 12px; }
.desk-guide-toc a:hover { color: var(--ink); }
.desk-guide-content { min-width: 0; }
.desk-doc-intro { padding-bottom: 70px; }
.desk-doc-intro h1 { margin: 0; max-width: 650px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 78px); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.desk-doc-intro > p:last-of-type, .desk-doc-section > p { color: var(--muted); line-height: 1.75; }
.desk-doc-callout { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; padding: 18px 20px; border-left: 3px solid var(--teal); background: var(--teal-soft); }
.desk-doc-callout span { color: #54716f; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.desk-doc-section { padding: 55px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.desk-doc-section h2 { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 500; letter-spacing: -.035em; }
.desk-doc-section code { font-family: Consolas, "SFMono-Regular", monospace; }
.desk-doc-section > pre { overflow-x: auto; margin: 24px 0; padding: 22px; border: 1px solid #273d58; border-radius: 3px; color: #d8ece8; background: #132640; font: 12px/1.7 Consolas, monospace; }
.desk-doc-section table { width: 100%; margin: 25px 0; border-collapse: collapse; font-size: 13px; }
.desk-doc-section th, .desk-doc-section td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.desk-doc-section th { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.desk-doc-method { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.desk-doc-method span { padding: 5px 8px; border-radius: 3px; color: #08756e; background: var(--teal-soft); font-size: 10px; font-weight: 850; }
.desk-state-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.desk-state-grid div { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); }
.desk-state-grid strong { color: var(--teal); font-size: 12px; }
.desk-state-grid span { color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 1000px) {
    .desk-access-shell { grid-template-columns: 1fr; }
    .desk-access-story { min-height: 480px; }
    .desk-access-copy { margin-top: 80px; }
    .desk-access-visual { width: 50%; }
    .desk-workspace { grid-template-columns: 82px minmax(0,1fr); }
    .desk-rail { padding-inline: 16px; }
    .desk-rail .desk-brand span, .desk-nav span, .desk-rail-foot div { display: none; }
    .desk-nav a { justify-content: center; padding-inline: 0; }
    .desk-nav a::after { right: -16px; }
    .desk-action-grid { grid-template-columns: 1fr; }
    .desk-stat-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .desk-stat-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .desk-filter { flex-wrap: wrap; }
    .desk-filter label, .desk-filter .desk-filter-grow { flex: 1 1 220px; }
    .desk-guide-head nav { display: none; }
}
@media (max-width: 720px) {
    .desk-access-panel { padding: 50px 24px; }
    .desk-access-story { min-height: 430px; padding: 30px 24px; }
    .desk-access-copy { margin-top: 64px; }
    .desk-access-copy h1 { font-size: 47px; }
    .desk-access-meta { display: none; }
    .desk-workspace { display: block; }
    .desk-rail { position: fixed; z-index: 20; left: -270px; width: 250px; transition: left .2s; }
    .desk-nav-open .desk-rail { left: 0; box-shadow: 20px 0 60px rgba(18,35,63,.25); }
    .desk-rail .desk-brand span, .desk-nav span, .desk-rail-foot div { display: flex; }
    .desk-nav a { justify-content: flex-start; padding-inline: 12px; }
    .desk-menu-button { display: block; }
    .desk-account span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
    .desk-content { padding: 22px 16px 50px; }
    .desk-hero-card { min-height: 300px; }
    .desk-hero-card > img, .desk-section-lead > img { display: none; }
    .desk-stat-grid, .desk-tool-grid { grid-template-columns: 1fr; }
    .desk-stat-grid--four { grid-template-columns: 1fr; }
    .desk-stat-grid--five { grid-template-columns: 1fr; }
    .desk-filter { display: grid; grid-template-columns: 1fr; }
    .desk-filter label, .desk-filter .desk-filter-grow { min-width: 0; }
    .desk-filter button { width: 100%; }
    .desk-batch-form { grid-template-columns: 1fr; }
    .desk-section-lead { padding: 28px 24px; }
    .desk-section-lead h2 { font-size: 38px; }
    .desk-guide-shell { display: block; padding: 45px 21px 80px; }
    .desk-guide-toc { display: none; }
    .desk-state-grid { grid-template-columns: 1fr; }
    .desk-detail-layer { grid-template-columns: 18px minmax(0, 1fr); }
    .desk-detail-panel > header { min-height: 96px; padding: 22px; }
    .desk-detail-body { padding: 18px 18px 38px; }
    .desk-detail-grid { grid-template-columns: 1fr; }
    .desk-detail-grid > div, .desk-detail-grid > div:nth-child(2n) { border-right: 0; }
    .desk-detail-grid > div.is-wide { grid-column: 1; }
    .desk-google-bind-layer { align-items: start; padding: 16px; }
    .desk-google-bind-card { grid-template-columns: 1fr; }
    .desk-google-bind-intro { min-height: auto; padding: 30px 28px; }
    .desk-google-bind-intro img { width: 56px; height: 56px; }
    .desk-google-bind-intro .desk-eyebrow { margin-top: 28px; }
    .desk-google-bind-intro h2 { margin-block: 9px 15px; font-size: 37px; }
    .desk-google-bind-form { padding: 30px 26px; }
    .desk-google-qrcode { width: 210px; height: 210px; margin-bottom: 24px; }
}
