/* =========================================================
   Shared components
   ========================================================= */

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 13px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 14px 14px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.stat-ico {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  flex: 0 0 auto;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.stat-ico .icon { width: 18px; height: 18px; }
.stat-ico.is-violet { background: var(--violet-soft); color: var(--violet-ink); }
.stat-ico.is-blue { background: var(--blue-soft); color: var(--blue); }
.stat-ico.is-amber { background: var(--amber-soft); color: var(--amber); }
.stat-copy { min-width: 0; }
.stat-copy span { display: block; color: var(--text-3); font-size: 10px; font-weight: 550; letter-spacing: .01em; }
.stat-copy strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 1px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-copy strong em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }

/* Section head */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
}
.section-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.section-title-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.section-title-icon .icon { width: 15px; height: 15px; }
.section-title h2 { font-size: 14px; font-weight: 650; letter-spacing: -.025em; }
.section-title p { margin-top: 1px; color: var(--text-3); font-size: 10.5px; }
.section-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.section-body { padding: 0 18px 18px; }

/* Project rows */
.project-list { display: flex; flex-direction: column; }
.project-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 11px 17px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background .16s;
}
.project-row:hover { background: var(--surface-2); }
.project-row:focus-visible { outline-offset: -2px; }
.project-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary-soft), var(--surface-2));
  color: var(--primary-ink);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
}
.project-mark .icon { width: 19px; height: 19px; }
.project-mark.is-violet { background: linear-gradient(145deg, var(--violet-soft), var(--surface-2)); color: var(--violet-ink); border-color: color-mix(in srgb, var(--violet) 20%, var(--line)); }
.project-mark.is-blue { background: linear-gradient(145deg, var(--blue-soft), var(--surface-2)); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 20%, var(--line)); }
.project-mark.is-amber { background: linear-gradient(145deg, var(--amber-soft), var(--surface-2)); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 22%, var(--line)); }
.project-main { min-width: 0; }
.project-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.project-name strong { font-size: 12.5px; font-weight: 650; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-name .badge { height: 18px; font-size: 9px; }
.project-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--text-3); font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.project-meta span { overflow: hidden; text-overflow: ellipsis; }
.project-meta i { font-style: normal; opacity: .45; }
.project-tags { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 190px; }
.project-tags .tag { font-size: 9px; height: 19px; padding: 0 6px; }
.project-actions { display: flex; align-items: center; gap: 1px; opacity: .42; transition: opacity .16s; }
.project-row:hover .project-actions, .project-row:focus-within .project-actions { opacity: 1; }
.project-actions .icon-btn { width: 29px; height: 29px; border-radius: 7px; }
.project-actions .icon-btn .icon { width: 15px; height: 15px; }
.project-date { color: var(--text-3); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 9.5px;
  font-weight: 550;
  white-space: nowrap;
}
.tag-primary { background: var(--primary-soft); border-color: transparent; color: var(--primary-ink); }
.tag-violet { background: var(--violet-soft); border-color: transparent; color: var(--violet-ink); }
.tag-amber { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.tag-blue { background: var(--blue-soft); border-color: transparent; color: var(--blue); }

/* Search */
.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%;
  height: 33px;
  padding: 0 10px 0 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 11px;
  outline: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.search input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.search input::placeholder { color: var(--text-3); }
.search.is-sm { width: 164px; }

/* Drop zone */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 104px;
  padding: 11px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.is-over { transform: scale(1.006); }
.dropzone-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary-ink);
  box-shadow: var(--shadow-sm);
}
.dropzone-ico .icon { width: 17px; height: 17px; }
.dropzone strong { font-size: 11.5px; font-weight: 600; }
.dropzone p { font-size: 10px; color: var(--text-3); line-height: 1.55; }
.dropzone .link { color: var(--primary-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dropzone.is-wide { min-height: 142px; }
.dropzone.is-wav { border-color: color-mix(in srgb, var(--violet) 35%, var(--line-strong)); }
.dropzone.is-wav:hover, .dropzone.is-wav.is-over { border-color: var(--violet); background: var(--violet-soft); }
.dropzone.is-wav .dropzone-ico { color: var(--violet-ink); }
.is-wav-page .eyebrow, .is-wav-page .section-title-icon { color: var(--violet-ink); }
.is-wav-page .eyebrow::before { background: var(--violet); }

/* Form */
.form-stack { display: flex; flex-direction: column; gap: 8px; }
.folder-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s;
}
.folder-pick:hover { border-color: var(--line-strong); }
.folder-pick .icon { color: var(--primary); width: 17px; height: 17px; }
.folder-pick span { flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-pick span.has-path { color: var(--text); font-weight: 500; }
.folder-pick .badge { flex: 0 0 auto; }
.check-list { display: flex; flex-direction: column; gap: 9px; }
.check-list .check { padding: 7px 8px; margin: -2px -4px; border-radius: 7px; transition: background .16s; }
.check-list .check:hover { background: var(--surface-2); }
.check-list .check-text strong { font-size: 11.5px; }
.check-list .check-text em { font-style: normal; font-size: 10px; color: var(--text-3); }
.classify-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.classify-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.classify-label { flex: 0 0 auto; color: var(--text-3); font-size: 9.5px; font-weight: 600; }
.classify-count { flex: 0 0 auto; margin-left: auto; color: var(--text-3); font-family: var(--font-mono); font-size: 9px; font-variant-numeric: tabular-nums; }
.classify-chips { display: flex; flex: 1; flex-wrap: wrap; gap: 4px 5px; min-width: 0; }
.classify-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 9.5px;
  line-height: 1;
}
.classify-chip i { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--dot, var(--primary)); }
.classify-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classify-chip b { color: var(--text); font-weight: 700; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.classify-chip.is-off { opacity: .42; }
.classify-chip.is-off span { text-decoration: line-through; text-decoration-color: var(--text-3); }

/* Recent file chips */
.file-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  height: 23px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 9.5px;
}
.file-chip .icon { width: 11px; height: 11px; color: var(--primary); }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip em { font-style: normal; color: var(--text-3); font-family: var(--font-mono); font-size: 8.5px; }

