* { box-sizing: border-box; margin: 0; }

body { background: #070a12; color-scheme: dark; }

body:has(.tc) .breadcrumb { width: min(1140px, calc(100% - 32px)); margin: 14px auto 10px; color: #b6c1d4 !important; }
body:has(.tc) .breadcrumb li { color: #b6c1d4 !important; }
body:has(.tc) .breadcrumb li + li::before { color: rgba(233, 238, 247, .55) !important; }
body:has(.tc) .breadcrumb a { color: #5eead4 !important; }
body:has(.tc) .breadcrumb a:hover { color: #fff !important; background: rgba(45, 212, 191, .12); }
body:has(.tc) .breadcrumb .active,
body:has(.tc) .breadcrumb .active span { color: #e9eef7 !important; }

.tc {
  --bg: #070a12; --bg-2: #0b1020; --panel: rgba(17, 24, 39, .72); --panel-solid: #0f1626; --panel-2: #141d31; --raise: rgba(255, 255, 255, .045);
  --line: rgba(148, 163, 184, .13); --line-2: rgba(148, 163, 184, .26);
  --ink: #e9eef7; --ink-2: #b6c1d4; --ink-3: #8b98b0;
  --brand: #2dd4bf; --brand-2: #818cf8; --accent: #f472b6; --warn: #fbbf24; --danger: #fb7185; --ok: #34d399;
  --grad: linear-gradient(115deg, #2dd4bf 0%, #5eead4 18%, #60a5fa 52%, #a78bfa 100%);
  --grad-soft: linear-gradient(115deg, rgba(45, 212, 191, .16), rgba(129, 140, 248, .16));
  --r: 18px; --r-sm: 12px; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 2px 0 rgba(255, 255, 255, .03) inset;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  position: relative; isolation: isolate; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; padding: 0 0 72px;
}
.tc *, .tc *::before, .tc *::after { box-sizing: border-box; }
.tc [hidden] { display: none !important; }
.tc a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
.tc a:hover { text-decoration: underline; }
.tc :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.tc .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:where(.tc) :is(h1, h2, h3, h4) { font-family: var(--font); margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
:where(.tc) p { margin: 0 0 1em; }

/* ---------- ambient background ---------- */
.tc-bg { position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tc-bg::before, .tc-bg::after { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(90px); opacity: .5; animation: tc-drift 22s ease-in-out infinite alternate; }
.tc-bg::before { background: radial-gradient(circle, rgba(45, 212, 191, .55), transparent 65%); top: -280px; left: -120px; }
.tc-bg::after { background: radial-gradient(circle, rgba(129, 140, 248, .55), transparent 65%); top: -240px; right: -160px; animation-delay: -9s; }
.tc-bg i { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0, #000 20%, transparent 70%); }
@keyframes tc-drift { to { transform: translate3d(90px, 70px, 0) scale(1.15); } }

.tc-wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- hero ---------- */
.hero { padding: 34px 0 30px; position: relative; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 99px; background: var(--grad-soft); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; animation: tc-rise .7s var(--ease) both; }
.kicker .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(45, 212, 191, .7); animation: tc-pulse 2.2s infinite; }
@keyframes tc-pulse { 70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }
.hero h1 { font-size: 2.7rem; margin: 18px auto 14px; max-width: 100%; font-weight: 800; letter-spacing: -.035em; animation: tc-rise .8s .06s var(--ease) both; }
.tc:has(.tool-shell) .hero h1 { margin-top: 0; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: tc-shimmer 8s linear infinite; }
@keyframes tc-shimmer { to { background-position: 200% center; } }
.lede { max-width: 66ch; margin: 0 auto 22px; color: var(--ink-2); font-size: clamp(1rem, .94rem + .3vw, 1.18rem); animation: tc-rise .8s .12s var(--ease) both; }
.hub-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .88fr); align-items: center; gap: clamp(24px, 4vw, 56px); text-align: left; padding-block: 38px 32px; }
.hub-hero h1 { margin: 0 0 14px; }
.hub-hero .lede { margin: 0 0 22px; }
.hub-hero-art { margin: 0; overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.hub-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .hub-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: center; }
  .hub-hero h1 { margin-inline: auto; }
  .hub-hero .lede { margin-inline: auto; }
  .hub-hero-art { display: none; }
}
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 0 0 8px; padding: 0; animation: tc-rise .8s .18s var(--ease) both; }
.trust li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: var(--raise); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.trust li b { color: var(--brand); font-weight: 700; } .trust li i { font-style: normal; }
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 38px; margin: 22px auto 0; opacity: .9; }
.eq i { width: 5px; border-radius: 3px; background: var(--grad); height: 20%; transform-origin: bottom; animation: tc-eq 1.2s ease-in-out infinite; }
.eq i:nth-child(3n) { animation-duration: 1.6s; } .eq i:nth-child(4n) { animation-duration: .9s; } .eq i:nth-child(5n) { animation-duration: 1.9s; }
.eq i:nth-child(odd) { animation-delay: -.4s; } .eq i:nth-child(3n+1) { animation-delay: -.9s; }
@keyframes tc-eq { 0%, 100% { height: 14%; } 35% { height: 92%; } 65% { height: 38%; } }
@keyframes tc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- buttons / chips ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding: 0 1.15rem; border-radius: 13px; font: 600 15px/1 var(--font); color: var(--ink); background: var(--raise); border: 1px solid var(--line-2); cursor: pointer; transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .08); border-color: rgba(148, 163, 184, .45); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { color: #04141b; background: var(--grad); border-color: transparent; box-shadow: 0 10px 34px -10px rgba(45, 212, 191, .65); overflow: hidden; background-size: 160% 100%; }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(96, 165, 250, .75); filter: saturate(1.1) brightness(1.05); background-position: 100% 0; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:not([disabled]):hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn-primary[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(4, 20, 27, .3); border-top-color: #04141b; animation: tc-spin .7s linear infinite; }
@keyframes tc-spin { to { transform: rotate(360deg); } }
.btn-lg { min-height: 52px; padding: 0 1.6rem; font-size: 16px; border-radius: 15px; }
.btn.sm { min-height: 36px; padding: 0 .85rem; font-size: 14px; border-radius: 10px; }
.btn.on { background: var(--grad-soft); border-color: var(--brand); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--raise); color: var(--ink-2); cursor: pointer; transition: all .18s var(--ease); flex: none; font-size: 15px; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, .09); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; } .icon-btn.sm svg { width: 15px; height: 15px; }
.icon-btn.flip svg { transform: scaleX(-1); }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--brand); font: 600 14px/1.2 var(--font); cursor: pointer; text-underline-offset: 3px; }
.link-btn:hover { text-decoration: underline; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink-2); font: 600 13px/1 var(--font); cursor: pointer; transition: all .18s var(--ease); }
.chip-btn svg { width: 15px; height: 15px; }
.chip-btn:hover { color: var(--ink); border-color: rgba(148, 163, 184, .5); }
.chip-btn.on, .chip-btn[aria-pressed="true"] { color: #04141b; background: var(--brand); border-color: var(--brand); box-shadow: 0 6px 20px -8px rgba(45, 212, 191, .8); }

/* ---------- tool shell / studio ---------- */
.tool-shell { margin: 8px auto 0; }
.studio { display: grid; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: clamp(14px, 2.4vw, 22px); }
.stage { display: grid; gap: 16px; animation: tc-rise .6s var(--ease) both; }

/* stepper */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; position: relative; counter-reset: s; }
.stepper::before, .stepper::after { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px; background: var(--line-2); }
.stepper::after { background: var(--grad); right: auto; width: calc(75% * var(--p, 0%) / 100%); transition: width .7s var(--ease); }
.stepper li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.stepper .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font); background: var(--panel-solid); border: 2px solid var(--line-2); color: var(--ink-3); transition: all .4s var(--ease); }
.stepper em { font-style: normal; font-weight: 600; max-width: 14ch; line-height: 1.25; }
.stepper li.is-active { color: var(--ink); } .stepper li.is-active .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px rgba(45, 212, 191, .15); transform: scale(1.08); }
.stepper li.is-done .dot { background: var(--brand); border-color: var(--brand); color: #04141b; } .stepper li.is-done { color: var(--ink-2); }

/* dropzone */
.slots { display: grid; gap: 16px; } .slots[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.slot { display: grid; gap: 12px; align-content: start; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: clamp(32px, 6vw, 60px) 20px; border-radius: 22px; border: 2px dashed var(--line-2); background: radial-gradient(120% 140% at 50% 0%, rgba(45, 212, 191, .08), transparent 60%), var(--panel); cursor: pointer; transition: border-color .25s, transform .25s var(--ease), background .25s; overflow: hidden; }
.dropzone::before { content: ""; position: absolute; inset: -2px; border-radius: 22px; padding: 2px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--brand) 85%, var(--brand-2) 95%, transparent);
   -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);   mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
 -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; animation: tc-spinvar 5s linear infinite; pointer-events: none; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tc-spinvar { to { --a: 360deg; } }
