/* Heronry community site styles.
   Colors come from per-community CSS variables set in <head> (see Layout.tsx themeCss). */

:root {
  --ink: #13262d;
  --muted: #4e5f66;
  --line: #eadcc9;
  --line-strong: #e3d5c2;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(7, 34, 43, 0.35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --display: 'Outfit', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sand); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); 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; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.icon { flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--accent:hover { color: #fff; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { color: #fff; background: var(--primary-dark); }
.btn--sand { background: var(--sand); color: var(--primary-dark); }
.btn--glass { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; backdrop-filter: blur(8px); font-weight: 600; }
.btn--glass:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.btn--outline { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost-dark { background: transparent; color: #a8401f; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 820px; background: var(--primary-dark); color: #fff; display: flex; flex-direction: column; }
.hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__top, .hero__body { position: relative; z-index: 2; }
.hero__top { padding-top: 20px; }
.hero__body { flex: 1; padding-top: 72px; padding-bottom: 140px; }
.hero__copy { max-width: 680px; }
.hero__title { font-size: clamp(44px, 7vw, 78px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; margin: 22px 0; }
.hero__title-accent { color: #f7c886; }
.hero__text { font-size: 19px; line-height: 1.6; color: #dce8ea; max-width: 520px; margin-bottom: 34px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill--glass { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #f7d9a8; }

.ticker { display: flex; align-items: center; background: rgba(7, 34, 43, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; overflow: hidden; backdrop-filter: blur(10px); }
.ticker__label { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--accent); font-size: 13px; font-weight: 700; }
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: dot 1.8s ease-out infinite; }
.ticker__track { flex: 1; min-width: 0; overflow: hidden; }
.ticker__items { display: flex; gap: 56px; white-space: nowrap; width: max-content; padding: 10px 0 10px 24px; font-size: 14px; color: #e6eef0; animation: marquee 40s linear infinite; }
.ticker:hover .ticker__items { animation-play-state: paused; }

.glass-nav { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; backdrop-filter: blur(14px); }
.glass-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.glass-nav__links > a:not(.btn) { padding: 12px 14px; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.glass-nav__links > a:not(.btn):hover { color: #f7c886; }
.glass-nav__links .btn { margin-left: 8px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.logo--light { color: #fff; }
.logo--light .logo__mark { background: var(--sand); color: var(--primary); }
.logo__name { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo__sub { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.logo:hover { color: inherit; }

/* ---------- sections ---------- */
.section { padding-top: 60px; padding-bottom: 60px; }
.section--last { padding-bottom: 110px; }
.section__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow--gold { color: #f7c886; }
.h-display { font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 20px; }
.h-display--sm { font-size: clamp(28px, 3vw, 36px); margin-bottom: 0; }
.h-section { font-size: 32px; font-weight: 800; margin-bottom: 22px; }
.lead { font-size: 18px; line-height: 1.7; color: #3b4d54; }

.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 120px; padding-bottom: 60px; }
.about__art { flex: 1 1 440px; position: relative; height: 520px; }
.about__copy { flex: 1 1 420px; min-width: 0; }
.about__photo { position: absolute; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.about__photo svg { width: 100%; height: 100%; }
.about__photo--a { left: 0; top: 0; width: 64%; height: 76%; transform: rotate(-3deg); }
.about__photo--b { right: 0; bottom: 0; width: 58%; height: 62%; transform: rotate(3deg); border: 6px solid var(--sand); }
.float-card { position: absolute; left: 6%; bottom: 8%; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 20px 40px -16px rgba(7, 34, 43, 0.45); }
.float-card strong { display: block; font-size: 15px; }
.float-card small { color: var(--muted); font-size: 13px; }
.float-card__icon { width: 40px; height: 40px; border-radius: 12px; background: #e3f0ea; color: var(--green); display: grid; place-items: center; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
.chips--inline { margin: 0; }
.chip { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.chip--sand { background: var(--sand); border-color: transparent; padding: 9px 14px; }

/* amenities bento */
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: 220px; gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.tile h3 { font-size: 26px; font-weight: 700; }
.tile p { margin: 4px 0 0; font-size: 14px; opacity: 0.85; }
.tile__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile__icon, .tile__text { position: relative; }
.tile--feature { grid-column: span 2; grid-row: span 2; color: #fff; background: var(--primary); padding: 32px; }
.tile--feature h3 { font-size: 40px; font-weight: 800; }
.tile--feature p { font-size: 16px; }
.tile--accent { background: var(--accent); color: #fff; }
.tile--primary { background: var(--primary); color: #fff; }
.tile--gold { background: var(--gold); color: #3a1f05; }
.tile--green { background: var(--green); color: #fff; }
.tile--light { background: #fff; border: 1px solid var(--line); }
.tile--light .tile__icon { color: var(--primary); }
@media (max-width: 560px) { .tile--feature { grid-column: span 1; } }

/* homeowner promo */
.promo { position: relative; overflow: hidden; border-radius: 36px; background: var(--primary-dark); color: #fff; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.promo__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.promo__glow--a { width: 520px; height: 520px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(242, 165, 65, 0.55), rgba(242, 165, 65, 0) 65%); }
.promo__glow--b { width: 480px; height: 480px; left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(28, 122, 140, 0.7), rgba(28, 122, 140, 0) 65%); }
.promo__copy { position: relative; flex: 1 1 420px; }
.promo__copy p { font-size: 18px; line-height: 1.6; color: #cfe0e3; margin-bottom: 28px; }
.promo__grid { position: relative; flex: 1 1 420px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promo__grid li { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; font-weight: 700; }
.promo__grid li:nth-child(1) .icon { color: #7fd3df; }
.promo__grid li:nth-child(2) .icon { color: #f7c886; }
.promo__grid li:nth-child(3) .icon { color: #f2a0a0; }
.promo__grid li:nth-child(4) .icon { color: #a9d9b8; }

/* events + links */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.event { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.event h3 { font-size: 17px; font-family: var(--font); letter-spacing: 0; }
.event p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.event__date { width: 70px; height: 76px; flex: none; border-radius: 18px; background: var(--primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event__date span { font-size: 12px; font-weight: 700; color: #f7c886; text-transform: uppercase; }
.event__date strong { font-family: var(--display); font-size: 30px; line-height: 1; }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.link-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.link-card__icon { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, white); color: var(--primary); display: grid; place-items: center; flex: none; }

/* contact */
.contact { display: flex; flex-wrap: wrap; border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(7, 34, 43, 0.35); }
.contact__info { flex: 1 1 360px; background: var(--primary); color: #fff; padding: 48px; }
.contact__info h2 { font-size: 40px; font-weight: 800; margin-bottom: 14px; }
.contact__info p { color: #cfe0e3; }
.contact__info ul { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 16px; }
.contact__info li { display: flex; gap: 14px; align-items: center; }
.contact__info li .icon { color: #f7c886; }
.contact__info a { color: #fff; }
.contact__form { flex: 1.4 1 460px; padding: 48px; display: flex; flex-direction: column; gap: 16px; }
.social { display: flex; gap: 10px; }
.social a { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; }

/* forms */
.stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-grid--4 { align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 15px; color: var(--ink); background: var(--sand); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 16px; min-height: 50px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.note { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--primary) 8%, white); color: var(--primary); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.flash { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 15px; font-weight: 600; }
.flash--ok { background: #e3f0ea; color: #1f5a3c; }
.flash--error { background: #fde7da; color: #8f3519; }
.flash--info { background: #fdf1d8; color: #6b3e07; }

/* footer */
.footer { background: var(--primary-dark); color: #b6c8cc; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; }
.footer strong { color: #fff; }
.footer__brand { color: #f7c886 !important; }

/* ---------- app (portal + board) ---------- */
.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.app-header__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.app-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.app-nav > a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.app-nav > a.is-active { background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary); }
.app-nav__who { color: var(--muted); padding: 0 6px; }
.app-nav form { margin: 0; }
.portal { padding-top: 32px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.page-title { font-size: 32px; font-weight: 800; }
.portal-hero { position: relative; overflow: hidden; height: 240px; border-radius: 28px; background: var(--primary-dark); color: #fff; box-shadow: var(--shadow); }
.portal-hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal-hero__copy { position: relative; padding: 48px 44px; }
.portal-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 8px; }
.portal-hero p { color: #dce8ea; font-size: 17px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quick { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink); }
.quick strong { display: block; font-size: 17px; }
.quick small { color: var(--muted); font-size: 14px; }
.quick[aria-disabled='true'] { opacity: 0.6; pointer-events: none; }
.quick__icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; }
.quick__icon--blue { background: #e1eef5; color: #1f5f86; }
.quick__icon--purple { background: #eee6f6; color: #5b2c83; }
.quick__icon--green { background: #e3f0ea; color: var(--green); }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split__main { flex: 3 1 540px; min-width: 0; }
.split__side { flex: 2 1 340px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.panel h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.ticket-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticket { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ticket__row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ticket small { color: var(--muted); font-size: 13px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge--ok { background: #e3f0ea; color: #1f5a3c; }
.badge--warn { background: #fdf1d8; color: #6b3e07; }
.badge--neutral { background: #ebeeef; color: #3a4a52; }

.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.seat { border-radius: 26px; background: var(--sand); padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seat h3 { font-size: 20px; font-weight: 700; }
.seat--open { background: #fff; border: 2px dashed #e3c9a8; }
.seat--open a { font-size: 14px; font-weight: 700; color: #a8401f; }
.seat__avatar { width: 104px; height: 104px; border-radius: 50%; padding: 4px; margin-bottom: 8px; }
.seat__avatar span { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--sand); display: grid; place-items: center; font-family: var(--display); font-size: 32px; font-weight: 700; color: #fff; }
.seat__avatar--0 { background: conic-gradient(var(--accent), var(--gold), var(--primary), var(--accent)); }
.seat__avatar--0 span { background: var(--primary); }
.seat__avatar--1 { background: conic-gradient(var(--primary), var(--green), var(--gold), var(--primary)); }
.seat__avatar--1 span { background: var(--green); }
.seat__avatar--2 { background: conic-gradient(var(--gold), var(--accent), var(--green), var(--gold)); }
.seat__avatar--2 span { background: #a8401f; }
.seat__avatar--3 { background: conic-gradient(var(--green), var(--primary), var(--accent), var(--green)); }
.seat__avatar--3 span { background: var(--primary-dark); }
.seat__avatar--open { background: #fdf0e4; color: var(--accent); display: grid; place-items: center; }
.seat__title { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.seat__title--0 { background: var(--accent); }
.seat__title--1 { background: var(--primary); }
.seat__title--2, .seat__title--gold { background: var(--gold); color: #3a1f05; }
.seat__title--3 { background: var(--green); }
.directors { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.directors > span:first-child { font-weight: 700; color: var(--muted); font-size: 14px; margin-right: 6px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid #f3eadf; color: var(--muted); vertical-align: middle; }
.table__title { font-weight: 600; color: var(--ink) !important; }
.table__action { text-align: right; white-space: nowrap; }
.table__action a { font-weight: 700; }
.inline { display: inline; margin: 0 0 0 6px; }
.inline-upload { display: flex; gap: 8px; align-items: center; }
.inline-upload input { font-size: 13px; max-width: 220px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 16px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.is-active { color: var(--primary); border-bottom-color: var(--accent); }

/* card pages (login etc.) */
.page-card { background: var(--primary-dark); background-image: radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 40%), radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--primary) 80%, transparent), transparent 45%); min-height: 100vh; }
.card-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; gap: 24px; }
.card-page__brand .logo { color: #fff; }
.card-page__brand .logo__mark { background: var(--sand); color: var(--primary); }
.card-page__card { width: 100%; max-width: 460px; background: #fff; border-radius: 28px; padding: 36px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; gap: 14px; }
.card-page__card h1 { font-size: 30px; font-weight: 800; }
.card-page__alt { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* ---------- motion ---------- */
.lift { transition: transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(7, 34, 43, 0.35); }
.float { animation: float 6s ease-in-out infinite; }
.hl-glow { animation: pulse 5s ease-in-out infinite; }
.hl-heron { animation: drift 14s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(24px, -10px); } 100% { transform: translate(0, 0); } }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(242, 165, 65, .7); } 100% { box-shadow: 0 0 0 10px rgba(242, 165, 65, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 720px) {
  .hero { min-height: 680px; }
  .about__art { height: 380px; }
  .contact__info, .contact__form { padding: 28px; }
  .panel { padding: 20px; }
  .portal-hero__copy { padding: 32px 24px; }
}

/* ---------- site settings ---------- */
.stack--lg { gap: 24px; }
.tabs { flex-wrap: wrap; }
.field__hint { font-weight: 500; color: var(--muted); font-size: 12px; }
.row-form { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.row-form .field { margin: 0; }
.field--sm { flex: 0 1 120px; }
.field--md { flex: 1 1 200px; }
.field--lg { flex: 2 1 320px; }
.row-form .field textarea { min-height: 50px; }
.field--check { flex-direction: row; align-items: center; gap: 10px; min-height: 50px; font-weight: 600; }
.field--check input { width: 20px; height: 20px; accent-color: var(--accent); }
.row-form__actions { display: flex; align-items: flex-end; min-height: 50px; }
.row-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.row-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.row-item > .row-form { flex: 1 1 600px; }
.row-item__delete { margin: 0; display: flex; align-items: flex-end; min-height: 50px; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.field--color input[type='color'] { padding: 4px; height: 50px; width: 100%; cursor: pointer; }
.theme-preview { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); max-width: 520px; }
.theme-preview__hero { background: var(--primary-dark); color: #fff; padding: 22px; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 20px; }
.theme-preview__hero span { font-family: var(--font); font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.theme-preview__body { background: var(--sand); padding: 22px; display: flex; gap: 12px; align-items: center; }
.theme-preview__btn { background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.theme-preview__chip { background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.sticky-save { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 16px 0; background: linear-gradient(to top, var(--sand) 70%, transparent); }

/* ---------- account & security ---------- */
.portal--narrow { max-width: 860px; }
.panel--highlight { border: 2px solid var(--gold); background: #fffaf0; }
.recovery-codes { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.recovery-codes code, .secret-key code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; letter-spacing: .06em; }
.recovery-codes li { background: #fff; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; text-align: center; }
.security-head { display: flex; gap: 14px; align-items: flex-start; }
.security-head h2 { display: flex; align-items: center; gap: 10px; }
.security-head p { margin: 4px 0 0; }
.security-head__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #ebeeef; color: var(--muted); }
.security-head__icon.is-on { background: #e3f0ea; color: var(--green); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 18px; }
.steps li { padding-left: 4px; }
.steps li > strong { display: block; margin-bottom: 4px; }
.setup-steps { display: flex; flex-direction: column; gap: 14px; }
.secret-key { margin: 10px 0 4px; padding: 12px 14px; background: var(--sand); border-radius: 12px; display: inline-block; word-break: break-all; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 22px !important; letter-spacing: .3em; }

/* ---------- photos in media slots ---------- */
.slot-photo, .slot-overlay, .slot-color { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot-photo { object-fit: cover; }
.hero > .slot-photo, .hero > .slot-overlay, .hero > .slot-color,
.portal-hero > .slot-photo, .portal-hero > .slot-overlay, .portal-hero > .slot-color { z-index: 0; }
.about__photo .slot-photo { position: static; display: block; }
.tile--photo { color: #fff !important; background: var(--primary-dark) !important; border: 0 !important; }
.tile--photo .slot-overlay { background: linear-gradient(to top, rgba(7, 34, 43, .85), rgba(7, 34, 43, .15) 70%) !important; }
.tile--photo .tile__icon { color: #fff !important; }

/* Photos page */
.slot-card__grid { display: flex; flex-wrap: wrap; gap: 28px; }
.slot-card__preview { flex: 1 1 360px; min-width: 0; }
.slot-card__fields { flex: 1.2 1 380px; min-width: 0; }
.slot-card__fields h2 { margin-bottom: 4px; }
.slot-card__fields p { margin: 0; }
.slot-card__tip { font-size: 13px; margin-top: 8px; }
.slot-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--primary-dark); cursor: crosshair; }
.slot-preview__current { position: absolute; inset: 0; }
.slot-preview__current .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot-preview__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #cfe0e3; font-size: 14px; font-weight: 600; background: repeating-linear-gradient(45deg, #14495a, #14495a 12px, #0f3f4d 12px, #0f3f4d 24px); }
.slot-preview__new { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-preview__overlay { position: absolute; inset: 0; background: rgb(7, 34, 43); pointer-events: none; }
.slot-preview__sample { position: absolute; left: 18px; bottom: 16px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 24px; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.slot-preview__dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); pointer-events: none; }
.kind-picker { border: 0; padding: 4px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; background: #f3eadf; border-radius: 12px; }
.kind-picker__opt { flex: 1 1 auto; }
.kind-picker__opt input { position: absolute; opacity: 0; pointer-events: none; }
.kind-picker__opt span { display: block; text-align: center; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.kind-picker__opt input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.kind-picker__opt input:focus-visible + span { outline: 3px solid var(--gold); }
.scene-opts { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.scene-opts legend { font-size: 14px; font-weight: 700; padding: 0 6px; }
[hidden] { display: none !important; }

/* ---------- version / build line ---------- */
.build-line { text-align: center; font-size: 12px; color: var(--muted); padding: 14px 16px 18px; }
.build-line--dark { color: #8ea6ac; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.page-card .build-line { color: rgba(255, 255, 255, 0.6); }

/* ---------- branding: logo + favicon ---------- */
.logo__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo__mark--img { background: #fff !important; padding: 5px; overflow: hidden; }
.logo__mark--plain { width: auto !important; max-width: 220px; height: 46px; background: transparent !important; border-radius: 0; padding: 0; }
.logo__mark--plain .logo__img { width: auto; max-width: 220px; height: 46px; }
.h-section--sm { font-size: 22px; margin: 12px 0 0; }
.brand-preview { display: grid; grid-template-columns: 1fr; gap: 10px; }
.brand-preview__bg { border-radius: 14px; padding: 18px 20px; min-height: 84px; display: flex; align-items: center; }
.brand-preview__bg--dark { background: var(--primary-dark); }
.brand-preview__bg--dark .logo { color: #fff; }
.brand-preview__bg--dark .logo__mark:not(.logo__mark--img):not(.logo__mark--plain) { background: var(--sand); color: var(--primary); }
.brand-preview__bg--light { background: #fff; border: 1px solid var(--line); }
.tab-preview { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .92); border-radius: 10px 10px 0 0; padding: 10px 16px; min-width: 240px; box-shadow: 0 1px 0 var(--line); }
.brand-preview__bg--light .tab-preview { background: #eef1f2; }
.tab-preview__icon { width: 20px; height: 20px; display: grid; place-items: center; }
.tab-preview__icon img { width: 20px; height: 20px; object-fit: contain; }
.tab-preview__title { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- field alignment ----------
   Each field in a form grid uses the grid's own rows (label / box / help), so every box in a row lines up
   even when one label wraps onto two lines. */
.form-grid { align-items: start; }
.form-grid > .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
.form-grid > .field > span { align-self: end; }
.form-grid > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; }
.form-grid > div > * { grid-row: 2; justify-self: start; }
.field__help { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.4; }
/* List editors: one-line labels, boxes on one line, notes underneath; checkboxes and buttons level with the boxes. */
.row-form { align-items: flex-start; }
.row-form > .field > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-form > .field--check, .row-form > .row-form__actions { margin-top: 27px; min-height: 50px; align-self: flex-start; }
.row-item { align-items: flex-start; }
.row-item__delete { margin-top: 27px; align-self: flex-start; }
.field input:not([type='checkbox']):not([type='radio']), .field select, .field textarea { width: 100%; min-width: 0; }

/* ---------- community calendar ---------- */
.quick__icon--gold { background: #fdf1d8; color: #9a5b05; }
.cal-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cal-side { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.cal-main { flex: 999 1 640px; min-width: 0; }
.cal-side__art { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, var(--gold), var(--accent) 55%, var(--primary-dark)); box-shadow: var(--shadow); }
.cal-side__title { font-size: 22px; font-weight: 700; padding-bottom: 10px; border-bottom: 3px solid var(--accent); width: 100%; }
.cal-side__empty { font-size: 14px; margin: 0; }
.cal-week { list-style: none; padding: 0; margin: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.cal-week__item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cat, var(--primary)); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.cal-week__item strong { color: var(--ink); font-size: 14px; }
.cal-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; font-size: 12.5px; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: 6px; }
.cal-legend__dot { width: 12px; height: 12px; border-radius: 3px; padding: 0 !important; }
.cal-title { padding-bottom: 12px; border-bottom: 3px solid var(--accent); display: inline-block; margin-bottom: 18px; }
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-size: 26px; font-weight: 700; }
.cal-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-nav .btn { min-width: 40px; font-size: 15px; }
.cal-pick { margin: 0; display: flex; gap: 6px; }
.cal-pick select { font: inherit; font-size: 14px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }

/* category colors (left bar + soft fill) */
.cal-chip--general, .cal-week__item--general, .cal-event--general, .cal-tag--general { --cat: #3a7c8c; --cat-bg: #e3eef0; }
.cal-chip--meeting, .cal-week__item--meeting, .cal-event--meeting, .cal-tag--meeting { --cat: #8e24aa; --cat-bg: #f1e2f6; }
.cal-chip--maintenance, .cal-week__item--maintenance, .cal-event--maintenance, .cal-tag--maintenance { --cat: #b26a00; --cat-bg: #fdf0d9; }
.cal-chip--social, .cal-week__item--social, .cal-event--social, .cal-tag--social { --cat: #2e7d4f; --cat-bg: #e1f2e7; }
.cal-chip--notice, .cal-week__item--notice, .cal-event--notice, .cal-tag--notice { --cat: #c4532f; --cat-bg: #fbe5dc; }
.cal-legend__dot { background: var(--cat); }

.cal-grid { border: 1px solid #dfe3e6; border-radius: 14px; overflow: hidden; background: #fff; }
.cal-grid__head, .cal-grid__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-grid__dow { background: #dde2e5; color: #36454c; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 10px 4px; border-right: 1px solid #cfd6da; }
.cal-grid__dow:last-child { border-right: 0; }
.cal-grid__dow abbr { text-decoration: none; display: none; }
.cal-day { min-height: 116px; border-top: 1px solid #e3e7ea; border-right: 1px solid #e3e7ea; display: flex; flex-direction: column; min-width: 0; }
.cal-day:last-child { border-right: 0; }
.cal-day__num { background: #eef2f4; font-size: 12px; font-weight: 700; color: #36454c; padding: 6px 8px; }
.cal-day__items { padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.cal-day--out { background: #f4f6f7; }
.cal-day--out .cal-day__num { color: #a0aab0; background: #f4f6f7; }
.cal-day--out .cal-chip { opacity: .55; }
.cal-day--today .cal-day__num { background: #6b767c; color: #fff; }
.cal-day--today { box-shadow: inset 0 0 0 2px #6b767c; }
.cal-chip { display: block; text-decoration: none; color: var(--ink); background: var(--cat-bg); border-left: 3px solid var(--cat); border-radius: 4px; padding: 4px 6px; font-size: 11.5px; line-height: 1.35; overflow: hidden; }
.cal-chip:hover { color: var(--ink); filter: brightness(.97); }
.cal-chip__time { display: block; font-weight: 700; font-size: 10.5px; color: #3b2a42; }
.cal-chip__end { font-weight: 500; color: var(--muted); }
.cal-chip__title { display: block; font-weight: 700; }

.cal-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.cal-event { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--cat); border-radius: 14px; padding: 16px; scroll-margin-top: 20px; }
.cal-event:target { box-shadow: 0 0 0 3px var(--gold); }
.cal-event__date { width: 60px; flex: none; text-align: center; display: flex; flex-direction: column; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.cal-event__date strong { font-family: var(--display); font-size: 28px; color: var(--ink); line-height: 1.1; }
.cal-event__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cal-event__body h3 { font-size: 18px; font-family: var(--font); letter-spacing: 0; }
.cal-event__meta { margin: 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cal-event__desc { margin: 0; font-size: 14px; white-space: pre-line; }
.cal-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--cat-bg); color: var(--cat); }
.cal-tag--repeat { --cat: #4e5f66; --cat-bg: #ebeeef; }

@media (max-width: 760px) {
  .cal-side { max-width: none; order: 2; }
  .cal-main { order: 1; }
  .cal-grid__dow span { display: none; }
  .cal-grid__dow abbr { display: inline; }
  .cal-day { min-height: 64px; }
  .cal-chip { padding: 0; height: 6px; border-left: 0; background: var(--cat); }
  .cal-chip__time, .cal-chip__title { display: none; }
}
@media (min-width: 761px) { .cal-grid__dow span { display: inline; } }
.cal-side__art--photo { background: none; overflow: hidden; }
.cal-side__art--photo .slot-photo { width: 100%; height: 100%; object-fit: cover; }
.cal-intro { margin: -6px 0 16px; color: var(--muted); }
.color-input { padding: 4px !important; height: 50px; cursor: pointer; }

/* ---------- board navigation (grouped) ---------- */
.board-nav { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.board-nav__group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.board-nav__label { width: 92px; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.board-nav a { padding: 7px 12px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.board-nav a:hover { background: #f3eadf; color: var(--ink); }
.board-nav a.is-active { background: var(--primary); color: #fff; }
@media (max-width: 640px) { .board-nav__label { width: 100%; } }

/* ---------- image fields in editors ---------- */
.field--image { flex: 1 1 100%; }
.image-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.image-field__thumb { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.image-field__none { width: 64px; height: 64px; border-radius: 12px; border: 2px dashed var(--line-strong); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.image-field__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.image-field__remove { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.link-card__logo { width: 38px; height: 38px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.link-card__logo img { max-width: 30px; max-height: 30px; object-fit: contain; }
.seat__photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--sand); display: block; }
.director { display: inline-flex; align-items: center; gap: 8px; }
.director__photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* ---------- documents (board) ---------- */
.doc-row { flex-direction: column; align-items: stretch !important; }
.doc-row__meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 13px; }
.doc-row__meta form { margin: 0; }

/* ---------- requests ---------- */
.ticket__delete { margin: 6px 0 0; }
.ticket__delete .btn { padding: 0 10px; min-height: 30px; }

/* ---------- calendar: per-date changes, drag & drop ---------- */
.cal-board-hint { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin: 0 0 10px; }
.cal-chip[draggable='true'] { cursor: grab; }
.cal-chip.is-dragging { opacity: .4; }
.cal-chip--cancelled { opacity: .7; }
.cal-chip--cancelled .cal-chip__title { text-decoration: line-through; }
.cal-chip--moved { box-shadow: inset 0 0 0 1px var(--cat); }
.cal-day.is-drop { background: #fff7e6; box-shadow: inset 0 0 0 2px var(--gold); }
.cal-day.is-saving { opacity: .5; }
.cal-status { margin-left: 8px; vertical-align: middle; font-family: var(--font); }
.cal-event--cancelled h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.cal-event__note { margin: 0; font-size: 14px; font-style: italic; color: var(--muted); }
.cal-edit { margin-top: 6px; width: 100%; }
.cal-edit summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--primary); }
.cal-edit form { margin-top: 12px; padding: 14px; background: var(--sand); border-radius: 12px; }
.cal-edit__actions { grid-column: 1 / -1; }

/* ---------- bulletin board ---------- */
.chip--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.bb-grid { columns: 3 300px; column-gap: 18px; }
.bb-post { break-inside: avoid; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: inline-block; width: 100%; }
.bb-post__photo { display: block; background: #f4efe8; }
.bb-post__photo img { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; margin: 0 auto; }
.bb-post__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.bb-post__body h3 { font-size: 18px; font-family: var(--font); letter-spacing: 0; }
.bb-post__cat { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.bb-post__text { margin: 0; white-space: pre-line; font-size: 15px; }
.bb-post__meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.bb-post__contact { font-size: 12.5px; }
.bb-review { align-items: flex-start !important; gap: 16px !important; }
.bb-review__photo { width: 120px; height: 90px; object-fit: contain; background: #f4efe8; border-radius: 10px; }
.bb-review__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.bb-review__text h3 { font-size: 17px; font-family: var(--font); letter-spacing: 0; }
.bb-review__actions { display: flex; flex-direction: column; gap: 8px; }
.bb-reject { display: flex; gap: 6px; }
.bb-reject input { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; min-width: 200px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); }
.news-card:hover { color: var(--ink); }
.news-card__cover { position: relative; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--primary) 12%, white); display: grid; place-items: center; color: var(--primary); }
.news-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card__badge { position: absolute; top: 10px; left: 10px; background: var(--primary-dark); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.news-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card__body time { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.news-card__body h3 { font-size: 20px; }
.news-card__body p { margin: 0; color: var(--muted); font-size: 15px; }
.news-card__more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--primary); font-size: 14px; }
.back-link { font-weight: 700; text-decoration: none; font-size: 14px; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 48px); }
.article__head { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 24px; }
.article__head time { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.article__head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.article__lead { font-size: 19px; color: #3b4d54; margin: 0; }
.article__by { margin: 0; font-size: 14px; }
.article__cover { width: 100%; border-radius: 16px; margin-bottom: 24px; }
.prose { font-size: 17px; line-height: 1.7; color: #26353b; overflow-wrap: anywhere; }
.prose h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 21px; margin: 1.2em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose blockquote { margin: 1em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--gold); color: var(--muted); font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: .5em 0; display: block; }
.prose a { font-weight: 600; }
.editor { border: 1.5px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #fff; }
.editor__toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #f7f1e8; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.editor__btn { font: inherit; font-size: 13px; font-weight: 700; min-width: 38px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); }
.editor__btn:hover { background: var(--sand); }
.editor__area { min-height: 320px; padding: 18px 20px; outline: none; }
.editor__area:focus { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.cover-current { display: flex; align-items: center; gap: 16px; }
.cover-current img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.danger-zone { margin-top: 12px; }
.editor, .editor__area { font-weight: 400; }
.field--check { font-size: 15px; }

/* ---------- messages ---------- */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f1dcb0; color: #5c3b07; font-size: 14px; }
.disclaimer .icon { margin-top: 2px; }
.msg-privacy { font-size: 13px; }
.conv-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.conv { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.conv:hover { color: var(--ink); border-color: var(--line-strong); }
.conv--unread { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.conv__avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.conv__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv__text span { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.thread-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.thread-head p { margin: 4px 0 0; }
.thread-menu { position: relative; }
.thread-menu summary { list-style: none; }
.thread-menu summary::-webkit-details-marker { display: none; }
.thread-menu__panel { position: absolute; right: 0; top: 46px; z-index: 5; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.thread { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 12px; }
.bubble { align-self: flex-start; max-width: 78%; display: flex; flex-direction: column; gap: 4px; }
.bubble--mine { align-self: flex-end; align-items: flex-end; }
.bubble__body { background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 14px; }
.bubble--mine .bubble__body { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 18px 18px 4px 18px; }
.bubble__body p { margin: 0; white-space: pre-line; }
.bubble__photo { max-width: 260px; max-height: 260px; border-radius: 12px; margin-top: 6px; }
.bubble__note { font-size: 12.5px; opacity: .8; display: flex; gap: 6px; align-items: center; margin-top: 4px !important; }
.bubble__meta { font-size: 12px; color: var(--muted); }
.thread-closed { padding: 14px; background: #f3eadf; border-radius: 12px; }
.composer { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.composer textarea { font: inherit; font-size: 15px; border: 0; resize: vertical; min-height: 80px; outline: none; }
.composer__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.composer__photo { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--primary); cursor: pointer; }
.composer__photo input { font-size: 12px; max-width: 200px; }
.photo-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.photo-review__item { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-review__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.photo-review__item figcaption { font-size: 12.5px; color: var(--muted); }
.h-sub { font-size: 16px; font-family: var(--font); letter-spacing: 0; }

/* ---------- policies / footer links ---------- */
.build-line__links { display: flex; gap: 16px; justify-content: center; margin-bottom: 6px; }
.build-line__links a { color: inherit; }

/* ---------- documents table ---------- */
.doc-toolbar { align-items: center; }
.doc-toolbar__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-toolbar__filters input, .doc-toolbar__filters select { font: inherit; font-size: 14px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.doc-toolbar__filters input { min-width: 220px; }
.doc-table td { vertical-align: middle; }
.doc-edit > td { padding: 0 0 12px !important; background: #fbf7f1; }
.doc-edit__panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.doc-edit__files { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.doc-edit__files form { margin: 0; }

/* Two fields per row (Board tools → Email); a break element ends the first row early. */
.form-grid--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--pairs > .form-grid__break { grid-column: 2; grid-row: span 3; }
@media (max-width: 640px) { .form-grid--pairs { grid-template-columns: 1fr; } .form-grid--pairs > .form-grid__break { display: none; } }
.build-detail { margin-top: 24px; font-size: 0.85rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--accent); }

/* Two-factor setup: choose a method, QR code */
.mfa-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mfa-choice { border: 1px solid var(--line, #e7dccb); border-radius: 16px; padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.mfa-choice h3 { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mfa-choice p { margin: 0; }
.qr-setup { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.qr-setup__code { background: #fff; border: 1px solid var(--line, #e7dccb); border-radius: 12px; padding: 8px; line-height: 0; }
.qr-setup__code svg { width: 200px; height: 200px; display: block; }
.qr-setup__alt { flex: 1 1 260px; display: grid; gap: 8px; }
.qr-setup__alt p { margin: 0; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Homepage "Get in touch": form for residents, social pages for everyone else */
.contact__from { margin: 0; color: var(--muted, #5b6770); font-size: 0.95rem; }
.contact__social { justify-content: center; }
.contact__social h3 { margin: 0; font-size: 28px; font-weight: 800; }
.contact__social > p { margin: 0; }
.social-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.social-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 14px; align-items: center;
  padding: 18px; border-radius: 22px; color: #fff; text-decoration: none; min-height: 132px;
  box-shadow: 0 18px 36px -22px rgba(7, 34, 43, 0.55); transition: transform .18s ease, box-shadow .18s ease; }
.social-card:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -22px rgba(7, 34, 43, 0.65); }
.social-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.social-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.social-card__text { display: grid; gap: 2px; min-width: 0; }
.social-card__text strong { font-size: 18px; }
.social-card__text span { opacity: .85; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card__cta { grid-column: 1 / -1; justify-self: start; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.2); }
.social-card--instagram { background: linear-gradient(135deg, #f9a03f 0%, #e1306c 45%, #833ab4 100%); }
.social-card--facebook { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.social-card--nextdoor { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }
.social-card--youtube { background: linear-gradient(135deg, #f43f5e 0%, #b91c1c 100%); }
.contact__resident { margin: 6px 0 0; color: var(--muted, #5b6770); }
.contact__resident a { color: var(--primary); font-weight: 700; }
.contact__resident--solo { font-size: 1.15rem; }

/* ---------- Board inbox ---------- */
.badge--accent { background: var(--accent); color: #fff; }
.inbox-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.inbox-tabs a { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.inbox-tabs a:hover { background: var(--sand); color: var(--ink, inherit); }
.inbox-tabs a.is-active { background: var(--primary); color: #fff; }
.inbox-tabs__n { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(0,0,0,.08); }
.inbox-tabs a.is-active .inbox-tabs__n { background: rgba(255,255,255,.22); }
.inbox-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inbox-filters input[type=search] { flex: 1 1 260px; }
.inbox-filters select { flex: 0 1 240px; }
.inbox-empty { padding: 28px 0; text-align: center; }
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-list li + li { border-top: 1px solid var(--line); }
.inbox-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: start; padding: 16px 8px; color: inherit; text-decoration: none; border-radius: 12px; }
.inbox-item:hover { background: #fbf7f1; }
.inbox-item__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.inbox-item.is-new .inbox-item__dot { background: var(--accent); }
.inbox-item.is-new strong { font-weight: 800; }
.inbox-item__main { display: grid; gap: 4px; min-width: 0; }
.inbox-item__top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inbox-item__meta { color: var(--muted); font-size: 14px; }
.inbox-item__preview { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item__side { display: grid; gap: 4px; text-align: right; font-size: 13px; white-space: nowrap; }
@media (max-width: 640px) { .inbox-item { grid-template-columns: 12px 1fr; } .inbox-item__side { grid-column: 2; text-align: left; } }

.crumbs { margin: 0 0 6px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.ticket-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.ticket-head .page-title { margin: 0; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .ticket-layout { grid-template-columns: 1fr; } }
.ithread { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ithread__msg { border-radius: 16px; padding: 14px 16px; background: #f6f1ea; border: 1px solid var(--line); }
.ithread__msg--out { background: #e8f2f3; border-color: #cfe3e6; margin-left: 40px; }
.ithread__msg--note { background: #fff7e0; border-color: #f1dfa6; border-style: dashed; }
.ithread__who { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; margin-bottom: 6px; }
.ithread__body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; }
.seg label:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.seg label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.seg input { accent-color: var(--accent); }
.reply-row { display: flex; gap: 12px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.field--inline { display: grid; gap: 6px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.portal--narrow { max-width: 820px; }
.ticket__link { color: inherit; text-decoration: none; }
.ticket__link:hover strong { text-decoration: underline; }
.ticket__badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.inbox-filters input, .inbox-filters select { font: inherit; font-size: 14px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }

/* ---------- Users (admin) ---------- */
.users-table td { vertical-align: middle; }
.users-table__email { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.users-table__badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.users-table__flag td { background: #fff4ec; }
.users-note { font-size: 13px; margin: 0; }
.user-edit { display: grid; gap: 18px; }
.user-edit__request { background: #fff4ec; border: 1px solid #f3cdb6; border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.user-edit__request p { margin: 0; color: var(--muted); }
.user-edit__danger { border-top: 1px solid var(--line); padding-top: 14px; }
.role-pick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.role-pick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.role-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.role-pick label:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.role-pick input { margin-top: 4px; accent-color: var(--primary); }
.role-pick span { display: grid; gap: 2px; }
.role-pick small { color: var(--muted); font-size: 13px; }
.bb-review__photo--none { display: grid; place-items: center; background: var(--sand); color: var(--muted); font-size: 13px; }
.mod-kind { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.mod-kind--private { color: var(--primary); }
.perm-pick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.perm-pick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.perm-pick legend small { font-weight: 400; color: var(--muted); }
.perm-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.perm-pick label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, #fff); }
.perm-pick input { margin-top: 4px; accent-color: var(--primary); }
.perm-pick span { display: grid; gap: 2px; }
.perm-pick small { color: var(--muted); font-size: 13px; }
.user-edit form:has(input[name=role][value=resident]:checked) .perm-pick { opacity: .45; pointer-events: none; }

.mod-edited { margin-left: 8px; text-transform: none; letter-spacing: 0; }
.edit-photo { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.edit-photo img { width: 180px; max-height: 180px; object-fit: contain; background: #f4efe8; border-radius: 12px; border: 1px solid var(--line); }
.edit-photo__choices { display: grid; gap: 10px; align-content: start; flex: 1 1 260px; }
.edit-photo__choices .field--check { display: flex; align-items: center; gap: 10px; }
.edit-photo__choices .field--check span { font-weight: 600; font-size: 15px; }
.user-edit form:has(input[name=role][value=staff]:checked) .perm-pick { opacity: .45; pointer-events: none; }

/* ---------- Tasks: board ---------- */
.task-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.task-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.task-log li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--line); }
.task-log__note { color: var(--muted); font-style: italic; }
.task-photo img, .task-photo__img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; background: #f4efe8; }
.btn--block { display: flex; justify-content: center; width: 100%; }
.add-staff { padding: 18px 22px; }
.add-staff summary { cursor: pointer; list-style: none; }
.add-staff summary::-webkit-details-marker { display: none; }
.add-staff summary::before { content: '+ '; font-weight: 800; color: var(--accent); }
.add-staff[open] summary::before { content: '– '; }
.add-staff__form { margin-top: 16px; align-items: end; }

/* ---------- Tasks: staff, phone first ---------- */
.mtasks { max-width: 560px; padding-top: 18px; padding-bottom: 48px; display: grid; gap: 22px; }
.mtasks .page-title { margin: 0; }
.mtasks__h { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.mtask { display: grid; gap: 6px; padding: 18px 18px 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  border-left: 6px solid var(--primary); color: inherit; text-decoration: none; box-shadow: 0 10px 24px -20px rgba(7, 34, 43, .5); }
.mtask:active { transform: scale(.99); }
.mtask--urgent { border-left-color: var(--accent); }
.mtask--going { border-left-color: var(--gold, #d9a441); }
.mtask__top { display: flex; gap: 6px; flex-wrap: wrap; }
.mtask__top:empty { display: none; }
.mtask__title { font-size: 20px; line-height: 1.25; }
.mtask__when { font-size: 16px; font-weight: 600; color: var(--primary); }
.mtask__where { font-size: 15px; color: var(--muted); }
.mtasks__done { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.mtasks__tip { font-size: 13px; }
.mtask-detail { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.mtask-detail__title { font-size: 26px; line-height: 1.2; margin: 0; }
.mtask-detail__facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 17px; }
.mtask-detail__facts dt { color: var(--muted); }
.mtask-detail__facts dd { margin: 0; font-weight: 600; }
.mtask-detail__details { white-space: pre-wrap; font-size: 17px; line-height: 1.5; margin: 0; }
.btn--xl { width: 100%; min-height: 58px; font-size: 19px; border-radius: 16px; justify-content: center; }
.mtask-step summary { list-style: none; cursor: pointer; }
.mtask-step summary::-webkit-details-marker { display: none; }
.mtask-step[open] summary { margin-bottom: 14px; }
.mtask-step form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.app--staff .app-nav__who { display: none; }
@media (max-width: 640px) {
  .app--staff .app-header__row { gap: 10px; }
  .app--staff .wrap { padding-left: 16px; padding-right: 16px; }
}

/* Request attachments */
.ifiles { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ifile { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: inherit; text-decoration: none; max-width: 100%; }
.ifile:hover { border-color: var(--primary); }
.ifile__icon { font-size: 11px; font-weight: 800; color: #fff; background: #c0392b; border-radius: 6px; padding: 3px 6px; letter-spacing: .04em; }
.ifile__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ifile__size { color: var(--muted); font-size: 13px; }
.shrink-panel { border: 2px solid var(--gold, #f2a541); } .shrink-panel h2 { margin: 0; } .shrink-panel p { margin: 0; }

/* Photos attached to requests: thumbnails that open full size. */
.iphotos { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.iphotos a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line, #e5e2da); background: #f4f2ec; }
.iphotos img { display: block; width: 112px; height: 112px; object-fit: cover; }
.photo-picks { display: flex; flex-wrap: wrap; gap: .4rem; }
.photo-picks:empty { display: none; }
.photo-picks img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
@media (max-width: 560px) { .iphotos img { width: calc((100vw - 5rem) / 3); height: calc((100vw - 5rem) / 3); } }

/* Documents list: the meta line is for phones (the columns carry it on wider screens). */
.table__meta { display: none; }
.table--docs .table__title a { color: inherit; text-decoration: none; }
.table--docs .table__title a:hover { text-decoration: underline; }
.chips button.chip { cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }

/* Phones: every table becomes a stack of cards, so nothing needs sideways scrolling. */
@media (max-width: 680px) {
  .table-wrap { overflow-x: visible; }
  .table { min-width: 0; font-size: 15px; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr[hidden] { display: none; }
  .table tbody tr:last-child { border-bottom: 0; }
  .table tbody tr { padding: 14px 0; border-bottom: 1px solid #f3eadf; }
  .table td { border: 0; padding: 3px 0; overflow-wrap: anywhere; }
  .table td[data-label]:not(.table__title):not(.table__action)::before {
    content: attr(data-label) ': '; font-weight: 600; color: var(--ink);
  }
  .table td:empty { display: none; }
  .table__title { font-size: 16px; }
  .table__action { text-align: left; white-space: normal; padding-top: 10px !important; }
  .table__action .inline { margin: 0 6px 0 0; }
  .table tr.doc-edit { padding: 0; }
  .table tr.doc-edit > td { padding: 0 0 14px; }
  /* Documents: title + one meta line + a clear Download button. */
  .table--docs td:not(.table__title):not(.table__action) { display: none; }
  .table--docs .table__meta { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
  .table--docs .table__action a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
  .users-table__email { display: block; }
}
