/* ==========================================================================
   HSTEAM YouTube Panel — mat siyah / beyaz koyu tema
   ========================================================================== */

:root {
  --bg: #08080a;
  --bg-soft: #0d0d10;
  --surface: #121215;
  --surface-2: #17171b;
  --surface-3: #1d1d22;
  --line: #26262c;
  --line-soft: #1c1c21;
  --text: #f4f4f6;
  --text-dim: #a9a9b4;
  --text-mute: #6f6f7b;
  --white: #ffffff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --info: #8ab4ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .9);
  --sidebar-w: 268px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(255,255,255,.18); }
.hidden { display: none !important; }
.muted { color: var(--text-dim); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
a { color: var(--text); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #232329; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33333c; }

/* ============================== GİRİŞ EKRANI ============================== */
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(600px 400px at 90% 110%, rgba(255,255,255,.04), transparent 70%),
    var(--bg);
}
.login-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(600px 400px at 50% 30%, #000, transparent 75%);
}
.login-card {
  position: relative;
  width: 100%; max-width: 400px;
  background: linear-gradient(180deg, rgba(23,23,27,.96), rgba(16,16,19,.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px 24px;
  box-shadow: var(--shadow);
  animation: rise .5s cubic-bezier(.2,.7,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.login-brand { display: flex; gap: 13px; align-items: center; margin-bottom: 24px; }
.login-brand h1 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.login-foot { margin-top: 18px; text-align: center; }

.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px; overflow: hidden;
  background: #0a0a0c;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,.9);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark-lg { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; }
.dim { color: var(--text-mute); font-weight: 500; }

/* ================================ FORMLAR ================================ */
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--text-mute); }
input:focus, select:focus, textarea:focus {
  border-color: #4a4a55;
  background: #0b0b0e;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}
input:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%23a9a9b4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 68px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--text-dim);
  font-size: 12.5px; cursor: pointer; padding: 6px 8px; border-radius: 8px;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 11px 17px;
  border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; font-weight: 550;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .1s, opacity .16s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: #34343d; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--white); color: #0a0a0c; border-color: var(--white); font-weight: 640; }
.btn-primary:hover { background: #e9e9ee; border-color: #e9e9ee; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--err); border-color: rgba(248,113,113,.28); background: rgba(248,113,113,.07); }
.btn-danger:hover { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.4); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

.icon-btn {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim);
  cursor: pointer; font-size: 15px; transition: .16s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.icon-btn svg, .icon-btn i { width: 16px; height: 16px; display: block; }
.icon-btn i svg { width: 16px; height: 16px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 13.5px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  line-height: 1.5;
}
.alert.error { color: #ffd9d9; background: rgba(248,113,113,.09); border-color: rgba(248,113,113,.3); }
.alert.warn { color: #ffeec9; background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.26); }
.alert.ok { color: #d4ffe4; background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.26); }
.alert.info { background: var(--surface-2); color: var(--text-dim); }

/* ============================== UYGULAMA KABUĞU ============================== */
.app { display: flex; min-height: 100dvh; }
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px); z-index: 40; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.app.nav-open .scrim { opacity: 1; pointer-events: auto; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100dvh; z-index: 50;
}
.sidebar-head {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 16px; border-bottom: 1px solid var(--line-soft);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 14.5px; font-weight: 620; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-group { margin-bottom: 18px; }
.nav-title {
  display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute); padding: 0 10px 8px;
}
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 9.5px 11px; margin-bottom: 2px;
  background: transparent; border: 0; border-radius: 10px;
  color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: left; transition: background .14s, color .14s;
}
.nav-item i { width: 18px; height: 18px; display: grid; place-items: center; opacity: .85; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item span { flex: 1; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--surface-2); color: var(--white); }
.nav-item.active i { opacity: 1; }
.badge {
  font-style: normal; font-size: 11px; font-weight: 600;
  background: var(--white); color: #000; border-radius: 999px;
  padding: 1px 7px; min-width: 20px; text-align: center;
}
.badge:empty { display: none; }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line-soft); }
.user-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 4px 2px; }
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: var(--surface-3); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta strong { font-size: 13.5px; font-weight: 580; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  background: rgba(8,8,10,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h2 { font-size: 17px; font-weight: 620; letter-spacing: -.015em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-dim);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74,222,128,.14); }
.pill.bad .dot { background: var(--err); box-shadow: 0 0 0 3px rgba(248,113,113,.14); }
.pill.warn .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(251,191,36,.14); }

.content { padding: 22px; max-width: 1360px; width: 100%; }
.page { animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ================================ KARTLAR ================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-head .sub { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }

.hero {
  background:
    radial-gradient(700px 260px at 8% -30%, rgba(255,255,255,.08), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 7px; }
.hero p { color: var(--text-dim); font-size: 14px; max-width: 70ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.tasks { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.stat {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 17px 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .18s, transform .18s;
}
.stat:hover { border-color: var(--line); transform: translateY(-1px); }
.stat .label { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.stat .value { font-size: 26px; font-weight: 620; letter-spacing: -.03em; line-height: 1.15; }
.stat .value.sm { font-size: 20px; }
.stat .note { font-size: 12px; color: var(--text-dim); }

/* ============================== GÖREV KARTLARI ============================== */
.task-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px;
  cursor: pointer; transition: .18s; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  color: inherit; font: inherit;
}
.task-card:hover { border-color: #33333c; background: var(--surface-2); transform: translateY(-2px); }
.task-card.active { border-color: rgba(255,255,255,.5); background: var(--surface-2); }
.task-card .t-top { display: flex; align-items: center; gap: 11px; }
.task-ic {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  background: var(--surface-3); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--white);
}
.task-ic svg { width: 18px; height: 18px; }
.task-card h4 { font-size: 14.5px; font-weight: 600; }
.task-card .desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--text-dim);
}
.chip.ok { color: var(--ok); border-color: rgba(74,222,128,.25); background: rgba(74,222,128,.08); }
.chip.bad { color: var(--err); border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); }
.chip.white { color: #0a0a0c; background: var(--white); border-color: var(--white); font-weight: 600; }

/* ================================ SEKMELER ================================ */
.tabs { display: inline-flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line-soft); padding: 4px; border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  border: 0; background: transparent; color: var(--text-dim);
  padding: 8px 15px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer;
  transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-2); color: var(--white); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--text-mute); margin-top: 6px; line-height: 1.5; }

