:root {
      --bg: #f7f9f7;
      --surface: #ffffff;
      --surface-soft: #f2f8f2;
      --ink: #292d2a;
      --ink-2: #414642;
      --muted: #6f756f;
      --muted-2: #959d96;
      --line: #e4ebe4;
      --line-strong: #ccd9cd;
      --accent: #70c270;
      --accent-deep: #55ad5b;
      --accent-soft: #eaf7ea;
      --accent-ink: #347643;
      --primary-button-start: #70c270;
      --primary-button-end: #45a145;
      --primary-button-shadow: rgb(102 187 106 / 30%);
      --primary-button-shadow-hover: rgb(102 187 106 / 40%);
      --green-soft: #f0f9f0;
      --green-line: #c8e5c9;
      --amber-soft: #f6efdc;
      --amber-line: #dcc891;
      --violet-soft: #f0eaf6;
      --violet-line: #d3c4e0;
      --stone-soft: #ecebe6;
      --stone-line: #c9c8c0;
      --warn: #8a5a18;
      --ok: #3f9650;
      --danger: #8a2f2f;
      --tag-open-bg: #e8f5e9;
      --tag-open-ink: #2e7d32;
      --tag-self-bg: #e9f7f7;
      --tag-self-ink: #176d70;
      --tag-apply-bg: #e3f2fd;
      --tag-apply-ink: #1565c0;
      --tag-custom-bg: #fce4ec;
      --tag-custom-ink: #880e4f;
      --tag-paid-bg: #fff5dc;
      --tag-paid-ink: #8a6118;
      --radius-xs: 4px;
      --radius-sm: 6px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --content: 1180px;
      --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "SFMono-Regular", monospace;
      --sans: "Inter", "MiSans VF", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }
    body {
      min-height: 100vh;
      min-height: 100dvh;
      margin: 0;
      display: flex;
      flex-direction: column;
      color: var(--ink);
      background: var(--bg);
      font-family: var(--sans);
      font-size: 14px;
      line-height: 1.55;
      letter-spacing: 0;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }
    main {
      display: flex;
      flex: 1 0 auto;
      flex-direction: column;
    }
    body.modal-open { overflow: hidden; }
    button, input, select, textarea { color: inherit; font: inherit; letter-spacing: 0; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { border: 0; background: none; }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    .sr-only {
      position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%);
    }
    .container { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }

    /* ---------- Top bar ---------- */
    .topbar {
      position: sticky; z-index: 40; top: 0;
      background: rgb(255 255 255 / 88%);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
    }
    .topbar-inner {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 32px;
      min-height: 58px;
    }
    .brand { display: inline-flex; align-items: center; gap: 10px; }
    .brand-mark {
      width: 30px; height: 30px;
      display: grid; place-items: center; overflow: hidden;
      border-radius: var(--radius-sm);
    }
    .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
    .brand-fallback {
      width: 100%; height: 100%;
      display: grid; place-items: center;
      background: var(--accent); color: #173c20;
      font-family: var(--mono); font-size: 12px; font-weight: 700;
    }
    .brand-text { display: block; line-height: 1.2; }
    .brand-text strong { font-size: 14px; font-weight: 650; }
    .topbar-right { display: flex; align-items: center; gap: 10px; justify-self: end; }

    /* ---------- Buttons ---------- */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      min-height: 34px; padding: 6px 14px;
      font-size: 13px; font-weight: 550;
      border: 1px solid var(--line); background: var(--surface); color: var(--ink);
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
    }
    .btn:hover:not(:disabled) {
      border-color: var(--accent-deep);
      background: var(--accent-soft);
      color: var(--accent-ink);
    }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .btn.primary {
      background: linear-gradient(135deg, var(--primary-button-start), var(--primary-button-end));
      border-color: var(--primary-button-end); color: #fff;
      box-shadow: 0 4px 16px var(--primary-button-shadow);
    }
    .btn.primary:hover:not(:disabled) {
      background: linear-gradient(135deg, var(--primary-button-start), var(--primary-button-end));
      border-color: var(--primary-button-end); color: #fff;
      box-shadow: 0 6px 24px var(--primary-button-shadow-hover);
      transform: translateY(-2px);
    }
    .btn.primary:active:not(:disabled) {
      box-shadow: 0 2px 8px var(--primary-button-shadow);
      transform: translateY(0);
    }
    .btn.brand-soft {
      background: var(--accent-soft);
      border-color: var(--green-line);
      color: var(--accent-ink);
    }
    .btn.brand-soft:hover:not(:disabled) {
      background: #dff1df;
      border-color: #acd7af;
      color: #286338;
    }
    .btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
    .btn.ghost:hover:not(:disabled) {
      border-color: var(--green-line);
      color: var(--accent-ink);
      background: var(--accent-soft);
    }
    .btn.small { min-height: 28px; padding: 4px 10px; font-size: 12px; }
    .icon-btn {
      display: inline-grid; place-items: center;
      width: 32px; height: 32px;
      border: 1px solid var(--line); background: var(--surface);
      color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1;
      border-radius: 50%;
    }
    .icon-btn {
      transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
    }
    .icon-btn:hover {
      color: var(--accent-ink);
      border-color: var(--accent-deep);
      background: var(--accent-soft);
    }
    .btn:focus-visible, .icon-btn:focus-visible,
    .product-card:focus-visible, a:focus-visible {
      outline: 2px solid var(--accent); outline-offset: 2px;
    }

    /* ---------- Hero (centered, structured) ---------- */
    .hero {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      background: var(--bg);
      border-bottom: 1px solid var(--line);
    }
    .hero-bg {
      position: absolute; inset: 0; z-index: -1;
      overflow: hidden;
      pointer-events: none;
      background:
        linear-gradient(118deg, rgb(234 247 234 / 82%) 0%, rgb(247 249 247 / 96%) 46%, rgb(240 248 241 / 78%) 100%);
    }
    .hero-inner {
      position: relative;
      display: grid;
      gap: 22px;
      justify-items: center;
      text-align: center;
      padding: 84px 0 64px;
    }
    .hero-watermark {
      position: absolute;
      left: 50%; top: 28px;
      transform: translateX(-50%);
      font-family: "Inter", system-ui, sans-serif;
      font-size: clamp(120px, 18vw, 240px);
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0;
      background: linear-gradient(180deg, var(--accent), transparent 70%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      opacity: 0.1;
      white-space: nowrap;
      pointer-events: none;
      user-select: none;
      z-index: -1;
    }
    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 5px 12px;
      border-radius: 999px;
      background: var(--surface);
      border: 1px solid var(--line);
      color: var(--accent-deep);
      font-size: 12px; font-weight: 600;
    }
    .hero-eyebrow::before {
      content: ""; width: 6px; height: 6px; border-radius: 50%;
      background: var(--accent-ink);
    }
    .hero h1 {
      margin: 0;
      max-width: 760px;
      font-size: clamp(28px, 4vw, 40px);
      font-weight: 700; line-height: 1.2;
      letter-spacing: 0;
    }
    .hero p {
      margin: 0;
      max-width: 580px;
      color: var(--muted);
      font-size: 14px;
    }
    .hero-actions {
      display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    }
    .hero-meta {
      display: flex; flex-wrap: wrap; gap: 18px;
      justify-content: center;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }
    .hero-meta strong { color: var(--ink); font-weight: 600; }
    .hero-meta .ok { color: var(--ok); }
    .hero-meta .off { color: var(--danger); }
    .hero-meta-divider {
      width: 1px; height: 12px; background: var(--line); align-self: center;
    }

    /* ---------- Catalog ---------- */
    .catalog {
      flex: 1 0 auto;
      padding: 36px 0 80px;
      background: linear-gradient(180deg, #f8faf8 0%, #f5f8f5 100%);
    }
    .section-head {
      display: flex; align-items: baseline; justify-content: space-between;
      gap: 16px; margin-bottom: 18px;
    }
    .section-head h2 {
      margin: 0;
      font-size: 18px; font-weight: 650;
    }
    .section-head .meta {
      color: var(--muted-2); font-size: 11px;
      font-family: var(--mono);
    }
    .catalog-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 24px;
    }
    .catalog-head h2 {
      margin: 0; font-size: 18px; font-weight: 650;
    }
    .search-box { position: relative; }
    .search-box input {
      width: 280px; height: 36px;
      padding: 6px 12px 6px 30px;
      border: 1px solid var(--line); background: var(--surface);
      font-size: 13px;
      border-radius: 999px;
      outline: 0;
      transition: border-color 140ms ease, box-shadow 140ms ease;
    }
    .search-box input:focus {
      border-color: var(--accent-deep);
      box-shadow: 0 0 0 3px rgb(112 194 112 / 16%);
    }
    .search-box svg {
      position: absolute; left: 11px; top: 50%;
      transform: translateY(-50%);
      color: var(--muted-2);
    }

    /* ---------- Product cards ---------- */
    .product-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: stretch;
      gap: 16px;
      margin-top: 0;
    }
    .product-card {
      position: relative;
      display: grid;
      grid-template-rows: auto 1fr auto;
      flex: 0 1 calc((100% - 48px) / 4);
      min-width: 0;
      gap: 14px;
      padding: 22px 20px 18px;
      border: 1px solid var(--line);
      background: var(--surface);
      border-radius: var(--radius-md);
      cursor: pointer;
      text-align: center;
      transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }
    .product-card:hover {
      border-color: var(--green-line);
      box-shadow: 0 12px 32px -18px rgb(63 150 80 / 24%);
      transform: translateY(-3px);
    }
    .product-card .visual {
      width: 64px; height: 64px;
      justify-self: center;
      display: grid; place-items: center;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      color: var(--accent);
      font-family: var(--mono); font-size: 18px; font-weight: 700;
      border-radius: 10px;
      overflow: hidden;
    }
    .product-card .visual img {
      width: 100%; height: 100%; object-fit: contain;
      border-radius: inherit;
    }
    .product-card .meta-row {
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px;
      width: 100%;
    }
    .product-card h3 {
      margin: 0; font-size: 15px; font-weight: 600;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .product-card .desc {
      margin: 4px 0 0;
      color: var(--muted); font-size: 12px;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 54px;
    }
    .product-card .meta {
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }
    .product-card .meta .ver {
      color: var(--accent);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 500;
    }
    .product-card .meta .ver strong { color: inherit; font-weight: inherit; }
    .product-card .actions-row {
      display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
      width: 100%;
    }
    .product-card .actions-row .card-link {
      color: var(--accent-deep);
      font-size: 12px;
      font-weight: 600;
    }
    .product-card:hover .actions-row .card-link { color: var(--primary-button-end); }
    .tag {
      display: inline-flex; align-items: center;
      min-height: 20px;
      font-size: 11px; font-weight: 600;
      padding: 2px 8px;
      border: 0;
      background: var(--surface);
      color: var(--ink-2);
      white-space: nowrap;
      border-radius: var(--radius-xs);
    }
    .tag.free { color: var(--tag-open-ink); background: var(--tag-open-bg); }
    .tag.self { color: var(--tag-self-ink); background: var(--tag-self-bg); }
    .tag.apply { color: var(--tag-apply-ink); background: var(--tag-apply-bg); }
    .tag.paid { color: var(--tag-paid-ink); background: var(--tag-paid-bg); }
    .tag.custom { color: var(--tag-custom-ink); background: var(--tag-custom-bg); }

    .empty {
      grid-column: 1 / -1;
      padding: 48px 12px;
      text-align: center;
      color: var(--muted);
      font-size: 13px;
    }
    .empty p { margin: 0 0 12px; }

    /* ---------- Footer bar ---------- */
    .site-footer {
      flex: 0 0 auto;
      background: var(--surface);
    }
    .footer-bar {
      display: flex; justify-content: space-between; align-items: center;
      border-top: 1px solid var(--line);
      padding: 14px 0 20px;
      color: var(--muted-2); font-size: 11px;
    }

    /* ---------- Dialogs ---------- */
    dialog {
      width: min(1040px, calc(100% - 32px));
      max-height: min(88vh, 760px);
      border: 1px solid var(--line);
      background: var(--surface);
      padding: 0; color: var(--ink);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: 0 24px 64px rgb(24 48 29 / 18%);
    }
    dialog::backdrop {
      background: rgb(24 48 29 / 36%);
      backdrop-filter: blur(4px);
    }
    .task-dialog { width: min(680px, calc(100% - 32px)); }
    .dialog-shell {
      max-height: min(88vh, 760px); overflow-y: auto;
      border-radius: inherit;
    }
    .dialog-close {
      position: absolute; top: 12px; right: 12px; z-index: 5;
    }
    .sheet {
      display: grid;
      grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.65fr);
    }
    .detail-info {
      min-width: 0;
      padding: 28px;
      border-right: 1px solid var(--line);
      background: #fbfcfb;
    }
    .detail-identity {
      display: grid;
      grid-template-columns: 68px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      padding-right: 4px;
    }
    .detail-identity .visual {
      width: 68px; height: 68px;
      display: grid; place-items: center;
      border: 1px solid var(--line);
      background: var(--bg); color: var(--accent);
      font-family: var(--mono); font-size: 16px; font-weight: 700;
      border-radius: 10px;
      overflow: hidden;
    }
    .detail-identity .visual img {
      width: 100%; height: 100%; object-fit: contain;
      border-radius: inherit;
    }
    .sheet-copy { min-width: 0; }
    .sheet-title-row {
      display: grid;
      gap: 7px;
      justify-items: start;
    }
    .detail-identity h2 {
      min-width: 0;
      margin: 0;
      font-size: 19px; font-weight: 650;
      line-height: 1.28;
      overflow-wrap: anywhere;
    }
    .detail-description {
      margin: 18px 0 0;
      color: var(--muted); font-size: 13px; line-height: 1.75;
    }
    .detail-facts {
      display: grid;
      margin: 20px 0 0;
      padding: 4px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .detail-facts > div {
      display: grid;
      grid-template-columns: 82px minmax(0, 1fr);
      gap: 12px;
      min-width: 0;
      padding: 9px 0;
    }
    .detail-facts dt {
      margin: 0;
      color: var(--muted-2); font-size: 12px;
    }
    .detail-facts dd {
      margin: 0;
      color: var(--ink); font-size: 13px; font-weight: 600;
      text-align: right;
      overflow-wrap: anywhere;
    }
    .detail-facts dd.mono { font-family: var(--mono); font-size: 11px; }
    .detail-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 18px;
    }
    .detail-actions .btn { width: 100%; justify-content: center; }

    .detail-releases {
      min-width: 0;
      padding: 26px 28px 30px;
    }
    .detail-releases .section-head {
      align-items: center;
      margin-bottom: 8px;
      padding: 0 40px 14px 0;
      border-bottom: 1px solid var(--line);
    }
    .release-list { position: relative; }
    .release-list::before {
      position: absolute;
      top: 24px; bottom: 24px; left: 4px;
      width: 1px;
      background: var(--line);
      content: '';
    }
    .release-item {
      border-bottom: 1px solid var(--line);
    }
    .release-item summary {
      display: grid;
      grid-template-columns: 10px minmax(0, 1fr) auto auto 12px;
      gap: 12px;
      align-items: center;
      padding: 14px 0;
      cursor: pointer;
      list-style: none;
    }
    .release-item summary::-webkit-details-marker { display: none; }
    .release-item summary:focus-visible {
      outline: 2px solid var(--accent-deep);
      outline-offset: 4px;
      border-radius: var(--radius-sm);
    }
    .release-marker {
      position: relative; z-index: 1;
      width: 9px; height: 9px;
      background: var(--surface);
      border: 1px solid var(--line-strong);
      border-radius: 50%;
    }
    .release-item.latest .release-marker {
      background: var(--accent-deep);
      border-color: var(--accent-deep);
      box-shadow: 0 0 0 3px var(--accent-soft);
    }
    .release-version-line {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: 8px;
    }
    .release-version {
      font-family: var(--mono); font-size: 13px; font-weight: 700;
    }
    .release-latest {
      padding: 2px 6px;
      border: 1px solid #b8deb9;
      border-radius: var(--radius-sm);
      background: var(--accent-soft);
      color: var(--accent-deep);
      font-size: 10px; font-weight: 600;
    }
    .release-date, .release-count {
      color: var(--muted-2); font-size: 11px;
    }
    .release-date { font-family: var(--mono); }
    .release-chevron {
      width: 7px; height: 7px;
      border-right: 1.5px solid var(--muted-2);
      border-bottom: 1.5px solid var(--muted-2);
      transform: rotate(-45deg);
      transition: transform 140ms ease;
    }
    .release-item[open] .release-chevron { transform: rotate(45deg); }
    .release-body { padding: 0 0 17px 22px; }
    .release-changes {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .release-changes li {
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr);
      gap: 9px;
      align-items: start;
      color: var(--muted); font-size: 12px; line-height: 1.65;
    }
    .release-change-type {
      margin-top: 1px;
      padding: 1px 5px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--bg);
      color: var(--muted);
      font-size: 10px; line-height: 1.45; text-align: center;
    }
    .release-change-type.added { border-color: #b8deb9; background: #f0f8f0; color: #28713c; }
    .release-change-type.optimized { border-color: #c9d8e8; background: #f3f7fb; color: #3d6485; }
    .release-change-type.fixed { border-color: #e8cf9c; background: #fff8e8; color: #8a5a18; }
    .release-change-type.other { border-color: #d7dcd8; background: #f5f6f5; color: #626963; }
    .release-change-type.removed { border-color: #e8bcbc; background: #fff2f2; color: #972f2f; }
    .release-list > .empty {
      position: relative;
      padding: 42px 12px;
      background: var(--surface);
    }

    #product-dialog .release-list {
      max-height: min(62vh, 560px);
      padding-right: 8px;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-color: #b7c2b8 transparent;
      scrollbar-width: thin;
    }
    #product-dialog .release-list::-webkit-scrollbar {
      width: 5px;
    }
    #product-dialog .release-list::-webkit-scrollbar-track {
      background: transparent;
    }
    #product-dialog .release-list::-webkit-scrollbar-thumb {
      background: #b7c2b8;
      border-radius: 999px;
    }
    #product-dialog .release-list::-webkit-scrollbar-thumb:hover {
      background: #99a79b;
    }

    .task-head {
      padding: 16px 52px 12px 28px;
      border-bottom: 1px solid var(--line);
    }
    .task-head h2 { margin: 0; font-size: 18px; font-weight: 650; }
    .task-head p {
      margin: 4px 0 0;
      color: var(--muted); font-size: 12px; line-height: 1.5;
    }
    .form { padding: 18px 28px 24px; }
    .form-grid {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
    }
    .field { min-width: 0; }
    .field.full { grid-column: 1 / -1; }
    .field label {
      display: block; margin-bottom: 4px;
      color: var(--ink-2); font-size: 12px; font-weight: 600;
    }
    .input, .textarea {
      display: block; width: 100%; min-height: 36px;
      border: 1px solid var(--line); background: var(--surface);
      padding: 6px 10px; font-size: 13px;
      border-radius: var(--radius-md);
      outline: 0;
      transition: border-color 140ms ease, box-shadow 140ms ease;
    }
    .textarea { min-height: 84px; resize: vertical; }
    .input:focus, .textarea:focus {
      border-color: var(--accent-deep);
      box-shadow: 0 0 0 3px rgb(112 194 112 / 16%);
    }
    .custom-select { position: relative; }
    .custom-select-trigger {
      display: grid; grid-template-columns: minmax(0, 1fr) auto;
      align-items: center; gap: 12px;
      width: 100%; min-height: 38px;
      padding: 7px 10px;
      border: 1px solid var(--line); background: var(--surface);
      color: var(--ink); text-align: left; cursor: pointer;
      border-radius: var(--radius-md);
      transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
    }
    .custom-select-trigger:hover { border-color: var(--accent-deep); }
    .custom-select.open .custom-select-trigger {
      border-color: var(--accent-deep);
      box-shadow: 0 0 0 3px rgb(112 194 112 / 16%);
    }
    .custom-select-trigger:focus-visible {
      border-color: var(--accent-deep);
      box-shadow: 0 0 0 3px rgb(112 194 112 / 16%);
      outline: 0;
    }
    .custom-select.is-invalid .custom-select-trigger {
      border-color: var(--danger);
      box-shadow: 0 0 0 3px rgb(138 47 47 / 10%);
    }
    .custom-select-value {
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      font-size: 13px;
    }
    .custom-select-arrow {
      width: 8px; height: 8px;
      border-right: 1.5px solid var(--muted);
      border-bottom: 1.5px solid var(--muted);
      transform: rotate(45deg) translateY(-2px);
      transition: transform 140ms ease;
    }
    .custom-select.open .custom-select-arrow { transform: rotate(225deg) translate(-2px, -2px); }
    .custom-select-menu {
      position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
      display: grid; gap: 2px;
      max-height: 240px; overflow-y: auto;
      margin: 0; padding: 5px;
      border: 1px solid var(--line-strong); background: var(--surface);
      border-radius: var(--radius-md);
      box-shadow: 0 14px 32px rgb(32 55 37 / 12%);
    }
    .custom-select-menu[hidden] { display: none; }
    .custom-select-option {
      display: grid; grid-template-columns: minmax(0, 1fr) auto;
      align-items: center; gap: 12px;
      width: 100%; min-height: 38px;
      padding: 7px 9px;
      color: var(--ink-2); text-align: left; cursor: pointer;
      border-radius: var(--radius-sm);
    }
    .custom-select-option:hover,
    .custom-select-option.is-active { background: var(--surface-soft); color: var(--ink); }
    .custom-select-option.is-selected { color: var(--accent-ink); font-weight: 600; }
    .custom-select-option .tag { justify-self: end; }
    .custom-select-option-name {
      min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .custom-select-trigger:disabled { color: var(--muted-2); background: var(--bg); cursor: not-allowed; }
    .field-error {
      margin: 6px 0 0;
      color: var(--danger);
      font-size: 11px;
    }
    .field-error[hidden] { display: none; }
    .form-section + .form-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
    .form-section h3 {
      margin: 0 0 12px; font-size: 11px;
      text-transform: uppercase; letter-spacing: 0;
      color: var(--muted-2); font-weight: 600;
    }
    .verify-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .verify-row--submit { grid-template-columns: minmax(0, 1fr) auto; }
    .verify-row .btn { min-width: 92px; }
    .hint, .status { min-height: 18px; margin: 6px 0 0; color: var(--muted-2); font-size: 11px; }
    .status.ok { color: var(--ok); }
    .status.err { color: var(--danger); }
    .form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

    .result {
      margin-top: 20px; border: 1px solid var(--line);
      background: var(--surface-soft);
      padding: 16px 18px;
      border-radius: var(--radius-md);
    }
    .result:focus { outline: 0; }
    .result[hidden] { display: none; }
    .result h3 {
      margin: 0 0 6px; font-size: 11px;
      text-transform: uppercase; letter-spacing: 0;
      color: var(--ok);
    }
    .result .title { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
    .result .row {
      display: grid; grid-template-columns: 120px minmax(0, 1fr);
      gap: 14px; padding: 6px 0;
      border-top: 1px solid var(--line);
      font-size: 12px;
    }
    .result .row span:first-child { color: var(--muted); }
    .result .row span:last-child { font-family: var(--mono); overflow-wrap: anywhere; }
    .result .credential {
      margin-top: 12px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }
    .result .credential > strong { display: block; margin-bottom: 7px; font-size: 12px; }
    .credential-control {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: stretch;
      overflow: hidden;
      border: 1px solid var(--line-strong);
      background: var(--surface);
      border-radius: var(--radius-md);
    }
    .credential-control code {
      display: flex; align-items: center;
      min-width: 0; padding: 9px 11px;
      font-family: var(--mono); font-size: 12px;
      overflow-wrap: anywhere;
    }
    .credential-control .btn {
      min-height: 38px;
      border: 0;
      border-left: 1px solid var(--line-strong);
      border-radius: 0;
    }
    .credential-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
    .result-actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }
    .form.is-complete .form-section, .form.is-complete .form-actions { display: none; }
    .form.is-complete { padding-top: 12px; }
    .form.is-complete .result { margin-top: 0; }

    .toast {
      position: fixed; z-index: 100; right: 20px; bottom: 20px;
      max-width: min(360px, calc(100% - 32px));
      background: var(--ink); color: #fff;
      padding: 10px 14px; font-size: 13px;
      border-radius: var(--radius-md);
      opacity: 0; pointer-events: none;
      transform: translateY(8px);
      transition: opacity 160ms ease, transform 160ms ease;
    }
    .toast.visible { opacity: 1; transform: translateY(0); }
    .dialog-toast {
      position: absolute;
      z-index: 1000;
      top: 68px;
      right: 16px;
      bottom: auto;
      left: auto;
      display: block;
      width: fit-content;
      max-width: calc(100% - 32px);
      margin: 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px);
    }
    .dialog-toast.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* ---------- Responsive ---------- */
    @media (max-width: 1024px) {
      .product-card { flex-basis: calc((100% - 32px) / 3); }
    }
    @media (max-width: 820px) {
      .product-card { flex-basis: calc((100% - 16px) / 2); }
      .sheet { grid-template-columns: minmax(0, 1fr); }
      .detail-info {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }
    }
    @media (max-width: 720px) {
      .topbar-inner { gap: 12px; min-height: 50px; }
      .topbar-nav { display: none; }
      .container { width: calc(100% - 24px); }
      .hero-inner { padding: 64px 0 48px; }
      .hero-watermark { font-size: 110px; }
      .catalog { padding-bottom: 32px; }
      .product-card { flex-basis: min(88vw, 520px); max-width: 520px; }
      .catalog-head { align-items: stretch; flex-direction: column; gap: 14px; }
      .search-box, .search-box input { width: 100%; }
      .footer-bar { flex-direction: column; gap: 5px; align-items: flex-start; }
      .portal-version { display: none; }
      dialog, .task-dialog { width: calc(100% - 16px); max-height: 94vh; }
      .dialog-shell { max-height: 94vh; }
      .form { padding-left: 18px; padding-right: 18px; }
      .task-head { padding: 16px 52px 12px 18px; }
      .form.is-complete { padding: 12px 18px 20px; }
      .detail-info { padding: 22px 18px 20px; }
      .detail-identity { grid-template-columns: 58px minmax(0, 1fr); padding-right: 38px; }
      .detail-identity .visual { width: 58px; height: 58px; }
      .detail-description { margin-top: 14px; }
      .detail-facts { margin-top: 16px; }
      .detail-facts > div { grid-template-columns: 78px minmax(0, 1fr); }
      .detail-releases { padding: 20px 18px 24px; }
      .detail-releases .section-head { padding-right: 0; }
      #product-dialog .release-list { max-height: 52vh; }
      .release-item summary {
        grid-template-columns: 10px minmax(0, 1fr) auto 12px;
        row-gap: 3px;
      }
      .release-marker { grid-row: 1 / span 2; }
      .release-date { grid-column: 2; grid-row: 2; }
      .release-count { grid-column: 3; grid-row: 1 / span 2; }
      .release-chevron { grid-column: 4; grid-row: 1 / span 2; }
      .form-grid { grid-template-columns: minmax(0, 1fr); }
      .verify-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .verify-row .input { grid-column: 1 / -1; }
      .verify-row .btn { min-width: 0; width: 100%; }
      .verify-row--submit .btn { grid-column: 1 / -1; }
      .result .row { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
      .result-actions .btn { width: 100%; }
    }
    @media (max-width: 460px) {
      .brand { gap: 7px; }
      .brand-mark { width: 26px; height: 26px; }
      .topbar-right { gap: 4px; }
      .topbar-right .btn { min-height: 32px; padding: 5px 8px; font-size: 12px; }
      .hero-inner { padding: 56px 0 42px; }
      .hero-meta { gap: 8px 14px; }
      .hero-meta-divider { display: none; }
      .form-actions .btn { flex: 1; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: 0.01ms !important; }
    }
