:root {
  --portal-topbar-height: 59px;
  --ink: #252827;
  --muted: #5f6762;
  --line: #d8ddd7;
  --paper: #f4f5f2;
  --panel: #ffffff;
  --surface-dark: #102c3f;
  --green: #174f3f;
  --green-2: #20735b;
  --current-request-bg: #f3f8f5;
  --current-request-line: #abc7ba;
  --current-request-accent: #5f927c;
  --blue: #226fd1;
  --gold: #f4c35a;
  --danger: #b74736;
  --control-fg: #145db8;
  --control-bg: #ffffff;
  --control-border: #9ec5ef;
  --control-hover-fg: #0e4f9e;
  --control-hover-bg: #edf5ff;
  --control-hover-border: #76a7df;
  --control-disabled-fg: #525b55;
  --control-disabled-bg: #eef1ee;
  --control-disabled-border: #bac1bc;
  --control-inverse-fg: #ffffff;
  --control-inverse-bg: #174f3f;
  --control-inverse-hover-bg: #103c30;
  --badge-soft-fg: #103c30;
  --badge-soft-bg: #e7f1ec;
  --badge-soft-border: #bfd3c9;
  --badge-strong-fg: #ffffff;
  --badge-strong-bg: #174f3f;
  --role-problem-bg: #f3f7f5;
  --role-problem-complex-bg: #edf4fb;
  --role-accent-ink-default: #174f3f;
  --role-accent-ink-strategy: #235a7a;
  --role-accent-ink-finance: #72518a;
  --role-accent-ink-market: #8f3f27;
  --role-accent-ink-operations: #1c654f;
  --role-accent-ink-partnerships: #6f4a0e;
  --focus-ring-inner: #ffffff;
  --focus-ring-outer: #7a4d00;
  --shadow: 0 8px 22px rgba(20, 30, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

body.drawer-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--blue);
}

button,
input,
select,
textarea {
  font: inherit;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand small,
.subtle,
small {
  display: block;
  color: var(--muted);
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0;
}

.top-actions,
.button-row,
.filter-row,
.file-count {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-nav {
  position: sticky;
  top: var(--portal-topbar-height);
  z-index: 19;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 18px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.mobile-nav-picker {
  display: none;
}

.nav-item,
.tab-button,
.brief-tab,
.folder-tile,
.button,
.quiet-button {
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-item {
  padding: 11px 14px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  white-space: nowrap;
}

.nav-item.active {
  color: #ffffff;
  background: var(--green);
}

.portal-utility-footer {
  padding: 0 22px 18px;
  text-align: right;
}

.portal-utility-footer a {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.portal-utility-footer a:hover,
.portal-utility-footer a:focus-visible,
.portal-utility-footer a.active {
  color: var(--green);
  text-decoration: underline;
}

.nav-item:focus-visible,
.mobile-nav-picker select:focus-visible,
.button:focus-visible,
.quiet-button:focus-visible,
.quiet-link:focus-visible,
.tab-button:focus-visible,
.brief-tab:focus-visible,
.chip:focus-visible,
.link-button:focus-visible,
.drawer button:focus-visible,
.news-carousel button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-ring-outer);
}

main {
  padding: 24px 22px 48px;
}

.view-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  letter-spacing: 0;
}

h2 {
  font-size: 1.25rem;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-request-item {
  border-color: var(--current-request-line);
  background: linear-gradient(90deg, rgba(95, 146, 124, 0.11), rgba(243, 248, 245, 0.72) 18%, rgba(255, 255, 255, 0.97));
  box-shadow: inset 3px 0 0 var(--current-request-accent);
}

.current-request-marker {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid var(--badge-soft-border);
  border-radius: 999px;
  background: var(--badge-soft-bg);
  color: var(--badge-soft-fg);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.current-request-marker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--current-request-accent);
  content: "";
}

.panel,
.surface-band,
.empty-state,
.feed-post,
.file-row,
.slot-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.surface-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.panel,
.empty-state,
.admin-panel {
  padding: 18px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.slot-card {
  min-height: 130px;
  padding: 14px;
}

.slot-card strong {
  display: block;
  margin-bottom: 6px;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--badge-soft-border);
  border-radius: 4px;
  color: var(--badge-soft-fg);
  background: var(--badge-soft-bg);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill.current {
  border-color: var(--control-inverse-bg);
  color: var(--control-inverse-fg);
  background: var(--control-inverse-bg);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.button,
.quiet-button,
.quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  color: var(--control-fg);
  background: var(--control-bg);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  border-color: var(--control-inverse-bg);
  color: var(--control-inverse-fg);
  background: var(--control-inverse-bg);
}

.button:not(.primary):not(:disabled):not([aria-disabled="true"]):hover,
.quiet-button:not(:disabled):not([aria-disabled="true"]):hover,
.quiet-link:not([aria-disabled="true"]):hover {
  border-color: var(--control-hover-border);
  color: var(--control-hover-fg);
  background: var(--control-hover-bg);
}

.button.primary:not(:disabled):not([aria-disabled="true"]):hover {
  border-color: var(--control-inverse-hover-bg);
  color: var(--control-inverse-fg);
  background: var(--control-inverse-hover-bg);
}

.button:disabled,
.button[aria-disabled="true"],
.quiet-button:disabled,
.quiet-button[aria-disabled="true"],
.quiet-link[aria-disabled="true"],
.tab-button:disabled,
.brief-tab:disabled,
.chip:disabled {
  border-color: var(--control-disabled-border);
  color: var(--control-disabled-fg);
  background: var(--control-disabled-bg);
  cursor: not-allowed;
}

.quiet-button {
  border-color: var(--line);
  color: var(--ink);
}

.selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.selector-bar label,
.filter-row label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.file-count {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8faf8;
  color: var(--muted);
}

.file-count strong {
  color: var(--ink);
}

select,
.filter-row input,
.filter-row select,
.admin-panel input,
.admin-panel textarea {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.feed-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.feed-controls,
.news-controls {
  max-width: 980px;
  margin-bottom: 14px;
  padding: 14px;
}

.feed-controls .filter-row,
.news-controls .filter-row {
  justify-content: space-between;
}

.feed-post {
  padding: 16px;
}

.post-header,
.person-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #d9dfd8;
}

.avatar.small {
  width: 32px;
  height: 32px;
}

.avatar.placeholder {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  font-weight: 800;
}

.workroom-shell {
  display: grid;
  gap: 16px;
}

.workroom-tabs,
.brief-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 10px;
}

.tab-button,
.brief-tab {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-color: var(--control-disabled-border);
  color: var(--ink);
  background: var(--control-bg);
}

.tab-button:not(.active):not(:disabled):hover,
.brief-tab:not(.active):not(:disabled):hover,
.chip:not(.active):not(:disabled):hover {
  border-color: var(--badge-soft-border);
  color: var(--badge-soft-fg);
  background: var(--badge-soft-bg);
}

.tab-button.active,
.brief-tab.active {
  border-color: var(--control-inverse-bg);
  color: var(--control-inverse-fg);
  background: var(--control-inverse-bg);
}

.tab-button.active:not(:disabled):hover,
.brief-tab.active:not(:disabled):hover,
.chip.active:not(:disabled):hover {
  border-color: var(--control-inverse-hover-bg);
  color: var(--control-inverse-fg);
  background: var(--control-inverse-hover-bg);
}

.tab-button.active small,
.brief-tab.active small,
.chip.active small {
  color: var(--control-inverse-fg);
  opacity: 1;
}

.tab-button:disabled small,
.brief-tab:disabled small,
.chip:disabled small {
  color: inherit;
  opacity: 1;
}

.tab-button.active:disabled,
.brief-tab.active:disabled,
.chip.active:disabled {
  border-color: var(--control-disabled-border);
  color: var(--control-disabled-fg);
  background: var(--control-disabled-bg);
}

.brief-tab {
  display: grid;
  min-width: 230px;
  text-align: left;
}

.brief-tab.current-request-tab:not(.active) {
  border-color: var(--current-request-line);
  background: linear-gradient(90deg, rgba(95, 146, 124, 0.11), var(--current-request-bg));
  box-shadow: inset 3px 0 0 var(--current-request-accent);
}

.brief-tab.active .current-request-marker {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.92);
}

.workroom-board,
.file-explorer,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.5fr);
  gap: 16px;
}

.case-entry {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  min-height: 430px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.operator-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #f1c45b;
  border-left: 6px solid #d99213;
  border-radius: 6px;
  background: #fff8e8;
}

.operator-preview-banner h2 {
  margin: 2px 0 4px;
  font-size: 1.1rem;
}

.operator-preview-banner p {
  margin: 0;
  color: var(--muted);
}

.case-media {
  position: relative;
  min-height: 360px;
  background: #dce5dd;
}

.asset-image,
.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.case-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
}

.home-video-cue {
  position: relative;
  height: 100%;
  min-height: 360px;
}

.home-video-cue .asset-image,
.home-video-cue img {
  min-height: 360px;
}

.home-video-overlay {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  max-width: min(320px, calc(100% - 44px));
  padding: 16px 18px;
  color: #ffffff;
  background: rgba(15, 44, 36, 0.84);
  border-radius: 6px;
}

.home-video-overlay span {
  width: max-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: #c6442d;
  font-weight: 800;
}

.home-video-overlay strong {
  font-size: 1.35rem;
}

.home-video-overlay small {
  color: rgba(255, 255, 255, 0.82);
}

.case-person {
  display: flex;
  gap: 12px;
  align-items: center;
}

.case-copy h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
}

.home-request-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 280px));
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.home-request-actions .button {
  width: 100%;
  min-height: 48px;
  padding-inline: 16px;
  text-align: center;
}

.case-entry.has-story-map {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.case-entry.has-story-map .case-media {
  align-self: start;
  height: min(76vh, 760px);
  min-height: 580px;
}

.case-entry.has-story-map .case-copy {
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 38px);
}

.home-story-map,
.home-story-section {
  display: grid;
  gap: 10px;
}

.home-story-map {
  gap: 18px;
  margin-top: 4px;
}

.home-story-section > .eyebrow {
  margin: 0;
}

.home-story-progression,
.home-story-partners,
.home-next-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-story-progression article,
.home-story-partners article,
.home-next-questions article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #cad9d2;
  border-radius: 8px;
  background: #f8faf8;
}

.home-story-progression article {
  border-top: 4px solid var(--green);
}

.home-story-progression small,
.home-story-partners small {
  color: #476259;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-story-progression strong,
.home-story-partners strong,
.home-next-questions strong {
  color: var(--surface-dark);
  line-height: 1.25;
}

.home-story-progression span,
.home-story-partners span,
.home-next-questions span {
  color: #344b44;
  font-size: 0.9rem;
  line-height: 1.42;
}

.home-story-partners article:first-child {
  border-left: 5px solid #236e66;
  background: #f0f7f4;
}

.home-story-partners article:last-child {
  border-left: 5px solid #b16d38;
  background: #fbf5ef;
}

.home-aotea-stake {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 9px;
  background: var(--surface-dark);
  color: #ffffff;
}

.home-aotea-stake small {
  color: #f2c45d;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-aotea-stake strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.48;
}

.home-next-questions article {
  border-left: 4px solid var(--gold);
  background: #fffaf0;
}

.home-story-start-cue {
  margin: 0;
  padding: 12px 14px;
  border-left: 5px solid var(--green);
  background: #edf5f0;
  color: #25473d;
  font-weight: 800;
  line-height: 1.45;
}

.signal-grid {
  margin-bottom: 24px;
}

.signal-card,
.activity-tile,
.news-card,
.slt-card,
.file-feature,
.work-order,
.role-desk,
.room-head {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.signal-card,
.activity-tile,
.slt-card {
  padding: 16px;
}

.activity-tile {
  cursor: pointer;
}

.activity-tile:hover,
.folder-tile:hover,
.room-tab:hover,
.attachment-card:hover,
.compact-file-card:hover {
  border-color: #9ec5ef;
}

.home-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 22px 0 10px;
}

.section-title h2 {
  margin-bottom: 0;
}

.section-title.compact {
  margin-top: 0;
}

.file-feature {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.file-feature .asset-image,
.file-feature .packet-cover {
  min-height: 160px;
  border-radius: 4px;
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.news-hero .asset-image {
  min-height: 330px;
  border-radius: 4px;
}

.news-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.news-carousel-viewport {
  position: relative;
  min-height: 360px;
}

.news-slide {
  display: none;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  min-height: 360px;
  background: #ffffff;
}

.news-slide.current-request-item {
  background: linear-gradient(90deg, rgba(95, 146, 124, 0.11), var(--current-request-bg) 58%, #ffffff);
}

.news-slide.active {
  display: grid;
}

.news-slide-media .asset-image,
.news-slide-media .document-preview,
.news-slide-media .asset-video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 0;
}

.news-slide-copy {
  align-self: center;
  padding: 26px;
}

.news-carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 42px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: rgba(16, 42, 58, 0.72);
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.news-carousel-arrow:hover {
  background: rgba(16, 42, 58, 0.92);
}

.news-carousel-arrow.previous {
  left: 12px;
}

.news-carousel-arrow.next {
  right: 12px;
}

.news-carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.news-carousel-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.news-carousel-dots button.active {
  background: var(--gold);
}

.news-carousel-pause {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 4;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(16, 42, 58, 0.82);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.news-carousel-pause:hover {
  background: rgba(16, 42, 58, 0.96);
}

.news-card {
  overflow: hidden;
}

.news-card .asset-image {
  min-height: 210px;
}

.packet-cover {
  --packet-bg: #173d48;
  --packet-bg-2: #0d252e;
  --packet-accent: #e7b957;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(58px, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 210px;
  padding: 16px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 16%, color-mix(in srgb, var(--packet-accent) 28%, transparent), transparent 34%),
    linear-gradient(145deg, var(--packet-bg), var(--packet-bg-2));
}

.packet-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 -34px 80px rgba(0, 0, 0, 0.14);
}

.packet-cover-top,
.packet-cover-copy {
  position: relative;
  z-index: 2;
}

.packet-cover-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.packet-cover-top span,
.packet-cover-top small {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.packet-cover-top span {
  color: var(--packet-accent);
}

.packet-cover-top small {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}

.packet-cover-art {
  position: relative;
  z-index: 1;
  min-height: 58px;
}

.packet-cover-art i {
  position: absolute;
  display: block;
}

.packet-cover-copy {
  display: grid;
  gap: 5px;
}

.packet-cover-copy strong {
  max-width: 25rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.02rem, 2vw, 1.42rem);
  line-height: 1.05;
}

.packet-cover-copy small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  line-height: 1.3;
}

.packet-cover-governance {
  --packet-bg: #4a3227;
  --packet-bg-2: #231c19;
  --packet-accent: #efbf68;
}

.packet-cover-authority {
  --packet-bg: #24374f;
  --packet-bg-2: #111c2a;
  --packet-accent: #79c1ad;
}

.packet-cover-flow {
  --packet-bg: #0f4d59;
  --packet-bg-2: #082a35;
  --packet-accent: #82d4df;
}

.packet-cover-boundary {
  --packet-bg: #34323f;
  --packet-bg-2: #171720;
  --packet-accent: #e6a65f;
}

.packet-cover-ladder {
  --packet-bg: #713d2e;
  --packet-bg-2: #331d1a;
  --packet-accent: #f2cb6c;
}

.packet-cover-audio {
  --packet-bg: #243a52;
  --packet-bg-2: #101c29;
  --packet-accent: #e59b7d;
}

.packet-cover-triad {
  --packet-bg: #35442f;
  --packet-bg-2: #17251b;
  --packet-accent: #d5c76f;
}

.packet-cover-interweave .packet-cover-art i {
  left: 3%;
  width: 92%;
  height: 17px;
  border: 2px solid var(--packet-accent);
  border-inline: 0;
  border-radius: 50%;
  opacity: 0.62;
  transform: rotate(-6deg);
}

.packet-cover-interweave .packet-cover-art i:nth-child(1) { top: 5%; }
.packet-cover-interweave .packet-cover-art i:nth-child(2) { top: 22%; transform: rotate(5deg); opacity: 0.42; }
.packet-cover-interweave .packet-cover-art i:nth-child(3) { top: 39%; }
.packet-cover-interweave .packet-cover-art i:nth-child(4) { top: 56%; transform: rotate(5deg); opacity: 0.42; }
.packet-cover-interweave .packet-cover-art i:nth-child(5) { top: 73%; }
.packet-cover-interweave .packet-cover-art i:nth-child(6) { display: none; }

.packet-cover-governance .packet-cover-art::before,
.packet-cover-authority .packet-cover-art::before {
  content: "";
  position: absolute;
  inset: 14% 8%;
  background:
    linear-gradient(25deg, transparent 48%, color-mix(in srgb, var(--packet-accent) 55%, transparent) 49% 51%, transparent 52%),
    linear-gradient(155deg, transparent 48%, color-mix(in srgb, var(--packet-accent) 45%, transparent) 49% 51%, transparent 52%);
}

.packet-cover-governance .packet-cover-art i,
.packet-cover-authority .packet-cover-art i {
  width: 18px;
  height: 18px;
  border: 2px solid var(--packet-accent);
  background: var(--packet-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.packet-cover-governance .packet-cover-art i { border-radius: 3px; transform: rotate(45deg); }
.packet-cover-authority .packet-cover-art i { border-radius: 50%; }
.packet-cover-governance .packet-cover-art i:nth-child(1),
.packet-cover-authority .packet-cover-art i:nth-child(1) { left: 8%; top: 42%; }
.packet-cover-governance .packet-cover-art i:nth-child(2),
.packet-cover-authority .packet-cover-art i:nth-child(2) { left: 31%; top: 9%; }
.packet-cover-governance .packet-cover-art i:nth-child(3),
.packet-cover-authority .packet-cover-art i:nth-child(3) { left: 31%; bottom: 7%; }
.packet-cover-governance .packet-cover-art i:nth-child(4),
.packet-cover-authority .packet-cover-art i:nth-child(4) { right: 31%; top: 9%; }
.packet-cover-governance .packet-cover-art i:nth-child(5),
.packet-cover-authority .packet-cover-art i:nth-child(5) { right: 31%; bottom: 7%; }
.packet-cover-governance .packet-cover-art i:nth-child(6),
.packet-cover-authority .packet-cover-art i:nth-child(6) { right: 8%; top: 42%; }

.packet-cover-flow .packet-cover-art {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.packet-cover-flow .packet-cover-art i {
  top: -12%;
  width: 13%;
  height: 125%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--packet-accent) 22% 78%, transparent);
  opacity: 0.58;
}

.packet-cover-flow .packet-cover-art i:nth-child(1) { left: 2%; }
.packet-cover-flow .packet-cover-art i:nth-child(2) { left: 19%; transform: translateY(14%); }
.packet-cover-flow .packet-cover-art i:nth-child(3) { left: 36%; transform: translateY(-8%); }
.packet-cover-flow .packet-cover-art i:nth-child(4) { left: 53%; transform: translateY(8%); }
.packet-cover-flow .packet-cover-art i:nth-child(5) { left: 70%; transform: translateY(-13%); }
.packet-cover-flow .packet-cover-art i:nth-child(6) { left: 87%; transform: translateY(12%); }

.packet-cover-boundary .packet-cover-art {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 48%, transparent 48% 52%, rgba(255, 255, 255, 0.03) 52%);
}

.packet-cover-boundary .packet-cover-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8%;
  bottom: -8%;
  border-left: 3px dashed var(--packet-accent);
}

