:root {
  color-scheme: light;
  --ink: #08131e;
  --ink-2: #17304a;
  --deep: #07111c;
  --blue: #1570ef;
  --blue-2: #63a4ff;
  --cyan: #57d9ff;
  --teal: #1dc2a5;
  --lime: #d9ff78;
  --lime-2: #f1ffad;
  --gold: #ffd484;
  --soft: #f2f8ff;
  --soft-2: #f8fbff;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(14, 42, 79, 0.1);
  --line-strong: rgba(21, 112, 239, 0.2);
  --muted: #5b6c80;
  --shadow-xl: 0 44px 120px -60px rgba(7, 17, 28, 0.62);
  --shadow-lg: 0 24px 64px -40px rgba(7, 17, 28, 0.34);
  --shadow-sm: 0 12px 28px -20px rgba(7, 17, 28, 0.2);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --grid: 40px;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(87, 217, 255, 0.18), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 212, 132, 0.2), transparent 24%),
    linear-gradient(180deg, #edf6ff 0%, #f6fbff 44%, #eef7ff 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(8, 19, 30, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 19, 30, 0.035) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.78) 60%, transparent 90%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 68%, rgba(87, 217, 255, 0.12), transparent 18%),
    radial-gradient(circle at 26% 32%, rgba(255, 255, 255, 0.52), transparent 26%);
}

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.hidden { display: none !important; }
button:disabled { opacity: .55; cursor: not-allowed; }

.ambient-grid {
  position: fixed;
  right: -16vw;
  bottom: -20vw;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(87, 217, 255, 0.2), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(217, 255, 120, 0.14), transparent 72%);
  filter: blur(8px);
}

.shell { min-height: 100vh; overflow: hidden; }

.hero {
  min-height: 96vh;
  position: relative;
  padding: 28px clamp(18px, 4vw, 72px) 80px;
}
.hero::before {
  content: "";
  position: absolute;
  top: 110px;
  right: -12vw;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 217, 255, 0.18), transparent 66%);
  filter: blur(12px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22));
}

.nav {
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 4;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #07111c;
  background: linear-gradient(135deg, var(--cyan), var(--lime-2));
  box-shadow: 0 0 0 7px rgba(87, 217, 255, 0.11), 0 18px 42px -22px rgba(21, 112, 239, 0.58);
}
.brand-copy {
  display: grid;
  line-height: 1.05;
}
.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .05em;
}
.nav-links {
  display: flex;
  gap: 8px;
  color: #2c4d73;
  font-weight: 850;
}
.nav-links a {
  padding: 12px 14px;
  border-radius: 999px;
  transition: .22s ease;
}
.nav-links a:hover {
  background: rgba(87, 217, 255, 0.16);
  transform: translateY(-1px);
}

.hero-grid {
  max-width: 1420px;
  margin: 76px auto 0;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(460px, 1.02fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  color: #0f7ed2;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(54px, 8vw, 112px);
  line-height: .88;
  letter-spacing: -.085em;
  max-width: 930px;
  color: #07131f;
}
.accent-copy {
  display: block;
  color: #0a6cff;
}
.hero-copy p {
  margin-top: 28px;
  max-width: 760px;
  color: #50657d;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.58;
}
.hero-copy strong {
  color: #0a6cff;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.primary,
.secondary {
  border-radius: 18px;
  padding: 15px 22px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.primary {
  border: 0;
  color: #07111c;
  background: linear-gradient(135deg, var(--cyan), var(--lime) 54%, #fff1a3);
  box-shadow: 0 22px 46px -24px rgba(21, 112, 239, 0.58);
}
.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(14, 42, 79, 0.14);
}
.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px -28px rgba(7, 17, 28, 0.42);
}
.full { width: 100%; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.trust-row span {
  border: 1px solid rgba(21, 112, 239, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #1e456e;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}
.feature-image {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(180deg, rgba(7, 17, 28, 0.96), rgba(13, 34, 54, 0.92));
}
.feature-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(87, 217, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 217, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: .7;
}
.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(87, 217, 255, 0.1), transparent 34%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 78% 22%, rgba(217, 255, 120, 0.18), transparent 24%);
  pointer-events: none;
}
.feature-image img {
  width: 100%;
  min-height: 580px;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}
.feature-image figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #f3fbff;
  background: rgba(7, 17, 28, 0.54);
  border: 1px solid rgba(87, 217, 255, 0.24);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 14px 16px;
}
.feature-image figcaption span {
  color: rgba(243, 251, 255, 0.72);
  font-size: 13px;
}
.feature-image figcaption b {
  font-size: 18px;
}

.image-orbit {
  position: absolute;
  border: 1px solid rgba(87, 217, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(87, 217, 255, 0.02);
}
.orbit-a {
  width: 72%;
  height: 72%;
  right: -12%;
  top: -5%;
  animation: slowFloat 8s ease-in-out infinite;
}
.orbit-b {
  width: 48%;
  height: 48%;
  left: -8%;
  bottom: 0;
  animation: slowFloat 7s ease-in-out infinite reverse;
}
.scan-beam {
  position: absolute;
  top: 5%;
  bottom: 11%;
  left: 52%;
  width: 3px;
  background: linear-gradient(transparent, rgba(87, 217, 255, 0.98), transparent);
  filter: drop-shadow(0 0 14px #57d9ff);
  animation: beamMove 4.2s ease-in-out infinite;
}
.floating-metric {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 158px;
  padding: 15px 16px;
  border-radius: 22px;
  color: #f4fbff;
  background: rgba(7, 17, 28, 0.7);
  border: 1px solid rgba(87, 217, 255, 0.22);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.floating-metric b {
  font-size: 28px;
  line-height: 1;
}
.floating-metric span {
  color: rgba(244, 251, 255, 0.68);
  font-weight: 800;
  font-size: 12px;
}
.metric-one { left: -24px; top: 92px; }
.metric-two { right: -14px; bottom: 128px; }
.metric-three { right: 42px; top: 62px; }

.section {
  max-width: 1420px;
  margin: 0 auto;
  padding: 90px clamp(18px, 4vw, 72px);
}
.section-title {
  max-width: 940px;
  margin-bottom: 38px;
}
.section-title.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-title h2,
.demo-header h2,
.closing-card h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.062em;
  color: #081521;
}
.section-title p,
.demo-header p,
.closing-card p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
}
.story-card,
.flow-grid article,
.catalog-card,
.function-card,
.glass-panel,
.closing-card {
  background: linear-gradient(180deg, #fff6ec, #fdb61c);
  border: 1px solid rgba(14, 42, 79, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 90px -72px rgba(7, 17, 28, 0.74);
}
.story-card {
  min-height: 320px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.story-card::before,
.flow-grid article::before,
.catalog-card::before,
.function-card::before,
.glass-panel::before,
.closing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(87, 217, 255, 0.08), transparent 26%);
}
.story-card h3,
.flow-grid h3,
.catalog-card h3,
.function-card h3 {
  font-size: 30px;
  margin-bottom: 10px;
  letter-spacing: -.035em;
}
.story-card p,
.flow-grid p,
.catalog-copy p,
.function-card p {
  color: var(--muted);
  line-height: 1.58;
}
.story-visual {
  padding: 0;
}
.story-visual img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}
.story-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(7, 17, 28, 0.58);
  border: 1px solid rgba(87, 217, 255, 0.24);
  backdrop-filter: blur(14px);
  color: white;
}
.story-overlay p {
  color: rgba(255, 255, 255, 0.78);
}
.story-overlay h3 {
  color: white;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #07111c;
  background: linear-gradient(135deg, var(--cyan), var(--lime-2));
  font-weight: 950;
  margin-bottom: 28px;
  box-shadow: 0 0 0 7px rgba(87, 217, 255, 0.1);
}

.flow-grid,
.function-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.four-cols {
  grid-template-columns: repeat(4, 1fr);
}
.flow-grid article,
.function-card {
  min-height: 230px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.flow-grid article::after,
.function-card::after,
.catalog-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% 22%;
  height: 170px;
  background: radial-gradient(circle, rgba(87, 217, 255, 0.12), transparent 66%);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.catalog-card {
  overflow: hidden;
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-rows: 220px 1fr;
}
.catalog-card.large {
  grid-column: span 2;
}
.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catalog-copy {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.catalog-tag,
.function-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(87, 217, 255, 0.14);
  color: #0c6fbb;
  border: 1px solid rgba(21, 112, 239, 0.12);
}

.demo-section {
  position: relative;
  overflow: hidden;
  color: #eef8ff;
  border-radius: 46px;
  border: 1px solid rgba(87, 217, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(7, 17, 28, 0.98), rgba(18, 46, 73, 0.94)),
    radial-gradient(circle at 80% 18%, rgba(87, 217, 255, 0.18), transparent 34%);
  box-shadow: var(--shadow-xl);
}
.demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(87, 217, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 217, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}
.demo-section::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 38%;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 217, 255, 0.16), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}
.demo-section > * {
  position: relative;
  z-index: 1;
}
.demo-section .eyebrow { color: #9beaff; }

.demo-header {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: start;
  margin-bottom: 28px;
}
.demo-header h2 { color: #f2fbff; }
.demo-header p {
  color: rgba(238, 248, 255, 0.74);
  max-width: 820px;
}

.security-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(87, 217, 255, 0.24);
  color: #dff8ff;
  background: rgba(87, 217, 255, 0.09);
  padding: 13px 15px;
  border-radius: 999px;
  font-weight: 950;
}
.security-pill span {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(87, 217, 255, 0.12), 0 0 18px rgba(87, 217, 255, 0.66);
}

.demo-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
}
.glass-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(130%);
}
.demo-side,
.workspace-card {
  padding: 20px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  color: #566980;
  font-size: 13px;
  font-weight: 950;
}
select {
  min-height: 52px;
  border: 1px solid rgba(14, 42, 79, 0.12);
  border-radius: 16px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
}
select:focus,
input:focus,
button:focus-visible {
  outline: 2px solid rgba(87, 217, 255, 0.44);
  outline-offset: 2px;
}