.dropzone:hover, .dropzone.is-drag, .dropzone:focus-visible { border-color: transparent; transform: translateY(-2px); } .dropzone:hover::before, .dropzone.is-drag::before, .dropzone:focus-visible::before { opacity: 1; }
.dropzone.is-drag { background: radial-gradient(120% 140% at 50% 0%, rgba(45, 212, 191, .2), transparent 60%), var(--panel); }
.dropzone strong { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); }
.dropzone small { color: var(--ink-3); font-size: 13.5px; max-width: 46ch; }
.dropzone.compact { padding: 18px; } .dropzone.compact .dz-icon { display: none; }
.dz-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #04141b; box-shadow: 0 14px 40px -14px rgba(45, 212, 191, .8); animation: tc-float 4s ease-in-out infinite; }
.dz-icon svg { width: 30px; height: 30px; } .dz-icon.sm { width: 40px; height: 40px; border-radius: 13px; animation: none; } .dz-icon.sm svg { width: 20px; height: 20px; }
@keyframes tc-float { 50% { transform: translateY(-6px); } }
.slot-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.sf-info { display: grid; min-width: 0; flex: 1; } .sf-info .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sf-info .meta { color: var(--ink-3); font-size: 12.5px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s; }
.item.sel { border-color: var(--brand); background: var(--grad-soft); } .item.dragging { opacity: .5; }
.item .grip { color: var(--ink-3); cursor: grab; letter-spacing: -2px; user-select: none; }
.item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; text-align: left; padding: 6px 4px; cursor: pointer; font: inherit; }
.item-main .n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--raise); font: 700 12px var(--font); flex: none; }
.item-main .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.item-main .meta { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.item-actions { display: flex; gap: 4px; }

/* file bar */
.file-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--raise); border: 1px solid var(--line); font-size: 13px; }
.fb-chip em { font-style: normal; color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; } .fb-chip b { font-family: var(--mono); font-weight: 600; font-size: 13px; }