.packet-cover-boundary .packet-cover-art i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--packet-accent);
}

.packet-cover-boundary .packet-cover-art i:nth-child(1) { left: 12%; top: 18%; }
.packet-cover-boundary .packet-cover-art i:nth-child(2) { left: 31%; bottom: 16%; }
.packet-cover-boundary .packet-cover-art i:nth-child(3) { left: 39%; top: 38%; }
.packet-cover-boundary .packet-cover-art i:nth-child(4) { right: 38%; bottom: 18%; }
.packet-cover-boundary .packet-cover-art i:nth-child(5) { right: 25%; top: 14%; }
.packet-cover-boundary .packet-cover-art i:nth-child(6) { right: 9%; bottom: 30%; }

.packet-cover-ladder .packet-cover-art,
.packet-cover-audio .packet-cover-art {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.packet-cover-ladder .packet-cover-art i {
  position: static;
  height: 8px;
  border-radius: 999px;
  background: var(--packet-accent);
  opacity: 0.74;
}

.packet-cover-ladder .packet-cover-art i:nth-child(1) { width: 22%; }
.packet-cover-ladder .packet-cover-art i:nth-child(2) { width: 30%; }
.packet-cover-ladder .packet-cover-art i:nth-child(3) { width: 42%; }
.packet-cover-ladder .packet-cover-art i:nth-child(4) { width: 56%; }
.packet-cover-ladder .packet-cover-art i:nth-child(5) { width: 72%; }
.packet-cover-ladder .packet-cover-art i:nth-child(6) { width: 92%; }

.packet-cover-audio .packet-cover-art {
  justify-content: center;
  align-items: center;
}

.packet-cover-audio .packet-cover-art i {
  position: static;
  width: 8%;
  border-radius: 999px;
  background: var(--packet-accent);
}

.packet-cover-audio .packet-cover-art i:nth-child(1) { height: 28%; }
.packet-cover-audio .packet-cover-art i:nth-child(2) { height: 64%; }
.packet-cover-audio .packet-cover-art i:nth-child(3) { height: 92%; }
.packet-cover-audio .packet-cover-art i:nth-child(4) { height: 52%; }
.packet-cover-audio .packet-cover-art i:nth-child(5) { height: 78%; }
.packet-cover-audio .packet-cover-art i:nth-child(6) { height: 35%; }

.packet-cover-triad .packet-cover-art i {
  width: 68px;
  height: 68px;
  border: 2px solid var(--packet-accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--packet-accent) 15%, transparent);
}

.packet-cover-triad .packet-cover-art i:nth-child(1) { left: 25%; top: 2%; }
.packet-cover-triad .packet-cover-art i:nth-child(2) { right: 25%; top: 2%; }
.packet-cover-triad .packet-cover-art i:nth-child(3) { left: calc(50% - 34px); bottom: 0; }
.packet-cover-triad .packet-cover-art i:nth-child(n+4) { display: none; }

.packet-cover.compact {
  min-height: 100%;
  height: 100%;
  padding: 4px;
  gap: 2px;
}

.packet-cover.compact .packet-cover-top small,
.packet-cover.compact .packet-cover-copy small {
  display: none;
}

.packet-cover.compact .packet-cover-top span {
  font-size: 0.38rem;
  letter-spacing: 0.04em;
}

.packet-cover.compact .packet-cover-art {
  min-height: 18px;
}

.packet-cover.compact .packet-cover-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: inherit;
  font-size: 0.46rem;
  line-height: 1.02;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-resource-share-preview {
  --resource-accent: #d49a37;
  --resource-ink: #173d48;
  display: grid;
  grid-template-rows: minmax(128px, 1fr) auto;
  min-height: 210px;
  height: 100%;
  overflow: hidden;
  color: #ffffff;
  background: var(--resource-ink);
}

.news-resource-share-preview.tone-2 {
  --resource-accent: #d65a43;
  --resource-ink: #263a52;
}

.news-resource-share-preview.tone-3 {
  --resource-accent: #72a995;
  --resource-ink: #312f45;
}

.news-resource-share-preview.tone-4 {
  --resource-accent: #e4b653;
  --resource-ink: #4a3227;
}

.news-resource-share-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--resource-accent) 52%, transparent), transparent 34%),
    linear-gradient(135deg, var(--resource-ink), #0d222b);
}

.news-resource-share-art.packet {
  display: block;
  background: var(--resource-ink);
}

.news-resource-share-art.packet .packet-cover {
  min-height: 100%;
  height: 100%;
  border: 0;
}

.news-resource-share-art.video img,
.news-resource-share-art .asset-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.news-resource-share-art.video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(10, 20, 26, 0.45));
}

