:root {
  --bg: #fffcf7;
  --surface: #ffffff;
  --surface-soft: #f4efe6;
  --rail-bg: #ffffff;
  --chrome-bg: #f7f4ee;
  --ink: #0f172a;
  --ink-muted: #475569;
  --border: #e6dfd3;
  --primary: #1d4ed8;
  --primary-deep: #0b2545;
  --accent: #38bdf8;
  --warm: #d97706;
  --warm-soft: #fef3c7;
  --private-accent: #4f46e5;
  --private-soft: #eef2ff;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
}

html[data-theme="dark"] {
  --bg: #0b141e;
  --surface: #132030;
  --surface-soft: #1a2a3d;
  --rail-bg: #0f1a27;
  --chrome-bg: #0d1724;
  --ink: #f8fafc;
  --ink-muted: #cbd5e1;
  --border: #27394f;
  --primary: #3b82f6;
  --primary-deep: #0b141e;
  --accent: #38bdf8;
  --warm: #fbbf24;
  --warm-soft: rgba(245, 158, 11, 0.14);
  --private-accent: #818cf8;
  --private-soft: rgba(99, 102, 241, 0.16);
  --ok: #34d399;
  --ok-bg: rgba(16, 185, 129, 0.14);
  --err: #f87171;
  --err-bg: rgba(239, 68, 68, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.oraah-browser-frame {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Opera-style sidebar rail */
.oraah-rail {
  width: 58px;
  flex-shrink: 0;
  background: var(--rail-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.oraah-rail-top,
.oraah-rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rail-logo img {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 6px;
}

.rail-divider {
  width: 26px;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.ws-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.ws-pill {
  width: 30px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.ws-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.rail-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.rail-btn.active {
  background: var(--primary);
  color: #fff;
}

.rail-btn.active-private {
  background: var(--private-accent);
  color: #fff;
}

/* Workspace */
.oraah-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Tab strip */
.oraah-tabstrip {
  position: relative;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 0;
  min-height: 44px;
}

.oraah-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: calc(100% - 210px);
}

.oraah-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.oraah-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 210px;
  min-width: 120px;
  cursor: pointer;
  user-select: none;
  transition: background 0.14s ease, color 0.14s ease;
}

.oraah-tab:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.oraah-tab.active {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  font-weight: 600;
}

.oraah-tab.pinned {
  min-width: 48px;
  max-width: 64px;
  justify-content: center;
  padding: 7px 8px;
}

.oraah-tab.pinned .oraah-tab-title,
.oraah-tab.pinned .oraah-tab-close {
  display: none;
}

.oraah-tab-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oraah-tab-close {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.oraah-tab-close:hover {
  background: var(--err-bg);
  color: var(--err);
}

.oraah-tab img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.oraah-tab.private {
  color: var(--private-accent);
}

.oraah-newtab {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--ink-muted);
  cursor: pointer;
}

.oraah-newtab:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

/* Tab Hover Preview */
.oraah-tab-preview {
  position: fixed;
  z-index: 60;
  width: 256px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  pointer-events: none;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
}

.preview-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
}

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

.preview-url {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 2px;
  word-break: break-all;
}

.preview-snap {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--ink-muted);
  min-height: 44px;
}

/* Tab Context Menu */
.oraah-tab-ctx {
  position: fixed;
  z-index: 70;
  min-width: 175px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oraah-tab-ctx[hidden] {
  display: none;
}

.oraah-tab-ctx button {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.oraah-tab-ctx button:hover {
  background: var(--surface-soft);
}

/* Mouse Gesture HUD */
.oraah-gesture-hud {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(11, 37, 69, 0.9);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.oraah-gesture-hud[hidden] {
  display: none;
}

/* Oraah Search & Norah Sponsored Cards */
.search-header { display: flex; justify-content: center; }
.search-ads-stack, .search-results-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.search-ad-card { border-color: var(--warm); background: var(--surface); }
.search-ad-card h3, .search-result-card h3 { margin: 6px 0 2px; font-size: 1rem; color: var(--primary); }
.search-ad-card h3 a:hover, .search-result-card h3 a:hover { text-decoration: underline; }

.oraah-tabstrip-right {
  margin-left: auto;
  padding-bottom: 6px;
}

.pill-shield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.pill-shield.is-private {
  background: var(--private-soft);
  color: var(--private-accent);
  border-color: transparent;
}

/* Address / Omnibox toolbar */
.oraah-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.toolbar-nav-btns,
.toolbar-right-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.oraah-omnibox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  height: 38px;
}

.oraah-omnibox:focus-within {
  border-color: var(--primary);
  background: var(--surface);
}

.omnibox-icon {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
}

.oraah-omnibox input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
}

.account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

/* Canvas */
.oraah-canvas {
  flex: 1;
  padding: 28px 24px 42px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.oraah-canvas.is-speed-dial {
  position: relative;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.22), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.24), transparent 46%),
    radial-gradient(circle at 65% 15%, rgba(37, 99, 235, 0.12), transparent 40%),
    var(--bg);
  background-size: cover;
  background-position: center;
}

html[data-theme="dark"] .oraah-canvas.is-speed-dial {
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.14), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(56, 189, 248, 0.16), transparent 46%),
    radial-gradient(circle at 60% 15%, rgba(37, 99, 235, 0.22), transparent 42%),
    var(--bg);
}

