
/* Gemini homepage original CSS, preserved for publishing */

    /* ==========================================================================
       2026 K-AI Platform Design System (Crisp Light Default + Dark Toggle)
       ========================================================================== */
    :root {
      --bg-page: #ffffff;
      --bg-subtle: #f8fafc;
      --bg-card: #ffffff;
      --bg-pill: #f1f5f9;
      --bg-code: #f8fafc;
      --border-light: #e2e8f0;
      --border-strong: #cbd5e1;
      --text-main: #0f172a;
      --text-sub: #475569;
      --text-muted: #94a3b8;
      --brand-primary: #2563eb;
      --brand-accent: #7c3aed;
      --brand-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
      --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
      --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
      --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
      --font-sans: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
      --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
      --container: 1180px;
    }

    [data-theme="dark"] {
      --bg-page: #090b10;
      --bg-subtle: #111520;
      --bg-card: #141926;
      --bg-pill: #1e2536;
      --bg-code: #0d1018;
      --border-light: rgba(255, 255, 255, 0.09);
      --border-strong: rgba(255, 255, 255, 0.18);
      --text-main: #f8fafc;
      --text-sub: #94a3b8;
      --text-muted: #64748b;
      --brand-primary: #3b82f6;
      --brand-accent: #8b5cf6;
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
      --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
      --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background-color: var(--bg-page);
      color: var(--text-main);
      font-family: var(--font-sans);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      word-break: keep-all;
      transition: background-color 0.25s ease, color 0.25s ease;
    }

    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; color: inherit; }
    button { cursor: pointer; border: none; background: none; }
    h1, h2, h3, h4, p { margin: 0; }

    .container {
      width: min(calc(100% - 40px), var(--container));
      margin-inline: auto;
    }
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }

    /* ================= Top Announcement Strip ================= */
    .top-strip {
      background: var(--bg-subtle);
      border-bottom: 1px solid var(--border-light);
      padding: 9px 16px;
      text-align: center;
      font-size: 12.5px;
      font-weight: 500;
      color: var(--text-sub);
    }
    .top-strip strong {
      color: var(--brand-primary);
      font-weight: 700;
      margin-right: 6px;
    }

    /* ================= Sticky Clean Header ================= */
    .header {
      position: sticky;
      top: 0;
      z-index: 90;
      height: 70px;
      background: color-mix(in srgb, var(--bg-page) 85%, transparent);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-light);
    }
    .header-inner {
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.04em;
    }
    .logo-mark {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: var(--brand-gradient);
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 14px;
      font-weight: 800;
    }
    .logo-mark span { font-size: 10px; opacity: 0.9; }
    .logo em {
      font-style: normal;
      color: var(--brand-primary);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 32px;
      font-size: 15px;
      font-weight: 600;
      color: var(--text-sub);
    }
    .nav a:hover { color: var(--text-main); }

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

    .icon-btn {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      border: 1px solid var(--border-light);
      background: var(--bg-card);
      display: grid;
      place-items: center;
      font-size: 15px;
      color: var(--text-sub);
      transition: 0.2s;
    }
    .icon-btn:hover {
      border-color: var(--border-strong);
      color: var(--text-main);
    }

    .lang-box { position: relative; }
    .lang-box summary {
      list-style: none;
      height: 38px;
      padding-inline: 12px;
      border-radius: 10px;
      border: 1px solid var(--border-light);
      background: var(--bg-card);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-sub);
      cursor: pointer;
    }
    .lang-box summary::-webkit-details-marker { display: none; }
    .lang-dropdown {
      position: absolute;
      right: 0; top: calc(100% + 8px);
      width: 120px;
      padding: 6px;
      border-radius: 12px;
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-md);
    }
    .lang-dropdown a {
      display: block;
      padding: 8px 10px;
      border-radius: 8px;
      font-size: 13px;
      color: var(--text-sub);
    }
    .lang-dropdown a[aria-current="true"], .lang-dropdown a:hover {
      background: var(--bg-pill);
      color: var(--text-main);
      font-weight: 700;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-weight: 700;
      border-radius: 12px;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .btn-sm { height: 38px; padding-inline: 16px; font-size: 13.5px; }
    .btn-md { height: 48px; padding-inline: 22px; font-size: 15px; }

    .btn-ghost {
      color: var(--text-sub);
      padding-inline: 12px;
    }
    .btn-ghost:hover { color: var(--text-main); }

    .btn-primary {
      background: var(--text-main);
      color: var(--bg-page);
    }
    .btn-primary:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .btn-brand {
      background: var(--brand-gradient);
      color: #fff;
      box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    }
    .btn-brand:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
    }

    .mobile-nav { display: none; }

    /* ================= Centered K-AI Portal Hero ================= */
    .hero {
      padding: 76px 0 64px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute;
      top: -120px; left: 50%;
      transform: translateX(-50%);
      width: 900px; height: 420px;
      background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.06) 45%, transparent 75%);
      pointer-events: none;
      z-index: -1;
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 999px;
      background: var(--bg-pill);
      border: 1px solid var(--border-light);
      font-size: 12.5px;
      font-weight: 700;
      color: var(--brand-primary);
      margin-bottom: 24px;
    }
    .hero-pill-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: #10b981;
    }

    .hero h1 {
      font-size: clamp(36px, 5vw, 60px);
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -0.04em;
      max-width: 780px;
      margin-inline: auto;
    }
    .hero h1 span {
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-lead {
      margin: 20px auto 0;
      max-width: 580px;
      font-size: 17.5px;
      color: var(--text-sub);
      line-height: 1.65;
    }

    /* Big Portal Search Input */
    .portal-search {
      margin: 36px auto 0;
      max-width: 660px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 8px 8px 22px;
      border-radius: 20px;
      background: var(--bg-card);
      border: 1.5px solid var(--border-strong);
      box-shadow: var(--shadow-lg);
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .portal-search:focus-within {
      border-color: var(--brand-primary);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), var(--shadow-lg);
    }
    .portal-search svg { color: var(--text-muted); flex-shrink: 0; }
    .portal-search input {
      flex: 1;
      min-width: 0;
      border: none;
      outline: none;
      background: transparent;
      font-size: 16px;
      font-weight: 500;
      color: var(--text-main);
    }
    .portal-search input::placeholder { color: var(--text-muted); }
    .portal-search button {
      height: 48px;
      padding-inline: 24px;
      border-radius: 14px;
      background: var(--brand-gradient);
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      transition: 0.2s;
    }
    .portal-search button:hover { opacity: 0.92; }

    /* Trending Keyword Chips */
    .trending-bar {
      margin-top: 18px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-muted);
    }
    .trend-chip {
      padding: 6px 14px;
      border-radius: 999px;
      background: var(--bg-subtle);
      border: 1px solid var(--border-light);
      color: var(--text-sub);
      font-weight: 600;
      font-size: 13px;
      transition: 0.2s;
    }
    .trend-chip:hover {
      border-color: var(--brand-primary);
      color: var(--brand-primary);
      background: var(--bg-card);
    }

    /* ================= Prompt Feed Section ================= */
    .feed-section {
      padding: 48px 0 96px;
      scroll-margin-top: 80px;
    }

    .feed-header {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border-light);
      margin-bottom: 28px;
    }

    .category-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .mh-filter__button {
      height: 40px;
      padding-inline: 18px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-sub);
      background: var(--bg-subtle);
      border: 1px solid transparent;
      transition: 0.2s;
    }
    .mh-filter__button:hover {
      color: var(--text-main);
      background: var(--bg-pill);
    }
    .mh-filter__button.is-active {
      background: var(--text-main);
      color: var(--bg-page);
    }

    .feed-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13.5px;
      color: var(--text-sub);
    }
    .feed-meta strong { color: var(--brand-primary); font-weight: 800; }
    .demo-tag {
      padding: 4px 10px;
      border-radius: 6px;
      background: rgba(245, 158, 11, 0.12);
      color: #d97706;
      font-size: 11.5px;
      font-weight: 700;
    }

    /* Prompt Grid */
    .prompt-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
    }

    .mh-card {
      border-radius: 22px;
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }
    .mh-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
      border-color: var(--brand-primary);
    }
    .mh-card[hidden], .mh-empty[hidden] { display: none !important; }

    /* Video Aspect Ratio Preview Box */
    .card-media {
      position: relative;
      aspect-ratio: 16 / 9;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 14px;
      overflow: hidden;
    }
    .media-camera { background: linear-gradient(135deg, #1e293b 0%, #312e81 100%); }
    .media-character { background: linear-gradient(135deg, #0f172a 0%, #155e75 100%); }
    .media-action { background: linear-gradient(135deg, #1e1b4b 0%, #581c87 100%); }

    .media-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 2;
    }
    .pill-sample {
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(8px);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
    }
    .pill-spec {
      padding: 3px 8px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 600;
    }

    .media-center {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      pointer-events: none;
    }
    .media-icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.14);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.25);
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 22px;
      transition: transform 0.25s ease;
    }
    .mh-card:hover .media-icon { transform: scale(1.1); }

    .media-bottom {
      z-index: 2;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11.5px;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
    }

    .card-content {
      padding: 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .card-tag-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .cat-label {
      font-size: 12px;
      font-weight: 800;
      color: var(--brand-primary);
    }
    .engine-label {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-muted);
    }

    .card-content h3 {
      font-size: 18.5px;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 8px;
    }
    .card-content p {
      font-size: 14px;
      color: var(--text-sub);
      line-height: 1.6;
      margin-bottom: 16px;
    }

    /* Interactive Copyable Prompt Box */
    .prompt-preview {
      margin-top: auto;
      padding: 12px;
      border-radius: 12px;
      background: var(--bg-code);
      border: 1px solid var(--border-light);
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-sub);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-actions {
      margin-top: 14px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .btn-card {
      height: 38px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      transition: 0.2s;
    }
    .btn-copy {
      background: var(--bg-pill);
      color: var(--text-main);
    }
    .btn-copy:hover {
      background: var(--brand-primary);
      color: #fff;
    }
    .btn-inspect {
      border: 1px solid var(--border-light);
      color: var(--text-sub);
    }
    .btn-inspect:hover {
      border-color: var(--text-main);
      color: var(--text-main);
    }

    .mh-empty {
      padding: 60px 20px;
      text-align: center;
      border-radius: 20px;
      background: var(--bg-subtle);
      border: 1px dashed var(--border-strong);
      color: var(--text-sub);
      font-size: 15px;
    }

    /* ================= Workflow & Value Section (Korean Clean Grid) ================= */
    .workflow-section {
      padding: 88px 0;
      background: var(--bg-subtle);
      border-top: 1px solid var(--border-light);
      border-bottom: 1px solid var(--border-light);
      scroll-margin-top: 80px;
    }
    .section-head {
      text-align: center;
      max-width: 600px;
      margin: 0 auto 48px;
    }
    .section-eyebrow {
      font-size: 13px;
      font-weight: 800;
      color: var(--brand-primary);
      letter-spacing: 0.06em;
      margin-bottom: 10px;
    }
    .section-head h2 {
      font-size: clamp(26px, 3.2vw, 36px);
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .workflow-cards {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
    }
    .wf-card {
      padding: 32px 28px;
      border-radius: 24px;
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-sm);
    }
    .wf-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: var(--bg-pill);
      color: var(--brand-primary);
      font-weight: 800;
      font-size: 16px;
      margin-bottom: 20px;
    }
    .wf-card h3 {
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 10px;
    }
    .wf-card p {
      font-size: 15px;
      color: var(--text-sub);
      line-height: 1.65;
    }

    /* ================= Coming Soon Callout ================= */
    .cta-section {
      padding: 80px 0;
    }
    .cta-box {
      padding: 48px 52px;
      border-radius: 28px;
      background: var(--brand-gradient);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
      box-shadow: 0 24px 50px rgba(37, 99, 235, 0.25);
    }
    .cta-tag {
      display: inline-block;
      padding: 5px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.18);
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 14px;
    }
    .cta-box h2 {
      font-size: clamp(24px, 2.8vw, 34px);
      font-weight: 800;
      line-height: 1.25;
      margin-bottom: 10px;
    }
    .cta-box p {
      font-size: 15px;
      opacity: 0.9;
      max-width: 620px;
    }
    .cta-white-btn {
      flex-shrink: 0;
      height: 52px;
      padding-inline: 26px;
      border-radius: 14px;
      background: #fff;
      color: #0f172a;
      font-size: 15px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: transform 0.2s;
    }
    .cta-white-btn:hover { transform: translateY(-2px); }

    /* ================= Footer ================= */
    .footer {
      padding: 48px 0 36px;
      border-top: 1px solid var(--border-light);
      color: var(--text-sub);
      font-size: 13.5px;
    }
    .footer-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 24px;
      padding-bottom: 32px;
    }
    .footer-copy {
      padding-top: 24px;
      border-top: 1px solid var(--border-light);
      display: flex;
      justify-content: space-between;
      gap: 16px;
      font-size: 12.5px;
      color: var(--text-muted);
    }

    /* ================= Prompt Structure Slide Modal & Toast ================= */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(6px);
      display: none;
      place-items: center;
      padding: 20px;
    }
    .modal-backdrop.is-open { display: grid; }
    .modal-panel {
      width: min(100%, 540px);
      border-radius: 24px;
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-lg);
      padding: 28px;
    }
    .modal-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    .modal-head h3 { font-size: 20px; font-weight: 800; }
    .modal-close {
      width: 34px; height: 34px; border-radius: 50%;
      background: var(--bg-pill);
      font-size: 16px;
    }
    .modal-code {
      padding: 16px;
      border-radius: 14px;
      background: var(--bg-code);
      border: 1px solid var(--border-light);
      font-family: var(--font-mono);
      font-size: 13px;
      line-height: 1.7;
      color: var(--text-main);
      margin-block: 16px;
    }
    .modal-note {
      font-size: 13px;
      color: var(--text-sub);
      margin-bottom: 20px;
    }

    .toast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      z-index: 300;
      padding: 12px 22px;
      border-radius: 999px;
      background: #0f172a;
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      box-shadow: 0 12px 30px rgba(0,0,0,0.3);
      opacity: 0;
      pointer-events: none;
      transition: all 0.25s ease;
    }
    .toast.is-show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ================= Responsive ================= */
    @media (max-width: 900px) {
      .prompt-grid, .workflow-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cta-box { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
    }
    @media (max-width: 768px) {
      .nav, .header-right .btn, .header-right .lang-box { display: none; }
      .mobile-nav { display: block; position: relative; }
      .mobile-nav summary {
        list-style: none;
        width: 38px; height: 38px;
        border-radius: 10px;
        border: 1px solid var(--border-light);
        display: grid; place-items: center;
        cursor: pointer;
      }
      .mobile-nav summary::-webkit-details-marker { display: none; }
      .mobile-sheet {
        position: absolute;
        right: 0; top: 48px;
        width: 220px;
        padding: 10px;
        border-radius: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
      }
      .mobile-sheet a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
      }
      .mobile-sheet a:hover { background: var(--bg-pill); }
    }
    @media (max-width: 600px) {
      .hero { padding: 48px 0 40px; }
      .portal-search { padding-left: 14px; border-radius: 16px; }
      .portal-search button { padding-inline: 16px; height: 42px; font-size: 14px; }
      .prompt-grid, .workflow-cards { grid-template-columns: 1fr; }
      .footer-row, .footer-copy { flex-direction: column; }
    }
  




