@font-face { font-family:YekanBakh; src:url('/fonts/YekanBakh-VF.woff2') format('woff2'); font-weight:100 900; font-display:swap; }
:root { color-scheme: light; --paper:#fff; --ground:#f4f6fa; --ink:#181d29; --muted:#5f687a; --line:#e0e5ee; --accent:#254dd6; --accent-bg:#eef2ff; --good:#146245; --good-bg:#e7f6ee; --bad:#a12b42; --bad-bg:#fff0f2; font-family:YekanBakh,"Segoe UI",Tahoma,sans-serif; }
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--ground); color:var(--ink); }
h1,h2,p { margin:0; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
button { cursor:pointer; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.topbar { display:flex; justify-content:space-between; align-items:center; min-height:65px; background:var(--paper); border-bottom:1px solid var(--line); padding:10px max(20px,calc((100vw - 1280px)/2)); }
.brand { display:inline-flex; align-items:center; gap:8px; font-size:20px; font-weight:800; }
.frame { max-width:1320px; display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; margin:32px auto; padding:0 18px 35px; }
.rail,.card,.stats article,.draft { background:var(--paper); border:1px solid var(--line); border-radius:14px; }
.rail { position:sticky; align-self:start; top:18px; padding:14px; }
.identity { display:flex; align-items:center; gap:10px; padding:8px 3px 18px; border-bottom:1px solid var(--line); min-width:0; }
.identity div { min-width:0; }
.identity strong,.identity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.identity small { color:var(--muted); font-size:12px; text-align:right; }
.avatar { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:13px; background:var(--accent-bg); color:var(--accent); font-size:19px; font-weight:800; }
.rail nav { display:grid; gap:4px; margin-top:12px; }
.rail nav a { display:flex; justify-content:space-between; align-items:center; gap:7px; padding:11px 10px; border-radius:9px; white-space:nowrap; font-size:14px; }
.rail nav a:hover,.rail nav a[aria-current] { background:var(--accent-bg); color:var(--accent); }
.rail nav a[aria-current] { font-weight:750; }
.badge { min-width:22px; padding:2px 6px; background:var(--accent); color:#fff; border-radius:12px; text-align:center; font-size:11px; }
.body { min-width:0; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:24px; }
.section-head h1 { font-size:clamp(25px,4vw,37px); letter-spacing:-.035em; }
.section-head p,.card-title p,dialog p { margin-top:6px; color:var(--muted); font-size:14px; line-height:1.8; }
.primary,.secondary,.text-action { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:39px; border:1px solid transparent; border-radius:9px; padding:7px 12px; white-space:nowrap; font-size:13px; font-weight:700; }
.primary { background:var(--accent); color:#fff; } .primary:hover { background:#1c3fb9; }
.primary:disabled { opacity:.45; cursor:default; }
.secondary { background:var(--paper); border-color:var(--line); color:var(--ink); }
.secondary:hover,.text-action:hover { background:var(--accent-bg); color:var(--accent); }
.text-action { color:var(--accent); background:transparent; padding-inline:7px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.stats article { padding:16px; display:grid; gap:5px; }
.stats article span { color:var(--muted); font-size:13px; }
.stats article strong { font-size:30px; font-variant-numeric:tabular-nums; }
.stats article:last-child { background:#17285e; color:#fff; border-color:#17285e; }
.stats article:last-child span { color:#d9e3ff; }
.draft { display:flex; justify-content:space-between; padding:12px 15px; color:var(--accent); margin-bottom:15px; font-weight:700; }
.card + .card { margin-top:16px; }
.card-title { padding:15px 18px; }
.card h2,dialog h2 { font-size:16px; }
.row { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(90px,.6fr) minmax(90px,.6fr) auto; align-items:center; gap:10px; padding:13px 17px; border-top:1px solid var(--line); }
.row .row-name { min-width:0; overflow-wrap:anywhere; font-size:14px; font-weight:750; }
.row .row-meta { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.row-actions { display:flex; align-items:center; gap:3px; }
.tag { justify-self:start; border-radius:6px; padding:4px 7px; font-size:12px; white-space:nowrap; background:var(--ground); color:var(--muted); }
.tag.pending { color:var(--accent); background:var(--accent-bg); }
.tag.succeeded { color:var(--good); background:var(--good-bg); }
.tag.stopped { color:var(--bad); background:var(--bad-bg); }
.empty,.startup { padding:23px 18px; color:var(--muted); }
.startup { grid-column:1/-1; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.startup a { display:inline-block; color:var(--accent); margin-inline-start:10px; text-decoration:underline; }
.notice { padding:10px 13px; margin-bottom:14px; border-radius:8px; background:var(--good-bg); color:var(--good); font-size:14px; }
.alert-form { display:grid; grid-template-columns:minmax(100px,1fr) minmax(110px,1fr) minmax(110px,1fr) auto; gap:12px; padding:16px; align-items:end; }
.alert-form h2,.field-note { grid-column:1/-1; }
label { display:grid; gap:6px; font-size:13px; font-weight:650; }
input,select { min-width:0; width:100%; min-height:41px; padding:6px 9px; border:1px solid var(--line); border-radius:8px; background:#fcfdff; color:var(--ink); }
.field-note { color:var(--bad); font-size:13px; }
.pagination { display:flex; justify-content:flex-end; gap:8px; padding:12px 17px; border-top:1px solid var(--line); }
dialog { border:1px solid var(--line); border-radius:16px; width:min(420px,calc(100vw - 24px)); padding:20px; color:var(--ink); box-shadow:0 15px 55px #1821432e; }
dialog::backdrop { background:#17264480; }
dialog form { display:grid; gap:13px; }
dialog header { display:flex; justify-content:space-between; gap:12px; }
dialog header button { min-width:38px; font-size:23px; }
.publishing-access { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:7px 15px; margin:0 0 14px; padding:11px 13px; border:1px solid var(--line); border-radius:8px; background:#f7f9fc; font-size:13px; }
.publishing-access[hidden] { display:none; }
.publishing-access progress { width:min(100%,180px); accent-color:var(--accent); }
#private-idea-dialog { width:min(780px,calc(100vw - 24px)); }
#private-idea-chart :is(img,canvas) { width:100%; height:auto; display:block; margin-block:12px; border-radius:8px; background:#131722; }
.private-idea-description { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; font-size:14px; }
@media(max-width:800px) { .frame { grid-template-columns:1fr; gap:17px; margin-top:15px; } .rail { position:static; } .rail nav { display:flex; flex-wrap:wrap; } .stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .section-head { align-items:flex-start; } .row { grid-template-columns:minmax(0,1fr) auto; } .row-actions { justify-content:flex-end; } .alert-form { grid-template-columns:1fr 1fr; } .alert-form label:first-of-type { grid-column:1/-1; } .alert-form button { grid-column:1/-1; } }
