/* ==========================================================================
   DROPITOVER — DIRECTION A: THE PAPER & PRECISION INSTRUMENT
   Architectural Light Aesthetic · Tactile Materiality · Utilitarian Polish
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: light;

  /* Surfaces & Canvas (Warm Linen & Paper Palette) */
  --bg: #f7f6f2;
  --bg-subtle: #efece5;
  --surface: #ffffff;
  --surface-hover: #faf9f6;
  --surface-active: #f2efe7;
  --surface-elevated: #ffffff;
  --surface-inset: #f0eee8;
  --surface-solid: #ffffff;

  /* Architectural Hairlines & Dividers */
  --border: #e3dfd5;
  --border-strong: #d0cbc0;
  --border-active: #0047ff;
  --border-focus: rgba(0, 71, 255, 0.4);

  /* Ink Typography Colors */
  --text: #121314;
  --text-secondary: #484a4d;
  --muted: #56595e;
  --faint: #989ba0;

  /* Restrained Ultramarine Blue Accent */
  --accent: #0047ff;
  --accent-hover: #0038d1;
  --accent-active: #002bb3;
  --accent-soft: rgba(0, 71, 255, 0.07);
  --accent-tint: rgba(0, 71, 255, 0.12);

  /* Semantic Feedback (Crisp & Restrained) */
  --success: #0d8054;
  --success-soft: rgba(13, 128, 84, 0.08);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.08);
  --danger: #c5221f;
  --danger-soft: rgba(197, 34, 31, 0.08);

  /* Radii (Architectural & Tactile — Strictly No Bubbly Pills) */
  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius: 8px;
  --radius-sm: 5px;
  --radius-pill: 9999px;

  /* Tactile Physical Elevation (Subtle, Sharp, No Blurry Glows) */
  --shadow-sm: 0 1px 2px rgba(18, 19, 20, 0.04);
  --shadow: 0 2px 8px rgba(18, 19, 20, 0.05), 0 1px 2px rgba(18, 19, 20, 0.03);
  --shadow-lg: 0 12px 32px -4px rgba(18, 19, 20, 0.08), 0 2px 6px rgba(18, 19, 20, 0.04);
  --shadow-inset: inset 0 1px 3px rgba(18, 19, 20, 0.05);

  /* Typography Stacks */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Motion Timing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.14s var(--ease);
  --transition: 0.22s var(--ease);
}

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

[hidden] {
  display: none !important;
}

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

/* Accessible Focus Appearance (WCAG 2.2 AA) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  letter-spacing: 0;
}

code, kbd, samp, pre {
  font-family: var(--mono);
}

/* Shared SVG Icons & Utility Glyphs */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-xl {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

.tile {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--surface-inset);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.tile svg {
  width: 20px;
  height: 20px;
}

/* Card Surface Component */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card.span-2 {
  grid-column: 1 / -1;
}

.card header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.card header h2 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
}

.card header .sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

/* State & Loading Cards */
.state {
  text-align: center;
  padding: 48px 24px;
  margin: 24px auto;
  max-width: 540px;
}

.state .glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.state h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.state p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 16px;
}

/* Top Utility Navigation Bar */
/* Top Utility Navigation Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.topbar-main {
  display: contents;
}

.menu-toggle {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  min-width: 0;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-active);
}

.nav-link.active {
  color: var(--text);
  background: var(--surface-inset);
  font-weight: 600;
}

.identity-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.security-badge svg {
  width: 13px;
  height: 13px;
  color: var(--success);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-inset);
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.identity label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.identity input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  width: 115px;
  padding: 2px 4px;
  outline: none;
  border-radius: 4px;
}

.identity input:focus {
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--accent);
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: 2.35rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-break {
  display: block;
}

.accent-text {
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.capability-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.capability-tags li {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.capability-tags li b {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

/* ==========================================================================
   THE APERTURE WORKSPACE: CONNECTED ARCHITECTURAL TABS & CANVASES
   ========================================================================== */

.workspace-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.mode-dock {
  display: flex;
  align-items: center;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.dock-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dock-label-short {
  display: none;
}

.dock-label-full {
  display: inline;
}

.dock-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.dock-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.dock-btn .dock-icon {
  width: 17px;
  height: 17px;
}

/* Universal Tactile Drop Aperture */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-inset);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  outline: none;
  box-shadow: var(--shadow-inset);
  position: relative;
}

