/* css/screens/more.css — Grand Mumtoz Cook · экран «Ещё / Yana» (cook-specific; build_pwa_cook.py не перезаписывает)
   Service room: shift dial hero (brass ring, ticking Cormorant time) → message card to the director → ledger groups on the
   page ground (hairline rows) → foot. Tokens only; brass = the single accent. */

.mo { display: flex; flex-direction: column; gap: 4px; max-width: 640px; margin: 0 auto; }

/* ---- hero: the shift dial */
.mo-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0 16px; text-align: center; }
.mo-dial { position: relative; width: 176px; height: 176px; flex: none; }
.mo-dial__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.mo-dial__track { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.mo-dial__arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 900ms var(--e-velvet), opacity var(--t-med); opacity: 0; }
.mo-dial.is-on .mo-dial__arc { opacity: 1; }
.mo-dial.is-collapse .mo-dial__arc { transition: stroke-dashoffset 600ms var(--e-exit); }
.mo-dial__ticks line { stroke: var(--line-gold); stroke-width: 1; }
.mo-dial__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 24px; }
.mo-dial__time { font: 500 40px/44px var(--font-display); color: var(--text-1); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.mo-dial.is-on .mo-dial__time { color: var(--accent-strong); }
.mo-dial__label { font: 600 11px/14px var(--font-ui); color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; }
.mo-dial.is-on .mo-dial__ring { animation: moBreathe 4s ease-in-out infinite; }
@keyframes moBreathe { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.mo-hero__body { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.mo-hero__line { font: 500 20px/26px var(--font-display); color: var(--text-1); }
.mo-hero__voice { font: 500 13px/18px var(--font-ui); color: var(--text-3); max-width: 320px; }
.mo-hero.is-on .mo-hero__voice { color: var(--text-2); }
.mo-hero__actions { width: 100%; max-width: 320px; margin-top: 8px; }
.mo-hero__actions .btn[hidden] { display: none; }

/* ---- message card to the director */
.mo-msg { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); border-top-color: var(--line-gold); box-shadow: var(--shadow-1); transition: opacity var(--t-med), transform var(--t-med); }
.mo-msg.is-sent { animation: moSent 480ms var(--e-velvet); }
@keyframes moSent { 0% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(-6px); opacity: .55; } 100% { transform: none; opacity: 1; } }
.mo-msg__head { display: flex; flex-direction: column; gap: 2px; }
.mo-msg__title { margin: 0; font: 600 18px/24px var(--font-display); color: var(--text-1); }
.mo-msg__cap { font: 500 12px/16px var(--font-ui); color: var(--text-3); }
.mo-msg .field { margin: 0; }
.mo-msg__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mo-msg__thumb { position: relative; width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-3); }
.mo-msg__thumb[hidden] { display: none; }
.mo-msg__thumb.is-stamp { animation: moStamp 260ms var(--e-spring); }
@keyframes moStamp { from { transform: scale(1.3); opacity: 0; } to { transform: none; opacity: 1; } }
.mo-msg__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-msg__rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(14, 12, 10, .72); color: #F5EBDD; display: grid; place-items: center; cursor: pointer; padding: 0; }
.mo-msg__bar { display: flex; align-items: center; gap: 8px; }
.mo-msg__spacer { flex: 1; }

/* ---- ledger groups */
.mo-group { margin-top: 14px; }
.mo-group__head { display: flex; align-items: center; gap: 12px; padding: 0 4px 2px; }
.mo-group__head .overline { margin: 0; flex: none; }
.mo-orn { flex: 1; height: 8px; color: var(--accent); opacity: .7; min-width: 40px; }
.mo-group__rows { display: flex; flex-direction: column; }
.mo-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; font: inherit; text-decoration: none; box-sizing: border-box; }
.mo-row:last-child { border-bottom: 0; }
button.mo-row, a.mo-row { cursor: pointer; border-radius: var(--r-sm); transition: background-color var(--t-micro); }
button.mo-row:active, a.mo-row:active { background: var(--bg-3); }
@media (hover: hover) { button.mo-row:hover, a.mo-row:hover { background: var(--bg-2); } }
.mo-row__icon { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }
.mo-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mo-row__label { font: 500 14px/20px var(--font-ui); color: var(--text-1); }
.mo-row__cap { font: 500 12px/16px var(--font-ui); color: var(--text-3); transition: color var(--t-short); }
.mo-row.is-warn .mo-row__cap { color: var(--warning); }
.mo-row__ctl { flex-shrink: 0; display: flex; align-items: center; gap: 8px; max-width: 60%; color: var(--text-3); }

/* ---- about sheet */
.mo-about { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.mo-about__text { margin: 0 0 4px; font: 400 15px/22px var(--font-ui); color: var(--text-1); }

/* ---- foot: identity + logout */
.mo-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; padding-bottom: 8px; }
.mo-id { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.mo-id__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mo-id__name { font: 600 20px/24px var(--font-display); color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-id .hstack { flex-wrap: wrap; }
.mo-foot__v { text-align: center; color: var(--text-3); }

/* ---- reduced motion */
html[data-motion="reduced"] .mo-dial.is-on .mo-dial__ring, html[data-motion="reduced"] .mo-msg.is-sent, html[data-motion="reduced"] .mo-msg__thumb.is-stamp { animation: none; }
html[data-motion="reduced"] .mo-dial__arc { transition: opacity var(--t-med); }
@media (prefers-reduced-motion: reduce) {
  .mo-dial.is-on .mo-dial__ring, .mo-msg.is-sent, .mo-msg__thumb.is-stamp { animation: none; }
  .mo-dial__arc { transition: opacity var(--t-med); }
}

/* ---- desktop: dial beside its text, then message card + ledgers in two columns */
@media (min-width: 900px) {
  .mo { max-width: 860px; gap: 0; }
  .mo-hero { flex-direction: row; align-items: center; text-align: left; gap: 28px; padding: 4px 4px 20px; }
  .mo-hero__body { align-items: flex-start; }
  .mo-hero__line { font-size: 24px; line-height: 30px; }
  .mo-hero__actions { max-width: 280px; }
  .mo-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .mo-side { display: flex; flex-direction: column; }
  .mo-side .mo-group:first-child { margin-top: 0; }
  .mo-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .mo-foot .btn--block { width: auto; }
  .mo-foot__v { order: 1; flex: 1; text-align: right; }
}
