:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: #111722;
  --panel-soft: #151c29;
  --panel-strong: #0d121b;
  --text: #f5f7fb;
  --muted: #9aa6b7;
  --line: #263244;
  --line-strong: #344258;
  --accent: #9130d1;
  --accent-strong: #a855f7;
  --accent-soft: #6d28d9;
  --accent-ink: #fff7ff;
  --blue: #818cf8;
  --danger: #fb7185;
  --success: #86efac;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(145, 48, 209, 0.22), transparent 30%),
    radial-gradient(circle at 84% 4%, rgba(129, 140, 248, 0.13), transparent 28%),
    linear-gradient(180deg, #0b1018 0%, var(--bg) 52%, #06080d 100%);
  color: var(--text);
}

button,
input,
select,
a {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px 18px;
}

.workspace {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.site-footer {
  width: min(1040px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #748196;
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #a9b4c5;
  font-weight: 700; /* L-02: was 750 — non-standard value; browsers silently round to 700 without Inter Variable font axis */
  text-decoration: none;
}

.site-footer a:hover {
  color: #e9d5ff;
  text-decoration: underline;
}

.footer-repository {
  flex: 0 0 auto;
}

.intro {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.brand-mark {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(145, 48, 209, 0.36);
  border-radius: 999px;
  background: rgba(145, 48, 209, 0.11);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(145, 48, 209, 0.45));
}

.brand-mark p,
.brand-mark span {
  margin: 0;
}

.brand-mark p {
  color: #f6edff;
  font-weight: 900;
  line-height: 1;
}

.brand-mark span {
  display: block;
  margin-top: 3px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.7vw, 3.85rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.brand-visual {
  position: relative;
  width: min(100%, 520px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(145, 48, 209, 0.24);
  border-radius: 8px;
  background: rgba(10, 12, 20, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.brand-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-visual::after {
  content: none;
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.brand-caption {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 9%;
  width: min(88%, 440px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.92),
    0 0 22px rgba(145, 48, 209, 0.5);
  transform: translateX(-50%);
}

.brand-caption::before {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 auto 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
}

.brand-caption span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-strong);
  font-size: clamp(0.74rem, 1.6vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(145, 48, 209, 0.55);
}

.lead {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.format-strip span {
  display: inline-flex;
  min-width: 64px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d7dee9;
  font-size: 0.78rem;
  font-weight: 850;
}

.privacy-note {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(145, 48, 209, 0.34);
  border-radius: 8px;
  background: radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.2), transparent 48%), rgba(145, 48, 209, 0.1);
  color: #f2e7ff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.privacy-mascot {
  display: block;
  width: 118px;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4));
}

.privacy-note strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 1rem;
}

.privacy-note p {
  margin: 0;
  color: #c9bdd7;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.privacy-note ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-note li {
  padding: 5px 8px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  color: #e9d5ff;
  font-size: 0.68rem;
  font-weight: 850;
}

.sponsor-button {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid rgba(255, 105, 180, 0.38);
  border-radius: 7px;
  background: rgba(219, 61, 140, 0.12);
  color: #fbcfe8;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sponsor-button span {
  color: #f472b6;
  font-size: 1rem;
  line-height: 1;
}

.sponsor-button:hover {
  border-color: rgba(244, 114, 182, 0.72);
  background: rgba(219, 61, 140, 0.2);
  transform: translateY(-1px);
}

.sponsor-button:focus-visible {
  outline: 3px solid rgba(244, 114, 182, 0.28);
  outline-offset: 3px;
}

.converter-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.drop-zone {
  min-height: 230px;
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(145, 48, 209, 0.12), transparent 46%),
    var(--panel-strong);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.drop-zone:not(.is-disabled):hover,
.drop-zone.is-dragging {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(145, 48, 209, 0.2), rgba(129, 140, 248, 0.05)),
    var(--panel-strong);
  box-shadow: 0 0 0 4px rgba(145, 48, 209, 0.14);
  transform: translateY(-1px);
}

.drop-zone.is-disabled {
  cursor: wait;
  opacity: 0.65;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-icon {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(145, 48, 209, 0.58);
  border-radius: 50%;
  background: rgba(145, 48, 209, 0.18);
  color: var(--accent);
}

.drop-icon::before,
.drop-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.drop-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.drop-title {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 850;
}

.drop-hint,
.file-label,
.file-size,
#status-message {
  color: var(--muted);
}

.file-card {
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.file-summary {
  min-width: 0;
}

.clear-button,
.file-list button {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.clear-button:hover,
.file-list button:hover {
  color: var(--danger);
}

.clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.file-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  max-height: 210px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  list-style: none;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.file-list li span {
  min-width: 0;
}

.file-list strong,
.file-list small {
  display: block;
}

.file-list strong {
  overflow: hidden;
  color: #eef2ff;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list small {
  margin-top: 3px;
  color: var(--muted);
}

.file-list em {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.preview-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.preview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.preview-heading h2 {
  max-width: 290px;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-heading > span {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.preview-panel video {
  display: block;
  width: 100%;
  max-height: 260px;
  border-radius: 6px;
  background: #05070b;
}

.crop-container {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  line-height: 0;
}

.crop-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.crop-shade {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.crop-shade-top {
  top: 0;
  left: 0;
  right: 0;
}

.crop-shade-left {
  bottom: 0;
  left: 0;
}

.crop-shade-right {
  bottom: 0;
  right: 0;
}

.crop-shade-bottom {
  bottom: 0;
  left: 0;
  right: 0;
}

.crop-box {
  position: absolute;
  z-index: 6;
  border: 2px solid var(--accent-strong);
  cursor: move;
  pointer-events: auto;
}

.crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent-strong);
  border: 1px solid rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  z-index: 7;
}

.crop-handle-nw {
  top: -6px;
  left: -6px;
  cursor: nw-resize;
}

.crop-handle-n {
  top: -6px;
  left: 50%;
  margin-left: -6px;
  cursor: n-resize;
}

.crop-handle-ne {
  top: -6px;
  right: -6px;
  cursor: ne-resize;
}

.crop-handle-e {
  top: 50%;
  margin-top: -6px;
  right: -6px;
  cursor: e-resize;
}

.crop-handle-se {
  bottom: -6px;
  right: -6px;
  cursor: se-resize;
}

.crop-handle-s {
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
  cursor: s-resize;
}

.crop-handle-sw {
  bottom: -6px;
  left: -6px;
  cursor: sw-resize;
}

.crop-handle-w {
  top: 50%;
  margin-top: -6px;
  left: -6px;
  cursor: w-resize;
}

.crop-dimensions {
  position: absolute;
  z-index: 8;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #e0e0e0;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.crop-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.crop-action-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.crop-action-button:hover {
  border-color: var(--accent-strong);
  background: rgba(110, 143, 74, 0.1);
  color: var(--text);
}

.crop-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.preview-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.preview-meta-bar .meta-tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  white-space: nowrap;
}

.frame-nav {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  gap: 4px;
}

.frame-nav-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #ccc;
  cursor: pointer;
  font-size: 0.65rem;
  line-height: 1;
  transition: background 140ms ease, color 140ms ease;
}

.frame-nav-button:hover {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.frame-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.preview-tools {
  position: relative;
  margin-top: 8px;
}

.timeline-canvas,
.waveform-canvas {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.timeline-canvas {
  height: 48px;
}

.waveform-canvas {
  height: 48px;
}

.file-label,
.file-name,
.file-size {
  margin: 0;
}

.file-label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.file-name {
  max-width: 28rem;
  overflow-wrap: anywhere;
  color: #f7f9fc;
  font-weight: 850;
}

.file-size {
  flex: 0 0 auto;
  align-self: end;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.mp4-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(129, 140, 248, 0.24);
  border-radius: 8px;
  background: rgba(129, 140, 248, 0.08);
  color: #cfd6e6;
  font-size: 0.92rem;
  line-height: 1.45;
}

.gif-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.08);
  color: #d8c8e9;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mp4-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.setting-select,
.time-grid input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--panel-strong);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.setting-select {
  padding: 0 40px 0 13px;
  cursor: pointer;
}

.setting-select:focus,
.time-grid input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(145, 48, 209, 0.14);
}

.trim-settings {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.time-grid label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.time-grid input {
  padding: 0 13px;
}

.time-grid input::placeholder {
  color: #657186;
}

.setting-help {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: #dfe6f3;
  font-weight: 850;
}

.mode-fieldset {
  margin-bottom: 18px;
}

.mode-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode-control label:nth-child(3) {
  grid-column: 1 / -1;
}

.mode-control label {
  min-width: 0;
}

.mode-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-control span {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.mode-control strong,
.mode-control small {
  display: block;
}

.mode-control strong {
  color: #eef2ff;
  font-size: 0.94rem;
}

.mode-control small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.mode-control span:hover {
  border-color: rgba(145, 48, 209, 0.52);
  background: rgba(145, 48, 209, 0.1);
}

.mode-control input:checked + span {
  border-color: rgba(168, 85, 247, 0.74);
  background:
    linear-gradient(180deg, rgba(145, 48, 209, 0.22), rgba(145, 48, 209, 0.08)),
    var(--panel-strong);
  box-shadow: 0 10px 28px rgba(145, 48, 209, 0.18);
}

.mode-control input:checked + span small {
  color: #cfd6e6;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.segmented-control label {
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.segmented-control span:hover {
  color: #e5edf8;
  background: rgba(255, 255, 255, 0.045);
}

.segmented-control input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(145, 48, 209, 0.26);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.cancel-button,
.download-button,
.open-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 0;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  flex: 1 1 210px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(145, 48, 209, 0.28);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  box-shadow: none;
}

.cancel-button {
  flex: 1 1 180px;
  border: 1px solid rgba(251, 113, 133, 0.42);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  cursor: pointer;
}

.cancel-button:hover {
  background: rgba(251, 113, 133, 0.18);
}

.cancel-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.download-button,
.open-button {
  flex: 1 1 190px;
  background: var(--blue);
  color: #07111f;
}

.download-button:hover,
.open-button:hover {
  background: #93c5fd;
}

.status-area {
  margin-top: 20px;
  padding-top: 2px;
}

.results-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.results-heading h2 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.results-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.results-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.results-tools > span {
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 850;
}

.download-all-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 6px;
  background: rgba(129, 140, 248, 0.12);
  color: #c7d2fe;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.download-all-button:hover {
  background: rgba(129, 140, 248, 0.2);
}

.download-all-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.results-list {
  display: grid;
  gap: 9px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(134, 239, 172, 0.2);
  border-radius: 8px;
  background: rgba(134, 239, 172, 0.055);
}

.result-card.has-error {
  grid-template-columns: 1fr;
  border-color: rgba(251, 113, 133, 0.24);
  background: rgba(251, 113, 133, 0.055);
}

.result-card strong,
.result-card span {
  display: block;
  overflow-wrap: anywhere;
}

.result-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-card a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--blue);
  color: #07111f;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: #080c13;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width 180ms ease;
}

#status-message {
  min-height: 1.5em;
  margin: 11px 0 0;
  line-height: 1.45;
}

