:root {
  color-scheme: light;
  --ink: #16213e;
  --muted: #5f6d82;
  --sand: #f3ead8;
  --paper: #fffaf0;
  --line: #dccfb4;
  --accent: #c75b12;
  --accent-strong: #8f3d08;
  --surface: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 250, 240, 0.9), transparent 35%),
    linear-gradient(135deg, #eee2c5 0%, #f7f0e0 48%, #efe3cb 100%);
}

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

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 28px 24px;
  color: white;
  background:
    linear-gradient(180deg, rgba(7, 16, 34, 0.92), rgba(26, 51, 90, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'%3E%3Cpath d='M0 30h180M0 90h180M0 150h180'/%3E%3Cpath d='M30 0v180M90 0v180M150 0v180'/%3E%3C/g%3E%3C/svg%3E");
}

.brand h1,
.workspace-header h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
}

.subcopy,
.workspace-meta,
.field-hint,
.section-description {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-link {
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.nav-link:hover,
.nav-link.active {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.workspace {
  padding: 28px;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.workspace-meta {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(22, 33, 62, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
}

#content-area {
  display: grid;
}

.section-card {
  padding: 28px;
  border: 1px solid rgba(22, 33, 62, 0.1);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 50px rgba(22, 33, 62, 0.1);
  backdrop-filter: blur(10px);
}

.section-card h3 {
  margin: 8px 0 8px;
  font-size: 30px;
  font-family: Georgia, "Times New Roman", serif;
}

.section-description {
  margin: 0 0 24px;
  color: var(--muted);
}

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group.full-width,
.toolbar,
.status-banner,
.conditional-group {
  grid-column: 1 / -1;
}

.field-group label,
.field-group legend {
  font-weight: 700;
}

.field-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(199, 91, 18, 0.12);
}

.status-banner {
  padding: 14px 16px;
  border: 1px dashed rgba(199, 91, 18, 0.38);
  border-radius: 16px;
  background: rgba(199, 91, 18, 0.08);
  color: var(--accent-strong);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(22, 33, 62, 0.08);
}

.primary-action,
.secondary-action {
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.primary-action {
  color: white;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.secondary-action {
  color: var(--ink);
  border: 1px solid rgba(22, 33, 62, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.conditional-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  border: 1px dashed rgba(22, 33, 62, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

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

  .workspace-header,
  .workspace-meta,
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 16px;
  }

  .section-card {
    padding: 20px;
  }

  .form-grid,
  .conditional-group {
    grid-template-columns: 1fr;
  }
}

