:root {
  --background: #111413;
  --panel: #181c1b;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #8f9e96;
  --green: #b8e88a;
  --peach: #fdbf75;
  --text: rgba(255, 255, 255, 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font: 14px/1.45 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[hidden] { display: none !important; }

h1, h2 { margin: 0; font-weight: 600; }
h1 { font-size: 21px; }
h2 { font-size: 23px; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 12px; }
.error { color: var(--peach); font-size: 12px; min-height: 1em; }
.error:empty { display: none; }
.label { color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

.tile {
  display: grid; place-items: center;
  width: 39px; height: 39px; flex: none;
  border-radius: 11px;
  background: rgba(184, 232, 138, 0.09);
  color: var(--green); font-weight: 600;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.centered { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(380px, 100%); padding: 30px; display: grid; gap: 14px; }

label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
label.check { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 13px; }

input:not([type="checkbox"]), select {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; }

.pill {
  padding: 10px 17px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
  font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.pill:hover { background: rgba(255, 255, 255, 0.1); }
.pill.primary { background: var(--green); color: var(--background); }
.pill.primary:hover { filter: brightness(1.07); }
.pill.danger { background: rgba(253, 191, 117, 0.14); color: var(--peach); }
.pill.danger:hover { background: rgba(253, 191, 117, 0.24); }
.pill.small { padding: 7px 13px; }

header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
}
.brand, .actions { display: flex; align-items: center; gap: 13px; }

.content { max-width: 860px; margin: 0 auto; padding: 28px 30px; display: grid; gap: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; }

.rows { display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.row .who { flex: 1; min-width: 160px; }
.row .name { font-size: 15px; font-weight: 600; }
.badge {
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(184, 232, 138, 0.1); color: var(--green);
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  vertical-align: 2px;
}
.row .buttons { display: flex; gap: 8px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 30px;
  background: var(--background);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 20px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
dialog form { display: grid; gap: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