.news-resource-play {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 44px;
  padding-left: 4px;
  border-radius: 10px;
  color: #ffffff;
  background: #c92f28;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.news-resource-share-art.audio {
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 24px;
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 17px),
    linear-gradient(135deg, var(--resource-ink), color-mix(in srgb, var(--resource-accent) 30%, #111b20));
}

.news-resource-source {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.news-resource-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.news-resource-wave i {
  flex: 1 1 4px;
  max-width: 7px;
  min-width: 3px;
  border-radius: 999px;
  background: var(--resource-accent);
}

.news-resource-share-copy {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
  border-top: 4px solid var(--resource-accent);
  background: var(--resource-ink);
}

.news-resource-share-copy > span {
  color: var(--resource-accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-resource-share-copy strong {
  font-size: 1.08rem;
  line-height: 1.12;
}

.news-resource-share-copy small {
  color: rgba(255, 255, 255, 0.76);
}

.news-slide-media .news-resource-share-preview {
  min-height: 360px;
  border-radius: 0;
}

.news-resource-share-drawer {
  width: min(760px, 100%);
  margin: 20px 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.news-correction-preview {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 210px;
  height: 100%;
  padding: 24px;
  color: #29312e;
  border: 1px solid #cfc7b8;
  background:
    linear-gradient(rgba(49, 55, 52, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 55, 52, 0.025) 1px, transparent 1px),
    #f7f1e7;
  background-size: 18px 18px;
}

.news-correction-preview-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 2px solid #303633;
  font: 700 0.78rem/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
}

.news-correction-preview-head strong {
  padding: 5px 8px;
  color: #ffffff;
  background: #aa4035;
  font: 900 0.68rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-correction-preview-total {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.news-correction-preview-total strong {
  color: #26312d;
  font: 800 clamp(3.4rem, 6vw, 5.8rem)/0.82 Georgia, "Times New Roman", serif;
}

.news-correction-preview-total span {
  max-width: 120px;
  font-weight: 800;
  line-height: 1.05;
}

.news-correction-preview-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.news-correction-preview-rows div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-left: 4px solid #d5aa46;
  background: rgba(255, 255, 255, 0.74);
}

.news-correction-preview-rows small {
  color: #6b6258;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-correction-preview-rows strong {
  font-size: 0.88rem;
}

.news-correction-preview > p {
  margin: 0;
  color: #675d54;
  font: italic 700 0.82rem/1.25 Georgia, "Times New Roman", serif;
}

.news-slide-media .news-correction-preview {
  min-height: 360px;
  border: 0;
}

.news-row > .news-correction-preview {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100px;
  padding: 12px;
  gap: 7px;
  overflow: hidden;
}

.news-row .news-correction-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  min-width: 0;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.news-row .news-correction-preview-head span {
  min-width: 0;
}

.news-row .news-correction-preview-head strong {
  padding: 4px 5px;
  font-size: 0.54rem;
  letter-spacing: 0.05em;
}

.news-row .news-correction-preview-total strong {
  font-size: 2.3rem;
}

.news-row .news-correction-preview-total span,
.news-row .news-correction-preview > p {
  font-size: 0.68rem;
}

.news-row .news-correction-preview-rows div {
  padding: 5px 6px;
}

.news-row .news-correction-preview-rows small {
  display: none;
}

.news-row .news-correction-preview-rows strong {
  font-size: 0.66rem;
}

.news-correction-artifact {
  margin-top: 20px;
}

.news-correction-artifact .artifact-view {
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  border-color: #cbc1af;
  background: #f8f3e9;
  box-shadow: inset 5px 0 0 #aa4035;
}

.news-correction-artifact .artifact-header {
  padding-bottom: 12px;
  border-bottom: 2px solid #303633;
}

.news-correction-artifact .status-pill {
  color: #ffffff;
  background: #aa4035;
}

.news-correction-artifact .artifact-meta div,
.news-correction-artifact .artifact-section {
  border-color: #ddd3c4;
  background: rgba(255, 255, 255, 0.72);
}

.news-correction-artifact .artifact-table {
  min-width: 0;
}

.news-correction-artifact .artifact-table th {
  color: #342f2b;
  background: #e7ded0;
}

.news-history {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.news-latest-heading {
  margin-bottom: 10px;
}

.news-archive-controls {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  padding: 14px;
}

.news-archive-controls label {
  display: grid;
  gap: 5px;
  min-width: min(100%, 310px);
  color: var(--muted);
  font-size: 0.86rem;
}

.section-title.compact {
  margin-top: 6px;
}

.section-title.compact span {
  color: var(--muted);
  font-size: 0.95rem;
}

.news-row {
  display: grid;
  grid-template-columns: minmax(200px, 230px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.news-row > .news-visual,
.news-row > .news-resource-share-preview {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.news-row .news-visual .asset-image,
.news-row .document-preview {
  min-height: 0;
  height: 100%;
}

.news-row .news-resource-share-preview {
  grid-template-rows: minmax(0, 1fr) auto;
}

.news-row .news-resource-share-preview.purpose-built-news-art {
  grid-template-rows: minmax(0, 1fr);
}

.news-row .news-resource-share-preview.purpose-built-news-art .news-resource-share-copy {
  display: none;
}

.news-row .purpose-built-news-art .asset-image {
  object-fit: contain;
}

.news-row .news-resource-share-art.audio {
  gap: 8px;
  padding: 8px;
}

.news-row .news-resource-source {
  width: 42px;
  height: 42px;
  border-width: 2px;
  font-size: 0.72rem;
}

.news-row .news-resource-wave {
  gap: 2px;
}

.news-row .news-resource-share-copy {
  gap: 1px;
  padding: 6px 8px 7px;
  border-top-width: 2px;
}

.news-row .news-resource-share-copy > span,
.news-row .news-resource-share-copy small {
  display: none;
}

.news-row .news-resource-share-copy strong {
  font-size: 0.7rem;
}

.row-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-pad {
  padding: 16px;
}

.post-actions {
  display: flex;
  gap: 24px;
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.attachment-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.attachment-card .asset-image {
  min-height: 150px;
}

.attachment-card > .packet-cover {
  min-height: 150px;
  height: 100%;
}

.attachment-card > span {
  align-self: center;
  padding: 14px;
}

.attachment-detail {
  display: grid;
  gap: 6px;
}

.attachment-detail small {
  color: var(--muted);
}

.attachment-detail em {
  color: var(--muted);
  font-style: normal;
}

.drawer-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.drawer-attachment-card {
  min-height: 210px;
  margin-top: 0;
  border-color: #cbded4;
  background:
    linear-gradient(180deg, rgba(27, 93, 77, 0.035), transparent 120px),
    #ffffff;
}

.drawer-attachment-card .asset-image,
.drawer-attachment-card .document-preview {
  min-height: 210px;
  height: 100%;
}

.drawer-attachment-card .document-preview {
  border-radius: 0;
}

.comments {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
}

.comment-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.comment-toggle {
  border: 0;
  background: #e7f0fb;
  color: #1c65b7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 999px;
}

.history-actions {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

.comments:not(.open) .hidden-comment {
  display: none;
}

.comment {
  display: flex;
  gap: 10px;
  align-items: start;
}

.comment p {
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f0f1ef;
}

.comment-input {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.comment-input span {
  display: block;
  flex: 1;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f5f3;
  color: var(--muted);
}

.comment-input:hover span {
  background: #ffffff;
  border-color: #c2d6cf;
  color: var(--ink);
}

.comment-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 14px;
}

.comment-composer textarea {
  width: 100%;
  min-height: 64px;
  padding: 11px 14px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.comment-composer .button-row {
  margin-top: 8px;
}

.work-order,
.role-desk {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  padding: 22px;
  margin: 16px 0;
}

.work-order aside,
.role-desk aside {
  padding: 16px;
  border-radius: 6px;
  background: #eef6f1;
}

.rich-work-order {
  align-items: start;
  border: 1px solid #bed2ca;
  background:
    linear-gradient(135deg, rgba(20, 75, 62, 0.07), transparent 34%),
    #ffffff;
}

.work-order-main,
.work-order-intro,
.work-order-side,
.work-order-side > section,
.work-order-section,
.output-option-list {
  display: grid;
  gap: 12px;
}

.work-order-intro {
  grid-column: 1 / -1;
}

.work-order-intro > h2,
.work-order-intro > p {
  margin: 0;
}

.response-target-panel {
  display: grid;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid #87b6a5;
  border-left: 7px solid var(--gold);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(235, 248, 241, 0.98), rgba(247, 250, 248, 0.98));
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(20, 75, 62, 0.12);
}

.response-target-header,
.response-format-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.response-target-header > div,
.response-format-heading > div {
  display: grid;
  gap: 4px;
}

.response-target-header .eyebrow,
.response-format-heading .eyebrow,
.response-target-header h3,
.response-format-heading h4 {
  margin: 0;
  color: var(--green);
}

.response-target-header h3 {
  max-width: 620px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
}

.response-target-header > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.response-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.response-layer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid #c8dbd3;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.response-layer-number {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #102c3f;
  font-size: 1rem;
  font-weight: 900;
}

.response-layer-card > div {
  display: grid;
  gap: 5px;
}

.response-layer-card small {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.response-layer-card h4,
.response-layer-card p {
  margin: 0;
}

.response-layer-card h4 {
  font-size: 1rem;
}

.response-layer-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.response-format-block {
  display: grid;
  gap: 9px;
}

.response-format-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.response-format-tools > span {
  padding: 5px 9px;
  border: 1px solid #bad2c8;
  border-radius: 999px;
  color: var(--green);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.response-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.response-option-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  border: 1px solid #b9d1c7;
  border-radius: 7px;
  background: #ffffff;
}

.response-option-title {
  display: flex;
  gap: 7px;
  align-items: center;
}

.response-option-title > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.response-option-card h5,
.response-option-card p,
.response-option-card small {
  margin: 0;
  color: var(--ink);
}

.response-option-card h5 {
  font-size: 0.88rem;
  line-height: 1.2;
}

.response-option-card p,
.response-option-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.38;
}

.response-option-card > div:not(.response-format-preview) {
  display: grid;
  gap: 5px;
}

.response-format-preview {
  position: relative;
  height: 58px;
  overflow: hidden;
  border: 1px solid #c7d8d1;
  border-radius: 5px;
  background: #f4f8f6;
}

.response-format-preview span {
  position: absolute;
  display: block;
  border-radius: 2px;
}

.preview-board .preview-heading {
  inset: 8px auto auto 8px;
  width: 45%;
  height: 5px;
  background: var(--green);
}

.preview-board .preview-route {
  top: 20px;
  width: 31%;
  height: 20px;
  border: 1px solid #86ac9e;
  background: #ffffff;
}

.preview-board .preview-route-a { left: 8px; }
.preview-board .preview-route-b { left: 42%; }

.preview-board .preview-map {
  top: 17px;
  right: 8px;
  width: 19%;
  height: 27px;
  border: 2px solid #d6a93f;
  border-radius: 50%;
}

.preview-board .preview-call {
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 5px;
  background: #203f52;
}

.preview-deck .preview-slide {
  top: 9px;
  width: 31%;
  height: 37px;
  border: 1px solid #9bb9ae;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(16, 44, 63, 0.08);
}

.preview-deck .preview-slide-one { left: 8px; }
.preview-deck .preview-slide-two { left: 35%; }
.preview-deck .preview-slide-three { right: 8px; }

.preview-deck .preview-slide-lines {
  top: 18px;
  left: 14px;
  width: 18%;
  height: 4px;
  background: var(--green);
  box-shadow: 0 8px 0 #d6a93f, 0 16px 0 #c3d5ce;
}

.preview-recording .preview-player {
  top: 9px;
  left: 8px;
  width: 34%;
  height: 31px;
  background: #173e4c;
}

.preview-recording .preview-player i {
  position: absolute;
  top: 9px;
  left: 42%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #ffffff;
}

.preview-recording .preview-recording-board {
  top: 9px;
  right: 8px;
  width: 54%;
  height: 31px;
  border: 1px solid #9bb9ae;
  background: linear-gradient(90deg, #dbe9e3 48%, #ffffff 48%);
}

.preview-recording .preview-transcript {
  right: 8px;
  bottom: 7px;
  left: 8px;
  height: 4px;
  background: #b7ccc4;
  box-shadow: 0 6px 0 #d5e2dd;
}

.response-join-note {
  display: flex;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 5px;
  background: #e3f0ea;
  font-size: 0.8rem;
  line-height: 1.4;
}

.response-join-note p {
  margin: 0;
  color: var(--muted);
}

.decision-question-panel {
  margin-top: 14px;
  padding: 18px;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: var(--surface-dark);
  color: #ffffff;
}

.decision-question-panel .eyebrow,
.decision-question-panel h3 {
  color: #ffffff;
}

.contract-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 24px;
}

.contract-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contract-card,
.output-option-list article,
.handoff-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.contract-card p,
.output-option-list span,
.output-option-list small,
.handoff-list p {
  margin: 0;
}

.contract-card small,
.output-option-list small {
  color: var(--green);
  font-weight: 800;
}

.contract-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.contract-source-actions .button {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.work-order-disclosure,
.work-order-side-disclosure,
.readiness-context-shelf {
  border: 1px solid #d5e1db;
  border-radius: 8px;
  background: #fbfdfc;
}

.work-order-disclosure > summary,
.work-order-side-disclosure > summary,
.readiness-context-shelf > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: var(--green);
  cursor: pointer;
}

.work-order-disclosure > summary > span:first-child,
.work-order-side-disclosure > summary > span:first-child,
.readiness-context-shelf > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.work-order-disclosure > summary small,
.work-order-side-disclosure > summary small,
.readiness-context-shelf > summary small {
  color: var(--muted);
  font-weight: 500;
}

.work-order-disclosure .contract-card-grid,
.work-order-side-disclosure .output-option-list,
.work-order-side-disclosure > ul,
.readiness-context-shelf > .grid {
  margin: 0;
  padding: 0 14px 14px;
}

.shared-start-heading {
  align-items: end;
}

.shared-start-heading > div {
  display: grid;
  gap: 4px;
}

.shared-start-heading p {
  max-width: 760px;
  margin: 0;
}

.shared-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shared-start-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #cbdcd4;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(25, 61, 49, 0.07);
}

.shared-start-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #d6e0dc;
  border-radius: 7px;
  background: #edf2ef;
}

.shared-start-thumb .asset-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.shared-start-card > div {
  display: grid;
  gap: 6px;
}

.shared-start-card small {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shared-start-card h3,
.shared-start-card p {
  margin: 0;
}

.shared-start-number {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.readiness-next-step {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 14px 0 22px;
  padding: 16px 18px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #f4f8f5;
}

.readiness-next-step > div {
  display: grid;
  gap: 4px;
}

.readiness-next-step span {
  color: var(--muted);
}

.readiness-context-shelf {
  margin-top: 18px;
}

.work-order-side > section + section {
  padding-top: 12px;
  border-top: 1px solid #cbded6;
}

.handoff-list,
.admin-handoff-grid {
  display: grid;
  gap: 10px;
}

.handoff-list p span {
  color: var(--green);
  font-weight: 800;
}

.handoff-list article > small {
  color: var(--green);
  font-weight: 800;
}

.handoff-exchanges {
  display: grid;
  gap: 8px;
}

.handoff-exchange {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px dashed #cbded6;
}

.handoff-exchange:first-child {
  padding-top: 0;
  border-top: 0;
}

.role-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.muted-tab {
  opacity: 0.68;
}

.rich-role-desk {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: start;
  overflow: hidden;
  border: 1px solid #bed2ca;
  background:
    linear-gradient(135deg, rgba(20, 75, 62, 0.08), transparent 36%),
    #ffffff;
}

.role-main,
.role-side,
.role-info-grid,
.role-evidence-actions {
  display: grid;
  gap: 12px;
}

.role-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--badge-soft-border);
  background: var(--badge-soft-bg);
  color: var(--badge-soft-fg);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.role-brief-note {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.role-output-panel {
  padding: 16px;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: var(--surface-dark);
  color: #ffffff;
}

.role-output-panel .eyebrow,
.role-output-panel p {
  color: #ffffff;
}

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

.role-prompt-block,
.role-side-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
}

.role-prompt-block h3,
.role-side-block h3 {
  margin-bottom: 8px;
}

.role-prompt-block ul,
.role-side-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.role-card-preview .asset-img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: top center;
  background: #f8faf7;
}

.role-visual-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  min-height: 240px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--surface-dark) 0%, #154d42 62%, #247b62 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.role-visual-card.has-media {
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.role-visual-media {
  overflow: hidden;
  display: grid;
  min-height: 210px;
  place-items: center;
  border-radius: 7px;
  background: #f7faf8;
}

.role-visual-media .asset-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.role-visual-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.role-visual-card h3,
.role-visual-card p {
  color: #ffffff;
}

.role-visual-card .tag {
  border-color: var(--badge-soft-border);
  color: var(--badge-soft-fg);
  background: var(--badge-soft-bg);
}

.role-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.role-visual-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.role-visual-owner .avatar {
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.role-visual-owner span {
  display: grid;
  min-width: 0;
}

.role-visual-owner strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-visual-owner small {
  color: #dcece6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-visual-top > small {
  color: var(--control-inverse-fg);
  font-weight: 800;
  text-transform: uppercase;
}

.role-evidence-actions {
  grid-template-columns: 1fr;
  align-items: start;
}

.role-evidence-route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid #d8e3dc;
  border-radius: 6px;
  background: #ffffff;
}

.role-evidence-route.has-media {
  grid-template-columns: 72px auto minmax(0, 1fr) auto;
}

.role-evidence-thumb {
  display: block;
  width: 72px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #cbd9d2;
  border-radius: 5px;
  background: #edf3ef;
}

.role-evidence-thumb .asset-image,
.role-evidence-thumb .packet-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}

.role-route-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #ceddd6;
  border-radius: 10px;
  background: #f5f9f7;
}

.role-route-panel > p {
  margin: 0;
  color: var(--muted);
}

.role-route-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.role-route-heading > div {
  display: grid;
  gap: 3px;
}

.role-route-heading h3 {
  margin: 0;
}

.role-route-heading > span {
  padding: 5px 9px;
  border: 1px solid var(--badge-soft-border);
  border-radius: 999px;
  background: var(--badge-soft-bg);
  color: var(--badge-soft-fg);
  font-size: 0.78rem;
  font-weight: 800;
}

.role-evidence-number,
.packet-route-number {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  border: 2px solid var(--role-accent, #247b62);
  background: var(--badge-strong-bg);
  color: var(--badge-strong-fg);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.role-evidence-cue {
  color: #3b5148 !important;
}

.role-evidence-route div {
  display: grid;
  gap: 3px;
}

.role-evidence-route small {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-evidence-route strong {
  line-height: 1.2;
}

.role-evidence-route span:not(.role-evidence-number) {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.role-evidence-route .packet-cover-top span {
  color: var(--packet-accent);
}

.role-evidence-route .role-evidence-number,
.packet-route-card .packet-route-number {
  color: var(--badge-strong-fg);
}

.role-evidence-route .button {
  min-height: 36px;
  padding: 7px 10px;
}

.packet-route-card {
  position: relative;
}

.packet-route-number {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  background: var(--badge-strong-bg);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.88);
}

.link-button {
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.slt-card {
  display: grid;
  justify-items: start;
  min-height: 230px;
}

.slt-card .avatar {
  width: 86px;
  height: 86px;
  border-radius: 10px;
}

.workroom-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
  overflow: visible;
  padding: 8px 0 10px;
}

.room-tab {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 3px 12px;
  align-items: start;
  min-width: 0;
  min-height: 102px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.room-tab .room-icon {
  grid-row: 1 / 3;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 5px;
  color: #ffffff;
  background: #e9f1ec;
  font-weight: 800;
  overflow: hidden;
}

.room-tab .room-icon::before {
  content: attr(data-initial);
}

.room-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.room-tab.active {
  border-color: var(--green);
  background:
    linear-gradient(135deg, rgba(245, 191, 83, 0.18), transparent 54%),
    #123d35;
  color: #ffffff;
}

.room-tab.active small {
  color: rgba(255, 255, 255, 0.78);
}

.room-tab strong {
  padding-top: 4px;
  font-size: 1rem;
}

.room-tab small {
  color: var(--muted);
  line-height: 1.35;
}

.room-tab.active .room-icon {
  color: #123d35;
  background: rgba(255, 255, 255, 0.95);
}

.room-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 75, 62, 0.06), transparent 42%),
    #ffffff;
  box-shadow: var(--shadow);
}

.room-head-visual {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 10px;
  background: #eef5f1;
}

.room-icon.large {
  width: 138px;
  height: 138px;
}

.room-head-copy > h2 {
  margin-bottom: 6px;
}

.room-head-copy > p {
  max-width: 830px;
}

.room-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.room-guide-card {
  padding: 12px 14px;
  border: 1px solid #d8e4de;
  border-radius: 7px;
  background: rgba(246, 250, 247, 0.9);
}

.room-guide-card h3 {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 0.92rem;
}

.room-guide-card p,
.room-guide-card ul {
  margin: 0;
  line-height: 1.45;
}

.room-guide-card ul {
  display: grid;
  gap: 3px;
  padding-left: 18px;
}

.room-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.room-metrics span {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7faf7;
  color: var(--muted);
}

.room-metrics strong {
  color: var(--green);
}

.room-filter-stack {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  margin-bottom: 16px;
  padding: 14px;
}

.room-filter-stack .filter-row,
.room-filter-stack .channel-bar {
  justify-content: flex-start;
}

.workroom-show-more {
  display: flex;
  justify-content: center;
  padding: 18px 0 6px;
}

.channel-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--control-disabled-border);
  border-radius: 4px;
  color: var(--ink);
  background: var(--control-bg);
  cursor: pointer;
}

.chip.active {
  border-color: var(--control-inverse-bg);
  color: var(--control-inverse-fg);
  background: var(--control-inverse-bg);
}

.chip small {
  margin-left: 5px;
  opacity: 0.78;
}

.document-preview {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 18px;
  border-radius: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), #203d52);
  text-align: center;
}

.document-preview span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-weight: 800;
}

.asset-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 4px;
  background: #222;
}

.asset-audio {
  width: 100%;
}

.asset-audio-wrap {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid #c9d9d1;
  border-radius: 6px;
  background: linear-gradient(135deg, #f4faf6, #eef4f7);
}

.asset-embed {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #ffffff;
}

.asset-embed.audio-embed {
  min-height: 112px;
  height: 112px;
}

.asset-embed.interactive-embed {
  min-height: 520px;
}

.admin-grid {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

.operator-console {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #bdd7cb;
  border-left: 6px solid var(--green);
  border-radius: 6px;
  background: #f6fbf8;
}

.educator-publish {
  background:
    linear-gradient(135deg, rgba(21, 83, 66, 0.08), rgba(245, 198, 82, 0.12)),
    #ffffff;
}

.admin-browser-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid #d6e4dc;
  border-left: 6px solid var(--green);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 74, 60, 0.07);
}

.admin-browser-state h2 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.admin-browser-state p {
  max-width: 88ch;
  margin: 0;
  color: var(--muted);
}

.admin-state-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-state-copy .eyebrow {
  margin: 0;
}

.admin-browser-state.warning {
  border-left-color: #c94b38;
  background: #fffaf7;
}

.admin-browser-state.course-position {
  border-left-color: #2e718b;
  background: #f6fafc;
}

.admin-browser-state.clean {
  background: #f9fcfa;
}

.browser-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.browser-state-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #ead7cf;
  border-radius: 6px;
  background: #ffffff;
}

.browser-state-grid strong {
  display: block;
  color: #9f3427;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.browser-state-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.course-position-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-position-grid div {
  border-color: #cbdce4;
}

.course-position-grid strong {
  color: var(--green);
}

.admin-state-actions {
  align-items: stretch;
  justify-content: flex-start;
}

.admin-state-actions .button {
  flex: 0 1 280px;
  min-width: 0;
  white-space: normal;
}

.operator-console-head,
.release-control-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 16px;
  align-items: start;
}

.operator-console-head h2 {
  margin-bottom: 6px;
  font-size: 1.7rem;
}

.operator-console-head p {
  max-width: 82ch;
  color: var(--muted);
}

.case-release-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.admin-release-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-release-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d9e7df;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-release-steps span {
  display: grid;
  grid-row: span 2;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
}

.admin-release-steps strong {
  color: var(--ink);
  font-size: 1rem;
}

.admin-release-steps small {
  color: var(--muted);
  line-height: 1.35;
}

.case-release-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #d8e4dc;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.case-release-card:hover,
.case-release-card.selected {
  border-color: #4d8c76;
  box-shadow: 0 6px 18px rgba(35, 74, 60, 0.1);
}

.case-release-card.live {
  border-color: var(--green);
  background: #edf8f1;
}

.case-release-card.selected {
  outline: 3px solid rgba(245, 198, 82, 0.35);
}

.case-release-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: #e9f1ed;
  color: var(--green);
  font-weight: 900;
}

.case-release-card.live .case-release-number {
  background: var(--green);
  color: #ffffff;
}

.case-release-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.case-release-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-release-main small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-release-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f4f1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.case-release-card.live .case-release-state {
  background: var(--green);
  color: #ffffff;
}

.case-release-card.selected:not(.live) .case-release-state {
  background: var(--gold);
  color: #26332e;
}

.educator-publish-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 14px;
  align-items: stretch;
}

.publish-primary-card,
.publish-status-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d5e7dd;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.publish-primary-card label {
  margin-bottom: 0;
}

.compact-select-label {
  max-width: 420px;
}

.fallback-release-select {
  padding-top: 4px;
}

.fallback-release-select summary {
  width: max-content;
  cursor: pointer;
  color: var(--green);
  font-weight: 800;
}

.fallback-release-select label {
  margin-top: 10px;
}

.publish-primary-card select {
  min-height: 48px;
  font-size: 1rem;
  font-weight: 800;
}

.publish-status-card h3 {
  margin: 0;
  color: var(--green);
}

.setup-detail-drawer {
  margin-top: 2px;
}

.setup-detail-drawer summary {
  width: max-content;
  cursor: pointer;
  color: var(--green);
  font-weight: 800;
}

.setup-detail-drawer .release-readiness-grid {
  margin-top: 10px;
}

.publish-actions {
  justify-content: flex-start;
}

.publish-actions [data-publish-release] {
  min-height: 52px;
  padding-inline: 22px;
  background: #0f5b43;
  font-size: 1.02rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 91, 67, 0.18);
}

.admin-advanced-tools {
  padding: 12px 14px;
  border: 1px solid #d9e6df;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-advanced-tools summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 800;
}

.admin-advanced-tools[open] {
  background: #ffffff;
}

.admin-main-drawer {
  margin-bottom: 16px;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #ffffff;
}

.admin-main-drawer > summary {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 900;
}

.admin-main-drawer[open] > summary {
  border-bottom: 1px solid #e2ebe5;
}

.admin-main-drawer > :not(summary) {
  margin: 16px;
}

.admin-maintenance-drawer {
  opacity: 0.92;
}

.admin-maintenance-drawer > summary {
  color: var(--muted);
}

details:not([open]) > :not(summary) {
  display: none !important;
}

.admin-technical-panel {
  background: #fbfcfa;
}

.admin-technical-panel > details > summary {
  cursor: pointer;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-panel.nested {
  margin: 0;
  box-shadow: none;
}

.release-live-card,
.release-package-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
}

.release-live-card {
  display: grid;
  gap: 5px;
}

.live-status-pill {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-live-card span,
.release-live-card small,
.release-package-summary p {
  color: var(--muted);
}

.release-live-card strong,
.release-package-summary h3 {
  color: var(--green);
  font-size: 1.15rem;
}

.operator-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.operator-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
}

.operator-step span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  color: #ffffff;
  background: #6b756e;
  font-weight: 800;
}

.operator-step.active span {
  background: var(--green);
}

.operator-step.attention span {
  background: #b06a00;
}

.operator-step small {
  color: var(--muted);
}

.release-control-strip {
  padding-top: 12px;
  border-top: 1px solid #d9e6df;
}

.release-console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.preflight-result {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
}

.preflight-result.ready {
  border-color: #b8dccd;
  background: #f2faf6;
}

.preflight-result.attention {
  border-color: #efc6bd;
  background: #fff7f4;
}

.preflight-result strong {
  color: var(--ink);
}

.preflight-result span {
  color: var(--muted);
  font-size: 0.92rem;
}

.preflight-result ul {
  margin: 4px 0 0 18px;
  color: var(--muted);
}

.release-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.release-readiness-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-readiness-grid div {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid #d9e6df;
  border-radius: 5px;
  background: #ffffff;
}

.release-readiness-grid strong {
  color: var(--green);
  font-size: 1.45rem;
}

.release-readiness-grid span {
  color: var(--muted);
}

.admin-wide {
  grid-column: 1 / -1;
}

.educator-editor {
  display: grid;
  gap: 16px;
  border-left: 6px solid #226c84;
}

.admin-surface-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.surface-tab {
  display: grid;
  gap: 4px;
  min-width: 136px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.surface-tab strong {
  font-size: 0.95rem;
}

.surface-tab small {
  color: var(--muted);
}

.surface-tab.active {
  border-color: var(--green);
  background: #eaf5ef;
  box-shadow: inset 0 -3px 0 var(--green);
}

.admin-surface-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.surface-helper {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d5e7dd;
  border-radius: 7px;
  background: #f3faf6;
}

.surface-helper h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--green);
}

