/* ============================================================
   PrimaDelta — Design System
   Warm charcoal + stone, single clay accent.
   Display: Spectral (serif).  UI/body: Hanken Grotesk.
   ============================================================ */

:root {
  /* neutrals — warm */
  --ink:        #211e1b;
  --ink-2:      #38332d;
  --ink-soft:   #4f4840;
  --muted:      #8a8076;
  --muted-2:    #a89e92;
  --line:       #e6e0d6;
  --line-2:     #d6cec1;
  --paper:      #f6f3ec;
  --paper-2:    #efeae0;
  --card:       #fffefb;
  --white:      #ffffff;

  /* accent — clay */
  --clay:       #9e5c43;
  --clay-deep:  #844a34;
  --clay-soft:  #f0e3da;
  --clay-tint:  #f7eee7;

  /* functional status (desaturated, warm-leaning) */
  --st-open:    #9e5c43;  /* clay */
  --st-open-bg: #f4e7df;
  --st-prog:    #5a6b82;  /* slate */
  --st-prog-bg: #e6eaf0;
  --st-done:    #5b7150;  /* sage */
  --st-done-bg: #e7eee2;
  --st-hold:    #8a7d5e;  /* taupe */
  --st-hold-bg: #efe9dc;

  /* type */
  --serif: "Spectral", Georgia, serif;
  --sans:  "Hanken Grotesk", -apple-system, system-ui, sans-serif;

  /* shape */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(33,30,27,.05), 0 1px 1px rgba(33,30,27,.04);
  --sh-2: 0 4px 16px rgba(33,30,27,.07), 0 1px 3px rgba(33,30,27,.05);
  --sh-3: 0 16px 48px rgba(33,30,27,.14), 0 4px 12px rgba(33,30,27,.08);

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#root { min-height: 100vh; }

h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

::selection { background: var(--clay); color: #fff; }

/* ---- utility ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay);
}
.eyebrow.muted { color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.ph {
  position: relative;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg,
    rgba(33,30,27,.045) 0 1px, transparent 1px 11px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--muted);
}
.ph.dark {
  background-color: #2a2621;
  background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,.05) 0 1px, transparent 1px 11px);
  color: rgba(255,255,255,.6);
}
.ph-tag {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px dashed currentColor; border-radius: 100px;
  padding: 5px 12px; background: rgba(255,255,255,.5);
  backdrop-filter: blur(2px);
}
.ph.dark .ph-tag { background: rgba(0,0,0,.2); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r);
  padding: 11px 20px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em;
  transition: all .16s ease; white-space: nowrap; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--card); border-color: var(--muted-2); }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: var(--r);
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-soft);
}
.btn-icon:hover { background: var(--card); color: var(--ink); }
.btn-icon.ghost { border-color: transparent; }

/* link button */
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14.5px; color: var(--clay);
  border-bottom: 1px solid transparent; padding-bottom: 1px; transition: .15s;
}
.link:hover { border-color: var(--clay); gap: 9px; }
.link svg { width: 16px; height: 16px; }

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  padding: 4px 10px; border-radius: 100px; line-height: 1.3;
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-open  { background: var(--st-open-bg); color: var(--st-open); }
.badge-prog  { background: var(--st-prog-bg); color: var(--st-prog); }
.badge-done  { background: var(--st-done-bg); color: var(--st-done); }
.badge-hold  { background: var(--st-hold-bg); color: var(--st-hold); }
.badge-neutral { background: var(--paper-2); color: var(--ink-soft); }
.badge-outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink-soft); }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .req { color: var(--clay); }
.input, .textarea, .select {
  width: 100%; background: var(--white); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 11px 13px; font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8076' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }

/* ============================================================
   TABLES
   ============================================================ */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); padding: 0 16px 11px;
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--paper); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { font-variant-numeric: tabular-nums; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(28,25,22,.45);
  backdrop-filter: blur(3px); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 56px 20px; overflow-y: auto;
  animation: fadeIn .2s ease both;
}
.modal {
  background: var(--card); border-radius: var(--r-xl); width: 100%; max-width: 560px;
  box-shadow: var(--sh-3); animation: modalIn .26s cubic-bezier(.2,.9,.3,1) both;
  border: 1px solid var(--line);
}
.modal.wide { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 0; }
.modal-body { padding: 20px 26px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px 24px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; bottom: 26px; right: 26px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 12px; background: var(--ink); color: var(--paper);
  padding: 14px 18px; border-radius: var(--r); box-shadow: var(--sh-3); max-width: 380px;
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1) both;
}
.toast .toast-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast .toast-icon svg { width: 18px; height: 18px; color: #fff; }
.toast .ttl { font-weight: 600; font-size: 14px; }
.toast .sub { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 1px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ============================================================
   PUBLIC NAV
   ============================================================ */
.pubnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.pubnav.dark { background: rgba(28,25,22,.7); border-color: rgba(255,255,255,.1); }
.pubnav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.pubnav .navlinks { display: flex; align-items: center; gap: 4px; }
.navlink { padding: 9px 15px; border-radius: var(--r); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: .14s; }
.navlink:hover { background: rgba(33,30,27,.05); color: var(--ink); }
.navlink.active { color: var(--ink); font-weight: 600; }
.pubnav.dark .navlink { color: rgba(255,255,255,.7); }
.pubnav.dark .navlink:hover { background: rgba(255,255,255,.08); color: #fff; }
.pubnav.dark .navlink.active { color: #fff; }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo .wordmark { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.logo .wordmark b { font-weight: 600; }
.logo.on-dark .wordmark { color: #fff; }

/* ============================================================
   HERO + SECTIONS
   ============================================================ */
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.dark-sec { background: var(--ink); color: var(--paper); }
.dark-sec .muted { color: rgba(255,255,255,.6); }
.dark-sec .eyebrow.muted { color: rgba(255,255,255,.5); }

.stat-num { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.divider { height: 1px; background: var(--line); border: none; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--paper); }
.sidebar {
  background: var(--ink); color: var(--paper); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-top { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-nav { padding: 14px 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sidebar-sec { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.34);
  padding: 16px 12px 7px; font-weight: 700; }
.snav {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r);
  color: rgba(255,255,255,.66); font-size: 14.5px; font-weight: 500; transition: .14s; position: relative;
}
.snav svg { width: 18px; height: 18px; flex-shrink: 0; }
.snav > span:not(.count) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snav:hover { background: rgba(255,255,255,.07); color: #fff; }
.snav.active { background: rgba(255,255,255,.1); color: #fff; }
.snav.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; background: var(--clay); border-radius: 0 3px 3px 0; }
.snav .count { margin-left: auto; flex-shrink: 0; font-size: 11.5px; background: rgba(255,255,255,.14); padding: 1px 8px; border-radius: 100px; font-weight: 600; }
.snav.active .count { background: var(--clay); }
.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.09); }
.user-chip { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: var(--r); }
.user-chip:hover { background: rgba(255,255,255,.06); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--clay); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 68px; background: rgba(246,243,236,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; position: sticky; top: 0; z-index: 30;
}
.admin-content { padding: 30px 32px 64px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head h1 { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.page-head .sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* search input */
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input { padding-left: 36px; width: 280px; background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--r); padding-top: 9px; padding-bottom: 9px; font-size: 14px; }
.search input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }

/* stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.stat-tile .label { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat-tile .label .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--clay-tint); color: var(--clay);
  display: flex; align-items: center; justify-content: center; }
.stat-tile .label .ic svg { width: 16px; height: 16px; }
.stat-tile .big { font-family: var(--serif); font-size: 34px; font-weight: 500; margin-top: 14px; line-height: 1; letter-spacing: -0.01em; }
.stat-tile .delta { font-size: 12.5px; margin-top: 7px; font-weight: 600; }
.delta.up { color: var(--st-done); } .delta.down { color: var(--clay); }

/* filter tabs */
.tabs { display: inline-flex; gap: 2px; background: var(--paper-2); padding: 3px; border-radius: var(--r); }
.tab { padding: 7px 15px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); border: none; background: transparent; transition: .14s; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }

/* pagination */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 44px; flex-wrap: wrap;
}
.pager-nums { display: flex; align-items: center; gap: 6px; }
.pager-num {
  min-width: 40px; height: 40px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ink-soft); background: transparent;
  border: 1px solid var(--line); border-radius: var(--r);
  transition: .14s;
}
.pager-num:hover { border-color: var(--clay); color: var(--clay); }
.pager-num.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.pager-gap { color: var(--muted-2); padding: 0 2px; user-select: none; }
.pager-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: .14s;
}
.pager-arrow svg { width: 16px; height: 16px; }
.pager-arrow:hover:not(:disabled) { border-color: var(--clay); color: var(--clay); }
.pager-arrow:disabled { opacity: .38; cursor: not-allowed; }
@media (max-width: 640px) {
  .pager { justify-content: center; }
  .pager-arrow span { display: none; }
}

/* segmented progress bar */
.bar { height: 7px; background: var(--paper-2); border-radius: 100px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--clay); border-radius: 100px; }

