:root {
  color-scheme: light;
  --ink: #101218;
  --text: #1b1e27;
  --muted: #6d7482;
  --canvas: #f7f8fa;
  --surface: #fff;
  --surface-2: #eef1f5;
  --line: #dfe3ea;
  --blue: #2457f5;
  --blue-soft: #e9efff;
  --cyan: #00a990;
  --cyan-soft: #def8f2;
  --lime: #c9f36a;
  --red: #df4056;
  --red-soft: #ffe9ed;
  --amber: #a75b00;
  --radius: 22px;
  --shadow: 0 18px 48px rgb(16 18 24 / 10%);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.mz-auth-open #cotoaApp { visibility: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgb(36 87 245 / 38%);
  outline-offset: 2px;
}
svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Persistent shell */
.mz-shell { min-height: 100dvh; }
.mz-top {
  position: sticky;
  z-index: 90;
  top: 0;
  min-height: 60px;
  padding: max(8px, env(safe-area-inset-top)) 14px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgb(223 227 234 / 78%);
  background: rgb(247 248 250 / 90%);
  backdrop-filter: blur(18px) saturate(150%);
}
.mz-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.mz-brand__mark {
  position: relative;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 11px;
  background: url(/cotoa-icon-192.png?v=2) center/cover no-repeat;
  border: 1px solid rgb(36 87 245 / 22%);
}
.mz-brand b { font-size: 15px; letter-spacing: -.04em; }
.mz-context {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.mz-context small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}
.mz-context strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mz-top__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mz-time,
.mz-icon-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.mz-time {
  min-width: 75px;
  padding: 6px 10px;
  display: grid;
  align-content: center;
  border-radius: 14px;
  text-align: left;
}
.mz-time small { color: var(--muted); font-size: 8px; font-weight: 750; }
.mz-time b { font-size: 12px; font-variant-numeric: tabular-nums; }
.mz-icon-btn {
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
}
.mz-main {
  width: 100%;
  min-height: calc(100dvh - 60px);
  padding: 18px 14px calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
}
.mz-nav {
  position: fixed;
  z-index: 300;
  left: 8px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  height: var(--nav-h);
  padding: 5px 7px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 25px;
  background: rgb(16 18 24 / 96%);
  box-shadow: 0 18px 44px rgb(16 18 24 / 28%);
  backdrop-filter: blur(20px);
}
.mz-nav__brand { display: none; }
.mz-nav button {
  min-width: 0;
  min-height: 50px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #979eab;
}
.mz-nav button svg { width: 20px; height: 20px; }
.mz-nav button span {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mz-nav button[aria-current="page"] {
  background: rgb(255 255 255 / 11%);
  color: #fff;
}
.mz-nav button[aria-current="page"] svg { stroke: var(--lime); }

/* Shared page primitives */
.mz-page { animation: mz-in .2s ease both; }
@keyframes mz-in { from { opacity: 0; transform: translateY(5px); } }
.mz-page-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mz-page-head > div { min-width: 0; }
.mz-eyebrow {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .15em;
}
.mz-page-head h1 {
  margin: 4px 0 3px;
  color: var(--ink);
  font-size: clamp(29px, 9vw, 42px);
  line-height: 1.04;
  letter-spacing: -.06em;
}
.mz-page-head p {
  margin: 0;
  max-width: 570px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.mz-status-pill {
  margin-left: auto;
  min-height: 36px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: #06705f;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.mz-status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
.mz-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 1px rgb(16 18 24 / 2%);
}
.mz-card + .mz-card { margin-top: 12px; }
.mz-card__pad { padding: 16px; }
.mz-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}
.mz-btn {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 17px;
  background: var(--blue);
  color: #fff;
  font-weight: 820;
}
.mz-btn--quiet {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.mz-btn--danger { background: var(--red); color: #fff; }
.mz-btn--wide { width: 100%; }
.mz-btn:disabled { cursor: not-allowed; opacity: .48; }
.mz-field {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--canvas);
  color: var(--ink);
}
textarea.mz-field { min-height: 92px; padding-top: 12px; resize: vertical; }
.mz-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mz-inline > * { min-width: 0; }
.mz-grid { display: grid; gap: 12px; }
.mz-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.mz-check {
  min-height: 50px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--canvas);
  font-size: 11px;
  line-height: 1.5;
}
.mz-check input { width: 19px; height: 19px; flex: 0 0 19px; accent-color: var(--blue); }

/* Interpreter: conversation is the canvas */
.mz-workbench { display: grid; gap: 12px; }
.mz-setup { padding: 16px; }
.mz-mode {
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 17px;
  background: var(--surface-2);
}
.mz-mode button {
  min-height: 48px;
  padding: 5px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
}
.mz-mode button.is-on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 10px rgb(16 18 24 / 8%);
}
.mz-language-flow {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: stretch;
  gap: 7px;
}
.mz-lang {
  min-width: 0;
  min-height: 74px;
  padding: 11px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--canvas);
  color: var(--ink);
  text-align: left;
}
.mz-lang small { color: var(--muted); font-size: 8px; font-weight: 750; }
.mz-lang b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mz-swap {
  width: 44px;
  min-height: 44px;
  align-self: center;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
}
.mz-live {
  position: relative;
  min-height: 300px;
  padding: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px),
    var(--ink);
  background-size: 26px 26px;
  color: #fff;
}
.mz-live__state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aab0bd;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}
.mz-live__state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #687080;
}
.mz-live.is-active .mz-live__state i {
  background: var(--lime);
  box-shadow: 0 0 0 7px rgb(201 243 106 / 12%);
  animation: mz-pulse 1.6s infinite;
}
@keyframes mz-pulse { 50% { transform: scale(.65); opacity: .55; } }
.mz-dialogue {
  margin: auto 0;
  display: grid;
  gap: 18px;
}
.mz-dialogue small {
  display: block;
  margin-bottom: 5px;
  color: #7f8794;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .14em;
}
.mz-heard {
  margin: 0;
  color: #b9bfca;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.55;
}
.mz-translated {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 7.5vw, 38px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -.04em;
}
.mz-live__empty {
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #737a88;
  text-align: center;
}
.mz-live__empty span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
}
.mz-action-dock {
  position: sticky;
  z-index: 50;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  margin-top: 12px;
  padding: 8px;
  border: 1px solid rgb(223 227 234 / 75%);
  border-radius: 22px;
  background: rgb(255 255 255 / 90%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.mz-action-dock button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 17px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}
.mz-action-dock button.is-stop { background: var(--ink); }

/* Stage: preflight and live operator view */
.mz-stage-hero {
  position: relative;
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 18%, rgb(201 243 106 / 28%), transparent 23%),
    linear-gradient(145deg, #17245b, #11141d 64%);
  color: #fff;
}
.mz-stage-hero::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 29px;
  width: 74px;
  height: 74px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgb(255 255 255 / 4%), 0 0 0 36px rgb(255 255 255 / 3%);
}
.mz-stage-hero small { color: var(--lime); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.mz-stage-hero h1 { margin: 7px 0 4px; font-size: clamp(31px, 9vw, 48px); line-height: 1.02; letter-spacing: -.06em; }
.mz-stage-hero p { margin: 0; max-width: 500px; color: #aeb6c7; font-size: 11px; line-height: 1.6; }
.mz-steps { margin-top: 12px; display: grid; gap: 9px; }
.mz-stage-start-dock {
  position: sticky;
  right: auto;
  left: auto;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  margin-top: 14px;
  padding: 8px;
}
.mz-stage-start-dock button { min-height: 62px; }
/* P0(監査): 固定開始ボタンが安全確認チェック欄・下部ナビと重ならないよう余白を確保 (WCAG Focus Not Obscured) */
.mz-stage-layout { padding-bottom: 96px; }
.mz-step {
  padding: 14px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}
.mz-step__n {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}
.mz-step h2 { margin: 2px 0 3px; font-size: 14px; }
.mz-step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.mz-step__body { grid-column: 1/-1; }
.mz-audio-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mz-stage-live {
  min-height: calc(100dvh - 160px);
  margin: -18px -14px 0;
  padding: 18px 14px 110px;
  background: #10131a;
  color: #fff;
}
.mz-stage-live__top { display: flex; align-items: center; gap: 10px; }
.mz-stage-live__top .mz-status-pill { background: rgb(201 243 106 / 12%); color: var(--lime); }
.mz-stage-live__top .mz-status-pill i { background: var(--lime); }
.mz-stage-live__clock { margin-left: auto; font-size: 18px; font-weight: 850; font-variant-numeric: tabular-nums; }
.mz-stage-live__message {
  min-height: 20px;
  margin: 8px 2px 0;
  color: #9da5b4;
  font-size: 10px;
}
.mz-stage-live__signal {
  min-height: 280px;
  margin-top: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 26px;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    #171b24;
  background-size: 28px 28px;
}
.mz-stage-live__signal .mz-translated { margin: auto 0; }
.mz-stage-live__controls {
  position: sticky;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8px;
}
.mz-stage-live__controls button { min-height: 62px; border-radius: 18px; border: 0; font-weight: 850; }
.mz-mute { background: #272c38; color: #fff; }
.mz-mute.is-on { background: var(--red); }

/* Call */
.mz-call-entry { display: grid; gap: 12px; }
.mz-choice {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.mz-choice__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue);
}
.mz-choice h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.mz-choice p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.mz-room-code {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 17px;
  background: var(--ink);
  color: #fff;
}
.mz-room-code b { font-size: 20px; letter-spacing: .16em; }
.mz-call-live { display: grid; gap: 10px; }
.mz-videos {
  min-height: 310px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-radius: 26px;
  background: var(--ink);
}
.mz-video {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border-radius: 20px;
  background: #262a34;
}
.mz-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.mz-video span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgb(16 18 24 / 72%);
  color: #fff;
  font-size: 9px;
}
.mz-call-captions { min-height: 104px; padding: 14px; }
.mz-call-tools {
  position: sticky;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-radius: 22px;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.mz-call-tools button {
  min-width: 0;
  min-height: 56px;
  padding: 6px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 8px;
  font-weight: 750;
}
.mz-call-tools button:last-child { border-color: transparent; background: var(--red); color: #fff; }

/* Record */
.mz-record-meter {
  min-height: 250px;
  padding: 22px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.mz-record-orb {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}
.mz-record-orb::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
}
.mz-record-meter.is-active .mz-record-orb {
  box-shadow: 0 0 0 13px rgb(223 64 86 / 10%), 0 0 0 28px rgb(223 64 86 / 5%);
  animation: mz-record 1.4s infinite;
}
@keyframes mz-record { 50% { transform: scale(.92); } }
.mz-record-time { color: var(--ink); font-size: 40px; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.mz-record-meter p { margin: 0; color: var(--muted); font-size: 10px; }
.mz-record-options { margin-top: 12px; padding: 16px; }
.mz-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.mz-chip {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}
.mz-chip.is-on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.mz-record-actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }

/* Documents */
.mz-doc-tabs {
  margin-bottom: 12px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 17px;
  background: var(--surface-2);
}
.mz-doc-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}
.mz-doc-tabs button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 9px rgb(16 18 24 / 7%); }
.mz-doc-list { display: grid; gap: 9px; }
.mz-doc-item {
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.mz-doc-item__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}
.mz-doc-item b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mz-doc-item small { color: var(--muted); font-size: 9px; }
.mz-empty {
  min-height: 280px;
  padding: 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  border: 1px dashed #cfd4dd;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}
.mz-empty span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); }
.mz-empty h2 { margin: 0; color: var(--ink); font-size: 16px; }
.mz-empty p { margin: 0; font-size: 10px; line-height: 1.6; }
.mz-doc-view { padding: 18px; }
.mz-doc-view pre {
  margin: 14px 0 0;
  max-height: 56dvh;
  overflow: auto;
  color: var(--text);
  font: 11px/1.75 "Yu Gothic UI", sans-serif;
  white-space: pre-wrap;
}

