/* ==========================================================================
   DockFormats Design System — Light & Dark Utility Tokens
   Zero dependencies, system-first typography, WCAG AA contrast
   ========================================================================== */

:root {
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --bg-muted: #f3f4f6;
  --bg-code: #f1f5f9;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: rgba(29, 78, 216, 0.08);
  --primary-contrast: #ffffff;

  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.1);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.09);

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(17, 24, 39, 0.08), 0 2px 6px -1px rgba(17, 24, 39, 0.04);
  --shadow-focus: 0 0 0 3px rgba(29, 78, 216, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --container-max: 1160px;
  --narrow-max: 820px;
  --header-h: 68px;
  --transition: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0c1017;
  --bg-elevated: #131924;
  --bg-muted: #1a2232;
  --bg-code: #172030;
  --text: #f3f4f6;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #1f2937;
  --border-strong: #334155;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --primary-contrast: #0b1120;

  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
  --shadow-focus: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 6px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.65rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 750;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
}

/* Accessibility Helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.8rem;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--narrow-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.75rem 0;
}

.section-alt {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head p {
  margin-bottom: 0;
  max-width: 62ch;
}

/* Grid Systems */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .site-header {
  background: rgba(12, 16, 23, 0.88);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-link:hover {
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 550;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.icon-btn:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text);
}

.mobile-menu-btn {
  display: none;
}

.mobile-drawer {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mobile-drawer a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 550;
}

.mobile-drawer a:hover {
  background: var(--bg-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--primary-contrast);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.78rem;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.62rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge-neutral {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border-color: var(--border);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Hero & Workbench */
.hero {
  padding: 3.25rem 0 2.75rem;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--border);
}

.hero-compact {
  padding: 2.25rem 0 2rem;
}

.hero-top {
  max-width: 760px;
  margin: 0 auto 1.85rem;
  text-align: center;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 62ch;
}

.workbench-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.35rem;
}

.workbench-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}

.workbench-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.tab-btn {
  min-height: 38px;
  padding: 0.42rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.is-active {
  background: var(--bg-elevated);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.wb-panel[hidden] {
  display: none;
}

.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}

.quick-tool-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.quick-tool-pill:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  transform: translateY(-1px);
}

.quick-tool-pill strong {
  font-size: 0.9rem;
}

.quick-tool-pill span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quick-drop-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border-strong);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.quick-drop-box:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.quick-drop-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.quick-inspect-out {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  font-size: 0.9rem;
}

.quick-inspect-out[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .quick-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .quick-tools-grid {
    grid-template-columns: 1fr;
  }
}

.url-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.url-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.url-input {
  width: 100%;
  min-height: 50px;
  padding: 0.72rem 6.2rem 0.72rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.96rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.input-inline-tools {
  position: absolute;
  right: 0.4rem;
  display: flex;
  gap: 0.25rem;
}

.inline-tool-btn {
  min-height: 36px;
  padding: 0.3rem 0.58rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.inline-tool-btn:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.workbench-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sample-btn {
  font-size: 0.8rem;
  padding: 0.28rem 0.62rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
}

.sample-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Result Panel */
.result-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.result-panel[hidden] {
  display: none;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.clean-url-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.clean-url-text {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  word-break: break-all;
  color: var(--text);
}

.notice-box {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  margin-bottom: 1rem;
  font-size: 0.93rem;
}

.notice-info {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
}

.notice-warn {
  border-left: 4px solid var(--warn);
  background: var(--warn-soft);
}

.notice-success {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.thumb-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thumb-preview {
  aspect-ratio: 16 / 9;
  background: var(--bg-code);
  overflow: hidden;
}

.thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-body {
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.thumb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* History Panel */
.history-panel {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--border);
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.history-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.85rem;
}

.history-url {
  flex: 1;
  min-width: 180px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card-interactive:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--bg-muted);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--border-strong);
}

/* Steps & Lists */
.step-list {
  display: grid;
  gap: 0.85rem;
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-item {
  counter-increment: step-counter;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.step-item::before {
  content: counter(step-counter);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 650;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
}

.faq-trigger:hover {
  background: var(--bg-muted);
}

.faq-chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 1.15rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-panel[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-col h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
