:root {
  color-scheme: light;
  --ink: #162425;
  --muted: #687778;
  --line: #dfe7e6;
  --line-strong: #cbd8d6;
  --surface: #ffffff;
  --canvas: #f4f7f6;
  --accent: #087f75;
  --accent-dark: #06665f;
  --accent-soft: #e7f5f2;
  --orange: #c76b28;
  --orange-soft: #fff1e6;
  --red: #b5473e;
  --red-soft: #fdecea;
  --blue: #3b6fa6;
  --blue-soft: #eaf2fa;
  --shadow: 0 12px 36px rgba(23, 51, 49, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); min-height: 100vh; }
body.overlay-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { height: 74px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.header-inner { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { display: block; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 18px; line-height: 1.2; letter-spacing: 0; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.account-area { display: flex; align-items: center; gap: 12px; }
.org-copy { display: grid; justify-items: end; gap: 2px; margin-right: 8px; }
.org-copy select { max-width: 230px; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; text-align: right; outline: 0; cursor: pointer; }
.org-tier { color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #31a876; box-shadow: 0 0 0 3px #e5f5ed; }
.status-dot.pending { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.header-action { border-color: var(--line); background: white; }
.user-menu-wrap { position: relative; }
.user-menu { min-height: 42px; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 8px; cursor: pointer; border-radius: 7px; }
.user-menu:hover, .user-menu[aria-expanded="true"] { background: var(--canvas); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: #315c61; font-size: 13px; font-weight: 700; }
.user-name { font-size: 13px; font-weight: 600; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-menu .icon { width: 15px; color: var(--muted); }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 188px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 16px 36px rgba(16, 39, 38, 0.12); display: grid; gap: 4px; z-index: 25; }
.dropdown-item { width: 100%; min-height: 38px; border: 0; border-radius: 6px; background: transparent; display: flex; align-items: center; gap: 10px; padding: 0 10px; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; }
.dropdown-item:hover { background: var(--canvas); }
.dropdown-item .icon { width: 16px; height: 16px; color: var(--muted); }
.dropdown-item.danger { color: var(--red); }
.dropdown-item.danger .icon { color: var(--red); }

main { max-width: 1184px; margin: 0 auto; padding: 48px 28px 64px; }
.pending-notice { min-height: 250px; padding: 42px; border: 1px solid var(--line); border-radius: 8px; background: white; display: flex; align-items: flex-start; gap: 22px; }
.pending-notice h1,.pending-notice p { margin: 0; }
.pending-notice h1 { font-size: 26px; }
.pending-notice p:last-child { margin-top: 12px; max-width: 720px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.pending-notice code { color: var(--ink); overflow-wrap: anywhere; }
.pending-icon { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); flex: 0 0 auto; }
.pending-icon .icon { width: 24px; height: 24px; }
.pending-refresh { margin-top: 20px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading h1, .section-heading h2, .section-heading p { margin: 0; }
.section-heading h1 { font-size: 30px; line-height: 1.2; letter-spacing: 0; font-weight: 720; }
.section-heading h2 { font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.section-heading > div > p:not(.eyebrow) { margin-top: 7px; color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 11px; font-weight: 750; letter-spacing: 1.2px; margin: 0 0 7px !important; }
.retention-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; background: var(--surface); border: 1px solid var(--line); padding: 9px 12px; border-radius: 7px; white-space: nowrap; }
.retention-note strong { color: var(--ink); }

.dropzone { margin-top: 24px; min-height: 274px; border: 1.5px dashed #9db8b4; border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 24px 22px; cursor: pointer; position: relative; overflow: hidden; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.dropzone::before, .dropzone::after { content: ""; position: absolute; width: 90px; height: 90px; border: 1px solid #dce9e7; transform: rotate(45deg); opacity: .55; }
.dropzone::before { left: -54px; bottom: 20px; }
.dropzone::after { right: -44px; top: 12px; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragging { border-color: var(--accent); background: #fbfefd; box-shadow: 0 0 0 4px rgba(8,127,117,.07); outline: none; }
.dropzone.dragging { background: var(--accent-soft); }
.upload-visual { width: 66px; height: 58px; position: relative; margin-bottom: 12px; }
.upload-sheet { position: absolute; display: block; border-radius: 7px; border: 1px solid #c5d8d5; }
.upload-sheet.back { width: 46px; height: 46px; left: 8px; top: 2px; background: #dcefeb; transform: rotate(-8deg); }
.upload-sheet.front { width: 48px; height: 48px; left: 15px; top: 8px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(27,68,64,.11); }
.upload-sheet.front .icon { color: var(--accent); width: 22px; height: 22px; }
.dropzone-copy h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.dropzone-copy p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.upload-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; position: relative; z-index: 1; }
.button { min-height: 40px; border-radius: 7px; border: 1px solid transparent; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 650; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:active { transform: translateY(1px); }
.button.primary { color: white; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { background: white; border-color: var(--line-strong); }
.button.secondary:hover { background: var(--canvas); border-color: #aebfbc; }
.button.danger { color: var(--red); background: white; border-color: #e7c5c2; }
.dropzone-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 23px; color: #7a8989; font-size: 11px; }
.separator { width: 3px; height: 3px; border-radius: 50%; background: #b5c2c1; }

.upload-queue { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.queue-item { min-height: 68px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px 16px; }
.queue-item + .queue-item { border-top: 1px solid var(--line); }
.queue-copy { min-width: 0; }
.queue-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 7px; }
.queue-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-status { color: var(--accent); white-space: nowrap; }
.queue-failed .queue-status { color: var(--red); }
.queue-failed .progress-fill { background: var(--red); }
.progress-track { height: 5px; border-radius: 5px; background: #edf2f1; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .2s ease; }

.history-section { margin-top: 52px; }
.history-heading { align-items: center; }
.history-tools { display: flex; align-items: center; gap: 10px; }
.search-box { width: 240px; height: 40px; border: 1px solid var(--line-strong); background: white; border-radius: 7px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: var(--muted); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,127,117,.08); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 13px; background: transparent; }
.search-box input::placeholder { color: #98a4a4; }
.segmented { height: 40px; display: flex; align-items: center; gap: 2px; padding: 3px; background: #e9eeed; border-radius: 7px; }
.segment { height: 32px; padding: 0 12px; border: 0; background: transparent; border-radius: 5px; color: var(--muted); font-size: 12px; cursor: pointer; }
.segment.active { color: var(--ink); background: white; font-weight: 650; box-shadow: 0 1px 3px rgba(30,55,52,.1); }
.file-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; box-shadow: 0 5px 18px rgba(31,56,53,.035); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { height: 45px; padding: 0 15px; color: #778585; background: #f8faf9; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; font-weight: 650; white-space: nowrap; }
td { height: 76px; padding: 11px 15px; border-bottom: 1px solid #e9eeee; color: #405052; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #fbfdfc; }
th:nth-child(1) { width: 30%; }
th:nth-child(2) { width: 12%; }
th:nth-child(3) { width: 10%; }
th:nth-child(4) { width: 13%; }
th:nth-child(5) { width: 14%; }
th:nth-child(6) { width: 9%; }
th:nth-child(7) { width: 72px; }
.file-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-icon { width: 38px; height: 42px; flex: 0 0 auto; border-radius: 6px; display: grid; place-items: end center; padding-bottom: 6px; font-size: 8px; font-weight: 800; letter-spacing: .5px; position: relative; overflow: hidden; }
.file-icon::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 0 9px 9px; border-color: transparent transparent rgba(255,255,255,.7) transparent; }
.type-xlsx { color: #1e7954; background: #e3f3eb; }
.type-zip { color: #8c5e1c; background: #f8eddc; }
.type-mp4 { color: #6a50a2; background: #eee9f8; }
.type-jpg, .type-png { color: #326b9d; background: #e5f0fa; }
.type-pdf { color: #a9443d; background: #f9e7e5; }
.type-txt { color: #536567; background: #edf1f1; }
.file-meta { min-width: 0; display: grid; gap: 5px; }
.file-name { border: 0; padding: 0; background: transparent; text-align: left; font-size: 13px; font-weight: 650; color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.file-kind { color: #829090; font-size: 10px; }
.uploader { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.mini-avatar { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e7edec; color: #405556; font-size: 9px; font-weight: 700; }
.date-stack { display: grid; gap: 3px; white-space: nowrap; }
.date-stack span:last-child { color: #8b9797; font-size: 10px; }
.expiry { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; border-radius: 5px; padding: 0 8px; background: var(--accent-soft); color: #257068; white-space: nowrap; font-size: 11px; font-weight: 620; }
.expiry .icon { width: 13px; height: 13px; }
.expiry.warning { color: var(--orange); background: var(--orange-soft); }
.expiry.urgent { color: var(--red); background: var(--red-soft); }
.download-count { border: 0; padding: 3px 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 650; border-bottom: 1px dashed #78b8b1; white-space: nowrap; }
.download-count:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #637374; cursor: pointer; }
.icon-button:hover { color: var(--accent); background: var(--accent-soft); }
.icon-button .icon { width: 17px; height: 17px; }
.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); }
.empty-state .icon { width: 28px; height: 28px; color: #94a8a6; margin-bottom: 4px; }
.empty-state strong { color: var(--ink); font-size: 14px; }
.empty-state span { font-size: 12px; }
.panel-footer { min-height: 43px; padding: 0 15px; border-top: 1px solid var(--line); background: #fbfcfc; color: #849191; display: flex; align-items: center; justify-content: space-between; font-size: 10px; }

.site-footer { max-width: 1184px; margin: 0 auto; min-height: 72px; padding: 0 28px; border-top: 1px solid var(--line); color: #84908f; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--accent); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(12,29,29,.46); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 8px; box-shadow: 0 24px 70px rgba(10,31,29,.25); animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-header { min-height: 78px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-header h2 { margin: 0; font-size: 19px; }
.modal-body { padding: 20px; }
.modal-footer { min-height: 68px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfcfc; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.field-label { display: block; color: #526061; font-size: 12px; font-weight: 650; margin: 0 0 7px; }
.filename-field { height: 42px; border: 1px solid var(--line-strong); border-radius: 7px; display: flex; align-items: center; margin-bottom: 18px; overflow: hidden; }
.filename-field:focus-within, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,127,117,.08); }
.filename-field input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 12px; }
.filename-field span { height: 100%; display: flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--line); background: #f5f7f6; color: var(--muted); font-size: 12px; }
textarea { width: 100%; resize: vertical; min-height: 170px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 11px 12px; outline: none; line-height: 1.7; font-size: 13px; color: var(--ink); }
textarea::placeholder { color: #9aa6a5; }
.textarea-meta { margin-top: 7px; display: flex; justify-content: space-between; color: #8a9695; font-size: 10px; }
.record-file { padding: 14px 20px; background: #f7faf9; border-bottom: 1px solid var(--line); }
.record-file strong { display: block; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.record-file span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.records-list { padding: 4px 20px; max-height: 350px; overflow: auto; }
.record-row { min-height: 58px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #ebf0ef; }
.record-row:last-child { border-bottom: 0; }
.record-person { display: grid; gap: 3px; min-width: 0; }
.record-person strong { font-size: 12px; }
.record-person span, .record-time { color: var(--muted); font-size: 10px; }
.record-time { text-align: right; white-space: nowrap; }
.records-footer { justify-content: space-between; color: var(--muted); font-size: 11px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: grid; gap: 8px; }
.toast { width: min(340px, calc(100vw - 32px)); min-height: 52px; padding: 10px 13px; border: 1px solid #cfe2df; border-radius: 7px; background: white; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; color: #33494a; font-size: 12px; animation: toast-in .2s ease-out; }
.toast .icon { color: var(--accent); }
.toast.danger { border-color: #efd0cd; }
.toast.danger .icon { color: var(--red); }
.auth-backdrop { background: #eaf0ef; }
.auth-modal { width: min(430px, 100%); }
.auth-brand { min-height: 82px; padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.auth-brand img { display: block; }
.auth-brand div { display: grid; gap: 2px; }
.auth-brand strong { font-size: 18px; }
.auth-brand span, .auth-intro { color: var(--muted); font-size: 12px; }
.auth-modal h2 { margin: 0; font-size: 21px; }
.auth-tabs { height: 38px; margin-bottom: 20px; padding: 3px; border-radius: 7px; background: #e9eeed; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.auth-tab { border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.auth-tab.active { background: white; color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px rgba(30,55,52,.1); }
.auth-intro { margin: 7px 0 20px; }
.auth-form { display: grid; }
.auth-form .field-label:not(:first-child) { margin-top: 15px; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.join-modal { width: min(460px, 100%); }
.members-modal { width: min(760px, 100%); }
.join-code-panel { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f7faf9; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.join-code-panel > div { display: grid; gap: 4px; }
.join-code-panel span, .join-code-panel small { color: var(--muted); font-size: 10px; }
.join-code-panel strong { font-size: 22px; letter-spacing: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.members-summary { min-height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.members-summary strong { font-size: 12px; }
.members-summary span { color: var(--muted); font-size: 10px; }
.organization-members-list { max-height: 430px; overflow: auto; padding: 4px 20px; }
.organization-member-row { min-height: 68px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto; align-items: center; gap: 11px; border-bottom: 1px solid #e9eeee; }
.organization-member-row:last-child { border-bottom: 0; }
.organization-member-copy { min-width: 0; display: grid; gap: 4px; }
.organization-member-copy strong, .organization-member-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organization-member-copy strong { font-size: 12px; }
.organization-member-copy span { color: var(--muted); font-size: 10px; }
.member-state { min-height: 24px; padding: 0 7px; border-radius: 5px; display: inline-flex; align-items: center; font-size: 9px; font-weight: 650; }
.member-state.active { color: var(--accent); background: var(--accent-soft); }
.member-state.pending { color: var(--orange); background: var(--orange-soft); }
.member-actions { min-width: 150px; display: flex; justify-content: flex-end; gap: 6px; }
.member-actions .button { min-height: 31px; padding: 0 10px; font-size: 10px; }
.member-actions small { color: var(--muted); font-size: 9px; }
.member-approve { color: white; background: var(--accent); border-color: var(--accent); }
.member-reject, .member-remove { color: var(--red); background: white; border-color: #e7c5c2; }
.member-empty { min-height: 180px; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }
.text-input { width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 0 11px; outline: none; background: white; }
.text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,127,117,.08); }
.form-error { margin: 12px 0 0; padding: 9px 10px; border-radius: 6px; color: var(--red); background: var(--red-soft); font-size: 11px; }
.auth-submit { width: 100%; margin-top: 20px; }
.button:disabled { opacity: .58; cursor: not-allowed; }
.auth-api { min-height: 44px; padding: 0 22px; border-top: 1px solid var(--line); background: #fbfcfc; color: var(--muted); display: flex; align-items: center; font-size: 10px; }
.auth-api code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.quick-login-modal { width: min(880px, 100%); }
.quick-login-body { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 30px; align-items: start; }
.quick-login-copy { display: grid; gap: 18px; align-content: start; }
.quick-login-intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.scan-guides { display: grid; gap: 18px; }
.scan-guide { padding-left: 14px; border-left: 2px solid var(--line-strong); }
.scan-guide-title { min-height: 26px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.scan-guide-title strong { font-size: 13px; }
.platform-badge { min-height: 23px; padding: 0 8px; border-radius: 5px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 750; }
.platform-badge.ios { color: var(--blue); background: var(--blue-soft); }
.platform-badge.android { color: var(--accent); background: var(--accent-soft); }
.quick-login-steps { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: #425355; font-size: 12px; line-height: 1.65; }
.status-pill { min-height: 32px; width: fit-content; max-width: 100%; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; }
.status-pill.waiting { color: var(--blue); background: var(--blue-soft); }
.status-pill.redeeming { color: var(--orange); background: var(--orange-soft); }
.status-pill.success { color: var(--accent); background: var(--accent-soft); }
.status-pill.expired, .status-pill.error { color: var(--red); background: var(--red-soft); }
.quick-login-meta { min-width: 92px; display: grid; justify-items: end; gap: 3px; }
.quick-login-meta span { color: var(--muted); font-size: 10px; }
.quick-login-meta strong { font-size: 23px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.quick-login-hint { width: 100%; margin: 0; color: #506264; font-size: 11px; line-height: 1.6; text-align: center; }
.quick-login-card { display: grid; gap: 13px; justify-items: center; }
.qr-shell { width: min(318px, 100%); border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; display: grid; gap: 12px; padding: 16px; }
.qr-visual { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.qr-shell img { width: 100%; max-width: 230px; height: auto; display: block; }
.qr-shell .status-pill { width: 100%; min-height: 36px; border-radius: 6px; justify-content: center; }
.qr-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d1dddb; border-top-color: var(--accent); animation: spin 1s linear infinite; }
.quick-login-action-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.quick-login-refresh { width: 100%; }

.sessions-modal { width: min(760px, 100%); }
.sessions-summary { min-height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sessions-summary strong { font-size: 13px; }
.sessions-summary span { color: var(--muted); font-size: 11px; }
.sessions-list { max-height: 430px; overflow: auto; padding: 8px 20px 20px; display: grid; gap: 10px; }
.session-row { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.session-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.session-avatar .icon { width: 18px; height: 18px; }
.session-copy { min-width: 0; display: grid; gap: 8px; }
.session-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.session-head strong { font-size: 13px; }
.session-badge { min-height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; }
.session-badge.current { color: var(--accent); background: var(--accent-soft); }
.session-badge.password { color: var(--blue); background: var(--blue-soft); }
.session-badge.quick-login { color: var(--orange); background: var(--orange-soft); }
.session-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 11px; }
.session-actions { display: flex; align-items: center; gap: 8px; }
.session-actions .button { min-height: 34px; padding: 0 12px; font-size: 12px; }

.session-detail-modal { width: min(620px, 100%); }
.session-detail-body { display: grid; gap: 16px; }
.session-detail-hero { display: flex; align-items: center; gap: 12px; }
.session-detail-hero .session-avatar { width: 48px; height: 48px; }
.session-detail-hero strong { display: block; font-size: 16px; }
.session-detail-hero span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.detail-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfc; display: grid; gap: 6px; }
.detail-card span { color: var(--muted); font-size: 11px; }
.detail-card strong, .detail-card code { font-size: 13px; overflow-wrap: anywhere; }

.mobile-login-overlay { position: fixed; inset: 0; z-index: 90; background: #e7efed; display: grid; place-items: center; padding: 24px; }
.mobile-login-panel { width: min(420px, 100%); min-height: 520px; border-radius: 8px; background: rgba(255,255,255,.82); border: 1px solid rgba(207, 222, 219, 0.9); box-shadow: 0 28px 70px rgba(17, 44, 42, 0.12); display: grid; justify-items: center; align-content: center; gap: 18px; padding: 32px 28px; text-align: center; }
.mobile-login-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.mobile-login-badge .icon { width: 28px; height: 28px; }
.mobile-login-panel h1 { margin: 0; font-size: 30px; line-height: 1.15; }
.mobile-login-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 280px; }
.mobile-login-orbit { position: relative; width: 220px; aspect-ratio: 1; display: grid; place-items: center; }
.mobile-login-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(8, 127, 117, 0.18); }
.mobile-login-ring.ring-a { animation: orbit-a 2.4s ease-in-out infinite; }
.mobile-login-ring.ring-b { inset: 20px; border-color: rgba(59, 111, 166, 0.2); animation: orbit-b 2.4s ease-in-out infinite; }
.mobile-login-core { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); border: 8px solid #dcebf1; box-shadow: 0 18px 40px rgba(17, 78, 92, 0.24); animation: pulse 1.6s ease-in-out infinite; }
.mobile-login-exit { min-width: 132px; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit-a {
  0%, 100% { transform: scale(0.94); opacity: .6; }
  50% { transform: scale(1); opacity: 1; }
}
@keyframes orbit-b {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(0.9); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(0.92); }
  50% { transform: scale(1); }
}

@media (max-width: 980px) {
  th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { display: none; }
  th:nth-child(1) { width: 36%; }
  th:nth-child(2) { width: 16%; }
  th:nth-child(5) { width: 20%; }
  th:nth-child(6) { width: 13%; }
  .quick-login-body { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 66px; }
  .header-inner { padding: 0 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand-copy small, .org-tier, .user-name { display: none; }
  .org-copy select { max-width: 112px; font-size: 11px; }
  .account-area { gap: 6px; }
  .user-dropdown { right: -4px; }
  main { padding: 32px 16px 48px; }
  .pending-notice { min-height: 300px; padding: 28px 22px; }
  .organization-member-row { grid-template-columns: 30px minmax(0,1fr) auto; padding: 12px 0; }
  .member-actions { grid-column: 2/-1; min-width: 0; justify-content: flex-start; }
  .section-heading { align-items: flex-start; }
  .section-heading h1 { font-size: 25px; }
  .retention-note { padding: 8px 10px; font-size: 11px; }
  .dropzone { min-height: 300px; padding-inline: 16px; }
  .dropzone-copy h2 { font-size: 16px; }
  .dropzone-foot { flex-wrap: wrap; max-width: 280px; line-height: 1.5; }
  .history-tools { width: 100%; flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .segmented { width: fit-content; }
  .join-code-panel, .members-summary, .sessions-summary, .panel-footer, .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; }
  .record-row, .session-row { grid-template-columns: 30px minmax(0,1fr); }
  .record-time, .session-actions { grid-column: 2; }
  .session-actions { justify-content: flex-start; flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr; }
  .mobile-login-panel { min-height: 100%; }
}

@media (max-width: 560px) {
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { max-height: calc(100vh - 20px); }
  .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .modal-footer { flex-wrap: wrap; justify-content: stretch; }
  .modal-footer .button { width: 100%; }
  .quick-login-body { gap: 22px; }
  .quick-login-action-row { gap: 10px; }
  .quick-login-meta { min-width: 82px; }
  .quick-login-meta strong { font-size: 21px; }
  .session-head { align-items: flex-start; }
  .mobile-login-panel { padding: 28px 20px; }
  .mobile-login-panel h1 { font-size: 26px; }
  .mobile-login-orbit { width: 190px; }
}