.error-message {
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 850;
  line-height: 1.45;
}

.is-hidden {
  display: none !important;
}

.reset-floating-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 999px;
  background: rgba(17, 23, 34, 0.92);
  color: #f3e8ff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.reset-floating-button span {
  color: var(--accent-strong);
  font-size: 1.25rem;
  line-height: 1;
}

.reset-floating-button:hover {
  border-color: var(--accent-strong);
  background: rgba(35, 24, 50, 0.96);
  transform: translateY(-2px);
}

.reset-floating-button:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.35);
  outline-offset: 3px;
}

.reset-floating-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

@media (max-width: 860px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro {
    min-height: auto;
    padding: 4px 0 0;
  }

  .brand-mark {
    margin-bottom: 16px;
  }

  .converter-panel {
    grid-column: auto;
    grid-row: auto;
  }

  h1 {
    font-size: clamp(1.65rem, 7vw, 2.9rem);
  }

  .brand-visual {
    width: min(100%, 560px);
  }

}

@media (max-width: 580px) {
  .app-shell {
    padding: 20px 12px 82px;
    place-items: start center;
  }

  .reset-floating-button {
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 0 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding-top: 15px;
    line-height: 1.55;
  }

  .lead {
    font-size: 1rem;
  }

  .brand-mark {
    gap: 10px;
    padding-right: 12px;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .brand-caption {
    top: 8%;
    width: 90%;
  }

  .converter-panel {
    padding: 16px;
  }

  .drop-zone {
    min-height: 194px;
    padding: 22px 16px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: 1fr;
  }

  .mode-control {
    grid-template-columns: 1fr;
  }

  .mode-control label:nth-child(3) {
    grid-column: auto;
  }

  .file-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .clear-button {
    grid-row: 1;
    justify-self: end;
  }

  .file-list {
    grid-column: 1;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .results-heading {
    align-items: start;
    flex-direction: column;
  }

  .results-tools {
    width: 100%;
    justify-content: space-between;
  }

  .file-size {
    align-self: start;
  }

  .actions {
    display: grid;
  }

  .privacy-note {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    margin-top: 24px;
    padding: 14px;
  }

  .privacy-mascot {
    width: 82px;
  }

  .sponsor-button {
    width: 100%;
  }

  .primary-button,
  .cancel-button,
  .download-button,
  .open-button {
    width: 100%;
  }
}

/* =====================================================================
   SPRINT 1 — Presets · Loudness · Speed · Save frame
   ===================================================================== */

/* -------------------------------------------------------------------
   Presets bar
   ------------------------------------------------------------------- */

.presets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 16px 0;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.presets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}

.presets-empty-hint {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.preset-pill {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.preset-pill:hover {
  border-color: var(--accent-strong);
}

.preset-apply {
  padding: 4px 11px 4px 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 800;
  font-family: inherit;
  white-space: nowrap;
  color: var(--text-strong);
  transition: background 0.15s;
}

.preset-apply:hover {
  background: rgba(255, 255, 255, 0.05);
}

.preset-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: none;
  border: none;
  border-left: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--muted);
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.preset-delete:hover {
  color: var(--danger);
  background: rgba(255, 100, 100, 0.07);
}

.presets-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.save-preset-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.save-preset-button:hover {
  border-color: var(--accent-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.save-preset-inline {
  display: flex;
  align-items: center;
  gap: 5px;
}

.preset-name-input {
  width: 138px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.preset-name-input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(110, 200, 50, 0.14);
}

.preset-inline-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.preset-confirm-button:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  background: rgba(110, 200, 50, 0.09);
}

.preset-cancel-button:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 100, 100, 0.07);
}

/* -------------------------------------------------------------------
   Loudness toggle  (full-width fieldset in settings grid)
   ------------------------------------------------------------------- */

.settings-full {
  grid-column: 1 / -1;
}

.loudness-toggle {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  user-select: none;
}

/* hide the real checkbox; keep it accessible */
.loudness-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.toggle-thumb {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 23px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  transition: background 0.22s, border-color 0.22s;
}

.toggle-thumb::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.22s, background 0.22s;
}

