/* DocFila Polls */
.ps { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.ps main { flex: 1; }
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav-r { display: flex; align-items: center; gap: 6px; }
.foot { max-width: 1180px; width: 100%; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.foot-links a:hover { color: var(--ink); }
.sec-head { max-width: 1180px; margin: 0 auto 26px; display: grid; gap: 10px; }
.sec-head .h2 { margin: 0; }

/* Landing */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(36px, 7vw, 96px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px); }
.hero-eyebrow { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 26px; }
.hero-title { margin: 0 0 24px; text-wrap: balance; }
.hero-title em, .closer-title em { font-style: italic; background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-lede { max-width: 33em; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 28px 0 0; color: var(--ink-2); font-size: 13.5px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof .ico-wrap { color: var(--good); }
.demo { position: relative; }
.demo::before { content: ""; position: absolute; inset: -14% -8%; background: radial-gradient(55% 50% at 70% 30%, rgba(31,163,221,.18), transparent 70%), radial-gradient(50% 55% at 25% 75%, rgba(59,73,223,.2), transparent 70%); filter: blur(12px); z-index: -1; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-3); padding: 24px; transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transition: transform .6s var(--ease-out); }
.demo-card:hover { transform: none; }
.demo-top { display: flex; gap: 6px; }
.demo-title { font: 400 34px/1.1 var(--serif); letter-spacing: -0.02em; margin: 14px 0 18px; }
.demo-grid { display: grid; grid-template-columns: minmax(84px, 1fr) repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; }
.demo-col { position: relative; display: grid; justify-items: center; padding: 8px 0; border-radius: 12px; }
.demo-col.is-best { background: var(--accent-soft); }
.demo-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 550; }
.demo-cell { animation: pop-cell .5s var(--ease-out) both; }
@keyframes pop-cell { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.demo-reason { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 600; font-size: 14px; }
.mine-polls, .kinds, .why { padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 40px); }
.mp-list { list-style: none; padding: 0; margin: 0 auto; max-width: 1180px; display: grid; gap: 8px; }
.mp { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease-out); }
.mp:hover { border-color: var(--line-2); transform: translateX(2px); }
.mp-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.mp-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kind-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kind-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); overflow: hidden; min-height: 240px; }
.kind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.kind-n { font: 400 64px/1 var(--serif); color: var(--fill-2); position: absolute; right: 22px; top: 14px; letter-spacing: -0.04em; }
.kind-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--paper); margin-bottom: 8px; }
.kind-name { font: 400 28px/1.1 var(--serif); letter-spacing: -0.02em; }
.kind-blurb { color: var(--muted); font-size: 14.5px; }
.kind-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; color: var(--accent-ink); font-size: 14px; }
.why-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.why-item { background: var(--surface); padding: 30px 28px 32px; display: grid; gap: 10px; align-content: start; }
.why-item p { margin: 0; font-size: 14.5px; }
.why-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 8px; }
.closer { text-align: center; padding: clamp(56px, 10vw, 130px) 16px; display: grid; justify-items: center; gap: 30px; }

