/* Конвейер мест: рабочий стол редактора. Светлый, спокойный, под долгую
   работу: тёмная шапка, белые панели, бирюзовый цвет действия как у «Где
   это?». Сложность мест везде одними цветами: зелёный, янтарь, красный. */

@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/golos-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/golos-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2190-21FF;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(/fonts/oswald-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(/fonts/oswald-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2116;
}

:root {
  --bg: #eef1f5;
  --panel: #fff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --accent: #0d9488;
  --accent-hi: #14b8a6;
  --accent-soft: #ccfbf1;
  --accent-ink: #fff;
  --stop: #dc2626;
  --warn: #b45309;
  --ok: #15803d;
  --d1: #16a34a;
  --d2: #f59e0b;
  --d3: #ef4444;
  --hd: #0f172a;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --r: 14px;
  --sh: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 14px/1.45 var(--sans); color: var(--ink); background: var(--bg); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
svg[viewBox="0 0 24 24"] { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 5px; border: 1px solid currentColor; font: 600 10.5px/1.4 var(--sans); opacity: .55; text-align: center; }
.muted { color: var(--ink-2); }
.grow { flex: 1; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 11px;
  font-weight: 650; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .1s, opacity .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; }
.btn--sm { min-height: 34px; padding: 5px 11px; font-size: 13px; border-radius: 9px; }
.btn--big { min-height: 48px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px var(--accent); }
.btn--accent:hover:not(:disabled) { background: #0f766e; }
.btn--accent.is-off { background: #94a3b8; box-shadow: none; }
.btn--line { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); }
.btn--line:hover:not(:disabled) { border-color: var(--ink-3); background: #f8fafc; }
.btn--line.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--danger { background: #fff; border: 1px solid #fecaca; color: var(--stop); }
.btn--danger:hover { background: #fef2f2; }
.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.btn--light:hover { background: rgba(255, 255, 255, .18); }
.btn kbd { margin-left: 2px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.icon { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--ink-2); }
.icon:hover:not(:disabled) { background: rgba(15, 23, 42, .06); color: var(--ink); }
.icon:disabled { opacity: .35; }
.icon.on { color: var(--accent); background: var(--accent-soft); }
.icon--hd { color: rgba(255, 255, 255, .75); }
.icon--hd:hover { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }

/* шапка */
.hd { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--hd); color: #fff; }
.hd__brand { display: flex; align-items: center; gap: 10px; }
.hd__brand b { display: block; font: 700 16px/1.1 var(--sans); }
.hd__brand small { display: block; color: rgba(255, 255, 255, .55); font-size: 11.5px; }
.hd__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-hi); color: #042f2e; }
.hd__city { position: relative; }
.city { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 650; }
.city:hover { background: rgba(255, 255, 255, .14); }
.city i { font-style: normal; opacity: .6; font-size: 11px; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .4); z-index: 10; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; }
.menu button:hover { background: #f1f5f9; }
.menu button.on { font-weight: 700; color: var(--accent); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.hd__stats { display: flex; gap: 14px; flex-wrap: wrap; color: rgba(255, 255, 255, .7); font-size: 13px; }
.hd__stats b { color: #fff; font: 600 15px var(--display); margin-right: 2px; }
.hd__until { color: #5eead4; }
.hd__geo { color: #fde68a; }
.hd__geo::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
.hd__acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* вкладки */
.tabs { position: sticky; top: 56px; z-index: 800; display: flex; gap: 4px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; display: flex; align-items: center; gap: 7px; padding: 12px 12px 11px; color: var(--ink-2); font-weight: 600; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.tabs i { font: 600 11.5px/1 var(--sans); font-style: normal; padding: 3px 7px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); }
.tabs button.on i { background: var(--accent-soft); color: #115e59; }

.main { max-width: 1440px; margin: 0 auto; padding: 18px; }

/* приветствие и загрузка */
.hello { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); gap: 28px; align-items: start; padding: 12px 0 30px; }
.hello h1 { margin: 6px 0 10px; font: 700 40px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.lead { margin: 0 0 18px; font-size: 16px; color: var(--ink-2); max-width: 640px; }
.hello__or { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.note { color: var(--ink-3); font-size: 12.5px; margin: 14px 0 0; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 18px; background: var(--panel); border-radius: var(--r); box-shadow: var(--sh); display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: #115e59; font: 700 15px var(--display); }
.steps b { font-size: 15px; }
.steps span { color: var(--ink-2); font-size: 13px; }
.drop { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed var(--line-2); border-radius: 18px; background: rgba(255, 255, 255, .7); text-align: center; }
.drop--small { padding: 22px 16px; max-width: 560px; margin: 16px auto 0; }
.drop__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.drop__ic svg { width: 26px; height: 26px; }
.drop__t { margin: 6px 0 0; font-weight: 700; font-size: 16px; }
.drop__s { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; }
.drop__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
body.is-drag::after { content: "Отпустите, чтобы добавить фото"; position: fixed; inset: 10px; z-index: 2000; display: grid; place-items: center; border: 3px dashed var(--accent);
  border-radius: 22px; background: rgba(204, 251, 241, .85); color: #115e59; font: 700 26px var(--sans); pointer-events: none; }

.empty { max-width: 640px; margin: 50px auto; text-align: center; }
.empty h2 { margin: 0 0 6px; font: 700 26px var(--display); text-transform: uppercase; }
.empty p { color: var(--ink-2); margin: 0 0 16px; }

/* редактор места */
.ed__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.ed__pos { font: 600 14px var(--display); color: var(--ink-2); margin-right: 2px; letter-spacing: .03em; }
.ed__all { margin-left: auto; }
.ed__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
.ed__photo, .ed__side { min-width: 0; }
.stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; padding: 12px; border-radius: var(--r);
  background: #111827 radial-gradient(circle at 50% 40%, #1f2937, #0b1120); box-shadow: var(--sh); }
.ph { position: relative; display: inline-block; max-width: 100%; line-height: 0; user-select: none; }
.ph img { display: block; max-width: 100%; max-height: min(64vh, 680px); width: auto; height: auto; border-radius: 6px; background: #1f2937; }
.is-blur .ph { cursor: crosshair; touch-action: none; }
.is-blur .ph img { outline: 2px dashed #fde68a; outline-offset: 3px; }
.bl { position: absolute; border: 2px dashed #fde68a; border-radius: 4px; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); background: rgba(253, 230, 138, .12); }
.bl button { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fde68a; color: #422006; opacity: 0; transition: opacity .15s; }
.bl button svg { width: 14px; height: 14px; stroke-width: 2.6; }
.bl:hover button, .is-blur .bl button { opacity: 1; }
.bl--draft { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(253, 230, 138, .22); }
.stage__hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: #fde68a; color: #422006; font-weight: 650; font-size: 13px; white-space: nowrap; }
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tools .btn.on { background: #fde68a; border-color: #f59e0b; color: #422006; }
.tools__meta { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.checks { list-style: none; margin: 10px 0 0; padding: 10px 12px; display: grid; gap: 5px; border-radius: 12px; background: var(--panel); box-shadow: var(--sh); }
.checks li { font-size: 13.5px; }
.checks li.stop { color: var(--stop); font-weight: 650; }
.checks li.warn { color: var(--warn); }
.checks li.ok { color: var(--ok); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.checks button { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-size: 12.5px; }

.mapbox { position: relative; border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: var(--sh); }
.emap { height: 300px; }
.lmap { width: 100%; height: 100%; }
.mapbox__search { position: absolute; top: 10px; left: 54px; right: 10px; z-index: 500; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(15, 23, 42, .18); color: var(--ink-3); }
.mapbox__search input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: none; color: var(--ink); }
.sugg { position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 4px; border-radius: 10px; background: #fff; box-shadow: 0 16px 34px -10px rgba(15, 23, 42, .35); }
.sugg button { display: block; width: 100%; padding: 7px 9px; border-radius: 7px; text-align: left; color: var(--ink); }
.sugg button:hover { background: #f1f5f9; }
.sugg small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.3; }
.sugg p { margin: 6px 8px; color: var(--ink-2); font-size: 13px; }
.mapbox__cap { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--ink-2); font-size: 12.5px; border-top: 1px solid var(--line); }
.mapbox__cap svg { color: var(--accent); width: 16px; height: 16px; }
.leaflet-container { font: 12px var(--sans); background: #e5e7eb; }
.leaflet-container.leaflet-grab, .emap .leaflet-container { cursor: crosshair; }
.kpin { background: none; border: 0; }
.kpin i { position: absolute; left: 4px; top: 0; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent);
  border: 2.5px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.kpin i::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.form { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: var(--r); background: var(--panel); box-shadow: var(--sh); }
.f { position: relative; display: grid; gap: 4px; min-width: 0; }
.f > span { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.f em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.f input, .f textarea, .f select { width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; outline: 0; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.f textarea { resize: vertical; min-height: 58px; }
.f input[data-f="name"] { font-weight: 650; font-size: 15px; padding-right: 150px; }
.f__side { position: absolute; right: 6px; bottom: 6px; padding: 4px 8px; border-radius: 7px; background: #f1f5f9; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.f__side:hover { background: #e2e8f0; color: var(--ink); }
.f__info { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); font-size: 13px; font-weight: 600; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f1f5f9; border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-height: 32px; padding: 4px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.seg button:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.seg button.d1.on { background: var(--d1); color: #fff; }
.seg button.d2.on { background: var(--d2); color: #422006; }
.seg button.d3.on { background: var(--d3); color: #fff; }
.seg button i { font-style: normal; font-size: 11px; opacity: .7; }
.seg kbd { font-size: 9.5px; padding: 0 4px; min-width: 16px; }
.seg--sm button { min-height: 28px; padding: 3px 9px; }
.seg--tabs { display: flex; margin: 4px 0 12px; }

.acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 12px; }
.acts .btn { min-height: 48px; }

/* лента входящих */
.strip { display: flex; gap: 6px; margin-top: 14px; padding: 8px; overflow-x: auto; border-radius: var(--r); background: var(--panel); box-shadow: var(--sh); scrollbar-width: thin; }
.strip__it { position: relative; flex: none; width: 76px; height: 56px; border-radius: 8px; overflow: hidden; background: #e2e8f0; outline: 2px solid transparent; outline-offset: -2px; }
.strip__it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip__it.on { outline-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.lv { position: absolute; right: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.lv.ok { background: var(--d1); } .lv.warn { background: var(--d2); } .lv.stop { background: var(--stop); }

/* пул */
.pool__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.srch { display: flex; align-items: center; gap: 6px; padding: 0 10px; min-width: 240px; flex: 1; max-width: 380px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-3); }
.srch input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: none; color: var(--ink); }
.hint { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; }
.hint--warn { padding: 9px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.pmap { height: min(70vh, 640px); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.card { display: grid; text-align: left; border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: var(--sh); transition: transform .15s var(--ease), box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 30px -14px rgba(15, 23, 42, .35); }
.card__img { position: relative; aspect-ratio: 4 / 3; background: #e2e8f0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__img em { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: #fde68a; color: #422006; font: 600 11px var(--sans); font-style: normal; }
.card__b { display: grid; gap: 2px; padding: 8px 10px 10px; }
.card__b b { font-size: 13.5px; line-height: 1.25; }
.card__b small { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 12px; }
.card--trash { padding-bottom: 10px; }
.card--trash .btn { margin: 0 10px; }
.dd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dd.d1 { background: var(--d1); } .dd.d2 { background: var(--d2); } .dd.d3 { background: var(--d3); }

/* расписание */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 12px; margin-bottom: 12px; }
.kpi { padding: 14px 16px; border-radius: var(--r); background: var(--panel); box-shadow: var(--sh); }
.kpi b { display: block; font: 700 32px/1.05 var(--display); }
.kpi span { color: var(--ink-2); font-size: 13px; }
.kpi--ok b { color: var(--ok); }
.kpi--warn b { color: var(--warn); }
.kpi--ctl { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; }
.kpi--ctl .seg { justify-self: start; }
.plan__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.plan__legend { margin-left: auto; display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 12.5px; }
.plan__legend .dd { margin-left: 6px; }
.days { display: grid; gap: 6px; }
.month { margin: 14px 0 4px; font: 600 15px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.day { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--panel); box-shadow: var(--sh); }
.day.is-we .day__d span { color: var(--stop); }
.day.is-today { box-shadow: 0 0 0 2px var(--accent), var(--sh); }
.day.is-past { opacity: .55; }
.day.is-locked { background: #f0fdfa; }
.day__d { display: grid; justify-items: center; line-height: 1.05; }
.day__d b { font: 700 26px var(--display); }
.day__d span { color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.day__d em { margin-top: 3px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.day__ph { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.th { position: relative; display: block; border-radius: 9px; overflow: hidden; aspect-ratio: 16 / 10; background: #e2e8f0; text-align: left; box-shadow: inset 0 -3px 0 var(--c, transparent); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 6px; color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.2;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th::after { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: var(--c); }
.th.d1 { --c: var(--d1); } .th.d2 { --c: var(--d2); } .th.d3 { --c: var(--d3); }
.th:not(:disabled):hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.day__acts { display: flex; align-items: center; gap: 2px; }
.tag { padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); font-size: 11.5px; font-weight: 650; margin-right: 4px; }
.tag--warn { background: #fef3c7; color: #92400e; }

/* окна */
.modal { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal__box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px 22px 18px; border-radius: 18px; background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); animation: pop .2s var(--ease); }
.modal__box--wide { max-width: 860px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal__box h2 { margin: 0 0 8px; padding-right: 34px; font: 700 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.modal__box > p { margin: 0 0 12px; color: var(--ink-2); }
.modal__box .f { margin-bottom: 10px; }
.modal__x { position: absolute; top: 12px; right: 12px; }
.modal__row { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px; }
.keys { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.keys td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.keys td:first-child { width: 120px; white-space: nowrap; }
.keys kbd { opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 13px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.find { display: flex; gap: 6px; margin-bottom: 6px; }
.find input { flex: 1; }
.pmini { height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 4px; }
.f small { display: block; margin-bottom: 4px; }
.sum { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; }
.sum li { padding: 9px 12px; border-radius: 10px; background: #f8fafc; }
.sum b { font: 700 18px var(--display); margin-right: 4px; color: var(--accent); }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.cand { display: grid; gap: 3px; text-align: left; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.cand:hover { border-color: var(--accent); background: #f0fdfa; }
.cand img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; background: #e2e8f0; display: block; }
.cand b { font-size: 13px; line-height: 1.2; }
.cand small { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 11.5px; }

/* фоновая работа и уведомления */
.busy { position: fixed; left: 18px; bottom: 18px; z-index: 1600; width: min(380px, calc(100vw - 36px)); padding: 12px 14px; border-radius: 14px; background: var(--hd); color: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); }
.busy__t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busy__bar { height: 6px; margin: 8px 0 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.busy__bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent-hi); transition: width .25s; }
.busy__n { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .65); font-size: 12px; }
.busy__n button { color: #fde68a; font-size: 12px; text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1700; display: flex; align-items: center; gap: 14px; max-width: min(640px, calc(100vw - 32px));
  padding: 11px 16px; border-radius: 12px; background: var(--hd); color: #fff; font-weight: 600; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .5); animation: pop .2s var(--ease); }
.toast button { color: #5eead4; font-weight: 700; white-space: nowrap; }

@media (max-width: 1100px) {
  .ed__grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi--ctl { grid-column: 1 / -1; }
  .hello { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hd { flex-wrap: wrap; gap: 10px; padding: 8px 12px; position: static; }
  .hd__brand small { display: none; }
  .hd__stats { order: 5; width: 100%; }
  .hd__acts .btn span { display: none; }
  .hd__acts .btn { padding: 8px 10px; }
  .tabs { top: 0; padding: 0 8px; overflow-x: auto; }
  .main { padding: 12px; }
  .hello h1 { font-size: 30px; }
  .stage { min-height: 240px; padding: 8px; }
  .f2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .day { grid-template-columns: 44px 1fr; }
  .day__acts { grid-column: 1 / -1; justify-content: flex-end; }
  .day__ph { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .th span { display: none; }
  .plan__legend { margin-left: 0; }
  .ed__all { margin-left: 0; }
  .ed__bar { flex-wrap: wrap; }
  .f input[data-f="name"] { padding-right: 11px; }
  .f__side { position: static; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
