
:root {
  --asphalt: #1b232c;
  --asphalt-2: #242e39;
  --asphalt-line: #33404d;
  --ground: #eef1f4;
  --paper: #ffffff;
  --ink: #18202a;
  --ink-2: #3c4752;
  --ink-3: #56616c;
  --line: #d5dbe1;
  --line-soft: #e6eaee;
  --brand: #0187df;
  --brand-deep: #015fa0;
  --brand-tint: #e3f2fc;
  --steel: #5b6670;
  --steel-tint: #eceff2;
  --safety: #e0560e;
  --safety-tint: #fdeee5;
  --signal: #f2c230;
  --signal-ink: #5b4300;
  --signal-tint: #fdf6dc;
  --hull: #2e8b57;
  --hull-tint: #e4f3ea;
  --r-sm: 3px;
  --r: 6px;
  --r-lg: 8px;
  --shadow: 0 1px 2px rgba(27, 35, 44, .06), 0 4px 12px rgba(27, 35, 44, .05);
  --f-ui: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-code: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-ui); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--ground); font-variant-numeric: tabular-nums; }
::selection { background: var(--brand); color: #fff; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c3cad1; border-radius: 10px; border: 2px solid var(--ground); }
::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.rail { background: var(--asphalt); color: #c9d2db; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.rail::-webkit-scrollbar-thumb { background: var(--asphalt-line); border-color: var(--asphalt); }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid var(--asphalt-line); }
.brand img { width: 46px; height: auto; }
.brand b { display: block; color: #fff; font-size: 15px; line-height: 1.15; letter-spacing: .01em; }
.brand small { color: #8d9aa7; font-size: 11.5px; }
.navgrp { padding: 14px 10px 4px; }
.navgrp h6 { font: 600 11px var(--f-code); letter-spacing: .14em; text-transform: uppercase; color: #8794a1; padding: 0 8px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r); color: #c9d2db; text-decoration: none; font-size: 14px; }
.nav a:hover { background: var(--asphalt-2); color: #fff; }
.nav a.on { background: var(--brand); color: #fff; }
.nav a .n { margin-left: auto; font: 600 12px var(--f-code); background: var(--safety); color: #fff; border-radius: 10px; padding: 0 7px; }
.rail-foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--asphalt-line); font-size: 12px; color: #8d9aa7; display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.rail-foot b { color: #e6ebf0; display: block; font-size: 13px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 5; }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.crumbs b { color: var(--ink); font-weight: 600; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; height: 34px; width: 300px; color: var(--ink-3); background: var(--ground); }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; }
.search kbd { white-space: nowrap; font: 600 11px var(--f-code); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; background: #fff; }
.iconbtn { width: 34px; height: 34px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-2); position: relative; cursor: pointer; }
.iconbtn .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--safety); border: 1.5px solid #fff; }
.sample { font: 600 11px var(--f-code); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); background: var(--signal-tint); border: 1px solid #ecd98f; border-radius: var(--r-sm); padding: 3px 8px; }
.page { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.head p { color: var(--ink-3); font-size: 13.5px; margin-top: 3px; max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--steel); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.dark { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sel, .inp { height: 34px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 0 10px; font-size: 13px; color: var(--ink); }
.sel { padding-right: 28px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2356616c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; font-weight: 600; font-size: 13.5px; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 6px; align-items: center; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs a .c { font: 600 12px var(--f-code); background: var(--steel-tint); color: var(--ink-2); padding: 0 6px; border-radius: 9px; }
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font: 600 12px var(--f-code); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.st.brand { background: var(--brand); color: #fff; }
.st.steel { background: var(--steel); color: #fff; }
.st.safety { background: var(--safety); color: #fff; }
.st.signal { background: var(--signal); color: #3d2d00; }
.st.hull { background: var(--hull); color: #fff; }
.st.ghost { background: var(--steel-tint); color: var(--ink-2); }
.code { font: 600 13.5px var(--f-code); letter-spacing: .05em; color: var(--ink); white-space: nowrap; }
.muted { color: var(--ink-3); }
.num { text-align: right; white-space: nowrap; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.panel > header h2 { font-size: 15px; font-weight: 700; }
.panel > header small { color: var(--ink-3); font-size: 12.5px; }
.panel .pad { padding: 16px; }
.grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.grid2.even { grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font: 600 11.5px var(--f-code); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--line); background: #f8f9fb; white-space: nowrap; }
.t th.num { text-align: right; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #f6f9fc; }
.t tr.click { cursor: pointer; }
.t td .sub { display: block; font-size: 12px; color: var(--ink-3); }
.t tfoot td { font-weight: 700; border-top: 1px solid var(--line); background: #f8f9fb; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-3); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.kpi .band { height: 6px; background: var(--brand); }
.kpi.safety .band { background: var(--safety); }
.kpi.signal .band { background: var(--signal); }
.kpi.hull .band { background: var(--hull); }
.kpi.steel .band { background: var(--steel); }
.kpi .in { padding: 12px 16px 14px; }
.kpi small { font-size: 12.5px; color: var(--ink-3); }
.kpi b { display: block; font: 700 30px/1.1 var(--f-code); letter-spacing: .01em; margin-top: 4px; }
.kpi span { font-size: 12px; color: var(--ink-3); }
.kpi span.up { color: var(--safety); font-weight: 600; }
.kpi span.ok { color: var(--hull); font-weight: 600; }
.yard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; min-height: 300px; padding: 0 2px 6px; border-bottom: 3px solid var(--asphalt); background: repeating-linear-gradient(0deg, transparent 0 41px, var(--line-soft) 41px 42px); }
.bay { display: flex; flex-direction: column-reverse; gap: 4px; }
.box { height: 38px; border-radius: 2px; color: #fff; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 600 12.5px var(--f-code); letter-spacing: .05em; position: relative; overflow: hidden; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.box::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .13) 0 2px, transparent 2px 10px); pointer-events: none; }
.box span { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(27, 35, 44, .22); }
.box.brand { background: var(--brand); }
.box.steel { background: var(--steel); }
.box.safety { background: var(--safety); }
.box.signal { background: var(--signal); color: #3d2d00; }
.box.hull { background: var(--hull); }
.yard-lbl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.yard-lbl div { text-align: center; font: 600 12px var(--f-code); letter-spacing: .1em; color: var(--ink-3); }
.yard-lbl div b { display: block; font-size: 15px; color: var(--ink); letter-spacing: .02em; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -2px; }
.age { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.age .bar { height: 8px; border-radius: 2px; background: var(--brand); }
.age .bar.signal { background: var(--signal); }
.age .bar.safety { background: var(--safety); }
.age em { font-style: normal; font: 600 12.5px var(--f-code); color: var(--ink-2); }
.form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.w2 { grid-column: span 2; }
.field.w4 { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .inp, .field .sel { height: 38px; font-size: 14px; }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .inp.auto { background: var(--steel-tint); color: var(--ink-2); font: 600 14px var(--f-code); letter-spacing: .05em; }
textarea.inp { height: 70px; padding: 8px 10px; resize: vertical; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.chk input { accent-color: var(--brand); width: 16px; height: 16px; }
.totals { margin-left: auto; width: 360px; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; font-size: 13.5px; }
.totals .tt { font-weight: 700; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.totals .neg { color: var(--safety); }
.docwrap { background: #c9d0d7; border-radius: var(--r-lg); padding: 26px; display: flex; justify-content: center; }
.doc { background: #fff; width: 760px; min-height: 980px; padding: 46px 52px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: 12.5px; color: #111; }
.doc .lh { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--brand); padding-bottom: 14px; }
.doc .lh img { width: 74px; }
.doc .lh .co { display: flex; gap: 14px; align-items: center; }
.doc .lh .co b { font-size: 17px; letter-spacing: .02em; color: var(--brand-deep); }
.doc .lh .co small { display: block; font-size: 11px; color: #444; max-width: 300px; }
.doc .lh h3 { font: 700 22px var(--f-code); letter-spacing: .12em; color: var(--asphalt); text-align: right; }
.doc .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.doc .meta dl { display: grid; grid-template-columns: 110px 1fr; gap: 3px 8px; }
.doc .meta dt { color: #555; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.doc th { background: var(--asphalt); color: #fff; font: 600 11px var(--f-code); letter-spacing: .1em; text-transform: uppercase; padding: 7px 8px; text-align: left; }
.doc td { border-bottom: 1px solid #ddd; padding: 7px 8px; }
.doc .sum { margin: 14px 0 0 auto; width: 300px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.doc .sum .tt { font-weight: 700; border-top: 2px solid #111; padding-top: 6px; }
.doc .terb { margin-top: 18px; padding: 10px 12px; background: #f4f6f8; font-style: italic; }
.doc .sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; text-align: center; }
.doc .sign div { padding-top: 64px; border-bottom: 1px solid #111; }
.doc .sign span { display: block; margin-top: 6px; font-size: 11.5px; }
.doc .watermark { font: 600 10.5px var(--f-code); letter-spacing: .12em; color: #8b96a0; margin-top: 26px; text-align: center; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.flow .stp { position: relative; padding: 12px 12px 12px 0; }
.flow .stp::before { content: ""; position: absolute; top: 21px; left: 22px; right: 0; height: 3px; background: var(--line); }
.flow .stp:last-child::before { display: none; }
.flow .stp.done::before { background: var(--hull); }
.flow .dotx { position: relative; width: 22px; height: 22px; border-radius: 4px; background: #fff; border: 3px solid var(--line); z-index: 1; }
.flow .done .dotx { background: var(--hull); border-color: var(--hull); }
.flow .cur .dotx { background: var(--signal); border-color: var(--signal); }
.flow b { display: block; margin-top: 8px; font-size: 13.5px; }
.flow small { color: var(--ink-3); font-size: 12px; }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { width: 32px; height: 32px; font-size: 12px; }
.av2 { background: var(--steel) !important; }
.av3 { background: var(--hull) !important; }
.av4 { background: var(--safety) !important; }
.cal { display: grid; grid-template-columns: 170px repeat(14, 1fr); font-size: 12px; }
.cal .h { font: 600 11.5px var(--f-code); letter-spacing: .06em; color: var(--ink-3); text-align: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cal .h.we { color: var(--safety); }
.cal .nm { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .c { border-bottom: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); position: relative; min-height: 34px; }
.cal .c.we { background: #f6f7f9; }
.cal .lv { position: absolute; inset: 6px 1px; border-radius: 2px; font: 600 11px var(--f-code); color: #fff; padding: 3px 5px; white-space: nowrap; overflow: hidden; z-index: 1; }
.rooms { display: grid; grid-template-columns: 90px repeat(3, 1fr); }
.rooms .rh { font-weight: 700; padding: 10px; border-bottom: 1px solid var(--line); background: #f8f9fb; }
.rooms .tm { font: 600 12.5px var(--f-code); color: var(--ink-3); padding: 0 10px; height: 54px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; }
.rooms .slot { border-left: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); height: 54px; position: relative; }
.rooms .bk { position: absolute; left: 4px; right: 4px; border-radius: var(--r-sm); padding: 6px 8px; font-size: 12.5px; color: #fff; z-index: 1; overflow: hidden; }
.rooms .bk b { display: block; font-size: 13px; }
.rooms .bk.one { padding: 4px 8px; line-height: 1.3; font-size: 12px; }
.slip { max-width: 640px; }
.mailrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.mailrow:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--brand-tint); color: #0b4a78; font-size: 13px; }
.note.warn { background: var(--safety-tint); color: #8a3006; }
.bigtotal { font: 700 26px var(--f-code); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.empty { text-align: center; padding: 40px; color: var(--ink-3); }
.fade-in { animation: rise .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.yard .box { animation: drop .5s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid2.even, .grid3 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; overflow-x: auto; }
  .navgrp, .rail-foot { display: none; }
  .search { display: none; }
  .page { padding: 18px 16px 32px; }
  .topbar { padding: 0 16px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form { grid-template-columns: 1fr; }
  .field.w2 { grid-column: auto; }
  .yard { gap: 6px; }
  .box { font-size: 11px; padding: 0 5px; }
  .doc { width: 100%; padding: 22px; min-height: 0; }
  .docwrap { padding: 10px; }
}
.brand .mark { width: 46px; height: 46px; border-radius: var(--r); background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 15px var(--f-code); letter-spacing: .06em; flex: none; }
.rail-foot a.acc { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.rail-foot a.acc > div { min-width: 0; }
.rail-foot a.acc b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-foot a.acc:hover b { color: #fff; }
.rail-foot form { margin: 0; }
.rail-foot .out { width: 30px; height: 30px; border-radius: var(--r); border: 1px solid var(--asphalt-line); background: transparent; color: #8d9aa7; display: grid; place-items: center; cursor: pointer; }
.rail-foot .out:hover { color: #fff; background: var(--asphalt-2); }
.nav a .n.q { background: var(--asphalt-line); color: #c9d2db; }
.notif { position: relative; }
.notif > summary { list-style: none; }
.notif > summary::-webkit-details-marker { display: none; }
.notif .drop { position: absolute; right: 0; top: 42px; width: 380px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(27, 35, 44, .16); z-index: 20; overflow: hidden; }
.notif .drop header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.notif .drop header b { font-size: 14px; }
.notif .drop header button { border: 0; background: none; color: var(--brand-deep); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.notif .list { max-height: 420px; overflow-y: auto; }
.notif .it { display: block; padding: 10px 14px 10px 26px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); position: relative; }
.notif .it:hover { background: #f6f9fc; }
.notif .it.unread::before { content: ""; position: absolute; left: 11px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--safety); }
.notif .it b { display: block; font-size: 13px; font-weight: 600; }
.notif .it span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.notif .it em { font: 600 11.5px var(--f-code); letter-spacing: .06em; color: var(--ink-3); font-style: normal; }
.demo button { border: 0; background: none; color: var(--brand-deep); font-weight: 600; cursor: pointer; padding: 0; text-align: left; }
.err { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--safety-tint); color: #8a3006; font-size: 13px; }
.okmsg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--hull-tint); color: #1d5c39; font-size: 13px; }
.t td .inp, .t td .sel { width: 100%; height: 34px; }
.t td.ctl { padding: 6px 8px; }
.t td .inp.num { text-align: right; }
.iconbtn.sm { width: 30px; height: 30px; }
.iconbtn:hover { border-color: var(--steel); }
.iconbtn.del:hover { color: var(--safety); border-color: var(--safety); }
.req::after { content: " *"; color: var(--safety); }
.btn.danger { border-color: var(--safety); color: var(--safety); }
.btn.danger:hover { background: var(--safety); color: #fff; }
.btn.hull { background: var(--hull); border-color: var(--hull); color: #fff; }
.urgent { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px var(--f-code); letter-spacing: .08em; text-transform: uppercase; color: var(--safety); }
.urgent::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--safety); }
.decide { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.decide textarea.inp { height: 64px; width: 100%; }
.decide .actions { flex-wrap: nowrap; }
.hist .row { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.hist .row:last-child { border-bottom: 0; }
.hist .sq { width: 14px; height: 14px; border-radius: 3px; margin-top: 3px; background: var(--steel); }
.hist .sq.hull { background: var(--hull); }
.hist .sq.safety { background: var(--safety); }
.hist .sq.signal { background: var(--signal); }
.hist .sq.brand { background: var(--brand); }
.hist b { font-size: 13.5px; }
.hist small { display: block; color: var(--ink-3); font-size: 12px; }
.hist q { display: block; margin-top: 6px; padding: 8px 10px; background: var(--ground); border-radius: var(--r); font-size: 13px; quotes: none; color: var(--ink-2); }
.steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.steps .box { height: 34px; min-width: 128px; cursor: default; animation: none; }
.steps .box:hover { transform: none; box-shadow: none; }
.steps .arrow { width: 22px; height: 3px; background: var(--line); }
.steps .end { font: 600 12px var(--f-code); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-left: 8px; }
.flow.auto { grid-template-columns: repeat(var(--n, 5), 1fr); }
.doc .lh .co .mk { width: 74px; height: 74px; border-radius: var(--r); background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 22px var(--f-code); }
.doc .note-box { margin-top: 14px; padding: 10px 12px; border: 1px solid #ddd; }
.doc .r { text-align: right; }
dialog.modal { margin: auto; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; width: min(620px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(27, 35, 44, .28); color: var(--ink); }
dialog.modal::backdrop { background: rgba(27, 35, 44, .45); }
dialog.modal > form > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
dialog.modal h2 { font-size: 15px; }
dialog.modal .pad { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
dialog.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-soft); background: #f8f9fb; border-radius: 0 0 var(--r-lg) var(--r-lg); }
dialog.modal .form { grid-template-columns: 1fr 1fr; }
.pager .pg { display: flex; gap: 4px; align-items: center; }
.pager .pg a { color: var(--ink-2); text-decoration: none; padding: 2px 8px; border-radius: var(--r-sm); font: 600 12.5px var(--f-code); }
.pager .pg a.on { background: var(--asphalt); color: #fff; }
.pager .pg a:hover:not(.on) { background: var(--steel-tint); }
@media print {
  .rail, .topbar, .head .actions, .noprint { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .page { padding: 0; }
  .docwrap { background: none; padding: 0; border-radius: 0; }
  .doc { box-shadow: none; width: auto; min-height: 0; padding: 0; }
}
@media (max-width: 1100px) {
  .decide { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) { .prgrid { grid-template-columns: 1fr !important; } }
@media print { .prgrid { display: block !important; } }
.t .age { min-width: 0; }
.t.dense th, .t.dense td { padding-left: 9px; padding-right: 9px; }
.doc .bankinfo { display: grid; grid-template-columns: 110px 1fr; gap: 3px 8px; margin-top: 16px; }
.doc .bankinfo dt { color: #555; }
.doc .lsign { margin: 40px 0 0 auto; width: 260px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.doc .kwline { width: 100%; height: 64px; border-bottom: 1px solid #111; margin-bottom: 6px; }
.doc.kw .kwrow { display: grid; grid-template-columns: 150px 1fr; gap: 14px 12px; margin: 26px 0 10px; font-size: 13px; align-items: baseline; }
.doc.kw .kwrow dt { color: #555; }
.doc.kw .kwterb { background: #f4f6f8; padding: 10px 12px; font-style: italic; text-transform: capitalize; }
.doc.kw .kwfoot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; }
.doc.kw .kwamt { font: 700 24px var(--f-code); letter-spacing: .03em; border: 2px solid var(--asphalt); padding: 10px 18px; }
.doc.kw .kwsign { width: 260px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.doc.letter p { margin: 12px 0; line-height: 1.65; text-align: justify; }
.doc.letter .ltitle { text-align: center; margin-top: 26px; font: 700 18px var(--f-code); letter-spacing: .1em; text-decoration: underline; text-underline-offset: 4px; }
.doc.letter .lno { text-align: center; margin-top: 4px; color: #333; }
.doc.letter .lkv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; margin: 8px 0 8px 28px; }
.doc.letter .lkv dt { color: #555; }
@page { size: A4; margin: 0; }
@media print {
  .doc table, .doc .sum, .doc .sign, .doc .lsign { break-inside: avoid; }
}
.cal a.lv { text-decoration: none; }
.cal a.lv:hover { filter: brightness(1.08); }
.cal .h.today { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.rooms a.slot { display: block; text-decoration: none; }
.rooms a.slot.free:hover { background: var(--brand-tint); }
.rooms a.bk { text-decoration: none; }
.rooms a.bk:hover { filter: brightness(1.08); }
form.upload { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line-soft); }
form.upload .field { margin: 0; }
form.upload .field.grow { flex: 1; min-width: 240px; }
form.upload input[type="file"] { padding-top: 7px; }
.sq-ok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: var(--hull); color: #fff; }
.sq-ok svg { width: 13px; height: 13px; }
.sq-no { display: inline-block; width: 20px; height: 20px; border-radius: 3px; border: 1.5px dashed var(--line); }
.demo-tag { font: 700 11px var(--f-code); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--safety); border-radius: var(--r-sm); padding: 3px 8px; line-height: 1.3; }
.topbar .demo-tag { margin-right: -4px; }