/* viewer */
.viewer { display: grid; gap: 12px; padding: clamp(12px, 2vw, 18px); }
.viewer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.viewer-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 13px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: 600 13.5px/1 var(--font); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button:hover:not(:disabled) { color: var(--ink); } .seg button:disabled { opacity: .35; cursor: not-allowed; }
.seg button.on { background: var(--grad); color: #04141b; box-shadow: 0 6px 18px -8px rgba(45, 212, 191, .9); }
.seg-sm button { min-height: 30px; padding: 0 11px; font-size: 12.5px; }

.wave { position: relative; height: clamp(150px, 26vw, 230px); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(5, 8, 16, .85), rgba(10, 16, 30, .85)); border: 1px solid var(--line); cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: 3px; }
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, transparent, rgba(45, 212, 191, .13)); pointer-events: none; }
.wave-playhead { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 14px 1px rgba(45, 212, 191, .95); pointer-events: none; will-change: transform; opacity: 0; transition: opacity .2s; }
.wave-playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.wave-region { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--brand); border-right: 2px solid var(--brand); }
.wave-region[data-mode="keep"], .wave-region[data-mode="loop"] { background: rgba(45, 212, 191, .07); box-shadow: 0 0 0 100vmax rgba(4, 7, 14, .62); clip-path: inset(0 -100vmax); }
.wave-region[data-mode="remove"], .wave-region[data-mode="mute"] { background: rgba(251, 113, 133, .2); border-color: var(--danger); }
.wave-region[data-mode="noise"] { background: rgba(251, 191, 36, .18); border-color: var(--warn); }
.wave-handle { position: absolute; top: 0; bottom: 0; width: 28px; cursor: ew-resize; touch-action: none; display: grid; place-items: center; }
.wave-handle.h-start { left: -15px; } .wave-handle.h-end { right: -15px; }
.wave-handle i { width: 12px; height: 34px; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .55); border: 2px solid var(--brand); transition: transform .15s; }
.wave-region[data-mode="remove"] .wave-handle i, .wave-region[data-mode="mute"] .wave-handle i { border-color: var(--danger); } .wave-region[data-mode="noise"] .wave-handle i { border-color: var(--warn); }
.wave-handle:hover i, .wave-handle:focus-visible i { transform: scale(1.15); }
.wave-markers i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); pointer-events: none; }
.wave-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-3); font-size: 14px; pointer-events: none; }
.wave-scroll { width: 100%; appearance: none; -webkit-appearance: none; height: 10px; border-radius: 8px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); margin: 0; cursor: pointer; }
.wave-scroll::-webkit-slider-thumb { -webkit-appearance: none; height: 10px; width: max(40px, var(--pct, 30%)); border-radius: 8px; background: var(--grad); }
.wave-scroll::-moz-range-thumb { height: 10px; width: 60px; border: 0; border-radius: 8px; background: var(--grad); }

