/* 坐禅タイマー（参加者向けページ） */
.zt { --zt-ink: #EDE4D3; --zt-sub: #A79C8A; --zt-line: rgba(237, 228, 211, .16); --zt-shu: #C7553A; }
.zt-stage { position: relative; background: #0B0807; border-radius: 10px; overflow: hidden; height: min(76vh, 620px); min-height: 420px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.zt-stage canvas { display: block; width: 100%; height: 100%; }
.zt-time { position: absolute; left: 0; right: 0; top: 18px; text-align: center; color: var(--zt-sub); font-size: 15px; letter-spacing: .2em; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.zt-time.on { opacity: .85; }
.zt-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--zt-sub); font-size: 13px; letter-spacing: .08em; opacity: .8; pointer-events: none; transition: opacity 1s ease; }
.zt-fs { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--zt-line); background: rgba(0,0,0,.25); color: var(--zt-sub); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.zt-fs:hover { color: var(--zt-ink); }
.zt-stage:fullscreen { height: 100vh; border-radius: 0; }
.zt-stage:-webkit-full-screen { height: 100vh; width: 100vw; border-radius: 0; }

.zt-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.zt-mins { display: flex; flex-wrap: wrap; gap: 8px; }
.zt-mins button { font: inherit; font-size: 15px; min-width: 58px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.zt-mins button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.zt-mins button:disabled { opacity: .45; cursor: default; }
.zt-go { font: inherit; font-size: 16px; letter-spacing: .08em; padding: 11px 26px; border-radius: 999px; border: 0; background: var(--shu); color: #fff; cursor: pointer; }
.zt-go.stop { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.zt-note { color: var(--sub); font-size: 13px; margin: 8px 0 0; }

/* 坐り終えたあとの記録 */
.zt-card { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 12px); width: min(92%, 420px); background: rgba(24, 19, 15, .92); border: 1px solid var(--zt-line); border-radius: 12px; padding: 18px 18px 16px; color: var(--zt-ink); max-height: calc(100% - 28px); overflow-y: auto; box-sizing: border-box; opacity: 0; pointer-events: none; transition: opacity .8s ease, transform .8s ease; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.zt-card.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.zt-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.zt-card .zt-sum { margin: 0 0 12px; color: var(--zt-sub); font-size: 14px; }
.zt-card label { display: block; font-size: 13px; color: var(--zt-sub); margin: 10px 0 6px; }
.zt-card input[type=number], .zt-card textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--zt-ink); background: rgba(255,255,255,.06); border: 1px solid var(--zt-line); border-radius: 8px; padding: 8px 10px; }
.zt-card textarea { min-height: 56px; resize: vertical; }
.zt-feel { display: flex; gap: 6px; flex-wrap: wrap; }
.zt-feel button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--zt-line); background: transparent; color: var(--zt-ink); cursor: pointer; }
.zt-feel button[aria-pressed="true"] { background: var(--zt-ink); color: #1A1410; }
.zt-card .zt-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.zt-card .zt-row button { font: inherit; font-size: 15px; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.zt-save { background: var(--zt-shu); color: #fff; border: 0; }
.zt-skip { background: transparent; color: var(--zt-sub); border: 1px solid var(--zt-line); }

/* 記録の一覧 */
.zt-log { margin-top: 22px; }
.zt-log h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; letter-spacing: .06em; }
.zt-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.zt-stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; min-width: 110px; }
.zt-stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.zt-stat span { color: var(--sub); font-size: 12px; }
.zt-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.zt-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.zt-list .d { color: var(--sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zt-list .m { grid-column: 2; }
.zt-list .x { background: none; border: 0; color: var(--sub); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.zt-list .memo { grid-column: 1 / -1; color: var(--sub); font-size: 13px; white-space: pre-wrap; }
.zt-empty { color: var(--sub); font-size: 14px; }
.zt-tools { display: flex; gap: 10px; margin-top: 10px; }
.zt-tools[hidden], .zt-empty[hidden], .zt-fs[hidden] { display: none; }
.zt-tools button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }

@media (max-width: 560px) {
  .zt-stage { height: min(72vh, 560px); }
  .zt-controls { flex-direction: column; align-items: stretch; }
  .zt-mins { justify-content: center; }
  .zt-mins button { flex: 1 0 28%; }
  .zt-go { width: 100%; }
}
