:root {
  --coral: #F04B2D;
  --orange: #F0782D;
  --amber: #F0A53C;
  --ink: #1F1E1D;
  --charcoal: #3B3B3B;
  --slate: #6B6862;
  --stone: #9C998F;
  --bone: #EEEEEE;
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --success: #17A66B;
  --info: #2E7CF6;
  --warning: #F0A53C;
  --danger: #E5484D;
  --shadow-sm: 0 10px 30px rgba(31, 30, 29, .06);
  --shadow-md: 0 24px 70px rgba(31, 30, 29, .12);
  --shadow-hot: 0 18px 55px rgba(240, 120, 45, .28);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shell: min(1180px, calc(100vw - 48px));
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
::selection { background: rgba(240, 120, 45, .24); }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .028;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.shell { width: var(--shell); margin-inline: auto; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1180px)/2));
  color: var(--white);
  transition: background .35s ease, box-shadow .35s ease, color .35s ease, height .35s ease;
}
.topbar.scrolled {
  height: 68px;
  color: var(--ink);
  background: rgba(250, 249, 246, .9);
  border-bottom: 1px solid rgba(238, 238, 238, .9);
  box-shadow: 0 10px 40px rgba(31, 30, 29, .06);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  align-items: end;
  padding: 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  box-shadow: 0 8px 24px rgba(240, 75, 45, .25);
}
.brand-mark span { display: block; background: var(--white); border-radius: 3px 3px 1px 1px; }
.brand-mark span:nth-child(1) { height: 38%; }
.brand-mark span:nth-child(2) { height: 68%; }
.brand-mark span:nth-child(3) { height: 100%; }
.brand-copy { display: grid; line-height: 1; letter-spacing: .09em; }
.brand-copy strong { font-size: 14px; font-weight: 850; }
.brand-copy small { font-size: 8px; margin-top: 4px; opacity: .72; letter-spacing: .23em; }

.topnav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.topnav a { position: relative; font-size: 13px; font-weight: 650; opacity: .82; }
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: currentColor;
  transition: right .25s ease;
}
.topnav a:hover::after { right: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.view-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,.12);
}
.topbar.scrolled .view-badge { border-color: var(--bone); background: var(--white); color: var(--slate); }

.btn {
  border: 0;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 13px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--orange); box-shadow: 0 10px 28px rgba(240, 120, 45, .25); }
.btn-primary:hover { background: #DD6721; box-shadow: var(--shadow-hot); }
.btn-ghost { color: inherit; background: transparent; border: 1px solid rgba(255,255,255,.3); }
.topbar.scrolled .btn-ghost { border-color: var(--bone); background: var(--white); }
.btn-light { color: var(--ink); background: var(--white); box-shadow: 0 12px 36px rgba(94, 39, 13, .16); }
.btn-dark { color: var(--white); background: rgba(31,30,29,.88); border: 1px solid rgba(255,255,255,.15); }
.text-btn { border: 0; background: none; color: var(--orange); padding: 0; font-size: 12px; font-weight: 750; }
.danger-text { color: var(--danger); }

.hero {
  min-height: 780px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--white);
  background: linear-gradient(118deg, var(--coral) 0%, var(--orange) 49%, var(--amber) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to top, rgba(31,30,29,.12), transparent);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, black, transparent 86%);
  animation: gridDrift 24s linear infinite;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); border: 1px solid rgba(255,255,255,.24); }
.orb-one { width: 520px; height: 520px; right: -120px; top: 90px; background: rgba(255,255,255,.08); animation: floatOne 13s ease-in-out infinite; }
.orb-two { width: 220px; height: 220px; right: 20%; bottom: -70px; background: rgba(31,30,29,.07); animation: floatTwo 10s ease-in-out infinite; }
.hero-content { position: relative; z-index: 2; padding: 130px 0 90px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2s infinite; }
.hero-separator { width: 36px; height: 1px; background: rgba(255,255,255,.5); }
.hero h1 { margin: 30px 0 22px; max-width: 900px; font-size: clamp(56px, 8.1vw, 112px); line-height: .91; letter-spacing: -.065em; font-weight: 830; }
.hero h1 em { font-style: normal; color: rgba(255,255,255,.7); }
.hero-sub { max-width: 650px; margin: 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.5; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 42px; margin-top: 72px; }
.hero-meta div { display: grid; gap: 3px; }
.hero-meta span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.hero-meta strong { font-size: 13px; font-weight: 700; }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.scroll-cue i { width: 1px; height: 28px; background: var(--white); transform-origin: top; animation: scrollCue 1.8s ease-in-out infinite; }

