/* ============================================================
   PortPilot - Barracks Industries design system
   Light institutional / harbour palette
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
}

:root {
  /* neutrals */
  --bg: #eaf0f5;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --surface-3: #e9eff5;
  --border: #e2e9f0;
  --border-2: #d2dce6;

  /* ink */
  --ink: #10222e;
  --ink-2: #43596b;
  --ink-3: #7c8fa0;
  --ink-4: #a7b6c4;

  /* brand harbour blue + teal + coral */
  --brand: #1b4965;
  --brand-2: #143a52;
  --brand-3: #0f2f43;
  --brand-tint: #e7f0f5;
  --brand-tint-2: #d4e6ee;
  --accent: #2a9d8f;
  --accent-2: #218175;

  /* semantic: teal = open/clear/ok, coral = held/closed/alert, amber = caution */
  --ok: #218175;   --ok-tint: #e1f2ef;   --ok-bd: #b9e2da;
  --alert: #d9563a; --alert-tint: #fce9e4; --alert-bd: #f5cabb;
  --amber: #b9791c; --amber-tint: #f8eed9; --amber-bd: #eed6a6;
  --danger: #c0392b; --danger-tint: #fbeae8;

  /* effects */
  --focus: 0 0 0 3px rgba(27, 73, 101, .2);
  --sh-xs: 0 1px 2px rgba(16, 34, 46, .06);
  --sh-sm: 0 1px 3px rgba(16, 34, 46, .07), 0 1px 2px rgba(16, 34, 46, .05);
  --sh-md: 0 6px 18px rgba(16, 34, 46, .09), 0 2px 5px rgba(16, 34, 46, .05);
  --sh-lg: 0 18px 44px rgba(16, 34, 46, .17), 0 6px 14px rgba(16, 34, 46, .09);

  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-xl: 18px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
::selection { background: var(--brand-tint-2); }
.mono { font-family: var(--mono); font-variant-ligatures: none; }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #c9d5e0; border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #b2c0d0; background-clip: content-box; }

/* ---------- Brand lockup ---------- */
.lockup { display: flex; align-items: center; gap: 11px; }
.lockup .mark { width: 38px; height: 38px; flex: none; display: block; filter: drop-shadow(0 2px 4px rgba(16,34,46,.16)); }
.lockup .wm { display: flex; flex-direction: column; line-height: 1.05; }
.lockup .wm .prod { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.lockup .wm .org { font-weight: 600; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: var(--sh-xs);
  transition: background .16s var(--ease), box-shadow .16s var(--ease), transform .06s var(--ease), border-color .16s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-2); box-shadow: var(--sh-sm); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--border-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--border-2); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.btn-icon {
  width: 34px; height: 34px; padding: 0; border-radius: 8px; background: transparent;
  color: var(--ink-3); border: 1px solid transparent; box-shadow: none; cursor: pointer;
}
.btn-icon:hover { background: var(--surface-2); color: var(--ink); }
.btn-icon svg { width: 18px; height: 18px; }

/* ---------- Fields ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.input {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  font: inherit; font-size: 14.5px; background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }

.form-alert {
  display: none; align-items: center; gap: 9px; margin-bottom: 16px; padding: 10px 13px;
  border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500;
  background: var(--danger-tint); color: var(--danger); border: 1px solid #f1cbc6;
}
.form-alert.show { display: flex; }
.form-alert svg { width: 17px; height: 17px; flex: none; }

/* ============================================================
   LOGIN
   ============================================================ */
.login { min-height: 100%; display: grid; grid-template-columns: 1.05fr .95fr; }