/* Curated Wallpaper Presets */
body[data-wp="nuit_etoilee"] .oraah-canvas.is-speed-dial {
  background:
    radial-gradient(circle at 20% 25%, rgba(56, 189, 248, 0.22), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.25), transparent 50%),
    linear-gradient(145deg, #070f1a 0%, #0b2545 55%, #172554 100%);
  color: #f8fafc;
}

body[data-wp="nuit_etoilee"] .oraah-motto,
body[data-wp="nuit_etoilee"] .dial-label,
body[data-wp="nuit_etoilee"] .speed-dial-footnote {
  color: #f8fafc;
}

body[data-wp="ocean_souverain"] .oraah-canvas.is-speed-dial {
  background:
    radial-gradient(circle at 75% 20%, rgba(56, 189, 248, 0.35), transparent 48%),
    linear-gradient(135deg, #0c4a6e 0%, #1d4ed8 52%, #38bdf8 100%);
}

body[data-wp="ocean_souverain"] .oraah-motto,
body[data-wp="ocean_souverain"] .dial-label,
body[data-wp="ocean_souverain"] .speed-dial-footnote {
  color: #ffffff;
}

body[data-wp="terre_doree"] .oraah-canvas.is-speed-dial {
  background:
    radial-gradient(circle at 25% 20%, rgba(251, 191, 36, 0.32), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(217, 119, 6, 0.24), transparent 52%),
    linear-gradient(145deg, #fff7ed 0%, #fef3c7 55%, #fde68a 100%);
}

body.has-custom-wp .oraah-canvas.is-speed-dial {
  background-image: var(--oraah-custom-bg);
  background-size: cover;
  background-position: center;
}

body.has-custom-wp .oraah-canvas.is-speed-dial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 30, 0.32);
  pointer-events: none;
}

body.has-custom-wp .speed-dial-stage {
  position: relative;
  z-index: 1;
}

