:root {
    color-scheme: light;
    --ink: #202b27;
    --muted: #566761;
    --green: #194a3d;
    --deep: #193d36;
    --pale: #edf3ec;
    --paper: #f5f6ef;
    --white: #fff;
    --line: #dbe4da;
    --rose: #f9e7e2;
    --amber: #f6edda;
    font-family: "Avenir Next", Avenir, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #bd782b; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.05rem, 4.8vw, 3.4rem); line-height: 1.04; letter-spacing: -.052em; }
h2 { font-size: 1.28rem; line-height: 1.18; letter-spacing: -.027em; }
h3 { font-size: 1.08rem; line-height: 1.18; }
p { line-height: 1.55; }
small { color: var(--muted); font-size: .88rem; }
strong { font-weight: 700; }
.glyph { flex: 0 0 auto; vertical-align: middle; }
.application { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
    position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 18px 22px;
    background: #fdfefb; border-right: 1px solid var(--line); overflow: auto;
}
.brand, .mobile-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--deep); text-decoration: none; font-size: 1.55rem; font-weight: 790; letter-spacing: -.07em; }
.brand > span > span { font-weight: 520; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--green); color: #f8faf0; }
.sidebar .brand { margin: 0 8px 34px; }
.navigation, .secondary { display: grid; gap: 5px; }
.navigation a, .secondary a { display: flex; align-items: center; gap: 13px; padding: 11px 12px; min-height: 46px; color: var(--muted); text-decoration: none; border-radius: 10px; font-weight: 630; }
.navigation a:hover, .secondary a:hover { background: #f0f5ed; color: var(--green); }
.navigation a.active, .secondary a.active { background: #e6f0e5; color: #154c3b; }
.secondary { margin-top: auto; padding-top: 32px; }
.secondary form { padding-left: 12px; }
.topbar { min-height: 72px; padding: 12px clamp(20px, 4vw, 52px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #fdfefb; }
.location { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.location .glyph { width: 18px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; color: var(--green); border: 1px solid var(--line); text-decoration: none; background: white; }
.icon-button.mobile-settings { display: none; }
.mobile-brand, .mobile-links { display: none; }
.content { width: 100%; max-width: 1500px; padding: 34px clamp(20px, 4vw, 52px) 56px; margin-inline: auto; }
.content > p { margin-top: 18px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: clamp(24px, 5vw, 56px); border-radius: 24px; overflow: hidden; color: #f7f9f0; background: radial-gradient(ellipse at top right,#527d66, transparent 55%), linear-gradient(130deg,#193d36,#305c4a); }
.hero h1 { font-size: clamp(2.45rem, 5vw, 4.4rem); margin: 12px 0; }
.hero p { color: #e0eee3; font-size: 1.03rem; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-weight: 640; color: #dcebe0; }
.eyebrow .glyph { width: 19px; }
.weather { min-width: 198px; padding: 12px 15px; border-radius: 14px; background: #f1f9f019; border: 1px solid #e5f6e43b; display: flex; align-items: center; gap: 14px; }
.weather small { display: block; color: #e0eee3; margin-top: 4px; }
.photo-frame { position: relative; margin-top: 18px; border-radius: 20px; background: var(--deep); overflow: hidden; }
.photo-frame img { display: block; width: 100%; height: clamp(220px, 45vh, 530px); object-fit: contain; }
.photo-next { position: absolute; bottom: 14px; right: 14px; background: #ffffffeb; color: var(--green); min-width: 46px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-grid { margin-top: 18px; }
.card { min-width: 0; padding: 21px; border-radius: 17px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 3px #18382a06; overflow-wrap: anywhere; }
.card > h2 { margin-bottom: 14px; }
.card > p + p { margin-top: 7px; }
.card-head, .section-title, .page-heading { display: flex; align-items: center; gap: 12px; }
.card-head { margin-bottom: 12px; }
.page-heading { margin-bottom: 24px; gap: 15px; }
.page-heading p { color: var(--muted); margin-top: 5px; }
.section-title { justify-content: space-between; margin-bottom: 10px; }
.tile-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; color: #234e3c; }
.page-heading .tile-icon { width: 54px; height: 54px; }
.mint { background: #e3f1e8; }
.rose { background: var(--rose); color: #853d3e; }
.amber { background: var(--amber); color: #795625; }
.count { padding: 2px 8px; margin-left: 4px; background: var(--pale); border-radius: 999px; color: var(--green); font-size: .9rem; }
.overview { display: flex; flex-direction: column; min-height: 195px; }
.empty { color: var(--muted); }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 16px; text-decoration: none; font-weight: 720; }
.card-link .glyph { width: 18px; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #e8eee7; }
.line strong { min-width: 0; }
.line small { display: block; margin-top: 3px; }
.line span { color: var(--muted); }
.line .urgent { color: #9b342c; font-weight: 750; }
.line form { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 17px; }
.fit { align-self: start; }
.stack { display: grid; gap: 12px; align-content: start; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.section-gap { margin-top: 22px; }
.muted { color: var(--muted); }
.notice { padding: 12px 15px; border-radius: 12px; background: #faefdb; color: #573709; margin-bottom: 15px; }
.card .notice { margin-top: 12px; }
.inline, .chips, .device-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; border: 1px solid transparent; border-radius: 9px; padding: 8px 13px; background: var(--green); color: white; text-decoration: none; font-weight: 690; line-height: 1.25; }
button:hover, .button:hover { filter: brightness(.94); }
.secondary-button { background: #edf5ee; color: #194a3d; border-color: #dce9de; }
.text-button { background: transparent; color: var(--green); padding: 5px 0; text-decoration: underline; text-underline-offset: .18em; font-size: .92rem; text-align: left; }
.danger { color: #912e36; }
.chip { display: inline-block; padding: 4px 10px; background: #edf3ec; color: var(--green); border-radius: 999px; font-size: .9rem; min-height: unset; }
.check-square { width: 32px; height: 32px; min-height: 32px; border: 2px solid #a2bba6; padding: 0; background: #f5faf4; }
.check-square:hover { background: #dbece0; }
label { display: grid; gap: 5px; font-weight: 640; font-size: .94rem; min-width: 0; }
input, textarea, select { width: 100%; min-height: 42px; min-width: 0; border: 1px solid #bacac0; border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--green); }
.choice { display: flex; align-items: center; gap: 8px; }
textarea { resize: vertical; }
fieldset { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
fieldset label { margin-top: 8px; }
details { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
details > :not(summary) { margin-top: 10px; }
details.card { margin-top: 0; padding: 18px; }
summary { font-weight: 650; color: var(--green); }
output { display: block; white-space: pre-line; color: var(--green); }
output:empty { display: none; }
.mail-preview dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 20px; }
.mail-preview dd { margin: 0; }
.mail-body { padding: 13px 0; border-block: 1px solid var(--line); margin-bottom: 14px; white-space: pre-wrap; }
.auth-page { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.auth-panel { width: min(100%, 530px); padding: 30px clamp(24px,6vw,80px); margin: auto; }
.auth-panel h1 { margin: 35px 0 12px; }
.auth-panel > form { margin: 22px 0 18px; }
.auth-art { display: grid; place-content: center; justify-items: center; gap: 26px; min-height: 100dvh; background: radial-gradient(ellipse at 65% 22%,#648e72,transparent 65%), linear-gradient(125deg,#183b32,#295a47); color: white; font-size: clamp(2rem,6vw,6rem); font-weight: 750; letter-spacing: -.075em; }
.roof { width: 15vw; aspect-ratio: 1; border-top: 5px solid #d4e4d8; border-left: 5px solid #d4e4d8; border-radius: 13px; transform: translateY(55%) rotate(45deg); }
.wall-app .sidebar { display: none; }
.wall-app { display: block; }
.wall-app .topbar { position: sticky; top: 0; z-index: 2; }
.wall-app .button, .wall-app button { min-height: 48px; }
@media (max-width: 1050px) {
    .application { grid-template-columns: 192px minmax(0,1fr); }
    .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .application { display: block; }
    .sidebar { position: fixed; z-index: 5; inset: auto 0 0; height: auto; border: 0; border-top: 1px solid var(--line); padding: 4px 4px max(5px,env(safe-area-inset-bottom)); }
    .sidebar .brand, .secondary, .location { display: none; }
    .navigation { display: flex; justify-content: space-around; gap: 2px; }
    .navigation a { flex: 1 1 auto; min-width: 0; padding: 6px 1px; flex-direction: column; justify-content: center; gap: 3px; font-size: .73rem; }
    .mobile-brand { display: inline-flex; font-size: 1.3rem; }
    .icon-button.mobile-settings { display: grid; }
    .mobile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
    .topbar { min-height: 58px; padding: 8px 16px; }
    .content { padding: 19px 14px 88px; }
    .split { grid-template-columns: 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .hero { border-radius: 17px; align-items: start; flex-direction: column; }
    .hero h1 { margin: 8px 0; }
}
@media (max-width: 420px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .field-grid { grid-template-columns: 1fr; }
    .card { padding: 16px; }
}
