/* Section-specific styles */

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; } }

.etymology {
  background:
    radial-gradient(at 80% 20%, rgba(120, 140, 255, 0.65) 0%, transparent 55%),
    radial-gradient(at 10% 90%, rgba(54, 69, 211, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #3645d3 0%, #2735b0 50%, #1a2899 100%);
  color: #fafaf7;
  border-radius: 22px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Ghosted mark watermark — sits in the bottom-right of the card */
.etymology::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -12%;
  width: 80%;
  aspect-ratio: 1/1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 139 139' fill='%23fafaf7'><path d='M106.882 0C124.62 0.000206159 139 14.3799 139 32.1182V106.882C139 124.62 124.62 139 106.882 139H32.1182C14.3799 139 0.000206171 124.62 0 106.882V32.1182C0.000226775 14.3799 14.3799 0.000202049 32.1182 0H106.882ZM31.0234 113.148H58.8594V31.2031H31.0234V113.148ZM66.1338 112.789H93.9697L107.917 84.8926H80.0811L66.1338 112.789ZM80.0811 77.7979H107.917L93.9697 49.9619H66.1338L80.0811 77.7979Z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
/* Subtle grain noise for depth */
.etymology::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.etymology > * { position: relative; z-index: 1; }
.etymology .word {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 30px rgba(0, 9, 69, 0.35);
}
.etymology .word .bool { color: #fafaf7; }
.etymology .word .land {
  color: #fafaf7;
  background: linear-gradient(180deg, #ffffff 0%, #c7d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.etymology .breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.etymology .breakdown > div {
  background: rgba(250, 250, 247, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(250, 250, 247, 0.22);
  border-radius: 14px;
  padding: 18px 20px;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  color: rgba(250, 250, 247, 0.85);
  line-height: 1.55;
  box-shadow: 0 10px 24px -10px rgba(0, 9, 69, 0.4);
}
.etymology .breakdown b {
  color: #fafaf7;
  font-weight: 500;
  display: block;
  font-family: "Plus Jakarta Sans";
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.principle {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
}
.principle .num {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.principle h3 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.principle p { margin: 0; color: var(--ink); opacity: 0.72; line-height: 1.5; }

/* Form & Meaning diagram */
.form-meaning {
  background: #000945;
  color: #fafaf7;
  border-radius: 22px;
  padding: 56px 48px 48px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.form-meaning .fm-eyebrow {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.5);
  margin-bottom: 32px;
}
.fm-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.fm-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.fm-letter {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fafaf7;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-letter--thin {
  /* keep weight consistent — the 'l' is just a bold vertical bar */
}
.fm-letter--code {
  color: #5b6cff;
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 64px;
  letter-spacing: -0.04em;
}
.fm-connector {
  width: 1px;
  height: 36px;
  background: rgba(250,250,247,0.25);
  position: relative;
}
.fm-connector::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-right: 1px solid rgba(250,250,247,0.4);
  border-bottom: 1px solid rgba(250,250,247,0.4);
  rotate: 45deg;
}
.fm-tag {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.6);
  padding: 6px 12px;
  border: 1px solid rgba(250,250,247,0.18);
  border-radius: 999px;
}

.fm-mark-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}
.fm-spine {
  width: 1px;
  height: 48px;
  background: rgba(250,250,247,0.25);
  position: relative;
}
.fm-spine::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 33%;
  height: 1px;
  background: rgba(250,250,247,0.25);
  transform: translateX(-50%) translateY(-24px);
}
.fm-mark-wrap {
  padding: 12px;
  background: transparent;
}

.fm-captions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(250,250,247,0.12);
}
.fm-cap .fm-cap-eyebrow {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5b6cff;
  margin-bottom: 10px;
}
.fm-cap p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(250,250,247,0.8);
}
.fm-cap p .mono {
  background: rgba(250,250,247,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
@media (max-width: 720px) {
  .form-meaning { padding: 40px 24px 32px; }
  .fm-diagram { gap: 12px; }
  .fm-letter { font-size: 64px; height: 64px; }
  .fm-captions { grid-template-columns: 1fr; gap: 20px; }
}

/* Logo */
.logo-stage {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.logo-stage .corner-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-stage .corner-tag.right { left: auto; right: 14px; }
.logo-stage.dark { background: #000945; }
.logo-stage.dark .corner-tag { color: rgba(250,250,247,0.5); }

.construction {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
  position: relative;
}

.lockup-row {
  display: flex; gap: 16px;
  flex-wrap: wrap;
}
.lockup-cell {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: grid; place-items: center;
  background: var(--paper);
  min-height: 140px;
}
.lockup-cell.dark { background: #000945; border-color: #000945; }
.lockup-cell.blue { background: #3645d3; border-color: #3645d3; }
.lockup-cell.grey { background: var(--grey); border-color: var(--grey); }

/* Color swatches */
.swatch {
  border-radius: 14px;
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.2s ease;
}
.swatch.outline { border-color: var(--line); }
.swatch .top { display: flex; justify-content: space-between; align-items: flex-start; }
.swatch .name { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.swatch .role { font-family: "Roboto Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.swatch .codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-family: "Roboto Mono", monospace; font-size: 12px; opacity: 0.85; }
.swatch .codes b { font-weight: 500; opacity: 0.65; margin-right: 6px; }

.theme-block {
  border-radius: 22px;
  padding: 40px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.theme-block.dark { background: #000945; color: #fafaf7; border-color: #000945; }
.theme-block .label {
  position: absolute;
  top: 18px; right: 22px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* Type */
.type-spec {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
  background: var(--paper);
}
.type-spec .name { font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.type-spec .meta-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.type-spec .meta-row > div { font-family: "Roboto Mono", monospace; font-size: 12px; color: var(--muted); }
.type-spec .meta-row b { color: var(--ink); display: block; font-weight: 500; font-family: "Plus Jakarta Sans"; font-size: 14px; margin-top: 2px; }
.weight-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.weight-row:last-child { border-bottom: 0; }
.weight-row .w-label { font-family: "Roboto Mono", monospace; font-size: 12px; color: var(--muted); }
.weight-row .w-sample { font-size: 32px; letter-spacing: -0.02em; }

.scale-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.scale-row:last-child { border-bottom: 0; }
.scale-row .label { font-family: "Roboto Mono", monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.scale-row .size { font-family: "Roboto Mono", monospace; font-size: 11px; color: var(--muted); text-align: right; }

/* Voice */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .voice-grid { grid-template-columns: 1fr; } }
.voice-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: var(--paper);
}
.voice-card h4 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.voice-card .we, .voice-card .not {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 16px 0 6px;
  opacity: 0.55;
}
.voice-card .we { color: var(--blue); opacity: 1; }
.voice-card .ex { font-size: 14px; line-height: 1.5; opacity: 0.85; }
.voice-card .ex.bad { opacity: 0.5; text-decoration: line-through; text-decoration-color: rgba(0,9,69,0.35); }

/* Applications */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .app-grid { grid-template-columns: 1fr; } }

.app-frame {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.app-frame .label {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.app-frame > *:not(.label) { flex: 1; min-height: 0; }

/* Browser mock */
.browser {
  background:
    radial-gradient(at 18% 22%, rgba(91,108,255,0.7) 0%, transparent 55%),
    radial-gradient(at 80% 82%, rgba(54,69,211,0.6) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(120,140,255,0.25) 0%, transparent 60%),
    linear-gradient(135deg, #0a1657, #000945);
  color: #fafaf7;
  aspect-ratio: 16/10;
  position: relative;
  display: flex;
  flex-direction: column;
}
.browser .chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(250,250,247,0.04);
  border-bottom: 1px solid rgba(250,250,247,0.08);
}
.browser .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(250,250,247,0.18); }
.browser .url {
  flex: 1; margin: 0 10px;
  background: rgba(250,250,247,0.06);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  color: rgba(250,250,247,0.6);
}
.browser .b-body {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.browser .nav { display: flex; justify-content: space-between; align-items: center; font-family: "Roboto Mono", monospace; font-size: 11px; opacity: 0.7; }
.browser .nav .links { display: flex; gap: 18px; }

/* Island nav — v3.0 */
.browser .island-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.browser .island {
  background: rgba(250, 250, 247, 0.12);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(250, 250, 247, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fafaf7;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px -12px rgba(0,0,0,0.35);
}
.browser .island.brand { padding: 10px 18px 10px 12px; }
.browser .island.links { padding: 10px 22px; }
.browser .island.links span { opacity: 0.85; cursor: pointer; }
.browser .island.links span:hover { opacity: 1; }
.browser .island-cta {
  background: #5b6cff;
  color: #000945;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 14px 28px -12px rgba(91,108,255,0.7);
}
.browser h2 {
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
  max-width: 14ch;
}
.browser h2 i { font-style: normal; color: #5b6cff; }
.browser .meta { font-family: "Roboto Mono", monospace; font-size: 10px; opacity: 0.5; display: flex; justify-content: space-between; }

/* Card mock */
.card-mock {
  aspect-ratio: 1.586/1;
  background: var(--paper-2);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  font-family: "Plus Jakarta Sans";
}
.card-mock.front { background: #000945; color: #fafaf7; }
.card-mock.front .top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-mock.front .name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.card-mock.front .role { font-family: "Roboto Mono", monospace; font-size: 10px; opacity: 0.6; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.card-mock.front .contact { font-family: "Roboto Mono", monospace; font-size: 10px; opacity: 0.7; line-height: 1.7; }

/* Social */
.social {
  aspect-ratio: 1/1;
  background: #000945;
  color: #fafaf7;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.social .head { display: flex; justify-content: space-between; align-items: flex-start; font-family: "Roboto Mono", monospace; font-size: 11px; opacity: 0.7; }
.social h3 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}
.social .foot { font-family: "Roboto Mono", monospace; font-size: 10px; opacity: 0.5; }

/* T-shirt */
.tshirt {
  aspect-ratio: 1/1;
  background: var(--paper-2);
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px;
}
.tshirt-svg { width: 80%; max-width: 360px; }

/* Glass app tile — used in 06.6 application */
.bg-wallpaper {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(at 20% 25%, rgba(91,108,255,0.6) 0%, transparent 50%),
    radial-gradient(at 75% 30%, rgba(255,107,157,0.45) 0%, transparent 50%),
    radial-gradient(at 50% 85%, rgba(0,212,168,0.4) 0%, transparent 50%),
    linear-gradient(135deg, #2a1a5e, #5e2a8a 60%, #3645d3 100%);
}
.glass-tile {
  position: relative;
  z-index: 2;
  background: rgba(250, 250, 247, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(250, 250, 247, 0.55);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0,9,69,0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  min-width: 240px;
}
.g-badge {
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 500;
  background: rgba(250,250,247,0.6);
  border: 1px solid rgba(0,9,69,0.08);
}
.g-badge.live { color: #0a8a4f; }
.g-badge.qa { color: #3645d3; }

/* ============================================================
   02.3 On Glass — v3.0 showcases
   ============================================================ */
.glass-showcase {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.glass-bg--cobalt {
  background:
    radial-gradient(at 18% 22%, rgba(91,108,255,0.85) 0%, transparent 55%),
    radial-gradient(at 80% 82%, rgba(54,69,211,0.7) 0%, transparent 50%),
    linear-gradient(135deg, #0a1657, #000945);
}
.glass-bg--mesh {
  background:
    radial-gradient(at 15% 15%, #ff6b9d 0%, transparent 45%),
    radial-gradient(at 85% 25%, #5b6cff 0%, transparent 45%),
    radial-gradient(at 50% 80%, #00d4a8 0%, transparent 45%),
    linear-gradient(135deg, #2a1a5e, #5e2a8a);
}
.glass-bg--ocean {
  background:
    radial-gradient(at 30% 30%, #ffd4a3 0%, transparent 50%),
    radial-gradient(at 70% 70%, #ffb47e 0%, transparent 50%),
    linear-gradient(135deg, #ff8e53 0%, #c44569 100%);
}
.g-faux-grid {
  position: absolute;
  top: 18%; left: 12%; right: 12%; bottom: 18%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  opacity: 0.18;
  pointer-events: none;
}
.g-faux-grid > div {
  background: rgba(250,250,247,0.5);
  border-radius: 8px;
  aspect-ratio: 1/1;
}
.g-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,9,69,0.55);
  z-index: 2;
}
.g-tag.light { color: rgba(250,250,247,0.65); }
.g-card {
  position: relative;
  z-index: 1;
  background: rgba(250,250,247,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(250,250,247,0.55);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
  box-shadow: 0 24px 48px -16px rgba(0,9,69,0.35);
}
.g-card-foot {
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  color: rgba(0,9,69,0.7);
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,9,69,0.1);
}
.g-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.g-dot--live { background: #0a8a4f; box-shadow: 0 0 0 3px rgba(10,138,79,0.18); }
.g-toast {
  position: relative;
  z-index: 1;
  background: rgba(0, 9, 69, 0.42);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(250,250,247,0.16);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5);
}
.g-toast-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(250,250,247,0.14);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.g-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00d4a8;
  box-shadow: 0 0 0 3px rgba(0,212,168,0.3);
  flex-shrink: 0;
  margin-left: auto;
}
.g-dock {
  position: relative;
  z-index: 1;
  background: rgba(0, 9, 69, 0.45);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(250,250,247,0.18);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.4);
}
.g-dock-item {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
}
.g-dock-item.active {
  background: rgba(250,250,247,0.18);
}
.g-dock-divider {
  width: 1px;
  height: 22px;
  background: rgba(250,250,247,0.22);
  margin: 0 4px;
}
.g-dock-cta {
  background: #5b6cff;
  color: #000945;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 0 16px;
  width: auto;
  border-radius: 999px;
  height: 32px;
}
.g-icon-dot, .g-icon-bar, .g-icon-square {
  display: inline-block;
  background: rgba(250,250,247,0.7);
}
.g-icon-dot { width: 8px; height: 8px; border-radius: 50%; }
.g-icon-bar { width: 14px; height: 2.5px; border-radius: 2px; }
.g-icon-square { width: 10px; height: 10px; border-radius: 3px; }

.rule-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 720px) { .rule-row { grid-template-columns: 1fr; } }
.rule {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: var(--paper);
  position: relative;
}
.rule .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.rule.do .badge { color: #0a8a4f; }
.rule.dont .badge { color: #c43a3a; }
.rule .preview {
  height: 140px;
  border-radius: 10px;
  background: var(--paper-2);
  display: grid; place-items: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.rule p { margin: 0; font-size: 14px; line-height: 1.5; opacity: 0.78; }
