:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040a13;
  --panel: #0b1828;
  --panel-2: #0e2135;
  --panel-3: #102a43;
  --line: rgba(153, 190, 220, 0.16);
  --line-strong: rgba(153, 190, 220, 0.28);
  --text: #f6f9fc;
  --muted: #9eb0c2;
  --muted-2: #6f8599;
  --blue: #2bb6ff;
  --blue-deep: #004e89;
  --orange: #fd6935;
  --orange-2: #ff9b45;
  --red: #ff5f67;
  --green: #48d597;
  --purple: #b28bff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --presenter-text-scale: 1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(43, 182, 255, 0.09), transparent 34rem),
    radial-gradient(circle at -10% 30%, rgba(253, 105, 53, 0.08), transparent 28rem),
    linear-gradient(180deg, #07111f 0%, #050c16 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(43, 182, 255, 0.38);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

::selection {
  color: #fff;
  background: rgba(253, 105, 53, 0.55);
}

.app-shell {
  min-height: 100vh;
}

.page-wrap {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(20px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(160, 190, 215, 0.12);
  background: rgba(7, 17, 31, 0.84);
  backdrop-filter: blur(22px);
}

.site-header--compact {
  min-height: 64px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  text-align: left;
  background: none;
  cursor: pointer;
}

.brand-lockup > span:last-child {
  display: grid;
  gap: 2px;
}

.brand-lockup strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.73rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(253, 105, 53, 0.4);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), #d84a1d);
  box-shadow: 0 10px 28px rgba(253, 105, 53, 0.22);
  font-size: 1.25rem;
  font-weight: 900;
}