/* mini bar chart */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .col .bk { width: 100%; background: var(--ink); border-radius: 6px 6px 0 0; transition: height .5s cubic-bezier(.2,.9,.3,1); min-height: 3px; }
.chart .col .bk.alt { background: var(--clay); }
.chart .col .lab { font-size: 11px; color: var(--muted); font-weight: 600; }

/* property / project card */
.estate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.estate { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: .2s; cursor: pointer; display: flex; flex-direction: column; }
.estate:hover { box-shadow: var(--sh-3); transform: translateY(-3px); border-color: var(--line-2); }
.estate .estate-img { height: 220px; position: relative; }
.estate .estate-badge { position: absolute; top: 14px; left: 14px; }
.estate .estate-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.estate .estate-loc { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.estate .estate-name { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-top: 5px; }
.estate .estate-meta { display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.estate .estate-meta .m .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.estate .estate-meta .m .v { font-size: 15px; font-weight: 600; margin-top: 2px; }

/* spec list */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec .cell { background: var(--card); padding: 18px 20px; }
.spec .cell .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.spec .cell .v { font-size: 18px; font-weight: 600; margin-top: 6px; font-family: var(--serif); }

/* doc / file row */
.filerow { display: flex; align-items: center; gap: 14px; }
.fileic { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 11px; color: #fff; letter-spacing: .02em; }
.fileic.pdf { background: #a8503e; } .fileic.doc { background: #5a6b82; } .fileic.xls { background: #5b7150; } .fileic.img { background: #8a7d5e; } .fileic.dwg { background: #6a5a82; }

/* dropzone */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 40px; text-align: center;
  background: var(--paper); transition: .18s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--clay); background: var(--clay-tint); }
.dropzone .dz-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--clay); }
.dropzone .dz-ic svg { width: 22px; height: 22px; }

/* timeline / activity */
.activity { display: flex; flex-direction: column; }
.act-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.act-item:last-child { border-bottom: none; }
.act-dot { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--clay-tint); color: var(--clay); }
.act-dot svg { width: 16px; height: 16px; }
.act-item .at { font-size: 14px; }
.act-item .am { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* empty state */
.empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty .e-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--muted-2); }
.empty .e-ic svg { width: 26px; height: 26px; }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; color: var(--paper); }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-card { width: 100%; max-width: 380px; }

/* misc */
.kbd { font-family: var(--sans); font-size: 11px; font-weight: 600; background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: 5px; padding: 2px 6px; color: var(--ink-soft); }
.scrollx { overflow-x: auto; }
.flex { display: flex; } .items-center { align-items: center; } .between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.grow { flex: 1; } .wrap-gap { flex-wrap: wrap; }

@media (max-width: 1080px) {
  .estate-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .pubnav .navlinks { display: none; }
  .estate-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .admin { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
