/* Lipova3 – tyylit */
:root {
  --bg: #eef2f5;
  --card: #ffffff;
  --ink: #17252f;
  --ink-2: #4c5d69;
  --ink-3: #7b8a95;
  --line: #dbe2e8;
  --line-2: #e9eef2;
  --nav: #13324a;
  --nav-2: #1b4462;
  --nav-ink: #d9e6f0;
  --brand: #12808f;
  --brand-dark: #0c6370;
  --brand-soft: #e2f3f5;
  --ok: #2b8a3e;
  --ok-soft: #e4f4e7;
  --soon: #b77900;
  --soon-soft: #fff3d6;
  --late: #c4302b;
  --late-soft: #fde7e6;
  --muted: #7b8a95;
  --muted-soft: #eef1f3;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 40, 60, .06), 0 2px 8px rgba(16, 40, 60, .05);
  --top: 64px;
  --side: 290px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.15rem; }
p { margin: .5em 0; }
small { font-size: .85em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.muted { color: var(--ink-3); }
.hint { color: var(--ink-2); font-size: .93rem; }
.inline { display: inline; }

.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }

/* ---------- Yläpalkki ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 40;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.brand img, .brand svg { height: 54px; width: auto; display: block; }
.live-logo .ring-arcs path, .live-logo .ring-arcs ellipse { stroke-dasharray: 400; stroke-dashoffset: 400; animation: ringdraw 1.1s cubic-bezier(.2,.7,.2,1) .15s forwards; }
@keyframes ringdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .live-logo .ring-arcs path, .live-logo .ring-arcs ellipse { animation: none; stroke-dashoffset: 0; } }
.brand { margin-right: 12px; }
.topnav { display: flex; gap: 2px; flex: 1; }
.topnav a, .me {
  position: relative; display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.topnav a:hover, .me:hover { background: var(--line-2); color: var(--ink); }
.topnav a.on, .me.on { background: var(--brand-soft); color: var(--brand-dark); }
.topnav .ic, .me .ic { width: 22px; height: 22px; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--late); color: #fff;
  font-size: .75rem; line-height: 20px; text-align: center;
}
.nav-toggle {
  display: none; border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--ink); cursor: pointer;
}
.nav-toggle .ic { width: 24px; height: 24px; }

/* ---------- Sivupalkki ---------- */
.sidebar {
  position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); z-index: 30;
  background: var(--nav); color: var(--nav-ink); display: flex; flex-direction: column; overflow: hidden;
}
.side-org { padding: 14px 16px 6px; font-weight: 700; color: #fff; font-size: 1.05rem; }
.tree-head { display: flex; align-items: center; gap: 6px; padding: 6px 10px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tree-head .btn-icon { color: var(--nav-ink); background: rgba(255,255,255,.07); }
.tree-head .btn-icon:hover { background: rgba(255,255,255,.16); color: #fff; }
.tree-path { font-size: .85rem; color: #9fb7c9; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree { flex: 1; overflow-y: auto; padding: 6px 0; }
.titem { display: flex; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.05); }
.titem a, .titem button {
  color: var(--nav-ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
}
.titem .tname { flex: 1; display: flex; align-items: center; gap: 10px; padding: 11px 8px 11px 16px; min-width: 0; }
.titem .tname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titem .tname:hover, .titem .tbtn:hover { background: var(--nav-2); color: #fff; }
.titem.cur .tname { background: var(--nav-2); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.titem .tbtn { width: 44px; display: flex; align-items: center; justify-content: center; color: #9fb7c9; }
.tdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #5c7487; }
.tdot.s-ok { background: #43b75c; }
.tdot.s-soon { background: #f0b429; }
.tdot.s-late { background: #ef5350; }
.tlate { margin-left: auto; font-size: .75rem; background: #ef5350; color: #fff; border-radius: 9px; padding: 0 7px; line-height: 18px; }
.tree-empty { padding: 14px 16px; color: #9fb7c9; font-size: .9rem; }
.side-buttons { padding: 10px; display: grid; gap: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.sbtn {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: var(--nav-ink); text-decoration: none; font-weight: 600; font-size: .92rem; background: rgba(255,255,255,.06);
}
.sbtn:hover { background: rgba(255,255,255,.14); color: #fff; }
.sbtn-new { background: var(--brand); color: #fff; }
.sbtn-new:hover { background: #159aab; }
.scrim { display: none; }

/* ---------- Sisältö ---------- */
.main { padding: 20px; max-width: 1100px; }
body.with-nav .main { margin-left: var(--side); padding-top: calc(var(--top) + 20px); }
body.bare .main { max-width: none; }
.foot { color: var(--ink-3); font-size: .8rem; text-align: center; padding: 24px 0 8px; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 16px;
}
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.panel-head .sub { color: var(--ink-2); font-size: .92rem; margin-top: 3px; }
.panel-head h2 .ic { color: var(--late); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel-late { border-left: 4px solid var(--late); }
.panel-danger { border-color: #f1c7c5; }
.panel-danger h2 { color: var(--late); }
.h2-sep { margin: 22px 0 10px; }
.empty-state { text-align: center; padding: 18px; color: var(--ink-2); }

.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hero h1 { font-size: 1.7rem; }
.hero-date { color: var(--ink-2); margin: 2px 0 0; }

.crumbs { font-size: .9rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 12px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: #1d5f2b; border: 1px solid #bfe3c6; }
.flash-error { background: var(--late-soft); color: #8e1f1b; border: 1px solid #f4c3c0; }

.notice { background: #fffbe8; border: 1px solid #f1e2a6; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.notice-meta { color: var(--ink-3); font-size: .85rem; margin-top: 6px; }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 .93rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--line-2); color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-danger { background: var(--late); border-color: var(--late); color: #fff; }
.btn-danger:hover { background: #a32420; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.btn-lg { min-height: 48px; padding: 10px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer; padding: 0;
}
.btn-icon:hover { background: var(--line-2); color: var(--ink); }
.btn-icon-danger:hover { background: var(--late-soft); color: var(--late); }
.btn-icon span:empty { display: none; }

/* ---------- Tila ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-soon { background: var(--soon-soft); color: var(--soon); }
.st-late { background: var(--late-soft); color: var(--late); }
.st-paused, .st-disabled, .st-none { background: var(--muted-soft); color: var(--muted); }

.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); vertical-align: 2px; }
.tag-warn { background: var(--soon-soft); color: var(--soon); }

.prio { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .85rem; }
.prio-1 { background: var(--late-soft); color: var(--late); }
.prio-2 { background: var(--soon-soft); color: var(--soon); }
.prio-3 { background: var(--muted-soft); color: var(--muted); }

/* ---------- Pisterivit ---------- */
.plist { display: grid; gap: 8px; }
.prow {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2);
  border-left: 4px solid var(--muted); border-radius: 8px; background: #fbfcfd;
}
.st-row-ok { border-left-color: var(--ok); }
.st-row-soon { border-left-color: #e0a106; }
.st-row-late { border-left-color: var(--late); }
.prow-main { flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.prow-name { display: block; font-weight: 700; }
.prow-path { display: block; color: var(--ink-3); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.prow-date { font-size: .88rem; color: var(--ink-2); display: flex; gap: 5px; align-items: center; }
.prow-date .ic { width: 16px; height: 16px; }

/* ---------- Kategorialaatat ---------- */
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ctile {
  display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #fbfcfd; border-left: 4px solid var(--muted);
}
.ctile:hover { background: var(--brand-soft); color: var(--ink); }
.ctile-ok { border-left-color: var(--ok); }
.ctile-soon { border-left-color: #e0a106; }
.ctile-late { border-left-color: var(--late); }
.ctile-empty { border-left-color: var(--line); }
.ctile > .ic { color: var(--brand); }
.ctile-name { flex: 1; font-weight: 700; min-width: 0; }
.ctile-counts { display: flex; gap: 4px; }
.ctile-counts b { font-size: .75rem; padding: 1px 7px; border-radius: 10px; }
.n-late { background: var(--late); color: #fff; }
.n-soon { background: #e0a106; color: #fff; }
.n-total { background: var(--muted-soft); color: var(--ink-2); font-weight: 600; }
.ctile-chev { color: var(--ink-3); }

/* ---------- Pistekortit ---------- */
.pcards { display: grid; gap: 14px; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--top) + 12px); }
.pcard-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; background: #f7f9fb; border-bottom: 1px solid var(--line-2); border-left: 5px solid var(--muted);
}
.pcard-head h2 { display: inline; margin-right: 8px; }
.st-card-ok .pcard-head { border-left-color: var(--ok); }
.st-card-soon .pcard-head { border-left-color: #e0a106; background: #fffaf0; }
.st-card-late .pcard-head { border-left-color: var(--late); background: #fff6f5; }
.pcard:target { box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand); }
.pcard-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; margin: 0; padding: 14px; }
.pcard-info .full { grid-column: 1 / -1; }
.pcard-info dt { font-size: .8rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.pcard-info dd { margin: 2px 0 0; }
.pcard-info dd .ic { width: 16px; height: 16px; }
.pcard .history { padding: 0 14px 14px; }

/* ---------- Historia ---------- */
.hist-list { display: grid; gap: 8px; margin-top: 8px; }
.hist { border: 1px solid var(--line-2); border-left: 4px solid var(--ok); border-radius: 8px; padding: 9px 12px; background: #fbfcfd; }
.hist-uncomplete { border-left-color: var(--muted); }
.hist-requires_action { border-left-color: var(--late); }
.hist-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.hist-st { font-weight: 600; color: var(--ink-2); }
.hist-top time { margin-left: auto; color: var(--ink-3); font-size: .88rem; }
.hist-extra { font-size: .85rem; color: var(--ink-3); }
.hist p { margin: 4px 0; }

.ins { font-weight: 600; }
.ins-complete { color: var(--ok); }
.ins-uncomplete { color: var(--muted); }
.ins-requires_action { color: var(--late); }

/* ---------- Liitteet ---------- */
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.att { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-size: .9rem; background: #fff; }
.att .ic { width: 16px; height: 16px; }
.thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* ---------- Lomakkeet ---------- */
.form { display: grid; gap: 14px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 700; padding: 0 6px; color: var(--ink-2); }
.field { display: grid; gap: 5px; }
.field > span { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.field > span small { font-weight: 400; color: var(--ink-3); }
.field small { color: var(--ink-3); }
.field-narrow { max-width: 260px; }
.field-mid { max-width: 380px; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field-row > .field { flex: 1 1 180px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #c6d0d8; border-radius: 8px; background: #fff; color: var(--ink);
  font: inherit; min-height: 42px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
input[type=file] { font: inherit; font-size: .92rem; max-width: 100%; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.chk { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: .93rem; }
.chk:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.chk-block { display: flex; align-items: flex-start; padding: 10px 12px; }
.chk-block input { margin-top: 2px; }
.checks-months .chk { min-width: 118px; }
.checks-hours .chk { min-width: 78px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { flex: 1 1 160px; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; background: #fff; }
.seg input { width: 20px; height: 20px; margin: 0; }
.seg-complete:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); color: #1d5f2b; }
.seg-uncomplete:has(input:checked) { border-color: var(--muted); background: var(--muted-soft); }
.seg-requires_action:has(input:checked) { border-color: var(--late); background: var(--late-soft); color: #8e1f1b; }
.task-box { border-color: #f1c7c5; background: #fffafa; }

.gps-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--muted-soft); color: var(--ink-2); font-size: .93rem; }
.gps-info.ok { background: var(--ok-soft); color: #1d5f2b; }
.gps-info.bad { background: var(--late-soft); color: #8e1f1b; }
.gps-info span { flex: 1; }
.infobox { background: #f7f9fb; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }

.map { height: 320px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 10px; background: #e7edf1; }

.range-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.range-form .field { flex: 0 1 190px; }
.range-form .field:has(select) { flex: 1 1 260px; }

/* ---------- Taulukot ja listat ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-3); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tfoot th { border-top: 2px solid var(--line); border-bottom: 0; color: var(--ink); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-click tbody tr { cursor: pointer; }
.table-click tbody tr:hover { background: #f5f9fb; }
.t-late { color: var(--late); font-weight: 700; }
.t-soon { color: var(--soon); font-weight: 700; }

.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.mlist li > a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.mlist-actions { margin-left: auto; display: flex; gap: 2px; align-items: center; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--brand-dark); border-bottom-color: var(--brand); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar .tabs { margin-bottom: 0; }
.tabs-small { border: 0; }
.tabs-small a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 16px; margin: 0; }
.tabs-small a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.toolbar select { width: auto; min-height: 34px; padding: 4px 8px; }

.pager { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 12px; color: var(--ink-2); }

.tlist { display: grid; gap: 6px; }
.trow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; color: var(--ink); }
.trow:hover { background: #f5f9fb; }
.trow-name { flex: 1; font-weight: 600; }
.trow time { color: var(--ink-3); font-size: .85rem; }
.task-desc { background: #f7f9fb; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }

.msgs { display: grid; gap: 10px; margin-top: 16px; }
.msg { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; }
.msg-top { display: flex; gap: 10px; align-items: baseline; }
.msg-top time { margin-left: auto; color: var(--ink-3); font-size: .85rem; }

.notes { display: grid; gap: 12px; }
.note { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.note header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.note-meta { color: var(--ink-3); font-size: .85rem; margin: 2px 0 6px; }
.note-meta .tag { margin-left: 4px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fbfcfd; }
.kpi b { display: block; font-size: 1.5rem; line-height: 1.2; }
.kpi span { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.kpi-ok b { color: var(--ok); }
.kpi-soon b { color: var(--soon); }
.kpi-late b { color: var(--late); }

.code { background: #13324a; color: #e3eef6; padding: 12px 14px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.debug { background: #fff4f4; padding: 10px; border-radius: 8px; white-space: pre-wrap; }

/* ---------- Kirjautuminen ja asennus ---------- */
.login-wrap { min-height: calc(100vh - 80px); display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; }
.aiseal { width: 96px; height: 96px; display: block; filter: drop-shadow(0 4px 10px rgba(16, 40, 60, .25)); }
.login-card {
  width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 40, 60, .08); padding: 28px; display: grid; gap: 14px;
}
.login-logo { height: 84px; margin: 0 auto; display: block; }
.login-org { text-align: center; font-weight: 700; color: var(--ink-2); margin-top: -6px; }
.login-help { text-align: center; color: var(--ink-3); font-size: .85rem; margin: 0; }
.install { display: flex; justify-content: center; padding-top: 40px; }
.install-card { max-width: 560px; }
.install-card h1 { text-align: center; }
.req { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.req .ok { color: var(--ok); }
.req .bad { color: var(--late); font-weight: 700; }

/* ---------- Mobiili ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: min(86vw, 320px); box-shadow: 4px 0 24px rgba(0,0,0,.2); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--top) 0 0 0; background: rgba(10, 25, 35, .4); z-index: 25; }
  body.with-nav .main { margin-left: 0; padding: calc(var(--top) + 12px) 12px 12px; }
  .topnav a span, .me span { display: none; }
  .topnav { justify-content: center; }
  .brand { margin-right: 0; }
  .brand img, .brand svg { height: 38px; }
  .panel { padding: 14px; }
  .prow { flex-wrap: wrap; }
  .prow-meta { flex-direction: row; align-items: center; }
  .prow .btn { margin-left: auto; }
  .hero h1 { font-size: 1.4rem; }
}
@media (max-width: 520px) {
  .pcard-head .actions { width: 100%; }
  .pcard-head .actions .btn { flex: 1; }
  .topbar { padding: 0 6px; gap: 2px; }
  .topnav a, .me { padding: 8px; }
  .field-narrow { max-width: none; }
  .range-form .field { flex: 1 1 140px; }
}
@media print {
  .topbar, .sidebar, .btn, .btn-icon, .foot { display: none !important; }
  body.with-nav .main { margin: 0; padding: 0; }
  .panel { box-shadow: none; border: 0; }
}
