/* 3N1 Hospitality — base styles. No external fonts or images: fast and license-free. */
:root {
  --ink: #1d2a2f;
  --ink-soft: #4a5a60;
  --deep: #14313a;
  --deep-2: #1f4752;
  --accent: #8f6224;
  --accent-light: #e8c27a;
  --sand: #f6f1e9;
  --paper: #fcfbf8;
  --line: #e4ddd1;
  --white: #fff;
  --ok: #1e6b47;
  --err: #a1361f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 49, 58, .06), 0 8px 24px rgba(20, 49, 58, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--deep); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--deep); color: var(--white); padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: var(--white); }
main:focus { outline: none; }
.muted { color: var(--ink-soft); font-size: .95rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--deep); color: var(--white); }
.btn-primary:hover { background: var(--deep-2); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--deep); background: transparent; }
.btn-ghost:hover { color: var(--accent); }
.btn-light { background: var(--accent-light); color: var(--deep); }
.btn-light:hover { background: var(--white); color: var(--deep); }
.btn-small { min-height: 40px; padding: .5rem 1.1rem; font-size: .95rem; background: var(--deep); color: var(--white); }
.btn-small:hover { background: var(--deep-2); color: var(--white); }
.btn-small.btn-ghost { background: transparent; color: var(--deep); }
.btn[disabled], fieldset[disabled] .btn { opacity: .55; cursor: not-allowed; transform: none; }

