:root {
  --bg-cream: #FBF9F5;
  --bg-linen: #F3EDE3;
  --surface: #FFFFFF;
  --surface-soft: #FCFBF8;
  --ink: #1D2923;
  --ink-secondary: #49564F;
  --ink-muted: #707972;
  --border: #E6DDD0;
  --border-strong: #D4C7B4;

  --sage: #466658;
  --sage-hover: #375347;
  --sage-soft: #6C8B7A;
  --sage-tint: #EAF1EC;

  --champagne: #B59260;
  --champagne-dark: #8C6C3F;
  --champagne-tint: #F7F0E4;

  --water: #477F8A;
  --water-tint: #E8F2F4;

  --success: #3E7B5E;
  --success-tint: #E6F3EC;

  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-soft: 0 8px 24px -12px rgba(29, 41, 35, 0.08);
  --shadow-card: 0 14px 36px -16px rgba(29, 41, 35, 0.10);
  --shadow-phone: 0 26px 56px -18px rgba(36, 48, 42, 0.24), 0 0 0 1px rgba(181, 146, 96, 0.25);

  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background-color: var(--bg-cream);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Brand ===== */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sage);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--sage);
  color: #FFFFFF;
}

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

.btn-champagne {
  background: #A98654;
  color: #FFFFFF;
}

.btn-champagne:hover {
  background: #957445;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-linen);
}

.btn-soft {
  background: var(--sage-tint);
  color: var(--sage);
}

.btn-soft:hover {
  background: #DCE8E0;
}

.btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* ===== Landing ===== */
.landing-header {
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-hero {
  text-align: center;
  max-width: 620px;
  margin: 44px auto 40px;
}

.hero-title {
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  margin: 0;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.role-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-tint);
  color: var(--sage);
  margin-bottom: 16px;
}

.role-card--manager .role-icon {
  background: var(--champagne-tint);
  color: var(--champagne-dark);
}

.role-title {
  font-size: 1.32rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.role-summary {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ===== Sticky Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.back-chip:hover {
  background: var(--bg-linen);
}

.role-switcher {
  display: inline-flex;
  background: var(--bg-linen);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  gap: 4px;
}

.role-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.16s ease;
}

.role-tab:hover {
  color: var(--ink);
}

.role-tab.is-active {
  background: var(--surface);
  color: var(--sage);
  box-shadow: 0 2px 8px rgba(29, 41, 35, 0.08);
}

.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--champagne);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Feedback Banner */
.feedback-toast {
  max-width: 1192px;
  margin: 16px auto 0;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--sage-tint);
  border: 1px solid rgba(70, 102, 88, 0.25);
  color: var(--sage-hover);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Shared Dashboard Layout ===== */
.panel-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 52px;
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.card-sub {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.badge-sage {
  background: var(--sage-tint);
  color: var(--sage);
}

.badge-champagne {
  background: var(--champagne-tint);
  color: var(--champagne-dark);
}

.badge-success {
  background: var(--success-tint);
  color: var(--success);
}

/* ===== Client Panel: Phone Frame + Simulator ===== */
.client-stage {
  display: grid;
  grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.client-stage.is-fullscreen {
  grid-template-columns: minmax(0, 1fr);
}

.client-stage.is-fullscreen .simulator-dock {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.phone-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 760px;
  background: linear-gradient(145deg, #E5DDD0 0%, #CFC5B4 50%, #DFD6C7 100%);
  padding: 11px;
  border-radius: 46px;
  box-shadow: var(--shadow-phone);
}

.client-stage.is-fullscreen .phone-frame {
  max-width: 920px;
  height: auto;
  min-height: 680px;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-cream);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.client-stage.is-fullscreen .phone-screen {
  border-radius: 24px;
  min-height: 680px;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-cream);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.client-stage.is-fullscreen .phone-statusbar {
  display: none;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #1C2420;
  border-radius: 999px;
}

/* Mobile Banner */
.ios-banner {
  position: absolute;
  top: 44px;
  left: 12px;
  right: 12px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 13px 15px;
  box-shadow: 0 16px 32px -10px rgba(29, 41, 35, 0.22);
  display: none;
  animation: bannerDrop 0.3s ease;
}

.ios-banner.is-visible {
  display: block;
}

.client-stage.is-fullscreen .ios-banner {
  top: 16px;
  max-width: 420px;
  left: auto;
  right: 18px;
}

@keyframes bannerDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

.ios-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.ios-banner-app {
  font-weight: 700;
  color: var(--sage);
}

.ios-banner-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.ios-banner-body {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

/* Lock Screen Overlay */
.lockscreen-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: linear-gradient(165deg, #F3EDE3 0%, #E7EFEA 100%);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 18px 24px;
  color: var(--ink);
}

.lockscreen-overlay.is-open {
  display: flex;
}

.client-stage.is-fullscreen .lockscreen-overlay.is-open {
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 28px 20px;
}

.client-stage.is-fullscreen .lockscreen-overlay > * {
  width: 100%;
  max-width: 420px;
}

.lock-clock {
  text-align: center;
  margin-bottom: 18px;
}

.lock-date {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sage);
}

.lock-time {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 4px;
}

.lock-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 390px;
}

.lock-notif-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 15px;
}

/* Phone Scrollable App Content */
.app-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 24px;
}

