:root {
  --ink: #20201d;
  --ink-soft: #56544f;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --line: #ded9cd;
  --sage: #f1e6c9;
  --sage-deep: #8a651d;
  --rust: #b65536;
  --rust-soft: #f5dfd5;
  --gold: #bb8d2b;
  --shadow: 0 22px 60px rgba(32, 32, 29, 0.12);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(187, 141, 43, 0.32);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.1fr); background: var(--surface); }
.login-brand-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 7vh 6vw; background: var(--ink); color: white; overflow: hidden; position: relative; }
.login-brand-panel::after { content: ""; width: 420px; height: 420px; position: absolute; right: -210px; bottom: -190px; border: 1px solid rgba(187,141,43,.45); transform: rotate(45deg); }
.login-brand-panel img { width: 180px; height: 176px; object-fit: contain; border-radius: 18px; background: white; box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.login-brand-panel > div { position: relative; z-index: 1; }
.login-brand-panel .eyebrow { color: #dfbe70; }
.login-brand-panel h1 { max-width: 520px; margin: 0; font-family: "Newsreader", serif; font-size: clamp(46px, 5.5vw, 76px); line-height: .96; letter-spacing: -.035em; }
.login-brand-panel p { max-width: 480px; color: #c5c8c3; font-size: 15px; }
.login-form-panel { display: grid; place-items: center; padding: 50px 7vw; }
.login-form { width: min(430px, 100%); }
.login-form h2 { margin: 0; font-family: "Newsreader", serif; font-size: 40px; letter-spacing: -.025em; }
.login-form > p { margin: 10px 0 28px; color: var(--ink-soft); font-size: 13px; }
.login-submit { width: 100%; margin-top: 4px; }
.login-registration { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); color: #747874; font-size: 11px; }
.login-registration button { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; background: transparent; color: var(--sage-deep); font-size: 11px; font-weight: 800; }
.login-registration button:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.login-registration button span { font-size: 14px; line-height: 1; transition: transform .15s ease; }
.login-registration button:hover span { transform: translateX(2px); }
.login-error { padding: 11px 12px; border-radius: 9px; background: var(--rust-soft); color: #7f3927 !important; font-size: 11px !important; }
.demo-login-box { margin-top: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f5f2ea; }
.demo-login-box > strong { font-size: 12px; }
.demo-login-box > p { margin: 4px 0 11px; color: #747874; font-size: 10px; }
.secure-login-note { margin-top: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f5f2ea; }
.secure-login-note strong { font-size: 12px; }
.secure-login-note p { margin: 4px 0 0; color: #747874; font-size: 10px; line-height: 1.5; }
.demo-accounts { display: flex; flex-wrap: wrap; gap: 7px; }
.demo-accounts button { padding: 7px 9px; border: 1px solid #d6cebb; border-radius: 8px; background: white; color: var(--ink); font-size: 10px; font-weight: 700; }
.demo-accounts button:hover { border-color: var(--gold); color: var(--sage-deep); }
.topbar {
  height: 92px;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; width: fit-content; }
.brand-logo { width: 72px; height: 70px; object-fit: contain; flex: 0 0 auto; border-radius: 10px; background: white; }
.brand strong, .brand small, .user-chip strong, .user-chip small { display: block; }
.brand strong { font-family: "Newsreader", serif; font-size: 21px; font-weight: 700; line-height: 1; }
.brand small, .user-chip small { margin-top: 5px; color: #746334; font-size: 11px; }
.brand small { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.role-switch { display: flex; padding: 4px; border-radius: 999px; background: #e9e6dc; }
.role-button { border: 0; background: transparent; color: #66736f; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.role-button.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(23,42,38,.1); }
.session-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #d5cfbf; border-radius: 999px; background: #f6f2e8; color: #6b5930; font-size: 11px; font-weight: 700; }
.session-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.user-chip { justify-self: end; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); color: var(--sage-deep); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.contact-alerts-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #d7c89e; border-radius: 8px; background: #fffaf0; color: #72551f; font-size: 10px; font-weight: 800; }
.contact-alerts-button:hover { border-color: var(--gold); background: #f5ead0; }
.sign-out-button { margin-left: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 10px; font-weight: 700; }

main { width: min(1180px, 90vw); margin: 0 auto; padding: 52px 0 80px; }
.view { display: none; }
.view.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.hero h1, .section-heading h2, .dialog-header h2, .agent-panel h2 { font-family: "Newsreader", serif; font-weight: 600; margin: 0; letter-spacing: -0.025em; }
.hero h1 { font-size: clamp(42px, 5vw, 68px); line-height: .98; max-width: 720px; }
.owner-hero h1 { font-size: clamp(38px, 4.5vw, 58px); }
.hero p { color: var(--ink-soft); font-size: 17px; margin: 14px 0 0; max-width: 640px; }
.eyebrow { display: block; color: var(--sage-deep); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.primary-button, .secondary-button { border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary-button { background: var(--ink); color: white; box-shadow: 0 10px 20px rgba(23,42,38,.16); }
.primary-button:hover { background: #23453e; transform: translateY(-1px); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.secondary-button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

.emergency-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #e7bfae; background: var(--rust-soft); border-radius: 14px; margin-bottom: 46px; }
.emergency-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--rust); color: white; font-weight: 800; display: grid; place-items: center; }
.emergency-note p { color: #6a4438; margin: 3px 0 0; font-size: 13px; }
.emergency-note a { color: var(--rust); font-weight: 700; text-decoration: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { font-size: 32px; }
.filter-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); }
.filter { border: 0; background: transparent; color: #78837f; padding: 8px 12px 10px; font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.filter.active { color: var(--ink); border-color: var(--sage-deep); }
.request-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.request-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-height: 260px; display: flex; flex-direction: column; transition: .2s ease; }
.request-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.request-photo { height: 110px; background: linear-gradient(135deg, #9fb8ae, #e5d7bd); display: flex; align-items: end; padding: 14px; }
.request-photo.hvac { background: linear-gradient(135deg, #b9c5cf, #e8e3d8); }
.request-photo.electric { background: linear-gradient(135deg, #d4b564, #f1e8cb); }
.status-pill { display: inline-flex; width: fit-content; align-items: center; gap: 6px; border-radius: 999px; background: rgba(255,255,255,.9); padding: 6px 10px; font-weight: 700; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.status-dot.completed { background: var(--sage-deep); }
.request-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.request-card h3 { font-family: "Newsreader", serif; font-size: 22px; margin: 0 0 8px; }
.request-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.5; margin: 0; }
.card-meta { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; color: #78837f; font-size: 11px; }
.card-meta button { border: 0; color: var(--sage-deep); background: transparent; font-weight: 700; }

.owner-subnav { display: flex; gap: 6px; margin: -22px 0 24px; padding: 5px; width: fit-content; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.55); }
.owner-subnav button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.owner-subnav button.active { background: var(--ink); color: white; box-shadow: 0 4px 10px rgba(23,42,38,.14); }
.owner-subnav span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: rgba(100,130,120,.14); font-size: 9px; text-align: center; }
.owner-subnav button.active span { background: rgba(255,255,255,.16); }
.directory-panel { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.directory-panel[hidden], [data-owner-panel][hidden] { display: none; }
.directory-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.directory-heading h2 { margin: 0 0 6px; font-family: "Newsreader", serif; font-size: 34px; }
.directory-heading p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.directory-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 220px; gap: 12px; align-items: end; margin: 26px 0 18px; padding: 14px; border-radius: 12px; background: #f1eee5; }
.directory-toolbar.vendor-toolbar { grid-template-columns: minmax(220px, 1fr) 210px 210px; }
.directory-toolbar label { margin: 0; }
.directory-toolbar input, .directory-toolbar select { background: white; }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.directory-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.directory-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--sage); color: var(--sage-deep); font-family: "Newsreader", serif; font-size: 18px; font-weight: 700; }
.directory-card.vendor-card .directory-avatar { background: #efe7d5; color: #805f2d; }
.directory-card h3 { margin: 1px 0 4px; font-family: "Newsreader", serif; font-size: 22px; }
.directory-property { display: block; margin-bottom: 13px; color: var(--sage-deep); font-size: 11px; font-weight: 700; }
.contact-list { display: grid; gap: 7px; }
.contact-list a, .contact-list span { color: var(--ink-soft); font-size: 11px; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--sage-deep); text-decoration: underline; }
.directory-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.directory-actions { display: flex; align-items: center; gap: 8px; }
.tenant-invite-button { padding: 7px 10px; border: 1px solid #c8b16f; border-radius: 8px; background: #fffaf0; color: #72551f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tenant-invite-button:hover { background: #f3e7c7; }
.record-action-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink-soft); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.record-action-button:hover { border-color: #9fb0aa; color: var(--sage-deep); }
.record-action-button.danger { color: #9a4938; }
.record-action-button.danger:hover { border-color: #d7a295; background: #fff5f2; }
.invite-status.invited { background: #fff2d1; color: #7b5a16; }
.invite-status.active { background: #e2f0e8; color: #285b46; }
.directory-tag { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #eef2ed; color: var(--sage-deep); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.trusted-tag::before { content: "✓"; margin-right: 4px; }
.directory-note { margin: 10px 0 0; color: #75817d; font-size: 11px; line-height: 1.5; }
.empty-directory { grid-column: 1 / -1; padding: 44px 20px; border: 1px dashed #b7c0bd; border-radius: 14px; color: var(--ink-soft); text-align: center; }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.property-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.property-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.property-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--sage); color: var(--sage-deep); font-size: 19px; }
.property-card h3 { margin: 0 0 5px; font-family: "Newsreader", serif; font-size: 25px; }
.property-card > p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.property-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 18px 0 0; }
.property-metrics span { padding: 10px; border-radius: 9px; background: #f5f2ea; color: #717671; font-size: 9px; text-align: center; }
.property-metrics strong { display: block; margin-bottom: 3px; color: var(--ink); font-family: "Newsreader", serif; font-size: 19px; }
.property-card .property-note { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }
.property-card-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.three-fields { grid-template-columns: 1fr 90px 120px; }
.dialog-intro { margin: -8px 0 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.invite-code-box { margin: 18px 0 12px; padding: 15px; border: 1px dashed #c8ad62; border-radius: 11px; background: #fffaf0; text-align: center; }
.invite-code-box span, .invite-code-box strong { display: block; }
.invite-code-box span { color: #7e765f; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.invite-code-box strong { margin-top: 7px; color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 21px; letter-spacing: .08em; }
.prototype-note { color: #777b76; font-size: 10px; line-height: 1.55; }
.contact-alerts-dialog { width: min(610px, calc(100vw - 28px)); }
.alert-preferences { display: grid; gap: 9px; margin: 5px 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f7f4ec; }
.alert-preferences legend { padding: 0 6px; color: var(--ink); font-size: 12px; font-weight: 800; }
.check-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin: 0; padding: 11px; border: 1px solid transparent; border-radius: 9px; background: white; cursor: pointer; }
.check-option:has(input:checked) { border-color: #d1bb78; background: #fffaf0; }
.check-option input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--gold); }
.check-option strong, .check-option small { display: block; }
.check-option small { margin-top: 3px; color: #777b76; font-size: 10px; font-weight: 500; line-height: 1.45; }
.delivery-note { margin: 0; padding: 11px 12px; border-radius: 9px; background: #edf2ed; color: #57665f; font-size: 10px; line-height: 1.55; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); padding: 18px; border-radius: 16px; }
.stat-card.attention { background: var(--rust-soft); border-color: #e7bfae; }
.stat-card span, .stat-card small, .stat-card strong { display: block; }
.stat-card span { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.stat-card strong { font-family: "Newsreader", serif; font-size: 42px; margin: 8px 0 2px; }
.stat-card small { color: #7b8783; font-size: 11px; }
.owner-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 20px; }
.work-queue, .agent-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.work-queue select { background: #f1eee5; border: 0; border-radius: 9px; padding: 9px 12px; color: var(--ink); }
.owner-request-list { border-top: 1px solid var(--line); }
.owner-request { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 17px 4px; color: var(--ink); }
.owner-request:hover { background: #faf8f1; }
.priority-marker { width: 11px; height: 44px; border-radius: 999px; background: #aac1b5; }
.priority-marker.urgent { background: var(--rust); }
.owner-request strong, .owner-request small { display: block; }
.owner-request strong { margin-bottom: 5px; }
.owner-request small { color: #73807c; }
.owner-request-meta { text-align: right; }
.owner-request-meta span { display: block; color: var(--sage-deep); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.owner-request-meta small { margin-top: 5px; }
.agent-panel { background: var(--ink); color: white; align-self: start; }
.agent-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #49655e; border-radius: 999px; color: #cfe1d8; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.agent-panel h2 { font-size: 30px; margin-top: 20px; }
.agent-panel > p { color: #b8c6c2; font-size: 13px; line-height: 1.6; }
.agent-actions { margin-top: 22px; border-top: 1px solid #405850; }
.agent-action { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid #405850; background: transparent; color: white; padding: 15px 0; }
.agent-action small, .agent-action strong { display: block; }
.agent-action small { color: #9eb1ab; font-size: 10px; margin-top: 4px; }
.action-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #3b554e; }
.action-icon.urgent { background: var(--rust); }
.guardrail-note { margin-top: 22px; border-radius: 12px; padding: 14px; background: #213b35; }
.guardrail-note strong { font-size: 12px; }
.guardrail-note p { color: #aebeba; font-size: 11px; line-height: 1.5; margin: 5px 0 0; }

dialog { color: var(--ink); border: 0; padding: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(16, 29, 26, .62); backdrop-filter: blur(5px); }
.request-dialog { width: min(680px, calc(100vw - 28px)); }
.request-dialog form { padding: 28px; }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 24px; }
.dialog-header h2 { font-size: 34px; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 22px; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; margin-bottom: 17px; }
label[hidden] { display: none; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 12px 13px; color: var(--ink); }
.locked-property { min-height: 45px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid #c9d8ce; border-radius: 10px; background: #f1f5f0; }
.locked-property-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--sage); color: var(--sage-deep); font-size: 16px; }
.locked-property strong, .locked-property small { display: block; }
.locked-property small { margin-top: 2px; color: #74817d; font-size: 10px; font-weight: 500; }
.lock-mark { padding: 5px 7px; border-radius: 999px; background: white; color: var(--sage-deep); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-box { border: 1px dashed #aab8b3; border-radius: 12px; padding: 14px; grid-template-columns: auto 1fr; align-items: center; cursor: pointer; background: #f4f7f2; }
.upload-box.has-files { border-style: solid; border-color: #91aa9e; background: #edf4ee; }
.upload-box input { display: none; }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--sage); color: var(--sage-deep); font-size: 20px; }
.upload-box strong, .upload-box small { display: block; }
.upload-box small { max-width: 560px; color: #77837f; margin-top: 3px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.text-button { border: 0; background: transparent; color: var(--ink-soft); padding: 12px; font-weight: 700; }
.detail-dialog { width: min(760px, calc(100vw - 28px)); max-height: 88vh; }
.detail-shell { padding: 28px; }
.detail-topline { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.detail-title { font-family: "Newsreader", serif; font-size: 36px; margin: 6px 0 8px; }
.detail-meta { color: #74817d; font-size: 12px; }
.triage-box { margin: 22px 0; background: #edf3ed; border: 1px solid #cadbce; border-radius: 14px; padding: 16px; }
.triage-box.urgent { background: var(--rust-soft); border-color: #e7bfae; }
.triage-heading { display: flex; justify-content: space-between; gap: 10px; }
.triage-heading span { color: var(--sage-deep); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.triage-box p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.triage-followups { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(111,132,120,.25); }
.triage-followups > strong { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.triage-followups ul { margin: 7px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.request-photos { margin: 0 0 22px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #f7f4ec; }
.request-photos-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.request-photos-heading h3 { margin: 0; font-family: "Newsreader", serif; font-size: 23px; }
.request-photos-heading span { color: #74817d; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.photo-gallery a { display: block; min-height: 120px; border-radius: 10px; overflow: hidden; background: #dce4df; }
.photo-gallery img { width: 100%; height: 100%; min-height: 120px; max-height: 210px; display: block; object-fit: cover; transition: transform .2s ease; }
.photo-gallery a:hover img { transform: scale(1.025); }
.detail-columns { display: grid; grid-template-columns: 1fr .9fr; gap: 20px; }
.detail-section h3 { font-family: "Newsreader", serif; font-size: 23px; margin: 0 0 12px; }
.timeline { border-left: 1px solid var(--line); margin-left: 6px; padding-left: 18px; }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--sage-deep); left: -23px; top: 4px; }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item strong { font-size: 12px; }
.timeline-item p { color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin: 4px 0; }
.timeline-item small { color: #89938f; font-size: 10px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.small-button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 9px; padding: 10px 12px; font-weight: 700; font-size: 11px; }
.small-button.primary { background: var(--ink); color: white; border-color: var(--ink); }
.small-button.danger { color: #9a4938; border-color: #e0b2a7; }
.small-button.danger:hover { background: #fff5f2; border-color: #c97e6d; }
.completed-button { color: #66736f; background: #edf1ed; cursor: default; }
.vendor-brief { margin: 0 0 22px; padding: 18px; border: 1px solid #b9d0c2; border-radius: 14px; background: #f3f7f2; }
.vendor-brief-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.vendor-brief-heading .eyebrow { margin-bottom: 3px; }
.vendor-brief h3 { margin: 0; font-family: "Newsreader", serif; font-size: 24px; }
.vendor-brief pre { margin: 0; padding: 14px; border-radius: 10px; background: white; border: 1px solid var(--line); color: var(--ink-soft); font: 12px/1.65 "DM Sans", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.vendor-guardrail { margin: 10px 0 0; color: #6c7773; font-size: 11px; }
.confirm-dialog { width: min(440px, calc(100vw - 28px)); }
.danger-icon { background: #f5ddd6; color: #9a4938; }
.danger-button { border: 0; border-radius: 10px; padding: 12px 18px; background: #9a4938; color: white; font-weight: 800; }
.danger-button:hover { background: #7f382b; }
.confirm-shell { padding: 28px; }
.confirm-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--sage); color: var(--sage-deep); font-weight: 800; }
.confirm-shell h2 { margin: 3px 0 8px; font-family: "Newsreader", serif; font-size: 31px; }
.confirm-shell > p { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.confirm-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 14px; border-radius: 10px; background: #f1f2ed; }
.confirm-summary span { color: #77817e; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.confirm-summary strong { color: var(--sage-deep); }
.message-form { display: flex; gap: 8px; margin-top: 14px; }
.message-form input { margin: 0; }
.message-form button { border: 0; border-radius: 9px; padding: 0 14px; background: var(--sage-deep); color: white; font-weight: 700; }
.message-form button:disabled { opacity: .72; cursor: wait; }
.timeline-item.pending { margin-left: -10px; padding: 10px 12px; background: #f5f7f3; border: 1px solid #cbd6cf; border-radius: 10px; }
.timeline-item.pending::before { left: -14px; }
.timeline-item.pending small { color: var(--sage-deep); font-weight: 700; }
.sending-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--sage-deep); animation: sending-pulse 1s ease-in-out infinite; }
.message-feedback { min-height: 18px; margin: 7px 2px 0; color: var(--ink-soft); font-size: 12px; }
.message-feedback.error { color: var(--rust); font-weight: 650; }
@keyframes sending-pulse { 50% { opacity: .3; transform: scale(.78); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 16px; background: var(--ink); color: white; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; transition: .25s ease; z-index: 30; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.empty-state { grid-column: 1 / -1; border: 1px dashed #b7c0bd; border-radius: 16px; padding: 40px; text-align: center; color: var(--ink-soft); background: rgba(255,255,255,.4); }

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 340px; padding: 45px 7vw; }
  .login-brand-panel img { width: 110px; height: 106px; }
  .topbar { grid-template-columns: 1fr auto; }
  .role-switch { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 20; box-shadow: var(--shadow); }
  .session-badge { display: none; }
  .user-chip { display: flex; }
  .user-chip .avatar, .user-copy { display: none; }
  .request-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .owner-layout { grid-template-columns: 1fr; }
  .directory-grid, .property-grid { grid-template-columns: 1fr; }
  .directory-toolbar, .directory-toolbar.vendor-toolbar { grid-template-columns: 1fr; }
  .agent-panel { order: -1; }
}

@media (max-width: 620px) {
  .login-brand-panel { min-height: 275px; padding: 28px 24px; }
  .login-brand-panel img { width: 86px; height: 82px; }
  .login-brand-panel h1 { font-size: 40px; }
  .login-form-panel { padding: 38px 24px; }
  .topbar { height: 80px; padding: 0 18px; }
  .brand { gap: 8px; }
  .brand-logo { width: 58px; height: 56px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 9px; }
  .contact-alerts-button { padding: 7px 8px; }
  .contact-alerts-label { display: none; }
  main { width: calc(100vw - 32px); padding-top: 34px; }
  .hero { align-items: stretch; flex-direction: column; }
  .hero h1 { font-size: 44px; }
  .hero .primary-button, .hero .secondary-button { width: 100%; }
  .owner-subnav { width: 100%; overflow-x: auto; }
  .owner-subnav button { white-space: nowrap; }
  .directory-heading { flex-direction: column; }
  .directory-heading .primary-button { width: 100%; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emergency-note { grid-template-columns: auto 1fr; }
  .emergency-note a { grid-column: 2; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .filter-tabs { width: fit-content; }
  .request-grid, .stats-grid { grid-template-columns: 1fr; }
  .form-grid, .detail-columns, .three-fields { grid-template-columns: 1fr; }
  .request-dialog form, .detail-shell { padding: 20px; }
}