.summary {
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: 13px; color: var(--text-dim);
  display: grid; gap: 6px;
}
.summary b { color: var(--text); font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }

/* ================================ TABLOLAR ================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-mute); font-weight: 620; padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.link-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-size: 12.5px; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-3); color: var(--text-dim); white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.s-ok { color: var(--ok); border-color: rgba(74,222,128,.25); background: rgba(74,222,128,.08); }
.status.s-run { color: var(--info); border-color: rgba(138,180,255,.25); background: rgba(138,180,255,.08); }
.status.s-wait { color: var(--warn); border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.08); }
.status.s-err { color: var(--err); border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); }

.progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; min-width: 90px; }
.progress > i { display: block; height: 100%; background: var(--white); border-radius: 999px; transition: width .4s; }

/* ================================ LOGLAR ================================ */
.log-box {
  background: #060607; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px; height: 62vh; min-height: 340px; overflow-y: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
}
.log-line { display: flex; gap: 10px; padding: 3px 6px; border-radius: 6px; }
.log-line:hover { background: rgba(255,255,255,.03); }
.log-line .t { color: var(--text-mute); flex: 0 0 auto; }
.log-line .s { color: var(--text-mute); flex: 0 0 auto; }
.log-line .m { color: var(--text-dim); word-break: break-word; }
.log-line.l-success .m { color: var(--ok); }
.log-line.l-warn .m { color: var(--warn); }
.log-line.l-error .m { color: var(--err); }