.scope { display: grid; grid-template-columns: 1fr 170px; gap: 14px; align-items: stretch; }
.scope-cv { position: relative; height: 104px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); overflow: hidden; }
.scope-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope-readout { position: absolute; top: 8px; left: 12px; font: 12.5px var(--mono); color: var(--ink-2); background: rgba(0, 0, 0, .4); padding: 3px 8px; border-radius: 8px; }
.scope-readout b { color: var(--brand); }
.meters { display: grid; align-content: center; gap: 12px; }
.meter { display: grid; grid-template-columns: 14px 1fr 38px; align-items: center; gap: 8px; font: 11.5px var(--mono); color: var(--ink-3); }
.meter-track { position: relative; height: 9px; border-radius: 99px; background: linear-gradient(90deg, #34d399 0, #34d399 62%, #fbbf24 82%, #fb7185 100%); overflow: visible; }
.meter-track i { position: absolute; inset: 0; border-radius: 99px; background: #0b1120; transform-origin: 100% 50%; transform: scaleX(1); transition: none; }
.meter-track b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; border-radius: 2px; left: 0; }
.meter em { font-style: normal; text-align: right; } .meter.is-clip em { color: var(--danger); font-weight: 700; } .meter.is-clip .meter-track { box-shadow: 0 0 12px var(--danger); }

/* transport */
.transport { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.t-main, .t-opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.play-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--grad); color: #04141b; cursor: pointer; box-shadow: 0 12px 34px -10px rgba(45, 212, 191, .85); transition: transform .2s var(--ease), box-shadow .2s; position: relative; }
.play-btn svg { width: 26px; height: 26px; } .play-btn:hover { transform: scale(1.07); } .play-btn:active { transform: scale(.96); }
.play-btn.is-playing::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: tc-ring 1.6s ease-out infinite; }
@keyframes tc-ring { from { transform: scale(.85); opacity: .8; } to { transform: scale(1.25); opacity: 0; } }
.time { font-size: 15px; color: var(--ink-3); padding-left: 6px; } .time b { color: var(--ink); font-weight: 600; font-size: 17px; }
.vol-wrap { display: inline-flex; align-items: center; }
.tc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; cursor: pointer; --pct: 50%; }
.tc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--pct), rgba(148, 163, 184, .28) var(--pct)); }
.tc input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(148, 163, 184, .28); }
.tc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--brand); }
.tc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 3px 10px rgba(0, 0, 0, .5); transition: transform .15s; }
.tc input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.tc input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.18); } .tc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.3); }
.vol { width: 96px !important; }
.wave-scroll { height: 10px !important; }

kbd { display: inline-block; padding: 1px 7px; margin: 0 2px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(255, 255, 255, .06); font: 600 11.5px var(--mono); color: var(--ink-2); }
.kbd-hint { margin: 0; font-size: 12.5px; color: var(--ink-3); } @media (hover: none) { .kbd-hint { display: none; } }
.studio.is-drag-over .viewer { outline: 2px dashed var(--brand); outline-offset: 4px; }
/* region + markers */
.region-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; }
.rb-group { display: flex; align-items: center; gap: 8px; } .rb-group.grow { flex: 1; min-width: 120px; }
.rb-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; }
.time-input { width: 112px; height: 38px; text-align: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); color: var(--ink); font-size: 14px; }
.time-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(45, 212, 191, .2); }
.r-len { font-size: 16px; color: var(--brand); font-weight: 700; }
.marker-bar { display: grid; gap: 12px; } .mb-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .muted { color: var(--ink-3); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--grad-soft); border: 1px solid var(--line-2); font: 600 13px var(--mono); }
.chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer; } .chip button svg { width: 12px; height: 12px; }