/* Login, sheets and dialogs */
.mz-auth {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  background: var(--canvas);
}
.mz-auth__shell {
  width: min(100%, 980px);
  min-height: 100dvh;
  margin: auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
}
.mz-auth__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mz-auth__top select { width: auto; min-height: 44px; padding: 0 34px 0 11px; }
.mz-auth__visual {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px),
    var(--ink);
  background-size: 26px 26px;
}
.mz-auth__visual::before,
.mz-auth__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.mz-auth__visual::before {
  width: 62px;
  height: 62px;
  left: calc(50% - 31px);
  top: calc(50% - 31px);
  background: var(--lime);
  box-shadow: 0 0 0 22px rgb(201 243 106 / 7%), 0 0 0 44px rgb(201 243 106 / 4%);
}
.mz-auth__visual::after {
  inset: 32px;
  border: 1px solid rgb(255 255 255 / 10%);
}
.mz-auth__form { align-self: center; min-width: 0; }
.mz-auth__form h1 { margin: 6px 0 7px; color: var(--ink); font-size: clamp(34px, 11vw, 58px); line-height: 1.02; letter-spacing: -.07em; }
.mz-auth__form > p { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.mz-auth__key { display: grid; gap: 8px; }
.mz-auth__or { margin: 12px 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }
.mz-auth__or::before, .mz-auth__or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.mz-auth__foot { color: var(--muted); font-size: 9px; text-align: center; }
.mz-sheet-wrap,
.mz-dialog-wrap {
  position: fixed;
  z-index: 700;
  inset: 0;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgb(16 18 24 / 55%);
  backdrop-filter: blur(8px);
}
.mz-sheet,
.mz-dialog {
  width: min(100%, 650px);
  max-height: calc(92dvh - env(safe-area-inset-top));
  overflow: auto;
  border-radius: 28px 28px 22px 22px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgb(16 18 24 / 35%);
}
.mz-sheet__head {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}
.mz-sheet__head h2 { margin: 0; font-size: 16px; }
.mz-sheet__head button { margin-left: auto; }
.mz-sheet__body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.mz-sheet__section + .mz-sheet__section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.mz-sheet__section h3 { margin: 0 0 10px; font-size: 13px; }
.mz-lang-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.mz-lang-list button {
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--canvas);
  color: var(--ink);
  text-align: left;
  font-size: 11px;
  font-weight: 730;
}
.mz-lang-list button.is-on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.mz-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mz-voice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.mz-voice-capture {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}
.mz-voice-capture strong { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.mz-voice-capture span { color: var(--muted); font-size: 12px; }
.mz-price {
  min-height: 76px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--canvas);
  color: var(--ink);
  text-align: left;
}
.mz-price small { color: var(--muted); font-size: 9px; }
.mz-price b { font-size: 15px; }
.mz-dialog { max-width: 520px; padding: 20px; }
.mz-dialog h2 { margin: 0 0 7px; font-size: 20px; }
.mz-dialog p { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.mz-dialog__actions { display: grid; gap: 8px; }
#cotoaToast {
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
  max-width: calc(100% - 28px);
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}
#cotoaToast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .mz-main { padding-left: 22px; padding-right: 22px; }
  .mz-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-call-entry, .mz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-auth__key { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 940px) {
  :root { --rail-w: 92px; }
  .mz-shell { padding-left: var(--rail-w); }
  .mz-top { padding-left: 24px; padding-right: 24px; }
  .mz-main {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 28px 32px 48px;
  }
  .mz-nav {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--rail-w);
    height: 100dvh;
    padding: 14px 9px;
    grid-template-columns: 1fr;
    grid-template-rows: 58px repeat(4, 68px) 1fr;
    align-content: start;
    gap: 5px;
    border: 0;
    border-right: 1px solid rgb(255 255 255 / 8%);
    border-radius: 0;
    box-shadow: none;
  }
  .mz-nav__brand {
    width: 46px;
    height: 46px;
    margin: 0 auto 6px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff;
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
  }
  .mz-nav button { min-height: 64px; }
  .mz-action-dock, .mz-stage-live__controls, .mz-call-tools { bottom: 18px; }
  .mz-workbench { grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); align-items: stretch; }
  .mz-setup { grid-column: 1; }
  .mz-live { grid-column: 2; grid-row: 1/3; min-height: 590px; }
  .mz-action-dock { grid-column: 1; margin-top: 0; align-self: end; }
  .mz-stage-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(390px, 1.05fr); gap: 14px; align-items: start; }
  .mz-stage-layout .mz-stage-hero { min-height: 100%; }
  .mz-stage-layout { padding-bottom: 0; }
  .mz-stage-start-dock { position: sticky; right: auto; left: auto; bottom: 18px; grid-column: 1 / -1; }
  .mz-stage-live { min-height: calc(100dvh - 60px); margin: -28px -32px -48px; padding: 28px 32px 48px; }
  .mz-call-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-call-entry .mz-page-head { grid-column: 1/-1; }
  .mz-call-live { grid-template-columns: minmax(0, 1fr) 360px; }
  .mz-videos { min-height: 600px; }
  .mz-call-captions { min-height: 600px; }
  .mz-call-tools { grid-column: 1/-1; width: min(600px, 100%); justify-self: center; }
  .mz-record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 12px; align-items: start; }
  .mz-record-meter { min-height: 520px; }
  .mz-doc-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 12px; }
  .mz-doc-view { min-height: 620px; }
  .mz-auth__shell {
    padding: 30px;
    grid-template-columns: minmax(380px, 1fr) minmax(370px, .82fr);
    grid-template-rows: auto 1fr auto;
    gap: 32px 70px;
  }
  .mz-auth__top { grid-column: 1/-1; }
  .mz-auth__visual { grid-column: 1; grid-row: 2; min-height: 620px; }
  .mz-auth__form { grid-column: 2; grid-row: 2; }
  .mz-auth__foot { grid-column: 1/-1; }
  .mz-sheet-wrap, .mz-dialog-wrap { align-items: center; }
  .mz-sheet { border-radius: 28px; }
  #cotoaToast { bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== Legal pages (Mobile Zero look; 本文はそのまま・外装のみ) ===== */
