:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #141816;
  color: #edf0e9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: #141816; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 48px, 1040px); min-height: 100vh; margin: 0 auto; }
.topbar { min-height: 88px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #39413c; }
.brand { color: #edf0e9; font-size: 18px; font-weight: 750; text-decoration: none; }
.brand span, .eyebrow { color: #afd978; }
.quiet-button { border: 1px solid #566159; background: transparent; color: #edf0e9; padding: 9px 12px; border-radius: 4px; }
.login-layout { min-height: calc(100vh - 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: 88px; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: 52px; line-height: 1.05; letter-spacing: 0; }
h2 { margin-bottom: 8px; font-size: 20px; letter-spacing: 0; }
h3 { margin-bottom: 16px; font-size: 15px; letter-spacing: 0; }
.intro > p:last-child, .tool > div p { color: #b6c0b7; line-height: 1.55; }
.tool { border: 1px solid #3c4740; border-radius: 6px; background: #1b211d; padding: 28px; }
.tool label { display: grid; gap: 8px; margin-bottom: 18px; color: #cdd4ce; font-size: 13px; }
input { min-width: 0; border: 1px solid #566159; border-radius: 4px; background: #101412; color: #f2f5ef; padding: 11px 12px; outline: none; }
input:focus { border-color: #afd978; box-shadow: 0 0 0 2px #36502e; }
.primary { border: 1px solid #c5eb8c; border-radius: 4px; background: #afd978; color: #15200e; font-weight: 750; padding: 11px 14px; white-space: nowrap; }
.error { min-height: 20px; margin: 10px 0 0; color: #ffb4a7; font-size: 13px; }
.heading-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 64px 0 34px; border-bottom: 1px solid #39413c; }
.heading-row h1 { margin-bottom: 0; }
.account, .section-title span { color: #b6c0b7; font-size: 13px; }
.create-tool { margin-top: 34px; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form input { flex: 1; }
.list-section, .admin-section { padding: 40px 0; border-bottom: 1px solid #39413c; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border: 1px solid #3c4740; border-radius: 6px; background: #171c18; padding: 16px; }
.row-title { margin: 0 0 6px; font-weight: 700; }
.row-meta, .row-usage { color: #aeb8af; font-size: 12px; word-break: break-word; }
.row-usage { margin: 7px 0 0; color: #cdd4ce; }
.row-actions { display: flex; gap: 8px; }
.copy, .danger { border: 1px solid #566159; border-radius: 4px; background: transparent; color: #edf0e9; padding: 8px 10px; }
.danger { border-color: #7b5049; color: #ffb4a7; }
.user-tool { margin-bottom: 14px; }
.three-fields { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.1fr) minmax(180px, 1.4fr) auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1040px); }
  .login-layout { grid-template-columns: 1fr; gap: 36px; padding: 64px 0; }
  h1 { font-size: 42px; }
  .inline-form, .three-fields { display: grid; grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row-actions { justify-content: flex-start; }
}