.section { padding: 112px 0; }
.section-soft { background: #F2F0EA; }
.section-ink { color: var(--white); background: var(--ink); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .7fr); gap: 80px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { margin: 7px 0 0; color: var(--ink); font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--slate); font-size: 16px; }
.section-heading.inverse h2 { color: var(--white); }
.section-heading.inverse p { color: rgba(255,255,255,.62); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--orange); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .15em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.section-ink .eyebrow { color: var(--amber); }
.section-ink .eyebrow::before { background: var(--amber); }

.objective-card {
  position: relative;
  overflow: hidden;
  padding: 40px 44px 34px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.objective-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--orange); }
.objective-card::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -130px; top: -150px; border: 50px solid rgba(240,120,45,.12); }
.objective-label { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--amber); }
.objective-status { color: rgba(255,255,255,.56); }
.objective-card h3 { position: relative; z-index: 1; max-width: 940px; margin: 30px 0 50px; font-size: clamp(34px, 4.7vw, 62px); line-height: 1.08; letter-spacing: -.038em; }
.objective-footer { position: relative; z-index: 1; display: flex; align-items: end; gap: 34px; }
.metric-inline { display: grid; grid-template-columns: auto auto auto; align-items: baseline; gap: 5px; }
.metric-inline span { grid-column: 1 / -1; font-size: 10px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .1em; }
.metric-inline strong { font-size: 30px; line-height: 1; }
.metric-inline small { font-size: 12px; color: rgba(255,255,255,.5); }
.confidence-track { flex: 1; height: 8px; margin-bottom: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.confidence-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--orange); transition: width 1.1s var(--ease); }

.kr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.kr-card {
  position: relative;
  padding: 26px;
  min-height: 350px;
  background: var(--white);
  border: 1px solid var(--bone);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.kr-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(240,120,45,.26); }