.header-actions,
.toolbar-actions,
.hero-actions,
.editor-heading__actions,
.editor-bottom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.icon-btn,
.tiny-btn,
.control-arrow,
.mode-switch button,
.back-link {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.icon-btn:hover,
.tiny-btn:hover,
.control-arrow:hover:not(:disabled),
.mode-switch button:hover,
.back-link:hover {
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.btn--large {
  min-height: 50px;
  padding-inline: 20px;
  border-radius: 15px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #f45422);
  box-shadow: 0 10px 26px rgba(253, 105, 53, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 14px 34px rgba(253, 105, 53, 0.3);
}

.btn--secondary {
  color: #fff;
  border-color: rgba(43, 182, 255, 0.28);
  background: linear-gradient(135deg, rgba(0, 78, 137, 0.92), rgba(10, 104, 165, 0.92));
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.btn--ghost:hover {
  border-color: rgba(43, 182, 255, 0.35);
  background: rgba(43, 182, 255, 0.08);
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.05rem;
}

.icon-btn:hover {
  color: var(--text);
  border-color: rgba(43, 182, 255, 0.35);
}

.icon-btn--danger:hover {
  color: var(--red);
  border-color: rgba(255, 95, 103, 0.4);
  background: rgba(255, 95, 103, 0.08);
}

.section-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 56px;
  margin-top: 38px;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(16, 42, 67, 0.8), rgba(7, 17, 31, 0.92)),
    radial-gradient(circle at 85% 30%, rgba(43, 182, 255, 0.15), transparent 25rem);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  position: absolute;
  right: -12%;
  bottom: -75%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(43, 182, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(43, 182, 255, 0.025), 0 0 0 96px rgba(43, 182, 255, 0.018);
  content: "";
}

.hero-panel h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.15rem, 4.5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-panel p {
  max-width: 650px;
  margin: 24px 0 28px;
  color: #b6c5d3;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 300px;
  perspective: 900px;
}

.hero-stage-card {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(430px, 95%);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(118, 176, 220, 0.18);
  border-radius: 19px;
  background: #07111f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 50%;
}

.hero-stage-card--one {
  transform: translate(-56%, -58%) rotate(-7deg) translateZ(-60px);
  opacity: 0.44;
}

.hero-stage-card--two {
  transform: translate(-44%, -47%) rotate(5deg) translateZ(-25px);
  opacity: 0.66;
}

.hero-stage-card--main {
  display: grid;
  grid-template-rows: auto 1fr 1fr 1fr;
  gap: 12px;
  padding: 30px;
  transform: translate(-50%, -50%) rotate(-1deg);
  background:
    radial-gradient(circle at 50% 5%, rgba(253, 105, 53, 0.12), transparent 42%),
    linear-gradient(180deg, #0a1828, #06101c);
}

.hero-stage-card--main span {
  justify-self: center;
  color: var(--orange);
  font-size: clamp(0.65rem, 1.5vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-stage-card--main i {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1c2d;
}

.hero-stage-card--main i:nth-of-type(2) {
  background: rgba(255, 95, 103, 0.08);
}

.hero-stage-card--main i:nth-of-type(3) {
  background: linear-gradient(90deg, var(--orange), #eb5726);
}

.hero-stage-card--main i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.13), transparent 70%);
  content: "";
  transform: translateX(-110%);
  animation: shimmer 4.5s ease-in-out infinite;
}

.ola-source-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: clamp(22px, 3.8vw, 34px);
  border: 1px solid rgba(43, 182, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(8, 22, 36, 0.82);
}

.ola-source-panel__heading h2,
.ola-source-panel__heading p {
  margin: 0;
}

.ola-source-panel__heading h2 {
  font-size: clamp(1.25rem, 2.3vw, 2rem);
}

.ola-source-panel__heading p {
  width: min(100%, 780px);
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ola-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.ola-search-form input {
  min-height: 46px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  outline: 0;
}

.ola-search-form input:focus {
  border-color: rgba(43, 182, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(43, 182, 255, 0.08);
}

.ola-import-status {
  min-height: 1.2em;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ola-import-status--success {
  color: var(--green);
}

.ola-import-status--danger {
  color: var(--red);
}

.ola-import-status--loading {
  color: var(--orange-2);
}

.ola-results {
  display: grid;
  gap: 10px;
}

.ola-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(151, 188, 218, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.ola-result span,
.ola-result strong,
.ola-result p {
  display: block;
}

.ola-result span {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ola-result strong {
  margin-top: 4px;
  font-size: 1rem;
}

.ola-result p,
.ola-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.dashboard-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 70px 0 22px;
}

.dashboard-toolbar h2,
.editor-heading h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  letter-spacing: 0;
}

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

.project-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 24, 40, 0.8);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.project-card__preview {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(253, 105, 53, 0.16), transparent 45%),
    linear-gradient(160deg, #0d2941, #07111f 72%);
}

.project-card__preview strong {
  margin-top: 12px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.mini-eyebrow {
  color: var(--orange);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.mini-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.mini-flow__net {
  color: var(--orange);
}

.project-card__body {
  min-width: 0;
  padding: 26px;
}

.project-card__topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.project-card__topline h2 {
  margin: 0;
  overflow: hidden;
  font-size: 1.27rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card__topline p {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card__source {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 850;
}

.verdict-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 900;
}

.verdict-chip--positive {
  color: var(--green);
  background: rgba(72, 213, 151, 0.1);
}

.verdict-chip--caution {
  color: var(--orange-2);
  background: rgba(253, 105, 53, 0.11);
}

.verdict-chip--danger {
  color: var(--red);
  background: rgba(255, 95, 103, 0.1);
}

.verdict-chip--neutral {
  color: var(--blue);
  background: rgba(43, 182, 255, 0.1);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0 16px;
}

.project-metrics span {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(151, 188, 218, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.project-metrics small,
.project-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-metrics small {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.project-metrics strong {
  font-size: 0.82rem;
}

.project-card__updated {
  margin: 0 0 17px;
  color: var(--muted-2);
  font-size: 0.69rem;
}

.project-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-share-tip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 90px;
  padding: 22px 24px;
  border: 1px solid rgba(43, 182, 255, 0.18);
  border-radius: 17px;
  background: rgba(43, 182, 255, 0.055);
}

.tip-icon {
  display: grid;
  width: 48px;
  flex: 0 0 48px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: rgba(43, 182, 255, 0.1);
  font-size: 1.35rem;
}

.phone-share-tip strong,
.phone-share-tip p {
  display: block;
}

.phone-share-tip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.site-footer {
  padding: 26px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  text-align: center;
  font-size: 0.72rem;
}
