:root {
  --ink: #10242a;
  --muted: #607076;
  --paper: #f4f1ea;
  --panel: #ffffff;
  --line: #d9e2e1;
  --teal: #087d7b;
  --teal-dark: #075e60;
  --blue: #315f9f;
  --coral: #db694f;
  --gold: #c5902e;
  --green: #3c8761;
  --sidebar: #112e34;
  --soft-teal: #e4f3f1;
  --soft-coral: #f8ded7;
  --shadow: 0 18px 46px rgba(16, 36, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 125, 123, 0.08), transparent 42%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
  color: #effafa;
  background: var(--sidebar);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, #0b9c9a, #e3a43b);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 0;
  font-size: 24px;
}

h2 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.08;
}

h4 {
  margin-bottom: 0;
  font-size: 16px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #9ee4df;
}

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

.nav-tab {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 9px 11px;
  color: #e9f5f4;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  font-weight: 750;
}

.nav-tab span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.nav-tab:hover,
.nav-tab.active {
  color: var(--ink);
  background: #f8fbfb;
}

.nav-tab:hover span,
.nav-tab.active span {
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.note-title {
  margin-bottom: 6px;
  color: #ffd27b;
  font-weight: 900;
}

.sidebar-note p:last-child {
  margin-bottom: 0;
  color: #d4e8e6;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  padding: 30px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 26px;
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.workflow-strip div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.workflow-strip span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 11px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 560px);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.section-actions p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel,
.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.model-pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.ops-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(260px, 1fr) 46px minmax(240px, 0.8fr);
  gap: 10px;
  align-items: end;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 36, 42, 0.08);
}

.ops-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.search-box {
  min-width: 0;
}

.bell-btn {
  width: 46px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--coral);
  font-weight: 950;
}

.bell-btn::before {
  content: "!";
  display: inline-block;
  margin-right: 4px;
}

.role-access {
  display: grid;
  gap: 2px;
  min-height: 40px;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--teal-dark);
  background: var(--soft-teal);
  font-size: 12px;
}

.role-access span {
  color: var(--muted);
  font-weight: 800;
}

.search-results {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 30px;
}

.search-results > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-result {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fbfdfc;
  text-align: left;
}

.search-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.model-pill {
  min-height: 28px;
  padding: 5px 9px;
  color: var(--teal-dark);
  background: var(--soft-teal);
}

.tag {
  min-height: 24px;
  padding: 3px 8px;
  color: var(--muted);
  background: #eef2f1;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  min-height: 40px;
  border-radius: 8px;
  border: 0;
  padding: 9px 13px;
  font-weight: 900;
}

.primary-btn {
  color: white;
  background: var(--teal);
}

.primary-btn:hover {
  background: var(--teal-dark);
}

.secondary-btn {
  color: var(--teal-dark);
  background: var(--soft-teal);
}

.ghost-btn {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.danger-btn {
  color: #8d321f;
  background: var(--soft-coral);
}

.metric-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

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

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

.metric-card {
  padding: 16px;
}

.metric-card span {
  display: block;
  font-size: 30px;
  font-weight: 950;
}

small {
  color: var(--muted);
  font-weight: 800;
}

.overview-grid,
.planner-grid,
.outcome-grid,
.evidence-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
}

.lower-grid {
  margin-top: 18px;
}

.calendar-panel {
  margin-bottom: 18px;
}

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

.calendar-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfdfc;
}

.calendar-date {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  color: white;
  background: var(--teal-dark);
}

.calendar-date strong {
  font-size: 22px;
}

.calendar-date span {
  font-size: 12px;
  font-weight: 900;
}

.calendar-body {
  min-width: 0;
  padding: 14px;
}

.calendar-body p {
  margin-bottom: 7px;
  color: var(--muted);
  line-height: 1.4;
}