/* controls */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.controls h3, .report h3, .result h3 { font-size: 1.12rem; }
.curve { width: min(340px, 100%); height: 74px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); } .presets > span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; }
.controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px 26px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; } .field.wide { grid-column: 1 / -1; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-label output, .field-label em.unit { font: 600 13px var(--mono); color: var(--brand); font-style: normal; background: rgba(45, 212, 191, .1); border-radius: 8px; padding: 2px 8px; min-width: 52px; text-align: center; }
.field-help { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.field-note { font-size: 13.5px; color: var(--ink-2); padding: 11px 14px; border-radius: 12px; background: rgba(129, 140, 248, .09); border: 1px solid rgba(129, 140, 248, .25); }
.field-heading { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; padding-top: 6px; border-top: 1px dashed var(--line); }
.field-heading:first-child { border-top: 0; padding-top: 0; }
.tc select, .tc input[type="text"], .tc input[type="number"], .tc textarea { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); color: var(--ink); font: 500 15px var(--font); transition: border-color .2s, box-shadow .2s; }
.tc textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.tc select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b98b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tc select option { background: #0f1626; color: var(--ink); }
.tc select:focus, .tc input[type="text"]:focus, .tc input[type="number"]:focus, .tc textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45, 212, 191, .2); }
.tc input[type="color"] { width: 64px; height: 44px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); cursor: pointer; }
.export select { width: auto; min-width: 130px; min-height: 40px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--ink-2); user-select: none; -webkit-user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { position: relative; width: 44px; height: 26px; border-radius: 99px; background: rgba(148, 163, 184, .3); transition: background .25s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: transform .28s var(--ease); }
.switch input:checked + .knob { background: var(--brand); } .switch input:checked + .knob::after { transform: translateX(18px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--brand); outline-offset: 3px; }
.switch.sm { font-size: 13px; } .switch.sm .knob { width: 38px; height: 22px; } .switch.sm .knob::after { width: 16px; height: 16px; } .switch.sm input:checked + .knob::after { transform: translateX(16px); }
.field.is-toggle { align-content: center; }

