.tvc-suggest-dialog {
  --s-bg:var(--bg,#fcfbf9);
  --s-panel:var(--panel,#fff);
  --s-ink:var(--text,#171716);
  --s-muted:var(--muted,#77736f);
  --s-line:var(--border,#e7e2dc);
  --s-soft:var(--panel-2,#f5f2ee);
  --s-soft-raised:var(--panel-3,#e9e1d7);
  --s-red:var(--red,#b53c2c);
  --s-action:#b53c2c;
  --s-success-bg:#eef4ed;
  --s-success-ink:#284c2d;
  --s-error-bg:#fbefed;
  --s-error-ink:#a52d25;
  position:fixed;
  inset:0;
  box-sizing:border-box;
  color-scheme:light;
  width:min(680px,calc(100vw - 36px));
  max-width:none;
  max-height:min(90dvh,900px);
  padding:0;
  border:1px solid var(--s-line);
  border-radius:15px;
  margin:auto;
  background:var(--s-bg);
  color:var(--s-ink);
  box-shadow:0 24px 80px #17120f35;
  font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition:width .2s ease;
}
.tvc-suggest-dialog.is-media-expanded {
  width:min(800px,calc(100vw - 48px));
  max-height:min(92dvh,900px);
}
.tvc-suggest-dialog.is-media-expanded .tvc-suggest-search-results { max-height:min(390px,45dvh); }
.tvc-suggest-dialog.is-media-expanded .tvc-suggest-media-method { padding:16px; }
.tvc-suggest-dialog.is-media-expanded .tvc-suggest-result { grid-template-columns:44px 1fr auto; gap:12px; padding:9px 0; }
.tvc-suggest-dialog.is-media-expanded .tvc-suggest-result img,
.tvc-suggest-dialog.is-media-expanded .tvc-suggest-result-art { width:44px; height:44px; }
html[data-theme="dark"] .tvc-suggest-dialog {
  --s-success-bg:#1f3325;
  --s-success-ink:#b9e3c0;
  --s-error-bg:#3a211e;
  --s-error-ink:#ffc1b8;
  color-scheme:dark;
}
@media(prefers-color-scheme:dark) {
  html:not([data-theme="light"]) .tvc-suggest-dialog {
    --s-success-bg:#1f3325;
    --s-success-ink:#b9e3c0;
    --s-error-bg:#3a211e;
    --s-error-ink:#ffc1b8;
    color-scheme:dark;
  }
}
.tvc-suggest-dialog::backdrop { background:#12110f78; backdrop-filter:blur(3px); }
.tvc-suggest-dialog[open] { display:flex; flex-direction:column; }
.tvc-suggest-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 22px 13px;
  border-bottom:1px solid var(--s-line);
}
.tvc-suggest-kicker {
  color:var(--s-red);
  font:500 11px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.02em;
}
.tvc-suggest-head h2 {
  margin:5px 0 0;
  font-size:clamp(23px,4vw,30px);
  line-height:1.08;
  letter-spacing:-.045em;
  font-weight:650;
}
.tvc-suggest-close {
  display:grid;
  place-items:center;
  flex:0 0 36px;
  width:36px;
  height:36px;
  border:1px solid var(--s-line);
  border-radius:50%;
  background:var(--s-panel);
  color:var(--s-ink);
  font:400 22px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;
}
.tvc-suggest-form { display:flex; flex:1; min-height:0; flex-direction:column; }
.tvc-suggest-body { min-height:0; overflow:auto; padding:17px 22px 24px; overscroll-behavior:contain; scroll-padding-block:18px 30px; }
.tvc-suggest-context {
  display:grid;
  grid-template-columns:38px 1fr auto;
  align-items:center;
  gap:11px;
  margin:0 0 18px;
  padding:11px 13px;
  border:1px solid var(--s-line);
  border-radius:8px;
  background:var(--s-soft);
}
.tvc-suggest-context-emoji,.tvc-suggest-context-source {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:6px;
  background:var(--s-soft-raised);
  font-size:23px;
}
.tvc-suggest-context-source { font-size:18px; }
.tvc-suggest-context small,.tvc-suggest-context strong { display:block; }
.tvc-suggest-context small { color:var(--s-muted); font:500 11px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.tvc-suggest-context strong { margin-top:3px; font-size:13px; }
.tvc-suggest-context em { color:var(--s-muted); font:400 11px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-style:normal; text-align:right; }
.tvc-suggest-context-art { display:block; width:40px; height:40px; border-radius:6px; object-fit:cover; background:var(--s-soft-raised); }
.tvc-suggest-field { display:grid; gap:7px; margin:0 0 17px; }
.tvc-suggest-field label,.tvc-suggest-label {
  color:var(--s-ink);
  font-size:13px;
  font-weight:600;
}
.tvc-suggest-field label span,.tvc-suggest-label span,.tvc-suggest-media-head strong span {
  margin-left:5px;
  color:var(--s-muted);
  font-size:11px;
  font-weight:400;
  letter-spacing:0;
  text-transform:none;
}
.tvc-suggest-field input,.tvc-suggest-field textarea,.tvc-suggest-field select,
.tvc-suggest-media-method input {
  width:100%;
  min-height:44px;
  border:1px solid var(--s-line);
  border-radius:8px;
  padding:10px 12px;
  background:var(--s-panel);
  color:var(--s-ink);
  font:inherit;
  font-size:14px;
  line-height:1.45;
}
.tvc-suggest-field textarea { min-height:92px; resize:vertical; }
.tvc-suggest-field input:focus,.tvc-suggest-field textarea:focus,.tvc-suggest-field select:focus,
.tvc-suggest-media-method input:focus { outline:2px solid #b53c2c40; border-color:var(--s-red); }
.tvc-suggest-emoji-row { display:flex; align-items:center; gap:10px; }
.tvc-suggest-emoji-row input { width:min(340px,100%); font-size:20px; }
.tvc-suggest-emoji-preview {
  display:grid;
  place-items:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  border:1px solid var(--s-line);
  border-radius:7px;
  background:var(--s-soft);
  font-size:25px;
}
.tvc-suggest-emoji-preview.is-invalid { border-color:#bb352c; background:var(--s-error-bg); }
.tvc-suggest-hint { margin:0; color:var(--s-muted); font-size:12px; line-height:1.45; }
.tvc-suggest-error { margin:0; color:var(--s-error-ink); font-size:12px; line-height:1.45; }
.tvc-suggest-error[hidden] { display:none; }
.tvc-suggest-swatches { display:flex; flex-wrap:wrap; gap:9px; }
.tvc-suggest-swatch {
  position:relative;
  width:33px;
  height:33px;
  padding:0;
  border:2px solid transparent;
  border-radius:50%;
  background:var(--swatch);
  cursor:pointer;
}
.tvc-suggest-swatch:first-child { background:var(--swatch); }
.tvc-suggest-swatch[aria-pressed=true] { border-color:var(--s-ink); box-shadow:0 0 0 2px var(--s-bg) inset; }
.tvc-suggest-theme-locked,.tvc-suggest-theme-choice {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--s-line);
  border-radius:6px;
  padding:9px 11px;
  background:var(--s-soft);
}
.tvc-suggest-theme-locked > span,.tvc-suggest-theme-choice > span { font-size:21px; }
.tvc-suggest-theme-locked small,.tvc-suggest-theme-locked strong { display:block; }
.tvc-suggest-theme-locked small,.tvc-suggest-theme-choice small { color:var(--s-muted); font-size:12px; }
.tvc-suggest-theme-locked b { margin-left:auto; color:var(--s-red); font:500 11px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.tvc-suggest-theme-choice strong { font-size:12px; }
.tvc-suggest-theme-choice small { margin-left:auto; }
.tvc-suggest-media { margin:2px 0 18px; }
.tvc-suggest-media-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tvc-suggest-media-head strong { font-size:13px; font-weight:600; }
.tvc-suggest-media-head p { margin:4px 0 0; color:var(--s-muted); font-size:12px; }
.tvc-suggest-media-actions { display:flex; align-items:center; gap:7px; flex:0 0 auto; }
.tvc-suggest-plus {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid var(--s-line);
  border-radius:50%;
  background:var(--s-panel);
  color:var(--s-ink);
  font-size:21px;
  cursor:pointer;
}
.tvc-suggest-expand-media {
  display:grid;
  width:34px;
  height:34px;
  padding:0;
  place-items:center;
  border:1px solid var(--s-line);
  border-radius:50%;
  background:var(--s-panel);
  color:var(--s-muted);
  cursor:pointer;
}
.tvc-suggest-expand-media:hover { color:var(--s-ink); background:var(--s-soft); }
.tvc-suggest-expand-media svg { display:block; width:15px; height:15px; }
.tvc-suggest-done-media {
  min-height:34px;
  border:1px solid var(--s-line);
  border-radius:999px;
  padding:6px 12px;
  background:var(--s-panel);
  color:var(--s-ink);
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}
.tvc-suggest-done-media:hover { border-color:var(--s-red); color:var(--s-red); }
.tvc-suggest-media-menu { display:grid; gap:7px; margin-top:11px; }
.tvc-suggest-media-menu button {
  display:grid;
  grid-template-columns:34px 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  gap:2px 10px;
  width:100%;
  border:1px solid var(--s-line);
  border-radius:7px;
  padding:9px 11px;
  background:var(--s-panel);
  color:var(--s-ink);
  text-align:left;
  cursor:pointer;
}
.tvc-suggest-media-menu button > span { grid-row:1/3; display:grid; place-items:center; width:32px; height:32px; border-radius:6px; background:var(--s-soft); font-size:17px; }
.tvc-suggest-media-menu button strong { font-size:13px; font-weight:600; }
.tvc-suggest-media-menu button small { color:var(--s-muted); font-size:12px; }
.tvc-suggest-media-method { margin-top:12px; padding:12px; border:1px solid var(--s-line); border-radius:7px; background:var(--s-soft); scroll-margin-block:14px; }
.tvc-suggest-method-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }
.tvc-suggest-method-head strong { font-size:13px; }
.tvc-suggest-spotify-heading { display:flex; align-items:center; gap:7px; }
.tvc-suggest-spotify-mark { display:block; width:18px; height:18px; flex:0 0 18px; }
.tvc-suggest-method-head button { border:0; background:none; color:var(--s-red); font-size:12px; cursor:pointer; }
.tvc-suggest-outline {
  margin-top:9px;
  border:1px solid var(--s-line);
  border-radius:6px;
  padding:8px 11px;
  background:var(--s-panel);
  color:var(--s-ink);
  font-size:12px;
  font-weight:650;
  cursor:pointer;
}
.tvc-suggest-dropzone {
  display:grid;
  justify-items:center;
  gap:6px;
  margin-top:9px;
  border:1px dashed var(--s-line);
  border-radius:7px;
  padding:18px 12px;
  background:var(--s-panel);
  cursor:pointer;
}
.tvc-suggest-dropzone strong { font-size:13px; }
.tvc-suggest-dropzone small { color:var(--s-muted); font-size:12px; text-align:center; }
.tvc-suggest-search-results { display:grid; max-height:min(250px,32vh); overflow:auto; margin-top:8px; overscroll-behavior:contain; scrollbar-width:thin; }
.tvc-suggest-result {
  display:grid;
  grid-template-columns:36px 1fr auto;
  align-items:center;
  gap:9px;
  padding:7px 0;
  border-top:1px solid var(--s-line);
}
.tvc-suggest-result img,.tvc-suggest-result-art { display:grid; place-items:center; width:36px; height:36px; border-radius:4px; object-fit:cover; background:var(--s-soft-raised); }
.tvc-suggest-result-art { font-size:16px; }
.tvc-suggest-result strong,.tvc-suggest-result small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tvc-suggest-result strong { font-size:12px; }
.tvc-suggest-result small { margin-top:3px; color:var(--s-muted); font-size:11px; text-transform:none; }
.tvc-suggest-result button { border:1px solid var(--s-line); border-radius:6px; padding:7px 11px; background:var(--s-panel); color:var(--s-ink); font-size:12px; font-weight:600; cursor:pointer; }
.tvc-suggest-result button[aria-pressed="true"] { border-color:var(--s-red); color:var(--s-red); }
.tvc-suggest-attachments { display:grid; gap:6px; margin-top:10px; }
.tvc-suggest-attachment {
  display:grid;
  grid-template-columns:34px 1fr 30px;
  align-items:center;
  gap:9px;
  padding:7px;
  border:1px solid var(--s-line);
  border-radius:6px;
  background:var(--s-panel);
}
.tvc-suggest-attachment img,.tvc-suggest-attachment > span { display:grid; place-items:center; width:34px; height:34px; border-radius:4px; object-fit:cover; background:var(--s-soft); font-size:16px; }
.tvc-suggest-attachment strong,.tvc-suggest-attachment small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tvc-suggest-attachment strong { font-size:12px; font-weight:600; }
.tvc-suggest-attachment small { margin-top:2px; color:var(--s-muted); font-size:11px; text-transform:none; }
.tvc-suggest-attachment button { width:28px; height:28px; border:0; border-radius:50%; background:var(--s-soft); color:var(--s-ink); font-size:17px; cursor:pointer; }
.tvc-suggest-message { margin:10px 0 0; padding:10px 12px; border-radius:6px; background:var(--s-success-bg); color:var(--s-success-ink); font-size:12px; }
.tvc-suggest-message.is-error { background:var(--s-error-bg); color:var(--s-error-ink); }
.tvc-suggest-message[hidden] { display:none; }
.tvc-suggest-footer {
  position:sticky;
  bottom:0;
  padding:13px 26px 18px;
  border-top:1px solid var(--s-line);
  background:var(--s-bg);
}
.tvc-suggest-submit {
  width:100%;
  min-height:46px;
  border:0;
  border-radius:7px;
  background:var(--s-action);
  color:#fff;
  font:600 14px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;
}
.tvc-suggest-submit:disabled { opacity:.62; cursor:wait; }
.tvc-suggest-footer p { margin:8px 0 0; color:var(--s-muted); font-size:11px; line-height:1.4; text-align:center; }
.tvc-suggest-sr-only {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
@media(max-width:600px) {
  .tvc-suggest-dialog {
    position:fixed;
    inset:auto 0 0;
    width:100%;
    max-width:100%;
    height:min(92vh,900px);
    height:min(var(--tvc-suggest-viewport-height,92dvh),900px);
    max-height:calc(100vh - max(8px,env(safe-area-inset-top,0px)));
    max-height:calc(100dvh - max(8px,env(safe-area-inset-top,0px)));
    margin:0;
    overflow:hidden;
    overscroll-behavior:contain;
    border:0;
    border-radius:18px 18px 0 0;
    box-shadow:0 -15px 50px #17120f25;
  }
  .tvc-suggest-dialog.is-media-expanded { width:100%; max-width:100%; }
  .tvc-suggest-expand-media,.tvc-suggest-done-media { display:none; }
  .tvc-suggest-form { flex:1 1 auto; min-height:0; }
  .tvc-suggest-body {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .tvc-suggest-sheet-grabber { width:42px; height:4px; margin:9px auto 0; border-radius:9px; background:var(--s-line); }
  .tvc-suggest-head { padding:13px 18px 11px; }
  .tvc-suggest-head h2 { font-size:24px; }
  .tvc-suggest-body { padding:15px 18px 20px; }
  .tvc-suggest-footer { padding:11px 18px max(14px,env(safe-area-inset-bottom)); }
  .tvc-suggest-context { grid-template-columns:34px 1fr auto; gap:8px; padding:9px; }
  .tvc-suggest-context-emoji,.tvc-suggest-context-source { width:34px; height:34px; }
  .tvc-suggest-dialog.is-spotify-workspace {
    width:100%;
    max-width:100vw;
    max-height:calc(100dvh - max(6px,env(safe-area-inset-top,0px)));
    border-radius:16px 16px 0 0;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-body {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    padding:10px 16px 0;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-body > :not(#tvc-suggest-media-workspace):not(.tvc-suggest-message) {
    display:none!important;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-body > .tvc-suggest-message:not([hidden]) {
    display:block;
    flex:0 0 auto;
    margin:8px 0;
  }
  .tvc-suggest-dialog.is-spotify-workspace #tvc-suggest-media-workspace {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-height:0;
    min-width:0;
    overflow:hidden;
    margin:0;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-media-head,
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-attachments { display:none; }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-media-method {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-height:0;
    min-width:0;
    overflow:hidden;
    margin:0;
    padding:0;
    border:0;
    background:transparent;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-spotify-head {
    display:grid;
    flex:0 0 auto;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    gap:3px 10px;
    margin:0 0 9px;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-spotify-heading {
    grid-column:1;
    grid-row:1;
    min-width:0;
    font-size:15px;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-selected-count {
    grid-column:1;
    grid-row:2;
    color:var(--s-muted);
    font-size:12px;
    line-height:1.35;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-spotify-head button {
    grid-column:2;
    grid-row:1 / span 2;
    align-self:center;
    min-height:36px;
    border:1px solid var(--s-line);
    border-radius:999px;
    padding:7px 11px;
    background:var(--s-panel);
    color:var(--s-ink);
    font-size:12px;
    white-space:nowrap;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-spotify-query {
    box-sizing:border-box;
    flex:0 0 auto;
    width:100%;
    min-width:0;
    min-height:48px;
    margin:0 0 9px;
    padding:11px 13px;
    border-radius:8px;
    background:var(--s-panel);
    font-size:16px;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-search-results {
    display:grid;
    flex:1 1 auto;
    grid-auto-rows:max-content;
    align-content:start;
    min-height:0;
    min-width:0;
    max-height:none;
    overflow-x:hidden;
    overflow-y:auto;
    margin:0;
    border-top:1px solid var(--s-line);
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-result {
    box-sizing:border-box;
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:10px;
    width:100%;
    min-width:0;
    padding:10px 0;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-result img,
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-result-art {
    width:48px;
    height:48px;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-result > span:not(.tvc-suggest-result-art) {
    min-width:0;
    overflow:hidden;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-result strong { font-size:14px; }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-result small { font-size:12px; }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-result button {
    box-sizing:border-box;
    min-width:64px;
    min-height:40px;
    padding:8px 10px;
    white-space:nowrap;
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-footer { display:none!important; }
  .tvc-suggest-spotify-footer { display:none; }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-spotify-footer {
    display:flex;
    flex:0 0 auto;
    padding:10px 18px max(14px,env(safe-area-inset-bottom));
    border-top:1px solid var(--s-line);
    background:var(--s-bg);
  }
  .tvc-suggest-dialog.is-spotify-workspace .tvc-suggest-spotify-footer button {
    width:100%;
    min-height:48px;
    border:0;
    border-radius:8px;
    background:var(--s-action);
    color:#fff;
    font:600 14px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    cursor:pointer;
  }
}