.atlas-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #cbdcdd;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 22% 28%, #a9d2dc 0 9%, transparent 10%),
    radial-gradient(circle at 70% 32%, #dbc99f 0 12%, transparent 13%),
    radial-gradient(circle at 76% 70%, #b9d1c0 0 14%, transparent 15%),
    radial-gradient(circle at 36% 68%, #edb6a4 0 10%, transparent 11%),
    #dbeaf0;
}

.atlas-map::after {
  content: "World access layer · demo coordinates";
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.atlas-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 36, 42, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 42, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
}

.map-node {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(16, 36, 42, 0.25);
}

.map-node::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: white;
}

.map-node.selected {
  width: 28px;
  height: 28px;
  background: var(--gold);
}

.map-label {
  position: absolute;
  z-index: 2;
  min-width: 132px;
  transform: translate(-50%, 18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(16, 36, 42, 0.13);
  font-size: 12px;
  line-height: 1.28;
}

.map-label strong {
  display: block;
}

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

.list-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.list-card[data-select-community] {
  cursor: pointer;
}

.list-card.selected {
  border-color: var(--teal);
  background: #eef8f7;
}

.list-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 950;
}

.list-card p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.plan-overview {
  margin-bottom: 12px;
}

.plan-callout {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(8, 125, 123, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft-teal);
}

.plan-callout strong {
  font-size: 18px;
}

.plan-callout span {
  color: var(--teal-dark);
  line-height: 1.45;
  font-weight: 750;
}

.plan-callout.empty {
  background: #fbfdfc;
  border-color: var(--line);
}

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

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeee;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

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

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
}

input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--teal);
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--ink) !important;
}

.check-row input {
  width: auto;
  min-height: auto;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.slider-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 850;
}

.control-panel {
  align-self: start;
}

.control-panel button {
  width: 100%;
  margin-top: 8px;
}

.schedule-panel {
  margin-top: 18px;
}

.schedule-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

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

.team-grid,
.trend-grid,
.sort-board,
.record-grid,
.score-grid,
.lesson-plan-grid,
.inventory-grid,
.version-grid,
.impact-grid,
.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-card,
.lesson-plan-card,
.score-card,
.sort-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.audit-card {
  padding: 10px 12px;
}

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

.score-card strong {
  font-size: 15px;
}

.score-card span {
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 950;
}

.score-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.constraint-warning,
.what-changed {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}

.constraint-warning.ok,
.what-changed {
  border: 1px solid rgba(8, 125, 123, 0.2);
  background: var(--soft-teal);
}

.constraint-warning.alert {
  border: 1px solid rgba(219, 105, 79, 0.28);
  background: var(--soft-coral);
}

.constraint-warning span,
.what-changed span {
  color: var(--muted);
  line-height: 1.4;
}

.json-preview {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #10242a;
  color: #e9f5f4;
  font-size: 12px;
  line-height: 1.5;
}

.lesson-plan-card {
  border-color: rgba(8, 125, 123, 0.22);
}

.lesson-plan-card p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.ai-card {
  border-color: rgba(49, 95, 159, 0.28);
  background: #f3f7fd;
}

.team-section {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.team-section strong {
  display: block;
  margin-bottom: 6px;
}

.team-section p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.team-section p + p {
  margin-top: 6px;
}

.team-section span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.sort-card {
  display: grid;
  gap: 4px;
}

.intel-hero {
  grid-row: span 2;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(8, 125, 123, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft-teal);
}

.intel-hero strong {
  font-size: 56px;
  line-height: 0.92;
}

.intel-hero span,
.intel-hero p {
  margin: 0;
  color: var(--teal-dark);
  line-height: 1.45;
  font-weight: 850;
}

.twin-panel,
.profile-grid,
.timeline,
.people-list,
.algorithm-list,
.heatmap {
  display: grid;
  gap: 10px;
}

.twin-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 850;
}

.twin-title strong {
  color: var(--ink);
}

.twin-snapshot,
.profile-main,
.profile-stat,
.inventory-card,
.person-card,
.version-card,
.algorithm-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.twin-snapshot strong {
  display: block;
  margin-bottom: 10px;
}