.login-hero {
  position: relative; overflow: hidden; padding: 44px 54px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(900px 520px at 80% 6%, rgba(64,150,190,.32), transparent 62%),
    radial-gradient(680px 420px at 8% 98%, rgba(42,157,143,.18), transparent 60%),
    linear-gradient(158deg, #17415e 0%, #123650 52%, #0d2a3f 100%);
  color: #eaf2f8;
}
.login-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 30%, #000, transparent 78%);
          mask-image: radial-gradient(120% 90% at 60% 30%, #000, transparent 78%);
}
.login-hero > * { position: relative; z-index: 1; }
.login-hero .lockup .wm .prod { color: #fff; }
.login-hero .lockup .wm .org { color: #9cc0d3; }
.login-hero .lockup .mark { filter: drop-shadow(0 4px 10px rgba(0,0,0,.28)); }

.hero-copy { max-width: 450px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .05em; color: #a6ccd8; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 20px; margin-bottom: 22px;
}
.hero-eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: #46d0b4; box-shadow: 0 0 0 3px rgba(70,208,180,.25); }
.hero-copy h1 { font-size: 33px; line-height: 1.14; color: #fff; letter-spacing: -0.028em; margin-bottom: 14px; }
.hero-copy .lede { color: #b6cfdc; font-size: 15.5px; margin: 0 0 30px; line-height: 1.55; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.hero-points li { display: flex; gap: 13px; align-items: flex-start; color: #d0e2ea; font-size: 14px; }
.hero-points .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #7fd8c4; }
.hero-points .ic svg { width: 16px; height: 16px; }
.hero-points strong { color: #fff; font-weight: 600; display: block; font-size: 14px; margin-bottom: 1px; }
.hero-points span { color: #a4c2d0; font-size: 13px; }
.hero-foot { color: #79a0b0; font-size: 12px; display: flex; align-items: center; gap: 8px; }

.login-panel { display: grid; place-items: center; padding: 40px; background: var(--bg); }
.login-card { width: 100%; max-width: 374px; }
.login-card .card-mark { display: none; }
.login-card h2 { font-size: 23px; letter-spacing: -0.025em; }
.login-card .muted { color: var(--ink-2); margin: 6px 0 26px; font-size: 14.5px; }
.login-card .hint { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ============================================================
   CONSOLE SHELL
   ============================================================ */
.app { display: grid; grid-template-rows: 60px 1fr; height: 100%;
  background: radial-gradient(1100px 380px at 74% -12%, #eef4fa, transparent 70%), var(--bg); }

.topbar {
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border); z-index: 5;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar .sep { width: 1px; height: 26px; background: var(--border-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 20px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--border);
}
.chip svg { width: 15px; height: 15px; color: var(--ink-3); }
.chip .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.chip .live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--ok); opacity: .35; animation: pulse 1.8s var(--ease) infinite; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border-radius: 22px; }
.who .meta { text-align: right; line-height: 1.2; }
.who .meta strong { font-size: 13.5px; font-weight: 600; }
.who .meta span { display: block; font-size: 11.5px; color: var(--ink-3); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 650; font-size: 13px; color: #fff;
  background: linear-gradient(140deg, #2c78a6, #163a56); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.workspace { display: grid; min-height: 0; }
.workspace.manager { grid-template-columns: 236px minmax(0, 1fr); }
.workspace.operator { grid-template-columns: minmax(0, 1fr) 392px; }

/* ---------- Nav rail ---------- */
.rail { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; padding: 16px 12px; }
.rail .rail-lab { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); font-weight: 700; padding: 4px 10px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; margin-bottom: 3px;
  border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: left; transition: background .13s, color .13s;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--brand-tint); color: var(--brand); border-color: var(--brand-tint-2); }
.nav-item .ni { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); }
.nav-item.active .ni { background: #fff; color: var(--brand); box-shadow: var(--sh-xs); }
.nav-item .ni svg { width: 16px; height: 16px; }
.nav-item .nt { min-width: 0; }
.nav-item .nt b { display: block; font-weight: 650; }
.nav-item .nt span { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
.rail-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--border); }
.rail-foot .rf-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.rail-foot .rf-row svg { width: 14px; height: 14px; color: var(--ink-4); }

/* ---------- View / panel ---------- */
.view { display: none; flex-direction: column; min-height: 0; height: 100%; }
.view.active { display: flex; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-bottom: 1px solid var(--border); min-height: 60px; background: transparent;
}
.panel-head h2 { font-size: 15px; }
.panel-head .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.panel-head .htitle { min-width: 0; }
.scope-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--accent-2); background: var(--ok-tint); border: 1px solid var(--ok-bd);
}
.scope-chip svg { width: 14px; height: 14px; }

/* ---------- Chat ---------- */
.chat-body { flex: 1; overflow-y: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 11px; max-width: 92%; animation: rise .32s var(--ease) both; }
.msg .ava { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; }
.msg.assistant .ava { background: linear-gradient(140deg, #2c78a6, #163a56); color: #fff; box-shadow: var(--sh-xs); }
.msg.assistant .ava svg { width: 16px; height: 16px; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .ava { background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 650; }
.msg .col { min-width: 0; }
.msg .name { font-size: 11.5px; color: var(--ink-3); margin: 0 2px 4px; font-weight: 600; }
.msg.user .name { text-align: right; }
.bubble { padding: 11px 14px; border-radius: 13px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.msg.assistant .bubble { background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 4px; box-shadow: var(--sh-xs); }
.msg.user .bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; box-shadow: var(--sh-sm); }

.chat-empty { margin: auto; max-width: 490px; text-align: center; padding: 24px; }
.chat-empty .em-mark { width: 60px; height: 60px; margin: 0 auto 18px; opacity: .95; filter: drop-shadow(0 6px 14px rgba(16,34,46,.16)); }
.chat-empty h3 { font-size: 20px; letter-spacing: -0.02em; }
.chat-empty p { color: var(--ink-2); margin: 8px 0 22px; font-size: 14.5px; }
.suggest { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.suggest button {
  font: inherit; font-size: 13px; color: var(--ink-2); background: var(--surface); cursor: pointer;
  border: 1px solid var(--border-2); border-radius: 20px; padding: 8px 14px; transition: all .14s var(--ease);
}
.suggest button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); transform: translateY(-1px); box-shadow: var(--sh-xs); }

.composer { padding: 14px 22px 18px; border-top: 1px solid var(--border); }
.composer .box {
  display: flex; align-items: flex-end; gap: 10px; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 8px 8px 8px 14px; box-shadow: var(--sh-xs); transition: border-color .15s, box-shadow .15s;
}
.composer .box:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.composer textarea {
  flex: 1; resize: none; border: none; outline: none; background: transparent; font: inherit; font-size: 14.5px;
  color: var(--ink); max-height: 150px; min-height: 26px; padding: 6px 0; line-height: 1.5;
}
.composer .send { width: 38px; height: 38px; padding: 0; border-radius: 10px; flex: none; }
.composer .send svg { width: 18px; height: 18px; }
.composer .foot { text-align: center; font-size: 11.5px; color: var(--ink-4); margin-top: 9px; }

/* ---------- Copilot result (table + SQL) ---------- */
.result { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--sh-xs); }
.result .rhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.result .rhead .rcount { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sql-toggle { font: inherit; font-size: 11.5px; font-weight: 600; color: var(--brand); background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 6px; }
.sql-toggle:hover { background: var(--brand-tint); }
.sql-view { display: none; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #0f2c3e; color: #d6e6ef; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.sql-view.show { display: block; }
.table-wrap { overflow-x: auto; max-height: 340px; overflow-y: auto; }
table.grid { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.grid th { position: sticky; top: 0; background: var(--surface-3); color: var(--ink-2); font-weight: 650; text-align: left; padding: 8px 12px; white-space: nowrap; border-bottom: 1px solid var(--border-2); }
table.grid td { padding: 7px 12px; border-bottom: 1px solid var(--border); color: var(--ink); vertical-align: top; max-width: 340px; }
table.grid tr:last-child td { border-bottom: none; }
table.grid tr:hover td { background: var(--surface-2); }
.result .rempty { padding: 16px; text-align: center; color: var(--ink-3); font-size: 13px; }
.result.err { border-color: var(--alert-bd); }
.result.err .rhead { background: var(--alert-tint); }
.result .rerr { padding: 11px 13px; font-family: var(--mono); font-size: 12px; color: var(--danger); white-space: pre-wrap; }

/* ---------- Tool activity (ops + gate) ---------- */
.activity { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.act {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 5px 11px 5px 8px; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border);
}
.act svg { width: 14px; height: 14px; color: var(--ink-3); }
.act.priv { color: var(--accent-2); background: var(--ok-tint); border-color: var(--ok-bd); }
.act.priv svg { color: var(--accent-2); }
.act .aarg { font-weight: 500; color: var(--ink-3); font-family: var(--mono); font-size: 11px; }

/* ---------- Freight board ---------- */
.board-wrap { flex: 1; overflow: auto; padding: 18px 22px; }
.board { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-xs); }
.board th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.board td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.board tr:last-child td { border-bottom: none; }
.board tr:hover td { background: var(--surface-2); }
.board .ref { font-family: var(--mono); font-size: 12px; color: var(--brand); font-weight: 600; }

/* ---------- Port state (operator) ---------- */
.pstate { background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.pstate .ps-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--border); }
.pstate .ps-head h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.pstate .ps-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.ps-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 700; margin: 4px 2px 8px; }
.ps-card { display: flex; align-items: center; gap: 11px; padding: 11px 12px; margin-bottom: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-xs); min-width: 0; }
.ps-ic { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; }
.ps-ic svg { width: 17px; height: 17px; }
.ps-ic.ok { background: var(--ok-tint); color: var(--ok); }
.ps-ic.alert { background: var(--alert-tint); color: var(--alert); }
.ps-info { flex: 1 1 auto; min-width: 0; }
.ps-name { font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; flex: none; margin-left: auto; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.pill.ok { background: var(--ok-tint); color: var(--ok); border: 1px solid var(--ok-bd); }
.pill.alert { background: var(--alert-tint); color: var(--alert); border: 1px solid var(--alert-bd); }

.events { margin-top: 6px; }
.event { display: flex; gap: 10px; padding: 8px 2px; }
.event .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 5px; flex: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.event .ev-body { min-width: 0; }
.event .ev-txt { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.event .ev-time { font-size: 11px; color: var(--ink-4); margin-top: 1px; }

/* ---------- utility / motion ---------- */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(27,73,101,.25); border-top-color: var(--brand); }
.typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: blink 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 62%, 100% { opacity: .28; transform: translateY(0); } 34% { opacity: 1; transform: translateY(-2px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .35; } 70% { transform: scale(2.4); opacity: 0; } 100% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1120px) {
  .workspace.operator { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-card .card-mark { display: flex; justify-content: center; margin-bottom: 22px; }
  .workspace.manager, .workspace.operator { grid-template-columns: 1fr; }
  .rail, .pstate { display: none; }
}
