/* SINTETIKO Hub. Light, Airbnb-like: coral accent, Inter, pill buttons, hairlines, generous white space. 8 px grid. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --soft-2: #efefef;
  --text: #222222;
  --sub: #6a6a6a;
  --muted: #8a8a8a;
  --line: #ebebeb;
  --line-strong: #dddddd;

  --accent: #ff385c;
  --accent-deep: #d70466;
  --accent-soft: #fff1f4;
  --accent-tint: #fff8fa;
  --grad: linear-gradient(to right, #e61e4d, #d70466);
  --grad-hover: linear-gradient(to right, #d70466, #bd1e59);

  --ok: #008a05;
  --ok-soft: #ecf8ee;
  --ok-line: #b7ebc0;
  --warn: #b25e00;
  --warn-soft: #fff6e8;
  --warn-line: #f8d49d;
  --bad: #c13515;
  --bad-soft: #fef3f2;

  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-l: 0 8px 28px rgba(0, 0, 0, 0.16);

  --r-xl: 24px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --r-pill: 9999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --top-h: 80px;
  accent-color: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
main:focus, h1:focus { outline: none; }
[hidden] { display: none !important; }

.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; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--text); color: #fff; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; }
.skip:focus { top: 16px; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 0.92em; font-weight: 500; }
.wrap { max-width: 1232px; margin: 0 auto; padding: 0 32px; }
.page { padding-top: 48px; padding-bottom: 120px; }
.loading { min-height: 50vh; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.top-in { height: var(--top-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; border-radius: var(--r-sm); }
.brand img { height: 12px; width: auto; }
.brand-hub { font-size: 16px; font-weight: 600; line-height: 1; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); color: var(--sub); font-weight: 500; white-space: nowrap; transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.nav-link:hover { background: var(--soft); color: var(--text); }
.nav-link[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--soft); }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; vertical-align: 1px; }
.lang-toggle { display: none; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--sub); }
.lang-toggle:hover { background: var(--soft); color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }

.profile-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 6px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; transition: box-shadow 0.15s var(--ease); }
.profile-btn:hover, .profile-btn[aria-expanded="true"] { box-shadow: var(--shadow-s); }
.profile-name { font-weight: 600; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-l); z-index: 60; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.menu-head b { font-weight: 600; overflow-wrap: anywhere; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 8px; font-size: 14px; }
.menu-item { display: flex; width: 100%; align-items: center; height: 40px; padding: 0 8px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; text-align: left; }
.menu-item:hover { background: var(--soft); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.btn:hover { border-color: var(--text); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { border: 0; color: #fff; background: var(--grad); }
.btn-primary:hover { background: var(--grad-hover); }
.btn-primary:disabled { background: var(--soft-2); color: var(--muted); cursor: not-allowed; }
.btn-dark { border: 0; background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-danger { border: 0; background: var(--bad); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { border-color: transparent; background: var(--soft); }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; color: var(--sub); transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-danger:hover { background: var(--bad-soft); color: var(--bad); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; border-radius: 4px; }
.link:hover { color: var(--accent-deep); }

.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--sub); white-space: nowrap; transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.seg-btn:hover { color: var(--text); background: var(--soft); }
.seg-btn[aria-pressed="true"], .seg-btn[aria-current="page"] { background: var(--text); color: #fff; }
.seg-sm { padding: 2px; }
.seg-sm .seg-btn { height: 28px; padding: 0 10px; font-size: 12px; }
.seg-n { font-size: 12px; opacity: 0.7; font-weight: 500; }
.seg-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }

.select { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.select select { appearance: none; -webkit-appearance: none; height: 40px; max-width: 100%; padding: 0 40px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; text-overflow: ellipsis; }
.select select:hover { border-color: var(--text); }
.select .ic { position: absolute; right: 16px; pointer-events: none; color: var(--sub); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--sub); font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.pill-coral { background: var(--accent-soft); color: var(--accent-deep); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--sub); text-transform: uppercase; letter-spacing: 0.04em; }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); font-weight: 500; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.empty { padding: 48px 24px; text-align: center; color: var(--sub); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); display: grid; justify-items: center; gap: 16px; }
.empty-page { text-align: center; display: grid; justify-items: center; gap: 16px; padding-top: 120px; }
.empty-page h1 { font-size: 24px; font-weight: 600; }
.progress { display: inline-block; width: 96px; height: 6px; border-radius: var(--r-pill); background: var(--soft-2); overflow: hidden; flex: none; }
.progress span { display: block; height: 100%; background: var(--text); border-radius: inherit; transition: width 0.3s var(--ease); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.page-head h1, .profile h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.head-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crumb { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--sub); margin-bottom: 24px; flex-wrap: wrap; }
.crumb a { border-radius: 4px; }
.crumb a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumb span[aria-current] { color: var(--text); font-weight: 500; }

/* ---------- Home ---------- */
.search { position: relative; display: flex; align-items: center; width: 400px; max-width: 100%; height: 48px; padding: 0 16px; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; color: var(--sub); transition: box-shadow 0.15s var(--ease), border-color 0.15s var(--ease); }
.search:hover { box-shadow: var(--shadow-s); }
.search:focus-within { border-color: var(--text); box-shadow: var(--shadow-s); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.cat + .cat { margin-top: 56px; }
.cat-title { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 48px 24px; }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { aspect-ratio: 400 / 250; border-radius: var(--r-lg); background: var(--soft); overflow: hidden; }
.card-media .pv { width: 100%; height: 100%; transition: transform 0.4s var(--ease); }
.card:hover .card-media .pv { transform: scale(1.025); }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.stretch { border-radius: 4px; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); z-index: 1; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--text); outline-offset: 6px; }
.card-tag { margin-top: 4px; color: var(--sub); }
.card-match { margin-top: 8px; font-size: 13px; color: var(--accent-deep); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; font-size: 14px; font-weight: 600; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.chip:hover { border-color: var(--text); box-shadow: var(--shadow-s); }
.chip-off { color: var(--muted); background: var(--soft); border-color: transparent; }
.chip-off:hover { border-color: transparent; box-shadow: none; }
.chip-soon { font-size: 12px; font-weight: 500; }
.chip-soon::before { content: "·"; margin-right: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--sub); }
.chips + .card-foot { margin-top: 16px; padding-top: 0; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; }
.count { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--text); font-size: 12px; font-weight: 600; }
.count-coral { background: var(--accent-soft); color: var(--accent-deep); }
.count-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }

.todo { margin-bottom: 56px; }
.todo-list { list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); }
.todo-row { display: flex; align-items: center; gap: 16px; padding: 16px 24px; }
.todo-row + .todo-row { border-top: 1px solid var(--line); }
.todo-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-md); background: var(--soft); }
.todo-ic.live { background: var(--accent-soft); color: var(--accent-deep); }
.todo-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.todo-main b { font-weight: 600; overflow-wrap: break-word; }
.todo-main .muted { font-size: 14px; }

/* ---------- App page ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: center; margin-bottom: 72px; }
.hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.lead { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--sub); max-width: 56ch; }
.seg-platform { margin-top: 32px; }
.plat-single { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; height: 36px; padding: 0 14px 0 12px; border-radius: var(--r-pill); background: var(--soft); font-size: 14px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.hero-ver { font-size: 14px; }
.hero-media { aspect-ratio: 400 / 250; background: var(--soft); border-radius: var(--r-xl); overflow: hidden; }
.hero-media .pv { width: 100%; height: 100%; }
.soon-pill { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: var(--r-pill); background: var(--soft); color: var(--sub); font-weight: 600; }

.app-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.app-cols.solo { grid-template-columns: minmax(0, 800px); }
.app-cols:not(.solo) > section { padding-top: 25px; }
.versions { list-style: none; border-top: 1px solid var(--line); }
.ver { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ver-id { display: grid; place-items: center; width: 48px; height: 32px; border-radius: var(--r-sm); background: var(--soft); font-size: 13px; font-weight: 600; }
.ver-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 32px; }
.ver-top h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 600; }
.ver-main p { margin-top: 4px; color: var(--sub); max-width: 68ch; }
.ver-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; font-size: 14px; }
.ver-actions { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.side { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; }
.side .sec-title { font-size: 18px; }
.side-block + .side-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.side-head h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.side-block > .muted { font-size: 14px; }
.side-list { list-style: none; }
.side-round { display: grid; gap: 4px; margin: 0 -12px; padding: 12px; border-radius: var(--r-md); font-size: 14px; }
.side-round:hover { background: var(--soft); }
.side-round-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.side-round b { font-weight: 600; }
.side-fb { padding: 12px 0; font-size: 14px; }
.side-fb + .side-fb { border-top: 1px solid var(--line); }
.side-fb p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.side-fb .muted { font-size: 13px; }
.side-run { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-deep); font-size: 14px; font-weight: 600; }
.side-run .muted { margin-left: auto; color: var(--accent-deep); font-weight: 500; }

/* ---------- Review ---------- */
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 48px; color: var(--sub); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }
.tab:focus-visible { outline-offset: -2px; border-radius: 4px; }
.rows { list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); }
.rows > li + li { border-top: 1px solid var(--line); }
.row-link { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 24px; padding: 20px 24px; transition: background 0.15s var(--ease); }
.rows > li:first-child .row-link { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.rows > li:last-child .row-link { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.rows > li:only-child .row-link { border-radius: var(--r-lg); }
.row-link:hover { background: var(--soft); }
.row-link:focus-visible { outline-offset: -2px; }
.round-row-main { display: grid; gap: 4px; min-width: 0; }
.round-row-title { font-size: 16px; font-weight: 600; }
.round-row-side { display: flex; align-items: center; gap: 16px; }
.row-chev { color: var(--muted); }

.round-page .crumb, .round-head, .pcards, .round-runs, .round-bar { max-width: 880px; margin-left: auto; margin-right: auto; }
.round-head { margin-bottom: 40px; }
.round-head h1 { margin-top: 8px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.try-preview { margin-top: 24px; }
.note-box { margin-top: 24px; padding: 12px 16px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 500; }
.pcards { list-style: none; display: grid; gap: 24px; }
.pc { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; background: #fff; transition: border-color 0.2s var(--ease); }
.pc.is-approved { border-color: var(--ok-line); }
.pc.is-changes { border-color: var(--warn-line); }
.pc.is-no { background: #fcfcfc; }
.pc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.pc-id { display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--text); color: #fff; font-size: 12px; }
.pc-area { font-size: 14px; font-weight: 600; color: var(--sub); }
.pc-title { margin: 12px 0 24px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.quote { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--soft); }
.quote p { margin-top: 4px; font-size: 16px; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-bottom: 24px; }
.pc-grid:empty { display: none; }
.pc-grid p { margin-top: 4px; }
.bullets { margin-top: 4px; padding-left: 20px; }
.bullets li + li { margin-top: 4px; }
.pc-line { margin-bottom: 16px; }
.pc-line .lbl { margin-bottom: 4px; }
.flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.flow { padding: 16px 20px; border-radius: var(--r-lg); background: var(--soft); }
.flow-new { background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.steps { list-style: none; counter-reset: step; margin-top: 12px; display: grid; gap: 8px; }
.steps li { counter-increment: step; display: flex; gap: 12px; font-size: 14px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; }
.flow-new .steps li::before { border-color: #ffc7d3; color: var(--accent-deep); }
.ba { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.shot { margin: 0; }
.shot a { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--sub); }
.try { margin-top: 8px; }
.pc-decide { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.decs { display: flex; flex-wrap: wrap; gap: 8px; }
.dec { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; font-size: 14px; font-weight: 600; transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease); }
.dec:hover:not(:disabled) { border-color: var(--text); }
.dec:disabled { cursor: not-allowed; opacity: 0.55; }
.dec[aria-pressed="true"]:disabled { opacity: 1; }
.dec-approved[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.dec-changes[aria-pressed="true"] { background: var(--warn); border-color: var(--warn); color: #fff; }
.dec-no[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.note-form { margin-top: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .fb-edit textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; font-size: 16px; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.field input { height: 48px; padding: 0 16px; }
.field textarea, .fb-edit textarea { min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .fb-edit textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.form-error { color: var(--bad); font-size: 14px; font-weight: 500; }
.note-form .form-error { margin-top: 8px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.form-actions.start { justify-content: flex-start; }
.my-note { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 12px 16px; border-radius: var(--r-md); background: var(--warn-soft); font-size: 14px; }
.my-note span { overflow-wrap: anywhere; white-space: pre-wrap; }
.my-note .link { white-space: nowrap; flex: none; }
.others { list-style: none; margin-top: 16px; display: grid; gap: 4px; font-size: 13px; color: var(--sub); }
.others b { color: var(--text); font-weight: 600; }
.round-runs { margin-top: 48px; }

.round-bar { position: sticky; bottom: 24px; margin-top: 40px; z-index: 30; }
.round-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 24px; border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.97); box-shadow: var(--shadow-l); }
.round-progress { display: flex; align-items: center; gap: 16px; min-width: 0; font-size: 14px; }
.round-progress b { font-weight: 600; }
.round-bar .pill { height: 48px; padding: 0 24px; font-size: 14px; }

/* Feedback */
.fb-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.fb-group + .fb-group { margin-top: 40px; }
.fb-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-left: 20px; }
.fb-group-head h2 { font-size: 17px; font-weight: 600; }
.fb-list { list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); }
.fb { display: grid; grid-template-columns: auto 112px minmax(0, 1fr) auto; gap: 16px; padding: 20px; align-items: start; transition: background 0.15s var(--ease); }
.fb-list:not(:has(.check)) .fb { grid-template-columns: 112px minmax(0, 1fr) auto; }
.fb + .fb { border-top: 1px solid var(--line); }
.fb:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.fb:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.fb:only-child { border-radius: var(--r-lg); }
.fb.is-selected { background: var(--accent-tint); }
.check { display: grid; place-items: center; width: 24px; height: 24px; cursor: pointer; }
.fb .check { margin-top: 20px; }
.check input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.thumb { display: grid; place-items: center; width: 112px; height: 72px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--soft); color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.fb-main { min-width: 0; }
.fb-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-weight: 500; min-height: 24px; }
.kind { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--soft); }
.kind-cambio { background: var(--accent-soft); color: var(--accent-deep); }
.kind-bug { background: var(--bad-soft); color: var(--bad); }
.kind-idea { background: var(--warn-soft); color: var(--warn); }
.kind-me_gusta { background: var(--ok-soft); color: var(--ok); }
.fb-text { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-edit { margin-top: 8px; }
.fb-ctx { margin: 12px 0 0; display: grid; gap: 4px; font-size: 13px; }
.fb-ctx div { display: flex; gap: 12px; }
.fb-ctx dt { flex: none; width: 72px; color: var(--sub); }
.fb-ctx dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fb-actions { display: flex; gap: 4px; }

.sendbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px); }
.sendbar-in { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 24px; border-radius: var(--r-pill); background: var(--text); color: #fff; box-shadow: var(--shadow-l); white-space: nowrap; }
.sendbar-in b { font-weight: 600; margin-right: 8px; }
.sendbar .btn-ghost { color: #fff; }
.sendbar .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.sendbar :focus-visible { outline-color: #fff; }

/* Runs */
.run { padding: 20px 24px; }
.run-head { display: flex; align-items: center; gap: 16px; }
.run-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-md); background: var(--soft); }
.run-ic.live { background: var(--accent-soft); color: var(--accent-deep); }
.run-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.run-main b { font-weight: 600; }
.run-summary, .run > .link, .log { margin-left: 56px; }
.run-summary { margin-top: 12px; overflow-wrap: anywhere; }
.run > .link { margin-top: 8px; }
.log { margin-top: 12px; }
.log summary { display: inline-flex; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; border-radius: 4px; list-style: none; }
.log summary::-webkit-details-marker { display: none; }
.log summary::before { content: "+"; width: 12px; color: var(--sub); }
.log[open] summary::before { content: "-"; }
.log ol { margin-top: 8px; padding: 12px 16px 12px 40px; border-radius: var(--r-md); background: var(--soft); font-family: var(--mono); font-size: 12px; line-height: 1.6; max-height: 280px; overflow: auto; overflow-wrap: anywhere; }

/* ---------- Activity ---------- */
.day + .day { margin-top: 40px; }
.day-title { font-size: 14px; font-weight: 600; color: var(--sub); margin-bottom: 8px; }
.day-title::first-letter { text-transform: uppercase; }
.act-list { list-style: none; border-top: 1px solid var(--line); }
.act { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.act-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--sub); }
.act-version { background: var(--accent-soft); color: var(--accent-deep); }
.act-round { background: var(--ok-soft); color: var(--ok); }
.act-run { background: var(--warn-soft); color: var(--warn); }
.act-main { min-width: 0; }
.act-title { font-weight: 500; overflow-wrap: anywhere; }
.act-title a { border-radius: 4px; }
.act-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.act-detail { margin-top: 2px; font-size: 14px; color: var(--sub); overflow-wrap: anywhere; }
.act-main .small { margin-top: 4px; }
.act-time { white-space: nowrap; padding-top: 2px; }

/* ---------- Spec ---------- */
.spec-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.connect { position: sticky; top: calc(var(--top-h) + 24px); }
.connect > .muted { font-size: 14px; }
.kv { margin-top: 16px; display: grid; gap: 8px; }
.copyline { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--r-md); background: var(--soft); }
.copyline code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.copyline-block { align-items: flex-start; }
.copyline-block code { white-space: pre-wrap; padding: 6px 0; line-height: 1.5; }
.connect > .small { margin-top: 16px; }
.md { max-width: 72ch; }
.md h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; }
.md h3 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
.md h4 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.md > :first-child { margin-top: 0; }
.md p, .md ul, .md ol, .md pre, .md blockquote { margin: 0 0 12px; }
.md ul, .md ol { padding-left: 24px; }
.md li + li { margin-top: 4px; }
.md li.sub { margin-left: 24px; list-style-type: circle; color: var(--sub); }
.md code { font-family: var(--mono); font-size: 13px; background: var(--soft); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.md pre { padding: 16px; border-radius: var(--r-md); background: var(--soft); overflow: auto; }
.md pre code { padding: 0; background: none; }
.md blockquote { padding: 8px 16px; border-left: 3px solid var(--line-strong); color: var(--sub); }
.md a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Profile and sign in ---------- */
.profile h1 { margin-bottom: 32px; }
.profile-card { max-width: 480px; display: grid; gap: 32px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-xl); }
.profile-who { display: flex; align-items: center; gap: 16px; }
.profile-who .avatar { width: 56px; height: 56px; font-size: 20px; }
.profile-who b { font-size: 18px; font-weight: 600; }
.profile-card .field { justify-items: start; }
.signin-page { display: grid; place-items: center; min-height: calc(100dvh - var(--top-h) - 1px); padding-top: 48px; padding-bottom: 48px; }
.signin-card { width: 100%; max-width: 416px; padding: 40px 32px; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.signin-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.signin-card > .muted, .dlg > .muted { margin-top: 8px; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form .btn-block { margin-top: 8px; }

.dlg { width: min(440px, calc(100vw - 32px)); padding: 32px; border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-l); color: var(--text); }
.dlg::backdrop { background: rgba(0, 0, 0, 0.4); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px -8px 0 0; }
.dlg-head h2 { font-size: 22px; font-weight: 700; }
.confirm p { font-size: 16px; font-weight: 500; }
.confirm .form-actions { margin-top: 24px; }

.toasts { position: fixed; top: calc(var(--top-h) + 16px); left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 12px 20px; border-radius: var(--r-pill); background: var(--text); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-l); opacity: 0; transform: translateY(-8px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast-error { background: var(--bad); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-bottom: 56px; }
  .hero-media { max-width: 640px; }
  .app-cols, .spec-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .app-cols:not(.solo) > section { padding-top: 0; }
  .connect { position: static; }
}

@media (max-width: 760px) {
  :root { --top-h: 64px; }
  .wrap { padding: 0 16px; }
  .page { padding-top: 24px; padding-bottom: 120px; }
  .top-in { gap: 12px; }
  .top-in.has-nav { height: auto; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand right" "nav nav"; row-gap: 0; padding-top: 8px; }
  .top-in.has-nav .brand { grid-area: brand; height: 48px; }
  .top-in.has-nav .top-right { grid-area: right; }
  .top-in.has-nav .nav { grid-area: nav; margin: 0 -16px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav { gap: 0; }
  .nav-link { height: 36px; padding: 0 10px; font-size: 14px; gap: 6px; }
  .brand img { height: 11px; }
  .brand { gap: 10px; }
  .brand-hub { padding-left: 10px; font-size: 15px; }
  .profile-name { display: none; }
  .profile-btn { height: 44px; padding: 0 8px 0 4px; gap: 4px; }
  .menu { position: fixed; top: 64px; right: 16px; left: 16px; width: auto; }
  .page-head { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 24px; }
  .page-head h1, .profile h1 { font-size: 28px; }
  .search { width: 100%; }
  .select, .select select { width: 100%; }
  .head-tools { flex-wrap: nowrap; }
  .head-tools .select { flex: 1; min-width: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .todo { margin-bottom: 40px; }
  .todo-row { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .todo-main { flex: 1 1 calc(100% - 56px); }
  .todo-row .btn { margin-left: 52px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .hero-media { border-radius: var(--r-lg); }
  .ver { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .side { padding: 20px; }
  .tabs { gap: 24px; margin: 0 -16px 24px; padding: 0 16px; }
  .row-link { grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; padding: 16px; }
  .round-row-side { grid-column: 1; grid-row: 2; flex-wrap: wrap; gap: 8px 12px; }
  .row-chev { grid-column: 2; grid-row: 1 / span 2; }
  .round-head h1 { font-size: 26px; }
  .pc { padding: 20px; border-radius: var(--r-lg); }
  .pc-title { font-size: 19px; margin-bottom: 20px; }
  .pc-grid, .flows { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dec { height: 44px; padding: 0 14px 0 12px; flex: 1 1 auto; justify-content: center; }
  .round-bar { bottom: 16px; }
  .round-bar-in { border-radius: var(--r-lg); padding: 12px 12px 12px 16px; }
  .round-progress { gap: 12px; }
  .round-progress .progress { width: 48px; }
  .round-bar .btn { height: 44px; padding: 0 16px; }
  .hide-sm { display: none; }
  .fb-tools { margin-bottom: 24px; }
  .fb-tools .seg { width: 100%; }
  .fb-tools .seg-btn { flex: 1; justify-content: center; padding: 0 8px; }
  .fb-group-head { padding-left: 16px; }
  .fb { grid-template-columns: auto 72px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .fb-list:not(:has(.check)) .fb { grid-template-columns: 72px minmax(0, 1fr); }
  .fb .check { margin-top: 12px; }
  .thumb { width: 72px; height: 48px; border-radius: var(--r-sm); }
  .fb-actions { grid-column: -2 / -1; justify-self: start; margin: -4px 0 0 -8px; }
  .fb-ctx dt { width: 64px; }
  .sendbar { bottom: 16px; width: calc(100vw - 32px); }
  .sendbar-in { padding: 8px 8px 8px 16px; }
  .sendbar-in b { margin-right: auto; }
  .run { padding: 16px; }
  .run-head { flex-wrap: wrap; gap: 12px; }
  .run-head .pill { margin-left: 52px; }
  .run-summary, .run > .link, .log { margin-left: 0; }
  .act { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .act-time { grid-column: 2; padding-top: 0; margin-top: -8px; }
  .profile-card, .signin-card { padding: 24px; }
  .signin-page { place-items: start center; padding-top: 24px; min-height: 0; }
  .dlg { padding: 24px; }
}

@media (max-width: 440px) {
  .top-right .seg-sm { display: none; }
  .lang-toggle { display: inline-flex; }
  .top-right { gap: 4px; }
  .top-right .btn-sm { padding: 0 12px; }
}

@media (hover: none) {
  .card:hover .card-media .pv { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