.surface-item-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.surface-edit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.surface-edit-card h3 {
  margin: 2px 0 4px;
}

.surface-edit-card p {
  color: var(--muted);
}

.surface-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 190px;
}

.admin-grid > section,
.admin-grid > aside {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-panel label {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  width: 100%;
}

.admin-metadata-fields {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
}

.admin-metadata-fields legend {
  padding: 0 6px;
  color: var(--green);
  font-weight: 800;
}

.admin-advanced-fields {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px dashed #afc2b8;
  border-radius: 6px;
  background: #f7f9f7;
}

.admin-advanced-fields summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.admin-packet-builder {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #b9d8ca;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(27, 93, 77, 0.05), transparent 48%), #fbfdfb;
}

.admin-packet-builder legend {
  padding: 0 8px;
  color: var(--green);
  font-weight: 900;
}

.admin-type-builder {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #b9d8ca;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(27, 93, 77, 0.05), transparent 48%), #fbfdfb;
}

.admin-type-builder > legend,
.admin-team-plan-grid fieldset > legend {
  padding: 0 8px;
  color: var(--green);
  font-weight: 900;
}

.admin-team-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-team-plan-grid fieldset {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.admin-team-role-plan,
.admin-team-seat,
.admin-handoff-builder,
.admin-handoff-row {
  display: grid;
  gap: 12px;
}

.admin-team-seat,
.admin-handoff-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbf9;
}

.admin-team-seat > fieldset,
.admin-handoff-builder {
  padding: 10px;
  border: 1px solid #d9e5df;
  border-radius: 6px;
  background: #ffffff;
}

.admin-check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  margin: 0 0 8px !important;
}

.admin-check-row input {
  width: auto !important;
  margin-top: 2px;
}

.admin-check-row span {
  display: grid;
  gap: 2px;
}

.admin-check-row small {
  color: var(--muted);
  line-height: 1.35;
}

.admin-workroom-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 10px;
}

.admin-resource-workroom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-resource-workroom-choice {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.admin-resource-workroom-choice .form-grid.compact {
  gap: 8px;
  margin-top: 8px;
}

.admin-resource-asset-summary {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #cfe0d7;
  border-radius: 7px;
  background: #f5faf7;
}

.admin-resource-new-asset {
  padding: 12px 14px;
  border: 1px dashed #9fb9ac;
  border-radius: 7px;
  background: #f8fbf9;
}

.admin-resource-new-asset summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 850;
}

.admin-link-picker {
  display: grid;
  gap: 8px;
}

.admin-link-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  max-height: 320px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.admin-link-choice-grid [hidden] {
  display: none !important;
}

.admin-builder-section {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-builder-section-head,
.admin-comment-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-builder-section-head p {
  margin: 3px 0 0;
}

.admin-comment-list {
  display: grid;
  gap: 10px;
}

.admin-comment-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.admin-packet-source-list {
  display: grid;
  gap: 14px;
}

.admin-packet-source-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.admin-packet-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-packet-source-head div {
  display: grid;
  gap: 2px;
}

.admin-packet-source-head span {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-object-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf7;
}

.admin-placement-summary {
  display: grid;
  gap: 14px;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid #cfe2d8;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(27, 93, 77, 0.05), transparent 45%),
    #ffffff;
}

.admin-placement-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  border-bottom: 1px solid #e2ebe6;
  padding-bottom: 10px;
}

.admin-placement-head h3 {
  margin: 0;
}

.admin-placement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-placement-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
}

.admin-placement-grid strong,
.admin-route-list span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-placement-grid p {
  margin: 0;
  color: var(--muted);
}

.admin-route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.admin-route-list article {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid #dfe8e2;
  border-radius: 7px;
  background: #f8fbf9;
}

.admin-route-list small {
  color: var(--muted);
}

.audit-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.audit-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfa;
}

.audit-row span,
.audit-row small {
  color: var(--muted);
}

.audit-row small {
  word-break: break-word;
}

.runtime-endpoints {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.runtime-endpoints small {
  display: block;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7faf7;
  color: var(--muted);
  word-break: break-word;
}

.preflight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.preflight-card {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 5px;
  background: #fffaf0;
}

.preflight-card.ok {
  border-left-color: var(--green);
  background: #f3faf6;
}

.preflight-card strong {
  color: var(--green);
  text-transform: uppercase;
}

.preflight-card.warn strong {
  color: #9b5d00;
}

.preflight-card small {
  color: var(--muted);
}

.preflight-issues {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.file-explorer {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(260px, 0.31fr) minmax(0, 1.69fr);
  gap: 0;
  min-height: 62vh;
  overflow: hidden;
  border: 1px solid #d7ded8;
  border-radius: 8px;
  background: #ffffff;
}

.folder-pane {
  display: grid;
  gap: 2px;
  min-height: 62vh;
  padding: 10px 8px;
  border-right: 1px solid #d7ded8;
  background: #f2f3f1;
}

.folder-pane-title {
  display: grid;
  gap: 2px;
  padding: 8px 9px 10px;
  border-bottom: 1px solid var(--line);
}

.folder-tile {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 1px 8px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  text-align: left;
}

.folder-tile strong,
.folder-tile small {
  grid-column: 2;
}

.folder-icon {
  grid-row: 1 / 3;
  display: grid;
  width: 21px;
  height: 16px;
  place-items: center;
  border-radius: 3px;
  color: transparent;
  background: #e4b64b;
  font-weight: 800;
}

.folder-icon::before {
  content: "";
  width: 16px;
  height: 5px;
  margin-top: -11px;
  margin-left: -5px;
  border-radius: 2px 2px 0 0;
  background: #f1cc70;
}

.folder-tile.active {
  border-color: var(--blue);
  background: #eaf2fb;
  box-shadow: none;
}

.file-results-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.file-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid #d9ded9;
  border-radius: 6px;
  background: linear-gradient(#ffffff, #f7f8f6);
}

.file-toolbar h2 {
  margin: 0;
  font-size: 1.35rem;
}

.file-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.file-toolbar-meta span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.82rem;
}

.file-type-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.file-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.file-table-head {
  display: grid;
  grid-template-columns: 38px minmax(210px, 1.5fr) minmax(90px, 0.42fr) minmax(120px, 0.58fr) minmax(130px, 0.7fr) minmax(92px, 0.38fr) minmax(170px, auto);
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #f3f4f2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.file-row {
  display: grid;
  grid-template-columns: 38px minmax(210px, 1.5fr) minmax(90px, 0.42fr) minmax(120px, 0.58fr) minmax(130px, 0.7fr) minmax(92px, 0.38fr) minmax(170px, auto);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  background: #ffffff;
  font-size: 0.95rem;
}

.file-row:hover {
  border-color: transparent;
  border-bottom-color: #b9d3ed;
  background: #eef6ff;
}

.file-row.current-request-item:hover {
  border-color: var(--current-request-line);
  background: linear-gradient(90deg, rgba(95, 146, 124, 0.16), #eef7f3 24%, #f6fbf8);
}

.file-row:focus-within {
  outline: 2px solid #2b74d6;
  outline-offset: -2px;
}

.file-icon {
  display: grid;
  width: 32px;
  height: 38px;
  place-items: center;
  border-radius: 3px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.64rem;
  font-weight: 800;
}

.file-icon::before {
  content: attr(data-initial);
}

.file-icon.small {
  width: 34px;
  height: 34px;
}

.file-row-thumb,
.compact-file-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid #cbd7d1;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(20, 56, 45, 0.1);
}

.file-row-thumb {
  width: 38px;
  height: 44px;
}

.compact-file-thumb {
  width: 42px;
  height: 50px;
}

.file-row-thumb .asset-image,
.compact-file-thumb .asset-image,
.file-row-thumb .packet-cover,
.compact-file-thumb .packet-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}

.file-name-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.file-name-cell strong,
.file-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name-cell small {
  color: var(--muted);
}

.file-trace-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
  padding-top: 1px;
}

.file-trace-line span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.file-trace-line button {
  max-width: 140px;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid #cfe1d8;
  border-radius: 999px;
  background: #f4faf7;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-trace-line button:hover {
  border-color: var(--green);
  background: #e5f4ed;
}

.file-kind-cell {
  color: var(--green);
  font-weight: 800;
}

.file-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.room-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.workroom-board.scaled {
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.workroom-column {
  display: grid;
  gap: 14px;
}

.workroom-post-list,
.workroom-media-grid {
  display: grid;
  gap: 12px;
}

.workroom-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.workroom-spotlight-card,
.workroom-file-card,
.workroom-post-card,
.workroom-media-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfa;
  overflow: hidden;
}

.workroom-spotlight-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
}

.workroom-spotlight-media {
  min-height: 170px;
  background: #e7eee9;
}

.workroom-spotlight-media .asset-image,
.workroom-post-image .asset-image,
.workroom-spotlight-media .packet-cover {
  min-height: 0;
  height: 100%;
}

.workroom-card-copy,
.workroom-media-card > .workroom-media-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.workroom-card-copy small,
.workroom-file-card small,
.workroom-post-author small,
.workroom-media-card small {
  color: var(--muted);
}

.workroom-card-copy h3,
.workroom-file-card h3,
.workroom-post-card h3,
.workroom-media-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.workroom-file-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.workroom-file-card p,
.workroom-post-card p,
.workroom-media-card p {
  margin: 0;
  color: var(--muted);
}

.workroom-post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: start;
  padding: 14px;
  cursor: pointer;
}

.workroom-post-card:hover,
.workroom-file-card:hover,
.workroom-spotlight-card:hover,
.workroom-media-card:hover {
  border-color: #b9cec6;
  box-shadow: 0 8px 20px rgba(21, 50, 39, 0.08);
}

.workroom-post-author {
  display: flex;
  gap: 9px;
  align-items: center;
}

.workroom-post-author span {
  display: grid;
}

.workroom-post-main {
  display: grid;
  gap: 9px;
}

.workroom-post-thumb {
  height: 120px;
  border-radius: 5px;
  overflow: hidden;
  background: #e7eee9;
}

.workroom-post-thumb .asset-image {
  min-height: 0;
  height: 100%;
}

.workroom-linked-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workroom-attachment-pill {
  display: grid;
  gap: 2px;
  max-width: 250px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #c8d9d2;
  border-radius: 5px;
  background: #f5faf7;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.workroom-attachment-pill:hover {
  border-color: var(--green);
  background: #eef7f2;
}

.workroom-attachment-pill small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.workroom-attachment-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.workroom-media-card .asset-video {
  border-radius: 0;
}

.workroom-media-card {
  background: #ffffff;
}

.workroom-media-experience {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e9f0eb;
}

.workroom-media-experience > .packet-cover {
  min-height: 230px;
}

.workroom-media-experience .asset-video,
.workroom-media-experience .asset-embed {
  border-radius: 0;
}

.workroom-media-experience .asset-embed.interactive-embed {
  min-height: 470px;
}

.workroom-media-sharer {
  display: flex;
  gap: 9px;
  align-items: center;
}

.workroom-media-context {
  display: grid;
  gap: 10px;
  align-items: start;
}

.workroom-media-context.has-share-image {
  grid-template-columns: minmax(0, 1fr) 94px;
}

.workroom-media-context > div:first-child {
  display: grid;
  gap: 6px;
}

.workroom-media-share-image {
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #e7eee9;
}

.workroom-media-share-image .asset-image {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.workroom-media-sharer span {
  display: grid;
}

.workroom-media-sharer small {
  font-size: 0.72rem;
  line-height: 1;
}

.workroom-media-sharer strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.workroom-media-opening {
  color: var(--ink) !important;
  font-size: 0.96rem;
}

.workroom-media-fast-route,
.evidence-card-fast-route {
  padding: 10px 12px;
  border: 1px solid #e2c87a;
  border-left: 4px solid var(--gold);
  border-radius: 5px;
  background: #fff9e8;
  color: #2f4138 !important;
  line-height: 1.45;
}

.workroom-media-fast-route {
  margin-block: 2px 0;
}

.evidence-card-fast-route {
  margin: 0;
}

.workroom-media-use {
  padding: 9px 10px;
  border-left: 3px solid var(--green);
  background: #edf6f1;
}

.workroom-media-fallback {
  padding-top: 7px;
  border-top: 1px dashed var(--line);
}

.media-slide-experience {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #20372f;
}

.media-slide-feature,
.media-slide-strip figure {
  overflow: hidden;
  margin: 0;
  border-radius: 4px;
  background: #ffffff;
}

.media-slide-feature .asset-image,
.media-slide-strip .asset-image {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.media-slide-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.media-slide-strip figure {
  position: relative;
}

.media-slide-strip figure span {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 6px;
  padding: 3px 6px;
  border-radius: 3px;
  color: #ffffff;
  background: rgba(17, 44, 35, 0.84);
  font-size: 0.68rem;
  font-weight: 800;
}

.media-slide-count {
  position: absolute;
  right: 17px;
  bottom: 17px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 44, 35, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
}

.media-slide-experience.expanded .media-slide-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-embedded-session {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 16px;
  border: 1px solid #cad9d2;
  border-radius: 8px;
  background: #f4f8f6;
}

.news-embedded-session .packet-section-head {
  margin: 0;
}

.news-embedded-session-actions {
  margin-top: 2px;
}

.media-experience-missing {
  display: grid;
  gap: 5px;
  min-height: 140px;
  place-content: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.compact-file-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.compact-file-card strong,
.compact-file-card small {
  display: block;
}

.file-record-drawer {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.file-reader-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 4px 2px 8px;
}

.file-reader-header h2 {
  margin-bottom: 8px;
}

.file-reader-header .article-deck {
  max-width: 880px;
  margin: 0 0 14px;
}

.file-reader-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-bottom: 4px;
}

.file-reader-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}

.file-reader-guide > div {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #d2e0d9;
  border-left: 4px solid var(--green);
  border-radius: 7px;
  background: #f7faf8;
}

.file-reader-guide small {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.file-reader-guide p {
  margin: 0;
}

.document-reader {
  overflow: hidden;
  border: 1px solid #c9d8d1;
  border-radius: 9px;
  background: #e9f0ec;
  box-shadow: 0 14px 34px rgba(22, 55, 45, 0.12);
}

.packet-inline-source > p {
  margin: 0;
  padding: 12px 16px;
  background: #fff;
}

.file-inline-artifact {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #cbdad3;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(24, 55, 45, 0.07);
}

.file-inline-artifact > :first-child {
  margin-top: 0;
}

.file-inline-artifact > :last-child {
  margin-bottom: 0;
}

.document-reader-frame {
  display: block;
  width: 100%;
  height: min(76vh, 900px);
  min-height: 620px;
  border: 0;
  background: #eef4f0;
}

.document-reader.image-only,
.document-reader.image-reader {
  padding: 18px;
}

.document-reader.image-only .asset-image {
  display: block;
  width: min(920px, 100%);
  max-height: 74vh;
  margin: 0 auto;
  object-fit: contain;
  object-position: top center;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(25, 57, 47, 0.12);
}

.document-preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.document-preview-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8e1dc;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(24, 54, 45, 0.08);
}

.document-preview-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: top center;
  background: #ffffff;
}

.document-preview-gallery figcaption {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.file-reader-shelves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.file-reader-details {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfa;
}

.file-reader-details > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.file-reader-details > summary span {
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e1ede7;
  text-align: center;
}

.file-reader-details-body,
.file-reader-linked-list {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.file-reader-details-body .drawer-block {
  background: #ffffff;
}

.file-reader-linked-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 9px;
  border: 1px solid #d9e2dd;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.file-reader-linked-row > span:first-child {
  display: block;
  width: 56px;
  height: 48px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf3ef;
}

.file-reader-linked-row .asset-image,
.file-reader-linked-row .packet-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}

.file-reader-linked-row small,
.file-reader-linked-row strong {
  display: block;
}

.file-reader-linked-row small {
  color: var(--muted);
}

.file-reader-linked-row b {
  color: var(--green);
  font-size: 0.82rem;
}

.empty-state {
  color: var(--muted);
  background: #fbfcfa;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: 100vw;
  min-width: 0;
  max-width: 100vw;
  height: 100vh;
  padding: 24px clamp(24px, 3vw, 64px) 56px;
  overflow-y: auto;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 36px rgba(16, 36, 30, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
  outline: 0;
  transition: transform 0.18s ease, visibility 0s linear 0.18s;
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.drawer.compact {
  width: min(78vw, 1240px);
}

.admin-drawer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d9e6df;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(35, 74, 60, 0.08);
}

.admin-drawer-toolbar strong,
.admin-drawer-toolbar small {
  display: block;
}

.admin-drawer-toolbar small {
  color: var(--muted);
}

#drawer-content {
  max-width: 1840px;
  margin: 0 auto;
  padding-top: 22px;
}

[data-chat-loading][hidden] { display: none; }

.chat-frame {
  display: block;
  width: 100%;
  height: 72vh;
  min-height: 480px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(20, 28, 24, 0.38);
}

.drawer-toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: min(1840px, 100%);
  margin: 0 auto;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.drawer-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.drawer-back,
.drawer-close,
.drawer-size-toggle {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.drawer-back {
  color: var(--green);
  font-weight: 700;
}

.article-drawer,
.packet-drawer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.packet-drawer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 38%);
  gap: 28px;
  align-items: start;
}

.direct-content-packet .packet-drawer-head,
.direct-content-packet .packet-canvas {
  grid-template-columns: minmax(0, 1fr);
}

.direct-content-packet .packet-canvas-actions {
  position: static;
}

.packet-drawer-title {
  display: grid;
  gap: 12px;
  align-content: start;
}

.packet-drawer-cover {
  position: sticky;
  top: 70px;
}

.packet-drawer-cover .asset-image,
.packet-drawer-cover .asset-video,
.packet-drawer-cover .asset-document,
.packet-drawer-cover .asset-link,
.packet-drawer-cover .packet-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.packet-drawer-cover .packet-cover {
  min-height: 300px;
}