/* checked state — DOM order: input → .toggle-thumb */
.loudness-toggle input:checked + .toggle-thumb {
  border-color: var(--accent-strong);
  background: rgba(110, 200, 50, 0.22);
}

.loudness-toggle input:checked + .toggle-thumb::after {
  transform: translateX(17px);
  background: var(--accent-strong);
}

.loudness-label strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.3;
}

.loudness-label small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------------
   Save frame button
   ------------------------------------------------------------------- */

.save-frame-bar {
  padding: 10px 0 0;
}

.save-frame-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.save-frame-button::before {
  content: "\25CE"; /* ◎ */
  font-size: 1.05rem;
  line-height: 1;
}

.save-frame-button:hover {
  border-color: var(--accent-strong);
  color: var(--text);
  background: rgba(110, 200, 50, 0.07);
  box-shadow: 0 0 12px rgba(110, 200, 50, 0.1);
}

/* =====================================================================
   SPRINT 2 — Drag & Drop Queue · Share Link · MP4 Audio & Color Filters
   ===================================================================== */

/* -------------------------------------------------------------------
   Drag & Drop queue reordering
   ------------------------------------------------------------------- */

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 0 2px;
  color: var(--muted);
  cursor: grab;
  font-size: 1.1rem;
  line-height: 1;
  user-select: none;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
}

