* { box-sizing: border-box; }
    body { font-family: 'Segoe UI', system-ui, sans-serif; max-width: 920px; margin: 0 auto; padding: 6.5rem 1rem 2.5rem; background: #0f0f12; color: #e4e4e7; }
    h1 { font-size: 1.35rem; font-weight: 600; margin: 0 0 0.35rem 0; }
    .top-brand {
      position: fixed;
      top: 0;
      left: 1rem;
      z-index: 100000;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      margin: 0;
      padding: 0;
      pointer-events: none;
      transition: transform 0.22s ease, opacity 0.22s ease;
    }
    .top-brand.brand-hidden {
      transform: translateY(-140%);
      opacity: 0;
    }
    .brand-big {
      max-width: 100%;
      max-height: 96px;
      object-fit: contain;
      opacity: 0.98;
    }
    .context-icon {
      width: 26px;
      height: 26px;
      object-fit: contain;
      opacity: 0.92;
    }
    .corner-small {
      position: fixed;
      top: 1rem;
      left: 1rem;
      z-index: 100001;
      width: 34px;
      height: 34px;
      object-fit: contain;
      opacity: 0.92;
      pointer-events: none;
    }
    .slot-icon {
      width: 22px;
      height: 22px;
      object-fit: contain;
      opacity: 0.92;
      margin-right: 0.35rem;
      vertical-align: middle;
    }
    .sub { color: #71717a; font-size: 0.9rem; margin-bottom: 1.1rem; line-height: 1.45; }
    .wizard-panel { margin-bottom: 1.5rem; }
    .step-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #71717a; margin-bottom: 0.6rem; }
    .choice-grid { display: grid; gap: 1.35rem; }
    .choice-grid.two { grid-template-columns: repeat(2, 1fr); }
    .choice-grid.three { grid-template-columns: repeat(3, 1fr); }
    @media (max-width: 720px) {
      .choice-grid.two, .choice-grid.three { grid-template-columns: 1fr; }
      .corner-small { top: 0.85rem; left: 0.85rem; width: 28px; height: 28px; }
      .top-brand { top: 0; left: 0.85rem; }
      .brand-big { max-height: 82px; }
    }
    .choice-btn {
      display: block; width: 100%; text-align: left;
      padding: 1.7rem 1.85rem; min-height: 118px;
      background: #18181b; border: 1px solid #27272a; border-radius: 12px; color: #fafafa;
      font-size: 1.22rem; font-weight: 720;
      cursor: pointer; transition: border-color 0.15s, background 0.15s;
    }
    .choice-btn:hover { border-color: #3b82f6; background: #1c1c21; }
    .choice-btn .en-label { display: block; font-weight: 550; font-size: 0.95rem; color: #93c5fd; margin-top: 0.25rem; opacity: 0.95; }
    .choice-btn .hint { display: block; font-weight: 450; font-size: 0.98rem; color: #a1a1aa; margin-top: 0.45rem; line-height: 1.35; }
    .link-back {
      background: none; border: none; color: #93c5fd; cursor: pointer; font-size: 0.9rem; padding: 0; margin-bottom: 0.85rem;
    }
    .link-back:hover { text-decoration: underline; }
    .context-bar {
      display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
      padding: 0.55rem 0.85rem; background: #18181b; border: 1px solid #27272a; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem;
    }
    .context-bar .tag { color: #a1a1aa; }
    .context-bar .val { color: #fafafa; font-weight: 600; }
    .muted { color: #71717a; font-size: 0.85rem; }
    .row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
    .title { font-weight: 650; color: #fafafa; font-size: 0.95rem; }
    .pill { font-size: 0.72rem; padding: 0.15rem 0.45rem; border-radius: 999px; border: 1px solid #3f3f46; color: #a1a1aa; white-space: nowrap; }
    .pill.ok { border-color: #14532d; color: #86efac; background: rgba(34,197,94,0.08); }
    .pill.err { border-color: #7f1d1d; color: #fca5a5; background: rgba(239,68,68,0.08); }
    .pill.run { border-color: #1d4ed8; color: #93c5fd; background: rgba(59,130,246,0.10); }
    .grid-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
    @media (max-width: 780px) { .grid-slots { grid-template-columns: 1fr; } }
    .card {
      background: #18181b; border: 1px solid #27272a; border-radius: 14px; padding: 0.85rem;
      display: flex; flex-direction: column; gap: 0.55rem;
    }
    .dropzone {
      border: 2px dashed #3f3f46; border-radius: 12px; padding: 1.15rem 0.9rem; text-align: center; cursor: pointer;
      background: #111113; transition: border-color 0.15s, background 0.15s;
    }
    .dropzone:hover, .dropzone:focus { border-color: #52525b; background: #141416; outline: none; }
    .dropzone.dropzone-active { border-color: #3b82f6; background: rgba(59,130,246,0.08); }
    .dropzone .dz-main { font-size: 0.9rem; color: #e4e4e7; margin: 0 0 0.25rem 0; }
    .dropzone .dz-sub { font-size: 0.8rem; color: #71717a; margin: 0; }
    input.slot-file { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
    .slot-summary {
      font-size: 0.82rem; color: #a1a1aa; line-height: 1.4; padding: 0.5rem 0.55rem; background: #0b0b0d; border-radius: 8px; border: 1px solid #27272a;
      max-height: 5.5rem; overflow: auto;
    }
    .slot-summary strong { color: #d4d4d8; }
    .slot-foot { font-size: 0.78rem; color: #71717a; }
    .btn { background: #3b82f6; color: #fff; border: none; padding: 0.45rem 0.75rem; border-radius: 8px; cursor: pointer; font-weight: 550; font-size: 0.85rem; }
    .btn:hover { background: #2563eb; }
    .btn:disabled { opacity: 0.55; cursor: not-allowed; }
    .btn-ghost { background: transparent; border: 1px solid #3f3f46; color: #e4e4e7; }
    .btn-ghost:hover { background: #27272a; }
    #status { margin-top: 0.85rem; font-size: 0.9rem; }
    .out { margin-top: 1.1rem; padding: 1rem 1.05rem; background: #18181b; border: 1px solid #27272a; border-radius: 14px; }
    .out h2 { margin: 0 0 1px 0; font-size: 1rem; color: #fafafa; font-weight: 600; }
    .out .section-h { margin: 1rem 0 0.5rem 0; font-size: 0.92rem; color: #d4d4d8; font-weight: 600; }
    .out .section-h:first-of-type { margin-top: 0; }
    ul.out-plain { margin: 0; padding-left: 1.1rem; color: #d4d4d8; font-size: 0.88rem; line-height: 1.5; }
    ul.out-plain li { margin: 0.35rem 0; }
    .plain-sub { color: #a1a1aa; font-size: 0.82rem; margin-top: 0.2rem; white-space: pre-wrap; word-break: break-word; }
    .value-group { margin-top: 0.75rem; }
    .value-box { margin-top: 0.45rem; border: 1px solid #27272a; background: #0b0b0d; border-radius: 12px; padding: 0.8rem; }
    .kv-row { display:flex; align-items:flex-start; justify-content:space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(63,63,70,0.6); }
    .kv-row:last-child { border-bottom: none; }
    .kv-key { color: #71717a; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
    .kv-val { color: #e4e4e7; font-size: 0.9rem; font-weight: 600; text-align: right; word-break: break-word; }
    .muted-val { color: #71717a; font-weight: 550; }
    .file-summary-grid { display:flex; flex-direction:column; gap: 0.75rem; }
    .file-summary-card { border: 1px solid #27272a; background: #0b0b0d; border-radius: 14px; padding: 0.85rem; }
    .file-summary-title { display:flex; align-items:flex-start; justify-content:space-between; gap: 0.85rem; }
    .file-summary-box { margin-top: 0.45rem; }
    .file-summary-body { font-size: 0.88rem; line-height: 1.5; color: #d4d4d8; }
    .file-summary-body .file-summary-p { margin: 0 0 0.65rem 0; }
    .file-summary-body .file-summary-p:last-child { margin-bottom: 0; }
    .file-summary-body ul.file-summary-ul { margin: 0 0 0.65rem 0; padding-left: 1.15rem; color: #a1a1aa; list-style: disc; }
    .file-summary-body ul.file-summary-ul:last-child { margin-bottom: 0; }
    .file-summary-body li { margin: 0.2rem 0; }
    dl.plain-dl { margin: 0; font-size: 0.86rem; }
    dl.plain-dl dt { color: #71717a; margin-top: 0.45rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
    dl.plain-dl dt:first-child { margin-top: 0; }
    dl.plain-dl dd { margin: 0.15rem 0 0 0; color: #e4e4e7; }
    .warn-box { margin-top: 0.65rem; padding: 0.6rem 0.8rem; border-radius: 10px; border: 1px solid #854d0e; background: rgba(234,179,8,0.08); color: #fde68a; font-size: 0.84rem; }
    .warn-box strong { color: #fef08a; }
    details.more-json { margin-top: 0.65rem; font-size: 0.8rem; color: #71717a; }
    details.more-json summary { cursor: pointer; color: #93c5fd; }
    pre.json-snippet { margin: 0.4rem 0 0 0; padding: 0.5rem; background: #0b0b0d; border-radius: 8px; overflow: auto; max-height: 200px; font-size: 0.72rem; color: #a1a1aa; }
    #mainApp { display: none; }
    #finalizeModal {
      position: fixed; inset: 0; background: rgba(3, 7, 18, 0.72); z-index: 99998;
      display: none; align-items: center; justify-content: center; padding: 1rem;
    }
    #finalizeModal .box {
      width: min(560px, 92vw); background: #111113; border: 1px solid #27272a; border-radius: 14px;
      box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45); padding: 1rem 1.1rem;
    }
    #finalizeModal .title { font-size: 1rem; color: #fafafa; font-weight: 650; margin-bottom: 0.4rem; }
    #finalizeModal .desc { color: #d4d4d8; font-size: 0.9rem; line-height: 1.5; }
    #finalizeModal .row { margin-top: 0.85rem; display:flex; align-items:center; gap:0.55rem; }
    #finalizeModal .dot {
      width: 9px; height: 9px; border-radius: 999px; background: #60a5fa;
      box-shadow: 0 0 0 0 rgba(96,165,250,0.6); animation: pulse 1.2s infinite;
    }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(96,165,250,0.5); }
      70% { box-shadow: 0 0 0 12px rgba(96,165,250,0); }
      100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); }
    }