/* MAXH3 FORM - COMMON HEADER / FOOTER / TOKENS. Edit once for all pages. */
:root{--bg-page:#fff;--bg-subtle:#f8fafc;--bg-card:#fff;--bg-pill:#f1f5f9;--bg-code:#f8fafc;--border-light:#e2e8f0;--border-strong:#cbd5e1;--text-main:#0f172a;--text-sub:#475569;--text-muted:#94a3b8;--brand-primary:#2563eb;--brand-accent:#7c3aed;--brand-gradient:linear-gradient(135deg,#2563eb 0%,#7c3aed 100%);--shadow-sm:0 2px 8px rgba(15,23,42,.04);--shadow-md:0 12px 32px rgba(15,23,42,.08);--shadow-lg:0 24px 60px rgba(15,23,42,.12);--container:1180px}
[data-theme="dark"]{--bg-page:#090b10;--bg-subtle:#111520;--bg-card:#141926;--bg-pill:#1e2536;--bg-code:#0d1018;--border-light:rgba(255,255,255,.09);--border-strong:rgba(255,255,255,.18);--text-main:#f8fafc;--text-sub:#94a3b8;--text-muted:#64748b;--brand-primary:#3b82f6;--brand-accent:#8b5cf6;--shadow-sm:0 2px 8px rgba(0,0,0,.3);--shadow-md:0 12px 32px rgba(0,0,0,.45);--shadow-lg:0 24px 60px rgba(0,0,0,.65)}
.top-strip{background:var(--bg-subtle);border-bottom:1px solid var(--border-light);padding:9px 16px;text-align:center;font-size:12.5px;font-weight:500;color:var(--text-sub)}
.top-strip strong{color:var(--brand-primary);margin-right:6px;font-weight:700}
.header{position:sticky;top:0;z-index:90;height:70px;background:color-mix(in srgb,var(--bg-page) 85%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--border-light)}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{display:inline-flex;align-items:center;gap:10px;font-size:20px;font-weight:800;letter-spacing:-.04em;white-space:nowrap}
.logo-mark{width:34px;height:34px;border-radius:10px;background:var(--brand-gradient);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:800;letter-spacing:-.04em}
.logo-mark small{font-size:10px}
.logo em{font-style:normal;color:var(--brand-primary)}
.nav{display:flex;align-items:center;gap:32px;font-size:15px;font-weight:600;color:var(--text-sub)}
.nav a{padding:0;box-shadow:none!important}.nav a:hover,.nav a.is-current{color:var(--brand-primary)}
.header-right{display:flex;align-items:center;gap:10px}
.icon-btn{width:38px;height:38px;border-radius:10px;border:1px solid var(--border-light);background:var(--bg-card);display:grid;place-items:center;font-size:15px;color:var(--text-sub);transition:.2s}
.icon-btn:hover{border-color:var(--border-strong);color:var(--text-main)}
.lang-box{position:relative}.lang-box summary{list-style:none;height:38px;padding-inline:12px;border-radius:10px;border:1px solid var(--border-light);background:var(--bg-card);display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--text-sub);cursor:pointer}
.lang-box summary::-webkit-details-marker,.mobile-nav summary::-webkit-details-marker{display:none}
.lang-dropdown{position:absolute;right:0;top:calc(100% + 8px);width:120px;padding:6px;border-radius:12px;background:var(--bg-card);border:1px solid var(--border-light);box-shadow:var(--shadow-md)}
.lang-dropdown button{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:8px;font-size:13px;color:var(--text-sub);border:0;background:none}
.lang-dropdown button:hover,.lang-dropdown button[aria-current="true"]{background:var(--bg-pill);color:var(--text-main);font-weight:700}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:700;border-radius:12px;transition:all .2s ease;white-space:nowrap;border:0}
.btn-sm{height:38px;padding-inline:16px;font-size:13.5px}.btn-md{height:48px;padding-inline:22px;font-size:15px}
.btn-ghost{color:var(--text-sub);padding-inline:12px;background:none}.btn-ghost:hover{color:var(--text-main)}
.btn-primary{background:var(--text-main);color:var(--bg-page)}.btn-primary:hover{opacity:.9;transform:translateY(-1px)}
.mobile-nav{display:none;position:relative}.mobile-nav summary{list-style:none;width:38px;height:38px;border-radius:10px;border:1px solid var(--border-light);display:grid;place-items:center;cursor:pointer}
.mobile-sheet{position:absolute;right:0;top:48px;width:220px;padding:10px;border-radius:16px;background:var(--bg-card);border:1px solid var(--border-light);box-shadow:var(--shadow-lg)}
.mobile-sheet a,.mobile-sheet button{display:block;width:100%;padding:10px 12px;text-align:left;border-radius:8px;font-size:14px;font-weight:600;background:none;border:0;color:var(--text-main);text-decoration:none}
.mobile-sheet a:hover,.mobile-sheet button:hover{background:var(--bg-pill)}
/* Same shared footer on both pages */
.footer{padding:48px 0 36px;border-top:1px solid var(--border-light);background:var(--bg-page);color:var(--text-sub);font-size:13.5px}
.footer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:32px}
.footer-brand p{margin-top:10px;font-size:13.5px}
.footer-links{display:flex;gap:25px;flex-wrap:wrap;font-size:14px;font-weight:600}
.footer-links a:hover{color:var(--brand-primary)}
.footer-bottom{padding-top:24px;border-top:1px solid var(--border-light);display:flex;justify-content:space-between;gap:16px;font-size:12.5px;color:var(--text-muted)}
/* Home footer id #about is the reference target */
@media(max-width:768px){.header .nav,.header-right>.btn,.header-right>.lang-box{display:none}.header .mobile-nav{display:block}}
@media(max-width:600px){.header{height:62px}.footer-top,.footer-bottom{flex-direction:column;align-items:flex-start}.footer-links{gap:15px}.top-strip{font-size:11px}.logo{font-size:19px}.footer{padding:36px 0 28px}}