.file-list li:hover .drag-handle {
  opacity: 1;
  color: var(--accent-strong);
}

.file-list li {
  position: relative;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.file-list li.is-dragging {
  opacity: 0.45;
  background: rgba(110, 200, 50, 0.12);
  border: 1px dashed var(--accent-strong);
}

.file-list li.drag-over {
  border-top: 2px solid var(--amber-strong);
  background: rgba(245, 166, 35, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 -4px 12px rgba(245, 166, 35, 0.2);
}

/* -------------------------------------------------------------------
   Share config button
   ------------------------------------------------------------------- */

.share-config-button {
  transition: all 0.2s ease;
}

.share-config-button.is-copied {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  background: rgba(110, 200, 50, 0.16);
  box-shadow: 0 0 10px rgba(110, 200, 50, 0.25);
}

/* =====================================================================
   SPRINT 3 — Subtitles Burn-in · Custom Audio Track · History & Savings
   ===================================================================== */

/* -------------------------------------------------------------------
   Auxiliary File Selectors (.srt subtitles & external audio)
   ------------------------------------------------------------------- */

.aux-files-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.aux-file-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aux-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.aux-file-button:hover {
  border-color: var(--accent-strong);
  color: var(--text-strong);
  background: rgba(110, 200, 50, 0.08);
}

.aux-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.aux-file-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(110, 200, 50, 0.09);
  font-size: 0.76rem;
  color: var(--text-strong);
}

.aux-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aux-file-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}