/* Data table */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 12px;
  flex-wrap: wrap;
}
.table-meta { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 10.5px; }
.table-meta strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.table-scroll { overflow: auto; border-top: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 11px; }
table.data th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 34px;
  padding: 0 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}
table.data td {
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.data td.name { color: var(--text); font-weight: 500; max-width: 340px; }
table.data td.name .cell-main { display: flex; align-items: center; gap: 7px; min-width: 0; }
table.data td.name .cell-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data .cell-ico { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); flex: 0 0 auto; }
table.data .cell-ico .icon { width: 11px; height: 11px; }
table.data .folder { display: flex; align-items: center; gap: 6px; max-width: 230px; color: var(--text-3); font-size: 10px; }
table.data .folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data .folder .icon { width: 13px; height: 13px; flex: 0 0 auto; }

.status-pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 9px; font-weight: 600; background: var(--surface-3); color: var(--text-3); }
.status-pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-pill.is-ok { background: var(--primary-soft); color: var(--primary-ink); }
.status-pill.is-run { background: var(--violet-soft); color: var(--violet-ink); }
.status-pill.is-err { background: var(--danger-soft); color: var(--danger); }

/* Audio / file queue */
.file-queue { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.queue-file {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border-bottom: 1px solid var(--line);
  transition: background .16s;
}
.queue-file:last-child { border-bottom: 0; }
.queue-file:hover { background: var(--surface-2); }
.queue-file-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-ink); }
.queue-file-ico .icon { width: 16px; height: 16px; }
.queue-file-main { min-width: 0; }
.queue-file-main strong { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-file-main p { margin-top: 2px; color: var(--text-3); font-size: 9.5px; display: flex; gap: 5px; align-items: center; }
.queue-file-main p i { font-style: normal; opacity: .5; }
.queue-file-side { display: flex; align-items: center; gap: 7px; }
.queue-file-side .mini-progress { width: 58px; }
.mini-progress { height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--violet); transition: width .25s; }
.queue-file .icon-btn { width: 27px; height: 27px; border-radius: 6px; }
.queue-file .icon-btn .icon { width: 14px; height: 14px; }
.queue-file.is-done .queue-file-ico { background: var(--primary-soft); color: var(--primary); }
.queue-file.is-error .queue-file-ico { background: var(--danger-soft); color: var(--danger); }
.dl-btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 9.5px; color: var(--primary-ink); background: var(--surface); }
.dl-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.dl-btn .icon { width: 12px; height: 12px; }