.twin-row {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bar-fill.inverse {
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

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

.profile-main {
  grid-row: span 3;
}

.fake-photo {
  display: grid;
  min-height: 132px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(8, 125, 123, 0.78), rgba(219, 105, 79, 0.68)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.16) 0 8px, transparent 8px 16px);
  font-weight: 950;
}

.profile-main p,
.profile-stat span,
.inventory-card p,
.person-card p,
.version-card p,
.algorithm-card p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.profile-stat strong {
  display: block;
  margin-bottom: 3px;
  font-size: 22px;
}

.profile-stat.wide {
  grid-column: 1 / -1;
}

.timeline-step {
  position: relative;
  border-left: 4px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfdfc;
}

.timeline-step.complete {
  border-left-color: var(--green);
}

.timeline-step.active {
  border-left-color: var(--gold);
}

.timeline-step.waiting {
  border-left-color: var(--coral);
}

.timeline-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.person-card .list-topline,
.inventory-card .list-topline,
.version-card .list-topline {
  margin-bottom: 6px;
}

.heat-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.heat-row div {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.heat-row i {
  height: 18px;
  border-radius: 4px;
  background: #e5eceb;
}

.heat-row i.hot {
  background: linear-gradient(180deg, var(--teal), var(--green));
}

.algorithm-card strong {
  display: block;
  margin-bottom: 5px;
}

.report-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-card strong {
  font-size: 20px;
}

.sort-card span {
  color: var(--muted);
  font-weight: 800;
}

.sort-card em {
  color: var(--teal-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.curriculum-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.curriculum-card > p {
  margin-bottom: 0;
  color: var(--muted);
}

.curriculum-step {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.curriculum-step strong {
  display: block;
  margin-bottom: 4px;
}

.curriculum-step p,
.progression-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.progression-box {
  margin-top: 12px;
  border: 1px solid rgba(8, 125, 123, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft-teal);
}

.progression-box strong {
  display: block;
  margin-bottom: 8px;
}

.progression-box p + p {
  margin-top: 8px;
}

.day-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.day-card strong {
  display: block;
  margin-bottom: 8px;
}

.day-card p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.35;
}

canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.skill-graph {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.graph-edge {
  position: absolute;
  height: 3px;
  transform-origin: left center;
  border-radius: 999px;
  background: #abc8cd;
}

.graph-node {
  position: absolute;
  width: 126px;
  min-height: 64px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: white;
  box-shadow: 0 12px 26px rgba(16, 36, 42, 0.12);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.graph-node.bottleneck {
  border-color: var(--coral);
  background: var(--soft-coral);
}

.graph-node.strong {
  border-color: var(--green);
  background: #e5f2e9;
}

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

.packet-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: 340px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: white;
  background: var(--teal-dark);
  box-shadow: 0 18px 40px rgba(16, 36, 42, 0.25);
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-tabs {
    grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  }

  .hero,
  .section-heading,
  .overview-grid,
  .planner-grid,
  .outcome-grid,
  .evidence-grid,
  .two-column,
  .operations-grid,
  .ops-toolbar {
    grid-template-columns: 1fr;
  }

  .action-row {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .workflow-strip,
  .nav-tabs,
  .search-results,
  .metric-grid.four,
  .metric-grid.three,
  .form-grid,
  .calendar-grid,
  .curriculum-grid,
  .team-grid,
  .trend-grid,
  .sort-board,
  .record-grid,
  .score-grid,
  .lesson-plan-grid,
  .packet-grid,
  .inventory-grid,
  .version-grid,
  .impact-grid,
  .intelligence-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .search-results {
    grid-column: 1;
  }

  .calendar-card {
    grid-template-columns: 1fr;
  }

  .atlas-map,
  .skill-graph {
    min-height: 650px;
  }

  .slider-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .twin-row,
  .heat-row {
    grid-template-columns: 1fr;
  }

  .model-pill {
    white-space: normal;
  }
}
