/* =========================================================
   LUMEN · Work Management Console
   Pure static · no external dependencies
   ========================================================= */

:root {
  color-scheme: light;

  --bg: #f4f2ec;
  --bg-soft: #eeeae1;
  --surface: #fbfaf6;
  --surface-raised: #ffffff;
  --surface-translucent: rgba(251, 250, 246, 0.7);
  --header-bg: rgba(244, 242, 236, 0.84);
  --ink: #1b1e19;
  --ink-soft: #44483f;
  --muted: #777c71;
  --line: #e3dfd4;
  --line-strong: #d1ccbc;

  --accent: #315f4b;
  --accent-strong: #244a39;
  --accent-soft: #e0ebe1;
  --accent-glow: rgba(49, 95, 75, 0.12);
  --on-accent: #f8f6ef;
  --lime: #dfe7bd;
  --highlight: #e4e8c8;

  --panel: #1d2a22;
  --panel-soft: #26352b;
  --panel-ink: #f3f1e7;
  --panel-muted: #a2afa4;
  --panel-line: rgba(255, 255, 255, 0.1);

  --danger: #a5503e;
  --danger-soft: #f6e7e2;
  --toast-bg: #1d251f;
  --toast-ink: #f4f2e8;
  --toast-accent: #d5e3b2;

  --shadow-card: 0 22px 56px rgba(32, 39, 31, 0.09);
  --shadow-panel: 0 30px 80px rgba(22, 31, 24, 0.2);
  --shadow-dialog: 0 36px 100px rgba(19, 25, 19, 0.28);
  --glow: rgba(192, 208, 154, 0.3);

  --font-sans: "Aptos", "Segoe UI Variable Display", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --max: 1240px;
  --header-h: 78px;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #121510;
  --bg-soft: #191d16;
  --surface: #1b1f18;
  --surface-raised: #20251d;
  --surface-translucent: rgba(27, 31, 24, 0.72);
  --header-bg: rgba(18, 21, 16, 0.86);
  --ink: #edeee4;
  --ink-soft: #c7cabd;
  --muted: #91988b;
  --line: rgba(236, 238, 226, 0.09);
  --line-strong: rgba(236, 238, 226, 0.17);

  --accent: #a6c7ab;
  --accent-strong: #c4dbc4;
  --accent-soft: #26352a;
  --accent-glow: rgba(166, 199, 171, 0.12);
  --on-accent: #152017;
  --lime: #cbdda4;
  --highlight: #33422b;

  --panel: #1f2d24;
  --panel-soft: #28382d;
  --panel-ink: #f2f0e6;
  --panel-muted: #9eab9f;
  --panel-line: rgba(255, 255, 255, 0.09);

  --danger: #e19480;
  --danger-soft: #34221d;
  --toast-bg: #e9e8de;
  --toast-ink: #191d18;
  --toast-accent: #315f4b;

  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-panel: 0 34px 90px rgba(0, 0, 0, 0.42);
  --shadow-dialog: 0 40px 110px rgba(0, 0, 0, 0.58);
  --glow: rgba(142, 168, 118, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 300px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-glow {
  position: fixed;
  top: -320px;
  right: -240px;
  z-index: 0;
  width: 860px;
  height: 860px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--glow) 0%, transparent 68%);
  filter: blur(8px);
}

.site-header,
.hero,
.workspace,
.site-footer {
  position: relative;
  z-index: 1;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  transition: border-color 0.25s ease, background-color 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  height: var(--header-h);
  padding: 0 32px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
}