.kr-number { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 850; color: var(--orange); letter-spacing: .12em; text-transform: uppercase; }
.kr-owner { color: var(--stone); letter-spacing: 0; text-transform: none; font-weight: 650; }
.kr-card h4 { min-height: 86px; margin: 22px 0 26px; color: var(--ink); font-size: 21px; line-height: 1.28; letter-spacing: -.02em; }
.ring-wrap { display: flex; align-items: center; gap: 22px; }
.progress-ring {
  --p: 0;
  width: 98px;
  height: 98px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), #EFEDE7 0);
  position: relative;
}
.progress-ring::before { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: var(--white); }
.progress-ring strong { position: relative; z-index: 1; color: var(--ink); font-size: 21px; }
.kr-values { display: grid; gap: 8px; font-size: 12px; }
.kr-values div { display: flex; justify-content: space-between; gap: 18px; color: var(--stone); }
.kr-values strong { color: var(--charcoal); font-weight: 750; }
.kr-evidence { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bone); }
.kr-evidence span { display: block; margin-bottom: 6px; color: var(--stone); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.kr-evidence p { margin: 0; color: var(--slate); font-size: 13px; }
.confidence-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; margin-top: 14px; border-radius: 999px; background: #F7F4ED; color: var(--slate); font-size: 11px; font-weight: 750; }
.confidence-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.confidence-pill.high i { background: var(--success); }
.confidence-pill.low i { background: var(--danger); }

.department-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }
.department-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { border: 1px solid #E2DED5; background: transparent; color: var(--slate); border-radius: 999px; padding: 8px 13px; font-size: 11px; font-weight: 750; transition: all .2s ease; }
.filter-btn:hover, .filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.department-count { color: var(--stone); font-size: 12px; }
.department-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.department-card {
  position: relative;
  overflow: hidden;
  min-height: 305px;
  padding: 28px;
  background: var(--white);
  border: 1px solid #E6E2DA;
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.department-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--orange); transform: scaleX(.15); transform-origin: left; transition: transform .45s var(--ease); }
.department-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.department-card:hover::before { transform: scaleX(1); }
.department-top { display: flex; justify-content: space-between; gap: 18px; }
.department-name { display: grid; gap: 3px; }
.department-name span { color: var(--stone); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.department-name strong { color: var(--ink); font-size: 19px; }
.alignment-tag { align-self: start; padding: 6px 9px; border-radius: 999px; color: #9A501A; background: #FFF1E2; font-size: 10px; font-weight: 800; }
.department-objective { margin: 23px 0; color: var(--charcoal); font-size: 18px; line-height: 1.38; font-weight: 700; }
.team-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.team-progress span { flex: 1; height: 6px; border-radius: 99px; background: #ECE9E2; overflow: hidden; }
.team-progress span i { display: block; height: 100%; background: var(--orange); border-radius: inherit; transition: width 1s var(--ease); }
.team-progress strong { color: var(--ink); font-size: 12px; }
.team-krs { display: grid; gap: 9px; }
.team-kr { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: start; padding-top: 9px; border-top: 1px solid var(--bone); color: var(--slate); font-size: 12px; }
.team-kr b { color: var(--orange); font-size: 10px; }
.team-kr strong { color: var(--ink); font-size: 11px; }
.department-card[hidden] { display: none; }

.rhythm-overview { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-bottom: 20px; }
.week-stamp { display: grid; place-content: center; min-height: 180px; padding: 24px; color: var(--white); text-align: center; background: var(--orange); border-radius: var(--radius-md); box-shadow: var(--shadow-hot); }
.week-stamp span { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; opacity: .72; }
.week-stamp strong { margin: 8px 0 2px; font-size: 34px; line-height: 1; }
.week-stamp small { opacity: .76; }
.confidence-chart { min-height: 180px; padding: 18px 22px 12px; background: var(--white); border: 1px solid var(--bone); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.confidence-chart svg { width: 100%; height: 148px; overflow: visible; }
.chart-label { fill: var(--stone); font-size: 9px; }
.chart-grid { stroke: #EAE7E0; stroke-width: 1; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { stroke: var(--white); stroke-width: 2; }
.chart-legend { display: flex; justify-content: flex-end; gap: 18px; margin-top: -4px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--stone); font-size: 10px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.four-square { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rhythm-card { min-height: 340px; padding: 27px; border: 1px solid var(--bone); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.rhythm-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--white); font-size: 11px; font-weight: 850; }
.rhythm-icon.coral { background: var(--coral); }
.rhythm-icon.amber { background: var(--amber); color: var(--ink); }
.rhythm-icon.success { background: var(--success); }
.rhythm-icon.info { background: var(--info); }
.rhythm-title { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 20px 0 18px; }
.rhythm-title span { color: var(--ink); font-size: 20px; font-weight: 800; }
.rhythm-title small { color: var(--stone); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { position: relative; min-height: 54px; padding: 13px 0 13px 36px; border-top: 1px solid var(--bone); color: var(--slate); font-size: 13px; }
.clean-list li::before { position: absolute; left: 0; top: 14px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; font-size: 9px; font-weight: 850; }
.commitments { counter-reset: item; }
.commitments li { counter-increment: item; }
.commitments li::before { content: counter(item); background: #FFF0EA; color: var(--coral); }
.upcoming li::before { content: "→"; background: #FFF6DF; color: #9E6B08; }
.wins li::before { content: "✓"; background: #E5F6EE; color: var(--success); }
.clean-list strong { display: block; color: var(--ink); font-size: 12px; }
.clean-list small { color: var(--stone); }
.learning-copy > p { min-height: 108px; margin: 0 0 20px; padding: 18px; color: var(--charcoal); background: #F7F5F0; border-radius: var(--radius-sm); }
.decision-callout { padding: 17px 18px; border-left: 4px solid var(--info); background: #EDF4FF; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.decision-callout span { display: block; margin-bottom: 4px; color: var(--info); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.decision-callout strong { color: var(--ink); font-size: 13px; }

.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.health-card { padding: 22px; border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius-md); background: rgba(255,255,255,.055); transition: transform .3s var(--ease), background .3s ease; }
.health-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.08); }
.health-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.health-status span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.health-status span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(23,166,107,.12); }
.health-card.watch .health-status span::before { background: var(--warning); box-shadow: 0 0 0 5px rgba(240,165,60,.12); }
.health-card.critical .health-status span::before { background: var(--danger); box-shadow: 0 0 0 5px rgba(229,72,77,.12); }
.health-card h3 { min-height: 48px; margin: 0 0 16px; font-size: 17px; line-height: 1.35; }
.health-value { display: flex; align-items: baseline; gap: 7px; margin-bottom: 17px; }
.health-value strong { font-size: 28px; color: var(--white); }
.health-value span { color: rgba(255,255,255,.45); font-size: 11px; }
.health-card p { margin: 0; color: rgba(255,255,255,.55); font-size: 12px; }

.closing-section { padding-top: 92px; padding-bottom: 92px; }
.closing-card { display: flex; justify-content: space-between; gap: 60px; align-items: end; padding: 46px; background: var(--white); border: 1px solid var(--bone); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.closing-card h2 { margin: 10px 0 12px; color: var(--ink); font-size: clamp(38px, 5vw, 64px); letter-spacing: -.05em; line-height: 1; }
.closing-card p { max-width: 680px; margin: 0; color: var(--slate); }
.footer { padding: 27px 0; color: var(--stone); background: #F0EEE8; border-top: 1px solid #E6E1D7; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer p { margin: 0; font-size: 11px; }
.footer-brand .brand-copy strong { color: var(--ink); }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* CEO Studio */
dialog { border: 0; padding: 0; color: var(--charcoal); background: transparent; }
dialog::backdrop { background: rgba(31,30,29,.62); backdrop-filter: blur(8px); }
.studio { width: min(1120px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border-radius: 26px; box-shadow: 0 40px 130px rgba(0,0,0,.32); }
.studio-shell { display: grid; grid-template-rows: auto auto auto minmax(0,1fr) auto; max-height: calc(100vh - 24px); background: var(--paper); }
.studio-header { display: flex; justify-content: space-between; align-items: center; padding: 26px 30px 18px; background: var(--white); }
.studio-header h2 { margin: 5px 0 0; color: var(--ink); font-size: 31px; letter-spacing: -.035em; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--bone); border-radius: 50%; background: var(--white); color: var(--slate); font-size: 23px; transition: transform .2s ease, color .2s ease; }
.icon-btn:hover { color: var(--ink); transform: rotate(7deg); }
.studio-status { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 30px; background: #F7F4ED; border-block: 1px solid #EDE9DF; color: var(--slate); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.studio-status.connected .status-dot { background: var(--success); }
.studio-status .text-btn { margin-left: auto; }
.studio-tabs { display: flex; gap: 4px; padding: 14px 30px; overflow-x: auto; background: var(--white); border-bottom: 1px solid var(--bone); }
.studio-tab { flex: 0 0 auto; border: 0; padding: 9px 13px; border-radius: 10px; background: transparent; color: var(--slate); font-size: 12px; font-weight: 750; }
.studio-tab.active { color: var(--ink); background: #F2EFE8; }
.studio-body { overflow: auto; padding: 30px; }
.studio-panel { display: none; animation: panelIn .25s ease both; }
.studio-panel.active { display: block; }
.form-section { margin-bottom: 30px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; }
.form-section-header h3 { margin: 0; color: var(--ink); font-size: 19px; }
.form-section-header p { margin: 3px 0 0; color: var(--stone); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 13px; }
.field { display: grid; gap: 7px; grid-column: span 6; }
.field.span-12 { grid-column: 1 / -1; }
.field.span-8 { grid-column: span 8; }
.field.span-4 { grid-column: span 4; }
.field.span-3 { grid-column: span 3; }
.field span { color: var(--slate); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #DDD9D0;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,120,45,.1); }
.edit-card { padding: 18px; margin-bottom: 12px; border: 1px solid #E4E0D7; border-radius: 15px; background: var(--white); }
.edit-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.edit-card-top strong { color: var(--ink); font-size: 14px; }
.edit-card-top small { color: var(--stone); }
.small-btn { border: 1px solid var(--bone); border-radius: 9px; padding: 6px 9px; color: var(--slate); background: var(--white); font-size: 10px; font-weight: 750; }
.small-btn:hover { color: var(--ink); border-color: #CCC7BC; }
.small-btn.danger { color: var(--danger); }
.department-editor-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 17px; padding-bottom: 3px; }
.department-editor-tab { flex: 0 0 auto; border: 1px solid #E0DCD3; border-radius: 999px; padding: 7px 11px; color: var(--slate); background: var(--white); font-size: 10px; font-weight: 800; }
.department-editor-tab.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.studio-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 30px; background: var(--white); border-top: 1px solid var(--bone); }
.studio-secondary-actions, .studio-primary-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.studio-footer .btn-ghost { color: var(--slate); border-color: var(--bone); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.connect-dialog { width: min(520px, calc(100vw - 28px)); border-radius: 24px; box-shadow: 0 32px 100px rgba(0,0,0,.28); }
.connect-shell { position: relative; padding: 34px; background: var(--paper); }
.connect-close { position: absolute; right: 18px; top: 18px; }
.connect-shell h2 { margin: 9px 0 12px; color: var(--ink); font-size: 31px; letter-spacing: -.035em; }
.connect-shell > p { margin: 0 0 24px; color: var(--slate); }
.connect-shell code { padding: 2px 5px; color: #9A501A; background: #FFF0E2; border-radius: 5px; }
.connect-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.connect-shell .btn-ghost { color: var(--slate); border-color: var(--bone); }
.connect-shell > small { display: block; margin-top: 16px; color: var(--stone); }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 30px); min-width: 250px; max-width: min(520px, calc(100vw - 30px)); padding: 13px 18px; color: var(--white); text-align: center; background: var(--ink); border-radius: 999px; box-shadow: var(--shadow-md); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes gridDrift { to { background-position: 72px 72px; } }
@keyframes floatOne { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(-35px,25px,0) rotate(8deg); } }
@keyframes floatTwo { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(30px,-24px,0); } }
@keyframes scrollCue { 0%,100% { transform: scaleY(.25); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1040px) {
  .topnav { display: none; }
  .top-actions { margin-left: auto; }
  .view-badge { display: none; }
  .kr-grid { grid-template-columns: 1fr; }
  .kr-card { min-height: 0; }
  .kr-card h4 { min-height: 0; }
  .health-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  :root { --shell: min(100% - 30px, 1180px); }
  .topbar { height: 66px; padding: 0 15px; }
  .top-actions .btn-ghost { display: none; }
  .top-actions .btn-primary { min-height: 39px; padding: 0 13px; }
  .brand-copy small { display: none; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 112px; }
  .hero h1 { font-size: clamp(52px, 16vw, 78px); }
  .hero-meta { gap: 25px; margin-top: 54px; }
  .hero-meta div:last-child { width: 100%; }
  .section { padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
  .objective-card { padding: 31px 25px; border-radius: 24px; }
  .objective-card h3 { margin-bottom: 38px; }
  .objective-footer { flex-wrap: wrap; }
  .confidence-track { flex-basis: 100%; }
  .department-toolbar { align-items: flex-start; flex-direction: column; }
  .department-grid { grid-template-columns: 1fr; }
  .rhythm-overview { grid-template-columns: 1fr; }
  .week-stamp { min-height: 135px; }
  .four-square { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: 1fr; }
  .closing-card { align-items: flex-start; flex-direction: column; padding: 32px 25px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .studio { width: 100vw; max-height: 100vh; border-radius: 0; }
  .studio-shell { max-height: 100vh; min-height: 100vh; }
  .studio-header, .studio-status, .studio-tabs, .studio-footer { padding-left: 17px; padding-right: 17px; }
  .studio-body { padding: 20px 17px; }
  .studio-footer { align-items: stretch; flex-direction: column; }
  .studio-primary-actions { order: -1; }
  .studio-primary-actions .btn { flex: 1; }
  .field, .field.span-8, .field.span-4, .field.span-3 { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero-actions { align-items: stretch; flex-direction: column; width: 100%; max-width: 310px; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .objective-label { align-items: flex-start; flex-direction: column; gap: 8px; }
  .objective-footer { gap: 23px; }
  .ring-wrap { align-items: flex-start; flex-direction: column; }
  .health-grid { grid-template-columns: 1fr; }
  .rhythm-title { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
