:root {
  font-family: Inter, "Malgun Gothic", system-ui, sans-serif;
  color: #191918;
  background: #f5f4f0;
  --ink: #252422;
  --line: #dcd9d0;
  --muted: #64615a;
  --paper: #fffefa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top {
  min-height: 72px;
  padding: 14px clamp(22px, 5vw, 68px);
  background: var(--ink);
  color: #fffefa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; gap: 13px; align-items: center; }
.brand strong { font-size: 1.4rem; letter-spacing: -.045em; }
.brand span { color: #dfd5bd; font-size: .72rem; letter-spacing: .17em; font-weight: 700; }
main { width: min(100% - 40px, 1080px); margin: clamp(42px, 9vw, 94px) auto; }
.login, dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 5vw, 40px);
}
.login { width: min(100%, 440px); margin: 0 auto; }
.label { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .18em; margin: 0 0 10px; }
h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.06em; }
h2 { margin: 0 0 18px; letter-spacing: -.035em; }
.muted { color: var(--muted); font-size: .94rem; }
form { display: grid; gap: 14px; }
.login form { margin-top: 25px; }
label { display: grid; gap: 7px; font-size: .87rem; font-weight: 700; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  background: #fff;
  color: #191918;
  border: 1px solid #bdbab2;
  border-radius: 7px;
  padding: 10px 12px;
}
button {
  min-height: 41px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
}
button.quiet { color: inherit; border-color: var(--line); background: transparent; }
button:hover:not(:disabled) { opacity: .78; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid #88703b; outline-offset: 3px; }
.heading, .actions, .filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.heading { justify-content: space-between; margin-bottom: 28px; }
.heading h1 { margin-bottom: 0; }
.filters label:first-child { flex: 1; min-width: 180px; max-width: 460px; }
.message { min-height: 20px; margin: 12px 0; color: #4f4c45; font-size: .88rem; }
.message[data-error="true"] { color: #982716; }
.login .message:empty, dialog .message:empty { display: none; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
table { width: 100%; min-width: 510px; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { font-size: .79rem; color: var(--muted); }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }
td:last-child { text-align: right; white-space: nowrap; }
a { color: #513c15; text-underline-offset: 3px; }
.status { display: inline-block; white-space: nowrap; color: #4f4c45; background: #eceae3; border-radius: 20px; font-size: .8rem; padding: 5px 9px; }
.status[data-status="active"] { color: #28543d; background: #e2eee6; }
.status[data-status="review"] { color: #634b1d; background: #f4ead3; }
.empty { text-align: center; padding: 24px; color: var(--muted); }
dialog { width: min(100% - 34px, 520px); color: var(--ink); }
dialog::backdrop { background: #17161380; }
dialog .actions { justify-content: end; margin-top: 6px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