.brand-mark svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.brand:hover .brand-mark {
  transform: rotate(24deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.brand-text span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.clock {
  margin-right: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.header-divider {
  width: 1px;
  height: 18px;
  margin: 0 3px;
  background: var(--line);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink);
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

html[data-theme="light"] .icon-sun,
html[data-theme="dark"] .icon-moon {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease,
    color 0.22s ease, transform 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

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

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

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

/* =========================================================
   Hero
   ========================================================= */

.hero {
  width: 100%;
  max-width: var(--max);
  padding: clamp(54px, 6.5vw, 82px) 32px 46px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(390px, 0.93fr);
  align-items: stretch;
  gap: clamp(42px, 5.5vw, 78px);
}

.hero-copy {
  padding-top: 18px;
  animation: reveal 0.7s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.hero-eyebrow {
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 5.2vw, 71px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.14;
}

.highlight {
  position: relative;
  display: inline-block;
  padding: 0 0.05em;
  color: var(--accent);
  background: linear-gradient(
    transparent 66%,
    var(--highlight) 66%,
    var(--highlight) 95%,
    transparent 95%
  );
}

.hero-lede {
  max-width: 510px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 11.5px;
}

.status-chip,
.hero-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-translucent);
}

.status-chip {
  color: var(--ink-soft);
}

.hero-count strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: livePulse 3.2s ease-in-out infinite;
}

.status-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Console card */

.console-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 438px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(120% 90% at 84% -10%, rgba(192, 214, 161, 0.18), transparent 56%),
    linear-gradient(145deg, #29382e 0%, #1c2821 58%, #172019 100%);
  box-shadow: var(--shadow-panel);
  color: var(--panel-ink);
  animation: reveal 0.8s 0.08s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.console-card::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  content: "";
  pointer-events: none;
}

.console-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 88% 10%, #000 0%, transparent 66%);
  mask-image: radial-gradient(circle at 88% 10%, #000 0%, transparent 66%);
  opacity: 0.55;
  pointer-events: none;
}

.console-orbit {
  position: absolute;
  top: -112px;
  right: -100px;
  z-index: 0;
  width: 340px;
  height: 340px;
  pointer-events: none;
}

.console-ring {
  position: absolute;
  border: 1px solid rgba(225, 236, 207, 0.12);
  border-radius: 50%;
}

.console-ring--outer {
  inset: 0;
}

.console-ring--inner {
  inset: 64px;
  border-style: dashed;
  border-color: rgba(225, 236, 207, 0.15);
  animation: orbitSpin 48s linear infinite;
}

.console-top,
.console-main,
.console-list,
.console-quote {
  position: relative;
  z-index: 2;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(244, 242, 232, 0.82);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.console-index {
  color: rgba(242, 240, 230, 0.38);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.console-main {
  margin-top: 54px;
}

.console-kicker {
  margin: 0 0 12px;
  color: rgba(244, 242, 232, 0.42);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.console-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.console-number strong {
  color: var(--panel-ink);
  font-family: var(--font-sans);
  font-size: clamp(76px, 7vw, 96px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.console-number span {
  color: var(--panel-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.console-caption {
  margin: 10px 0 0;
  color: rgba(244, 242, 232, 0.4);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.console-list {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--panel-line);
}

.console-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.console-list dt {
  color: rgba(244, 242, 232, 0.4);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.console-list dd {
  margin: 0;
  color: rgba(244, 242, 232, 0.8);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.console-quote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: rgba(244, 242, 232, 0.3);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.console-quote .icon {
  width: 12px;
  height: 12px;
  color: rgba(213, 227, 178, 0.52);
}

/* =========================================================
   Workspace
   ========================================================= */

.workspace {
  width: 100%;
  max-width: var(--max);
  padding: 38px 32px 0;
  margin: 0 auto;
  scroll-margin-top: 104px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 2.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.section-count {
  margin: 0 0 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

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

.entry-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.28s ease, box-shadow 0.28s ease,
    background-color 0.3s ease;
}

.entry-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.entry-card:focus-within {
  border-color: var(--accent);
}

.entry-card--featured {
  grid-column: 1 / -1;
  border-radius: 28px;
}

.entry-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.entry-link--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
  min-height: 306px;
}

.entry-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 29px 32px;
}

.entry-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.entry-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(49, 95, 75, 0.08);
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.26s ease;
}

html[data-theme="dark"] .entry-icon {
  border-color: transparent;
}

.entry-icon .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.5;
}

.entry-card:hover .entry-icon {
  transform: translateY(-1px) rotate(-3deg);
}

.entry-badge {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.entry-copy {
  margin-top: 29px;
}

.entry-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
}

.entry-main h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.entry-desc {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: auto 0 0;
  padding-top: 28px;
  list-style: none;
}

.entry-tags li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.entry-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 90% 0%, rgba(196, 219, 169, 0.16), transparent 58%),
    linear-gradient(145deg, var(--panel-soft), var(--panel));
  color: var(--panel-ink);
}

.entry-side::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at 82% 10%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 82% 10%, #000 0%, transparent 72%);
  content: "";
  pointer-events: none;
}

.entry-side::after {
  position: absolute;
  right: -80px;
  bottom: -95px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px transparent,
    0 0 0 35px rgba(255, 255, 255, 0.055),
    0 0 0 69px transparent,
    0 0 0 70px rgba(255, 255, 255, 0.035);
  content: "";
  pointer-events: none;
}

.entry-side > * {
  position: relative;
  z-index: 1;
}

.entry-host {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: rgba(244, 242, 232, 0.58);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.entry-host .icon {
  width: 13px;
  height: 13px;
  color: rgba(213, 227, 178, 0.55);
}

.entry-port {
  color: rgba(244, 242, 232, 0.28);
}

.entry-open-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  color: var(--panel-ink);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.entry-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  color: var(--panel-ink);
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease, transform 0.25s ease;
}

.entry-arrow .icon {
  width: 20px;
  height: 20px;
}

.entry-card--featured:hover .entry-arrow {
  border-color: var(--lime);
  background: var(--lime);
  color: #18231b;
  transform: translate(2px, -2px);
}

.entry-side-note {
  margin: 0;
  color: rgba(244, 242, 232, 0.3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* Secondary entry */

.entry-card--secondary {
  grid-column: 1 / -1;
  border-radius: 22px;
}

.entry-link--secondary {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 20px 24px;
}

.entry-icon--secondary {
  width: 48px;
  height: 48px;
  flex: none;
  border-color: rgba(123, 90, 47, 0.08);
  border-radius: 14px;
  background: #f3ecdf;
  color: #7b5a2f;
}

html[data-theme="dark"] .entry-icon--secondary {
  border-color: transparent;
  background: #332a20;
  color: #d0ae7d;
}

.entry-secondary-copy {
  flex: 1;
  min-width: 0;
}

.entry-secondary-copy .entry-kicker {
  margin-bottom: 4px;
}

.entry-secondary-copy h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.entry-secondary-copy .entry-desc {
  max-width: none;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-secondary-action {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.entry-arrow-small {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color 0.22s ease, border-color 0.22s ease,
    color 0.22s ease, transform 0.22s ease;
}

.entry-arrow-small .icon {
  width: 15px;
  height: 15px;
}

.entry-card--secondary:hover .entry-arrow-small {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  transform: translate(2px, -2px);
}

/* Custom entries */

.entry-card--small {
  border-radius: 22px;
}

.entry-link--small {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 22px;
}

.entry-link--small .entry-top {
  padding-right: 30px;
}

.entry-link--small .entry-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.entry-link--small .entry-icon .icon {
  width: 21px;
  height: 21px;
}

.entry-link--small .entry-badge {
  margin-left: 0;
  color: var(--muted);
}

.entry-link--small .entry-copy {
  margin-top: 22px;
}

.entry-link--small h3 {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.entry-link--small .entry-desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-small-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.entry-small-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-small-foot .icon {
  width: 14px;
  height: 14px;
  flex: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.entry-card--small:hover .entry-small-foot .icon {
  color: var(--ink);
  transform: translate(2px, -2px);
}

.entry-remove {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.entry-remove .icon {
  width: 14px;
  height: 14px;
}

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

.entry-card--small:hover .entry-remove,
.entry-card--small:focus-within .entry-remove {
  opacity: 1;
}

.entry-card.is-new {
  animation: cardGlow 1.5s ease both;
}

.entries-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.entries-note .icon {
  width: 12px;
  height: 12px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  width: 100%;
  max-width: var(--max);
  padding: 34px 32px 38px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: var(--accent);
}

.footer-mark svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.footer-note {
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

/* =========================================================
   Dialog
   ========================================================= */

.entry-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 24px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-dialog);
  color: var(--ink);
  overscroll-behavior: contain;
}

.entry-dialog::backdrop {
  background: rgba(17, 22, 17, 0.46);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.entry-dialog[open] {
  animation: dialogIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#entryForm {
  padding: 28px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-head .eyebrow {
  margin-bottom: 8px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.dialog-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
}

.dialog-close .icon {
  width: 16px;
  height: 16px;
}

.dialog-desc {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

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

.field > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.field em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-error {
  padding: 9px 11px;
  margin: 0 0 12px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11.5px;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}

/* =========================================================
   Toast
   ========================================================= */

.toast-region {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 430px);
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  padding: 11px 13px 11px 16px;
  border-radius: 12px;
  background: var(--toast-bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  color: var(--toast-ink);
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.toast-message {
  min-width: 0;
}

.toast-action {
  flex: none;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--toast-accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* =========================================================
   Animation
   ========================================================= */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cardGlow {
  0% {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
  }
  100% {
    border-color: var(--line);
    box-shadow: 0 0 0 0 transparent;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .hero {
    padding-top: 52px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero h1 {
    font-size: clamp(44px, 6.1vw, 66px);
  }

  .console-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-rows: auto 1fr auto;
    min-height: 0;
    padding: 26px 28px;
    column-gap: 52px;
  }

  .console-top {
    grid-column: 1 / -1;
  }

  .console-main {
    grid-column: 1;
    grid-row: 2;
    margin-top: 34px;
  }

  .console-list {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 34px;
    padding-top: 20px;
  }

  .console-quote {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 24px;
  }
}

@media (max-width: 900px) {
  .entry-link--featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-side {
    min-height: 218px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .entry-open-large {
    margin-top: 22px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 70px;
    padding: 0 20px;
  }

  .clock,
  .header-divider {
    display: none;
  }

  .hero {
    padding: 42px 20px 36px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(39px, 10.2vw, 51px);
    letter-spacing: -0.052em;
    line-height: 1.18;
  }

  .hero-lede {
    margin-top: 21px;
    font-size: 13.5px;
  }

  .desktop-break {
    display: none;
  }

  .hero-status {
    margin-top: 30px;
  }

  .console-card {
    display: flex;
    flex-direction: column;
    min-height: 402px;
    padding: 22px;
    border-radius: 24px;
  }

  .console-main {
    margin-top: 42px;
  }

  .console-list {
    margin-top: auto;
    padding-top: 18px;
  }

  .console-quote {
    margin-top: 16px;
  }

  .console-number strong {
    font-size: 78px;
  }

  .workspace {
    padding: 32px 20px 0;
    scroll-margin-top: 86px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .section-count {
    margin: 0;
  }

  .entry-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 17px;
  }

  .entry-card--featured {
    border-radius: 22px;
  }

  .entry-main {
    padding: 22px;
  }

  .entry-copy {
    margin-top: 24px;
  }

  .entry-main h3 {
    font-size: 29px;
  }

  .entry-tags {
    padding-top: 24px;
  }

  .entry-side {
    padding: 22px;
  }

  .entry-open-large {
    font-size: 22px;
  }

  .entry-arrow {
    width: 48px;
    height: 48px;
  }

  .entry-link--secondary {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
  }

  .entry-secondary-copy {
    flex-basis: calc(100% - 66px);
  }

  .entry-secondary-copy .entry-desc {
    overflow: visible;
    line-height: 1.65;
    text-overflow: clip;
    white-space: normal;
  }

  .entry-secondary-action {
    flex-basis: 100%;
    justify-content: flex-end;
    padding-top: 11px;
    border-top: 1px solid var(--line);
  }

  .entry-link--small {
    min-height: 198px;
    padding: 20px;
  }

  .site-footer {
    padding: 28px 20px 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-note {
    order: 2;
  }

  .footer-copy {
    order: 3;
  }

  #entryForm {
    padding: 22px;
  }

  .entry-dialog {
    border-radius: 20px;
  }

  .field input {
    font-size: 16px;
  }

  .dialog-head h2 {
    font-size: 21px;
  }

  .dialog-actions .btn {
    flex: 1;
  }

  .toast-region {
    bottom: 18px;
  }
}

@media (max-width: 430px) {
  .header-actions {
    gap: 7px;
  }

  .header-actions .btn {
    width: 41px;
    padding: 0;
  }

  .header-actions .btn span {
    display: none;
  }

  .brand-text strong {
    font-size: 12.5px;
  }

  .brand-text span {
    font-size: 9px;
  }

  .hero-status {
    gap: 8px;
  }

  .status-chip,
  .hero-count {
    padding: 0 10px;
    font-size: 10.5px;
  }

  .entry-host {
    font-size: 9.5px;
  }

  .entry-open-large {
    font-size: 21px;
  }
}

@media (hover: none) {
  .entry-remove {
    opacity: 0.72;
  }

  .entry-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
