:root {
  --shell-header-height: 3.45rem;
  --drawer-width: 15rem;
  --drawer-collapsed-width: 4.8rem;
  --bg: #f3f6f8;
  --bg-accent: #edf2f6;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-strong: #ffffff;
  --ink: #17212b;
  --muted: #60707f;
  --line: #d7dee6;
  --line-strong: #bfccd8;
  --accent: #3b6f8f;
  --accent-soft: rgba(59, 111, 143, 0.1);
  --accent-strong: #2f5972;
  --ok: #2c6a4b;
  --ok-soft: rgba(44, 106, 75, 0.12);
  --warn: #9a6620;
  --warn-soft: rgba(154, 102, 32, 0.14);
  --danger: #8c3c35;
  --danger-soft: rgba(140, 60, 53, 0.12);
  --shadow: 0 18px 48px rgba(16, 33, 48, 0.08);
  --shadow-soft: 0 10px 28px rgba(16, 33, 48, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Aptos", "Helvetica Neue", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(59, 111, 143, 0.06), transparent 24%),
    linear-gradient(180deg, #f8fbfc 0%, var(--bg) 48%, #f6f8fa 100%);
}

body.drawer-collapsed {
  --drawer-width: var(--drawer-collapsed-width);
}

body.drawer-mobile-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre,
input,
select,
button,
.detail-action-button,
.secondary-action {
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--shell-header-height);
  padding: 0.35rem 0.85rem;
  background:
    linear-gradient(180deg, rgba(252, 253, 254, 0.98), rgba(248, 250, 252, 0.96)),
    rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 33, 43, 0.08);
  box-shadow: 0 10px 24px rgba(16, 33, 48, 0.05);
}

.shell-frame {
  min-height: calc(100vh - var(--shell-header-height));
  display: grid;
  grid-template-columns: var(--drawer-width) minmax(0, 1fr);
}

.shell-drawer {
  position: sticky;
  top: var(--shell-header-height);
  z-index: 25;
  height: calc(100vh - var(--shell-header-height));
  padding: 0.7rem 0.85rem 0.7rem 0.7rem;
  background:
    linear-gradient(180deg, rgba(250, 252, 253, 0.98), rgba(244, 248, 251, 0.98)),
    rgba(247, 249, 251, 0.98);
  border-right: 1px solid rgba(23, 33, 43, 0.08);
  backdrop-filter: blur(16px);
  overflow: visible;
}

.shell-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
}

.shell-drawer-brand {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.shell-main {
  min-width: 0;
}

.shell-header-leading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.shell-header-brand {
  flex: 0 1 auto;
  width: auto;
  max-width: min(22rem, 42vw);
  padding: 0.15rem 0.2rem;
}

.shell-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.drawer-toggle:hover,
.drawer-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(59, 111, 143, 0.28);
  outline: none;
}

.drawer-toggle-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.drawer-toggle-mobile {
  display: none;
  position: relative;
  z-index: 40;
}

.drawer-toggle-edge {
  position: absolute;
  top: 50%;
  right: -1.15rem;
  transform: translateY(-50%);
  z-index: 31;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(16, 33, 48, 0.12);
}

.drawer-toggle-edge:hover,
.drawer-toggle-edge:focus-visible {
  transform: translateY(-50%);
}

.settings-menu {
  position: relative;
}

.header-settings-button {
  min-height: 2.3rem;
  padding-inline: 0.8rem;
  border: 1px solid rgba(23, 33, 43, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
}

.header-settings-button:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.9);
}

.settings-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 230px;
  padding: 0.35rem;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 34px rgba(16, 33, 48, 0.12);
  backdrop-filter: blur(12px);
}

.settings-menu-item {
  width: 100%;
  display: block;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem;
}

.settings-menu-item:hover,
.settings-menu-item:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.brand-home:hover {
  background: rgba(255, 255, 255, 0.72);
}

.brand-home:focus-visible {
  outline: 2px solid rgba(59, 111, 143, 0.28);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.84);
}

.brand-logo {
  display: block;
  width: auto;
  height: 1.65rem;
  max-width: min(11rem, 28vw);
}

.brand-divider {
  width: 1px;
  height: 1.6rem;
  background: linear-gradient(180deg, rgba(59, 111, 143, 0.04), rgba(59, 111, 143, 0.32), rgba(59, 111, 143, 0.04));
}