/* Header + nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 248, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand .logo { display: block; height: 54px; width: auto; max-width: 100%; }
.brand-footer .logo { height: 64px; }
@media (max-width: 480px) { .site-header .brand .logo { height: 46px; } }
.wordmark { display: inline-flex; align-items: baseline; gap: .45rem; font-family: var(--serif); color: var(--deep); }
.wordmark-mark { font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.wordmark-mark::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.wordmark-text { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; }
.nav-list a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav-list a:not(.btn):hover { color: var(--deep-2); border-bottom-color: var(--accent-light); }
.nav-list a[aria-current="page"]:not(.btn) { color: var(--deep); border-bottom-color: var(--accent); }
.nav-button { display: none; }
@media (max-width: 899px) {
  .js .nav-button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
  .burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--deep); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .nav-button[aria-expanded="true"] .burger { background: transparent; }
  .nav-button[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
  .nav-button[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
  .js .nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .75rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list.open { display: flex; }
  .js .nav-list li a:not(.btn) { display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .js .nav-list li:last-child { padding-top: 1rem; }
  .js .nav-list .btn { width: 100%; min-height: 48px; }
  .site-header { position: sticky; }
  .header-inner { position: static; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(232, 194, 122, .28), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(64, 128, 140, .45), transparent 60%),
    linear-gradient(160deg, #102a32 0%, #14313a 45%, #1f4752 100%); }
.hero::after { /* subtle horizon line motif: the plains */ content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(255,255,255,.04) 22px 23px); mask-image: linear-gradient(to top, #000, transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 3rem + 6vw, 8rem); max-width: 820px; margin-left: max(1.25rem, (100% - var(--container)) / 2); }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--accent-light); }
.hero .lead { color: rgba(255,255,255,.86); }
.hero .btn-ghost { color: var(--white); }
.hero .btn-ghost:hover { color: var(--accent-light); }
.hero .btn-primary { background: var(--accent-light); color: var(--deep); }
.hero .btn-primary:hover { background: var(--white); color: var(--deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.eyebrow { font: 700 .8rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }

.page-hero { background: linear-gradient(180deg, var(--sand), var(--paper)); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.jump a { text-decoration: none; padding: .45rem .95rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--deep); font-weight: 500; font-size: .95rem; }
.jump a:hover { border-color: var(--accent); color: var(--deep); }

/* Sections */
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section-tint { background: var(--sand); }
.section-lead { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2.25rem; }
.section-cta { margin-top: 2rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--sand); color: var(--deep); margin-bottom: 1rem; }

.checklist, .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.checklist li, .ticks li { position: relative; padding-left: 2rem; }
.checklist li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c27a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat; }
.checklist { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }

.cta-band { background: linear-gradient(135deg, #14313a, #1f4752); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-inner p { color: rgba(255,255,255,.85); max-width: 56ch; margin-inline: auto; margin-bottom: 1.75rem; }

/* Services */
.services-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.service-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.service-head .card-icon { margin: 0; flex: none; }
.service-head h2 { margin: 0; font-size: 1.6rem; }
.service > p { color: var(--ink-soft); }

/* Properties */
.empty-state { text-align: center; max-width: 620px; margin-inline: auto; padding: clamp(2rem, 1rem + 4vw, 3.5rem); background: var(--white); border: 1px dashed var(--accent); border-radius: var(--radius); }
.empty-state p { color: var(--ink-soft); }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sand); color: var(--deep); margin-bottom: 1rem; }
.empty-icon svg { width: 36px; height: 36px; }
.property-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.property-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.property-card img, .property-img-fallback { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.property-img-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--sand), #ece3d4); color: var(--deep); }
.property-body { padding: 1.4rem; }
.property-brand { font-weight: 600; color: var(--accent); margin: -.3em 0 .2em; }
.property-loc { color: var(--ink-soft); }
.property-links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Forms */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card, .portal-card, .contact-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow); }
.contact-aside { background: var(--sand); box-shadow: none; overflow-wrap: anywhere; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
label { font-weight: 600; font-size: .95rem; color: var(--deep); }
.optional { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: inherit; color: var(--ink); width: 100%; padding: .75rem .9rem; min-height: 48px; border: 1px solid #cfc6b6; border-radius: 10px; background: var(--white); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(143, 98, 36, .35); border-color: var(--accent); }
input:disabled { background: #f2efe9; color: #8a8f8f; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: #fff6e3; border: 1px solid #ecd29c; border-left: 5px solid var(--accent); border-radius: 10px; padding: .9rem 1.1rem; color: #5b4316; overflow-wrap: anywhere; }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--err); }
.form-status.is-ok { color: var(--ok); }
.portal-wrap { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.portal-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.portal-head .card-icon { margin: 0; }
.portal-head h2 { margin: 0; }

/* Footer */
.site-footer { background: #0f252c; color: rgba(255,255,255,.78); padding-top: 3.5rem; font-size: .97rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); text-decoration: underline; }
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark-text { color: rgba(255,255,255,.7); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-blurb { margin-top: 1rem; max-width: 40ch; }
.footer-heading { font: 700 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 .8rem; }
.footer-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-block: 1.25rem 2rem; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }
#portal-note { margin-top: 1.1rem; }

/* Demo build banner (local demo only) */
.demo-banner { background: #5b1f8f; color: #fff; text-align: center; padding: .45rem 1rem; font-size: .92rem; letter-spacing: .02em; }

/* Hotel microsites */
.crumbs { font-size: .92rem; color: var(--ink-soft); margin-bottom: .8rem; }
.crumbs a { color: var(--ink-soft); }
.hotel-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hotel-hero-media { margin-top: -1.5rem; }
.hotel-hero-img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hotel-grid { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 860px) { .hotel-grid { grid-template-columns: 1fr; } }
.hotel-facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.hotel-facts dl { margin: 0; display: grid; gap: .9rem; }
.hotel-facts dt { font: 700 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hotel-facts dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.section-alt { background: var(--sand); }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.amenity-list li { position: relative; padding-left: 1.6rem; }
.amenity-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery li { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-cap { display: block; padding: .5rem .8rem; font-size: .9rem; color: var(--ink-soft); }
.gallery-slot { aspect-ratio: 3 / 2; display: grid; place-items: center; align-content: center; gap: .5rem; color: var(--ink-soft); background: linear-gradient(135deg, var(--sand), #ece3d4) !important; border-style: dashed !important; }
.gallery-slot svg { width: 40px; height: 40px; color: var(--deep); }
.nearby-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.map-slot iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.map-placeholder { height: 320px; display: grid; place-items: center; border-radius: var(--radius); border: 1px dashed var(--accent); color: var(--ink-soft);
  background: repeating-linear-gradient(45deg, #efe8dc 0 12px, #f6f1e9 12px 24px); }
.map-placeholder span { background: var(--white); padding: .4rem .9rem; border-radius: 999px; }
.book-card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow); max-width: 900px; margin-inline: auto; }
.booking-fields { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.booking-note { margin-top: 1rem; }
.booking-widget { min-height: 120px; }
.demo-widget { border: 2px dashed #5b1f8f; border-radius: 10px; padding: 1rem 1.2rem; background: #f6f0fb; }

/* Portal */
.portal-nav { background: var(--deep); color: var(--white); }
.portal-nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 52px; }
.portal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.portal-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.portal-nav a:hover { color: var(--white); }
.portal-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--accent-light); }
.portal-user { display: flex; align-items: center; gap: .9rem; font-size: .92rem; }
.portal-user form { margin: 0; }
.portal-nav .linklike { color: var(--accent-light); }
.portal-section { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.portal-section h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.section-h { margin-top: 2.25rem; font-size: 1.45rem; }
.h3 { font-size: 1.3rem; } .h4 { font-size: 1.02rem; margin: 1rem 0 .5rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--deep-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--accent); }
.linklike.danger { color: var(--err); }
.role-badge { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .3rem .5rem; border-radius: 999px; background: var(--accent-light); color: var(--deep); vertical-align: middle; }
.dev-note { display: inline-block; font-size: .8rem; background: #e7f0ee; color: var(--deep); padding: .2rem .6rem; border-radius: 6px; margin: 0 0 1rem; }
.flash { border-radius: 10px; padding: .85rem 1.1rem; margin: 0 0 1.25rem; overflow-wrap: anywhere; }
.flash p { margin: .2rem 0; }
.flash-ok { background: #e6f3ec; border: 1px solid #b9dcc8; color: #154d33; }
.flash-err { background: #fbeae6; border: 1px solid #efc2b6; color: #7c2915; }
code.copy { display: block; padding: .5rem .7rem; background: var(--white); border-radius: 6px; border: 1px solid var(--line); user-select: all; font-size: .88rem; }
.auth-wrap { display: grid; place-items: center; }
.auth-card { width: min(100%, 460px); }
.auth-title { margin: 0; font-size: 1.8rem; }
.auth-links { margin-top: 1.25rem; }
.prop-grid, .admin-cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.prop-card h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.prop-card h2 a { text-decoration: none; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0 1.1rem; }
.mini-kpis dt, .kpi dt { font: 700 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.mini-kpis dd { margin: .1rem 0 0; font: 700 1.2rem/1.2 var(--serif); color: var(--deep); }
.kpi-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0 0 1.5rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.kpi dd { margin: .25rem 0 .15rem; font: 700 1.9rem/1.15 var(--serif); color: var(--deep); }
.delta { font-size: .85rem; font-weight: 600; }
.delta.up { color: var(--ok); } .delta.down { color: var(--err); }
.range { display: flex; gap: .5rem; margin: 0 0 1rem; flex-wrap: wrap; }
.range a { text-decoration: none; padding: .3rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--deep); font-size: .9rem; }
.range a[aria-current="true"] { background: var(--deep); color: var(--white); border-color: var(--deep); }
.chart-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); margin-bottom: 1.5rem; }
.chart { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem .6rem; box-shadow: var(--shadow); }
.chart figcaption { font: 700 1rem/1.3 var(--serif); color: var(--deep); margin-bottom: .4rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #ebe5da; stroke-width: 1; }
.chart .axis { fill: var(--ink-soft); font: 11px var(--sans); }
.chart .bar { fill: var(--deep-2); }
.chart .bar:hover { fill: var(--accent); }
.chart .line { fill: none; stroke-width: 2.5; }
.chart .line.s0, .chart .key.s0 { stroke: var(--deep-2); background: var(--deep-2); }
.chart .line.s1, .chart .key.s1 { stroke: var(--accent); background: var(--accent); }
.chart .dot.s0 { fill: var(--deep-2); } .chart .dot.s1 { fill: var(--accent); }
.chart-legend { font-size: .88rem; color: var(--ink-soft); margin: .3rem 0 0; }
.chart-legend .key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
/* Scrollable tables that take keyboard focus (tabindex="0") so keyboard users can scroll them sideways (WCAG 2.1.1). */
.table-wrap[tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table caption { text-align: left; padding: .9rem 1rem .3rem; font: 700 1rem/1.3 var(--serif); color: var(--deep); }
.data-table th, .data-table td { text-align: left; padding: .6rem 1rem; border-bottom: 1px solid #efe9df; vertical-align: top; }
.data-table thead th { font: 700 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: #faf7f1; }
.data-table tbody th { font-weight: 600; color: var(--deep); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .actions { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.data-table .actions form, .data-table td form { margin: 0; }
.muted-inv { opacity: .75; font-weight: 400; }
.portal-grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; margin-top: 1.5rem; }
.portal-lower .section-h { margin-top: 0; }
.announce-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.announce-list li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.2rem; }
.announce-list h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.announce-list p { margin: .2rem 0; }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin: 1rem 0 1rem; }
.stat-tile { display: grid; gap: .2rem; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.stat-tile:hover { border-color: var(--accent); }
.stat-n { font: 700 2rem/1.1 var(--serif); color: var(--deep); }
.stat-l { color: var(--ink-soft); font-size: .92rem; }
.form-narrow { max-width: 760px; margin-top: 1.5rem; }
.chip-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .45rem; }
.chip { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; background: var(--sand); border-radius: 8px; padding: .45rem .7rem; font-size: .93rem; }
.chip form { margin: 0 0 0 auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form select { width: auto; flex: 1 1 200px; min-height: 40px; padding: .4rem .7rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin-bottom: 1rem; }
.check input { width: auto; min-height: 0; }
details summary { cursor: pointer; color: var(--deep-2); font-weight: 600; margin: .5rem 0; }
.message-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.msg-head { display: flex; align-items: center; gap: .8rem; }
.msg-head h2 { margin: 0; }
.msg-body { white-space: normal; background: var(--sand); padding: .8rem 1rem; border-radius: 8px; }

/* ---------- Portal operations (managers, purchasing, maintenance) ---------- */
.count-badge { display: inline-block; min-width: 1.3em; padding: .1em .4em; margin-left: .3em; border-radius: 999px; background: #b3341b; color: #fff; font: 700 .72rem/1.2 var(--sans); text-align: center; }
.pill { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font: 600 .75rem/1.2 var(--sans); background: #eef1ef; color: #2f3b35; white-space: nowrap; }
.pill-ok { background: #e3f1e6; color: #1f5a2e; } .pill-warn { background: #fdf1d8; color: #6d4a07; } .pill-bad { background: #fbeae6; color: #7c2915; } .pill-info { background: #e5eef8; color: #1d4569; }
.portal small, small.muted { font-size: .82rem; }
.ops-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin: .8rem 0; }
.ops-tile { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .75rem; border: 1px solid var(--line, #dfe3e0); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.ops-tile:hover, .ops-tile:focus-visible { border-color: var(--deep); }
.ops-n { font: 700 1.35rem/1 var(--sans); } .ops-l { font-size: .8rem; color: #59625d; }
.ops-flag { border-color: #e2a08f; background: #fdf3f0; } .ops-flag .ops-n { color: #9b2a12; }
.ops-panel { margin: 1.2rem 0 1.6rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form { display: inline; }
.check { display: flex; gap: .5rem; align-items: center; margin: .6rem 0; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid #dfe3e0; margin: 1rem 0; flex-wrap: wrap; }
.tabs a { padding: .5rem .9rem; border-radius: 8px 8px 0 0; text-decoration: none; color: inherit; }
.tabs a[aria-current="page"] { background: var(--deep); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin: .8rem 0 1rem; }
.filters .field { margin: 0; }
.qty-input { width: 5.5rem; } .date-input { width: 10rem; }
.order-cat { margin-top: 1.2rem; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tfoot th, .data-table tfoot td { border-top: 2px solid #c9cfcb; font-weight: 700; }
.photo-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.photo-grid img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid #dfe3e0; }
.notice-list { list-style: none; padding: 0; } .notice-list li { padding: .75rem 0; border-bottom: 1px solid #e6e9e7; }
.notice-unread { border-left: 4px solid #b3341b; padding-left: .7rem !important; }
.statement { max-width: 820px; }
@media print { .site-header, .portal-nav, .no-print, .site-footer, .skip-link { display: none !important; } .statement { max-width: none; } body { background: #fff; } }
/* Technician / phone-first */
.tech .portal-main { padding-left: .8rem; padding-right: .8rem; }
.big-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .4rem; border: 0; padding: 0; margin: .4rem 0 .9rem; }
.big-choice legend { font-weight: 600; margin-bottom: .35rem; }
.big-choice label { display: flex; align-items: center; gap: .4rem; padding: .7rem .6rem; border: 1px solid #cfd5d1; border-radius: 10px; background: #fff; min-height: 44px; }
.big-choice input:checked + span { font-weight: 700; }
.big-choice label:has(input:checked) { border-color: var(--deep); background: var(--accent-light); }
.tech input, .tech select, .tech textarea, .tech .btn { font-size: 16px; min-height: 44px; }
.btn-block { display: block; width: 100%; text-align: center; }
.wo-card { border: 1px solid #dfe3e0; border-radius: 12px; padding: .8rem .9rem; margin: .6rem 0; background: #fff; }
.wo-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.pm-bucket h2 { display: flex; align-items: center; gap: .5rem; }
.meta-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .4rem 1.2rem; margin: .6rem 0 1rem; }
.meta-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #59625d; } .meta-list dd { margin: 0; }
.data-table .group-h { background: #f3f5f4; text-align: left; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.plain-list { list-style: none; padding: 0; margin: 0; } .plain-list li + li { margin-top: .2rem; }
.breadcrumbs { font-size: .9rem; margin-bottom: .3rem; } .breadcrumbs a::before { content: "← "; }
.photo-picker { border: 1px dashed #b9c2bd; border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0; }
.photo-picker legend { font-weight: 600; padding: 0 .3rem; }
.photo-btn { position: relative; cursor: pointer; }
.photo-btn:focus-within { outline: 3px solid #1f6f5c; outline-offset: 2px; }
.photo-preview { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .4rem 0 0; }
.photo-preview li { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.photo-preview img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; border: 1px solid #d5dbd8; }
.photo-grid { list-style: none; padding: 0; } .photo-grid li { display: flex; flex-direction: column; align-items: center; }
.statement-total { font-size: 1.15rem; margin-top: 1rem; } .statement-order { break-inside: avoid; margin-bottom: 1rem; }
.pm-checklist { border: 0; padding: 0; margin: .4rem 0 .9rem; display: grid; gap: .35rem; }
.pm-checklist legend { font-weight: 600; margin-bottom: .35rem; }
.big-check { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid #cfd5d1; border-radius: 10px; background: #fff; min-height: 44px; }
.big-check input { width: 1.3rem; height: 1.3rem; min-height: 0; }
.field-narrow { max-width: 7rem; }
.part-row { border-top: 1px dashed #dfe3e0; padding-top: .4rem; }
.wo-desc { font-size: 1.05rem; }

/* Price variances */
.variance-flag { display: inline-flex; align-items: center; gap: .3rem; background: #fff3cd; color: #6b4a00; border: 1px solid #e0b84a; border-radius: 6px; padding: .15rem .5rem; font-size: .85rem; font-weight: 600; }
.variance-flag a { color: inherit; }
.variance-flag-sm { font-size: .78rem; white-space: nowrap; }
.variance-banner { background: #fff3cd; border: 1px solid #e0b84a; border-left: 6px solid #c8901a; color: #4d3500; border-radius: 10px; padding: .85rem 1.1rem; margin: 0 0 1.25rem; }
.variance-pct { color: #9a2b1d; font-weight: 700; }
.notes-list li { border-left: 3px solid var(--line, #d9dfdb); padding: .3rem 0 .3rem .7rem; }
.notes-list li + li { margin-top: .6rem; }

/* Receiving cards: ".form fieldset" resets padding/border, which pushed the item legend onto the card's top edge.
   Restore the card box and float the legend inside it so it sits in the padding like a heading. */
.form fieldset.receive-row { border: 1px solid var(--line); padding: clamp(1.1rem, .9rem + 1vw, 1.6rem); margin: 0 0 1rem; }
.receive-row > legend { float: left; width: 100%; padding: 0; margin: 0 0 .6rem; line-height: 1.35; }
.receive-row > legend + * { clear: both; }

/* ---------- Weekly supply order form (phone first) ---------- */
.order-controls { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: .6rem 0; display: grid; gap: .6rem; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
@media (min-width: 700px) { .order-controls { grid-template-columns: minmax(200px, 260px) 1fr; align-items: start; } }
.order-controls select, .order-controls input[type=search] { width: 100%; min-height: 48px; font-size: 1.0625rem; }
.item-search { position: relative; }
.suggest-list { position: absolute; left: 0; right: 0; top: calc(100% - 1.4rem); z-index: 20; margin: 0; padding: .25rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: min(60vh, 26rem); overflow-y: auto; }
.suggest-item { display: grid; gap: .1rem; padding: .65rem .75rem; border-radius: 8px; cursor: pointer; min-height: 48px; }
.suggest-item[aria-selected=true], .suggest-item:hover { background: var(--sand); }
.sug-top { display: flex; gap: .5rem; align-items: baseline; justify-content: space-between; }
.sug-name { font-weight: 600; }
.sug-area { font-size: .75rem; white-space: nowrap; }
.sug-meta { font-size: .875rem; color: var(--ink-soft); }
.suggest-new .sug-name { color: var(--deep-2); }
.area-panel { margin: 0 0 1.5rem; }
.area-h { border-bottom: 2px solid var(--accent-light); padding-bottom: .3rem; }
.ro-list, .ft-list, .sum-list, .catalog-list, .area-admin { list-style: none; margin: 0; padding: 0; }
.ro-row { display: grid; grid-template-columns: 1fr 5.5rem 5.5rem; gap: .35rem .75rem; align-items: center; padding: .7rem .25rem; border-bottom: 1px solid var(--line); }
.ro-row.has-qty { background: #f3f8f4; }
.ro-row.just-added { outline: 3px solid var(--accent-light); outline-offset: -3px; border-radius: 8px; }
.ro-main { min-width: 0; }
.ro-name { font-weight: 600; display: inline; }
.ro-pack { color: var(--ink-soft); font-size: .9rem; }
.ro-meta { display: block; font-size: .875rem; color: var(--ink-soft); }
.ro-vendor { font-weight: 600; color: var(--ink); }
.ro-head { display: grid; grid-template-columns: 1fr 5.5rem 5.5rem; gap: .75rem; margin: 0; padding: 0 .25rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #59625d; text-align: center; }
.ro-onhand input { font-size: 1rem; background: var(--sand); }
.ro-qty input { width: 100%; min-height: 48px; font-size: 1.125rem; text-align: center; }
.ro-more { grid-column: 1 / -1; font-size: .9rem; }
.ro-more summary { cursor: pointer; color: var(--deep-2); padding: .2rem 0; }
.ro-more .field { margin: .4rem 0; }
.ro-row.kept { grid-template-columns: 1fr auto; }
.cat-more, .add-free { margin-top: .75rem; }
.cat-more > summary, .add-free > summary { cursor: pointer; font-weight: 600; color: var(--deep-2); padding: .6rem 0; min-height: 44px; }
.ft-row { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.ft-row .ft-name, .ft-row .ft-more { grid-column: 1 / -1; }
@media (min-width: 700px) { .ft-row { grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr 1.4fr; } .ft-row .ft-name { grid-column: auto; } }
.ft-row input, .ft-row select { width: 100%; min-height: 44px; }
.empty-state { background: var(--sand); border-radius: 10px; padding: .9rem 1rem; color: var(--ink-soft); }
.order-summary .sum-area { font-size: 1rem; margin: .8rem 0 .3rem; }
.sum-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--deep); color: var(--white); }
.order-bar[hidden] { display: none; }
body.has-order-bar { padding-bottom: 4.5rem; }
.catalog-row { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.catalog-row .field label { font-size: .8rem; }
@media print { .order-bar, .order-controls { display: none !important; } }
/* Receiving sheets: printable PO sheet, paper upload, confirm screen */
.flash-info { background: #e8f1f7; border: 1px solid #bcd3e4; color: #173f5c; }
.flash-warn { background: #fdf4e1; border: 1px solid #ecd39a; color: #5e4310; }
.sheet-upload summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sheet-upload input[type=file] { font-size: 16px; min-height: 44px; max-width: 100%; }
.sheet-pending { margin-bottom: 1rem; }
.rs-toolbar { margin-bottom: 1rem; }
.rs-page { background: #fff; color: #111; border: 1px solid #d5dbd8; border-radius: 8px; padding: 1.2rem 1.3rem; margin: 0 auto 1.5rem; max-width: 60rem; font-size: .9rem; }
.rs-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: .6rem; margin-bottom: .6rem; }
.rs-kicker { margin: 0; font: 700 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.rs-po { margin: .1rem 0 .4rem; font: 800 1.7rem/1.1 var(--sans); letter-spacing: .02em; overflow-wrap: anywhere; }
.rs-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .15rem 1rem; margin: 0; }
.rs-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #444; } .rs-meta dd { margin: 0; font-weight: 600; }
.rs-qr { margin: 0; text-align: center; font: .7rem/1.25 var(--sans); flex: none; } .rs-qr svg { display: block; width: 128px; height: 128px; }
.rs-help { margin: .3rem 0 .6rem; }
.rs-table { width: 100%; border-collapse: collapse; } .rs-table th, .rs-table td { border: 1px solid #333; padding: .35rem .4rem; vertical-align: top; text-align: left; }
.rs-table th { background: #eee; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; } .rs-table td { height: 2.2rem; }
.rs-table .num { text-align: right; white-space: nowrap; } .rs-write { width: 5.5rem; } .rs-box { width: 3.6rem; text-align: center !important; vertical-align: middle !important; }
.rs-check { display: inline-block; width: 1.05rem; height: 1.05rem; border: 1.5px solid #111; border-radius: 2px; }
.rs-notes { margin-top: .8rem; } .rs-notes p { margin: 0 0 .2rem; }
.rs-lines { height: 4.6rem; background: repeating-linear-gradient(#fff 0 1.5rem, #888 1.5rem calc(1.5rem + 1px)); border-bottom: 1px solid #888; }
.rs-sign { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1rem; } .rs-foot { margin: .8rem 0 0; font-size: .72rem; color: #444; }
.rs-print .portal-main { overflow-x: auto; }
@media (max-width: 640px) { .rs-page { padding: .8rem; font-size: .8rem; } .rs-head { flex-direction: column-reverse; } .rs-table { min-width: 40rem; } .rs-page { overflow-x: auto; } }
@page { size: letter; margin: 12mm; }
@media print {
  .rs-print .portal-main, .rs-print .portal-section, .rs-print .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .rs-page { border: 0; border-radius: 0; padding: 0; margin: 0; max-width: none; break-after: page; page-break-after: always; overflow: visible; }
  .rs-page:last-child { break-after: auto; page-break-after: auto; } .rs-table { min-width: 0; } .rs-table tr { break-inside: avoid; }
  .rs-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rs-print .dev-note { display: none !important; }
  .rs-page { font-size: 10pt; } .rs-table { font-size: 9pt; } .rs-table th, .rs-table td { padding: 4px 5px; }
  .rs-table td:nth-child(2) { width: 30%; } .rs-write { width: 16%; }
}
.sheet-review { display: grid; gap: 1rem; }
@media (min-width: 760px) { .sheet-review { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .sheet-image { position: sticky; top: 1rem; } }
.sheet-image { margin: 0; } .sheet-image img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border: 1px solid #d5dbd8; border-radius: 8px; background: #fff; }
.sheet-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sheet-line { border: 1px solid #dfe3e0; border-radius: 10px; background: #fff; padding: .6rem .75rem; }
.sheet-line.low-conf { border-color: #e0b955; background: #fffaf0; } .sheet-line.done { opacity: .75; }
.sl-head { display: flex; gap: .55rem; align-items: flex-start; }
.sl-no { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent-light); color: var(--deep); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.sl-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4rem .8rem; margin-top: .45rem; }
.sl-fields .field { margin: 0; } .sl-fields .qty-input { width: 6rem; font-size: 16px; min-height: 44px; }
.sl-fields .check { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .55rem; border: 1px solid #cfd5d1; border-radius: 8px; }
.sl-fields .check:has(input:checked) { border-color: var(--deep); background: var(--accent-light); font-weight: 600; }
.sl-fields .check input { width: 1.15rem; height: 1.15rem; }
.sl-note { flex: 1 1 12rem; } .sl-note input { width: 100%; font-size: 16px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Housekeeping ---------- */
.stack { display: grid; gap: .6rem; } .stack > * { margin: 0; } .stack-sm { display: grid; gap: .35rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 0 0 1rem; }
.grid-2 .card, .hk-cols .card, section.card { padding: 1rem 1.1rem; margin: 0 0 1rem; }
.list-plain { list-style: none; padding: 0; margin: .4rem 0 1rem; } .list-plain li { padding: .3rem 0; border-bottom: 1px solid #eef0ee; }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-huge { font-size: 1.25rem !important; min-height: 64px !important; font-weight: 700; border-radius: 14px; }
.hk-daynav { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .4rem 0 1rem; } .hk-daynav form { display: flex; gap: .4rem; }
.hk-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: .6rem; } .hk-kpis .kpi { padding: .6rem .8rem; } .hk-kpis dd { font-size: 1.5rem; }
.hk-actionbar { position: sticky; top: 0; z-index: 5; padding: .8rem 1rem !important; margin-bottom: 1rem; }
.hk-selbar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .5rem; }
.hk-chips { border: 0; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem; } .hk-chips legend { font-weight: 600; margin-bottom: .3rem; }
.hk-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .75rem; border: 1px solid #cfd5d1; border-radius: 999px; background: #fff; cursor: pointer; }
.hk-chip:has(input:checked) { border-color: var(--deep); background: var(--accent-light); font-weight: 600; }
.hk-opts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; } .hk-opts .field { margin: 0; }
.hk-floor h2 { margin: .8rem 0 .4rem; }
.hk-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.hk-tile { position: relative; display: grid; gap: .1rem; min-height: 96px; padding: .5rem .6rem; border: 2px solid #d4d9d6; border-left-width: 8px; border-radius: 12px; background: #fff; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.hk-tile input { position: absolute; top: .45rem; right: .45rem; width: 1.2rem; height: 1.2rem; }
.hk-tile:has(input:checked), .hk-tile.is-selected { border-color: var(--deep); box-shadow: 0 0 0 3px var(--accent-light); background: #fffaf0; }
.hk-num { font: 700 1.35rem/1.1 var(--sans); } .hk-st, .hk-who { font-size: .78rem; line-height: 1.25; } .hk-as .pill, .hk-sync .pill { font-size: .68rem; }
.st-dirty { border-left-color: #b5432a; } .st-checkout { border-left-color: #c98a16; } .st-stayover { border-left-color: #3b6fa3; }
.st-clean { border-left-color: #6aa77c; } .st-inspected { border-left-color: #1e6b47; background: #f1f8f3; } .st-out_of_order { border-left-color: #333; background: #f1f1f1; }
.hk-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hk-list { list-style: none; margin: 0; padding: 0; } .hk-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .4rem 0; border-bottom: 1px solid #eef0ee; }
.hk-move { margin-left: auto; display: flex; gap: .2rem; } .hk-move .btn { min-width: 44px; min-height: 40px; padding: 0; }
.hk-cards { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .8rem; }
.hk-card { border: 1px solid #d7dcd9; border-radius: 16px; background: #fff; padding: .9rem; display: grid; gap: .55rem; box-shadow: var(--shadow); }
.hk-card.is-done { opacity: .65; box-shadow: none; } .hk-card.is-redo { border: 2px solid var(--err); }
.hk-card-head { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; text-decoration: none; color: inherit; }
.hk-card-head .hk-sub { grid-column: 2; }
.hk-order { grid-row: span 3; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; }
.hk-bignum { font: 700 1.6rem/1.15 var(--sans); } .hk-sub { font-size: .95rem; color: var(--ink-soft); }
.hk-two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; } .hk-two .btn, .hk-two form { width: 100%; margin: 0; text-align: center; }
.hk-summary { font-size: 1.1rem; margin: 0; }
.hk-title { margin-bottom: .2rem; }
.hk-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; } .hk-times div { background: #f3f5f4; border-radius: 10px; padding: .5rem .6rem; }
.hk-times dt { font-size: .78rem; color: var(--ink-soft); } .hk-times dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.hk-checklist { border: 0; padding: 0; margin: 0; display: grid; gap: .35rem; } .hk-checklist label { display: flex; gap: .5rem; align-items: center; min-height: 44px; padding: 0 .6rem; border: 1px solid #dfe3e0; border-radius: 10px; }
.hk-checklist label:has(input:checked) { background: #e3f1e6; border-color: #6aa77c; }
.hk-redo .photo-grid { margin-top: .5rem; }
.hk-phone details > summary.btn { list-style: none; } .hk-phone details > summary.btn::-webkit-details-marker { display: none; }
.sync-failed { background: #a1361f; color: #fff; }
/* Housekeeping checkboxes: real-size boxes (the global input rule is for text fields). */
.hk-chip input[type=checkbox], .hk-checklist input[type=checkbox], label.small > input[type=checkbox] { width: 1.4rem; height: 1.4rem; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--deep); }

/* Long-form Privacy / Terms */
.legal-doc { max-width: 68ch; }
.legal-doc > h2 { margin-top: 2.25rem; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.legal-doc > h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); }
.legal-doc ul { margin: 0.6rem 0 1.1rem 1.2rem; padding: 0; }
.legal-doc li { margin: 0.35rem 0; }
.legal-meta { color: var(--ink-soft); margin-top: 0.75rem; font-size: 0.95rem; }
.legal-doc .legal-contact { margin-top: 1rem; padding: 1rem 1.15rem; background: var(--sand); border-radius: 10px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; justify-content: space-between; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; opacity: 0.9; }
.footer-legal a:hover { opacity: 1; }

/* Small utility link for portal access (not a primary nav item) */
.nav-utility { margin-left: .35rem; }
.owner-login {
  font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  padding: .35rem .55rem; border-radius: 999px;
}
.owner-login:hover, .owner-login[aria-current="page"] { color: var(--deep); text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 899px) {
  .nav-utility { margin-left: 0; margin-top: .35rem; }
}

/* Leadership / Meet the Team */
.leadership-grid { display: grid; gap: 2rem; align-items: start; margin-top: 1.5rem; }
@media (min-width: 800px) {
  .leadership-grid { grid-template-columns: minmax(220px, 320px) 1fr; gap: 2.75rem; }
}
.leadership-photo { margin: 0; }
.leadership-img, .meet-team-img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  object-fit: cover; background: var(--sand);
}
.leadership-name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 .35rem; }
.leadership-title { color: var(--deep); font-weight: 600; margin: 0 0 .5rem; }
.leadership-headline { color: var(--ink-soft); font-size: .95rem; letter-spacing: .02em; margin: 0 0 1.25rem; }
.leadership-bio p { color: var(--ink-soft); }
.leadership-bio .ticks { margin-bottom: 1rem; }
.leadership-quote {
  margin: 1.75rem 0 0; padding: 1.1rem 1.25rem; border-left: 3px solid var(--gold, #e8c27a);
  background: var(--paper, #fff); border-radius: 0 10px 10px 0;
}
.leadership-quote p { margin: 0; color: var(--deep); font-style: italic; font-size: 1.05rem; }
.meet-team { border-top: 1px solid var(--line); }
.meet-team-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 700px) {
  .meet-team-inner { grid-template-columns: 160px 1fr; gap: 2rem; }
}
.meet-team-photo { max-width: 200px; }
.meet-team-img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

.footer-mailing-label { font-weight: 600; }

/* ---------- Front office: cash drawers, night audit, guest accounts, banking ---------- */
.var-bad { color: #9b2c14; font-weight: 700; } .var-warn { color: #7a5306; font-weight: 600; }
.req { font-weight: 400; color: var(--ink-soft); font-size: .85em; }
.fo-table th[scope="row"], .fo-table td.num, .fo-table .pill, .fo-table td:has(> .pill) { white-space: nowrap; }
.fo-table input[type="checkbox"] { width: 1.3rem; height: 1.3rem; min-height: 0; padding: 0; }
.fo-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 1rem 0; }
.fo-card h2 a { text-decoration: none; color: var(--deep); }
.fo-card p { margin: .3rem 0 .6rem; }
.money-input { display: flex; align-items: center; border: 1px solid #cfd5d1; border-radius: 10px; background: #fff; padding-left: .7rem; }
.money-input:focus-within { outline: 3px solid var(--accent-light); outline-offset: 1px; border-color: var(--deep); }
.money-input span { color: var(--ink-soft); font-weight: 600; }
.money-input input { border: 0; outline: 0; box-shadow: none; flex: 1; min-width: 0; background: transparent; }
.field-money { max-width: 16rem; }
.form fieldset.card { border: 1px solid var(--line); padding: clamp(1rem, .8rem + 1vw, 1.5rem); margin: 0 0 1rem; }
.form fieldset.card > legend { padding: 0 .4rem; font: 700 1.15rem/1.3 var(--serif); color: var(--deep); }
.dc-grid { display: grid; gap: .35rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.dc-group { grid-column: 1 / -1; font: 700 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: .8rem 0 .1rem; }
.dc-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 6.5rem; gap: .6rem; align-items: center; padding: .25rem 0; border-bottom: 1px solid #efe9df; }
.dc-row label { font-weight: 500; }
.dc-row input { text-align: right; font-size: 1.1rem; min-height: 48px; font-variant-numeric: tabular-nums; }
.dc-line { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.dc-total { font: 700 1.25rem/1.3 var(--serif); color: var(--deep); text-align: right; margin: .8rem 0 0; }
.dc-summary { margin: 0 0 1rem; }
.dc-sum { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: .4rem 0; }
.dc-sum dt { color: var(--ink-soft); font-size: .9rem; } .dc-sum dd { margin: 0; font: 700 1.5rem/1.2 var(--serif); color: var(--deep); font-variant-numeric: tabular-nums; }
.dc-sum dd.var-bad { color: #9b2c14; } .dc-sum dd.var-warn { color: #7a5306; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(252, 251, 248, .96); padding: .8rem 0; border-top: 1px solid var(--line); z-index: 5; }
.sticky-actions .btn-row { flex-wrap: nowrap; gap: .6rem; margin: 0; }
.sticky-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: .6rem; }
.dc-live { margin: 0 0 .5rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.signoff .check { align-items: flex-start; }
.signoff-line { margin: .8rem 0; }
.row-strong > * { font-weight: 700; }
.fo-events { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .45rem; font-size: .93rem; }
.fo-history { margin-top: 1.2rem; }
.fo-reopen { margin: 1rem 0; } .fo-reopen summary { cursor: pointer; font-weight: 600; }
.na-list { list-style: none; counter-reset: na; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
.na-item { counter-increment: na; background: var(--white); border: 1px solid var(--line); border-left: 5px solid #d9cdb8; border-radius: 12px; padding: .9rem 1rem; }
.na-item.is-done { border-left-color: var(--ok); }
.na-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.na-label { font-weight: 700; color: var(--deep); } .na-label::before { content: counter(na) ". "; color: var(--ink-soft); }
.na-item .hint { margin: .25rem 0 .4rem; }
.na-inputs { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: flex-end; }
.na-inputs .field { margin-bottom: .3rem; }
.na-inputs .check, .signoff .check { min-height: 44px; margin: 0 0 .3rem; padding: 0 .7rem; border: 1px solid #cfd5d1; border-radius: 10px; background: #fff; cursor: pointer; }
.na-inputs .check:has(input:checked) { border-color: var(--ok); background: #eef6f0; font-weight: 600; }
.na-inputs .check input, .signoff .check input, .form .check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: none; }
.signoff .check { padding: .6rem .8rem; align-items: center; } .na-note { flex: 1 1 14rem; }
.na-linked { background: var(--sand); border-radius: 8px; padding: .5rem .7rem; margin: .3rem 0 .5rem; }
.fo-print-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--deep); padding-bottom: .8rem; margin-bottom: 1rem; }
.fo-print-logo { height: 54px; width: auto; }
.fo-print-hotel { text-align: right; }
.fo-print-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.invoice { max-width: 900px; }
.inv-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .4rem 1rem; margin: 0; }
.inv-dl dt { color: var(--ink-soft); font-size: .85rem; } .inv-dl dd { margin: 0; font-weight: 600; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.45; }
.outbox-body { white-space: pre-wrap; background: var(--sand); padding: .7rem; border-radius: 8px; font-size: .85rem; margin: .5rem 0 0; }
.print-only { display: none; }
@media (max-width: 520px) {
  .dc-row { grid-template-columns: minmax(0, 1fr) 5.5rem 5.2rem; gap: .45rem; }
  .fo-print-hotel { text-align: left; }
  .sticky-actions { margin-inline: -.8rem; padding-inline: .8rem; }
}
@media print {
  .print-only { display: block; }
  .no-print, .fo-reopen, .sticky-actions, [data-print] { display: none !important; }
  .table-wrap { box-shadow: none; border-color: #bbb; overflow: visible; }
  .kpi, .card, .na-item { box-shadow: none; break-inside: avoid; }
  .fo-print-head { border-bottom-color: #000; }
}

/* Home hero photo + photo strip (stock photos; see docs/photo-credits.md) */
/* The photo and the text share one grid cell (stacked), so the photo is always the hero's background:
   the picture is stretched to the row the text sizes, and the img fills it absolutely (no intrinsic height). */
.hero-photo { display: grid; grid-template: "stack" auto / minmax(0, 1fr); background: var(--deep); }
.hero-photo > .hero-media, .hero-photo > .hero-inner { grid-area: stack; }
.hero-photo .hero-media { position: relative; z-index: 0; display: block; align-self: stretch; justify-self: stretch; min-height: 100%; overflow: hidden; }
.hero-photo .hero-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; object-position: 62% 50%; }
.hero-photo .hero-inner { position: relative; z-index: 2; }
.hero-photo::before { /* navy scrim keeps the headline readable */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 42, 50, .95) 0%, rgba(20, 49, 58, .88) 34%, rgba(20, 49, 58, .55) 62%, rgba(20, 49, 58, .22) 100%),
    linear-gradient(0deg, rgba(20, 49, 58, .55) 0%, transparent 35%); }
.hero-photo .hero-inner { text-shadow: 0 1px 12px rgba(10, 30, 36, .35); }
.hero-photo .hero-inner::before { content: ""; display: block; width: 56px; height: 3px; background: var(--accent-light); border-radius: 2px; margin-bottom: 1.4rem; }
@media (max-width: 760px) {
  .hero-photo .hero-media img { object-position: 70% 50%; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(20, 49, 58, .70) 0%, rgba(20, 49, 58, .80) 55%, rgba(16, 42, 50, .92) 100%); }
}
.photo-strip { background: var(--sand); padding-block: clamp(1.75rem, 1.2rem + 2vw, 3rem); border-bottom: 1px solid var(--line); }
.photo-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, .5rem + 1vw, 1.5rem); }
.photo-tile { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); aspect-ratio: 4 / 3; border-bottom: 3px solid #b38b4d; }
.photo-tile picture, .photo-tile img { display: block; width: 100%; height: 100%; }
.photo-tile img { object-fit: cover; }
@media (max-width: 699px) {
  .photo-strip-grid { grid-template-columns: 1fr 1fr; }
  .photo-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* Inner-page photo headers: same stacked-grid technique as the home hero (photo + text in one cell). */
.page-hero-photo { position: relative; overflow: hidden; display: grid; grid-template: "stack" auto / minmax(0, 1fr); background: var(--deep); color: var(--white); border-bottom: 0;
  padding-block: 0; }
.page-hero-photo > .hero-media, .page-hero-photo > .container { grid-area: stack; }
.page-hero-photo .hero-media { position: relative; z-index: 0; display: block; align-self: stretch; justify-self: stretch; min-height: 100%; overflow: hidden; }
.page-hero-photo .hero-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; object-position: 50% 50%; }
.page-hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 42, 50, .94) 0%, rgba(20, 49, 58, .86) 40%, rgba(20, 49, 58, .55) 72%, rgba(20, 49, 58, .35) 100%),
    linear-gradient(0deg, rgba(20, 49, 58, .5) 0%, transparent 40%); }
.page-hero-photo > .container { position: relative; z-index: 2; padding-block: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem) clamp(2.75rem, 2rem + 3vw, 4.5rem); text-shadow: 0 1px 12px rgba(10, 30, 36, .35); }
.page-hero-photo > .container::before { content: ""; display: block; width: 56px; height: 3px; background: var(--accent-light); border-radius: 2px; margin-bottom: 1.2rem; }
.page-hero-photo h1 { color: var(--white); max-width: 26ch; }
.page-hero-photo .eyebrow { color: var(--accent-light); }
.page-hero-photo .lead { color: rgba(255, 255, 255, .88); }
.page-hero-photo .jump a { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: var(--white); text-shadow: none; }
.page-hero-photo .jump a:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--deep); }
@media (max-width: 760px) {
  .page-hero-photo::before { background: linear-gradient(180deg, rgba(20, 49, 58, .76) 0%, rgba(20, 49, 58, .84) 60%, rgba(16, 42, 50, .93) 100%); }
}

/* Inline photos in page bodies */
.inline-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); aspect-ratio: 4 / 3; border-bottom: 3px solid #b38b4d; }
.inline-photo picture, .inline-photo img { display: block; width: 100%; height: 100%; }
.inline-photo img { object-fit: cover; }
.split-photo { align-items: center; }

/* GM reports / inspections (portal versions of the 3N1 paper forms) */
.form .check.check-row { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: .5rem 0; line-height: 1.4; font-weight: 400; }
.form .check.check-row input[type="checkbox"] { flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; margin: .1rem 0 0; }
.gm-checks { border: 0; }
.gm-checks .check-row + .check-row { border-top: 1px solid var(--line); }
.action-row { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.action-row:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.form fieldset.portal-card > legend { font-weight: 700; padding: 0 .35rem; }

/* Legal review N1/N9 (Nov 23, 2026): contact-form notice and stock-photo note. */
.form-notice { margin-top: .75rem; font-size: .88rem; max-width: 60ch; }
.photo-note { flex-basis: 100%; margin: 0; font-size: .82rem; opacity: .85; }
.section-tight { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
