@layer reset, base, layout, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, p, dl, dd { margin: 0; }
  button, input, select { font: inherit; }
  button, a, input, select { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  button:disabled { cursor: not-allowed; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --page: #f4f6f3; --paper: #fff; --ink: #1b3027; --muted: #617269;
    --line: #dfe6df; --green: #21654c; --green-hover: #184e3a; --green-tint: #eaf3ec;
    --amber: #82520b; --amber-tint: #fff6de; --red: #a43834; --red-tint: #fff0ee;
    --radius: 12px; --ease: cubic-bezier(.16, 1, .3, 1);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    font-size: 14px; color: var(--ink); background: var(--page); line-height: 1.55;
    font-synthesis: none;
  }
  body { min-width: 320px; }
  ::selection { color: #fff; background: var(--green); }
  :focus-visible { outline: 3px solid #76a78d; outline-offset: 3px; }
  input, select { caret-color: var(--green); }
  input::placeholder { color: #708077; opacity: 1; }
  input:focus-visible, select:focus-visible { outline: 2px solid #76a78d; outline-offset: 1px; }
  button { border: 0; color: inherit; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  h1, h2 { font-weight: 650; text-wrap: balance; }
  h1 { font-size: 28px; letter-spacing: -.025em; line-height: 1.3; }
  h2 { font-size: 19px; letter-spacing: -.015em; line-height: 1.4; }
  input, select { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); min-height: 44px; padding: 10px 12px; max-width: 100%; }
  input:disabled { background: var(--page); }
  input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
  label { display: block; font-size: 13px; font-weight: 600; }
  .icon { width: 20px; height: 20px; display: block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  [data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: -70px; left: 16px; padding: 12px 18px; background: var(--green); color: white; z-index: 20; border-radius: 8px; }
  .skip-link:focus { top: 12px; }
  .boot { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
  * { scrollbar-width: thin; scrollbar-color: #c1cfc3 transparent; }
}

@layer layout {
  .app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100dvh; }
  .sidebar { background: var(--paper); border-right: 1px solid var(--line); padding: 32px 18px 18px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; }
  .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -.02em; width: fit-content; }
  .sidebar .brand { margin-left: 12px; }
  .brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--green); color: #fff; }
  .brand-symbol svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .main-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
  .nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px; background: transparent; border-radius: 8px; text-align: left; color: var(--muted); font-weight: 550; min-height: 46px; }
  .nav-item:hover { background: #f4f7f3; color: var(--ink); }
  .nav-item.active { color: var(--green); background: var(--green-tint); font-weight: 650; }
  .nav-count { margin-left: auto; font-size: 12px; padding: 1px 7px; border-radius: 5px; background: #dceade; font-variant-numeric: tabular-nums; }
  .sidebar-bottom { margin-top: auto; padding-top: 40px; }
  .access-note { display: flex; gap: 9px; color: var(--muted); padding: 0 8px 22px; font-size: 12px; }
  .access-note strong { display: block; color: #4e6558; font-size: 12px; font-weight: 550; margin-bottom: 4px; }
  .access-note p { line-height: 1.7; }
  .access-note .icon { width: 17px; height: 17px; margin-top: 2px; }
  .account-row { display: flex; align-items: center; gap: 9px; padding: 18px 6px 2px; border-top: 1px solid var(--line); }
  .avatar { background: #edf0e9; color: #566847; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
  .account-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
  .account-text strong { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
  .account-text span { font-size: 12px; color: var(--muted); }
  .main-content { padding: 36px 40px 28px; min-width: 0; max-width: 1560px; width: 100%; margin-inline: auto; }
  .page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
  .page-header p { color: var(--muted); margin-top: 9px; font-size: 13px; }
  .page-header-side { align-self: flex-start; padding-top: 5px; }
  .inbox-workspace, .users-workspace, .status-workspace { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; }
  .view-panel { min-width: 0; }
  .page-footnote { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); font-size: 12px; margin: 20px 2px 0; }
  .page-footnote .icon { width: 15px; height: 15px; margin-top: 2px; }
}

@layer components {
  .button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 10px 15px; min-height: 42px; font-size: 13px; font-weight: 600; border-radius: 8px; white-space: nowrap; transition: background 150ms var(--ease), color 150ms var(--ease); }
  .button .icon { width: 17px; height: 17px; }
  .button.primary { background: var(--green); color: #fff; }
  .button.primary:hover { background: var(--green-hover); }
  .button.secondary { background: white; border: 1px solid var(--line); }
  .button.secondary:hover { background: #f0f5ef; border-color: #b9cabb; }
  .button:disabled, .icon-button:disabled { opacity: .48; }
  .icon-button { background: transparent; width: 36px; height: 36px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
  .icon-button:hover:not(:disabled) { color: var(--green); background: var(--green-tint); }
  .badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 8px; font-size: 12px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
  .badge .icon { width: 14px; height: 14px; }
  .badge.neutral { background: #e9eee7; color: #53674f; }
  .badge.success { background: var(--green-tint); color: var(--green); }
  .badge.disabled { background: #f0f1ed; color: #677162; }
  .badge.platform { color: #5d6854; background: #f0f3eb; padding: 3px 6px; font-size: 12px; font-weight: 500; }
  .sync-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; font-size: 12px; color: var(--muted); }
  .sync-strip > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .sync-strip strong { font-weight: 600; color: #4f6757; }
  .sync-divider { height: 12px; width: 1px; background: #ced8ce; margin-inline: 3px; }
  .status-dot, .small-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8a968c; flex-shrink: 0; }
  .status-dot.online { background: #41956a; }
  .status-dot.demo { background: #bd872d; }
  .status-dot.error, .status-dot.login_required { background: var(--red); }
  .status-dot.syncing { background: var(--green); animation: status-breathe 1.4s ease-in-out infinite; }
  .sync-warning { padding: 10px 13px; background: var(--amber-tint); color: var(--amber); font-size: 12px; border-radius: 8px; margin: -2px 0 14px; }
  .list-toolbar { display: flex; gap: 14px; justify-content: space-between; padding: 20px 22px 14px; }
  .filters { display: flex; gap: 10px; flex: 1; min-width: 0; }
  .search-field { position: relative; display: flex; align-items: center; flex: 1; max-width: 380px; min-width: 120px; }
  .search-field > [data-icon] { position: absolute; left: 12px; color: #768577; pointer-events: none; }
  .search-field .icon { width: 17px; height: 17px; }
  .search-field input { padding-left: 38px; width: 100%; min-height: 42px; font-size: 12px; font-weight: 400; }
  .platform-field select { font-size: 12px; min-height: 42px; min-width: 128px; font-weight: 400; padding-block: 9px; }
  .list-summary { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; padding: 0 23px 17px; }
  .list-summary strong { color: var(--ink); font-weight: 600; }
  .summary-separator { margin-inline: 8px; color: #c7d0c6; }
  table { width: 100%; border-collapse: collapse; text-align: left; }
  th { font-size: 12px; font-weight: 550; color: #596d5f; padding: 12px 22px; background: #f8faf6; border-block: 1px solid #e5ebe2; white-space: nowrap; }
  td { border-bottom: 1px solid #e9eee6; padding: 23px 22px; vertical-align: middle; }
  tr:last-child td { border-bottom: 0; }
  .message-table { table-layout: fixed; }
  .message-table th:first-child { width: 24%; }
  .message-table th:nth-child(2) { width: 24%; }
  .message-table th:nth-child(3) { width: 34%; }
  .message-table th:last-child { width: 18%; }
  .message-row { transition: background 160ms var(--ease); }
  .message-row:hover { background: #fbfcf9; }
  .phone-label { font-size: 14px; font-weight: 650; letter-spacing: .025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .phone-subline { margin-top: 7px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .phone-tag { color: #617360; font-size: 12px; letter-spacing: .035em; }
  .code-group { display: flex; align-items: center; gap: 9px; }
  .verification-code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 27px; letter-spacing: .045em; font-weight: 550; line-height: 1.3; font-variant-numeric: tabular-nums; }
  .code-placeholder { font-size: 12px; color: var(--muted); }
  .copy-button { width: 31px; height: 34px; background: transparent; border-radius: 6px; color: #7b8a7d; display: inline-flex; align-items: center; justify-content: center; }
  .copy-button:hover { color: var(--green); background: #e9f3e9; }
  .copy-button .icon { width: 16px; height: 16px; }
  .copy-button.copied { color: var(--green); background: var(--green-tint); }
  .message-content { color: #677467; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
  .message-content summary { cursor: pointer; color: #697c6b; font-size: 12px; margin-top: 4px; }
  .message-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .message-content details[open] + .message-preview { display: none; }
  .message-time { white-space: nowrap; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
  .message-date { color: #617360; font-size: 12px; margin-top: 5px; white-space: nowrap; }
  .list-footer { border-top: 1px solid var(--line); min-height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 13px 22px; font-size: 12px; color: var(--muted); }
  .pagination { display: flex; align-items: center; gap: 11px; font-variant-numeric: tabular-nums; }
  .pagination .icon-button { width: 30px; height: 30px; border: 1px solid var(--line); }
  .pagination .icon { width: 16px; height: 16px; }
  .empty-state { padding: 72px 20px 80px; text-align: center; }
  .empty-state > [data-icon] { color: #7b9780; margin-bottom: 15px; }
  .empty-state > [data-icon] .icon { width: 40px; height: 40px; stroke-width: 1.2; }
  .empty-state h2 { font-size: 16px; margin-bottom: 9px; }
  .empty-state p { font-size: 12px; color: var(--muted); }
  .empty-state button { margin-top: 20px; }
  .loading-rows { padding: 8px 24px 28px; }
  .loading-rows > span:not(.sr-only) { display: block; height: 66px; background: #f1f5ee; margin-bottom: 12px; border-radius: 6px; animation: status-breathe 1.5s ease-in-out infinite; }
  .demo-banner, .demo-notice { display: flex; align-items: center; gap: 8px; background: var(--amber-tint); color: var(--amber); font-size: 12px; line-height: 1.6; border-radius: 7px; padding: 9px 12px; }
  .demo-banner { margin-bottom: 24px; }
  .demo-banner .icon, .demo-notice .icon { width: 16px; height: 16px; }
  .alert { padding: 12px 15px; margin-bottom: 20px; border-radius: 8px; font-size: 13px; }
  .alert.error, .form-error { color: var(--red); background: var(--red-tint); }
  .form-error { font-size: 12px; border-radius: 6px; padding: 9px 11px; margin-top: 14px; }
  .toast { position: fixed; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #233c2e; color: #fff; border-radius: 8px; font-size: 13px; padding: 12px 18px; max-width: calc(100vw - 36px); box-shadow: 0 8px 28px rgb(25 48 31 / 15%); z-index: 50; }
  .users-table td { font-size: 12px; padding-block: 20px; }
  .users-table td:first-child { font-weight: 600; overflow-wrap: anywhere; }
  .user-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .text-button { color: var(--green); background: transparent; font-size: 12px; padding: 6px 0; border-radius: 3px; }
  .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
  .text-button.danger { color: var(--red); margin-left: 10px; }
  .inline-form { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; }
  .inline-form h2 { margin-bottom: 20px; font-size: 16px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-grid label { margin-bottom: 7px; }
  .form-grid input { width: 100%; }
  .field-help { color: var(--muted); font-size: 12px; margin-top: 10px; }
  .form-actions { display: flex; gap: 10px; margin-top: 18px; }
  .reset-password-row td { background: #f7faf4; padding-block: 16px; }
  .reset-password-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
  .reset-password-form label { margin-bottom: 5px; }
  .reset-password-form input { min-width: 240px; }
  .status-workspace { padding: 28px; }
  .status-overview { display: flex; align-items: center; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .status-emblem { width: 52px; height: 52px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
  .status-emblem .icon { width: 25px; height: 25px; }
  .status-overview h2 { font-size: 19px; }
  .status-overview p { font-size: 12px; color: var(--muted); margin-top: 6px; }
  .status-details { margin-top: 10px; }
  .status-details > div { display: grid; grid-template-columns: 170px 1fr; padding: 15px 0; border-bottom: 1px solid #eef2eb; font-size: 13px; }
  .status-details > div:last-child { border-bottom: none; padding-bottom: 0; }
  .status-details dt { color: var(--muted); }
  .status-details dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .admin-help { margin-top: 28px; max-width: 700px; }
  .admin-help h2 { font-size: 14px; margin-bottom: 10px; }
  .admin-help p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 6px; }
  .source-recovery { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 24px 28px; }
  .recovery-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
  .recovery-intro h2 { font-size: 16px; }
  .recovery-intro p { margin-top: 7px; max-width: 65ch; color: var(--muted); font-size: 13px; }
  .recovery-notice { margin-top: 16px; font-size: 13px; color: var(--amber); }
  .recovery-notice.is-neutral { color: var(--muted); }
  .recovery-session { margin-top: 22px; }
  .recovery-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 13px; }
  .recovery-countdown { flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
  .recovery-boundary { margin-top: 8px; margin-bottom: 14px; max-width: 75ch; font-size: 12px; color: var(--muted); }
  .recovery-view-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .recovery-view-controls .button { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .recovery-screen { width: 100%; height: min(56vw, 580px); min-height: 260px; overflow: hidden; background: #edf1ec; border: 1px solid var(--line); border-radius: 8px; }
  .recovery-screen:empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
  .recovery-screen:empty::before { content: '等待安全连接'; }
  .recovery-screen canvas { display: block; width: 100%; height: 100%; object-fit: contain; touch-action: none; }
  .recovery-screen.is-zoomed { overflow: auto; }
  .recovery-screen.is-panning { cursor: grab; touch-action: pan-x pan-y; }
  .recovery-screen.is-panning canvas { pointer-events: none; touch-action: pan-x pan-y; }
  .recovery-keyboard { margin-top: 18px; max-width: 720px; }
  .recovery-keyboard label { font-size: 12px; color: var(--muted); }
  .recovery-input-row { display: flex; gap: 10px; margin-top: 7px; }
  .recovery-input-row input { flex: 1; min-width: 0; }
  .recovery-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .recovery-keys .button { min-height: 40px; font-size: 12px; padding: 8px 12px; }
  .recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .login-page { min-height: 100dvh; display: grid; grid-template-columns: .96fr 1.04fr; }
  .login-story { padding: 42px 54px; min-height: 100dvh; display: flex; flex-direction: column; background: #e8eee3; border-right: 1px solid #dbe5d6; }
  .login-intro { margin-block: auto; padding-block: 60px; }
  .login-intro h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.36; color: #214834; letter-spacing: -.03em; }
  .login-intro > p { margin-top: 24px; color: #526850; font-size: 15px; line-height: 1.9; }
  .login-note { display: flex; align-items: center; gap: 8px; color: #54705a; margin-top: 40px; font-size: 12px; }
  .login-note .small-dot { background: #4d865c; }
  .login-story-footer { color: #526850; font-size: 12px; }
  .login-form-area { padding: 60px 48px 30px; display: flex; align-items: center; justify-content: center; flex-direction: column; min-width: 0; background: #fff; }
  .login-form { width: min(100%, 356px); margin-block: auto; padding-block: 30px; }
  .login-form h2 { font-size: 27px; margin-top: 24px; }
  .form-lead { font-size: 12px; color: var(--muted); margin: 9px 0 30px; }
  .login-form label { margin: 18px 0 8px; }
  .login-form > input { width: 100%; min-height: 47px; }
  .password-field { position: relative; }
  .password-field input { width: 100%; min-height: 47px; padding-right: 48px; }
  .password-field .icon-button { position: absolute; right: 6px; top: 6px; }
  .login-submit { width: 100%; margin-top: 26px; min-height: 47px; justify-content: space-between; padding-inline: 16px; }
  .login-help { text-align: center; font-size: 12px; color: var(--muted); margin-top: 17px; }
  .login-privacy { margin-top: 36px; color: #596f59; font-size: 12px; text-align: center; }
  .demo-actions { padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--line); }
  .demo-actions > span { color: var(--muted); font-size: 12px; }
  .demo-actions > div { display: flex; gap: 10px; margin-top: 10px; }
  .demo-actions .button { flex: 1; font-size: 12px; }
  @keyframes status-breathe { 50% { opacity: .5; } }
}

@layer responsive {
  @media (min-width: 1440px) { .main-content { padding-inline: 56px; padding-top: 46px; } .message-table td { padding-block: 27px; } }
  @media (max-width: 1180px) {
    .app-shell { grid-template-columns: 196px minmax(0, 1fr); }
    .sidebar { padding-inline: 12px; }
    .main-content { padding: 28px 24px; }
    .message-table th, .message-table td { padding-inline: 16px; }
    .message-table th:first-child { width: 25%; }
    .message-table th:nth-child(2) { width: 27%; }
    .message-table th:nth-child(3) { width: 30%; }
    .verification-code { font-size: 24px; letter-spacing: .02em; }
    .copy-button { width: 28px; }
    .code-group { gap: 5px; }
  }
  @media (max-width: 940px) {
    .app-shell { grid-template-columns: 174px minmax(0, 1fr); }
    .main-content { padding-inline: 20px; }
    .sidebar .brand { margin-left: 8px; font-size: 20px; }
    .brand-symbol { width: 34px; height: 34px; }
    .nav-item { padding-inline: 9px; gap: 8px; font-size: 12px; }
    .access-note { padding-inline: 2px; }
    .access-note p { max-width: 100px; }
    .list-toolbar { padding-inline: 16px; flex-wrap: wrap; }
    .list-summary { padding-inline: 17px; }
    .filters { flex-basis: 100%; }
    .search-field { max-width: none; }
    .list-toolbar > button { margin-left: auto; }
    .message-table th, .message-table td { padding-inline: 13px; }
    .verification-code { font-size: 21px; }
    .message-table th:first-child { width: 25%; }
    .message-table th:nth-child(2) { width: 27%; }
    .message-table th:last-child { width: 18%; }
    .code-group { flex-wrap: wrap; }
    .users-table th, .users-table td { padding-inline: 12px; }
    .users-table th:nth-child(4), .users-table td:nth-child(4) { display: none; }
    .login-story { padding-inline: 35px; }
  }
  @media (max-width: 680px) {
    .source-recovery { padding: 20px 16px; }
    .recovery-intro { align-items: stretch; flex-direction: column; gap: 16px; }
    .recovery-intro > .button { align-self: flex-start; }
    .recovery-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .recovery-screen { height: 330px; min-height: 250px; }
    .recovery-input-row { flex-direction: column; }
    .recovery-input-row .button { align-self: flex-start; }
    .recovery-actions { flex-direction: column; }
    .app-shell { display: block; }
    .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; }
    .sidebar .brand { margin: 0; font-size: 20px; }
    .brand-symbol { width: 32px; height: 32px; border-radius: 9px; }
    .brand-symbol svg { width: 25px; height: 25px; }
    .main-nav { grid-column: 1 / -1; grid-row: 2; flex-direction: row; margin-top: 20px; gap: 12px; }
    .nav-item { width: auto; border-radius: 0; border-bottom: 2px solid transparent; padding: 10px 3px 12px; min-height: 43px; font-size: 12px; }
    .nav-item.active { background: transparent; border-bottom-color: var(--green); }
    .nav-item .icon { width: 16px; height: 16px; }
    .nav-count { font-size: 12px; padding-inline: 5px; }
    .sidebar-bottom { margin: 0; padding: 0; grid-column: 2; grid-row: 1; }
    .access-note { display: none; }
    .account-row { border: 0; padding: 0; gap: 6px; }
    .avatar { display: none; }
    .account-text { max-width: 90px; }
    .account-text strong { font-size: 12px; }
    .account-text span { font-size: 12px; }
    .account-row .icon-button { width: 30px; height: 32px; }
    .account-row .icon { width: 17px; height: 17px; }
    .main-content { padding: 24px 16px 30px; }
    h1 { font-size: 25px; }
    .page-header { margin-bottom: 20px; gap: 10px; align-items: flex-start; }
    .page-header p { font-size: 12px; margin-top: 7px; }
    .page-header-side { padding-top: 3px; }
    .badge.neutral { font-size: 12px; gap: 3px; padding: 4px 5px; }
    .badge.neutral .icon { width: 11px; height: 11px; }
    .demo-banner { font-size: 12px; padding: 8px 10px; margin-bottom: 20px; }
    .sync-strip { font-size: 12px; gap: 5px; flex-wrap: wrap; }
    .sync-strip > span { margin-left: 15px; }
    .sync-strip > div { gap: 6px; }
    .list-toolbar { padding: 15px 14px 10px; gap: 9px; }
    .filters { display: grid; grid-template-columns: 1fr 106px; gap: 8px; }
    .search-field { grid-column: 1 / -1; }
    .search-field input { min-height: 44px; font-size: 12px; }
    .platform-field { grid-column: 1; }
    .platform-field select { min-width: 128px; min-height: 38px; padding-block: 7px; }
    .list-toolbar > .button { margin-top: -47px; min-height: 38px; font-size: 12px; padding-block: 7px; }
    .list-summary { padding: 4px 15px 14px; font-size: 12px; }
    .message-table, .message-table tbody { display: block; }
    .message-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .message-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 10px; padding: 19px 16px; border-top: 1px solid #e5ebe2; }
    .message-table td { border: 0; padding: 0; display: block; width: auto; }
    .message-table td:first-child { grid-column: 1; grid-row: 1; }
    .message-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .message-table td:nth-child(3) { display: block; grid-column: 1 / -1; grid-row: 3; }
    .message-table td:last-child { grid-column: 2; grid-row: 1; text-align: right; align-self: start; }
    .phone-label { font-size: 14px; }
    .phone-subline { margin-top: 5px; gap: 7px; }
    .phone-tag { font-size: 12px; }
    .verification-code { font-size: 30px; letter-spacing: .075em; }
    .code-group { justify-content: space-between; }
    .copy-button { width: 42px; height: 38px; border: 1px solid var(--line); background: #fff; }
    .copy-button .icon { width: 18px; height: 18px; }
    .message-time { font-size: 12px; }
    .message-date { font-size: 12px; }
    .message-content { font-size: 12px; line-height: 1.8; }
    .message-preview { -webkit-line-clamp: 2; }
    .list-footer { padding-inline: 15px; font-size: 12px; }
    .page-footnote { font-size: 12px; line-height: 1.8; }
    .page-footnote .icon { width: 13px; height: 13px; margin-top: 3px; }
    .form-grid { grid-template-columns: 1fr; gap: 14px; }
    .inline-form { padding: 18px; }
    #users-panel .page-header { flex-wrap: wrap; }
    #users-panel .page-header > .button { margin-top: 7px; }
    .users-table { table-layout: fixed; }
    .users-table th { padding: 12px 10px; font-size: 12px; }
    .users-table td { padding: 16px 10px; font-size: 12px; }
    .users-table th:first-child { width: 28%; }
    .users-table th:nth-child(2), .users-table td:nth-child(2) { display: none; }
    .users-table th:nth-child(3) { width: 22%; }
    .user-actions { gap: 7px; }
    .text-button { font-size: 12px; }
    .text-button.danger { margin-left: 0; }
    .reset-password-form { gap: 8px; }
    .reset-password-form > div { width: 100%; }
    .reset-password-form input { min-width: 0; width: 100%; }
    .status-workspace { padding: 20px; }
    .status-overview { gap: 12px; align-items: flex-start; padding-bottom: 20px; }
    .status-emblem { width: 40px; height: 40px; }
    .status-overview h2 { font-size: 16px; }
    .status-overview p { font-size: 12px; }
    .status-details > div { grid-template-columns: 110px 1fr; font-size: 12px; padding-block: 14px; }
    #status-panel .page-header { flex-wrap: wrap; }
    #status-panel .page-header > .button { margin-top: 7px; }
    .login-page { display: block; background: white; }
    .login-story { min-height: auto; padding: 26px 24px 30px; border-right: 0; }
    .login-intro { padding: 32px 0 0; }
    .login-intro h1 { font-size: 31px; line-height: 1.35; }
    .login-intro h1 br { display: none; }
    .login-intro > p { margin-top: 12px; font-size: 12px; }
    .login-intro > p br { display: none; }
    .login-note, .login-story-footer { display: none; }
    .login-form-area { padding: 20px 24px 26px; }
    .login-form { width: 100%; max-width: 420px; padding-block: 0; }
    .login-form h2 { font-size: 23px; margin-top: 22px; }
    .form-lead { margin-bottom: 24px; }
    .login-privacy { max-width: 300px; margin-top: 32px; line-height: 1.9; }
    .toast { bottom: max(20px, env(safe-area-inset-bottom)); width: max-content; font-size: 12px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
}

.privacy-note { color: var(--text-secondary, #596575); font-size: 13px; margin: 16px 24px; line-height: 1.6; }
.status-dot.partial, .status-dot.contract_required { background: #b45309; }
