:root {
  --bg: #0b1018;
  --card: #151b27;
  --card2: #1b2333;
  --line: rgba(255, 255, 255, 0.06);
  --text: #f4f7fb;
  --muted: #8b97ab;
  --teal: #2ee9c7;
  --gold: #f5b942;
  --mint: #3ee0b8;
  --rose: #ff7a9c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  border: 1px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
  background-clip: padding-box;
}
body {
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(46, 233, 199, 0.12), transparent),
    radial-gradient(700px 300px at 90% 0%, rgba(245, 185, 66, 0.08), transparent),
    var(--bg);
  color: var(--text);
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card, .panel, .stat, .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(420px, 100%);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  background: #141a26;
}
.login-glow {
  position: absolute;
  inset: auto -40px -80px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(46,233,199,.35), transparent 70%);
}
.eyebrow { display: none; }
h1, h2, h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
label { display: grid; gap: 8px; margin: 16px 0; font-size: 13px; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e141e;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}
textarea { resize: vertical; min-height: 88px; }
.btn-primary, .chip, .ghost, .logout, .nav-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.btn-primary, .btn-secondary {
  width: 100%;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.btn-primary {
  background: linear-gradient(90deg, var(--teal), #67f0c2);
  color: #06241c;
}
.btn-secondary {
  background: #121a26;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-primary.slim, .btn-secondary.slim, .top-actions .btn-primary, .top-actions .btn-secondary {
  width: auto;
  margin-top: 0;
}
.top-actions {
  display: grid;
  grid-template-columns: 168px 168px;
  gap: 10px;
  flex-wrap: nowrap;
}
.top-actions[hidden] { display: none !important; }
.top-actions .btn-primary,
.top-actions .btn-secondary {
  width: 168px;
  height: 42px;
  margin: 0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0;
}
.top-actions .btn-secondary {
  background: rgba(46, 233, 199, 0.06);
  color: var(--teal);
  border: 1px solid rgba(46, 233, 199, 0.42);
  box-shadow: none;
}
.top-actions .btn-secondary:hover {
  background: rgba(46, 233, 199, 0.12);
}
.top-actions .btn-primary {
  border: 1px solid rgba(103, 240, 194, 0.7);
  box-shadow: 0 8px 22px rgba(46, 233, 199, 0.38);
  font-weight: 800;
}
.top-actions .btn-secondary {
  font-weight: 600;
  opacity: 0.92;
}
.form-error { color: var(--rose); font-size: 13px; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  margin: 16px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #121826;
  border-radius: 32px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.brand small { display: block; font-size: 12px; font-weight: 500; }
.bot-link { color: var(--teal); text-decoration: none; }
.bot-link:hover { text-decoration: underline; }
.who {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 16px;
}
.who:hover { background: rgba(46,233,199,.08); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f5b942, #ff7a9c);
  font-weight: 700;
}
.who small { display: block; color: var(--muted); }
nav { display: grid; gap: 6px; }
.nav-btn, .logout {
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nav-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #2ee9c7;
  color: #06241c;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  flex: 0 0 auto;
}
.nav-unread.nav-kp {
  background: #ff6600;
  color: #fff;
}
.nav-alert {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff7a9c;
  color: #2a1018;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  flex: 0 0 auto;
}
.settings-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
}
.settings-subhead { margin: 28px 0 8px; font-size: 16px; }
.nav-btn.active, .nav-btn:hover { background: rgba(46,233,199,.08); color: var(--text); }
.logout { margin-top: auto; color: var(--rose); }

main { padding: 28px 28px 48px 8px; }
.top { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
body.constructor-mode .top h1 { display: none; }
body.constructor-mode .top { margin-bottom: 8px; min-height: 0; }
body.constructor-mode main { padding-top: 12px; }
body.settings-mode .top h1 { display: none; }
body.settings-mode .top { margin-bottom: 4px; min-height: 0; }
body.settings-mode main {
  padding-top: 8px;
  padding-bottom: 12px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.settings-mode .settings-panel .chip-row { margin-top: 0; }
#view-settings:not(.hidden) {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.home-notice-list { margin: 0; padding-left: 18px; color: #ffd2cc; }
.home-notices-alert h3 { color: #ffb4c4; }

.ov {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  grid-template-rows: auto 1fr;
  gap: 12px;
  align-items: start;
}
.ov-pulse {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.ov-pulse-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  color: inherit;
  min-height: 58px;
}
.ov-pulse-card:hover { border-color: rgba(46,233,199,0.28); }
.ov-pulse-card .ov-pulse-value {
  grid-row: 1 / span 2;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  min-width: 1.4em;
}
.ov-pulse-card b { font-size: 12px; font-weight: 650; }
.ov-pulse-card small { color: var(--muted); font-size: 11px; }
.ov-pulse-card.is-off { opacity: 0.62; }
.ov-pulse-card.is-hot .ov-pulse-value { color: var(--teal); }
.ov-pulse-card.is-kp.is-hot .ov-pulse-value { color: #ff6600; }
.ov-pulse-card.is-alert .ov-pulse-value { color: #ff9eb4; }
.ov-main, .ov-side { display: grid; gap: 12px; min-width: 0; }
.ov-panel {
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #161d2a, #121824);
  border: 1px solid rgba(255,255,255,0.07);
}
.ov-attention { max-height: min(42vh, 380px); overflow: auto; }
.ov-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.ov-head h3 { margin: 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #c5d0e0; }
.ov-head small { color: var(--muted); font-size: 11px; }
.ov-card {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  grid-template-rows: auto auto;
  gap: 1px 10px;
  padding: 9px 10px;
  margin: 0 0 7px;
  border-radius: 12px;
  text-align: left;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.ov-card:last-child { margin-bottom: 0; }
.ov-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}
.ov-ico {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.ov-ico svg { width: 16px; height: 16px; }
.ov-card .ov-src { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ov-card strong { font-size: 13px; grid-column: 2; }
.ov-card .ov-text { grid-column: 2; font-size: 12px; color: #b7c3d6; }
.ov-card time { grid-column: 3; grid-row: 1 / span 2; font-size: 11px; color: var(--muted); align-self: center; white-space: nowrap; }
.ov-src-application { box-shadow: inset 3px 0 0 #2ee9c7; }
.ov-src-application .ov-ico { background: rgba(46,233,199,0.14); color: #7ff3dc; }
.ov-src-messenger { box-shadow: inset 3px 0 0 #6ea8ff; }
.ov-src-messenger .ov-ico { background: rgba(110,168,255,0.16); color: #9ec4ff; }
.ov-src-mail { box-shadow: inset 3px 0 0 #f5b942; }
.ov-src-mail .ov-ico { background: rgba(245,185,66,0.14); color: #f5b942; }
.ov-src-watch { box-shadow: inset 3px 0 0 #ff8a4c; }
.ov-src-watch .ov-ico { background: rgba(255,138,76,0.14); color: #ffb089; }
.ov-src-kinopoisk { box-shadow: inset 3px 0 0 #ff5500; }
.ov-src-kinopoisk .ov-ico { background: rgba(255,85,0,0.16); color: #ff9a66; }
.ov-pri-high { background: linear-gradient(90deg, rgba(255,122,156,0.08), rgba(255,255,255,0.03)); }
.ov-calm {
  padding: 22px 14px;
  border-radius: 12px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(46,233,199,0.14), transparent 62%);
}
.ov-calm b { display: block; margin-bottom: 4px; }
.ov-calm p { margin: 0; color: var(--muted); font-size: 13px; }
.ov-buckets, .ov-watch { display: grid; gap: 6px; }
.ov-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  color: inherit;
  text-align: left;
}
.ov-row:hover { border-color: rgba(255,255,255,0.12); }
.ov-row span { color: var(--muted); font-size: 12px; }
.ov-row b { font-size: 13px; }
.ov-row.has-n b { color: var(--teal); }
.ov-mini {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  width: 100%;
  margin-top: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  text-align: left;
  color: inherit;
  background: rgba(255,138,76,0.08);
  border: 1px solid rgba(255,138,76,0.16);
}
.ov-mini b { font-size: 12px; }
.ov-mini span { grid-column: 1; font-size: 11px; color: #b7c3d6; }
.ov-mini time { grid-column: 2; grid-row: 1 / span 2; font-size: 11px; color: var(--muted); align-self: center; }
.ov-empty-line { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.ov-feed { max-height: 210px; overflow: auto; padding-right: 2px; }
.ov-feed .ov-card { grid-template-columns: 28px 1fr auto; padding: 7px 8px; }
.ov-feed .ov-ico { width: 28px; height: 28px; border-radius: 8px; }
.ov-mail p, .ov-kp p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ov-letter, .ov-kp-item {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: inherit;
  font: inherit;
}
.ov-letter:hover, .ov-kp-item:hover { border-color: rgba(255,255,255,0.14); }
.ov-letter b, .ov-kp-item b { font-size: 12px; }
.ov-letter span, .ov-kp-item span { font-size: 12px; color: #b7c3d6; }
.ov-letter small, .ov-kp-item small { font-size: 11px; color: var(--muted); }
.ov-kp-item { border-color: rgba(255, 102, 0, 0.35); background: rgba(255, 102, 0, 0.08); }
.app-filters { margin-bottom: 12px; }
.app-filters .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-filters .chip.drop-target {
  outline: 2px solid var(--teal);
  background: rgba(46, 233, 199, 0.16);
}
.app-filters .chip.has-action {
  background:
    linear-gradient(145deg, rgba(167, 255, 214, 0.28), rgba(46, 233, 199, 0.08) 38%, rgba(16, 90, 62, 0.55) 72%, rgba(18, 42, 34, 0.92)),
    linear-gradient(180deg, #1a3d32, #12241e);
  border-color: rgba(103, 240, 194, 0.48);
  box-shadow: 0 8px 18px rgba(20, 90, 55, 0.32), inset 0 1px 0 rgba(200, 255, 230, 0.2);
  color: #e8fff6;
}

.stat { padding: 20px; }
.stat.gold { background: linear-gradient(180deg, #2a2214, #171410); }
.stat.teal { background: linear-gradient(180deg, #102924, #10161f); }
.stat.mint { background: linear-gradient(180deg, #14241f, #121820); }
.stat.rose { background: linear-gradient(180deg, #2a1520, #151018); }
.stat p { margin: 0; color: var(--muted); }
.stat h2 { font-size: 36px; margin: 10px 0; }
.stat span { color: var(--teal); font-size: 13px; }

.panel { padding: 22px; background: #141b28; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f1622;
  color: var(--text);
  border: 1px solid var(--line);
}
.hidden { display: none !important; }
.drag-hint { margin: 0 0 14px; }
.task-board {
  display: grid;
  gap: 18px;
  align-items: start;
}
.task-board.cols-1 { grid-template-columns: 1fr; }
.task-board.cols-2 { grid-template-columns: 1fr 1fr; }
.task-board.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.task-kp-inbox {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.task-kp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 102, 0, 0.45);
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.16), rgba(255, 102, 0, 0.05));
  color: inherit;
  text-decoration: none;
  font: inherit;
}
.task-kp-row:hover { border-color: #ff6600; }
.task-kp-row b { color: #ffb080; }
.task-kp-row span { color: #e8d4c8; font-size: 13px; }
.task-col {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: #0c121c;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 6px 8px 8px;
  margin: -2px -2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.col-head img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.col-head img.logo-imdb { background: #fff; }
.col-head small { margin-left: auto; color: var(--muted); font-weight: 500; }
.col-kt { border-top: 3px solid #d71f27; }
.col-kp { border-top: 3px solid #ff5500; }
.col-kr { border-top: 3px solid #38bdf8; }
.col-imdb { border-top: 3px solid #f5c518; }
.task-card {
  padding: 10px 10px 8px 12px;
  display: grid;
  gap: 4px;
  cursor: grab;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #1a2333;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.task-card.dragging { opacity: .55; cursor: grabbing; }
.task-card:hover {
  border-color: rgba(255,255,255,0.2);
}
.task-card .card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.task-card h3 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.title-box {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.rename-pen {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  opacity: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.task-card:hover .rename-pen,
.task-card.editing .rename-pen,
.rename-pen:focus-visible {
  opacity: 1;
}
.rename-pen:hover { color: var(--teal); background: rgba(46,233,199,.12); }
@media (hover: none) {
  .rename-pen { opacity: .7; }
}
.rename-pen svg { width: 13px; height: 13px; display: block; }
.title-input {
  width: 100%;
  margin: 0;
  padding: 2px 6px;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.25;
}
.task-card.status-changed {
  background:
    linear-gradient(145deg, rgba(167, 255, 214, 0.28), rgba(46, 233, 199, 0.08) 38%, rgba(16, 90, 62, 0.55) 72%, rgba(18, 42, 34, 0.92)),
    linear-gradient(180deg, #1a3d32, #12241e);
  border-color: rgba(103, 240, 194, 0.48);
  box-shadow: 0 10px 26px rgba(20, 90, 55, 0.38), inset 0 1px 0 rgba(200, 255, 230, 0.22);
}
.task-card.status-changed::after {
  background: linear-gradient(180deg, #b8ffe0, #2ee9c7, #148f68);
  width: 4px;
}
.task-card.site-down {
  background:
    linear-gradient(145deg, rgba(255, 132, 118, 0.34), rgba(220, 48, 48, 0.1) 36%, rgba(96, 18, 22, 0.62) 74%, rgba(28, 16, 18, 0.94)),
    linear-gradient(180deg, #4a1c1c, #1c1214);
  border-color: rgba(255, 120, 110, 0.5);
  box-shadow: 0 10px 26px rgba(90, 20, 20, 0.38), inset 0 1px 0 rgba(255, 210, 200, 0.18);
}
.task-card.site-down::after {
  background: linear-gradient(180deg, #ffc4bc, #e94444, #8f1818);
  width: 4px;
}
.task-card.site-down .down-note {
  color: #ffd2cc;
}
.change-list {
  display: grid;
  gap: 3px;
  margin: 2px 0 0;
}
.change-list span {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  color: #c8ffe8;
}
.row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}
.kind-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}
.kind-mark img { width: 13px; height: 13px; display: block; }
.task-card.kind-film .kind-mark { background: rgba(255, 176, 72, .28); }
.task-card.kind-person .kind-mark { background: rgba(120, 176, 255, .28); }
.task-card.kind-watch .kind-mark { background: rgba(62, 224, 184, .28); }
.task-card.kind-film::after,
.task-card.kind-person::after,
.task-card.kind-watch::after {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
}
.task-card.kind-film::after { background: #ffb347; }
.task-card.kind-person::after { background: #7eb0ff; }
.task-card.kind-watch::after { background: #3ee0b8; }
.meta { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.meta.continue-line { color: var(--teal); }
.meta.continue-line .ghost {
  padding: 3px 8px;
  font-size: 11px;
}
.row-actions .ghost {
  padding: 5px 4px;
  border-radius: 999px;
  font-size: 11.5px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.ghost {
  padding: 8px 12px;
  border-radius: 999px;
  background: #0f1622;
  color: var(--text);
  border: 1px solid var(--line);
}
.progress-wrap { margin: 16px 0; }
.bar { height: 10px; background: #0e141e; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.log { white-space: pre-wrap; color: var(--muted); margin-top: 16px; }
.site-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.site-actions button {
  padding: 18px 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #101722;
  color: var(--text);
  text-align: left;
}
.wizard { display: grid; gap: 12px; margin-top: 16px; }
.toast {
  position: fixed; right: 24px; bottom: 24px;
  background: #151c29; border: 1px solid var(--line);
  padding: 14px 18px; border-radius: 16px; max-width: 420px;
  z-index: 400;
  pointer-events: none;
}
.informer, .informer-pop {
  border-radius: 18px;
  padding: 16px 18px;
  margin: 16px 0 0;
  border: 1px solid var(--line);
}
.informer.news, .informer-pop.news {
  background: linear-gradient(135deg, rgba(255,122,156,.2), rgba(21,28,41,.95));
}
.informer.same, .informer-pop.same, .informer.empty, .informer-pop.empty {
  background: linear-gradient(135deg, rgba(46,233,199,.16), rgba(21,28,41,.95));
}
.informer.down, .informer.error, .informer-pop.down, .informer-pop.error {
  background: linear-gradient(135deg, rgba(245,185,66,.2), rgba(21,28,41,.95));
}
.informer h4, .informer-pop h4 { margin: 0 0 6px; }
.informer-pop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 380px;
  margin: 0;
  box-shadow: var(--shadow);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,8,14,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
  overflow: auto;
}
#app-dialog { z-index: 70; }
.modal {
  width: min(560px, 100%);
  background: #141b28;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}
.site-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.site-pick button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #101722;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.site-pick button img { width: 28px; height: 28px; border-radius: 8px; background: #1a2230; padding: 0; object-fit: cover; }
.site-pick button img.logo-imdb { background: #fff; }
.site-pick button:disabled { opacity: .45; cursor: not-allowed; }
.confirm-modal { width: min(420px, 100%); }
.confirm-modal h3 { margin-bottom: 10px; }
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.btn-danger {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d6d, #c81e4a);
  color: #fff;
}
.btn-danger:focus-visible {
  outline: 2px solid #ff8aa0;
  outline-offset: 2px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
#app-grid {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}
.app-tile {
  align-items: start;
  min-height: 132px;
  padding: 16px 28px 16px 16px;
}
.app-tile.app-kind-person {
  background: #141c2c;
  border-color: rgba(126, 176, 255, .28);
  box-shadow: inset 4px 0 0 #7eb0ff;
}
.app-tile.app-kind-film {
  background: #1c1914;
  border-color: rgba(255, 179, 71, .38);
  box-shadow: inset 4px 0 0 #ffb347;
}
.app-tile.app-kind-film .client-tile-ava {
  background: linear-gradient(135deg, #e09a3a, #ffb347);
}
.app-tile-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.app-tile-body b {
  font-size: 16px;
  line-height: 1.3;
}
.app-tile-kind {
  color: var(--text);
  opacity: .88;
}
.app-tile-status {
  font-weight: 600;
}
.app-tile-quiet,
.form-meta-quiet {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  opacity: .72;
}
.app-tile.status-changed {
  background:
    linear-gradient(145deg, rgba(167, 255, 214, 0.28), rgba(46, 233, 199, 0.08) 38%, rgba(16, 90, 62, 0.55) 72%, rgba(18, 42, 34, 0.92)),
    linear-gradient(180deg, #1a3d32, #12241e);
  border-color: rgba(103, 240, 194, 0.48);
  box-shadow: 0 10px 26px rgba(20, 90, 55, 0.38), inset 0 1px 0 rgba(200, 255, 230, 0.22);
}
.form-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.form-photo {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
  border-radius: 10px;
}
.form-photos.cover .form-photo {
  width: 180px;
  height: 180px;
  flex: 0 0 180px;
}
.form-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  background: #0e1621;
  display: block;
  color: transparent;
  text-indent: -999px;
  overflow: hidden;
}
.form-photo-tools {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  gap: 4px;
}
.form-photo:hover .form-photo-tools { display: flex; }
.form-photo-tools a,
.form-photo-tools button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(10, 16, 24, .82);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 12px;
  padding: 0;
}
.form-photo-add {
  width: auto;
  margin-top: 8px;
}
.client-tile {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: #141b28;
  color: inherit;
  font: inherit;
  border-radius: 22px;
  padding: 14px 28px 14px 14px;
  cursor: pointer;
  position: relative;
}
.client-tile:hover { border-color: rgba(46,233,199,.35); }
.client-tile.pinned {
  background: #17212b;
  border-color: rgba(139, 151, 171, .28);
}
.client-tile.dragging { opacity: .45; }
.client-pin {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  color: #8b97ab;
  transform: rotate(40deg);
  pointer-events: none;
}
.client-tile:hover { border-color: rgba(46,233,199,.35); }
.client-tile-ava, .client-modal-ava, .msg-head-avatar, .msg-avatar {
  overflow: hidden;
}
.client-tile-ava {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #5b8def, #2ee9c7);
  font-weight: 700;
  flex: 0 0 52px;
}
.client-tile-ava img, .client-modal-ava img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.client-tile b { display: block; }
.client-tile small { display: block; color: var(--muted); margin-top: 2px; }
.client-modal {
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 8px 14px 18px;
  background: #17212b;
  border-radius: 16px;
}
.client-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  margin: 0;
}
.client-modal-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-right: 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.client-modal-scroll::-webkit-scrollbar {
  width: 4px;
}
.client-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}
.client-modal-scroll:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.32);
}
.client-modal-foot {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background: #17212b;
  padding-right: 10px;
}
.client-modal-foot .btn-primary.slim,
.client-modal-foot .ghost {
  width: 100%;
  margin: 0;
  padding: 12px 10px;
}
.client-modal-top {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  margin: 4px 28px 16px 0;
}
.client-modal-top h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.client-modal-ava {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #5b8def, #2ee9c7);
  font-weight: 700; font-size: 28px;
}
.client-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
.client-facts div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  font-size: 14px;
}
.client-facts dt { color: var(--muted); margin: 0; }
.client-facts dd { margin: 0; }
.client-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.client-empty {
  color: var(--muted);
  padding: 24px 4px;
}
.form-modal {
  width: min(860px, 100%);
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 8px 14px 18px;
  background: #17212b;
  border-radius: 16px;
}
.form-modal-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-right: 10px;
  padding-top: 8px;
}
.form-modal-foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  margin-top: 8px;
  padding-right: 10px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.form-modal-foot .ghost,
.form-modal-foot .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.form-modal-foot .ghost {
  background: #0f1622;
  color: var(--text);
  border: 1px solid var(--line);
}
.form-modal-foot .form-delete {
  margin-left: auto;
  color: var(--muted);
  background: transparent;
}
.form-sync-bar {
  flex: 0 0 auto;
  margin: 8px 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #d5e0ee;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.form-sync-bar.is-ok {
  color: #c8ffe8;
  border-color: rgba(103, 240, 194, 0.35);
  background: rgba(46, 233, 199, 0.08);
}
.form-sync-bar.is-processing {
  color: #e8fff6;
}
.form-sync-bar.is-error {
  color: #ffd2cc;
  border-color: rgba(255, 120, 110, 0.4);
  background: rgba(220, 48, 48, 0.12);
}
.form-kind-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.app-path {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #161d2a, #121824);
  border: 1px solid rgba(255,255,255,0.07);
}
.app-path .ov-head { margin-bottom: 8px; }
.app-path-now { margin: 0 0 10px; color: var(--teal); font-weight: 650; }
.app-path-empty {
  margin: 0 0 8px;
  font-weight: 700;
  color: #f3c96b;
}
.app-path-arrow {
  text-align: center;
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 16px;
}
.app-path-mark {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}
.app-path-mark.is-current,
.app-path-mark.is-now { color: var(--teal); }
.app-path-mark.is-completed,
.app-path-mark.is-done { color: #81c995; }
.app-path-mark.is-skipped,
.app-path-mark.is-skip { color: #c5d0e0; }
.app-path-cycle {
  margin: 4px 0 0;
  color: #f3c96b;
  font-weight: 650;
}
.app-form-details {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.app-form-details summary {
  cursor: pointer;
  font-weight: 700;
}
.app-path-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 10px;
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.app-path-step p { margin: 2px 0; }
.app-path-step small { color: var(--muted); }
.app-path-step.is-current {
  border-color: rgba(46, 233, 199, 0.45);
  background: rgba(46, 233, 199, 0.08);
}
.app-path-step.is-completed { opacity: 0.72; }
.app-path-step.is-pending { opacity: 0.92; }
.app-path-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(46, 233, 199, 0.12);
  color: var(--teal);
  font-weight: 700;
}
.app-path-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.app-work {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #161d2a, #121824);
  border: 1px solid rgba(255,255,255,0.07);
}
.app-work-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.app-work-progress span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}
.app-work-progress span.is-done { color: #81c995; border-color: rgba(129,201,149,0.35); }
.app-work-monitor {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #121a22;
  border: 1px solid var(--line);
}
.app-work-monitor p { margin: 0 0 6px; }
.app-work-monitor p:last-child { margin: 0; }
.app-work-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.app-work-pre {
  white-space: pre-wrap;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border-radius: 12px;
  background: #121a22;
  border: 1px solid var(--line);
  font: inherit;
}
.app-work-pending {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.app-work-correction {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 176, 65, 0.35);
  border-radius: 12px;
  background: rgba(245, 176, 65, 0.08);
}
.app-work-correction p { margin: 0 0 8px; }
.app-work-correction h4 { margin: 12px 0 6px; }
.app-work-correction-item {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.app-work-correction-item.is-current { border: 1px solid rgba(245, 176, 65, 0.4); }
@media (max-width: 720px) {
  .app-work-split { grid-template-columns: 1fr; }
}
.btn-danger.ready {
  background: linear-gradient(90deg, #ff4d6d, #c81e4a);
  color: #fff;
  opacity: 1;
  cursor: pointer;
}
.app-card-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 36px;
  margin-bottom: 4px;
}
.app-card-tabs button {
  border: 1px solid var(--line);
  background: #1e2a36;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.app-card-tabs button.active {
  border-color: #2ee9c7;
  background: rgba(46, 233, 199, 0.12);
}
.gen-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.gen-toolbar #gen-task-tabs {
  flex: 1 0 100%;
  margin: 0 0 2px;
}
.gen-toolbar .slim { width: auto; }
.gen-status {
  min-height: 1.4em;
  margin: 0 0 10px;
  color: var(--muted);
}
.gen-status.is-error { color: #f28b82; }
.gen-status.is-ok { color: #81c995; }
.gen-text {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #121a22;
  color: var(--text);
}
.settings-panel {
  max-width: none;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 12px;
  border-radius: 22px;
}
#settings-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.settings-subhead { margin: 16px 0 6px; font-size: 15px; }
.settings-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.settings-subtabs[data-prompt-level="kind"] { margin-top: 0; }
.settings-subtabs[data-prompt-level="site"] { margin-top: 0; }
.settings-subtabs[data-prompt-level="task"] { margin-bottom: 12px; }
.settings-subtabs button {
  border: 1px solid var(--line);
  background: #1e2a36;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
}
.settings-subtabs button.active {
  border-color: #2ee9c7;
  background: rgba(46, 233, 199, 0.12);
}
.settings-field { display: grid; gap: 6px; margin: 0 0 14px; }
.settings-field span { color: var(--muted); font-size: 13px; }
.settings-field input,
.settings-field textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #121a22;
  color: var(--text);
}
.settings-prompt {
  min-height: calc(100vh - 340px);
  resize: vertical;
  line-height: 1.45;
}
.settings-grow {
  min-height: 72px;
  overflow: hidden;
  resize: none;
}
.settings-account {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 14px;
  background: #15202b;
}
.settings-account h4 { margin: 0 0 12px; }
.settings-status { margin: 8px 0 12px; color: var(--muted); }
.settings-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-hint { margin: 0 0 16px; }
.settings-api-result { margin: 12px 0 0; font-weight: 600; }
.settings-api-result.is-ok { color: #81c995; }
.yd-space {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121a22;
}
.yd-crumbs { margin: 0 0 12px; }
.yd-crumb, .yd-link {
  background: none;
  border: 0;
  color: #2ee9c7;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.yd-table-wrap { overflow: auto; margin-top: 12px; }
.yd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.yd-table th, .yd-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.yd-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.form-head h3 {
  margin: 0;
  font-size: 20px;
}
.form-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.form-title-row h3 { min-width: 0; }
.form-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.form-status {
  color: var(--text);
  font-weight: 600;
}
.form-step {
  background: #121a24;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 10px;
}
.form-step h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.form-step-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.45;
}
.form-copy-name {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b9bb4;
  cursor: pointer;
}
.form-copy-name:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e8eef8;
}
.form-edit {
  cursor: text;
  border-radius: 8px;
  margin: -4px -6px;
  padding: 4px 6px;
}
.form-edit:hover {
  background: rgba(255, 255, 255, 0.05);
}
.form-step-input {
  width: 100%;
  margin: 0;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--teal);
  background: #0e1621;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
}
.form-step-area {
  min-height: 120px;
  resize: vertical;
  white-space: pre-wrap;
}
.form-empty {
  color: var(--muted);
}
.form-photo-count {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}
.form-files {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.form-files a {
  color: var(--teal);
}
.app-dialog-field {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}
.app-dialog-field.hidden { display: none; }
.app-dialog-field span { color: var(--muted); font-size: 13px; }
.app-dialog-field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0e1621;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}
.upload-rows {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.upload-rows.hidden { display: none; }
.upload-row { display: grid; gap: 6px; }
.upload-row span {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-bar {
  height: 8px;
  background: #0e141e;
  border-radius: 999px;
  overflow: hidden;
}
.upload-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width .12s linear;
}
.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(46, 233, 199, 0.42);
  background: rgba(46, 233, 199, 0.08);
  color: var(--teal);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.file-btn input { display: none; }
.file-btn:hover { background: rgba(46, 233, 199, 0.14); }

@media (max-width: 1200px) {
  .task-board.cols-3 { grid-template-columns: 1fr 1fr; }
  .ov { grid-template-columns: 1fr; }
  .ov-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .stat-grid, .site-actions, .task-board.cols-2, .task-board.cols-3 { grid-template-columns: 1fr; }
  .ov-pulse { grid-template-columns: 1fr 1fr; }
  main { padding: 12px 16px 40px; }
  .sidebar { margin: 12px 12px 0; }
  .top-actions { grid-template-columns: 1fr 1fr; width: 100%; }
  .top-actions .btn-primary,
  .top-actions .btn-secondary { width: 100%; }
  .client-form-grid, .client-facts div, .client-modal-foot { grid-template-columns: 1fr; }
  .app-work-split { grid-template-columns: 1fr; }
  .app-path-step { grid-template-columns: 28px 1fr; }
  .app-path-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .form-head h3 { font-size: 20px; }
  .app-path, .app-work { padding: 10px; }
  .app-work-progress span { font-size: 10px; }
}
