/* ==========================================================================
   Amberfield — ADMIN portal
   Utility-first, denser than the residents' site. Same warm palette so the two
   read as one family, but cooler greys and tables instead of cards-as-content.
   ========================================================================== */

:root {
  --ink: #16130f;
  --ink-2: #3d372f;
  --muted: #6f6862;
  --muted-2: #9a938c;
  --line: #e4dfd7;
  --line-soft: #f1ede7;
  --bg: #ffffff;
  --bg-soft: #f8f6f2;
  --bg-deep: #2a2420;

  --amber: #a88a5e;
  --amber-dark: #8d7249;
  --amber-deep: #6b5636;
  --amber-soft: #eaddc5;
  --amber-tint: #faf6ee;

  --green: #2f7d5d;
  --green-soft: #e4f3ec;
  --red: #b42318;
  --red-soft: #fdeceb;
  --blue: #1d4ed8;
  --blue-soft: #eaf0ff;
  --purple: #6d28d9;
  --purple-soft: #f0eafe;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 19, 15, .06);
  --shadow: 0 2px 6px rgba(22, 19, 15, .07), 0 10px 28px rgba(22, 19, 15, .06);
  --shadow-lg: 0 16px 52px rgba(22, 19, 15, .18);

  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.25; font-weight: 650; }
h1 { font-size: 25px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 760px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- shell -- */

body.needs-admin .admin-body { visibility: hidden; }
body.needs-admin.is-ready .admin-body { visibility: visible; }
body.needs-admin::before {
  content: "";
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='14' stroke='%23e4dfd7' stroke-width='3' fill='none'/%3E%3Cpath d='M17 3a14 14 0 0 1 14 14' stroke='%23a88a5e' stroke-width='3' fill='none' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 17 17' to='360 17 17' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") center no-repeat;
}
body.needs-admin.is-ready::before { display: none; }

.aheader {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg-deep);
  color: #fff;
}
.abar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.abrand { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.abrand:hover { text-decoration: none; }
.abrand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #c9ab7a, #7c6238);
  font-weight: 800; font-size: 15px; color: #fff;
}
.abrand__text { display: flex; flex-direction: column; line-height: 1.1; }
.abrand__text strong { font-size: 15px; font-weight: 650; }
.abrand__text small { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }

.anav { display: flex; align-items: center; gap: 1px; margin-left: 10px; flex: 1; min-width: 0; }
.anav__link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border-radius: 7px;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.anav__link:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.anav__link.is-active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.anav__count {
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--amber); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

.aaccount { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.aaccount__who { display: inline-flex; align-items: center; gap: 8px; }
.aaccount__name { font-size: 13px; color: rgba(255, 255, 255, .8); }
.aavatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 11px; font-weight: 700;
}
.aheader .btn--ghost { --btn-fg: rgba(255,255,255,.78); }
.aheader .btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; }

.anav-toggle { display: none; }

/* ----------------------------------------------------------------- page -- */

.page { padding: 26px 0 70px; }
.page__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
}
.page__title { margin-bottom: 3px; }
.page__sub { color: var(--muted); font-size: 14px; margin: 0; }

/* --------------------------------------------------------------- panels -- */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel + .panel { margin-top: 20px; }
.panel__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.panel__head h2 { margin: 0; font-size: 16px; }
.panel__body { padding: 18px; }
.panel__body--flush { padding: 0; }
.panel__foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); background: var(--bg-soft); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

