/* telep.app — editor SKIN (owner: designer). Loaded AFTER editor.css; visuals only.
   Apple-style: hairline cards, filled (not outlined) controls, segmented ratios, compact steppers, calmer player bar. */
.ed {
  --sk-hair: color-mix(in srgb, var(--ed-line) 75%, transparent);
  --sk-fill: color-mix(in srgb, var(--ed-ink) 6%, transparent);
  --sk-fill-hover: color-mix(in srgb, var(--ed-ink) 10%, transparent);
  --sk-h: 36px;
  --sk-ease: cubic-bezier(.25, .1, .25, 1);
}
@media (pointer: coarse) { .ed { --sk-h: 44px; } }

/* cards: hairline, softer radius rhythm, tighter header */
.ed .ed-card, .ed .ed-player, .ed .ed-exportbar { border-color: var(--sk-hair); border-radius: 16px; }
.ed .ed-card { box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.ed .ed-card--upsell { border-style: solid; }
.ed .ed-card__head { min-height: 56px; padding: 12px 16px; gap: 12px; }
.ed .ed-card__body { padding-left: 16px; padding-right: 16px; }
.ed .ed-ico { flex-basis: 32px; width: 32px; height: 32px; padding: 7px; border-radius: 9px; }
.ed .ed-card__title { font-size: .98rem; font-weight: 650; letter-spacing: -.01em; }
.ed .ed-card__sub { font-size: .82rem; }
.ed .ed-fieldset legend, .ed .ed-sub { font-size: .72rem; letter-spacing: .08em; font-weight: 700; color: var(--ed-muted); }

/* title: quiet inline field (no card look) */
.ed .ed-title { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; padding-left: 0; }
.ed .ed-title:hover:not(:disabled) { background: var(--sk-fill); padding-left: 10px; }
.ed .ed-private { font-size: .82rem; }

/* buttons: filled ghost instead of outlined; primary keeps the single yellow */
.ed .ed-btn { border-color: transparent; background: var(--sk-fill); font-weight: 600; transition: background-color .15s var(--sk-ease), transform .1s var(--sk-ease); }
.ed .ed-btn:hover { background: var(--sk-fill-hover); }
.ed .ed-btn:active { transform: scale(.98); }
.ed .ed-btn--primary { background: var(--ed-accent); color: var(--ed-accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.ed .ed-btn--primary:hover { background: var(--accent-strong, var(--ed-accent)); }
.ed .ed-btn--sm { min-height: var(--sk-h); padding: 0 14px; font-size: .85rem; }
@media (pointer: coarse) { .ed .ed-btn--sm { min-height: 44px; } }

/* trim steppers: one compact filled capsule per side, no outlines */
.ed .ed-steppers { gap: 8px; }
.ed .ed-stepper { border: 0; background: var(--sk-fill); border-radius: 10px; }
.ed .ed-stepper__btn { width: var(--sk-h); height: var(--sk-h); font-size: 1.05rem; font-weight: 600; color: var(--ed-ink); transition: background-color .15s var(--sk-ease); }
.ed .ed-stepper__btn:hover { background: var(--sk-fill-hover); }
.ed .ed-stepper__lbl { font-size: .8rem; font-weight: 600; padding: 0 2px; }
@media (pointer: coarse) { .ed .ed-stepper__btn { width: 44px; height: 44px; } }
.ed .ed-trimtimes dd { font-weight: 650; letter-spacing: -.01em; }

/* resize ratios: iOS segmented control */
.ed .ed-chips[data-role="ratios"] { gap: 2px; padding: 2px; border-radius: 11px; background: var(--sk-fill); }
.ed .ed-chips[data-role="ratios"] .ed-chip span { min-height: calc(var(--sk-h) - 4px); padding: 0 4px; border: 0; border-radius: 9px; font-size: .82rem; font-weight: 600; color: var(--ed-ink); background: transparent; transition: background-color .15s var(--sk-ease); }
.ed .ed-chips[data-role="ratios"] .ed-chip input:checked + span { background: var(--ed-card); color: var(--ed-ink); border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .06); }
[data-theme="dark"] .ed .ed-chips[data-role="ratios"] .ed-chip input:checked + span { background: #2A3558; }
@media (pointer: coarse) { .ed .ed-chips[data-role="ratios"] .ed-chip span { min-height: 44px; } }
.ed .ed-chip input:focus-visible + span { outline: 2px solid var(--focus, var(--ed-accent)); outline-offset: 1px; }

/* other chips: filled */
.ed .ed-chips:not([data-role="ratios"]) .ed-chip span { border-color: transparent; background: var(--sk-fill); }

/* player bar: calmer transport */
.ed .ed-controls { gap: 8px; padding: 8px 12px 10px; }
.ed .ed-icon-btn { border-radius: 10px; transition: background-color .15s var(--sk-ease); }
.ed .ed-icon-btn:not([data-action="play"]):hover { background: var(--sk-fill); }
.ed .ed-icon-btn[data-action="play"] { border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.ed .ed-time { font-weight: 500; font-size: .85rem; color: var(--ed-muted); }
.ed .ed-pill { background: none; padding: 0; font-weight: 600; color: var(--ed-muted); min-width: 3em; }
.ed .ed-scrub, .ed .ed-vol input { accent-color: var(--ed-accent); }
.ed .ed-vol input { height: 32px; }
@media (pointer: coarse) { .ed .ed-vol input { height: 44px; } }

/* focus: thinner ring */
.ed .ed-btn:focus-visible, .ed .ed-icon-btn:focus-visible, .ed .ed-card__head:focus-visible, .ed .ed-stepper__btn:focus-visible { outline-width: 2px; }

/* floating export bar on phones: glass */
.ed .ed-exportbar { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
/* very narrow phones: steppers stay on one row (tools-dev tests at 320px) */
@media (max-width: 360px) { .ed .ed-stepper__btn { width: 40px; height: 40px; } .ed .ed-steppers { gap: 6px; } }

/* thin Apple-style sliders (tools-dev sets --fill on .ed-scrub + volume) */
.ed .ed-scrub, .ed .ed-vol input { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.ed .ed-scrub::-webkit-slider-runnable-track, .ed .ed-vol input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--ed-accent) var(--fill, 0%), color-mix(in srgb, var(--ed-ink) 18%, transparent) var(--fill, 0%)); }
.ed .ed-scrub::-webkit-slider-thumb, .ed .ed-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 2px 5px rgba(0, 0, 0, .3); }
.ed .ed-scrub::-moz-range-track, .ed .ed-vol input::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ed-ink) 18%, transparent); }
.ed .ed-scrub::-moz-range-progress, .ed .ed-vol input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ed-accent); }
.ed .ed-scrub::-moz-range-thumb, .ed .ed-vol input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 2px 5px rgba(0, 0, 0, .3); }
.ed .ed-scrub:focus-visible, .ed .ed-vol input:focus-visible { outline: none; }
.ed .ed-scrub:focus-visible::-webkit-slider-thumb, .ed .ed-vol input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ed-card), 0 0 0 4px var(--focus, var(--ed-accent)); }
@media (pointer: coarse) { .ed .ed-scrub::-webkit-slider-thumb, .ed .ed-vol input::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; } }

/* title is a 2-line auto-grow textarea */
.ed textarea.ed-title { resize: none; overflow: hidden; line-height: 1.3; min-height: 44px; padding-top: 10px; padding-bottom: 10px; font-family: inherit; display: block; }
.ed textarea.ed-title::placeholder { color: var(--ed-muted); font-weight: 500; opacity: 1; }
.ed textarea.ed-title:focus { outline: none; background: var(--sk-fill); padding-left: 10px; box-shadow: 0 0 0 2px var(--focus, var(--ed-accent)); }
