@import url("/admin/fonts.css");
:root {
  --canvas: #f6f7f3;
  --surface: #fff;
  --surface-soft: #f0f3ed;
  --ink: #182c25;
  --muted: #65736c;
  --line: #e2e8df;
  --brand: #245840;
  --brand-hover: #19432f;
  --accent: #d8ef9c;
  --success: #28634b;
  --success-bg: #e8f3ec;
  --warning: #88611b;
  --warning-bg: #fff3d8;
  --danger: #a53b38;
  --danger-bg: #fbecea;
  --radius: 14px;
  --shadow: 0 8px 28px #192d2507;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
.brand-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center 49%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--brand);
}
:focus-visible {
  outline: 3px solid #8ebd6f;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body {
  padding: 24px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--surface-soft);
}
.btn-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
}
.btn-danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: transparent;
}
.btn-small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-soft);
  color: var(--muted);
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 11px 12px;
  color: var(--ink);
  min-height: 42px;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.input::placeholder,
textarea::placeholder {
  color: #89948d;
}
.search {
  position: relative;
  min-width: 240px;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
}
.search input {
  padding-left: 39px;
}
.chip {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: inline-block;
}
.chip.selected {
  background: var(--accent);
  color: var(--ink);
  border-color: #c6dd8c;
}
.notice {
  padding: 14px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 13px;
}
.notice-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #efcdca;
}
.notice-success {
  color: var(--success);
  background: var(--success-bg);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 12px 24px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #fcfdfb;
  white-space: nowrap;
}
td {
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
tbody tr:hover {
  background: #fafcf8;
}
td strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
td .small {
  display: block;
  margin-top: 2px;
}
td.actions {
  white-space: nowrap;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--brand);
  font-weight: 650;
  font-size: 12px;
  flex-shrink: 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skeleton {
  height: 18px;
  border-radius: 5px;
  background: var(--surface-soft);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 560px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 20px 80px #122a2526;
}
dialog::backdrop {
  background: #15271e65;
  backdrop-filter: blur(3px);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 440px;
  padding: 15px 20px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 20;
}
input[type="checkbox"] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