/* ---------------------------------------------------------------- stats -- */

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.tile__label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tile__value { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; }
.tile__foot { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.tile--alert { border-color: var(--amber-soft); background: var(--amber-tint); }
.tile--alert .tile__value { color: var(--amber-deep); }

/* -------------------------------------------------------------- buttons -- */

/* `display` on .btn beats the UA stylesheet's [hidden] rule, so hiding a button
   with the hidden attribute silently does nothing without this. */
.btn[hidden], .link-btn[hidden] { display: none; }

.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn--primary { --btn-bg: var(--amber-dark); --btn-fg: #fff; --btn-bd: var(--amber-dark); }
.btn--primary:hover:not(:disabled) { --btn-bg: var(--amber-deep); --btn-bd: var(--amber-deep); }
.btn--secondary { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--secondary:hover:not(:disabled) { --btn-bg: var(--bg-soft); --btn-bd: var(--muted-2); }
.btn--ghost { --btn-fg: var(--ink-2); }
.btn--ghost:hover:not(:disabled) { --btn-bg: var(--line-soft); }
.btn--success { --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: var(--green); }
.btn--success:hover:not(:disabled) { --btn-bg: #25654a; --btn-bd: #25654a; }
.btn--danger { --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red); }
.btn--danger:hover:not(:disabled) { --btn-bg: #93150c; --btn-bd: #93150c; }
.btn--outline-danger { --btn-fg: var(--red); --btn-bd: #f0c9c5; --btn-bg: #fff; }
.btn--outline-danger:hover:not(:disabled) { --btn-bg: var(--red-soft); }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--lg { padding: 12px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; }

.btn--google {
  --btn-bg: #fff; --btn-fg: #2c2c2c; --btn-bd: #d3ccc2;
  gap: 10px; font-weight: 550;
}
.btn--google:hover:not(:disabled) { --btn-bg: #faf8f5; --btn-bd: var(--muted-2); }
.btn--google svg { flex: none; }

.or-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  font-size: 12px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: .1em;
}
.or-divider::before, .or-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.link-btn {
  background: none; border: 0; padding: 5px 8px; border-radius: var(--r-sm);
  font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
}
.link-btn:hover { background: var(--line-soft); color: var(--ink); }
.link-btn--danger { color: var(--red); }
.link-btn--danger:hover { background: var(--red-soft); }

/* --------------------------------------------------------------- tables -- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fdfcfa; }
.table__actions { text-align: right; white-space: nowrap; }
.table__primary { font-weight: 650; color: var(--ink); }
.table__secondary { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------- badges -- */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--line-soft); color: var(--muted); white-space: nowrap;
}
.badge--amber { background: var(--amber-soft); color: var(--amber-deep); }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.badge--purple { background: var(--purple-soft); color: var(--purple); }

.chip {
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--muted-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------------------------------------------------------------- forms -- */

.field { margin-bottom: 15px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.label { display: block; font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.label .req { color: var(--red); font-weight: 400; }

.input, .textarea, .select {
  width: 100%;
  padding: 9px 12px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(168, 138, 94, .20);
}
.input:disabled, .textarea:disabled { background: var(--bg-soft); color: var(--muted); }
.textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.select { appearance: none; padding-right: 34px;
  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 1.5 6 6.5l5-5' stroke='%236f6862' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }

.help { font-size: 12px; color: var(--muted); margin-top: 5px; }

.checkbox { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--amber-dark); width: 15px; height: 15px; flex: none; }

.form-error { background: var(--red-soft); border: 1px solid #f3ccc8; color: #8c1d13;
  padding: 10px 13px; border-radius: var(--r); font-size: 13.5px; margin-bottom: 15px; }
.form-success { background: var(--green-soft); border: 1px solid #bfe3d1; color: #1e5c43;
  padding: 10px 13px; border-radius: var(--r); font-size: 13.5px; margin-bottom: 15px; }
.form-note { background: var(--amber-tint); border: 1px solid var(--amber-soft); color: var(--amber-deep);
  padding: 10px 13px; border-radius: var(--r); font-size: 13.5px; margin-bottom: 15px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar .select { width: auto; min-width: 190px; }

/* ---------------------------------------------------------------- login -- */

.login {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 420px at 50% -10%, #3a322b 0%, rgba(58,50,43,0) 70%),
    var(--bg-deep);
}
.login__card {
  width: 100%; max-width: 400px;
  background: #fff;
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: var(--shadow-lg);
}
.login__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.login__brand .abrand__mark { width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
.login__brand strong { display: block; font-size: 17px; color: var(--ink); }
.login__brand small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.login__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------- states -- */

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty h3 { font-size: 16px; color: var(--ink-2); margin-bottom: 5px; }
.empty p { font-size: 13.5px; margin: 0; }

.spinner {
  width: 19px; height: 19px;
  border: 2px solid var(--line); border-top-color: var(--amber);
  border-radius: 50%; display: inline-block; animation: spin .7s linear infinite;
}
.spinner--sm { width: 14px; height: 14px; }
.spinner--page { display: block; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, #faf8f4 50%, var(--line-soft) 75%);
  background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--r-sm); height: 13px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* --------------------------------------------------------------- modals -- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(22, 19, 15, .5);
  display: none; align-items: center; justify-content: center;
  padding: 22px; overflow-y: auto;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; margin: auto;
  animation: pop .16s ease-out; position: relative;
}
.modal--sm { max-width: 400px; }
.modal--lg { max-width: 780px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.modal__body { padding: 24px 26px 18px; }
.modal__title { font-size: 19px; margin-bottom: 6px; }
.modal__text { font-size: 14px; color: var(--muted); margin: 0; }
.modal__actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 26px 22px; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: var(--line-soft); color: var(--ink-2);
  cursor: pointer; font-size: 17px; line-height: 1;
}

/* --------------------------------------------------------------- toasts -- */

.toast-host {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 400; display: grid; gap: 9px; width: min(430px, calc(100vw - 30px));
}
.toast {
  padding: 11px 16px; border-radius: var(--r);
  background: var(--ink); color: #fff; font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--success { background: #1e5c43; }
.toast--error { background: #8c1d13; }

/* ------------------------------------------------------------- calendar -- */

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal__month { font-size: 18px; font-weight: 650; color: var(--ink); margin: 0; }
.cal__nav { display: flex; gap: 5px; align-items: center; }
.cal__nav button {
  width: 32px; height: 32px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); display: grid; place-items: center;
}
.cal__nav button:hover { background: var(--bg-soft); }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 5px; }
.cal__dow span {
  text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); padding: 3px 0;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__cell {
  position: relative; min-height: 76px; padding: 6px 7px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  text-align: left; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .14s ease, background .14s ease;
}
.cal__cell:hover:not(:disabled) { border-color: var(--amber); background: var(--amber-tint); }
.cal__cell.is-outside { background: var(--bg-soft); border-color: var(--line-soft); }
.cal__cell.is-outside .cal__num { color: var(--muted-2); }
.cal__cell.is-past { background: var(--bg-soft); }
.cal__cell.is-today { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.cal__cell.is-selected { background: var(--ink); border-color: var(--ink); }
.cal__cell.is-selected .cal__num { color: #fff; }
.cal__cell.is-selected .cal__tag { background: rgba(255,255,255,.2); color: #fff; }
.cal__num { font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1; }
.cal__tags { display: grid; gap: 2px; min-width: 0; }
.cal__tag {
  font-size: 10px; font-weight: 600; line-height: 1.3; padding: 1px 5px; border-radius: 4px;
  background: var(--line-soft); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal__tag--lapa { background: var(--amber-soft); color: var(--amber-deep); }
.cal__tag--mine { background: var(--green-soft); color: var(--green); }
.cal__tag--event { background: var(--blue-soft); color: var(--blue); }
.cal__tag--agm { background: var(--purple-soft); color: var(--purple); }
.cal__tag--maintenance { background: #fee2e2; color: #991b1b; }
.cal__tag--social { background: var(--green-soft); color: var(--green); }
.cal__more { font-size: 9.5px; color: var(--muted); }

.legend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ------------------------------------------------------------ lapa slots -- */
/* The morning / afternoon halves of a day, shown in the day modal. */

#slotList { display: grid; gap: 12px; }

.slot {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px 14px;
  background: #fff;
}
.slot.is-booked { border-color: var(--amber-soft); background: var(--amber-tint); }

.slot__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.slot__name { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.slot__time { font-size: 12px; color: var(--muted); }
.slot__state {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.slot.is-booked .slot__state { color: var(--amber-deep); }

.booking-card { margin-bottom: 12px; }
.booking-card__who { font-weight: 650; color: var(--ink); font-size: 14px; }
.booking-card__reason { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; white-space: pre-wrap; }

/* --------------------------------------------------------------- trustees -- */

.tavatar {
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: none;
  background: var(--bg-soft);
}
.tavatar--initials {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--amber-deep);
  background: var(--amber-soft);
}

.photo-picker { display: flex; gap: 16px; align-items: flex-start; }
.photo-picker__preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.photo-picker__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-picker__actions { min-width: 0; }

/* ------------------------------------------------------- feed moderation -- */

.modpost {
  display: grid; grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 16px; align-items: start;
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
}
.modpost:last-child { border-bottom: 0; }
.modpost.is-hidden { background: var(--red-soft); }
.modpost__thumb {
  width: 108px; height: 84px; border-radius: var(--r);
  background: var(--bg-soft); border: 1px solid var(--line);
  overflow: hidden; display: grid; place-items: center;
  color: var(--muted-2); font-size: 11px;
}
.modpost__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modpost__text { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.modpost__meta { font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1080px) {
  .split-2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anav__link { padding: 7px 9px; font-size: 13px; }
}

@media (max-width: 860px) {
  .anav {
    display: none;
    position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-deep); padding: 10px 14px 16px; gap: 1px;
    box-shadow: var(--shadow);
  }
  .aheader.is-open .anav { display: flex; }
  .anav-toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px; margin-left: auto;
    border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm);
    background: transparent; cursor: pointer;
  }
  .anav-toggle span, .anav-toggle span::before, .anav-toggle span::after {
    display: block; width: 16px; height: 1.5px; background: #fff; content: ""; position: relative;
  }
  .anav-toggle span::before { position: absolute; top: -5px; }
  .anav-toggle span::after { position: absolute; top: 5px; }
  .aaccount { margin-left: 0; }
  .aaccount__name { display: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field--row, .field--row3 { grid-template-columns: 1fr; }
  .page__head { flex-direction: column; align-items: stretch; }
  .toolbar .input, .toolbar .select { width: 100%; min-width: 0; }
  .modpost { grid-template-columns: 1fr; }
  .modpost__thumb { width: 100%; height: 150px; }
  .cal__cell { min-height: 58px; padding: 4px; }
  .cal__tag { font-size: 9px; }
  .wrap { padding: 0 16px; }
}
