/* Layout: one centred column (max 1200px). Hero = big headline over a coverflow stage of phone-shaped app cards
   lit by an atmospheric violet/midnight glow that shifts with the active app. Everything below stays quiet. */
@property --t1 { syntax: "<color>"; inherits: true; initial-value: #3430F7; }
@property --t2 { syntax: "<color>"; inherits: true; initial-value: #7168A1; }
:root {
  --electric: #3430F7;
  --violet: #7168A1;
  --midnight: #252957;
  --ink: #101014;
  --white: #FFFFFF;
  --ink-2: #17171F;
  --ink-3: #1E1E2A;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --muted: #A6A3C2;
  --soft: #CFCBEA;
  --lilac: #ADA6DD;
  --glass: rgba(255,255,255,.045);
  --ok: #42D392;
  --warn: #F4BE5A;
  --bad: #F27474;
  --font: "Bai Jamjuree", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 10px;
  --ease: cubic-bezier(.22,.8,.24,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); scroll-behavior: smooth; }
body { background: var(--ink); color: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(16,16,20,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .01em; text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--electric); display: grid; place-items: center; box-shadow: 0 0 18px rgba(52,48,247,.55); }
.logo-dot { color: var(--electric); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--soft); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--white); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav a.login { margin-left: 8px; border: 1px solid var(--line-2); color: var(--white); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { position: fixed; inset: calc(64px + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; background: rgba(16,16,20,.97); padding: 24px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 4px; }
.sheet a { text-decoration: none; font-size: 28px; font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.sheet a[aria-current="page"] { color: var(--lilac); }
.sheet p { margin-top: auto; color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .nav { display: none; } .burger { display: grid; } }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, transform .15s; }
.btn:hover { background: rgba(255,255,255,.09); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--electric); border-color: var(--electric); box-shadow: 0 8px 28px -8px rgba(52,48,247,.8); }
.btn.primary:hover { background: #4642FF; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.danger { border-color: rgba(242,116,116,.4); color: #FFC9C9; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(16,16,20,.5); display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.07); color: var(--soft); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip[data-s="Idea"] { color: #C3BEE6; }
.chip[data-s="Designing"] { color: #B9A6FF; background: rgba(150,120,255,.12); }
.chip[data-s="Developing"] { color: #8C89FF; background: rgba(52,48,247,.18); }
.chip[data-s="Testing"] { color: var(--warn); background: rgba(244,190,90,.12); }
.chip[data-s="Live"] { color: var(--ok); background: rgba(66,211,146,.12); }
.chip[data-s="Paused"] { color: #9A98A8; }
.chip[data-s="Archived"] { color: #6E6C7C; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.tag.demo { background: var(--warn); color: #241A00; }
.tag.off { background: rgba(255,255,255,.07); color: var(--muted); font-weight: 600; letter-spacing: 0; }
.tag.proto { background: rgba(242,116,116,.15); color: #FFB4B4; letter-spacing: 0; }

/* Hero */
.hero { padding-block: 40px 24px; }
.hero-copy { text-align: center; display: grid; gap: 14px; justify-items: center; }
.hero h1 { font-size: clamp(40px, 9vw, 92px); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
.hero h1 .l2 { display: block; color: var(--lilac); }
.hero .sub { color: var(--soft); font-size: clamp(16px, 2.2vw, 20px); max-width: 34ch; }

/* Showcase */
.stage {
  --pw: clamp(196px, 56vw, 268px);
  --step: calc(var(--pw) * .74);
  --drag: 0px;
  position: relative; margin-top: 28px; height: calc(var(--pw) * 2.11 + 56px);
  border-radius: var(--r-xl); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(60% 55% at 50% 42%, color-mix(in srgb, var(--t1) 55%, transparent), transparent 70%),
    radial-gradient(80% 70% at 12% 0%, color-mix(in srgb, var(--t2) 70%, transparent), transparent 70%),
    radial-gradient(70% 60% at 100% 100%, rgba(37,41,87,.9), transparent 70%),
    linear-gradient(160deg, #2A2752 0%, #1A1B36 55%, #121222 100%);
  transition: --t1 .8s var(--ease), --t2 .8s var(--ease);
  border: 1px solid var(--line);
}
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 60% at 50% 120%, rgba(16,16,20,.85), transparent 60%); }
@media (min-width: 900px) { .stage { --step: calc(var(--pw) * .98); } }
.sc-item {
  --ad: 0; --d: 0;
  position: absolute; left: 50%; top: 28px; width: var(--pw); aspect-ratio: 9 / 19; max-width: 100%;
  margin-left: calc(var(--pw) / -2);
  transform: translateX(calc(var(--d) * var(--step) + var(--drag))) scale(calc(1 - var(--ad) * .16));
  transform-origin: 50% 50%;
  opacity: calc(1 - var(--ad) * .28);
  z-index: calc(10 - var(--ad));
  transition: transform .6s var(--ease), opacity .45s var(--ease);
  border-radius: 30px; padding: 0; border: 0; background: none; text-align: center;
}
.stage.dragging .sc-item { transition: none; }
.sc-screen {
  position: absolute; inset: 0; border-radius: 30px; overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--a1) 70%, #1b1b30) 0%, color-mix(in srgb, var(--a2) 60%, #14142a) 100%);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center; transition: border-color .4s, box-shadow .5s, background .5s;
}
.sc-item.is-active .sc-screen {
  background: linear-gradient(170deg, var(--a1) 0%, color-mix(in srgb, var(--a1) 50%, var(--a2)) 55%, color-mix(in srgb, var(--a2) 40%, #101014) 100%);
  border: 7px solid #0A0A0E; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 80px -20px rgba(0,0,0,.8), 0 0 70px -10px color-mix(in srgb, var(--a1) 70%, transparent);
}
.sc-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-notch { position: absolute; top: 10px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 12px; background: #0A0A0E; opacity: 0; transition: opacity .4s; z-index: 2; }
.sc-home { position: absolute; bottom: 9px; left: 50%; width: 36%; height: 4px; margin-left: -18%; border-radius: 4px; background: rgba(255,255,255,.75); opacity: 0; transition: opacity .4s; z-index: 2; }
.sc-item.is-active .sc-notch, .sc-item.is-active .sc-home { opacity: 1; }
.sc-body { position: relative; display: grid; gap: 8px; justify-items: center; padding: 16px; color: var(--white); }
.sc-body .ico { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.12); display: grid; place-items: center; backdrop-filter: blur(6px); }
.sc-body .nm { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.sc-body .cat { font-size: 13px; color: rgba(255,255,255,.75); opacity: 0; transition: opacity .4s; }
.sc-item.is-active .sc-body .cat { opacity: 1; }
.sc-ph { position: absolute; left: 0; right: 0; bottom: 28px; font-size: 11px; color: rgba(255,255,255,.55); opacity: 0; transition: opacity .4s; }
.sc-item.is-active .sc-ph { opacity: 1; }
.sc-item:not(.is-active) .sc-body .ico { width: 46px; height: 46px; }
.sc-item:not(.is-active) .sc-body .nm { font-size: 16px; }
.sc-item[data-far] { visibility: hidden; }
.sc-screen.has-shot { background: #0A0A0E; }
.app-logo { object-fit: contain; display: block; }
.ico:has(.app-logo), .mini:has(.app-logo), .sc-ico:has(.app-logo) { background: #1B1B22 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ico:has(.app-logo.full), .mini:has(.app-logo.full), .sc-ico:has(.app-logo.full) { background: none !important; box-shadow: none; backdrop-filter: none; }
.app-logo.full { width: 100%; height: 100%; }
.sc-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 10px 16px; background: linear-gradient(transparent, rgba(10,10,14,.92)); font-weight: 600; font-size: 15px; color: var(--white); transition: opacity .4s; z-index: 1; }
.sc-item.is-active .sc-label { opacity: 0; }
.sc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: linear-gradient(150deg, var(--a1, #3430F7), var(--a2, #7168A1)); }
.sc-arrows { position: absolute; inset: 50% 16px auto; display: flex; justify-content: space-between; pointer-events: none; z-index: 20; transform: translateY(-50%); }
.sc-arrows .icon-btn { pointer-events: auto; }
@media (max-width: 640px) { .sc-arrows { display: none; } }
.sc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.sc-info { display: grid; gap: 4px; min-width: 0; }
.sc-info .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-info .nm { font-size: 22px; font-weight: 700; }
.sc-info .ds { color: var(--muted); font-size: 15px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 8px; border: 0; background: rgba(255,255,255,.22); transition: width .35s var(--ease), background .3s; position: relative; }
.dots button::after { content: ""; position: absolute; inset: -10px -4px; }
.dots button[aria-current="true"] { width: 26px; background: var(--lilac); }
.sc-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Sections */
.section { padding-block: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 46ch; margin-top: 8px; }

/* App catalog */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.app-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); min-width: 0; }
.app-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cover { position: relative; aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; background: radial-gradient(80% 90% at 30% 10%, color-mix(in srgb, var(--a1) 85%, transparent), transparent 70%), linear-gradient(150deg, color-mix(in srgb, var(--a2) 80%, #101014), #15152a); overflow: hidden; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .ico { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.cover .ph-note { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.6); }
.app-card .body { padding: 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.app-card .t { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-card .t h3 { font-size: 20px; font-weight: 700; min-width: 0; }
.app-card .cat { color: var(--lilac); font-size: 14px; font-weight: 500; }
.app-card .ds { color: var(--muted); font-size: 15px; }
.app-card .meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.app-card .meta strong { color: var(--white); font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--soft); min-height: 36px; }
.filters button[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); font-weight: 600; }
.empty { padding: 32px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); text-align: center; }

/* Live / growth */
.live { position: relative; border-radius: var(--r-xl); padding: clamp(20px, 4vw, 40px); background: radial-gradient(70% 90% at 0% 0%, rgba(113,104,161,.35), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(52,48,247,.22), transparent 60%), var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.live-head h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.pulse.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(66,211,146,.6); animation: pulse 2s infinite; }
.pulse.demo { background: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(66,211,146,0); } 100% { box-shadow: 0 0 0 0 rgba(66,211,146,0); } }
.metrics { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
@media (max-width: 480px) { .metric .v { font-size: 24px; } .metric { padding: 14px; } .live { padding: 18px 14px; } }
.metric { padding: 16px; border-radius: var(--r-md); background: rgba(16,16,20,.55); border: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.metric .k { font-size: 13px; color: var(--muted); }
.metric .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric .v.dim { color: rgba(255,255,255,.35); }
.metric .s { font-size: 12px; color: var(--muted); }
.up { color: var(--ok); } .down { color: var(--bad); }
.live-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); margin-top: 20px; background: rgba(16,16,20,.4); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td .dim { color: rgba(255,255,255,.35); }

/* About */
.about { display: grid; gap: 24px; grid-template-columns: 1.2fr 1fr; align-items: start; }
.about h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
.about .txt { display: grid; gap: 16px; color: var(--soft); font-size: 18px; }
.about ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.about li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.about li strong { font-size: 18px; }
.about li span { color: var(--muted); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* Detail */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); text-decoration: none; font-weight: 500; margin-bottom: 20px; min-height: 44px; }
.detail { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.detail-visual { border-radius: var(--r-xl); padding: 28px; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--a1) 60%, transparent), transparent 70%), linear-gradient(160deg, #2A2752, #121222); border: 1px solid var(--line); }
.detail-visual .sc-item { position: relative; left: auto; top: auto; margin: 0; transform: none; opacity: 1; width: min(240px, 100%); }
.detail h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; }
.detail .lead { font-size: 19px; color: var(--soft); max-width: 52ch; }
.detail .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { padding: 14px 16px; border-radius: var(--r-md); background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.fact .k { font-size: 13px; color: var(--muted); }
.fact .v { font-weight: 600; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: var(--r-md); background: var(--glass); }
.features li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--electric); flex: none; transform: translateY(-1px); }
.gallery { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.gallery img { width: 160px; aspect-ratio: 9/19; object-fit: cover; border-radius: 18px; scroll-snap-align: start; border: 1px solid var(--line); flex: none; }
.stack { display: grid; gap: 24px; min-width: 0; }
.stack h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } .detail-visual { padding: 24px; } }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--white); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 100; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Founder area (Thai UI) */
.dash { display: grid; gap: 20px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 700; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: rgba(244,190,90,.08); border: 1px solid rgba(244,190,90,.25); color: #F7DDA8; font-size: 14px; }
.notice svg { flex: none; margin-top: 2px; }
.panel { padding: clamp(16px, 3vw, 24px); border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 14px; min-width: 0; align-content: start; }
.panel h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.panel .hint { color: var(--muted); font-size: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-cols { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }
.ov { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ov .metric { background: var(--ink-2); }
.ov .metric .v { font-size: 34px; }
.ov .metric .s { min-height: 1.5em; }
.app-rows { display: grid; gap: 0; }
.app-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.app-row:last-child { border-bottom: 0; }
.app-row .mini { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, var(--a1), var(--a2)); }
.app-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row .sub { font-size: 13px; color: var(--muted); }
.app-row .acts { display: flex; gap: 8px; align-items: center; }
.app-row select { min-height: 36px; border-radius: 999px; padding: 4px 10px; background: var(--ink-3); border: 1px solid var(--line-2); font-size: 14px; }
@media (max-width: 520px) { .app-row { grid-template-columns: 40px minmax(0, 1fr); } .app-row .acts { grid-column: 2; } }
.todo { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--electric); flex: none; margin-top: 2px; }
.todo .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.todo .txt small { display: block; color: var(--muted); font-size: 13px; }
.todo li.done .txt > span { text-decoration: line-through; color: var(--muted); }
.revisit { display: grid; gap: 10px; }
.revisit a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; padding: 10px; border-radius: var(--r-md); background: var(--glass); }
.revisit a:hover { background: rgba(255,255,255,.08); }
.revisit .mini { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(150deg, var(--a1), var(--a2)); }
.revisit small { color: var(--muted); display: block; font-size: 13px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-size: 14px; font-weight: 600; color: var(--soft); }
.field .help { font-size: 13px; color: var(--muted); }
.field input[type="text"], .field input[type="url"], .field input[type="password"], .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--ink-3); font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:disabled { opacity: .5; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.icons { display: flex; gap: 8px; flex-wrap: wrap; }
.icons label { position: relative; }
.icons input { position: absolute; opacity: 0; inset: 0; }
.icons span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--ink-3); cursor: pointer; }
.icons input:checked + span { background: var(--electric); border-color: var(--electric); }
.icons input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 84px; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--ink-3); }
.thumb.wide { width: 160px; aspect-ratio: 16/10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16,16,20,.8); display: grid; place-items: center; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { flex: 1; min-width: 0; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--ink) 30%); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .tr { width: 44px; height: 26px; border-radius: 26px; background: rgba(255,255,255,.15); position: relative; transition: background .2s; flex: none; }
.switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.switch input:checked + .tr { background: var(--warn); }
.switch input:checked + .tr::after { transform: translateX(18px); }
.switch input:focus-visible + .tr { outline: 2px solid var(--lilac); outline-offset: 2px; }
.login-card { max-width: 480px; margin: 0 auto; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(5,5,10,.7); backdrop-filter: blur(4px); }
.modal-box { width: 100%; max-width: 520px; max-height: 100%; overflow: auto; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.modal-box h2 { font-size: 22px; font-weight: 700; }
.modal-box p { color: var(--soft); }
.modal-box textarea { width: 100%; min-height: 220px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line-2); }
.modal-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
