:root {
  color-scheme: dark;
  --background: #101010;
  --panel: #1a1a1a;
  --field: #121212;
  --border: #363430;
  --text: #f8f4ee;
  --muted: #b5ada4;
  --orange: #ff7841;
  --orange-dark: #14100e;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse 70% 25rem at 85% 0, #402315 0%, transparent 75%), var(--background);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.topbar { border-bottom: 1px solid #ffffff1a; }
.topbar-inner { max-width: 1060px; margin: 0 auto; min-height: 66px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-size: 21px; font-weight: 760; letter-spacing: -.055em; display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
.brand-prefix { color: var(--orange); }
.shell { max-width: 1060px; margin: 0 auto; padding: 63px 26px 74px; }
.shell-dashboard { padding-top: 40px; }
.shell-narrow { max-width: 540px; padding-top: clamp(60px, 12vh, 132px); }
.intro { margin-bottom: 34px; }
.intro h1 { font-size: clamp(42px, 6.8vw, 77px); font-weight: 820; line-height: .99; letter-spacing: -.074em; margin: 0; }
.shell-narrow h1 { font-size: clamp(48px, 7vw, 72px); }
.intro h1 span { color: var(--orange); }
.intro p { margin: 19px 0 0; color: var(--muted); max-width: 48ch; line-height: 1.55; }
.panel { padding: clamp(18px, 3.1vw, 31px); border: 1px solid var(--border); border-radius: 19px; background: var(--panel); }
.panel h1, .collection h2 { margin: 0 0 21px; font-size: 22px; letter-spacing: -.035em; }
.create-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.destination { grid-column: 1/-1; }
.fields { display: grid; gap: 9px; min-width: 0; }
.fields + .fields { margin-top: 0; }
label { font-size: 14px; font-weight: 620; }
.optional { color: var(--muted); font-weight: 400; font-size: 12px; }
input, .compound { height: 47px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--field); }
input { display: block; width: 100%; min-width: 0; padding: 0 12px; }
input::placeholder { color: #9d948a; }
.compound { display: flex; align-items: center; }
.compound span { padding-left: 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.compound input { border: 0; height: 100%; padding-left: 3px; background: transparent; }
.compound:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.compound input:focus-visible { outline: none; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.primary, .secondary, .text-button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 9px; font-size: 14px; font-weight: 680; line-height: 1.2; }
.primary { min-height: 45px; padding: 11px 18px; color: var(--orange-dark); background: var(--orange); border: 1px solid var(--orange); justify-self: start; }
.primary:hover { background: #ff976c; border-color: #ff976c; }
.login-panel .primary { margin-top: 6px; width: 100%; }
.secondary { min-height: 39px; padding: 8px 12px; color: var(--text); background: #242321; border: 1px solid #4a4540; }
.secondary:hover { background: #34302c; }
.text-button { color: var(--muted); background: transparent; border: 0; padding: 8px 5px; }
.text-button:hover, .back:hover { color: var(--orange); }
.collection { margin-top: 37px; }
.count { margin-left: 7px; color: var(--muted); font-size: 14px; font-weight: 500; }
.links { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 15px; background: var(--panel); }
.link-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px; }
.link-row + .link-row { border-top: 1px solid var(--border); }
.link-info { min-width: 0; display: grid; gap: 5px; }
.link-info strong, .short { overflow-wrap: anywhere; }
.short { color: var(--orange); font-size: 14px; }
.short:hover { text-decoration: underline; }
.target { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.empty { border-radius: 15px; padding: 23px 18px; border: 1px dashed var(--border); color: var(--muted); }
.feedback { border-radius: 10px; padding: 12px; margin: 0 0 16px; font-size: 14px; }
.notice { background: #292720; border: 1px solid #53483a; }
.error { background: #40251d; border: 1px solid #865140; color: #ffd9cb; }
.back { display: inline-flex; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.intro p + .back { margin-top: 18px; }
.edit-panel { max-width: 600px; }
.edit-panel .fields > label:not(:first-child) { margin-top: 10px; }
.edit-panel .row-actions { margin-top: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 640px) {
  .topbar-inner { min-height: 60px; padding-inline: 18px; }
  .shell { padding-inline: 18px; padding-top: 44px; }
  .shell-dashboard { padding-top: 28px; }
  .shell-narrow { padding-top: 68px; }
  .intro { margin-bottom: 26px; }
  .intro p { margin-top: 14px; }
  .create-form { grid-template-columns: 1fr; }
  .link-row { flex-direction: column; align-items: stretch; }
  .row-actions > * { flex: 1; }
}
