/* ==========================================================================
   Reeves Corporation — Secure Data Room
   Palette: deep black, charcoal, metallic gold, warm ivory.
   Rules: no gradients, no shadows — depth comes from hairlines and type.
   ========================================================================== */

:root {
  --black: #070707;
  --ink: #0d0e10;
  --charcoal: #202328;
  --charcoal-2: #26292f;
  --gold: #bb8d39;
  --gold-hover: #d1a04f;
  --bronze: #73452c;
  --ivory: #f4ee9b;
  --gray: #b9c6c3;
  --beige: #a89d84;
  --white: #ffffff;
  --line: #2b3037;
  --line-soft: #23262b;
  --line-gold: rgba(187, 141, 57, 0.38);
  --danger: #c4634f;
  --ok: #8fae7c;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --radius: 8px;
  --header-h: 72px;
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
button { font: inherit; cursor: pointer; }
main { flex: 1 0 auto; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--black);
  padding: 8px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Layout ------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.footer-logo { height: 24px; width: auto; }
.auth-logo { height: 52px; width: auto; }

/* ---------- Nav ---------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}
.nav-link {
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav-link:hover { color: var(--ivory); border-bottom-color: var(--gold); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: clamp(14px, 2vw, 24px);
  border-left: 1px solid var(--line);
}
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip-name { font-size: 0.85rem; color: var(--white); font-weight: 500; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-gold);
  border-radius: 6px;
  padding: 10px 9px;
}
.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--gold);
}

/* ---------- Typography --------------------------------------------------- */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.page-head {
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(24px, 4vw, 44px);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  color: var(--ivory);
  letter-spacing: 0.01em;
}
.page-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.page-lede {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--gray);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 5vw, 48px);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--white);
}
main > section:last-child { padding-bottom: clamp(48px, 8vw, 96px); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--black); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--line-gold); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-hover); }
.btn-ghost { background: transparent; color: var(--gray); border-color: var(--line); }
.btn-ghost:hover { color: var(--ivory); border-color: var(--line-gold); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--black); }
.btn-sm { padding: 9px 18px; font-size: 0.72rem; }
.btn-xs { padding: 6px 13px; font-size: 0.68rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.inline-form { display: inline; }

/* ---------- Panels & cards ------------------------------------------------ */
.panel {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 32px);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ivory);
  margin-bottom: 18px;
}
.panel-danger { border-color: rgba(196, 99, 79, 0.45); }

/* ---------- Folder cards -------------------------------------------------- */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}
.folder-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--white);
  transition: border-color 0.15s ease;
}
a.folder-card:hover { border-color: var(--line-gold); color: var(--white); }
.folder-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.folder-icon { width: 26px; height: 26px; color: var(--gold); }
.folder-count {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--beige);
}
.folder-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ivory);
}
.folder-desc {
  color: var(--gray);
  font-size: 0.88rem;
  flex: 1;
}
.folder-cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.folder-card-admin { gap: 12px; }
.folder-admin-actions { display: flex; gap: 8px; align-items: center; }
.folder-edit summary {
  color: var(--beige);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding-top: 8px;
}
.folder-edit .form { margin-top: 14px; }
.folder-new { border-style: dashed; border-color: var(--line-gold); }

/* ---------- Tables -------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--charcoal);
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th {
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beige);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--charcoal-2); }
.row-inactive td { opacity: 0.5; }
.col-actions { text-align: right; white-space: nowrap; }
.col-actions .btn { margin-left: 6px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--beige); }
.cell-strong { display: block; color: var(--white); font-weight: 600; }
.cell-sub { display: block; font-size: 0.78rem; color: var(--beige); }

.doc-link { color: var(--white); font-weight: 600; }
.doc-link:hover { color: var(--ivory); }
.doc-desc { display: block; font-size: 0.78rem; color: var(--beige); font-weight: 400; }

/* ---------- Badges & status ------------------------------------------------ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--gray);
}
.badge-admin { color: var(--gold); border-color: var(--line-gold); }
.badge-staff { color: var(--ivory); border-color: rgba(244, 238, 155, 0.4); }
.badge-partner { color: var(--gray); border-color: var(--line); }
.badge-expired { color: var(--danger); border-color: rgba(196, 99, 79, 0.5); }
.status-ok { color: var(--ok); font-size: 0.85rem; }
.status-off { color: var(--danger); font-size: 0.85rem; }

/* ---------- Stats ---------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1;
}
.stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Forms ---------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; border: none; padding: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beige);
}
.field-label i { font-style: normal; text-transform: none; letter-spacing: 0.04em; color: var(--gray); }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
input:focus, select:focus { border-color: var(--gold); outline: none; }
input::placeholder { color: #5c636b; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23bb8d39' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
select:hover { border-color: var(--line-gold); }
input[type="date"] { color-scheme: dark; }

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: none;
  border: none;
  padding: 6px;
  color: var(--beige);
  transition: color 0.15s ease;
}
.pw-toggle:hover { color: var(--gold); }
.pw-toggle svg { width: 19px; height: 19px; }
.pw-toggle .icon-eye-off { display: none; }
.pw-toggle.on { color: var(--gold); }
.pw-toggle.on .icon-eye { display: none; }
.pw-toggle.on .icon-eye-off { display: block; }

.file-input {
  position: relative;
  display: block;
  border: 1px dashed var(--line-gold);
  border-radius: 6px;
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.file-input:hover, .file-input.dragover {
  border-color: var(--gold);
  background: rgba(187, 141, 57, 0.06);
}
.file-input input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-input-label {
  font-size: 0.85rem;
  color: var(--beige);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.file-input.has-file .file-input-label { color: var(--ivory); font-weight: 600; }

.upload-error {
  border: 1px solid rgba(196, 99, 79, 0.6);
  border-left-width: 3px;
  border-radius: 6px;
  padding: 11px 16px;
  color: #e2a89d;
  font-size: 0.88rem;
  background: var(--ink);
}
.upload-progress { display: flex; flex-direction: column; gap: 9px; }
.upload-bar {
  height: 8px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.upload-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.2s ease;
}
.upload-bar-text {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--beige);
}
.upload-bar-text strong { color: var(--ivory); font-weight: 600; }

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 4px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--gray);
  cursor: pointer;
}
.check input { accent-color: var(--gold); width: 15px; height: 15px; }
.check-standalone { margin-block: 4px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; grid-column: 1 / -1; }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-bar select, .filter-bar input { width: auto; min-width: 180px; flex: 0 1 auto; }
.filter-bar input { flex: 1 1 200px; }

/* ---------- Flash messages -------------------------------------------------- */
.flashes { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 6px;
  border: 1px solid var(--line-gold);
  border-left-width: 3px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.9rem;
}
.flash-error { border-color: rgba(196, 99, 79, 0.6); color: #e2a89d; }
.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.7;
}
.flash-close:hover { opacity: 1; }

