/* App-specific layout matching the "ARC Screens" design (1a frame, 2a–2e steps,
   1e queue, 1f/1g detail, 1h/1i neighbor page). */

body { background: #e9e7e4; }
.page { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; }
.panel { background: var(--color-bg); border: 2px solid #201e1d; }

/* ---- app header (inside panel) ---- */
.app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 2px solid #201e1d; gap: 12px; flex-wrap: wrap;
}
.app-head .brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.app-head .brand strong { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.app-head .brand span { font-size: 12px; color: rgba(32,30,29,.55); }
.app-head .meta { display: flex; align-items: center; gap: 10px; }
.mono { font: 600 12px ui-monospace, Menlo, monospace; }

/* ---- top site nav ---- */
.site-nav { max-width: 1180px; margin: 0 auto; padding: 14px 20px 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav .brand { font-weight: 800; font-size: 16px; letter-spacing: .02em; margin-right: auto; color: inherit; text-decoration: none; }
.site-nav a { font-size: 13px; color: inherit; text-decoration: none; }
.site-nav a:hover { color: var(--color-accent); }
.site-nav form { margin: 0; }
.site-nav .who { font-size: 12px; color: rgba(32,30,29,.55); }
@media (max-width: 640px) {
  .site-nav { gap: 10px 14px; padding: 12px var(--space-4) 0; }
  .site-nav .brand { font-size: 15px; }
  .site-nav .who { width: 100%; }
}

/* ---- flash messages ---- */
.flash { max-width: 1180px; margin: 12px auto 0; padding: 0 20px; }
.flash > div { border: 2px solid #201e1d; background: #fff; padding: 10px 16px; font-size: 13px; margin-bottom: 8px; }
.flash > .flash-error { border-color: var(--color-accent); background: var(--color-accent-100); color: var(--color-accent-800); }
.flash > .flash-warning { border-color: var(--color-accent); background: var(--color-accent-100); }
.flash > .flash-success { border-left: 6px solid var(--color-accent); font-weight: 600; }

/* ---- wizard frame (design 1a) ---- */
.wizard { display: flex; min-height: 560px; }
.wizard aside {
  width: 296px; flex: none; border-right: 2px solid #201e1d; padding: 24px 0 28px;
}
.meter { padding: 0 24px 18px; }
.meter .kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(32,30,29,.5); margin-bottom: 6px; }
.meter .big { font-size: 28px; font-weight: 800; }
.meter .big span { color: rgba(32,30,29,.4); }
.meter .sub { font-size: 12px; color: rgba(32,30,29,.6); margin-left: 8px; }
.meter .bar { height: 8px; background: var(--color-neutral-200); margin-top: 10px; }
.meter .bar > div { height: 100%; background: var(--color-accent); }
.meter .note { font-size: 11px; line-height: 1.45; color: rgba(32,30,29,.55); margin-top: 8px; }

.steps { display: flex; flex-direction: column; }
.step-row {
  display: flex; gap: 12px; align-items: center; padding: 11px 24px;
  color: inherit; text-decoration: none;
}
.step-row:hover { background: rgba(32,30,29,.04); color: inherit; }
.step-row.current { border-left: 4px solid var(--color-accent); background: #fff; padding-left: 20px; }
.step-row.locked { opacity: .55; pointer-events: none; }
.step-row .box {
  width: 22px; height: 22px; flex: none; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px;
  border: 2px solid rgba(32,30,29,.4);
}
.step-row .box.done { background: #201e1d; color: #fff; border-color: #201e1d; }
.step-row .box.active { border-color: var(--color-accent); color: var(--color-accent); font-size: 11px; font-weight: 800; }
.step-row .t { font-size: 13px; font-weight: 600; }
.step-row.current .t { font-weight: 700; }
.step-row .d { font-size: 11px; color: rgba(32,30,29,.55); }
.step-row .d.active { color: var(--color-accent-700); font-weight: 600; }

.wizard main { flex: 1; padding: 28px 32px 32px; min-width: 0; }
@media (max-width: 860px) {
  .wizard { flex-direction: column; }
  .wizard aside { width: 100%; border-right: 0; border-bottom: 2px solid #201e1d; padding-bottom: 12px; }
  .wizard main { padding: 22px 18px 28px; }
  .app-head { padding: 14px 18px; }
}
.step-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); font-weight: 700; }
.wizard main h2 { margin: 6px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.step-lede { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: rgba(32,30,29,.65); max-width: 620px; }
.step-nav { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.step-nav .spacer { flex: 1; }
.step-nav .count { font-size: 12px; color: rgba(32,30,29,.55); }

/* ---- bordered white boxes ---- */
.box-list { border: 2px solid #201e1d; background: #fff; }
.box-list > .row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--color-neutral-300); }
.box-list > .row:last-child { border-bottom: 0; }
.box-list > .row.hl { background: var(--color-neutral-200); }
.white-box { border: 2px solid #201e1d; background: #fff; padding: 18px 20px; }
.accent-box { border: 2px solid var(--color-accent); background: var(--color-accent-100); padding: 16px 20px; }
.accent-box .hd { font-size: 14px; font-weight: 800; color: var(--color-accent-800); }
.accent-box .bd { font-size: 12.5px; color: var(--color-accent-800); margin-top: 2px; }

.dropzone {
  border: 2px dashed rgba(32,30,29,.35); padding: 14px; font-size: 12.5px;
  color: rgba(32,30,29,.55); margin-top: 10px;
}
.filemeta { font-size: 11.5px; color: rgba(32,30,29,.5); }

/* ---- restriction rows (2b) ---- */
.q-row { display: flex; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--color-neutral-300); }
.q-row:last-child { border-bottom: 0; }
.q-row .q { flex: 1; font-size: 13.5px; font-weight: 600; }
.q-callout { font-size: 12px; line-height: 1.5; color: var(--color-accent-800); margin-top: 8px; max-width: 560px; }
.q-wrap-yes { background: var(--color-accent-100); }

/* ---- acknowledgements (2c) ---- */
.ack-row { display: flex; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--color-neutral-300); }
.ack-row:last-child { border-bottom: 0; }
.ack-row .txt { font-size: 13px; line-height: 1.5; }
.ack-row .when { font-size: 11px; color: rgba(32,30,29,.45); margin-top: 2px; }
.checkbox-lg { width: 20px; height: 20px; accent-color: #ec3013; flex: none; margin-top: 2px; }
.check-mark {
  width: 22px; height: 22px; flex: none; background: #201e1d; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 1px;
}

/* ---- signatures (2d) ---- */
.sig-grid { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.sig-card { flex: 1; min-width: 300px; border: 2px solid #201e1d; background: #fff; padding: 18px 20px; }
.sig-card.active { border-color: var(--color-accent); }
.sig-card .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sig-card .name { font-size: 14px; font-weight: 700; }
.sig-view { border: 1px solid var(--color-neutral-300); background: var(--color-neutral-100); height: 84px; margin: 12px 0 8px; display: flex; align-items: center; padding: 0 16px; }
.sig-view img { max-height: 64px; }
.sigpad { border: 2px solid #201e1d; background: #fff; position: relative; }
.sigpad canvas { display: block; width: 100%; height: 110px; touch-action: none; cursor: crosshair; }
.sigpad .hint { position: absolute; left: 12px; bottom: 8px; font-size: 12px; color: rgba(32,30,29,.4); pointer-events: none; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: rgba(32,30,29,.7); margin: 10px 0; }
.consent input { margin-top: 2px; accent-color: #ec3013; }

/* ---- review / submit gate (2e, 1b) ---- */
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 28px; font-size: 12.5px; }
.gate-grid .g { display: flex; gap: 8px; align-items: baseline; }
/* ---- admin center ---- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.admin-card { display: block; border: 2px solid #201e1d; background: #fff; padding: 16px 18px;
  text-decoration: none; color: inherit; }
.admin-card:hover { background: var(--color-neutral-100, #f3f2f2); }
.admin-card .ac-title { font-weight: 800; font-size: 15px; }
.admin-card .ac-desc { font-size: 12.5px; color: rgba(32,30,29,.6); margin: 6px 0 10px; line-height: 1.5; }
.admin-card .ac-stat { font-size: 11.5px; color: var(--color-accent-700); font-weight: 700; }
.attest-box { border: 1px dashed var(--color-neutral-400, #c9c6c6); padding: 10px 12px; margin-top: 12px; }
.attest-box > summary { cursor: pointer; font-size: 12px; font-weight: 700; }

.gate-grid .ok { color: var(--color-accent-700); font-weight: 800; }
.gate-grid .ok.yes { color: #1a7f37; }   /* green check */
.gate-grid .ok.no  { color: #d1242f; }   /* red X */
.gate-grid .ok.opt { color: rgba(32,30,29,.4); }  /* neutral optional ○ */
.summary-rows { border: 2px solid #201e1d; background: #fff; }
.summary-rows .row { display: flex; gap: 18px; padding: 11px 16px; border-bottom: 1px solid var(--color-neutral-300); font-size: 13px; }
.summary-rows .row:last-child { border-bottom: 0; }
.summary-rows .k { width: 160px; flex: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(32,30,29,.55); padding-top: 2px; }

/* ---- board queue (1e) ---- */
.triage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 28px 32px; }
@media (max-width: 960px) { .triage { grid-template-columns: 1fr; } }
.triage h3 { font-size: 14px; font-weight: 800; margin: 0 0 4px; }
.triage .col-note { font-size: 11.5px; color: rgba(32,30,29,.55); margin-bottom: 12px; }
.q-card { border: 2px solid #201e1d; background: #fff; padding: 14px 16px; margin-bottom: 12px; display: block; color: inherit; text-decoration: none; }
.q-card:hover { box-shadow: var(--shadow-md); color: inherit; }
.q-card .top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.q-card .proj { font-size: 14px; font-weight: 700; margin-top: 6px; }
.q-card .where { font-size: 12px; color: rgba(32,30,29,.55); }
.q-card .hint { font-size: 11.5px; color: var(--color-accent-800); margin-top: 8px; }
.q-card.overdue { border-color: var(--color-accent); }

/* ---- detail pages (1f / 1g) ---- */
.detail-head { padding: 22px 28px; border-bottom: 2px solid #201e1d; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.detail-head .title { font-size: 20px; font-weight: 800; }
.detail-head .sub { font-size: 12.5px; color: rgba(32,30,29,.55); }
.clock { text-align: right; }
.clock .big { font-size: 22px; font-weight: 800; }
.clock .small { font-size: 11.5px; color: rgba(32,30,29,.55); }
.clock.red .big { color: var(--color-accent); }
.detail-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 24px 28px 36px; }
@media (max-width: 900px) { .detail-cols { grid-template-columns: 1fr; } }
.section-title { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.timeline { border-left: 2px solid #201e1d; margin-left: 6px; padding-left: 18px; display: flex; flex-direction: column; gap: 14px; }
.timeline .ev { position: relative; }
.timeline .ev::before {
  content: ""; position: absolute; left: -24px; top: 4px;
  width: 10px; height: 10px; background: #201e1d;
}
.timeline .ev .what { font-size: 13px; font-weight: 600; }
.timeline .ev .who { font-size: 11.5px; color: rgba(32,30,29,.55); }
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { border: 1px solid var(--color-neutral-300); background: #fff; padding: 10px 14px; }
.msg.board { border-left: 4px solid var(--color-accent); }
.msg .who { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(32,30,29,.5); margin-bottom: 3px; }
.msg .body { font-size: 13px; }
.n-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--color-neutral-300); font-size: 13px; }
.n-row:last-child { border-bottom: 0; }
.n-row .nm { font-weight: 600; }
.n-row .ad { color: rgba(32,30,29,.55); font-size: 12px; }
.note-card { border: 1px solid var(--color-neutral-300); background: var(--color-neutral-100); padding: 10px 14px; margin-bottom: 10px; }
.note-card .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-800); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--color-neutral-400); background: #fff; padding: 4px 10px; font-size: 12px; }

/* ---- neighbor page (1h/1i) ---- */
body.neighbor-page { background: #e9e7e4; }
.n-wrap { max-width: 420px; margin: 0 auto; padding: 24px 16px 60px; }
.n-panel { background: var(--color-bg); border: 2px solid #201e1d; padding: 26px 22px 30px; }
.n-brand { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.n-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); font-weight: 700; margin-top: 14px; }
.n-panel h1 { font-size: 26px; line-height: 1.15; margin: 6px 0 10px; }
.n-lede { font-size: 14.5px; line-height: 1.55; }
.n-summary { border: 1px solid var(--color-neutral-300); background: var(--color-neutral-100); padding: 14px 16px; margin: 12px 0 18px; }
.n-summary .n-lede { margin: 0 0 8px; }
.n-type-chip { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-accent-800); border: 1px solid var(--color-accent-700); background: #fff; padding: 3px 9px; margin-bottom: 8px; }
.n-desc { font-size: 14px; line-height: 1.55; margin: 0 0 6px; }
.n-dates { font-size: 12.5px; color: rgba(32,30,29,.6); margin: 0; }
.n-section-label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--color-accent-800); margin: 18px 0 8px; }
.n-plat { border: 2px solid #201e1d; background: #fff; margin: 0 0 16px; }
.n-plat img { display: block; width: 100%; max-width: 100%; height: auto; }
.n-doc-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.n-doc-card .v { margin-left: auto; color: var(--color-accent-700); font-size: 12.5px; }
.n-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.n-gallery a { display: block; width: calc(50% - 4px); border: 2px solid #201e1d; background: #fff; line-height: 0; }
.n-gallery img { display: block; width: 100%; max-width: 100%; height: 120px; object-fit: cover; }
.n-empty { font-size: 13.5px; color: rgba(32,30,29,.55); margin: 12px 0 18px; }
.n-files { border: 2px solid #201e1d; background: #fff; margin: 0 0 16px; }
.n-files a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--color-neutral-300); color: inherit; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.n-files a:last-child { border-bottom: 0; }
.n-files a:hover { background: var(--color-neutral-100); }
.n-files .k { font-size: 9.5px; font-weight: 700; padding: 3px 7px; background: var(--color-neutral-200); }
.n-files .v { margin-left: auto; color: var(--color-accent-700); font-size: 12.5px; }
.n-aware { font-size: 13px; line-height: 1.55; border-left: 4px solid var(--color-accent); padding: 8px 0 8px 14px; margin: 16px 0; }
.n-fine { font-size: 11.5px; line-height: 1.55; color: rgba(32,30,29,.5); margin-top: 14px; }
.n-decline { background: none; border: 0; color: var(--color-accent-700); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 10px; width: 100%; }
@media (min-width: 760px) {
  .n-wrap { max-width: 880px; }
  .n-two { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
}

/* ---- annotator ---- */
.annot-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.annot-stage { border: 2px solid #201e1d; background: #fff; overflow: auto; max-height: 70vh; }
.annot-stage canvas { display: block; cursor: crosshair; max-width: 100%; }

/* ---- chatbot ---- */
.chat-wrap { max-width: 760px; margin: 0 auto; }
.chat-log { min-height: 320px; max-height: 60vh; overflow-y: auto; border: 2px solid #201e1d; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; font-size: 13.5px; line-height: 1.55; border: 1px solid var(--color-neutral-300); }
.chat-msg.me { align-self: flex-end; background: #201e1d; color: #fff; border-color: #201e1d; }
.chat-msg.bot { align-self: flex-start; background: var(--color-neutral-100); }
.chat-msg.bot.error { border-color: var(--color-accent); background: var(--color-accent-100); color: var(--color-accent-800); }
.chat-msg.pending { color: rgba(32,30,29,.4); }
.chat-cites { font-size: 11px; color: rgba(32,30,29,.55); margin-top: 8px; border-top: 1px solid var(--color-neutral-300); padding-top: 6px; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-disclaimer { font-size: 11.5px; color: rgba(32,30,29,.5); margin-top: 10px; line-height: 1.5; }

/* ---- auth pages ---- */
.auth-wrap { max-width: 420px; margin: 8vh auto 0; padding: 0 16px; }
.auth-panel { background: var(--color-bg); border: 2px solid #201e1d; padding: 30px 26px; }

/* ---- landing page ---- */
.landing-hero { padding: 56px 44px; border-bottom: 2px solid #201e1d; }
.landing-hero h1 { font-size: 44px; line-height: 1.05; margin: 14px 0 12px; max-width: 760px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feature-cell { padding: 28px; border-right: 2px solid #201e1d; }
.feature-cell:last-child { border-right: 0; }
.landing-news { padding: 28px 44px 40px; border-top: 2px solid #201e1d; }
@media (max-width: 640px) {
  .landing-hero { padding: 32px 20px; }
  .landing-hero h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-cell { border-right: 0; border-bottom: 2px solid #201e1d; padding: 20px; }
  .feature-cell:last-child { border-bottom: 0; }
  .landing-news { padding: 24px 20px 32px; }
}

/* ---- responsive table scroll container ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .table-wrap > .table { min-width: 560px; }
}

/* ---- resident "My requests" dashboard — card list (Direction B) ----
   Replaces the old .table-wrap table on templates/arc/dashboard.html.
   Cards wrap naturally at any width, so there is no horizontal-scroll
   fallback needed (unlike .table-wrap above). */
.req-cards { display: flex; flex-direction: column; gap: 12px; }
.req-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 20px; border: 2px solid #201e1d; background: #fff; padding: 14px 18px;
}
.req-card:hover { box-shadow: var(--shadow-sm); }
.req-main { flex: 1 1 260px; min-width: 0; }
.req-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.req-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #201e1d; text-decoration: none; }
.req-title:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.req-sub { font-size: 12px; color: rgba(32,30,29,.55); }
.req-meta { font-size: 12px; color: rgba(32,30,29,.55); margin-top: 5px; }
.req-meta.warn { color: var(--color-accent-800); font-weight: 600; }
.req-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.req-actions .req-btn { font-size: 12px; }
.req-delete-form { margin: 0; }
.req-delete {
  font-family: inherit; font-size: 12px; color: rgba(32,30,29,.5);
  background: none; border: 0; cursor: pointer; text-decoration: none; padding: 0;
}
.req-delete:hover { color: var(--color-accent); }
.req-view { font-size: 13px; font-weight: 700; color: var(--color-accent-700); text-decoration: none; }
.req-view:hover { text-decoration: underline; text-underline-offset: 2px; }
.req-pkt { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.req-pkt-label { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(32,30,29,.5); }
.req-pkt-pair { display: flex; gap: 6px; }

/* semantic status-pill colors additional to the existing .tag-accent /
   .tag-danger / .tag-neutral modifiers (kept, unmodified, in modernist.css) —
   pine for approved, amber for in-review/paused/submitted. Additive only. */
.tag-pine { background: #e2efe9; color: #1f5641; }
.tag-amber { background: #f4ecd8; color: #7a540e; }

@media (max-width: 640px) {
  .req-card { flex-direction: column; align-items: stretch; }
  .req-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .req-pkt { align-items: flex-start; }
  .req-pkt-pair { flex-wrap: wrap; }
}

/* ---- wizard step layout helpers (moved off inline styles so mobile can
   override them) ---- */
.wizard-col { min-width: 340px; }
.neighbor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wizard-row { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
/* Paired field rows (e.g. start/completion dates, name/phone, email/address)
   inside step_project.html — desktop is two fields side by side. */
.field-row { display: flex; gap: 12px; margin-bottom: 12px; }
@media (max-width: 640px) {
  .wizard-col { min-width: 0; width: 100%; }
  .neighbor-grid { grid-template-columns: 1fr; }
  .wizard-row { gap: 14px; }
  .field-row { flex-direction: column; gap: 8px; }
}

/* ---- small-phone (320px) safety sweep ----
   Kept minimal and additive: only overrides that address a confirmed remaining
   overflow risk at ~320px, without any template changes. See docs/design/
   mobile-responsive-pass.md "App-wide sweep" for the source list. */
@media (max-width: 400px) {
  .page { padding-left: 14px; padding-right: 14px; }
  /* .sig-card ships an inline min-width on some instances (e.g. board property
     detail); !important is the only way to relax it under this tier without a
     template edit, which is out of scope for this presentation-only pass. */
  .sig-card { min-width: 100% !important; }
  /* Absolutely positioned board-detail popovers (accept/return/request-info)
     set an inline fixed width; max-width is a different property so it composes
     with the inline width instead of needing to override it. */
  .white-box { max-width: calc(100vw - 32px); }
}

/* ---- CC&R enforcement walk (mobile-first) ----
   board_lookup.html (address list), property_enforce.html, log_violation.html,
   violation_edit.html. Namespaced enf-* so nothing collides with existing
   styles. Desktop (>=1024px) keeps the prior look (.enf-panel replaces the
   old inline `style="max-width:640px"`, .enf-body replaces the old inline
   `style="padding:16px 20px 28px"`). Mobile refinements are in the media
   blocks below. */
.enf-panel { max-width: 640px; }
.enf-body { padding: var(--space-4) var(--space-4) var(--space-8); }

.enf-search-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.enf-search-row .enf-search-input { flex: 1; }

.enf-chiprow { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); flex-wrap: wrap; }
.enf-chip {
  display: inline-flex; align-items: center; padding: var(--space-2) var(--space-3);
  border: 2px solid #201e1d; background: #fff; color: inherit; text-decoration: none;
  font-size: 13px; font-weight: 600; min-height: 40px;
}
.enf-chip.on { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }

.enf-pcard { min-height: 44px; }
.enf-badge {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  background: var(--color-accent-100); color: var(--color-accent-800);
  font-size: 10.5px; font-weight: 700;
}

/* Approved-ARC context, collapsed by default (native <details>, no JS). */
.enf-arc-details > summary { cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: var(--space-2) 0; list-style: revert; }
.enf-vrow { min-height: 44px; }

.enf-btnrow { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.enf-btnrow .btn { flex: 1 1 auto; min-width: 160px; }

/* ---- searchable picker (log_violation.html + violation_edit.html) ---- */
.enf-picker { margin-top: var(--space-2); }
.enf-rlist { list-style: none; margin: var(--space-2) 0 0; padding: 0; border: 2px solid #201e1d;
  background: #fff; max-height: 320px; overflow-y: auto; }
.enf-rlist li { border-bottom: 1px solid var(--color-neutral-300); }
.enf-rlist li:last-child { border-bottom: 0; }
.enf-ritem {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  min-height: 44px; padding: var(--space-2) var(--space-3); border: 0; background: none;
  font: inherit; text-align: left; cursor: pointer; color: inherit;
}
.enf-ritem:hover, .enf-ritem:focus-visible { background: var(--color-neutral-100); }
.enf-ritem .nm { font-size: 13.5px; font-weight: 600; }
.enf-ritem .ct { font-size: 11px; color: rgba(32,30,29,.55); }
.enf-selbox { border: 2px solid #201e1d; background: #fff; padding: var(--space-3); margin-top: var(--space-2); }
.enf-selbox .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(32,30,29,.5); margin-top: var(--space-2); }
.enf-sel-name { font-size: 14px; font-weight: 700; }
.enf-sel-cite { font-size: 12.5px; color: rgba(32,30,29,.65); margin-top: 2px; }
.enf-change, .enf-cite-edit {
  font: inherit; font-size: 12px; color: var(--color-accent-700); background: none;
  border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.enf-cite-edit { display: block; margin-top: var(--space-2); }
.enf-cite-override { margin-top: var(--space-2); }
.enf-photo-input { padding: var(--space-2) 0; }

/* Visually-hidden but still focusable/operable helper (clip-based, not
   display:none) — used to hide the native file input behind the
   "Take photo" label while keeping it keyboard-accessible. Reuse this class
   for any future sr-only-but-interactive control instead of adding another. */
.enf-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; white-space: nowrap; border: 0;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%);
}

/* Prominent "Take photo" trigger for the hidden capture input above.
   Sized as a large tap target for the one-handed walk workflow. */
.enf-take-photo {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-4);
  background: var(--color-accent); color: var(--color-bg);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none;
}
.enf-take-photo svg { display: block; flex: 0 0 auto; }
.enf-take-photo:hover { background: var(--color-accent-600); }
.enf-take-photo:active { background: var(--color-accent-700); }
/* The focusable element is the (visually-hidden) input, not the label, so
   show the focus ring on the label via the sibling combinator when the
   input has keyboard focus. */
.enf-photo-input:focus-visible ~ .enf-take-photo {
  outline: 2px solid var(--color-accent-700); outline-offset: 2px;
}

/* ---- accumulating photo thumbnail strip (enf_photos.js) ---- */
.enf-thumb-strip { margin-top: var(--space-2); }
.enf-thumb-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.enf-thumb { position: relative; width: 64px; height: 64px; flex: 0 0 auto; }
.enf-thumb-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border: 2px solid #201e1d; background: var(--color-neutral-100);
}
.enf-thumb-remove {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  border: 2px solid #201e1d; border-radius: 50%; background: #fff; color: inherit;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.enf-thumb-count { margin: var(--space-2) 0 0; }
.enf-thumb-notice { margin: var(--space-2) 0 0; color: var(--color-accent-700); }

@media (max-width: 640px) {
  .enf-panel { max-width: none; }
  .enf-search-row { flex-direction: column; }
  .enf-search-row .btn { width: 100%; }
  .enf-chiprow .enf-chip { flex: 1 1 auto; justify-content: center; text-align: center; }
  .enf-btnrow { flex-direction: column; }
  .enf-btnrow .btn { min-width: 0; width: 100%; }
  .enf-log-btn { width: 100%; }
  .enf-rlist { max-height: 50vh; }
  .enf-take-photo { width: 100%; }
}

@media (max-width: 400px) {
  .enf-chiprow { flex-direction: column; }
  .enf-chiprow .enf-chip { width: 100%; }
}

/* ---- site footer (all pages, incl. login) ---- */
.site-footer {
  max-width: 1180px; margin: 0 auto; padding: 16px 20px 28px;
  border-top: 1px solid rgba(32,30,29,.15);
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: rgba(32,30,29,.6);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer span { margin-left: auto; }