.measurement-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(21, 112, 239, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff, #eef8ff);
}
.measurement-box strong { color: var(--ink); }
.measurement-box p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}
.measurement-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  transition: background .18s ease, transform .18s ease;
}
.measurement-box label:hover {
  background: #fff;
  transform: translateX(2px);
}
.measurement-box input {
  width: 17px;
  height: 17px;
  accent-color: #0c8de4;
}

.session-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  background: #f3fbff;
  border: 1px dashed rgba(21, 112, 239, 0.26);
  border-radius: 24px;
}
.session-card h3 { margin-bottom: 6px; }
.session-card p {
  color: var(--muted);
  line-height: 1.45;
}
.session-card img {
  width: 174px;
  height: 174px;
  object-fit: contain;
  justify-self: center;
  background: white;
  border-radius: 20px;
  padding: 9px;
  box-shadow: var(--shadow-sm);
}
.mini-log {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.mini-log strong { color: var(--ink); }

.workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.file-btn {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: #fbfdff;
  border: 1px solid rgba(14, 42, 79, 0.14);
  color: var(--ink);
  cursor: pointer;
  transition: .18s ease;
}
.file-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}
.file-btn input { display: none; }

.status-box {
  border: 1px solid rgba(21, 112, 239, 0.18);
  background: #eef8ff;
  border-radius: 18px;
  padding: 13px 15px;
  color: #20558a;
  margin-bottom: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.status-box[data-type="error"] {
  color: #8b1e1e;
  background: #fff1ed;
  border-color: rgba(255, 90, 31, 0.28);
}
.status-box[data-type="success"] {
  color: #1c5e52;
  background: #edfdf9;
  border-color: rgba(29, 194, 165, 0.22);
}

.camera-wrap {
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(7, 17, 28, 0.96), rgba(12, 26, 42, 0.98));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(87, 217, 255, 0.16);
}
video {
  width: 100%;
  max-height: 360px;
  display: block;
  object-fit: contain;
}

.result-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid rgba(14, 42, 79, 0.12);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 950;
  transition: .18s ease;
}
.tab:hover { transform: translateY(-1px); }
.tab.active {
  color: #0d4c91;
  background: #eaf7ff;
  border-color: rgba(21, 112, 239, 0.28);
  box-shadow: inset 0 0 0 1px rgba(87, 217, 255, 0.16);
}

.result-stage {
  min-height: 500px;
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(21, 112, 239, 0.14);
  padding: 14px;
  background: linear-gradient(180deg, #f1f8ff, #fbfdff);
}
.pane { display: none; height: 100%; }
.pane.active { display: block; animation: fadeSlide .32s ease; }
.pane img {
  width: 100%;
  height: 470px;
  object-fit: contain;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm);
}
.empty-state {
  display: grid;
  place-items: center;
  height: 470px;
  color: var(--muted);
  border: 1px dashed rgba(21, 112, 239, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
  padding: 20px;
  font-weight: 850;
}

.summary-grid,
.measurement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.summary-card,
.measurement-grid article {
  background: white;
  border: 1px solid rgba(21, 112, 239, 0.12);
  border-radius: 20px;
  padding: 18px;
  min-height: 124px;
  box-shadow: var(--shadow-sm);
}
.summary-card b,
.measurement-grid b {
  display: block;
  font-size: 28px;
  line-height: 1.08;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.summary-card span,
.measurement-grid span {
  color: var(--muted);
  font-weight: 900;
}

.measurement-table-wrap {
  overflow: auto;
  border-radius: 20px;
}
.measurement-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: white;
  border: 1px solid rgba(21, 112, 239, 0.12);
  border-radius: 18px;
  overflow: hidden;
}
.measurement-table th,
.measurement-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(21, 112, 239, 0.08);
  text-align: left;
  font-size: 13px;
}
.measurement-table th {
  background: #eaf7ff;
  color: #0d4c91;
}
.measurement-warning {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff8df;
  color: #cc5a00;
  border: 1px dashed rgba(255, 106, 0, 0.28);
  font-weight: 850;
}

.closing-section { padding-top: 42px; }
.closing-card {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 26px;
  overflow: hidden;
}
.closing-card img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  box-shadow: 0 28px 90px -58px rgba(7, 17, 28, 0.9);
}
.closing-card p {
  margin-bottom: 26px;
  max-width: 720px;
}

footer {
  max-width: 1420px;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 72px) 54px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 900;
}

footer a {
  color: #d95b17;
  text-decoration: none;
}

.reveal-up { animation: revealUp .75s cubic-bezier(.18, .86, .32, 1) both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .32s; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes beamMove {
  0%, 100% { transform: translateX(-90px); opacity: .35; }
  50% { transform: translateX(100px); opacity: 1; }
}
@keyframes slowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .hero-grid,
  .demo-grid,
  .story-grid,
  .closing-card {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: auto; }
  .feature-image img { min-height: 420px; }
  .flow-grid,
  .catalog-grid,
  .function-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-card.large {
    grid-column: span 1;
  }
  .four-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero { padding-top: 16px; }
  .nav {
    border-radius: 24px;
    align-items: flex-start;
  }
  .nav-links { display: none; }
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-grid { margin-top: 42px; }
  .feature-image img { min-height: 320px; }
  .floating-metric,
  .image-orbit,
  .scan-beam { display: none; }
  .flow-grid,
  .catalog-grid,
  .function-cards-grid,
  .four-cols {
    grid-template-columns: 1fr;
  }
  .demo-header,
  footer { flex-direction: column; }
  .section { padding: 58px 18px; }
  .demo-section { border-radius: 30px; }
  .workspace-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .file-btn,
  .workspace-toolbar button { width: 100%; }
  .pane img,
  .empty-state { height: 360px; }
}

:root {
  --oi-orange: #ff6a00;
  --oi-orange-2: #ff8f1f;
  --oi-orange-3: #ffb000;
  --oi-cream: #fff7ec;
  --oi-deep: #3a1200;
}

body.drawer-open {
  overflow: hidden;
}

.hero-oi {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 176, 0, 0.16), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 106, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, #fffdf9 44%, #fff6ea 100%);
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 176, 0, 0.12), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 106, 0, 0.14), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, #fffdf9 44%, #fff6ea 100%);
}

.brand-oi {
  gap: 16px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(255, 106, 0, 0.22));
}

.brand-mark {
  display: none;
}

.eyebrow-oi,
.catalog-tag-oi,
.function-badge-oi {
  color: var(--oi-orange);
}

.accent-oi {
  color: #ff5a1f;
}

.nav-links a:hover,
.tab.active,
.summary-card span,
.measurement-grid span,
.section-title p strong,
.hero-copy strong {
  color: var(--oi-orange);
}

.primary-oi {
  color: white;
  background: linear-gradient(135deg, var(--oi-orange), var(--oi-orange-2) 54%, var(--oi-orange-3));
  box-shadow: 0 22px 46px -24px rgba(255, 106, 0, 0.46);
}

.secondary-oi {
  border-color: rgba(255, 106, 0, 0.18);
  background: rgba(255, 248, 239, 0.92);
}

.scan-beam-oi {
  background: linear-gradient(transparent, rgba(255, 176, 0, 0.98), transparent);
  filter: drop-shadow(0 0 14px rgba(255, 176, 0, 0.8));
}

.step-oi {
  background: linear-gradient(135deg, #ffd34d, #ff8f1f);
  box-shadow: 0 0 0 7px rgba(255, 143, 31, 0.12);
}

.demo-section-oi {
  color: #fff8f2;
  border-color: rgba(255, 176, 0, 0.18);
  background:
    linear-gradient(135deg, rgba(38, 10, 2, 0.98), rgba(120, 24, 0, 0.94)),
    radial-gradient(circle at 80% 18%, rgba(255, 176, 0, 0.18), transparent 34%);
}

.security-pill-oi {
  border-color: rgba(255, 176, 0, 0.24);
  background: rgba(255, 176, 0, 0.08);
}

.security-pill-oi span {
  background: var(--oi-orange-3);
  box-shadow: 0 0 0 7px rgba(255, 176, 0, 0.12), 0 0 18px rgba(255, 176, 0, 0.56);
}

.demo-intro-card {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.demo-intro-card h3 {
  margin-bottom: 10px;
  font-size: 30px;
}

.demo-intro-card p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
}

.demo-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(255, 90, 31, 0.22);
  backdrop-filter: blur(8px);
}

.demo-drawer-panel {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 0, 0.1), transparent 20%),
    linear-gradient(180deg, #080808 0%, #121212 100%);
}

.demo-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.demo-drawer-head h2 {
  margin: 6px 0 10px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .95;
  letter-spacing: -.05em;
  color: #fff3e3;
}

.demo-drawer-head p {
  color: rgba(255, 233, 206, 0.76);
  max-width: 920px;
  line-height: 1.65;
}

.demo-intake,
.demo-results {
  display: grid;
  gap: 18px;
}

.drawer-tabs {
  display: flex;
  gap: 10px;
}

.drawer-tabs-centered {
  justify-content: center;
}

.demo-source-pane {
  display: none;
}

.demo-source-pane.active {
  display: block;
}

.camera-intro {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.dropzone {
  min-height: 320px;
  border-radius: 28px;
  border: 2px dashed rgba(255, 106, 0, 0.22);
  background: linear-gradient(180deg, #101010 0%, #191919 100%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.dropzone.dragover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.48);
  background: linear-gradient(180deg, #1b0d08 0%, #351208 100%);
}

.dropzone input {
  display: none;
}

.dropzone-title {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.04em;
  color: #fff0dc;
}

.dropzone-copy {
  display: block;
  margin-top: 10px;
  max-width: 720px;
  color: rgba(255, 224, 194, 0.68);
  line-height: 1.6;
}

.intake-chooser-stage {
  display: grid;
  gap: 16px;
}

.intake-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.intake-actions-centered {
  justify-content: center;
}

.intake-actions-inside {
  margin-top: 28px;
}

.intake-main-btn {
  min-width: 260px;
  min-height: 62px;
  font-size: 20px;
  font-weight: 950;
}

.intake-actions-inside .secondary {
  min-height: 62px;
  padding-inline: 28px;
  font-size: 18px;
}

.camera-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  justify-content: center;
}

.demo-example-strip {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 176, 0, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.demo-example-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  color: #fff0dc;
}

.demo-example-copy strong {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
}

.demo-example-copy span {
  color: rgba(255, 224, 194, 0.72);
  font-weight: 750;
}

.demo-example-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.demo-example-card {
  flex: 0 0 220px;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 176, 0, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.08), rgba(255, 176, 0, 0.08));
  color: #fff2de;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.demo-example-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 176, 0, 0.48);
}

