/* Shared visual treatment for the four-action participant UI. */
:root {
  --stage-like: #bbbaff;
  --stage-like-rgb: 187, 186, 255;
  --stage-save: #9bd7ff;
  --stage-save-rgb: 155, 215, 255;
  --stage-comment: #ffc3b1;
  --stage-comment-rgb: 255, 195, 177;
  --stage-note: #dbb7f4;
  --stage-note-rgb: 219, 183, 244;
  background: #050710;
  color: #edf3ff;
}
body { background: #050710; isolation: isolate; overflow-x: hidden; }
.landscape-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #050710; }
.landscape-scene::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(180deg, #05071080 0%, #05071024 34%, #05071033 70%, #05071099 100%), url('assets/landscape.jpg');
  background-position: center, 67% center; background-size: cover; opacity: .83;
}
.landscape-scene::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 6% 0%, #050710 0%, #050710c9 26%, transparent 67%), linear-gradient(90deg, #0507104d, transparent 62%);
}
.scene-glow {
  position: absolute; width: 65vw; height: 60vh; right: -20vw; bottom: -20vh;
  background: radial-gradient(ellipse, #b67be72e, transparent 65%);
  animation: scene-breathe 14s ease-in-out infinite alternate;
}
.scene-star {
  position: absolute; z-index: 1; left: var(--x); top: var(--y); width: 2px; height: 2px;
  border-radius: 50%; background: #e5eaff; box-shadow: 0 0 9px #b6baff; opacity: .45;
  animation: star-breathe var(--duration) ease-in-out infinite alternate; animation-delay: var(--delay);
}
.vi-ribbon { display: none; }
.device-header { max-width: 1200px; }
.brand i { background: #ccd2ff40; }
.identity-avatar { background: #202443a8; border-color: #c6b7ee55; color: #f0e8ff; }
.participant-identity { color: #d0d5ec; }
.event-series { color: #b7bed6; letter-spacing: .08em; }
.event-copy h1 { color: #f4f3ff; font-weight: 600; text-shadow: 0 3px 24px #05071066; }
.event-subtitle { color: #dec3e9; letter-spacing: .2em; }
/* Preserve the official 2 x 2 order and equal-sized actions. */
.action-grid > #send-like, .action-grid > #save-frame, .action-grid > #open-comment, .action-grid > #open-note {
  position: relative; isolation: isolate; overflow: hidden;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px #f1eaff45, inset 0 -1px #a0b8ff12, 0 12px 38px #02030c38;
  transition: transform .18s, border-color .3s, box-shadow .3s;
}
.action-grid > #send-like {
  border-color: #c2bdff80;
  background: radial-gradient(ellipse at 4% 0%, #a1b4ff40, transparent 64%), radial-gradient(ellipse at 100% 95%, #ef96c92b, transparent 65%), linear-gradient(130deg, #283561b3, #23213fa6);
  box-shadow: inset 0 1px #f5f0ff66, 0 8px 34px #7883eb26;
}
.action-grid > #save-frame {
  border-color: #abd9ff63;
  background: radial-gradient(ellipse at 8% 0%, #addfff26, transparent 70%), linear-gradient(140deg, #173c5ba6, #10223ca6);
}
.action-grid > #open-comment {
  border-color: #f8b8be63;
  background: radial-gradient(ellipse at 88% 90%, #f69eab26, transparent 75%), linear-gradient(140deg, #4c2c46a6, #30253da6);
}
.action-grid > #open-note {
  border-color: #d6b2f36b;
  background: radial-gradient(ellipse at 90% 0%, #d5acff30, transparent 75%), linear-gradient(140deg, #3c2c59a6, #29213fa6);
}
.action-grid > .action-control::before {
  content: ""; display: block; position: absolute; left: -30%; right: -25%; top: 68%; height: 80%;
  border: 1px solid #e5c9f833; border-radius: 50%; transform: rotate(-16deg);
  box-shadow: 0 -7px 0 -6px #b6bbff26, 0 -16px 0 -15px #df9ed31a, 0 -28px 0 -27px #c0c9ff12;
  opacity: .65; z-index: -1; pointer-events: none;
}
.action-grid > .action-control::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #f1daff20 48%, transparent 66%);
  transform: translateX(-130%); pointer-events: none;
}
.action-grid > #send-like.light-sweep::after { animation: light-sweep .85s ease-out; }
.action-grid > #send-like .action-icon svg { color: #e4e3ff; filter: drop-shadow(0 0 12px #b6a7ff70); }
.action-grid > #save-frame .action-icon svg { color: #c9e8ff; filter: drop-shadow(0 0 10px #7ebfff66); }
.action-grid > #open-comment .action-icon svg { color: #ffd2c4; filter: drop-shadow(0 0 11px #ffadc357); }
.action-grid > #open-note .action-icon svg { color: #edceff; filter: drop-shadow(0 0 10px #d6a3ff66); }
.action-grid > #send-like > .action-title { color: #f8f5ff; }
.action-grid > #save-frame > .action-title { color: #edf6ff; }
.action-grid > #open-comment > .action-title { color: #fff1ed; }
.action-grid > #open-note > .action-title { color: #f7ebff; }
.action-grid > #send-like > .action-desc { color: #c7c8e6; }
.action-grid > #save-frame > .action-desc { color: #b6d1e7; }
.action-grid > #open-comment > .action-desc { color: #e3c1cf; }
.action-grid > #open-note > .action-desc { color: #d0bbdf; }
.action-grid > #send-like:hover { border-color: #dfd3ffb3; }
.action-grid > #save-frame:hover { border-color: #b7e2ff99; }
.action-grid > #open-comment:hover { border-color: #ffd0c899; }
.action-grid > #open-note:hover { border-color: #e7c4ffa3; }
.action-grid > #send-like:active { background: #44416a99; }
.action-grid > #save-frame:active { background: #294569b3; }
.action-grid > #open-comment:active { background: #68405a99; }
.action-grid > #open-note:active { background: #583e7099; }
.action-grid > #send-like > .like-spark { color: #f7eaff; text-shadow: 0 0 12px #e9b4f0; }
.device-nav {
  background: linear-gradient(120deg, #141729e8, #191525eb); border-color: #c0b5ed38;
  box-shadow: 0 -10px 44px #05071033, inset 0 1px #ecd6ff14;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.device-nav button { color: #9a9eb8; font-size: 12px; }
.device-nav button.active { color: #e6d4ff; }
.device-nav button.active svg { filter: drop-shadow(0 0 9px #c69cf28c); }
.shell { background: none; }
.collection-intro p, .collection-intro #growth { color: #b1b5cd; }
.garden > .review-feature, .review-timeline, .review-selected, .note {
  border-color: #c2b7f03d; background: linear-gradient(130deg, #202b47b3, #242037b3);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 1px #eadfff14;
}
.review-entry-curve { filter: drop-shadow(0 0 10px #e0a6e14d); }
.review-entry-curve path { stroke: #d0a9ec; }
.collection .note-text { color: #e8e7f5; font-size: 14px; }
.note-meta, .list-tools span { color: #a8adc7; }
.bird-help { color: #b6bed6; font-size: 12px; }
.flower-label { fill: #eae3ff; }
.piece-veins { stroke: #f1bddf; }
/* Keep the official composer geometry, keyboard handling and draft separation. */
.compose-card, .detail-memo-card {
  background: radial-gradient(ellipse at 100% 0%, #6c3d6e30, transparent 65%), linear-gradient(145deg, #20243bf7, #171524fc);
  border-color: #d0b7f04d; box-shadow: inset 0 1px #f7dfff1a, 0 25px 100px #02030b80;
}
.compose-card:focus-within { border-color: #d2b8f080; }
.compose-card-head h2 { color: #f4eaff; }
.compose-card #comment-text, .detail-memo-card textarea { color: #f1edff; }
.compose-card #comment-text::placeholder { color: #a7a0b9; }
.compose-send:not(:disabled) { border-color: #d4bdf075; background: linear-gradient(110deg, #625c99, #8c617f); color: #fff3fc; }
.compose-voice .voice-button { border-color: #cab8ef59; background: #51476533; color: #e1d2ef; }
#detail { background: linear-gradient(145deg, #202a43f7, #171524fc); border-color: #d0b7f059; }
#comment-dialog.compose-sheet::backdrop { background: rgba(5, 7, 16, 0.46); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.review-selected .sheet-primary { border-color: #bab8f080; background: linear-gradient(110deg, #4b6091, #78638b); color: #f2eeff; }
.review-selected .sheet-primary.is-saved { background: #253952; border-color: #92d4ff66; color: #c9e8ff; }
.capture-feedback { background: linear-gradient(125deg, #213e59f5, #24243cfa); border-color: #a3d6ff77; }
.capture-success { color: #d9eeff; background: #8ac4ff26; border-color: #a5d9ff99; }
.capture-countdown { background: linear-gradient(90deg, #92d4ff, #d2b8ff); }
.comment-feedback { background: linear-gradient(120deg, #493045f5, #242139fa); border-color: #ffc0b477; }
.comment-feedback-art path { stroke: #ffb8a9; fill: #ffb8a91a; }
.comment-feedback-art circle, .comment-feedback-art i { fill: #ffdcce; background: #ffb8a9; }
.comment-feedback-copy strong { color: #ffeae4; }
#toast { background: #25243af5; color: #f0e7fc; border: 1px solid #c1a9e65e; }
@keyframes scene-breathe { to { opacity: .45; transform: translate(-3%, -3%) scale(1.08); } }
@keyframes star-breathe { to { opacity: .12; transform: scale(.7); } }
@keyframes light-sweep { to { transform: translateX(130%); } }
@media (max-width: 767px) {
  .landscape-scene::before { background-position: center, 63% center; opacity: .87; }
  .landscape-scene::after { background: linear-gradient(180deg, #050710e6 0%, #050710b0 20%, #05071033 49%, #05071024 72%, #05071077 100%), linear-gradient(90deg, #07102766, transparent 70%); }
  .device-header { padding-top: max(24px, env(safe-area-inset-top)); }
  .interact-view { margin-top: clamp(20px, 5vh, 42px); padding: 0 24px 24px; }
  .event-copy { padding: 10px 4px 30px; }
  .event-copy h1 { font-size: clamp(32px, 8.8vw, 40px); line-height: 1.43; letter-spacing: .025em; }
  .event-series { font-size: 12px; margin-bottom: 16px; }
  .event-subtitle { font-size: 14px; margin-top: 16px; }
  .secondary-actions.action-grid { gap: 14px; }
  .action-grid > #send-like, .action-grid > #save-frame, .action-grid > #open-comment, .action-grid > #open-note { border-radius: 24px; }
  .action-grid > .action-control .action-icon { width: 38px; height: 38px; flex-basis: 38px; margin-bottom: 10px; }
  .action-grid > .action-control .action-icon svg { width: 30px; height: 30px; }
  .action-grid > #send-like > .action-title, .action-grid > #save-frame > .action-title, .action-grid > #open-comment > .action-title, .action-grid > #open-note > .action-title { font-size: 21px; line-height: 28px; }
  .action-grid > #send-like > .action-desc, .action-grid > #save-frame > .action-desc, .action-grid > #open-comment > .action-desc, .action-grid > #open-note > .action-desc { font-size: 12px; line-height: 18px; margin-top: 7px; }
  .device-nav { width: calc(100% - 24px); bottom: max(12px, env(safe-area-inset-bottom)); border-bottom: 1px solid #c0b5ed38; border-radius: 23px; padding: 13px 16px; }
  .device-nav button { gap: 6px; }
  body[data-view=collection] .landscape-scene::before { opacity: .42; }
  body[data-view=review] .landscape-scene::before { opacity: .32; }
}
@media (max-width: 767px) and (max-height: 720px) {
  .device-header { padding-top: 16px; }
  .interact-view { margin-top: 14px; padding-left: 20px; padding-right: 20px; }
  .event-copy { padding-top: 4px; padding-bottom: 22px; }
  .event-copy h1 { font-size: 32px; line-height: 1.32; }
  .event-series { margin-bottom: 10px; }
  .event-subtitle { margin-top: 10px; }
  .secondary-actions.action-grid { gap: 12px; }
  .action-grid > #send-like, .action-grid > #save-frame, .action-grid > #open-comment, .action-grid > #open-note { border-radius: 21px; }
}
@media (max-height: 600px) {
  .event-copy h1 { font-size: 29px; }
  .event-series { font-size: 11px; }
  .event-copy { padding-bottom: 18px; }
  .action-grid > #send-like, .action-grid > #save-frame, .action-grid > #open-comment, .action-grid > #open-note { border-radius: 18px; }
  .action-grid > .action-control .action-icon { margin-bottom: 5px; width: 30px; height: 30px; flex-basis: 30px; }
  .action-grid > .action-control .action-icon svg { width: 25px; height: 25px; }
  .action-grid > #send-like > .action-title, .action-grid > #save-frame > .action-title, .action-grid > #open-comment > .action-title, .action-grid > #open-note > .action-title { font-size: 19px; line-height: 24px; }
  .action-grid > #send-like > .action-desc, .action-grid > #save-frame > .action-desc, .action-grid > #open-comment > .action-desc, .action-grid > #open-note > .action-desc { font-size: 11px; margin-top: 4px; }
  .device-nav { padding: 10px; bottom: 8px; }
}
@media (min-width: 960px) and (orientation: landscape) {
  .landscape-scene::before { background-position: center, center 70%; }
  .landscape-scene::after { background: linear-gradient(90deg, #050710ed, #05071099 36%, #05071033 70%), linear-gradient(180deg, #05071099, transparent 55%, #05071066); }
  body[data-meeting-state=live] .interact-view { max-width: 1150px; gap: 70px; padding-left: 42px; padding-right: 42px; }
  .event-copy h1 { font-size: clamp(40px, 4.1vw, 58px); }
  .event-series { font-size: 14px; }
  .event-subtitle { font-size: 18px; }
  .action-grid > #send-like, .action-grid > #save-frame, .action-grid > #open-comment, .action-grid > #open-note { border-radius: 24px; }
  .device-nav { width: 460px; bottom: 20px; border-bottom: 1px solid #c0b5ed38; border-radius: 24px; padding-bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) { .scene-glow, .scene-star, #send-like.light-sweep::after { animation: none; } }

/* Foldable uses the same landscape, action palette and glass as iPad. */
body.fold-preview .landscape-scene::before { background-position: center, 63% 65%; opacity: .78; }
body.fold-preview .landscape-scene::after {
  background: linear-gradient(90deg, #050710d9, #05071080 40%, #05071040 75%), linear-gradient(180deg, #050710b3, transparent 65%, #05071080);
}
.fold-preview .device-header {
  background: #0c1020b3; border-bottom-color: #c0b5ed35;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.fold-preview #collection-view {
  background: linear-gradient(90deg, #05071066, transparent 26px), #10162955;
  border-left-color: #c0b5ed35; box-shadow: -9px 0 22px #05071033;
}
.fold-preview #collection-view::before { background: linear-gradient(#e0caff08, #c9b5f233, #e0caff08); }
.fold-preview[data-view=review] #review-view { background: #0a0f1c66; }
body.fold-preview[data-view=review] .landscape-scene::before { opacity: .4; }

/* Give the navigation its own row, including the home indicator inset. */
body[data-view="interact"] {
  --page-gutter: clamp(16px, 5vw, 40px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh; height: 100dvh; min-height: 0;
  margin: 0; padding: 0;
}
body[data-view="interact"] .device-header {
  grid-row: 1; width: 100%; max-width: 1160px; margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) var(--page-gutter) 8px;
}
body[data-view="interact"] #interact-view {
  grid-row: 2; display: grid; grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto minmax(0,1fr); align-content: center;
  align-self: center; width: 100%; max-width: 640px; height: 100%; max-height: 790px;
  min-height: 0; margin: 0 auto; gap: clamp(8px, 2vh, 22px);
  padding: clamp(5px, 1.6vh, 20px) var(--page-gutter) clamp(8px, 2vh, 22px);
}
#interact-view .event-copy { padding: 0; margin: 0; align-self: center; }
#interact-view .event-series { margin: 0 0 clamp(4px, 1vh, 12px); }
#interact-view .event-copy h1 { margin: 0; font-size: clamp(28px, 6.6vw, 52px); line-height: 1.18; }
#interact-view .event-subtitle { margin: clamp(4px, 1vh, 12px) 0 0; }
#interact-view .interaction-controls {
  min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0,1.14fr) minmax(0,1fr);
  align-self: stretch; margin: 0; gap: clamp(8px, 2vh, 22px);
}
.action-section { display: grid; grid-template-rows: auto minmax(0,1fr); min-height: 0; gap: clamp(4px, 1vh, 10px); }
.action-section h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #faf1ec; font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.action-section h2 span, .mode-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; background: #473434; color: #ffd4b4; font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .06em; }
.action-section.personal { border-top: 1px solid #afb9da35; padding-top: clamp(5px, 1.4vh, 16px); }
.action-section.personal h2 { color: #d5dff0; }
.action-section.personal h2 span { background: #233249; color: #b8cee8; }
#interact-view .action-grid { min-height: 0; margin: 0; gap: clamp(8px, 2vw, 16px); }
#interact-view .action-grid > button.action-control {
  grid-row: 1; grid-column: auto; min-width: 0; min-height: 0; height: 100%; width: 100%;
  padding: 4px 8px; border-radius: clamp(14px, 4vw, 24px);
}
#interact-view .personal .action-control { background: linear-gradient(140deg,#182b43e8,#121b30eb); border-color: #a0b5d247; }
#interact-view .personal .action-control::before { opacity: .44; }
#interact-view .action-icon { margin: 0 0 clamp(2px, .7vh, 8px); }
#interact-view .action-title { margin: 0; }
#interact-view .action-desc { margin: 3px 0 0; }
body[data-view="interact"] .device-nav {
  grid-row: 3; position: relative; inset: auto; transform: none; justify-self: center;
  margin: 0 0 max(6px, env(safe-area-inset-bottom)); width: calc(100% - 24px);
  max-width: 580px; padding: 6px 14px; border-radius: 18px;
}
body[data-view="interact"] .device-nav button { min-height: 42px; gap: 3px; }
@media (min-width:700px) and (max-width:959px) {
  body[data-view="interact"] #interact-view { max-width: 760px; }
}
@media (min-width:960px) and (orientation:landscape), (min-width:640px) and (max-height:500px), (orientation:landscape) and (max-height:500px) {
  body[data-view="interact"] #interact-view {
    max-width: 1160px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-rows: minmax(0,1fr); column-gap: clamp(24px,6vw,84px);
  }
  body[data-view="interact"] .device-nav { justify-self: end; margin-right: var(--page-gutter); max-width: min(500px,42vw); }
}
@media (max-height:500px) and (orientation:landscape) {
  body[data-view="interact"] .device-header { padding-top: max(5px,env(safe-area-inset-top)); }
  #interact-view .action-grid > button.action-control { display: grid; grid-template-columns: auto minmax(0,auto); grid-template-rows: auto auto; align-content: center; justify-content: center; gap: 1px 7px; }
  #interact-view .action-control .action-icon { grid-row: 1 / 3; align-self: center; margin: 0; }
  #interact-view .action-control .action-title, #interact-view .action-control .action-desc { grid-column: 2; min-width: 0; white-space: normal; margin: 0; text-align: left; }
  body[data-view="interact"] .device-nav { padding-block: 2px; }
}
/* The dedicated fold preview keeps the collection in the second pane. */
@media (min-width:700px) and (min-height:501px) {
  body.fold-preview[data-view="interact"] #interact-view {
    display: grid !important;
    /* The tablet layout names two side-by-side areas. Redefine both in one column. */
    grid-template-areas: "copy" "actions";
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr);
    position: static; width: 50%; max-height: none; margin: 0;
    padding-inline: clamp(16px,3vw,38px);
  }
}
@media (max-width:699px), (max-height:500px) {
  body.fold-preview[data-view="interact"] #collection-view { display: none !important; }
  body.fold-preview[data-view="interact"] #interact-view { display: grid !important; position: static; }
  body.fold-preview[data-view="interact"] .device-nav { display: flex; }
  body.fold-preview[data-view="collection"] #interact-view { display: none !important; }
  body.fold-preview[data-view="collection"] #collection-view { left: 0; width: 100%; bottom: 72px; }
  body.fold-preview[data-view="collection"] .device-nav { display: flex; }
}
body[data-view="interact"] { grid-template-columns: minmax(0, 1fr); min-width: 0; }
body[data-view="interact"] .real-preview-badge {
  position: static; grid-row: 4; justify-self: center; margin: -4px 0 2px;
  padding: 0; background: none; border: 0; box-shadow: none; font-size: 10px;
}
@media (max-width: 360px) {
  body[data-view="interact"] .device-header { padding-inline: 10px; gap: 5px; }
  .device-header .brand { gap: 4px; }
  .device-header .brand img.volcengine-logo { width: 58px; }
  .device-header .brand img.doubao-brand { width: 42px; }
  .device-header .brand img.rolling-logo { width: 64px; }
}
@media (min-width:700px) and (min-height:501px) {
  body.fold-preview[data-view="interact"] { grid-template-rows: auto minmax(0,1fr) auto; }
  body.fold-preview[data-view="interact"] .device-nav,
  body.fold-preview[data-view="collection"] .device-nav {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    width: calc(50% - 40px); max-width: none;
    left: auto; right: auto; justify-self: start; margin-left: 20px;
    margin-right: 0; transform: none;
  }
  body.fold-preview[data-view="collection"] #interact-view { bottom: 76px; }
}

/* Square cover screens keep both action rows above the in-flow navigation. */
@media (max-width:420px) and (max-height:440px) {
  body[data-view="interact"] .device-header {
    height: auto; padding-block: max(3px,env(safe-area-inset-top)) 2px;
  }
  body[data-view="interact"] #interact-view {
    grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr);
    padding: 2px 12px 4px; gap: 4px;
  }
  #interact-view .event-series, #interact-view .event-subtitle,
  #interact-view .action-control > .action-desc { display: none; }
  #interact-view .event-copy h1 { display: flex; gap: .4em; font-size: clamp(16px,5vw,20px); line-height: 1.2; }
  #interact-view .event-copy h1 br { display: none; }
  #interact-view .interaction-controls { gap: 4px; grid-template-rows: repeat(2,minmax(0,1fr)); }
  #interact-view .action-section { gap: 2px; padding: 0; border: 0; }
  #interact-view .action-section h2 { font-size: 12px; line-height: 16px; gap: 6px; }
  #interact-view .action-section h2 span { padding: 0 6px; font-size: 10px; }
  #interact-view .action-grid > button.action-control {
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    gap: 8px; min-height: 44px; padding: 2px 6px; border-radius: 12px;
  }
  #interact-view .action-control .action-icon {
    flex: none; width: 24px; height: 24px; margin: 0;
  }
  #interact-view .action-control .action-icon svg { width: 22px; height: 22px; }
  #interact-view .action-control .action-title { min-height: 0; font-size: 17px; line-height: 22px; }
  body[data-view="interact"] .device-nav, body.fold-preview[data-view="interact"] .device-nav {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: calc(100% - 24px);
    max-width: none; justify-self: center; margin: 0 0 max(3px,env(safe-area-inset-bottom)); padding: 1px 6px;
  }
  body[data-view="interact"] .device-nav button { flex-direction: row; justify-content: center; gap: 6px; min-height: 32px; }
}
