/* Transport Tool Hub. Plain CSS, no build step. Colours are tokens so branding is one edit. */
:root {
  --ink: #16202c;
  --ink-2: #3c4a5a;
  --muted: #6b7886;
  --line: #dfe4ea;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --brand: #12324f;
  --brand-2: #0b2238;
  --accent: #0f8b8d;
  --accent-soft: #e3f3f3;
  --ok: #1f8a4c;
  --ok-soft: #e5f4ea;
  --warn: #a86300;
  --warn-soft: #fdf2e1;
  --bad: #b4232c;
  --bad-soft: #fbe7e8;
  --on-brand: #ffffff;
  --on-brand-muted: #c9d4df;
  --accent-dark: #0c7577;
  --on-accent: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 2px 8px rgba(16, 32, 48, .05);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 .3rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .6rem; }
code { font-size: .85em; background: #eef1f4; padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.warn-text { color: var(--warn); }
.ok-text { color: var(--ok); }

/* top bar */
.topbar { display: flex; align-items: center; gap: 22px; padding: 0 24px; min-height: 64px; background: var(--brand-2); color: var(--on-brand); position: sticky; top: 0; z-index: 5; }
.brand-logo { height: 38px; max-width: 180px; object-fit: contain; display: block; }
.brand-sub { font-weight: 500; font-size: .8rem; color: var(--on-brand-muted); padding-left: 10px; border-left: 1px solid var(--on-brand-muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: inherit; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; }
.brand.big { font-size: 1.3rem; color: var(--brand); margin-bottom: 4px; }
.mainnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.mainnav a { color: var(--on-brand-muted); padding: 8px 12px; border-radius: 7px; white-space: nowrap; }
.mainnav a:hover { background: rgba(127,127,127,.15); color: var(--on-brand); text-decoration: none; }
.mainnav a.on { background: rgba(127,127,127,.22); color: var(--on-brand); }
.who { display: flex; align-items: center; gap: 14px; font-size: .85rem; }
.who-name { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.who-name small { color: var(--on-brand-muted); }
.who form { margin: 0; }
.topbar .link-quiet { color: var(--on-brand-muted); }
.link-quiet { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; }
.link-quiet:hover { text-decoration: underline; }

/* layout */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.section { margin-top: 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.empty { color: var(--muted); text-align: center; padding: 28px; }
.narrow { max-width: 560px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
/* Form rows: fields line up along the top, so a help line under one field never pushes its
   neighbour down. Rows of short inputs with checkboxes/buttons use .row-end instead. */
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.row > .field { flex: 1 1 180px; min-width: 0; }
.row > .field.compact { flex: 0 1 140px; }
.row > .field.wide { flex: 3 1 320px; }
.row.row-end { align-items: flex-end; }
.row.row-end > .check { min-height: 38px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.actions form { margin: 0; }
.downloads { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.field em { color: var(--bad); font-style: normal; }
.field small { color: var(--muted); font-size: .8rem; }
.field.compact { flex: 0 1 130px; }
input, select, textarea { font: inherit; color: inherit; padding: 8px 10px; border: 1px solid #c8d0d9; border-radius: 7px; background: #fff; min-width: 0; }
textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; }
.field-check { font-weight: 600; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid #c8d0d9; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f0f3f6; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-danger { color: var(--bad); border-color: #e9b9bd; }
.btn-small { padding: 6px 11px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* switch */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c8d0d9; border-radius: 22px; transition: .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(18px); }

/* flash */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; }
.flash-ok { background: var(--ok-soft); border-color: #b9e0c7; color: #155f35; }
.flash-warn { background: var(--warn-soft); border-color: #f0d3a5; color: #7a4800; }
.flash-error { background: var(--bad-soft); border-color: #f0bcc0; color: #8c1820; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8f9fb; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid #edf0f3; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; background: #fbfcfd; }
.table tfoot .total td { font-weight: 700; font-size: 1rem; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr.inactive td { color: var(--muted); text-decoration: line-through; }
.table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.count { display: inline-block; font-size: .8rem; background: #e6eaee; border-radius: 10px; padding: 1px 8px; margin-left: 4px; color: var(--ink-2); }
.card .table { box-shadow: none; }

/* pills and tags */
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 12px; background: #e6eaee; color: var(--ink-2); text-transform: capitalize; }
.pill-ok, .pill-active, .pill-paid { background: var(--ok-soft); color: var(--ok); }
.pill-failed, .pill-paused, .pill-void { background: var(--bad-soft); color: var(--bad); }
.pill-running, .pill-trial, .pill-draft { background: var(--warn-soft); color: var(--warn); }
.pill-issued { background: var(--accent-soft); color: var(--accent); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: #eef1f4; color: var(--ink-2); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: .78rem; color: var(--muted); }
.stat strong { display: block; font-size: 1.45rem; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tool-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.tool-card h2 { margin: 12px 0 6px; font-size: 1.2rem; }
.tool-card p { margin: 0 0 10px; color: var(--ink-2); font-size: .92rem; }
.tool-card-top { display: flex; gap: 6px; }
.tool-card-go { margin-top: auto; color: var(--accent); font-weight: 600; }
.help p { color: var(--ink-2); }

/* admin: tool access rows */
.access-list { display: flex; flex-direction: column; gap: 10px; }
.access-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 0; padding: 14px 16px; }
.access-row.is-on { border-left: 4px solid var(--accent); }
.access-name { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; align-self: center; }
.access-actions { display: flex; gap: 6px; }
.tool-admin-head { display: flex; justify-content: space-between; }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--brand-2), var(--brand) 60%, #18476b); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-card .btn { width: 100%; }

/* invoice */
.invoice { max-width: 860px; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.invoice-head .right { text-align: right; }
.billto { margin-bottom: 20px; color: var(--ink-2); }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px 12px; }
  .topbar .brand { flex: 1; }
  .mainnav { order: 3; flex-basis: 100%; }
  .table { display: block; overflow-x: auto; }
  .pagehead { flex-direction: column; }
  .who-name { display: none; }
  .page { padding: 20px 16px 40px; }
}
@media print {
  .topbar, .actions, .link-quiet, .flash { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
}

/* searchable, sortable tables (tables.js) */
.table-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px; }
.table-search { width: 280px; max-width: 100%; padding: 7px 10px 7px 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7886' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 10px center; }
.table-count { font-size: .8rem; color: var(--muted); }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--ink); }
.data-table th.sortable::after { content: "\2195"; opacity: .35; margin-left: 4px; font-size: .9em; }
.data-table th.sorted-asc::after { content: "\2191"; opacity: 1; color: var(--accent); }
.data-table th.sorted-desc::after { content: "\2193"; opacity: 1; color: var(--accent); }

/* settings tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { border-bottom-color: var(--accent); color: var(--accent); }
.tab-panel + .tab-panel { margin-top: 24px; }
.js .tab-panel { display: none; }
.js .tab-panel.on { display: block; }
.status-line { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); display: inline-block; }
.dot.ok { background: var(--ok); }
.colour-row { display: flex; align-items: center; gap: 8px; }
.colour-row input[type=color] { width: 44px; height: 38px; padding: 2px; }
.colour-row input[type=text] { width: 110px; font-family: ui-monospace, Consolas, monospace; }
.brand-preview { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.brand-preview .bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 60px; }
.brand-preview .bar img { height: 34px; max-width: 170px; object-fit: contain; }
.brand-preview .body { padding: 14px 16px; background: #fff; display: flex; gap: 10px; align-items: center; }
.logo-box { display: flex; align-items: center; justify-content: center; min-height: 80px; background: repeating-conic-gradient(#e9edf1 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; border: 1px dashed #c8d0d9; border-radius: 8px; padding: 12px; }
.logo-box img { max-height: 70px; max-width: 100%; }
.tool-group { margin-top: 8px; }
.tool-group h2.group-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 10px; }
.narrow-wide { max-width: 780px; }
.stack > h2, .stack > h3 { margin-bottom: -4px; }

/* gear menu (left of the banner) */
.gear { position: relative; }
.gear > summary { list-style: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; cursor: pointer; color: var(--on-brand); }
.gear > summary::-webkit-details-marker { display: none; }
.gear > summary:hover, .gear[open] > summary { background: rgba(127,127,127,.22); }
.gear > summary svg { width: 22px; height: 22px; transition: transform .2s; }
.gear[open] > summary svg { transform: rotate(45deg); }
.gear-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,32,48,.18); padding: 6px; z-index: 20; }
.gear-menu a, .gear-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 7px; color: var(--ink); font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; text-align: left; }
.gear-menu a:hover, .gear-menu button:hover { background: #f0f3f6; text-decoration: none; }
.gear-menu a.on { color: var(--accent); font-weight: 600; }
.gear-menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.gear-menu .who-line { padding: 8px 12px 6px; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.gear-menu .who-line strong { display: block; color: var(--ink); font-size: .9rem; }
.gear-menu form { margin: 0; }

/* tool settings tab */
.tool-settings { max-width: 900px; display: flex; flex-direction: column; gap: 16px; }
.tool-settings > .card, .tool-settings fieldset.card { margin: 0; }
.tool-settings-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.head-actions form { margin: 0; }
fieldset.card { border: 1px solid var(--line); min-width: 0; }
fieldset.card > legend { font-weight: 700; font-size: 1.02rem; padding: 0 6px; margin-left: -6px; }
.subhead { font-weight: 700; font-size: .92rem; margin-top: 6px; }
.tight { margin: 6px 0 0; padding-left: 18px; }
.tight li { margin: 2px 0; }
.save-bar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 14px 0 4px; }
.save-bar .btn { width: 100%; }
.checklist { border: 1px solid #c8d0d9; border-radius: 8px; background: #fff; }
.checklist-filter { border: 0; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; width: 100%; }
.checklist-items { max-height: 220px; overflow-y: auto; padding: 6px 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 8px; }
.checklist-items label { display: flex; gap: 8px; align-items: flex-start; padding: 4px 6px; border-radius: 6px; font-size: .88rem; cursor: pointer; }
.checklist-items label:hover { background: #f0f3f6; }
.checklist-items label small { color: var(--muted); }
.checklist-items label.is-checked { background: var(--accent-soft); }
.checklist .empty-note { padding: 10px; font-size: .85rem; color: var(--muted); }
.tag-new { background: var(--warn-soft); color: var(--warn); }
.tag-missing { background: var(--bad-soft); color: var(--bad); }
.lane-picker { display: flex; flex-direction: column; gap: 8px; }
.lane-modes { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lane-grid { border-collapse: collapse; font-size: .82rem; }
.lane-grid th, .lane-grid td { padding: 4px 8px; text-align: center; border: 1px solid var(--line); }
.lane-grid th { background: #f8f9fb; color: var(--muted); font-weight: 600; }
.lane-grid th.from { text-align: right; }
.lane-picker:not(.mode-lanes) .lane-grid { display: none; }
.charge-card { border: 1px dashed #c8d0d9; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #fbfcfd; }
.charge-card.is-new { border-style: dotted; background: #fff; }
.charge-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.ini { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; }
details.ini summary { cursor: pointer; font-weight: 600; }
details.ini pre { background: #f6f8fa; padding: 12px; border-radius: 6px; overflow-x: auto; font-size: .8rem; }
details.charge { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
details.charge > summary { cursor: pointer; padding: 12px 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
details.charge[open] > summary { border-bottom: 1px solid var(--line); }
details.charge > .charge-card { border: 0; border-radius: 0 0 10px 10px; }
details.charge-add > summary { list-style: none; display: inline-flex; }
details.charge-add > summary::-webkit-details-marker { display: none; }
details.charge-add[open] > summary { margin-bottom: 10px; }

/* top bar, right side: name (links to your details) then the gear */
.topbar .who { display: flex; align-items: center; gap: 10px; color: var(--on-brand); padding: 4px 10px 4px 4px; border-radius: 22px; margin-left: auto; }
.topbar .who:hover { background: rgba(127,127,127,.18); text-decoration: none; }
.topbar .mainnav { flex: 1; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; letter-spacing: .02em; flex: none; }
.gear-menu .who-line { display: block; }
.gear-menu .who-line strong { display: block; }
@media (max-width: 860px) { .topbar .who { margin-left: 0; } .topbar .who-name { display: none; } }

/* home page */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; padding: 24px 26px; border-radius: 14px; background: linear-gradient(120deg, var(--brand-2), var(--brand)); color: var(--on-brand); }
.hero h1 { font-size: 1.8rem; margin: 2px 0 4px; }
.hero .muted { color: var(--on-brand-muted); margin: 0; }
.hero-kicker { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-brand-muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.latest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.latest { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.latest-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.latest h3 { margin: 6px 0 0; font-size: 1.1rem; }
.latest h3 a { color: var(--ink); }
.latest p { margin: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0; }
.mini-stats div { background: #f6f8fa; border-radius: 8px; padding: 8px 10px; }
.mini-stats span { display: block; font-size: .72rem; color: var(--muted); }
.mini-stats strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.latest-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.plain-list li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } .hero { flex-direction: column; align-items: flex-start; } }
@media (max-width: 860px) {
  .topbar .brand { flex: 1; }
  .topbar .mainnav { order: 3; flex: 1 1 100%; }
}

/* announcements */
.notices { max-width: 1240px; margin: 14px auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 8px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid; background: #fff; }
.notice-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; }
.notice-body { flex: 1; min-width: 0; }
.notice-when { font-weight: 600; margin-left: 6px; white-space: nowrap; }
.notice-text { white-space: pre-line; font-size: .92rem; margin-top: 2px; }
.notice form { margin: 0; }
.notice-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 0 4px; }
.notice-close:hover { opacity: 1; }
.notice-info { background: #eef6fd; border-color: #c4def5; color: #13436b; }
.notice-info .notice-icon { background: #2b77b8; }
.notice-maintenance { background: var(--warn-soft); border-color: #f0d3a5; color: #6b4000; }
.notice-maintenance .notice-icon { background: #c27a00; }
.notice-urgent { background: var(--bad-soft); border-color: #f0bcc0; color: #7d141c; }
.notice-urgent .notice-icon { background: var(--bad); }
.tag-info { background: #eef6fd; color: #13436b; }
.tag-maintenance { background: var(--warn-soft); color: #6b4000; }
.tag-urgent { background: var(--bad-soft); color: var(--bad); }
.kind-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.kind { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.company-pick { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-left: 26px; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline; margin: 0; }
.announce-layout { align-items: start; }
.notice-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
.auth-wrap { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.auth-wrap .notice { width: 100%; }
@media (max-width: 860px) { .notices { padding: 0 16px; } }
