/* ==========================================================================
   LumAPP
   Pages: hero / dashboard / auth / install / gallery / rich components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Dashboard hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 30px;
  padding: 26px 28px;
  border-radius: 16px;
  overflow: hidden;
  color: #e8efff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(37, 99, 235, .55), transparent 58%),
    radial-gradient(60% 110% at 0% 100%, rgba(59, 130, 246, .14), transparent 62%),
    linear-gradient(116deg, #0b1220 0%, #111c33 52%, #172554 100%);
  border: 1px solid rgba(96, 165, 250, .2);
  box-shadow: 0 30px 70px -38px rgba(11, 18, 32, .62);
  margin-bottom: 16px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -110px; top: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(160, 190, 255, .14);
  box-shadow: 0 0 0 56px rgba(160, 190, 255, .035), 0 0 0 120px rgba(160, 190, 255, .02);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 35%; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 190, 255, .28), transparent);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #93c5fd; }
.hero-eyebrow .dot { width: 5px; height: 5px; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .12); animation: livePulse 2.4s infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero-metric { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.hero-number { font-size: clamp(42px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hero-unit { font-size: 11.5px; color: rgba(200, 218, 255, .62); }
.hero-delta { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 11px; color: rgba(200, 218, 255, .7); }
.hero-delta .badge { background: rgba(74, 222, 128, .12); color: #bbf7d0; }
.hero-stats { display: flex; gap: 28px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .09); flex-wrap: wrap; }
.hero-stats .hs-label { font-size: 9.5px; color: rgba(200, 218, 255, .55); }
.hero-stats .hs-value { margin-top: 2px; font-size: 18px; font-weight: 650; color: #fff; letter-spacing: -.02em; }
.hero-stats .hs-value small { font-size: 8.5px; color: rgba(200, 218, 255, .55); margin-left: 2px; }
.hero-chart { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.hero-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hero-chart-title { font-size: 10px; color: rgba(200, 218, 255, .68); }
.hero .seg { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.hero .seg button { color: rgba(200, 218, 255, .65); }
.hero .seg button.is-active { background: rgba(255, 255, 255, .92); color: #0b2148; }
.hero .chart-box { flex: 1; }

.dash-metrics { margin-bottom: 4px; }

/* Content cards */
.content-card { display: flex; flex-direction: column; height: 100%; }
.content-card .panel-head { margin-bottom: 10px; }
.content-card .fill-bottom { margin-top: auto; }
.quick-item.dark { border-color: var(--line); }
.progress-mini { display: flex; flex-direction: column; gap: 9px; }
.progress-mini .pm-row { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--ink-3); }
.progress-mini .pm-label { width: 64px; flex: 0 0 64px; }
.progress-mini .pm-track { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-mini .pm-fill { height: 100%; border-radius: inherit; background: var(--tone, var(--brand)); transition: width .9s var(--ease); }
.progress-mini .pm-val { width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Media / posters
   -------------------------------------------------------------------------- */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, var(--a, #dbe7ff), var(--b, #8fa9e8)); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3); }
.poster:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 18, 32, .65), transparent 58%); }
.poster-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.poster-meta { position: absolute; inset: auto 0 0 0; padding: 22px 8px 8px; color: #fff; }
.poster-title { font-size: 10px; font-weight: 650; line-height: 1.3; }
.poster-sub { margin-top: 1px; font-size: 8.5px; opacity: .75; }
.poster-badge { position: absolute; top: 7px; left: 7px; }
.media-list { display: flex; flex-direction: column; }
.media-item { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 7px; transition: background var(--dur-2); }
.media-item:hover { background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Boards / kanban
   -------------------------------------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.board-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px; min-height: 120px; }
.board-col.is-over { background: var(--brand-soft); border-color: var(--brand-line); }
.board-col-head { display: flex; align-items: center; gap: 6px; padding: 2px 3px 8px; }
.board-col-title { font-size: 11px; font-weight: 650; }
.board-col-count { font-size: 8.5px; color: var(--ink-4); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.board-card { position: relative; padding: 10px; margin-bottom: 6px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow-1); cursor: grab; transition: all var(--dur-2); }
.board-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.board-card.is-dragging { opacity: .4; }
.board-card-title { font-size: 11.5px; font-weight: 600; line-height: 1.45; }
.board-card-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 9.5px; color: var(--ink-4); flex-wrap: wrap; }
.board-add { width: 100%; padding: 7px; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 10px; color: var(--ink-4); display: flex; align-items: center; justify-content: center; gap: 4px; }
.board-add:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* --------------------------------------------------------------------------
   Settings / plan / matrix
   -------------------------------------------------------------------------- */