.client-stage.is-fullscreen .app-scroll {
  padding: 28px 34px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.app-greeting-sub {
  font-size: 0.78rem;
  color: var(--sage);
  font-weight: 600;
}

.app-greeting-name {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.icon-btn {
  position: relative;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.icon-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--champagne);
}

/* Mobile Tab Panels */
.app-tab-pane {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.app-tab-pane.is-active {
  display: flex;
}

.client-stage.is-fullscreen .app-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.healthy-quote-card {
  background: var(--sage);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 18px;
}

.healthy-quote-label {
  font-size: 0.78rem;
  opacity: 0.86;
  margin-bottom: 6px;
  font-weight: 600;
}

.healthy-quote-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.42;
  margin: 0;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

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

.water-ring-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.water-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--water);
}

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

.mini-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.mini-stat-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.appointment-pill {
  background: var(--champagne-tint);
  border: 1px solid rgba(181, 146, 96, 0.35);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Meals & Exercises inside Phone */
.meal-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.meal-item.is-done {
  background: #F5FAF7;
  border-color: rgba(70, 102, 88, 0.28);
}

.meal-item.is-updated {
  border-color: var(--champagne);
  box-shadow: 0 0 0 2px rgba(181, 146, 96, 0.16);
}

.check-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-circle.is-checked {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.exercise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.exercise-card.is-highlighted {
  border-color: var(--champagne);
  background: #FFFDF8;
}

.exercise-steps {
  margin: 10px 0 14px;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.exercise-steps li + li {
  margin-top: 4px;
}

/* Phone Bottom Navigation */
.phone-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 8px 8px 12px;
  flex-shrink: 0;
}

.client-stage.is-fullscreen .phone-bottom-nav {
  padding: 10px 24px;
}

.nav-item-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}

.nav-item-btn.is-active {
  color: var(--sage);
  background: var(--sage-tint);
}

/* Simulator Dock */
.simulator-dock {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-btn {
  width: 100%;
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scenario-btn:hover {
  background: var(--surface);
  border-color: var(--sage);
}

.scenario-btn strong {
  font-size: 0.96rem;
  color: var(--ink);
}

.scenario-btn span {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.is-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.input, .select, .textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
}

.textarea {
  min-height: 76px;
  resize: vertical;
}

/* ===== Dietitian & Manager Panels ===== */
.dietitian-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.client-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-pick-btn {
  width: 100%;
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.client-pick-btn.is-active {
  background: var(--sage-tint);
  border-color: var(--sage);
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dietitian-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.kpi-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.kpi-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.kpi-note {
  font-size: 0.8rem;
  color: var(--sage);
  font-weight: 600;
  margin-top: 6px;
}

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

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

.luxury-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.luxury-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}

.luxury-table td {
  padding: 12px;
  border-bottom: 1px solid var(--bg-linen);
  color: var(--ink-secondary);
}

.luxury-table tr:last-child td {
  border-bottom: none;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg-linen);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--sage);
}

.progress-fill--champagne {
  background: var(--champagne);
}

.chart-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.chart-tabs {
  display: inline-flex;
  background: var(--bg-linen);
  padding: 3px;
  border-radius: 999px;
  gap: 3px;
}

.chart-tab-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}

.chart-tab-btn.is-active {
  background: var(--surface);
  color: var(--sage);
}

.timer-drawer {
  background: var(--sage-tint);
  border: 1px solid rgba(70, 102, 88, 0.25);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  display: none;
}

.timer-drawer.is-open {
  display: block;
}

.timer-clock {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage);
  margin: 4px 0;
}

@media (max-width: 1020px) {
  .role-grid, .client-stage, .dietitian-layout, .split-2 {
    grid-template-columns: 1fr;
  }
  .kpi-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .panel-shell {
    padding: 16px 14px 36px;
  }
  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .role-switcher {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .role-tab {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
  }
  .form-grid, .kpi-4, .kpi-3 {
    grid-template-columns: 1fr;
  }
  .client-stage.is-fullscreen .app-tab-grid {
    grid-template-columns: 1fr;
  }
  .phone-frame {
    height: 680px;
    padding: 8px;
    border-radius: 36px;
  }
  .phone-screen {
    border-radius: 28px;
  }
}