.aux-file-remove:hover {
  color: var(--danger);
}

/* -------------------------------------------------------------------
   Floating Controls Group
   ------------------------------------------------------------------- */

.floating-controls {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-controls .reset-floating-button {
  position: static;
}

.history-floating-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  font-family: inherit;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.history-floating-button:hover {
  border-color: var(--amber-strong);
  transform: translateY(-2px);
}

.history-badge {
  font-size: 0.78rem;
  color: var(--amber-strong);
}

/* -------------------------------------------------------------------
   History Modal & Savings Dialog
   ------------------------------------------------------------------- */

.history-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.history-modal.is-hidden {
  display: none !important;
}

.history-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.history-dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 2;
}

.history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}

.history-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.history-stats-subtitle {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.history-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
}

.history-close-button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.history-list-container {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.history-empty-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 24px 0;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.history-item-info strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-strong);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-info small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

.savings-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(110, 200, 50, 0.15);
  color: var(--accent-strong);
  border: 1px solid rgba(110, 200, 50, 0.35);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.history-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel-strong);
}

.history-clear-button {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.history-clear-button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

@media (max-width: 580px) {
  .aux-files-grid {
    grid-template-columns: 1fr;
  }

  .floating-controls {
    right: 12px;
    bottom: 12px;
    gap: 6px;
  }

  .history-floating-button,
  .reset-floating-button {
    padding: 0 12px;
    font-size: 0.76rem;
  }
}

/* =====================================================================
   SPRINT 4 — Language Selector (i18n) & User Guide Modal
   ===================================================================== */

/* -------------------------------------------------------------------
   User Utilities Bar (Above Privacy note)
   ------------------------------------------------------------------- */

.user-utilities-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.language-select {
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text-strong);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.language-select:focus,
.language-select:hover {
  border-color: var(--accent-strong);
}

.guide-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--amber-strong);
  font-size: 0.79rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.guide-toggle-button:hover {
  border-color: var(--amber-strong);
  background: rgba(245, 166, 35, 0.1);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------
   User Guide Modal
   ------------------------------------------------------------------- */

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.guide-modal.is-hidden {
  display: none !important;
}

.guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.guide-dialog {
  position: relative;
  width: min(100%, 680px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 2;
}

.guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}

.guide-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-strong);
}

.guide-subtitle {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.guide-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

.guide-close-button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.guide-nav-tabs {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  scrollbar-width: thin;
}

.guide-tab-button {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.guide-tab-button:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
}

.guide-tab-button.is-active {
  border-color: var(--accent-strong);
  background: rgba(110, 200, 50, 0.12);
  color: var(--accent-strong);
}

.guide-content-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.guide-pane {
  display: none;
}

.guide-pane.is-active {
  display: block;
}

.guide-pane h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text-strong);
}

.guide-pane p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text);
}

.guide-quick-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.guide-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.guide-card h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--amber-strong);
}

.guide-card ol,
.guide-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.guide-item-block {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.guide-item-block h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--accent-strong);
}

.guide-item-block p {
  margin: 0;
}

.guide-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.guide-feature-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text);
}

.guide-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--panel-strong);
}

.guide-close-primary {
  padding: 8px 22px;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #0b1a0e;
  font-weight: 900;
  font-size: 0.84rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(110, 200, 50, 0.3);
}

.guide-close-primary:hover {
  background: linear-gradient(180deg, #82e440, #5eb825);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .user-utilities-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .guide-quick-cards {
    grid-template-columns: 1fr;
  }
}




