:root {
  color-scheme: light;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: #151f34;
  background: #f2f5fa;
  --ink: #131f37;
  --muted: #526079;
  --soft: #ecf0f6;
  --line: #e1e7f0;
  --navy: #101d37;
  --accent: #c72d48;
  --accent-dark: #aa2440;
  --surface: #fff;
  --radius: 15px;
  --shadow: 0 2px 4px #142a4610;
}
*,*::before,*::after { box-sizing:border-box; }
body { margin:0; min-width:320px; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.65; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #617cde; outline-offset:2px; }
button,input { -webkit-tap-highlight-color:transparent; }
img { display:block; max-width:100%; }
h1,h2,h3,p { margin:0; }
a { color:inherit; }
svg.ico { width:20px; height:20px; flex:none; }
.small { font-size:.86rem; color:var(--muted); }
.muted { color:var(--muted); }
.loading { min-height:100vh; display:grid; place-content:center; justify-items:center; gap:20px; background:#070c16; color:#bdcadc; }
.loading img { width:195px; filter:brightness(0) invert(1); }
.btn { min-height:42px; display:inline-flex; gap:8px; align-items:center; justify-content:center; background:#fff; color:var(--ink); padding:8px 14px; border:1px solid #dce3ee; border-radius:9px; font-weight:650; font-size:.9rem; text-decoration:none; white-space:nowrap; }
.btn:hover { background:#f1f4f9; border-color:#becadd; }
.btn.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn.primary:hover { background:var(--accent-dark); border-color:var(--accent-dark); }
.btn.text { background:none; border-color:transparent; color:#254985; padding-inline:5px; }
.btn.text:hover { text-decoration:underline; }
.btn.danger { color:#b12240; }
.btn.icon { min-width:42px; padding:8px; position:relative; }
.btn.ghost { background:#ffffff12; border-color:#a9bada66; color:#fff; }
.btn.ghost:hover { background:#ffffff24; }
.btn svg.ico { width:17px; height:17px; }
.form-error { color:#992037; background:#fff0f3; border:1px solid #f1beca; border-radius:9px; padding:10px 12px; font-size:.9rem; }
.form-error[hidden] { display:none; }
label.field { display:grid; gap:7px; font-size:.88rem; font-weight:650; min-width:0; }
label.field small { color:var(--muted); font-weight:400; font-size:.81rem; }
input:not([type=checkbox]),select,textarea { width:100%; min-height:43px; padding:9px 11px; color:var(--ink); border:1px solid #dce3ee; border-radius:9px; background:#f8fafd; }
textarea { min-height:100px; resize:vertical; line-height:1.5; }
select { appearance:none; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%23526079' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
input::placeholder,textarea::placeholder { color:#68758a; }
.brand-logo { width:174px; height:auto; }
.signin {
  --signin-inset:clamp(27px,4.3vw,88px);
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-rows:auto 1fr;
  min-height:100vh;
  min-height:100svh;
  overflow:hidden;
  background:#070c16;
  color:#f2f6ff;
  color-scheme:dark;
}
.signin-image,.signin::before {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
.signin-image {
  z-index:-2;
  object-fit:cover;
  object-position:left center;
  animation:signin-photo 760ms ease-out both;
}
@media (min-width:1001px) {
  .signin-image { width:136%; max-width:none; }
}
.signin::before {
  content:"";
  z-index:-1;
  background:
    linear-gradient(180deg,#0308118a,transparent 24%,transparent 79%,#03081173),
    linear-gradient(90deg,transparent 50%,#060b161a 76%,#060b1666);
}
.signin-bar { padding:clamp(25px,4.1vh,56px) var(--signin-inset) 0; }
.signin-bar .brand-logo {
  width:clamp(165px,14vw,219px);
  filter:brightness(0) invert(1) drop-shadow(0 1px 8px #000a);
}
.signin-main {
  display:grid;
  align-items:center;
  justify-items:end;
  padding:39px clamp(40px,10.4vw,220px) clamp(44px,9vh,124px) var(--signin-inset);
}
.signin-card {
  width:min(100%,444px);
  padding:clamp(25px,2.6vw,39px);
  border:1px solid #9aafcf55;
  border-radius:18px;
  background:linear-gradient(145deg,#19283baf,#0b1527ce 82%);
  -webkit-backdrop-filter:blur(5px) saturate(115%);
  backdrop-filter:blur(5px) saturate(115%);
  box-shadow:inset 0 1px 0 #d7e6fc20,0 22px 60px #02050b80;
  animation:signin-entry 480ms cubic-bezier(.2,.8,.2,1) both;
}
.signin-heading { margin-bottom:25px; }
.signin-heading h1 {
  font-size:clamp(1.78rem,2.36vw,2.42rem);
  font-weight:680;
  line-height:1.15;
  letter-spacing:-.047em;
  text-wrap:balance;
}
.signin-heading p {
  margin-top:9px;
  color:#b5c2d5;
  font-size:1rem;
  line-height:1.5;
}
.signin-form { display:grid; gap:16px; }
.signin-field { display:grid; gap:7px; font-size:.9rem; font-weight:600; }
.signin-field label { color:#e5edf9; }
.signin-input { position:relative; display:flex; align-items:center; }
.signin-input > .ico {
  position:absolute;
  left:14px;
  width:16px;
  height:16px;
  color:#a8bbd7;
  pointer-events:none;
}
.signin-form .signin-input > input {
  min-height:49px;
  padding:10px 14px 10px 41px;
  border-color:#45546c;
  border-radius:8px;
  background:#071220d6;
  color:#f3f6fc;
  font-weight:450;
  transition:background 150ms,border-color 150ms;
}
.signin-form .signin-input > input::placeholder { color:#a1aec2; }
.signin-form .signin-input > input[name=pin] { padding-right:50px; }
.signin-form .signin-input > input:focus { background:#0b1a2c; border-color:#95adce; }
.signin-card :focus-visible { outline-color:#adc8fc; }
.btn.signin-pin-toggle {
  position:absolute;
  right:5px;
  border-color:transparent;
  color:#a8bbd7;
  background:transparent;
  min-width:38px;
  min-height:38px;
}
.btn.signin-pin-toggle:hover { background:#ffffff12; color:#fff; }
.signin-submit.btn {
  margin-top:3px;
  min-height:49px;
  border-color:#ce4760;
  border-radius:8px;
  background:#b92f4b;
  color:#fff;
  font-size:.96rem;
  transition:background 150ms;
}
.signin-submit.btn:hover { background:#a22841; }
.signin-card .form-error {
  background:#351c2b;
  color:#ffc3cb;
  border-color:#764756;
}
.signin-tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  column-gap:12px;
  row-gap:2px;
  margin-top:20px;
  padding-top:10px;
  border-top:1px solid #7486a339;
}
.signin-tools .btn {
  justify-content:flex-start;
  min-height:38px;
  min-width:0;
  padding-inline:0;
  border-color:transparent;
  background:transparent;
  color:#c6d1e2;
  font-size:.84rem;
  font-weight:550;
  white-space:normal;
  text-align:left;
}
.signin-tools .btn:hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.signin-tools .btn:disabled { cursor:default; opacity:1; color:#aabbd1; text-decoration:none; }
.signin-tools .ico { width:15px; height:15px; }
.device-card {
  position:fixed;
  z-index:7;
  top:16px;
  right:16px;
  display:grid;
  gap:10px;
  width:min(345px,calc(100% - 32px));
  max-height:calc(100dvh - 32px);
  overflow:auto;
  padding:14px 16px 15px;
  border:1px solid #536985;
  border-radius:13px;
  background:#142137;
  color:#f4f7fe;
  box-shadow:0 12px 34px #070d1a6b;
  animation:signin-entry 240ms ease-out both;
}
.device-card[hidden] { display:none; }
.device-card-head { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; }
.device-card-head img { border-radius:8px; }
.device-card-head h2 { font-size:1rem; font-weight:680; letter-spacing:-.015em; }
.device-card p { color:#c7d3e4; font-size:.86rem; line-height:1.45; }
.device-card .btn { justify-self:start; min-height:36px; padding:6px 10px; font-size:.83rem; }
.device-card .btn.icon { min-width:34px; color:#c6d4e8; background:transparent; border-color:transparent; }
.device-card .btn.icon:hover { background:#ffffff16; color:#fff; }
.device-card .btn:focus-visible { outline-color:#adc8fc; }
.device-card .device-card-hint { border-top:1px solid #7c91ad42; padding-top:10px; }
.device-card .device-card-alternative { display:grid; justify-items:start; gap:6px; }
.device-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.device-card-options { display:grid; gap:10px; }
.device-card-options strong { display:flex; gap:6px; align-items:center; margin-bottom:1px; font-size:.86rem; }
.device-card-options strong .ico { width:15px; height:15px; color:#aabfe1; }
.device-card code { color:#edf4ff; }
.notice-actions { display:flex; flex-wrap:wrap; gap:8px; }
.desktop-notice-dialog p { line-height:1.5; }
.desktop-notice-success { margin-top:12px; color:#22613e; }
@media (max-width:700px) {
  .device-card { inset:auto 12px 12px auto; width:min(345px,calc(100% - 24px)); }
  .device-card[data-mode="offer"] { display:none; }
}
.dashboard-load {
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  min-height:100vh;
  min-height:100svh;
  padding:24px;
  background:#070c16;
  color:#f2f6ff;
  color-scheme:dark;
}
.dashboard-load::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:
    linear-gradient(110deg,#070c16b3,#070c16ee 66%),
    url('/turbine-login.webp') left center / cover no-repeat;
}
.dashboard-load-card {
  width:min(100%,490px);
  padding:clamp(23px,4.2vw,42px);
  border:1px solid #6e819a55;
  border-radius:18px;
  background:linear-gradient(145deg,#162233f5,#0b1423fb);
  box-shadow:inset 0 1px 0 #c6d7f11c,0 24px 64px #0007;
  animation:signin-entry 220ms ease-out both;
}
.dashboard-load-card .brand-logo {
  width:172px;
  margin-bottom:26px;
  filter:brightness(0) invert(1);
}
.dashboard-load-card h1 {
  font-size:clamp(1.58rem,4.4vw,2rem);
  line-height:1.15;
  font-weight:680;
  letter-spacing:-.038em;
}
.dashboard-load-card h1:focus,
#workspace h1[tabindex="-1"]:focus { outline:none; }
.dashboard-load-status { color:#b5c2d5; font-size:.92rem; line-height:1.5; }
.dashboard-load-progress {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px 10px;
  align-items:center;
  margin-top:15px;
}
.dashboard-load-percent {
  justify-self:end;
  min-width:3.6ch;
  color:#f3f6fc;
  font-size:1.08rem;
  font-weight:650;
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.dashboard-load-progress progress {
  grid-column:1/-1;
  display:block;
  width:100%;
  height:7px;
  appearance:none;
  accent-color:#e45070;
  border:0;
  border-radius:20px;
  overflow:hidden;
  background:#26344b;
  color:#e45070;
}
.dashboard-load-progress progress::-webkit-progress-bar { background:#26344b; }
.dashboard-load-progress progress::-webkit-progress-value {
  border-radius:20px;
  background:linear-gradient(90deg,#bd3554,#ff7894);
}
.dashboard-load-progress progress::-moz-progress-bar {
  border-radius:20px;
  background:linear-gradient(90deg,#bd3554,#ff7894);
}
.dashboard-load-card > .dashboard-load-status { margin-top:12px; }
.dashboard-load-card > .btn { margin-top:20px; }
.about-app { display:grid; gap:17px; }
.about-app-brand { padding:16px 18px; border-radius:12px; background:#101d37; color:#eaf1fd; }
.about-app-brand img { filter:brightness(0) invert(1); }
.about-app-brand p { margin-top:8px; font-size:.9rem; }
.about-owner { display:flex; gap:10px; align-items:center; }
.about-owner .avatar { width:43px; height:43px; }
.about-owner p { margin-top:4px; }
.about-contacts { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.about-contacts a {
  display:flex;
  align-items:center;
  gap:9px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f7faff;
  color:#25447f;
  font-size:.88rem;
  font-weight:650;
  overflow-wrap:anywhere;
  text-decoration:none;
}
.about-contacts a:hover { border-color:#a4b5d5; text-decoration:underline; }
.about-contacts small { display:block; margin-bottom:3px; color:var(--muted); font-weight:500; }
@keyframes signin-entry {
  from { opacity:.68; transform:translateY(6px); }
  to { opacity:1; transform:none; }
}
@keyframes signin-photo {
  from { opacity:.76; }
  to { opacity:1; }
}
.layout { display:grid; grid-template-columns:242px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100vh; background:var(--navy); color:#eaf0fa; display:flex; flex-direction:column; padding:24px 14px 16px; overflow-y:auto; }
.sidebar-brand { padding:3px 10px 25px; border-bottom:1px solid #ffffff21; margin:0 3px 20px; }
.sidebar-brand img { filter:brightness(0) invert(1); width:163px; margin-bottom:12px; }
.sidebar-brand span { font-size:.84rem; color:#bac6da; display:block; }
.nav { display:grid; gap:4px; }
.nav-section { color:#acb9ce; font-size:.74rem; font-weight:700; letter-spacing:.10em; text-transform:uppercase; margin:8px 12px 7px; }
.nav-btn { background:none; color:#d8e2f3; border:0; position:relative; display:flex; align-items:center; gap:11px; text-align:left; border-radius:9px; font-size:.9rem; width:100%; min-height:43px; padding:9px 10px; }
.nav-btn:hover { background:#ffffff11; color:white; }
.nav-btn[aria-current=page] { background:#223353; color:white; font-weight:700; }
.nav-btn[aria-current=page]::before { content:""; width:3px; height:21px; background:#f4667c; border-radius:0 3px 3px 0; position:absolute; left:0; }
.nav-btn .ico { width:18px; height:18px; color:#9eafcf; }
.nav-btn[aria-current=page] .ico { color:#fff; }
.nav-btn .counter { margin-left:auto; color:#e9effa; background:#ffffff17; padding:2px 7px; border-radius:30px; font-size:.73rem; font-variant-numeric:tabular-nums; }
.sidebar-bottom { margin-top:auto; padding-top:24px; }
.sidebar-bottom .nav { padding-bottom:14px; }
.profile-strip { border-top:1px solid #ffffff21; padding:15px 2px 0; display:flex; gap:10px; align-items:center; }
.profile-strip .profile-name { font-size:.84rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-strip .profile-role { color:#b6c4dc; font-size:.73rem; display:block; margin-top:3px; }
.profile-strip .avatar { background:#31466a; color:#fff; }
.profile-strip .profile-label { overflow:hidden; flex:1; }
.profile-strip .btn { color:#bac9e0; border-color:transparent; background:none; min-width:34px; min-height:34px; padding:5px; }
.profile-strip .btn:hover { background:#ffffff19; color:#fff; }
.avatar { width:34px; height:34px; flex:none; display:inline-grid; place-items:center; border-radius:50%; background:#e8eefb; color:#214477; font-size:.75rem; font-weight:750; text-transform:uppercase; }
.live-state {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:31px;
  padding:4px 9px;
  border:1px solid #dadee9;
  border-radius:7px;
  background:#f3f5f9;
  color:#465a74;
  font-size:.8125rem;
  font-weight:700;
  white-space:nowrap;
}
.live-state-dot { width:7px; height:7px; border-radius:50%; background:#798ba1; flex:none; }
.live-state[data-state="connected"] { color:#22634c; background:#eaf7ef; border-color:#c8e8d2; }
.live-state[data-state="connected"] .live-state-dot { background:#248c61; }
.live-state[data-state="offline"] { color:#962c45; background:#fceef2; border-color:#efd3db; }
.live-state[data-state="offline"] .live-state-dot { background:#c03653; }
.topbar { min-height:65px; background:#fff; border-bottom:1px solid var(--line); display:flex; gap:12px; align-items:center; justify-content:space-between; padding:9px clamp(20px,3.2vw,46px); }
.crumbs,.top-actions { display:flex; gap:11px; align-items:center; min-width:0; }
.crumbs { font-size:.87rem; color:var(--muted); white-space:nowrap; }
.crumbs strong { color:#1b2b47; overflow:hidden; text-overflow:ellipsis; }
.crumbs .ico,.top-date .ico { width:16px; height:16px; color:#657897; }
.crumbs .sep { color:#929fb3; }
.top-date { display:flex; align-items:center; gap:7px; font-size:.83rem; color:#465772; margin-right:3px; white-space:nowrap; }
.alert-dot { width:8px; height:8px; border:2px solid #fff; background:#d84360; position:absolute; border-radius:50%; right:8px; top:8px; }
.mobile-menu { display:none; }
.workspace { max-width:1650px; margin:auto; padding:28px clamp(20px,3.2vw,46px) 42px; }
.hero { overflow:hidden; position:relative; isolation:isolate; background:#0e1b36; color:#fff; min-height:220px; display:flex; gap:20px; align-items:center; justify-content:space-between; padding:30px 33px; border-radius:17px; }
.hero::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#0e1b36 9%,#0e1b36fa 35%,#0e1b3688 63%,#0e1b3610),url('/turbo.webp') right 49% / cover; }
.hero-content { max-width:640px; }
.hero-label { display:flex; align-items:center; gap:8px; color:#edf1fa; font-size:.75rem; font-weight:750; letter-spacing:.12em; text-transform:uppercase; margin-bottom:11px; }
.hero-label::before { content:""; width:18px; height:2px; background:#f56a7f; }
.hero h1 { font-size:clamp(2.15rem,3.2vw,3.2rem); letter-spacing:-.055em; line-height:1.02; }
.hero p { color:#d4dfef; line-height:1.52; margin-top:11px; }
.hero-actions { display:flex; gap:9px; flex-wrap:wrap; margin-top:19px; }
.section-title { display:flex; align-items:center; gap:8px; justify-content:space-between; margin:26px 0 11px; }
.section-title h2,.panel-title h2 { font-size:1.15rem; letter-spacing:-.02em; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.metric { background:#fff; border:1px solid var(--line); border-radius:var(--radius); text-align:left; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:start; padding:15px 15px 13px; color:var(--ink); box-shadow:var(--shadow); min-height:102px; }
.metric:hover { border-color:#acbbd4; }
.metric span { display:block; font-size:.86rem; color:#485875; font-weight:650; }
.metric strong { display:block; font-size:1.95rem; line-height:1; letter-spacing:-.05em; margin-top:8px; font-variant-numeric:tabular-nums; }
.metric .metric-icon,.template-icon,.blank-icon { display:grid; place-items:center; width:39px; height:39px; border-radius:10px; color:#2b56a1; background:#eaf0fd; }
.metric.urgent .metric-icon,.template-icon.urgent { color:#b52245; background:#fcebf0; }
.metric.progress .metric-icon { color:#735299; background:#f1eafb; }
.metric.done .metric-icon { color:#17634b; background:#e1f5eb; }
.columns { display:grid; grid-template-columns:minmax(0, 2.12fr) minmax(252px,1fr); gap:16px; align-items:start; margin-top:20px; }
.stack { display:grid; gap:16px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); min-width:0; }
.panel-title { min-height:61px; padding:13px 16px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.panel-title p { margin-top:5px; }
.panel-body { padding:0 16px 16px; }
.panel-title .btn { min-height:33px; font-size:.84rem; }
.template-list { display:grid; gap:8px; }
.template-btn { padding:9px; border:1px solid #e3e9f1; border-radius:10px; background:#f9fbfe; display:flex; gap:11px; align-items:center; color:var(--ink); text-align:left; width:100%; }
.template-btn:hover { border-color:#aebfdb; background:#f1f5fc; }
.template-icon { flex:none; width:37px; height:37px; }
.template-icon .ico { width:19px; height:19px; }
.template-btn strong,.template-btn small { display:block; }
.template-btn strong { font-size:.89rem; }
.template-btn small { color:var(--muted); font-size:.77rem; margin-top:3px; }
.template-btn > .ico:last-child { margin-left:auto; width:17px; color:#526582; }
.crew-list { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.crew-list .btn { justify-content:space-between; font-size:.83rem; background:#f8fafe; padding-inline:9px; min-height:36px; }
.crew-list .btn span { color:#4e6289; background:#e9eef7; padding:2px 5px; border-radius:5px; min-width:20px; text-align:center; }
.crew-list .btn:hover { background:#edf2fb; }
.task-card-list {
  display:grid;
  gap:11px;
  margin:0;
  padding:0 14px 14px;
  list-style:none;
}
.task-card {
  --task-card-accent:#829bc4;
  position:relative;
  min-width:0;
  padding:14px 15px 12px;
  border:1px solid #dce5f0;
  border-inline-start:3px solid var(--task-card-accent);
  border-radius:10px;
  background:#f9fbfe;
  transition:border-color 150ms,box-shadow 150ms;
}
.task-card:hover { border-color:#a5b7d2; border-inline-start-color:var(--task-card-accent); box-shadow:0 3px 9px #142a4612; }
.task-card-urgent {
  --task-card-accent:var(--accent);
  border-color:#eedce2;
  border-inline-start-color:var(--task-card-accent);
  background:linear-gradient(110deg,#fff4f6,#fff 67%);
}
.task-card-urgent:hover { border-color:#dca7b6; border-inline-start-color:var(--task-card-accent); }
.task-card-tags { display:flex; flex-wrap:wrap; gap:6px; }
.task-card-tags .badge { max-width:100%; padding:4px 8px; font-size:.8125rem; white-space:normal; overflow-wrap:anywhere; }
.task-card-tags .badge .ico { width:14px; height:14px; }
.task-card-tags .badge.urgent { background:#b42646; color:#fff; }
.task-card-tags .task-card-category { background:#eeeafa; color:#624695; }
.task-card-tags .task-card-crew { background:#e7f0f9; color:#2e547e; }
.task-card-heading { margin-top:10px; }
.task-card-link {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:0;
  border:0;
  background:none;
  color:#182843;
  text-align:left;
  font-size:1.125rem;
  font-weight:750;
  line-height:1.32;
  overflow-wrap:anywhere;
}
.task-card-link::after { content:""; position:absolute; inset:0; border-radius:inherit; }
.task-card-link:focus-visible { outline:none; }
.task-card-link:focus-visible::after { outline:3px solid #617cde; outline-offset:2px; border-radius:10px; }
.task-card-action { flex:none; color:#365884; font-size:.8125rem; font-weight:650; }
.task-card:hover .task-card-action,.task-card-link:focus-visible .task-card-action { text-decoration:underline; text-underline-offset:3px; }
.task-card-description {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  margin-top:5px;
  color:#475a74;
  font-size:.925rem;
  line-height:1.5;
  overflow-wrap:anywhere;
  white-space:pre-line;
}
.task-card-details { display:flex; flex-wrap:wrap; gap:9px 20px; margin:12px 0 0; padding:0; }
.task-card-details div { min-width:110px; max-width:100%; }
.task-card-details dt { color:#50627b; font-size:.8125rem; }
.task-card-details dd { margin:2px 0 0; color:#253955; font-size:.875rem; font-weight:650; overflow-wrap:anywhere; }
.task-card-details .badge { padding:2px 5px; }
.task-card-footer {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 7px;
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid #e3e9f2;
  color:#53657d;
  font-size:.8125rem;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.task-card-byline .ico { width:14px; height:14px; }
.task-card-footer strong { color:#354965; }
.task-card-pinned:not(.task-card-urgent) { --task-card-accent:#345f9a; }
.badge.task-pin-badge { background:#e7effc; color:#244b85; }
.card-checklist {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 8px;
  margin-top:10px;
  color:#4a5d79;
  font-size:.8125rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.card-checklist .ico { width:14px; height:14px; }
.task-card-byline,.task-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px 7px; }
.task-card-byline { flex:1 1 auto; min-width:0; }
.task-card-actions { position:relative; z-index:1; margin-inline-start:auto; }
.task-card-control.btn { min-height:34px; padding:5px 9px; font-size:.8125rem; }
.task-card-control.btn.icon { min-width:34px; }
.task-card-control.btn[aria-pressed="true"] { color:#264e88; background:#edf3ff; border-color:#c7d7f1; }
.task-card-control.btn .ico { width:15px; height:15px; }
.table-holder { width:100%; overflow-x:auto; }
table { width:100%; border-collapse:collapse; text-align:left; }
th { white-space:nowrap; background:#f7f9fc; font-size:.78rem; color:#4b5b76; font-weight:750; }
td,th { padding:12px 12px; border-top:1px solid #e8edf5; }
td:first-child,th:first-child { padding-left:17px; }
td:last-child,th:last-child { padding-right:16px; }
td { font-size:.86rem; vertical-align:middle; }
td:nth-child(n+2) { white-space:nowrap; }
tbody tr:hover { background:#f9fbfe; }
.task-link { background:none; color:#172640; padding:0; border:0; text-align:left; font-weight:750; font-size:.88rem; line-height:1.38; }
.task-link:hover { text-decoration:underline; color:#254985; }
.task-meta { display:block; color:#58677f; margin-top:4px; font-size:.77rem; }
.badge { display:inline-flex; align-items:center; gap:5px; border-radius:6px; padding:4px 7px; font-size:.75rem; font-weight:700; white-space:nowrap; background:#eaf0f9; color:#2c4c7f; }
.badge.urgent,.badge.blocked,.badge.overdue { background:#fcebf0; color:#a4213e; }
.badge.done { background:#e4f4ed; color:#17634b; }
.badge.waiting { background:#fff0dc; color:#805014; }
.badge.in_progress { background:#eee9fb; color:#634997; }
.badge.neutral { color:#4e5c73; background:#eef1f7; }
.filterbar { padding:0 16px 14px; display:grid; grid-template-columns:minmax(163px,1fr) repeat(3,minmax(115px,.47fr)); gap:8px; }
.filterbar input,.filterbar select { min-height:39px; padding-top:7px; padding-bottom:7px; font-size:.85rem; }
.search { display:flex; position:relative; align-items:center; min-width:0; }
.search .ico { position:absolute; left:11px; width:17px; height:17px; color:#5f7291; pointer-events:none; }
.search input { padding-left:35px; }
.empty { text-align:center; padding:27px 19px; border-top:1px solid #e8edf5; display:grid; justify-items:center; gap:8px; }
.empty h3 { font-size:1rem; }
.empty p { color:var(--muted); font-size:.87rem; line-height:1.45; }
.empty .btn { margin-top:5px; }
.empty .blank-icon { margin-bottom:2px; }
.page-title { display:flex; align-items:flex-start; gap:14px; justify-content:space-between; margin:6px 0 20px; }
.page-title h1 { font-size:2.25rem; letter-spacing:-.05em; line-height:1.1; }
.page-title p { color:var(--muted); margin-top:9px; line-height:1.45; }
.page-title .btn { align-self:center; }
.settings-tabs { display:flex; gap:6px; margin:0 0 16px; overflow-x:auto; }
.settings-tabs .btn[aria-selected=true] { color:#fff; background:#253c65; border-color:#253c65; }
.notice-panels { display:grid; gap:16px; }
.reminder-icon.late { background:#fcebf0; color:#a4213e; }
.entry-list { margin:0; padding:0; list-style:none; }
.entry { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 16px; border-top:1px solid #e8edf5; }
.entry-main { display:flex; align-items:center; gap:10px; min-width:0; overflow-wrap:anywhere; }
.entry-text strong { display:block; font-size:.92rem; }
.entry-text p { color:var(--muted); margin-top:4px; font-size:.84rem; }
.entry .btn { min-height:35px; font-size:.82rem; }
.entry.unread { background:#f3f7ff; }
.entry.unread .blank-icon { color:#264b8e; }
.footnote { margin-top:17px; color:var(--muted); font-size:.83rem; }
dialog { width:min(660px,calc(100% - 28px)); max-height:calc(100dvh - 34px); padding:0; border:1px solid var(--line); border-radius:17px; color:var(--ink); box-shadow:0 22px 70px #0b173057; }
dialog::backdrop { background:#0b173076; }
.dialog-head { position:sticky; top:0; z-index:1; background:#fff; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); gap:12px; }
.dialog-head h2 { font-size:1.28rem; letter-spacing:-.022em; overflow-wrap:anywhere; }
.dialog-head .btn { min-width:35px; min-height:35px; }
.quick-context {
  margin-bottom:16px;
  padding:11px 12px;
  border:1px solid #dee7f4;
  border-radius:9px;
  background:#f6f9fe;
  overflow-wrap:anywhere;
}
.quick-context p { margin-top:3px; }
.detail-checklist {
  margin:10px 0 15px;
  padding:12px;
  border:1px solid #dfe7f2;
  border-radius:10px;
  background:#f8fafd;
}
.checklist-header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.checklist-header h3 { font-size:.98rem; }
.detail-checklist ul { display:grid; gap:5px; margin:9px 0 0; padding:0; list-style:none; }
.checklist-step {
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  min-height:39px;
  padding:6px 9px;
  border:1px solid #dce6f2;
  border-radius:7px;
  background:#fff;
  color:#233955;
  text-align:left;
  font-size:.875rem;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.checklist-step:not(:disabled):hover { border-color:#a9bad7; background:#f3f7ff; }
.checklist-step[aria-checked="true"] { color:#285947; }
.checklist-step:disabled { opacity:1; cursor:default; }
.checklist-box {
  display:grid;
  flex:none;
  place-items:center;
  width:18px;
  height:18px;
  border:1px solid #92a6c1;
  border-radius:4px;
}
.checklist-step[aria-checked="true"] .checklist-box { background:#e1f5eb; color:#17634b; border-color:#8ac5a7; }
.checklist-box .ico { width:14px; height:14px; }
.dialog-content { padding:18px 20px 20px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.form-grid .wide { grid-column:1/-1; }
.check { display:flex; align-items:center; gap:8px; font-size:.9rem; min-height:42px; }
.check input { width:18px; height:18px; accent-color:#284d88; }
.dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:15px; }
.detail-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:13px; }
.detail-desc { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.56; }
.details { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; padding:12px 0; margin:10px 0; border-block:1px solid var(--line); }
.details dt { color:var(--muted); font-size:.76rem; margin-bottom:4px; }
.details dd { margin:0; font-size:.86rem; font-weight:650; overflow-wrap:anywhere; }
.history { list-style:none; display:grid; gap:7px; padding:0; margin:10px 0 0; }
.history li { border-left:2px solid #d9e4f6; background:#f7f9fd; padding:8px 11px; border-radius:0 7px 7px 0; font-size:.86rem; }
.history li p { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:5px; }
.history-meta { color:var(--muted); font-size:.76rem; display:flex; gap:8px; justify-content:space-between; flex-wrap:wrap; }
.comment-form { display:grid; gap:8px; margin-top:13px; justify-items:start; }
.comment-form label { width:100%; }
.comment-form textarea { min-height:65px; }
#toast { position:fixed; z-index:8; inset:auto 22px 20px auto; max-width:min(400px,calc(100% - 44px)); }
#toast:not(:empty) { background:#192b4b; color:white; border-radius:10px; padding:12px 15px; font-size:.9rem; box-shadow:0 8px 28px #0e1b3644; }
#toast.error:not(:empty) { background:#931e36; }
@media (max-width:1170px) {
  .layout { grid-template-columns:209px minmax(0,1fr); }
  .workspace,.topbar { padding-inline:23px; }
  .filterbar { grid-template-columns:1fr 1fr; }
}
@media (max-width:920px) {
  .columns { grid-template-columns:1fr; }
  .stack { grid-template-columns:1fr 1fr; }
  .hero h1 { font-size:2.5rem; }
  .top-date { display:none; }
  .hero { padding:26px; }
}
@media (max-width:700px) {
  .layout { display:block; }
  .sidebar { display:none; position:fixed; inset:0 auto 0 0; z-index:5; width:min(285px,86vw); height:100dvh; box-shadow:0 0 0 100vmax #0b173068; }
  .layout.menu-open .sidebar { display:flex; }
  .mobile-menu { display:inline-flex; }
  .topbar,.workspace { padding-inline:14px; }
  .topbar { gap:7px; }
  .crumbs,.top-actions { gap:6px; }
  .crumb-home,.crumbs .sep { display:none; }
  .topbar .btn { min-width:35px; min-height:35px; }
  .topbar .btn.primary span { display:none; }
  .workspace { padding-top:15px; }
  .hero { padding:23px 17px; }
  .hero::before { background:linear-gradient(90deg,#0e1b36 8%,#0e1b36db 78%,#0e1b36a0),url('/turbo.webp') right center / cover; }
  .hero h1 { font-size:2rem; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .stack { gap:10px; }
  .live-state { min-height:29px; padding-inline:7px; font-size:.75rem; }
}
@media (max-width:1000px) {
  .signin-main { padding-right:6vw; }
}
@media (max-width:740px) {
  .signin-image { object-position:29% center; }
  .signin::before {
    background:linear-gradient(180deg,#03081170 0%,#0308113b 19%,#03081166 62%,#0308119c);
  }
  .signin-bar { display:flex; justify-content:center; padding:26px 19px 0; }
  .signin-main { justify-items:center; padding:43px 20px 38px; }
  .signin-card {
    padding:clamp(19px,5vw,32px);
  }
  .signin-heading { margin-bottom:21px; }
}
@media (prefers-reduced-transparency:reduce) {
  .signin-card { background:#101b2d; -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media (max-width:465px) {
  .stack,.form-grid { grid-template-columns:1fr; }
  .page-title h1 { font-size:1.85rem; }
  .page-title .btn { align-self:flex-start; }
  .page-title .btn span { display:none; }
  .brand-logo { width:155px; }
  .about-contacts { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; } }
