:root{font:16px/1.5 Inter,"Segoe UI",sans-serif;color:#142d28;background:#f4f3ed;--ink:#142d28;--muted:#52615a;--line:#d7ded6;--green:#225646;--paper:#fffefa;--accent:#d4edb6}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column}
a{color:inherit}
[hidden]{display:none!important}
.shell{width:min(1120px, calc(100% - 48px));margin-inline:auto}
header{background:var(--paper);border-bottom:1px solid var(--line)}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 0}
.brand{display:inline-flex;gap:10px;align-items:center;font-weight:750;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--green);color:white;font-family:Georgia,serif;font-size:23px}
nav{display:flex;flex-wrap:wrap;align-items:center;gap:20px;font-size:.88rem}
nav a{text-decoration:none}
nav a:hover{text-decoration:underline}
main{flex:1}
.hero{padding:42px clamp(24px, 5vw, 62px);margin-top:28px;border-radius:18px;background:#163c32;color:#f8fcf5}
h1,h2,h3,p{margin-top:0}
h1{font-family:Georgia,serif;font-size:clamp(3rem, 7vw, 5.5rem);letter-spacing:-.055em;line-height:.98;margin-bottom:16px;font-weight:500}
.hero p{margin-bottom:0;color:#d5e7dc;max-width:43ch}
.section{margin:32px 0 48px;scroll-margin:18px}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.section-title h2{margin:0;font-size:clamp(1.3rem,3vw,1.9rem);letter-spacing:-.035em}
.section-title span{color:var(--muted);font-size:.86rem}
.search,.card,.empty,.panel{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:18px}
.search{display:grid;grid-template-columns:1.65fr 1fr auto;gap:12px;align-items:end;margin-bottom:16px}
label{display:grid;gap:5px;font-size:.86rem;font-weight:650}
input,select{font:inherit;color:var(--ink);width:100%;min-width:0;min-height:42px;padding:8px 11px;border:1px solid #9daaa2;border-radius:7px;background:white}
input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--green)}
.check{display:flex;align-items:center}
:focus-visible{outline:3px solid #94620a;outline-offset:3px}
.button{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:.88rem;font-weight:690;min-height:42px;padding:8px 14px;border-radius:7px;border:1px solid transparent;cursor:pointer;text-decoration:none;white-space:normal}
.primary{background:var(--green);color:white}
.primary:hover{background:#163c32}
.outline{background:var(--paper);border-color:var(--line);color:var(--ink)}
.outline:hover{border-color:var(--green)}
.text{background:transparent;color:var(--green);text-decoration:underline}
button:disabled{cursor:wait;opacity:.64}
.room-grid,.property-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:12px}
.room-grid>.empty{grid-column:1/-1}
.card{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.card p,.empty,.detail{margin:0}
.card h3,.panel h3{font-size:1.1rem;margin:0;overflow-wrap:anywhere}
.detail{color:var(--muted);font-size:.9rem;overflow-wrap:anywhere}
.rent{font-weight:750;font-size:1.35rem}
.rent small{font-size:.8rem;font-weight:500;color:var(--muted)}
.pill{border-radius:999px;padding:3px 9px;background:#e5eee6;font-size:.77rem;font-weight:700}
.approved{background:#d8eed0}.rejected,.error{color:#8a2921;background:#fae6e1}.pending{background:#f5eacb}
#notice,#dashboard-feedback,#auth-error{margin:10px 0;padding:10px 12px;border-radius:7px;background:#e5eee6}
#notice.error,#dashboard-feedback.error,#auth-error{color:#8a2921;background:#fae6e1}
.panel{margin-bottom:12px}
.panel>.property-grid{margin-top:14px}
.panel .card{background:#f8faf6}
.panel summary{cursor:pointer;font-weight:700}
.panel details,.form-actions{margin-top:12px}
.stack{display:grid;gap:9px;margin:12px 0}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
footer{border-top:1px solid var(--line);padding:18px 0;font-size:.85rem;color:var(--muted)}
dialog{max-width:min(430px,calc(100vw - 32px));width:100%;max-height:calc(100dvh - 32px);padding:22px;border:1px solid var(--line);border-radius:13px;background:var(--paper);color:var(--ink)}
dialog::backdrop{background:#122b278c}
dialog form,fieldset{display:grid;gap:10px}
fieldset{margin:0;padding:0;border:0;min-width:0}
@media(max-width:640px){
  .shell{width:calc(100% - 28px)}
  .masthead{align-items:flex-start;flex-direction:column;gap:10px}
  nav{gap:12px}
  .hero{margin-top:16px}
  .search{grid-template-columns:1fr}
}
