@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/sg-2ccc467d.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/sg-fac617d7.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  /* Shared palette from odexer.com, with additional colors for portal statuses. */
  --paper: light-dark(rgb(255 255 255), rgb(21 39 43));
  --ground: light-dark(rgb(241 244 240), rgb(28 50 55));
  --tint: light-dark(rgb(232 238 234), rgb(32 59 64));
  --ink: light-dark(rgb(25 51 55), rgb(244 247 238));
  --ink-strong: light-dark(rgb(0 0 0), rgb(255 255 255));
  --muted: light-dark(rgb(82 97 95), rgb(209 219 213));
  --line: light-dark(rgb(220 227 222), rgb(67 86 83));
  --field: light-dark(rgb(123 121 116), rgb(132 153 149));
  --accent: light-dark(rgb(149 96 68), rgb(245 132 99));
  --petrol: light-dark(rgb(21 39 43), rgb(16 33 38));
  --feature-ink: rgb(244 247 238);
  --feature-muted: rgb(209 219 213);
  --feature-accent: rgb(245 132 99);
  --positive: light-dark(rgb(40 89 65), rgb(165 222 184));
  --positive-bg: light-dark(rgb(233 242 233), rgb(34 64 51));
  --notice: light-dark(rgb(119 69 21), rgb(239 180 126));
  --notice-bg: light-dark(rgb(247 234 222), rgb(63 44 28));
  --danger: light-dark(rgb(140 56 53), rgb(250 174 166));
  --danger-bg: light-dark(rgb(250 236 234), rgb(76 38 37));
  --info: light-dark(rgb(56 87 96), rgb(185 211 219));
  --info-bg: light-dark(rgb(233 240 242), rgb(38 66 73));
  --radius: 6px;
  --pill-radius: 999px;
  --header-height: 4.5rem;
  --gutter: clamp(1rem, 4.2vw, 3.5rem);
  --padding: clamp(1rem, 2.4vw, 1.75rem);
  scroll-padding-top: var(--header-height);
  background: var(--paper);
  font: 16px/1.55 "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.18; }
h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; }
h2 { font-size: 1.3rem; font-weight: 620; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 620; }
p, dl, dd { margin: 0; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  border-radius: .3rem;
  background: var(--paper);
  padding: .5rem .75rem;
}

.workspace {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
}

.office-header {
  position: sticky;
  top: 0;
  z-index: 3;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: var(--header-height);
  padding: .5rem clamp(1rem, 2.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .7rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { display: block; width: 7.25rem; height: auto; mix-blend-mode: multiply; }
.brand span { padding-inline-start: .7rem; border-inline-start: 1px solid var(--line); color: var(--muted); font-size: .89rem; font-weight: 550; }
:root[data-theme="dark"] .brand img { filter: invert(1) brightness(1.3); mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand img { filter: invert(1) brightness(1.3); mix-blend-mode: screen; }
}

.header-tools { display: flex; align-items: center; gap: .6rem; }
.header-menu { position: relative; }
.header-menu > .header-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .65rem;
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  font-size: .82rem;
  font-weight: 600;
  list-style: none;
}
.header-control::-webkit-details-marker { display: none; }
.header-menu[open] > .header-control, .header-control:hover { border-color: var(--field); background: var(--ground); }
.language-control::after {
  width: .35rem;
  height: .35rem;
  margin-top: -.2rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  content: "";
  transform: rotate(45deg);
}

.theme-icon, .menu-icon { position: relative; display: inline-block; flex: none; width: 1.125rem; height: 1.125rem; }
.theme-icon::before, .theme-auto::after { position: absolute; content: ""; }
.theme-auto::before { inset: 2px 1px 5px; border: 1.5px solid currentColor; border-radius: 2px; }
.theme-auto::after { inset: auto 5px 2px; border-top: 1.5px solid currentColor; }
.theme-light {
  background:
    linear-gradient(currentColor, currentColor) top center / 1px 3px,
    linear-gradient(currentColor, currentColor) bottom center / 1px 3px,
    linear-gradient(currentColor, currentColor) center left / 3px 1px,
    linear-gradient(currentColor, currentColor) center right / 3px 1px;
  background-repeat: no-repeat;
}
.theme-light::before { inset: 5px; border: 1.5px solid currentColor; border-radius: 50%; }
.theme-dark::before {
  inset: 1px;
  border-radius: 50%;
  background: currentColor;
  mask: radial-gradient(circle at 73% 25%, transparent 6px, black 6.5px);
}
.menu-icon {
  height: 11px;
  border-block: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.header-dropdown {
  position: absolute;
  inset-block-start: calc(100% + .55rem);
  inset-inline-end: 0;
  min-width: 10rem;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 4px 20px rgb(0 0 0 / 13%);
}
.choice-list button {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  text-align: start;
  cursor: pointer;
}
.choice-list button:hover, .choice-list button[aria-current] { background: var(--ground); }
.choice-list button[aria-current] { font-weight: 620; }
.choice-list button[aria-current]::after {
  width: .55rem;
  height: .32rem;
  margin-inline-start: auto;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg);
}
.mobile-nav { display: none; }

.sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100dvh - var(--header-height));
  padding: 1.5rem .9rem;
  overflow-y: auto;
  border-inline-end: 1px solid var(--line);
  background: var(--ground);
}

