/* Screen recorder tool styles */
@layer components {
  .screenrec-page{
    --screenrec-accent:var(--primary);
    --screenrec-accent-strong:color-mix(in srgb,var(--primary) 68%, #0A1A1F 32%);
    --screenrec-accent-soft:color-mix(in srgb,var(--primary) 24%, transparent);
    --screenrec-surface:color-mix(in srgb,var(--surface) 88%, #09121c 12%);
    --screenrec-surface-strong:color-mix(in srgb,var(--surface) 78%, #050b12 22%);
  }
  .screenrec-hero{
    position:relative;
    overflow:hidden;
    padding:clamp(3rem,7vh,5rem) 0;
    background:
      radial-gradient(900px circle at 8% 12%, color-mix(in srgb,var(--primary) 24%, transparent), transparent 60%),
      radial-gradient(800px circle at 92% 0%, color-mix(in srgb,var(--primary) 20%, #ffffff 8%), transparent 55%),
      linear-gradient(160deg,
        color-mix(in srgb,var(--surface) 90%, #070e15 10%) 0%,
        color-mix(in srgb,var(--surface) 78%, #050b12 22%) 100%);
    border-bottom:1px solid color-mix(in srgb,var(--screenrec-accent) 25%, transparent);
    box-shadow:0 30px 60px rgba(0,0,0,.4);
  }
  .screenrec-hero .wrapper{
    max-width:var(--container-max);
    display:grid;
    gap:clamp(1.4rem,2.8vw,2.1rem);
  }
  .screenrec-lead{
    margin:0;
    max-width:64ch;
    color:var(--text-muted);
    font-size:1.1rem;
    line-height:1.7;
  }
  .screenrec-steps{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:clamp(12px,2vw,16px);
  }
  .screenrec-step{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    border-radius:16px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 22%, transparent);
    background:linear-gradient(160deg,
      color-mix(in srgb,var(--surface) 92%, #060d14 8%) 0%,
      color-mix(in srgb,var(--surface) 82%, #040a11 18%) 100%);
    box-shadow:0 16px 32px rgba(0,0,0,.28);
  }
  .screenrec-step-number{
    width:36px;
    height:36px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    color:color-mix(in srgb,#ffffff 94%, var(--bg) 6%);
    background:linear-gradient(135deg,
      color-mix(in srgb,var(--screenrec-accent) 78%, #ffffff 22%) 0%,
      color-mix(in srgb,var(--screenrec-accent-strong) 62%, #071219 38%) 100%);
    box-shadow:0 12px 22px rgba(0,0,0,.28);
  }
  .screenrec-step h3{
    margin:0 0 4px;
    font-size:1.02rem;
    letter-spacing:.01em;
  }
  .screenrec-step p{
    margin:0;
    color:var(--text-muted);
    font-size:.95rem;
    line-height:1.6;
  }

  .screenrec-section{
    padding:clamp(2.8rem,6vh,3.8rem) 0;
  }

  .screenrec-grid{
    display:grid;
    gap:clamp(18px,3vw,28px);
    grid-template-columns:minmax(0,1fr);
    align-items:start;
  }
  .screenrec-grid[data-view="controls"],
  .screenrec-grid[data-view="preview"]{
    grid-template-columns:minmax(0,1fr);
  }
  @media (min-width: 980px) {
    .screenrec-grid{
      grid-template-columns:minmax(0,1fr);
    }
  }

  .screenrec-card{
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
    background:linear-gradient(160deg,
      color-mix(in srgb,var(--screenrec-surface) 92%, #04090f 8%) 0%,
      color-mix(in srgb,var(--screenrec-surface-strong) 84%, #04090f 16%) 100%);
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 24%, transparent);
    border-radius:20px;
    padding:clamp(1.4rem,2.4vw,2rem);
    box-shadow:0 20px 42px rgba(0,0,0,.32);
    display:grid;
    gap:18px;
  }
  .screenrec-panel-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    min-width:0;
  }
  .screenrec-panel-toggle{
    flex:1;
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:0;
    border:0;
    background:none;
    color:inherit;
    text-align:left;
    cursor:pointer;
    min-width:0;
  }
  .screenrec-panel-toggle:focus-visible{
    outline:2px solid color-mix(in srgb,var(--screenrec-accent) 70%, #ffffff 30%);
    outline-offset:4px;
    border-radius:16px;
  }
  .screenrec-panel-toggle-icon{
    width:36px;
    height:36px;
    border-radius:12px;
    display:grid;
    place-items:center;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 30%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 88%, #040a11 12%);
    transition:transform .2s ease, background .2s ease;
    flex-shrink:0;
  }
  .screenrec-panel-toggle-icon svg{
    width:18px;
    height:18px;
    transition:transform .2s ease;
  }
  .screenrec-controls[data-collapsed="true"] .screenrec-panel-toggle-icon svg{
    transform:rotate(-90deg);
  }
  .screenrec-panel-title{
    display:grid;
    gap:6px;
    min-width:0;
  }
  .screenrec-kicker{
    margin:0;
    font-size:.78rem;
    letter-spacing:.26em;
    text-transform:uppercase;
    color:color-mix(in srgb,var(--screenrec-accent) 80%, #ffffff 20%);
  }
  .screenrec-panel-actions{
    display:grid;
    gap:6px;
    justify-items:flex-end;
    text-align:right;
  }
  @media (max-width: 640px) {
    .screenrec-panel-actions{
      justify-items:flex-start;
      text-align:left;
    }
  }
  .screenrec-panel-note{
    font-size:.82rem;
    color:var(--text-muted);
  }
  .screenrec-test-button{
    border-radius:999px;
    padding:10px 16px;
  }
  .screenrec-panel-body{
    display:block;
  }
  .screenrec-panel-body[hidden]{
    display:none;
  }
  .screenrec-preview{
    position:relative;
    overflow:hidden;
    min-width:0;
    max-width:100%;
  }

  .screenrec-card h2{
    margin:0;
    font-size:1.25rem;
    letter-spacing:.02em;
  }

  .screenrec-subtitle{
    margin:0;
    color:color-mix(in srgb,var(--text-muted) 92%, #ffffff 8%);
    font-size:.96rem;
  }

  .screenrec-form{
    display:grid;
    gap:14px;
  }
  .screenrec-controls{
    padding:clamp(1.2rem,2.2vw,1.6rem);
    gap:14px;
  }
  .screenrec-controls .screenrec-form{
    gap:14px;
  }
  .screenrec-field-wide{
    grid-column:1 / -1;
  }
  @media (min-width: 900px) {
    .screenrec-controls .screenrec-form{
      grid-template-columns:repeat(2, minmax(0,1fr));
      column-gap:18px;
      align-items:start;
    }
    .screenrec-controls .screenrec-note{
      grid-column:1 / -1;
    }
  }

  .screenrec-field{
    display:grid;
    gap:8px;
    padding:12px 14px;
    border-radius:16px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 18%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 92%, #050b12 8%);
  }

  .screenrec-label{
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:.78rem;
    font-family:'Poppins';
  }

  .screenrec-radio-group{
    display:grid;
    gap:8px;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  }
  .screenrec-chip-group{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .screenrec-chip{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 22%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface-strong) 92%, #02070d 8%);
    color:color-mix(in srgb,var(--text-light) 94%, #ffffff 6%);
    cursor:pointer;
    font-size:.88rem;
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  .screenrec-chip input{
    margin:0;
  }
  .screenrec-chip:focus-within{
    border-color:color-mix(in srgb,var(--screenrec-accent) 46%, transparent);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--screenrec-accent) 28%, transparent);
  }
  .screenrec-radio{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 22%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface-strong) 92%, #02070d 8%);
    color:color-mix(in srgb,var(--text-light) 94%, #ffffff 6%);
    cursor:pointer;
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  .screenrec-radio input{
    margin-top:3px;
  }
  .screenrec-radio span{
    font-size:.95rem;
  }
  .screenrec-radio:focus-within{
    border-color:color-mix(in srgb,var(--screenrec-accent) 46%, transparent);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--screenrec-accent) 28%, transparent);
  }
  .screenrec-radio:hover{
    transform:translateY(-1px);
  }

  .screenrec-select{
    box-sizing:border-box;
    width:100%;
    border-radius:14px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 26%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 94%, #02070d 6%);
    color:color-mix(in srgb,var(--text-light) 96%, #ffffff 4%);
    padding:12px 14px;
    font:inherit;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .screenrec-select:focus{
    outline:none;
    border-color:color-mix(in srgb,var(--screenrec-accent) 46%, transparent);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--screenrec-accent) 28%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 98%, #02070d 2%);
  }

  .screenrec-help{
    margin:0;
    color:color-mix(in srgb,var(--text-muted) 90%, #ffffff 10%);
    font-size:.88rem;
    line-height:1.5;
  }
  .screenrec-check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:.95rem;
    color:color-mix(in srgb,var(--text-light) 94%, #ffffff 6%);
  }
  .screenrec-check input{
    margin-top:4px;
  }

  .screenrec-audio-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
  }
  .screenrec-audio-row .screenrec-check{
    flex:1 1 220px;
  }
  .screenrec-audio-row .screenrec-range{
    flex:1 1 180px;
    justify-content:flex-end;
  }
  .screenrec-audio-row .screenrec-select{
    flex:1 1 220px;
    min-width:200px;
    max-width:260px;
  }
  .screenrec-select-compact{
    margin-left:auto;
  }

  .screenrec-range{
    display:flex;
    align-items:center;
    gap:12px;
  }
  .screenrec-range input[type="range"]{
    flex:1;
    width:100%;
    accent-color:var(--screenrec-accent);
  }
  .screenrec-range-value{
    font-weight:700;
    color:color-mix(in srgb,var(--text-light) 90%, #ffffff 10%);
    background:color-mix(in srgb,var(--screenrec-surface) 88%, #000 12%);
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 20%, transparent);
    border-radius:999px;
    padding:6px 10px;
    font-size:.86rem;
    letter-spacing:.01em;
    white-space:nowrap;
    min-width:56px;
    text-align:center;
  }
  .screenrec-range-compact{
    max-width:260px;
    margin-left:auto;
  }

  .screenrec-audio-meter{
    position:relative;
    height:12px;
    border-radius:999px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 20%, transparent);
    background:linear-gradient(90deg,
      rgba(16,24,32,.9) 0%,
      rgba(10,16,24,.9) 100%);
    overflow:hidden;
    box-shadow:inset 0 1px 2px rgba(0,0,0,.45);
  }
  .screenrec-audio-meter:not([data-active="true"]){
    opacity:.5;
  }
  .screenrec-audio-meter-fill{
    position:absolute;
    inset:0;
    transform:scaleX(0);
    transform-origin:left;
    background:linear-gradient(90deg,
      color-mix(in srgb,var(--primary) 85%, #ffffff 15%) 0%,
      color-mix(in srgb,var(--primary) 62%, var(--warning) 38%) 65%,
      color-mix(in srgb,var(--danger) 85%, #ffffff 15%) 100%);
    transition:transform .08s linear;
  }

  .screenrec-actions,
  .screenrec-download-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
  }
  .screenrec-actions-tight{
    gap:8px;
  }
  .screenrec-actions-capture{
    padding:6px;
    border-radius:999px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 22%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 88%, #050b12 12%);
  }

  .screenrec-note{
    margin:0;
    color:color-mix(in srgb,var(--text-muted) 90%, #ffffff 10%);
    font-size:.9rem;
    line-height:1.6;
    padding-top:4px;
  }
  .screenrec-download-panel{
    margin-top:12px;
    padding:12px 14px;
    border-radius:16px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 18%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 92%, #050b12 8%);
    display:grid;
    gap:10px;
    grid-template-columns:minmax(0, 1fr);
    align-items:center;
  }
  @media (min-width: 760px) {
    .screenrec-download-panel{
      grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
      gap:16px;
    }
  }

  .screenrec-preview-header{
    display:grid;
    gap:14px;
    min-width:0;
  }
  .screenrec-preview-header > div{
    min-width:0;
  }
  .screenrec-preview-controls{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
  }
  @media (min-width: 760px) {
    .screenrec-preview-header{
      grid-template-columns:minmax(0,1fr) auto;
      align-items:start;
    }
    .screenrec-preview-controls{
      align-items:flex-end;
    }
  }

  .screenrec-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 28%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 92%, #000 8%);
    font-size:.74rem;
    text-transform:uppercase;
    letter-spacing:.1em;
    color:var(--text-muted);
    min-width:0;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:right;
  }
  .screenrec-status::before{
    content:"";
    width:6px;
    height:6px;
    border-radius:999px;
    background:currentColor;
    box-shadow:0 0 10px color-mix(in srgb,currentColor 60%, transparent);
  }
  .screenrec-status[data-tone="recording"]{
    color:var(--success);
    border-color:color-mix(in srgb,var(--success) 50%, transparent);
    background:color-mix(in srgb,var(--success) 12%, transparent);
  }
  .screenrec-status[data-tone="ready"]{
    color:color-mix(in srgb,var(--screenrec-accent) 78%, #ffffff 22%);
    border-color:color-mix(in srgb,var(--screenrec-accent) 45%, transparent);
    background:color-mix(in srgb,var(--screenrec-accent) 14%, transparent);
  }
  .screenrec-status[data-tone="warn"]{
    color:var(--warning);
    border-color:color-mix(in srgb,var(--warning) 45%, transparent);
    background:color-mix(in srgb,var(--warning) 12%, transparent);
  }
  .screenrec-status[data-tone="error"]{
    color:var(--danger);
    border-color:color-mix(in srgb,var(--danger) 45%, transparent);
    background:color-mix(in srgb,var(--danger) 12%, transparent);
  }
  .screenrec-status[data-tone="pending"]{
    color:var(--warning);
    border-color:color-mix(in srgb,var(--warning) 40%, transparent);
    background:color-mix(in srgb,var(--warning) 10%, transparent);
  }

  .screenrec-stage{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    border-radius:18px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 24%, transparent);
    overflow:hidden;
    min-width:0;
    max-width:100%;
    max-height:100%;
    background:color-mix(in srgb,var(--bg) 80%, #000 20%);
    box-shadow:0 20px 38px rgba(0,0,0,.35);
  }

  .screenrec-video{
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    object-position:center;
    background:color-mix(in srgb,var(--bg) 88%, #000 12%);
  }

  .screenrec-stage-controls{
    position:absolute;
    top:12px;
    right:12px;
    z-index:3;
    display:flex;
    align-items:center;
    gap:8px;
    pointer-events:auto;
  }
  .screenrec-crop-group{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    z-index:4;
  }
  .screenrec-crop-presets-toggle{
    height:40px;
    padding:0 12px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    border-radius:999px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 30%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 88%, transparent);
    backdrop-filter:blur(6px);
    font-size:.7rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--text-light);
  }
  .screenrec-crop-presets-toggle svg{
    width:14px;
    height:14px;
  }
  .screenrec-crop-presets-label{
    white-space:nowrap;
  }
  .screenrec-crop-button{
    width:40px;
    height:40px;
    padding:0;
    display:grid;
    place-items:center;
    border-radius:999px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 30%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 88%, transparent);
    backdrop-filter:blur(6px);
  }
  .screenrec-crop-button svg{
    width:18px;
    height:18px;
  }
  .screenrec-crop-button:disabled,
  .screenrec-crop-presets-toggle:disabled{
    opacity:.55;
    cursor:not-allowed;
  }
  .screenrec-crop-presets{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    min-width:220px;
    padding:12px;
    border-radius:14px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 22%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 94%, #03070c 6%);
    box-shadow:0 16px 30px rgba(0,0,0,.35);
    display:grid;
    gap:10px;
    z-index:5;
  }
  .screenrec-crop-presets[hidden]{
    display:none;
  }
  .screenrec-crop-presets-title{
    margin:0;
    font-size:.68rem;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:var(--text-muted);
  }
  .screenrec-crop-presets-grid{
    display:grid;
    gap:8px;
  }
  .screenrec-crop-preset{
    text-align:left;
    padding:8px 10px;
    border-radius:10px;
    border:1px solid transparent;
    background:color-mix(in srgb,var(--screenrec-surface) 85%, #000 15%);
    color:var(--text-light);
    font-size:.85rem;
    line-height:1.3;
    cursor:pointer;
  }
  .screenrec-crop-preset.is-active{
    border-color:color-mix(in srgb,var(--primary) 55%, transparent);
    background:color-mix(in srgb,var(--primary) 20%, transparent);
    color:color-mix(in srgb,var(--primary) 80%, #ffffff 20%);
  }
  .screenrec-crop-preset:focus-visible{
    outline:2px solid color-mix(in srgb,var(--primary) 70%, #ffffff 30%);
    outline-offset:2px;
  }

  .screenrec-placeholder{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    text-align:center;
    padding:18px;
    color:var(--text-muted);
    font-size:.95rem;
    background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
  }
  .screenrec-placeholder[hidden]{
    display:none;
  }

  .screenrec-crop-overlay{
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
  }
  .screenrec-crop-overlay[data-mode="select"]{
    pointer-events:auto;
    cursor:crosshair;
  }
  .screenrec-crop-overlay[data-mode="drag"]{
    pointer-events:auto;
  }
  .screenrec-crop-selection{
    position:absolute;
    border:2px solid color-mix(in srgb,var(--primary) 78%, #ffffff 22%);
    border-radius:10px;
    background:rgba(255,255,255,.08);
    box-shadow:0 0 0 9999px rgba(0,0,0,.45);
    cursor:move;
    pointer-events:auto;
  }
  .screenrec-crop-handle{
    position:absolute;
    width:12px;
    height:12px;
    border-radius:999px;
    border:2px solid color-mix(in srgb,#ffffff 70%, transparent);
    background:color-mix(in srgb,var(--primary) 75%, #ffffff 25%);
    box-shadow:0 0 0 2px rgba(0,0,0,.25);
  }
  .screenrec-crop-handle--nw{
    top:-7px;
    left:-7px;
    cursor:nwse-resize;
  }
  .screenrec-crop-handle--ne{
    top:-7px;
    right:-7px;
    cursor:nesw-resize;
  }
  .screenrec-crop-handle--sw{
    bottom:-7px;
    left:-7px;
    cursor:nesw-resize;
  }
  .screenrec-crop-handle--se{
    bottom:-7px;
    right:-7px;
    cursor:nwse-resize;
  }

  .screenrec-preview-meta{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:10px;
    min-width:0;
  }

  .screenrec-meta-row{
    display:grid;
    gap:6px;
    font-size:.9rem;
    min-width:0;
    width:100%;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 16%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 90%, #03070c 10%);
  }
  .screenrec-meta-row span{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .screenrec-meta-label{
    color:color-mix(in srgb,var(--text-muted) 88%, #ffffff 12%);
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:.66rem;
  }
  .screenrec-meta-value{
    color:color-mix(in srgb,var(--text-light) 94%, #ffffff 6%);
    font-size:.98rem;
  }

  .screenrec-preview-actions{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
    gap:10px;
    padding:12px;
    border-radius:16px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 18%, transparent);
    background:color-mix(in srgb,var(--screenrec-surface) 90%, #040a11 10%);
  }
  .screenrec-preview-actions button{
    width:100%;
  }
  .screenrec-record-stack{
    grid-column:1 / -1;
    display:grid;
    gap:8px;
  }
  .screenrec-record-group{
    display:flex;
    align-items:center;
    gap:8px;
    width:100%;
    min-width:0;
  }
  .screenrec-record-group button{
    width:auto;
  }
  .screenrec-record-group .btn-primary{
    flex:1 1 auto;
    min-width:0;
  }
  .screenrec-delay-button{
    flex:0 0 auto;
    padding:10px 14px;
    font-size:.72rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    border-style:solid;
    min-width:96px;
    white-space:nowrap;
  }
  .screenrec-delay-button[data-countdown="true"]{
    border-color:color-mix(in srgb,var(--warning) 60%, transparent);
    color:var(--warning);
    background:color-mix(in srgb,var(--warning) 12%, transparent);
  }
  .screenrec-countdown{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 12px;
    border-radius:999px;
    border:1px solid color-mix(in srgb,var(--screenrec-accent) 32%, transparent);
    background:color-mix(in srgb,var(--screenrec-accent) 12%, transparent);
    color:color-mix(in srgb,var(--screenrec-accent) 85%, #ffffff 15%);
    font-size:.7rem;
    letter-spacing:.16em;
    text-transform:uppercase;
    justify-self:start;
  }
  .screenrec-countdown::before{
    content:"";
    width:6px;
    height:6px;
    border-radius:999px;
    background:currentColor;
    box-shadow:0 0 10px color-mix(in srgb,currentColor 60%, transparent);
  }
  .screenrec-countdown[hidden]{
    display:none;
  }
  .screenrec-preview-actions .btn-primary{
    box-shadow:0 14px 28px rgba(0,0,0,.28);
  }
  .screenrec-download-actions{
    padding-top:0;
    border-top:none;
    justify-content:flex-start;
  }
  .screenrec-download{
    width:100%;
    min-width:220px;
    max-width:360px;
    text-align:center;
    border-radius:999px;
  }

  .screenrec-download-meta{
    display:grid;
    gap:6px;
  }

  .screenrec-download-note{
    margin:0;
    color:color-mix(in srgb,var(--text-muted) 90%, #ffffff 10%);
    font-size:.88rem;
  }
  .screenrec-download-list{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    gap:6px;
    font-size:.86rem;
    color:color-mix(in srgb,var(--text-light) 90%, #ffffff 10%);
  }
  .screenrec-download-list li{
    display:flex;
    justify-content:space-between;
    gap:12px;
  }

  .screenrec-card{
    animation:screenrec-rise .6s ease both;
  }
  .screenrec-card:nth-of-type(2){
    animation-delay:.08s;
  }
  .screenrec-step{
    animation:screenrec-rise .5s ease both;
  }
  .screenrec-step:nth-child(2){
    animation-delay:.06s;
  }
  .screenrec-step:nth-child(3){
    animation-delay:.12s;
  }

  @keyframes screenrec-rise{
    from{
      opacity:0;
      transform:translateY(12px);
    }
    to{
      opacity:1;
      transform:translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .screenrec-card,
    .screenrec-step{
      animation:none;
    }
  }
}