/* actions / status */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions.inline { margin-top: 18px; }
.stale-chip { font-size: 13px; color: var(--warn); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); padding: 6px 12px; border-radius: 99px; animation: tc-rise .4s var(--ease) both; }
.progress { height: 6px; border-radius: 6px; background: rgba(148, 163, 184, .2); overflow: hidden; opacity: 0; transition: opacity .25s; } .progress[data-active="true"] { opacity: 1; }
.progress i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width .25s ease-out; position: relative; overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: tc-slide 1.1s linear infinite; }
@keyframes tc-slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.status-line { margin: 0; padding: 11px 16px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); animation: tc-rise .35s var(--ease) both; }
.status-line[data-tone="success"] { color: #a7f3d0; border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.status-line[data-tone="error"] { color: #fecdd3; border-color: rgba(251, 113, 133, .45); background: rgba(251, 113, 133, .09); }
.status-line[data-tone="warn"] { color: #fde68a; border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }

/* result / report */
.result, .report { display: grid; gap: 16px; animation: tc-pop .6s var(--ease) both; position: relative; overflow: hidden; }
.result::before, .report::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.result.is-stale { opacity: .78; }
@keyframes tc-pop { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.result-head { display: flex; align-items: center; gap: 14px; } .result-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.tick { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ok); color: #03140d; flex: none; animation: tc-tick .6s .15s var(--ease) both; } .tick svg { width: 24px; height: 24px; }
@keyframes tc-tick { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 2px; padding: 13px 15px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.stat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; }
.stat b { font: 700 1.2rem var(--mono); letter-spacing: -.02em; } .stat i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.stat[data-tone="good"] b { color: var(--ok); } .stat[data-tone="warn"] b { color: var(--warn); } .stat[data-tone="bad"] b { color: var(--danger); } .stat[data-tone="brand"] b { color: var(--brand); }
.headline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; } .headline .big { font-size: clamp(2.4rem, 1.4rem + 4vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } .headline span { color: var(--ink-2); font-size: 1.05rem; }
.notes { margin: 0; padding-left: 1.2rem; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; } .notes li::marker { color: var(--brand); }
.export { display: grid; gap: 8px; } .export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.est { color: var(--ink-3); font-size: 13.5px; margin-left: auto; }
.exported { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .3); } .exported audio { width: 100%; height: 40px; color-scheme: dark; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.parts li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); } .parts .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .parts .meta { color: var(--ink-3); font-size: 12.5px; }
.report-canvas { overflow: auto; border-radius: 14px; border: 1px solid var(--line); background: #05080f; } .report-canvas canvas { display: block; max-width: 100%; height: auto; }
.report-html { overflow-x: auto; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; } .mini-table th, .mini-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); } .mini-table th { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.bar-row { display: grid; grid-template-columns: 44px 1fr 56px; align-items: center; gap: 10px; font: 13px var(--mono); margin: 5px 0; } .bar-row .tr { height: 10px; border-radius: 6px; background: rgba(148, 163, 184, .18); overflow: hidden; } .bar-row .tr i { display: block; height: 100%; border-radius: 6px; background: var(--grad); transition: width .8s var(--ease); width: 0; }

/* ---------- calculators / simple tools ---------- */
.calc { display: grid; gap: 20px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px 22px; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.out-card { position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(160deg, rgba(45, 212, 191, .09), rgba(129, 140, 248, .07)); border: 1px solid var(--line-2); overflow: hidden; transition: transform .25s var(--ease), border-color .25s; animation: tc-rise .5s var(--ease) both; }
.out-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.out-card span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; }
.out-card b { font: 700 clamp(1.25rem, 1rem + 1vw, 1.7rem) var(--mono); letter-spacing: -.03em; word-break: break-word; } .out-card i { font-style: normal; font-size: 13px; color: var(--ink-3); }
.out-card .cp { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .2s; } .out-card:hover .cp, .out-card:focus-within .cp { opacity: 1; } @media (hover: none) { .out-card .cp { opacity: .8; } }
.out-card.is-hero { grid-column: 1 / -1; background: var(--grad-soft); } .out-card.is-hero b { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.formula { font: 14px var(--mono); padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--ink-2); overflow-x: auto; white-space: nowrap; }
.big-btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

/* recorder / metronome / tap */
.rec-top { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 8px 0; }
.rec-btn { width: 84px; height: 84px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .85); background: transparent; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); position: relative; }
.rec-btn::before { content: ""; width: 54px; height: 54px; border-radius: 50%; background: var(--danger); transition: all .3s var(--ease); box-shadow: 0 0 30px rgba(251, 113, 133, .6); }
.rec-btn:hover { transform: scale(1.06); } .rec-btn.is-rec::before { width: 30px; height: 30px; border-radius: 8px; animation: tc-blink 1.2s infinite; } @keyframes tc-blink { 50% { opacity: .55; } }
.rec-time { font: 700 2.6rem var(--mono); letter-spacing: -.04em; }
.live-wave { width: 100%; height: 130px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); display: block; }
.beat-ring { width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: radial-gradient(circle, rgba(45, 212, 191, .15), transparent 68%); border: 2px solid var(--line-2); position: relative; transition: transform .08s; }
.beat-ring.hit { transform: scale(1.05); border-color: var(--brand); box-shadow: 0 0 60px rgba(45, 212, 191, .5), inset 0 0 40px rgba(45, 212, 191, .25); } .beat-ring.accent.hit { border-color: var(--accent); box-shadow: 0 0 70px rgba(244, 114, 182, .55), inset 0 0 40px rgba(244, 114, 182, .25); }
.beat-ring b { font: 800 clamp(3rem, 2rem + 5vw, 5rem) var(--font); letter-spacing: -.05em; line-height: 1; } .beat-ring span { display: block; text-align: center; color: var(--ink-3); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.dots { display: flex; justify-content: center; gap: 10px; margin: 16px 0 4px; } .dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(148, 163, 184, .3); transition: all .1s; } .dots i.on { background: var(--brand); transform: scale(1.35); box-shadow: 0 0 16px var(--brand); } .dots i.acc.on { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.tap-pad { width: 100%; min-height: 180px; border-radius: 22px; border: 2px dashed var(--line-2); background: radial-gradient(120% 140% at 50% 0%, rgba(45, 212, 191, .1), transparent 60%), var(--panel); color: var(--ink); font: 700 1.3rem var(--font); cursor: pointer; display: grid; place-items: center; transition: transform .08s, border-color .2s; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tap-pad:active, .tap-pad.hit { transform: scale(.985); border-color: var(--brand); background: radial-gradient(120% 140% at 50% 0%, rgba(45, 212, 191, .28), transparent 60%), var(--panel); }
.cover-art { width: 120px; height: 120px; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--line-2); object-fit: cover; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; overflow: hidden; }

/* ---------- toasts ---------- */
.tc-toasts { position: fixed; z-index: 99999; right: 16px; bottom: 16px; display: grid; gap: 8px; pointer-events: none; font-family: ui-sans-serif, system-ui, sans-serif; }
.tc-toast { pointer-events: auto; max-width: min(92vw, 360px); padding: 12px 16px; border-radius: 14px; background: #0f1626; color: #e9eef7; border: 1px solid rgba(148, 163, 184, .3); box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .7); font-size: 14.5px; opacity: 0; transform: translateY(14px) scale(.97); transition: all .35s cubic-bezier(.22, 1, .36, 1); }
.tc-toast.in { opacity: 1; transform: none; } .tc-toast[data-tone="ok"] { border-color: rgba(52, 211, 153, .6); } .tc-toast[data-tone="error"] { border-color: rgba(251, 113, 133, .7); } .tc-toast[data-tone="warn"] { border-color: rgba(251, 191, 36, .6); }

/* ---------- content sections (SEO) ---------- */
.content { margin-top: 64px; display: grid; gap: clamp(40px, 6vw, 76px); }
.block { display: grid; gap: 18px; }
.block > h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; position: relative; padding-bottom: 14px; }
.block > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); }
.block > .sub { color: var(--ink-3); margin: -8px 0 0; max-width: 70ch; }
.prose { max-width: 78ch; color: var(--ink-2); font-size: 1.04rem; line-height: 1.75; } .prose p { margin: 0 0 1.1em; } .prose strong { color: var(--ink); } .prose h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; } .prose li { margin: .3em 0; } .prose li::marker { color: var(--brand); }
.prose code, .tc code { font-family: var(--mono); font-size: .9em; padding: 2px 7px; border-radius: 7px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: #c7d2fe; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.card { position: relative; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 160px at var(--mx, 20%) -20%, rgba(45, 212, 191, .16), transparent 70%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, .45); box-shadow: 0 24px 50px -26px rgba(45, 212, 191, .5); } .card:hover::before { opacity: 1; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; } .card h3 .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); font-size: 17px; flex: none; }
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; line-height: 1.65; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: st; }
.steps li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); counter-increment: st; transition: border-color .3s, transform .3s var(--ease); }
.steps li:hover { border-color: rgba(45, 212, 191, .4); transform: translateX(4px); }
.steps li::before { content: counter(st); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #04141b; font: 800 1.15rem var(--font); }
.steps strong { display: block; margin-bottom: 2px; font-size: 1.04rem; } .steps span { color: var(--ink-2); }
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tips li { padding: 16px 18px 16px 50px; position: relative; border-radius: 16px; background: rgba(45, 212, 191, .05); border: 1px solid rgba(45, 212, 191, .2); color: var(--ink-2); font-size: .98rem; }
.tips li::before { content: "✦"; position: absolute; left: 18px; top: 15px; color: var(--brand); font-size: 18px; }
.trouble { display: grid; gap: 12px; } .trouble > div { padding: 16px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--warn); } .trouble b { display: block; margin-bottom: 4px; } .trouble span { color: var(--ink-2); }
.spec { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--panel); font-size: .97rem; }
.spec th, .spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; } .spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; } .spec th { width: 34%; color: var(--ink); font-weight: 700; background: rgba(255, 255, 255, .025); } .spec td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; border-radius: var(--r); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, background .25s; overflow: hidden; }
.faq details[open] { border-color: rgba(45, 212, 191, .4); background: rgba(45, 212, 191, .04); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; font-size: 1.02rem; position: relative; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg); transition: transform .3s var(--ease); } .faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brand); } .faq .ans { padding: 0 20px 20px; color: var(--ink-2); animation: tc-rise .35s var(--ease) both; } .faq .ans p { margin: 0 0 .8em; } .faq .ans p:last-child { margin: 0; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.related a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.related a:hover { transform: translateY(-3px); border-color: var(--brand); background: rgba(45, 212, 191, .06); text-decoration: none; } .related a b { font-size: .98rem; } .related a span { color: var(--ink-3); font-size: .85rem; line-height: 1.45; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; } .toc a { display: inline-block; padding: 7px 14px; border-radius: 99px; background: var(--raise); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .2s; } .toc a:hover { color: var(--ink); border-color: var(--brand); text-decoration: none; background: rgba(45, 212, 191, .08); }
.privacy { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: linear-gradient(135deg, rgba(45, 212, 191, .1), rgba(129, 140, 248, .1)); border: 1px solid var(--line-2); }
.privacy .shield { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #04141b; font-size: 28px; } .privacy h2 { font-size: 1.25rem; padding: 0; margin-bottom: 4px; } .privacy h2::after { display: none; } .privacy p { margin: 0; color: var(--ink-2); }
.all-tools { text-align: center; } .all-tools a { font-weight: 700; }


/* ---------- hub page ---------- */
.hub-search { margin: 6px auto 34px; display: grid; gap: 14px; max-width: 920px; }
.hub-search input[type="search"] { width: 100%; min-height: 54px; padding: 0 20px 0 52px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b98b0' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 18px center; color: var(--ink); font: 500 16px var(--font); }
.hub-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(45, 212, 191, .18); }
.hub-search .chips { justify-content: center; } .hub-search .chip-btn .n { opacity: .6; font-family: var(--mono); font-size: 11.5px; margin-left: 2px; }
.hub-cat > h2 { display: flex; align-items: baseline; gap: 12px; } .hub-cat .count { font: 600 13px var(--mono); color: var(--ink-3); background: var(--raise); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; }
.hub-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--brand); background: rgba(45, 212, 191, .06); box-shadow: 0 18px 40px -22px rgba(45, 212, 191, .6); text-decoration: none; }
.hub-card b { font-size: .98rem; } .hub-card span { color: var(--ink-3); font-size: .85rem; line-height: 1.45; } .hub-card em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--warn); border: 1px solid rgba(251, 191, 36, .4); border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
.hub-card.is-soon { opacity: .55; pointer-events: none; }
.hub-empty { text-align: center; color: var(--ink-3); padding: 40px 0; }
.hub-conv { gap: 8px; }
.out-card.is-pre { grid-column: 1 / -1; } .out-card pre { margin: 0; padding: 12px 14px; max-height: 240px; overflow: auto; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font: 13px/1.55 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

/* reveal on scroll (only hides content once JS has marked the page with .tc-js) */
.tc-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.tc-js .reveal.in { opacity: 1; transform: none; }
.tc-js .reveal :is(.cards, .steps, .tips, .related) > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.tc-js .reveal.in :is(.cards, .steps, .tips, .related) > * { opacity: 1; transform: none; }
.tc-js .reveal.in :is(.cards, .steps, .tips, .related) > :nth-child(2) { transition-delay: .07s; }
.tc-js .reveal.in :is(.cards, .steps, .tips, .related) > :nth-child(3) { transition-delay: .14s; }
.tc-js .reveal.in :is(.cards, .steps, .tips, .related) > :nth-child(4) { transition-delay: .21s; }
.tc-js .reveal.in :is(.cards, .steps, .tips, .related) > :nth-child(n+5) { transition-delay: .28s; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .scope { grid-template-columns: 1fr; } .meters { grid-template-columns: 1fr 1fr; gap: 14px; }
  .slots[data-count="2"] { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 640px) {
  .trust { display: grid; grid-template-columns: 1fr 1fr; max-width: 360px; margin-inline: auto; } .trust li { justify-content: center; padding: 7px 10px; } .trust li i { display: none; }
  .tc { font-size: 15.5px; } .hero { padding-top: 22px; text-align: center; } .hero h1 { font-size: 1.85rem; }
  .stepper em { font-size: 11px; max-width: 9ch; } .stepper .dot { width: 28px; height: 28px; } .stepper::before, .stepper::after { top: 13px; }
  .transport { gap: 10px; } .t-opts { width: 100%; } .vol-wrap { margin-left: auto; } .vol { width: 80px !important; }
  .region-bar { gap: 10px 14px; padding: 12px; } .time-input { width: 100px; }
  .controls-grid { gap: 16px; }
  .actions:not(.inline) { position: sticky; bottom: 10px; z-index: 20; padding: 10px; border-radius: 18px; background: rgba(9, 13, 24, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); }
  .actions:not(.inline) .btn-primary { flex: 1; }
  .spec th { width: 42%; padding: 11px 12px; } .spec td { padding: 11px 12px; }
  .steps li { grid-template-columns: 38px 1fr; padding: 14px; gap: 12px; } .steps li::before { width: 38px; height: 38px; font-size: 1rem; border-radius: 12px; }
  .est { margin-left: 0; width: 100%; } .out-card .cp { opacity: .8; }
}
@media (max-width: 380px) { .hero h1 { font-size: 1.55rem; } .seg button { padding: 0 9px; font-size: 12.5px; } .wave-handle { width: 34px; } .wave-handle.h-start { left: -18px; } .wave-handle.h-end { right: -18px; } }
@media (prefers-reduced-motion: reduce) {
  .tc *, .tc *::before, .tc *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tc-js .reveal, .tc-js .reveal :is(.cards, .steps, .tips, .related) > * { opacity: 1 !important; transform: none !important; }
}
@media print { body:has(.tc) { background: #fff; } .tc { color: #111; } .tc-bg, .studio, .eq { display: none; } .tc h1, .tc h2, .tc h3 { color: #111; } .prose, .card p { color: #333; } }