.dropzone::before, .dropzone::after {
  content: "+";
  position: absolute;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--border-strong);
  pointer-events: none;
  line-height: 1;
}

.dropzone::before { top: 10px; left: 12px; }
.dropzone::after { bottom: 10px; right: 12px; }

.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--accent);
  background: var(--surface-active);
}

.dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(0.995);
}

.drop-glyph {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.drop-glyph svg {
  width: 24px;
  height: 24px;
}

.dropzone strong {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.dropzone span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Staged Files Editorial Manifest */
.items {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.items:empty {
  display: none;
}

.item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.item:hover {
  border-color: var(--border-strong);
}

.item .line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item .icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.item .meta .title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item .meta .note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.item .spacer {
  flex: 1;
}

.item .remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.item .remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* Options Bar & Form Controls */
.field {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="text"], textarea, select {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--border-focus);
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-copied {
  background: var(--success) !important;
  color: #ffffff !important;
  border-color: var(--success) !important;
}

textarea {
  resize: vertical;
}

.transfer-options {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.option-expiry {
  flex: 1;
  min-width: 0;
}

.option-burn {
  flex: 1;
  min-width: 0;
  padding-bottom: 9px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Button Component Scale */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:active {
  background: var(--accent-active);
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-sm:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(197, 34, 31, 0.2);
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
}

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

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-active);
}

.btn-block {
  width: 100%;
}

/* Upload Progress Bar */
.progress {
  height: 6px;
  background: var(--surface-inset);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 8px;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 0.15s ease-out;
}

.progress.done > span {
  background: var(--success);
}

.progress.failed > span {
  background: var(--danger);
}

/* Share Result Output & QR Code Box */
.share-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--surface-inset);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 16px;
}

.link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 6px 6px 6px 12px;
}

.link-box code {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--accent);
  word-break: break-all;
}