.demo-example-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #050505;
}

.camera-wrap {
  margin-top: 8px;
}

.intake-preview-stage {
  margin-top: 8px;
}

.intake-preview-frame {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 0, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,176,0,0.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.intake-preview-frame img {
  width: 100%;
  height: min(58vh, 540px);
  object-fit: contain;
  display: block;
  background: #090909;
}

.intake-preview-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.32), rgba(8, 8, 8, 0.54));
  backdrop-filter: blur(4px);
  z-index: 2;
  text-align: center;
  color: #fff0dc;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.intake-preview-loader {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffb000;
  border-right-color: #ff6a00;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.28);
  animation: oiSpin 1s linear infinite;
}

.intake-process-btn {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  min-width: 220px;
  box-shadow: 0 20px 40px rgba(255, 106, 0, 0.24);
  z-index: 3;
}

.workspace-toolbar-end {
  justify-content: flex-end;
}

#summaryPane {
  display: grid;
  gap: 18px;
}

.status-box {
  border-color: rgba(255, 106, 0, 0.14);
  background: rgba(255, 145, 31, 0.12);
  color: #ffbf80;
}

.status-box[data-type="success"] {
  color: #ffd08f;
  background: rgba(255, 176, 0, 0.1);
  border-color: rgba(255, 176, 0, 0.26);
}

.status-box[data-type="info"]::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8f1f, #ffb000);
  box-shadow: 0 0 0 8px rgba(255, 176, 0, 0.12);
  animation: oiPulse 1.4s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes oiSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes oiPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.2); opacity: 1; }
}

.glass-panel,
.demo-intro-card,
.summary-card,
.measurement-grid article,
.measurement-table,
.result-stage {
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.96), rgba(10, 10, 10, 0.92));
  color: #fff2de;
  border-color: rgba(255, 145, 31, 0.14);
}

.catalog-card,
.function-card,
.story-card,
.closing-card {
  background: linear-gradient(180deg, #fff6ec, #fdb61c);
}

.availability-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.12);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
}

.pane img {
  background: #050505;
  border: 1px solid rgba(255, 145, 31, 0.18);
}

.empty-state {
  border-color: rgba(255, 145, 31, 0.18);
  background: rgba(17, 17, 17, 0.78);
  color: rgba(255, 220, 187, 0.72);
}

.measurement-table th {
  background: rgba(255, 145, 31, 0.12);
  color: #ffbf80;
}

.measurement-table td {
  color: rgba(255, 238, 220, 0.86);
}

@media (max-width: 760px) {
  .demo-intro-card,
  .demo-drawer-head,
  .camera-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .demo-drawer-panel {
    padding: 18px;
  }
}

body {
  color: #3a1400;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 176, 0, 0.12), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 106, 0, 0.16), transparent 24%),
    linear-gradient(180deg, #fff7ed 0%, #fffdf9 44%, #fff4e7 100%);
}

.nav,
.story-card,
.catalog-card,
.function-card,
.closing-card,
.origin-card {
  border-color: rgba(255, 145, 31, 0.12);
}

.nav-links a:hover,
.tab.active,
.summary-card span,
.measurement-grid span,
.hero-copy strong,
.section-title p strong {
  color: var(--oi-orange);
}

.tab.active {
  background: rgba(255, 145, 31, 0.14);
  border-color: rgba(255, 145, 31, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 145, 31, 0.14);
}

.hero-copy p,
.section-title p,
.catalog-copy p,
.function-card p,
.story-card p,
.demo-header p,
.demo-intro-card p,
.closing-card p,
.origin-copy p,
.story-drawer-copy p,
.story-drawer-head p {
  color: #8f4a22;
}

.origin-section {
  padding-top: 20px;
}

.origin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 28px;
  padding: 28px;
  overflow: hidden;
}

.origin-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.origin-copy h2,
.story-drawer-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #4a1600;
}

.origin-visual-stack {
  display: grid;
  gap: 16px;
}

.origin-visual-main {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffaf3, #fff2e1);
  box-shadow: 0 24px 64px -36px rgba(255, 106, 0, 0.28);
}

.origin-visual-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.origin-visual-strip img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf3, #fff2e1);
  padding: 18px;
}

.demo-drawer-panel,
.story-drawer-panel {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 0, 0.1), transparent 20%),
    linear-gradient(180deg, #080808 0%, #121212 100%);
}

.story-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(255, 90, 31, 0.28);
  backdrop-filter: blur(8px);
}

.story-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.story-drawer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
}

.story-drawer-copy,
.story-drawer-visual,
.summary-legend {
  padding: 24px;
}

.story-drawer-copy h3 {
  margin: 8px 0 10px;
  font-size: 26px;
  color: #fff2de;
}

.story-drawer-copy p,
.story-drawer-head p {
  color: rgba(255, 227, 197, 0.8);
  line-height: 1.7;
}

.story-announce {
  margin-top: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 176, 0, 0.24);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.14), rgba(255, 176, 0, 0.08));
  display: grid;
  gap: 8px;
}

.story-announce strong {
  color: #ffb86b;
  font-size: 22px;
}

.story-announce span {
  color: rgba(255, 238, 220, 0.88);
  line-height: 1.6;
}

.story-hero-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf3, #fff2e1);
}

.story-logo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.story-logo-row img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf3, #fff2e1);
  padding: 12px;
}

.story-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.story-badge-stack span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.12);
  border: 1px solid rgba(255, 145, 31, 0.18);
  color: #ffcb8d;
  font-weight: 900;
}

.sequence-grid {
  display: grid;
  gap: 18px;
}

.sequence-step {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 145, 31, 0.14);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.92), rgba(10, 10, 10, 0.94));
  box-shadow: 0 24px 48px -38px rgba(255, 106, 0, 0.32);
}

.sequence-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.sequence-index {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.12);
  color: #ffb86b;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sequence-head h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff1dc;
}

.sequence-head p {
  color: rgba(255, 227, 197, 0.76);
  line-height: 1.65;
  max-width: 920px;
}

.sequence-visual-frame {
  border-radius: 24px;
  padding: 14px;
  border: 1px solid rgba(255, 145, 31, 0.12);
  background: linear-gradient(180deg, #0d0d0d, #171717);
}

.sequence-visual-frame-dark {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 176, 0, 0.08), transparent 18%),
    linear-gradient(180deg, #030303, #111111);
}

.sequence-visual-frame img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  border-radius: 18px;
  background: #020202;
}

.processing-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.processing-ribbon span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.1);
  border: 1px solid rgba(255, 145, 31, 0.18);
  color: #ffd8a5;
  font-weight: 900;
}

.summary-legend {
  margin-bottom: 8px;
}

.summary-legend-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.12);
  border: 1px solid rgba(255, 145, 31, 0.18);
  color: #ffb86b;
  font-weight: 900;
}

.summary-legend p {
  color: rgba(255, 227, 197, 0.82);
  line-height: 1.7;
}

.measurement-demo-note {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 145, 31, 0.08);
  border: 1px dashed rgba(255, 145, 31, 0.24);
  color: #ffcb98;
  font-weight: 800;
}

.summary-card b,
.measurement-grid b {
  color: #fff2de;
}

.result-stage {
  min-height: 540px;
}

.empty-state {
  min-height: 520px;
}

@media (max-width: 1180px) {
  .origin-card,
  .story-drawer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sequence-visual-frame img,
  .empty-state {
    height: 340px;
    min-height: 340px;
  }

  .story-logo-row,
  .origin-visual-strip {
    grid-template-columns: 1fr;
  }

  .story-drawer-panel,
  .demo-drawer-panel {
    padding: 18px;
  }
}
.closing-section-plain {
  padding-top: 28px;
}

.manifesto-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.manifesto-header {
  max-width: 1180px;
  margin: 0 auto 24px;
}

.manifesto-header h2 {
  font-size: clamp(46px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: #491700;
  max-width: 1180px;
}

.manifesto-header p {
  margin-top: 18px;
  max-width: 980px;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.6;
  color: #8a4a20;
}

.manifesto-strip {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 145, 31, 0.16);
}