/* Shared grid marks */
.dg-crown { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--warn); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px -4px var(--warn); }
.dg-m { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dg-d { font: 400 30px/1 var(--serif); letter-spacing: -0.03em; margin: 2px 0; }
.dg-w { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.dg-t { font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.dg-cell { position: relative; display: grid; place-items: center; width: 100%; min-width: 44px; height: 40px; border-radius: 10px; background: var(--fill); color: var(--faint); border: 0; transition: background .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.dg-cell.v-yes { background: var(--good-soft); color: var(--good); }
.dg-cell.v-maybe { background: var(--warn-soft); color: var(--warn); }
.dg-cell.v-no { background: transparent; color: color-mix(in srgb, var(--bad) 55%, var(--faint)); }
.mk-maybe { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed currentColor; }
.mk-empty { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.pp-avatar { --h: 230; flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 70% 90%); }
:root[data-theme="dark"] .pp-avatar { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 35% 24%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pp-avatar { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 35% 24%); } }
.pp-avatar-you { background: var(--ink); color: var(--paper); }

/* Creator */
.new-wrap { max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) 16px 80px; }
.new-title { margin: 8px 0 26px; }
.cr { display: grid; gap: 16px; }
.cr-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cr-kind { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.cr-kind:hover { border-color: var(--line-2); }
.cr-kind.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cr-kind-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fill-2); color: var(--ink-2); margin-bottom: 6px; }
.cr-kind.is-on .cr-kind-ico { background: var(--accent); color: var(--on-accent); }
.cr-kind-name { font-weight: 650; }
.cr-kind-blurb { font-size: 12.5px; color: var(--muted); }
.cr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.cr-title { width: 100%; border: 0; outline: none; resize: none; background: transparent; padding: 0; overflow: hidden; font: 400 clamp(30px, 4vw, 44px)/1.08 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.cr-title::placeholder, .cr-desc::placeholder { color: var(--faint); }
.cr-desc { width: 100%; border: 0; outline: none; resize: none; background: transparent; padding: 0; overflow: hidden; font-size: 16px; color: var(--ink-2); }
.cr-title:focus-visible, .cr-desc:focus-visible { box-shadow: none; }
.cr-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.cr-meta-f { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border-radius: var(--r-sm); background: var(--fill); color: var(--muted); }
.cr-meta-f input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14.5px; color: var(--ink); }
.cr-meta-f:focus-within { box-shadow: var(--ring); }
.nl { display: grid; gap: 10px; }
.nl-box { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--accent-ink); transition: border-color .2s, box-shadow .2s; }
.nl-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nl-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
.nl-preview { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr-dates-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font: 400 22px/1 var(--serif); letter-spacing: -0.01em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 6px 0; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; font-size: 14.5px; font-weight: 550; color: var(--ink); transition: background .15s, color .15s, transform .12s var(--ease); touch-action: none; }
.cal-day:hover:not([disabled]):not(.is-on) { background: var(--fill-2); }
.cal-day.is-out { color: var(--faint); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cal-day.is-on { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 14px -8px var(--accent); }
.cal-day[disabled] { color: var(--line-2); cursor: not-allowed; }
.cal-tip { margin: 8px 0 0; }
.times { display: grid; gap: 12px; align-content: start; }
.times-head { display: flex; justify-content: space-between; align-items: center; }
.times-list { display: grid; gap: 8px; }
.time-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; }
.time-row .input { min-height: 40px; font-size: 14.5px; padding: 6px 10px; }
.times-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.times-tz { display: flex; gap: 6px; align-items: center; margin: 0; }
.picked { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.picked-head { display: flex; justify-content: space-between; align-items: center; }
.picked-list { display: grid; gap: 8px; }
.picked-day { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.picked-date { display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: var(--fill); }
.pd-dow { font-size: 11px; font-weight: 600; color: var(--muted); }
.pd-d { font: 400 24px/1 var(--serif); }
.pd-m { font: 500 10px/1 var(--mono); text-transform: uppercase; color: var(--muted); }
.picked-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 550; }
.slot button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; }
.slot button:hover { background: var(--accent); color: var(--on-accent); }
.to-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.to-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center; }
.to-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--fill-2); font: 600 11.5px/1 var(--mono); color: var(--ink-2); }
.to-input { border: 0; border-bottom: 1px solid var(--line); outline: none; background: transparent; padding: 10px 2px; font-size: 16px; color: var(--ink); }
.to-input:focus { border-bottom-color: var(--accent); }
.to-input:focus-visible { box-shadow: none; border-radius: 0; }
.to-cap { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 36px; border-radius: 99px; background: var(--fill); color: var(--muted); }
.to-cap input { width: 54px; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ink); }
.le-add-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 6px; color: var(--accent-ink); font-weight: 550; font-size: 14px; border-radius: 7px; }
.le-add-btn:hover { background: var(--accent-soft); }
.le-tip { font-size: 12px; color: var(--faint); }
.cr-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.cr-set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cr-set-row > span:first-child { display: grid; gap: 2px; }
.set-title { font-weight: 560; font-size: 14.5px; }
.cr-num { width: 90px; min-height: 38px; }
.cr-date { width: 170px; min-height: 38px; }
.cr-go { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 4px; }
.cr-go p { display: flex; align-items: center; gap: 6px; margin: 0; }