.primary-nav { display: grid; gap: .15rem; }
.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.55rem;
  padding: .45rem .75rem .45rem 1rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .92rem;
  font-weight: 520;
  text-decoration: none;
}

.primary-nav a:hover, .primary-nav [aria-current] { background: var(--tint); color: var(--ink); }
.primary-nav [aria-current] { font-weight: 650; }
.primary-nav [aria-current]::before {
  position: absolute;
  inset-block: .65rem;
  inset-inline-start: .35rem;
  width: 2px;
  background: var(--accent);
  content: "";
}

.nav-section {
  margin: 1rem 0 .25rem;
  padding-inline: 1rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.account {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  max-width: 16rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
}

.header-account { margin-inline-start: .45rem; padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
.account-initial {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ground);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 650;
}

.account button {
  display: block;
  border: 0;
  background: transparent;
  padding: .25rem 0 0;
  color: var(--muted);
  font: inherit;
  font-size: .76rem;
  font-weight: 500;
  cursor: pointer;
}

.account button:hover { color: var(--accent); text-decoration: underline; }

.shell {
  width: min(100%, 84rem);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(1.9rem, 4.4vw, 3.8rem) var(--gutter) 4rem;
}

.page-title { margin-bottom: clamp(1.1rem, 2.8vw, 1.8rem); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.preserve { white-space: pre-wrap; }
.empty { padding: var(--padding); color: var(--muted); }
.text-link { font-size: .9rem; font-weight: 550; text-decoration-color: var(--field); }

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .5rem 1rem;
  border: 1px solid var(--field);
  border-radius: var(--pill-radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 550;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { border-color: var(--ink); background: var(--ground); color: var(--ink); }
.button-primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.button-primary:hover { border-color: var(--ink-strong); background: var(--ink-strong); color: var(--paper); }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  border: 1px solid var(--field);
  border-radius: 5px;
  background: var(--paper);
  padding: .5rem .75rem;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

input[type="file"]::file-selector-button {
  margin-inline-end: .65rem;
  padding: .3rem .7rem;
  border: 1px solid var(--field);
  border-radius: var(--pill-radius);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--ink); }

textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { margin: 0; width: 1rem; height: 1rem; flex: none; accent-color: var(--ink); }

.pill, .count {
  display: inline-block;
  width: fit-content;
  border-radius: var(--pill-radius);
  background: var(--ground);
  padding: .18rem .6rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.35;
}

.count { vertical-align: middle; margin-inline-start: .2rem; font-variant-numeric: tabular-nums; }
.section-pursue, .status-suitable, .status-ready, .status-responded,
.status-written, .status-implemented, .status-registered { color: var(--positive); background: var(--positive-bg); }
.section-verify, .status-to_complete, .deadline-soon { color: var(--notice); background: var(--notice-bg); }
.deadline-expired { color: var(--danger); background: var(--danger-bg); }
.section-questions, .section-partners, .status-contacted { color: var(--info); background: var(--info-bg); }

.overview-hero {
  display: grid;
  position: relative;
  isolation: isolate;
  min-height: 14.5rem;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--petrol);
  color: var(--feature-ink);
}

.hero-content { padding: clamp(1.4rem, 4.2vw, 2.75rem); }
.hero-content h2 { color: var(--feature-muted); font-size: 1rem; letter-spacing: 0; }
.hero-count {
  display: block;
  margin: .2rem 0 .85rem;
  font-size: clamp(3.25rem, 7vw, 5.4rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.07em;
  line-height: 1;
}

.hero-button { border-color: var(--feature-ink); background: var(--feature-ink); color: var(--petrol); }
.hero-button:hover { border-color: white; background: white; color: var(--petrol); }
.hero-button:focus-visible { outline-color: var(--feature-accent); }

.radar-dial {
  position: absolute;
  z-index: -1;
  inset-block-start: 50%;
  inset-inline-end: clamp(.5rem, 6vw, 4.5rem);
  width: clamp(14rem, 35vw, 29rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 36%, var(--feature-accent) 0 3px, transparent 4px),
    radial-gradient(circle at 35% 54%, #d1dbd5 0 2px, transparent 3px),
    radial-gradient(circle at 70% 63%, #aac1b2 0 2px, transparent 3px),
    radial-gradient(circle, #96aea2 0 1px, transparent 2px),
    repeating-radial-gradient(circle, transparent 0 calc(12% - 1px), #8ca69b38 calc(12% - 1px) 12%),
    linear-gradient(90deg, transparent calc(50% - .5px), #8ca69b35 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), #8ca69b35 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    conic-gradient(from 19deg, transparent, #54756962 48deg, #b0cdc397 49deg, transparent 49.5deg);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-block: 1.25rem;
}

.overview-panel { padding: var(--padding); }
.overview-panel > h2 { margin-bottom: 1rem; }
.overview-panel > .text-link { display: inline-block; margin-top: .8rem; }
.overview-notes { margin-top: 1rem; }
.queue, .section-counts, .lead-rows, .history, .conversation { list-style: none; margin: 0; padding: 0; }
.queue li { padding: .8rem 0; }
.queue h3 { margin-bottom: .45rem; line-height: 1.32; }
.queue h3 a, .history h3 a, .lead-row h3 a, .idea-row h2 a, .idea-row h3 a { text-decoration: none; }
.queue h3 a:hover, .history h3 a:hover, .lead-row h3 a:hover, .idea-row h2 a:hover, .idea-row h3 a:hover { text-decoration: underline; }
.queue li, .section-counts li { border-top: 1px solid var(--line); }
.queue li:last-child { border-bottom: 1px solid var(--line); }
.section-counts li { display: flex; align-items: center; gap: .5rem; }
.section-link {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: space-between;
  gap: .5rem;
  padding: .56rem 0;
  font-size: .9rem;
  text-decoration: none;
}

.section-link:hover span { text-decoration: underline; }
.section-link strong { font-variant-numeric: tabular-nums; }
.section-new {
  flex: 0 0 auto;
  min-width: 2.15rem;
  border-radius: var(--pill-radius);
  background: var(--positive-bg);
  padding: .1rem .25rem;
  color: var(--positive);
  font-size: .75rem;
  font-weight: 710;
  text-align: center;
  text-decoration: none;
}

.section-new:hover { background: var(--tint); color: var(--ink); text-decoration: underline; }

.filters { display: grid; gap: .95rem; padding: var(--padding); margin-bottom: 1.65rem; background: var(--ground); }
.filters label { display: block; min-width: 0; font-size: .86rem; font-weight: 580; }
.filters input[type="search"], .filters select, .auth-panel input { margin-top: .25rem; }
.filter-selects { display: flex; gap: .65rem; }
.filter-selects > label { flex: 1; }
.filter-selects > label:last-child { flex: 1.4; }
.filter-actions, .filter-checks { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; }
.filter-actions { justify-content: space-between; }
.filters .check { display: flex; align-items: center; gap: .4rem; min-height: 2.1rem; cursor: pointer; }

.results-title { margin-bottom: .85rem; }
.lead-rows { border-inline: 0; border-radius: 0; }
.lead-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 10rem);
  gap: 1rem;
  padding: var(--padding) 0;
}

.lead-row > :only-child { grid-column: 1 / -1; }
.lead-row + .lead-row, .history li + li { border-top: 1px solid var(--line); }
.lead-row h3, .idea-row h2, .idea-row h3 { margin-block: .4rem; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.023em; }
.row-summary { max-width: 74ch; color: var(--muted); font-size: .96rem; }
.record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .6rem;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

.row-details { display: grid; align-content: start; justify-items: end; gap: .45rem; text-align: right; }
.deadline { display: grid; justify-items: start; gap: .3rem; min-width: 0; }
.deadline-compact { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.row-details .deadline { justify-content: flex-end; }
.deadline-date { color: var(--muted); font-size: .8rem; }
.note-link { font-size: .8rem; font-weight: 650; }

.record-heading { margin-bottom: 1.7rem; }
.record-heading h1 { max-width: 31ch; margin: .65rem 0 .8rem; font-size: clamp(2rem, 3.7vw, 3.2rem); }
.record-links { display: none; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; margin-top: .65rem; }
.record-links.has-listing { display: flex; }
.record-jump { display: none; }
.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14.5rem, 29%);
  grid-template-rows: auto 1fr;
  grid-template-areas: "reading actions" "followup actions";
  align-items: start;
  gap: .85rem clamp(1rem, 3vw, 2.3rem);
}

.record-reading { grid-area: reading; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-block: var(--padding); }
.record-actions { grid-area: actions; }
.record-followup { grid-area: followup; }
.record-actions, .record-followup { display: grid; gap: .8rem; min-width: 0; }

.record-reading p, .record-reading .text-list { max-width: 69ch; }
.essence { font-size: clamp(1.08rem, 1.7vw, 1.22rem); line-height: 1.55; }
.reading-section h2 { margin-bottom: .45rem; }
.conditions { margin-top: .6rem; }
.conditions summary { font-size: .88rem; }
.essence + .reading-section, .reading-section + .reading-section { margin-top: 1rem; }
.essence + .reading-section, .reading-section + .reading-section:not(.next-step) { border-top: 1px solid var(--line); padding-top: 1rem; }
.text-list { margin: .55rem 0 0; padding-inline-start: 1.15rem; }
.text-list li + li { margin-top: .22rem; }
.next-step { border-inline-start: 2px solid var(--accent); background: var(--ground); padding: 1rem; }
.next-step h2 { font-size: 1rem; }

.record-facts, .decision { padding: 1.1rem; background: var(--ground); }
.record-facts div + div { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.record-facts dt, .data-fields dt { color: var(--muted); font-size: .8rem; font-weight: 600; }
.record-facts dd, .data-fields dd { margin-top: .15rem; font-size: .93rem; }
.decision > .pill { margin-block: .65rem; }
.decision-form .buttons { margin-top: .55rem; }
.decision .buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.decision .buttons > :only-child { grid-column: 1 / -1; }
.decision-note summary, .decision-history summary { font-size: .82rem; }
.decision-note input { margin-top: .4rem; }
.decision-history { margin-top: .85rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.decision-history .history, .decision-history > p { margin-top: .35rem; font-size: .85rem; }

details > summary { width: fit-content; color: var(--ink); font-weight: 600; cursor: pointer; }
details > summary::marker { color: var(--accent); }
details > summary:hover { color: var(--accent); }
.disclosure > summary { width: auto; padding: .75rem var(--padding); }
.disclosure > summary .pill { margin-inline-start: .35rem; vertical-align: middle; }
.disclosure-content { border-top: 1px solid var(--line); padding: .9rem var(--padding) var(--padding); }
.disclosure-content h3 { margin-bottom: .3rem; }
.disclosure-content > :is(p, ul, dl, details) + h3 { margin-top: .95rem; }
.disclosure-content > details + details { margin-top: .4rem; }
.draft-text { margin: .35rem 0 .65rem; border-radius: .45rem; background: var(--ground); padding: .75rem; }

.decision, .notes { scroll-margin-top: .85rem; }
.notes { padding: var(--padding); }
.notes h2 { margin-bottom: .7rem; }
.history li { padding-block: .6rem; }
.history p, .conversation p { margin-top: .2rem; }
.conversation { display: grid; gap: .5rem; }
.conversation li {
  display: flex;
  gap: .55rem;
  border-radius: .5rem;
  background: var(--ground);
  padding: .6rem .7rem;
  font-size: .9rem;
}

.entry-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; color: var(--muted); font-size: .8rem; }
.entry-meta strong { color: var(--ink); }
.entry-meta time { font-variant-numeric: tabular-nums; }
.note-form { display: grid; gap: .55rem; margin-top: .75rem; }
.note-form .buttons { justify-content: flex-end; }

.data-fields { display: grid; gap: .65rem; }
.data-fields > div { border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.data-fields + h3 { margin-top: .75rem; }
.sources { color: var(--muted); font-size: .84rem; }
.group-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.3rem 0 1.25rem; }
.group-nav .button { min-height: 2.35rem; border-color: var(--line); }
.group-nav .button:hover { border-color: var(--field); }
.idea-group { scroll-margin-top: 1rem; }
.idea-group + .idea-group { margin-top: 1.45rem; }
.idea-group > h2 { margin-bottom: .65rem; }
.idea-rows { border-bottom: 1px solid var(--line); }
.idea-row { border-width: 1px 0 0; border-radius: 0; padding: var(--padding) 0; scroll-margin-top: 1rem; }
.idea-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.1rem; margin-top: .6rem; }
.idea-actions > details { font-size: .83rem; }
.idea-actions > details[open] { flex: 1 1 100%; }
.idea-actions > details[open] > summary, .idea-detail[open] > summary { margin-bottom: .55rem; }
.reading-section + .idea-detail { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }

.statistics-meta { margin-top: -.6rem; font-size: .86rem; }
.statistics-note { max-width: 64ch; margin-top: .5rem; color: var(--muted); }
.statistics-section { margin-top: 1.25rem; }
.statistics-section h2 { margin-bottom: .65rem; }
.table-panel { overflow: hidden; }
.statistics { width: 100%; border-collapse: collapse; font-size: .91rem; font-variant-numeric: tabular-nums; }
.statistics th, .statistics td { padding: .52rem .75rem; text-align: right; }
.statistics thead { background: var(--ground); white-space: nowrap; }
.statistics thead th:first-child, .statistics tbody th { text-align: left; }
.statistics tbody th { font-weight: 630; }
.statistics tbody tr + tr { border-top: 1px solid var(--line); }
.statistics tbody tr:hover { background: var(--ground); }

.guest .office-header { justify-content: center; }
.auth-panel { width: min(100%, 27rem); margin: 1.6rem auto; padding: var(--padding); background: var(--ground); }
.auth-panel h1 { margin-bottom: 1rem; font-size: 2.3rem; }
.auth-panel form { display: grid; gap: .75rem; margin-top: .85rem; }
.auth-panel label { font-size: .88rem; font-weight: 680; }
.auth-panel .muted { font-size: .84rem; }
.auth-panel .button { justify-self: start; }

@media (max-width: 58rem) {
  :root { --header-height: 4rem; }
  .workspace { display: block; }
  .sidebar, .header-account { display: none; }
  .mobile-nav { display: block; }
  .mobile-links {
    width: min(21rem, calc(100vw - 2rem));
    max-height: calc(100dvh - var(--header-height) - .75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .7rem;
  }
  .mobile-links .account { max-width: none; margin-top: .65rem; padding: .8rem .65rem .2rem; border-top: 1px solid var(--line); }
  .mobile-links .primary-nav a { min-height: 2.75rem; }
}

@media (max-width: 42rem) {
  .overview-grid, .record-layout { grid-template-columns: minmax(0, 1fr); }
  .record-layout { grid-template-areas: "reading" "actions" "followup"; grid-template-rows: auto; }
  .record-links { display: flex; }
  .record-jump { display: inline-block; }
  .filter-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-filters .filter-selects { grid-template-columns: 5.25rem minmax(0, 1fr) 7.5rem; }
  .document-filters .filter-selects > label:is(:first-child, :last-child) { grid-column: span 2; }
  .document-filters .filter-selects select { padding-inline: .5rem; font-size: .94rem; }
  .document-filters select[name="currency"] { padding-inline: .25rem; }
  .lead-row { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .row-details { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; text-align: left; }
  .row-details .deadline { justify-content: flex-start; }
  .statistics { font-size: clamp(.65rem, 2.75vw, .84rem); }
  .statistics th, .statistics td { padding: .48rem clamp(.22rem, 1vw, .45rem); }
  .statistics th:first-child { padding-inline-start: .55rem; }
  .statistics th:last-child, .statistics td:last-child { padding-inline-end: .55rem; }
}

@media (max-width: 31rem) {
  .brand { gap: .45rem; }
  .brand img { width: clamp(4.6rem, 23vw, 6.3rem); }
  .brand span { padding-inline-start: .45rem; font-size: .8rem; }
  .header-tools { gap: .3rem; }
  .overview-hero { min-height: 11.5rem; }
  .hero-content h2 { max-width: 11rem; }
  .radar-dial { inset-inline-end: -5.2rem; width: 21rem; opacity: .7; }
  .filter-actions { align-items: flex-start; }
  .filter-checks { gap: 0 .85rem; }
  .filters .check { min-height: 1.8rem; }
}

@media (max-width: 24rem) {
  .document-filters .filter-selects { grid-template-columns: minmax(0, 1fr); }
  .document-filters .filter-selects > label:is(:first-child, :last-child) { grid-column: auto; }
}

/* Paging, the state and group filters of the idea lists, and opened sections framed so their end is visible. */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin: 1.25rem 0; color: var(--muted); font-size: .9rem; }
.group-nav .button.is-current { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.group-nav .button.is-current .count { background: transparent; color: inherit; }
.notes-list > summary h2 { display: inline; }
.older-notes { display: inline-block; margin: .6rem 0; }
.record-reading details[open]:not(.disclosure), .decision details[open] {
  margin-top: .5rem; border-inline-start: 3px solid var(--line); padding: .1rem 0 .4rem .85rem;
}

/* The rejection with its reason and the publication with its address open as small forms under the buttons. */
.decision-extra { margin-top: .5rem; }
.decision-extra > summary.button { width: 100%; justify-content: center; }
.decision-extra form { display: grid; gap: .55rem; margin-top: .6rem; }
.decision-extra fieldset { display: grid; gap: .3rem; margin: 0; border: 0; padding: 0; }
.decision-extra legend { margin-bottom: .3rem; font-weight: 700; }
.next-step-line { margin: .3rem 0 .6rem; font-weight: 650; }
.decision-extra .check { display: flex; align-items: center; gap: .5rem; min-height: 1.9rem; cursor: pointer; }
.page-purpose { max-width: 72ch; margin: -.6rem 0 1.4rem; color: var(--muted); }
.filter-scope { margin: 0 0 .8rem; color: var(--muted); }
.settings-form { display: grid; gap: .9rem; max-width: 52rem; padding: var(--padding); }
.settings-form label { display: grid; gap: .3rem; font-weight: 650; }
.settings-form .rate-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.notice { padding: .6rem .9rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.portal-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.portal-section { background: var(--ground); padding: clamp(1.15rem, 3.1vw, 2.15rem); }
.portal-section h2 { font-size: clamp(1.55rem, 2.65vw, 2.15rem); }
.portal-section h2 a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; text-decoration: none; }
.portal-section h2 a span { color: var(--accent); font-size: 1.25rem; }
.portal-section > p { margin-block: .65rem 1rem; color: var(--muted); }
.portal-counts { margin: 0; padding: 0; list-style: none; }
.portal-counts li { border-top: 1px solid var(--line); }
.portal-counts a { display: flex; align-items: baseline; gap: .6rem; padding-block: .6rem; color: var(--muted); text-decoration: none; }
.portal-counts a:hover { color: var(--ink); text-decoration: underline; }
.portal-counts a.error { color: var(--danger); }
.portal-counts strong { min-width: 2.25rem; color: var(--ink); font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.portal-counts .error strong { color: inherit; }
@media (max-width: 42rem) {
  .portal-sections { grid-template-columns: minmax(0, 1fr); }
}
.document-notes { margin-bottom: 1.2rem; }

/* The cost documents (documents.html, document.html, upload.html). */
.document-review, .document-duplicate, .upload-waiting, .upload-processing { color: var(--notice); background: var(--notice-bg); }
.upload-done, .upload-duplicate { color: var(--positive); background: var(--positive-bg); }
.upload-failed { color: var(--danger); background: var(--danger-bg); }
.document-amount { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.document-amount-large { margin: .4rem 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; }
.document-totals { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: -.2rem 0 .9rem; }
.document-totals dt { color: var(--muted); font-size: .8rem; font-weight: 680; }
.document-totals dd { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .1rem 0 0; font-weight: 750;
  font-variant-numeric: tabular-nums; }
.page-notice { margin: -.6rem 0 1rem; }
.notice + .upload-form { margin-top: 1rem; }
.upload-form { display: grid; gap: .9rem; max-width: 52rem; margin-bottom: 1.35rem; padding: var(--padding); }
.upload-form label { display: grid; gap: .3rem; font-weight: 650; }
.upload-form .error ul { margin-bottom: 0; }
.upload-row .row-details form { margin: 0; }
.row-summary.error { color: var(--danger); }
