
  :root {
    --navy: #0B2E5B;
    --navy-2: #123E73;
    --accent: #1D5AA8;
    --bg: #F4F6FA;
    --line: #EEF2F9;
    --text: #101828;
    --sub: #667085;
    --mute: #98A2B3;
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
    background: #E9EDF4;
    color: var(--text);
    display: flex;
    justify-content: center;
    padding: 28px 20px 40px;
    min-height: 100vh;
  }
  .layout { display: flex; gap: 36px; align-items: flex-start; }
  .phone {
    width: 390px;
    height: 800px;
    background: #fff;
    border-radius: 34px;
    box-shadow: 0 24px 60px rgba(11, 46, 91, 0.18), 0 2px 0 rgba(255,255,255,0.6) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 8px solid #0E1626;
  }
  .statusbar {
    height: 34px;
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 12px;
    letter-spacing: .3px;
    flex: 0 0 auto;
  }
  .navbar {
    background: var(--navy);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 8px 0 12px;
    flex: 0 0 auto;
    position: relative;
  }
  .navback {
    position: absolute; left: 14px; top: 8px; bottom: 12px;
    display: none; align-items: center; font-size: 13px; color: rgba(255,255,255,0.85);
    font-weight: 400; cursor: pointer;
  }
  .navback.show { display: flex; }
  .screen { flex: 1; overflow-y: auto; background: var(--bg); padding-bottom: 12px; }
  .screen::-webkit-scrollbar { width: 0; }
  .tabbar {
    flex: 0 0 auto;
    height: 58px;
    display: flex;
    background: #fff;
    border-top: 1px solid #E8EDF5;
  }
  .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    color: #8A94A6;
    cursor: pointer;
  }
  .tab.on { color: var(--navy); font-weight: 600; }
  .tab .dot {
    width: 18px; height: 18px; border-radius: 5px;
    border: 1.6px solid currentColor;
    opacity: .85;
  }
  .tab.on .dot { background: rgba(11,46,91,0.08); }

  .hero {
    background: linear-gradient(160deg, #0B2E5B 0%, #123E73 60%, #164B8A 100%);
    padding: 18px 16px 22px;
    color: #fff;
  }
  .hero h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .5px; }
  .hero p { margin: 6px 0 0; font-size: 12px; color: rgba(255,255,255,0.72); line-height: 1.5; }
  .hero .chip {
    display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 100px;
    background: rgba(255,255,255,0.14); font-size: 11px; color: rgba(255,255,255,0.92);
  }
  .filter-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin: -12px 12px 0; padding: 10px 12px; background: #fff; border-radius: 12px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
  }
  .filter-bar .txt { font-size: 12px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .filter-bar .clear { font-size: 12px; color: var(--accent); font-weight: 500; cursor: pointer; flex: 0 0 auto; margin-left: 10px; }

  .stat-grid { display: flex; flex-wrap: wrap; margin: 0 8px; }
  .stat { width: 50%; padding: 6px; }
  .stat .inner { background: #fff; border-radius: 14px; padding: 14px 13px; box-shadow: 0 4px 16px rgba(16,24,40,0.04); }
  .stat .inner.dark { background: var(--navy); }
  .stat .num { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
  .stat .num.small { font-size: 20px; }
  .stat .inner.dark .num { color: #fff; }
  .stat .num .unit { font-size: 12px; font-weight: 500; color: var(--mute); margin-left: 3px; }
  .stat .inner.dark .num .unit { color: rgba(255,255,255,0.6); }
  .stat .label { margin-top: 4px; font-size: 12px; color: var(--sub); }
  .stat .inner.dark .label { color: rgba(255,255,255,0.7); }

  .card { margin: 12px 12px 0; background: #fff; border-radius: 14px; padding: 14px 14px 6px; box-shadow: 0 4px 16px rgba(16,24,40,0.04); }
  .card.tight { padding-bottom: 14px; }
  .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
  .card-title { font-size: 15px; font-weight: 600; }
  .card-note { font-size: 11px; color: #8A94A6; }

  .bar-row { padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .bar-row:last-child { border-bottom: none; }
  .bar-row:active { opacity: .7; }
  .bar-top { display: flex; align-items: baseline; justify-content: space-between; }
  .bar-name { font-size: 13px; }
  .bar-num { font-size: 13px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
  .bar-track { margin-top: 6px; height: 6px; background: #EEF2F9; border-radius: 100px; overflow: hidden; }
  .bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #1D5AA8, #2A6FD6); }
  .bar-fill.light { background: linear-gradient(90deg, #7FA6D9, #A9C3E6); }

  .badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10px; line-height: 1.6; }
  .badge-blue { background: #EAF1FB; color: #1D5AA8; }
  .badge-gray { background: #F2F4F8; color: #5A6478; }
  .badge-amber { background: #FDF3E7; color: #B54708; }
  .badge-green { background: #E9F6EF; color: #067647; }
  .badge-hero { background: rgba(255,255,255,0.16); color: #fff; }

  .chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
  .chip-scroll { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
  .chip-scroll::-webkit-scrollbar { height: 0; }
  .chip {
    flex: 0 0 auto; padding: 6px 12px; border-radius: 100px; background: #F2F4F8;
    color: #444E63; font-size: 12px; cursor: pointer; white-space: nowrap;
  }
  .chip.active { background: var(--navy); color: #fff; font-weight: 500; }
  .panel-label { font-size: 11px; color: var(--sub); margin: 10px 0 6px; }

  .search-wrap { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--navy); }
  .search-box { flex: 1; display: flex; align-items: center; height: 38px; padding: 0 10px; background: #fff; border-radius: 8px; }
  .search-box input { flex: 1; border: none; outline: none; font-size: 13px; background: transparent; }
  .search-box .icon { color: #8A94A6; font-size: 15px; margin-right: 6px; }
  .search-box .x { color: var(--mute); font-size: 16px; cursor: pointer; padding: 0 4px; }
  .toggle { padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.14); color: #fff; font-size: 12px; cursor: pointer; }
  .toggle.on { background: #fff; color: var(--navy); font-weight: 500; }
  .panel { background: #fff; padding: 6px 12px 10px; box-shadow: 0 6px 18px rgba(16,24,40,0.06); }
  .panel .actions { display: flex; gap: 10px; margin-top: 12px; }

  .result-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px 5px; }
  .result-bar .count { font-size: 12px; color: #475467; }
  .result-bar .count b { font-size: 16px; color: var(--navy); }
  .result-bar .cond { font-size: 11px; color: #8A94A6; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .list { padding: 0 12px; }
  .p-card { background: #fff; border-radius: 12px; padding: 12px 13px; margin-bottom: 9px; box-shadow: 0 4px 14px rgba(16,24,40,0.04); cursor: pointer; }
  .p-card:active { background: #F8FAFD; }
  .p-top { display: flex; align-items: center; gap: 6px; }
  .p-name { font-size: 16px; font-weight: 600; margin-right: 2px; }
  .p-line { margin-top: 6px; font-size: 12.5px; color: #475467; }
  .p-line.sub { color: #8A94A6; font-size: 11.5px; }
  .p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 7px; border-top: 1px solid #F2F5FA; }
  .p-id { font-size: 11px; color: var(--mute); }
  .p-arrow { font-size: 11.5px; color: var(--accent); }

  .cell { display: flex; align-items: flex-start; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .cell:last-child { border-bottom: none; }
  .cell .k { font-size: 13px; color: var(--sub); flex: 0 0 100px; }
  .cell .v { flex: 1; text-align: right; font-size: 13px; word-break: break-all; }
  .cell .v.empty { color: #B0B7C3; }

  .btn { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 9px; font-size: 14.5px; font-weight: 500; margin-top: 10px; cursor: pointer; border: none; width: 100%; }
  .btn-primary { background: var(--navy); color: #fff; }
  .btn-primary:hover { background: var(--navy-2); }
  .btn-ghost { background: #fff; color: var(--navy); border: 1px solid #C9D4E4; }
  .btn-soft { background: #EAF1FB; color: var(--accent); }
  .btn.danger { color: #B42318; border-color: #F3C7C3; }
  .btn:disabled { opacity: .5; cursor: not-allowed; }

  .notice { margin: 10px 12px 0; padding: 10px 12px; background: #EFF4FC; border-radius: 9px; color: #34507A; font-size: 11.5px; line-height: 1.65; }
  .empty { padding: 40px 0; text-align: center; color: var(--mute); font-size: 13px; }
  .muted { font-size: 12px; color: var(--sub); line-height: 1.7; }
  .tag { display: inline-block; padding: 3px 6px; background: #fff; border: 1px solid #DDE5F1; border-radius: 4px; font-size: 10px; color: #475467; margin: 0 4px 4px 0; }
  .imp { margin-top: 12px; padding: 12px; background: #F7F9FD; border-radius: 10px; }
  .imp .file { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 8px; word-break: break-all; }
  .imp .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #E9EEF7; font-size: 12px; }
  .imp .row .k { color: var(--sub); flex: 0 0 82px; }
  .imp .row .v { flex: 1; text-align: right; word-break: break-all; }
  .imp .row .v.strong { font-size: 15px; font-weight: 700; color: var(--navy); }
  .warn { margin: 8px 0; padding: 7px 9px; background: #FFF8EC; border-radius: 6px; color: #B54708; font-size: 11px; line-height: 1.6; }
  .log { padding: 8px 0; border-top: 1px solid var(--line); }
  .log .t { font-size: 12px; color: #344054; }
  .log .s { margin-top: 3px; font-size: 10.5px; color: var(--mute); }
  .fields { display: flex; flex-wrap: wrap; padding: 7px 0; }
  .sub-title { margin: 10px 0 5px; font-size: 12.5px; font-weight: 600; color: #344054; }
  .input { width: 100%; height: 40px; padding: 0 11px; margin-bottom: 7px; background: #F7F9FD; border: 1px solid transparent; border-radius: 6px; font-size: 13px; outline: none; }
  .input:focus { border-color: #C9D4E4; background: #fff; }
  .hint { margin-top: 10px; padding-bottom: 10px; font-size: 11px; color: var(--mute); line-height: 1.7; }
  .err { margin-top: 9px; padding: 7px 10px; background: #FEF3F2; color: #B42318; border-radius: 6px; font-size: 11.5px; }

  /* 组织架构 */
  .org-entry { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 12px 13px; background: #fff; border-radius: 12px; border-left: 4px solid #1D5AA8; box-shadow: 0 4px 14px rgba(16,24,40,0.05); cursor: pointer; }
  .org-entry:active { background: #F8FAFD; }
  .org-entry-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
  .org-entry-main { flex: 1; min-width: 0; }
  .org-entry-title { font-size: 15px; font-weight: 600; }
  .org-entry-sub { margin-top: 3px; font-size: 11px; color: #8A94A6; }
  .org-entry-side { display: flex; align-items: center; gap: 5px; }
  .org-entry-num { font-size: 17px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
  .org-entry-arrow { font-size: 17px; color: #B0B7C3; }

  .org-tabs { display: flex; gap: 4px; margin: 12px 12px 0; padding: 4px; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(16,24,40,0.06); }
  .org-tab { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-size: 13px; color: #5A6478; cursor: pointer; }
  .org-tab.on { background: var(--navy); color: #fff; font-weight: 500; }

  .org-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 15px 5px; }
  .org-toolbar-text { flex: 1; font-size: 11px; color: #8A94A6; line-height: 1.5; }
  .org-toolbar-btn { flex: 0 0 auto; padding: 5px 11px; border-radius: 100px; background: #EAF1FB; color: var(--accent); font-size: 11.5px; cursor: pointer; }

  .org-list { padding: 0 12px; }
  .org-row { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 11px 10px; margin-bottom: 6px; box-shadow: 0 4px 14px rgba(16,24,40,0.04); cursor: pointer; }
  .org-row.open { background: #FBFCFE; border-left: 3px solid var(--accent); }
  .org-row.lv1 { margin-left: 14px; }
  .org-row.lv2 { margin-left: 28px; }
  .org-left { flex: 1; min-width: 0; }
  .org-name-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
  .org-name { font-size: 14.5px; font-weight: 600; }
  .org-row.lv1 .org-name { font-size: 13.5px; font-weight: 500; }
  .org-row.lv2 .org-name { font-size: 12.5px; font-weight: 400; color: #344054; }
  .org-sub { margin-top: 3px; font-size: 11px; color: #8A94A6; line-height: 1.5; }
  .org-count { flex: 0 0 auto; min-width: 38px; text-align: right; font-size: 15px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; padding-left: 6px; }
  .org-row.lv2 .org-count { font-size: 13px; font-weight: 600; color: #475467; }
  .org-jump { flex: 0 0 auto; margin-left: 7px; padding: 4px 8px; border-radius: 100px; background: #EAF1FB; color: var(--accent); font-size: 10.5px; }
  .org-caret { flex: 0 0 auto; width: 14px; text-align: right; color: #B0B7C3; font-size: 16px; line-height: 1; transition: transform .15s; }
  .org-row.open .org-caret { transform: rotate(90deg); color: var(--accent); }

  .org-person { background: #fff; border-radius: 10px; padding: 9px 11px; margin-bottom: 5px; border: 1px solid #EDF1F7; cursor: pointer; }
  .org-person.lv1 { margin-left: 14px; }
  .org-person.lv2 { margin-left: 28px; }
  .org-person.lv3 { margin-left: 42px; }
  .org-person:active { background: #F8FAFD; }
  .op-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
  .op-name { font-size: 14px; font-weight: 600; }
  .op-sub { margin-top: 4px; font-size: 10.5px; color: #8A94A6; line-height: 1.5; }

  .org-notes { padding-bottom: 4px; }
  /* 树图使用本地 HTML/CSS 连线，不依赖外部图表服务。 */
  .org-chart-card { margin: 12px 20px; background: #fff; border: 1px solid #e0e7f1; border-radius: 14px; overflow: hidden; }
  .ot-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e7edf5; }
  .ot-depth { display: flex; gap: 4px; padding: 3px; background: #edf2f8; border-radius: 8px; }
  .ot-depth button { border: 0; border-radius: 6px; padding: 7px 11px; background: transparent; font: inherit; font-size: 12px; color: #526580; cursor: pointer; white-space: nowrap; }
  .ot-depth button.on { background: var(--navy); color: #fff; }
  .ot-hint { font-size: 11px; color: #667085; }
  .ot-scroll { overflow: auto; overscroll-behavior-x: contain; max-height: 72vh; background: #f8fafd; background-image: radial-gradient(#dce5ef .7px, transparent .7px); background-size: 14px 14px; }
  .ot-canvas { width: max(100%, calc(var(--ot-columns) * var(--ot-column-width) + 28px)); padding: 24px 14px 30px; }
  .ot-root { position: relative; display: flex; flex-direction: column; align-items: center; width: 224px; margin: 0 auto; padding: 16px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: 0 5px 14px #0b2e5b22; }
  .ot-root strong { font-size: 18px; }
  .ot-root span { margin-top: 5px; font-size: 16px; font-weight: 600; text-align: center; }
  .ot-root small { display: block; font-size: 10px; font-weight: 400; color: #d6e5f9; margin-top: 7px; }
  .ot-root:after { content: ''; position: absolute; top: 100%; height: 26px; left: 50%; border-left: 2px solid #9cb2ce; }
  .ot-canvas ul { list-style: none; margin: 0; padding: 0; }
  .ot-canvas .ot-regions { display: flex; align-items: flex-start; padding-top: 26px; }
  .ot-regions > .ot-branch { position: relative; flex: 1; min-width: var(--ot-column-width); padding: 24px 6px 0; }
  .ot-regions > .ot-branch:before, .ot-regions > .ot-branch:after { content: ''; position: absolute; top: 0; width: 50%; height: 24px; border-top: 2px solid #9cb2ce; }
  .ot-regions > .ot-branch:before { right: 50%; }
  .ot-regions > .ot-branch:after { left: 50%; border-left: 2px solid #9cb2ce; }
  .ot-regions > .ot-branch:first-child:before, .ot-regions > .ot-branch:last-child:after { border-top: 0; }
  .ot-regions > .ot-branch:only-child:before { display: none; }
  .ot-node { position: relative; width: 100%; min-width: 0; border: 1px solid #dbe4f0; border-radius: 9px; background: #fff; overflow: hidden; box-shadow: 0 3px 8px #0b2e5b05; }
  .ot-level-1 > .ot-node { border-color: #aac4e5; background: #eaf2fc; }
  .ot-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; width: 100%; border: 0; background: transparent; color: var(--navy); font: inherit; text-align: left; padding: 10px 8px 5px; cursor: pointer; min-height: 44px; }
  .ot-label { flex: 1 1 100%; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; font-weight: 600; }
  .ot-number { font-size: 18px; font-weight: 700; }
  .ot-number small { font-size: 10px; font-weight: 400; margin-left: 3px; }
  .ot-sign { font-size: 16px; color: #6385af; }
  .ot-meta { padding: 0 8px 5px; color: #718099; font-size: 10px; }
  .ot-jump { display: block; width: 100%; padding: 8px 5px; border: 0; border-top: 1px solid #e2eaf5; font: inherit; font-size: 10px; color: var(--accent); background: #ffffff80; cursor: pointer; }
  .ot-canvas .ot-children { position: relative; margin-left: 8px; padding: 12px 0 0 10px; }
  .ot-children:before { content: ''; position: absolute; top: 0; left: 10px; height: 12px; border-left: 2px solid #b4c5da; }
  .ot-children > .ot-branch { position: relative; padding: 0 0 10px 7px; border-left: 2px solid #b4c5da; }
  .ot-children > .ot-branch:before { content: ''; position: absolute; left: -2px; top: 18px; width: 9px; border-top: 2px solid #b4c5da; }
  .ot-children > .ot-branch:last-child { border-left-color: transparent; padding-bottom: 0; }
  .ot-children > .ot-branch:last-child:after { content: ''; position: absolute; left: -2px; top: 0; height: 18px; border-left: 2px solid #b4c5da; }
  .ot-level-3 .ot-label { font-weight: 500; }
  .ot-level-3 .ot-number { font-size: 15px; }
  .ot-person { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; padding: 8px; border: 1px solid #dbe4f0; background: #fff; border-radius: 7px; font: inherit; font-size: 11px; color: var(--navy); text-align: left; cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
  .ot-person small { color: #718099; font-size: 9px; }
  .ot-caption { border-top: 1px solid #e7edf5; padding: 10px 14px; font-size: 11px; color: #667085; line-height: 1.6; }
  @media (max-width: 620px) {
    .org-chart-card { margin: 12px; }
    .ot-toolbar { align-items: flex-start; flex-direction: column; padding: 10px; gap: 7px; }
    .ot-hint { padding-left: 3px; }
    .ot-scroll { max-height: 68vh; }
  }
  .note-item { padding: 9px 0; border-top: 1px solid var(--line); }
  .note-head { display: flex; align-items: center; gap: 5px; }
  .note-title { font-size: 12.5px; font-weight: 600; color: #344054; }
  .note-text { margin-top: 4px; font-size: 11.5px; color: #667085; line-height: 1.7; }

  /* 人员页筛选条与面板 */
  .filter-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 10px; background: var(--navy); cursor: pointer; }
  .filter-bar-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
  .filter-bar-label { flex: 0 0 auto; padding: 4px 9px; border-radius: 100px; background: #fff; color: var(--navy); font-size: 11.5px; font-weight: 600; }
  .filter-bar-text { flex: 1; min-width: 0; color: rgba(255,255,255,0.92); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .filter-bar-right { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; margin-left: 8px; }
  .filter-badge { min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px; border-radius: 100px; background: #C8A15A; color: #fff; font-size: 10px; text-align: center; }
  .filter-bar-action { color: rgba(255,255,255,0.75); font-size: 11.5px; }
  .filter-caret { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1; transition: transform .15s; }
  .filter-caret.open { transform: rotate(90deg); }
  .panel { background: #fff; padding: 4px 12px 12px; border-bottom: 1px solid #E8EDF5; }
  .panel-group { padding-top: 10px; }
  .panel-label { font-size: 12px; color: #475467; font-weight: 600; margin-bottom: 7px; }
  .panel-hint { font-weight: 400; color: #98A2B3; font-size: 10.5px; }
  .chip-wrap { display: flex; flex-wrap: wrap; }
  .chip { padding: 6px 11px; margin: 0 6px 6px 0; border-radius: 100px; background: #F2F4F8; color: #444E63; font-size: 12px; cursor: pointer; white-space: nowrap; }
  .chip.active { background: var(--navy); color: #fff; font-weight: 500; }
  .panel-tip { margin-top: 4px; font-size: 10.5px; color: #98A2B3; }
  .panel-actions { display: flex; gap: 8px; margin-top: 11px; }
  .panel-btn { flex: 1; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; }
  .panel-btn.btn-ghost { background: #fff; border: 1px solid #C9D4E4; color: var(--navy); }
  .panel-btn.btn-primary { background: var(--navy); color: #fff; border: none; }
  .result-clear { font-size: 11.5px; color: var(--accent); padding: 4px 9px; border-radius: 100px; background: #EAF1FB; cursor: pointer; }
  .empty-box { padding: 36px 24px 44px; text-align: center; }
  .empty-title { font-size: 14px; color: #475467; font-weight: 600; }
  .empty-sub { margin-top: 6px; font-size: 11px; color: #98A2B3; line-height: 1.6; }
  .empty-btn { display: inline-block; margin-top: 13px; padding: 8px 18px; border-radius: 100px; background: var(--navy); color: #fff; font-size: 12.5px; cursor: pointer; }


  html, body { height: 100%; }
  body { display: block; min-height: 100%; padding: 0; background: #eef2f7; }
  .layout { display: block; width: 100%; height: 100%; }
  .phone { width: 100%; max-width: 1120px; height: 100vh; height: 100dvh; margin: 0 auto; border: 0; border-radius: 0; box-shadow: 0 0 48px #0b2e5b0b; }
  .navbar { min-height: 58px; display: flex; align-items: center; justify-content: center; padding: 12px 84px; }
  .navback { top: 0; bottom: 0; border: 0; background: transparent; padding: 12px 0; font: inherit; font-size: 13px; }
  .navbar-brand { position: absolute; left: 22px; font-size: 15px; font-weight: 600; }
  .screen { min-height: 0; padding-bottom: 22px; overscroll-behavior: contain; }
  .screen::-webkit-scrollbar { width: 5px; }
  .screen::-webkit-scrollbar-thumb { background: #d2dbe8; border-radius: 4px; }
  .tabbar { min-height: 65px; height: auto; padding-bottom: env(safe-area-inset-bottom); }
  .tab { min-height: 62px; font-size: 13px; flex-direction: row; gap: 9px; }
  .hero { padding: 28px 24px 30px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 13px; }
  .card, .notice, .org-entry, .org-tabs { margin-left: 20px; margin-right: 20px; }
  .card { padding: 20px 20px 10px; }
  .card.tight { padding-bottom: 20px; }
  .stat-grid { margin: 8px 14px 0; }
  .stat { width: 25%; }
  .stat .inner { min-height: 96px; padding: 18px; }
  .stat .num.small { font-size: 25px; }
  .list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 4px 20px; }
  .p-card { margin: 0; padding: 18px; min-width: 0; }
  .p-line, .p-id, .p-name { overflow-wrap: anywhere; }
  .search-wrap { padding: 15px 20px 8px; }
  .search-box input { min-width: 0; }
  .search-box { min-width: 0; height: 44px; }
  .filter-bar { margin: 0; border-radius: 0; box-shadow: none; padding: 10px 20px 14px; }
  .filter-bar:not(#filterBar) { margin: 0 20px 8px; padding: 11px 14px; background: #fff; border-radius: 10px; }
  .panel { padding: 4px 20px 18px; }
  .chip-wrap .chip { min-height: 35px; display: inline-flex; align-items: center; }
  .result-bar { padding: 16px 20px 9px; }
  .org-list { padding: 0 20px; }
  .org-toolbar { padding-left: 22px; padding-right: 22px; }
  .org-row, .org-person { min-width: 0; }
  .org-name, .op-sub { overflow-wrap: anywhere; }
  .org-jump, .org-caret { display: inline-flex; align-items: center; min-height: 32px; }
  .input { height: 45px; font-size: 15px; }
  .hint { font-size: 12px; }
  .screen[data-page=login] .card, .screen[data-page=login] .notice { max-width: 540px; margin-left: auto; margin-right: auto; }
  .screen[data-page=login] .hero { text-align: center; padding-top: 52px; padding-bottom: 40px; }
  .setup-file { margin: 10px 0; width: 100%; font-size: 13px; }
  .backup-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
  .backup-actions .btn { height: auto; min-height: 44px; padding: 10px; }
  .error-global { max-width: 600px; margin: 40px auto; padding: 24px; color: #b42318; line-height: 1.8; background: #fff; }
  button, [role=button] { touch-action: manipulation; }
  :focus-visible { outline: 3px solid #86b7f4; outline-offset: 2px; }
  button:disabled { opacity: .55; }
  @media (max-width: 620px) {
    .navbar-brand { display: none; }
    .navbar { min-height: 50px; font-size: 15px; }
    .hero { padding: 22px 16px 25px; }
    .hero h1 { font-size: 22px; }
    .card, .notice, .org-entry, .org-tabs { margin-left: 12px; margin-right: 12px; }
    .card { padding: 15px 14px 7px; }
    .stat-grid { margin: 4px 6px 0; }
    .stat { width: 50%; }
    .stat .inner { min-height: 86px; padding: 14px; }
    .stat .num.small { font-size: 23px; }
    .list { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; padding: 4px 12px; }
    .p-card { padding: 14px; }
    .search-wrap { padding: 11px 12px 7px; }
    .search-box input { font-size: 16px; }
    .filter-bar { padding: 9px 12px 12px; }
    .filter-bar:not(#filterBar) { margin: 0 12px 8px; }
    .panel { padding-left: 12px; padding-right: 12px; }
    .result-bar { padding-left: 14px; padding-right: 14px; }
    .org-list { padding: 0 12px; }
    .org-row.lv1, .org-person.lv1 { margin-left: 8px; }
    .org-row.lv2, .org-person.lv2 { margin-left: 16px; }
    .org-person.lv3 { margin-left: 24px; }
    .org-toolbar { padding-left: 14px; padding-right: 14px; }
    .org-row { padding-left: 9px; padding-right: 9px; }
    .org-name { font-size: 14px; }
    .org-jump { margin-left: 4px; padding: 4px 7px; }
    .screen[data-page=login] .card, .screen[data-page=login] .notice { margin-left: 12px; margin-right: 12px; }
    .backup-actions { grid-template-columns: 1fr; gap: 0; }
  }
