@import url('/fonts.css');

:root {
  color-scheme: dark;
  --bg: #101612;
  --panel: #19211b;
  --panel-high: #202a22;
  --line: #303c32;
  --text: #eff3e9;
  --muted: #97a497;
  --green: #b4f477;
  --green-dark: #263d23;
  --cream: #f1efdf;
  --orange: #f4be83;
  --danger: #ffa99c;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
input,
select,
textarea {
  width: 100%;
  background: #131a15;
  color: var(--text);
  border: 1px solid #39443a;
  border-radius: 11px;
  padding: 12px 14px;
  min-height: 46px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
}
input[type='color'] {
  padding: 5px;
  width: 54px;
  cursor: pointer;
}
input[type='checkbox'] {
  accent-color: var(--green);
  width: 20px;
  min-height: 20px;
}
input[type='file'] {
  font-size: 12px;
}
label {
  display: block;
  font-size: 12px;
  color: #cbd4c8;
  margin-bottom: 8px;
}
small,
.muted {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 39px);
  font-weight: 550;
  letter-spacing: -1.4px;
  line-height: 1.2;
  margin-bottom: 12px;
}
h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.initial-loader {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 32px 20px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #121a15;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brand sup {
  color: var(--green);
  font-size: 9px;
  letter-spacing: 1px;
  align-self: start;
  margin-top: 3px;
}
.workspace-tag {
  margin: 35px 10px 12px;
  color: #647767;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
}
.nav-link {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #a8b5a9;
  margin: 3px 0;
  border-radius: 11px;
  font-size: 13px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-link:hover {
  background: #1d2b20;
  color: var(--text);
}
.nav-link.active {
  background: var(--green);
  color: #20301a;
  font-weight: 650;
}
.nav-link .nav-count {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
}
.side-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.plan-mini {
  background: linear-gradient(130deg, #273a26, #1a271c);
  border: 1px solid #3a4b31;
  padding: 17px;
  border-radius: 15px;
  margin-bottom: 20px;
}
.plan-mini p {
  font-size: 12px;
  color: #abb9a4;
  margin: 8px 0 14px;
}
.plan-mini .eyebrow {
  color: var(--green);
  letter-spacing: 1.5px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 3px 0;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #334237;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 12px;
  flex-shrink: 0;
}
.user-info {
  min-width: 0;
  flex: 1;
}
.user-info strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-info small {
  font-size: 10px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 78px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.breadcrumbs {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
}
.breadcrumbs strong {
  color: #d3dece;
  font-weight: 400;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 12px #b4f44466;
}
.content {
  padding: 35px 38px 50px;
  max-width: 1740px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
  max-width: 580px;
}
.eyebrow {
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 13px;
}
.head-code {
  color: #6a7968;
  font-size: 10px;
  letter-spacing: 2px;
  text-align: right;
  font-family: Consolas, monospace;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-high);
  color: var(--text);
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 550;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn.primary {
  background: var(--green);
  color: #1b2c14;
  border-color: var(--green);
}
.btn.cream {
  background: var(--cream);
  color: #273222;
  border-color: var(--cream);
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
}
.btn.danger {
  color: var(--danger);
}
.btn.full {
  width: 100%;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  display: inline-flex;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--panel);
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stat-label svg {
  width: 16px;
  color: #7a927a;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat-value small {
  font-size: 11px;
  letter-spacing: 0;
}
.stat-foot {
  font-size: 10px;
  color: #8ca080;
  margin-top: 7px;
}
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 24px;
  align-items: start;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 17px;
  overflow: hidden;
  min-width: 0;
}
.card-pad {
  padding: 25px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 25px;
  border-bottom: 1px solid var(--line);
}
.card-heading h2,
.card-heading h3 {
  margin: 0;
}
.card-heading small {
  font-size: 11px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.step {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 10px;
  color: #819080;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.step span {
  font:
    10px Consolas,
    monospace;
  width: 22px;
  height: 22px;
  border: 1px solid #40513f;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.step.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: #b4f47706;
}
.step.active span {
  background: var(--green);
  color: #1f3018;
  border-color: var(--green);
}
.form-section {
  padding: 27px;
  min-height: 392px;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 23px;
}
.section-kicker .number {
  color: var(--green);
  font:
    11px Consolas,
    monospace;
}
.section-kicker h3 {
  margin: 0;
}
.section-kicker small {
  margin-left: auto;
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}
.field.full {
  grid-column: 1 / -1;
}
.field small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  line-height: 1.6;
}
.input-wrap {
  position: relative;
}
.input-wrap svg {
  position: absolute;
  left: 13px;
  top: 14px;
  width: 17px;
  color: #8d9d86;
}
.input-wrap input {
  padding-left: 40px;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.hint {
  background: #b4f47708;
  border: 1px solid #b4f47721;
  color: #bacbad;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 11px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
}
.hint svg {
  width: 16px;
  margin-top: 1px;
  color: var(--green);
}
.builder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 18px 25px;
}
.save-state {
  color: #9caf8f;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.save-state svg {
  width: 14px;
}
.save-state.error {
  color: var(--danger);
}
.preview-col {
  position: sticky;
  top: 24px;
}
.preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.preview-toggle {
  display: inline-flex;
  background: #222d24;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.preview-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
}
.preview-toggle button.active {
  background: #3c4935;
  color: #dfedcf;
}
.preview-stage {
  background:
    radial-gradient(ellipse at 50% 35%, #35432b66, transparent 65%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, #ffffff03 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, #ffffff03 28px);
  padding: 13px 0 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  place-items: center;
}
.phone {
  width: 234px;
  height: 470px;
  border: 6px solid #374036;
  background: #f4f3ea;
  border-radius: 37px;
  box-shadow:
    0 22px 45px #0005,
    0 0 0 1px #0a0f0b,
    inset 0 0 0 1px #000;
  position: relative;
  overflow: hidden;
  color: #1d2b1e;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 11px 17px 9px;
  font-size: 9px;
  font-weight: 650;
  z-index: 2;
}
.camera {
  width: 8px;
  height: 8px;
  position: absolute;
  left: calc(50% - 4px);
  top: 13px;
  background: #172117;
  border-radius: 50%;
}
.phone-home {
  position: absolute;
  bottom: 8px;
  height: 4px;
  width: 70px;
  border-radius: 5px;
  background: #253422;
  left: calc(50% - 35px);
  opacity: 0.5;
}
.phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  padding: 17px 16px;
  border-bottom: 1px solid #25342218;
}
.phone-appbar img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}
.phone-appbar strong {
  margin-right: auto;
  margin-left: 8px;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-web {
  padding: 22px 17px;
}
.mock-tag {
  font-size: 7px;
  letter-spacing: 2px;
  color: #7b886b;
}
.mock-web h3 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 15px 0;
}
.mock-web p {
  font-size: 9px;
  color: #76806c;
  line-height: 1.7;
}
.mock-hero {
  height: 115px;
  background: #d9e5c7;
  border-radius: 14px 14px 45px 14px;
  margin: 18px 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.mock-orb {
  width: 80px;
  height: 80px;
  border: 17px solid #566948;
  border-radius: 50%;
  transform: rotate(-30deg);
  box-shadow: 25px 18px 0 #b1ca8c;
}
.mock-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.mock-lines div {
  height: 40px;
  background: #e6e8db;
  border-radius: 8px;
}
.mock-cta {
  background: #233921;
  color: #e9f2dc;
  padding: 9px;
  text-align: center;
  border-radius: 7px;
  font-size: 8px;
}
.preview-note {
  display: flex;
  gap: 7px;
  color: #8c9c81;
  font-size: 9px;
  margin: 17px 0 0;
  text-align: center;
  max-width: 245px;
}
.preview-note svg {
  width: 12px;
  height: 12px;
}
.phone-splash {
  height: 405px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.phone-splash img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 20px;
}
.phone-splash h3 {
  color: white;
  font-size: 19px;
}
.phone-splash small {
  color: #b4f477;
  font-size: 8px;
  margin-top: 60px;
}

.phone-splash .splash-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-splash .splash-brand img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin: 0;
}
.preview-meta {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding: 16px 4px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  gap: 10px;
}
.meta-row strong {
  color: #cdd8c5;
  font-weight: 400;
  word-break: break-word;
}
.bottom-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.mini-card > svg {
  color: var(--green);
  width: 23px;
  height: 23px;
}
.mini-card p {
  font-size: 11px;
  margin: 0 0 3px;
}
.mini-card small {
  font-size: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 8px;
  background: #33442b;
  color: var(--green);
  font-size: 9px;
  font-weight: 550;
  white-space: nowrap;
}
.pill.orange {
  background: #f4be8314;
  color: var(--orange);
}
.pill.gray {
  background: #ffffff0a;
  color: #9da99a;
}
.pill.red {
  background: #ffa99c12;
  color: var(--danger);
}
.banner {
  background: #f4be8310;
  border: 1px solid #f4be8340;
  color: var(--orange);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 12px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.toggle-row:first-child {
  padding-top: 0;
}
.toggle-row:last-child {
  border-bottom: 0;
}
.toggle-row label {
  margin: 0;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.toggle-row small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.switch {
  appearance: none;
  min-width: 38px;
  width: 38px !important;
  height: 22px;
  min-height: 22px !important;
  background: #3c473c;
  border: 0;
  border-radius: 22px;
  padding: 3px;
  position: relative;
  cursor: pointer;
  margin: 0;
}
.switch::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #b7c0af;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch:checked {
  background: var(--green);
}
.switch:checked::after {
  transform: translateX(16px);
  background: #263e20;
}
.switch:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.format-grid,
.project-grid,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.format-grid {
  grid-template-columns: 1fr 1fr;
}
.format-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #141d16;
  border-radius: 12px;
  padding: 22px;
  color: var(--text);
}
.format-card.selected {
  border-color: var(--green);
  background: #b4f47709;
}
.format-card strong {
  display: block;
  margin: 15px 0 5px;
  font-size: 23px;
}
.format-card small {
  font-size: 10px;
}
.project-card {
  padding: 23px;
}
.project-card .project-icon {
  width: 49px;
  height: 49px;
  border-radius: 15px;
  margin-bottom: 20px;
}
.project-card h3 {
  margin-bottom: 5px;
}
.project-card .project-url {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 20px;
}
.project-card footer small {
  font-size: 10px;
}
.project-new {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  border: 1px dashed #506440;
  min-height: 240px;
  border-radius: 17px;
  background: #b4f47703;
  color: var(--green);
}
.project-new svg {
  width: 35px;
  height: 35px;
}
.empty {
  padding: 45px 25px;
  text-align: center;
}
.empty > svg {
  width: 42px;
  height: 42px;
  color: #76876c;
  margin-bottom: 18px;
}
.empty h3 {
  font-size: 18px;
}
.empty p {
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 10px;
  color: #84967d;
  font-weight: 400;
  padding: 17px 20px;
  background: #131c15;
  white-space: nowrap;
}
td {
  border-top: 1px solid var(--line);
  padding: 17px 20px;
  vertical-align: middle;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
td small {
  font-size: 10px;
}
.row-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.progress-track {
  height: 5px;
  width: 100%;
  background: #33402e;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-track span {
  height: 100%;
  display: block;
  background: var(--green);
  transition: width 0.5s;
}
.plan-card {
  padding: 27px;
  position: relative;
}
.plan-card.featured {
  border-color: #88b657;
  background: linear-gradient(140deg, #293724, #19231a);
}
.plan-card .price {
  font-size: 39px;
  letter-spacing: -2px;
  margin: 25px 0;
}
.plan-card .price small {
  font-size: 12px;
  letter-spacing: 0;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  min-height: 250px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  font-size: 11px;
  color: #c7d3bf;
}
.plan-features svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}
.key-card {
  margin-bottom: 17px;
}
.key-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.key-details small {
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}
.key-details code {
  font-size: 11px;
  word-break: break-all;
  color: #c4d9b4;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}
.admin-tabs .active {
  background: var(--green);
  color: #1c2c17;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
}
.meter {
  margin-bottom: 25px;
}
.meter .meta-row {
  font-size: 12px;
}
.metric-log {
  font:
    11px/1.8 Consolas,
    monospace;
  color: #9bab8e;
  background: #0e160f;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
}
.settings-section {
  margin-bottom: 24px;
}
.settings-section h3 {
  color: var(--green);
  margin-bottom: 20px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
}
.chat-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.chat-list button.selected {
  background: #b4f47712;
}
.chat-list small {
  display: block;
  font-size: 10px;
}
.chat-messages {
  height: 360px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.message {
  max-width: 85%;
  align-self: flex-start;
  background: #2b382a;
  border-radius: 12px 12px 12px 3px;
  padding: 12px 15px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.mine {
  align-self: flex-end;
  background: #b4f477;
  color: #1d3217;
  border-radius: 12px 12px 3px 12px;
}
.message small {
  display: block;
  color: inherit;
  opacity: 0.6;
  font-size: 9px;
  margin-top: 6px;
}
.chat-compose {
  display: flex;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
}
.chat-compose input {
  min-width: 0;
}
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  border: 1px solid #d0ffa7;
  background: var(--green);
  color: #1e3018;
  box-shadow: 0 6px 30px #0007;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-radius: 40px;
  font-size: 12px;
  z-index: 25;
}
.mobile-toggle {
  display: none;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-story {
  padding: 48px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 60%, #39522a66, transparent 60%), #121c15;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.auth-story::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid #b4f47712;
  border-radius: 50%;
  left: 10%;
  top: 24%;
  pointer-events: none;
}
.auth-story::after {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid #b4f47715;
  border-radius: 50%;
  left: 24%;
  top: 33%;
  pointer-events: none;
}
.auth-story h1 {
  font-size: clamp(40px, 4.9vw, 76px);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -3px;
  max-width: 620px;
  margin: 30px 0;
  position: relative;
  z-index: 1;
}
.auth-story h1 em {
  color: var(--green);
  font-style: normal;
}
.auth-story p {
  color: #9dae94;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}
.auth-visual {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.auth-token {
  background: #2c3e25;
  border: 1px solid #708b5066;
  padding: 14px 19px;
  border-radius: 12px;
  font:
    12px Consolas,
    monospace;
  color: var(--green);
}
.auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #6f8469;
  letter-spacing: 1px;
}
.auth-form-side {
  display: grid;
  place-items: center;
  padding: 50px 35px;
}
.auth-form {
  width: 100%;
  max-width: 370px;
}
.auth-form h2 {
  font-size: 29px;
  margin-bottom: 12px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 32px;
}
.auth-form .field {
  margin-bottom: 20px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  color: #6d7d66;
  margin: 28px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-note {
  text-align: center;
  color: #6c7b67;
  font-size: 10px;
  margin-top: 24px;
  line-height: 1.8;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--cream);
  color: #21321c;
  padding: 15px 22px;
  border-radius: 12px;
  font-size: 12px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  box-shadow: 0 10px 35px #0007;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #f9c1b2;
  color: #542a22;
}
dialog {
  width: min(94vw, 640px);
  max-height: 90vh;
  background: var(--panel);
  color: var(--text);
  border: 1px solid #546447;
  border-radius: 20px;
  padding: 28px;
}
dialog::backdrop {
  background: #060c09bb;
  backdrop-filter: blur(7px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin: 0;
}
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.7 Consolas,
    monospace;
  max-height: 50vh;
  overflow: auto;
  padding: 15px;
  background: #101711;
  border-radius: 10px;
}
.payment-frame {
  width: 100%;
  height: 580px;
  border: 0;
  background: white;
  border-radius: 12px;
}
.bank-info {
  padding: 20px;
  border: 1px dashed #6f8a54;
  border-radius: 13px;
  margin-bottom: 22px;
  background: #b4f47707;
}
.bank-info p {
  margin-bottom: 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bank-info code {
  color: var(--green);
}
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 1600px) {
  .content {
    padding: 45px 55px;
  }
  .builder-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 32px;
  }
  .preview-stage {
    padding-top: 25px;
  }
}

@media (max-width: 1200px) {
  .nav-link {
    padding: 12px 9px;
    gap: 9px;
    font-size: 12px;
  }
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 14px 20px;
  }
  .brand {
    font-size: 19px;
  }
  .brand sup {
    display: none;
  }
  .topbar {
    padding: 0 24px;
  }
  .content {
    padding: 28px 24px 50px;
  }
  .builder-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 18px;
  }
  .phone {
    width: 213px;
    height: 440px;
  }
  .phone-splash {
    height: 375px;
  }
  .form-section {
    padding: 22px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px 16px;
  }
  .project-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .preview-col {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  .preview-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .preview-meta {
    margin-top: 0;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-actions .system-state {
    display: none;
  }
  .step {
    padding: 16px 8px;
  }
  .head-code {
    display: none;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .auth-screen {
    grid-template-columns: 1fr 1fr;
  }
  .auth-story {
    padding: 35px;
  }
}

@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    width: 238px;
    transition: left 0.2s;
    box-shadow: 15px 0 40px #0007;
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .breadcrumbs {
    gap: 8px;
    font-size: 10px;
  }
  .breadcrumbs .crumb-root {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .content {
    padding: 26px 18px 90px;
  }
  .page-head {
    gap: 12px;
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head .btn {
    padding: 10px;
    white-space: nowrap;
  }
  .stats {
    margin-bottom: 22px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat {
    padding: 16px;
  }
  .form-grid {
    gap: 18px;
  }
  .form-section {
    padding: 21px 18px;
  }
  .tabs .step {
    font-size: 10px;
    gap: 5px;
  }
  .tabs .step span {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .builder-footer {
    padding: 16px 18px;
    flex-wrap: wrap;
  }
  .builder-footer .save-state {
    flex-basis: 100%;
  }
  .card-heading {
    padding: 18px;
  }
  .card-pad {
    padding: 20px;
  }
  .project-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .plan-features {
    min-height: 0;
  }
  .bottom-strip {
    grid-template-columns: 1fr;
  }
  .preview-col {
    grid-template-columns: 1fr 1fr;
  }
  .preview-stage {
    padding: 13px 8px;
  }
  .phone {
    width: 200px;
    height: 420px;
  }
  .mock-web {
    padding: 16px;
  }
  .phone-splash {
    height: 355px;
  }
  .auth-screen {
    display: block;
  }
  .auth-story {
    min-height: auto;
    padding: 25px;
  }
  .auth-story h1 {
    font-size: 40px;
    letter-spacing: -2px;
    margin: 27px 0 18px;
  }
  .auth-story p,
  .auth-foot,
  .auth-visual {
    display: none;
  }
  .auth-form-side {
    padding: 35px 25px;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  .auth-form > p {
    margin-bottom: 25px;
  }
  .chat-fab {
    padding: 13px;
    bottom: 17px;
    right: 17px;
  }
  .chat-fab span {
    display: none;
  }
  .key-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .preview-col {
    grid-template-columns: 1fr;
  }
  .preview-meta {
    padding: 15px 4px;
  }
  .section-kicker small {
    display: none;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .step {
    flex-direction: column;
  }
  .format-card {
    padding: 16px;
  }
  .top-actions .btn {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