.home-feature-drawer {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.drawer-image-frame {
  display: grid;
  justify-items: start;
  gap: 8px;
  width: min(100%, 560px);
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9f6;
}

.drawer-image-frame .asset-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 320px;
  border-radius: 4px;
  object-fit: contain;
  background: #edf2ef;
}

.drawer-image-frame.is-expanded {
  width: min(100%, 1200px);
}

.drawer-image-frame.is-expanded .asset-image {
  max-height: min(72vh, 840px);
  object-fit: contain;
}

.drawer-image-toggle {
  min-width: 132px;
}

/* Defensive fallback for any future drawer renderer that places a raw image at article level. */
#drawer-content > .asset-image,
#drawer-content > article > .asset-image {
  width: min(100%, 560px);
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.article-deck {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.packet-drawer .article-deck {
  font-weight: 400;
  line-height: 1.6;
}

.signal-card-preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
}

.signal-card-preview .asset-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signal-card > p:not(.eyebrow) {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-body {
  display: grid;
  gap: 8px;
}

.article-body p {
  margin-bottom: 0;
}

.pull-quotes {
  display: grid;
  gap: 10px;
  padding: 12px 0 12px 16px;
  border-left: 4px solid var(--green);
}

.pull-quotes blockquote {
  margin: 0;
  color: #143f34;
  font-weight: 700;
}

.regional-news-article {
  width: min(100%, 1120px);
  margin-inline: auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid #c9c4ba;
  background: #fffdfa;
  box-shadow: 0 16px 40px rgba(41, 37, 31, 0.12);
}

.regional-news-clipping {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 18px;
  color: #4f5a56;
  background: #eef2ef;
  border-bottom: 1px solid #d9dfdb;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.regional-news-masthead {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 25px 32px 19px;
  color: #151515;
  border-bottom: 5px solid #171717;
  font-family: Georgia, "Times New Roman", serif;
}

.regional-news-masthead div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.regional-news-masthead small {
  font-size: 1rem;
  font-style: italic;
}

.regional-news-masthead strong {
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.regional-news-masthead p {
  margin: 0;
  color: #615e58;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.regional-news-nav {
  display: flex;
  gap: 22px;
  padding: 9px 32px;
  color: #ffffff;
  background: #1e322c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.regional-news-story {
  width: min(820px, calc(100% - 42px));
  margin: 0 auto;
  padding: 42px 0 54px;
}

.regional-news-section {
  margin: 0 0 10px;
  color: #a0442f;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.regional-news-story h2 {
  max-width: 780px;
  margin: 0;
  color: #151515;
  font: 800 clamp(2.3rem, 5vw, 4.7rem)/0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.regional-news-deck {
  max-width: 760px;
  margin: 20px 0;
  color: #4b4945;
  font: 500 clamp(1.12rem, 2vw, 1.4rem)/1.45 Arial, Helvetica, sans-serif;
}

.regional-news-byline {
  display: flex;
  gap: 12px;
  padding: 12px 0 18px;
  border-top: 1px solid #b9b4aa;
  color: #66615a;
  font-size: 0.86rem;
}

.regional-news-byline strong {
  color: #272522;
}

.regional-news-photo {
  margin: 0 0 28px;
}

.regional-news-photo .asset-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.98);
}

.regional-news-photo figcaption {
  padding: 8px 0;
  color: #6e6961;
  border-bottom: 1px solid #d4d0c8;
  font-size: 0.78rem;
}

.regional-news-body {
  width: min(680px, 100%);
  margin: 0 auto;
  color: #262421;
  font: 1.04rem/1.72 Georgia, "Times New Roman", serif;
}

.regional-news-body p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.08em 0 0;
  color: #a0442f;
  font-size: 3.9rem;
  font-weight: 800;
  line-height: 0.78;
}

.regional-news-body blockquote {
  margin: 30px -48px;
  padding: 20px 38px;
  color: #1e322c;
  border-top: 4px solid #1e322c;
  border-bottom: 1px solid #989e99;
  font: 800 1.55rem/1.35 Georgia, "Times New Roman", serif;
}

.regional-news-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  color: #e9eee9;
  background: #1e322c;
  font-size: 0.82rem;
}

.regional-news-article > .tag-row {
  padding: 14px 32px 20px;
}

.artifact-view {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d5ddd7;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: inset 4px 0 0 #2d7a63;
}

/* The file's form should come from its source, not one repeated note card. */
.artifact-style-correspondence {
  gap: 0;
  border-radius: 3px;
  border-top: 6px solid #245c50;
  box-shadow: 0 7px 20px rgba(24, 55, 45, 0.08);
}

.artifact-style-correspondence .artifact-meta {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #dae3dd;
}

.artifact-style-correspondence .artifact-meta div {
  display: flex;
  gap: 18px;
  padding: 5px 0;
  border: 0;
  background: transparent;
}

.artifact-style-correspondence .artifact-meta dt {
  width: 82px;
  flex: none;
}

.artifact-style-correspondence .artifact-section {
  padding: 18px 2px;
  border: 0;
  border-bottom: 1px solid #e1e8e3;
  background: transparent;
}

.artifact-style-field {
  gap: 0;
  border-color: #d7ccb3;
  background: repeating-linear-gradient(#fffdf7 0 31px, #e5e9df 32px);
  box-shadow: inset 6px 0 #b66c43;
}

.artifact-style-field .artifact-meta div,
.artifact-style-field .artifact-section {
  border: 0;
  border-bottom: 1px dashed #cbbfa8;
  border-radius: 0;
  background: rgba(255, 253, 247, 0.82);
}

.artifact-style-field .artifact-section {
  padding: 20px 10px;
}

.artifact-style-figures {
  border-color: #afc8b9;
  background: #f6faf6;
  box-shadow: inset 6px 0 #366d55;
}

.artifact-style-figures .artifact-section {
  border-color: #d3e3d8;
  background: #fff;
}

.artifact-style-report {
  padding: 25px;
  border-radius: 2px;
  border-color: #d8d8cf;
  box-shadow: 0 8px 22px rgba(24, 55, 45, 0.08);
}

.artifact-style-report .artifact-section {
  border: 0;
  border-top: 1px solid #cdd8d0;
  border-radius: 0;
  background: transparent;
}

.packet-content {
  display: grid;
  gap: 18px;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #cddfd7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(27, 93, 77, 0.04), transparent 160px),
    #ffffff;
}

.packet-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2ebe6;
}

.packet-section-head strong {
  display: block;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.packet-section-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.packet-route-strip {
  display: grid;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid #bfd9cb;
  border-top: 8px solid var(--green);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(27, 93, 77, 0.08), transparent 46%),
    #f5fbf7;
}

.packet-route-intro strong {
  color: var(--green);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.packet-route-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.packet-route-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.packet-route-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: 1fr max-content;
  gap: 14px 16px;
  align-items: stretch;
  min-height: 176px;
  padding: 14px;
  border: 1px solid #d8e5de;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.packet-route-thumb {
  grid-row: 1 / span 2;
  width: 100%;
  min-height: 148px;
  height: 100%;
  max-height: 208px;
  object-fit: cover;
  border-radius: 6px;
  background: #e8eee9;
}

.route-doc-thumb,
.route-audio-thumb,
.route-video-thumb,
.route-generic-thumb {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    #174d41;
}

.route-video-thumb {
  background:
    linear-gradient(135deg, rgba(213, 173, 71, 0.22), transparent 42%),
    var(--surface-dark);
}

.route-audio-thumb {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    #5b355f;
}

.route-doc-thumb span,
.route-audio-thumb span,
.route-video-thumb span,
.route-generic-thumb span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  padding: 6px 10px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.route-doc-thumb strong,
.route-audio-thumb strong,
.route-video-thumb strong {
  max-width: 16ch;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.25;
}

.packet-route-card-copy {
  display: grid;
  align-content: start;
}

.packet-route-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.packet-route-card h3 {
  margin: 0;
  font-size: 1rem;
}

.packet-route-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.packet-route-action {
  grid-column: 2;
  align-self: end;
}

.packet-route-card .button {
  align-self: end;
  justify-self: start;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}

.packet-sender-note {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: #f4faf6;
}

.packet-sender-note p {
  margin: 0;
  color: var(--muted);
}

.packet-time {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f0eb;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.source-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.packet-source-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.packet-source-card.has-direct-action {
  border-color: #b7d8ca;
  box-shadow:
    inset 4px 0 0 var(--green),
    0 1px 0 rgba(0, 0, 0, 0.03);
}

.packet-source-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.packet-source-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.packet-card-open {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.packet-card-open .button {
  min-height: 42px;
  width: fit-content;
  max-width: 100%;
}

.packet-card-label {
  margin: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.packet-source-card p,
.packet-source-card ul {
  margin-bottom: 0;
}

.packet-source-card blockquote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #d5ad47;
  background: #fffaf0;
  color: var(--ink);
  font-weight: 700;
}

.packet-card-note {
  color: var(--muted);
  font-style: italic;
}

.packet-card-note strong {
  color: var(--forest);
  font-style: normal;
}

.packet-source-card ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.packet-source-card .button-row {
  align-self: end;
  margin-top: 4px;
}

.evidence-card-preview {
  overflow: hidden;
  margin: -18px -18px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #eef4ef;
}

.evidence-card-preview .asset-image,
.evidence-card-preview .asset-video,
.evidence-card-preview .document-preview {
  width: 100%;
  min-height: 220px;
  max-height: 340px;
  border-radius: 0;
  object-fit: cover;
}

.evidence-card-preview .asset-audio-wrap {
  min-height: 150px;
  border: 0;
  border-radius: 0;
  align-content: center;
}

.evidence-text-preview,
.evidence-format-preview {
  display: grid;
  min-height: 150px;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--green), #203d52);
}

.evidence-text-preview span,
.evidence-format-preview span {
  color: #f2d27b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evidence-card-body {
  line-height: 1.55;
}

.evidence-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-card-meta span {
  padding: 5px 8px;
  border: 1px solid var(--badge-soft-border);
  border-radius: 999px;
  background: var(--badge-soft-bg);
  color: var(--badge-soft-fg);
  font-size: 0.78rem;
  font-weight: 700;
}

.packet-visual {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border-radius: 6px;
  background: var(--surface-dark);
  color: #ffffff;
  font: 0.92rem/1.45 Consolas, "SFMono-Regular", monospace;
}

.artifact-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.artifact-header h3 {
  margin: 3px 0 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--badge-soft-border);
  border-radius: 999px;
  background: var(--badge-soft-bg);
  color: var(--badge-soft-fg);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.artifact-meta,
.artifact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.artifact-meta div,
.artifact-fields div {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #edf0eb;
  border-radius: 4px;
  background: #fbfcfa;
}

.artifact-meta dt,
.artifact-fields dt {
  color: #5b6660;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.artifact-meta dd,
.artifact-fields dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

.artifact-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe6e1;
  border-radius: 6px;
}

.artifact-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.artifact-table th,
.artifact-table td {
  padding: 10px;
  border-bottom: 1px solid #e6ece8;
  border-right: 1px solid #e6ece8;
  text-align: left;
  vertical-align: top;
}

.artifact-table th {
  background: #eef4f0;
  color: #244f43;
  font-weight: 800;
}

.artifact-table tr:last-child td {
  border-bottom: 0;
}

.artifact-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #edf0eb;
  border-radius: 5px;
  background: #fbfcfa;
}

.artifact-section h4 {
  margin: 0;
}

.artifact-section p {
  margin: 0;
}

.artifact-section ul {
  margin: 0;
  padding-left: 18px;
}

.artifact-section-decision-path {
  gap: 14px;
  padding: 18px;
  border-color: #b9d1c6;
  border-left: 8px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(216, 167, 57, 0.1), transparent 46%),
    #f4f8f6;
}

.artifact-section-decision-path h4 {
  color: var(--green);
  font-size: 1.12rem;
}

.artifact-section-decision-path > p {
  max-width: 80ch;
  color: #334d45;
}

.artifact-section-decision-path .drawer-card-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: decision-path;
}

.artifact-section-decision-path .drawer-mini-card {
  position: relative;
  min-height: 126px;
  padding: 46px 14px 14px;
  border-color: #c8d9d1;
  border-top: 5px solid var(--green);
  background: #ffffff;
  counter-increment: decision-path;
}

.artifact-section-decision-path .drawer-mini-card::before {
  content: counter(decision-path);
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.artifact-section-decision-path .drawer-mini-card strong {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.025em;
}

.artifact-section-decision-path .drawer-mini-card span {
  color: #3f554e;
  line-height: 1.42;
}

@media (max-width: 960px) {
  .artifact-section-decision-path .drawer-card-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .artifact-section-decision-path {
    padding: 15px;
  }

  .artifact-section-decision-path .drawer-card-grid.compact {
    grid-template-columns: 1fr;
  }

  .artifact-section-decision-path .drawer-mini-card {
    min-height: 0;
  }
}

.drawer-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
}

.packet-canvas {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.packet-canvas-actions {
  position: sticky;
  top: 70px;
  display: grid;
  gap: 14px;
}

.packet-canvas-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.packet-canvas-main:only-child {
  grid-column: 1 / -1;
}

.drawer-primary-actions .button-row {
  margin-top: 8px;
}

.drawer-block h3 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.drawer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.drawer-list li strong {
  display: block;
  color: var(--green);
}

.drawer-list li span {
  display: block;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.source-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e4e8e1;
  border-radius: 4px;
  background: #ffffff;
}

.source-row code {
  white-space: normal;
  color: #4f5b55;
  font-size: 0.82rem;
}

.drawer-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.drawer-card-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.drawer-mini-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f6faf7;
}

.drawer-mini-card strong {
  color: var(--green);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.media-drawer .asset-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 260px;
}

.media-drawer-experience {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf3ef;
}

.media-drawer-experience .asset-embed.interactive-embed {
  min-height: min(76vh, 860px);
}

.media-drawer-experience .asset-embed.audio-embed {
  min-height: 112px;
}

.news-direct-reading {
  margin-top: 1.5rem;
}

.news-primary-file > .quiet-button {
  display: inline-block;
  margin-top: 0.75rem;
}

/* Week 2 experience refinements: distinct news, social kōrero, role cards and flexible workrooms. */
.news-slide.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.news-slide.no-media .news-slide-copy {
  width: min(860px, 100%);
  margin: auto;
  padding: 48px 72px;
}

.news-row.no-media {
  grid-template-columns: minmax(0, 1fr) auto;
}

.korero-feed-kicker {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: min(820px, 100%);
  margin: 0 auto 4px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.korero-feed-kicker strong {
  color: var(--green);
}

.feed-list {
  width: min(820px, 100%);
  max-width: none;
  margin: 0 auto;
  gap: 0;
}

.korero-post {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 4px;
  border: 0;
  border-bottom: 1px solid #dfe7e2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.korero-post:last-child {
  border-bottom: 0;
}

.korero-avatar-rail .avatar {
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c8d8d1;
}

.korero-post-body,
.korero-meta span {
  min-width: 0;
}

.korero-meta {
  margin-bottom: 5px;
}

.korero-meta span {
  display: grid;
  gap: 1px;
}

.korero-meta strong {
  font-size: 0.95rem;
}

.korero-meta small {
  color: var(--muted);
}

.korero-post h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.korero-post > .korero-post-body > p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.korero-attachment {
  grid-template-columns: 118px minmax(0, 1fr);
  margin: 12px 0 0;
  border-color: #ceddd6;
  border-radius: 10px;
  background: #f7faf8;
}

.korero-attachment .asset-image,
.korero-attachment .document-preview,
.korero-attachment .asset-video {
  width: 100%;
  height: 92px;
  min-height: 92px;
  border-radius: 0;
}

.korero-attachment .attachment-detail {
  align-self: center;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
}

.korero-attachment .attachment-detail em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.korero-attachment-icon {
  display: grid;
  height: 92px;
  place-items: center;
  padding: 0;
  background: #e8f1ec;
  color: var(--green);
  font-size: 1.5rem;
}

.korero-related-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.korero-related-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #cadbd3;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.korero-related-chip small {
  color: var(--green);
  font-weight: 800;
}

