    :root {
      --bg: #f3f5f9;
      --panel: #ffffff;
      --panel-soft: #f7f9fc;
      --text: #111827;
      --muted: #8a96a8;
      --line: #dfe5ee;
      --line-soft: #e7edf5;
      --primary: #2f63dd;
      --primary-hover: #2a57c4;
      --primary-active: #2449a8;
      --chip: #f0f3f8;
      --shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
      --topbar-bg: #f6f8fb;
      --dropzone-bg: #f2f5fa;
      --dropzone-border: #d5dde8;
      --hint-text: #667385;
      --hint-sub: #a3adbb;
      --status-text-color: #3f4b5b;
      --status-dot-bg: #b6bfcc;
      --zoom-bg: #f3f6fb;
      --zoom-border: #dbe2ec;
      --zoom-btn-bg: #ffffff;
      --zoom-btn-border: #d4dce8;
      --zoom-btn-text: #334155;
      --zoom-btn-hover: #eef3fb;
      --overlay-mask: rgba(2, 6, 23, 0.48);
      --overlay-unselected: rgba(2, 6, 23, 0.45);
      --box-selected-stroke: #1d4ed8;
      --box-selected-fill: rgba(37, 99, 235, 0.20);
      --box-unselected-stroke: rgba(148, 163, 184, 0.95);
      --box-unselected-fill: rgba(148, 163, 184, 0.12);
      --json-bg: #f7fafc;
      --json-border: #cad7e8;
      --json-text: #8f9caf;
      --region-group-bg: #fbfdff;
      --region-group-border: #e6ecf5;
      --region-title-bg: #f2f6fc;
      --region-title-border: #e4ebf5;
      --region-title-text: #334155;
      --region-item-hover: #f7faff;
      --region-item-active-bg: #edf4ff;
      --region-meta-text: #7b8798;
      --btn-soft-bg: #f2f4f8;
      --btn-soft-border: #d8deea;
      --btn-soft-text: #3b4453;
    }

    body.theme-dark,
    body.theme-auto.theme-dark-active {
      --bg: #141414;
      --panel: #1d1d1d;
      --panel-soft: #202020;
      --text: #f2f2f2;
      --muted: #b1b1b1;
      --line: #2f2f2f;
      --line-soft: #343434;
      --primary: #1d1d1d;
      --primary-hover: #2b2b2b;
      --primary-active: #111111;
      --chip: #252525;
      --shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
      --topbar-bg: #1b1b1b;
      --dropzone-bg: #181818;
      --dropzone-border: #313131;
      --hint-text: #d5d5d5;
      --hint-sub: #9d9d9d;
      --status-text-color: #d7d7d7;
      --status-dot-bg: #9f9f9f;
      --zoom-bg: #1f1f1f;
      --zoom-border: #343434;
      --zoom-btn-bg: #242424;
      --zoom-btn-border: #3a3a3a;
      --zoom-btn-text: #ececec;
      --zoom-btn-hover: #2d2d2d;
      --overlay-mask: rgba(0, 0, 0, 0.62);
      --overlay-unselected: rgba(0, 0, 0, 0.58);
      --box-selected-stroke: #60a5fa;
      --box-selected-fill: rgba(96, 165, 250, 0.28);
      --box-unselected-stroke: rgba(148, 163, 184, 0.96);
      --box-unselected-fill: rgba(100, 116, 139, 0.18);
      --json-bg: #1a1a1a;
      --json-border: #3a3a3a;
      --json-text: #b9b9b9;
      --region-group-bg: #202020;
      --region-group-border: #343434;
      --region-title-bg: #252525;
      --region-title-border: #393939;
      --region-title-text: #efefef;
      --region-item-hover: #2a2a2a;
      --region-item-active-bg: #2f2f2f;
      --region-meta-text: #b8b8b8;
      --btn-soft-bg: #242424;
      --btn-soft-border: #3b3b3b;
      --btn-soft-text: #ececec;
    }

    * { box-sizing: border-box; }

    [hidden] { display: none !important; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    }

    body.lang-cjk {
      font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    }

    .app {
      width: min(1220px, 96vw);
      margin: 12px auto 24px;
    }

    .topbar {
      display: grid;
      gap: 10px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--topbar-bg);
      padding: 14px 18px;
      box-shadow: var(--shadow);
    }

    .topbar-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-width: 0;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }

    .brand-copy {
      display: grid;
      gap: 4px;
    }

    .brand-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--panel-soft);
      display: grid;
      place-items: center;
      color: var(--text);
    }

    .brand-icon svg {
      width: 24px;
      height: 24px;
      display: block;
    }

    .brand h1 {
      margin: 0;
      font-size: 42px;
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: -0.02em;
    }

    .brand p {
      margin: 0;
      color: var(--muted);
      font-size: 18px;
    }

    .switches {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .lang-menu {
      position: relative;
      z-index: 20;
    }

    .lang-menu-button {
      display: inline-flex;
      align-items: center;
      gap: 0;
      height: 34px;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 0 12px;
      background: var(--chip);
      color: var(--text);
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      max-width: 176px;
    }

    #langCurrentLabel {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .lang-menu-button:hover {
      border-color: var(--line-soft);
      background: var(--panel-soft);
    }

    .lang-menu-button[aria-expanded="true"] {
      border-color: var(--line-soft);
      background: var(--panel-soft);
    }

    .lang-menu-list {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      min-width: 176px;
      display: grid;
      gap: 4px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel);
      box-shadow: var(--shadow);
    }

    .lang-menu-option {
      height: 34px;
      border: 1px solid transparent;
      border-radius: 10px;
      background: transparent;
      color: var(--text);
      cursor: pointer;
      font-size: 13px;
      text-align: left;
      padding: 0 10px;
      font-weight: 600;
    }

    .lang-menu-option:hover {
      background: var(--panel-soft);
      border-color: var(--line-soft);
    }

    .lang-menu-option.active {
      background: var(--panel-soft);
      border-color: var(--line-soft);
    }

    .theme-row {
      display: flex;
      justify-content: flex-end;
    }

    .segment {
      display: flex;
      background: var(--chip);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 3px;
      gap: 4px;
      font-size: 13px;
    }

    .segment button {
      padding: 6px 12px;
      border-radius: 13px;
      color: #4b5563;
      user-select: none;
      border: 1px solid transparent;
      background: transparent;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
    }

    .segment button.active {
      background: #ffffff;
      border: 1px solid #d8dfeb;
      color: #111827;
    }

    .version {
      min-width: 58px;
      text-align: center;
      border: 1px solid #d5dde9;
      border-radius: 16px;
      color: #9aa4b5;
      font-size: 12px;
      padding: 3px 8px;
      line-height: 1.2;
    }

    .grid {
      display: grid;
      grid-template-columns: 1.48fr 0.92fr;
      gap: 14px;
      margin-top: 14px;
    }

    .status-strip {
      border: 1px solid var(--line);
      background: var(--panel);
      border-radius: 14px;
      padding: 12px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--status-text-color);
      margin-bottom: 12px;
      min-height: 66px;
      overflow: hidden;
    }

    #statusText {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--status-dot-bg);
    }

    .idle {
      color: #a4adbb;
      font-weight: 700;
      letter-spacing: 0.14em;
      font-size: 12px;
      text-transform: uppercase;
      padding-right: 12px;
      border-right: 1px solid #e2e8f0;
    }

    .idle.state-ready,
    .idle.state-idle,
    .idle.state-cleared {
      color: #64748b;
    }

    .idle.state-analyzing {
      color: #1d4ed8;
    }

    .idle.state-detected {
      color: #0f766e;
    }

    .idle.state-error,
    .idle.state-offline {
      color: #b42318;
    }

    .card {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel);
      box-shadow: var(--shadow);
    }

    .card-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--line-soft);
      padding: 16px 18px;
      color: #1f2937;
      font-size: 18px;
      font-weight: 600;
      white-space: nowrap;
    }

    .card-head > span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 0 1 auto;
    }

    .head-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .card-head .muted-small {
      color: #c3ccda;
      font-weight: 600;
      font-size: 14px;
    }

    .zoom-tools {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px;
      border: 1px solid var(--zoom-border);
      border-radius: 10px;
      background: var(--zoom-bg);
    }

    .zoom-btn {
      min-width: 28px;
      height: 24px;
      border: 1px solid var(--zoom-btn-border);
      border-radius: 7px;
      background: var(--zoom-btn-bg);
      color: var(--zoom-btn-text);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      padding: 0 6px;
    }

    .zoom-btn:hover { background: var(--zoom-btn-hover); }

    .zoom-btn.active {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

    .zoom-label {
      font-size: 12px;
      color: #64748b;
      min-width: 44px;
      text-align: center;
      font-weight: 600;
    }

    .card-body { padding: 16px; }

    .dropzone {
      border: 1px solid var(--dropzone-border);
      border-radius: 12px;
      background: var(--dropzone-bg);
      min-height: 420px;
      position: relative;
      display: grid;
      place-items: center;
      overflow: hidden;
    }

    .dropzone-dashed {
      border: none;
      border-radius: 0;
      width: 90%;
      height: 84%;
      display: grid;
      place-items: center;
      color: #667385;
      color: var(--hint-text);
      text-align: center;
      font-weight: 600;
      font-size: 33px;
      transform: scale(0.5);
      transform-origin: center center;
      line-height: 1.35;
      pointer-events: none;
    }

    .dropzone-dashed .support {
      color: var(--hint-sub);
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    #canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      cursor: grab;
      touch-action: none;
    }

    #canvas.panning { cursor: grabbing; }

    .button-row {
      display: flex;
      gap: 10px;
      margin: 14px 0 14px;
      flex-wrap: wrap;
    }

    .btn {
      border: 1px solid transparent;
      border-radius: 12px;
      height: 44px;
      padding: 0 16px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      line-height: 1;
      min-width: 130px;
      text-align: center;
    }

    .btn.primary {
      background: var(--primary);
      color: white;
      min-width: 164px;
    }

    .btn.primary:hover { background: var(--primary-hover); }
    .btn.primary:active { background: var(--primary-active); }

    .btn.soft {
      background: var(--btn-soft-bg);
      border-color: var(--btn-soft-border);
      color: var(--btn-soft-text);
      min-width: 136px;
    }

    .btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .token-card,
    .spec-card {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel);
      box-shadow: var(--shadow);
    }

    .token-card {
      padding: 14px 16px;
      margin-bottom: 14px;
    }

    .token-title,
    .spec-title {
      color: #9aa4b5;
      text-transform: uppercase;
      letter-spacing: 0.13em;
      font-weight: 700;
      font-size: 10px;
      margin-bottom: 12px;
    }

    .token-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .token {
      width: 28px;
      height: 28px;
      border-radius: 10px;
      border: 1px solid #d6deea;
    }

    .spec-card {
      padding: 18px;
    }

    .spec-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
    }

    .spec-heading {
      font-size: 18px;
      font-weight: 600;
      color: #4a5567;
      margin: 0 0 12px;
    }

    .spec-list {
      display: grid;
      gap: 9px;
      font-size: 15px;
      color: #5d6777;
    }

    .line-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .bar {
      display: inline-block;
      height: 10px;
      background: #9fc1ea;
      border-radius: 999px;
    }

    .radius-box {
      display: inline-block;
      width: 34px;
      height: 20px;
      border: 3px solid #84b0ea;
      border-radius: 6px;
      margin-right: 8px;
      vertical-align: middle;
    }

    .type-big {
      font-size: 35px;
      font-weight: 700;
      transform: scale(0.42);
      transform-origin: left center;
      height: 20px;
      width: 230px;
    }

    .type-mid {
      font-size: 25px;
      font-weight: 600;
      transform: scale(0.42);
      transform-origin: left center;
      height: 18px;
      width: 230px;
    }

    .type-small {
      color: #a7afbc;
      margin-left: 8px;
      font-size: 13px;
    }

    .state-btn {
      border-radius: 10px;
      height: 32px;
      border: 1px solid transparent;
      color: #fff;
      font-weight: 700;
      padding: 0 14px;
      text-align: left;
      background: var(--primary);
    }

    .state-btn.hover { background: var(--primary-hover); }
    .state-btn.active { background: var(--primary-active); }
    .state-btn.secondary {
      color: #4b5563;
      background: #eceff4;
      border-color: #dde4ee;
      font-weight: 600;
    }

    .region-empty {
      min-height: 190px;
      display: grid;
      place-items: center;
      text-align: center;
      color: #7f8a9b;
      font-size: 15px;
      line-height: 1.45;
    }

    .region-list {
      max-height: 190px;
      overflow: auto;
    }

    .region-group {
      border: 1px solid var(--region-group-border);
      border-radius: 10px;
      margin-bottom: 10px;
      overflow: hidden;
      background: var(--region-group-bg);
    }

    .region-group-title {
      padding: 8px 10px;
      font-size: 12px;
      font-weight: 700;
      color: var(--region-title-text);
      background: var(--region-title-bg);
      border-bottom: 1px solid var(--region-title-border);
      word-break: break-all;
    }

    .region-item {
      border-bottom: 1px solid var(--line-soft);
      padding: 10px 12px;
      cursor: pointer;
      font-size: 13px;
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
    }

    .region-main {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .region-check {
      margin-top: 2px;
      width: 14px;
      height: 14px;
      accent-color: var(--primary);
      cursor: pointer;
    }

    .region-item:hover { background: var(--region-item-hover); }

    .region-item.active {
      background: var(--region-item-active-bg);
      border-left: 3px solid var(--primary);
      padding-left: 9px;
    }

    .region-item.checked {
      background: var(--region-item-active-bg);
      border-left: 3px solid #2f63dd;
      padding-left: 9px;
    }

    .meta {
      color: var(--region-meta-text);
      font-size: 12px;
      margin-top: 2px;
    }

    @media (min-width: 761px) {
      .topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
          "brand lang"
          "brand theme";
        align-items: center;
      }

      .topbar-row {
        display: contents;
      }

      .brand {
        grid-area: brand;
        align-self: center;
      }

      .switches {
        grid-area: lang;
        justify-self: end;
      }

      .theme-row {
        grid-area: theme;
        justify-self: end;
        width: auto;
      }
    }

    .json-area {
      width: 100%;
      min-height: 180px;
      border: 1px dashed var(--json-border);
      border-radius: 10px;
      background: var(--json-bg);
      color: var(--json-text);
      font-family: Consolas, "Courier New", monospace;
      font-size: 12px;
      line-height: 1.55;
      padding: 14px;
      resize: vertical;
    }

    .right-stack { display: grid; gap: 14px; }

    .site-lower {
      margin-top: 14px;
      display: grid;
      gap: 14px;
    }

    .support-panel {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 14px 16px;
      background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
      box-shadow: var(--shadow);
    }

    .support-copy {
      min-width: 0;
    }

    .support-title {
      margin: 0;
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
    }

    .support-desc {
      margin: 6px 0 0;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.45;
    }

    .support-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      text-decoration: none;
      border-radius: 10px;
      border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line));
      background: color-mix(in srgb, var(--primary) 12%, var(--panel));
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      padding: 9px 14px;
      transition: background 120ms ease, border-color 120ms ease;
    }

    .support-btn:hover {
      background: color-mix(in srgb, var(--primary) 20%, var(--panel));
      border-color: color-mix(in srgb, var(--primary) 65%, var(--line));
    }

    .site-footer {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 14px 16px 16px;
      background: var(--panel);
      box-shadow: var(--shadow);
      display: grid;
      gap: 12px;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      font-size: 13px;
    }

    .footer-links a {
      color: var(--muted);
      text-decoration: none;
    }

    .footer-links a.active {
      color: var(--text);
      font-weight: 700;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .footer-links a:hover {
      color: var(--text);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .footer-content {
      border: 1px solid var(--line-soft);
      border-radius: 10px;
      padding: 10px 12px;
      background: var(--panel-soft);
    }

    .footer-content-title {
      margin: 0;
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }

    .footer-panel-body {
      margin: 8px 0 0;
      font-size: 12px;
      line-height: 1.55;
      color: var(--muted);
    }

    .footer-panel-body a {
      color: inherit;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .prompt-overlay {
      position: fixed;
      inset: 0;
      z-index: 70;
      background: rgba(0, 0, 0, 0.28);
      display: grid;
      place-items: center;
      padding: 20px;
      opacity: 0;
      transition: opacity 180ms ease;
    }

    .prompt-overlay.is-visible {
      opacity: 1;
    }

    .prompt-card {
      width: min(420px, calc(100vw - 40px));
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel);
      box-shadow: var(--shadow);
      padding: 16px 16px 14px;
      position: relative;
      transform: translateY(10px);
      opacity: 0;
      transition: transform 220ms ease, opacity 220ms ease;
    }

    .prompt-overlay.is-visible .prompt-card {
      transform: translateY(0);
      opacity: 1;
    }

    .prompt-close {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      border: 1px solid var(--line-soft);
      border-radius: 8px;
      background: var(--panel-soft);
      color: var(--muted);
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      padding: 0;
    }

    .prompt-close:hover {
      color: var(--text);
      border-color: var(--line);
    }

    .prompt-icon {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-weight: 700;
      color: var(--text);
      border: 1px solid var(--line-soft);
      background: var(--panel-soft);
      margin-bottom: 8px;
      animation: promptIconPop 380ms ease-out;
    }

    @keyframes promptIconPop {
      0% { transform: scale(0.92); opacity: 0.7; }
      100% { transform: scale(1); opacity: 1; }
    }

    .prompt-title {
      margin: 0;
      font-size: 17px;
      line-height: 1.3;
      color: var(--text);
      padding-right: 34px;
    }

    .prompt-body,
    .prompt-howto {
      margin: 8px 0 0;
      font-size: 13px;
      line-height: 1.55;
      color: var(--muted);
    }

    .prompt-actions {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      margin-top: 12px;
      flex-wrap: wrap;
    }

    .prompt-actions .btn {
      min-width: 96px;
      height: 36px;
      font-size: 13px;
      border-radius: 10px;
      padding: 0 12px;
    }

    .prompt-action-primary {
      border-color: var(--line);
    }

    .prompt-action-secondary {
      border-style: dashed;
    }

    .seo-section {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 14px 16px;
      background: var(--panel);
      box-shadow: var(--shadow);
      display: grid;
      gap: 10px;
    }

    .seo-title {
      margin: 0;
      font-size: 17px;
      line-height: 1.3;
      color: var(--text);
    }

    .seo-intro,
    .seo-block p {
      margin: 0;
      font-size: 13px;
      line-height: 1.6;
      color: var(--muted);
    }

    .seo-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .seo-block {
      border: 1px solid var(--line-soft);
      border-radius: 10px;
      padding: 10px 12px;
      background: var(--panel-soft);
      display: grid;
      gap: 6px;
    }

    .seo-block h3 {
      margin: 0;
      font-size: 13px;
      color: var(--text);
    }

    @media (max-width: 980px) {
      .app {
        width: min(1220px, calc(100vw - 20px));
        margin: 10px auto 20px;
      }
      .grid { grid-template-columns: 1fr; }
      .spec-grid { grid-template-columns: 1fr 1fr; }
      .btn { font-size: 14px; min-width: 0; height: 42px; }
      .button-row { gap: 8px; }
      .brand h1,
      .brand p,
      .card-head,
      .dropzone-dashed { transform: none; width: auto; height: auto; font-size: inherit; }
      .dropzone-dashed { font-size: 18px; }
    }

    @media (max-width: 760px) {
      .app { width: min(calc(100vw - 24px), 720px); margin: 10px auto 20px; }

      .card-head {
        white-space: nowrap;
        align-items: center;
        gap: 8px;
        padding: 14px 12px;
      }

      .card-head > span {
        max-width: 34vw;
      }

      .head-right {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
      }

      .zoom-tools {
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .zoom-tools::-webkit-scrollbar {
        display: none;
      }

      .zoom-btn {
        min-width: 0;
        padding: 0 8px;
        white-space: nowrap;
        flex: 0 0 auto;
      }

      .zoom-label {
        min-width: 38px;
        flex: 0 0 auto;
      }

      .topbar {
        gap: 10px;
        padding: 12px;
      }

      .topbar-row {
        align-items: center;
      }

      .brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 12px;
      }

      .brand-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 17px;
        flex: 0 0 auto;
      }

      .brand h1 {
        font-size: 18px;
        line-height: 1.05;
        letter-spacing: -0.01em;
      }

      .brand p {
        margin-top: 3px;
        font-size: 14px;
      }

      .switches {
        flex: 0 0 auto;
      }

      .lang-menu-button {
        height: 32px;
        border-radius: 16px;
        padding: 0 10px;
        font-size: 12px;
        max-width: 140px;
      }

      .lang-menu-list {
        min-width: 160px;
        right: -4px;
      }

      .lang-menu-option {
        font-size: 12px;
      }

      .theme-row {
        width: 100%;
        justify-content: stretch;
      }

      .theme-row .segment {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
      }

      .theme-row .segment button {
        width: 100%;
        padding: 6px 8px;
        font-size: 12px;
        white-space: nowrap;
      }

      .button-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .button-row .btn {
        width: 100%;
        min-width: 0;
      }

      .support-panel {
        align-items: flex-start;
        flex-direction: column;
      }

      .support-btn {
        width: 100%;
      }

      .footer-links {
        gap: 6px 12px;
      }

      .seo-grid {
        grid-template-columns: 1fr;
      }

      .prompt-overlay {
        place-items: center;
        padding: 14px;
      }

      .prompt-card {
        width: min(420px, calc(100vw - 28px));
      }

      .prompt-actions {
        justify-content: stretch;
      }

      .prompt-actions .btn {
        flex: 1 1 0;
      }

      html[lang="es"] .brand p {
        font-size: 13px;
      }

      html[lang="es"] .lang-menu-button {
        max-width: 126px;
        padding: 0 8px;
      }

      html[lang="es"] .idle {
        letter-spacing: 0.1em;
        padding-right: 9px;
      }

      html[lang="es"] .card-head > span {
        max-width: 28vw;
      }

      html[lang="es"] .zoom-btn {
        font-size: 11px;
        padding: 0 7px;
      }

      html[lang="es"] #zoomResetBtn,
      html[lang="es"] #editModeBtn {
        max-width: 84px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    @media (max-width: 420px) {
      .topbar-row {
        gap: 8px;
      }

      .brand h1 {
        font-size: 16px;
      }

      .brand p {
        font-size: 13px;
      }

      .lang-menu-button {
        height: 30px;
        padding: 0 9px;
        max-width: 132px;
      }

      html[lang="es"] .card-head > span {
        max-width: 24vw;
      }

      html[lang="es"] #zoomResetBtn,
      html[lang="es"] #editModeBtn {
        max-width: 74px;
      }

      .lang-menu-list {
        min-width: 150px;
        right: 0;
      }
    }
