/* Madison & Main - shared styles for the website and the leasing desk */
:root {
  --paper: #eef1ee;
  --surface: #ffffff;
  --ink: #1b2420;
  --muted: #56625c;
  --line: #cfd6d1;
  --accent: #1f5f55;
  --accent-ink: #ffffff;
  --brick: #9b3f2b;
  --avail: #1d7a4a;
  --leased: #6b6f6d;
  --soft: #e2e8e4;
  --draw: #1f4f48;
  --sheet: #f6f7f2;
  --grid: rgba(31,95,85,.16);
  --grid-fine: rgba(31,95,85,.07);
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131916; --surface: #1b2320; --ink: #e8ede9; --muted: #a3b0a9; --line: #2f3a35;
    --accent: #5fb3a4; --accent-ink: #0e1512; --brick: #d07a63; --avail: #5ccf8d; --leased: #8e9692; --soft: #22302a; --draw: #9fd8cc; --sheet: #0f1a17; --grid: rgba(95,179,164,.18); --grid-fine: rgba(95,179,164,.07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131916; --surface: #1b2320; --ink: #e8ede9; --muted: #a3b0a9; --line: #2f3a35;
  --accent: #5fb3a4; --accent-ink: #0e1512; --brick: #d07a63; --avail: #5ccf8d; --leased: #8e9692; --soft: #22302a; --draw: #9fd8cc; --sheet: #0f1a17; --grid: rgba(95,179,164,.18); --grid-fine: rgba(95,179,164,.07);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; }
.eyebrow { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.brand span { color: var(--brick); }
nav.links { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .9rem; }
nav.links a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav.links a:hover { color: var(--accent); }
nav.links a.mgr { color: var(--brick); }

.mast { background: var(--brick); color: #fff; }
.mast { position: relative; background-color: #2a1d18; background-image: linear-gradient(90deg, rgba(20,16,14,.86) 0%, rgba(20,16,14,.66) 48%, rgba(20,16,14,.25) 100%), var(--hero, url("../photos/corner-view.jpg")); background-size: cover; background-position: center 40%; }
.mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--brick); }
.mast .wrap { padding-block: clamp(56px, 10vw, 110px) clamp(48px, 8vw, 90px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.mast .photo-credit { font-family: var(--f-mono); font-size: .72rem; color: rgba(255,255,255,.75); }
.mast h1, .mast p.lede { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.mast .copy { max-width: 640px; }
.mast .copy { display: grid; gap: 22px; min-width: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: .88rem; color: var(--muted); }
.gallery figcaption strong { color: var(--ink); display: block; }
.gallery .dist { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, var(--ink)); }
.nb-head { margin: 40px 0 4px; }
.nb-note { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.mast .eyebrow { color: rgba(255,255,255,.82); }
.mast h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 11vw, 6.5rem); line-height: .9; letter-spacing: .01em; }
.mast p.lede { max-width: 60ch; font-size: 1.1rem; margin: 0; color: rgba(255,255,255,.93); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.facts li { border: 1px solid rgba(255,255,255,.45); padding: 6px 12px; font-family: var(--f-mono); font-size: .82rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; font: 600 .95rem var(--f-body); border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; border-radius: 2px; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 6px 10px; font-size: .82rem; }
.mast .btn { background: #fff; color: var(--brick); border-color: #fff; }
.mast .btn.ghost { background: transparent; color: #fff; }

section { padding-block: 56px; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }

.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.filter button { font: 600 .85rem var(--f-body); padding: 8px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.check input { width: auto; }

.bldg { display: grid; gap: 16px; }
.bldg + .bldg { margin-top: 34px; }
.bldg-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.bldg-head h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; }
.bldg-head span { color: var(--muted); font-size: .92rem; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; align-items: start; }
.unit { background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: auto auto; align-self: start; min-width: 0; }
.unit.is-leased { background: transparent; }
.unit .plate { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.unit .num { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid currentColor; white-space: nowrap; }
.chip.avail { color: var(--avail); }
.chip.leased { color: var(--leased); }
.chip.ada { color: var(--accent); }
.unit .body { padding: 16px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.unit .kind { font-weight: 700; font-size: 1.05rem; }
.unit p { margin: 0; color: var(--muted); }
.photo { aspect-ratio: 4 / 3; max-width: 100%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
dl.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
dl.specs dt { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
dl.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.unit .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.plan { background: var(--soft); border: 1px solid var(--line); padding: 10px; margin: 0; }
.plan svg, .plan img { display: block; width: 100%; height: auto; }
.feat { margin: 0 0 12px; padding-left: 1.1em; font-size: .9rem; line-height: 1.45; }
.feat li { margin: 2px 0; }
.plan figcaption { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); margin-top: 6px; }
.empty { padding: 22px; border: 1px dashed var(--line); color: var(--muted); }

.amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 2px solid var(--ink); }
.amen div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.amen h3 { font-size: 1rem; margin-bottom: 4px; }
.amen p { margin: 0; color: var(--muted); font-size: .94rem; }

.neighbor { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: grid; gap: 10px; max-width: 900px; }
.kai-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.kai-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (max-width: 560px) { .kai-photos { grid-template-columns: 1fr 1fr; } }
.neighbor .tag { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brick); }
.neighbor h3 { font-family: var(--f-display); font-size: 2rem; text-transform: uppercase; font-weight: 800; line-height: 1; }
.neighbor p { margin: 0; color: var(--muted); }

.loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.addr { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; text-transform: uppercase; }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.siteplan { background: var(--surface); border: 1px solid var(--line); padding: 14px; margin: 0; }
.siteplan svg { display: block; width: 100%; height: auto; }
.siteplan figcaption { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); margin-top: 6px; }
.loc ul { padding-left: 18px; margin: 14px 0 0; color: var(--muted); }

.sched { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
form.req { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
label { display: grid; gap: 5px; font-size: .85rem; font-weight: 600; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 1rem var(--f-body); padding: 9px 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 2px; width: 100%; min-width: 0; }
textarea { min-height: 84px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-size: .85rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.slot-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); padding: 9px 10px; font-weight: 500; font-size: .9rem; cursor: pointer; }
.slot-opt input { width: auto; }
.slot-opt:has(input:checked) { border-color: var(--accent); outline: 1px solid var(--accent); }
.slot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.err { color: var(--brick); font-size: .85rem; min-height: 1.2em; margin: 0; }
.agent { background: var(--ink); color: var(--paper); padding: 22px; display: grid; gap: 10px; }
.agent .eyebrow { color: var(--paper); opacity: .7; }
.agent h3 { font-family: var(--f-display); font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.agent .contact { font-family: var(--f-mono); font-size: .95rem; user-select: all; overflow-wrap: anywhere; }
.agent p { margin: 0; opacity: .85; font-size: .92rem; }
.result { background: var(--soft); border: 1px solid var(--line); padding: 18px; display: grid; gap: 12px; }
.result pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: .85rem; margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 12px; overflow-x: auto; user-select: all; }
.status-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* unit photos */
.uphoto { display: grid; gap: 6px; margin: 0; }
.uphoto .main { aspect-ratio: 4 / 3; width: 100%; max-width: 100%; height: auto; object-fit: cover; display: block; background: var(--soft); border: 1px solid var(--line); }
.uphoto .thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.uphoto .thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; line-height: 0; }
.uphoto .thumbs button[aria-current="true"] { border-color: var(--accent); }
.uphoto .thumbs img { width: 56px; height: 42px; object-fit: cover; display: block; }
.uphoto figcaption { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }

/* admin */
.admin-grid { display: grid; gap: 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 2px; }
.kpi-n { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-l { font-size: .85rem; color: var(--muted); }
.admin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); overflow-x: auto; }
.admin-tabs button { font: 600 .92rem var(--f-body); padding: 10px 16px; background: transparent; border: 0; color: var(--muted); cursor: pointer; white-space: nowrap; }
.admin-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.admin-status { margin: 0; min-height: 1.3em; font-size: .9rem; color: var(--accent); font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 20px; display: grid; gap: 14px; min-width: 0; }
.panel h3 { font-size: 1.05rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.add-req { border: 1px dashed var(--line); padding: 12px 14px; }
.add-req summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.req-form { display: grid; gap: 12px; }
.req-list { display: grid; gap: 12px; }
.req { border: 1px solid var(--line); border-left: 6px solid var(--line); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.req.st-pending { border-left-color: #c58a1d; }
.req.st-approved { border-left-color: var(--avail); }
.req.st-declined, .req.st-done { border-left-color: var(--leased); opacity: .85; }
.req-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.req-top strong { font-size: 1.05rem; }
.pill { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; }
.pill.pending { color: #b07a12; }
.pill.approved { color: var(--avail); }
.pill.declined, .pill.done { color: var(--leased); }
.req dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.req dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.req dd { margin: 0; overflow-wrap: anywhere; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.req-actions label { font-size: .8rem; }
.req-actions input, .req-actions select { padding: 6px 8px; font-size: .9rem; }
.req pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: .82rem; margin: 0; background: var(--soft); border: 1px solid var(--line); padding: 10px; user-select: all; }
.a-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.a-unit { border: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; min-width: 0; }
.a-unit-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.a-unit-top .num { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { font: 600 .82rem var(--f-body); padding: 7px 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg button.on-avail { background: var(--avail); color: #fff; }
.seg button.on-leased { background: var(--leased); color: #fff; }
.a-unit .row { grid-template-columns: 1fr 1fr; gap: 8px; }
.a-unit input { padding: 6px 8px; font-size: .9rem; }
.slot-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.slot-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 8px 10px; font-variant-numeric: tabular-nums; }
.add-slot { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.save-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* the block: architect's drawing board */
.block-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.block-copy ul { padding-left: 18px; margin: 14px 0 0; color: var(--muted); }
.corner { margin: 10px 0 0; font-family: var(--f-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.corner strong { color: var(--brick); font-weight: 800; }
.ink { width: 100%; max-width: 100%; background: var(--draw); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.sheet { margin: 0; min-width: 0; display: grid; gap: 8px; }
.sheet figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.sheet-no { color: var(--paper); background: var(--brick); padding: 2px 7px; letter-spacing: .06em; }
.sheet-locator { background: var(--surface); border: 1px solid var(--line); padding: 14px; transform: rotate(1.2deg); box-shadow: 0 14px 30px -18px rgba(0,0,0,.45); }
.board { margin-top: 44px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 32px; padding: clamp(18px, 4vw, 40px);
  background-color: var(--sheet);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px), linear-gradient(var(--grid-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 6px; }
.board-title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; border-bottom: 2px solid var(--draw); padding-bottom: 10px; }
.board-name { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: .9; text-transform: uppercase; color: var(--draw); letter-spacing: .02em; }
.board-name i { font-style: normal; color: var(--brick); }
.board-meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: auto; }
.sheet-hero { grid-column: 1 / -1; }
@media (prefers-reduced-motion: no-preference) {
  .board .ink { transition: transform .5s ease; }
  .board .sheet:hover .ink { transform: scale(1.015); }
}
@media (max-width: 760px) { .block-grid, .board { grid-template-columns: 1fr; } .sheet-locator { transform: none; } .board-meta { margin-left: 0; } }

footer { background: var(--surface); border-top: 1px solid var(--line); }
footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; font-size: .88rem; color: var(--muted); }
footer strong { color: var(--ink); }

@media (max-width: 760px) {
  .loc, .sched { grid-template-columns: 1fr; }
  nav.links a:not(.mgr) { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .unit { transition: transform .15s ease, border-color .15s ease; }
  .unit:not(.is-leased):hover { transform: translateY(-2px); border-color: var(--accent); }
}

/* ---- standalone site additions ---- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.amen + .sub-head { margin-top: 40px; }
.sub-head { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 12px; }
.addr { white-space: pre-line; }
.done-box { background: var(--soft); border: 1px solid var(--line); border-left: 6px solid var(--avail); padding: 18px; display: grid; gap: 10px; }
.done-box h3 { font-size: 1.1rem; }
.done-box p { margin: 0; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
footer a { color: var(--muted); }
.notice { background: #fff4d6; color: #5a4300; border-bottom: 1px solid #e8d18f; font-size: .88rem; }
.notice .wrap { padding-block: 8px; }

/* ---- leasing desk ---- */
.desk-body { background: var(--soft); min-height: 100vh; }
.desk-main { padding-block: 28px 80px; }
.signin { max-width: 420px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); padding: 26px; display: grid; gap: 14px; }
.signin h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 2.2rem; line-height: 1; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; justify-self: start; }
.desk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.desk-top .who { font-size: .85rem; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-tabs { margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: .9rem; font-weight: 600; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.toast.bad { background: var(--brick); color: #fff; }
.savebar { position: sticky; bottom: 0; z-index: 4; background: var(--surface); border-top: 2px solid var(--accent); padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; box-shadow: 0 -8px 24px -18px rgba(0,0,0,.5); }
.savebar .msg { font-size: .9rem; font-weight: 600; color: var(--brick); margin-right: auto; }
.ed-list { display: grid; gap: 10px; }
.ed-item { border: 1px solid var(--line); background: var(--paper); padding: 12px; display: grid; gap: 10px; min-width: 0; }
.ed-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-item-head strong { font-size: .95rem; }
.icon-btns { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.icon-btns button { font: 600 .8rem var(--f-body); min-width: 32px; padding: 5px 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; border-radius: 2px; }
.icon-btns button:hover { border-color: var(--accent); color: var(--accent); }
.icon-btns button.del:hover { border-color: var(--brick); color: var(--brick); }
.icon-btns button:disabled { opacity: .35; cursor: default; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-item { border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; padding: 6px; min-width: 0; }
.ph-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--soft); }
.ph-item input { font-size: .8rem; padding: 5px 6px; }
.ph-item .cover { font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.upl { display: inline-flex; align-items: center; gap: 8px; }
.upl input[type=file] { display: none; }
.upl .btn { cursor: pointer; }
.busy { font-size: .85rem; color: var(--muted); }
.unit-rows { display: grid; gap: 10px; }
.unit-row { border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.unit-row .num { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; line-height: 1; min-width: 3ch; }
.unit-row .meta { font-size: .88rem; color: var(--muted); min-width: 0; }
.unit-row .meta strong { color: var(--ink); display: block; font-size: .95rem; }
.unit-row .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 620px) { .unit-row { grid-template-columns: auto minmax(0, 1fr); } .unit-row .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.unit-editor { display: grid; gap: 16px; }
.unit-editor h4 { margin: 6px 0 0; font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.check-row input { width: auto; }
.small-note { font-size: .82rem; color: var(--muted); margin: 0; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.team-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 8px 10px; background: var(--paper); overflow-wrap: anywhere; }
.preview-thumb { width: 100%; max-width: 260px; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); background: var(--soft); display: block; }
.desk-body .admin-tabs { flex-wrap: wrap; overflow: visible; }