body.mz-legal { background: #F7F8FA !important; color: #1E2126 !important; font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif !important; max-width: 720px !important; margin: 0 auto !important; padding: 0 20px 90px !important; line-height: 1.95 !important; }
.mz-legal-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; min-height: 58px; margin: 0 -20px 18px; padding: 8px 16px calc(8px); background: rgba(247,248,250,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(30,33,38,.08); }
.mz-legal-top a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #1E2126; font-weight: 800; font-size: 14px; }
.mz-legal-top img { width: 30px; height: 30px; border-radius: 10px; border: 1px solid rgba(201,169,110,.5); }
.mz-legal-top .mz-legal-back { margin-left: auto; font-size: 12px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #1E2126; color: #fff; }
body.mz-legal h1 { font-size: 22px !important; letter-spacing: -.02em; color: #1E2126 !important; line-height: 1.4 !important; }
body.mz-legal h2 { font-size: 15px !important; color: #1E2126 !important; margin-top: 30px; padding-left: 10px; border-left: 3px solid #C9A96E; }
body.mz-legal p, body.mz-legal li { font-size: 13.5px !important; color: #3A3E45 !important; }
body.mz-legal a { color: #8A6A2F; font-weight: 700; }
body.mz-legal table { width: 100%; border-collapse: collapse; font-size: 13px; }
body.mz-legal td, body.mz-legal th { border: 1px solid rgba(30,33,38,.12); padding: 8px 10px; }
@media (max-width: 480px){ body.mz-legal { padding: 0 16px 80px !important; } .mz-legal-top { margin: 0 -16px 16px; } }

/* 左レール上部: Cマークを廃止しキャラクターを配置（キャラクターはここのみ） */
.mz-nav__brand img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; display: block; }
@media (min-width: 940px) { .mz-nav__brand { overflow: hidden; padding: 0; } }

/* ===== 通話フルスクリーンステージ（上下左右1画面・Android含む全端末でボタン干渉なし） ===== */
.mz-call-stage { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: #0b0c10; }
.mz-cs-grid { flex: 1; min-height: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 6px; padding: calc(6px + env(safe-area-inset-top)) 6px 6px; }
@media (orientation: landscape) { .mz-cs-grid { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; } }
.mz-cs-tile { position: relative; min-height: 0; overflow: hidden; border-radius: 16px; background: #171a21; }
.mz-cs-tile video { width: 100%; height: 100%; object-fit: cover; }
.mz-cs-lang { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 5px 11px; border-radius: 999px; background: rgb(0 0 0 / 58%); color: #fff; font-size: 11px; font-weight: 850; }
.mz-cs-name { position: absolute; z-index: 2; bottom: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: rgb(0 0 0 / 45%); color: #cfd3db; font-size: 10px; font-weight: 750; }
.mz-cs-waiting { display: grid; place-items: center; }
.mz-cs-waiting p { margin: 0; padding: 16px; color: #9aa1ae; font-size: 13px; line-height: 1.8; text-align: center; }
.mz-cs-waiting small { color: #6d7482; font-size: 11px; }
.mz-cs-interp { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 178px; min-height: 58px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 14px 34px rgb(0 0 0 / 45%); }
.mz-cs-interp.is-on { background: #0db49d; }
.mz-cs-status { position: absolute; z-index: 6; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-width: 86%; padding: 6px 13px; border-radius: 999px; background: rgb(0 0 0 / 52%); color: #cfd3db; font-size: 10px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-cs-captions { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 92px; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.mz-cs-captions div { align-self: flex-start; max-width: 94%; padding: 7px 12px; border-radius: 13px; background: rgb(0 0 0 / 58%); color: #fff; font-size: 12.5px; line-height: 1.55; backdrop-filter: blur(4px); }
.mz-cs-captions b { margin-right: 7px; color: var(--lime); font-size: 10px; }
.mz-cs-captions small { display: block; color: #aab1bd; font-size: 10px; }
.mz-cs-bar { flex: none; display: flex; justify-content: center; gap: 9px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
.mz-cs-bar button { min-width: 62px; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 16px; background: rgb(255 255 255 / 9%); color: #fff; font-size: 17px; }
.mz-cs-bar button span { font-size: 9px; font-weight: 750; color: #c3c9d4; }
.mz-cs-bar .danger { background: var(--red); }
.mz-cs-bar .danger span { color: #ffd9df; }
/* 通話中に他画面へ移動した際の復帰ピル */
.mz-call-return { position: fixed; z-index: 350; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #0db49d; color: #fff; font-size: 12px; font-weight: 850; box-shadow: 0 12px 28px rgb(0 0 0 / 30%); }

/* ===== 1画面フィット（スマホ・縦850px以下）: 全ビューをスクロールなしで収める圧縮パス ===== */
@media (max-width: 939px) and (max-height: 900px) {
  .mz-main { padding-top: 10px; padding-bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); }
  .mz-page-head { margin-bottom: 10px; }
  .mz-page-head h1 { font-size: clamp(21px, 6vw, 27px); }
  .mz-page-head p, .mz-eyebrow { display: none; }
  .mz-status-pill { min-height: 30px; padding: 5px 9px; }
  .mz-card__pad { padding: 12px; }
  .mz-label { margin-bottom: 5px; }
  .mz-note { font-size: 9.5px; line-height: 1.5; }
  /* 通訳: ライブ枠を可変にし、詳細ボタン類を圧縮 */
  .mz-live { min-height: 150px; padding: 12px; }
  .mz-setup { padding: 12px; }
  .mz-mode button { min-height: 44px; }
  .mz-language-flow { margin-top: 8px; }
  .mz-lang { min-height: 52px; }
  .mz-action-dock { margin-top: 8px; padding: 6px; }
  .mz-action-dock button { min-height: 52px; }
  /* 会場: ヒーローを畳み、手順カードを圧縮（情報は手順内に揃っている） */
  .mz-stage-hero { display: none; }
  .mz-step { padding: 11px; gap: 8px; }
  .mz-step h2 { font-size: 13px; }
  .mz-step p { display: none; }
  .mz-stage-layout { padding-bottom: 84px; }
  .mz-stage-start-dock button { min-height: 54px; }
  /* 記録: メーターと余白を圧縮 */
  .mz-record-meter { padding: 12px; }
  .mz-record-orb { width: 44px; height: 44px; }
  .mz-record-time { font-size: 26px; }
  .mz-record-options { padding: 12px; }
  .mz-record-actions button { min-height: 52px; }
  /* 書類: 一覧は内部スクロール化して1画面に収める */
  .mz-doc-list { max-height: calc(100dvh - 320px); overflow: auto; }
  .mz-doc-view { max-height: calc(100dvh - 250px); overflow: auto; }
}
@media (max-width: 939px) and (max-height: 900px) {
  /* 二次調整: 残差の解消 */
  .mz-live { min-height: 112px; }
  .mz-mode button { min-height: 40px; }
  .mz-lang { min-height: 47px; }
  .mz-setup .mz-btn--wide { min-height: 44px; }
  .mz-workbench { gap: 8px; }
  .mz-steps { gap: 8px; }
  .mz-step { padding: 9px 11px; }
  .mz-step .mz-lang { min-height: 44px; }
  .mz-audio-actions button, .mz-step .mz-btn { min-height: 44px; }
  .mz-check { min-height: 40px; padding: 8px 10px; font-size: 10px; }
  .mz-stage-layout { padding-bottom: 74px; }
  .mz-doc-tabs button { min-height: 40px; }
  .mz-doc-list { max-height: calc(100dvh - 400px); }
  .mz-doc-view { max-height: calc(100dvh - 330px); }
  .mz-doc-layout { gap: 8px; }
}
@media (max-width: 939px) and (max-height: 900px) {
  /* 三次調整: ゼロフィットへ */
  .mz-main { padding-top: 8px; padding-bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); }
  .mz-page-head { margin-bottom: 8px; }
  .mz-workbench { gap: 6px; }
  .mz-language-flow { margin-top: 6px; }
  .mz-setup .mz-note { margin-top: 8px !important; }
  .mz-live__empty p { margin: 6px 0 0; font-size: 10px; }
  .mz-live__empty span svg { width: 30px; height: 30px; }
  .mz-lang { min-height: 40px; }
  .mz-audio-actions button, .mz-step .mz-btn { min-height: 40px; }
  .mz-steps { gap: 6px; }
  .mz-step { padding: 8px 10px; }
  .mz-stage-layout { padding-bottom: 66px; }
  .mz-stage-start-dock { padding: 6px; }
  .mz-doc-view { min-height: 0; }
  .mz-doc-view .mz-empty { padding: 14px; }
  .mz-doc-view .mz-empty h2 { font-size: 14px; margin: 6px 0 4px; }
  .mz-doc-list { max-height: calc(100dvh - 470px); }
  .mz-empty { padding: 16px; }
  .mz-empty svg { width: 26px; height: 26px; }
}
@media (max-width: 939px) and (max-height: 900px) {
  /* 最終調整 */
  .mz-doc-view { padding: 12px; }
  .mz-doc-view .mz-empty, .mz-doc-list .mz-empty { min-height: 0; padding: 10px 8px; }
  .mz-doc-view .mz-empty p, .mz-doc-list .mz-empty p { margin: 4px 0 0; font-size: 10px; }
  .mz-doc-view .mz-empty h2, .mz-doc-list .mz-empty h2 { margin: 4px 0 0; font-size: 13px; }
  .mz-doc-view .mz-empty svg, .mz-doc-list .mz-empty svg { width: 22px; height: 22px; }
  .mz-doc-list { max-height: calc(100dvh - 430px); }
  .mz-step { min-height: 0; }
  .mz-step h2 { margin: 0; font-size: 12px; }
  .mz-step .mz-lang { min-height: 38px; }
  .mz-step .mz-check span { font-size: 10px; line-height: 1.4; }
  .mz-language-pair button, .mz-language-flow .mz-lang { min-height: 38px; }
}
@media (max-width: 939px) and (max-height: 900px) {
  /* 会場: 手順は内部スクロール化し、ページ自体は常に1画面（開始ドックはsticky維持） */
  .mz-steps { max-height: calc(100dvh - 60px - var(--nav-h) - 96px - env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; border-radius: 16px; }
  .mz-stage-layout { padding-bottom: 0; }
}

/* ===== 招待専用ページ（10歳対応・1画面・大ボタン） ===== */
.mz-invite { min-height: calc(100dvh - 60px - var(--nav-h) - 40px); display: grid; place-items: center; }
.mz-invite-card { width: min(100%, 420px); padding: 22px 18px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.mz-invite-emoji { font-size: 44px; line-height: 1; }
.mz-invite-card h1 { margin: 0; color: var(--ink); font-size: clamp(22px, 6.4vw, 28px); letter-spacing: -.04em; line-height: 1.2; }
.mz-invite-lead { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.mz-invite-lang { min-height: 54px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--canvas); color: var(--ink); text-align: left; }
.mz-invite-lang small { color: var(--muted); font-size: 9px; font-weight: 850; }
.mz-invite-lang b { flex: 1; font-size: 15px; }
.mz-invite-lang span { color: var(--blue); font-size: 11px; font-weight: 800; }
.mz-invite-join { min-height: 62px; font-size: 16px; }
.mz-invite-consent { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.mz-invite-consent a { color: var(--blue); font-weight: 700; }
/* 音声・映像 解錠ボタン（モバイル自動再生制限） */
.mz-cs-unlock { position: absolute; z-index: 7; left: 50%; bottom: 150px; transform: translateX(-50%); min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--lime); color: #101218; font-size: 13px; font-weight: 900; box-shadow: 0 14px 30px rgb(0 0 0 / 45%); }
/* ホストの通話作成ビューも1画面へ圧縮（モバイル） */
@media (max-width: 939px) and (max-height: 900px) {
  .mz-call-entry .mz-choice { padding: 12px; }
  .mz-call-entry .mz-choice__icon { display: none; }
  .mz-call-entry h2 { margin: 0 0 4px; font-size: 14px; }
  .mz-call-entry .mz-choice > p { margin: 0 0 8px; font-size: 10px; }
  .mz-call-entry .mz-field { min-height: 44px; }
  .mz-call-entry .mz-check { min-height: 38px; font-size: 10px; }
  .mz-call-entry .mz-btn { min-height: 48px; }
  .mz-invite { min-height: calc(100dvh - 60px - var(--nav-h) - 28px); }
}
.mz-invite-inapp { margin: 0 0 4px; padding: 10px 12px; border-radius: 13px; background: #fff4dc; color: #8a5a00; font-size: 11px; line-height: 1.6; text-align: left; }
.mz-invite-err { margin: 0; color: var(--red); font-size: 11px; line-height: 1.65; text-align: left; }
.mz-invite-err:empty { display: none; }

/* 通訳の視覚フロー（誰→誰） */
.mz-flowviz { margin-top: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 14px; border-radius: 14px; background: var(--canvas); }
.mz-flowviz .fv-node { display: grid; justify-items: center; gap: 2px; }
.mz-flowviz .fv-node i { font-style: normal; font-size: 24px; line-height: 1; }
.mz-flowviz .fv-node small { color: var(--muted); font-size: 9px; font-weight: 800; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-flowviz .fv-arrow { display: grid; justify-items: center; color: var(--blue); font-size: 20px; font-weight: 900; animation: fv-pulse 1.6s ease infinite; }
.mz-flowviz .fv-arrow b { font-size: 13px; }
@keyframes fv-pulse { 50% { opacity: .45; transform: translateX(2px); } }
/* 通話 RECバッジ */
.mz-cs-rec { position: absolute; z-index: 6; top: calc(10px + env(safe-area-inset-top)); left: 10px; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgb(223 64 86 / 92%); color: #fff; font-size: 10px; font-weight: 900; }
/* 声の登録: 録音中ポップアップ */
.mz-voice-pop { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 16px; background: rgb(10 12 16 / 72%); backdrop-filter: blur(6px); }
.mz-voice-pop__card { width: min(100%, 430px); padding: 20px 18px; display: grid; gap: 12px; border-radius: 22px; background: #fff; text-align: center; }
.mz-voice-pop__rec { justify-self: center; padding: 5px 12px; border-radius: 999px; background: #ffe9ed; color: var(--red); font-size: 11px; font-weight: 900; animation: fv-pulse 1.2s ease infinite; }
.mz-voice-pop__card strong { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mz-voice-pop__lead { margin: 0; color: var(--muted); font-size: 11px; }
.mz-voice-pop__script { padding: 14px; border-radius: 14px; background: var(--canvas); color: var(--ink); font-size: 14.5px; line-height: 2; text-align: left; }

/* ===== v220: 書類フォルダ／進捗ゲージ／モーション ===== */
/* フォルダ型の記録一覧（バッジ列を足した4カラム） */
.mz-folder { position: relative; grid-template-columns: 46px minmax(0, 1fr) auto 16px; }
.mz-folder > span:nth-child(2) > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-folder__icon { font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--blue-soft); border-radius: 14px; flex: none; }
.mz-folder__badge { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--cyan); background: var(--cyan-soft); border-radius: 999px; padding: 4px 8px; flex: none; }
.mz-folder__badge.is-none { color: var(--muted); background: var(--surface-2); }
.mz-folder__badge.is-busy { color: var(--amber); background: #fdf0e7; }

/* 発行ごとのフォルダ（書類ビュー内） */
.mz-issue { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; background: var(--surface); overflow: hidden; }
.mz-issue > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.mz-issue > summary::-webkit-details-marker { display: none; }
.mz-issue__folder { font-size: 20px; }
.mz-issue > summary b { font-size: 13.5px; }
.mz-issue > summary small { color: var(--muted); font-size: 11px; margin-left: auto; text-align: right; }
.mz-issue[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mz-issue > pre { margin: 0; padding: 12px 14px; animation: mzFadeUp .3s ease both; }

/* 進捗ゲージ（ボタン右にバー＋％） */
.mz-doc-buildrow { display: flex; align-items: center; gap: 10px; }
.mz-doc-buildrow .mz-btn { flex: 1 1 auto; }
.mz-gauge { flex: 1 1 40%; min-width: 70px; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; position: relative; }
.mz-gauge > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s ease; }
.mz-gauge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 45%) 50%, transparent 70%); animation: mzShimmer 1.3s linear infinite; }
.mz-gauge__pct { font-size: 13px; font-weight: 800; color: var(--blue); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes mzShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* 書類チップの目安時間 */
.mz-chip .mz-chip__eta { display: block; font-size: 9px; font-weight: 600; opacity: .65; margin-top: 1px; }

/* モーション（通訳以外の画面にも動きを） */
@keyframes mzFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mzPopIn { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: none; } }
.mz-page .mz-card, .mz-page .mz-empty, .mz-doc-item { animation: mzFadeUp .38s ease both; }
.mz-workbench > *:nth-child(2), .mz-doc-item:nth-child(2) { animation-delay: .05s; }
.mz-workbench > *:nth-child(3), .mz-doc-item:nth-child(3) { animation-delay: .1s; }
.mz-doc-item:nth-child(4) { animation-delay: .15s; }
.mz-doc-item:nth-child(5) { animation-delay: .2s; }
.mz-doc-item:nth-child(n+6) { animation-delay: .25s; }
.mz-btn:active, .mz-chip:active, .mz-doc-item:active { transform: scale(.97); }
.mz-btn, .mz-chip, .mz-doc-item { transition: transform .12s ease, box-shadow .2s ease; }
.mz-doc-item:hover { box-shadow: var(--shadow); }
.mz-chip.is-on { animation: mzPopIn .25s ease; }
@media (prefers-reduced-motion: reduce) {
  .mz-page .mz-card, .mz-page .mz-empty, .mz-doc-item, .mz-chip.is-on, .mz-issue > pre { animation: none; }
  .mz-gauge::after { animation: none; }
}

/* ===== v222: 階層フォルダ・時間コスト明示・出力/共有・可読性 ===== */
/* 種類フォルダ（要約/報告書/議事録）と言語フォルダの入れ子 */
.mz-kindfolder { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; background: var(--surface); overflow: hidden; }
.mz-kindfolder > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 13px 14px; font-size: 15px; }
.mz-kindfolder > summary b { font-size: 15px; }
.mz-kindfolder > summary::-webkit-details-marker, .mz-langfolder > summary::-webkit-details-marker { display: none; }
.mz-kindfolder > summary small, .mz-langfolder > summary small { margin-left: auto; color: var(--muted); font-size: 11px; }
.mz-kindfolder[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mz-langfolder { margin: 8px 10px 10px 22px; border-left: 2px solid var(--blue-soft); padding-left: 10px; }
.mz-langfolder > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 7px 4px; font-weight: 700; font-size: 13.5px; }
.mz-docleaf { margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; animation: mzFadeUp .3s ease both; }
.mz-docleaf__head { font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 12px; background: var(--surface-2); }
.mz-docbody { padding: 12px; font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; max-height: 340px; overflow-y: auto; }
.mz-exportbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px; border-top: 1px dashed var(--line); }
.mz-exportbar .mz-chip { font-size: 12px; padding: 8px 12px; }

/* 時間コストの明示バナー（絶対に見落とさせない） */
.mz-costbanner { margin-top: 14px; padding: 13px 14px; border-radius: 12px; background: #fdf0e7; border: 1.5px solid #f0c9a8; color: #9a4b12; font-size: 13.5px; font-weight: 600; }
.mz-costbanner b { font-size: 17px; font-weight: 800; }
.mz-costbanner span { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; opacity: .9; }

/* v223: 原文（文字起こし）フォルダ — 書類とは色味を変えて区別 */
.mz-rawfolder { background: var(--canvas); }
.mz-rawfolder > summary { color: var(--muted); }
.mz-rawfolder > summary b { color: var(--text); font-size: 13.5px; }
.mz-rawfolder .mz-docbody { font-size: 12.5px; color: var(--muted); }

/* ===== v231: デザイン監査反映（実機iPhoneスクショ起点） ===== */
/* フォルダ/原文アイコン: 絵文字をやめSVG化（iOS/Androidで色が揃う・ブランド色） */
.ico-folder, .ico-doc { display: inline-block; width: 24px; height: 20px; flex: none; background-position: center; background-repeat: no-repeat; background-size: contain; font-style: normal; }
.ico-folder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 4a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4z' fill='%232457f5'/%3E%3Cpath d='M2 8h20v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8z' fill='%236f95f7'/%3E%3C/svg%3E"); }
.ico-folder.sm { width: 18px; height: 15px; }
.ico-doc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M3 2a2 2 0 0 1 2-2h8l4 4v18a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V2z' fill='%23dfe3ea'/%3E%3Cpath d='M13 0l4 4h-4V0z' fill='%23aab3c2'/%3E%3Crect x='6' y='8' width='9' height='1.6' rx='.8' fill='%236d7482'/%3E%3Crect x='6' y='12' width='9' height='1.6' rx='.8' fill='%236d7482'/%3E%3Crect x='6' y='16' width='6' height='1.6' rx='.8' fill='%236d7482'/%3E%3C/svg%3E"); width: 20px; height: 22px; }
.mz-folder__icon { background: var(--blue-soft); }
.mz-kindfolder > summary .ico-folder { margin-right: 2px; }

/* 書類ビュー: 画面内スクロールをやめ、ページ全体スクロールに統一（引っかかり解消） */
.mz-doc-view pre { max-height: none; }
.mz-docbody { max-height: none; overflow-y: visible; }
@media (max-width: 939px) {
  .mz-doc-view { min-height: 0; padding-bottom: calc(var(--nav-h) + 26px); }
}

/* ページ題の高級感: 深いインクのグラデ文字＋控えめな金のアクセント＋淡い光彩 */
.mz-page-head { position: relative; }
.mz-page-head::before {
  content: ""; position: absolute; left: -26px; top: -30px; width: 150px; height: 150px;
  background: radial-gradient(closest-side, rgb(36 87 245 / 9%), transparent 70%);
  pointer-events: none; animation: mzGlowDrift 9s ease-in-out infinite alternate;
}
.mz-page-head h1 {
  background: linear-gradient(165deg, #14161d 30%, #3c4358 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mz-eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.mz-eyebrow::before {
  content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg);
  background: linear-gradient(135deg, #e8c774, var(--blue));
  box-shadow: 0 0 8px rgb(232 199 116 / 55%);
}
@keyframes mzGlowDrift { from { transform: translate(0, 0); } to { transform: translate(26px, 10px); } }

/* 軽い動き（GPUに優しいopacity/transformのみ） */
.mz-status-pill i { animation: mzBlink 2.4s ease-in-out infinite; }
@keyframes mzBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mz-record-orb { animation: mzBreath 3.2s ease-in-out infinite; }
@keyframes mzBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .mz-page-head::before, .mz-status-pill i, .mz-record-orb { animation: none; }
}

/* ===== v236: 通訳開始ウォームアップ演出＋音声バー ===== */
#mzWarmup { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgb(12 16 28 / 88%); backdrop-filter: blur(10px); transition: opacity .55s ease; }
#mzWarmup.is-done { opacity: 0; pointer-events: none; }
.mz-wu-words { position: absolute; inset: 0; overflow: hidden; }
.mz-wu-words span { position: absolute; color: #9db4e8; opacity: 0; white-space: nowrap; filter: blur(.4px); animation: mzWuFloat linear infinite; }
@keyframes mzWuFloat {
  0% { opacity: 0; transform: translateY(14px) scale(.92); }
  18% { opacity: .85; filter: blur(0); }
  55% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-26px) scale(1.05); filter: blur(1.6px); }
}
.mz-wu-center { position: relative; text-align: center; padding: 26px 30px; }
.mz-wu-center b { display: block; color: #fff; font-size: clamp(19px, 5.2vw, 27px); letter-spacing: .02em; text-shadow: 0 2px 22px rgb(36 87 245 / 55%); animation: mzWuPulse 2.2s ease-in-out infinite; }
.mz-wu-center p { margin: 12px 0 18px; color: #aebadb; font-size: 13px; }
.mz-wu-spin { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgb(255 255 255 / 18%); border-top-color: var(--lime); animation: mzWuSpin 1s linear infinite; }
@keyframes mzWuSpin { to { transform: rotate(360deg); } }
@keyframes mzWuPulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

.mz-voicebar { margin: 8px 12px 0; height: 8px; border-radius: 999px; background: rgb(255 255 255 / 10%); overflow: hidden; }
.mz-voicebar i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--lime), #6ef3c9 60%, #24d3f5); transition: width .09s linear; box-shadow: 0 0 12px rgb(201 243 106 / 55%); }
@media (prefers-reduced-motion: reduce) { .mz-wu-words span, .mz-wu-center b, .mz-wu-spin { animation: none; } }

/* 通訳中はモード切替をロック（停止してから変更） */
.mz-mode.is-locked button { opacity: .45; cursor: not-allowed; }

/* ---- 書類UX: 選択強調 / スマホは一覧⇄内容のスタック遷移 / JPGプレビュー ---- */
.mz-doc-item.is-sel { border: 2px solid var(--blue); background: var(--blue-soft); box-shadow: 0 6px 18px rgb(36 87 245 / 14%); }
.mz-doc-item.is-sel .mz-folder__icon { background: var(--blue); color: #fff; }
.mz-doc-item.is-sel b { color: var(--blue); }
.mz-doc-back { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.mz-jpgwrap { margin: 10px 0 8px; min-height: 56px; display: grid; place-items: center; }
.mz-jpgwrap img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 26px rgb(16 18 24 / 8%); }
.mz-chip.is-locked { opacity: .5; }
.mz-docopts { margin-bottom: 4px; }
@media (max-width: 1015px) {
  /* スマホ: 一覧が大きすぎて内容が狭い問題 → 選ぶまでは一覧だけ、選んだら内容だけの全画面 */
  .mz-doc-layout:not(.is-open) .mz-doc-view { display: none; }
  .mz-doc-layout.is-open > div:first-child { display: none; }
  .mz-doc-layout.is-open .mz-doc-back { display: inline-block; }
  .mz-doc-item { padding: 10px 12px; }
  .mz-folder { grid-template-columns: 38px minmax(0, 1fr) auto 14px; }
  .mz-folder__icon { width: 38px; height: 38px; font-size: 21px; border-radius: 11px; }
  .mz-doc-item b { font-size: 13.5px; }
}

/* ---- ログイン2タブ（通常ログイン / 席キーで入室） ---- */
.mz-authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2, #eef1f6); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 12px 0 16px; }
.mz-authtab { border: 0; background: transparent; border-radius: 999px; padding: 10px 8px; font-weight: 800; font-size: 13px; color: var(--muted); }
.mz-authtab.is-on { background: var(--surface); color: var(--blue); box-shadow: 0 4px 14px rgb(16 18 24 / 10%); }
.mz-linklike { border: 0; background: none; color: var(--blue); font-weight: 700; font-size: 12.5px; padding: 4px 0; text-align: left; }
.mz-oauth { position: relative; }

/* P4: 記録タブの2面切替 */
.mz-rectabs { margin-bottom: 12px; }
.mz-rectabs button { flex: 1; }

/* ---- 通訳/会場の折り畳み設定 ---- */
.mz-fold { border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; background: var(--surface); }
.mz-fold summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.mz-fold summary::-webkit-details-marker { display: none; }
.mz-fold summary b { color: var(--blue); font-size: 13px; margin-left: auto; }
.mz-fold summary::after { content: "▾"; color: var(--muted); margin-left: 6px; }
.mz-fold[open] summary::after { content: "▴"; }
.mz-fold > *:not(summary) { margin: 0 14px 12px; }
.mz-fold.is-locked { pointer-events: none; opacity: .55; }
/* ---- 高品質SVGフロー絵 ---- */
.mz-flowviz2 { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 14px 0 2px; }
.fv2-fig { display: grid; justify-items: center; gap: 4px; }
.fv2-fig small { font-size: 11px; font-weight: 800; color: var(--muted); max-width: 96px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv2-arrow { display: grid; align-items: center; animation: fv-pulse 1.6s ease infinite; }
/* ---- 通話ビデオの標準ビューティフィルター（全員すこし良く見える上品な補正） ---- */
.mz-video video, .mz-cs-tile video { filter: brightness(1.05) contrast(1.06) saturate(1.12) sepia(.04); }
/* ---- 記録フォルダの日付見出し ---- */
.mz-doc-day { margin: 12px 4px 6px; font-size: 11.5px; font-weight: 900; letter-spacing: .06em; color: var(--muted); }
/* ---- JPG複数ページ ---- */
.mz-jpgwrap img + img { margin-top: 10px; }

/* ---- 言語カード(15言語の一枚絵)。画像が無ければ従来表示に自動フォールバック ---- */
.mz-lang { position: relative; overflow: hidden; }
.mz-lang__art { position: absolute; inset: 0; z-index: 0; }
.mz-lang__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-lang.has-art:not(.no-art)::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(255 255 255 / 88%) 0%, rgb(255 255 255 / 62%) 55%, rgb(255 255 255 / 20%) 100%); }
.mz-lang.no-art .mz-lang__art { display: none; }
.mz-lang small, .mz-lang b { position: relative; z-index: 2; }
/* ---- フローの人物絵: 画像優先・無ければSVG ---- */
.fv2-img { width: 78px; height: 72px; object-fit: contain; border-radius: 14px; }
.fv2-fig.no-img .fv2-img { display: none; }
.fv2-fig:not(.no-img) svg { display: none; }
/* ---- オプション(会話言語以外の設定)は少し小さく・枠を離す ---- */
.mz-fold { width: calc(100% - 10px); margin-left: 5px; }
.mz-fold:first-of-type { margin-top: 20px; }
.mz-fold + .mz-fold { margin-top: 10px; }
.mz-fold summary { padding: 10px 12px; font-size: 11.5px; }
.mz-fold summary b { font-size: 12px; }

/* ---- 方向フリップボタン / 固定記号 / 言語間の区切り ---- */
.mz-dirbtn { border: 2px solid var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 10px 14px; display: grid; place-items: center; box-shadow: 0 6px 16px rgb(36 87 245 / 18%); }
.mz-dirbtn:active { transform: scale(.94); }
.mz-dirsym { display: grid; place-items: center; padding: 10px 6px; opacity: .95; }
.mz-langdot { color: var(--muted); font-weight: 900; padding: 0 2px; }
/* ---- 言語カードの切れ防止(国旗側を必ず見せる)と最低高さ ---- */
.mz-lang { min-height: 64px; }
.mz-lang__art img { object-fit: contain; object-position: right center; }
/* ---- 言語選択: グループ見出し・カード付きボタン・字幕のみコンパクト3列 ---- */
.mz-lang-grouph { display: block; margin: 14px 2px 8px; }
.mz-lang-list button.has-card { position: relative; background-size: cover; background-position: right center; overflow: hidden; min-height: 56px; }
.mz-lang-list button.has-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / 90%) 0%, rgb(255 255 255 / 55%) 60%, rgb(255 255 255 / 15%) 100%); }
.mz-lang-list button.has-card span { position: relative; }
.mz-lang-list--compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mz-lang-list--compact button { min-height: 34px; padding: 6px 8px; font-size: 12px; }

/* 向き固定モードの中央: ボタンと同デザインの静的表示 */
.mz-dirbtn.is-static { pointer-events: none; opacity: .92; display: grid; place-items: center; }

/* ===== v258: 実機指摘第2弾 ===== */
/* 残り時間の詳細ポップアップ */
.mz-remain-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mz-remain-row b { font-variant-numeric: tabular-nums; font-size: 17px; }
.mz-remain-row.is-total b { font-size: 26px; color: var(--blue); }
/* 録音中の即時文字おこし */
.mz-reclive { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.mz-reclive__t { margin-top: 6px; max-height: 132px; overflow: auto; font-size: 13px; line-height: 1.65; white-space: pre-wrap; color: var(--ink); }
/* 書類一覧の件数（下に続いていることを示す） */
.mz-doc-count { margin: 0 2px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
/* モーダル中の背面固定 + シート内スクロールの閉じ込め（iOSタッチずれ対策） */
body.mz-modal-open { overflow: hidden; }
.mz-sheet-wrap, .mz-dialog-wrap { overscroll-behavior: contain; touch-action: none; }
.mz-sheet, .mz-dialog { overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }

/* ===== v256: iPhone実機指摘の一括修正 ===== */
/* 聞き方4モードは常に1行（.mz-modeはgridのためflex-wrapでは効かない） */
.mz-mode--modes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.mz-mode--modes button { padding: 9px 2px; }
.mz-mode--modes button > span:first-child {
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 通訳中はセットアップを隠して、聞き取り・翻訳の表示域を最大化 */
.mz-workbench.is-live { grid-template-columns: 1fr; }
.mz-workbench.is-live .mz-setup { display: none; }
.mz-workbench.is-live .mz-live { min-height: min(62vh, 560px); }
.mz-page--it { padding-top: 4px; }

/* 会場: 開始ボタンはステップの流れの中に置く（sticky浮きの解消） */
.mz-stage-start-dock { position: static; margin-top: 6px; }

/* ウォームアップ: 斜めに流れる背景 + その場で押せる停止ボタン */
#mzWarmup { overflow: hidden; }
#mzWarmup::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: repeating-linear-gradient(135deg, rgb(36 87 245 / 14%) 0 26px, transparent 26px 90px);
  animation: mz-wu-slide 2.8s linear infinite;
  pointer-events: none;
}
@keyframes mz-wu-slide { to { transform: translate3d(63.6px, 63.6px, 0); } }
.mz-wu-center { position: relative; z-index: 1; }
.mz-wu-stop {
  margin-top: 20px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid rgb(255 118 118 / 60%);
  border-radius: 26px;
  background: rgb(196 44 44 / 30%);
  color: #ffdcdc;
  font-size: 15px;
  font-weight: 800;
}

/* 書類: 記録の削除・発行物の削除 */
.mz-doc-viewhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mz-doc-del { color: #c62828; }
.mz-chip--del { border-color: rgb(198 40 40 / 40%); color: #c62828; }