/* ================================ GRAFİK ================================ */
.chart { width: 100%; height: 190px; display: block; }
.chart .bar { fill: rgba(255,255,255,.85); transition: fill .16s; }
.chart .bar:hover { fill: #fff; }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart text { fill: var(--text-mute); font-size: 10px; font-family: var(--font); }

.kv { display: grid; gap: 10px; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--text-dim); }
.kv-row b { font-weight: 560; text-align: right; word-break: break-word; }

.empty { text-align: center; padding: 42px 20px; color: var(--text-mute); font-size: 13.5px; }
.list-plain { padding-left: 18px; color: var(--text-dim); font-size: 13.5px; line-height: 1.9; }
.list-plain li::marker { color: var(--text-mute); }
.steps { display: grid; gap: 12px; counter-reset: s; }
.step { display: flex; gap: 13px; align-items: flex-start; }
.step-n {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px;
  background: var(--surface-3); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
}
.step div p { color: var(--text-dim); font-size: 13.5px; }
.step div strong { font-size: 13.5px; }

/* ================================ TOASTS ================================ */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 15px; font-size: 13.5px;
  box-shadow: var(--shadow); animation: toastIn .28s cubic-bezier(.2,.8,.3,1);
  display: flex; gap: 10px; align-items: flex-start;
}
.toast.ok { border-color: rgba(74,222,128,.32); }
.toast.err { border-color: rgba(248,113,113,.32); }
.toast.warn { border-color: rgba(251,191,36,.32); }
.toast .tic { font-size: 15px; line-height: 1.3; }
.toast .tmsg { flex: 1; line-height: 1.5; color: var(--text); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.only-mobile { display: none; }

/* ================================ RESPONSIVE ================================ */
@media (max-width: 980px) {
  .only-mobile { display: grid; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%); transition: transform .26s cubic-bezier(.3,.8,.3,1);
    box-shadow: 24px 0 60px -30px #000;
  }
  .app.nav-open .sidebar { transform: none; }
  .content { padding: 16px; }
  .topbar { padding: 12px 14px; }
  .topbar-title h2 { font-size: 16px; }
  .hero { padding: 20px 18px; }
  .hero h1 { font-size: 19px; }
  .card { padding: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .value { font-size: 21px; }
  .pill span:not(.dot) { display: none; }
  .toasts { right: 12px; left: 12px; bottom: 12px; }
}


/* ============================ EK BİLEŞENLER ============================ */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filter-row select { width: auto; min-width: 180px; }
.search-wrap { position: relative; flex: 1 1 240px; min-width: 200px; }
.search-wrap input { padding-left: 36px; }
.search-ic {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-mute); pointer-events: none;
}
.search-ic svg { width: 16px; height: 16px; display: block; }

.check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim); cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-soft);
  padding: 10px 13px; border-radius: var(--radius-sm); white-space: nowrap;
}
.check input { width: 15px; height: 15px; accent-color: #fff; cursor: pointer; }
.check:hover { color: var(--text); border-color: #34343d; }

.dur-row { display: flex; gap: 8px; }
.dur-row input { flex: 1 1 auto; }
.dur-row select { flex: 0 0 118px; width: 118px; }

.ai-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border-radius: var(--radius); padding: 16px; margin: 2px 0 4px;
}
.ai-head { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; }
.ai-ic {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--white); color: #0a0a0c;
}
.ai-ic svg { width: 17px; height: 17px; }
.ai-head strong { font-size: 14px; font-weight: 600; }
.ai-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .filter-row select, .search-wrap { width: 100%; flex: 1 1 100%; min-width: 0; }
  .check { width: 100%; justify-content: flex-start; }
}

.btn-on { background: var(--white); color: #0a0a0c; border-color: var(--white); font-weight: 600; }
.btn-on:hover { background: #e9e9ee; border-color: #e9e9ee; }

.video-chip {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--bg-soft);
  border-radius: var(--radius-sm); padding: 10px 13px;
  font-size: 13px; line-height: 1.5;
}
.video-chip b { font-weight: 560; }