.toggle-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.toggle-card { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: all var(--dur-2); }
.toggle-card:hover { border-color: var(--line-strong); }
.toggle-card.is-on { border-color: var(--brand-line); background: linear-gradient(150deg, var(--brand-soft), #fff 65%); }
.toggle-card-ico { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); }
.toggle-card-ico .ico { width: 14px; height: 14px; }
.toggle-card-copy { flex: 1; min-width: 0; }
.toggle-card-title { font-size: 11.5px; font-weight: 600; }
.toggle-card-desc { margin-top: 2px; font-size: 10px; color: var(--ink-4); line-height: 1.5; }
.toggle-card .switch { padding-top: 3px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.plan.featured { border-color: var(--brand-line); background: linear-gradient(160deg, var(--brand-soft), #fff 55%); }
.plan-flag { position: absolute; top: -8px; left: 14px; padding: 2px 7px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 8px; font-weight: 650; }
.plan-name { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; }
.plan-price { display: flex; align-items: baseline; gap: 2px; }
.plan-price .cur { font-size: 11.5px; color: var(--ink-3); }
.plan-price .val { font-size: 30px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.plan-price .per { font-size: 9.5px; color: var(--ink-4); }
.plan-desc { font-size: 10px; color: var(--ink-4); line-height: 1.55; }
.plan-features { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: var(--ink-2); }
.plan-features li { display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.plan-features .ico { width: 12px; height: 12px; flex: 0 0 12px; color: var(--ok); margin-top: 1px; }
.plan-features li.off { color: var(--ink-4); }
.plan-features li.off .ico { color: var(--ink-4); }
.plan-foot { margin-top: auto; }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.matrix { min-width: 620px; font-size: 11px; }
.matrix th, .matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.matrix thead th { background: var(--surface-2); font-size: 9.5px; letter-spacing: .04em; color: var(--ink-4); font-weight: 700; }
.matrix tbody td:first-child, .matrix thead th:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.matrix thead th:first-child { background: var(--surface-2); }
.matrix tbody tr:hover td { background: var(--surface-2); }
.matrix tbody tr:hover td:first-child { background: var(--surface-2); }
.matrix .matrix-group td { background: var(--brand-soft); color: var(--brand); font-weight: 650; text-align: left; }

/* --------------------------------------------------------------------------
   Phone / stage / terminal
   -------------------------------------------------------------------------- */
.phone { position: relative; width: 230px; aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 28px; border: 6px solid #1e293b; background: #0b1220; box-shadow: 0 26px 50px -28px rgba(15, 23, 42, .7); overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 56px; height: 13px; border-radius: 99px; background: #1e293b; z-index: 4; }
.phone-screen { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: linear-gradient(170deg, #16223b, #0b1220); }
.phone-status { position: absolute; top: 8px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 14px; font-size: 7px; color: rgba(255, 255, 255, .65); z-index: 5; }
.phone-content { position: absolute; inset: 0; padding: 30px 10px 12px; display: flex; flex-direction: column; gap: 8px; color: #e8efff; }
.phone-appbar { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 650; }
.phone-appbar .ph-logo { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(140deg, #60a5fa, #2563eb); font-size: 7px; }
.phone-hero { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(150deg, #34507a, #101d36); }
.phone-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 18, 32, .75), transparent 65%); }
.phone-hero-text { position: absolute; left: 8px; bottom: 7px; z-index: 1; font-size: 8px; font-weight: 650; }
.phone-row { display: flex; gap: 5px; overflow: hidden; }
.phone-tile { flex: 1; aspect-ratio: 3 / 4; border-radius: 5px; background: linear-gradient(150deg, #3f5d8a, #18243b); }
.phone-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 6.5px; color: rgba(255, 255, 255, .4); }
.phone-tabbar .on { color: #93c5fd; }

.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid #22355a; box-shadow: var(--shadow-2); background: radial-gradient(80% 70% at 70% 20%, rgba(37, 99, 235, .32), transparent 60%), linear-gradient(150deg, #10213f, #07152e 72%); }
.stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 32px 32px; }
.stage-glow { position: absolute; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 234, 212, .25), transparent 65%); left: 58%; top: 18%; filter: blur(6px); }
.stage-title { position: absolute; left: 14px; bottom: 34px; z-index: 2; color: #f4f8ff; }
.stage-title strong { font-size: 13px; }
.stage-title span { display: block; margin-top: 1px; font-size: 8.5px; color: rgba(244, 248, 255, .55); }
.stage-controls { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; color: rgba(244, 248, 255, .8); }
.stage-play { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #10213f; }
.stage-play .ico { width: 10px; height: 10px; margin-left: 1px; }
.stage-track { flex: 1; height: 2px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.stage-track span { display: block; height: 100%; width: 38%; background: #93c5fd; }
.stage-time { font-size: 7.5px; opacity: .65; }
.danmaku { position: absolute; z-index: 3; padding: 2px 7px; border-radius: 4px; background: rgba(11, 18, 32, .5); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 9.5px; white-space: nowrap; backdrop-filter: blur(2px); animation: dmFloat linear infinite; }
.danmaku.gold { color: #fde68a; }
.danmaku.teal { color: #bbf7d0; }
@keyframes dmFloat { from { transform: translateX(calc(100% + 20px)); } to { transform: translateX(calc(-100% - 320px)); } }

.terminal { background: #0b1220; border: 1px solid #1e2a44; border-radius: 9px; overflow: hidden; }
.terminal-head { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-bottom: 1px solid #1e2a44; background: #0d1628; }
.terminal-dots { display: flex; gap: 4px; }
.terminal-dots i { width: 6px; height: 6px; border-radius: 50%; background: #334155; }
.terminal-dots i:first-child { background: #f87171; } .terminal-dots i:nth-child(2) { background: #fbbf24; } .terminal-dots i:nth-child(3) { background: #34d399; }
.terminal-title { font-family: var(--mono); font-size: 9.5px; color: #7c8aa0; }
.terminal-body { max-height: 220px; overflow-y: auto; padding: 10px; font-family: var(--mono); font-size: 10px; line-height: 1.75; color: #a9b6c9; }
.terminal-body .t-dim { color: #5d6b80; }
.terminal-body .t-ok { color: #6ee7b7; }
.terminal-body .t-warn { color: #fcd34d; }
.terminal-body .t-err { color: #fca5a5; }
.terminal-body .t-cmd { color: #dbeafe; }
.terminal-body .t-prompt { color: #93c5fd; margin-right: 4px; }
.code-block { position: relative; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-family: var(--mono); font-size: 10px; line-height: 1.7; color: var(--ink-2); overflow-x: auto; white-space: pre; }
.code-block .copy-btn { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity var(--dur-2); }
.code-block:hover .copy-btn { opacity: 1; }

/* Heatmap */
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.heat-cell { aspect-ratio: 1; border-radius: 3px; background: var(--surface-3); transition: transform var(--dur-2); }
.heat-cell:hover { transform: scale(1.2); }
.heat-1 { background: #e0e7ff; } .heat-2 { background: #c7d2fe; } .heat-3 { background: #a5b4fc; } .heat-4 { background: #7c86f5; } .heat-5 { background: #4f46e5; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--ink-4); }
.heat-legend .heat-cell { width: 9px; height: 9px; aspect-ratio: auto; border-radius: 2px; }

/* Files */
.file-row { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line-soft); border-radius: 7px; }
.file-ico { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.file-ico .ico { width: 13px; height: 13px; }
.file-copy { flex: 1; min-width: 0; }
.file-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 8.5px; color: var(--ink-4); }
.file-act { color: var(--ink-4); }
.file-act:hover { color: var(--danger); }

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 16px; min-height: 100vh; padding: 16px; }
.auth-art { position: relative; overflow: hidden; border-radius: 18px; padding: 34px 38px; color: #f2f7ff; display: flex; flex-direction: column; background: radial-gradient(60% 60% at 20% 12%, rgba(37, 99, 235, .55), transparent 62%), radial-gradient(50% 50% at 86% 32%, rgba(59, 130, 246, .18), transparent 66%), linear-gradient(150deg, #0b1220, #111c33 62%, #172554); box-shadow: var(--shadow-3); }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent 82%); mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent 82%); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.auth-brand .brand-name { color: #fff; }
.auth-brand .brand-sub { color: rgba(255, 255, 255, .45); }
.auth-copy { position: relative; z-index: 1; margin-top: auto; margin-bottom: 30px; max-width: 480px; }
.auth-copy h1 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -.045em; font-weight: 700; }
.auth-copy h1 em { font-style: normal; color: #93c5fd; }
.auth-copy p { margin-top: 14px; font-size: 12px; line-height: 1.8; color: rgba(226, 238, 255, .62); max-width: 42ch; }
.auth-stats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.auth-stat b { display: block; font-size: 22px; font-weight: 650; color: #fff; letter-spacing: -.02em; }
.auth-stat span { display: block; margin-top: 1px; font-size: 8.5px; color: rgba(226, 238, 255, .45); letter-spacing: .05em; }
.auth-art-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; font-size: 8.5px; color: rgba(226, 238, 255, .4); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 36px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); }
.auth-card { width: min(360px, 100%); }
.auth-title { font-size: 24px; font-weight: 750; letter-spacing: -.03em; }
.auth-sub { margin-top: 6px; font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.auth-form .input { min-height: 38px; font-size: 12px; }
.auth-form .btn { height: 38px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.auth-demo { margin-top: 14px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; gap: 9px; }
.auth-demo .ico { width: 14px; height: 14px; color: var(--brand); flex: 0 0 14px; }
.auth-demo-copy { flex: 1; min-width: 0; }
.auth-demo-title { font-size: 10px; font-weight: 600; }
.auth-demo-sub { margin-top: 1px; font-size: 9.5px; color: var(--ink-4); }
.auth-foot { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--ink-4); }
.auth-foot a { color: var(--ink-4); }

/* --------------------------------------------------------------------------
   Install
   -------------------------------------------------------------------------- */
.install-wrap { max-width: 1060px; margin: 0 auto; padding: 26px 24px 48px; }
.install-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.install-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.install-side { position: sticky; top: 24px; }
.install-steps { display: flex; flex-direction: column; gap: 2px; }
.install-step { display: flex; align-items: flex-start; gap: 9px; padding: 9px; border-radius: 7px; }
.install-step .step-node { width: 22px; height: 22px; flex-basis: 22px; font-size: 8px; }
.install-step-title { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.install-step-desc { font-size: 9.5px; color: var(--ink-4); }
.install-step.is-active { background: var(--brand-soft); }
.install-step.is-active .step-node { background: var(--brand); border-color: var(--brand); color: #fff; }
.install-step.is-active .install-step-title { color: var(--brand); }
.install-step.is-done .step-node { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.install-main { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 480px; }
.install-pane { display: none; flex: 1; flex-direction: column; padding: 24px 26px 18px; }
.install-pane.is-active { display: flex; animation: panelIn var(--dur-3) var(--ease); }
.install-pane-title { font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.install-pane-desc { margin-top: 4px; font-size: 11px; color: var(--ink-3); line-height: 1.65; }
.install-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-size: 8.5px; font-weight: 650; letter-spacing: .06em; }
.install-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.install-form .span-full { grid-column: 1 / -1; }
.install-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.install-actions .right-actions { display: flex; gap: 7px; margin-left: auto; }
.install-test { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-4); }
.install-test.is-ok { color: var(--ok); }
.install-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 24px 10px 10px; }
.install-success.is-on { display: flex; }
.install-success-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); margin-bottom: 14px; }
.install-success-ico .ico { width: 26px; height: 26px; }
.install-success h2 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.install-success p { margin-top: 6px; font-size: 11px; color: var(--ink-3); line-height: 1.6; max-width: 42ch; }
.install-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; width: 100%; max-width: 500px; }
.install-summary .is-item { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); text-align: left; }
.install-summary .is-label { font-size: 8.5px; color: var(--ink-4); }
.install-summary .is-value { margin-top: 1px; font-size: 11px; font-weight: 600; }
.install-note { display: flex; gap: 7px; margin-top: 10px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface-2); font-size: 9.5px; color: var(--ink-3); line-height: 1.55; }
.install-note .ico { width: 12px; height: 12px; flex: 0 0 12px; color: var(--brand); margin-top: 1px; }

/* --------------------------------------------------------------------------
   Gallery / index
   -------------------------------------------------------------------------- */
.gallery-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 28px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.gallery-links { display: flex; gap: 4px; margin-left: 12px; }
.gallery-links a { padding: 6px 9px; border-radius: 6px; font-size: 11px; color: var(--ink-3); }
.gallery-links a:hover { background: var(--surface-2); color: var(--ink); }
.gwrap { max-width: 1320px; margin: 0 auto; padding: 0 28px 48px; }
.ghero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 36px; align-items: center; padding: 52px 0 38px; }
.gtitle { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.055em; font-weight: 750; }
.gtitle em { font-style: normal; color: var(--brand); }
.gdesc { margin-top: 14px; max-width: 48ch; font-size: 12px; line-height: 1.85; color: var(--ink-3); }
.gactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.gstats { display: flex; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.gstat b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.gstat span { display: block; margin-top: 1px; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.gpreview { position: relative; }
.gframe { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -45px rgba(15, 23, 42, .55); }
.gframe-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.gframe-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.gframe-bar i:first-child { background: #fca5a5; } .gframe-bar i:nth-child(2) { background: #fcd34d; } .gframe-bar i:nth-child(3) { background: #6ee7b7; }
.gframe-url { flex: 1; margin-left: 8px; height: 15px; padding: 0 6px; border: 1px solid var(--line-soft); border-radius: 4px; background: #fff; font-family: var(--mono); font-size: 7px; line-height: 13px; color: var(--ink-4); }
.gshot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.gshot iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform: scale(.45); transform-origin: top left; pointer-events: none; }
.gsection { padding-top: 30px; }
.gsection-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.gsection-title { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.gsection-sub { margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.gpalette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gswatch { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.gswatch i { display: block; height: 52px; }
.gswatch div { padding: 7px 8px; }
.gswatch b { display: block; font-size: 10px; font-weight: 650; }
.gswatch span { display: block; margin-top: 1px; font-family: var(--mono); font-size: 8px; color: var(--ink-4); }
.gspecs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.gspec { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.gspec .label { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }
.gspec .value { margin-top: 3px; font-size: 11.5px; font-weight: 600; }
.gspec .desc { margin-top: 1px; font-size: 9.5px; color: var(--ink-4); line-height: 1.45; }
.gcomponents { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.gcomponents .gdiv { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.ggroup { margin-top: 18px; }
.ggroup-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ggroup-head h3 { font-size: 11.5px; font-weight: 650; }
.ggroup-head .count { font-size: 8.5px; color: var(--ink-4); }
.ggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.screen-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.screen-card:hover { color: inherit; }
.screen-preview { position: relative; height: 96px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(140deg, var(--tint, #eef2ff), #fff); overflow: hidden; }
.screen-preview::before { content: ""; position: absolute; left: 9px; top: 9px; bottom: 9px; width: 22%; border-radius: 3px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(15, 23, 42, .04); }
.screen-preview::after { content: ""; position: absolute; left: 36%; right: 9px; top: 9px; height: 38%; border-radius: 3px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(15, 23, 42, .04); }
.screen-ui { position: absolute; left: 36%; right: 9px; top: 54%; bottom: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.screen-ui i { border-radius: 2px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(15, 23, 42, .03); }
.screen-icon { position: absolute; top: 50%; left: 14%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--tone, var(--brand)); border: 1px solid rgba(15, 23, 42, .05); }
.screen-icon .ico { width: 13px; height: 13px; }
.screen-no { position: absolute; top: 7px; right: 9px; font-family: var(--mono); font-size: 8px; color: var(--ink-4); }
.screen-body { display: flex; align-items: center; gap: 7px; padding: 9px 10px; }
.screen-copy { flex: 1; min-width: 0; }
.screen-title { font-size: 11px; font-weight: 650; }
.screen-desc { margin-top: 1px; font-size: 8.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-body > .ico { width: 11px; height: 11px; color: var(--ink-4); }
.gfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 9.5px; color: var(--ink-4); }
.gfoot .row { gap: 12px; }

/* Auth / install / gallery responsive */
@media (max-width: 1080px) {
  .ghero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 34px 0 26px; }
  .gpreview { max-width: 640px; }
  .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gpalette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gspecs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100vh; border: 0; border-radius: 0; padding: 32px 18px; }
  .install-shell { grid-template-columns: minmax(0, 1fr); }
  .install-side { position: static; }
  .install-steps { flex-direction: row; overflow-x: auto; }
  .install-step { min-width: 140px; }
}
@media (max-width: 760px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gpalette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gspecs { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .hero-chart { min-height: 160px; }
  .auth .auth-copy h1 { font-size: 34px; }
  .install-wrap { padding: 20px 14px 36px; }
  .install-form { grid-template-columns: minmax(0, 1fr); }
  .install-pane { padding: 20px 16px 16px; }
  .install-head { flex-direction: column; align-items: flex-start; }
  .gtitle { font-size: 36px; }
  .gallery-top { padding: 0 16px; }
  .gallery-links { display: none; }
  .gwrap { padding: 0 16px 32px; }
  .gshot iframe { transform: scale(.28); }
}
@media (max-width: 520px) {
  .ggrid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: 16px; }
  .hero-number { font-size: 40px; }
}

/* ==========================================================================
   macOS typography refinements
   ========================================================================== */
.hero-number { font-weight: 600 !important; letter-spacing: -.03em !important; }
.hero-eyebrow { text-transform: none !important; letter-spacing: .01em !important; font-size: 10.5px !important; font-weight: 600 !important; }
.hero-stats .hs-value { font-weight: 600 !important; font-size: 17px !important; }
.hero-stats .hs-label { font-size: 10px !important; }
.auth-title { font-size: 22px !important; font-weight: 600 !important; }
.auth-copy h1 { font-weight: 650 !important; letter-spacing: -.03em !important; }
.gtitle { font-weight: 650 !important; letter-spacing: -.04em !important; }
.mega-title { font-weight: 600 !important; }
.install-pane-title { font-weight: 600 !important; }
.pagebar-group { text-transform: none !important; letter-spacing: .02em !important; font-weight: 600 !important; }

/* ==========================================================================
   Settings workspace
   ========================================================================== */
.settings-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--header-h) + var(--pagebar-h) + 18px); padding: 7px; }
.settings-nav-title { padding: 8px 9px 5px; font-size: 10px; font-weight: 600; color: var(--ink-4); }
.settings-nav-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border-radius: 6px; font-size: 12px; color: var(--ink-3); text-align: left; transition: background var(--dur-2), color var(--dur-2); }
.settings-nav-item:hover { background: var(--surface-2); color: var(--ink); }
.settings-nav-item .ico { width: 14px; height: 14px; color: var(--ink-4); }
.settings-nav-item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 550; }
.settings-nav-item.is-active .ico { color: var(--brand); }
.settings-nav-foot { margin-top: 6px; padding: 10px 9px 7px; border-top: 1px solid var(--line-soft); font-size: 10px; line-height: 1.5; color: var(--ink-4); }
.settings-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.settings-section { padding: 20px; }
.settings-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.settings-section-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.settings-section-title .ico { width: 15px; height: 15px; color: var(--brand); }
.settings-section-desc { margin-top: 2px; font-size: 11px; color: var(--ink-4); line-height: 1.55; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-grid .full { grid-column: 1 / -1; }
.settings-actions-card { padding: 0; overflow: hidden; }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; background: var(--surface-2); }
.settings-actions .save-hint { font-size: 10px; color: var(--ink-4); }
.settings-warning { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid var(--warn-line); border-radius: 9px; background: var(--warn-soft); color: var(--warn); font-size: 11px; line-height: 1.55; }
.settings-warning .ico { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; }
.settings-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.settings-note { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.settings-note strong { display: block; font-size: 11px; font-weight: 600; }
.settings-note p { margin-top: 2px; font-size: 10px; color: var(--ink-4); line-height: 1.55; }
.settings-status { display: flex; align-items: center; gap: 6px; font-size: 10.5px; }
.settings-readonly { font-size: 10px; color: var(--ink-4); }
.field-row-note { font-size: 10px; color: var(--ink-4); line-height: 1.5; }
.settings-layout .setting-row { padding: 11px 0; }
@media (max-width: 960px) { .settings-layout { grid-template-columns: minmax(0, 1fr); } .settings-nav { position: static; } .settings-nav-items { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; } .settings-nav-item { white-space: nowrap; width: auto; } .settings-nav-foot { display: none; } }
@media (max-width: 640px) { .settings-grid, .settings-note-grid { grid-template-columns: minmax(0, 1fr); } .settings-section { padding: 16px; } .settings-actions { flex-wrap: wrap; } }

@media (max-width: 640px) {
  .build-sec .between { flex-wrap: wrap; }
  .build-sec .between > .row { width: 100%; justify-content: flex-end; }
  .build-sec .between > .xs { flex: 1 1 100%; }
}
.auth-panel .auth-brand .brand-name { color: var(--ink); }
.auth-panel .auth-brand .brand-sub { color: var(--ink-4); }
[data-api-panel][hidden] { display: none !important; }
.grp-name, .grp-meta { display: block; }
