/* NatResLive demo styles. Colours follow the agreed mockups: NR red accent, charcoal header, navy panels. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #D42A3C;
  --accent-dark: #B3122B;
  --panel: #2B3A55;
  --charcoal: #20252B;
  --ground: #EEF1F5;
  --card: #FFFFFF;
  --ink: #1E2632;
  --ink-strong: #141B26;
  --ink-2: #3A4452;
  --muted: #4E5968;
  --muted-2: #5B6575;
  --line: #E6EAF0;
  --line-2: #CED5DF;
  --soft: #F7F9FB;
  --green: #1F9D55;
  --green-ink: #17693B;
  --amber: #E8A317;
  --orange: #F07C1E;
  --link: #2A4F8F;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 45, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 14px/1.45 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #2A6FDB; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ header */
.topbar { background: var(--charcoal); color: #fff; }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; }
.brand img { height: 32px; width: auto; display: block; }
.live-badge { padding: 4px 9px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .14em; }
.portal-label { color: #B9C2CD; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.nav { display: flex; flex-wrap: wrap; flex: 1 1 auto; font-size: 13.5px; }
.nav a { color: #B9C2CD; padding: 25px 9px 22px; font-weight: 500; border-bottom: 3px solid transparent; text-decoration: none; }
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; font-weight: 700; border-bottom-color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.sync-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #BFF0D2; background: rgba(31,157,85,.2); padding: 6px 11px; border-radius: 999px; text-decoration: none !important; }
.sync-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #34D17E; }
.btn-topbar { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.btn-topbar:hover { background: rgba(255,255,255,.08); }
.user-chip { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; }
.user-chip .who { line-height: 1.2; }
.user-chip .who small { display: block; color: #B9C2CD; font-size: 11.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; background: #3A4758; color: #fff; flex: 0 0 auto; }
.demo-strip { background: #FFF4D6; color: #6B4A00; font-size: 12.5px; text-align: center; padding: 6px 12px; }

/* ------------------------------------------------------------------ layout */
.page { max-width: 1440px; margin: 0 auto; padding: 24px 24px 40px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.page-head .sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.crumbs a { font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 999 1 680px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 330px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.footer-note { text-align: center; font-size: 12.5px; color: var(--muted-2); margin: 4px 0 0; }

/* ------------------------------------------------------------------ cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi { background: var(--card); border-radius: var(--radius); border-top: 5px solid var(--panel); padding: 16px 20px; box-shadow: var(--shadow); text-decoration: none !important; color: inherit; display: block; }
a.kpi:hover { box-shadow: 0 2px 8px rgba(20,30,45,.12); }
.kpi.k-green { border-top-color: var(--green); } .kpi.k-orange { border-top-color: var(--orange); } .kpi.k-amber { border-top-color: var(--amber); } .kpi.k-red { border-top-color: var(--accent); } .kpi.k-navy { border-top-color: var(--panel); }
.kpi-label { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.kpi-value { margin: 4px 0 0; font-weight: 800; font-size: 36px; letter-spacing: -.02em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.kpi-sub { margin: 2px 0 0; color: var(--muted-2); font-size: 13px; }

.panel { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--panel); color: #fff; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-weight: 700; font-size: 16.5px; color: #fff; }
.panel-head a, .panel-head .meta { font-size: 13px; color: #D5DDEA; }
.panel-head.dark { background: var(--charcoal); }
.panel-body { padding: 16px 20px; }
.panel-body.tight { padding: 0; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pipeline > a { padding: 14px 18px 0; border-right: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.pipeline > a:last-child { border-right: 0; }
.pipeline > a:hover { background: var(--soft); }
.pipeline .n { margin: 0; font-weight: 800; font-size: 24px; color: var(--panel); }
.pipeline .l { margin: 2px 0 12px; font-size: 13.5px; font-weight: 600; color: #2B3442; }
.pipeline .bar { height: 4px; background: var(--accent); border-radius: 2px 2px 0 0; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); background: var(--soft); font-weight: 600; font-size: 12.5px; padding: 11px 12px; white-space: nowrap; }
.table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tr.total td { border-top: 2px solid #2B3442; background: var(--soft); font-weight: 700; }
.table tr.row-warn td { background: #FFF6F6; }
.table .r, .r { text-align: right; }
.table .sub { display: block; color: var(--muted-2); font-size: 12.5px; }
.table .strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ pills, chips, buttons */
.pill { display: inline-block; padding: 3px 10px; border-radius: 10px; font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.pill-amber { background: #FDF1D8; color: #855300; }
.pill-blue { background: #E3ECFA; color: #234A8C; }
.pill-indigo { background: #E8E6FA; color: #3D2F8C; }
.pill-orange { background: #FDEBDD; color: #A13F08; }
.pill-teal { background: #DDF2F2; color: #0F5E5E; }
.pill-green { background: #E2F4EA; color: #17693B; }
.pill-red { background: #FCE4E6; color: #B3122B; }
.pill-grey { background: #EEF1F5; color: #3A4452; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #FDEBDD; color: #A13F08; font-size: 11px; font-weight: 700; letter-spacing: .03em; vertical-align: 1px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.toolbar form.search { flex: 1 1 240px; display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
.chip:hover { background: var(--soft); }
.chip.active { background: var(--panel); border-color: var(--panel); color: #fff; }
.chip .count { margin-left: 6px; opacity: .75; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--panel); border-color: var(--panel); color: #fff; font-weight: 700; }
.btn-dark:hover { background: #22304A; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.btn-success:hover { background: #188546; }
.btn-danger { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; font-weight: 700; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; cursor: pointer; }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 13.5px; }
.field .hint { font-size: 12.5px; color: var(--muted-2); margin: 0; }
.input, .field input, .field select, .field textarea, input.input, select.input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 14px; width: 100%; }
.field textarea, textarea.input { padding: 10px 12px; min-height: 90px; resize: vertical; }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form-row > .field { flex: 1 1 200px; }
.inline-form { display: inline; }

/* ------------------------------------------------------------------ flashes */
.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.flash-success { background: #E2F4EA; color: #0F4D2A; border: 1px solid #B8E2C8; }
.flash-error { background: #FCE4E6; color: #7E0C1E; border: 1px solid #F3B9C0; }
.flash-info { background: #E3ECFA; color: #1A3768; border: 1px solid #C3D4F0; }

.banner { border-radius: var(--radius); padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.banner h2 { margin: 0; font-size: 19px; font-weight: 800; }
.banner p { margin: 4px 0 0; }
.banner-action { background: #fff; border-top: 5px solid var(--accent); box-shadow: var(--shadow); }
.banner-ok { background: #E2F4EA; border: 1px solid #B8E2C8; color: #17693B; }
.banner-ok h2 { color: #0F4D2A; }
.banner-bad { background: #FCE4E6; border: 1px solid #F3B9C0; color: #9A1026; }
.banner-bad h2 { color: #7E0C1E; }
.banner-warn { background: #FFF6E6; border: 1px solid #F5D9A8; color: #6B4A00; }
.banner-warn h2 { color: #5C3A00; }

/* ------------------------------------------------------------------ lists */
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li { display: flex; gap: 12px; padding: 13px 20px; border-bottom: 1px solid #EEF1F5; }
.alert-list li:last-child { border-bottom: 0; }
.alert-list a { color: inherit; text-decoration: none !important; display: block; }
.alert-list a:hover .t { text-decoration: underline; }
.dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--amber); }
.dot.high { background: #E83344; }
.dot.low { background: #9AA4B2; }
.alert-list .t { margin: 0; font-weight: 700; color: var(--ink-strong); }
.alert-list .d { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.alert-list .w { margin: 3px 0 0; font-size: 12px; color: var(--muted-2); }

.dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.facts .k { margin: 0; font-size: 12.5px; color: var(--muted); }
.facts .v { margin: 2px 0 0; font-weight: 700; font-size: 16px; }

.docsq { display: inline-flex; gap: 3px; vertical-align: middle; }
.docsq span { width: 13px; height: 13px; border-radius: 3px; background: #DDE3EA; }
.docsq span.on { background: var(--green); }
.docsq span.miss { background: #E83344; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-bottom: 1px solid #EEF1F5; }
.checklist li:last-child { border-bottom: 0; }
.checklist .state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.tick { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.tick.no { background: #E6EAF0; color: var(--muted); }
.upload-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
/* Styled file picker: the real input stays in the page (keyboard and screen readers use it), the label is the button. */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + .file-label { outline: 2px solid #2A6FDB; outline-offset: 2px; }
.file-label { cursor: pointer; }
.file-name { display: inline-flex; align-items: center; gap: 6px; max-width: 200px; padding: 0 10px; min-height: 36px; border-radius: 8px; background: #EEF3FA; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.file-name:empty { display: none; }
.file-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-remove { color: var(--accent-dark); border-color: #F0C3C9; }
.btn-remove:hover { background: #FFF4F5; border-color: var(--accent-dark); }

/* milestones */
.ms { list-style: none; margin: 0; padding: 14px 20px 16px; }
.ms li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; padding-bottom: 13px; position: relative; }
.ms li:last-child { padding-bottom: 0; }
.ms li::before { content: ''; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: #E1E6ED; }
.ms li:last-child::before { display: none; }
.ms .mk { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid #B9C3CE; background: #fff; position: relative; z-index: 1; }
.ms .done .mk { background: var(--green); border-color: var(--green); }
.ms .bad .mk { background: var(--accent-dark); border-color: var(--accent-dark); }
.ms .current .mk { border: 3px solid var(--accent); }
.ms .lb { display: block; font-weight: 700; }
.ms .planned .lb { font-weight: 600; color: var(--ink-2); }
.ms .current .lb { font-weight: 800; color: var(--ink-strong); }
.ms .dt { font-size: 12.5px; color: var(--muted-2); }
.ms .when { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.ms .current .when { color: var(--accent-dark); font-weight: 700; }

/* stepper */
.stepper { list-style: none; margin: 0; padding: 16px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stepper li { display: flex; align-items: center; gap: 10px; }
.stepper .c { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #E6EAF0; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.stepper .done .c { background: var(--green); color: #fff; }
.stepper .current .c { background: var(--panel); color: #fff; }
.stepper .bad .c { background: var(--accent-dark); color: #fff; }
.stepper b { display: block; }
.stepper small { color: var(--muted-2); font-size: 12.5px; }

/* messages */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: #F3F5F8; line-height: 1.5; }
.msg.mine { align-self: flex-end; background: #E9EEF7; border-radius: 12px 12px 4px 12px; }
.msg .who { margin: 0 0 3px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.msg p { margin: 0; white-space: pre-line; }

/* charts */
.chart-legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.vbars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; align-items: end; height: 200px; border-bottom: 1px solid #D5DBE3; }
.vbars .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.vbars .col.partial { opacity: .55; }
.vbars .tot { font-size: 12.5px; font-weight: 700; color: #2B3442; margin-bottom: 4px; }
.vbars .seg { width: 100%; max-width: 46px; }
.vbars .seg.top { border-radius: 6px 6px 0 0; }
.vbars .seg + .seg { margin-top: 2px; }
.vlabels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--muted); }
.hbars { display: flex; flex-direction: column; gap: 11px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 70px; align-items: center; gap: 10px; }
.hbar .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 14px; border-radius: 7px; background: #EEF1F5; overflow: hidden; }
.hbar .fill { display: block; height: 100%; background: var(--accent); }
.hbar .val { text-align: right; font-weight: 700; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tile { border-radius: 10px; padding: 12px 14px; background: #EEF1F5; }
.tile .n { margin: 0; font-weight: 800; font-size: 23px; }
.tile .l { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.tile.amber { background: #FDF1D8; color: #5C3A00; } .tile.amber .n { color: #855300; }
.tile.blue { background: #E3ECFA; color: #1A3768; } .tile.blue .n { color: #234A8C; }
.tile.green { background: #E2F4EA; color: #0F4D2A; } .tile.green .n { color: #17693B; }

/* hero (Nora brief) */
.hero { background: #F4F6F8; border: 1px solid #D3D9E0; border-radius: 16px; padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.hero .eyebrow { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2A5C8F; }
.hero h2 { margin: 6px 0 0; font-weight: 800; font-size: 23px; }
.hero p.lead { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.hero .jobs { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .jobs a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 10px; background: #fff; border: 1px solid #D3D9E0; color: var(--ink); font-weight: 600; text-decoration: none !important; }
.hero .jobs a:hover { border-color: #AEB8C4; }
.hero .jobs .no { width: 28px; height: 28px; border-radius: 7px; background: #FCE4E6; color: var(--accent-dark); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.hero .jobs .no.med { background: #FDF1D8; color: #855300; }
.hero-ask { flex: 0 1 300px; display: flex; flex-direction: column; gap: 10px; }
.status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green-ink); background: #E2F4EA; padding: 4px 10px; border-radius: 999px; }
.status-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* voyage panel */
.voyage { background: #1B2A40; border-radius: var(--radius); overflow: hidden; color: #fff; }
.voyage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 0; }
.voyage-head h2 { margin: 0; font-size: 16.5px; font-weight: 700; color: #fff; }
.voyage svg { display: block; width: 100%; height: auto; }
.voyage .facts { padding: 4px 20px 20px; }
.voyage .facts > div { background: #fff; color: var(--ink-strong); border-radius: 10px; padding: 11px 14px; }
.progress { display: block; height: 6px; border-radius: 3px; background: #E6EAF0; overflow: hidden; margin-top: 6px; }
.progress > span { display: block; height: 100%; background: var(--accent); }

/* nora */
.nora-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 0; background: var(--charcoal); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(20,30,45,.3); }
.nora-fab:hover { background: #2C333B; }
.nora-panel { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px)); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(20,30,45,.35); display: none; flex-direction: column; overflow: hidden; }
.nora-panel.open { display: flex; }
.nora-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; background: var(--charcoal); color: #fff; }
.nora-head h2 { margin: 0; font-size: 16px; color: #fff; }
.nora-head p { margin: 1px 0 0; font-size: 12.5px; color: #C3CBD5; }
.nora-head .x { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.nora-head .x:hover { background: rgba(255,255,255,.1); }
.nora-log { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFC; }
.nora-msg { max-width: 90%; padding: 10px 13px; border-radius: 14px; line-height: 1.5; font-size: 14px; }
.nora-msg.user { align-self: flex-end; background: var(--panel); color: #fff; border-radius: 14px 14px 4px 14px; }
.nora-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #E1E6EC; border-radius: 14px 14px 14px 4px; }
.nora-msg.bot p { margin: 0 0 6px; } .nora-msg.bot p:last-child { margin: 0; }
.nora-msg.bot ul { margin: 4px 0 6px; padding-left: 18px; }
.nora-msg .src { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted-2); }
.nora-msg.thinking { color: var(--muted); font-style: italic; }
.nora-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #FAFBFC; }
.nora-suggest button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.nora-suggest button:hover { background: var(--soft); }
.nora-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.nora-form input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; }
.nora-form button { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nora-reset { font-size: 12px; color: #C3CBD5; background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* login */
.login-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-brand { flex: 1 1 420px; background: var(--charcoal); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.login-brand h1 { color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 0; max-width: 460px; }
.login-brand p { color: #C3CBD5; font-size: 16.5px; line-height: 1.55; max-width: 460px; }
.login-form-side { flex: 1 1 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; gap: 20px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow); border: 1px solid #E3E7EF; }
.login-card h2 { margin: 0; font-size: 23px; font-weight: 800; }
.demo-accounts { width: 100%; max-width: 420px; }
.demo-accounts h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.demo-accounts button { display: flex; width: 100%; text-align: left; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; cursor: pointer; }
.demo-accounts button:hover { border-color: var(--panel); background: var(--soft); }
.demo-accounts .role { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #EEF1F5; color: var(--ink-2); white-space: nowrap; }

.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.pager { display: flex; gap: 6px; align-items: center; }
.article { white-space: pre-line; line-height: 1.6; font-size: 15px; }

@media (max-width: 1599px) {
  .user-chip .who { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner, .page { padding-left: 16px; padding-right: 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { padding: 12px 9px 10px; white-space: nowrap; }
  .page-head h1 { font-size: 23px; }
  .kpi-value { font-size: 30px; }
  .login-brand { padding: 32px 24px; }
  .login-brand h1 { font-size: 28px; }
  .hbar { grid-template-columns: 100px 1fr 56px; }
  .nora-fab span.lbl { display: none; }
  .nora-fab { padding: 6px; }
}
@media print {
  .topbar, .nora-fab, .nora-panel, .demo-strip, .btn, .chip { display: none !important; }
  body { background: #fff; }
}

/* In-page confirmation dialog */
.confirm-dialog { border: 0; border-radius: 16px; padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(20, 30, 45, .35); display: none; gap: 16px; color: var(--ink); }
.confirm-dialog[open] { display: flex; animation: confirm-in .14s ease-out; }
.confirm-dialog::backdrop { background: rgba(20, 27, 38, .45); }
.confirm-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #FCE4E6; color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.confirm-body { flex: 1 1 auto; min-width: 0; }
.confirm-body h2 { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.confirm-msg { margin: 6px 0 0; color: var(--ink-2); line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn.is-busy { opacity: .6; cursor: progress; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .confirm-dialog[open] { animation: none; } }

/* ------------------------------------------------------------------ intranet */
.staff-av { border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-block; background: #E6ECF4; vertical-align: middle; }
.staff-av-initials { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; letter-spacing: .02em; }

.intra-hero { position: relative; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 26px 28px 32px; border-radius: var(--radius); overflow: hidden; color: #fff;
  background: radial-gradient(circle at 92% -20%, rgba(212,42,60,.55), transparent 45%), radial-gradient(circle at 70% 140%, rgba(26,156,140,.35), transparent 45%), linear-gradient(120deg, #20252B 0%, #2B3A55 70%); }
.intra-hero h1 { margin: 2px 0 4px; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.intra-date { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #F3A6AE; }
.intra-lede { margin: 0 0 16px; color: #D5DDEA; }
.intra-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ichip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); text-decoration: none !important; }
.ichip svg { flex: 0 0 auto; }
.ichip.c-red svg { color: #FF8C98; } .ichip.c-amber svg { color: #FFC857; } .ichip.c-teal svg { color: #5FD6C4; } .ichip.c-plum svg { color: #C7A3EA; } .ichip.c-blue svg { color: #8DB8F5; }
a.ichip:hover { background: rgba(255,255,255,.18); }
.ichip-cta { margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: var(--accent); font-weight: 700; font-size: 12px; }
.intra-hero-side { text-align: right; }
.intra-in { margin: 0 0 8px; color: #D5DDEA; font-size: 13.5px; } .intra-in b { color: #fff; font-size: 18px; }
.av-stack { display: flex; justify-content: flex-end; padding-left: 10px; }
.av-stack > span { margin-left: -10px; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 3px #2B3A55; }
.av-more { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: inline-flex !important; align-items: center; justify-content: center; font-size: 13px; }
.intra-stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: flex; }
.intra-stripe i { flex: 1; }
.intra-stripe i:nth-child(1) { background: #D42A3C; } .intra-stripe i:nth-child(2) { background: #E58A12; } .intra-stripe i:nth-child(3) { background: #F2C14E; }
.intra-stripe i:nth-child(4) { background: #1A9C8C; } .intra-stripe i:nth-child(5) { background: #3D7FD9; } .intra-stripe i:nth-child(6) { background: #7B4FA0; }

.intra-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.intra-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none !important; }
.intra-nav a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.intra-nav a:hover { background: var(--soft); }
.intra-nav a.active { background: var(--c); color: #fff; }
.intra-nav a.active::before { background: #fff; }

.ipanel { border-top: 4px solid var(--c, var(--panel)); }
.ipanel > .panel-head { background: #fff; color: var(--ink-strong); border-bottom: 1px solid var(--line); }
.ipanel > .panel-head h2 { color: var(--ink-strong); display: flex; align-items: center; gap: 9px; }
.ipanel > .panel-head h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--panel)); }
.ipanel > .panel-head .meta { color: var(--muted-2); }
.ipanel > .panel-head a { color: var(--link); font-weight: 700; }

.news-item { padding: 16px 20px; border-bottom: 1px solid #EEF1F5; display: flex; gap: 16px; }
.news-item h3 { margin: 0; font-size: 17px; }
.news-item h3 a { color: var(--ink-strong); }
.news-excerpt { margin: 4px 0 0; color: var(--ink-2); }
.date-badge { flex: 0 0 auto; width: 54px; height: 56px; border-radius: 12px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 10px -4px rgba(20,30,45,.45); }
.date-badge .d { font-weight: 800; font-size: 21px; line-height: 1; } .date-badge .m { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.byline { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.news-cal { background: linear-gradient(90deg, #EAF7F4, #fff 70%); }
.news-kicker { margin: 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #0F7466; }
.leave-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.leave-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid #CDEBE5; }
.leave-chip b { display: block; font-size: 13.5px; } .leave-chip small { display: block; font-size: 12px; color: var(--muted); }
.post-news { padding: 14px 20px; } .post-news summary { cursor: pointer; font-weight: 700; color: var(--link); }

.team-week { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.team-week th, .team-week td { padding: 8px 10px; border-bottom: 1px solid #EEF1F5; text-align: center; }
.team-week thead th { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.team-week thead th small { display: block; font-size: 15px; color: var(--ink-strong); text-transform: none; letter-spacing: 0; }
.team-week th[scope=row], .team-week thead th:first-child { text-align: left; padding-left: 20px; }
.team-week .is-today { background: #FFF6E5; }
.team-week thead th.is-today { background: #E58A12; color: #fff; } .team-week thead th.is-today small { color: #fff; }
.tw-person { display: flex; align-items: center; gap: 10px; font-weight: 400; min-width: 210px; }
.tw-person b { display: block; font-size: 14px; } .tw-person small { display: block; color: var(--muted-2); font-size: 12px; }
.tw-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #1F9D55; box-shadow: 0 0 0 3px #E2F4EA; vertical-align: middle; }
.tw-dot.past { background: #B8C2CF; box-shadow: 0 0 0 3px #EEF1F5; }
.tw-leave { display: inline-block; padding: 3px 8px; border-radius: 8px; background: #FDEBDD; color: #A13F08; font-weight: 700; font-size: 12px; }
.tw-legend { display: inline-flex; align-items: center; gap: 8px; }

.shout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 16px 20px; }
.shout { margin: 0; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, #F6F0FB, #FFF 65%); border: 1px solid #E7DCF2; display: flex; flex-direction: column; gap: 10px; }
.shout-to { display: flex; align-items: center; gap: 12px; } .shout-to b { display: block; } .shout-to small { color: var(--muted); font-size: 12.5px; }
.shout blockquote { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.shout figcaption { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.shout-form { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: var(--soft); }

.clock-list { list-style: none; margin: 0; padding: 6px 0; }
.clock-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 20px; }
.clock-list li + li { border-top: 1px solid #F0F2F6; }
.clock-list li.home { background: #EEF4FD; }
.clock-list b { display: block; font-size: 14.5px; } .clock-list small { display: block; font-size: 12px; color: var(--muted-2); }
.clock-time { text-align: right; font-variant-numeric: tabular-nums; } .clock-time span[data-time] { font-size: 20px; font-weight: 800; color: var(--ink-strong); }
.clock-state { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; min-width: 82px; text-align: center; }
.clock-state.open { background: #E2F4EA; color: #17693B; } .clock-state.closed { background: #EEF1F5; color: #4E5968; } .clock-state.weekend { background: #E8E6FA; color: #3D2F8C; }

.move-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 20px 6px; }
.mt { border-radius: 12px; padding: 12px; background: color-mix(in srgb, var(--t) 9%, #fff); border: 1px solid color-mix(in srgb, var(--t) 22%, #fff); }
.mt b { display: block; font-size: 24px; font-weight: 800; color: var(--t); line-height: 1.1; } .mt span { font-size: 12px; color: var(--ink-2); }
.move-list { list-style: none; margin: 0; padding: 6px 0 10px; }
.move-list li { display: flex; align-items: center; gap: 12px; padding: 8px 20px; }
.move-list small { display: block; font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mv-ico.metals { background: #E3ECFA; color: #234A8C; } .mv-ico.pack { background: #DDF2F2; color: #0F5E5E; }
.mv-eta { font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

.cel-list { list-style: none; margin: 0; padding: 6px 0; }
.cel-list li { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.cel-list li + li { border-top: 1px solid #F0F2F6; }
.cel-list b { display: block; } .cel-list small { display: block; font-size: 12.5px; color: var(--muted-2); }
.cel-when { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FDF1D8; color: #855300; white-space: nowrap; }
.cel-when.today { background: var(--accent); color: #fff; }
.cal-badge { flex: 0 0 auto; width: 46px; border-radius: 9px; overflow: hidden; text-align: center; border: 1px solid #E2E6EC; background: #fff; }
.cal-badge span { display: block; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 0; } .cal-badge b { display: block; font-size: 17px; padding: 2px 0; }

.quote-card { background: #1B2438; color: #fff; }
.quote-art { display: block; width: 100%; height: 130px; }
.quote-body { padding: 16px 22px 20px; }
.quote-label { margin: 0 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #F3A6AE; }
.quote-card blockquote { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 600; }
.quote-by { margin: 8px 0 0; color: #AEBBD0; font-size: 13.5px; }

.sugg-intro { display: flex; gap: 12px; align-items: flex-start; } .sugg-intro p { margin: 0; color: var(--ink-2); font-size: 14px; }
.sugg-ico { width: 38px; height: 38px; border-radius: 12px; background: #DDF2F2; color: #0F5E5E; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sugg-admin { padding: 0 20px 16px; } .sugg-admin summary { cursor: pointer; font-weight: 700; color: var(--link); font-size: 13.5px; }
.sugg-admin ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sugg-admin li { padding: 10px 12px; border-radius: 10px; background: var(--soft); } .sugg-admin li p { margin: 0 0 4px; font-size: 14px; } .sugg-admin small { color: var(--muted-2); }

.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-links a { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink); text-decoration: none !important; }
.quick-links a:hover { background: var(--soft); }
.quick-links a span { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }

.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 16px 20px 20px; }
.dir-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.dir-card.me { border-color: #BFD3F2; background: #F6F9FE; }
.dir-card h3 { margin: 0; font-size: 16px; }
.dir-role { margin: 2px 0 0; font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.dir-loc { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.loc-dot { width: 8px; height: 8px; border-radius: 50%; background: #1A9C8C; }
.dir-away { color: #A13F08; font-weight: 700; }
.dir-contact { margin: 8px 0 0; font-size: 13px; line-height: 1.6; word-break: break-all; }
.loc-badge { width: 40px; height: 40px; border-radius: 12px; background: #E3ECFA; color: #234A8C; font-weight: 800; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; }

@media (max-width: 640px) {
  .intra-hero { padding: 20px 18px 26px; } .intra-hero h1 { font-size: 24px; } .intra-hero-side { text-align: left; } .av-stack { justify-content: flex-start; }
  .move-tiles { grid-template-columns: 1fr 1fr 1fr; padding: 12px 14px 4px; } .mt b { font-size: 20px; }
  .dir-grid { grid-template-columns: 1fr; padding: 12px; }
}
