:root { color-scheme:light; --ink:#133238; --muted:#506a69; --paper:#f5f6ef; --line:#cbd6cc; --accent:#d9ee7c; font:16px/1.5 "Inter","Segoe UI",sans-serif; color:var(--ink); background:var(--paper) }
* { box-sizing:border-box }
body { margin:0 }
h1,h2,p { margin:0 }
h1,h2,.brand { letter-spacing:-.045em; line-height:1.08 }
h1 { font-weight:550; font-size:clamp(2.4rem,5vw,4.2rem) }
h2 { font-size:1.8rem; font-weight:600 }
a { color:inherit; text-underline-offset:.2em }
button,input,select,textarea { font:inherit }
button { cursor:pointer }
:focus-visible { outline:3px solid #388696; outline-offset:3px }
.mast { background:var(--ink); color:white }
.mast-inner,main { max-width:1216px; margin:auto; padding-inline:clamp(18px,4vw,60px) }
.mast-inner,.account,.head,.toolbar,.actions,.brand,.search,.tabs { display:flex; align-items:center }
.mast-inner { min-height:72px; justify-content:space-between }
.brand { gap:14px; text-decoration:none; font-size:1.45rem; font-weight:650 }
.mark { position:relative; display:inline-block; width:33px; height:23px; color:var(--accent) }
.mark:before,.mark:after { content:""; position:absolute; width:14px; height:20px; border:2px solid currentColor; border-radius:14px; transform:rotate(44deg) }
.mark:before { left:3px }.mark:after { left:13px }
.account,.actions { gap:1.3rem }
.quiet { border:0; color:inherit; background:none; padding:8px; text-decoration:underline; text-underline-offset:4px }
.account span { color:#c2d5d1 }
main { padding-block:clamp(26px,5vw,72px) }
.login-layout { display:grid; grid-template-columns:1.1fr 1fr; min-height:510px; background:white; border:1px solid var(--line); border-radius:18px; overflow:hidden }
.cover { background:#20484b; color:white; padding:clamp(28px,4vw,56px); display:flex; flex-direction:column; justify-content:space-between; overflow:hidden }
.cover h1 { font-size:clamp(2.4rem,4.45vw,4.4rem); overflow-wrap:break-word }
.cover p { margin-top:1.1rem; color:#d5e4d8; max-width:34ch }
.orbits { height:145px; width:210px; position:relative; margin-bottom:30px }
.orbits i { position:absolute; top:20px; left:10px; height:110px; width:130px; border:1px solid #bedb92; border-radius:50%; transform:rotate(-30deg) }
.orbits i:nth-child(2) { left:58px; top:5px }.orbits i:nth-child(3) { left:90px; top:47px }
.orbits i:after { content:""; position:absolute; top:10px; left:13px; width:10px; height:10px; background:var(--accent); border:2px solid #20484b; border-radius:50% }
.login-card { align-self:center; padding:clamp(26px,5vw,76px) }
.login-card h2 { margin-bottom:32px }
label { display:block; font-size:.9rem; font-weight:600; margin-bottom:6px }
input:not([type=hidden]),select,textarea { display:block; width:100%; min-width:0; border:1px solid #9baeaa; color:var(--ink); background:white; padding:10px 12px; border-radius:7px; min-height:44px }
textarea { resize:vertical }.login-card input { margin-bottom:17px }
.primary { display:inline-flex; justify-content:center; align-items:center; min-height:46px; background:var(--accent); color:#18332a; font-weight:650; border:1px solid #adc45a; border-radius:7px; padding:9px 18px; text-decoration:none }
.primary:hover { background:#cde567 }.login-card .primary { width:100%; margin-top:6px }
.telegram-link { margin-bottom:12px }.telegram-link button { padding-left:0 }
.head,.toolbar { justify-content:space-between; gap:1rem; flex-wrap:wrap }
.toolbar { margin:36px 0 20px; align-items:flex-end }.tabs { flex-wrap:wrap; gap:5px }
.tabs a { padding:8px 11px; text-decoration:none; border-radius:6px }
.tabs a[aria-current] { color:white; background:var(--ink) }.tabs a:hover:not([aria-current]) { background:#e4e9df }
.search { gap:3px }.search input { width:190px; min-height:40px; padding:7px 10px }
.list,.empty,.editor { background:white; border:1px solid var(--line); border-radius:12px; overflow:hidden }
.columns { display:grid; grid-template-columns:1.25fr 1fr .85fr 1.2fr; align-items:center; gap:16px; padding:18px 22px; overflow-wrap:anywhere }
.list-head { font-size:.86rem; background:#e9eee4; color:var(--muted) }
.row { text-decoration:none; border-top:1px solid var(--line) }.row:hover { background:#f7faef }
small { display:block; color:var(--muted); margin-top:4px }.stage { font-size:.85rem; font-weight:550; background:#e4efe7; padding:4px 9px; border-radius:5px }
.empty { text-align:center; padding:54px 20px 60px }.empty-mark { color:#477269; margin-bottom:12px }
.empty p { margin:12px auto; max-width:43ch; color:var(--muted) }
.detail { max-width:780px; margin:auto }.back { color:var(--muted) }.detail h1 { margin:20px 0 26px; font-size:clamp(2.1rem,4vw,3rem) }
.editor { padding:clamp(18px,3vw,34px) }.fields { display:grid; grid-template-columns:1fr 1fr; gap:19px 24px }
.field-channel,.field-notes { grid-column:1/-1 }.actions { margin-top:24px; padding-top:20px; border-top:1px solid var(--line) }
.notice,.error,.errorlist { border-radius:6px; padding:10px 15px; margin:0 0 16px; background:#e3efcf }.error,.errorlist { color:#8d2526; background:#ffedeb; list-style:none }
.plan-title { margin:16px 0 25px }.plan-group { margin:30px 0 }
.plan-group h2 { font-size:1.35rem }.plan-list { margin:12px 0; padding:0; list-style:none }
.plan-list li { padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; overflow-wrap:anywhere }
.plan-list li + li { border-top:1px solid var(--line) }.plan-list p { margin-top:4px }
.auth h1 { font-size:clamp(1.7rem,5vw,2.7rem) }.auth p { margin:14px 0 }
.auth .btn { display:inline-block; padding:8px 12px; margin:4px 2px; border-radius:6px; border:1px solid var(--line) }
.auth .btn-primary { background:var(--accent) }.auth table { width:100%; text-align:left }.auth img { max-width:100% }
@media(max-width:720px) {
  .login-layout { grid-template-columns:1fr; min-height:0 }.cover { padding:26px }.cover h1 { font-size:2.15rem }.cover p { margin-top:10px }
  .orbits { display:none }.login-card { padding:28px 24px }.login-card h2 { margin-bottom:20px }
  .toolbar { align-items:stretch; margin-top:24px }.search { width:100% }.search input { flex:1 }.tabs { font-size:.89rem }.tabs a { padding:7px }
  .list-head { display:none }.columns.row { grid-template-columns:1fr 1fr; gap:12px }.row:first-of-type { border:0 }
  .account { gap:5px }.account span { max-width:90px; overflow:hidden; text-overflow:ellipsis }
  .fields { grid-template-columns:1fr }.field { grid-column:1 }
}

.board {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(225px, 280px);overflow-x:auto;gap:14px;align-items:stretch;padding-bottom:18px}
.board section {background:#e8eee7;border-radius:10px;padding:14px;min-height:180px}
.board h2 {font-size:1.1rem;margin:0 0 14px}
.board article {background:white;padding:12px;border-radius:7px;margin:10px 0}
.board article p {margin:8px 0}
.board form,.board label {display:grid;gap:6px;margin-top:8px}
.board select {max-width:100%}
[hidden] { display:none !important }
