:root {
  color-scheme: light;
  --page: #ffffff;
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --panel: #fafafa;
  --panel-strong: #f4f4f4;
  --line: #d8dee4;
  --line-strong: #b6bec8;
  --ink: #1f2428;
  --muted: #57606a;
  --accent: #1e4d68;
  --accent-soft: #dce7ed;
  --accent-strong: #15384c;
  --success: #567645;
  --warning: #9f5e0b;
  --danger: #8b3a2e;
  --shadow: 0 18px 44px rgba(41, 45, 50, 0.08);
  --score-1: #ead1c7;
  --score-2: #edd9b8;
  --score-3: #e6e3bb;
  --score-4: #cfe0bf;
  --score-5: #b7d2c0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html { background: #ffffff; }

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(30, 77, 104, 0.52);
  outline-offset: 2px;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.button-link:hover {
  background: var(--panel);
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-ghost {
  background: transparent;
}

.button-warning {
  border-color: rgba(139, 58, 46, 0.35);
  color: var(--danger);
}

.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
}

.shell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  margin-bottom: 0;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.shell-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.shell-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6f8fa);
  box-shadow: var(--shadow);
}

.shell-header h1,
.shell-header p {
  margin: 0;
}

.shell-title {
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  line-height: 1.08;
}

.shell-description {
  margin-top: 8px;
  color: var(--muted);
  max-width: 72ch;
}

.mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.mode-banner strong {
  display: block;
}

.mode-banner p {
  margin: 2px 0 0;
  color: var(--muted);
}

.mode-banner.manager {
  border-color: #6e1f1d;
  background: #8e2724;
  color: #ffffff;
}

.mode-banner.manager p {
  color: #ffffff;
}

.mode-banner.conversation {
  border-color: rgba(30, 77, 104, 0.24);
  background: #e8f0f3;
}

.mode-banner.maintenance {
  border-color: rgba(159, 94, 11, 0.24);
  background: #f6f8fa;
}

.mode-actions,
.inline-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

form.inline {
  display: inline;
}

.account-menu {
  position: relative;
}

.account-menu > summary {
  display: grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
}

.account-menu > summary::-webkit-details-marker {
  display: none;
}

.account-menu-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  box-shadow: 0 8px 20px rgba(25, 40, 52, 0.14);
}

.account-menu-panel a,
.account-menu-panel button {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
  background: #f0f2f4;
}

.primary-nav,
.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-nav {
  margin-bottom: 16px;
}

.primary-nav a,
.workspace-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.primary-nav a.active,
.workspace-tabs a.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.panel,
.sheet,
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.panel,
.sheet {
  padding: 18px;
}

.panel > :first-child,
.sheet > :first-child,
fieldset > :first-child {
  margin-top: 0;
}

.panel > :last-child,
.sheet > :last-child,
fieldset > :last-child {
  margin-bottom: 0;
}

.stack > * + * {
  margin-top: 12px;
}

.panel h2,
.panel h3,
.sheet h2,
.sheet h3 {
  margin-bottom: 8px;
}

.panel-grid {
  display: grid;
  gap: 16px;
}

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

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

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-strong);
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 700;
}

.subtle {
  color: var(--muted);
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.visibility-badge,
.score-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.88rem;
}

.visibility-shared {
  background: #e5f0e1;
}

.visibility-manager_scope {
  background: #e4edf3;
}

.visibility-author_private {
  background: #f6e8e7;
}

.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.notice.warning {
  border-color: rgba(159, 94, 11, 0.35);
  background: #fcf4e2;
}

.deferred-card {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #f6f8fa;
}

.deferred-card h3,
.preview-card h3 {
  margin-top: 0;
}

.preview-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
}