/* === MAXH3 FORM / GNUBOARD5 INTEGRATION OVERRIDES === */
:root { --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif; }
body { font-family: var(--font-sans); }
button, input, select, textarea { font-family: inherit; }
.hero, .feed-section, .workflow-section, .cta-section { scroll-margin-top: 90px; }
.mh-card .card-content { display:flex; flex-direction:column; flex:1; }
.mh-card .card-content .card-actions { margin-top:auto; padding-top:15px; }
.mh-card .card-content .prompt-preview { margin-bottom:2px; }
.mh-card .card-actions .btn-copy {display:flex; align-items:center; justify-content:center; cursor:default; font-weight:800; font-size:12px;}
.mh-card .card-actions .btn-inspect { background:var(--brand-gradient); border-color:transparent; color:#fff; }
.mh-card .card-actions .btn-inspect:hover { filter:brightness(1.05); color:#fff; }
.mh-card .media-center { pointer-events:none; }
.mh-card .media-bottom {font-size:11px;}
/* Scoped integration banner: distinguishes demonstration content from actual database results */
.mh-demo-strip { color:var(--text-sub); font-size:12px; margin:0 0 18px; display:flex; align-items:center; gap:8px; }
.mh-demo-strip:before {content:'●';color:#10b981;font-size:9px}
.mh-modal-result {margin-bottom:18px}
.mh-modal-result h4 {font-size:12px;letter-spacing:.07em;margin-bottom:9px;color:var(--text-sub)}
.mh-video-frame {border-radius:13px; overflow:hidden; position:relative; aspect-ratio:16/9; background:linear-gradient(145deg,#0d1730,#182954 55%,#31204c);display:grid;place-items:center;color:white;border:1px solid rgba(150,165,200,.18)}
.mh-video-frame iframe {width:100%;height:100%;border:0;position:absolute;inset:0}
.mh-video-placeholder {display:flex;align-items:center;flex-direction:column;justify-content:center;gap:11px;text-align:center;padding:18px}
.mh-video-placeholder .play-circle {display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#e11d48;color:white;font-size:20px}
.mh-video-placeholder strong {font-size:13px}
.mh-video-placeholder small {font-size:11px;opacity:.7;line-height:1.5}
.mh-modal-note {color:var(--text-sub);font-size:13px;line-height:1.7}
.mh-modal-meta {display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}
.mh-modal-meta span {border:1px solid var(--border-light);background:var(--bg-subtle);border-radius:7px;padding:6px 9px;color:var(--text-sub);font-size:11px}
.mh-locked-preview {border:1px dashed var(--border-strong);border-radius:12px;background:var(--bg-code);padding:15px;margin-top:14px;color:var(--text-sub);font-size:12px;line-height:1.7}
.mh-locked-preview strong {display:block;color:var(--text-main);margin-bottom:4px;font-size:13px}
.modal-panel.mh-detail-modal {width:min(100%,720px);padding:0;max-height:92vh;overflow-y:auto}
.mh-detail-modal .modal-head {padding:20px 24px;border-bottom:1px solid var(--border-light);margin-bottom:0}
.mh-detail-modal .mh-modal-inner {padding:23px 24px 25px}
.mh-detail-modal .modal-close {display:grid;place-items:center;flex:none}
.mh-detail-modal .mh-modal-actions {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}
.mh-detail-modal .mh-modal-actions .btn {padding:0 22px;height:44px}
.mh-not-found {padding:100px 24px;text-align:center;min-height:60vh}
.mh-not-found h1 {font-size:33px;letter-spacing:-.04em;margin-bottom:12px}
.mh-not-found p {color:var(--text-sub);margin-bottom:24px}
.mh-not-found a {background:var(--brand-gradient);color:#fff;display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border-radius:11px;font-weight:750}
/* Improve keyboard focus and avoid overflowing long titles */
.mh-card h3, .mh-card p {overflow-wrap:anywhere}
.mh-card [data-inspect-btn]:focus-visible, .mh-filter__button:focus-visible, .btn:focus-visible {outline:3px solid #60a5fa;outline-offset:3px}
@media(max-width:600px){
  .mh-demo-strip{font-size:11px}
  .mh-detail-modal .mh-modal-inner{padding:18px}
  .mh-detail-modal .modal-head{padding:16px 18px}
  .mh-detail-modal .mh-modal-actions{flex-direction:column;align-items:stretch}
  .mh-detail-modal .mh-modal-actions .btn{width:100%}
}


/* === TEMPORARY LOGIN UI PREVIEW (query: ?preview_login=1 / 0) === */
[data-auth-view][hidden]{display:none !important}
.header-right>.auth-guest,.header-right>.auth-member{display:flex;align-items:center}
.member-menu{position:relative}
.member-summary{list-style:none;display:flex;align-items:center;gap:8px;height:40px;padding:4px 10px 4px 5px;border:1px solid var(--border-light);border-radius:11px;background:var(--bg-card);font-size:12px;font-weight:800;color:var(--text-main);cursor:pointer;white-space:nowrap}
.member-summary::-webkit-details-marker{display:none}
.member-summary:hover,.member-menu[open] .member-summary{border-color:var(--brand-primary)}
.member-avatar{width:29px;height:29px;display:grid;place-items:center;background:var(--brand-gradient);color:#fff;font-size:11px;font-weight:900;border-radius:9px;flex:none}
.member-name{max-width:115px;overflow:hidden;text-overflow:ellipsis}
.member-chevron{color:var(--text-muted);font-size:12px}
.member-dropdown{position:absolute;top:calc(100% + 9px);right:0;width:232px;padding:7px;border:1px solid var(--border-light);border-radius:14px;background:var(--bg-card);box-shadow:var(--shadow-lg);z-index:100}
.member-dropdown-head{padding:11px 10px 12px;margin-bottom:4px;border-bottom:1px solid var(--border-light)}
.member-dropdown-head strong,.member-dropdown-head small{display:block}
.member-dropdown-head strong{font-size:13px;color:var(--text-main)}
.member-dropdown-head small{font-size:10px;color:var(--text-muted);margin-top:3px}
.member-dropdown a{display:block;border-radius:8px;padding:10px 11px;font-size:12px;font-weight:650;color:var(--text-sub)}
.member-dropdown a:hover{background:var(--bg-pill);color:var(--brand-primary)}
.member-dropdown-divider{height:1px;margin:6px 4px;background:var(--border-light)}
.member-dropdown a[data-preview-logout]{color:#dc2626}
.mobile-sheet [data-auth-view] a{display:block;padding:10px 12px}
.preview-auth-controls{position:fixed;left:17px;bottom:18px;z-index:210;display:flex;align-items:center;gap:7px;max-width:calc(100vw - 30px);padding:7px 8px 7px 11px;border:1px solid rgba(148,163,184,.32);border-radius:13px;background:rgba(15,23,42,.95);color:#fff;box-shadow:0 12px 32px rgba(0,0,0,.22);backdrop-filter:blur(14px)}
.preview-auth-dot{width:6px;height:6px;background:#34d399;border-radius:50%;flex:none}
.preview-auth-label{color:#a5b4fc;font-size:9px;font-weight:850;letter-spacing:.08em;white-space:nowrap}
#preview-auth-toggle{height:26px;border-radius:7px;background:#fff;color:#172554;padding:0 9px;font-weight:850;font-size:11px;white-space:nowrap}
#preview-auth-toggle:hover{background:#dbeafe}
.preview-auth-reset{color:#cbd5e1!important;font-size:13px;padding:0 5px}
.preview-auth-reset:hover{color:#fff!important}
#preview-auth-reset[hidden]{display:none!important}
@media(max-width:768px){.header-right>.auth-guest,.header-right>.auth-member{display:none!important}}
@media(max-width:600px){.preview-auth-controls{left:10px;bottom:10px}}


/* === Sample card 1: YouTube hover preview (demo only) === */
.mh-card .card-media { isolation:isolate; }
.mh-media-poster, .mh-hover-player { position:absolute;inset:0;width:100%;height:100%; }
.mh-media-poster { z-index:0; object-fit:cover; }
.mh-hover-player { z-index:1;pointer-events:none; }
.mh-hover-player iframe { display:block;width:100%;height:100%;border:0;pointer-events:none; }
.mh-card .card-media:has(.mh-media-poster):after {
  content:"";position:absolute;inset:35% 0 0;z-index:1;
  background:linear-gradient(transparent,rgba(0,0,0,.58));pointer-events:none;
}
.mh-card .card-media .media-top,.mh-card .card-media .media-bottom,.mh-card .card-media .media-center { position:relative;z-index:3;pointer-events:none; }
.mh-card .card-media .media-center { position:absolute;inset:0; }
.mh-media-hit { position:absolute;inset:0;z-index:4;cursor:pointer;background:transparent;border:0;width:100%;height:100%; }
.mh-media-hit:focus-visible { outline:3px solid #60a5fa;outline-offset:-4px;border-radius:4px; }
.mh-card .card-media.is-video-hover .media-icon { opacity:0;transform:scale(.85); }
.mh-card .card-media.is-video-hover .mh-media-poster { opacity:0; }
.mh-card .card-media.is-video-hover .mh-hover-player { background:#090d19; }
@media (hover:none), (pointer:coarse) {
  .mh-card .card-media.is-video-hover .media-icon { opacity:1; }
}
\n/* v0.6 YouTube embed fallback link */
.mh-video-source-link {display:inline-flex;align-items:center;gap:5px;margin-top:10px;color:var(--brand-primary);font-size:12px;font-weight:750;text-decoration:none;}
.mh-video-source-link:hover {text-decoration:underline;}
.mh-video-source-link:focus-visible {outline:2px solid var(--brand-primary);outline-offset:3px;border-radius:3px;}


/* ===== MAXH3 FORM PROMPT EXPLORER (v0.7) ===== */
#prompt-explore{min-height:65vh}
.xp-hero{border-bottom:1px solid var(--border-light);background:var(--bg-subtle);position:relative;overflow:hidden}
.xp-hero:before{content:'';position:absolute;width:700px;height:500px;left:50%;top:-365px;transform:translateX(-10%);background:radial-gradient(ellipse,rgba(37,99,235,.16),rgba(124,58,237,.07) 42%,transparent 68%);pointer-events:none}
.xp-hero-inner{position:relative;padding:42px 0 36px}
.xp-kicker{display:inline-flex;gap:8px;align-items:center;color:var(--brand-primary);font-size:11px;letter-spacing:.1em;font-weight:800;margin-bottom:12px}
.xp-live-dot{width:7px;height:7px;background:#10b981;border-radius:50%}
.xp-hero-row{display:flex;justify-content:space-between;align-items:center;gap:25px}
.xp-hero h1{font-size:clamp(29px,3.6vw,43px);font-weight:850;letter-spacing:-.048em;line-height:1.22;margin:0 0 9px}
.xp-hero p{font-size:14px;color:var(--text-sub);line-height:1.7}
.xp-publish{display:inline-flex;justify-content:center;align-items:center;gap:7px;background:var(--brand-gradient);color:#fff;padding:0 22px;min-height:44px;border-radius:11px;font-size:13px;font-weight:750;white-space:nowrap;box-shadow:0 10px 24px rgba(37,99,235,.16)}
.xp-publish:hover{filter:brightness(1.06)}
.xp-publish span:first-child{font-size:20px;font-weight:400;line-height:1}
.xp-search{margin-top:23px;max-width:790px;height:56px;display:flex;align-items:center;gap:12px;background:var(--bg-card);border:1.5px solid var(--border-strong);border-radius:15px;padding:6px 7px 6px 17px;box-shadow:var(--shadow-sm)}
.xp-search:focus-within{border-color:var(--brand-primary);box-shadow:0 0 0 4px rgba(37,99,235,.1)}
.xp-search svg{color:var(--text-muted);flex:none}
.xp-search input{flex:1;min-width:0;background:transparent;outline:0;border:0;font-size:13px;color:var(--text-main)}
.xp-search input::placeholder{color:var(--text-muted)}
.xp-search button{height:42px;padding:0 25px;background:var(--brand-gradient);color:#fff;border-radius:10px;font-size:12px;font-weight:800}
.xp-quick{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px;font-size:11px;color:var(--text-muted)}
.xp-quick button{padding:5px 11px;border-radius:100px;border:1px solid var(--border-light);background:var(--bg-card);color:var(--text-sub);font-size:11px;font-weight:700}
.xp-quick button:hover{border-color:var(--brand-primary);color:var(--brand-primary)}
.xp-listing{padding-bottom:90px}
.xp-categories{display:flex;align-items:center;gap:8px;padding:19px 0 20px;border-bottom:1px solid var(--border-light);overflow-x:auto;scrollbar-width:none}
.xp-categories::-webkit-scrollbar{display:none}
.xp-cat{border:1px solid var(--border-light);background:var(--bg-card);color:var(--text-sub);padding:9px 17px;border-radius:999px;font-size:12px;font-weight:750;white-space:nowrap}
.xp-cat:hover{border-color:var(--brand-primary);color:var(--brand-primary)}
.xp-cat.is-active{background:var(--text-main);color:var(--bg-page);border-color:var(--text-main)}
.xp-main-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:25px;align-items:start;margin-top:27px}
.xp-sidebar{position:sticky;top:93px;border:1px solid var(--border-light);border-radius:16px;background:var(--bg-card);padding:20px;box-shadow:var(--shadow-sm)}
.xp-sidebar-top{display:flex;justify-content:space-between;align-items:center}
.xp-sidebar-top h2{font-size:16px;font-weight:800}
.xp-sidebar-top button{font-size:11px;font-weight:800;color:var(--brand-primary)}
.xp-filter-group{border-top:1px solid var(--border-light);margin-top:19px;padding-top:18px}
.xp-filter-group h3{font-size:12px;font-weight:800;margin-bottom:11px}
.xp-check{display:flex;align-items:center;gap:9px;color:var(--text-sub);font-size:12px;margin:11px 0;cursor:pointer}
.xp-check input{accent-color:#2563eb;width:15px;height:15px}
.xp-range-line{display:flex;justify-content:space-between;font-size:11px;color:var(--text-muted);margin:0 0 9px}
.xp-range-line strong{color:var(--brand-primary);font-size:12px}
#xp-max-points{width:100%;accent-color:#2563eb;cursor:pointer}
.xp-sidebar-note{margin-top:21px;padding:13px;border-radius:11px;background:var(--bg-subtle);border:1px solid var(--border-light)}
.xp-sidebar-note strong{display:block;font-size:10px;letter-spacing:.08em;color:var(--brand-primary);margin-bottom:5px}
.xp-sidebar-note p{color:var(--text-sub);font-size:11px;line-height:1.65}
.xp-content{min-width:0}
.xp-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:3px 0 18px}
.xp-toolbar h2{font-size:21px;font-weight:830;letter-spacing:-.03em}
.xp-toolbar p{margin-top:4px;font-size:12px;color:var(--text-muted)}
#xp-count{color:var(--brand-primary);font-weight:850}
.xp-tools{display:flex;align-items:center;gap:8px}
.xp-tools select{border:1px solid var(--border-light);background:var(--bg-card);color:var(--text-main);height:38px;padding:0 11px;border-radius:9px;font-size:11px;font-weight:700;cursor:pointer}
.xp-view-group{display:flex;border:1px solid var(--border-light);overflow:hidden;border-radius:9px}
.xp-view{height:37px;width:36px;display:grid;place-items:center;color:var(--text-muted);font-size:16px}
.xp-view+.xp-view{border-left:1px solid var(--border-light)}
.xp-view.active{background:var(--bg-pill);color:var(--brand-primary)}
.xp-grid{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.xp-card{border-radius:15px}
.xp-card .card-content{padding:14px}
.xp-card .card-content h3{font-size:15px;margin-bottom:7px;min-height:42px;line-height:1.4}
.xp-card .card-content p{font-size:11px;line-height:1.55;color:var(--text-sub);min-height:42px;margin-bottom:0}
.xp-card .card-media{padding:11px}
.xp-card .media-center .media-icon{width:43px;height:43px;font-size:17px}
.xp-card .media-bottom{font-size:10px}
.xp-card-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px;margin-bottom:11px}
.xp-card-tags span{padding:3px 7px;border-radius:5px;color:var(--text-sub);font-size:10px;background:var(--bg-pill)}
.xp-card-base{margin-top:auto;padding-top:12px;border-top:1px solid var(--border-light);display:flex;justify-content:space-between;align-items:center;gap:8px}
.xp-creator{display:flex;align-items:center;gap:7px;min-width:0;color:var(--text-muted);font-size:10px;font-weight:650}
.xp-creator span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xp-avatar{flex:none;width:23px;height:23px;display:grid;place-items:center;background:var(--brand-gradient);border-radius:50%;font-size:9px;font-weight:800;color:#fff}
.xp-point{font-weight:850;font-size:12px;white-space:nowrap;color:var(--brand-primary)}
.xp-actions{display:grid;grid-template-columns:1fr 37px;gap:8px;margin-top:11px}
.xp-detail{height:37px;background:var(--bg-pill);color:var(--text-main);border-radius:8px;font-size:11px;font-weight:800}
.xp-detail:hover{background:var(--brand-gradient);color:#fff}
.xp-heart{height:37px;border:1px solid var(--border-light);border-radius:8px;color:var(--text-muted);font-size:18px}
.xp-heart.is-active{color:#e11d48;border-color:#fda4af;background:rgba(225,29,72,.07)}
.xp-art-violet{background:linear-gradient(135deg,#0e1d42 0%,#4c1d95 63%,#b453a5 100%)}
.xp-art-cyan{background:linear-gradient(135deg,#072f42,#0f766e 55%,#155eaa)}
.xp-art-ember{background:linear-gradient(135deg,#30130b,#92400e 55%,#c24178)}
.xp-art-rose{background:linear-gradient(135deg,#27203f,#9d174d 60%,#f973a7)}
.xp-art-night{background:linear-gradient(135deg,#0b172e,#1e3a8a 60%,#4338ca)}
.xp-art-indigo{background:linear-gradient(135deg,#111827,#334155 54%,#4338ca)}
.xp-card .card-media:not(:has(.mh-media-poster)):before{content:'';pointer-events:none;position:absolute;inset:-80px;opacity:.45;background:radial-gradient(circle at 60% 40%,transparent 0 18%,rgba(255,255,255,.18) 18.5% 19%,transparent 19.5% 27%,rgba(255,255,255,.12) 27.5% 28%,transparent 28.5%)}
.xp-active-filters{display:none;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.xp-active-filters:not(:empty){display:flex}
.xp-active-filters span{padding:5px 9px;border-radius:999px;background:var(--bg-pill);color:var(--text-sub);font-size:10px}
.xp-empty{border:1px dashed var(--border-strong);background:var(--bg-subtle);border-radius:15px;text-align:center;padding:60px 20px;color:var(--text-sub)}
.xp-empty[hidden]{display:none!important}
.xp-empty-icon{font-size:38px;color:var(--text-muted)}
.xp-empty h3{margin-top:7px;font-size:17px;color:var(--text-main)}
.xp-empty p{font-size:12px;margin-top:7px}
.xp-empty button{color:var(--brand-primary);margin-top:14px;font-weight:800;font-size:12px}
.xp-bottom-note{font-size:11px;color:var(--text-muted);margin-top:22px;line-height:1.7}
.xp-grid.is-list{grid-template-columns:1fr}
.xp-grid.is-list .xp-card{display:grid;grid-template-columns:240px minmax(0,1fr)}
.xp-grid.is-list .xp-card .card-media{height:100%;min-height:200px;aspect-ratio:auto}
.xp-grid.is-list .xp-card .card-content h3,.xp-grid.is-list .xp-card .card-content p{min-height:0}
.xp-grid.is-list .xp-card .card-content{padding:17px}
.xp-grid.is-list .xp-card .xp-card-tags{margin-top:10px}
.xp-grid.is-list .xp-card .xp-card-base{padding-top:9px}
.xp-grid.is-list .xp-card .xp-actions{margin-top:9px}
#prompt-explore .xp-card .media-top,#prompt-explore .xp-card .media-bottom{pointer-events:none}
#prompt-explore .xp-card[hidden]{display:none!important}
#prompt-explore .xp-card .media-center{pointer-events:none}
@media(max-width:1150px){.xp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:840px){.xp-main-layout{grid-template-columns:1fr}.xp-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px}.xp-sidebar-top{grid-column:1/-1}.xp-filter-group{border-top:0;margin-top:0;padding-top:0}.xp-sidebar-note{display:none}}
@media(max-width:650px){.xp-hero-inner{padding:31px 0}.xp-hero-row{flex-direction:column;align-items:flex-start;gap:12px}.xp-hero h1{font-size:31px}.xp-hero p{font-size:12px}.xp-publish{min-height:38px;padding:0 15px;font-size:11px}.xp-search{height:50px;padding:5px 6px 5px 12px}.xp-search button{height:38px;padding:0 14px}.xp-listing{padding-bottom:60px}.xp-categories{padding:14px 0;gap:7px}.xp-cat{padding:8px 13px;font-size:11px}.xp-main-layout{margin-top:19px;gap:18px}.xp-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px}.xp-filter-group:last-of-type{grid-column:1/-1}.xp-toolbar{flex-wrap:wrap}.xp-toolbar h2{font-size:19px}.xp-grid{grid-template-columns:1fr}.xp-card .card-content h3{min-height:0}.xp-card .card-content p{min-height:0}.xp-grid.is-list .xp-card{grid-template-columns:1fr}.xp-grid.is-list .xp-card .card-media{min-height:0;aspect-ratio:16/9}}

/* v0.8: Multi-model, multi-duration filter checkboxes */
.xp-filter-help{font-size:10px;line-height:1.6;color:var(--text-muted);margin-top:9px}
.xp-model-choices,.xp-duration-choices{display:grid;gap:2px}
.xp-model-choices .xp-check,.xp-duration-choices .xp-check{margin:7px 0}
.xp-check:has(input:checked){color:var(--brand-primary);font-weight:750}
.xp-check input:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
@media(max-width:840px){
  .xp-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .xp-filter-model,.xp-filter-duration{grid-column:1/-1}
  .xp-model-choices,.xp-duration-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
  .xp-model-choices .xp-check,.xp-duration-choices .xp-check{margin:0;padding:7px 8px;border:1px solid var(--border-light);border-radius:8px}
}
@media(max-width:430px){.xp-model-choices,.xp-duration-choices{gap:6px}}


/* ================= REGISTER PAGE ================= */
.register-hero{background:var(--bg-subtle);border-bottom:1px solid var(--border-light);position:relative;overflow:hidden}
.register-hero:before{content:"";position:absolute;pointer-events:none;width:700px;height:460px;right:-170px;top:-300px;background:radial-gradient(ellipse,rgba(37,99,235,.13),rgba(124,58,237,.06) 48%,transparent 72%)}
.register-hero-inner{position:relative;padding:43px 0 37px;display:flex;align-items:flex-end;justify-content:space-between;gap:28px}
.register-hero-copy{max-width:760px}
.register-eyebrow{display:flex;align-items:center;gap:9px;color:var(--brand-primary);font-size:11px;font-weight:850;letter-spacing:.12em;margin-bottom:12px}
.register-eyebrow i{width:7px;height:7px;border-radius:50%;background:#10b981;display:inline-block}
.register-hero h1{font-size:clamp(30px,4vw,43px);line-height:1.18;letter-spacing:-.045em;font-weight:850;margin-bottom:12px}
.register-hero p{max-width:690px;color:var(--text-sub);font-size:14px;line-height:1.8}
.register-flow{display:flex;align-items:center;gap:10px;flex:none;padding:14px 17px;border:1px solid var(--border-light);border-radius:15px;background:var(--bg-card);box-shadow:var(--shadow-sm)}
.register-flow-step{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:750;color:var(--text-sub);white-space:nowrap}
.register-flow-step b{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:var(--bg-pill);color:var(--brand-primary);font-size:11px}
.register-flow-arrow{color:var(--text-muted);font-size:15px}
.register-main{padding:32px 0 78px}
.register-notice{display:flex;align-items:flex-start;gap:12px;padding:15px 17px;margin-bottom:23px;border:1px solid rgba(37,99,235,.2);border-radius:13px;background:rgba(37,99,235,.055);color:var(--text-sub);font-size:12px;line-height:1.7}
.register-notice .notice-icon{width:25px;height:25px;flex:none;display:grid;place-items:center;border-radius:8px;background:rgba(37,99,235,.12);color:var(--brand-primary);font-weight:900}
.register-notice strong{color:var(--text-main)}
.register-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:23px;align-items:start}
.register-form-column{min-width:0}
.register-card{background:var(--bg-card);border:1px solid var(--border-light);border-radius:17px;box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:17px}
.register-card-head{display:flex;align-items:center;gap:12px;padding:19px 22px;border-bottom:1px solid var(--border-light)}
.register-card-head .section-num{width:31px;height:31px;display:grid;place-items:center;flex:none;border-radius:10px;background:var(--bg-pill);color:var(--brand-primary);font-size:12px;font-weight:850}
.register-card-head h2{font-size:16px;letter-spacing:-.02em;font-weight:820}
.register-card-head p{font-size:11px;color:var(--text-muted);margin-top:2px}
.register-card-body{padding:21px 22px 23px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 16px}
.form-field{min-width:0}
.form-field.full{grid-column:1/-1}
.form-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:12px;font-weight:780;color:var(--text-main)}
.form-label .optional{font-size:10px;color:var(--text-muted);font-weight:600}
.required-mark{color:#ef4444;margin-left:3px}
.form-control{width:100%;min-height:43px;padding:10px 12px;border:1px solid var(--border-strong);border-radius:10px;background:var(--bg-page);color:var(--text-main);font-size:13px;outline:0;transition:border-color .18s,box-shadow .18s}
.form-control:focus{border-color:var(--brand-primary);box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.form-control::placeholder{color:var(--text-muted)}
textarea.form-control{resize:vertical;min-height:94px;line-height:1.65}
textarea.form-control.prompt-source{min-height:220px;font-family:var(--font-sans);font-size:13px;line-height:1.7;word-break:break-word}
.field-help{margin-top:6px;font-size:11px;line-height:1.6;color:var(--text-muted)}
.char-count{font-variant-numeric:tabular-nums;color:var(--text-muted);font-size:10px;font-weight:600}
.select-control{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:36px}
.tag-input-wrap{display:flex;align-items:center;gap:8px}
.tag-input-wrap .form-control{flex:1;min-width:0}
.tag-hint{font-size:10px;color:var(--text-muted);white-space:nowrap}
.youtube-url-row{display:flex;align-items:stretch;gap:9px}
.youtube-url-row .form-control{flex:1;min-width:0}
.youtube-status{display:none;margin-top:8px;padding:9px 11px;border-radius:9px;background:var(--bg-pill);font-size:11px;color:var(--text-sub);overflow-wrap:anywhere}
.youtube-status.is-visible{display:block}
.youtube-status.is-error{background:rgba(239,68,68,.08);color:#dc2626}
.video-preview-wrap{display:none;margin-top:12px;border-radius:12px;overflow:hidden;background:#080d19;position:relative}
.video-preview-wrap.is-visible{display:block}
.youtube-embed-frame{display:block;width:100%;aspect-ratio:16/9;border:0;background:#080d19}
.video-preview-caption{padding:8px 11px;background:var(--bg-subtle);font-size:10px;color:var(--text-muted);line-height:1.55}
.preview-visual img.youtube-thumb{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}
.preview-visual.has-youtube img.youtube-thumb{display:block}
.preview-visual.has-youtube .preview-placeholder{display:none}
.preview-youtube-play{display:none;position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(10,15,35,.68);color:#fff;font-size:19px;place-items:center;cursor:pointer;backdrop-filter:blur(8px)}
.preview-visual.has-youtube .preview-youtube-play{display:grid}
.preview-youtube-play:hover{background:rgba(37,99,235,.9)}
.aspect-options{display:flex;flex-wrap:wrap;gap:8px}
.aspect-option{position:relative}
.aspect-option input{position:absolute;opacity:0;pointer-events:none}
.aspect-option span{display:inline-flex;align-items:center;justify-content:center;min-width:67px;height:39px;padding:0 13px;border:1px solid var(--border-light);border-radius:9px;background:var(--bg-page);color:var(--text-sub);font-size:12px;font-weight:750;cursor:pointer}
.aspect-option input:checked+span{border-color:var(--brand-primary);background:rgba(37,99,235,.08);color:var(--brand-primary);box-shadow:inset 0 0 0 1px var(--brand-primary)}
.aspect-option input:focus-visible+span{outline:3px solid #60a5fa;outline-offset:3px}
.price-entry{display:flex;align-items:center;gap:9px}
.price-entry .form-control{max-width:220px;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.price-unit{font-size:13px;font-weight:850;color:#c18a24}
.policy-box{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.policy-item{padding:12px 13px;border:1px solid var(--border-light);border-radius:11px;background:var(--bg-subtle)}
.policy-item small{display:block;color:var(--text-muted);font-size:10px;margin-bottom:5px}
.policy-item strong{display:block;font-size:12px;font-weight:800}
.policy-item .pending{color:var(--brand-primary)}
.check-list{display:grid;gap:11px}
.check-item{display:flex;align-items:flex-start;gap:9px;color:var(--text-sub);font-size:11px;line-height:1.6;cursor:pointer}
.check-item input{width:16px;height:16px;flex:none;margin:1px 0 0;accent-color:var(--brand-primary)}
.register-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:7px}
.register-actions .left-actions,.register-actions .right-actions{display:flex;align-items:center;gap:9px}
.register-actions .btn{height:45px;padding:0 19px;font-size:12px}
.btn-outline{border:1px solid var(--border-light);background:var(--bg-card);color:var(--text-sub)}
.btn-outline:hover{border-color:var(--border-strong);color:var(--text-main)}
.btn-submit{background:var(--brand-gradient);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.2)}
.btn-submit:hover{transform:translateY(-1px);box-shadow:0 11px 22px rgba(37,99,235,.27)}
.register-sidebar{position:sticky;top:92px;display:grid;gap:15px}
.preview-panel,.guide-panel{border:1px solid var(--border-light);border-radius:16px;background:var(--bg-card);box-shadow:var(--shadow-sm);overflow:hidden}
.preview-panel-head{padding:16px 17px;border-bottom:1px solid var(--border-light);display:flex;align-items:center;justify-content:space-between;gap:8px}
.preview-panel-head strong{font-size:13px;font-weight:820}
.preview-panel-head span{font-size:9px;letter-spacing:.08em;color:var(--brand-primary);font-weight:850}
.preview-card{padding:14px}
.preview-visual{aspect-ratio:16/9;border-radius:11px;overflow:hidden;position:relative;display:grid;place-items:center;background:linear-gradient(135deg,#101b38,#32245f 58%,#174c68);color:#fff}
.preview-visual:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 75% 25%,rgba(93,181,255,.45),transparent 35%),radial-gradient(circle at 25% 80%,rgba(168,85,247,.38),transparent 42%)}
.preview-visual .preview-placeholder{position:relative;text-align:center;z-index:1}
.preview-placeholder b{display:block;font-size:28px;line-height:1;margin-bottom:7px}
.preview-placeholder small{font-size:9px;letter-spacing:.12em;color:rgba(255,255,255,.75);font-weight:800}

.preview-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:13px}
.preview-category{font-size:10px;color:var(--brand-primary);font-weight:850}
.preview-model{font-size:9px;color:var(--text-muted);font-weight:800}
.preview-card h3{font-size:15px;line-height:1.4;font-weight:820;margin-top:7px;overflow-wrap:anywhere}
.preview-card>p{font-size:11px;color:var(--text-sub);line-height:1.65;margin-top:6px;min-height:36px;overflow-wrap:anywhere}
.preview-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:11px}
.preview-tags span{font-size:9px;padding:4px 6px;border-radius:5px;background:var(--bg-pill);color:var(--text-sub)}
.preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--border-light);padding-top:12px;margin-top:13px}
.preview-bottom small{font-size:10px;color:var(--text-muted)}
.preview-bottom strong{font-size:15px;font-weight:900;white-space:nowrap}
.preview-bottom strong em{font-style:normal;font-size:10px;color:#c18a24;margin-left:3px}
.guide-panel{padding:17px}
.guide-panel h3{font-size:13px;font-weight:820;margin-bottom:12px}
.guide-row{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--border-light);font-size:11px}
.guide-row span{color:var(--text-sub)}
.guide-row strong{text-align:right;font-size:11px}
.guide-note{padding:11px;border-radius:10px;background:var(--bg-subtle);font-size:10px;color:var(--text-sub);line-height:1.65;margin-top:11px}
.guide-note strong{color:var(--brand-primary)}
.register-modal-backdrop{position:fixed;inset:0;z-index:120;background:rgba(9,13,28,.68);backdrop-filter:blur(6px);padding:20px;display:none;place-items:center}
.register-modal-backdrop.is-open{display:grid}
.register-modal{width:min(100%,520px);border:1px solid var(--border-light);border-radius:19px;background:var(--bg-card);box-shadow:var(--shadow-lg);padding:24px}
.register-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
.register-modal-head h2{font-size:18px;font-weight:850}
.register-modal-close{width:34px;height:34px;border:1px solid var(--border-light);border-radius:9px;font-size:18px}
.register-modal-summary{padding:14px;border:1px solid var(--border-light);border-radius:12px;background:var(--bg-subtle);font-size:12px;line-height:1.7;color:var(--text-sub)}
.register-modal-summary strong{color:var(--text-main)}
.register-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}
.register-modal-actions .btn{height:40px;padding:0 15px;font-size:11px}
.register-toast{position:fixed;z-index:150;left:50%;bottom:25px;transform:translate(-50%,15px);padding:12px 19px;border-radius:999px;background:#101827;color:#fff;font-size:12px;box-shadow:0 12px 30px rgba(0,0,0,.3);opacity:0;pointer-events:none;transition:.2s;max-width:92vw;text-align:center}
.register-toast.is-show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.register-layout{grid-template-columns:minmax(0,1fr) 300px;gap:17px}.register-flow{display:none}}
@media(max-width:780px){.register-hero-inner{padding:34px 0 30px}.register-layout{grid-template-columns:1fr}.register-sidebar{position:static;grid-row:1}.preview-panel{max-width:none}.preview-card{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(0,1fr);gap:0 14px}.preview-visual{grid-row:1/5}.preview-card-meta{margin-top:0}.preview-card h3{margin-top:7px}.preview-card>p{min-height:0}.preview-tags{margin-top:7px}.preview-bottom{grid-column:1/-1}.register-sidebar{grid-template-columns:1fr}.register-actions{flex-wrap:wrap}.register-actions .left-actions,.register-actions .right-actions{flex:1}.register-actions .right-actions{justify-content:flex-end}}
@media(max-width:600px){.register-hero-inner{padding:30px 0 27px}.register-hero h1{font-size:31px}.register-hero p{font-size:12px}.register-main{padding:22px 0 55px}.register-notice{padding:12px;font-size:11px}.register-card-head{padding:16px 16px}.register-card-body{padding:17px 16px 19px}.form-grid{grid-template-columns:1fr;gap:14px}.form-field.full{grid-column:auto}.youtube-url-row{gap:7px}.youtube-url-row .form-control{min-height:42px}.policy-box{grid-template-columns:1fr 1fr}.price-entry .form-control{max-width:100%}.register-actions{display:grid;grid-template-columns:1fr}.register-actions .left-actions,.register-actions .right-actions{width:100%}.register-actions .left-actions .btn,.register-actions .right-actions .btn{flex:1}.preview-card{display:block}.preview-visual{aspect-ratio:16/9}.preview-card-meta{margin-top:13px}.register-modal{padding:19px}.register-modal-actions{flex-direction:column-reverse}.register-modal-actions .btn{width:100%}}


/* Model select / registration page integration */
.register-model-help{margin-top:7px;color:var(--text-muted);font-size:11px}
.register-card .form-control:invalid:focus{border-color:#ef4444}
#mh-main .gradient-text{background:var(--brand-gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
#mh-main .btn.btn-outline{border:1px solid var(--border-light);background:var(--bg-card);color:var(--text-sub)}
#mh-main .btn.btn-outline:hover{border-color:var(--brand-primary);color:var(--brand-primary)}
#mh-main .btn.btn-submit,.register-modal .btn.btn-submit{background:var(--brand-gradient);color:#fff}
#mh-main .register-eyebrow{color:var(--brand-primary)}
#mh-main .register-sidebar{top:100px}

/* Model-dependent prompt language constraint (MiniMax H3: English only) */
#mh-main #prompt-language:disabled{background:var(--bg-subtle);color:var(--text-main);-webkit-text-fill-color:var(--text-main);opacity:1;cursor:not-allowed}
#mh-main #prompt-language-help{color:var(--brand-primary);font-size:11px;margin-top:7px;line-height:1.55}
#mh-main #prompt-language-help[hidden]{display:none}


/* v1.1: reference image uploader + language-dependent Hangul restriction */
#mh-main .prompt-body-language-help{margin-top:9px;padding:10px 12px;border:1px solid rgba(37,99,235,.18);border-radius:9px;background:var(--bg-pill);color:var(--brand-primary);font-size:11px;line-height:1.65}
#mh-main .prompt-body-language-help[hidden]{display:none}
#mh-main .reference-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
#mh-main .reference-heading .form-label{margin:0}
#mh-main .reference-counter{font-size:11px;font-weight:800;color:var(--brand-primary);font-variant-numeric:tabular-nums}
#mh-main .reference-upload-zone{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;min-height:154px;margin-top:10px;padding:20px 14px;border:1.5px dashed var(--border-strong);border-radius:14px;background:var(--bg-subtle);text-align:center;cursor:pointer;transition:border-color .2s,background .2s}
#mh-main .reference-upload-zone:hover,#mh-main .reference-upload-zone.is-dragover{border-color:var(--brand-primary);background:var(--bg-pill)}
#mh-main .reference-upload-zone:focus-within{outline:3px solid rgba(59,130,246,.25)}
#mh-main .reference-upload-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--bg-pill);color:var(--brand-primary);font-size:30px;line-height:1}
#mh-main .reference-upload-zone strong{font-size:13px;font-weight:800;color:var(--text-main)}
#mh-main .reference-upload-zone small{font-size:10px;color:var(--text-muted)}
#mh-main .reference-file-input{width:1px;height:1px;position:absolute;opacity:0;overflow:hidden;clip-path:inset(50%)}
#mh-main .reference-file-input:focus-visible+.field-help{outline:2px solid var(--brand-primary);outline-offset:3px}
#mh-main .reference-image-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}
#mh-main .reference-image-list[hidden]{display:none}
#mh-main .reference-image-card{min-width:0;position:relative;overflow:hidden;border:1px solid var(--border-light);border-radius:12px;background:var(--bg-page)}
#mh-main .reference-image-card>img{width:100%;height:108px;display:block;object-fit:cover;background:var(--bg-subtle)}
#mh-main .reference-image-meta{display:grid;gap:2px;min-width:0;padding:8px 10px}
#mh-main .reference-image-meta strong{color:var(--text-main);font-size:11px}
#mh-main .reference-image-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:10px}
#mh-main .reference-image-remove{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:27px;height:27px;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:rgba(13,23,43,.78);color:#fff;font-size:20px;line-height:1;cursor:pointer}
#mh-main .reference-image-remove:hover{background:#dc2626}
#mh-main .preview-reference-indicator{margin-top:9px;width:max-content;max-width:100%;border-radius:7px;background:var(--bg-pill);color:var(--brand-primary);padding:6px 8px;font-size:10px;font-weight:800}
#mh-main .preview-reference-indicator[hidden]{display:none}
@media(max-width:600px){#mh-main .reference-image-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#mh-main .reference-upload-zone{min-height:132px;padding:16px 11px}#mh-main .reference-upload-zone strong{font-size:12px}}


/* v1.2 — @Picture reference picker + mandatory YouTube result video */
#mh-main .youtube-required-help{margin-top:9px;color:var(--brand-primary);font-weight:650;font-size:11px}
#mh-main .prompt-mention-shell{position:relative}
#mh-main .prompt-mention-help{margin-top:9px}

/* v1.3 — anchored image selector: floating portal + independently scrollable thumbnail grid */
#prompt-mention-menu{
  position:fixed;z-index:1500;left:12px;top:12px;display:flex;flex-direction:column;
  width:min(400px,calc(100vw - 24px));max-height:min(430px,calc(100dvh - 24px));
  overflow:hidden;padding:0;background:var(--bg-card);color:var(--text-main);
  border:1px solid var(--border-strong);border-radius:16px;
  box-shadow:0 18px 55px rgba(15,23,42,.22),0 2px 10px rgba(15,23,42,.08)
}
#prompt-mention-menu[hidden]{display:none!important}
#prompt-mention-menu .prompt-mention-head{
  flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:12px 13px;border-bottom:1px solid var(--border-light)
}
#prompt-mention-menu .prompt-mention-heading{display:grid;gap:3px;min-width:0}
#prompt-mention-menu .prompt-mention-heading strong{font-size:13px;font-weight:850}
#prompt-mention-menu .prompt-mention-heading small{font-size:10px;color:var(--text-muted)}
#prompt-mention-menu .prompt-mention-close{
  width:28px;height:28px;flex:none;display:grid;place-items:center;
  border:1px solid var(--border-light);background:var(--bg-subtle);border-radius:8px;
  color:var(--text-sub);font-size:19px;line-height:1;cursor:pointer
}
#prompt-mention-menu .prompt-mention-close:hover{color:var(--text-main);background:var(--bg-pill)}
#prompt-mention-menu .prompt-mention-list{
  overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;
  scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;
  gap:8px;max-height:min(326px,calc(100dvh - 116px));padding:10px;
}
#prompt-mention-menu .prompt-mention-list::-webkit-scrollbar{width:9px}
#prompt-mention-menu .prompt-mention-list::-webkit-scrollbar-thumb{border:2px solid var(--bg-card);border-radius:8px;background:var(--border-strong)}
#prompt-mention-menu .prompt-mention-item{
  min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:left;
  gap:6px;padding:7px;border:1px solid var(--border-light);border-radius:11px;
  background:var(--bg-subtle);color:var(--text-main);cursor:pointer;
  transition:border-color .15s,background .15s
}
#prompt-mention-menu .prompt-mention-item:hover,#prompt-mention-menu .prompt-mention-item.is-active{
  border-color:var(--brand-primary);background:var(--bg-pill)
}
#prompt-mention-menu .prompt-mention-item:focus-visible,#prompt-mention-menu .prompt-mention-close:focus-visible{
  outline:2px solid var(--brand-primary);outline-offset:2px
}
#prompt-mention-menu .prompt-mention-item img{
  display:block;width:100%;height:82px;object-fit:cover;flex:none;
  border-radius:7px;background:var(--bg-page)
}
#prompt-mention-menu .prompt-mention-meta{display:grid;gap:2px;min-width:0;padding:0 1px 2px}
#prompt-mention-menu .prompt-mention-meta strong{font-size:11px;font-weight:800;color:var(--brand-primary)}
#prompt-mention-menu .prompt-mention-meta small{
  display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:10px;color:var(--text-muted)
}
#prompt-mention-menu .prompt-mention-empty{
  grid-column:1/-1;padding:19px 10px;text-align:center;font-size:12px;color:var(--text-sub)
}
@media(max-width:500px){
  #prompt-mention-menu{max-height:min(400px,calc(100dvh - 20px))}
  #prompt-mention-menu .prompt-mention-list{max-height:min(300px,calc(100dvh - 100px))}
  #prompt-mention-menu .prompt-mention-item img{height:72px}
}

/* MAXH3 FORM v1.4: server save feedback */
.maxh3-save-result{padding:14px 18px;margin:0 0 20px;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;border-radius:12px;font-weight:700;}
html[data-theme="dark"] .maxh3-save-result{background:#064e3b;color:#d1fae5;border-color:#047857;}