.qr {
  width: 104px;
  height: 104px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.kv {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.kv b {
  color: var(--text);
  font-family: var(--mono);
}

/* Peer Radar Grid (Mode 1) */
.peer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.peer-list:empty {
  display: none;
}

.peer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.peer:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.peer .avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.peer .meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.peer .name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peer .status {
  font-size: 0.75rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.badge.p2p {
  color: var(--success);
  border-color: rgba(13, 128, 84, 0.2);
  background: var(--success-soft);
}

.badge.p2p::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* Activity Log (Shelf) */
.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.activity-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.activity-card header h2 {
  font-size: 1.05rem;
}

.empty {
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.empty-guide {
  text-align: left;
  padding: 24px 20px;
  background: var(--surface);
  border-style: solid;
  border-color: var(--border);
}

.empty-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
}

.empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
}

.empty-steps {
  margin: 0 auto 16px;
  max-width: 480px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.empty-steps li {
  margin-bottom: 8px;
}

.empty-steps li strong {
  color: var(--text);
}

.empty-hint {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  color: var(--accent-hover);
}

.activity-card .empty {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Architectural Hairline Divider */
.arch-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 36px;
}

/* Editorial & Architecture Showcase (SEO Section) */
.seo-section {
  margin-top: 24px;
}

.seo-section header {
  margin-bottom: 20px;
}

.seo-section header h2 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.seo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.seo-card:hover {
  border-color: var(--border-strong);
}

.seo-card .step-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.seo-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.seo-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.seo-faq {
  margin-top: 32px;
}

.seo-faq h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.faq-answer {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer code {
  background: var(--surface-inset);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--text);
}

/* ==========================================================================
   EDITORIAL & KNOWLEDGE BASE TYPOGRAPHY (Direction A)
   Generous vertical cadence · Airy line heights · No squished text
   ========================================================================== */

article.article,
section.article,
.article {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article h1 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0.4em 0 0.5em;
  color: var(--text);
}

.article h2 {
  font-size: 1.38rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 2.2em 0 0.7em;
  color: var(--text);
  padding-top: 0.8em;
  border-top: 1px solid var(--border);
}

.article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.4em;
}

.article h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 1.8em 0 0.55em;
  color: var(--text);
  font-weight: 600;
}

.article h4 {
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
  margin: 1.4em 0 0.45em;
  color: var(--text);
  font-weight: 600;
}

.article p {
  margin: 0 0 1.35em;
  line-height: 1.75;
  color: var(--text-secondary);
  font-size: 1.02rem;
  letter-spacing: 0;
}

.article p:last-child {
  margin-bottom: 0;
}

.article p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.article p a:hover {
  color: var(--accent-hover);
}

.article ul,
.article ol {
  margin: 1.2em 0 1.5em;
  padding-left: 26px;
  color: var(--text-secondary);
  line-height: 1.72;
}

.article li {
  margin-bottom: 0.6em;
}

.article pre {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 1.8em 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

.article code {
  font-family: var(--mono);
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
  color: var(--text);
}

.article pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

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

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  color: var(--border-strong);
  user-select: none;
}

/* Eyebrow & Article Metadata */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 22px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
  font-size: 0.85rem;
  color: var(--muted);
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Practical Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

table.compare th,
.table-scroll th {
  background: var(--surface-inset);
  color: var(--text);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.compare td,
.table-scroll td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.55;
}

table.compare tr:last-child td,
.table-scroll tr:last-child td {
  border-bottom: none;
}

table.compare tr:hover td,
.table-scroll tr:hover td {
  background: var(--surface-hover);
}

/* Guide Hub Grid & Cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-card .cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.guide-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.guide-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.guide-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Modal Dialogs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 20, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease-out;
}

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.modal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Toast Notifications */
#toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.success { border-color: rgba(13, 128, 84, 0.4); }
.toast.warn { border-color: rgba(180, 83, 9, 0.4); }
.toast.error { border-color: rgba(197, 34, 31, 0.4); }

/* Site Footer */
.site-footer {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Utility Helpers */
.mt { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.tight { gap: 8px; }
.grow { flex: 1 1 0%; min-width: 0; }
.hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.footnote { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

/* Responsive Fluidity */
@media (max-width: 768px) {
  .wrap {
    padding: 12px 10px 60px;
  }

  .topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px;
    gap: 0;
    margin-bottom: 20px;
  }

  .topbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-inset);
    color: var(--text);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast);
  }

  .menu-toggle:hover, .menu-toggle:focus-visible {
    background: var(--surface-active);
    border-color: var(--border-strong);
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
  }

  .menu-toggle .close-icon {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .close-icon {
    display: block;
  }

  .top-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    gap: 4px;
  }

  .top-nav.open {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
  }

  .identity-cluster {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px dashed var(--border);
  }

  .security-badge {
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    min-height: 44px;
  }

  .identity input {
    flex: 1;
    text-align: right;
    font-size: 0.9rem;
    width: auto;
  }

  .hero {
    margin-bottom: 20px;
  }

  .hero-break {
    display: inline;
  }

  .hero h1 {
    font-size: clamp(1.25rem, 5vw, 1.85rem);
    line-height: 1.25;
    margin-bottom: 12px;
    overflow-wrap: break-word;
    word-break: normal;
    padding: 0 4px;
  }

  .hero p {
    font-size: 0.92rem;
    padding: 0 4px;
    margin-bottom: 12px;
  }

  .capability-tags {
    gap: 6px;
  }

  .capability-tags li {
    font-size: 0.74rem;
    padding: 3px 8px;
  }

  .workspace-shell {
    padding: 16px 12px;
    border-radius: var(--radius-lg);
  }

  .dropzone {
    padding: 32px 14px;
  }

  .dropzone strong {
    font-size: 1.05rem;
  }

  .dropzone span {
    font-size: 0.82rem;
  }

  .drop-glyph {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  .drop-glyph svg {
    width: 20px;
    height: 20px;
  }

  .mode-dock {
    width: 100%;
    padding: 3px;
    gap: 3px;
  }

  .dock-btn {
    padding: 9px 8px;
    font-size: 0.84rem;
    gap: 6px;
    min-width: 0;
  }

  .dock-btn .dock-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .transfer-options {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .option-burn {
    padding-bottom: 0;
  }

  .check {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
  }

  .check input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .share-result {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .qr {
    margin: 0 auto;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .row.tight {
    flex-direction: row;
  }
}

@media (max-width: 540px) {
  .dock-label-full {
    display: none;
  }
  .dock-label-short {
    display: inline;
  }
  .dock-btn {
    padding: 9px 6px;
    font-size: 0.82rem;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding: 10px 8px 48px;
  }
  .workspace-shell {
    padding: 12px 8px;
  }
  .dock-btn {
    padding: 8px 4px;
    font-size: 0.76rem;
  }
}