.brand-wordmark {
  display: block;
  width: auto;
  height: 2rem;
  max-width: min(12rem, 30vw);
  filter: drop-shadow(0 4px 10px rgba(16, 33, 48, 0.08));
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drawer-nav-group {
  display: grid;
  gap: 0.3rem;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.8rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.drawer-nav-item:hover,
.drawer-nav-item:focus-visible {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(23, 33, 43, 0.08);
  color: var(--ink);
  outline: none;
}

.drawer-nav-item.active {
  background: linear-gradient(180deg, rgba(59, 111, 143, 0.14), rgba(59, 111, 143, 0.08));
  border-color: rgba(59, 111, 143, 0.18);
  color: var(--accent-strong);
}

.drawer-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(59, 111, 143, 0.12);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  flex-shrink: 0;
}

.drawer-nav-label {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.shell-overlay {
  display: none;
}

body.drawer-collapsed .shell-drawer-brand {
  justify-content: center;
}

body.drawer-collapsed .shell-drawer .brand-divider,
body.drawer-collapsed .shell-drawer .brand-wordmark,
body.drawer-collapsed .shell-drawer .drawer-nav-label {
  display: none;
}

body.drawer-collapsed .drawer-nav-item {
  justify-content: center;
  padding-inline: 0.4rem;
}

.drawer-nav-sub-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2rem;
  padding: 0.38rem 0.72rem 0.38rem 1.05rem;
  margin-left: 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.drawer-nav-sub-item:hover,
.drawer-nav-sub-item:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(23, 33, 43, 0.06);
  color: var(--ink);
  outline: none;
}

.drawer-nav-sub-item.active {
  background: linear-gradient(180deg, rgba(59, 111, 143, 0.10), rgba(59, 111, 143, 0.06));
  border-color: rgba(59, 111, 143, 0.14);
  color: var(--accent-strong);
}

.drawer-nav-sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: inherit;
}

.drawer-nav-sub-label {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

body.drawer-collapsed .drawer-nav-sub-item {
  justify-content: center;
  margin-left: 0;
  padding-inline: 0.4rem;
}

body.drawer-collapsed .drawer-nav-sub-label {
  display: none;
}

.gocolosseum-shell {
  display: grid;
  gap: 1rem;
}

.gocolosseum-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(59, 111, 143, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(59, 111, 143, 0.14), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.gocolosseum-hero h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.7rem;
}

.gocolosseum-hero-copy {
  max-width: 60rem;
  line-height: 1.6;
}

.gocolosseum-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 18rem;
}

.gocolosseum-stat {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.gocolosseum-stat strong {
  font-size: 1.05rem;
}

.gocolosseum-filter-bar {
  margin: 0;
}

.gocolosseum-list {
  display: grid;
  gap: 0.9rem;
}

.gocolosseum-card {
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.gocolosseum-card-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.gocolosseum-card-summary::-webkit-details-marker {
  display: none;
}

.gocolosseum-card-heading h3 {
  margin: 0.35rem 0 0.3rem;
  font-size: 1.1rem;
}

.gocolosseum-card-window {
  display: grid;
  gap: 0.25rem;
  text-align: right;
  min-width: 14rem;
}

.gocolosseum-card-body {
  display: grid;
  gap: 1rem;
  padding: 0 1.1rem 1.1rem;
}

.gocolosseum-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.25rem;
}

.gocolosseum-chip-row,
.gocolosseum-link-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.gocolosseum-link-row a {
  color: var(--accent-strong);
  font-weight: 600;
}

.gocolosseum-section {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(243, 246, 248, 0.92), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(23, 33, 43, 0.06);
}

.gocolosseum-section h4 {
  margin: 0;
  font-size: 0.98rem;
}

.gocolosseum-copy {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .gocolosseum-hero,
  .gocolosseum-card-summary {
    flex-direction: column;
  }

  .gocolosseum-hero-stats,
  .gocolosseum-meta-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .gocolosseum-card-window {
    min-width: 0;
    text-align: left;
  }
}

body.drawer-collapsed .drawer-toggle-desktop .drawer-toggle-icon {
  transform: rotate(180deg);
}

body.drawer-collapsed .drawer-toggle-desktop {
  right: -1.15rem;
}

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem 0.9rem 1.4rem;
}

.fedsim-shell {
  min-height: 16rem;
}

.fedsim-blank-state {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.1rem 1.2rem;
}

.fedsim-settings-shell {
  display: flex;
  flex-direction: column;
}

.fedsim-settings-body {
  display: flex;
  flex-direction: column;
}

.fedsim-connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-idle {
  background: rgba(96, 112, 127, 0.45);
}

.status-active {
  background: #3a9e6f;
}

.status-error {
  background: #c0392b;
}

.panel-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.settings-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 120ms ease;
}

.settings-checkbox-label:hover {
  background: rgba(59, 111, 143, 0.06);
}

.settings-checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

fieldset[disabled] .settings-checkbox-label {
  opacity: 0.5;
  cursor: not-allowed;
}

