/* studio.css — the squeeze page C (squeeze-c.html): the editor itself, under the title. src/editor/main.js builds the
   lists and reads the controls by their ids; these are the editor's parts in the landing's light (the --v-* tokens of
   v3.css, rounded squares, no pills).
   · On a desk: one white panel, every block in view at once: the components with your match under them on the left,
     the graphic in the middle, colours, elements and the download on the right.
   · On a tablet: the graphic on the left; on the right, tabs and one block at a time.
   · On a phone: an app of one screen: the graphic on top, the tabs and one block under it. Nothing to scroll through.
   The graphic is the video as it comes out (its own backdrop), straight on the panel: no box around it.
   Never name a page variable --mute, --dim, --line or --accent: the kit writes those on :root for the graphics. */
.studio-page [hidden] { display: none !important; }
.privacy-link { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.contact-dialog { width: min(540px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 1px solid #536188; border-radius: 20px; overflow-y: auto; overscroll-behavior: contain; color: #F1F5FF; background: linear-gradient(145deg, #19294F, #0A1541 65%); box-shadow: 0 28px 100px #050B2870; font: 400 15px/1.55 var(--v-font); }
.contact-dialog::backdrop { background: #08112EAA; backdrop-filter: blur(5px); }
.contact-inner { position: relative; padding: 36px; }
.contact-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; color: #DBE5FF; }
.contact-close:hover { background: #FFFFFF12; }
.contact-eyebrow { margin: 0 40px 14px 0; color: #FFD400; font-size: 12px; font-weight: 650; }
.contact-dialog h2 { margin: 0 20px 14px 0; font: 700 30px/1.14 var(--v-font-d); letter-spacing: -.02em; color: #FFFFFF; text-wrap: balance; }
.contact-dialog #contact-intro { margin: 0 0 18px; color: #D4DDF4; }
.contact-graphic { display: inline-block; margin: 0 0 20px; padding: 5px 9px; border-radius: 6px; background: #FFFFFF0D; color: #E4ECFF; font-size: 12px; }
.contact-dialog form { display: grid; }
.contact-dialog label { margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.contact-dialog input[type=email] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #8192B8; border-radius: 9px; background: #081232; color: #FFFFFF; font: 400 16px var(--v-font); }
.contact-dialog input::placeholder { color: #9DAFD2; }
.contact-dialog input[aria-invalid=true] { border-color: #FFB4A9; }
.contact-dialog .contact-short { margin: 10px 0 20px; color: #C4CEE6; font-size: 12px; line-height: 1.5; }
.contact-dialog .btn { min-height: 48px; width: 100%; justify-content: center; border-radius: 9px; }
.contact-dialog .btn:disabled { opacity: .75; cursor: wait; }
.contact-dialog :is(button,input,a,summary):focus-visible { outline: 2px solid #FFD400; outline-offset: 3px; }
.contact-status { margin: 14px 0 8px; color: #FFBDB5; font-size: 13px; }
.contact-fallback { color: #E2EAFF; text-decoration: underline; font-size: 13px; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-privacy { margin-top: 20px; padding-top: 14px; border-top: 1px solid #FFFFFF26; font-size: 12px; line-height: 1.6; color: #C4CEE6; }
.contact-privacy summary { cursor: pointer; min-height: 28px; color: #DEE7FB; }
.contact-privacy strong { color: #F1F5FF; }
.contact-privacy a { color: #E8EEFF; text-decoration: underline; overflow-wrap: anywhere; }
.contact-privacy p { margin: 12px 0; }
.contact-privacy .privacy-date { font-size: 11px; }
@media (max-width: 560px) {
  .contact-inner { padding: 28px 22px 24px; }
  .contact-dialog h2 { font-size: 26px; }
  .contact-dialog { border-radius: 16px; }
  .top.sq .acts [data-contact] { max-width: 190px; min-height: 40px; white-space: normal; text-align: center; line-height: 1.2; }
}

/* ---- the hero: the title and its line, smaller than version B's, so the editor starts in the first screen */
.hero-studio { padding-top: clamp(20px, 2vw, 44px); padding-bottom: clamp(30px, 2.8vw, 54px); }
.hero-studio .for { margin-bottom: 14px; padding: 0 16px; }
.hero-studio h1 { padding: 0 16px; font-size: clamp(34px, 3.3vw, 64px); line-height: 1.04; }
.hero-studio .sub { max-width: 52em; margin-top: 12px; font-size: clamp(17px, 1.1vw, 20px); text-wrap: balance; }

/* ---- the panel and its parts */
.studio { --s-pad: 18px; position: relative; z-index: 2; display: grid; width: calc(100% - 2 * var(--v-pad)); max-width: 1480px; margin: clamp(20px, 1.8vw, 34px) auto 0; text-align: left;
  border-radius: 24px; background: var(--v-card); box-shadow: var(--v-shadow), 0 0 0 1px var(--v-rim); color: var(--v-text); font-family: var(--v-font); font-size: 14px; line-height: 1.45; }
.studio .s-stage { grid-area: stage; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; padding: 14px var(--s-pad) 16px; }
.studio .s-comps { grid-area: comps; min-width: 0; padding: 16px var(--s-pad) 12px; }
.studio .s-panel { grid-area: panel; min-width: 0; min-height: 0; display: grid; align-content: start; }
.studio .s-data { grid-area: data; min-width: 0; min-height: 0; display: grid; align-content: start; gap: 10px; padding: 14px var(--s-pad) 16px; }
.studio .s-blk { display: grid; align-content: start; gap: 8px; padding: 14px var(--s-pad); }
.studio .s-panel, .studio .s-data, .studio [data-tool-panel] { scrollbar-width: thin; scrollbar-color: var(--v-rim-2) transparent; overscroll-behavior: contain; }
.studio .s-tabs { display: none; }
.studio .s-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font: 650 15px/1.25 var(--v-font); letter-spacing: -.005em; color: var(--v-text); text-wrap: nowrap; }
.studio .s-h small { font-size: 12.5px; font-weight: 500; color: var(--v-dim); }
.studio .s-lab { font-size: 13px; font-weight: 600; color: var(--v-dim); }
.studio :is(button, a, input, select, textarea, summary, label):focus-visible { outline: 2px solid var(--v-royal); outline-offset: 2px; }

/* the components: each with its pictogram and its length; the chosen one in navy, its pictogram in the yellow */
.studio .ed-menu { display: grid; gap: 2px; margin: 10px -8px 0; }
.studio .ed-item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 36px; padding: 0 10px 0 11px; border-radius: 10px; color: var(--v-mute); font: 600 14px var(--v-font); text-align: left; transition: background-color .18s, color .18s; }
.studio .ed-item svg { display: block; color: var(--v-dim); transition: color .18s; }
.studio .ed-item .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .ed-item .dur { font-size: 12px; font-weight: 500; color: var(--v-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) { .studio .ed-item:hover:not(:disabled) { background: var(--v-bg); color: var(--v-text); } }
.studio .ed-item[aria-pressed="true"] { background: var(--v-navy); color: #FFFFFF; }
.studio .ed-item[aria-pressed="true"] svg { color: var(--v-yellow); }
.studio .ed-item[aria-pressed="true"] .dur { color: rgba(255, 255, 255, .74); }
.studio .ed-item:disabled { cursor: not-allowed; color: rgba(63, 74, 116, .55); }
.studio .ed-item:disabled svg { opacity: .5; }
.studio .ed-item:disabled .dur { color: #B42318; opacity: .85; }

/* Custom reserves exports; the preview and all editing controls stay available. */
.studio .custom-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 5px; border-radius: 5px; background: #EDF0F7; color: #344267; font: 650 10px/1 var(--v-font); white-space: nowrap; }
.studio .custom-badge svg { width: 11px; height: 11px; color: inherit; }
.studio .ed-item[aria-pressed="true"] .custom-badge { background: #29365C; color: #FFFFFF; }
.studio .ed-item[aria-pressed="true"] .custom-badge svg { color: #FFD400; }
.studio .custom-preview-note { margin: 9px 0 0; color: #4E5D7A; font: 400 11.5px/1.5 var(--v-font); }
.studio .custom-export-note { border-left: 2px solid #C9A500; padding-left: 10px; font-size: 12px; line-height: 1.4; }
.studio .custom-export-note b { color: var(--v-navy); font-size: 12px; }
.studio .custom-export-note p { margin: 3px 0 5px; color: var(--v-mute); }
.studio .custom-export-note button { min-height: 28px; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; font: 650 12px var(--v-font); color: #244AC2; }
.studio .custom-export::before { content: ''; width: 13px; height: 15px; flex: none; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M4 7V5a4 4 0 0 1 8 0v2h1a2 2 0 0 1 2 2v7H1V9a2 2 0 0 1 2-2h1m2 0h4V5a2 2 0 0 0-4 0v2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.studio .custom-export .ic { display: none; }

/* the stage: what plays and the formats, the graphic itself, the transport */
.studio .ed-stagehead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-height: 44px; }
.studio .ed-now { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; min-width: 0; }
.studio .ed-now > div { min-width: 0; }
.studio .ed-now svg { display: block; flex: none; color: var(--v-royal); }
.studio .now-t { margin: 0; font: 600 19px/1.15 var(--v-font-d); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .now-sub { margin: 3px 0 0; font-size: 13px; color: var(--v-dim); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .fmt { display: flex; align-items: center; gap: 10px; }
.studio .ed-tabs, .studio .ed-seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 10px; background: var(--v-bg); }
.studio .ed-tabs button, .studio .ed-seg button { min-width: 46px; height: 32px; padding: 0 11px; border-radius: 7px; font: 600 13.5px var(--v-font); color: var(--v-mute); font-variant-numeric: tabular-nums; transition: color .18s, background-color .18s; }
.studio .ed-tabs button:hover, .studio .ed-seg button:hover { color: var(--v-text); }
.studio .ed-tabs button[aria-pressed="true"], .studio .ed-seg button[aria-pressed="true"] { color: #FFFFFF; background: var(--v-navy); }
/* the view is only room: the graphic sits on the panel itself, with the gap main.js reads from --fit-pad */
.studio .view { --fit-pad: 24px; position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.studio .frame { position: relative; max-width: 100%; border-radius: 8px; overflow: hidden; background: #2E66E6; box-shadow: 0 18px 36px -22px rgba(10, 21, 65, .55), 0 0 0 1px rgba(10, 21, 65, .06); }
.studio .frame.alpha { background: transparent; box-shadow: none; }
#stage { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; }
#stage .shape { position: absolute; left: 0; top: 0; }
#stage .shape > .fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
#stage .face { position: absolute; left: 0; top: 0; }
.studio .ed-empty { max-width: 36ch; padding: 20px; text-align: center; font-size: 14px; color: var(--v-mute); }
.studio .ed-empty b { display: block; margin-bottom: 6px; font: 600 19px/1.2 var(--v-font-d); color: var(--v-text); }
.studio .transport { display: flex; align-items: center; gap: 14px; }
.studio .play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #FFFFFF; background: var(--v-navy); box-shadow: 0 8px 16px -10px rgba(10, 21, 65, .6); transition: background-color .18s, transform .18s var(--v-ease); }
.studio .play:hover { background: var(--v-navy-2); }
.studio .play:active { transform: scale(.95); }
.studio .play svg { display: block; }
.studio .play:disabled { opacity: .4; cursor: default; }
.studio .time { min-width: 92px; text-align: right; font-size: 13px; font-weight: 600; color: var(--v-mute); font-variant-numeric: tabular-nums; }
.studio .ed-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.studio .ed-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--v-royal) var(--p), rgba(10, 21, 65, .14) var(--p)); }
.studio .ed-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1.5px var(--v-royal), 0 2px 6px rgba(10, 21, 65, .3); }
.studio .ed-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(10, 21, 65, .14); }
.studio .ed-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--v-royal); }
.studio .ed-range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1.5px var(--v-royal), 0 2px 6px rgba(10, 21, 65, .3); }
.studio .ed-range:disabled { opacity: .4; cursor: default; }
.studio .ed-range:focus-visible { outline-offset: 4px; border-radius: 4px; }

/* colours: the four sets (and yours, once you pick), then your own four */
.studio .swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(57px, 1fr)); gap: 8px; }
.studio .sw { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 30px 28px; min-width: 0; padding: 0; gap: 0; border: 0; border-radius: 10px; overflow: hidden; color: var(--v-mute); background: var(--v-card); font: 600 11.5px/16px var(--v-font); text-align: center; transition: background-color .18s, color .18s; }
.studio .sw::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--v-line); border-radius: inherit; pointer-events: none; transition: border-color .18s; }
.studio .sw span { display: block; min-width: 0; max-width: 100%; padding: 6px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The button alone clips the colour: rounded top corners, a straight edge above the caption.
   The border is drawn over the fill so no pale seam appears along the rounded top edge. */
.studio .sw i { position: relative; display: block; width: 100%; height: 30px; border-radius: 0; overflow: hidden; box-shadow: none !important; }
.studio .sw i::before, .studio .sw i::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; }
.studio .sw i::before { left: calc(50% - 12px); background: var(--sw-home); }
.studio .sw i::after { left: calc(50% + 2px); background: var(--sw-away); }
.studio .sw:hover { color: var(--v-text); background: var(--v-bg); }
.studio .sw[aria-pressed="true"] { color: var(--v-text); }
.studio .sw[aria-pressed="true"]::after { border-width: 2px; border-color: var(--v-navy); }
.studio .cpicks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 2px; }
.studio .cpick { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; color: var(--v-mute); cursor: pointer; transition: color .18s; }
.studio .cpick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .cpick:hover { color: var(--v-text); }
.studio .cpick input { -webkit-appearance: none; appearance: none; flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; box-shadow: 0 0 0 1px var(--v-rim-2); }
.studio .cpick input::-webkit-color-swatch-wrapper { padding: 0; }
.studio .cpick input::-webkit-color-swatch { border: 0; border-radius: 7px; }
.studio .cpick input::-moz-color-swatch { border: 0; border-radius: 7px; }

/* elements: a label and its control on each row; the switches on the right, as in a settings list */
.studio .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.studio .row > span, .studio .row > label { flex: none; font-size: 13.5px; color: var(--v-mute); }
.studio .row .ed-range { max-width: 160px; }
.studio .row output { flex: none; min-width: 38px; height: 26px; border-radius: 7px; background: var(--v-bg); line-height: 26px; text-align: center; font-size: 12.5px; font-weight: 650; color: var(--v-text); font-variant-numeric: tabular-nums; }
.studio .ed-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; font-size: 13.5px; color: var(--v-mute); cursor: pointer; transition: color .18s; }
.studio .ed-switch:hover { color: var(--v-text); }
.studio .ed-switch input { order: 2; -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 38px; height: 22px; margin: 0; border-radius: 7px; background: rgba(10, 21, 65, .16); cursor: pointer; transition: background-color .18s; }
.studio .ed-switch input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 5px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(10, 21, 65, .35); transition: transform .2s var(--v-ease), background-color .2s; }
.studio .ed-switch input:checked { background: var(--v-navy); }
.studio .ed-switch input:checked::after { transform: translateX(16px); background: var(--v-yellow); }
/* the stats card's numbers: closed until asked for, then the editor's list (pick up to 8, change their values) */
.studio .numbers { border-top: 1px solid var(--v-line); padding-top: 6px; }
.studio summary { list-style: none; cursor: pointer; }
.studio summary::-webkit-details-marker { display: none; }
.studio .numbers > summary, .studio .more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; font-size: 13.5px; font-weight: 600; color: var(--v-text); }
.studio .numbers > summary::after, .studio .more > summary::after { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 1.8px solid var(--v-dim); border-bottom: 1.8px solid var(--v-dim); transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--v-ease); }
.studio :is(.numbers, .more)[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.studio .numbers .note { margin: 2px 0 8px; }
.studio .ed-stats { display: grid; gap: 2px; }
.studio .ed-st { display: grid; grid-template-columns: 18px minmax(0, 1fr) 50px 50px; align-items: center; gap: 7px; min-height: 32px; font-size: 13px; color: var(--v-mute); }
.studio .ed-st.ed-head { min-height: 22px; font-size: 11.5px; font-weight: 650; color: var(--v-dim); }
.studio .ed-st.ed-head .side { display: inline-flex; align-items: center; gap: 5px; color: var(--v-mute); }
.studio .tdot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(10, 21, 65, .3); }
.studio .ed-st input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 5px; background: transparent center / 12px no-repeat; box-shadow: inset 0 0 0 1.5px var(--v-rim-2); cursor: pointer; }
.studio .ed-st input[type=checkbox]:checked { background-color: var(--v-navy); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23FFD400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.6 6.3 5 8.6l4.4-5'/%3E%3C/svg%3E"); }
.studio .ed-st input[type=checkbox]:checked + .lab { color: var(--v-text); }
.studio .ed-st .lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.studio .ed-st input[type=number] { width: 100%; height: 30px; padding: 0 4px 0 8px; border: 0; border-radius: 7px; background: var(--v-bg); box-shadow: inset 0 0 0 1px var(--v-line); color: var(--ed-home); font: 650 13px var(--v-font); font-variant-numeric: tabular-nums; }
.studio .ed-st input[type=number].a { color: var(--ed-away); }

/* the download: the video first and widest, the stills beside each other; the button counts while the video is made */
.studio .ed-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.studio .dl-main { grid-column: 1 / -1; min-height: 50px; gap: 9px; font-size: 16px; }
.studio .dl-main .lbl { min-width: 2.4em; text-align: left; font-variant-numeric: tabular-nums; }
.studio .dl-main .kind { margin-left: -4px; font-weight: 500; }
.studio .dl-main.busy .kind { display: none; }
.studio .dl-main:hover .ic { transform: translateY(2px); }
.studio .dl-img { min-height: 40px; padding: 8px 6px; border-radius: 10px; font-size: 14.5px; }
.studio .dl-alpha { grid-column: 1 / -1; min-height: 44px; padding: 10px 12px; gap: 10px; border-radius: 10px; font-size: 14px; justify-content: flex-start; }
.studio .dl-alpha .lbl { min-width: 3.4em; font-variant-numeric: tabular-nums; }
.studio .dl-alpha .kind { font-size: 12px; font-weight: 500; }
.studio .alpha-help { margin-bottom: 5px; }
.studio .alpha-help summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.studio .alpha-help p { margin: 8px 0 4px; }
.studio .ed-dl .btn:disabled { opacity: .45; cursor: default; transform: none; }
.studio .dl-msg { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: #B42318; }
.studio .dl-msg.info { color: var(--v-mute); }
.studio #dl-ready { color: var(--v-royal); text-decoration: underline; text-underline-offset: 3px; }
.studio .dl-beta { display: none; margin: 4px 0 0; font-size: 14px; color: var(--v-mute); }
.studio .dl-beta a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--v-royal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.studio .dl-beta .ic { width: 16px; height: 16px; }
.studio .dl-beta button { color: var(--v-royal); font: inherit; text-decoration: underline; }

/* your match: the scoreline (each crest is a button), the drop, what the file can draw, the other ways in */
.studio .s-data .s-h { align-items: center; }
.studio .s-ht { display: inline-flex; align-items: center; gap: 4px; }
.studio .s-info { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--v-dim); transition: background-color .18s, color .18s; }
.studio .s-info:hover, .studio .s-info[aria-expanded="true"] { background: var(--v-bg); color: var(--v-royal); }
.studio .s-info .ic { width: 17px; height: 17px; stroke-width: 1.7; }
.studio .s-chip { min-width: 0; max-width: 62%; padding: 3px 8px; border-radius: 6px; background: var(--v-bg); font: 600 11.5px/1.3 var(--v-font); color: var(--v-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .ed-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--v-bg); }
.studio .ed-side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.studio .ed-side.r { justify-content: flex-end; text-align: right; }
.studio .ed-side > div { min-width: 0; }
.studio .ed-side img { display: block; width: 30px; height: 30px; object-fit: contain; flex: none; }
.studio .ed-side b { display: block; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.studio .ed-side > div > span { display: block; font-size: 11.5px; color: var(--v-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .ed-nums { display: flex; align-items: center; gap: 6px; font: 700 30px/1 var(--v-font-d); font-stretch: 80%; font-variant-numeric: tabular-nums; color: var(--v-text); }
.studio .ed-nums i { width: 10px; height: 3px; border-radius: 2px; background: var(--v-dim); }
.studio .ed-side .crest { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 5px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.studio .ed-side .crest.empty { border: 1.5px dashed var(--v-rim-2); font-size: 16px; line-height: 1; color: var(--v-dim); }
.studio .ed-side .crest:hover { background: #E0E7FA; }
.studio .ed-side .crest:focus-visible { outline: 2px solid var(--v-royal); outline-offset: 2px; }
.studio .crest-edit { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--v-bg); border-radius: 6px; background: #FFD400; color: #0A1541; }
.studio .crest-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--v-mute); }
.studio .zone { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed rgba(21, 55, 201, .42); background: #F5F8FF; cursor: pointer; transition: border-color .2s, background-color .2s; }
.studio .zone:hover { border-color: var(--v-royal); background: #EAF0FF; }
.studio .zone:focus-within { outline: 2px solid var(--v-royal); outline-offset: 2px; }
.studio .zone input, .studio .vh { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.studio .zone .z-ic { display: block; color: var(--v-royal); }
.studio .zone b { display: block; font-size: 14.5px; font-weight: 650; color: var(--v-text); }
.studio .zone .z-t > span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--v-mute); }
.studio .ed-status { display: grid; gap: 4px; font-size: 12.5px; color: var(--v-mute); }
.studio .ed-status p { margin: 0; }
.studio .ed-status b { display: flex; align-items: center; gap: 8px; color: var(--v-text); font-weight: 650; }
.studio .ed-status b::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--v-mint); }
.studio .ed-status .src { display: block; padding-left: 15px; }
.studio .ed-status ul { display: grid; gap: 3px; margin: 2px 0 0; padding-left: 30px; list-style: disc; }
.studio .ed-status li::marker { color: var(--v-dim); }
.studio .note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--v-dim); }
.studio .err { margin: 0; font-size: 12.5px; line-height: 1.45; color: #B42318; }
.studio .data-acts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.studio .lnk { padding: 0; font: 600 12.5px/1.5 var(--v-font); color: var(--v-royal); text-decoration: underline; text-decoration-color: rgba(21, 55, 201, .35); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; transition: text-decoration-color .18s; }
.studio .lnk:hover, .studio .lnk[aria-expanded="true"] { text-decoration-color: currentColor; }
.studio .more { display: grid; gap: 10px; }
.studio .more > summary { min-height: 24px; font-size: 12.5px; color: var(--v-mute); }
.studio .more > summary:hover { color: var(--v-text); }
.studio .paste textarea { display: block; width: 100%; min-height: 150px; max-height: 320px; resize: vertical; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--v-bg); box-shadow: inset 0 0 0 1px var(--v-rim); color: var(--v-text); font: 500 11.5px/1.55 ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace; tab-size: 12; scrollbar-width: thin; }
.studio .paste textarea::placeholder { color: var(--v-dim); font-family: var(--v-font); }
.studio .provider-ui { min-width: 0; }
.studio .provider-ui > summary { font-size: 12.5px; font-weight: 600; color: var(--v-text); }
.studio .provider-ui .entry { display: grid; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--v-mute); }
.studio #potm-box .entry { margin-top: 0; }
.studio .provider-ui input, .studio .provider-ui select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--v-rim-2); border-radius: 8px; background: #FFFFFF; color: var(--v-text); font: 500 12.5px var(--v-font); }
.studio .provider-ui .note { margin-top: 6px; }
.studio .provider-ui .files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.studio .provider-ui .btn { min-height: 36px; padding: 7px 12px; font-size: 13.5px; }
.studio .provider-ui button:disabled { opacity: .5; cursor: wait; }

/* a file dragged anywhere over the page: the whole panel takes it */
.studio:has(#data.drop) { box-shadow: var(--v-shadow), 0 0 0 2px var(--v-royal), 0 0 0 8px rgba(21, 55, 201, .12); }
.studio:has(#data.drop)::after { content: 'Drop your match file'; position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; border-radius: inherit; font: 600 clamp(22px, 1.8vw, 32px)/1.2 var(--v-font-d); letter-spacing: -.02em; color: #FFFFFF; background: rgba(10, 21, 65, .74); pointer-events: none; }

/* ---- on a desk: three columns, one fixed height, so nothing moves when a graphic changes */
@media (min-width: 1180px) {
  .studio { height: clamp(660px, 45.5vw, 770px); grid-template-columns: clamp(256px, 19vw, 300px) minmax(0, 1fr) clamp(290px, 20.5vw, 332px); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "comps stage panel" "data stage panel"; }
  .studio .s-comps { border-right: 1px solid var(--v-line); }
  .studio .s-data { border-top: 1px solid var(--v-line); border-right: 1px solid var(--v-line); overflow: auto; }
  .studio .s-panel { border-left: 1px solid var(--v-line); overflow: auto; }
  .studio .s-blk + .s-blk { border-top: 1px solid var(--v-line); }
  .studio .s-data .ed-side > div > span { display: none; }   /* a narrow column: the codes, the crests and the score */
  .studio .s-data .ed-match { gap: 4px; padding: 8px; }
  .studio .s-data .ed-side { gap: 2px; }
  .studio .s-data .ed-side b { font-size: 11px; }
  .studio .s-data .ed-nums { gap: 3px; font-size: 25px; }
  .studio .s-data .ed-nums i { width: 6px; }
}

/* ---- a tablet and a phone: tabs, one block at a time (squeeze-c.js switches them) */
@media (max-width: 1179px) and (hover: none) { .studio .s-tabs button:hover:not([aria-pressed="true"]) { color: var(--v-mute); background: none; } }
@media (max-width: 1179px) {
  .studio .s-panel { display: contents; }
  .studio [data-tool-panel]:not(.is-on) { display: none; }
  .studio [data-tool-panel] { min-height: 0; overflow: auto; padding: 14px var(--s-pad) 16px; }
  .studio [data-tool-panel]:not(.s-data) > .s-h { display: none; }   /* the tab already names the block */
  .studio .s-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--v-line); }
  .studio .s-tabs button { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 52px; padding: 6px 2px; border-radius: 10px; font: 600 12px/1.15 var(--v-font); color: var(--v-mute); transition: background-color .18s, color .18s; }
  .studio .s-tabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .studio .s-tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .studio .s-tabs button:hover:not([aria-pressed="true"]) { color: var(--v-text); background: var(--v-bg); }
  .studio .s-tabs button[aria-pressed="true"] { color: #FFFFFF; background: var(--v-navy); }
  .studio .s-tabs button[aria-pressed="true"] svg { color: var(--v-yellow); }
  .studio .ed-menu { margin: 0 -8px; }
  .studio .dl-beta { display: block; }
}
@media (min-width: 900px) and (max-width: 1179px) {
  .studio { height: clamp(580px, 64vw, 720px); grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 360px); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "stage tabs" "stage tool"; }
  .studio .s-stage { border-right: 1px solid var(--v-line); }
  .studio .s-tabs { grid-area: tabs; }
  .studio [data-tool-panel] { grid-area: tool; }
  .studio .view { --fit-pad: 12px; }
}

/* ---- stacked (a phone, a tablet held upright): the graphic on top, the tabs and one block under it. The block's height
   never changes, so the graphic never jumps; the panel is about one screen tall */
@media (max-width: 899px) {
  .studio { display: flex; flex-direction: column; height: calc(100vh - 100px); height: calc(100svh - 100px); min-height: 540px; max-height: 1000px; }
  .studio .s-stage { order: 1; flex: 1 1 0; gap: 8px; padding: 10px var(--s-pad) 6px; }
  .studio .s-tabs { order: 2; padding: 6px 8px; border-top: 1px solid var(--v-line); }
  .studio [data-tool-panel] { order: 3; flex: none; height: clamp(184px, 27svh, 260px); padding: 12px var(--s-pad) 14px; }
  .studio .ed-stagehead { flex-wrap: nowrap; gap: 10px; min-height: 36px; }
  .studio .ed-now { flex: 1 1 auto; }
  .studio .view { --fit-pad: 8px; }
  /* the graphics: all nine in view, three (or more) to a row */
  .studio .ed-menu { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; margin: 0; }
  .studio .ed-item { grid-template-columns: 18px minmax(0, 1fr); gap: 7px; min-height: 46px; padding: 5px 8px; font-size: 12px; line-height: 1.15; box-shadow: inset 0 0 0 1px var(--v-line); }
  .studio .ed-item svg { width: 18px; height: 18px; }
  .studio .ed-item .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; text-overflow: clip; }
  .studio .ed-item .dur { display: none; }
  .studio .ed-item[aria-pressed="true"] { box-shadow: none; }
  /* the other blocks, a little tighter */
  .studio .s-blk, .studio .s-data { gap: 6px; }
  .studio .row { min-height: 28px; }
  .studio .ed-switch { min-height: 26px; }
  .studio .numbers { padding-top: 4px; }
  .studio .numbers > summary { min-height: 28px; }
  .studio .swatches { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
  .studio .ed-match { padding: 8px 10px; }
  .studio .zone { padding: 10px 12px; }
}
/* ---- a phone: the panel is the screen itself, edge to edge under the header */
@media (max-width: 560px) {
  .hero-studio { padding-bottom: 26px; }
  .studio { --s-pad: 16px; width: 100%; max-width: none; height: calc(100vh - 64px); height: calc(100svh - 64px); max-height: 940px; margin-top: 22px; border-radius: 0; box-shadow: 0 -1px 0 var(--v-line), 0 1px 0 var(--v-line); }
  .studio .s-stage { padding: 8px 16px 6px; }
  .studio .s-tabs button { min-height: 48px; font-size: 11.5px; }
  .studio [data-tool-panel] { height: clamp(184px, 27svh, 236px); padding: 12px 16px 14px; }
  .studio #now-icon, .studio .now-sub, .studio .s-lab { display: none; }
  .studio .now-t { font-size: 17px; }
  .studio .ed-tabs button { min-width: 0; height: 30px; padding: 0 8px; font-size: 13px; }
  .studio .view { --fit-pad: 0px; }
  .studio .transport { gap: 12px; }
  .studio .play { width: 36px; height: 36px; border-radius: 10px; }
  .studio .time { min-width: 76px; font-size: 12.5px; }
  .studio .ed-side .crest { width: 48px; height: 48px; }
}
@media (max-width: 350px) { .studio .ed-side .crest { width: 44px; height: 44px; } }

/* ---- the data guide, over the page (the editor writes it: src/editor/limits.js) */
.guide { position: fixed; inset: 0; width: min(1000px, calc(100% - 32px)); height: fit-content; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 22px; overflow: auto; overscroll-behavior: contain; color: var(--v-text); font-family: var(--v-font); background: #FFFFFF; box-shadow: 0 40px 90px -30px rgba(6, 14, 51, .62), 0 0 0 1px var(--v-rim); }
.guide::backdrop { background: rgba(6, 14, 51, .56); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.guide .g-in { display: grid; gap: 14px; padding: 24px 28px 28px; }
.guide .g-body { display: grid; gap: 12px; }
.guide .g-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide h2 { font-size: clamp(24px, 1.8vw, 30px); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; }
.guide .g-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--v-dim); transition: background-color .2s, color .2s; }
.guide .g-x:hover { background: var(--v-bg); color: var(--v-text); }
.guide .g-x .ic { width: 20px; height: 20px; }
.guide .g-intro { margin: 0; max-width: 72ch; font-size: 15.5px; color: var(--v-mute); }
.guide h3 { margin: 8px 0 0; font: 650 15px/1.25 var(--v-font); color: var(--v-text); }
.guide .g-comps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; margin: 0; padding: 0; list-style: none; }
.guide .g-comps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--v-line); }
.guide .g-comps svg { display: block; margin-top: 1px; color: var(--v-royal); }
.guide .g-comps b { display: block; font-size: 14px; font-weight: 650; }
.guide .g-comps span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--v-mute); }
.guide .g-src { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14px; line-height: 1.45; }
.guide .g-src dt { font-weight: 650; }
.guide .g-src dd { margin: 0; color: var(--v-mute); }
.guide .g-foot { margin: 4px 0 0; max-width: 90ch; font-size: 13px; color: var(--v-dim); }
@media (max-width: 900px) { .guide .g-comps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .guide { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .guide .g-in { padding: 20px 18px 22px; }
  .guide .g-comps, .guide .g-src { grid-template-columns: minmax(0, 1fr); }
  .guide .g-src { gap: 2px; }
  .guide .g-src dd { margin-bottom: 10px; }
}

/* ---- after a download: the file is saved, and the way to the beta (a note in the corner, away from the download
   buttons; nothing stops the editing) */
.saved { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; width: min(400px, calc(100vw - 32px)); padding: 16px 10px 16px 16px; border-radius: 18px; background: #FFFFFF; color: var(--v-text); box-shadow: 0 30px 60px -24px rgba(6, 14, 51, .5), 0 0 0 1px var(--v-rim); }
.saved .ok { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--v-mint); background: #D6F5EA; }
.saved .ok .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.saved-t { min-width: 0; }
.saved b { display: block; font-size: 15px; font-weight: 650; }
.saved .nm { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--v-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved p { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--v-mute); }
.saved-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.saved .talk-l { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--v-rim-2); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.saved .talk-l:hover { text-decoration-color: currentColor; }
.saved .x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--v-dim); transition: background-color .2s, color .2s; }
.saved .x:hover { background: var(--v-bg); color: var(--v-text); }
@media (max-width: 560px) { .saved { left: 10px; bottom: 10px; width: calc(100vw - 20px); } }

/* ---- the way to the beta, on the glass flow: what it gives on the left, the form and LinkedIn on the right */
.talk-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "text act"; align-items: center; }
.talk-in .close-text p { color: #FFFFFF; }
.talk-in .close-act { justify-self: end; align-self: center; display: grid; gap: 12px; width: min(100%, 380px); }
.talk-in .close-act .btn { width: 100%; }
.talk-in .micro { margin-top: 2px; text-align: center; font-weight: 500; color: #FFFFFF; }
.talk-in .li-ic { width: 22px; height: 22px; }
.perks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: clamp(16px, 1.05vw, 19px); color: #FFFFFF; }
.perks .ic { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 7px; color: var(--v-navy); background: var(--v-yellow); stroke-width: 2.4; }
@media (max-width: 1100px) {
  .talk-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "act"; }
  .talk-in .close-act { justify-self: stretch; width: 100%; max-width: 460px; }
}
