/* "Try the new design" demos. A dark desk tinted with the app's own --c1 / --c2, in both site themes. */
.ty-stage { margin-top: 28px; border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden; background: radial-gradient(70% 45% at 50% 0, color-mix(in srgb, var(--c1) 30%, transparent), transparent 70%), radial-gradient(70% 60% at 10% 100%, color-mix(in srgb, var(--c2) 42%, transparent), transparent 70%), #121013; color: #fff; }
.ty-menubar { display: flex; gap: 18px; align-items: center; height: 32px; padding: 0 16px; background: rgba(0,0,0,.35); font: 500 12px var(--sans); }
.ty-menubar em { margin-left: auto; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 12px var(--sans); font-style: normal; }
.ty-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
.ty-out { display: block; margin: 0 12px 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.5); font: 500 12.5px var(--mono); overflow-wrap: anywhere; }

.ty-cols { display: flex; gap: 14px; align-items: stretch; min-width: 0; }
.ty-stack { display: flex; flex-direction: column; gap: 14px; flex: 0 1 340px; min-width: 0; }
.ty-grow { flex: 1 1 0; min-width: 0; }
.ty-side { flex: 0 0 280px; }
.ty-win { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(10,8,10,.82); }
.ty-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ty-wrap { flex-wrap: wrap; justify-content: center; }
.ty-stage small { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a9a4ac; }
.ty-meta { font: 500 11.5px var(--mono); color: #a9a4ac; overflow-wrap: anywhere; }

.ty-stage button { font: inherit; color: inherit; cursor: pointer; }
.ty-stage button:focus-visible, .ty-stage input:focus-visible, .ty-stage textarea:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.ty-stage .ty-btn { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #1d1a1f; font: 600 12px var(--sans); overflow-wrap: anywhere; text-align: left; }
.ty-stage .ty-btn:hover { background: #2a262d; }
.ty-stage .ty-btn.on { border-color: var(--c1); background: color-mix(in srgb, var(--c1) 22%, #121013); }
.ty-stage .ty-go { flex: none; padding: 8px 18px; border: 0; border-radius: 12px; background: var(--c1); color: #0d0b0e; font: 700 13px var(--sans); }
.ty-seg { display: flex; flex-wrap: wrap; gap: 2px; align-self: flex-start; padding: 3px; border-radius: 12px; background: #1d1a1f; }
.ty-stage .ty-seg button { padding: 6px 11px; border: 0; border-radius: 9px; background: none; font: 600 12px var(--sans); color: #b9b4bc; }
.ty-stage .ty-seg button.on { background: var(--c1); color: #0d0b0e; }
.ty-stage .ty-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border: 0; background: none; text-align: left; font: 600 12.5px var(--sans); }
.ty-switch i { position: relative; flex: none; width: 32px; height: 18px; border-radius: 99px; background: #3b363e; transition: background .2s; }
.ty-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: translate .2s; }
.ty-switch[aria-checked="true"] i { background: var(--c2); }
.ty-switch[aria-checked="true"] i::after { translate: 14px 0; }
.ty-slider { display: grid; gap: 4px; }
.ty-slider span { display: flex; justify-content: space-between; font: 600 12.5px var(--sans); }
.ty-slider em { font: 500 11.5px var(--mono); font-style: normal; color: #a9a4ac; }
.ty-stage input[type="range"] { width: 100%; accent-color: var(--c1); }
.ty-stage input[type="range"]:disabled { opacity: .35; }
.ty-area { flex: 1; width: 100%; min-height: 130px; padding: 12px; border: 1px solid #2d2930; border-radius: 12px; background: #0d0b0e; color: #fff; font: 500 14px/1.6 var(--sans); resize: none; }
.ty-stage input:not([type="range"]) { min-width: 0; padding: 8px 12px; border: 1px solid #2d2930; border-radius: 11px; background: #0d0b0e; color: #fff; font: 500 13px var(--sans); }
.ty-search { flex: 1; }

.ty-list, .ty-recent, .ty-clips, .ty-agenda ul { display: grid; gap: 6px; padding: 0; list-style: none; }
.ty-list { align-content: start; max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3b363e transparent; }
.ty-list li { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: #19161b; overflow: hidden; flex: none; }
.ty-list li > i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(160deg, var(--c1), var(--c2)); color: #0d0b0e; font: 700 8.5px var(--mono); font-style: normal; text-transform: uppercase; }
.ty-list li > i.image { background: linear-gradient(160deg, #ffd23f, #ff7a59 55%, #7a5cff); }
.ty-list li > span { display: grid; flex: 1; min-width: 0; }
.ty-list b, .ty-list li > span small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ty-list b { font: 600 12.5px var(--sans); }
.ty-list li > span small { letter-spacing: 0; text-transform: none; }
.ty-list li.done > span small { color: #7ee2a0; }
.ty-list li > em { flex: none; font: 700 11px var(--mono); font-style: normal; color: #a9a4ac; }
.ty-list li.done > em { color: #7ee2a0; }
.ty-list li > u { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--c1); transform-origin: left; animation: ty-fill 1.4s linear both; }
@keyframes ty-fill { from { scale: 0 1; } to { scale: 1 1; } }
.ty-stage li.none { background: none; color: #a9a4ac; font: 500 12.5px var(--sans); }
.ty-stage .ty-paste { flex: 1; min-width: 0; padding: 0; border: 0; background: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; font: 600 12.5px var(--sans); }
.ty-stage .ty-icon { flex: none; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: #a9a4ac; }
.ty-stage .ty-icon:hover { background: #2a262d; color: #fff; }
.ty-stage .ty-icon.on { color: var(--c1); }

/* KeyClick */
.ty-board { display: grid; gap: 6px; justify-items: center; }
.ty-board > div { display: flex; justify-content: center; gap: 6px; width: 100%; }
.ty-stage .ty-board button { flex: 0 1 52px; min-width: 0; height: 46px; padding: 0; border: 0; border-radius: 10px; background: #26222a; box-shadow: 0 4px 0 #070608; font: 700 13px var(--sans); touch-action: manipulation; }
.ty-stage .ty-board .wide { flex-basis: 82px; font-size: 11px; }
.ty-stage .ty-board .space { flex-basis: 270px; }
.ty-stage .ty-board button.down { translate: 0 3px; box-shadow: 0 1px 0 #070608; background: var(--c1); color: #0d0b0e; }

/* DayPeek */
.ty-cal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; max-width: 780px; width: 100%; justify-self: center; }
.ty-month, .ty-agenda { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ty-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.ty-days em { font: 600 10px var(--mono); font-style: normal; color: #a9a4ac; }
.ty-stage .ty-days button { position: relative; height: 34px; padding: 0; border: 0; border-radius: 9px; background: none; font: 600 12.5px var(--sans); }
.ty-stage .ty-days button:hover { background: #2a262d; }
.ty-stage .ty-days button.today { color: var(--c1); }
.ty-stage .ty-days button.on { background: var(--c1); color: #0d0b0e; }
.ty-days button.has::after { content: ""; position: absolute; left: calc(50% - 2px); bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.ty-clocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.ty-clocks span { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 11px; background: #19161b; }
.ty-stage .ty-clocks small { letter-spacing: .04em; font-size: 9.5px; }
.ty-clocks b { font: 700 15px var(--mono); }
.ty-agenda ul { align-content: start; flex: 1; min-height: 170px; max-height: 220px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3b363e transparent; }
.ty-agenda li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 10px; border-left: 3px solid var(--c1); border-radius: 10px; background: #19161b; }
.ty-agenda li.none { border: 0; }
.ty-agenda li em { font: 700 12px var(--mono); font-style: normal; }
.ty-agenda li span { display: grid; flex: 1; min-width: 0; }
.ty-agenda li b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px var(--sans); }
.ty-stage .ty-agenda li small { letter-spacing: 0; text-transform: none; }
.ty-stage .ty-agenda li .ty-go { padding: 6px 12px; font-size: 12px; }
.ty-add { display: flex; gap: 8px; }
.ty-add input { flex: 1; }

/* Shrink */
.ty-drop { display: grid; justify-items: center; gap: 8px; padding: 22px 14px; border: 2px dashed rgba(255,255,255,.25); border-radius: 18px; background: rgba(0,0,0,.3); text-align: center; }
.ty-drop.over { border-color: var(--c1); background: color-mix(in srgb, var(--c1) 16%, transparent); }
.ty-drop > span { font: 500 12px var(--sans); color: #a9a4ac; }
.ty-drop .ty-row { flex-wrap: wrap; justify-content: center; }
.ty-compare { position: relative; height: 180px; border-radius: 16px; overflow: hidden; }
.ty-photo { position: absolute; inset: 0; background: radial-gradient(circle at 70% 34%, #fff6d8 0 22px, transparent 23px), linear-gradient(165deg, transparent 62%, #1d2b4f 62.4%), linear-gradient(195deg, transparent 70%, #101a33 70.4%), repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 7px), linear-gradient(#3b2a6b, #ff7a59 62%, #ffd23f); }
.ty-photo.after { clip-path: inset(0 0 0 var(--cut)); filter: blur(var(--blur, 1px)); }
.ty-compare > i { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.6); }
.ty-compare > span { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 7px; background: rgba(0,0,0,.6); font: 600 10.5px var(--mono); }
.ty-compare > span:nth-of-type(2) { left: auto; right: 10px; }
.ty-stage .ty-compare input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: ew-resize; }
.ty-compare:focus-within > i { background: var(--c1); width: 3px; }

/* VoxType */
.ty-recent { align-content: start; }
.ty-stage .ty-recent button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: #19161b; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; font: 500 12px var(--sans); }
.ty-talk { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ty-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 38px; padding: 0 18px; border-radius: 99px; background: #000; }
.ty-wave i { width: 4px; height: 5px; border-radius: 3px; background: linear-gradient(var(--c1), var(--c2)); }
.ty-wave.on i { animation: ty-wave .42s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -73ms); }
@keyframes ty-wave { to { height: 28px; } }
.ty-stage .ty-hold { min-width: 230px; padding: 12px 22px; touch-action: none; user-select: none; -webkit-user-select: none; }
.ty-stage .ty-hold.on { background: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c1) 40%, transparent); }

/* Reel */
.ty-reel .ty-switch { gap: 9px; }
.ty-screen { position: relative; width: 100%; max-width: 760px; justify-self: center; aspect-ratio: 16 / 9; border: 2px solid #2d2930; border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, color-mix(in srgb, var(--c2) 70%, #000), #0b0d18); user-select: none; -webkit-user-select: none; }
.ty-screen[data-mode="area"] { cursor: crosshair; touch-action: none; }
.ty-screen[data-mode="window"] .ty-fake { cursor: pointer; }
.ty-screen.live { border-color: #ff453a; }
.ty-fake { position: absolute; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: #f2efea; color: #221c22; }
.ty-fake.a { left: 7%; top: 12%; width: 50%; height: 60%; }
.ty-fake.b { right: 6%; top: 28%; width: 42%; height: 58%; background: #17151b; color: #e8e4ea; }
.ty-fake b { font: 700 11px var(--mono); }
.ty-fake i { height: 7px; width: 82%; border-radius: 4px; background: currentColor; opacity: .2; }
.ty-fake i:nth-of-type(even) { width: 58%; }
.ty-fake.picked { outline: 3px solid var(--c1); outline-offset: 2px; }
.ty-area-box { position: absolute; border: 2px dashed #fff; background: rgba(255,255,255,.12); box-shadow: 0 0 0 999px rgba(0,0,0,.45); pointer-events: none; }
.ty-cam { position: absolute; left: 4%; top: 70%; display: grid; place-items: center; width: 13%; aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; background: linear-gradient(160deg, var(--c1), var(--c2)); font-size: clamp(16px, 3vw, 30px); cursor: grab; touch-action: none; z-index: 2; }
.ty-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); font: 700 72px var(--sans); z-index: 3; pointer-events: none; }
.ty-level { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: flex; align-items: center; gap: 3px; height: 26px; padding: 0 12px; border-radius: 99px; background: #000; pointer-events: none; }
.ty-level i { width: 3px; height: 5px; border-radius: 2px; background: #ff453a; animation: ty-level .4s ease-in-out infinite alternate; }
.ty-level i:nth-child(3n) { animation-delay: -.15s; } .ty-level i:nth-child(3n+1) { animation-delay: -.27s; }
@keyframes ty-level { to { height: 18px; } }
.ty-screen [hidden], .ty-cam[hidden] { display: none; }
.ty-clips { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ty-clips li { display: flex; gap: 12px; min-width: 0; padding: 12px; border-radius: 14px; background: rgba(10,8,10,.82); }
.ty-clips li.none { justify-content: center; }
.ty-thumb { position: relative; display: grid; flex: none; place-items: center; width: 74px; height: 56px; border-radius: 9px; background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff; }
.ty-thumb span { position: absolute; right: 4px; bottom: 3px; font: 700 9.5px var(--mono); }
.ty-clip { display: grid; flex: 1; gap: 5px; min-width: 0; }
.ty-clip b { font: 700 12.5px var(--sans); }
.ty-stage .ty-clip small { letter-spacing: 0; text-transform: none; }
.ty-clip label { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; font: 500 11px var(--sans); color: #a9a4ac; }
.ty-clip .ty-row { justify-content: flex-start; flex-wrap: wrap; }
.ty-stage .ty-clip .ty-btn { padding: 4px 9px; font-size: 11px; }

/* ScreenTune */
.ty-monitors { display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.ty-stage .ty-monitor { display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; }
.ty-monitor.built { flex: 0 1 280px; } .ty-monitor.ext { flex: 0 1 390px; }
.ty-glass { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; width: 100%; aspect-ratio: 16 / 10; border: 7px solid #060506; border-radius: 14px; overflow: hidden; background: linear-gradient(150deg, #6cc6ff, #7a5cff 55%, #ff7ac0); filter: brightness(var(--bright, 1)); transition: filter .2s; }
.ty-monitor.ext .ty-glass { aspect-ratio: 16 / 9; }
.ty-monitor.on .ty-glass { box-shadow: 0 0 0 3px var(--c1), 0 18px 36px -14px var(--c2); }
.ty-glass b { padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.5); font: 700 calc(12px * var(--zoom, 1)) var(--mono); }
.ty-glass u { width: calc(58% * var(--zoom, 1)); height: calc(7px * var(--zoom, 1)); border-radius: 5px; background: rgba(255,255,255,.7); }
.ty-glass u:nth-of-type(2) { width: calc(40% * var(--zoom, 1)); }
.ty-glass i { position: absolute; inset: 0; background: #ff8a1e; mix-blend-mode: multiply; opacity: calc(var(--warm, 0) * .85); transition: opacity .25s; pointer-events: none; }
.ty-modes { display: grid; gap: 5px; }

/* ClipStack */
.ty-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.ty-sources i { width: 12px; height: 12px; border-radius: 4px; }

@media (max-width: 760px) {
  .ty-menubar span { display: none; }
  .ty-body { padding: 12px; }
  .ty-cols { flex-direction: column; }
  .ty-stack, .ty-side, .ty-grow { flex: none; }
  .ty-cal { grid-template-columns: minmax(0, 1fr); }
  .ty-board > div { gap: 3px; }
  .ty-stage .ty-board button { height: 40px; font-size: 11.5px; border-radius: 7px; }
  .ty-stage .ty-board .wide { flex-basis: 52px; font-size: 9.5px; }
  .ty-monitors { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ty-wave.on i, .ty-level i, .ty-list li > u { animation: none; }
}