.fedsim-blank-state h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
  }

  .fedsim-board-shell {
    display: grid;
    gap: 1rem;
  }

  .fedsim-hero {
    display: grid;
    gap: 0.85rem;
  }

  .fedsim-hero-copy {
    display: grid;
    gap: 0.25rem;
  }

  .fedsim-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .fedsim-metric-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
  }

  .fedsim-metric-card strong {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: var(--ink);
  }

  .fedsim-board {
    display: grid;
    gap: 0.95rem;
  }

  .fedsim-lane {
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    overflow: hidden;
  }

  .fedsim-lane-new {
    border-color: rgba(181, 138, 39, 0.18);
    background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(255, 255, 255, 0.99));
  }

  .fedsim-lane-watch {
    border-color: rgba(59, 111, 143, 0.16);
    background: linear-gradient(180deg, rgba(241, 247, 251, 0.98), rgba(255, 255, 255, 0.99));
  }

  .fedsim-lane-ignore {
    border-color: rgba(96, 112, 127, 0.14);
    background: linear-gradient(180deg, rgba(248, 249, 251, 0.98), rgba(255, 255, 255, 0.99));
  }

  .fedsim-lane-header {
    display: flex;
    align-items: start;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(23, 33, 43, 0.06);
    background: rgba(244, 248, 251, 0.9);
  }

  .fedsim-lane-caret {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.2rem;
    flex: 0 0 auto;
    border-right: 2px solid rgba(35, 52, 69, 0.72);
    border-bottom: 2px solid rgba(35, 52, 69, 0.72);
    transform: rotate(-45deg);
    transition: transform 140ms ease;
  }

  .fedsim-lane[open] .fedsim-lane-caret {
    transform: rotate(45deg);
  }

  .fedsim-lane-new .fedsim-lane-header {
    background: rgba(250, 243, 220, 0.82);
  }

  .fedsim-lane-watch .fedsim-lane-header {
    background: rgba(231, 241, 248, 0.88);
  }

  .fedsim-lane-ignore .fedsim-lane-header {
    background: rgba(241, 244, 247, 0.88);
  }

  .fedsim-lane-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
  }

  .fedsim-lane-header p {
    margin: 0.2rem 0 0;
  }

  .fedsim-lane > summary {
    list-style: none;
    cursor: pointer;
  }

  .fedsim-lane > summary::-webkit-details-marker {
    display: none;
  }

  .fedsim-lane-body {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
  }

  .fedsim-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
  }

  .fedsim-card-new {
    border-color: rgba(181, 138, 39, 0.28);
    background: linear-gradient(180deg, rgba(252, 247, 229, 0.98), rgba(255, 252, 245, 0.99));
    box-shadow: 0 10px 22px rgba(166, 122, 26, 0.08);
  }

  .fedsim-card-watch {
    border-color: rgba(59, 111, 143, 0.22);
    background: linear-gradient(180deg, rgba(236, 244, 250, 0.9), rgba(255, 255, 255, 0.99));
  }

  .fedsim-card-ignore {
    border-color: rgba(96, 112, 127, 0.16);
    background: linear-gradient(180deg, rgba(248, 249, 251, 0.9), rgba(255, 255, 255, 0.98));
  }

  .fedsim-card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
  }

  .fedsim-card-heading {
    display: grid;
    gap: 0.28rem;
  }

  .fedsim-card-heading h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--ink);
  }

  .fedsim-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.45rem;
  }

  .fedsim-card-actions form {
    margin: 0;
  }

  .secondary-action.fedsim-action-watch {
    border-color: rgba(44, 106, 75, 0.18);
    color: var(--ok);
    background: rgba(241, 248, 244, 0.95);
  }

  .secondary-action.fedsim-action-watch-primary {
    border-color: rgba(59, 111, 143, 0.32);
    background: linear-gradient(180deg, rgba(59, 111, 143, 0.96), rgba(45, 94, 124, 0.96));
    color: #f7fbff;
    box-shadow: 0 8px 18px rgba(31, 84, 120, 0.16);
  }

  .secondary-action.fedsim-action-ignore {
    border-color: rgba(140, 60, 53, 0.14);
    color: #7f4b44;
    background: rgba(250, 244, 243, 0.96);
  }

  .secondary-action.fedsim-action-ignore-secondary {
    border-style: dashed;
    background: rgba(255, 252, 250, 0.98);
    color: #8a5a4f;
  }

  .secondary-action.fedsim-action-acknowledge {
    border-color: rgba(181, 138, 39, 0.24);
    background: rgba(252, 247, 229, 0.98);
    color: #7f5b13;
  }

  .fedsim-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .fedsim-card-grid div {
    display: grid;
    gap: 0.18rem;
  }

  .fedsim-card-grid strong {
    color: var(--ink);
    font-size: 0.95rem;
  }

  .fedsim-key-dates {
    display: grid;
    gap: 0.12rem;
  }

  .fedsim-change-summary,
  .fedsim-brief {
    margin: 0;
    line-height: 1.5;
  }

  .fedsim-brief {
    color: var(--muted);
  }

  .fedsim-change-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    display: grid;
    gap: 0.35rem;
  }

  .fedsim-change-actions {
    display: flex;
    justify-content: flex-start;
  }

  .fedsim-change-actions form {
    margin: 0;
  }

.panel,
.hero,
.browser-hero {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 12px;
  box-shadow: none;
}

.panel {
  padding: 0.65rem 0.7rem;
}

.hero,
.browser-hero {
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.browser-hero h2,
.hero h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.panel-header-stack {
  align-items: start;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.lede,
.hint,
label {
  color: var(--muted);
}

.lede {
  margin: 0.45rem 0 0;
  max-width: 72ch;
  line-height: 1.5;
}

.hint {
  margin: 0;
  font-size: 0.9rem;
}

.stat-strip,
.status-grid,
.grid.two-up,
.mini-metrics {
  display: grid;
  gap: 0.8rem;
}

.stat-strip {
  margin-top: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-chip,
.metric-card,
.mini-metrics article {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 237, 242, 0.75));
}

.stat-chip span,
.metric-card span,
.mini-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-chip strong,
.metric-card strong,
.mini-metrics strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.compact-status,
.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mini-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.browser-shell {
  min-width: 0;
  overflow: visible;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.browser-header,
.summary-pills,
.secondary-tools-grid,
.sidebar-stack,
.stack,
.actions,
.action-cluster,
.job-list,
.table-like,
.data-table {
  display: grid;
  gap: 0.7rem;
}

.browser-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 0.55rem;
}

.action-panel,
.queue-section,
.rejected-section {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16, 33, 48, 0.03);
}

