:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #151923;
  --muted: #667085;
  --line: #d9dee8;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #b45309;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.topbar {
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}
.brand { font-size: 20px; font-weight: 800; color: var(--primary-dark); }
nav { display: flex; align-items: center; gap: 18px; }
nav form { margin: 0; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 38px auto; }
.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(15,118,110,.94), rgba(21,25,35,.72)),
    url("https://images.unsplash.com/photo-1555949963-aa79dcee981c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  border-radius: 8px;
  padding: clamp(32px, 7vw, 82px);
}
.hero div { max-width: 720px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.hero .eyebrow { color: #fbbf24; }
h1 { margin: 0 0 18px; font-size: 34px; line-height: 1.12; letter-spacing: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); }
.lede { font-size: 20px; line-height: 1.5; max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.button:hover, button:hover { background: var(--primary-dark); }
.button.secondary { background: #e7eef0; color: var(--text); }
.button.secondary:hover { background: #d8e4e6; }
.button.small { padding: 8px 12px; min-height: 34px; }
.link-button { background: transparent; color: var(--text); padding: 0; min-height: auto; font: inherit; font-weight: 500; }
.link-button:hover { background: transparent; color: var(--primary); }
.panel, .empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(21,25,35,.06);
}
.narrow { max-width: 480px; margin: 0 auto; }
.muted { color: var(--muted); }
.alert { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; padding: 12px; border-radius: 8px; }
.success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; padding: 12px; border-radius: 8px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: var(--text);
  background: white;
}
input:focus, textarea:focus { outline: 3px solid rgba(15,118,110,.18); border-color: var(--primary); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inline-field, .result, .secret-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.tool-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: -6px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-head.compact { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 8px;
  min-height: 132px;
}
.card:hover { border-color: var(--primary); box-shadow: 0 10px 24px rgba(21,25,35,.08); }
.card-title { font-size: 18px; font-weight: 800; }
.url { color: var(--primary-dark); overflow-wrap: anywhere; }
.qr { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 8px; }
.secret { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; background: #f2f4f7; padding: 10px; border-radius: 8px; }
.details { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
dt { color: var(--muted); font-weight: 800; }
dd { margin: 0; overflow-wrap: anywhere; }
.attachment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.attachment-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.attachment-list a { color: var(--primary-dark); font-weight: 800; }
.danger { background: var(--danger); }
.danger:hover { background: #912018; }
.reset-panel { margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 13px; }
td form { display: inline; }

@media (max-width: 720px) {
  .topbar { height: auto; padding: 16px; align-items: flex-start; gap: 12px; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
  .hero { min-height: 620px; }
  .split, .inline-field, .result, .secret-row, .details { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
}