.manifesto-copy {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.manifesto-copy strong {
  color: var(--oi-orange);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.manifesto-copy span {
  color: #935126;
  line-height: 1.7;
  font-size: 17px;
}

.origin-section {
  padding-top: 18px;
  padding-bottom: 8px;
}

.origin-card {
  grid-template-columns: 1fr;
  padding: 36px 0 20px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.origin-card::before {
  display: none;
}

.origin-copy {
  max-width: 1180px;
  margin: 0 auto;
  gap: 18px;
}

.origin-copy h2 {
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.08em;
  color: #451500;
  max-width: 1120px;
}

.origin-copy p {
  max-width: 1000px;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.7;
  color: #8d4d24;
}

.origin-visual-stack {
  display: none;
}

.closing-plain {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.closing-plain-copy {
  display: grid;
  gap: 18px;
}

.closing-plain-copy h2 {
  font-size: clamp(42px, 5vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  color: #4b1600;
}

.closing-plain-copy p {
  max-width: 860px;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.7;
  color: #925026;
}

.closing-plain-visual {
  display: grid;
  place-items: center;
}

.closing-plain-visual img {
  width: min(100%, 460px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(255, 106, 0, 0.24));
}

.closing-callout {
  display: grid;
  gap: 8px;
  width: fit-content;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 145, 31, 0.12), rgba(255, 176, 0, 0.08));
  border: 1px solid rgba(255, 145, 31, 0.16);
}

.closing-callout strong {
  color: var(--oi-orange);
  font-size: 24px;
}

.closing-callout span {
  color: #935126;
  line-height: 1.6;
}

.story-drawer-head h2 {
  color: #fff3e3;
}

.story-drawer-copy h3 {
  color: #ffd2a0;
}

.story-drawer-copy p,
.story-drawer-head p {
  color: rgba(255, 233, 206, 0.82);
}

@media (max-width: 1180px) {
  .closing-plain,
  .manifesto-strip {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .origin-copy h2,
  .manifesto-header h2,
  .closing-plain-copy h2 {
    letter-spacing: -0.06em;
  }

  .closing-plain {
    grid-template-columns: 1fr;
  }
}
.result-tabs-single {
  justify-content: flex-start;
}

.result-tabs-images {
  justify-content: center;
  margin-bottom: 4px;
}

.result-stage-summary-only {
  min-height: auto;
}

.summary-pane-block {
  display: grid;
  gap: 18px;
}

.sequence-step-single .sequence-visual-frame img {
  height: min(64vh, 720px);
}

.sequence-step-single .empty-state {
  min-height: min(64vh, 720px);
  height: min(64vh, 720px);
}

.sequence-grid-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 20px;
}

.sequence-grid-inline .sequence-step {
  min-height: 100%;
}

.sequence-grid-inline .sequence-head h3 {
  font-size: clamp(24px, 2.3vw, 34px);
}

.sequence-grid-inline .sequence-head p {
  font-size: 15px;
}

.processing-ribbon-vertical {
  display: grid;
  gap: 10px;
}

.sequence-grid-inline .sequence-visual-frame img {
  height: 300px;
}

.sequence-grid-inline .empty-state {
  min-height: 300px;
  height: 300px;
}

.summary-legend {
  margin-top: 8px;
  margin-bottom: 14px;
}

#measurementTable .measurement-table {
  min-width: 100%;
}

@media (max-width: 1180px) {
  .sequence-grid-inline {
    grid-template-columns: 1fr;
  }

  .sequence-grid-inline .sequence-visual-frame img,
  .sequence-grid-inline .empty-state {
    height: 360px;
    min-height: 360px;
  }
}
.hero-split {
  min-height: 100vh;
}

.hero-grid-single {
  grid-template-columns: 1fr;
}

.centered-hero-copy {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.centered-hero-copy p {
  margin-left: auto;
  margin-right: auto;
}

.portal-choice-grid {
  max-width: 1260px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portal-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-height: 520px;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid rgba(255, 145, 31, 0.16);
  text-decoration: none;
  box-shadow: 0 40px 100px -60px rgba(255, 106, 0, 0.42);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.portal-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 54px 120px -62px rgba(255, 106, 0, 0.52);
  border-color: rgba(255, 145, 31, 0.28);
}

.portal-card-origin {
  background: linear-gradient(160deg, #FFC107, #F44336);
}

.portal-card-ingenio {
  background: linear-gradient(160deg, #F44336, #FFC107);
}

.portal-card-ingenio h2,
.portal-card-ingenio p,
.portal-card-ingenio .portal-cta,
.portal-card-ingenio .portal-tag {
  color: #fff0dd;
}

.portal-card-origin h2 {
  color: #4b1702;
}

.portal-card-origin p,
.portal-card-origin .portal-cta {
  color: #8a4a20;
}

.portal-glow {
  position: absolute;
  inset: auto -10% -25% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 0, 0.24), transparent 70%);
  filter: blur(12px);
}

.portal-logo {
  width: min(100%, 320px);
  height: 180px;
  object-fit: contain;
  justify-self: start;
  z-index: 1;
}

.portal-logo-ingenio {
  width: min(100%, 620px);
  height: 320px;
}

.portal-tag {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.12);
  border: 1px solid rgba(255, 145, 31, 0.18);
  color: var(--oi-orange);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.portal-card h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  max-width: 560px;
  z-index: 1;
}

.portal-card p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
  z-index: 1;
}

.portal-cta {
  margin-top: auto;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.02em;
  z-index: 1;
}

.origin-world,
.ingenio-world {
  padding-top: 44px;
}

.origin-title-block h2,
.ingenio-title-block h2 {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.origin-cinema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.origin-cinema-panel {
  padding: 28px;
  display: grid;
  gap: 14px;
}

.origin-cinema-panel h3 {
  font-size: clamp(30px, 3vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.origin-cinema-panel p {
  color: rgba(255, 232, 206, 0.82);
  line-height: 1.75;
  font-size: 17px;
}

.origin-cinema-panel-highlight {
  background: linear-gradient(145deg, #221e18, rgb(46, 34, 8));
}

.origin-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.origin-signal-row span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.12);
  border: 1px solid rgba(255, 145, 31, 0.16);
  color: #ffcb98;
  font-weight: 900;
}

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

.doc-teaser-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #FFC107, rgba(255, 240, 224, 0.96));
  border: 1px solid rgba(255, 145, 31, 0.12);
  box-shadow: 0 30px 80px -68px rgba(255, 106, 0, 0.32);
}

.doc-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.12);
  color: var(--oi-orange);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-teaser-card h3 {
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #4a1600;
  margin-bottom: 10px;
}

.doc-teaser-card p {
  color: #935126;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .portal-choice-grid,
  .origin-cinema-grid,
  .doc-teaser-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-card {
    min-height: 420px;
    padding: 22px;
  }

  .portal-logo,
  .portal-logo-ingenio {
    width: 100%;
    height: 150px;
  }
}

/* Public portal mobile navigation: keep menu visible on small screens. */
@media (max-width: 760px) {
  .nav {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav .brand {
    min-width: 0;
    flex: 1 1 100%;
  }

  .nav-links {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 2px;
    scrollbar-width: thin;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    background: rgba(255, 248, 240, 0.82);
    color: #2c4d73;
  }
}
.result-stage-summary-only {
  padding: 12px;
  overflow: hidden;
}

.sequence-grid-inline {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.sequence-grid-inline .sequence-step {
  padding: 16px;
}

.sequence-grid-inline .sequence-head {
  gap: 6px;
  margin-bottom: 12px;
}

.sequence-grid-inline .sequence-head h3 {
  font-size: clamp(22px, 2vw, 30px);
}

.sequence-grid-inline .sequence-head p {
  font-size: 14px;
  line-height: 1.5;
}

.sequence-grid-inline .sequence-visual-frame {
  padding: 10px;
}

.sequence-grid-inline .sequence-visual-frame img {
  height: min(30vh, 260px);
}

.sequence-grid-inline .empty-state {
  min-height: min(30vh, 260px);
  height: min(30vh, 260px);
  padding: 14px;
}

.processing-ribbon-vertical {
  gap: 8px;
  align-content: start;
}

.processing-ribbon-vertical span {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.3;
}

.summary-grid,
.measurement-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.summary-card,
.measurement-grid article {
  min-height: 108px;
  padding: 14px;
}

.summary-card b,
.measurement-grid b {
  font-size: 22px;
}

.measurement-demo-note {
  font-size: 13px;
}

.measurement-table th,
.measurement-table td {
  padding: 9px 10px;
  font-size: 12px;
}

.workspace-toolbar-end {
  margin-top: 10px;
}

@media (max-width: 1280px) {
  .sequence-grid-inline {
    grid-template-columns: 1fr 1fr;
  }

  .sequence-grid-inline .sequence-step-processing {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .sequence-grid-inline {
    grid-template-columns: 1fr;
  }

  .sequence-grid-inline .sequence-visual-frame img,
  .sequence-grid-inline .empty-state {
    height: 320px;
    min-height: 320px;
  }
}
.story-drawer-grid-pro {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.story-drawer-copy-pro {
  display: grid;
  gap: 18px;
}

.story-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.story-proof-strip article {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 145, 31, 0.08), rgba(255, 145, 31, 0.03));
  border: 1px solid rgba(255, 145, 31, 0.14);
}

.story-proof-strip span {
  display: block;
  color: #ffcb98;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-proof-strip strong {
  display: block;
  margin-top: 8px;
  color: #fff3de;
  font-size: 34px;
  line-height: 1;
}

.story-proof-strip small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 227, 197, 0.7);
  line-height: 1.5;
}

.score-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.score-step {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 145, 31, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,145,31,0.05));
}

.score-step strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #fff0dc;
}

.score-step-base strong {
  color: #ffd18a;
}

.score-step-final strong {
  color: #ffb15a;
}

.score-label {
  color: #ffcb98;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
}

.score-step p {
  color: rgba(255, 227, 197, 0.78);
  line-height: 1.6;
  margin: 0;
}

.score-arrow {
  font-size: 42px;
  color: #ff9d3f;
  font-weight: 900;
}

.story-evolution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.story-evolution-grid article {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 145, 31, 0.14);
  background: rgba(255, 145, 31, 0.04);
}

.story-evolution-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ffcb98;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-evolution-grid strong {
  display: block;
  color: #fff1dc;
  font-size: 24px;
  line-height: 1.08;
  margin-bottom: 8px;
}

.story-evolution-grid p {
  color: rgba(255, 227, 197, 0.72);
  line-height: 1.6;
  margin: 0;
}

.story-real-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-real-signals span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.08);
  border: 1px solid rgba(255, 145, 31, 0.14);
  color: #ffd2a2;
  font-weight: 800;
}

.story-side-note {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,145,31,0.08), rgba(255,145,31,0.03));
  border: 1px solid rgba(255,145,31,0.14);
}

.story-side-note h4 {
  margin: 0 0 8px;
  color: #fff1dc;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.story-side-note p {
  margin: 0;
  color: rgba(255, 227, 197, 0.78);
  line-height: 1.6;
}

code {
  font-family: "JetBrains Mono", "Cascadia Code", monospace;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 145, 31, 0.08);
  color: #ffd2a2;
}

@media (max-width: 1180px) {
  .story-proof-strip,
  .story-evolution-grid,
  .score-track,
  .story-drawer-grid-pro {
    grid-template-columns: 1fr;
  }

  .score-arrow {
    display: none;
  }
}
.story-hero-composition {
  display: grid;
  gap: 14px;
}

.story-hero-photo-main {
  height: auto;
  min-height: 0;
  max-height: 540px;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: linear-gradient(180deg, #fffaf3, #fff2e1);
  box-shadow: 0 26px 64px -36px rgba(255, 106, 0, 0.28);
}

.story-hero-caption {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,145,31,0.09), rgba(255,145,31,0.03));
  border: 1px solid rgba(255,145,31,0.14);
}

