
  :root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #fbfbfd;
    --fill: #f2f2f4;
    --fill-hover: #ececef;
    --separator: rgba(0,0,0,0.08);
    --separator-strong: rgba(0,0,0,0.12);
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --blue: #6d55fe;
    --blue-hover: #5b3fe0;
    --blue-press: #4d2fc0;
    --blue-fill: rgba(109,85,254,0.12);
    --green: #34c759;
    --orange: #ff9500;
    --red: #ff3b30;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.08);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 56px;
    --sidebar-w: 304px;
    --header-bg: rgba(255,255,255,0.8);
    --scroll-thumb: rgba(0,0,0,0.15);
  }
  [data-theme="dark"] {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --fill: #2c2c2e;
    --fill-hover: #3a3a3c;
    --separator: rgba(255,255,255,0.08);
    --separator-strong: rgba(255,255,255,0.14);
    --text: #f5f5f7;
    --text-secondary: #aeaeb2;
    --text-tertiary: #86868b;
    --blue-fill: rgba(109,85,254,0.2);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.5);
    --header-bg: rgba(28,28,30,0.8);
    --scroll-thumb: rgba(255,255,255,0.18);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; overflow: hidden; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.47;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em; display: flex; flex-direction: column;
  }

  /* Header */
  header {
    height: var(--header-h); flex-shrink: 0; display: flex; align-items: center; gap: 12px;
    padding: 0 20px; background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--separator); z-index: 20;
  }
  header .logo-link { display: flex; align-items: center; text-decoration: none; }
  header .logo { height: 30px; width: auto; max-width: 140px; display: block; border-radius: 6px; object-fit: contain; }
  header .logo-dark { display: none; }
  [data-theme="dark"] .logo-light { display: none; }
  [data-theme="dark"] .logo-dark { display: block; }
  header .title { font-size: 15px; font-weight: 600; }
  header .title .sub { color: var(--text-tertiary); font-weight: 400; margin-left: 6px; }
  header .spacer { flex: 1; }
  header .more-link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 980px; background: var(--fill); color: var(--text-secondary); font-size: 13px; text-decoration: none; transition: all 0.15s var(--ease); }
  header .more-link:hover { background: var(--fill-hover); color: var(--text); }
  header .more-link svg { width: 14px; height: 14px; }
  header .menu-btn { display: none; }
  header .icon-btn {
    width: 34px; height: 34px; border: none; background: transparent; cursor: pointer;
    border-radius: 8px; color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    transition: all 0.15s var(--ease);
  }
  header .icon-btn:hover { background: var(--fill); color: var(--text); }
  header .icon-btn svg { width: 18px; height: 18px; }
  .sun-icon { display: none; }
  [data-theme="dark"] .sun-icon { display: block; }
  [data-theme="dark"] .moon-icon { display: none; }

  /* Layout */
  .layout { flex: 1; display: flex; min-height: 0; }

  /* Sidebar */
  aside {
    width: var(--sidebar-w); flex-shrink: 0; background: var(--surface);
    border-right: 1px solid var(--separator); display: flex; flex-direction: column; overflow: hidden;
  }
  .sidebar-scroll { flex: 1; overflow-y: auto; padding: 16px 0; }
  .sidebar-scroll::-webkit-scrollbar { width: 6px; }
  .sidebar-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 3px; }

  .group { padding: 0 16px; }
  .group + .group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--separator); }
  .group-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; padding: 0 2px; }

  .opt { display: flex; align-items: center; gap: 12px; padding: 9px 4px; cursor: pointer; min-height: 40px; border-radius: 6px; transition: background 0.1s; }
  .opt:hover { background: var(--surface-2); }
  .opt-label { font-size: 13.5px; flex: 1; }
  .opt-control { display: flex; align-items: center; gap: 8px; }

  .switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
  .switch input { opacity: 0; width: 0; height: 0; position: absolute; }
  .switch .track { position: absolute; inset: 0; background: var(--separator-strong); border-radius: 980px; transition: background 0.2s var(--ease); }
  .switch .thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 0 0 0.5px rgba(0,0,0,0.05); transition: transform 0.2s var(--ease); }
  .switch input:checked ~ .track { background: var(--green); }
  .switch input:checked ~ .thumb { transform: translateX(16px); }
  .switch input:focus-visible ~ .track { box-shadow: 0 0 0 4px rgba(0,113,227,0.2); }

  .sel {
    padding: 5px 24px 5px 9px; border: 1px solid var(--separator-strong); border-radius: 6px; font-size: 12px; font-family: inherit;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' stroke='%2386868b' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center;
    -webkit-appearance: none; appearance: none; color: var(--text); cursor: pointer;
  }
  .sel:focus { outline: none; border-color: var(--blue); }
  .sel.full { width: 100%; margin-top: 6px; }

  .filter-inline { display: flex; align-items: center; gap: 8px; }
  .filter-inline .field { flex: 1; padding: 7px 10px; font-size: 12.5px; }

  .progress { height: 4px; background: var(--fill); border-radius: 2px; overflow: hidden; margin-top: 10px; display: none; }
  .progress.show { display: block; }
  .progress-bar { height: 100%; background: var(--blue); width: 0%; border-radius: 2px; transition: width 0.25s var(--ease); }
  .progress-txt { font-size: 11px; color: var(--text-tertiary); text-align: center; margin-top: 8px; display: none; }
  .progress-txt.show { display: block; }
  .process-area { margin-top: 12px; }
  .btn-fetch { padding: 11px 22px; font-size: 14px; flex-shrink: 0; }
  .fetch-status { display: none; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 14px; background: rgba(52,199,89,0.1); border-radius: var(--radius-sm); font-size: 13px; color: var(--green); }
  .fetch-status.show { display: flex; }
  .fetch-status svg { width: 16px; height: 16px; flex-shrink: 0; }
  .fetch-status .hint { margin-left: auto; color: var(--text-secondary); font-size: 12px; }
  .fetch-status .hint b { color: var(--blue); font-weight: 600; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(109,85,254,0.4); } 50% { box-shadow: 0 0 0 8px rgba(109,85,254,0); } }
  .pulse { animation: pulse 1.4s ease-out infinite; }

  /* Buttons */
  .btn { padding: 9px 16px; border: none; border-radius: 980px; font-size: 13.5px; font-weight: 400; cursor: pointer; transition: all 0.15s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; white-space: nowrap; letter-spacing: -0.01em; }
  .btn svg { width: 15px; height: 15px; }
  .btn-primary { background: var(--blue); color: #fff; }
  .btn-primary:hover { background: var(--blue-hover); }
  .btn-primary:active { background: var(--blue-press); }
  .btn-primary:disabled { background: var(--separator-strong); color: var(--text-tertiary); cursor: not-allowed; }
  .btn-fill { background: var(--fill); color: var(--text); }
  .btn-fill:hover { background: var(--fill-hover); }
  .btn-green { background: var(--green); color: #fff; }
  .btn-green:hover { background: #2bb24c; }
  .btn-sm { padding: 6px 12px; font-size: 12.5px; }
  .btn-block { width: 100%; padding: 11px 16px; font-size: 14px; }

  /* Main */
  main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
  .main-scroll { flex: 1; overflow-y: auto; padding: 18px 20px; }
  .main-scroll::-webkit-scrollbar { width: 8px; }
  .main-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }

  /* Segmented */
  .seg { display: flex; gap: 2px; padding: 3px; background: var(--fill); border-radius: var(--radius-sm); }
  .seg button { flex: 1; padding: 6px 10px; border: none; background: transparent; border-radius: 6px; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); transition: all 0.18s var(--ease); font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 5px; }
  .seg button svg { width: 14px; height: 14px; }
  .seg button:hover { color: var(--text); }
  .seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 0 0 0.5px var(--separator-strong); }

  /* Field */
  .field { padding: 9px 12px; border: 1px solid var(--separator-strong); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text); transition: all 0.15s var(--ease); width: 100%; }
  .field::placeholder { color: var(--text-tertiary); }
  .field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,0.12); }
  textarea.field { resize: vertical; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.5; }

  /* Input section */
  .input-section { background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
  .section-bar { display: none; align-items: center; gap: 10px; margin-bottom: 0; padding-bottom: 0; }
  .input-section.collapsed { padding: 10px 14px; }
  .input-section.collapsed .section-bar { display: flex; margin: 0; }
  .input-section.collapsed .section-body { display: none; }
  .section-bar .bar-info { flex: 1; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
  .bar-toggle { border: none; background: transparent; color: var(--blue); font-size: 12.5px; cursor: pointer; font-family: inherit; padding: 4px 8px; border-radius: 6px; }
  .bar-toggle:hover { background: var(--blue-fill); }
  .shortcut-list { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
  .sc { display: flex; align-items: center; gap: 5px; font-size: 11.5px; }
  .sc .sc-desc { flex: 1; color: var(--text-tertiary); }
  kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--separator-strong); border-radius: 4px; background: var(--fill); color: var(--text-tertiary); font-size: 10px; font-family: ui-monospace, "SF Mono", Consolas, monospace; line-height: 1; }
  .input-section .seg { margin-bottom: 10px; }
  .input-row { display: flex; gap: 8px; }
  .input-row .field { flex: 1; }

  .dropzone { border: 1.5px dashed var(--separator-strong); border-radius: var(--radius-sm); padding: 26px 16px; text-align: center; cursor: pointer; transition: all 0.2s var(--ease); background: var(--surface-2); }
  .dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: var(--blue-fill); }
  .dropzone .dz-icon { margin-bottom: 8px; color: var(--text-tertiary); }
  .dropzone .dz-icon svg { width: 30px; height: 30px; }
  .dropzone:hover .dz-icon { color: var(--blue); }
  .dropzone .dz-title { font-size: 13.5px; font-weight: 500; color: var(--text); }
  .dropzone .dz-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
  .dropzone input { display: none; }

  /* File list (multi) */
  .file-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
  .file-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--fill); border-radius: 6px; font-size: 12px; color: var(--text-secondary); }
  .file-item svg.f-ico { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
  .file-item .f-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-item .f-size { color: var(--text-tertiary); font-variant-numeric: tabular-nums; flex-shrink: 0; }
  .file-item .f-x { cursor: pointer; color: var(--text-tertiary); display: flex; padding: 2px; border-radius: 4px; }
  .file-item .f-x:hover { color: var(--red); background: var(--separator); }
  .file-item .f-x svg { width: 13px; height: 13px; }
  .file-clear-all { margin-top: 6px; font-size: 12px; color: var(--blue); cursor: pointer; background: none; border: none; padding: 4px 0; font-family: inherit; }
  .file-clear-all:hover { text-decoration: underline; }

  .notice { padding: 9px 12px; border-radius: var(--radius-sm); font-size: 12px; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; line-height: 1.45; }
  .notice svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
  .notice.info { background: var(--blue-fill); color: var(--blue); }
  .notice.warn { background: rgba(255,149,0,0.12); color: var(--orange); }
  .notice b { font-weight: 600; }

  /* Stats */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--separator); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
  .stat { background: var(--surface); padding: 12px 8px; text-align: center; }
  .stat .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-feature-settings: "tnum"; }
  .stat .l { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
  .stat.blue .v { color: var(--blue); }
  .stat.green .v { color: var(--green); }
  .stat.red .v { color: var(--red); }
  .stat.orange .v { color: var(--orange); }

  /* Domain stats */
  .domain-card { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
  .removed-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
  .removed-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
  .removed-head .rt { font-size: 13px; font-weight: 600; color: var(--text-secondary); flex: 1; }
  .removed-head .rc { color: var(--text-tertiary); font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
  .removed-actions { display: flex; gap: 6px; align-items: center; }
  .removed-body { border-top: 1px solid var(--separator); }
  .removed-list { max-height: 320px; overflow-y: auto; }
  .removed-list::-webkit-scrollbar { width: 8px; }
  .removed-list::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; border: 2px solid var(--surface); }
  .removed-row { display: flex; align-items: center; gap: 10px; padding: 6px 14px; font-size: 12px; border-bottom: 1px solid var(--separator); }
  .removed-row:last-child { border-bottom: none; }
  .removed-row .reason { flex-shrink: 0; font-size: 10.5px; padding: 2px 7px; border-radius: 4px; background: var(--fill); color: var(--text-tertiary); }
  .removed-row .reason.dup { background: rgba(255,59,48,0.1); color: var(--red); }
  .removed-row .reason.flt { background: rgba(255,149,0,0.12); color: var(--orange); }
  .removed-row .ru { flex: 1; min-width: 0; word-break: break-all; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 11.5px; color: var(--text-secondary); }
  .domain-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .domain-head .dt { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
  .domain-head .dt .dc { color: var(--text-tertiary); font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
  .domain-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
  .domain-row:last-child { margin-bottom: 0; }
  .domain-row .dn { width: 160px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
  .domain-row .bar-bg { flex: 1; height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; }
  .domain-row .bar { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.4s var(--ease); }
  .domain-row .cnt { color: var(--text-tertiary); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }

  /* Result */
  .result-section { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-height: 320px; }
  .result-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--separator); flex-wrap: wrap; }
  .result-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .result-title .count { color: var(--text-tertiary); font-weight: 500; font-variant-numeric: tabular-nums; }
  .search-box { position: relative; flex: 1; min-width: 160px; }
  .search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-tertiary); }
  .search-box .field { padding-left: 32px; padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; }
  .actions { display: flex; gap: 6px; flex-wrap: wrap; }

  /* Export dropdown */
  .export-wrap { position: relative; }
  .export-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 4px; min-width: 190px; z-index: 50; display: none; }
  .export-menu.show { display: block; }
  .export-menu button { display: flex; width: 100%; padding: 8px 12px; border: none; background: transparent; cursor: pointer; font-size: 13px; color: var(--text); border-radius: 6px; text-align: left; align-items: center; gap: 8px; font-family: inherit; }
  .export-menu button:hover { background: var(--fill); }
  .export-menu button svg { width: 15px; height: 15px; color: var(--text-secondary); }
  .export-menu .fmt { font-size: 10.5px; color: var(--text-tertiary); margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }

  .list-wrap { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
  .list { flex: 1; overflow-y: auto; }
  .list::-webkit-scrollbar { width: 8px; }
  .list::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; border: 2px solid var(--surface); }
  .url-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--separator); transition: background 0.12s; position: relative; }
  .url-row:last-child { border-bottom: none; }
  .url-row:hover { background: var(--surface-2); }
  .url-row .idx { color: var(--text-tertiary); font-size: 11px; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; flex-shrink: 0; user-select: none; -webkit-user-select: none; }
  .url-row .u { flex: 1; min-width: 0; word-break: break-all; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.55; }
  .url-row .u .proto { color: var(--green); }
  .url-row .u .host { color: var(--blue); font-weight: 500; }
  .url-row .u .path { color: var(--text-secondary); }
  .url-row .copy-one { opacity: 0; flex-shrink: 0; width: 26px; height: 26px; border: none; background: var(--fill); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.12s; user-select: none; -webkit-user-select: none; }
  .url-row:hover .copy-one, .url-row:focus-within .copy-one { opacity: 1; }
  .url-row .copy-one:hover { background: var(--blue); color: #fff; }
  .url-row .copy-one svg { width: 13px; height: 13px; }
  .list-empty { padding: 56px 24px; text-align: center; color: var(--text-tertiary); }
  .list-empty svg { width: 32px; height: 32px; margin-bottom: 12px; opacity: 0.45; }
  .list-empty .t { font-size: 14px; color: var(--text-secondary); }
  .list-empty .s { font-size: 12.5px; margin-top: 3px; }

  .pager { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 10px 14px; border-top: 1px solid var(--separator); flex-wrap: wrap; }
  .pager button { min-width: 30px; height: 30px; padding: 0 7px; border: none; background: transparent; border-radius: 6px; cursor: pointer; font-size: 12.5px; font-family: inherit; color: var(--text-secondary); transition: all 0.12s; }
  .pager button:hover:not(:disabled) { background: var(--fill); color: var(--text); }
  .pager button.active { background: var(--blue); color: #fff; }
  .pager button:disabled { opacity: 0.35; cursor: not-allowed; }
  .pager .info { font-size: 11.5px; color: var(--text-tertiary); padding: 0 6px; font-feature-settings: "tnum"; }
  .pager .ellipsis { color: var(--text-tertiary); padding: 0 2px; }

  .empty-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-tertiary); text-align: center; padding: 40px; }
  .empty-main svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.4; }
  .empty-main .t { font-size: 15px; color: var(--text-secondary); margin-bottom: 4px; }
  .empty-main .s { font-size: 13px; }

  .drag-overlay { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(109,85,254,0.12); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); align-items: center; justify-content: center; pointer-events: none; }
  .drag-overlay.show { display: flex; }
  .drag-overlay .drop-hint { background: var(--surface); border: 2px dashed var(--blue); border-radius: var(--radius-lg); padding: 36px 48px; text-align: center; box-shadow: var(--shadow-lg); }
  .drag-overlay .drop-hint svg { width: 44px; height: 44px; color: var(--blue); margin-bottom: 12px; }
  .drag-overlay .drop-hint .t { font-size: 17px; font-weight: 600; color: var(--text); }
  .drag-overlay .drop-hint .s { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }

  .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: rgba(29,29,31,0.96); color: #fff; padding: 11px 20px; border-radius: var(--radius); font-size: 13.5px; box-shadow: var(--shadow-lg); z-index: 1000; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: transform 0.35s var(--ease), opacity 0.3s; opacity: 0; display: flex; align-items: center; gap: 8px; max-width: 90vw; }
  .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
  .toast svg { width: 15px; height: 15px; flex-shrink: 0; }
  .toast.ok svg { color: var(--green); }
  .toast.err svg { color: var(--red); }

  .hidden { display: none !important; }

  .brand-foot { text-align: center; color: var(--text-tertiary); font-size: 12px; margin-top: 24px; padding: 16px 0; }
  .brand-foot a { color: var(--blue); text-decoration: none; }
  .brand-foot a:hover { text-decoration: underline; }

  .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 30; }
  @media (max-width: 820px) {
    header .menu-btn { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: none; background: transparent; cursor: pointer; border-radius: 7px; color: var(--text); }
    header .menu-btn:hover { background: var(--fill); }
    header .menu-btn svg { width: 18px; height: 18px; }
    aside { position: fixed; left: 0; top: var(--header-h); bottom: 0; width: 300px; z-index: 40; transform: translateX(-100%); transition: transform 0.3s var(--ease); box-shadow: var(--shadow-lg); }
    aside.open { transform: translateX(0); }
    .overlay.show { display: block; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .main-scroll { padding: 12px; }
    header .title { display: none; }
    header .more-link span { display: none; }
    header .more-link { padding: 7px; }
  }