.korero-related-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.korero-room-routes {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.korero-room-routes button {
  padding: 5px 9px;
  border: 1px solid #bfd3c9;
  border-radius: 999px;
  background: #eef6f1;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.korero-social-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 26px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.korero-social-meta button {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.korero-post .comments {
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #f2f6f3;
}

.korero-post .comment p {
  padding: 3px 0;
  background: transparent;
}

.korero-post .comment-summary {
  font-size: 0.82rem;
}

.team-role-separation-note {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: #edf4fb;
}

.team-role-separation-note span {
  color: #3f555f;
}

.rich-role-desk {
  --role-accent: #247b62;
  --role-accent-ink: var(--role-accent-ink-default);
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 0;
  padding: 0;
  border-radius: 12px;
  background: #ffffff;
}

.role-card-strategy {
  --role-accent: #235a7a;
  --role-accent-ink: var(--role-accent-ink-strategy);
}

.role-card-finance {
  --role-accent: #72518a;
  --role-accent-ink: var(--role-accent-ink-finance);
}

.role-card-market {
  --role-accent: #b25a3c;
  --role-accent-ink: var(--role-accent-ink-market);
}

.role-card-operations {
  --role-accent: #247b62;
  --role-accent-ink: var(--role-accent-ink-operations);
}

.role-card-partnerships {
  --role-accent: #9a6a16;
  --role-accent-ink: var(--role-accent-ink-partnerships);
}

.rich-role-desk .role-main {
  gap: 16px;
  min-width: 0;
  padding: 26px;
}

.rich-role-desk .role-side {
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border-left: 1px solid #d7e2dc;
  border-radius: 0;
  background: #f2f7f4;
}

.role-seat-header {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 4px 0 18px;
  border-bottom: 1px solid #dbe5e0;
}

.role-seat-header::before {
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 94px;
  height: 4px;
  border-radius: 999px;
  background: var(--role-accent);
  content: "";
}

.role-seat-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.role-seat-header > p:last-child {
  margin: 0;
  color: var(--muted);
}

.role-identity-line {
  max-width: 72ch;
  color: #263d38 !important;
  font-size: 1.08rem;
  line-height: 1.5;
}

.role-team-context {
  width: fit-content;
  max-width: 74ch;
  padding: 8px 10px;
  border-radius: 5px;
  background: #edf4fb;
  color: #294752 !important;
  font-size: 0.92rem;
}

.role-landed-panel,
.role-decision-panel {
  padding: 15px 16px;
  border: 1px solid #d6e2dc;
  border-radius: 8px;
  background: #f8fbf9;
}

.role-landed-panel p:last-child,
.role-decision-panel h3 {
  margin: 0;
}

.role-decision-panel {
  border-left: 5px solid var(--role-accent);
  background: #ffffff;
}

.role-decision-panel h3 {
  font-size: 1.25rem;
  line-height: 1.35;
}

.role-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-principle {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #d6e2dc;
  border-radius: 8px;
  background: #ffffff;
}

.role-principle ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.role-principle li {
  position: relative;
  padding-left: 24px;
  line-height: 1.35;
}

.role-values li::before,
.role-avoids li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.role-values li::before {
  background: #dff0e7;
  color: #175941;
  content: "✓";
}

.role-avoids li::before {
  background: #f5e7df;
  color: #8a432e;
  content: "×";
}

.role-contribution-panel {
  padding: 18px;
  border: 1px solid #c9d9d1;
  border-left: 5px solid var(--role-accent);
  border-radius: 8px;
  background: #f3f8f5;
}

.role-contribution-panel ol {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding-left: 26px;
}

.role-contribution-panel li {
  padding-left: 4px;
  line-height: 1.45;
}

.role-output-panel {
  border-left-color: var(--role-accent);
  background: var(--surface-dark);
}

.role-note-starter {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.role-note-starter span {
  line-height: 1.45;
}

.drawer-block .role-note-starter {
  color: #ffffff;
  background: #173b50;
}

.role-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-info-grid > *,
.role-prompt-block,
.role-side-block,
.role-evidence-route {
  min-width: 0;
}

.role-visual-card {
  min-height: 210px;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.2) 0 3px, transparent 4px),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 20px),
    linear-gradient(145deg, var(--surface-dark) 0%, var(--role-accent) 100%);
}

.role-visual-owner .avatar {
  background: #f2c45d;
}

.role-visual-card h3 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.role-visual-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.42;
}

.role-problem-sort {
  border-top: 4px solid var(--role-accent);
  background: #ffffff;
}

.role-problem-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.role-problem-list article {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 6px;
  background: var(--role-problem-bg);
}