.story-hero-caption span {
  color: #ffcb98;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-hero-caption strong {
  color: #fff1dc;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.sequence-grid-dual {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.sequence-grid-dual .sequence-step {
  min-height: 100%;
}

.sequence-grid-dual .sequence-visual-frame {
  min-height: 0;
}

.sequence-grid-dual .sequence-visual-frame img {
  height: min(48vh, 420px);
  min-height: 320px;
  object-fit: contain;
}

.sequence-grid-dual .empty-state {
  min-height: min(48vh, 420px);
  height: min(48vh, 420px);
}

.sequence-grid-dual .sequence-visual-frame-dark {
  background: radial-gradient(circle at top, rgba(255, 194, 124, 0.12), rgba(10, 8, 6, 0.96));
}

.dashboard-body .shell {
  max-width: 1480px;
}

.hero-dashboard {
  padding-bottom: 26px;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.dashboard-hero-side {
  display: grid;
  gap: 12px;
  align-content: center;
}

.dashboard-main {
  display: grid;
  gap: 24px;
}

.dashboard-section {
  padding-top: 10px;
}

.dashboard-kpi-grid,
.dashboard-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.dashboard-service-card {
  min-height: 0;
}

.dashboard-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
}

.dashboard-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.dashboard-panel-head {
  display: grid;
  gap: 6px;
}

.dashboard-panel-head h3 {
  margin: 0;
  color: #fff2e1;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.dashboard-session-list,
.dashboard-event-list {
  display: grid;
  gap: 12px;
  max-height: 860px;
  overflow-y: auto;
  padding-right: 6px;
}

.dashboard-row-card,
.dashboard-event-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 145, 31, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,145,31,0.04));
}

.dashboard-row-main,
.dashboard-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-row-main strong,
.dashboard-event-top strong {
  color: #fff2e1;
  font-size: 20px;
}

.dashboard-row-main span,
.dashboard-event-top span {
  color: rgba(255, 227, 197, 0.7);
  font-size: 13px;
}

.dashboard-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-row-meta span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.08);
  border: 1px solid rgba(255, 145, 31, 0.12);
  color: #ffd8af;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 1280px) {
  .sequence-grid-dual,
  .dashboard-hero-grid,
  .dashboard-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .sequence-grid-dual .sequence-visual-frame img,
  .sequence-grid-dual .empty-state {
    height: min(44vh, 340px);
    min-height: 260px;
  }
}

.dashboard-console-body {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 145, 31, 0.12), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255, 198, 124, 0.12), transparent 24%),
    #0a0908;
  color: #fff0db;
}

.dashboard-console-body .ambient-grid {
  opacity: 0.08;
  filter: saturate(0.8);
}

.shell-dashboard-console {
  max-width: 1600px;
  padding-top: 24px;
}

.dashboard-console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,145,31,0.03));
  border: 1px solid rgba(255, 145, 31, 0.14);
  box-shadow: 0 22px 60px -44px rgba(0, 0, 0, 0.6);
}

.nav-links-console a {
  color: #ffddb9;
}

.dashboard-console-main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.dashboard-console-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-console-status .status-box {
  flex: 1;
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 145, 31, 0.08);
  border: 1px solid rgba(255, 145, 31, 0.16);
  color: #ffd5aa;
}

.dashboard-console-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.console-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 145, 31, 0.12);
  color: #ffca91;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-console-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.1fr;
  gap: 16px;
}

.dashboard-console-bottom {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.dashboard-console-panel {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,145,31,0.03)),
    #141311;
  border: 1px solid rgba(255, 145, 31, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  min-height: 100%;
}

.dashboard-console-panel-tall {
  grid-column: span 1;
}

.dashboard-panel-head-compact {
  margin-bottom: 14px;
}

.dashboard-panel-head-compact h2 {
  margin: 0;
  color: #fff1de;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.dashboard-kpi-grid-console {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-card-console {
  min-height: 112px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,145,31,0.08), rgba(255,145,31,0.03));
  border: 1px solid rgba(255, 145, 31, 0.14);
}

.summary-card-console span {
  color: #ffb66d;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.summary-card-console b {
  color: #fff6ea;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1;
}

.summary-card-console small {
  color: rgba(255, 216, 175, 0.65);
  font-size: 12px;
}

.dashboard-chart {
  min-height: 240px;
  display: grid;
  align-items: stretch;
}

.dashboard-chart-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 145, 31, 0.16);
  color: rgba(255, 216, 175, 0.62);
}

.dashboard-bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  align-items: end;
  gap: 10px;
  height: 100%;
}

.dashboard-bar-col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-height: 220px;
}

.dashboard-bar-value,
.dashboard-bar-label {
  color: #ffd7b0;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.dashboard-bar-track {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 160px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,145,31,0.03));
  border: 1px solid rgba(255, 145, 31, 0.08);
  overflow: hidden;
}

.dashboard-bar-fill {
  width: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcc8a, #ff8b1f 52%, #ff5f1f);
  box-shadow: 0 0 16px rgba(255, 136, 31, 0.35);
}

.dashboard-service-grid-console {
  display: grid;
  gap: 10px;
}

.dashboard-service-compact {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 145, 31, 0.12);
}

.dashboard-service-compact.is-primary {
  background: linear-gradient(180deg, rgba(255,145,31,0.11), rgba(255,145,31,0.04));
}

.dashboard-service-code {
  color: #ffb66d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-service-main {
  color: #fff2de;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.dashboard-service-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-service-stats span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 145, 31, 0.08);
  color: #ffd8af;
  font-size: 12px;
}

.dashboard-session-list-console,
.dashboard-event-list-console {
  max-height: 640px;
  gap: 10px;
  padding-right: 4px;
}

.dashboard-console-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255, 145, 31, 0.10);
}

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

.dashboard-console-row-top strong {
  color: #fff1de;
  font-size: 16px;
}

.dashboard-console-row-top span {
  color: #ffb66d;
  font-size: 12px;
}

.dashboard-console-row-grid,
.dashboard-log-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-console-row-grid span,
.dashboard-log-body span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 145, 31, 0.06);
  color: #ffd8af;
  font-size: 12px;
}

.dashboard-log-line {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #121110;
  border-left: 3px solid #ff8f1f;
  border: 1px solid rgba(255, 145, 31, 0.10);
}

.dashboard-log-line.is-start {
  border-left-color: #ffcc8a;
}

.dashboard-log-line.is-process {
  border-left-color: #ff6f1f;
}

.dashboard-log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-log-head strong {
  color: #fff1de;
  font-size: 15px;
  text-transform: lowercase;
}

.dashboard-log-head span {
  color: rgba(255, 216, 175, 0.66);
  font-size: 12px;
}

@media (max-width: 1450px) {
  .dashboard-console-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-console-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .dashboard-console-topbar,
  .dashboard-console-status,
  .dashboard-console-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-console-topbar {
    justify-content: stretch;
  }

  .dashboard-kpi-grid-console,
  .dashboard-console-row-grid,
  .dashboard-log-body {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-kpi-grid-console,
  .dashboard-console-row-grid,
  .dashboard-log-body {
    grid-template-columns: 1fr;
  }

  .nav-links-console {
    flex-wrap: wrap;
  }
}

.auth-shell {
  gap: 28px;
}

.auth-hero {
  padding-bottom: 36px;
}

.auth-hero-copy {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.auth-main-grid,
.private-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.private-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 176, 0, 0.14);
  background: linear-gradient(180deg, rgba(29, 20, 15, 0.94), rgba(21, 15, 12, 0.96));
  box-shadow: 0 24px 48px rgba(16, 10, 7, 0.3);
}

.auth-card:not(.auth-card-dark) {
  background: linear-gradient(180deg, rgba(37, 26, 20, 0.96), rgba(29, 21, 17, 0.98));
}

.auth-card h2,
.auth-card p,
.auth-card label,
.auth-card-copy,
.auth-credit-note,
.private-meta span {
  color: #f9ead4;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form input {
  border-radius: 14px;
  border: 1px solid rgba(255, 176, 0, 0.15);
  background: rgba(255, 247, 237, 0.92);
  color: #2f1606;
}

.auth-credit-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 176, 0, 0.08);
  border: 1px dashed rgba(255, 176, 0, 0.22);
}

.nav-logout,
.private-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 0, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff2dd;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.nav-logout:hover,
.private-action-link:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(255, 176, 0, 0.88));
  color: #2a1306;
}

.private-wide {
  grid-column: 1 / -1;
}

.private-meta,
.private-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.private-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 0, 0.16);
  background: rgba(255, 176, 0, 0.08);
}

#walletBalance {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

@media (max-width: 980px) {
  .auth-main-grid,
  .private-grid {
    grid-template-columns: 1fr;
  }
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 166, 77, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.stack-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.stack-item p {
  margin: 0;
  color: rgba(245, 236, 222, 0.72);
}

.stack-item-empty {
  color: rgba(245, 236, 222, 0.72);
  justify-content: center;
}

.stack-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 10px;
  min-width: 220px;
}

.stack-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 166, 77, 0.1);
  border: 1px solid rgba(255, 166, 77, 0.22);
  color: #ffd6aa;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.auth-hero {
  min-height: auto;
  padding: 0 0 24px;
}

.auth-hero-copy {
  margin: 26px 0 0;
  max-width: 980px;
}

.auth-hero-copy h1,
#privateHeadline {
  font-size: clamp(2.35rem, 4.2vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  max-width: 980px;
}

.auth-hero-copy p,
#privateSubline {
  max-width: 900px;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.5;
}

.auth-main-grid,
.private-grid {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.contract-builder {
  display: grid;
  gap: 16px;
}

.contract-form {
  display: grid;
  gap: 14px;
}

.contract-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contract-form label {
  display: grid;
  gap: 8px;
  color: #f9ead4;
  font-weight: 600;
}

.contract-form input,
.contract-form select,
.contract-form textarea {
  border-radius: 14px;
  border: 1px solid rgba(255, 176, 0, 0.18);
  background: rgba(255, 247, 237, 0.92);
  color: #2f1606;
  padding: 12px 14px;
  font: inherit;
}

.contract-todo {
  display: grid;
  gap: 6px;
  color: #f9ead4;
}

.contract-todo small {
  color: rgba(249, 234, 212, 0.72);
}

.private-action-button {
  border: 0;
}

.stack-item-column {
  align-items: stretch;
}

.catalog-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.catalog-chip-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 176, 0, 0.06);
  border: 1px solid rgba(255, 176, 0, 0.12);
}

