:root {
  --bg: #f4efe7;
  --bg-deep: #e9dfd0;
  --ink: #18232c;
  --muted: #61707c;
  --line: rgba(24, 35, 44, 0.1);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --nav: #13202a;
  --nav-soft: #203342;
  --gold: #caa15f;
  --gold-deep: #a47a36;
  --blue: #24445f;
  --shadow: 0 18px 50px rgba(17, 28, 38, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "Plus Jakarta Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(36, 68, 95, 0.09), transparent 24%),
    radial-gradient(circle at top left, rgba(202, 161, 95, 0.18), transparent 22%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 35, 44, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 35, 44, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    linear-gradient(180deg, var(--nav) 0%, #101820 100%);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.sidebar__brand strong,
.sidebar__brand span {
  display: block;
}

.sidebar__brand span:last-child {
  margin-top: 3px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.brand-logo {
  width: 168px;
  max-width: 168px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.sidebar__nav {
  display: grid;
  gap: 8px;
}

.sidebar__nav a {
  position: relative;
  padding: 13px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar__panel {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.panel-label,
.eyebrow,
.status-pill,
.mini-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.sidebar__panel p,
.panel p,
.lead-copy {
  color: var(--muted);
  line-height: 1.65;
}

.main-content {
  padding: 34px;
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar__nav a:hover .nav-icon,
.sidebar__nav a.is-active .nav-icon {
  color: #fff;
  background: rgba(202, 161, 95, 0.22);
  transform: scale(1.04);
}

.topbar,
.panel__header,
.builder-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.topbar h1,
.builder-hero h1,
.panel__header h3 {
  margin: 8px 0 0;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-copy {
  margin: 12px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(36, 68, 95, 0.08);
  color: var(--blue);
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b3145, #37536c);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(27, 49, 69, 0.18);
}

.button--secondary {
  background: rgba(36, 68, 95, 0.09);
  color: var(--blue);
}

.button--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.panel,
.table-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 231, 0.9));
}

.metric strong {
  display: block;
  font-size: 1.5rem;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.panel h3 {
  margin: 14px 0 10px;
}

.panel {
  padding: 24px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
}

.step strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(202, 161, 95, 0.18);
  color: var(--gold-deep);
}

.builder-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.builder-main {
  padding: 30px 34px 40px;
}

.builder-hero {
  margin-bottom: 22px;
}

.lead-copy {
  max-width: 65ch;
}

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

.field {
  padding: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.table-shell {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-placeholder {
  min-height: 180px;
  border-radius: 22px;
  border: 1px dashed rgba(24, 35, 44, 0.18);
  background:
    linear-gradient(135deg, rgba(202, 161, 95, 0.16), rgba(36, 68, 95, 0.08));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

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

.mini-meta {
  color: var(--gold-deep);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1100px) {.app-shell,
.builder-layout {
    grid-template-columns: 1fr;
  }

.sidebar {
    position: relative;
    height: auto;
  }

.quick-actions-panel,
.comparison {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {.main-content,
.builder-main {
    padding: 22px;
  }

.topbar,
.builder-hero,
.panel__header {
    flex-direction: column;
  }

.form-grid,
.quick-actions-panel {
    grid-template-columns: 1fr;
  }

}

.error{
  color:rgb(225, 35, 35)!important;
}

button[hidden],
[hidden] {
    display: none !important;
}
