/* Mobile navigation and personal appearance controls. */
.studio-mobile-nav { display: none; }
.app-shell .studio-appearance-trigger { color: var(--primary-text); background: var(--primary-soft); border: 1px solid var(--border); border-radius: 13px; min-width: 44px; min-height: 44px; }
.studio-appearance { box-sizing: border-box; width: min(540px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; overscroll-behavior: contain; padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 28px 100px #132f3c30; font-family: var(--font); }
.studio-appearance::backdrop { background: #15343d70; backdrop-filter: blur(4px); }
.studio-appearance * { box-sizing: border-box; }
.studio-appearance-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 27px; }
.studio-appearance-head > div { min-width: 0; }
.studio-appearance-head .eyebrow { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.studio-appearance-head h2 { font-size: clamp(25px, 5vw, 32px); line-height: 1.2; letter-spacing: -.045em; margin: 10px 0; }
.studio-appearance-head p, .studio-appearance-note { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.studio-appearance-head .icon-button { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.studio-appearance fieldset { border: 0; padding: 0; margin: 0 0 25px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.studio-appearance legend { margin-bottom: 12px; padding: 0; font-size: 13px; font-weight: 700; }
.studio-appearance label { cursor: pointer; position: relative; min-width: 0; border: 1px solid var(--border-strong, var(--border)); border-radius: 14px; background: var(--surface); }
.studio-appearance label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.studio-appearance label:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 4px; }
.studio-appearance label input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.studio-color-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px 12px; }
.studio-color-swatch { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #087f75; color: #fff; margin-bottom: 5px; }
.studio-color-choice[data-color=coral] .studio-color-swatch { background: #c44837; }
.studio-color-choice[data-color=violet] .studio-color-swatch { background: #7252ca; }
.studio-color-swatch svg { width: 20px; height: 20px; opacity: 0; }
.studio-color-choice:has(input:checked) .studio-color-swatch svg { opacity: 1; }
.studio-color-choice strong { font-size: 13px; font-weight: 650; color: var(--text); }
.studio-color-choice small { font-size: 11px; line-height: 1.5; color: var(--muted); }
.studio-appearance-modes label { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 14px 8px; min-height: 48px; font-size: 13px; font-weight: 600; }
.studio-appearance-modes svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary-text); }
.studio-appearance-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.studio-appearance-footer [role=status] { color: var(--muted); font-size: 12px; line-height: 1.5; }
.studio-appearance-footer .btn { min-height: 44px; flex-shrink: 0; }
@media (max-width: 760px) {
  .app-shell .main-shell { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .app-shell .studio-mobile-nav { position: fixed; display: flex; align-items: stretch; gap: 2px; z-index: 65; bottom: 0; inset-inline: 0; min-height: 72px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -5px 24px #173d4510; }
  .studio-mobile-nav > :is(a, button) { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 58px; border: 0; border-radius: 13px; padding: 6px 2px; background: transparent; color: var(--muted); text-decoration: none; font: 600 10px/1.3 var(--font); cursor: pointer; text-align: center; }
  .studio-mobile-nav > :is(a, button) svg { width: 21px; height: 21px; flex: none; }
  .studio-mobile-nav > :is(a, button)[aria-current=page] { background: var(--primary-soft); color: var(--primary-text); }
  .studio-mobile-nav > :is(a, button):focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
  .studio-mobile-nav > .studio-mobile-create { color: var(--primary-ink); background: var(--primary); }
  .app-shell .topbar-actions { flex-shrink: 0; }
  .app-shell .topbar-actions > .avatar { display: none; }
  .app-shell .topbar .studio-command-trigger { width: 44px; min-width: 44px; height: 44px; padding: 0; justify-content: center; }
  .app-shell .topbar .studio-command-trigger :is(span, kbd) { display: none; }
  body:has(.studio-mobile-nav) .toast-container { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .ro-support.has-workspace { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .app-shell .main-content { scroll-margin-bottom: 90px; }
  .studio-appearance { padding: 22px 18px; }
  .studio-appearance-head .eyebrow { font-size: 9px; }
}
@media (max-width: 360px) {
  .studio-appearance { width: calc(100% - 20px); padding: 20px 15px; }
  .studio-appearance fieldset { gap: 7px; }
  .studio-color-choice { padding: 12px 8px; }
  .studio-color-choice small { font-size: 10px; }
  .studio-appearance-modes label { flex-direction: column; gap: 5px; padding-block: 10px; }
  .studio-mobile-nav > :is(a, button) { font-size: 9px; }
}
@media print { .app-shell .studio-mobile-nav { display: none !important; } .app-shell .main-shell { padding-bottom: 0; } }