.action-panel {
  margin-bottom: 1rem;
  background: transparent;
  padding: 0;
  border: 0;
}

.queue-section,
.rejected-section {
  background: rgba(255, 255, 255, 0.96);
}

.queue-section summary,
.rejected-section summary,
.action-panel summary {
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.queue-section[open],
.rejected-section[open] {
  padding-bottom: 0.85rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.subhead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.queue-section[open] .table-frame,
.rejected-section[open] .rejected-table {
  margin: 0 0.85rem;
}

.rejected-section {
  background: rgba(255, 255, 255, 0.96);
}

.baseline-panel {
  background:
    linear-gradient(180deg, rgba(251, 253, 254, 0.98), rgba(245, 249, 252, 0.98)),
    radial-gradient(circle at top right, rgba(59, 111, 143, 0.05), transparent 26%);
  box-shadow: 0 8px 22px rgba(16, 33, 48, 0.04);
}

.baseline-panel summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  list-style: none;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.baseline-panel summary::-webkit-details-marker {
  display: none;
}

.baseline-panel summary::before {
  content: "▾";
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-90deg);
  transition: transform 120ms ease;
  flex: 0 0 auto;
}

.baseline-panel:not([open]) summary {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(59, 111, 143, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.baseline-panel[open] summary {
  background: rgba(255, 255, 255, 0.72);
  border-color: transparent;
}

.baseline-panel[open] summary::before {
  transform: rotate(0deg);
}

.baseline-summary-copy {
  display: grid;
  gap: 0;
}

.baseline-panel summary strong {
  color: var(--ink);
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.baseline-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0.05rem 0.45rem 0.45rem;
  align-items: start;
}

.baseline-left-column {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.baseline-split-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.baseline-card {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 252, 0.92));
}

.baseline-card-jobs {
  min-height: 100%;
}

.custom-search-launcher {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

.direct-intake-launcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

.direct-intake-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.direct-intake-field span {
  color: var(--muted);
  font-size: 0.8rem;
}

.baseline-action-button {
  min-height: 2.3rem;
  padding-inline: 0.8rem;
  border-radius: 10px;
}

.baseline-action-button-danger {
  background: linear-gradient(180deg, #a44b43, #8c3c35);
  color: #fff8f7;
  box-shadow: 0 10px 22px rgba(140, 60, 53, 0.22);
}

.baseline-card .panel-header {
  margin-bottom: 0.45rem;
}

.baseline-card .panel-header h3 {
  margin: 0;
}

.baseline-card .panel-header p {
  margin: 0;
}

.baseline-card-title {
  margin: 0;
}

.baseline-job-form {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.subhead a,
.panel-header a {
  color: var(--accent);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: normal;
}

.filter-bar,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
}

.filter-bar {
  width: 100%;
  justify-content: flex-start;
  gap: 0.4rem;
}

.search-cluster {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

.search-cluster-wide {
  width: 100%;
  justify-content: space-between;
}

.search-actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  margin-left: auto;
}

.job-form,
.filter-bar label,
.detail-actions form {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.job-form {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.job-form-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.scheduled-sync-status {
  width: 100%;
  margin: 0.35rem 0 0;
}

.compact-job-form {
  padding: 0.55rem 0.65rem;
}

.job-form label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 16rem;
}

.compact-filter-bar {
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(23, 33, 43, 0.08);
}

.filter-search {
  flex: 1 1 760px;
  max-width: 900px;
}

.opportunity-search-panel {
  margin-top: 0.05rem;
}

.input-wide-search {
  width: min(72vw, 760px);
}

.input-wide-url {
  width: 100%;
  min-width: 0;
  flex: 1 1 18rem;
}

.input-days-compact {
  width: 4.6rem;
  min-width: 4.6rem;
}

.filter-bar .secondary-action {
  flex: 0 0 auto;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.15rem;
  color: var(--ink);
}

.filter-toggle input {
  min-height: auto;
  margin: 0;
}

label {
  font-size: 0.85rem;
}

input,
select,
button,
.secondary-action,
.detail-action-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.46rem 0.65rem;
  background: var(--surface-strong);
  color: var(--ink);
}

input,
select {
  min-height: 34px;
}

button,
.detail-action-button {
  border: none;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #f7fbff;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  box-shadow: 0 10px 22px rgba(59, 111, 143, 0.2);
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.77rem;
  text-transform: capitalize;
  border: 1px solid transparent;
  background: rgba(23, 33, 43, 0.08);
}

.badge.ok,
.badge.kept {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: rgba(44, 106, 75, 0.12);
}

.badge.warn,
.badge.pending {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: rgba(154, 102, 32, 0.12);
}

.badge.rejected {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(140, 60, 53, 0.12);
}

.badge.new-badge {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(59, 111, 143, 0.18);
}

button.badge {
  cursor: pointer;
}

button.badge:hover {
  transform: translateY(-1px);
  filter: none;
}

.badge.label-badge {
  color: var(--muted);
  background: rgba(96, 112, 127, 0.1);
  border-color: rgba(96, 112, 127, 0.16);
}

.badge.label-monitor {
  color: #8a5a15;
  background: rgba(154, 102, 32, 0.16);
  border-color: rgba(154, 102, 32, 0.22);
}

.badge.label-flag {
  color: #8c3c35;
  background: rgba(140, 60, 53, 0.14);
  border-color: rgba(140, 60, 53, 0.2);
}

.job-card,
.row-link,
.table-row,
.table-head,
.compact-row {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

.job-card,
.row-link,
.table-row {
  padding: 0.5rem 0.65rem;
  border-radius: 0;
  border: 1px solid rgba(23, 33, 43, 0.06);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.row-link:hover,
.table-row:hover {
  transform: none;
  border-color: rgba(14, 94, 140, 0.18);
  box-shadow: none;
}

.analyst-table {
  display: block;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.table-frame {
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
}

.analyst-table .table-head,
.analyst-table .table-row {
  grid-template-columns: 118px minmax(340px, 3.2fr) minmax(160px, 1.2fr) 110px minmax(240px, 1.8fr);
  min-width: 1040px;
}

.custom-search-results-table .table-head,
.custom-search-results-table .table-row {
  grid-template-columns: 108px minmax(280px, 1.45fr) minmax(160px, 0.95fr) minmax(250px, 1.25fr) minmax(360px, 1.9fr);
  min-width: 1240px;
}

.active-table .table-head,
.active-table .table-row {
  grid-template-columns: 110px minmax(280px, 1.9fr) minmax(170px, 1.1fr) minmax(220px, 1.5fr) 90px minmax(320px, 2.2fr);
  min-width: 1290px;
}

.rejected-table .table-head,
.rejected-table .table-row {
  grid-template-columns: 110px minmax(280px, 1.9fr) minmax(170px, 1.1fr) minmax(220px, 1.5fr) 90px minmax(320px, 2.2fr);
  min-width: 1280px;
}

.table-head {
  position: static;
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #f3f6f8;
  border-bottom: 1px solid rgba(23, 33, 43, 0.08);
}

.table-head > * {
  white-space: nowrap;
}

.sortable-head {
  align-items: center;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease;
}

.sort-link.active {
  color: var(--ink);
  font-weight: 700;
  background: rgba(14, 94, 140, 0.12);
}

.sort-link.active::after {
  content: "↓";
  margin-left: 0.35rem;
  color: var(--accent);
}

.analyst-row {
  margin-top: -1px;
  border-radius: 0;
  box-shadow: none;
  border-left: none;
  border-right: none;
}

.analyst-row:first-of-type {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.analyst-row:last-of-type {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.rejected-row {
  background: rgba(244, 246, 248, 0.96);
}

.due-cell strong,
.opportunity-cell strong,
.notice-cell strong,
.agency-cell strong,
.analyst-cell strong {
  display: block;
  line-height: 1.35;
}

.table-row small,
.compact-row span,
.job-card p,
.due-cell small,
.opportunity-cell small,
.notice-cell small,
.agency-cell small,
.analyst-cell small {
  color: var(--muted);
}

.analysis-cell small,
.rejection-cell small {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agency-cell strong,
.compact-row strong,
.score-cell strong {
  font-size: 0.88rem;
}

.notice-cell,
.agency-cell,
.score-cell {
  min-width: 0;
}

.description-cell {
  min-width: 0;
}

.opportunity-cell {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.rejection-cell {
  min-width: 0;
}

.notice-cell strong {
  white-space: nowrap;
}

.row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.08rem 0 0;
}

.agency-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.custom-search-results-table .agency-cell strong {
  -webkit-line-clamp: 2;
}

.search-result-description {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.38;
}

.rejection-cell small {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.compact-row {
  gap: 0.3rem;
}

.compact-row strong {
  font-size: 0.93rem;
}

.job-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.job-card p {
  margin: 0;
  font-size: 0.88rem;
}

.document-row {
  gap: 0.45rem;
}

.document-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.document-row-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.document-row-title-group strong {
  min-width: 0;
  line-height: 1.35;
}

.document-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.document-evidence {
  margin: 0;
}

.dimension-score-list {
  gap: 0.75rem;
}

.dimension-score-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 250, 252, 0.86);
}

.dimension-score-header {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.dimension-score-header strong {
  font-size: 1rem;
}

.dimension-score-header span {
  color: var(--muted);
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.dimension-score-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.document-drawer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.document-drawer-summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}

.document-drawer-summary::-webkit-details-marker {
  display: none;
}

.document-drawer-body {
  display: grid;
  gap: 0.7rem;
  padding: 0 1rem 1rem;
}

.document-open-button {
  width: fit-content;
  justify-self: start;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  box-shadow: none;
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.document-open-button:hover {
  transform: translateY(-1px);
  filter: none;
}

.document-open-button-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.document-drawer-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  color: var(--muted);
  flex: 0 0 auto;
}

.document-drawer-caret::before {
  content: "▾";
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 120ms ease;
}

.document-drawer[open] .document-drawer-caret::before {
  transform: rotate(180deg);
}

.document-summary-block {
  display: grid;
  gap: 0.35rem;
}

.document-summary-block strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.document-drawer-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.human-notes-block {
  margin: 0;
}

.human-notes-form {
  display: grid;
  gap: 0.65rem;
}

.analyst-label-form {
  display: grid;
  gap: 0.75rem;
}

.label-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.label-chip-option {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
}

.label-chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(247, 250, 252, 0.96);
  color: var(--muted);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
  cursor: pointer;
}

.label-chip-option input:checked + .label-chip {
  color: var(--ink);
  border-color: rgba(96, 112, 127, 0.28);
}

.label-option-monitor input:checked + .label-chip {
  color: #8a5a15;
  background: rgba(154, 102, 32, 0.16);
  border-color: rgba(154, 102, 32, 0.28);
}

.label-option-flag input:checked + .label-chip {
  color: #8c3c35;
  background: rgba(140, 60, 53, 0.14);
  border-color: rgba(140, 60, 53, 0.26);
}

.label-chip-option input:focus-visible + .label-chip {
  outline: 2px solid rgba(59, 111, 143, 0.28);
  outline-offset: 2px;
}

.label-chip:hover {
  transform: translateY(-1px);
}

.human-notes-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.human-notes-input {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  font-family: "Segoe UI", "Aptos", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

.human-notes-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.job-card pre,
.summary-block {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f9fb;
  border-radius: 14px;
  padding: 0.9rem;
  border: 1px solid var(--line);
}

.due-cell strong,
.opportunity-cell strong,
.notice-cell strong,
.agency-cell strong,
.analyst-cell strong {
  font-size: 0.9rem;
}

.due-cell small,
.opportunity-cell small,
.notice-cell small,
.agency-cell small,
.analyst-cell small {
  font-size: 0.78rem;
}

.score-cell {
  display: grid;
  align-content: center;
  justify-items: start;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  padding: 0.36rem 0.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.score-high {
  color: #1f5b41;
  background: rgba(44, 106, 75, 0.16);
  border-color: rgba(44, 106, 75, 0.18);
}

.score-mid {
  color: #8a5a15;
  background: rgba(154, 102, 32, 0.16);
  border-color: rgba(154, 102, 32, 0.18);
}

.score-low {
  color: #8c3c35;
  background: rgba(140, 60, 53, 0.14);
  border-color: rgba(140, 60, 53, 0.16);
}

.score-none {
  color: var(--muted);
  background: rgba(96, 112, 127, 0.1);
  border-color: rgba(96, 112, 127, 0.12);
}

.detail-hero {
  padding: 1rem 1.05rem;
}

.detail-backbar {
  margin-bottom: 0.75rem;
}

.detail-backlink {
  width: fit-content;
}

.detail-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.detail-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.detail-hero-copy .eyebrow,
.detail-hero-copy h2,
.detail-hero-copy .detail-agency,
.detail-hero-copy .detail-badges {
  margin: 0;
}

.detail-hero-side {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.detail-subline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.detail-badges {
  margin-top: 0.08rem;
}

.detail-agency {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: none;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.72rem;
}

.detail-facts article {
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 250, 252, 0.86);
}

.detail-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-facts strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-facts small {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.detail-actions-inline {
  margin-top: 0;
  justify-content: flex-end;
  align-items: flex-start;
}

.detail-actions-inline .job-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.detail-actions-inline .job-form input {
  display: none;
}

.detail-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.detail-action-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.danger-action {
  background: linear-gradient(180deg, #b64d44, #8c3c35);
  box-shadow: 0 10px 22px rgba(140, 60, 53, 0.22);
}

.danger-action:hover {
  filter: brightness(1.06);
}

.detail-action-menu {
  position: relative;
}

.detail-action-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.46rem 0.78rem;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  box-shadow: none;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-action-menu-toggle::-webkit-details-marker {
  display: none;
}

.detail-action-menu-toggle:hover {
  transform: translateY(-1px);
  filter: none;
  background: rgba(255, 255, 255, 1);
  border-color: rgba(23, 33, 43, 0.18);
}

.detail-action-menu[open] .detail-action-menu-toggle {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(23, 33, 43, 0.18);
}

.detail-action-menu-caret {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1;
}

.detail-action-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 6;
  display: grid;
  min-width: 12rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.detail-action-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.1rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.detail-action-menu-item:hover,
.detail-action-menu-item:focus-visible {
  transform: none;
  filter: none;
  background: rgba(23, 33, 43, 0.06);
}

.detail-action-menu-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.detail-action-menu-form .detail-action-menu-item {
  width: 100%;
}

.detail-action-menu-item.danger-text {
  color: var(--danger);
}

.detail-top-grid {
  margin-top: 1rem;
}

.detail-top-grid .panel-header {
  margin-bottom: 0.35rem;
}

.detail-top-grid .stack {
  gap: 0.35rem;
}

.detail-top-grid .stack p {
  margin: 0;
}

.compact-meta dt,
.compact-meta dd {
  margin: 0;
}

.callout-block {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(14, 94, 140, 0.12);
  background: rgba(14, 94, 140, 0.06);
}

.callout-block strong {
  display: block;
  margin-bottom: 0.35rem;
}

.callout-block p {
  margin: 0;
}

.detail-summary {
  margin-top: 1rem;
  padding: 0;
}

.detail-summary summary {
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.detail-summary-body {
  padding: 0 1rem 1rem;
}

.job-feedback {
  min-height: 0;
}

.job-feedback.active {
  min-height: 110px;
}

.reject-toast {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(24, 34, 44, 0.18);
  z-index: 1200;
}

.reject-toast[hidden] {
  display: none;
}

.restore-toast {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(24, 34, 44, 0.18);
  z-index: 1200;
}

.restore-toast[hidden] {
  display: none;
}

.reject-toast-card {
  width: min(32rem, 100%);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 18px 44px rgba(20, 35, 46, 0.18);
}

.restore-toast-card {
  width: min(28rem, 100%);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 18px 44px rgba(20, 35, 46, 0.18);
}

.reject-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.restore-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reject-toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.restore-toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.reject-toast-copy {
  margin: 0.65rem 0 0;
  color: var(--text);
}

.restore-toast-copy {
  margin: 0.65rem 0 0;
  color: var(--text);
}

.reject-toast-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.reject-toast-field textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
}

.reject-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.restore-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.reject-toast-status {
  min-height: 1.1rem;
  margin: 0.55rem 0 0;
}

.restore-toast-status {
  min-height: 1.1rem;
  margin: 0.55rem 0 0;
}

.job-status-panel,
.job-status-history {
  display: grid;
  gap: 0.55rem;
}

.job-status-card {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.job-status-card header,
.job-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.job-status-card header p,
.job-status-row small {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.job-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.job-progress-meta span:last-child {
  text-align: right;
}

.job-progress-track {
  width: 100%;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: rgba(59, 111, 143, 0.12);
  overflow: hidden;
}

.job-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #5f91b1);
}

.job-progress-fill-indeterminate {
  position: relative;
  min-width: 22%;
  animation: job-progress-pulse 1.4s ease-in-out infinite;
}

@keyframes job-progress-pulse {
  0% {
    transform: translateX(-8%);
    opacity: 0.72;
  }

  50% {
    transform: translateX(8%);
    opacity: 1;
  }

  100% {
    transform: translateX(-8%);
    opacity: 0.72;
  }
}

.job-status-row {
  padding-top: 0.4rem;
  border-top: 1px solid rgba(23, 33, 43, 0.06);
}

.meta-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
}

.meta-grid dt {
  font-weight: 700;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.brief-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 33, 43, 0.08);
}

.empty {
  color: var(--muted);
  padding: 0.6rem 0;
}

.company-profile-launcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.company-profile-launcher h3 {
  margin: 0;
}

.company-profile-launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
}

.company-profile-modal,
.scoring-guidance-modal,
.settings-modal,
.custom-search-modal {
  width: min(1200px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: 18px;
  background: transparent;
}

.custom-search-modal[open] {
  margin: 0.9rem auto;
}

.company-profile-modal::backdrop,
.scoring-guidance-modal::backdrop,
.settings-modal::backdrop,
.custom-search-modal::backdrop {
  background: rgba(18, 30, 40, 0.42);
  backdrop-filter: blur(8px);
}

.company-profile-modal-card {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 253, 254, 0.98), rgba(241, 246, 249, 0.98));
  box-shadow: var(--shadow);
}

.company-profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.company-profile-meta article,
.company-profile-preview,
.company-profile-editor {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(249, 251, 252, 0.95);
}

.company-profile-meta span,
.company-profile-preview strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.company-profile-actions,
.company-profile-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.company-profile-actions {
  margin-bottom: 0.8rem;
}

.file-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.company-profile-upload-form {
  justify-content: flex-start;
}

.company-profile-preview pre {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.company-profile-editor {
  margin-top: 0.8rem;
}

.company-profile-editor.open,
.settings-editor.open,
.system-settings-editor.open,
.custom-search-form.open {
  display: grid;
  gap: 0.7rem;
}

.company-profile-editor-label {
  display: block;
}

.company-profile-editor textarea {
  width: 100%;
  min-height: 360px;
  padding: 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  resize: vertical;
}

.settings-modal-card {
  width: min(1100px, calc(100vw - 2rem));
  max-width: 1100px;
  margin: 0 auto;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.settings-editor input:not([type="checkbox"]),
.system-settings-editor input:not([type="checkbox"]) {
  width: 100%;
  min-height: 2.7rem;
}

.settings-section {
  display: grid;
  gap: 0.75rem;
}

.settings-section + .settings-section {
  padding-top: 0.15rem;
  border-top: 1px solid rgba(23, 33, 43, 0.08);
}

.settings-section-heading h4 {
  margin: 0;
  font-size: 0.96rem;
}

.settings-section-heading p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.settings-grid {
  display: grid;
  gap: 0.85rem 1rem;
}

.settings-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
}

.settings-field-checkbox {
  align-content: start;
}

.settings-field-checkbox input[type="checkbox"] {
  width: auto;
  min-height: 0;
  justify-self: start;
}

.settings-field span {
  display: block;
}

.settings-field-compact {
  max-width: 240px;
}

.settings-fieldset {
  margin: 0;
  padding: 0.65rem 0.8rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 237, 242, 0.5));
}

.settings-fieldset-plain {
  padding-top: 0.5rem;
}

.settings-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 1.1rem;
}

.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 1.6rem;
  padding: 0.05rem 0;
  color: var(--ink);
}

.checkbox-option input {
  margin: 0;
  flex: 0 0 auto;
}

.checkbox-option span {
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: normal;
}

.custom-search-form textarea,
.settings-editor textarea {
  width: 100%;
  resize: vertical;
  min-height: 7.5rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  line-height: 1.35;
}

.custom-search-page-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.custom-search-run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.custom-search-run-link {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.custom-search-run-link span {
  color: var(--muted);
  font-size: 0.88rem;
}

.custom-search-run-status {
  display: inline-flex;
  align-items: center;
}

.custom-search-run-status .badge {
  font-size: 0.75rem;
}

.custom-search-menu {
  position: relative;
}

.custom-search-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  list-style: none;
}

.custom-search-menu-toggle::-webkit-details-marker {
  display: none;
}

.custom-search-menu[open] .custom-search-menu-toggle,
.custom-search-menu-toggle:hover,
.custom-search-menu-toggle:focus-visible {
  border-color: rgba(23, 33, 43, 0.12);
  background: rgba(23, 33, 43, 0.05);
  color: var(--ink);
}

.custom-search-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 8rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.custom-search-menu-panel button {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.custom-search-menu-panel button:hover,
.custom-search-menu-panel button:focus-visible {
  background: rgba(23, 33, 43, 0.06);
}

.custom-search-menu-panel .custom-search-delete {
  color: #8c3c35;
}

.custom-search-menu-panel button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.settings-editor input:not([type="checkbox"]),
.system-settings-editor input:not([type="checkbox"]),
.settings-editor textarea {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.settings-editor {
  padding-bottom: 1.2rem;
}

.settings-editor .company-profile-editor-actions,
.system-settings-editor .company-profile-editor-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.15rem;
  border-top: 0;
  background: transparent;
}

@media (max-width: 1100px) {
  .browser-header,
  .hero,
  .grid.two-up {
    grid-template-columns: 1fr;
  }

  .fedsim-metric-strip,
  .fedsim-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baseline-grid {
    grid-template-columns: 1fr;
  }

  .baseline-left-column {
    gap: 0.65rem;
  }

  .baseline-split-row {
    grid-template-columns: 1fr;
  }

  .detail-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .company-profile-launcher {
    grid-template-columns: 1fr;
  }

  .company-profile-meta {
    grid-template-columns: 1fr;
  }

  .custom-search-page-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid.two-column,
  .settings-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .settings-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell-header {
    z-index: 40;
  }

  .shell-frame {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - var(--shell-header-height));
  }

  .shell-drawer {
    position: fixed;
    left: 0;
    top: var(--shell-header-height);
    width: min(18rem, calc(100vw - 2.5rem));
    max-width: 100%;
    height: calc(100vh - var(--shell-header-height));
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 0 18px 36px rgba(16, 33, 48, 0.18);
  }

  body.drawer-mobile-open .shell-drawer {
    transform: translateX(0);
  }

  .drawer-toggle-desktop {
    display: none;
  }

  .drawer-toggle-mobile {
    display: inline-flex;
  }

  .shell-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(16, 33, 48, 0.32);
    z-index: 22;
    cursor: pointer;
  }

  body.drawer-mobile-open .shell-overlay {
    display: block;
  }

  .shell-header,
  .panel-header,
  .browser-header,
  .filter-bar,
  .detail-actions,
  .job-form {
    flex-direction: column;
    align-items: stretch;
  }

  .shell-header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .page-shell {
    padding: 1rem;
  }

  .shell-header-brand {
    max-width: calc(100vw - 9rem);
  }

  .brand-home {
    gap: 0.7rem;
    padding: 0.25rem 0.35rem;
  }

  .brand-logo {
    height: 1.35rem;
    max-width: 7.4rem;
  }

  .brand-divider {
    height: 1.2rem;
  }

  .brand-wordmark {
    height: 1.65rem;
    max-width: 7.8rem;
  }

  .panel {
    padding: 0.95rem;
  }

  .detail-hero-main,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-hero-side {
    align-items: stretch;
  }

  .detail-actions-inline {
    justify-content: flex-start;
  }

  .detail-agency {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .analyst-table .table-row,
  .data-table .table-row {
    grid-template-columns: 1fr;
    border-radius: 16px;
    margin-top: 0;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(23, 33, 43, 0.08);
    box-shadow: var(--shadow-soft);
  }

  .fedsim-card-top {
    flex-direction: column;
  }

  .fedsim-card-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 720px) {
  .fedsim-metric-strip,
  .fedsim-card-grid {
    grid-template-columns: 1fr;
  }
}