/* Created */
.created { max-width: 600px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 16px 80px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.created .h2 { margin: 0 0 10px; }
.created-mark { width: 70px; height: 70px; }
.created-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.created-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease-out) forwards; opacity: .35; }
.created-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease-out) .5s forwards; stroke-width: 3; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.created-box { width: 100%; text-align: left; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.created-admin { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.created-box .label { display: flex; align-items: center; gap: 6px; }
.created-box .hint { margin: -4px 0 0; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.share-url { font-family: var(--mono); font-size: 13px; }
.share-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Poll page */
.pp { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 4vw, 52px) 16px 60px; display: grid; gap: 18px; }
.pp-head { display: grid; gap: 10px; }
.pp-eyebrow { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-title { font: 400 clamp(36px, 5.4vw, 64px)/1.03 var(--serif); letter-spacing: -0.025em; margin: 6px 0 0; text-wrap: balance; }
.pp-desc { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 62ch; white-space: pre-line; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; margin-top: 4px; }
.pp-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.pp-best { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.pp-best-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; }
.pp-best-l { margin: 0; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pp-best-v { margin: 4px 0 2px; font-weight: 650; font-size: 16.5px; }
.pp-best p.tiny { margin: 0; }
.pp-hidden { display: flex; gap: 8px; align-items: center; color: var(--muted); margin: 0; }
.pp-vote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(14px, 2.4vw, 24px); display: grid; gap: 16px; box-shadow: var(--shadow-1); }
.pp-you { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-name-f { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 8px; height: 46px; border-radius: 12px; background: var(--fill); }
.pp-name-f:focus-within, .pp-email-f:focus-within { box-shadow: var(--ring); }
.pp-name { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); }
.pp-name:focus-visible, .pp-email-f input:focus-visible { box-shadow: none; }
.pp-email-f { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 46px; border-radius: 12px; background: var(--fill); color: var(--muted); }
.pp-email-f input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14.5px; color: var(--ink); }
.pp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-saved { display: flex; gap: 8px; align-items: center; margin: 0 8px 0 0; color: var(--good); font-weight: 500; }
.pp-saved strong { color: var(--ink); }
.pp-addopt { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; border-radius: 12px; border: 1.5px dashed var(--line-2); color: var(--muted); }
.pp-addopt input { flex: 1; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
.pp-missing { max-width: 520px; margin: 12vh auto; padding: 0 16px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.pp-missing .h2, .pp-missing p { margin: 0; }

.dg-wrap { overflow-x: auto; margin: 0 -4px; padding: 14px 4px 4px; }
.dg { border-collapse: separate; border-spacing: 6px 6px; min-width: 100%; }
.dg th, .dg td { padding: 0; }
.dg-corner { min-width: 170px; }
.dg-opt { position: relative; min-width: 76px; padding: 10px 4px 12px !important; border-radius: 14px; text-align: center; font-weight: 400; vertical-align: bottom; }
.dg-opt > span:not(.dg-crown) { display: block; }
.dg-opt.is-best { background: var(--accent-soft); }
.dg-opt.is-final { background: var(--good-soft); box-shadow: inset 0 0 0 1.5px var(--good); }
.dg tbody th { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; font-weight: 550; font-size: 14px; padding-right: 10px !important; }
.dg-name { display: flex; align-items: center; gap: 9px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.dg-in { cursor: pointer; height: 46px; border-radius: 12px; }
.dg-in:hover { transform: scale(1.04); }
.dg-in:not(.v-yes):not(.v-maybe):not(.v-no) { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dg-in.v-no { box-shadow: inset 0 0 0 1.5px var(--line); }
.dg-in:active { transform: scale(.96); }
.dg-busy { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--surface); }
.dg-in.is-busy:not(.v-no) { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(196,50,43,.08) 6px 8px); }
.dg-you th .dg-name { font-weight: 700; }
.dg-mine th { color: var(--accent-ink); }
.dg tfoot th, .dg tfoot td { padding-top: 6px !important; }
.dg-sum-l { text-align: left; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); position: sticky; left: 0; background: var(--surface); }
.dg-sum { text-align: center; white-space: nowrap; }
.dg-yes { font: 400 24px/1 var(--serif); color: var(--good); }
.dg-maybe { font-size: 12px; color: var(--warn); margin-left: 2px; font-weight: 600; }

.dc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dc-item { position: relative; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); display: grid; gap: 12px; }
.dc-item.is-best { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.dc-item.is-final { border-color: var(--good); background: var(--good-soft); }
.dc-top { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; }
.dc-date { display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: var(--fill); }
.dc-date .dg-d { font-size: 26px; }
.dc-info { display: grid; gap: 6px; }
.dc-info p { margin: 0; }
.dc-time { font-weight: 650; }
.dc-bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: var(--fill-2); }
.dc-bar .y { background: var(--good); } .dc-bar .m { background: var(--warn); opacity: .7; }
.dc-busy { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--bad); font-weight: 550; }
.dc-crown { top: -9px; left: auto; right: 14px; transform: none; }
.dc-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dc-btn { height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .15s var(--ease); }
.dc-btn.is-on.b-yes { background: var(--good); border-color: var(--good); color: #fff; }
.dc-btn.is-on.b-maybe { background: var(--warn); border-color: var(--warn); color: #fff; }
.dc-btn.is-on.b-no { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dc-seg.is-ro .dc-btn:not(.is-on) { opacity: .45; }
.dc-btn[disabled] { cursor: default; }

.cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cl-item { position: relative; overflow: hidden; width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; transition: border-color .2s, box-shadow .2s; isolation: isolate; }
.cl-item:hover:not([disabled]) { border-color: var(--ink-2); }
.cl-item.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cl-item.is-final { border-color: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.cl-item.is-full { opacity: .6; }
.cl-item[disabled] { cursor: default; }
.cl-fill { position: absolute; inset: 0; z-index: -1; background: var(--accent-soft); transform-origin: left; transition: transform .7s var(--ease-out); }
.cl-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: var(--surface); color: var(--on-accent); }
.cl-mark.sq { border-radius: 6px; }
.cl-item.is-on .cl-mark { background: var(--accent); border-color: var(--accent); }
.cl-label { display: grid; gap: 2px; font-size: 15.5px; font-weight: 550; }
.cl-names { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.cl-pct { font: 400 24px/1 var(--serif); letter-spacing: -0.02em; display: grid; justify-items: end; }
.cl-pct small { font: 500 11px/1 var(--mono); color: var(--muted); margin-top: 3px; }
.cl-pct.is-top { color: var(--accent-ink); }
.cl-cap { font-size: 13px; font-weight: 600; color: var(--good); white-space: nowrap; }
.cl-cap.is-full { color: var(--muted); }

.final { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--good-soft), var(--accent-soft)); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.final-v { margin: 6px 0 0; font-size: 20px; font-weight: 600; }
.final-v .serif-em { font-size: 28px; }
.final-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.admin { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: var(--r-lg); background: #14141A; color: #F2F1EC; border: 1px solid rgba(242,241,236,.12); --paper: #F2F1EC; }
.admin-l { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.admin-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.admin .btn { --bg: rgba(255,255,255,.08); --fg: var(--paper); --bd: rgba(255,255,255,.14); }
.admin .btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.admin .btn-ghost { --bd: transparent; --bg: transparent; }
.admin .btn-danger { --fg: #FF8A80; }
.pf-list { display: grid; gap: 6px; margin: 16px 0 6px; max-height: 50vh; overflow: auto; }
.pf-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.pf-item:hover { border-color: var(--accent); }
.pf-item.is-on { border-color: var(--good); background: var(--good-soft); }
.pf-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); font: 600 11.5px/1 var(--mono); }
.pf-l { font-weight: 550; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 12px; }
.set-stack { display: grid; gap: 14px; }

.cal-modal { display: grid; gap: 14px; }
.cal-modal .h2, .cal-modal p { margin: 0; }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 18px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); text-align: center; color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.cm { display: grid; gap: 14px; padding: 6px 4px; }
.cm .h3 { display: flex; gap: 8px; align-items: center; }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cm-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.cm-head { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.cm-del { margin-left: auto; width: 26px; height: 26px; opacity: .5; }
.cm-del:hover { opacity: 1; color: var(--bad); }
.cm-text { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.cm-form { display: grid; gap: 8px; }
.cm-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .demo-card { transform: none; }
  .kind-grid, .why-grid { grid-template-columns: 1fr; }
  .cr-dates-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cr-kinds { grid-template-columns: 1fr; }
  .cr-kind { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .cr-kind-ico { grid-row: span 2; margin: 0; }
  .cr-set-grid { grid-template-columns: 1fr; }
  .mp { grid-template-columns: auto 1fr auto; } .mp > .tiny { display: none; }
  .admin { padding: 12px; }
  .brand-product { font-size: 18px; }
  .nav { padding: 12px 16px; }
}
@media (hover: none) and (pointer: coarse) { .cal-tip { display: none; } }
