/* Public review: the short fictional tour follows the approved school workspace. */
.hero-detail {font-size:14px;max-width:500px;}
.desktop-nav a,.sign-in {font-size:12px;}
.mini-metrics.mini-metrics-four {grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-block:16px 18px;}
.mini-metrics-four>div {padding:10px;border:1px solid #dce3df;border-radius:7px;min-width:0;}
.mini-metrics-four>div:first-child {padding-left:10px;}
.mini-metrics-four>div:last-child {border:1px solid #dce3df;}
.mini-metrics-four strong {font-size:23px;font-weight:650;letter-spacing:-.8px;}
.mini-metrics-four span {font-size:8px;line-height:1.5;color:#4e5e55;}
.mini-metrics-four .metric-students {background:#dce7f3;}
.mini-metrics-four .metric-classes {background:#f7eded;}
.mini-metrics-four .metric-applications {background:#faf2e4;}
.mini-metrics-four .metric-fees {background:#e8f2e8;}

.feature-highlights {padding-top:88px;padding-bottom:88px;}
.feature-highlights-heading {display:flex;justify-content:space-between;align-items:end;gap:32px;margin-bottom:30px;}
.feature-highlights-heading h2 {font-size:44px;max-width:640px;}
.feature-highlights-heading p {max-width:420px;color:var(--muted);font-size:14px;}
.feature-highlights-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.feature-highlight {background:#fffefa;border:1px solid var(--line);border-radius:14px;padding:26px;min-width:0;}
.feature-highlight>.icon {width:25px;height:25px;margin-bottom:20px;color:#3f6352;}
.feature-highlight h3 {font-size:20px;line-height:1.4;letter-spacing:-.5px;}
.feature-highlight p {font-size:14px;line-height:1.8;color:var(--muted);margin-top:12px;}
.feature-highlight a {display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-size:13px;font-weight:650;min-height:44px;}
.feature-highlight a:hover {text-decoration:underline;text-underline-offset:4px;}

.pricing-section {padding-top:88px;padding-bottom:88px;}
.pricing-heading {display:flex;align-items:end;justify-content:space-between;gap:36px;margin:20px 0 34px;}
.pricing-heading h2 {font-size:48px;max-width:600px;}
.pricing-heading p {max-width:400px;font-size:14px;color:var(--muted);}
.pricing-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;}
.pricing-card {padding:30px;background:#fffefa;border:1px solid #d9dfd6;border-radius:15px;display:flex;flex-direction:column;align-items:start;min-width:0;}
.pricing-card-featured {border-color:#6d8979;box-shadow:0 8px 28px #274b3310;}
.pricing-card h3 {font-size:20px;letter-spacing:-.5px;line-height:1.5;}
.pricing-card .pricing-price {display:flex;flex-direction:column;gap:8px;font-size:49px;font-weight:650;line-height:1.2;letter-spacing:-2px;margin-top:24px;}
.pricing-price strong {font-size:49px;font-weight:650;color:var(--ink);}
.pricing-price span {font-size:13px;font-weight:500;letter-spacing:0;line-height:1.6;color:var(--muted);}
.pricing-card .pricing-limit {font-size:15px;font-weight:500;line-height:1.65;margin:18px 0 26px;color:#536151;}
.pricing-card p {font-size:13px;color:var(--muted);line-height:1.8;margin-top:12px;}
.pricing-card ul {padding-left:18px;margin:20px 0 26px;font-size:13px;color:#536151;line-height:1.9;}
.pricing-card .button {width:100%;margin-top:auto;gap:12px;}
.pricing-note {font-size:13px;line-height:1.85;color:var(--muted);margin-top:23px;max-width:960px;}
.pricing-note a {text-decoration:underline;text-underline-offset:3px;}

.workspace-demo {--demo-ink:#293c34;--demo-muted:#66746b;--demo-line:#dfe5df;color:var(--demo-ink);background:#fff;}
.workspace-demo .demo-sidebar {width:190px;background:#e6e9dd;border-color:#d7ddd2;padding:24px 14px 18px;}
.workspace-demo .demo-school {font-size:11px;background:transparent;border:0;border-bottom:1px solid #d6ddcd;padding:14px 8px 17px;margin:17px 0 14px;}
.workspace-demo .demo-school small {font-size:10px;color:#62705e;margin-top:3px;}
.workspace-demo .demo-school>span {width:28px;height:28px;font-size:10px;}
.demo-nav-group-label,.demo-nav-heading {display:block;padding:15px 10px 5px;font-size:10px;font-weight:650;letter-spacing:.8px;color:#67735f;}
.workspace-demo .demo-tablist {gap:4px;}
.workspace-demo .demo-tablist button {min-height:42px;padding:10px 12px;font-size:12px;color:#4b5b50;border-radius:8px;gap:10px;}
.workspace-demo .demo-tablist button>.icon {width:16px;height:16px;}
.workspace-demo .demo-tablist button:hover {background:#dce4d2;}
.workspace-demo .demo-tablist button[aria-selected=true] {background:#d8e2c9;color:#304b36;box-shadow:0 2px 4px #29422d08;}
.demo-nav-count {display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:24px;min-height:24px;padding:2px 6px;border:1px solid #c8d2bf;background:#d6dfcb;border-radius:99px;color:#294532;font-size:11px;font-weight:650;line-height:1;margin-left:auto;font-variant-numeric:tabular-nums;}
.demo-nav-count+.tab-active-dot {display:none;}
.workspace-demo .demo-sidebar-footer {font-size:10px;color:#64715e;}
.workspace-demo .demo-topbar {height:61px;padding-inline:24px;font-size:11px;color:var(--demo-muted);background:#fff;}
.workspace-demo .demo-topbar strong {color:var(--demo-ink);}
.workspace-demo .demo-avatar {font-size:10px;width:29px;height:29px;}
.workspace-demo .demo-panel {padding:24px;min-width:0;background:#fff;}
.workspace-demo .demo-panel h3 {font-size:26px;font-weight:650;line-height:1.35;letter-spacing:-.7px;color:var(--demo-ink);}
.workspace-demo .scene-title-row {flex-wrap:wrap;align-items:center;}
.workspace-demo .scene-subtitle {font-size:12px;color:var(--demo-muted);line-height:1.7;margin:6px 0 20px;}
.workspace-demo .scene-note {font-size:11px;}
.workspace-demo .demo-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border:0;background:none;border-radius:0;margin-bottom:14px;}
.workspace-demo .demo-metric {display:flex;flex-direction:column;align-items:start;justify-content:center;gap:7px;min-width:0;min-height:106px;text-align:left;border:1px solid #dce3df;border-radius:12px;padding:15px;color:var(--demo-ink);box-shadow:0 2px 3px #293a3205;transition:filter .15s,box-shadow .15s;}
.workspace-demo .demo-metric:hover {filter:brightness(.975);box-shadow:0 4px 10px #293a3210;}
.workspace-demo .demo-metric.metric-students {background:#dce7f3;color:#334c68;}
.workspace-demo .demo-metric.metric-classes {background:#f7eded;color:#744e58;}
.workspace-demo .demo-metric.metric-applications {background:#faf2e4;color:#735b36;}
.workspace-demo .demo-metric.metric-fees {background:#e8f2e8;color:#2a5438;}
.workspace-demo .demo-metric .metric-label {font-size:11px;font-weight:600;line-height:1.45;margin:0;color:inherit;}
.workspace-demo .demo-metric .metric-value {font-size:28px;font-weight:650;line-height:1.1;letter-spacing:-.8px;display:block;}
.workspace-demo .demo-metric .metric-detail {font-size:10px;line-height:1.4;color:inherit;margin:0;}
.workspace-demo .demo-overview-grid {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;}
.workspace-demo .scene-card {padding:16px;border-radius:12px;border-color:var(--demo-line);min-width:0;}
.workspace-demo .scene-card h4 {font-size:14px;color:var(--demo-ink);font-weight:650;margin-bottom:13px;line-height:1.5;letter-spacing:-.2px;}
.workspace-demo .scene-card p {font-size:12px;line-height:1.75;color:var(--demo-muted);}
.workspace-demo .scene-card p strong {color:inherit;}
.workspace-demo .demo-schedule-card {background:#eee8f7;}
.workspace-demo .demo-attention-card {background:#f8e8da;}
.workspace-demo .demo-birthdays-card {background:#e5f2fb;}
.workspace-demo .demo-schedule-card .scene-tag {background:#ffffff80;border-color:#d8d1e3;color:#625b6d;}
.workspace-demo .demo-birthdays-card .person-initials {background:#dce9f0;color:#526976;}
.workspace-demo .demo-attention-card .scene-count {background:#f1dece;color:#785e45;}
.workspace-demo .scene-schedule {padding:12px;background:#ffffff8f;border:1px solid #ddd7e8;border-radius:9px;align-items:start;gap:10px;margin:10px 0;}
.workspace-demo .scene-schedule>div {border:0;padding:0;min-width:0;}
.workspace-demo .scene-schedule strong {font-size:12px;color:var(--demo-ink);line-height:1.5;}
.workspace-demo .scene-schedule small {font-size:10px;line-height:1.6;color:#657065;margin-top:3px;}
.workspace-demo .scene-time {width:46px;flex:none;color:#626c62;font-size:10px;line-height:1.5;}
.workspace-demo .demo-attention-row {display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px;margin-top:9px;border:1px solid #e6cfbb;border-radius:9px;text-align:left;background:#ffffff70;color:#614e3f;font-size:12px;line-height:1.5;}
.workspace-demo .demo-attention-row strong {font-size:14px;flex:none;}
.workspace-demo .demo-attention-row:hover {background:#ffffffa8;}
.workspace-demo .demo-birthday-row {display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:9px;padding:10px;border:1px solid #d1e0e9;border-radius:9px;background:#ffffff8f;font-size:11px;line-height:1.6;}
.workspace-demo .demo-birthday-row .scene-person {gap:6px;min-width:0;}
.workspace-demo .demo-birthday-row .scene-person strong {font-size:11px;overflow-wrap:anywhere;}
.workspace-demo .demo-birthday-row small {font-size:10px;color:#546b79;}
.workspace-demo .demo-birthday-row .person-initials {width:25px;height:25px;font-size:9px;}
.workspace-demo .scene-action {min-height:38px;padding:9px 12px;border-radius:7px;font-size:11px;line-height:1.5;background:#244b3a;border-color:#244b3a;white-space:normal;justify-content:center;}
.workspace-demo .scene-action:hover {background:#315e49;}
.workspace-demo .scene-action.outline {background:#fff;color:var(--demo-ink);border-color:#dce3dc;}
.workspace-demo .scene-action.outline:hover {background:#f0f4ef;}
.workspace-demo .scene-action .icon {width:14px;height:14px;}
.workspace-demo .scene-card .scene-action {margin-top:10px;}
.workspace-demo .scene-footer-note {font-size:11px;color:var(--demo-muted);line-height:1.8;margin-top:16px;}
.workspace-demo .person-initials {width:34px;height:34px;font-size:11px;background:#e8eddf;color:#516544;}
.workspace-demo .person-initials.peach {background:#f5e7dd;color:#795c46;}
.workspace-demo .person-initials.blue {background:#e3edf4;color:#46677f;}
.workspace-demo .person-initials.pink {background:#f4e5ed;color:#81596a;}
.workspace-demo .scene-status,.workspace-demo .scene-tag {font-size:10px;font-weight:550;padding:4px 7px;line-height:1.5;}
.workspace-demo .scene-link {font-size:12px;text-decoration:none;color:var(--demo-ink);}
.workspace-demo .scene-link:hover {text-decoration:none;background:#eef2ed;}
.workspace-demo .demo-student-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.workspace-demo .demo-student-card {position:relative;display:flex;flex-direction:column;align-items:start;min-width:0;padding:18px;border:1px solid var(--demo-line);border-radius:12px;background:#fff;box-shadow:0 2px 4px #293a3205;}
.workspace-demo .demo-student-card>.person-initials {width:58px;height:58px;font-size:18px;}
.workspace-demo .student-card-target {position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:inherit;background:transparent;cursor:pointer;z-index:1;}
.workspace-demo .student-card-target:hover {background:#324d3c08;}
.workspace-demo .student-card-summary {display:flex;align-items:center;gap:12px;margin-top:0;min-width:0;}
.workspace-demo .student-card-summary>.person-initials {width:58px;height:58px;font-size:18px;}
.workspace-demo .student-card-summary h4 {margin:0 0 5px;font-size:15px;line-height:1.5;letter-spacing:-.3px;}
.workspace-demo .student-card-summary strong {font-size:14px;line-height:1.6;display:block;}
.workspace-demo .student-card-summary small {font-size:11px;line-height:1.7;color:var(--demo-muted);display:block;}
.workspace-demo .student-card-meta {display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-block:12px;font-size:10px;color:var(--demo-muted);}
.workspace-demo .student-card-footer {margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #e9ede7;padding-top:11px;width:100%;font-size:11px;color:#5a6b5d;}
.workspace-demo .demo-class-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;}
.workspace-demo .demo-class-card {display:flex;flex-direction:column;min-width:0;border:1px solid var(--demo-line);border-radius:12px;background:#fff;padding:17px;}
.workspace-demo .class-card-top {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.workspace-demo .class-card-top h4 {font-size:15px;line-height:1.5;margin:0;}
.workspace-demo .class-card-top>span:last-child {font-size:11px;color:var(--demo-muted);}
.workspace-demo .demo-class-card>h4 {font-size:16px;line-height:1.4;min-height:2.8em;margin:14px 0 4px;letter-spacing:-.3px;}
.workspace-demo .demo-class-card>p {font-size:12px;line-height:1.65;margin:0;color:var(--demo-muted);}
.workspace-demo .class-card-schedule {font-size:11px;color:var(--demo-muted);line-height:1.7;margin:12px 0;}
.workspace-demo .class-card-schedule {display:flex;gap:8px;align-items:start;}
.workspace-demo .class-card-schedule>.icon {width:15px;height:15px;margin-top:3px;flex:none;}
.workspace-demo .class-card-schedule small {display:block;font-size:10px;}
.workspace-demo .class-card-roster,.workspace-demo .demo-mini-roster {display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:12px 0;}
.workspace-demo .class-card-roster .person-initials,.workspace-demo .demo-mini-roster .person-initials {width:29px;height:29px;font-size:9px;}
.workspace-demo .class-card-footer {display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid #e8ece7;}
.workspace-demo .class-card-footer .scene-action {flex:1 1 72px;}
.workspace-demo .demo-view-tabs {display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:16px;}
.workspace-demo .demo-view-tabs button {min-height:38px;border:1px solid transparent;border-radius:7px;background:transparent;padding:8px 12px;color:#5a6b5e;font-size:12px;font-weight:650;}
.workspace-demo .demo-view-tabs button[aria-pressed=true],.workspace-demo .demo-view-tabs button[aria-selected=true] {background:#edf1e7;border-color:#dbe2d4;color:#314b38;}
.workspace-demo .demo-application-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.workspace-demo .demo-application-card {display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--demo-line);border-radius:12px;background:#fff;min-width:0;}
.workspace-demo .demo-application-card>.scene-action {align-self:start;margin-top:auto;}
.workspace-demo .demo-application-card strong {font-size:14px;line-height:1.5;}
.workspace-demo .demo-application-card p {font-size:12px;line-height:1.8;color:var(--demo-muted);}
.workspace-demo .demo-application-card .scene-person {min-width:0;}
.workspace-demo .application-card-footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid #e9ede7;}
.workspace-demo .scene-count {display:inline-flex;align-items:center;justify-content:center;min-width:23px;min-height:23px;border-radius:99px;background:#edf1e8;color:#536448;font-size:11px;padding:3px 6px;}
.workspace-demo .scene-card-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.workspace-demo .scene-card-heading h4 {margin-bottom:0;}
.workspace-demo .demo-attendance-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:14px;}
.workspace-demo .demo-attendance-toolbar label {font-size:12px;color:var(--demo-muted);display:flex;align-items:center;gap:9px;}
.workspace-demo .demo-attendance-toolbar select {min-height:40px;max-width:100%;border:1px solid #dce3dc;background:#fff;border-radius:7px;padding:8px 11px;color:var(--demo-ink);font-size:12px;}
.workspace-demo .scene-profile-sibling {display:flex;align-items:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #e2e7dd;font-size:12px;}
.preview-dialog .receipt-owing {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px;background:#edf3e8;border:1px solid #dce5d5;border-radius:9px;margin-top:18px;font-size:14px;}
.preview-dialog .receipt-owing strong {font-size:25px;font-weight:650;white-space:nowrap;color:#294e36;}
.workspace-demo .demo-empty {padding:24px;border:1px dashed #d9e1d5;border-radius:10px;color:var(--demo-muted);font-size:12px;line-height:1.8;}
.workspace-demo .demo-table {font-size:12px;}
.workspace-demo .demo-table th {font-size:10px;font-weight:600;color:#617064;padding:12px;}
.workspace-demo .demo-table td {padding:14px 12px;font-size:12px;color:#536756;}
.workspace-demo .attendance-pills button {font-size:10px;min-height:36px;padding:7px 9px;}
.workspace-demo .attendance-summary {font-size:12px;gap:14px;flex-wrap:wrap;}
.workspace-demo .demo-finance-total {border-color:var(--demo-line);background:#f7faf6;border-radius:10px;padding:19px 15px;}
.workspace-demo .demo-finance-total strong {font-size:27px;font-weight:650;color:#2c4c37;}
.workspace-demo .demo-finance-total span {font-size:11px;color:var(--demo-muted);}
.workspace-demo .scene-profile-grid {gap:12px;}
.workspace-demo .scene-profile-grid h5 {font-size:13px;}
.workspace-demo .scene-profile-grid dl {font-size:12px;line-height:1.6;gap:12px;}
.workspace-demo .scene-portrait-row {background:#f5f8f2;border-color:var(--demo-line);border-radius:12px;}
.workspace-demo .scene-portrait-row h4 {font-size:16px;font-weight:650;}
.workspace-demo .scene-portrait-row p {font-size:12px;}
.workspace-demo .scene-portrait-row .person-initials {width:64px;height:64px;font-size:20px;}
.workspace-demo .message-sample-header {font-size:13px;line-height:1.6;}
.workspace-demo .message-audience {font-size:11px;line-height:1.8;gap:12px;flex-wrap:wrap;}
.workspace-demo .message-sample-body {font-size:12px;line-height:1.9;}
.workspace-demo .demo-bottom {background:#f8faf6;color:#687463;font-size:10px;line-height:1.6;}
.workspace-demo .demo-bottom button {font-size:10px;min-height:32px;}

/* The compact tour and the real phone page keep their existing scroll ownership. */
.demo-preview-stage[data-device="mobile"] .demo-mobile-header,
.demo-preview-stage[data-device="mobile"] .demo-sidebar {background:#e6e9dd;}
.demo-preview-stage[data-device="mobile"] .demo-nav-group-label,
.demo-preview-stage[data-device="mobile"] .demo-nav-heading {display:none;}
.demo-preview-stage[data-device="mobile"] .demo-panel {padding:18px;}
.demo-preview-stage[data-device="mobile"] .demo-panel h3 {font-size:24px;}
.demo-preview-stage[data-device="mobile"] .demo-metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.demo-preview-stage[data-device="mobile"] .demo-metric {min-height:108px;padding:14px;}
.demo-preview-stage[data-device="mobile"] .demo-metric .metric-label {font-size:11px;margin:0;}
.demo-preview-stage[data-device="mobile"] .demo-metric .metric-value {font-size:28px;}
.demo-preview-stage[data-device="mobile"] .demo-metric .metric-detail {font-size:10px;margin:0;}
.demo-preview-stage[data-device="mobile"] .demo-overview-grid,
.demo-preview-stage[data-device="mobile"] .demo-student-grid,
.demo-preview-stage[data-device="mobile"] .demo-class-grid,
.demo-preview-stage[data-device="mobile"] .demo-application-grid {grid-template-columns:minmax(0,1fr);}
.demo-preview-stage[data-device="mobile"] .scene-action,
.demo-preview-stage[data-device="mobile"] .demo-view-tabs button {min-height:44px;font-size:12px;}
.demo-preview-stage[data-device="mobile"] .demo-birthday-row {font-size:12px;}
.demo-preview-stage[data-device="mobile"] .demo-birthday-row .scene-person strong {font-size:12px;}
.demo-preview-stage[data-device="mobile"] .demo-table .person-initials {width:30px;height:30px;}
.demo-preview-stage[data-device="mobile"] .demo-table:has(.attendance-pills) {min-width:0;}
.demo-preview-stage[data-device="mobile"] .demo-student-card {padding:19px;}
.demo-preview-stage[data-device="mobile"] .student-card-summary strong {font-size:16px;}
.demo-preview-stage[data-device="mobile"] .demo-class-card {padding:19px;}
.demo-preview-stage[data-device="mobile"] .class-card-top h4 {font-size:16px;}
.demo-preview-stage[data-device="mobile"] .demo-finance-total strong {font-size:22px;}

@media (max-width:1000px) {
 .feature-highlights-heading,.pricing-heading {display:block;}
 .feature-highlights-heading p,.pricing-heading p {margin-top:18px;max-width:650px;}
 .feature-highlights-grid,.pricing-grid {gap:14px;}
 .feature-highlight,.pricing-card {padding:22px;}
 .workspace-demo .demo-overview-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .workspace-demo .demo-schedule-card {grid-column:1/-1;}
 .workspace-demo .demo-student-grid,.workspace-demo .demo-class-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px) {
 .feature-highlights,.pricing-section {padding-top:60px;padding-bottom:60px;}
 .feature-highlights-heading h2,.pricing-heading h2 {font-size:36px;}
 .feature-highlights-grid,.pricing-grid {grid-template-columns:minmax(0,1fr);gap:16px;}
 .feature-highlight,.pricing-card {padding:26px;}
 .pricing-card .pricing-price,.pricing-price strong {font-size:44px;}
 .hero-detail {font-size:13px;}
 .mini-metrics-four>div,.mini-metrics-four>div:first-child {padding:8px 6px;}
 .mini-metrics-four strong {font-size:20px;}
 .mini-metrics-four span {font-size:7px;}
}
@media (prefers-reduced-motion:reduce) {
 .workspace-demo .demo-metric {transition:none;}
}


/* Phone users can request the desktop tour before rotating. The live note
   explains the pending choice; portrait keeps the safe, page-scrolling view. */
.demo-device-controls button[data-pending="true"] {border-color:#c6d7bd;border-style:dashed;}
@media (max-width:650px) and (orientation:portrait) {
  .demo-view-toolbar {display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:0;}
  .demo-device-controls {display:flex;width:100%;min-width:0;}
  .demo-device-controls button {flex:1 1 0;min-width:0;}
  .demo-device-label {text-align:left;}
  #demo-device-note {min-height:3.4em;}
}

/* Compact real-phone tour: scroll the scenes inside a bounded frame, then
   allow native scrolling to continue through the surrounding website. */
@media (max-width:650px) {
  .demo-preview-stage[data-device="mobile"] .demo-device-frame {
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    height:clamp(360px,80vh,640px);
    height:clamp(360px,80svh,640px);
  }
  .demo-preview-stage[data-device="mobile"] .workspace-demo {
    flex:1 1 0;
    height:100%;
    min-height:0;
  }
  .demo-preview-stage[data-device="mobile"] .demo-main {
    flex:1 1 0;
    min-height:0;
    overflow:auto;
    overscroll-behavior:auto;
  }
  .demo-preview-stage[data-device="mobile"] .demo-sidebar {
    max-height:45%;
    min-height:0;
    overflow:auto;
    overscroll-behavior:auto;
  }
}
/* End compact real-phone tour. */