.workspace-board {
  display: grid;
  grid-template-columns: 220px 280px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

/*
 * The journal workspace is an application surface, rather than a group of
 * cards inside a page.  Keeping the four columns in one grid gives the
 * notebook the continuous desktop reading flow used by the local review.
 */
body.notebook-workspace { background: #ffffff; }

.notebook-workspace .shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.notebook-workspace .shell-topbar {
  min-height: 62px;
  margin: 0;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.notebook-workspace .shell-kicker {
  display: inline-flex;
}

.notebook-workspace .mode-actions {
  margin-left: auto;
}

.notebook-workspace .mode-actions .button-link,
.notebook-workspace .mode-actions button {
  min-height: 32px;
  padding: 5px 10px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
}

.notebook-workspace .mode-actions .button-link:hover,
.notebook-workspace .mode-actions button:hover {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

.notebook-workspace .shell-header {
  display: none;
}

.notebook-workspace .mode-banner {
  min-height: 38px;
  margin: 0;
  padding: 7px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #f6f8fa;
}

.notebook-workspace .mode-banner.manager {
  background: #9d3732;
  color: #ffffff;
}

.notebook-workspace .mode-banner p {
  display: none;
}

.notebook-workspace .mode-banner strong,
.notebook-workspace .mode-banner .status-pill {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notebook-workspace .mode-banner .status-pill {
  min-height: 24px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.72);
}

.notebook-workspace .primary-nav {
  min-height: 42px;
  margin: 0;
  padding: 4px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.notebook-workspace .primary-nav a {
  min-height: 32px;
  padding: 5px 10px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 0.86rem;
}

.notebook-workspace .primary-nav a.active {
  border-color: var(--line);
  background: var(--paper-strong);
}

.notebook-workspace .workspace-board {
  grid-template-columns: 230px 320px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 84px);
  background: var(--paper-strong);
}

.notebook-workspace .workspace-board.assessment-history-workspace {
  grid-template-columns: 230px 176px minmax(0, 1fr);
}

.notebook-workspace .assessment-history-workspace > .entry-pane {
  padding: 12px;
}

.notebook-workspace .assessment-history-workspace .pane-toolbar {
  flex-wrap: wrap;
  min-height: 48px;
  margin: -12px -12px 12px;
  padding: 11px 12px 9px;
}

.notebook-workspace .assessment-history-workspace .entry-card {
  display: grid;
  min-height: 43px;
  padding: 3px 10px;
  align-content: center;
  gap: 2px;
}

.notebook-workspace .assessment-history-workspace .entry-card h3 {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.2;
}

.notebook-workspace .assessment-history-workspace .entry-card .subtle {
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-unlock .shell-header {
  display: none;
}

.notebook-workspace .assessment-history-workspace .entry-preview {
  display: none;
}

.notebook-workspace .workspace-board.two-pane-workspace {
  grid-template-columns: 230px minmax(0, 1fr);
}

.notebook-workspace .workspace-board.manager-placeholder-board:not(.assessment-history-workspace) {
  grid-template-columns: 230px 320px minmax(0, 1fr);
}

.notebook-workspace .workspace-board > .workspace-pane {
  min-width: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--paper-strong);
}

.notebook-workspace .workspace-board > .workspace-pane:not(:last-child) {
  border-right: 1px solid var(--line);
}

.notebook-workspace .crew-pane {
  background: #ffffff !important;
}

.notebook-workspace .entry-pane {
  background: #ffffff !important;
}

.notebook-workspace .summary-pane {
  background: #ffffff !important;
}

.workspace-brand {
  margin: -1px 0 34px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.notebook-workspace .rail-title {
  margin-bottom: 9px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.notebook-workspace .rail-title-spaced {
  margin-top: 30px;
}

.notebook-workspace .rail-nav {
  gap: 3px;
}

.notebook-workspace .rail-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.93rem;
}

.notebook-workspace .rail-nav a.active {
  border-color: transparent;
  background: #f0f2f4;
  color: var(--ink);
}

.notebook-workspace .rail-nav-disabled {
  gap: 3px;
}

.notebook-workspace .rail-nav-disabled span {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #8c959f;
  font-size: 0.93rem;
  cursor: default;
}

.rail-other {
  margin: 0;
}

.rail-other > summary {
  cursor: pointer;
  list-style: none;
}

.rail-other > summary::-webkit-details-marker {
  display: none;
}

.rail-other > summary::after {
  content: "›";
  float: right;
  transform: rotate(0deg);
  transition: transform 120ms ease;
}

.rail-other[open] > summary::after {
  transform: rotate(90deg);
}

.rail-empty {
  display: block;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pane-toolbar,
.summary-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin: -20px -20px 16px;
  padding: 13px 20px 10px;
  border-bottom: 1px solid var(--line);
}

.pane-toolbar .rail-title {
  margin: 2px 0 0;
}

.pane-context {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 600;
}

.pane-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  margin-top: 1px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.notebook-workspace .entry-list {
  gap: 8px;
}

.notebook-workspace .entry-scroll {
  min-height: 0;
  max-height: calc(100vh - 235px);
  overflow-y: auto;
  padding-right: 4px;
}

.notebook-workspace .entry-month-group + .entry-month-group {
  margin-top: 20px;
}

.notebook-workspace .entry-month-group > h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.notebook-workspace .entry-card {
  padding: 14px;
  border-radius: 7px;
  background: #ffffff;
}

.notebook-workspace .entry-card h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.97rem;
}

.index-pagination {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.notebook-workspace .entry-card-link:hover {
  border-color: var(--line-strong);
  box-shadow: none;
}

.notebook-workspace .entry-card.active {
  border-color: #b9cbd5;
  background: #f3f7f9;
}

.notebook-workspace .detail-pane {
  padding: 28px 38px !important;
}

.notebook-workspace .detail-pane .detail-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.notebook-workspace .detail-pane .detail-head h2 {
  margin: 9px 0 4px;
  font-size: clamp(1.65rem, 2vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.notebook-workspace .detail-pane .inline-actions {
  gap: 5px;
}

.notebook-workspace .detail-pane .button-link {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.84rem;
}

.notebook-workspace .workspace-intro {
  max-width: 72ch;
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.notebook-workspace .detail-sections {
  gap: 0;
  border-top: 1px solid var(--line);
}

.notebook-workspace .detail-section {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.notebook-workspace .detail-section-active {
  background: transparent;
}

.notebook-workspace .detail-section h3 {
  font-size: 1rem;
}

.notebook-workspace .summary-block {
  align-content: start;
  gap: 12px;
}

.notebook-workspace .summary-heading {
  margin-bottom: 0;
}

.notebook-workspace .summary-heading .rail-title {
  margin: 4px 0 0;
}

.notebook-workspace .summary-tabs {
  gap: 0;
  margin: 0 -20px 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.notebook-workspace .summary-tabs a {
  min-height: 38px;
  padding: 7px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
}

.notebook-workspace .summary-tabs a.active {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.notebook-workspace .summary-card {
  padding: 15px;
  border-radius: 7px;
  background: var(--paper-strong);
}

.notebook-workspace .summary-card h3 {
  font-size: 0.97rem;
}

.goal-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.goal-action-card,
.goal-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.goal-action-card { padding: 14px; }

.goal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.goal-progress {
  height: 7px;
  margin: 12px 0 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f4f1;
}

.goal-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #82bb8e;
}

.notebook-workspace .status-pill,
.notebook-workspace .score-pill,
.notebook-workspace .visibility-badge {
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
}

.notebook-workspace .workspace-placeholder {
  padding-top: 40px !important;
}

.notebook-workspace .workspace-placeholder h2 {
  max-width: 18ch;
  margin-top: 12px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.notebook-workspace a:focus-visible,
.notebook-workspace button:focus-visible {
  outline: 3px solid rgba(30, 77, 104, 0.46);
  outline-offset: 2px;
}

.notebook-workspace :is(input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(30, 77, 104, 0.52);
  outline-offset: 2px;
}

.conversation-home-board {
  grid-template-columns: 230px minmax(0, 1fr) !important;
  min-height: 65vh;
}

.conversation-home-board .landing-blank {
  background: #ffffff;
}

.rail-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rail-title-spaced {
  margin-top: 18px;
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.workspace-section + .workspace-section {
  margin-top: 10px;
}

.rail-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
}

.rail-nav a:hover {
  background: var(--panel);
  text-decoration: none;
}

.rail-nav a.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.entry-list {
  display: grid;
  gap: 6px;
}

.entry-card {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-strong);
}

.entry-card-link {
  color: inherit;
  text-decoration: none;
}

.entry-card-link:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(41, 45, 50, 0.06);
}

.entry-card.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, #eef5f8, #ffffff);
}

.entry-card h3,
.entry-card p,
.summary-list,
.summary-list li {
  margin: 0;
}

.entry-card h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.entry-preview {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.summary-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.summary-block {
  display: grid;
  gap: 12px;
}

.summary-tabs {
  margin-bottom: 2px;
}

.summary-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
}

.summary-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.summary-card h3 {
  margin: 0;
}

.detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.detail-copy {
  white-space: pre-wrap;
}

.journal-rich-content {
  white-space: normal;
}

.journal-rich-content > :first-child { margin-top: 0; }
.journal-rich-content > :last-child { margin-bottom: 0; }
.journal-rich-content ul.journal-checklist { padding-left: 0; list-style: none; }
.journal-rich-content ul.journal-checklist li::before { content: "☐ "; }
.journal-rich-content ul.journal-checklist li[data-checked="true"]::before { content: "☑ "; }

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.rich-editor-toolbar button { min-height: 32px; padding: 5px 9px; }
.rich-editor-toolbar button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.rich-editor {
  min-height: 180px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.rich-editor:focus-visible { outline: 3px solid rgba(30, 77, 104, 0.46); outline-offset: 2px; }
.rich-editor-ready .rich-editor-source { display: none; }

.workspace-intro {
  margin-top: 14px;
  margin-bottom: 14px;
  color: var(--muted);
}

.detail-sections {
  display: grid;
  gap: 12px;
}

.detail-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.detail-section-active {
  background: linear-gradient(180deg, #f8fbfd, #f2f7f9);
}

.detail-section h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.assessment-grid {
  display: grid;
  gap: 10px;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 6px;
  min-width: 280px;
}

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

.matrix-score-card {
  display: grid;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
  text-align: center;
}

.matrix-score-card .matrix-cell {
  width: 100%;
}

.matrix-label {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.matrix-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 700;
}

.assessment-sheet {
  display: grid;
  gap: 14px;
}

.assessment-sheet-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.details-card {
  padding: 0 14px 14px;
}

.details-card summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}

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

.comment-row {
  padding-top: 4px;
  border-top: 1px solid rgba(209, 196, 175, 0.7);
}

.comment-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.comment-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-row-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.score-pill {
  font-weight: 700;
}

.score-1 {
  background: var(--score-1);
}

.score-2 {
  background: var(--score-2);
}

.score-3 {
  background: var(--score-3);
}

.score-4 {
  background: var(--score-4);
}

.score-5 {
  background: var(--score-5);
}

.rating-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.rating-key .matrix-cell {
  min-width: 36px;
  min-height: 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(209, 196, 175, 0.8);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-card {
  overflow-x: auto;
}

.team-heatmap {
  padding: 20px;
}

.team-heatmap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.team-heatmap-head h2 { margin: 0; }

.manager-root-board {
  grid-template-columns: 230px minmax(0, 1fr) !important;
}

/* Manager list pages have a rail plus one wide reading surface.  Leaving the
 * generic three-column workspace grid in place made Goal and Action cards
 * collapse into a skinny middle column with a large unused area. */
.notebook-workspace .workspace-board.manager-list-board {
  grid-template-columns: 230px minmax(0, 1fr) !important;
}

.manager-root-board .team-heatmap {
  min-width: 0;
  background: var(--paper-strong);
}

.conversation-focus-pane {
  grid-column: 2 / -1;
}

.person-initial {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  vertical-align: middle;
}

.heatmap-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
  border: 1px solid var(--line);
}
.heatmap-col-employee { width: 14%; }
.heatmap-col-category { width: 14.8%; }
.heatmap-col-overall { width: 12%; }
.heatmap-table th,
.heatmap-table td {
  padding: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.heatmap-table tr > :last-child { border-right: 0; }
.heatmap-table thead th {
  padding: 10px;
  line-height: 1.25;
  white-space: normal;
}
.heatmap-table thead th:first-child,
.heatmap-table tbody th { text-align: left; }
.heatmap-table tbody th { padding: 10px 12px; white-space: nowrap; }
.heatmap-table tbody th a { color: var(--ink); }
.heatmap-score { height: 48px; font-weight: 750; }
.heatmap-score a {
  display: grid;
  width: 100%;
  height: 48px;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}
.heatmap-score a:hover,
.rubric-link:hover { text-decoration: underline; }
.rubric-link { color: var(--ink); }
.heatmap-score.score-1 { background: var(--score-1); }
.heatmap-score.score-2 { background: var(--score-2); }
.heatmap-score.score-3 { background: var(--score-3); }
.heatmap-score.score-4 { background: var(--score-4); }
.heatmap-score.score-5 { background: var(--score-5); }
.heatmap-overall { font-weight: 750; }
.heatmap-table tfoot th,
.heatmap-table tfoot td { padding: 10px 8px; background: #fafafa; font-weight: 700; }
.heatmap-table small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.72rem; font-weight: 400; }

.rubric-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.matrix-score-card {
  color: var(--ink);
  text-decoration: none;
}

.matrix-score-card:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.assessment-rubric-targets {
  margin-top: 16px;
}

.rubric-target {
  display: none;
}

.rubric-target:target {
  display: block;
}
.rubric-target.active { display: block; }

.assessment-comment {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rubric-head,
.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.rubric-head h3 {
  margin: 2px 0 0;
  font-size: 1.3rem;
}

.rubric-definition {
  max-width: 90ch;
  margin: 12px 0 18px;
  color: var(--muted);
}

.rubric-scale {
  display: grid;
  gap: 8px;
}

.rubric-level {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid transparent;
}

.rubric-level.selected {
  border-color: var(--accent);
  background: #f6f9fb;
}

.pane-toolbar-actions,
.entry-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-tools form {
  display: flex;
  margin: 0;
}

.ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.circle-action,
.star-action,
.icon-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
}

.circle-action:hover,
.icon-action:hover { border-color: var(--accent); text-decoration: none; }
.circle-action {
  border-color: transparent;
  background: transparent;
}
.circle-action .icon-plus-circle {
  width: 28px;
  height: 28px;
}
.star-action { color: #a0a5aa; }
.star-action.active {
  border-color: #d6a700;
  background: #ffd84d;
  color: #6f5300;
}

.inline-create { width: min(100%, 680px); }
.inline-create > summary {
  cursor: pointer;
  font-weight: 650;
}
.inline-create form {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.notebook-workspace .journal-workspace .detail-pane .detail-head {
  box-sizing: border-box;
  min-height: 102px;
}

.notebook-workspace .journal-workspace .pane-toolbar {
  padding-bottom: 45px;
}

.journal-linked-create .linked-item-fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.assessment-strip-label {
  margin: 14px 0 6px;
  font-size: 0.86rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.self-assessment-tiles .assessment-category-tile {
  cursor: default;
}

.create-menu {
  position: relative;
}

.create-menu > summary {
  cursor: pointer;
  list-style: none;
}

.create-menu > summary::-webkit-details-marker {
  display: none;
}

.create-menu-items {
  position: absolute;
  z-index: 2;
  top: 40px;
  right: 0;
  display: grid;
  min-width: 132px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.create-menu-items a {
  padding: 7px 9px;
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
}

.create-menu-items a:hover,
.create-menu-items a:focus-visible {
  background: var(--selected);
}

.goal-action-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.goal-action-card.kind-goal { border-left: 4px solid #4f91bf; }
.goal-action-card.kind-action { border-left: 4px solid #d49a44; }
.goal-action-column > h3,
.goal-action-column > h4 {
  margin: 0 0 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.goal-action-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}
.compact-back-link { color: var(--muted); }

@media (max-width: 760px) {
  .goal-action-columns { grid-template-columns: 1fr; }
}

@media print {
  .topbar,
  .mode-banner,
  .crew-pane,
  .entry-pane,
  .print-hide,
  .inline-create,
  .entry-tools form,
  .inline-actions { display: none !important; }
  .workspace-board { display: block !important; min-height: auto !important; }
  .detail-pane { border: 0 !important; }
  .detail-section { break-inside: avoid; }
  .manager-workspace .detail-pane::before {
    content: "MANAGER PRIVATE";
    display: block;
    margin-bottom: 12px;
    color: #8f2424;
    font-weight: 800;
  }
}

.rubric-level p {
  margin: 3px 0 0;
}

.assessment-category-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.assessment-category-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 110px;
  padding: 8px;
  gap: 7px;
  align-content: space-between;
  justify-content: stretch;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: center;
}
.assessment-category-tile.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.assessment-category-tile span {
  font-size: 0.74rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.tile-score {
  display: grid;
  width: 100%;
  min-height: 34px;
  place-items: center;
  border-radius: 6px;
}
.assessment-category-editor { display: none; }
.assessment-category-editor.active { display: block; }
.assessment-category-editor .rubric-scale { gap: 5px; }
.rubric-choice {
  width: 100%;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.rubric-choice.previous {
  border-style: dashed;
  border-color: var(--line-strong);
}
.rubric-choice small {
  align-self: center;
  color: var(--muted);
  font-size: 0.72rem;
}
.previous-score-note {
  padding: 4px 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}
.assessment-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.assessment-comment-editor { margin-top: 10px; }
.assessment-comment-editor textarea,
.overall-rationale-compact textarea {
  height: 64px;
  min-height: 64px;
  resize: vertical;
}
.overall-rationale-compact { margin-top: 12px; }
.self-comparison-row {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid #7b69a8;
  background: #f7f4fb;
}
.self-comparison-toggle { margin-top: 10px; }
.matrix-score-card.active { border-color: var(--accent); }

.notebook-workspace .assessment-editor-workspace {
  grid-template-columns: 230px minmax(0, 1fr) !important;
  min-height: calc(100vh - 84px);
}

.assessment-editor-detail {
  display: block;
  min-width: 0;
}

.assessment-editor-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.assessment-category-editors {
  min-height: 0;
}

.assessment-category-editor.active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0;
}

.assessment-category-editor .rubric-scale {
  max-height: none;
  overflow: visible;
}

.assessment-rubric-targets .rubric-target.active {
  max-height: min(62vh, 600px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.assessment-editor-detail .overall-rationale-compact {
  margin-top: 0;
}

.assessment-editor-detail .overall-rationale-compact textarea {
  height: 64px;
  min-height: 64px;
}

.assessment-editor-detail .inline-actions {
  margin-top: 0;
}

.assessment-editor-postscript {
  display: grid;
  gap: 12px;
  max-width: min(100% - 270px, 1480px);
  margin: 16px 20px 32px auto;
}

@media (max-width: 850px) {
  .notebook-workspace .assessment-editor-workspace {
    grid-template-columns: 1fr !important;
  }
  .assessment-editor-postscript {
    max-width: none;
    margin: 12px;
  }
  .assessment-category-tiles { grid-template-columns: 1fr; }
  .assessment-category-tile {
    grid-template-columns: 1fr 44px;
    min-height: 52px;
    align-items: center;
    text-align: left;
  }
}

.employee-rating-detail {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.employee-rating-detail h4 {
  margin: 0 0 8px;
}

.rating-history {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.rating-history li span {
  display: block;
  color: var(--muted);
}

.assessment-comparison {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.assessment-category-detail {
  border-bottom: 1px solid var(--line);
}

.assessment-category-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 650;
}

.category-score-pair {
  display: flex;
  gap: 6px;
}

.comparison-comments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.comparison-comments p {
  margin: 5px 0 0;
}

.maintenance-workspace,
.employee-overview {
  min-width: 0;
  padding: 28px 38px !important;
  background: #ffffff;
}

.maintenance-grid {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.maintenance-section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.maintenance-section > h3,
.section-heading h3 {
  margin: 0 0 12px;
}

.maintenance-roster {
  display: grid;
  gap: 6px;
}

.maintenance-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.maintenance-person strong,
.maintenance-person span {
  display: block;
}

.maintenance-person span {
  color: var(--muted);
  font-size: 0.84rem;
}

.maintenance-action {
  margin-top: 12px;
}

.maintenance-action > summary,
.admin-maintenance > summary {
  cursor: pointer;
  font-weight: 650;
}

.compact-form {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin-top: 14px;
}

.compact-form button {
  justify-self: start;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-results {
  margin-top: 12px;
}

.admin-maintenance {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafafa;
}

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

.overview-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.overview-card {
  display: block;
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

a.overview-card:hover {
  border-color: var(--line-strong);
  background: #fafafa;
  text-decoration: none;
}

.overview-card h3 {
  margin: 4px 0 10px;
}

.overview-card p {
  margin: 6px 0 0;
}

.score-comparison {
  display: flex;
  gap: 20px;
}

.score-comparison strong {
  display: block;
  font-size: 1.35rem;
}

.nine-box-card {
  grid-column: auto;
}

.nine-box-placement {
  display: inline-grid;
  gap: 3px;
  min-width: 210px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-left-width: 5px;
  background: #f6f8fa;
}

.nine-box-lower-performer,
.nine-box-inconsistent-performer { border-left-color: #d65b5b; }
.nine-box-consistent-star,
.nine-box-future-star,
.nine-box-high-professional-plus { border-left-color: #72b874; }
.nine-box-high-professional,
.nine-box-solid-professional,
.nine-box-key-performer,
.nine-box-diamond-in-the-rough { border-left-color: #78a9d4; }

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.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;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.roster-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
}

.roster-card h3 {
  margin: 0 0 6px;
}

.roster-card p {
  margin: 4px 0;
}

.list-table summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}

textarea,
select,
input[type="text"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="date"] {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

fieldset {
  margin: 0;
  padding: 16px;
}

legend {
  padding: 0 8px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 12px;
}

/* The MROF fields share the form-grid layout.  Preserve the semantic hidden
   state until MROF is the selected journal-entry type. */
.form-grid[hidden] {
  display: none;
}

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

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

.history-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 0 12px 12px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f9fafb;
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-hero,
.login-form-panel {
  padding: 28px;
}

.login-hero {
  background: linear-gradient(180deg, #1e4d68, #143649);
  color: #f7fbfd;
}

.login-hero h1 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.login-hero p {
  color: rgba(247, 251, 253, 0.82);
}

.login-form-panel {
  display: grid;
  align-content: center;
  gap: 16px;
}

.login-form-panel form {
  display: grid;
  gap: 14px;
}

.callout-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.callout-item {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.errorlist,
.errornote {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(139, 58, 46, 0.35);
  border-radius: 10px;
  background: #fff2ef;
  color: var(--danger);
  list-style: none;
}

ul.errorlist {
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .workspace-board {
    grid-template-columns: 190px 240px minmax(0, 1fr);
  }

  .workspace-board > .summary-pane {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1400px) {
  .notebook-workspace .workspace-board {
    grid-template-columns: 210px 280px minmax(0, 1fr);
  }

  .notebook-workspace .detail-pane {
    padding: 26px 30px !important;
  }
}

@media (max-width: 1120px) {
  .notebook-workspace .workspace-board {
    grid-template-columns: 200px 260px minmax(0, 1fr);
  }

  .notebook-workspace .workspace-board > .summary-pane {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .notebook-workspace .summary-pane {
    grid-template-columns: minmax(180px, 0.8fr) repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .notebook-workspace .summary-heading,
  .notebook-workspace .summary-tabs {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .notebook-workspace .workspace-board.assessment-history-workspace {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 16px;
  }

  .shell-topbar,
  .shell-header,
  .mode-banner,
  .detail-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .panel-grid.two,
  .panel-grid.three,
  .form-grid.two,
  .login-card {
    grid-template-columns: 1fr;
  }

  .workspace-board {
    grid-template-columns: 1fr;
  }

  .notebook-workspace .shell-topbar,
  .notebook-workspace .mode-banner,
  .notebook-workspace .primary-nav {
    padding-right: 16px;
    padding-left: 16px;
  }

  .notebook-workspace .workspace-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .notebook-workspace .workspace-board.two-pane-workspace {
    grid-template-columns: 1fr;
  }

  .conversation-home-board {
    grid-template-columns: 1fr !important;
  }

  .manager-root-board,
  .conversation-focus-pane {
    grid-column: auto;
    grid-template-columns: 1fr !important;
  }

  .notebook-workspace .workspace-board > .workspace-pane:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notebook-workspace .workspace-board > .summary-pane {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .notebook-workspace .detail-pane {
    padding: 24px 20px !important;
  }

  .matrix-strip {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }

  .matrix {
    min-width: 0;
  }

  .overview-card-grid,
  .admin-maintenance-grid,
  .comparison-comments {
    grid-template-columns: 1fr;
  }

  .maintenance-person {
    align-items: start;
    flex-direction: column;
  }
}
.development-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;padding:1rem 0}.development-plan-card{display:block;border:1px solid #d8dee4;border-radius:12px;padding:1rem;background:#fff;color:inherit;text-decoration:none}.development-plan-card:hover{border-color:#7b94a7}.roadmap-track,.goal-progress{height:7px;border-radius:99px;background:#e8edf0;overflow:hidden}.roadmap-track span,.goal-progress span{display:block;height:100%;background:#79b88c}.publication-state{display:inline-block;margin-top:.6rem;font-size:.8rem;color:#315d45}.publication-state.private,.private-label{color:#8b3131}.roadmap-overview{display:grid;gap:1rem;padding:1rem 0;border-bottom:1px solid #d8dee4}.private-roadmap-note{border-left:4px solid #9b2c2c;padding-left:1rem}.private-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}.development-timeline{position:relative;padding:1rem 0}.roadmap-item{display:grid;grid-template-columns:34px 1fr;gap:.7rem;margin-bottom:1rem}.roadmap-marker{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#1f5876;color:#fff;font-weight:700}.roadmap-item-body{border:1px solid #d8dee4;border-radius:10px;padding:1rem}.roadmap-measure{margin:.6rem 0;padding:.5rem;background:#f4f7f8;border-radius:6px}.evidence-list{margin:.4rem 0}.development-edit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem}.development-edit-grid details,.publication-panel{border:1px solid #d8dee4;border-radius:10px;padding:1rem;background:#fff}.development-edit-grid summary{font-weight:700;cursor:pointer}.publication-panel{margin-top:1rem}.development-summary{max-width:980px;margin:0 auto;padding:2rem}.summary-selector ul{list-style:none;padding:0}.summary-selector li{padding:.55rem;border-bottom:1px solid #e3e7ea}.summary-plan{page-break-inside:avoid;border-top:2px solid #1f5876;padding-top:1rem;margin-top:1rem}.summary-plan article{margin:1rem 0;padding-left:1rem;border-left:3px solid #b9c8d2}@media print{.development-summary{max-width:none;padding:0}.print-hide{display:none!important}}

/* Keep interactive notebook controls comfortable at narrow widths without
   introducing a separate mobile visual system. */
@media (max-width: 560px) {
  .notebook-workspace .shell-topbar { min-height: 56px; padding: 8px 12px; }
  .notebook-workspace .shell-kicker { padding: 4px 0; font-size: 1rem; }
  .notebook-workspace .mode-actions { gap: 6px; }
  .notebook-workspace .mode-actions .button-link,
  .notebook-workspace .mode-actions button { min-height: 34px; padding: 6px 8px; font-size: .82rem; }
  .pane-toolbar, .detail-head { gap: 10px; }
  .entry-card { padding: 10px 12px; }
  .heatmap-table { min-width: 780px; }
}