.role-problem-list strong {
  color: var(--role-accent-ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.role-problem-list span {
  line-height: 1.38;
}

.role-problem-complex {
  background: var(--role-problem-complex-bg) !important;
}

.role-watch-block {
  background: #fff8e8;
}

.role-drawer-principles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-drawer-note {
  border-left: 4px solid var(--green);
}

.role-join-block {
  border-left: 4px solid var(--role-accent);
  background: #ffffff;
}

.workroom-board.scaled {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.room-section {
  min-width: 0;
  padding: 12px;
  box-shadow: 0 5px 14px rgba(24, 46, 37, 0.055);
}

.workroom-spotlight-card {
  min-width: 0;
  grid-template-columns: minmax(132px, 0.32fr) minmax(0, 1fr);
}

.workroom-spotlight-card.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.workroom-card-copy,
.workroom-card-copy .button-row,
.workroom-file-card > div,
.workroom-post-main,
.workroom-media-card > div {
  min-width: 0;
}

.workroom-file-card.has-media {
  grid-template-columns: 90px minmax(0, 1fr);
}

.workroom-file-thumb {
  align-self: start;
  min-height: 92px;
  overflow: hidden;
  border-radius: 5px;
  background: #e7eee9;
}

.workroom-file-thumb .asset-image,
.workroom-file-thumb .document-preview,
.workroom-file-thumb .packet-cover {
  width: 100%;
  height: 100%;
  min-height: 92px;
}

.workroom-file-thumb .packet-cover {
  padding: 8px;
}

/* Document illustrations must remain legible instead of being cropped to a
   tall strip when the neighbouring sharing note wraps onto several lines. */
.workroom-file-thumb .asset-image[src$=".svg"] {
  object-fit: contain;
}

.workroom-file-thumb .packet-cover-top small,
.workroom-file-thumb .packet-cover-copy small {
  display: none;
}

.workroom-file-thumb .packet-cover-top span {
  font-size: 0.5rem;
}

.workroom-file-thumb .packet-cover-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: inherit;
  font-size: 0.68rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workroom-post-card.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.workroom-attachment-pill {
  max-width: min(100%, 310px);
}

.workroom-attachment-pill span {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workroom-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.workroom-media-cue {
  padding: 8px 10px;
  border-left: 3px solid var(--blue);
  background: #edf4fb;
  color: #294752 !important;
}

.news-card.current-request-item,
.news-row.current-request-item,
.compact-file-card.current-request-item,
.file-row.current-request-item,
.workroom-spotlight-card.current-request-item,
.workroom-file-card.current-request-item,
.workroom-post-card.current-request-item,
.workroom-media-card.current-request-item {
  border-color: var(--current-request-line);
  background: linear-gradient(90deg, rgba(95, 146, 124, 0.11), rgba(243, 248, 245, 0.72) 18%, rgba(255, 255, 255, 0.97));
  box-shadow: inset 3px 0 0 var(--current-request-accent);
}

.korero-post.current-request-item {
  border-bottom-color: #d4e4dc;
  background: linear-gradient(90deg, rgba(95, 146, 124, 0.1), rgba(243, 248, 245, 0.42) 34%, transparent 82%);
  box-shadow: inset 3px 0 0 var(--current-request-accent);
}

.workroom-post-card.current-request-item:hover,
.workroom-file-card.current-request-item:hover,
.workroom-spotlight-card.current-request-item:hover,
.workroom-media-card.current-request-item:hover {
  border-color: #8fb7a5;
  box-shadow: inset 3px 0 0 var(--current-request-accent), 0 8px 20px rgba(21, 50, 39, 0.08);
}

@media (max-width: 1280px) {
  .workroom-board.scaled {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-head {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .rich-role-desk {
    grid-template-columns: minmax(0, 1fr);
  }

  .rich-role-desk .role-side {
    border-top: 1px solid #d7e2dc;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .role-principles-grid,
  .role-drawer-principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .drawer,
  .drawer.compact {
    width: 100vw;
    min-width: 0;
    padding: 18px;
  }

  #drawer-content {
    padding-top: 16px;
  }

  .packet-route-strip {
    grid-template-columns: 1fr;
  }

  .packet-drawer-head {
    grid-template-columns: 1fr;
  }

  .packet-canvas {
    grid-template-columns: 1fr;
  }

  .packet-canvas-actions {
    position: static;
  }

  .file-reader-header {
    grid-template-columns: 1fr;
  }

  .file-reader-actions {
    justify-content: flex-start;
  }

  .document-reader-frame {
    min-height: 540px;
  }

  .packet-drawer-cover {
    position: static;
  }

  .packet-route-card {
    grid-template-columns: 1fr;
  }

  .packet-route-action {
    grid-column: 1;
  }

  .packet-route-thumb {
    grid-row: auto;
    height: 180px;
    min-height: 180px;
  }

  .portal-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px 12px;
  }

  .portal-topbar .brand {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
  }

  .portal-topbar .top-actions {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }

  .portal-nav {
    top: var(--portal-topbar-height);
  }

  .news-slide.active {
    grid-template-columns: 1fr;
  }

  .room-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-slide-media .asset-image,
  .news-slide-media .document-preview,
  .news-slide-media .asset-video,
  .news-slide-media .news-correction-preview,
  .news-slide-media .news-resource-share-preview {
    min-height: 220px;
    max-height: 320px;
  }

  .surface-band,
  .shared-start-grid,
  .file-reader-guide,
  .grid.two,
  .grid.three,
  .drawer-card-grid,
  .contract-card-grid,
  .role-info-grid,
  .case-entry,
  .operator-preview-banner,
  .news-hero,
  .home-split,
  .file-feature,
  .news-row,
  .work-order,
  .role-desk,
  .room-head,
  .workroom-board,
  .workroom-post-card,
  .file-explorer,
  .file-row,
  .admin-grid,
  .form-grid,
  .admin-drawer-toolbar,
  .operator-console-head,
  .release-control-strip,
  .admin-release-steps,
  .educator-publish-grid,
  .admin-surface-workbench,
  .admin-placement-grid,
  .admin-route-list,
  .surface-edit-card,
  .admin-technical-grid,
  .operator-workflow,
  .admin-browser-state,
  .release-readiness-grid,
  .admin-team-plan-grid,
  .admin-workroom-choice-grid,
  .admin-resource-workroom-grid,
  .admin-link-choice-grid {
    grid-template-columns: 1fr;
  }

  .readiness-next-step {
    align-items: stretch;
    flex-direction: column;
  }

  .response-target-header,
  .response-format-heading {
    align-items: start;
    flex-direction: column;
  }

  .response-format-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .role-evidence-route {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .role-evidence-route.has-media {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .role-evidence-route.has-media .role-evidence-thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 64px;
  }

  .role-evidence-route.has-media .role-evidence-number,
  .role-evidence-route.has-media > div {
    grid-column: 2;
  }

  .role-evidence-route .button {
    grid-column: 1 / -1;
  }

  .workroom-board.scaled {
    grid-template-columns: minmax(0, 1fr);
  }

  .workroom-tabs,
  .workroom-board,
  .workroom-column,
  .room-section {
    min-width: 0;
  }

  .source-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .browser-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .surface-edit-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .filter-row,
  .file-row-actions,
  .room-filter-stack {
    justify-items: stretch;
  }

  .file-results-panel {
    overflow: visible;
  }

  .file-table-head {
    display: none;
  }

  .file-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 12px;
    min-width: 0;
    padding: 14px;
    align-items: start;
  }

  .file-row .file-icon {
    display: grid;
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .file-row .file-name-cell,
  .file-row .file-meta-cell {
    grid-column: 2;
  }

  .file-row .file-name-cell strong,
  .file-row .file-meta-cell {
    overflow: visible;
    white-space: normal;
  }

  .file-row .file-meta-cell {
    display: grid;
    grid-template-columns: minmax(72px, 0.28fr) minmax(0, 1fr);
    gap: 8px;
    color: var(--text);
  }

  .file-row .file-meta-cell::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .file-row .file-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 6px;
  }

  .attachment-card {
    grid-template-columns: 1fr;
  }

  .regional-news-masthead,
  .regional-news-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .regional-news-masthead div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .regional-news-nav {
    gap: 12px;
    overflow-x: auto;
    padding-inline: 20px;
  }

  .regional-news-story {
    width: min(100% - 30px, 820px);
    padding-top: 30px;
  }

  .regional-news-body blockquote {
    margin-inline: 0;
    padding-inline: 20px;
  }
}

@media (max-width: 600px) {
  .news-embedded-session {
    padding: 10px;
  }

  .news-embedded-session .media-slide-strip,
  .news-embedded-session .media-slide-experience.expanded .media-slide-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-position-grid,
  .browser-state-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-state-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-state-actions .button {
    width: 100%;
  }

  .response-target-panel {
    padding: 14px;
  }

  .response-layer-grid,
  .response-option-grid {
    grid-template-columns: 1fr;
  }

  .response-layer-card,
  .response-option-card {
    grid-template-columns: 1fr;
  }

  .news-archive-controls,
  .korero-feed-kicker {
    align-items: stretch;
    flex-direction: column;
  }

  .workroom-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-topbar .brand small {
    display: none;
  }

  .portal-topbar .top-actions {
    font-size: 0.9rem;
  }

  .portal-nav {
    overflow: visible;
    padding: 8px 12px;
  }

  .portal-nav .nav-item {
    display: none;
  }

  .mobile-nav-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .mobile-nav-picker select {
    width: 100%;
    min-width: 0;
    padding: 9px 34px 9px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
  }

  main {
    padding: 18px 12px 40px;
  }

  .view-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .view-heading > *,
  .view-heading > .button-row,
  .view-heading > .button-row label {
    min-width: 0;
  }

  .view-heading > .button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    align-items: stretch;
  }

  .view-heading > .button-row select {
    width: 100%;
    min-width: 0;
  }

  .news-carousel-arrow {
    top: 190px;
    width: 38px;
    height: 48px;
  }

  .news-carousel-dots {
    right: 132px;
    left: 14px;
    justify-content: center;
    transform: none;
  }

  .news-carousel-pause {
    right: 10px;
  }

  .drawer-toolbar {
    align-items: stretch;
  }

  .drawer-toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .file-record-drawer.reader-first {
    display: flex;
    flex-direction: column;
  }

  .file-record-drawer.reader-first .file-reader-header {
    order: 1;
  }

  .file-record-drawer.reader-first .document-reader {
    order: 2;
  }

  .file-record-drawer.reader-first .file-reader-guide {
    order: 3;
  }

  .file-record-drawer.reader-first .file-inline-artifact {
    order: 4;
  }

  .file-record-drawer.reader-first .file-reader-shelves {
    order: 5;
  }

  .case-entry.has-story-map {
    grid-template-columns: 1fr;
  }

  .case-entry.has-story-map .case-media {
    width: 100%;
    height: 220px;
    min-height: 220px;
  }

  .case-entry.has-story-map .case-copy {
    padding: 22px 18px;
  }

  .case-entry.has-story-map .case-copy > .eyebrow,
  .case-entry.has-story-map .case-copy > h2,
  .case-entry.has-story-map .case-copy > h2 + p {
    display: none;
  }

  .home-story-progression,
  .home-story-partners,
  .home-next-questions {
    grid-template-columns: 1fr;
  }

  .role-visual-card.has-media {
    grid-template-columns: 1fr;
  }

  .role-visual-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .role-visual-media .asset-image {
    max-height: none;
  }

  .role-visual-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  .drawer,
  .skip-link {
    transition: none;
  }
}

/* A weekly opening is a story cover. The character's full request follows it. */
.home-cover {
  --cover-accent: #ffce47;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(430px, 60vh, 690px);
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
  isolation: isolate;
  background: #12272b;
  color: #fff;
  box-shadow: 0 24px 58px rgba(8, 27, 26, .22);
}

.home-cover::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: min(19vw, 250px);
  height: 8px;
  background: var(--cover-accent);
}

.home-cover-image,
.home-cover-shade {
  position: absolute;
  inset: 0;
}

.home-cover-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.015);
}

.home-cover-shade {
  background: linear-gradient(90deg, rgba(5, 19, 22, .94) 0%, rgba(5, 19, 22, .75) 36%, rgba(5, 19, 22, .12) 83%),
              linear-gradient(0deg, rgba(5, 19, 22, .72) 0%, transparent 62%);
}

.home-cover-issue {
  position: absolute;
  top: -42px;
  right: -8px;
  color: rgba(255, 255, 255, .16);
  font-size: clamp(12rem, 28vw, 34rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.09em;
  pointer-events: none;
}

.home-cover-content {
  position: relative;
  z-index: 4;
  width: min(860px, 76%);
  padding: clamp(26px, 5vw, 72px);
}

.home-cover-series {
  margin-bottom: clamp(20px, 5vh, 56px);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-cover-series span { color: var(--cover-accent); padding: 0 .3em; }
.home-cover-signal {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: var(--cover-accent);
  color: #142324;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.home-cover h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 5.8vw, 6rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.home-cover-deck {
  max-width: 610px;
  margin-bottom: 23px;
  color: #f7f7ee;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.home-cover--03 { --cover-accent: #e6f36c; }
.home-cover--04 { --cover-accent: #76e4e6; }
.home-cover--05 { --cover-accent: #ffba78; }
.home-cover--06 { --cover-accent: #ff7865; }
.home-cover--07 { --cover-accent: #f8d169; }
.home-cover--08 { --cover-accent: #f0a9e4; }
.home-cover--09 { --cover-accent: #ffd25c; }
.home-cover--10 { --cover-accent: #ff9b9b; }
.home-cover--11 { --cover-accent: #b5f190; }
.home-cover--12 { --cover-accent: #9ed9ff; }
.home-cover--01 .home-cover-image img { object-position: 65% 35%; }
.home-cover--08 .home-cover-image img { object-position: 70% center; }
.home-cover--10 .home-cover-image img { object-position: 67% center; }
.home-cover--12 .home-cover-image img { object-position: 63% center; }

.home-request-card,
.home-request-card.has-story-map {
  display: block;
  min-height: 0;
  max-width: 1100px;
  margin-inline: auto;
  scroll-margin-top: 24px;
}

.home-request-card .case-copy,
.home-request-card.has-story-map .case-copy {
  display: block;
  padding: clamp(24px, 4vw, 52px);
}

.home-request-card .case-person,
.home-request-card .case-copy > .eyebrow,
.home-request-card .case-copy > h2 { margin-bottom: 18px; }
.home-request-card .case-copy > p { max-width: 78ch; line-height: 1.65; }
.home-request-card .home-request-actions { margin-top: 28px; }

.staff-editing-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid #b9d1c8;
  border-left: 5px solid #195344;
  border-radius: 8px;
  background: #eef6f1;
}
.staff-editing-bar > div:first-child { display: grid; gap: 2px; }
.staff-editing-bar span { color: #415b55; font-size: .9rem; }
.staff-editing-bar .button-row { margin: 0; flex-wrap: wrap; }
.staff-area-manager,
.admin-current-week {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid #b9d1c8;
  border-radius: 8px;
  background: #f6faf7;
}
.staff-area-manager-head,
.admin-current-week {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.staff-area-manager-head h2,
.admin-current-week h2 { margin: 0 0 5px; }
.staff-area-manager-head p,
.admin-current-week p { margin: 0; }
.staff-area-manager-head label { min-width: min(100%, 280px); }
.staff-area-manager-head select { width: 100%; }
.staff-area-item-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  margin-top: 18px;
  overflow: auto;
}
.staff-area-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d5e2d9;
  border-radius: 6px;
  background: #fff;
}
.staff-area-item strong,
.staff-area-item small { display: block; }
.staff-area-item .button-row { flex-shrink: 0; }
.admin-workspace-start { margin-bottom: 18px; }
.admin-workspace-start .admin-surface-tabs { margin: 16px 0 8px; }
.admin-content-history {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #cbd9d2;
  border-radius: 8px;
  background: #f5f9f6;
}
.admin-content-history .section-title { align-items: start; }
.admin-content-history h3 { margin: 0 0 4px; }
.admin-content-history p { max-width: 78ch; }
.admin-history-list { display: grid; gap: 8px; margin-top: 14px; }
.admin-history-entry { padding: 12px 15px; border: 1px solid #d1ddd6; border-radius: 6px; background: #fff; }
.admin-history-entry summary { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; cursor: pointer; }
.admin-history-entry summary span { color: #3d514b; }
.admin-history-entry summary small { color: #596a65; }
.admin-history-entry > p { margin: 12px 0; }
.admin-history-body { max-height: 11rem; overflow: auto; white-space: pre-wrap; }
.admin-editor-options { margin: 16px 0; padding: 12px 16px; border: 1px solid #d1ddd6; border-radius: 7px; background: #f8faf8; }
.admin-editor-options > summary, .admin-asset-drawer > summary { cursor: pointer; color: #194f40; font-weight: 800; }
.admin-editor-options[open] > summary { margin-bottom: 14px; }
.home-cover-content > .button { margin: 12px 0 0 12px; background: #fff; color: #173d32; }
.home-request-card .case-copy > .button { margin: 16px 0 0; }
@media (max-width: 760px) {
  .staff-editing-bar { align-items: flex-start; flex-direction: column; }
  .staff-area-manager-head,
  .admin-current-week,
  .staff-area-item { align-items: stretch; flex-direction: column; }
  .staff-area-item .button-row { flex-shrink: 1; }
}

@media (max-width: 760px) {
  .home-cover { min-height: min(570px, 72vh); align-items: flex-end; border-radius: 7px; }
  .home-cover-shade { background: linear-gradient(0deg, rgba(4,17,20,.96) 0%, rgba(4,17,20,.84) 38%, rgba(4,17,20,.04) 93%); }
  .home-cover-content { width: 100%; padding: 24px 22px 28px; }
  .home-cover-series { margin-bottom: 17px; font-size: .62rem; }
  .home-cover-signal { margin-bottom: 11px; }
  .home-cover h1 { font-size: clamp(2.15rem, 10vw, 3.8rem); margin-bottom: 12px; }
  .home-cover-deck { font-size: .94rem; margin-bottom: 18px; }
  .home-cover-issue { top: -10px; right: 4px; font-size: 13rem; }
  .home-cover--01 .home-cover-image img { object-position: 56% center; }
  .home-cover--08 .home-cover-image img { object-position: 66% center; }
  .home-cover--10 .home-cover-image img { object-position: 66% center; }
  .home-request-card.has-story-map .case-copy > .eyebrow,
  .home-request-card.has-story-map .case-copy > h2,
  .home-request-card.has-story-map .case-copy > h2 + p { display: block; }
}
/* Student briefs, separate evidence shelves and recognisable role profiles. */
.studio-view { max-width: 1240px; margin-inline: auto; }
.studio-view-heading { margin-bottom: 22px; align-items: center; }
.studio-view-heading h1 { font-size: clamp(1.65rem, 2.4vw, 2.3rem); }
.student-studio { --studio-role-accent: #2e647a; font-size: 1rem; line-height: 1.5; color: #23352e; }
.student-studio h2, .student-studio h3, .student-studio h4, .student-studio p { margin: 0; }
.studio-label { color: #426657; font-size: .71rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.student-studio summary { cursor: pointer; color: #355b47; font-weight: 650; font-size: .86rem; }
.student-studio details[open] > summary { margin-bottom: 12px; }
.student-studio details p, .student-studio details ul { font-size: .88rem; }
.student-studio [hidden] { display: none !important; }
.student-studio :is(button,a,summary,textarea,input):focus-visible { outline: 3px solid #cb982a; outline-offset: 3px; }
.studio-team-page { background: #fffefa; border: 1px solid #d1dcd4; border-top: 5px solid #365d48; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 18px #244d3c08; }
.studio-team-hero { padding: 24px 30px 22px; background: #edf3eb; border-bottom: 1px solid #d5dfd1; }
.studio-requester { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.studio-requester .person-row { margin: 0; }
.studio-requester .avatar { width: 42px; height: 42px; }
.studio-case-tag { font-size: .78rem; color: #486354; text-align: right; }
.studio-team-hero h2 { max-width: 960px; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.23; letter-spacing: -.015em; }
.studio-purpose { max-width: 970px; margin-top: 12px !important; font-size: 1rem; line-height: 1.5; }
.studio-brief-body { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 34px; padding: 27px 30px 24px; }
.studio-brief-questions { min-width: 0; }
.studio-brief-questions > h3, .studio-deliverable > h3 { margin-top: 4px; font-size: 1.2rem; }
.studio-question-list { display: grid; gap: 16px; list-style: none; counter-reset: brief; padding: 0; margin: 22px 0 0; }
.studio-question-list li { counter-increment: brief; position: relative; padding-left: 38px; }
.studio-question-list li::before { content: counter(brief, decimal-leading-zero); position: absolute; left: 0; top: -1px; color: #66816a; font-weight: 650; font-size: .95rem; }
.studio-question-list h4 { font-size: .98rem; line-height: 1.35; }
.studio-question-list p { margin-top: 4px; font-size: .91rem; line-height: 1.48; color: #42534a; }
.studio-judgement-note { margin-top: 23px !important; padding-left: 13px; border-left: 3px solid #bc9b52; font-size: .86rem; color: #565b45; }
.studio-detail { border-top: 1px solid #dce4de; margin-top: 18px; padding-top: 13px; }
.studio-detail ul { padding-left: 20px; display: grid; gap: 8px; }
.studio-deliverable { padding: 0 0 0 26px; border-left: 1px solid #d9e1d6; min-width: 0; }
.studio-deliverable > p:not(.studio-label) { font-size: .84rem; color: #51624f; margin-top: 8px; }
.studio-format-choices { display: grid; gap: 9px; margin-top: 16px; }
.studio-format-row { display: grid; grid-template-columns: 1fr; border: 1px solid #d7dfd2; border-radius: 8px; background: white; overflow: hidden; }
.studio-format-choice { display: flex; gap: 11px; align-items: center; padding: 10px 12px; text-align: left; color: #314c3d; background: transparent; border: 0; border-left: 3px solid transparent; }
.studio-format-choice > span:first-child { flex: 0 0 25px; font-size: 1.5rem; line-height: 1; color: #52745d; }
.studio-format-choice strong { display: block; font-size: .87rem; }
.studio-format-choice small { display: block; margin-top: 1px; font-size: .75rem; line-height: 1.3; }
.studio-format-choice[aria-pressed="true"] { border-left-color: #32634c; background: #edf5e9; }
.studio-example-link { padding: 5px 12px 7px 50px; color: #315c72; font-size: .75rem; font-weight: 650; border-top: 1px solid #e6eae1; text-decoration: underline; text-underline-offset: 2px; }
.studio-example-link:hover { background: #edf4f6; }
.studio-example-caption { font-size: .74rem !important; line-height: 1.45; margin-top: 12px !important; }
.studio-delivery-rule { margin-top: 16px !important; padding-top: 13px; border-top: 1px solid #d9e1d6; }
.studio-recording-rules { margin-top: 10px; }
.studio-recording-rules summary { font-size: .76rem; }
.studio-recording-rules p { margin-top: 8px; font-size: .78rem !important; }
.studio-brief-footer { padding: 0 30px 22px; }
.studio-editor-disclosure { border: 1px solid #c9dacf; border-radius: 8px; background: #f5f8f1; }
.studio-editor-disclosure > summary { padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; }
.studio-editor-disclosure > summary span { font-size: .78rem; color: #53695a; }
.studio-editor-disclosure[open] > summary { margin-bottom: 0 !important; border-bottom: 1px solid #d3dfd4; }
.studio-original-request { margin-top: 12px; padding-top: 10px; }
.studio-original-request summary { font-size: .78rem; font-weight: 500; }
.studio-files-next { margin-top: 42px; padding-top: 30px; border-top: 2px solid #c3d2c5; }
.studio-files-next .shared-start-heading { margin-top: 0; }
.studio-files-next .shared-start-heading h2 { font-size: 1.65rem; }
.studio-files-next .shared-start-heading p:last-child { max-width: 780px; }
.studio-context-shelf { margin-top: 26px; }
.studio-role-tabs { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; margin-bottom: 20px; padding: 0; border: 0; }
.studio-role-tabs .tab-button { display: flex; align-items: flex-start; gap: 9px; min-width: 0; border-radius: 8px; padding: 13px 12px; background: white; color: #314939; border: 1px solid #d0dcd3; text-align: left; }
.studio-role-tabs .tab-button strong { display: block; font-size: .87rem; line-height: 1.3; }
.studio-role-tabs .tab-button small { display: block; font-size: .67rem; margin-top: 5px; line-height: 1.3; color: #576b5a; }
.studio-role-tabs .tab-button.active { background: #edf5ec; border: 2px solid #3b6748; padding: 12px 11px; color: #203e27; }
.studio-role-symbol { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; }
.studio-emblem { display: block; width: 28px; height: 28px; }
.studio-character-card { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: start; border: 1px solid #d4dbd0; border-top: 5px solid var(--studio-role-accent); border-radius: 13px; background: #fffefa; overflow: hidden; }
.studio-role-hero { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 23px; padding: 27px 30px 22px; }
.studio-role-portrait { position: relative; width: 96px; height: 96px; }
.studio-role-portrait .avatar { width: 88px; height: 88px; margin: 0; border-radius: 50%; border: 3px solid white; outline: 2px solid var(--studio-role-accent); object-fit: cover; }
.studio-role-portrait > span { position: absolute; display: grid; place-items: center; width: 36px; height: 36px; bottom: 0; right: 0; border: 2px solid var(--studio-role-accent); border-radius: 50%; color: var(--studio-role-accent); background: white; }
.studio-role-portrait .studio-emblem { width: 23px; height: 23px; }
.studio-role-portrait-symbol > span { inset: 0; width: 100%; height: 100%; border: 0; background: #f1f5ef; }
.studio-role-portrait-symbol .studio-emblem { width: 48px; height: 48px; }
.studio-adviser { margin-top: 15px; font-size: .83rem; color: #4e6051; }
.studio-adviser p { margin: 5px 0; line-height: 1.45; }
.studio-adviser strong { color: #334737; font-weight: 650; }
.studio-adviser-action { margin-top: 6px; min-height: 34px; padding: 6px 12px; font-size: .82rem; }
.studio-role-introduction h2 { font-size: clamp(1.55rem,2.1vw,2.1rem); margin-top: 6px; line-height: 1.15; letter-spacing: -.02em; }
.studio-role-introduction > .studio-role-identity { margin-top: 10px; font-size: .98rem; color: #4e6051; max-width: 820px; }
.studio-role-summary { min-width: 0; }
.studio-role-instincts { padding: 0 30px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-content: center; }
.studio-role-instincts h3 { color: var(--studio-role-accent); font-size: 1.12rem; padding-bottom: 10px; border-bottom: 2px solid #d8dfd3; }
.studio-role-instincts ul { padding-left: 18px; margin: 14px 0 0; display: grid; gap: 11px; font-size: .95rem; line-height: 1.42; }
.studio-role-instincts li::marker { color: var(--studio-role-accent); }
.studio-focus-map { margin: 25px 22px 22px 0; padding: 0; text-align: center; min-width: 0; }
.studio-focus-map figcaption h3 { font-size: .95rem; }
.studio-focus-map figcaption p { font-size: .73rem; margin-top: 3px; color: #61705f; }
.studio-focus-map svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; }
.studio-radar-ring { fill: #f3f4ed; stroke: #d7dece; stroke-width: 1; }
.studio-radar-axis { stroke: #d7dece; stroke-width: 1; }
.studio-radar-area { fill: var(--studio-role-accent); fill-opacity: .2; stroke: var(--studio-role-accent); stroke-width: 2.3; }
.studio-radar-dot { fill: var(--studio-role-accent); }
.studio-radar-label { font-family: inherit; font-size: 11px; fill: #586952; }
.studio-radar-label.strong { font-weight: 750; fill: var(--studio-role-accent); }
.studio-map-key { font-size: .68rem; color: #687260; margin-top: -6px !important; }
.studio-map-summary { font-size: .76rem; color: #4c6149; margin-top: 7px !important; }
.studio-role-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; align-items: start; gap: 24px; margin-top: 25px; }
.studio-role-task { min-width: 0; display: grid; gap: 20px; }
.studio-role-question, .studio-role-start, .studio-peer-check, .studio-individual-advice { padding: 23px; border: 1px solid #d5dfd9; border-radius: 10px; background: white; }
.studio-role-question { border-left: 4px solid var(--studio-role-accent); }
.studio-role-question h3 { margin-top: 9px; font-size: 1.35rem; line-height: 1.3; }
.studio-role-question > p:not(.studio-label) { margin-top: 12px; font-size: .91rem; color: #4d6453; }
.studio-role-start > header { margin-bottom: 16px; }
.studio-role-start h3 { font-size: 1.12rem; }
.studio-start-links { display: grid; gap: 10px; }
.studio-source-link { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid #d4dfd9; border-radius: 8px; background: #f7faf8; min-width: 0; }
.studio-source-index { font-size: .75rem; color: #506358; }
.studio-source-link > div { flex: 1; min-width: 0; }
.studio-source-link strong { display: block; font-size: .94rem; line-height: 1.3; }
.studio-source-link p, .studio-source-link small { display: block; margin-top: 5px; color: #53655a; font-size: .83rem; line-height: 1.4; }
.studio-source-link .button { min-width: 58px; margin: 0; font-size: .8rem; padding: 7px 10px; }
.studio-peer-check { background: #edf3f7; border-color: #cedce3; }
.studio-peer-check h3 { margin-top: 7px; font-size: 1.08rem; line-height: 1.35; }
.studio-peer-check > p:not(.studio-label) { margin-top: 11px; color: #405a6c; font-size: .94rem; line-height: 1.5; }
.studio-peer-return { padding-top: 11px; border-top: 1px solid #ccdbe2; }
.studio-peer-check .button { margin-top: 16px; }
.studio-draft { display: grid; align-content: start; gap: 17px; padding: 25px; border: 1px solid #d8d6bc; border-top: 5px solid #b49a4e; border-radius: 10px; background: #fffdf1; box-shadow: 0 4px 10px #675b2908; }
.studio-editor-disclosure .studio-draft { border: 0; border-radius: 0 0 8px 8px; background: transparent; box-shadow: none; }
.studio-draft h3 { margin-top: 4px; font-size: 1.22rem; }
.studio-draft header p:last-child { margin-top: 7px; font-size: .82rem; color: #666449; }
.studio-draft-fields { display: grid; gap: 17px; }
.studio-draft label { display: grid; gap: 7px; color: #3d4933; font-size: .85rem; font-weight: 650; }
.studio-draft label > span { display: flex; align-items: center; gap: 8px; }
.studio-note-number { color: #9b813a; font-size: .72rem; }
.studio-draft textarea, .studio-draft input { display: block; width: 100%; min-width: 0; margin: 0; padding: 10px 11px; border: 1px solid #d4d5bf; border-radius: 5px; background: #ffffffd9; color: #23392b; font-size: .9rem; font-weight: 400; line-height: 1.5; resize: vertical; }
.studio-role-draft textarea { min-height: 83px; border: 0; border-bottom: 1px solid #d2cfb4; border-radius: 0; background: #fffef9; }
.studio-draft textarea::placeholder, .studio-draft input::placeholder { color: #777864; opacity: 1; }
.studio-draft label small { color: #5a6b58; font-weight: 400; font-size: .77rem; }
.studio-draft-footer { display: grid; gap: 7px; font-size: .73rem; color: #68694e; }
.studio-draft-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-draft progress { width: 78px; height: 5px; accent-color: #9b813a; }
.studio-draft output { color: #59633c; font-size: .78rem; font-weight: 650; }
.studio-draft output.over-limit { color: #a13230; }
.studio-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-draft-actions .button { flex: 1; white-space: nowrap; font-size: .81rem; }
.studio-integration-note { padding-top: 12px; border-top: 1px solid #d9d8c0; font-size: .77rem; color: #676a50; }
.studio-individual-advice { margin: 0 30px 24px; background: #f6f1fa; border-color: #dad0e5; }
.studio-individual-advice h3 { margin-top: 6px; font-size: 1.1rem; }
.studio-individual-advice > p:not(.studio-label) { margin-top: 8px; font-size: .87rem; }
.studio-individual-advice .button { margin-top: 13px; }
.studio-drawer-content .studio-brief-body, .studio-drawer-content .studio-role-layout, .studio-drawer-content .studio-character-card { grid-template-columns: 1fr; }
.studio-drawer-content .studio-deliverable { padding: 20px 0 0; border-left: 0; border-top: 1px solid #d9e1d6; }
@media (max-width: 1000px) {
  .studio-brief-body { grid-template-columns: minmax(0,1fr) 280px; gap: 22px; padding-inline: 22px; }
  .studio-deliverable { padding-left: 20px; }
  .studio-character-card { grid-template-columns: minmax(0,1fr) 310px; }
  .studio-role-instincts { grid-template-columns: 1fr; gap: 20px; }
  .studio-role-layout { grid-template-columns: minmax(0,1fr) 315px; gap: 18px; }
}
@media (max-width: 760px) {
  .studio-brief-body, .studio-role-layout, .studio-character-card { grid-template-columns: 1fr; }
  .studio-team-hero { padding: 20px; }
  .studio-requester { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .studio-case-tag { text-align: left; }
  .studio-brief-body { padding: 22px 20px; }
  .studio-brief-footer { padding: 0 20px 20px; }
  .studio-deliverable { padding: 22px 0 0; border-left: 0; border-top: 1px solid #d9e1d6; }
  .studio-format-choices { grid-template-columns: 1fr 1fr; }
  .studio-format-choice { padding: 10px 8px; gap: 6px; }
  .studio-format-choice > span:first-child { flex-basis: 19px; font-size: 1.2rem; }
  .studio-example-link { padding-left: 12px; }
  .studio-view-heading { flex-wrap: wrap; gap: 12px; }
  .studio-view-heading .button-row { justify-content: flex-start; width: 100%; flex-wrap: wrap; }
  .studio-role-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .studio-role-hero { padding: 23px 20px; grid-template-columns: 80px 1fr; gap: 18px; }
  .studio-role-portrait { width: 80px; height: 80px; }
  .studio-role-portrait .avatar { width: 74px; height: 74px; }
  .studio-role-portrait > span { width: 31px; height: 31px; }
  .studio-role-portrait-symbol > span { width: 100%; height: 100%; }
  .studio-role-introduction h2 { font-size: 1.5rem; }
  .studio-role-instincts { padding: 0 22px 24px; }
  .studio-role-instincts { grid-template-columns: 1fr 1fr; gap: 18px; }
  .studio-focus-map { margin: 0 22px 24px; padding-top: 20px; border-top: 1px solid #dce2d5; }
  .studio-editor-disclosure > summary { display: grid; gap: 5px; }
  .studio-draft, .studio-role-question, .studio-role-start, .studio-peer-check { padding: 20px; }
  .studio-individual-advice { margin: 0 20px 20px; }
}
@media (max-width: 450px) {
  .studio-role-hero { grid-template-columns: 70px 1fr; gap: 15px; }
  .studio-role-portrait { width: 70px; height: 70px; }
  .studio-role-portrait .avatar { width: 64px; height: 64px; }
  .studio-role-introduction h2 { font-size: 1.27rem; }
  .studio-role-introduction > .studio-role-identity { font-size: .84rem; }
  .studio-role-instincts { grid-template-columns: 1fr; }
  .studio-source-link { flex-wrap: wrap; }
  .studio-source-link .button { margin-left: 24px; }
  .studio-role-tabs .tab-button { padding: 11px 9px; }
  .studio-role-tabs .tab-button.active { padding: 10px 8px; }
  .studio-role-tabs .tab-button small { display: none; }
  .studio-format-choice strong { font-size: .81rem; }
  .studio-format-choice small { font-size: .7rem; }
}
@media print {
  .studio-draft-actions { display: none; }
  .student-studio { color: black; }
  .studio-brief-body, .studio-role-layout, .studio-character-card { grid-template-columns: 1fr; }
  .studio-deliverable { border-left: 0; }
}

/* Role resources are a visible next step, separate from the brief and working note. */
.studio-role-brief-question { margin-top: 24px; }
.studio-role-resources { margin-top: 30px; padding-top: 25px; border-top: 2px solid #d7dfd4; }
.studio-role-resources > header { margin-bottom: 18px; }
.studio-role-resources h3 { margin-top: 7px; font-size: 1.4rem; }
.studio-role-resources > header > p:last-child, .studio-resource-options > p { margin-top: 8px; color: #526356; font-size: .93rem; }
.studio-resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.studio-resource-card { display: grid; grid-template-columns: 130px minmax(0,1fr); align-items: start; gap: 16px; padding: 18px; background: #fff; border: 1px solid #d5dfd9; border-radius: 10px; min-width: 0; }
.studio-resource-card.is-start { border-top: 3px solid var(--studio-role-accent); }
.studio-resource-preview { position: relative; display: grid; place-items: center; min-height: 100px; overflow: hidden; border-radius: 6px; background: #e8eee5; color: var(--studio-role-accent); }
.studio-resource-preview img { display: block; width: 100%; min-height: 0; height: 100px; object-fit: cover; }
.studio-resource-symbol { padding-bottom: 17px; font-size: 2rem; }
.studio-resource-format { position: absolute; bottom: 0; left: 0; right: 0; padding: 5px 6px; background: #193b33; color: white; font-size: .7rem; text-align: center; }
.studio-resource-copy { min-width: 0; }
.studio-resource-copy h4 { margin: 6px 0 8px; font-size: 1.04rem; line-height: 1.3; }
.studio-resource-copy > p:last-child { font-size: .86rem; line-height: 1.5; color: #40594a; }
.studio-resource-card > .button { grid-column: 2; justify-self: start; margin-top: 0; font-size: .8rem; }
.studio-resource-options { margin-top: 24px; }
.studio-resource-options > h4 { font-size: 1.08rem; }
.studio-resource-options > p { margin-bottom: 14px; }
.studio-resource-more > .studio-resource-grid { margin-top: 16px; }
@media (max-width: 850px) {
  .studio-resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .studio-resource-card { grid-template-columns: 80px minmax(0,1fr); gap: 12px; padding: 14px; }
  .studio-resource-preview, .studio-resource-preview img { min-height: 80px; height: 80px; }
}

/* Source-led artefacts: the portal carries the document, not its visual identity. */
.press-article {
  --press-ink: #182c30;
  --press-accent: #946b28;
  --press-paper: #fffdf7;
  display: block;
  width: min(100%, 1080px);
  margin: 0 auto;
  border: 1px solid #d7d4c9;
  background: var(--press-paper);
  color: var(--press-ink);
  box-shadow: 0 12px 32px #22342b16;
}
.press-masthead {
  padding: 25px clamp(20px, 4vw, 52px) 17px;
  border-top: 7px solid var(--press-ink);
  border-bottom: 3px double var(--press-ink);
}
.press-masthead > strong {
  display: block;
  font: 800 clamp(31px, 5vw, 55px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.press-masthead > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #bdbbb0;
  font: 600 12px/1.4 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.press-story { padding: clamp(25px, 4vw, 52px); }
.press-section {
  margin: 0 0 15px;
  color: var(--press-accent);
  font: 750 12px/1.4 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.press-story-head h2 {
  margin: 0;
  max-width: 940px;
  color: var(--press-ink);
  font: 700 clamp(30px, 4.3vw, 57px)/1.07 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.press-deck {
  margin: 23px 0;
  max-width: 76ch;
  color: #4b5550;
  font: 400 clamp(17px, 2vw, 21px)/1.55 Georgia, "Times New Roman", serif;
}
.press-byline {
  margin: 23px 0 28px;
  padding: 16px 0;
  border-top: 1px solid #d2d0c6;
  border-bottom: 1px solid #d2d0c6;
  font: 650 13px/1.6 system-ui, sans-serif;
}
.press-hero { margin: 0 0 36px; }
.press-hero .asset-image { display: block; width: 100%; height: auto; max-height: 490px; object-fit: contain; border-radius: 0; }
.press-hero .asset-preview { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.press-hero figcaption { padding: 12px 0; color: #58605a; font: 13px/1.5 system-ui, sans-serif; border-bottom: 1px solid #d2d0c6; }
.press-body { max-width: 72ch; margin: 0 auto; font: 19px/1.8 Georgia, "Times New Roman", serif; }
.press-body > p { margin: 0 0 1.3em; }
.press-body > p:first-child { font-weight: 700; font-size: 1.13em; line-height: 1.65; }
.press-body > blockquote {
  margin: 35px 0;
  padding: 26px 0 26px 24px;
  border-left: 5px solid var(--press-accent);
  border-top: 1px solid #d2d0c6;
  border-bottom: 1px solid #d2d0c6;
  color: var(--press-ink);
  font: 500 clamp(23px, 3vw, 30px)/1.4 Georgia, "Times New Roman", serif;
}
.press-footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 4vw, 52px); border-top: 3px double var(--press-ink); font: 13px/1.5 system-ui, sans-serif; }
.press-footer strong { font-family: Georgia, serif; }
.press-portal-context { display: grid; gap: 20px; padding-top: 24px; }
.press-reactions { margin: 35px auto 0; max-width: 72ch; padding-top: 20px; border-top: 1px solid #d2d0c6; }
.press-reactions blockquote { padding: 18px 22px; margin: 14px 0; background: #f0f0e9; border-left: 3px solid var(--press-accent); font-size: 16px; }
.press-reactions blockquote p { margin: 8px 0 0; }
.press-ledger { --press-ink: #162d45; --press-accent: #af4034; --press-paper: #fefefe; }
.press-ledger .press-masthead > strong { font-weight: 400; letter-spacing: -.025em; }
.press-ledger .press-masthead { border-top-width: 10px; }
.press-southern-current { --press-ink: #172e35; --press-accent: #b43728; --press-paper: #fff; }
.press-southern-current .press-masthead { background: #172e35; border: 0; border-bottom: 7px solid #b43728; color: #fff; }
.press-southern-current .press-masthead > strong { font-family: system-ui, sans-serif; font-weight: 800; letter-spacing: -.06em; }
.press-southern-current .press-masthead > div { border-color: #6d8587; }
.press-market-watch .press-masthead > strong { letter-spacing: -.055em; }

/* Compact sharing context; open the authored reader before its text alternative. */
.file-reader-header h2 { max-width: 40ch; font-size: clamp(23px, 2.5vw, 31px); line-height: 1.2; }
.file-reader-header .article-deck { max-width: 80ch; font-size: 16px; line-height: 1.6; font-weight: 400; }
.file-text-alternative { margin-top: 4px; }
.file-text-alternative > .file-inline-artifact { margin: 18px; }
.file-inline-artifact .artifact-view { margin: 0 auto; width: min(100%, 1040px); }
.artifact-view { padding: clamp(22px, 4vw, 48px); gap: 24px; border-radius: 2px; box-shadow: 0 9px 25px #203b2e0d; }
.artifact-view .artifact-header { align-items: start; padding-bottom: 20px; border-bottom: 1px solid #ccd4cb; gap: 20px; }
.artifact-view .artifact-header h3 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 39px); line-height: 1.15; letter-spacing: -.025em; }
.artifact-view .artifact-header .eyebrow { margin-bottom: 0; }
.artifact-view .artifact-section { padding: 20px 0; border: 0; border-top: 1px solid #d8ded6; border-radius: 0; background: transparent; }
.artifact-view .artifact-section h4 { margin: 0 0 18px; font-size: 19px; line-height: 1.3; }
.artifact-view .artifact-section p { max-width: 74ch; margin: 0 0 1.2em; font-size: 17px; line-height: 1.75; }
.artifact-view .artifact-section p:last-child { margin-bottom: 0; }
.artifact-view .artifact-section ul { padding-left: 24px; max-width: 74ch; }
.artifact-view .artifact-section li { margin-bottom: 12px; line-height: 1.65; }
.artifact-view .artifact-meta dd, .artifact-view .artifact-fields dd { overflow-wrap: anywhere; }
.artifact-mail-chrome { display: flex; align-items: center; gap: 12px; padding: 13px 20px; background: #e8edf1; border-bottom: 1px solid #c6d0d8; color: #30495a; font-size: 13px; }
.artifact-mail-chrome > span:first-child { font-size: 24px; }
.artifact-style-correspondence { padding: 0; border: 1px solid #c6d0d8; border-top: 0; background: #fff; gap: 0; }
.artifact-style-correspondence > .artifact-header { padding: 24px 30px; border: 0; }
.artifact-style-correspondence .artifact-header h3 { font: 650 27px/1.2 system-ui, sans-serif; letter-spacing: -.02em; }
.artifact-style-correspondence .artifact-header .eyebrow { display: none; }
.artifact-style-correspondence > .artifact-meta { margin: 0; padding: 0 30px 20px; border-bottom: 1px solid #dce3e8; }
.artifact-style-correspondence .artifact-meta div { gap: 14px; padding: 6px 0; }
.artifact-style-correspondence .artifact-meta dt { color: #677784; width: 95px; font-size: 13px; }
.artifact-style-correspondence .artifact-meta dd { font-size: 14px; }
.artifact-style-correspondence > .artifact-section { padding: 28px 30px; border-top: 0; border-bottom: 1px solid #e0e6eb; }
.artifact-style-correspondence > .artifact-section + .artifact-section { margin: 16px; padding: 24px; border: 1px solid #dce3e8; border-left: 4px solid #819bb0; background: #f9fbfc; }
.artifact-style-correspondence > .artifact-table-wrap { margin: 20px 30px; }
.artifact-style-working { border: 1px solid #d7cbb7; border-top: 7px solid #997650; background: #fffdf5; }
.artifact-style-working .artifact-header h3 { font-family: Georgia, serif; font-weight: 500; }
.artifact-style-working .artifact-meta div { background: #f6f0df; border-color: #e0d4b9; }
.artifact-style-working .artifact-section { border-top-style: dashed; border-color: #d7cbb7; }
.artifact-style-working .artifact-section h4 { color: #725537; }
.artifact-style-field { border-top: 6px solid #b57649; padding-left: clamp(26px, 4vw, 55px); }
.artifact-style-field .artifact-header h3 { font-family: Georgia, serif; font-weight: 500; }
.artifact-style-field .artifact-section { padding: 24px 14px; background: #fffdf6eb; border-top: 1px dashed #cdbb9a; }
.artifact-style-field .artifact-section + .artifact-section { margin-top: 10px; }
.artifact-style-figures { border-top: 8px solid #3e5e70; background: #fff; }
.artifact-style-figures .artifact-header .eyebrow { color: #3e5e70; }
.artifact-style-figures .artifact-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.artifact-style-figures .artifact-meta div { border-radius: 0; background: #edf3f6; border-color: #d9e3e8; }
.artifact-style-figures .artifact-table { font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.artifact-style-figures .artifact-table th { color: #fff; background: #3e5e70; border-color: #7791a0; }
.artifact-style-figures .artifact-table tr:nth-child(even) { background: #eff4f7; }
.artifact-style-report { background: #fcfdfb; border-top: 9px solid #345b4c; }
.artifact-style-report .artifact-header h3 { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 46px); }
.artifact-style-report .artifact-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.artifact-style-report .artifact-meta div { background: #edf2e9; border: 0; border-top: 3px solid #6b8974; border-radius: 0; }
.artifact-style-report .artifact-meta dd { font: 600 20px/1.35 Georgia, serif; }
.artifact-style-formal, .artifact-style-letter { border: 1px solid #d6d0c3; border-top: 6px solid #333f46; background: #fffefa; }
.artifact-style-formal .artifact-header h3, .artifact-style-letter .artifact-header h3 { font-family: Georgia, serif; font-weight: 500; }
.artifact-style-formal .artifact-section h4 { font-family: Georgia, serif; font-size: 22px; }
.artifact-style-formal .artifact-section p, .artifact-style-letter .artifact-section p { font-family: Georgia, serif; font-size: 18px; }
.artifact-style-letter .artifact-header { border-bottom: 3px double #aab5ad; }
.artifact-style-social { background: #edf3f5; border: 0; box-shadow: none; }
.artifact-style-social .artifact-section { margin: 0 0 16px; padding: 24px; border: 1px solid #d0dce2; border-radius: 12px; background: white; }
.artifact-style-social .artifact-section + .artifact-section { margin-left: 24px; }
.opened-message { display: grid; gap: 24px; }
.opened-message-head { border-bottom: 1px solid #d6e0dc; padding-bottom: 20px; }
.opened-message-head .person-row { margin: 15px 0; }
.opened-message-copy { max-width: 80ch; padding: 26px 30px; background: #f2f6f3; border: 1px solid #d7e3db; border-radius: 0 15px 15px; font-size: 18px; line-height: 1.75; }
.opened-message-copy p { margin: 0 0 1.2em; }
.opened-message-copy p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .press-story { padding: 25px 20px; }
  .press-story-head h2 { font-size: 34px; }
  .press-body { font-size: 18px; line-height: 1.7; }
  .press-footer { flex-direction: column; }
  .press-masthead > strong { font-size: 37px; }
  .press-hero .asset-image { max-height: 300px; }
  .artifact-view { padding: 25px 20px; }
  .artifact-view .artifact-header { flex-direction: column; }
  .artifact-style-correspondence { padding: 0; }
  .artifact-style-correspondence > .artifact-header, .artifact-style-correspondence > .artifact-section { padding: 24px 20px; }
  .artifact-style-correspondence > .artifact-meta { padding: 0 20px 20px; }
  .artifact-style-correspondence > .artifact-section + .artifact-section { margin: 12px; padding: 20px; }
  .artifact-style-correspondence .artifact-meta div { flex-wrap: wrap; gap: 4px; }
  .artifact-style-correspondence .artifact-meta dt { width: 100%; }
  .artifact-style-social .artifact-section + .artifact-section { margin-left: 10px; }
  .opened-message-copy { padding: 22px 20px; }
}

.news-item-drawer > h2 { max-width: 38ch; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
.news-sharing-note, .news-item-drawer > p:not(.eyebrow) { max-width: 74ch; font-size: 17px; line-height: 1.75; }
.news-sharing-note { margin: 1.25rem 0 2rem; padding: 1rem 1.5rem; background: #f3f6f3; border-left: 3px solid #426459; }
.news-sharing-note p { margin: 0; }
.news-direct-reading { margin: 1.5rem 0; }
@media (max-width: 640px) { .news-sharing-note { padding: 1rem; } }

.press-hero .drawer-image-frame { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: transparent; }
.press-hero .drawer-image-frame figcaption { padding: 0.75rem 0; }
.news-reader-context { max-width: 74ch; font-size: 17px; line-height: 1.75; }

.press-hero .drawer-image-frame.is-expanded .asset-image { max-height: none; object-fit: contain; }