.catalog-chip-card span,
.catalog-chip-card small {
  color: rgba(249, 234, 212, 0.74);
}

.auth-card {
  min-width: 0;
}

@media (max-width: 900px) {
  .auth-shell {
    width: min(100%, calc(100% - 28px));
    padding-top: 18px;
  }

  .auth-hero-copy h1,
  #privateHeadline {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .contract-form-grid {
    grid-template-columns: 1fr;
  }
}

.auth-shell {
  width: min(1240px, calc(100% - 40px));
}

.auth-hero {
  padding: 26px 26px 22px;
}

.auth-hero-copy {
  max-width: 760px;
  margin-top: 18px;
}

.auth-hero-copy h1,
#privateHeadline {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 0.96;
  max-width: 12ch;
}

.auth-hero-copy p,
#privateSubline {
  max-width: 760px;
  font-size: clamp(0.98rem, 1.05vw, 1.15rem);
}

.auth-main-grid,
.private-grid {
  max-width: 1240px;
}

.private-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}

.auth-catalog-picker {
  display: grid;
  gap: 12px;
}

.auth-catalog-header {
  display: grid;
  gap: 4px;
}

.auth-catalog-header strong {
  font-size: 0.98rem;
}

.auth-catalog-header small {
  color: var(--muted);
}

.auth-catalog-options {
  display: grid;
  gap: 10px;
}

.catalog-option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 145, 0, 0.16);
  background: rgba(255, 248, 239, 0.72);
}

.catalog-option-card strong {
  display: block;
}

.catalog-option-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.catalog-option-card input {
  margin-top: 4px;
}

.catalog-option-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  background: #fff8ef;
}

@media (max-width: 900px) {
  .auth-shell {
    width: min(100%, calc(100% - 24px));
  }

  .auth-hero {
    padding: 22px 18px 18px;
  }

  .auth-hero-copy h1,
  #privateHeadline {
    max-width: none;
    font-size: clamp(1.85rem, 9vw, 3rem);
  }

  .private-grid {
    grid-template-columns: 1fr;
  }
}

.auth-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.auth-hero {
  min-height: auto;
  padding: 8px 0 18px;
}

.auth-hero .nav {
  max-width: 100%;
}

.auth-hero-copy {
  max-width: 680px;
  margin-top: 20px;
}

.auth-hero-copy h1,
#privateHeadline {
  font-size: clamp(1.95rem, 3.1vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11.5ch;
}

.auth-hero-copy p,
#privateSubline {
  max-width: 680px;
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  color: #6f4b2f;
}

.auth-layout {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.06fr);
  gap: 22px;
}

.auth-side-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(249, 115, 22, 0.12);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(255, 243, 229, 0.96));
  box-shadow: 0 24px 54px -38px rgba(73, 34, 10, 0.28);
}

.auth-side-panel h2 {
  font-size: clamp(1.4rem, 1.75vw, 2rem);
  line-height: 1.05;
  color: #2f1606;
}

.auth-side-panel p {
  color: #6d4a31;
  line-height: 1.6;
}

.auth-side-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-side-pills span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.16);
  color: #8a4718;
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-card-workbench {
  background: linear-gradient(180deg, rgba(29, 20, 15, 0.94), rgba(21, 15, 12, 0.98));
}

.auth-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid rgba(255, 176, 0, 0.14);
}

.auth-view-tab {
  border: 0;
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 999px;
  background: transparent;
  color: rgba(249, 234, 212, 0.82);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-view-tab.is-active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.98), rgba(255, 176, 0, 0.88));
  color: #2f1606;
  box-shadow: 0 18px 34px -24px rgba(249, 115, 22, 0.7);
}

.auth-view-tab:hover {
  transform: translateY(-1px);
}

.auth-view-panel {
  display: none;
  gap: 14px;
}

.auth-view-panel.is-active {
  display: grid;
}

.auth-card {
  gap: 16px;
}

.auth-card h2,
#profileName,
#walletBalance {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.05;
  color: #fff4e4;
}

.auth-form label,
.auth-card-copy,
.auth-credit-note,
.private-meta span,
.stack-item,
.stack-item strong,
.stack-item p,
.stack-item small {
  color: #f6e7d0;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.contract-form input,
.contract-form select,
.contract-form textarea {
  background: rgba(255, 250, 243, 0.96);
  color: #2f1606;
  border-color: rgba(249, 115, 22, 0.18);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder,
.contract-form input::placeholder,
.contract-form textarea::placeholder {
  color: rgba(92, 55, 26, 0.58);
}

.auth-main-grid,
.private-grid {
  max-width: 1180px;
}

.private-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
}

.private-wide {
  grid-column: 1 / -1;
}

.private-meta span,
.catalog-chip-card,
.stack-item {
  background: rgba(255, 176, 0, 0.07);
  border-color: rgba(255, 176, 0, 0.12);
}

.catalog-option-card {
  background: rgba(255, 249, 240, 0.96);
}

@media (max-width: 980px) {
  .auth-layout,
  .auth-main-grid,
  .private-grid {
    grid-template-columns: 1fr;
  }

  .auth-view-switch {
    width: 100%;
  }

  .auth-view-tab {
    flex: 1;
    min-width: 0;
  }
}

/* Private area v2 */
body.drawer-open {
  overflow: hidden;
}

.private-shell-private {
  gap: 24px;
}

.private-hero-shell {
  position: relative;
  overflow: hidden;

  box-shadow: 0 28px 60px rgba(29, 16, 5, 0.22);
}

.private-nav-shell {
  background: rgba(255, 248, 240, 0.98);
  border-radius: 30px;
  padding: 16px 22px;
}

.private-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  margin-top: 26px;
  align-items: start;
}

.private-hero-copy {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.private-hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
  color: #fff8f1;
  max-width: 9ch;
}

.private-hero-copy p {
  color: rgba(255, 237, 213, 0.92);
  max-width: 58ch;
  line-height: 1.7;
  font-size: 1.02rem;
}

.private-meta-hero {
  gap: 10px;
}

.private-meta-hero span {
  background: rgba(255, 237, 213, 0.1);
  border-color: rgba(255, 237, 213, 0.18);
  color: #fff0df;
}

.private-hero-side {
  display: grid;
  gap: 18px;
}

.private-hero-kpi h2 {
  color: #fff7ed;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
}

.private-actions-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.private-actions-hero .private-action-link {
  background: rgba(255, 247, 237, 0.08);
  border-color: rgba(255, 237, 213, 0.18);
  color: #fff7ed;
}

.private-actions-hero .private-action-link:hover {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #241100;
}

.private-tabs-shell {
  padding: 16px;
}

.private-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.private-tab {
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: rgba(255, 247, 237, 0.06);
  color: rgba(255, 237, 213, 0.84);
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 0.96rem/1 "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
}

.private-tab.active {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #241100;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.private-panels-stack {
  display: grid;
  gap: 20px;
}

.private-tab-panel {
  display: none;
  gap: 20px;
}

.private-tab-panel.active {
  display: grid;
}

.private-section-grid {
  display: grid;
  gap: 20px;
}

.private-section-grid-1 {
  grid-template-columns: 1fr;
}

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

.private-panel-card {
  min-height: 100%;
}

.private-panel-card h2 {
  color: #fff7ed;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.02;
}

.panel-copy {
  color: rgba(255, 237, 213, 0.78);
  line-height: 1.65;
}

.private-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.private-chip-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  background: rgba(255, 247, 237, 0.07);
  color: #f8dcc2;
  font-size: 0.84rem;
}

.private-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.private-stat-card {
  background: rgba(255, 247, 237, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 6px;
}

.private-stat-card strong {
  color: #fff7ed;
  font-size: 2rem;
}

.private-stat-card span {
  color: rgba(255, 237, 213, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.private-mini-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.doc-mini-card {
  border: 1px solid rgba(249, 115, 22, 0.15);
  background: rgba(255, 247, 237, 0.06);
  color: #fff7ed;
  border-radius: 22px;
  padding: 12px;
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.doc-mini-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, 0.14);
}

.doc-mini-card span {
  font-weight: 700;
}

.doc-mini-card small {
  color: rgba(255, 237, 213, 0.72);
}

.private-pane-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.private-pane-hero h2 {
  color: #fff7ed;
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  line-height: 1;
}

.private-pane-hero p {
  color: rgba(255, 237, 213, 0.78);
  max-width: 64ch;
  line-height: 1.68;
}

.stack-list-dark {
  display: grid;
  gap: 16px;
}

.stack-item-dark,
.catalog-chip-card-dark,
.catalog-private-card {
  background: rgba(255, 247, 237, 0.06);
  border-color: rgba(249, 115, 22, 0.14);
  color: #fff7ed;
}

.stack-item-dark p,
.stack-item-dark small,
.catalog-chip-card-dark small,
.catalog-private-card p {
  color: rgba(255, 237, 213, 0.74);
}

.stack-item-column {
  display: grid;
  gap: 14px;
}

.stack-item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

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

.catalog-grid-private-scroll {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.catalog-private-card {
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.catalog-private-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.catalog-private-card-top strong {
  color: #fff7ed;
  font-size: 1.05rem;
}

.catalog-private-card-top span {
  color: #f9c58f;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.catalog-private-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(249, 115, 22, 0.14);
}

.docs-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.doc-library-card {
  display: grid;
  gap: 16px;
}

.doc-library-cover-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.14);
  background: rgba(255, 247, 237, 0.04);
}

.doc-library-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.doc-library-copy {
  display: grid;
  gap: 12px;
}

.doc-library-copy h3 {
  color: #fff7ed;
  font-size: 1.35rem;
}

.doc-library-copy p {
  color: rgba(255, 237, 213, 0.78);
  line-height: 1.65;
}

.doc-highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-highlight-list span {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  background: rgba(255, 247, 237, 0.05);
  color: #f6dcc0;
  font-size: 0.8rem;
}

.doc-library-actions {
  display: flex;
  justify-content: flex-start;
}

.private-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.private-drawer.hidden {
  display: none;
}

.private-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 4, 0.7);
  backdrop-filter: blur(12px);
}

