/* Контент-завод HG — «пульт цеха»: тёмный графит, неон бренда, сетка цеха и зерно */
:root {
  --bg: #100c12; --bg2: #140f16; --panel: #19131b; --panel2: #201820; --panel3: #291e29; --panel4: #332533;
  --line: #2f2430; --line2: #443344; --text: #f7f1f2; --text2: #d6c9cc; --muted: #9d8b90; --faint: #67565c;
  --pink: #FC0B6A; --violet: #FE7336; --cyan: #FFC60C; --lime: #3ddc84; --amber: #ffb547; --red: #ff4d6d; --green: #4ade80;
  --c-instagram: #ff3d8b; --c-facebook: #3b8bff; --c-youtube: #ff2a4a; --c-tiktok: #2ff3e8; --c-threads: #e9e6f2;
  --st-draft: #9d8b90; --st-review: #ffb547; --st-approved: #22d3ee; --st-publishing: #FE7336; --st-published: #3ddc84;
  --st-manual: #FC0B6A; --st-failed: #ff4d6d; --st-cancelled: #554548;
  --r: 16px; --r2: 11px; --r3: 8px;
  --f-d: 'Montserrat', system-ui, sans-serif; --f-b: 'Montserrat', system-ui, sans-serif; --f-m: 'JetBrains Mono', ui-monospace, monospace;
  --hour: 60px; --rail: 228px; --belt: 300px; --shadow: 0 18px 50px -18px rgba(0,0,0,.75);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--f-b); font-size: 14px; color: var(--text); line-height: 1.4;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(254,115,54,.16), transparent 62%),
    radial-gradient(900px 520px at -8% 112%, rgba(252,11,106,.14), transparent 60%),
    radial-gradient(700px 380px at 40% -20%, rgba(255,198,12,.07), transparent 60%),
    var(--bg);
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
body::before { /* сетка цеха */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 36px 36px; -webkit-mask-image: radial-gradient(ellipse at 55% 25%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse at 55% 25%, #000 25%, transparent 78%);
}
body::after { /* зерно */
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 1000; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); }
::selection { background: rgba(252,11,106,.45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #33262f; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #4a3644; }
::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s14 { width: 14px; height: 14px; } svg.i.s16 { width: 16px; height: 16px; } svg.i.s20 { width: 20px; height: 20px; } svg.i.s24 { width: 24px; height: 24px; }
svg.pf { width: 16px; height: 16px; flex: none; }
.mono { font-family: var(--f-m); font-feature-settings: 'zero' 0; letter-spacing: -.01em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 8px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- загрузка ---- */
.boot { position: fixed; inset: 0; display: grid; place-content: center; gap: 22px; justify-items: center; z-index: 5; }
.boot-logo span { font: 800 30px var(--f-d); letter-spacing: .02em; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--pink); box-shadow: 0 0 40px rgba(252,11,106,.45), inset 0 0 20px rgba(252,11,106,.2); }
.boot-line { width: 160px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #FFC60C, #FE7336, #FC0B6A, transparent); background-size: 200% 100%; animation: belt 1.1s linear infinite; }
@keyframes belt { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* ---- каркас ---- */
#app { position: relative; z-index: 2; display: grid; grid-template-columns: var(--rail) 1fr; height: 100vh; }
#app.with-belt { grid-template-columns: var(--rail) 1fr var(--belt); }
.rail { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(25,19,27,.92), rgba(16,12,16,.92)); backdrop-filter: blur(8px); min-height: 0; }
.logo { display: flex; gap: 12px; align-items: center; padding: 20px 18px 18px; text-decoration: none; color: inherit; }
.logo-img { height: 48px; width: auto; display: block; flex: none; filter: drop-shadow(0 6px 18px rgba(252,11,106,.28)); }
.login-card .logo-img { height: 68px; }
.boot-logo img { height: 96px; display: block; filter: drop-shadow(0 10px 40px rgba(252,11,106,.45)); }
.grad-text { background: linear-gradient(90deg, #FFC60C, #FE7336 45%, #FC0B6A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { font: 800 15px var(--f-d); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--pink); box-shadow: 0 0 22px rgba(252,11,106,.35), inset 0 0 12px rgba(252,11,106,.18); }
.logo-txt { min-width: 0; }
.logo-txt b { display: block; font: 700 12px/1.15 var(--f-d); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.logo-txt span { display: block; font: 500 10px var(--f-m); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; flex: 1; overflow: auto; }
.nav-sep { font: 600 10px var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text2); text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--panel2); color: var(--text); }
.nav a.on { background: linear-gradient(90deg, rgba(252,11,106,.16), rgba(254,115,54,.06)); color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.nav a .badge { margin-left: auto; }
.rail-foot { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; background: none; border: 0; text-align: left; width: 100%; }
.me:hover { background: var(--panel2); }
.me .nm { font-weight: 600; } .me .rl { font-size: 11px; color: var(--muted); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(16,12,18,.55); backdrop-filter: blur(10px); flex-wrap: wrap; min-height: 68px; }
.top h1 { font: 700 19px var(--f-d); margin: 0; letter-spacing: -.01em; white-space: nowrap; }
.top .sub { font: 500 12px var(--f-m); color: var(--muted); white-space: nowrap; }
.top .spacer { flex: 1; }
.view { flex: 1; min-height: 0; overflow: auto; position: relative; }
.view.pad { padding: 22px; }

/* ---- линия (планировщик) ---- */
.line { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); font: 500 12px var(--f-m); color: var(--text2); white-space: nowrap; }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.led.on { background: var(--lime); box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
.led.warn { background: var(--amber); } .led.off { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* ---- кнопки и поля ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--panel3); border-color: #5a4652; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.xs { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; gap: 5px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; } .btn.xs.icon { width: 24px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text2); }
.btn.ghost:hover { background: var(--panel2); color: var(--text); }
.btn.pri { background: linear-gradient(135deg, #f9a83f, #ef5f3c 55%, #FC0B6A); border-color: transparent; color: #fff; box-shadow: 0 6px 22px -8px rgba(239,95,60,.85); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.go { background: var(--lime); color: #062b16; border-color: transparent; box-shadow: 0 6px 22px -10px rgba(61,220,132,.8); }
.btn.go:hover { filter: brightness(1.05); }
.btn.cy { background: rgba(255,198,12,.12); border-color: rgba(255,198,12,.45); color: var(--cyan); }
.btn.warn { background: rgba(255,181,71,.12); border-color: rgba(255,181,71,.45); color: var(--amber); }
.btn.danger { color: var(--red); } .btn.danger:hover { background: rgba(255,77,109,.12); border-color: rgba(255,77,109,.5); }
.inp, .ta { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.ta { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.inp:focus, .ta:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(254,115,54,.22); }
.inp.sm { height: 32px; font-size: 13px; }
.inp::placeholder, .ta::placeholder { color: var(--faint); }
.lbl { font: 600 11px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }
.field { display: flex; flex-direction: column; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line); gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text2); cursor: pointer; font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel3); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text2); font-size: 12px; font-weight: 600; cursor: pointer; user-select: none; white-space: nowrap; }
.chip:hover { border-color: #5a4652; color: var(--text); }
.chip.on { color: #fff; border-color: var(--c, var(--violet)); background: color-mix(in srgb, var(--c, var(--violet)) 18%, transparent); box-shadow: 0 0 14px -6px var(--c, var(--violet)); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--violet)); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font: 700 11px var(--f-m); }
.badge.amber { background: var(--amber); color: #1a1205; } .badge.dim { background: var(--panel3); color: var(--text2); }
.tog { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.tog .sw { width: 36px; height: 21px; border-radius: 21px; background: var(--panel4); position: relative; transition: background .15s; flex: none; border: 1px solid var(--line2); }
.tog .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--text2); transition: transform .18s, background .15s; }
.tog.on .sw { background: rgba(61,220,132,.25); border-color: rgba(61,220,132,.6); }
.tog.on .sw::after { transform: translateX(15px); background: var(--lime); }
.tog.dis { opacity: .5; pointer-events: none; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font: 700 12px var(--f-d); color: #0b0a10; background: var(--c, var(--violet)); flex: none; }
.av.sm { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.avs { display: inline-flex; } .avs .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); } .avs .av:first-child { margin-left: 0; }

/* статусы */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11px var(--f-m); letter-spacing: .02em; white-space: nowrap; color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sc); }
.pill.publishing::before { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.st-draft { --sc: var(--st-draft); } .st-review { --sc: var(--st-review); } .st-approved { --sc: var(--st-approved); } .st-publishing { --sc: var(--st-publishing); }
.st-published { --sc: var(--st-published); } .st-manual { --sc: var(--st-manual); } .st-failed { --sc: var(--st-failed); } .st-cancelled { --sc: var(--st-cancelled); }
.pfb { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--pc) 16%, var(--panel2)); color: var(--pc); flex: none; position: relative; }
.pfb.lg { width: 30px; height: 30px; border-radius: 9px; } .pfb.lg svg.pf { width: 18px; height: 18px; }
.pfb .sd { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 2px var(--panel3); }
.p-instagram { --pc: var(--c-instagram); } .p-facebook { --pc: var(--c-facebook); } .p-youtube { --pc: var(--c-youtube); } .p-tiktok { --pc: var(--c-tiktok); } .p-threads { --pc: var(--c-threads); }

/* ---- карточки, панели ---- */
.card { background: linear-gradient(180deg, rgba(32,24,32,.92), rgba(25,19,27,.92)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card h3 { margin: 0 0 4px; font: 700 15px var(--f-d); letter-spacing: -.01em; }
.card .desc { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 50px 20px; color: var(--muted); }
.empty .big { font: 700 18px var(--f-d); color: var(--text2); }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.sec-title:first-child { margin-top: 0; }
.sec-title h2 { margin: 0; font: 700 16px var(--f-d); }
.sec-title .bar { width: 4px; height: 18px; border-radius: 3px; background: var(--c, var(--pink)); box-shadow: 0 0 12px var(--c, var(--pink)); }

/* ---- календарь: неделя ---- */
.cal { display: grid; grid-template-columns: 58px repeat(7, minmax(120px, 1fr)); min-width: 920px; position: relative; }
.cal-head { position: sticky; top: 0; z-index: 6; display: contents; }
.cal-corner, .cal-day { position: sticky; top: 0; z-index: 6; background: rgba(18,13,19,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cal-corner { border-right: 1px solid var(--line); font: 500 10px var(--f-m); color: var(--faint); display: grid; place-items: end center; padding-bottom: 8px; }
.cal-day { padding: 10px 10px 9px; border-left: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.cal-day .wd { font: 600 11px var(--f-m); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cal-day .dn { font: 700 20px var(--f-d); }
.cal-day .cnt { margin-left: auto; font: 500 11px var(--f-m); color: var(--faint); }
.cal-day.today .dn { color: var(--pink); text-shadow: 0 0 16px rgba(252,11,106,.6); }
.cal-day.today .wd { color: var(--pink); }
.cal-hours { border-right: 1px solid var(--line); }
.cal-h { height: var(--hour); font: 500 11px var(--f-m); color: var(--faint); text-align: right; padding: 0 8px 0 0; transform: translateY(-7px); }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(rgba(47,36,48,.45) 1px, transparent 1px); background-size: 100% var(--hour), 100% calc(var(--hour) / 2); background-position: 0 0, 0 0; }
.cal-col.today { background-color: rgba(252,11,106,.035); }
.cal-col.past { background-color: rgba(0,0,0,.18); }
.cal-col.drop { background-color: rgba(254,115,54,.07); }
.now-line { position: absolute; left: -1px; right: 0; height: 2px; background: var(--pink); box-shadow: 0 0 10px var(--pink); z-index: 4; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.drop-mark { position: absolute; left: 3px; right: 3px; height: 0; border-top: 2px dashed var(--violet); z-index: 5; pointer-events: none; }
.drop-mark span { position: absolute; left: 0; top: -22px; font: 700 11px var(--f-m); background: var(--violet); color: #fff; padding: 2px 7px; border-radius: 6px; box-shadow: 0 6px 18px -6px rgba(254,115,54,.9); }

.slotg { position: absolute; left: 4px; right: 4px; height: 22px; border: 1px dashed #5a4652; border-radius: 7px; display: flex; align-items: center; gap: 5px; padding: 0 7px; font: 500 10.5px var(--f-m); color: var(--muted); background: rgba(18,13,19,.55); cursor: pointer; z-index: 1; overflow: hidden; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.slotg:hover, .slotg.drop { border-color: var(--cyan); color: var(--cyan); background: rgba(255,198,12,.08); z-index: 3; }
.slotg svg.pf { width: 12px; height: 12px; }

.pc { position: absolute; left: 4px; right: 4px; min-height: 46px; border-radius: 10px; background: linear-gradient(180deg, #2b1f2b, #211822); border: 1px solid #443344; padding: 6px 7px 6px 10px; display: flex; gap: 7px; cursor: grab; z-index: 2; box-shadow: 0 8px 22px -12px rgba(0,0,0,.9); overflow: hidden; transition: transform .12s, box-shadow .15s, border-color .15s; }
.pc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bc, var(--violet)); box-shadow: 0 0 10px var(--bc, var(--violet)); }
.pc:hover { transform: translateY(-1px); border-color: #6e5262; box-shadow: 0 12px 26px -12px rgba(0,0,0,.95); z-index: 3; }
.pc.dragging { opacity: .4; }
.pc .th { width: 32px; height: 40px; border-radius: 6px; background: #120d14 center/cover no-repeat; flex: none; position: relative; }
.pc .th.h { width: 44px; height: 30px; }
.pc .bd { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pc .tm { font: 700 11px var(--f-m); color: var(--text); display: flex; align-items: center; gap: 6px; }
.pc .tt { font-size: 11.5px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .pfs { display: flex; gap: 2px; flex-wrap: nowrap; overflow: hidden; }
.pc .pfs .pfb { width: 16px; height: 16px; border-radius: 5px; } .pc .pfs .pfb svg.pf { width: 10px; height: 10px; }
.pc .pfs .pfb .sd { width: 6px; height: 6px; right: -1px; bottom: -1px; }
.pc.st-all-published { opacity: .72; }
.pc.warn { border-color: rgba(255,77,109,.55); }
.pc .kind { font: 600 9.5px var(--f-m); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---- месяц ---- */
.month { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(128px, 1fr); min-width: 900px; border-top: 1px solid var(--line); }
.month-h { display: contents; }
.month-h div { position: sticky; top: 0; z-index: 3; padding: 9px 10px; font: 600 11px var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(18,13,19,.94); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.mday { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: background .15s; }
.mday.other { background: rgba(0,0,0,.22); } .mday.other .mdn { color: var(--faint); }
.mday.today .mdn { color: var(--pink); }
.mday.drop { background: rgba(254,115,54,.09); }
.mdn { font: 700 14px var(--f-d); display: flex; justify-content: space-between; align-items: center; }
.mdn .free { font: 500 10px var(--f-m); color: var(--faint); }
.mchip { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 6px; background: #291e29; border: 1px solid #3b2b38; font-size: 11px; cursor: grab; overflow: hidden; white-space: nowrap; border-left: 3px solid var(--bc, var(--violet)); }
.mchip:hover { border-color: #6e5262; }
.mchip .tm { font: 700 10.5px var(--f-m); }
.mchip .pfs { display: inline-flex; gap: 2px; margin-left: auto; }
.mchip .pfs i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); display: block; }
.mmore { font: 600 11px var(--f-m); color: var(--muted); cursor: pointer; padding: 0 4px; }

/* ---- лента (список) ---- */
.agenda { max-width: 1100px; margin: 0 auto; padding: 20px 22px 60px; }
.ag-day { margin-bottom: 22px; }
.ag-dh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; position: sticky; top: 0; background: rgba(16,12,18,.92); backdrop-filter: blur(6px); padding: 8px 0; z-index: 2; }
.ag-dh b { font: 700 16px var(--f-d); } .ag-dh span { font: 500 12px var(--f-m); color: var(--muted); }
.ag-item { display: grid; grid-template-columns: 64px 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 8px; cursor: pointer; }
.ag-item:hover { border-color: var(--line2); background: var(--panel2); }
.ag-item .tm { font: 700 15px var(--f-m); }
.ag-item .th { width: 56px; height: 56px; border-radius: 9px; background: #120d14 center/cover; }
.ag-tg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ag-tg .tgt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); padding: 2px 8px 2px 3px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }

/* ---- конвейер (медиа справа) ---- */
.belt { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(25,19,27,.94), rgba(16,12,16,.94)); min-height: 0; }
.belt-h { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); position: relative; }
.belt-h::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: repeating-linear-gradient(90deg, var(--pink) 0 14px, transparent 14px 22px); opacity: .55; animation: conveyor 1.6s linear infinite; background-size: 22px 3px; }
@keyframes conveyor { to { background-position: 22px 0; } }
.belt-h h3 { margin: 0 0 2px; font: 700 14px var(--f-d); letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.belt-h p { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.belt-f { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.belt-f .chip { height: 24px; font-size: 11px; padding: 0 8px; }
.belt-list { flex: 1; overflow: auto; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.belt-drop { margin: 0 12px 12px; border: 1.5px dashed var(--line2); border-radius: 12px; padding: 12px; text-align: center; color: var(--muted); font-size: 12px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.belt-drop:hover, .belt-drop.over { border-color: var(--pink); color: var(--text); background: rgba(252,11,106,.06); }
.mt { position: relative; border-radius: 11px; overflow: hidden; background: #120d14; border: 1px solid var(--line); cursor: grab; aspect-ratio: 9 / 13; transition: transform .12s, border-color .15s, box-shadow .15s; }
.mt:hover { transform: translateY(-2px); border-color: #6e5262; box-shadow: 0 14px 30px -14px rgba(0,0,0,.95); }
.mt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt .nothumb { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }
.mt .ov { position: absolute; inset: auto 0 0 0; padding: 22px 7px 6px; background: linear-gradient(transparent, rgba(5,4,9,.92)); font-size: 11px; line-height: 1.25; }
.mt .ov .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mt .tl { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.mt .tag { font: 700 9.5px var(--f-m); padding: 2px 5px; border-radius: 5px; background: rgba(5,4,9,.78); color: var(--text); backdrop-filter: blur(4px); }
.mt .tag.b { color: #0b0a10; background: var(--bc, var(--violet)); }
.mt .tag.new { background: var(--lime); color: #062b16; }
.mt .used { position: absolute; top: 6px; right: 6px; font: 700 9.5px var(--f-m); padding: 2px 5px; border-radius: 5px; background: rgba(61,220,132,.9); color: #062b16; }
.mt.dragging { opacity: .35; }

/* загрузки */
.upq { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 10px; }
.upi { font-size: 11.5px; padding: 7px 9px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line); }
.upi .bar { height: 4px; border-radius: 4px; background: var(--bg2); margin-top: 6px; overflow: hidden; }
.upi .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--violet)); border-radius: 4px; transition: width .2s; }
.upi.err { border-color: rgba(255,77,109,.5); } .upi.ok .bar i { background: var(--lime); }

/* ---- медиатека ---- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.media-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.media-tools .inp { max-width: 300px; }
.dropzone-full { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(16,12,18,.7); backdrop-filter: blur(6px); pointer-events: none; opacity: 0; transition: opacity .15s; }
.dropzone-full.on { opacity: 1; }
.dropzone-full div { padding: 40px 60px; border: 2px dashed var(--pink); border-radius: 24px; font: 700 20px var(--f-d); box-shadow: 0 0 60px rgba(252,11,106,.35); background: rgba(25,19,27,.8); }

/* ---- доска ---- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; padding: 18px 22px; min-height: 100%; align-items: start; overflow-x: auto; }
.bcol { background: rgba(25,19,27,.7); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 120px); min-height: 200px; transition: border-color .15s, background .15s; }
.bcol.drop { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 8%, rgba(25,19,27,.7)); }
.bcol-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 700 12.5px var(--f-d); }
.bcol-h::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 10px var(--sc); }
.bcol-h .badge { margin-left: auto; background: var(--panel3); color: var(--text2); }
.bcol-b { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.bcard { display: flex; gap: 10px; padding: 9px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); cursor: grab; }
.bcard:hover { border-color: var(--line2); }
.bcard .th { width: 40px; height: 52px; border-radius: 7px; background: #120d14 center/cover; flex: none; }
.bcard .nm { font-size: 12.5px; font-weight: 600; } .bcard .tm { font: 600 11px var(--f-m); color: var(--muted); }
.bcard .er { font-size: 11px; color: var(--red); margin-top: 3px; }

/* ---- слой: шторка, окно, всплывашки ---- */
#layer { position: fixed; inset: 0; z-index: 800; pointer-events: none; }
#layer > * { pointer-events: auto; }
.veil { position: fixed; inset: 0; background: rgba(5,4,9,.62); backdrop-filter: blur(3px); animation: fade .16s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(1120px, 96vw); background: linear-gradient(180deg, #1b141b, #100e17); border-left: 1px solid var(--line2); box-shadow: -40px 0 80px -30px rgba(0,0,0,.9); display: flex; flex-direction: column; animation: slide .22s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { margin: 0; font: 700 17px var(--f-d); }
.drawer-b { flex: 1; overflow: auto; }
.drawer-f { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(16,12,18,.6); flex-wrap: wrap; }
.modal-wrap { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: linear-gradient(180deg, #21171f, #170f16); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2,.8,.2,1); }
.modal.wide { width: min(980px, 100%); }
@keyframes pop { from { transform: scale(.97) translateY(6px); opacity: 0; } }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.modal-h h3 { margin: 0; font: 700 16px var(--f-d); flex: 1; }
.modal-b { padding: 4px 20px 16px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.popover { position: fixed; z-index: 950; min-width: 200px; max-width: 440px; max-height: 420px; overflow: auto; background: rgba(36,26,36,.88); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; animation: pop .12s; }
.opt { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.opt:hover, .opt.kb { background: rgba(255,255,255,.06); }
.opt.sel { background: rgba(254,115,54,.16); }
.opt .ck { margin-left: auto; color: var(--lime); }
.opt .hn { margin-left: auto; font: 500 11px var(--f-m); color: var(--muted); }
.opt.dis { opacity: .4; pointer-events: none; }
.pop-search { position: sticky; top: -6px; background: rgba(36,26,36,.96); padding: 4px 4px 6px; margin: -6px -6px 4px; border-bottom: 1px solid var(--line); }
.sel-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; min-width: 0; max-width: 100%; text-align: left; }
.sel-btn:hover { border-color: #5a4652; }
.sel-btn.sm { height: 32px; font-size: 13px; }
.sel-btn .v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn .v.ph { color: var(--faint); }
.sel-btn svg.i { color: var(--muted); }
.mcal { padding: 8px; width: 270px; }
.mcal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font: 700 13px var(--f-d); }
.mcal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mcal-g .w { font: 600 10px var(--f-m); color: var(--faint); text-align: center; padding: 4px 0; }
.mcal-g button { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; color: var(--text2); cursor: pointer; font-size: 12.5px; }
.mcal-g button:hover { background: rgba(255,255,255,.08); }
.mcal-g button.o { color: var(--faint); }
.mcal-g button.t { color: var(--pink); font-weight: 700; }
.mcal-g button.s { background: var(--pink); color: #fff; font-weight: 700; box-shadow: 0 0 14px rgba(252,11,106,.55); }
.mcal-f { display: flex; justify-content: space-between; margin-top: 8px; }
.time-inp { width: 82px; text-align: center; font-family: var(--f-m); font-weight: 600; letter-spacing: .02em; }
.dt { display: inline-flex; gap: 6px; align-items: center; }

/* тосты */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 990; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 11px 16px; border-radius: 12px; background: rgba(36,26,36,.95); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; max-width: min(560px, 92vw); animation: pop .18s; }
.toast.ok { border-color: rgba(61,220,132,.45); } .toast.ok::before { content: '✓'; color: var(--lime); font-weight: 800; }
.toast.err { border-color: rgba(255,77,109,.6); } .toast.err::before { content: '!'; color: var(--red); font-weight: 800; }

/* ---- редактор публикации ---- */
.ed { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; min-height: 100%; }
.ed-l { padding: 20px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; background: rgba(0,0,0,.14); }
.ed-r { padding: 20px 24px 30px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.prev { position: relative; border-radius: 16px; overflow: hidden; background: #07060b; border: 1px solid var(--line); aspect-ratio: 9 / 14; display: grid; place-items: center; }
.prev.h { aspect-ratio: 16 / 10; }
.prev video, .prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.strip { display: flex; gap: 8px; flex-wrap: wrap; }
.strip .s { position: relative; width: 56px; height: 72px; border-radius: 9px; background: #120d14 center/cover; border: 2px solid transparent; cursor: pointer; }
.strip .s.on { border-color: var(--pink); }
.strip .s .x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--panel4); border: 1px solid var(--line2); display: none; place-items: center; cursor: pointer; color: var(--text); }
.strip .s:hover .x { display: grid; }
.strip .add { width: 56px; height: 72px; border-radius: 9px; border: 1.5px dashed var(--line2); display: grid; place-items: center; color: var(--muted); cursor: pointer; background: none; }
.strip .add:hover { border-color: var(--pink); color: var(--pink); }
.dest-brand { margin-bottom: 10px; }
.dest-brand .bh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 700 12px var(--f-d); letter-spacing: .03em; }
.dest-brand .bh .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.dest-brand .bh .btn:first-of-type { margin-left: auto; }
.dest { display: grid; grid-template-columns: 22px 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 6px; transition: border-color .15s, background .15s, opacity .15s; }
.dest.on { border-color: color-mix(in srgb, var(--pc) 55%, var(--line)); background: color-mix(in srgb, var(--pc) 7%, var(--panel)); }
.dest.no { opacity: .45; }
.dest .nm { font-weight: 600; font-size: 13px; }
.dest .meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.dest .meta .tg { font: 600 10px var(--f-m); padding: 1px 6px; border-radius: 5px; background: var(--panel3); color: var(--text2); text-transform: uppercase; letter-spacing: .05em; }
.dest .meta .tg.def { background: rgba(61,220,132,.14); color: var(--lime); }
.dest .meta .tg.auto { background: rgba(255,198,12,.12); color: var(--cyan); }
.dest .meta .tg.man { background: rgba(252,11,106,.12); color: var(--pink); }
.dest .meta .er { color: var(--red); }
.dest .meta .wr { color: var(--amber); }
.ck { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line2); display: grid; place-items: center; cursor: pointer; background: var(--bg2); color: #0b0a10; }
.ck.on { background: var(--lime); border-color: var(--lime); }
.ck.dis { cursor: not-allowed; opacity: .5; }
.cap-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cap-prev { white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text2); max-height: 260px; overflow: auto; }
.cap-meta { display: flex; justify-content: space-between; gap: 10px; font: 500 11px var(--f-m); color: var(--muted); margin-top: 6px; }
.cap-meta .over { color: var(--red); }
.man-box { border: 1px solid rgba(252,11,106,.45); background: rgba(252,11,106,.06); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.man-box h4 { margin: 0; font: 700 13px var(--f-d); color: var(--pink); }
.ev-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.ev-card .im { width: 64px; height: 40px; border-radius: 8px; background: #120d14 center/cover; flex: none; }

/* ---- площадки ---- */
.acc { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 9%, #201820), #19131b 55%); position: relative; overflow: hidden; }
.acc::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--pc); opacity: .08; filter: blur(10px); }
.acc .hd { display: flex; gap: 12px; align-items: center; }
.acc .nm { font: 700 14px var(--f-d); letter-spacing: -.01em; }
.acc .hn { font-size: 12px; color: var(--muted); }
.acc .ln { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text2); }
.acc .ln .tg { font: 600 10.5px var(--f-m); padding: 2px 7px; border-radius: 6px; background: var(--panel3); text-transform: uppercase; letter-spacing: .05em; }
.acc .ln .tg.ok { background: rgba(61,220,132,.14); color: var(--lime); }
.acc .ln .tg.er { background: rgba(255,77,109,.14); color: var(--red); }
.acc .ln .tg.man { background: rgba(252,11,106,.12); color: var(--pink); }
.acc .ln .tg.ads { background: rgba(255,181,71,.14); color: var(--amber); }
.acc .slots { display: flex; gap: 5px; flex-wrap: wrap; }
.acc .slots span { font: 600 10.5px var(--f-m); padding: 3px 7px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); color: var(--text2); }
.acc.off { opacity: .55; }
.slot-row { display: grid; grid-template-columns: 150px 90px 1fr 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.days { display: flex; gap: 3px; }
.days button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--muted); font: 600 11px var(--f-m); cursor: pointer; }
.days button.on { background: rgba(254,115,54,.2); border-color: var(--violet); color: #fff; }

/* маршруты */
.route { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 12px; }
.route .if { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.route .if .row { gap: 6px; }
.route .arrow { align-self: center; color: var(--pink); }
.route .to { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.route.off { opacity: .5; }
.accchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 4px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line2); font-size: 12px; }
.accchip .x { cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.accchip .x:hover { color: var(--red); }

/* команда: матрица прав */
.mx-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.mx { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 12.5px; }
.mx th, .mx td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.mx th { position: sticky; top: 0; background: #1b141b; font-weight: 600; color: var(--text2); z-index: 1; vertical-align: bottom; }
.mx th.br { color: #fff; font: 700 11px var(--f-d); border-left: 1px solid var(--line); }
.mx th.ac { font-size: 11px; font-weight: 500; color: var(--muted); max-width: 120px; }
.mx th.ac .pfb { margin: 0 auto 4px; }
.mx td:first-child, .mx th:first-child { text-align: left; position: sticky; left: 0; background: #1b141b; z-index: 2; }
.mx td.bc { border-left: 1px solid var(--line); }
.lvl { width: 34px; height: 30px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; display: inline-grid; place-items: center; color: var(--faint); font-weight: 700; transition: all .12s; }
.lvl:hover { border-color: #6e5262; }
.lvl.view { color: var(--text2); background: rgba(255,255,255,.05); }
.lvl.edit { color: var(--cyan); border-color: rgba(255,198,12,.5); background: rgba(255,198,12,.1); }
.lvl.approve { color: #062b16; background: var(--lime); border-color: var(--lime); box-shadow: 0 0 12px -4px var(--lime); }
.lvl.inh { opacity: .55; border-style: dashed; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 10px 0 0; align-items: center; }
.legend .lvl { width: 26px; height: 22px; pointer-events: none; }
.urow { display: grid; grid-template-columns: 40px 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 8px; }
.urow.off { opacity: .5; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.logrow { display: grid; grid-template-columns: 130px 110px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }

/* вход */
.login { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 34px 30px 30px; border-radius: 26px; border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(36,26,36,.92), rgba(20,15,20,.92)); backdrop-filter: blur(14px); box-shadow: 0 40px 120px -40px rgba(252,11,106,.35), var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.login-card .logo { padding: 0 0 8px; }
.login-card h1 { margin: 6px 0 0; font: 800 26px/1.1 var(--f-d); letter-spacing: -.02em; }
.login-card h1 em { font-style: normal; background: linear-gradient(90deg, #FFC60C, #FE7336 45%, #FC0B6A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-card p { margin: 0; color: var(--muted); font-size: 13px; }
.gbtn { height: 44px; border-radius: 12px; background: #fff; color: #1f1f1f; border: 0; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-size: 14px; }
.gbtn:hover { background: #f1f1f1; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font: 500 11px var(--f-m); text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.err-box { padding: 10px 12px; border-radius: 10px; background: rgba(255,77,109,.1); border: 1px solid rgba(255,77,109,.45); color: #ffc2cd; font-size: 13px; }
.ok-box { padding: 10px 12px; border-radius: 10px; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.4); font-size: 13px; }
.info-box { padding: 12px 14px; border-radius: 12px; background: rgba(255,198,12,.06); border: 1px solid rgba(255,198,12,.3); font-size: 13px; color: var(--text2); }
.info-box b { color: var(--text); }
code, .code { font-family: var(--f-m); font-size: 12px; background: var(--bg2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* появление */
.rise > * { animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.rise > *:nth-child(2) { animation-delay: .04s; } .rise > *:nth-child(3) { animation-delay: .08s; } .rise > *:nth-child(4) { animation-delay: .12s; }
.rise > *:nth-child(5) { animation-delay: .16s; } .rise > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---- узкие экраны ---- */
@media (max-width: 1280px) { :root { --rail: 72px; --belt: 260px; } .rail .logo-txt, .nav a span, .nav-sep, .me .who { display: none; } .nav a { justify-content: center; } .nav a .badge { position: absolute; top: 2px; right: 2px; margin: 0; } .rail .logo { justify-content: center; padding: 18px 0; } .rail .logo-img { height: 38px; } }
@media (max-width: 1000px) { #app.with-belt { grid-template-columns: var(--rail) 1fr; } #app.with-belt .belt { display: none; } .ed { grid-template-columns: 1fr; } .ed-l { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 720px) {
  body { overflow: auto; }
  #app, #app.with-belt { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: 100dvh; }
  .rail { order: 2; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); }
  .logo, .rail-foot, .nav-sep { display: none; }
  .nav { flex-direction: row; justify-content: space-around; padding: 4px; overflow-x: auto; }
  .nav a { padding: 10px; }
  .nav a.on::before { left: 8px; right: 8px; top: auto; bottom: -4px; height: 3px; width: auto; }
  .top { padding: 12px 16px; gap: 10px; }
  .view.pad { padding: 16px; }
  .urow { grid-template-columns: 34px 1fr; } .urow > :nth-child(n+3) { grid-column: 2; justify-self: start; }
  .route { grid-template-columns: 1fr; } .route .arrow { transform: rotate(90deg); justify-self: start; }
  .slot-row { grid-template-columns: 1fr 80px; } .slot-row .days { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
}

/* генератор текста в окне публикации */
.gen { position: relative; border-radius: 16px; padding: 14px 16px 12px; background: linear-gradient(160deg, rgba(254,115,54,.10), rgba(252,11,106,.06) 50%, rgba(25,19,27,.9)); border: 1px solid transparent; background-clip: padding-box; display: flex; flex-direction: column; gap: 10px; }
.gen::before { content: ''; position: absolute; inset: -1px; border-radius: 17px; padding: 1px; background: linear-gradient(135deg, #FFC60C, #FE7336 45%, #FC0B6A); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.gen-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.gen-h b { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.gen-mode { font: 600 11px var(--f-m); color: var(--muted); padding: 3px 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); }
.gen-mode.on { color: #FFC60C; border-color: rgba(255,198,12,.45); }
.gen-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gen-row > .lbl { width: 42px; }
.gen .chip { height: 26px; font-size: 11.5px; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* внешняя медиатека — Google Диск */
.drive-h { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.crumbs a { color: var(--text2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs a:last-of-type { color: #FFC60C; }
.crumbs .sep { color: var(--faint); }
.dfolders { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.drive.compact .dfolders { grid-template-columns: 1fr; gap: 6px; }
.dfolder { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 13px; transition: border-color .15s, background .15s, transform .12s; min-width: 0; }
.dfolder:hover { border-color: rgba(254,115,54,.6); background: var(--panel2); transform: translateY(-1px); }
.dfolder .fi { color: #FE7336; display: inline-flex; }
.drive.compact .dfolder { padding: 8px 10px; font-size: 12px; }
.mt.dim { opacity: .45; cursor: not-allowed; }
.belt-h .seg button { height: 26px; padding: 0 10px; font-size: 11.5px; }