/* ---------- Events / audit --------------------------------------------------- */
.event-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.event {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.event:last-child { border-bottom: none; }
.event-action {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beige);
  min-width: 130px;
}
.action-download_document, .action-login_success { color: var(--gold); }
.action-delete_document, .action-delete_user, .action-login_failed,
.action-delete_folder { color: var(--danger); }
.action-upload_document, .action-create_user, .action-create_folder { color: var(--ok); }
.event-detail { flex: 1; color: var(--gray); min-width: 180px; }
.event-detail strong { color: var(--white); font-weight: 600; }
.event-time { color: var(--beige); font-size: 0.76rem; white-space: nowrap; }

/* ---------- Document page ----------------------------------------------------- */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.meta-item dt {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 5px;
}
.meta-item dd { color: var(--white); font-size: 0.95rem; word-break: break-word; }
.doc-actions { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc-fine { margin-top: 14px; font-size: 0.75rem; color: var(--beige); }
.notice { color: var(--danger); font-size: 0.9rem; }

.doc-mini-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.doc-mini-list li { display: flex; flex-direction: column; gap: 2px; }
.doc-mini-list .muted { font-size: 0.78rem; }

/* ---------- Admin layout ------------------------------------------------------- */
.admin-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 900px) {
  .admin-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.admin-cols .panel .btn { margin-top: 16px; }

/* ---------- Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--beige); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:last-child { color: var(--gold); }

/* ---------- Empty & error states -------------------------------------------------- */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 7vw, 64px);
  text-align: center;
}
.empty-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ivory);
  margin-bottom: 8px;
}
.empty-text { color: var(--beige); font-size: 0.9rem; max-width: 46ch; margin-inline: auto; }

.error-page { text-align: center; padding-top: clamp(60px, 10vw, 120px); }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.error-text { color: var(--gray); margin: 18px 0 30px; }

/* ---------- Footer ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
  padding-block: 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-name { font-family: var(--font-display); color: var(--ivory); font-size: 1rem; }
.footer-line { color: var(--beige); font-size: 0.75rem; }
.footer-meta { text-align: right; }
.footer-meta p { color: var(--beige); font-size: 0.78rem; }
.footer-fine { color: #5c636b; }

/* ---------- Auth pages --------------------------------------------------------------- */
.auth-body { min-height: 100vh; }
.auth-grid {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(32px, 6vw, 72px);
  border-right: 1px solid var(--line-soft);
}
.auth-statement { max-width: 560px; }
.auth-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.06;
  color: var(--ivory);
}
.auth-title em { color: var(--gold); font-weight: 400; }
.auth-lede { margin-top: 20px; color: var(--gray); font-size: 1.02rem; max-width: 50ch; }
.auth-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
}
.auth-points li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--gray);
  font-size: 0.92rem;
}
.point-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
  min-width: 28px;
}
.auth-foot { color: var(--beige); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(32px, 6vw, 72px);
  background: var(--ink);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}
.auth-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 22px;
}
.auth-card .flash { margin-bottom: 16px; }
.auth-card .btn-block { margin-top: 6px; }
.auth-note { margin-top: 20px; font-size: 0.78rem; color: var(--beige); line-height: 1.55; }
.auth-legal { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #5c636b; }
.auth-panel-center { min-height: 100vh; }
.auth-card-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-logo-sm { height: 37px; width: auto; }
.auth-note-top { margin: -8px 0 18px; }
.auth-alt { margin-top: 18px; text-align: center; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--beige);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--gold); }

@media (min-width: 940px) {
  .auth-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* ---------- Responsive ------------------------------------------------------------------ */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line-gold);
    padding: 8px clamp(16px, 4vw, 32px) 20px;
  }
  .site-nav.open { display: flex; }
  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.85rem;
  }
  .nav-user {
    border-left: none;
    padding-left: 0;
    padding-top: 16px;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .brand-logo { height: 30px; }
  .auth-logo { height: 42px; }
  .form-grid { grid-template-columns: 1fr; }
  .filter-bar select, .filter-bar input { width: 100%; flex: 1 1 100%; }
  .footer-meta { text-align: left; }
  .event { gap: 8px; }
  .event-action { min-width: 0; }
  .col-actions .btn { margin: 2px 0 2px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
