  :root {
    --gold:        #806d17;
    --gold-lt:     #9b841d;
    --navy:        #1c3565;
    --crimson:     #621a1a;
    --green:       #2a732e;
    --red:         #9c2f2f;

    --line:        rgba(0,0,0,.086);
    --line-2:      rgba(0,0,0,.151);
    --line-3:      rgba(0,0,0,.237);

    --bg:          #f6f6f7;
    --text:        #1a1a1a;
    --text-2:      #4f4f4f;
    --text-3:      #6b6b6b;

    --r-lg:        14px;
    --r-md:        10px;
    --r-sm:        8px;

    --sh-1:        0 1px 2px rgba(0,0,0,.03);
    --sh-2:        0 1px 2px rgba(0,0,0,.03), 0 4px 16px rgba(0,0,0,.04);
    --sh-3:        0 8px 28px rgba(0,0,0,.09);

    --ease:        cubic-bezier(.4,.14,.3,1);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { width: 100%; height: 100%; }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
                 "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.5;
  }

  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.18) transparent;
  }
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; border-radius: 99px; }
  ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.16);
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 99px;
    transition: background .2s var(--ease);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(143,122,26,.55);
    background-clip: padding-box;
  }

  ::selection { background: rgba(143,122,26,.18); }

  button, input, select, textarea { font: inherit; color: inherit; }

  .page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background:
      radial-gradient(circle at 12% -10%, rgba(143,122,26,.05), transparent 42%),
      radial-gradient(circle at 92% 108%, rgba(28,53,101,.05), transparent 42%),
      var(--bg);
  }

  .header {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 clamp(20px, 2.5vw, 40px);
    border-bottom: 1px solid var(--line-2);
    flex-shrink: 0;
    gap: 24px;
    position: relative;
    z-index: 50;
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }

  .logo {
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 800;
    letter-spacing: .01em;
    flex-shrink: 0;
    color: var(--text);
  }

  .name-label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: .3em;
    font-weight: 600;
    line-height: 1;
    padding: 0 4px;
    border-left: 1px solid var(--line-3);
    border-right: 1px solid var(--line-3);
    flex-shrink: 0;
    transition: opacity .3s var(--ease), max-width .3s var(--ease),
                padding .3s var(--ease), border .3s var(--ease);
  }

  .title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    transition: opacity .3s var(--ease), max-width .3s var(--ease);
    overflow: hidden;
  }
  .title .en {
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .title .cn {
    font-size: clamp(11px, 0.85vw, 13px);
    color: var(--text-2);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
  }
  .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    transition: opacity .3s var(--ease), max-width .3s var(--ease);
  }
  .user-name { font-size: clamp(11px, 0.85vw, 13px); font-weight: 600; }
  .user-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(9px, 0.7vw, 11px);
    color: var(--text-3);
  }
  .status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #32c43e;
    box-shadow: 0 0 0 3px rgba(50,196,62,.16);
  }
  .avatar {
    width: clamp(36px, 3vw, 44px);
    height: clamp(36px, 3vw, 44px);
    border-radius: 50%;
    border: 1.5px solid var(--line-3);
    transition: transform .25s var(--ease), border-color .25s var(--ease),
                box-shadow .25s var(--ease);
    flex-shrink: 0;
    cursor: pointer;
    background: #fff;
  }
  .avatar:hover {
    transform: scale(1.05);
    border-color: rgba(143,122,26,.55);
    box-shadow: 0 4px 14px rgba(143,122,26,.18);
  }

  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px; height: 20px;
    padding: 2px 0;
    cursor: pointer;
    flex-shrink: 0;
  }
  .hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: background .2s var(--ease);
  }
  .hamburger:hover span { background: var(--gold); }

  .body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
  }

  .sidebar {
    width: 208px;
    flex-shrink: 0;
    border-right: 1px solid var(--line-2);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: rgba(255,255,255,.5);
    transition: transform .3s var(--ease);
  }

  .menu { display: flex; flex-direction: column; gap: 4px; }

  .menu-item {
    height: 46px;
    padding: 0 14px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(12px, 0.95vw, 14px);
    color: var(--text-2);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: background .2s var(--ease), color .2s var(--ease),
                border-color .2s var(--ease), box-shadow .2s var(--ease);
    border: 1px solid transparent;
    user-select: none;
  }
  .menu-item:hover { background: rgba(0,0,0,.035); color: var(--text); }
  .menu-item.active {
    background: linear-gradient(135deg, rgba(143,122,26,.13), rgba(143,122,26,.045));
    color: var(--text);
    font-weight: 600;
    border-color: rgba(143,122,26,.25);
    box-shadow: 0 1px 3px rgba(143,122,26,.14);
  }
  .menu-item.active::before {
    content: '';
    position: absolute;
    left: -1px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  }
  .menu-item svg {
    flex: none;
    opacity: .85;
    width: 18px; height: 18px;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .menu-item:hover svg { transform: translateX(1px); }
  .menu-item.active svg { opacity: 1; }

  .foot-btns {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .foot-btns button {
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    transition: all .2s var(--ease);
    font-family: inherit;
    white-space: nowrap;
  }
  .foot-btns button:hover {
    border-color: rgba(143,122,26,.45);
    color: #6b5c12;
    background: rgba(143,122,26,.05);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
  }

  .content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(20px, 2.5vw, 34px);
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
  }

  .view { display: none; flex-direction: column; gap: 22px; }
  .view.active {
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
    animation: fadeIn .32s var(--ease);
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .page-title {
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 800;
    letter-spacing: -.015em;
  }

  .card {
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--sh-2);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease),
                border-color .25s var(--ease);
  }

  .btn {
    height: 32px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(11px, 0.85vw, 13px);
    cursor: pointer;
    border: 1px solid var(--line-2);
    color: var(--text);
    transition: all .2s var(--ease);
    font-family: inherit;
    white-space: nowrap;
  }
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .btn:active { transform: translateY(0); box-shadow: none; }
  .btn-icon { width: 34px; padding: 0; justify-content: center; }

  .btn-green { border-color: rgba(42,115,46,.45); color: var(--green); background: rgba(42,115,46,.04); }
  .btn-green:hover { background: rgba(42,115,46,.1); border-color: var(--green); box-shadow: 0 4px 12px rgba(42,115,46,.16); }
  .btn-gold  { border-color: rgba(143,122,26,.45); color: var(--gold);  background: rgba(143,122,26,.04); }
  .btn-gold:hover  { background: rgba(143,122,26,.1); border-color: var(--gold); box-shadow: 0 4px 12px rgba(143,122,26,.16); }
  .btn-red   { border-color: rgba(156,47,47,.45);  color: var(--red);   background: rgba(156,47,47,.04); }
  .btn-red:hover   { background: rgba(156,47,47,.1);  border-color: var(--red);  box-shadow: 0 4px 12px rgba(156,47,47,.16); }

  .view-dashboard.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100%;
  }
  .view-dashboard .page-title { flex: none; margin-bottom: 0; }

  .view-dashboard .top-row {
    flex: none;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: stretch;
  }

  .view-dashboard .col-left {
    flex: none;
    width: 43%;
    min-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-self: flex-start;
  }

  .stat {
    flex: 1;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-color: var(--line-2);
  }

  .stat::after { display: none; }
  .stat .hd {
    text-align: center;
    font-size: clamp(20px, 1.5vw, 26px);
    font-weight: 700;
    padding: 24px 16px 0;
    letter-spacing: .01em;
  }
  .stat .hr {
    height: 1px;

    background: var(--line-3);
    margin: 16px 28px 0;
  }
  .stat .num {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(48px, 3.8vw, 72px);
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
  }
  .stat.emp  .hd, .stat.emp  .num { color: var(--gold); }
  .stat.task .hd, .stat.task .num { color: var(--green); }
  .stat.file .hd, .stat.file .num { color: var(--navy); }
  .stat.todo .hd, .stat.todo .num { color: var(--crimson); }

  .notice-card {
    flex: 1;
    min-width: 0;
    min-height: 0;
    border-color: rgba(98,26,26,.28);
    display: flex;
    flex-direction: column;
  }
  .notice-card .hd {
    text-align: center;
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 700;
    color: var(--crimson);
    padding: 20px 22px 0;
  }
  .notice-card .hr {
    height: 1px;
    background: rgba(98,26,26,.35);
    margin: 14px 22px 0;
  }
  .notice-body {
    flex: 1;
    padding: 18px 26px 10px;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.9;
    overflow-y: auto;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
  }
  .notice-body .g-title { font-weight: 700; line-height: 1.6; }
  .notice-body p { margin-top: 12px; color: #333; }
  .notice-body .ref { margin-top: 14px; font-weight: 700; }
  .notice-body a {
    color: #1a5fa8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(26,95,168,.45);
    display: block;
    font-weight: 400;
    transition: color .2s var(--ease), border-color .2s var(--ease);
  }
  .notice-body a:hover { color: var(--navy); border-bottom-color: var(--navy); }

  .notice-body .cc { margin-top: 6px; color: var(--text-3); font-size: clamp(11px, 0.8vw, 13px); }

  .notice-sign {
    text-align: right;
    padding: 0 26px 18px;
    font-size: clamp(11px, 0.8vw, 13px);
    color: #6b6b6b;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
  }
  .notice-sign b { color: var(--text-2); font-weight: 600; }

  .notice-card { position: relative; }
  .notice-card .edit { position: absolute; left: 14px; bottom: 14px; }

  .view-dashboard .file-card {
    flex: none;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    min-height: auto;
    border-color: rgba(28,53,101,.28);
    display: flex;
    flex-direction: column;
  }
  .file-card .hd {
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 700;
    color: var(--navy);
    padding: 20px 28px 0;
    flex: none;
  }
  .file-card .hr {
    height: 1px;
    background: rgba(28,53,101,.35);
    margin: 14px 28px 0;
    width: min(320px, 40%);
    flex: none;
  }
  .view-dashboard .file-card .file-row {
    flex: none;
    display: flex;
    align-items: center;
    padding: 54px 28px 58px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .file-name {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(15px, 1.15vw, 17px);
    cursor: pointer;
    transition: color .2s var(--ease);
  }
  .file-name:hover { color: var(--navy); }
  .file-name span { border-bottom: 1px solid var(--line-3); padding-bottom: 1px; transition: border-color .2s var(--ease); }
  .file-name:hover span { border-color: var(--navy); }
  .file-info {
    margin-left: auto;
    color: var(--text-3);
    font-size: clamp(13px, 1vw, 15px);
  }
  .file-info .fi-title {
    color: #6b6b6b;
    margin-bottom: 10px;
    font-size: clamp(11px, 0.8vw, 12px);
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .file-info ul { list-style: none; line-height: 1.9; }
  .file-info li::before { content: '· '; color: #6b6b6b; }
  .file-info li span { color: #333; font-weight: 500; }

  .view-employees .page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(240px, 100%);
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: #fff;
    transition: all .2s var(--ease);
  }
  .search:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(143,122,26,.12);
  }
  .search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: clamp(12px, 0.9vw, 14px);
    background: transparent;
    color: var(--text);
    font-family: inherit;
  }
  .search input::placeholder { color: #6b6b6b; }

  .emp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .emp-grid > .emp {
    height: 50px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 14px;
    cursor: pointer;
    transition: all .2s var(--ease);
    box-shadow: var(--sh-1);
  }
  .emp-grid > .emp:hover {
    border-color: rgba(143,122,26,.4);
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    transform: translateY(-1px);
  }
  .emp-grid > .emp .chev { flex: none; transition: transform .25s var(--ease), color .2s var(--ease); color: var(--text-3); }
  .emp-grid > .emp.open .chev { transform: rotate(180deg); color: var(--gold); }
  .emp-grid > .emp.open { border-color: rgba(143,122,26,.45); background: rgba(143,122,26,.05); }
  .emp-grid > .emp .name {
    flex: 1;
    text-align: center;
    font-size: clamp(12px, 0.95vw, 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .emp-grid > .emp .del { flex: none; cursor: pointer; color: #9c2f2f; transition: color .2s var(--ease), transform .2s var(--ease); }
  .emp-grid > .emp .del:hover { color: var(--red); transform: scale(1.12); }

  .stat-line { border-top: 1px solid var(--line); }
  .stat-text { font-size: clamp(12px, 0.9vw, 14px); color: var(--text-2); }
  .stat-text span { color: var(--text); font-weight: 600; }

  .emp-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
  }
  .emp-actions button {
    height: 32px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(11px, 0.85vw, 13px);
    cursor: pointer;
    transition: all .2s var(--ease);
    font-family: inherit;
  }
  .emp-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .emp-actions .icon-only {
    width: 44px;
    padding: 0;
    justify-content: center;
    border: 1px solid rgba(143,122,26,.45);
    color: var(--gold);
    background: rgba(143,122,26,.04);
  }
  .emp-actions .icon-only:hover { background: rgba(143,122,26,.1); border-color: var(--gold); }
  .emp-actions .export {
    border: 1px solid rgba(42,115,46,.45);
    color: var(--green);
    background: rgba(42,115,46,.04);
  }
  .emp-actions .export:hover { background: rgba(42,115,46,.1); border-color: var(--green); }

  .view-upload.active {
    flex: 1;
    min-height: 0;
  }
  .view-upload .row {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
  }

  .dir {
    border-color: rgba(98,26,26,.28);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .dir-hd {
    display: flex;
    align-items: center;
    padding: 16px 16px 10px;
  }
  .dir-hd .t {
    font-size: clamp(11px, 0.85vw, 13px);
    color: var(--text-3);
    letter-spacing: .08em;
    text-transform: uppercase;
    flex-shrink: 0;
    font-weight: 600;
  }
  .dir-hd .hr {
    flex: 1;
    height: 1px;
    background: var(--line-2);
    margin: 0 12px;
  }
  .dir-hd .refresh {
    cursor: pointer;
    flex: none;
    color: var(--text-2);
    transition: transform .4s var(--ease), color .2s var(--ease);
  }
  .dir-hd .refresh:hover { transform: rotate(180deg); color: var(--crimson); }

  .dir-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dir-item {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    cursor: pointer;
    flex: none;
    transition: all .2s var(--ease);
  }
  .dir-item:hover {
    border-color: var(--line-3);
    background: #fafafa;
    transform: translateX(3px);
  }

  .ba-dir-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 2px 8px;
    flex: none;
  }
  .ba-chip {
    font-size: 11px;
    line-height: 1;
    padding: 6px 11px;
    border: 1px solid var(--line-2);
    border-radius: 99px;
    background: #fff;
    color: var(--text-2);
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s var(--ease);
    user-select: none;
  }
  .ba-chip:hover { border-color: var(--line-3); background: #fafafa; }
  .ba-chip.on {
    border-color: rgba(143,122,26,.55);
    background: rgba(143,122,26,.1);
    color: #6b5c12;
    font-weight: 600;
  }
  .dir-item.active {
    border-color: rgba(143,122,26,.5);
    background: rgba(143,122,26,.06);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(143,122,26,.13);
  }
  .dir-item .ic {
    flex: none;
    width: 26px; height: 30px;
    border: 1px solid var(--line-3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-2);
    background: #fafafa;
    transition: all .2s var(--ease);
  }
  .dir-item.active .ic { border-color: var(--gold); color: var(--gold); background: #fff; }
  .dir-item .nm {
    flex: 1;
    font-size: clamp(12px, 0.9vw, 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dir-item .sz {
    flex: none;
    font-size: clamp(10px, 0.75vw, 12px);
    color: #6b6b6b;
  }
  .dir-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 12px 14px;
    flex: none;
  }

  .upload-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: 0;
  }

  .detail {
    border-color: rgba(28,53,101,.28);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
  }
  .detail-top {
    display: flex;
    align-items: flex-start;
    padding: 18px 22px 0;
    gap: 14px;
  }
  .detail-top .fic { flex: none; width: 36px; height: 44px; color: var(--navy); }
  .detail-top .meta { flex: 1; min-width: 0; }
  .detail-top .fn {
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .detail-top .use {
    margin-top: 6px;
    font-size: clamp(12px, 0.9vw, 14px);
    color: var(--text-2);
  }
  .detail-top .up {
    flex: none;
    font-size: clamp(11px, 0.85vw, 13px);
    color: var(--text-3);
  }
  .hr-1, .hr-2 {
    height: 1px;
    background: var(--line);
    margin: 14px 22px 0;
  }
  .detail-user {
    padding: 12px 22px 0;
    font-size: clamp(12px, 0.9vw, 14px);
    color: var(--text-2);
  }
  .detail-user span { color: var(--text); font-weight: 500; }
  .detail-tree-hd {
    padding: 12px 22px 0;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 700;
  }

  .tree {
    flex: 1;
    overflow-y: auto;
    padding: 12px 22px 60px;
    font-size: clamp(12px, 0.9vw, 14px);
    color: #333;
    position: relative;
  }
  .tree ul { list-style: none; margin-left: 20px; }
  .tree > ul { margin-left: 0; }
  .tree li { position: relative; padding-left: 22px; line-height: 1.9; }
  .tree > ul > li { padding-left: 0; }
  .tree li::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: var(--line-2);
  }
  .tree li::after {
    content: '';
    position: absolute;
    left: 0; top: 0.95em;
    width: 18px; height: 1px;
    background: var(--line-2);
  }
  .tree li:last-child::before { bottom: auto; height: 0.95em; }
  .tree > ul > li::before, .tree > ul > li::after { display: none; }
  .detail-ops {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
    background: linear-gradient(to top, #fff 60%, rgba(255,255,255,0));
  }
  .dl-btn { display: block; }

  .game {
    border-color: rgba(143,122,26,.3);
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
  }
  .game-hd {
    font-size: clamp(11px, 0.85vw, 13px);
    color: var(--text-3);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .game-hr {
    height: 1px;
    background: rgba(143,122,26,.3);
    margin: 8px 0 14px;
    width: min(220px, 60%);
  }
  .game-body {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 18px;
    align-items: start;
    flex: 1;
    min-height: 0;
  }
  .game-row1 {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .game-row1 .fic { flex: none; width: 32px; height: 40px; color: var(--gold); }
  .game-row1 .info {
    flex: 1;
    min-width: 0;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.85;
    color: var(--text-2);
  }
  .game-row1 .info span { color: var(--text); font-weight: 500; }
  .game-row1 .ops { flex: none; display: flex; gap: 8px; }

  .notice-box {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: clamp(11px, 0.85vw, 13px);
    line-height: 1.85;
    color: #444;
    background: #fafafa;
  }
  .notice-box > span { font-weight: 600; color: #333; }
  .notice-box .nb-list { list-style: decimal; margin-left: 2em; }
  .notice-box .nb-list li::marker { color: var(--gold); }

  .game-right {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: clamp(11px, 0.85vw, 13px);
    line-height: 1.85;
    color: var(--text-2);
    background: #fafafa;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .game-right .kv { margin-left: 2em; }
  .game-right .kv span { color: var(--text); font-weight: 500; }
  .game-right .log {
    margin: 8px 0 0 2em;
    flex: 1;
    min-height: 60px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .view-announcement.active {
    flex: 1;
    min-height: 0;
  }
  .view-announcement .list-wrap {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: none;
  }
  .notice-item {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: #fff;
    min-height: 100px;
    transition: all .25s var(--ease);
    box-shadow: var(--sh-1);
    overflow: hidden;
  }
  .notice-item:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,.07);
    transform: translateY(-2px);
    border-color: var(--line-3);
  }
  .notice-item.lv-urgent { border-left: 4px solid var(--crimson); }
  .notice-item.lv-mid    { border-left: 4px solid var(--gold); }
  .notice-item.lv-normal { border-left: 4px solid var(--green); }

  .notice-item .ttl {
    flex: none;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 1vw, 15px);
    border-right: 1px solid var(--line);
    padding: 12px;
    text-align: center;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .notice-item .body {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 14px 18px 30px;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.8;
    color: #333;
    overflow-wrap: anywhere;
  }
  .notice-item .lv {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: clamp(10px, 0.75vw, 12px);
    font-weight: 700;
    letter-spacing: .02em;
  }
  .notice-item.lv-urgent .lv { color: var(--crimson); }
  .notice-item.lv-mid    .lv { color: #6b5c12; }
  .notice-item.lv-normal .lv { color: var(--green); }

  .notice-item .meta {
    flex: none;
    width: 200px;
    padding: 14px 16px 14px 18px;
    font-size: clamp(11px, 0.85vw, 13px);
    line-height: 1.85;
    color: var(--text-2);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .notice-item .meta span { color: var(--text); }
  .notice-item .meta .ind { margin-left: 3.5em; color: var(--text-3); }

  .notice-del {
    margin-top: auto;
    align-self: flex-end;
    height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(156,47,47,.4);
    border-radius: 6px;
    background: #fff;
    color: var(--red);
    font-size: clamp(10px, 0.75vw, 12px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all .2s var(--ease);
    font-family: inherit;
  }
  .notice-del:hover {
    background: rgba(156,47,47,.08);
    border-color: var(--red);
    transform: translateY(-1px);
  }
  .notice-del svg { flex: none; }

  .ann-bottom {
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 1fr) minmax(180px, 240px);
    gap: 20px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
  }
  .ann-bottom .lbl {
    grid-column: 1 / -1;
    font-size: clamp(12px, 0.95vw, 14px);
    font-weight: 700;
    color: #333;
    margin-bottom: -4px;
  }

  .promo {
    border-color: rgba(98,26,26,.28);
    border-radius: var(--r-md);
    padding: 16px 20px 20px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .promo .en {
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--crimson);
  }
  .promo .cn {
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .promo p {
    font-size: clamp(11px, 0.85vw, 13px);
    line-height: 1.8;
    color: #444;
  }
  .promo .ref {
    margin-top: 10px;
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 700;
    color: #333;
  }
  .promo a {
    display: block;
    color: #1a5fa8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(26,95,168,.45);
    font-weight: 400;
    font-size: clamp(11px, 0.85vw, 13px);
    transition: color .2s var(--ease), border-color .2s var(--ease);
  }
  .promo a:hover { color: var(--navy); border-bottom-color: var(--navy); }
  .promo .cc {
    margin-top: 4px;
    font-size: clamp(10px, 0.8vw, 12px);
    color: var(--text-3);
  }
  .promo .edit { position: absolute; right: 14px; bottom: 14px; }

  .add {
    border-color: var(--line-2);
    border-radius: var(--r-md);
    padding: 16px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .add .hd { font-size: clamp(14px, 1vw, 16px); font-weight: 700; }
  .add .hd-hr {
    height: 1px;
    background: var(--line-2);
    margin: 8px 0 14px;
    width: min(200px, 60%);
  }
  .add input[type="text"], .add input[type="password"] {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    font-size: clamp(12px, 0.9vw, 14px);
    outline: none;
    background: #fafafa;
    transition: all .2s var(--ease);
    font-family: inherit;
    color: var(--text);
    flex: none;
  }
  .add input[type="text"]:focus, .add input[type="password"]:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(143,122,26,.1);
  }
  .add .lb {
    margin: 14px 0 8px;
    font-size: clamp(12px, 0.9vw, 14px);
    color: #333;
    font-weight: 500;
  }
  .add textarea {
    width: 100%;
    flex: 1;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.8;
    outline: none;
    resize: none;
    background: #fafafa;
    transition: all .2s var(--ease);
    font-family: inherit;
    color: var(--text);
  }
  .add textarea:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(143,122,26,.1);
  }
  .add input::placeholder, .add textarea::placeholder { color: #6b6b6b; }

  .sel-col {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .sel-col .lb {
    font-size: clamp(12px, 0.9vw, 14px);
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
  }
  .sel-col select {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    font-size: clamp(11px, 0.85vw, 13px);
    color: var(--text-2);
    background: #fafafa;
    outline: none;
    transition: all .2s var(--ease);
    font-family: inherit;
    cursor: pointer;
  }
  .sel-col select:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(143,122,26,.1);
  }
  .sel-col .row2 {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .sel-col .row2 select { flex: 1; min-width: 0; }
  .sel-col .mt { margin-top: 14px; }

  .view-admin .top {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: 20px;
    align-items: stretch;
  }
  .table-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .table-card {
    flex: 1;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 0.9vw, 14px);
    color: var(--text-3);
    padding: 6px 10px;
    overflow: auto;
  }

  .table-card tbody tr { transition: background .18s var(--ease); }
  .table-card tbody tr:hover { background: rgba(143,122,26,.055); }
  .tabs { display: flex; gap: 7px; }
  .tabs span {
    padding: 5px 13px;
    font-size: clamp(10px, 0.8vw, 12px);
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all .2s var(--ease);
    color: var(--text-2);
    user-select: none;
  }
  .tabs span:hover { border-color: rgba(143,122,26,.45); color: #6b5c12; }
  .tabs span.on {
    color: #fff;
    border-color: #6b5c12;

    background: linear-gradient(135deg, #6b5c12, #57490e);
    box-shadow: 0 2px 6px rgba(143,122,26,.35);
  }

  .sys {
    border-color: rgba(143,122,26,.28);
    padding: 18px 22px 20px;
  }
  .sys .hd {
    text-align: center;
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 700;
    color: var(--gold);
  }
  .sys .hr {
    height: 1px;
    background: rgba(143,122,26,.3);
    margin: 12px 0 16px;
  }
  .sys ol {
    list-style: none;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 2.15;
    counter-reset: item;
  }
  .sys ol li {
    counter-increment: item;
    position: relative;
    padding-left: 2em;
    color: var(--text-2);
  }
  .sys ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
  }
  .sys ol li span { color: var(--text); font-weight: 500; }

  .admin-bottom {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
  .panel {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .panel .hd {
    text-align: center;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
  }
  .panel .hr {
    height: 1px;
    background: var(--line-2);
    margin: 12px 0 16px;
  }

  .acc { border-color: rgba(42,115,46,.28); }
  .acc .hd { color: var(--green); }
  .acc-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 16px;
    min-height: 0;
  }
  .acc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 280px;
    padding-right: 2px;
  }
  .acc-row {
    height: 44px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 14px;
    transition: all .2s var(--ease);
  }
  .acc-row:hover { border-color: var(--line-3); background: #fafafa; }
  .acc-row .nm {
    flex: 1;
    font-size: clamp(12px, 0.9vw, 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ic-btn {
    width: 32px;
    height: 28px;
    border-radius: var(--r-sm);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s var(--ease);
  }
  .ic-btn.edit { border: 1px solid rgba(143,122,26,.4); color: var(--gold); }
  .ic-btn.edit:hover { background: rgba(143,122,26,.1); border-color: var(--gold); }
  .ic-btn.del  { border: 1px solid rgba(156,47,47,.4); color: var(--red); }
  .ic-btn.del:hover  { background: rgba(156,47,47,.1); border-color: var(--red); }

  .acc-form { display: flex; flex-direction: column; min-width: 0; }
  .acc-form .lb {
    font-size: clamp(12px, 0.9vw, 14px);
    margin: 0 0 6px;
    color: #333;
    font-weight: 500;
  }
  .acc-form .lb + .lb, .acc-form .mt { margin-top: 14px; }
  .acc-form input, .acc-form select {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    font-size: clamp(11px, 0.85vw, 13px);
    outline: none;
    background: #fafafa;
    transition: all .2s var(--ease);
    font-family: inherit;
    color: var(--text);
  }
  .acc-form input:focus, .acc-form select:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42,115,46,.1);
  }
  .acc-form input::placeholder { color: #6b6b6b; }
  .acc-form select { color: var(--text-2); cursor: pointer; }
  .acc-foot {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
  }

  .backup { border-color: rgba(98,26,26,.28); }
  .backup .hd { color: var(--crimson); }
  .backup .bk-btn {
    min-height: 40px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: clamp(11px, 0.85vw, 13px);
    cursor: pointer;
    margin-bottom: 10px;
    transition: all .2s var(--ease);
    font-family: inherit;
    color: var(--text);
    padding: 8px 10px;
    text-align: center;
  }
  .backup .bk-btn:hover {
    border-color: rgba(98,26,26,.45);
    background: rgba(98,26,26,.04);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
  }
  .backup .bk-btn .sub { font-size: clamp(10px, 0.75vw, 11px); color: var(--text-3); }
  .backup .reset {
    margin-top: auto;
    min-height: 42px;
    border: none;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, #e22b2b, #b41b1b);
    color: #fff;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    cursor: pointer;
    transition: all .2s var(--ease);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(180,27,27,.25);
    padding: 8px 10px;
  }
  .backup .reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(180,27,27,.35);
  }

  .logp { border-color: rgba(74,42,107,.28); }
  .logp .hd { color: #4a2a6b; }
  .logp .log-box {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 10px;
    background: #fafafa;
    transition: all .2s var(--ease);
  }
  .logp .log-box:hover { background: #f5f5f5; border-color: rgba(74,42,107,.25); }

  .ba-term { border-color: rgba(74,42,107,.28); }
  .ba-term .hd { color: #4a2a6b; }
  .ba-term-bar { display: flex; align-items: center; gap: 8px; padding: 8px 0 0; }
  .ba-term-lamp {
    width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: #b0b0b0; transition: background .2s var(--ease);
  }
  .ba-term-lamp.on { background: #2a732e; box-shadow: 0 0 6px rgba(42,115,46,.55); }
  .ba-term-lamp.err { background: #9c2f2f; }
  .ba-term-state { font-size: 12px; color: var(--text-3); }
  .ba-term-grow { flex: 1; }
  .ba-term-btn {
    font-size: 12px; padding: 4px 10px; border-radius: 4px; cursor: pointer;
    border: 1px solid rgba(0,0,0,.14); background: #fff; color: #4f4f4f;
    transition: all .18s var(--ease);
  }
  .ba-term-btn:hover { border-color: #806d17; color: #806d17; }
  .ba-term-btn:focus-visible { outline: 2px solid #806d17; outline-offset: 1px; }
  .ba-term-body {
    margin: 10px 0 0;
    height: 260px;
    overflow-y: auto;
    padding: 10px 12px;
    border-radius: var(--r-md);
    background: #1b1b1f;
    color: #d6d6d6;
    font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.22) transparent;
  }
  .ba-term-body:focus-visible { outline: 2px solid #806d17; outline-offset: 2px; }
  .ba-term-body::-webkit-scrollbar { width: 8px; }
  .ba-term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 4px; }
  .ba-term-line { display: block; }
  .ba-term-line--warn { color: #e6c46a; }
  .ba-term-line--error { color: #ff8f8f; }
  .ba-term-line--dim { color: #8a8a95; }

  .foot-btns button:active,
  .emp-actions button:active,
  .ic-btn:active,
  .bk-btn:active,
  .notice-del:active,
  .tabs span:active,
  .ba-chip:active {
    transform: translateY(0) scale(.97);
    box-shadow: none;
  }
  .btn-green:active, .btn-gold:active, .btn-red:active {
    transform: translateY(0) scale(.985);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
  }
  .backup .reset:active {
    transform: translateY(0) scale(.99);
    box-shadow: inset 0 2px 6px rgba(0,0,0,.22);
  }
  .menu-item:active { background: rgba(0,0,0,.06); }
  .dir-item:active  { transform: translateX(2px); background: #f4f4f4; }
  .emp-grid > .emp:active       { transform: translateY(0); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  .acc-row:active   { background: #f4f4f4; }
  .avatar:active    { transform: scale(1); box-shadow: 0 2px 8px rgba(143,122,26,.16); }

  .tree li,
  .notice-body,
  .notice-box,
  .game-right,
  .game-row1 .info,
  .promo,
  .bk-btn {
    overflow-wrap: anywhere;
  }

  .emp-grid:empty::after {
    content: '暂无员工数据';
    grid-column: 1 / -1;
    padding: 30px 16px;
    text-align: center;
    color: var(--text-3);
    font-size: clamp(12px, 0.9vw, 14px);
    border: 1px dashed var(--line-2);
    border-radius: var(--r-md);
    background: rgba(0,0,0,.012);
  }

  :focus:not(:focus-visible) { outline: none; }

  .btn:focus-visible,
  .foot-btns button:focus-visible,
  .emp-actions button:focus-visible,
  .ic-btn:focus-visible,
  .notice-del:focus-visible,
  .bk-btn:focus-visible,
  .avatar:focus-visible,
  .hamburger:focus-visible,
  .menu-item:focus-visible,
  .dir-item:focus-visible,
  .dir-hd .refresh:focus-visible,
  .emp-grid > .emp:focus-visible,
  .acc-row:focus-visible,
  .tabs span:focus-visible,
  .ba-chip:focus-visible,
  .notice-body a:focus-visible,
  .promo a:focus-visible,
  a:focus-visible,
  button:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  .backup .reset:focus-visible { outline-color: var(--crimson); }
  .tabs span.on:focus-visible,
  .ba-chip.on:focus-visible    { outline-color: #6b5c12; }

  input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
  .search input:focus-visible { outline: none; box-shadow: none; }
  .add input[type="text"]:focus-visible,
  .add input[type="password"]:focus-visible,
  .add textarea:focus-visible,
  .sel-col select:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(143,122,26,.3); }
  .acc-form input:focus-visible,
  .acc-form select:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42,115,46,.28); }

  @media (max-width: 1200px) {
    .name-label {
      opacity: 0;
      max-width: 0;
      padding: 0;
      border: none;
      overflow: hidden;
    }
  }

  @media (max-width: 999px) {
    .title { opacity: 0; max-width: 0; }
    .hamburger { display: flex; }
    .body { position: relative; }
    .sidebar {
      position: fixed;
      left: 0;
      top: 72px;
      bottom: 0;
      z-index: 100;
      background: #fff;
      transform: translateX(-100%);
      box-shadow: 4px 0 24px rgba(0,0,0,.09);
    }
    .sidebar.open { transform: translateX(0); }

    .view-dashboard .top-row { flex-direction: column; height: auto; }
    .view-dashboard .col-left {
      width: 100%;
      min-width: 0;
      grid-template-columns: repeat(4, 1fr);
    }
    .view-dashboard .col-left > .card { min-height: 140px; }

    .view-upload .row { grid-template-columns: 1fr; }
    .dir { min-height: auto; height: auto; }
    .upload-right { height: auto; }
    .detail, .game { flex: none; min-height: 300px; }
    .ann-bottom { grid-template-columns: 1fr; }
    .admin-col, .add-col, .sel-col { min-width: 0; }
    .view-admin .top { grid-template-columns: 1fr; }
    .admin-bottom { grid-template-columns: 1fr; }
    .acc-body { grid-template-columns: 1fr; }
    .acc-list { max-height: 200px; }
    .game-body { grid-template-columns: 1fr; }
    .notice-item .ttl { width: 100px; }
    .notice-item .meta { width: 160px; }
  }

  @media (max-width: 699px) {
    .header { padding: 0 16px; gap: 12px; height: 64px; }
    .content { padding: 16px; }

    .notice-item { flex-direction: column; }
    .notice-item .ttl {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid var(--line);
      padding: 10px;
      justify-content: flex-start;
    }
    .notice-item .meta {
      width: 100%;
      padding: 10px 16px 14px;
      border-left: none;
      border-top: 1px solid var(--line);
    }
    .notice-item .meta .ind { margin-left: 0; }
    .notice-item .body { padding: 12px 16px 30px; }

    .emp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .view-dashboard .col-left { flex-direction: column; }
    .user-info { display: none; }
    .title .en { font-size: 12px; }
    .title .cn { font-size: 10px; }
  }

  .ba-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
  .ba-toast-item {
    max-width: 340px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    border-left: 4px solid var(--navy);
    color: var(--text);
  }
  .ba-toast-item--ok   { border-left-color: var(--green); }
  .ba-toast-item--err  { border-left-color: var(--red); }
  .ba-toast-item--warn { border-left-color: var(--gold); }
  .ba-toast-item--info { border-left-color: var(--navy); }

  .ba-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(18,18,22,.36);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(2px);
  }
  .ba-modal-card {
    width: min(430px, 100%);
    max-height: 86vh;
    overflow: auto;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    padding: 20px 22px 18px;
    font-size: 13px;
    color: var(--text);
  }
  .ba-modal-hd { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
  .ba-modal-field { margin-bottom: 12px; }
  .ba-modal-label { font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
  .ba-modal-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    box-sizing: border-box;
  }
  .ba-modal-input--area { resize: vertical; line-height: 1.6; }
  .ba-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

  .ba-btn-ghost {
    padding: 7px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-2);
    font-family: inherit;
  }
  .ba-btn-primary {
    padding: 7px 18px;
    border: 1px solid var(--gold);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    font-family: inherit;
    background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  }
  .ba-btn-ghost-sm {
    padding: 6px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-2);
    font-family: inherit;
  }
  .ba-btn-pass {
    padding: 6px 16px;
    border: 1px solid var(--green);
    border-radius: var(--r-sm);
    background: var(--green);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
  }
  .ba-btn-reject {
    padding: 6px 16px;
    border: 1px solid var(--red);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--red);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
  }

  .ba-btn-disabled { opacity: .5; cursor: default; }

  .ba-modal-scroll { max-height: 56vh; overflow: auto; font-size: 12px; line-height: 1.8; color: var(--text-2); }
  .ba-fileinfo-row { display: flex; gap: 10px; }
  .ba-fileinfo-k { color: var(--text-3); min-width: 72px; }
  .ba-fileinfo-v { flex: 1; word-break: break-all; }
  .ba-versions-hd {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
  }
  .ba-version-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 8px;
  }
  .ba-version-name { color: var(--text); }
  .ba-version-file { word-break: break-all; color: var(--text); }
  .ba-version-meta { color: var(--text-3); }
  .ba-version-note { color: var(--crimson); }
  .ba-version-log { white-space: pre-wrap; margin-top: 4px; }
  .ba-version-dl { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
  .ba-version-dl a { color: var(--gold); text-decoration: none; }
  .ba-version-del {
    border: 1px solid rgba(156,47,47,.45);
    background: #fff;
    color: var(--red);
    border-radius: var(--r-sm);
    padding: 1px 8px;
    font-size: 12px;
    font-family: inherit;
    line-height: 1.6;
    cursor: pointer;
  }
  .ba-version-del:hover { background: rgba(156,47,47,.08); }
  .ba-modal-danger {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .ba-btn-danger {
    padding: 7px 18px;
    border: 1px solid var(--red);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--red);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
  }
  .ba-btn-danger:hover { background: rgba(156,47,47,.08); }
  .ba-status { font-weight: 600; color: var(--text-3); }
  .ba-status--pending  { color: var(--gold); }
  .ba-status--approved { color: var(--green); }
  .ba-status--rejected { color: var(--red); }
  .ba-modal-done {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-3);
  }
  .ba-review-acts { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .ba-review-tip { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
  .ba-review-note {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    font-size: 12px;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 8px;
  }
  .ba-review-row { display: flex; gap: 8px; justify-content: flex-end; }

  .ba-log-scroll { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }
  .ba-logrow {
    padding: 6px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-2);
  }
  .ba-logrow--warn { color: var(--crimson); }
  .ba-logrow-empty { padding: 10px; font-size: 12px; color: var(--text-3); }
  .ba-logrow-time { color: var(--text-3); }
  .ba-logrow-user { color: var(--text); }
  .ba-logline {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-2);
  }
  .ba-logline--warn  { color: var(--crimson); }
  .ba-logline--error { color: var(--red); }
  .ba-logline--empty { color: var(--text-3); }
  .ba-log-pre { padding: 8px 10px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; color: var(--text-2); }

  .ba-progress {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99997;
    width: 330px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: 0 10px 34px rgba(0,0,0,.22);
    padding: 16px 18px 12px;
    font-size: 13px;
    color: var(--text);
  }
  .ba-progress-hd { font-weight: 600; margin-bottom: 6px; color: var(--ba-state-color, var(--text)); }
  .ba-progress-name { font-size: 12px; color: var(--text-3); word-break: break-all; line-height: 1.5; margin-bottom: 10px; }
  .ba-progress-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
  .ba-progress-bar {
    display: block;
    height: 100%;
    width: var(--ba-progress, 0);
    background: linear-gradient(135deg, var(--gold-lt), var(--gold));
    transition: width .2s;
  }
  .ba-progress-info { font-size: 12px; color: var(--text-3); margin-top: 8px; line-height: 1.7; }
  .ba-progress-info b { color: var(--text); }
  .ba-progress-foot { display: flex; justify-content: flex-end; margin-top: 10px; }

  .ba-ban-add {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .ba-ban-add input[type="text"] {
    flex: 1;
    min-width: 130px;
    padding: 7px 10px;
    border: 1px solid var(--line-2);
    border-radius: 5px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
  }
  .ba-ban-add input[type="text"]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
  }
  .ba-ban-add select {
    padding: 7px 8px;
    border: 1px solid var(--line-2);
    border-radius: 5px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
  }
  .ba-ban-add .btn { flex: 0 0 auto; padding: 7px 16px; font-size: 13px; }
  .ba-ban-sum {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 8px;
  }
  .ba-ban-list {
    max-height: 190px;
    overflow-y: auto;
    margin-bottom: 10px;
  }
  .ba-ban-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
  }
  .ba-ban-row:last-child { border-bottom: none; }
  .ba-ban-row .ip {
    font-weight: 600;
    color: var(--text);
    min-width: 118px;
    word-break: break-all;
  }
  .ba-ban-row .tag {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
  }
  .ba-ban-row .tag.auto { background: rgba(168,144,32,.16); color: var(--gold); }
  .ba-ban-row .tag.manual { background: rgba(30,58,110,.16); color: var(--navy); }
  .ba-ban-row .left { color: var(--text-2); flex: 0 0 auto; }
  .ba-ban-row .left.perm { color: var(--red); font-weight: 600; }
  .ba-ban-row .left.done { color: var(--text-3); }
  .ba-ban-row .why {
    flex: 1;
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ba-ban-row .un {
    flex: 0 0 auto;
    padding: 3px 10px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    background: transparent;
    color: var(--text-2);
    font-size: 12px;
    cursor: pointer;
  }
  .ba-ban-row .un:hover { color: var(--red); border-color: var(--red); }
  .ba-ban-empty {
    color: var(--text-3);
    font-size: 12.5px;
    padding: 14px 4px;
    text-align: center;
  }
  .ba-ban-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .ba-ban-history {
    font-size: 12px;
    color: var(--text-3);
    padding: 2px 0 8px;
  }
  .ba-ban-history:empty { display: none; }
  .ba-ban-mail { font-size: 12px; color: var(--text-3); }
  .ba-ban-mail b { color: var(--gold); font-weight: 600; }
  .ba-ban-clean { padding: 5px 12px; font-size: 12px; }

  .ba-metrics-table { width: 100%; border-collapse: collapse; font-size: 12px; color: var(--text-2); align-self: stretch; }
  .ba-metrics-table th {
    text-align: left;
    padding: 7px 10px;
    font-weight: 600;
    color: var(--gold);
    border-bottom: 1px solid var(--line-2);
    white-space: nowrap;
  }
  .ba-metrics-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
  .ba-metrics-table td.ba-metrics-key { color: var(--text); font-weight: 500; white-space: nowrap; }
  .ba-metrics-table td.ba-metrics-last { color: var(--navy); }

  .ba-dir-empty { cursor: default; opacity: .6; }
  .ba-offscreen { position: fixed; left: -9999px; }
  .ba-offscreen-input { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .ba-clickable { cursor: pointer; }
  .ba-disabled { opacity: .45; }
  .ba-hide { display: none; }
  .ba-dot-on { background: var(--green); }
  .ba-dot-off { background: var(--red); }
