:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #07100c;
  color: #f6f7f4;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 10%, #17362b 0, transparent 35%), #07100c; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

#app { min-height: 100vh; }
.login-card {
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 15vh 0 40px;
}
.login-card h1 { margin: 6px 0 12px; font-size: clamp(2.5rem, 8vw, 4.5rem); letter-spacing: -0.06em; }
.login-card > p:not(.eyebrow) { color: #aebbb5; line-height: 1.6; }
.eyebrow { color: #ff7849; font-size: .75rem; letter-spacing: .3em; font-weight: 800; }
form { display: grid; gap: 10px; margin-top: 30px; }
label { color: #cbd4d0; font-size: .85rem; font-weight: 700; }
input, textarea {
  width: 100%; border: 1px solid #2b4138; background: #0e1b16; color: #fff;
  border-radius: 10px; padding: 13px 14px; outline: none;
}
input:focus, textarea:focus { border-color: #ff7849; box-shadow: 0 0 0 3px #ff784922; }
textarea { min-height: 110px; resize: vertical; }
button {
  border: 0; border-radius: 10px; padding: 13px 18px; background: #ff7849;
  color: #160905; font-weight: 800;
}
button.secondary { background: #172720; color: #dce4e0; }
button.ghost { background: transparent; color: #aebbb5; border: 1px solid #2b4138; }
.error { min-height: 1.2em; color: #ff8b8b; }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { padding: 28px 20px; border-right: 1px solid #1f3029; background: #09130fdd; }
.brand { font-weight: 900; font-size: 1.25rem; margin-bottom: 32px; }
.brand span { color: #ff7849; }
.nav { display: grid; gap: 8px; }
.nav button { text-align: left; background: transparent; color: #aebbb5; }
.nav button.active { background: #183126; color: #fff; }
.sidebar-footer { position: fixed; bottom: 24px; width: 210px; }
.content { padding: 36px clamp(20px, 5vw, 72px) 80px; max-width: 1050px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.topbar h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.05em; }
.topbar p { color: #9eaca6; margin: 8px 0 0; }
.preview { color: #ff9a76; text-decoration: none; font-weight: 700; white-space: nowrap; }
.fields { display: grid; gap: 18px; }
.field { padding: 20px; border: 1px solid #20352c; border-radius: 14px; background: #0d1814; }
.field small { display: block; color: #73867e; margin: 6px 0 12px; }
.field-row { display: flex; gap: 10px; align-items: center; }
.field-row input { flex: 1; }
.actions { position: sticky; bottom: 16px; display: flex; gap: 10px; margin-top: 26px; padding: 12px; background: #07100cee; border: 1px solid #1e3028; border-radius: 14px; backdrop-filter: blur(12px); }
.status { align-self: center; color: #9eaca6; margin-left: auto; }
.status.success { color: #75e6a6; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 10; padding: 14px; border-right: 0; border-bottom: 1px solid #1f3029; }
  .brand { margin: 0 0 10px; }
  .nav { display: flex; overflow-x: auto; }
  .nav button { white-space: nowrap; }
  .sidebar-footer { display: none; }
  .content { padding-top: 24px; }
  .topbar { flex-direction: column; }
  .actions { flex-wrap: wrap; }
}