/* Conversion summary card */
.summary-card { padding: 18px; }
.summary-ring { display: flex; align-items: center; gap: 14px; }
.ring {
  --p: 0;
  position: relative;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--violet) calc(var(--p) * 1%), var(--surface-3) 0);
  display: grid;
  place-items: center;
}
.ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ring-copy { min-width: 0; }
.ring-copy strong { display: block; font-size: 15px; letter-spacing: -.025em; font-weight: 650; }
.ring-copy span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--text-3); }
.summary-list { display: flex; flex-direction: column; gap: 0; margin: 14px 0; border-top: 1px solid var(--line); }
.summary-list div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--text-3); }
.summary-list div:last-child { border-bottom: 0; }
.summary-list strong { color: var(--text); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-note { display: flex; gap: 6px; margin-top: 10px; padding: 8px 9px; border-radius: 7px; background: var(--violet-soft); color: var(--violet-ink); font-size: 9.5px; line-height: 1.55; }
.summary-note .icon { width: 12px; height: 12px; margin-top: 1px; flex: 0 0 auto; }

/* Week chart / activity */
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 16px; margin-top: 16px; }
.week-chart { display: flex; align-items: flex-end; gap: 9px; height: 116px; padding: 4px 2px 0; }
.week-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.week-col i {
  display: block;
  width: 100%;
  max-width: 26px;
  min-height: 4px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, var(--primary-2), color-mix(in srgb, var(--primary) 32%, var(--surface)));
  transition: height .5s var(--ease-out), filter .16s;
}
.week-col:hover i { filter: brightness(1.08); }
.week-col span { font-size: 8.5px; color: var(--text-3); }
.week-col em { font-style: normal; font-family: var(--font-mono); font-size: 8px; color: var(--text-3); opacity: .75; }
.week-summary { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
.week-summary strong { font-size: 21px; letter-spacing: -.04em; font-weight: 680; }
.week-summary span { font-size: 10px; color: var(--text-3); }

.activity-list { display: flex; flex-direction: column; }
.activity-row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-ico { width: 25px; height: 25px; border-radius: 7px; background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; flex: 0 0 auto; }
.activity-ico .icon { width: 13px; height: 13px; }
.activity-copy { flex: 1; min-width: 0; }
.activity-copy strong { display: block; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-copy span { display: block; margin-top: 2px; font-size: 9px; color: var(--text-3); }
.activity-state { font-size: 8.5px; color: var(--text-3); padding-top: 2px; }
.activity-state.is-ok { color: var(--primary); }
.activity-state.is-err { color: var(--danger); }

/* Notice / hint */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 10px;
  line-height: 1.6;
}
.notice .icon { width: 13px; height: 13px; color: var(--primary); flex: 0 0 auto; margin-top: 1px; }
.notice.is-warn { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.notice.is-warn .icon { color: var(--amber); }

/* Project detail modal */
.detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.detail-stat { padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.detail-stat span { display: block; font-size: 9px; color: var(--text-3); }
.detail-stat strong { display: block; margin-top: 1px; font-size: 13px; font-weight: 650; letter-spacing: -.02em; }
.group-block { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: 9px; }
.group-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.group-block-head strong { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; }
.group-block-head strong .icon { width: 13px; height: 13px; color: var(--primary); }
.group-block-head span { font-size: 9px; color: var(--text-3); font-family: var(--font-mono); }
.detail-files { max-height: 200px; overflow: auto; }
.detail-file { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-bottom: 1px solid var(--line); font-size: 10px; }
.detail-file:last-child { border-bottom: 0; }
.detail-file .icon { width: 13px; height: 13px; color: var(--text-3); }
.detail-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-file em { font-style: normal; color: var(--text-3); font-family: var(--font-mono); font-size: 9px; }
.detail-empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 10px; }

/* Skeleton */
.skeleton { border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400px 100%; animation: shimmer 1.2s infinite linear; }

/* Utilities & small states */
.w-full { width: 100%; }
.text-btn { border: 0; background: none; color: var(--primary-ink); font-size: 9.5px; font-weight: 600; padding: 2px 0; cursor: pointer; }
.text-btn:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.file-chip.is-total { background: var(--primary-soft); border-color: transparent; color: var(--primary-ink); }
.file-chip.is-total .icon { color: var(--primary-ink); }
.file-chip.is-total em { color: var(--primary-ink); opacity: .75; }
.file-chip.is-more { color: var(--text-3); border-style: dashed; }
.file-chip-clear { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-3); cursor: pointer; }
.file-chip-clear:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.file-chip-clear .icon { width: 11px; height: 11px; }

.spin-dot { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; border-top-color: transparent; display: inline-block; animation: spin .8s linear infinite; }
.is-shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
.is-flash { animation: card-flash 1s ease; }
.is-spinning { animation: spin .7s linear; }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
@keyframes card-flash {
  0%, 100% { box-shadow: var(--shadow-sm); }
  30% { box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-md); }
}

/* Duration table extras */
.switch-label { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.source-tools .switch { gap: 7px; }
.source-tools .switch-track { width: 32px; height: 18px; }
.source-tools .switch-track::after { width: 12px; height: 12px; }
.source-tools .switch input:checked + .switch-track::after { transform: translateX(14px); }
table.data tr.group-row td {
  height: 32px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--text-3);
}
table.data tr.group-row:hover td { background: var(--surface-2); }
table.data tr.group-row .group-name { max-width: 100%; }
table.data tr.group-row .group-name strong { max-width: 320px; font-size: 10.5px; color: var(--text); }
table.data tr.group-row .group-name em { margin-left: 2px; }
.row-actions { display: flex; align-items: center; gap: 4px; }
.row-actions .icon-btn { width: 23px; height: 23px; border-radius: 5px; opacity: .55; }
.row-actions .icon-btn .icon { width: 12px; height: 12px; }
.row-actions .icon-btn:hover { opacity: 1; }
.row-actions .icon-btn.is-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  display: inline-block;
  animation: spin .7s linear infinite;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
