/* ==========================================================================
   Panel-style tools (everything that is not a full-screen canvas): shared layout.
   ========================================================================== */
.tool { border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 50% 0, #1d1740, var(--bg) 70%); }
.tool-inner { padding: 40px 0 56px; text-align: center; }
.tool h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 6px; }
.lede { color: var(--text-dim); margin: 0 auto 26px; max-width: 34em; }
.panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 24px; max-width: 760px; margin: 22px auto 0; padding: 22px; text-align: left;
         background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel.wide { max-width: 960px; }
.panel .full { grid-column: 1 / -1; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg .btn { flex: 1; min-width: 64px; padding: 0 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.play {
  width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer; color: #1a0d05;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 65%, #c4491c);
  box-shadow: 0 0 0 9px rgba(255, 122, 61, .14), 0 16px 48px rgba(255, 122, 61, .3);
  display: inline-flex; align-items: center; justify-content: center; transition: transform .15s;
}
.play:hover { transform: scale(1.04); } .play:active { transform: scale(.97); }
.play svg { width: 52px; height: 52px; fill: currentColor; stroke: none; }
.play .i-pause { display: none; } .play[aria-pressed="true"] .i-play { display: none; } .play[aria-pressed="true"] .i-pause { display: block; }
.status { min-height: 1.6em; margin: 16px 0 6px; color: var(--text-dim); }
.big { font-size: clamp(2.6rem, 11vw, 5.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.inp { width: 100%; min-height: var(--tap); border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); color: var(--text); padding: 0 12px; font: inherit; }
textarea.inp { padding: 12px; min-height: 140px; resize: vertical; line-height: 1.5; }
.note { color: var(--text-dim); font-size: 14px; margin: 14px auto 0; max-width: 40em; }
.warn { color: #ffd9a8; font-size: 14px; margin: 12px auto 0; max-width: 40em; }
.meter { height: 16px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4cd964, #ffd34d 70%, #ff5a4d); transition: width .05s linear; }