body.has-custom-wp .oraah-motto,
body.has-custom-wp .dial-label,
body.has-custom-wp .speed-dial-footnote {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* Wallpaper Floating Button & Drawer */
.wp-fab {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.wp-drawer {
  position: absolute;
  right: 18px;
  bottom: 68px;
  z-index: 15;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.wp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.wp-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.wp-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.wp-swatch {
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
}

.wp-swatch.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
}

.wp-sw-aurore {
  background: linear-gradient(135deg, #fef3c7, #bae6fd);
}

.wp-sw-nuit {
  background: linear-gradient(135deg, #070f1a, #172554);
}

.wp-sw-ocean {
  background: linear-gradient(135deg, #0c4a6e, #38bdf8);
}

.wp-sw-terre {
  background: linear-gradient(135deg, #fff7ed, #f59e0b);
}

.wp-drawer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wp-upload-label {
  cursor: pointer;
}

.wp-hint {
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* Speed Dial Stage */
.speed-dial-stage {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* Constellation Wave-B Ignition ("Onde lumineuse") */
@keyframes oraahWave {
  0% {
    r: 4;
    opacity: 0.95;
    stroke-width: 5;
  }

  100% {
    r: 44;
    opacity: 0;
    stroke-width: 1;
  }
}

@keyframes oraahStarPop {
  0% {
    transform: scale(0.35);
    opacity: 0.2;
  }

  55% {
    transform: scale(1.12);
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.75));
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes oraahTwinkle {

  0%,
  30% {
    transform: scale(0);
    opacity: 0;
  }

  75% {
    transform: scale(1.18);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.95;
  }
}

@keyframes oraahHaloExpand {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.25);
  }

  100% {
    opacity: 0.35;
    transform: scale(1.05);
  }
}

.oraah-lamp-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.oraah-lamp-orb {
  position: relative;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oraah-lamp-orb::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.38), rgba(56, 189, 248, 0.16) 55%, transparent 72%);
  animation: oraahHaloExpand 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

.oraah-constellation-svg {
  position: relative;
  width: 68px;
  height: 68px;
}

.oraah-constellation-svg .c-wave {
  animation: oraahWave 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.oraah-constellation-svg .c-main {
  transform-origin: 46px 54px;
  animation: oraahStarPop 0.85s ease-out forwards;
}

.oraah-constellation-svg .c-t1 {
  transform-origin: 72px 28px;
  animation: oraahTwinkle 0.65s 0.32s ease-out both;
}

.oraah-constellation-svg .c-t2 {
  transform-origin: 27px 29px;
  animation: oraahTwinkle 0.65s 0.38s ease-out both;
}

.rail-logo img {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 6px;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.rail-logo:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.65));
}

.oraah-motto {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {

  .oraah-lamp-orb::before,
  .oraah-constellation-svg .c-wave,
  .oraah-constellation-svg .c-main,
  .oraah-constellation-svg .c-t1,
  .oraah-constellation-svg .c-t2 {
    animation: none;
  }
}

.speed-dial-search {
  width: 100%;
  max-width: 560px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 16px;
}

.speed-dial-search img {
  width: 26px;
  height: 26px;
}

.speed-dial-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
  outline: none;
}

.search-submit-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.speed-dial-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 18px;
  justify-items: center;
}

.dial-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 112px;
  transition: transform 0.16s ease;
}

.dial-tile:hover {
  transform: translateY(-3px);
}

.dial-card {
  width: 104px;
  height: 76px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.96rem;
}

.dial-card-brand {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #fff;
  border: none;
}

.dial-card-deep {
  background: linear-gradient(135deg, #0b2545, #1e3a8a);
  color: #fff;
  border: none;
}

.dial-card-private {
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #fff;
  border: none;
}

.dial-card-warm {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  border: none;
}

.dial-card-add {
  background: rgba(255, 255, 255, 0.55);
  border-style: dashed;
  color: var(--ink-muted);
}

html[data-theme="dark"] .dial-card-add {
  background: rgba(19, 32, 48, 0.6);
}

.dial-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speed-dial-footnote {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0;
  text-align: center;
}

/* Standard inner pages */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-compact {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
}

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

.btn-private {
  background: var(--private-accent);
  color: #fff;
}

.btn-ghost {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--border);
}

.btn-danger {
  background: var(--err-bg);
  color: var(--err);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--warm-soft);
  color: var(--warm);
}

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

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.hero p {
  margin: 0 0 18px;
  color: var(--ink-muted);
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.alert-err {
  background: var(--err-bg);
  color: var(--err);
}

.alert-info {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
}

.field select,
.field input[type="text"],
.field input[type="url"] {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: none;
}

.list-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
  word-break: break-all;
}

.oraah-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 20px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.oraah-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
}

.lang-switch a {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.lang-switch a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (max-width: 1023.98px) {
  .oraah-browser-frame {
    flex-direction: column;
  }

  .oraah-rail {
    width: 100%;
    height: auto;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    flex-direction: row;
    padding: 6px 12px;
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .oraah-rail-top,
  .oraah-rail-bottom {
    flex-direction: row;
  }

  .rail-logo,
  .rail-divider,
  .rail-eco {
    display: none;
  }

  .oraah-workspace {
    padding-bottom: 64px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}