.private-drawer-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(1120px, calc(100vw - 48px));
  border-radius: 30px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 34%),
    linear-gradient(165deg, rgba(20, 12, 5, 0.98), rgba(42, 22, 8, 0.95));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.private-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.private-drawer-header h3 {
  color: #fff7ed;
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
}

.private-drawer-body {
  overflow: auto;
  padding-right: 8px;
}

.contract-form-drawer,
.doc-reader-shell {
  display: grid;
  gap: 18px;
}

.contract-legend-box {
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 22px;
  background: rgba(255, 247, 237, 0.05);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.contract-legend-box strong {
  color: #fff7ed;
}

.contract-legend-box p {
  color: rgba(255, 237, 213, 0.78);
  line-height: 1.6;
}

.ghost-button {
  border: 1px solid rgba(249, 115, 22, 0.16);
  background: rgba(255, 247, 237, 0.05);
  color: #fff7ed;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.doc-reader-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.doc-reader-toolbar strong {
  color: #fff7ed;
  font-size: 1.12rem;
}

.doc-reader-toolbar p {
  color: rgba(255, 237, 213, 0.76);
  line-height: 1.6;
  max-width: 72ch;
}

.doc-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.doc-reader-stage {
  min-height: 520px;
  border-radius: 26px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  background: rgba(255, 247, 237, 0.05);
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 18px;
}

.doc-reader-image {
  max-width: 100%;
  transform-origin: top center;
  transition: transform 0.18s ease;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.doc-reader-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.doc-reader-footer span {
  color: rgba(255, 237, 213, 0.82);
}

.doc-highlight-list-drawer {
  justify-content: flex-end;
}

.stack-item-light {
  background: rgba(255, 247, 237, 0.08);
}

@media (max-width: 1100px) {
  .private-hero-grid,
  .private-section-grid-2 {
    grid-template-columns: 1fr;
  }

  .private-pane-hero,
  .doc-reader-toolbar,
  .doc-reader-footer,
  .stack-item-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .private-drawer-panel {
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: 16px;
    width: auto;
  }
}

@media (max-width: 780px) {
  .private-hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .private-stat-grid,
  .private-mini-library,
  .catalog-grid-private,
  .docs-library-grid,
  .contract-form-grid {
    grid-template-columns: 1fr;
  }

  .private-nav-shell {
    padding: 14px 16px;
  }
}

/* Hero cleanup requested */
.private-hero-shell,
.auth-hero {
  background: transparent;
  border: none;
  box-shadow: none;
}

.auth-hero-copy h1,
#privateHeadline,
.private-hero-copy h1 {
  max-width: none;
}

/* Access/private alignment overrides */
.auth-shell,
.private-shell-private {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.auth-hero,
.private-hero-shell {
  padding-inline: 0;
  padding-top: 8px;
  padding-bottom: 12px;
}

.auth-hero-copy,
.private-hero-copy {
  max-width: 620px;
}

.auth-hero-copy h1 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

#privateHeadline,
.private-hero-copy h1 {
  font-size: clamp(2rem, 2.7vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-hero-copy p,
#privateSubline,
.private-hero-copy p {
  max-width: 720px;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
}

.auth-layout {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: start;
}

.auth-side-panel,
.auth-card-workbench {
  min-width: 0;
}

.private-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  align-items: start;
}

.private-tabs-shell,
.private-panels-stack {
  max-width: 1280px;
  margin-inline: auto;
}

@media (max-width: 980px) {
  .auth-shell,
  .private-shell-private {
    width: min(100%, calc(100% - 24px));
  }

  .auth-layout,
  .private-hero-grid {
    grid-template-columns: 1fr;
  }

  .auth-hero-copy,
  .private-hero-copy {
    max-width: none;
  }

  .auth-hero-copy h1,
  #privateHeadline,
  .private-hero-copy h1 {
    font-size: clamp(1.9rem, 8vw, 2.9rem);
  }
}
/* Perfil cliente + objeto referencia */
.auth-flow-layout,
.reference-shell,
.reference-kpi-row,
.reference-help-list,
.reference-upload-form,
.reference-form,
.reference-image-list,
.reference-annotator-actions,
.auth-dynamic-fields {
  display: flex;
}

.auth-flow-layout {
  align-items: stretch;
  gap: 24px;
  margin-top: 28px;
}

.ambient-grid {
  display: none !important;
}

.private-hero-flex {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  align-items: flex-start;
}

.private-hero-flex .private-hero-copy {
  flex: 1 1 58%;
  min-width: 0;
}

.private-hero-flex .private-hero-side {
  flex: 1 1 42%;
  min-width: 320px;
}

.auth-side-panel-flow {
  flex: 0 0 360px;
}

.auth-card-flow {
  flex: 1;
  min-width: 0;
}

.auth-segmented {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.auth-segment {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-segment.is-active {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1d1208;
}

.auth-dynamic-fields {
  flex-direction: column;
  gap: 14px;
}

.activation-shell {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.profile-signup-hidden {
  display: none !important;
}

.profile-early-access {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 46%),
    rgba(255, 248, 240, 0.06);
}

.profile-early-access span {
  color: #f7b733;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-early-access p {
  color: #fff8ef;
  margin: 0;
}

.profile-early-access a {
  color: #ffdca5;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.activation-card {
  width: min(680px, 100%);
  margin: 12vh auto 0;
}

.activation-link {
  display: inline-flex;
  margin-top: 18px;
  text-decoration: none;
}

.reference-shell {
  flex-direction: column;
  gap: 18px;
}

.reference-panel {
  width: 100%;
}

.reference-kpi-row,
.reference-help-list {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.reference-kpi-row span,
.reference-help-list span {
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8e8c8;
}

.reference-form,
.reference-upload-form {
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.reference-form label,
.reference-upload-form label {
  flex: 1 1 180px;
}

.reference-file-button {
  position: relative;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  border: 1px dashed rgba(249, 115, 22, 0.45);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}

.reference-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.reference-image-list {
  flex-wrap: wrap;
  gap: 14px;
}

.reference-image-item {
  width: 170px;
  min-height: 210px;
  border: 1px solid rgba(250, 204, 21, 0.16);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.reference-image-item img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 10px;
}

.reference-image-item span,
.reference-image-item small {
  display: block;
  overflow-wrap: anywhere;
}

.reference-image-item small {
  color: #d7c1a2;
  margin-top: 6px;
}

.reference-annotator {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reference-annotator-stage {
  position: relative;
  width: 100%;
  min-height: 360px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  cursor: crosshair;
}

.reference-annotator-stage img,
.reference-annotator-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reference-annotator-stage img {
  object-fit: contain;
}

.reference-annotator-stage svg {
  z-index: 2;
}

.reference-annotator-stage polygon {
  fill: rgba(249, 115, 22, 0.28);
  stroke: #f97316;
  stroke-width: 0.006;
}

.reference-annotator-stage polyline {
  fill: none;
  stroke: #fbbf24;
  stroke-width: 0.006;
}

.reference-annotator-stage circle {
  fill: #ffffff;
  stroke: #f97316;
  stroke-width: 0.004;
}

.reference-annotator-actions {
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 920px) {
  .auth-flow-layout {
    flex-direction: column;
  }

  .private-hero-flex {
    flex-direction: column;
  }

  .private-hero-flex .private-hero-side {
    min-width: 0;
    width: 100%;
  }

  .auth-side-panel-flow {
    flex-basis: auto;
  }
}

/* Dashboard analytics: fixed, readable blocks for accumulated and 24h data. */
.dashboard-console-grid,
.dashboard-console-bottom,
.dashboard-console-panel,
.dashboard-kpi-grid-console,
.dashboard-service-grid-console,
.dashboard-console-row,
.dashboard-log-line {
  min-width: 0;
}

.dashboard-kpi-grid-console {
  grid-template-columns: repeat(3, minmax(118px, 1fr));
}

.summary-card-console {
  min-width: 0;
  overflow: hidden;
}

.summary-card-console b,
.summary-card-console span,
.summary-card-console small,
.dashboard-service-code,
.dashboard-service-main,
.dashboard-console-row-top strong,
.dashboard-console-row-top span,
.dashboard-log-head strong,
.dashboard-log-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-chart {
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
}

.dashboard-bar-chart-24h {
  grid-template-columns: repeat(24, minmax(34px, 1fr));
  min-width: 900px;
}

.dashboard-bar-col {
  min-width: 0;
}

.dashboard-bar-value,
.dashboard-bar-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-console-row-grid span,
.dashboard-log-body span {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-log-line.is-visit {
  border-left-color: #5eead4;
}

.dashboard-log-line.is-visit .dashboard-log-head strong {
  color: #c8fff4;
}

@media (max-width: 1320px) {
  .dashboard-console-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* Profile client workspace reset */
.profile-workspace-body {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 176, 0, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 26%),
    linear-gradient(180deg, #fff8ef 0%, #fffdf9 54%, #fff4e8 100%);
  color: #2f1606;
}

.profile-login-shell,
.profile-console-shell {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.profile-topbar,
.studio-page-head,
.studio-panel {
  border: 1px solid rgba(159, 84, 16, 0.16);
  box-shadow: 0 18px 40px rgba(103, 53, 11, 0.07);
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.94);
  margin-bottom: 18px;
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2f1606;
}

.profile-brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.profile-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.profile-brand small,
.studio-muted {
  color: #7a5b44;
}

.profile-ghost-link,
.studio-secondary,
.studio-tab,
.studio-subtab {
  border: 1px solid rgba(159, 84, 16, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #2f1606;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.profile-auth-layout,
.studio-page-head,
.profile-topbar-actions,
.studio-panel-head,
.studio-tabs,
.studio-subtabs,
.studio-form-row,
.studio-actions,
.studio-actions-row,
.profile-session-columns,
.profile-dataset-columns,
.studio-kpi-row,
.studio-card-row,
.profile-pills {
  display: flex;
}

.profile-auth-layout {
  align-items: stretch;
  gap: 18px;
}

.profile-auth-copy {
  flex: 0 0 430px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 244, 230, 0.94));
  border: 1px solid rgba(159, 84, 16, 0.16);
}

.profile-auth-copy h1,
.studio-page-head h1 {
  color: #2f1606;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 720px;
}

.profile-auth-copy p,
.studio-page-head p,
.studio-panel p {
  color: #7a5b44;
  line-height: 1.55;
}

.profile-pills {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.profile-pills span,
.studio-badge,
.profile-session-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 176, 0, 0.14);
  color: #7c2d12;
  border: 1px solid rgba(249, 115, 22, 0.16);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  width: fit-content;
  height: auto;
  min-height: 28px;
  max-height: 36px;
  white-space: nowrap;
}

.studio-badge.ok {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.profile-auth-panel {
  flex: 1;
  min-width: 0;
}

.studio-page-head,
.studio-panel {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(255, 246, 234, 0.94));
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
}

.studio-page-head {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-balance-card {
  min-width: 260px;
  border-radius: 18px;
  padding: 18px;
  color: #fff6ea;
  background: linear-gradient(135deg, #120c08 0%, #2a190d 100%);
}

.profile-balance-card strong {
  display: block;
  font-size: 2rem;
  margin: 6px 0;
}

.studio-kicker {
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.studio-tabs,
.studio-subtabs {
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.studio-tab.active,
.studio-subtab.active,
.studio-segment.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(255, 176, 0, 0.88));
  color: #2a1306;
  border-color: rgba(255, 176, 0, 0.34);
}

.profile-auth-view,
.profile-tab-panel {
  display: none;
}

.profile-auth-view.active,
.profile-auth-view.is-active,
.profile-tab-panel.active {
  display: block;
}

.studio-form,
.studio-inline-form,
.studio-list,
.studio-detail-list,
.studio-media-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-form {
  margin-top: 14px;
}

.studio-form-row {
  gap: 12px;
  align-items: flex-start;
}

.studio-form-row > label,
.studio-inline-form > label,
.studio-form > label {
  flex: 1;
  min-width: 0;
}

.studio-form input,
.studio-form select,
.studio-inline-form input,
.studio-inline-form select {
  width: 100%;
  background: #fff1df;
  border: 1px solid rgba(159, 84, 16, 0.16);
  border-radius: 12px;
  padding: 11px 12px;
  color: #2f1606;
}

.profile-auth-panel .studio-form label {
  color: #4c3324;
}

.profile-auth-panel input[type="email"],
.profile-auth-panel #loginEmail,
.profile-auth-panel #signupEmail {
  color: #18100b;
  background: #fffaf2;
  caret-color: #f97316;
}

.studio-segmented {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(159, 84, 16, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.studio-segment {
  flex: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: #2f1606;
  font-weight: 800;
  cursor: pointer;
}

.studio-primary {
  background: linear-gradient(140deg, #ffb000, #f97316);
  border: none;
  padding: 11px 16px;
  border-radius: 12px;
  color: #2a1306;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.studio-panel-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.studio-detail-list {
  flex-direction: row;
  flex-wrap: wrap;
}

.studio-detail-list > div,
.studio-kpi-row > div {
  flex: 1 1 220px;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.studio-detail-list span,
.studio-kpi-row span {
  display: block;
  color: #7a5b44;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.studio-detail-list strong,
.studio-kpi-row strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.profile-session-columns,
.profile-dataset-columns {
  gap: 16px;
}

.profile-session-columns > section,
.profile-dataset-columns > section {
  flex: 1;
  min-width: 0;
}

.studio-list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.training-request-accordion {
  display: block;
  padding: 0;
  overflow: hidden;
}

.training-request-summary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: #2f1606;
  text-align: left;
  padding: 14px;
  cursor: pointer;
}

.training-request-summary p {
  margin: 4px 0 0;
  color: #7a5b44;
}

.training-request-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
}

.training-request-meta,
.training-trace-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.training-request-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.12);
  color: #7a5b44;
  font-size: 12px;
  font-weight: 800;
}

.training-trace-list {
  flex-direction: column;
}

.training-trace-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(159, 84, 16, 0.18);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.66);
}

.training-trace-item p {
  margin: 0;
}

.training-trace-item small {
  color: #7a5b44;
  white-space: nowrap;
}

.studio-muted-line {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0;
  margin: 0.25rem 0 0;
}

.contract-key-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.contract-key-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 250, 241, 0.68);
}

.contract-key-info {
  flex: 1 1 380px;
  min-width: 0;
}

.api-key-visible-label {
  display: block;
  margin-top: 8px;
  color: #e9782f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contract-key-token {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 12px;
  background: rgba(255, 239, 214, 0.9);
  color: #7c2d12;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contract-status-cell {
  flex: 0 0 auto;
  display: flex;
  align-self: flex-start;
  align-items: flex-start;
}

.contract-origin-input {
  min-width: 260px;
}

.studio-actions,
.studio-actions-row {
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.studio-card-row {
  flex-wrap: wrap;
  gap: 14px;
}

.studio-object-card {
  flex: 1 1 280px;
  max-width: 360px;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.studio-object-card img,
.studio-media-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.studio-media-item {
  text-align: left;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: #2f1606;
  cursor: pointer;
}

.studio-media-item.active {
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.reference-dataset-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reference-toolboard,
.reference-workspace,
.reference-toolgroup,
.reference-editor-head {
  display: flex;
}

.reference-toolboard {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.reference-toolgroup {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reference-toolgroup label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a5b44;
  font-weight: 800;
}

.reference-toolgroup select,
.reference-toolgroup input[type="range"] {
  accent-color: #f97316;
}

.studio-action-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studio-icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(159, 84, 16, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #8a4b20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(120, 58, 10, 0.08);
}

.studio-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.46);
}

.studio-icon-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.studio-icon-button.primary {
  color: #1f140d;
  border-color: rgba(249, 115, 22, 0.2);
  background: linear-gradient(135deg, #f8bd3f, #ed7d2c);
}

.studio-icon-button.danger-soft {
  color: #c2410c;
  border-color: rgba(248, 113, 113, 0.42);
}

.reference-upload-icon {
  width: auto;
  min-width: 78px;
  padding: 0 12px;
}

.reference-upload-icon input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.reference-zoom-control {
  padding: 0 10px;
  min-height: 44px;
  border: 1px solid rgba(159, 84, 16, 0.12);
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.68);
}

.compact-kpis > div {
  flex-basis: 150px;
}

.reference-workspace {
  align-items: stretch;
  min-height: 520px;
}

.reference-editor {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
}

.reference-editor-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.reference-editor-head span {
  display: block;
  color: #7a5b44;
  margin-top: 4px;
}

.reference-image-scroll {
  overflow: auto;
  min-height: 420px;
  max-height: 72vh;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    #1f140d;
  background-size: 24px 24px;
  padding: 12px;
  overscroll-behavior: contain;
}

.reference-annotator-stage.inline {
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
  cursor: crosshair;
  scroll-margin-top: 120px;
}

.reference-annotator-stage.inline img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.reference-annotator-stage.inline svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reference-annotator-stage.inline polygon {
  fill: rgba(249, 115, 22, 0.2);
  stroke: rgba(249, 115, 22, 0.95);
  stroke-width: 0.006;
}

.reference-annotator-stage.inline polyline {
  fill: none;
  stroke: rgba(248, 180, 64, 0.92);
  stroke-width: 0.006;
  stroke-dasharray: 0.018 0.014;
}

.reference-assist-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reference-assist-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(255, 239, 214, 0.92));
}

.reference-assist-hero h3 {
  margin: 8px 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.reference-assist-specs {
  flex: 0 0 340px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reference-assist-specs span {
  flex: 1 1 140px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: #7a5b44;
}

.reference-assist-specs strong {
  display: block;
  color: #2f1606;
  font-size: 20px;
}

.reference-assist-assets,
.reference-assist-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.reference-assist-card,
.reference-assist-sections article {
  flex: 1 1 360px;
  border: 1px solid rgba(159, 84, 16, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.reference-assist-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(159, 84, 16, 0.12);
  background: #fff8ef;
}

.reference-assist-card h4,
.reference-assist-sections h4 {
  margin: 12px 0 8px;
}

.reference-assist-link {
  display: inline-flex;
  text-decoration: none;
  margin-top: 8px;
}

.reference-assist-sections ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #7a5b44;
  line-height: 1.55;
}

.studio-empty,
.studio-test-box {
  border: 1px dashed rgba(159, 84, 16, 0.22);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 247, 237, 0.78);
  color: #7a5b44;
}

.api-key-created-box {
  border-style: solid;
  border-color: rgba(249, 115, 22, 0.34);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 232, 197, 0.82));
}

.api-key-created-box strong {
  display: block;
  color: #2f1606;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.api-key-created-box code {
  display: block;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: #fffaf1;
  color: #7c2d12;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.profile-drawer.hidden,
.hidden {
  display: none !important;
}

.profile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 8, 0.36);
  z-index: 60;
}

.profile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(720px, 100vw);
  height: 100vh;
  overflow: auto;
  background: #fff8ef;
  z-index: 61;
  padding: 22px;
  box-shadow: -24px 0 60px rgba(42, 22, 10, 0.24);
}

.profile-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.profile-annotator-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(159, 84, 16, 0.18);
  background: #1f140d;
  margin: 14px 0;
}

.profile-annotator-stage img,
.profile-annotator-stage svg {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.profile-annotator-stage svg {
  position: absolute;
  inset: 0;
}

.profile-annotator-stage polygon {
  fill: rgba(249, 115, 22, 0.22);
  stroke: #f97316;
  stroke-width: 0.008;
}

.profile-annotator-stage polyline,
.profile-annotator-stage circle {
  fill: #ffb000;
  stroke: #f97316;
  stroke-width: 0.006;
}

@media (max-width: 920px) {
  .profile-login-shell,
  .profile-console-shell {
    width: min(100vw - 24px, 1480px);
  }

  .profile-auth-layout,
  .studio-page-head,
  .profile-session-columns,
  .profile-dataset-columns,
  .reference-workspace,
  .reference-assist-hero,
  .studio-form-row {
    flex-direction: column;
  }

  .reference-assist-specs {
    flex-basis: auto;
    width: 100%;
  }

  .profile-auth-copy {
    flex-basis: auto;
  }
}
