@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');
:root{--ink:#17382f;--paper:#f7f5ee;--muted:#6c786c;--line:#dce1d4;--gold:#c8a66b;--forest:#183c32;color-scheme:light;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--forest);border-radius:9px;padding:12px 20px;min-height:46px;background:var(--forest);color:white;cursor:pointer;font-weight:600}button:hover,.button:hover{filter:brightness(1.15)}button:disabled{opacity:.5;cursor:wait}.secondary{background:transparent;color:var(--forest);border-color:var(--line)}.danger{color:#9e332f;border-color:#e4c6c0;background:white}.site-header{max-width:1400px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:25px 5%;gap:25px}.brand{display:flex;align-items:center;gap:13px;font-weight:700;font-size:18px;letter-spacing:3px}.brand-icon{display:grid;place-items:center;background:var(--forest);color:#f0dfbc;border-radius:50%;width:46px;height:46px;font-family:Georgia,serif;font-size:27px;letter-spacing:0}.brand-small{display:block;font-size:9px;letter-spacing:3.2px;margin-top:3px}nav{display:flex;align-items:center;gap:24px;font-size:14px}nav a{padding:10px 0}nav a[aria-current=page]{border-bottom:2px solid var(--gold)}nav button{font-size:12px;padding:7px 12px;min-height:34px}.splash{display:grid;grid-template-columns:1fr 1fr;min-height:calc(100dvh - 105px);max-width:1600px;margin:auto}.splash-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:55px clamp(25px,7vw,120px)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#73816c;margin-bottom:22px}h1,h2{font-family:'Libre Baskerville',Georgia,serif;font-weight:400;letter-spacing:-1.5px}h1{font-size:clamp(35px,4.1vw,64px);line-height:1.2;margin:0 0 24px}h2{font-size:27px;letter-spacing:-.7px;margin:0 0 16px}h3{font-size:18px;margin:0 0 10px}p{line-height:1.65}.intro{font-size:17px;color:var(--muted);max-width:380px;margin:0 0 30px}.splash-art{position:relative;margin:12px 30px 30px 0;border-radius:130px 12px 12px 12px;background:#c9d0b7 url('/assets/homestead-art.webp') center/cover;min-height:440px;overflow:hidden}.splash-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#17382f88,transparent 65%)}.art-caption{position:absolute;z-index:1;color:white;bottom:40px;left:35px;right:25px;font:25px Georgia,serif}.art-caption small{display:block;font:10px 'DM Sans',sans-serif;letter-spacing:3px;margin-bottom:13px}.login-form{width:100%;max-width:355px;display:grid;gap:13px}label{display:grid;gap:8px;font-size:13px;font-weight:600}input,select{border:1px solid #d2dacd;background:white;border-radius:9px;min-height:48px;padding:11px 13px;color:var(--ink);width:100%}input:focus,button:focus-visible,a:focus-visible{outline:3px solid #b99a5d;outline-offset:3px}.page{max-width:1100px;margin:30px auto 80px;padding:0 25px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 30px}.page-heading h1{font-size:40px;margin:0}.page-heading .eyebrow{margin-bottom:12px}.hero{background:var(--forest);border-radius:18px;color:white;overflow:hidden;display:grid;grid-template-columns:1.2fr 1fr;margin:20px 0 35px}.hero-copy{padding:40px}.hero-copy .eyebrow{color:#d2bc89}.hero h2{font-size:35px}.hero .button{background:#e8d8b6;border-color:#e8d8b6;color:#17382f;margin-top:12px}.hero img{width:100%;height:100%;min-height:270px;object-fit:cover}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:25px}.project-card{padding:0;overflow:hidden}.project-card img{width:100%;aspect-ratio:1.7;object-fit:cover}.project-card div{padding:20px}.project-card p{font-size:14px;color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center;margin:30px 0 18px}.text-link{font-size:14px;border-bottom:1px solid #b6bea9;padding-bottom:4px}.profile-grid{display:grid;grid-template-columns:300px 1fr;gap:25px}.profile-identity{text-align:center}.portrait{width:84px;height:84px;object-fit:cover;border-radius:50%;background:#ebeddf;display:block;margin:auto}.portrait.big{width:150px;height:150px;margin:5px auto 22px}.profile-identity label{margin-top:18px}.form-stack{display:grid;gap:20px}.portrait-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.portrait-choice{border:3px solid transparent;padding:0;background:#f0f2e9;border-radius:12px;overflow:hidden;min-height:0;aspect-ratio:1}.portrait-choice img{width:100%;height:100%;object-fit:cover}.portrait-choice[aria-pressed=true]{border-color:var(--gold);box-shadow:0 0 0 2px white inset}.family-card{text-align:center}.family-card h3{margin:17px 0 7px}.family-card p{font-size:13px;color:var(--muted);margin:0}.presence{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-top:16px}.presence:before{content:'';height:7px;width:7px;background:#b5bdad;border-radius:50%}.presence.online:before{background:#4f9c63}.family-grid{grid-template-columns:repeat(4,1fr)}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.admin-grid .card{display:grid;align-content:start;gap:15px}.checks{display:grid;gap:12px}.checks label{display:flex;align-items:center;gap:10px}.checks input{width:18px;min-height:18px}.member-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.member-row small{display:block;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.member-row button{font-size:12px;min-height:35px;padding:6px 11px}.code{font-family:ui-monospace,monospace;overflow-wrap:anywhere;padding:18px;background:#f1f2e9;border-radius:10px;user-select:all;font-size:16px}.inline-status{font-size:13px;color:var(--muted);margin:0}.error{color:#9e332f}.loading{text-align:center;padding:100px 20px;color:var(--muted)}#notice{position:fixed;z-index:99999;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(90vw,600px);padding:15px 22px;color:white;background:#17382f;border:1px solid #52694e;border-radius:10px;box-shadow:0 5px 25px #0003}#notice[data-error=true]{background:#85392e}.empty{color:var(--muted);padding:25px 0}.family-map-bar{display:flex;align-items:center;flex-wrap:wrap;gap:15px;background:var(--forest);color:white;padding:9px 18px;font:13px system-ui;position:relative;z-index:30}.family-map-bar a{color:#f0dfbc}.family-map-bar span{margin-right:auto}.family-live #dragTrees,.family-live #rotateItem,.family-live #rotateLeft,.family-live #rotateRight,.family-live #rotationReadout,.family-live #multiSelect,.family-live #hideSelected,.family-live #showSelected,.family-live #editFenceStart,.family-live #addTree,.family-live #treeSize,.family-live #smallerTree,.family-live #largerTree,.family-live #panelMode,.family-live #addFencePanel,.family-live #panelActions,.family-live #fenceEditToolbar,.family-live #fenceEditorPanel,.family-live #objectFields,.family-live #unlockObject,.family-live #confirmObject,.family-live #hideObject,.family-live #selectionReference,.family-live #correctionPanel,.family-live .layout-panel,.family-live .project-edit-controls{display:none!important}.family-live .fpanel.objects-panel button{pointer-events:auto}
@media(max-width:800px){.site-header{padding:18px 22px;align-items:flex-start;gap:18px}.brand{font-size:14px;letter-spacing:2px}.brand-small{font-size:8px;letter-spacing:2px}.brand-icon{width:38px;height:38px;font-size:22px}nav{gap:14px;flex-wrap:wrap;justify-content:flex-end;font-size:12px}.splash{grid-template-columns:1fr}.splash-copy{padding:45px 27px}.splash-art{margin:0 22px 25px;min-height:320px;border-radius:80px 10px 10px 10px}.art-caption{bottom:25px;font-size:22px}.grid{grid-template-columns:repeat(2,1fr)}.family-grid{grid-template-columns:repeat(2,1fr)}.profile-grid,.admin-grid{grid-template-columns:1fr}.profile-identity{display:grid;justify-items:center}.profile-identity label{width:100%}.hero{grid-template-columns:1fr}.hero img{max-height:250px;min-height:200px}.page{margin-top:15px}.page-heading h1{font-size:32px}.portrait-picker{grid-template-columns:repeat(5,1fr);gap:8px}.card{padding:20px}.project-card{padding:0}}@media(max-width:450px){.site-header{flex-direction:column;gap:12px}nav{justify-content:flex-start;gap:20px}.grid:not(.family-grid){grid-template-columns:1fr}.hero-copy{padding:28px}.page{padding:0 18px}.page-heading{align-items:flex-start;flex-direction:column}.family-grid{gap:12px}.family-card{padding:20px 10px}.portrait-picker{grid-template-columns:repeat(4,1fr)}}
/* Match the established homestead viewer: forest, wood and warm parchment. */
:root{--ink:#fff0cd;--paper:#17291c;--muted:#dfc99d;--line:#a76e32;--forest:#563619;--gold:#e5ae52;color-scheme:dark;background:#17291c}body{background:radial-gradient(ellipse at top,#374d2a,#142217 80%);min-height:100vh}.site-header{background:linear-gradient(#ffffff10,#0004),url('/assets/wood.webp') center/350px;border:3px solid #c68b3f;border-radius:15px;margin:10px auto;box-shadow:0 4px 10px #0006;padding:16px 25px}.brand-icon{background:#3d2716;color:#ffdf91;border:2px solid #c68b3f}.card{background:linear-gradient(135deg,#fff0d0,#ead2a4);color:#402b17;border:3px solid #aa6d2d;box-shadow:0 4px 12px #0005}.card h2,.card h3,.card label{color:#482910}.card p,.card small,.card .presence{color:#684a27}.hero,.splash-copy{background:linear-gradient(#0002,#0005),url('/assets/wood.webp') center/350px;border:3px solid #ba853f;border-radius:15px;box-shadow:0 4px 12px #0005}.splash-copy{margin:12px 20px 30px 30px;padding:45px}.hero-copy .eyebrow,.eyebrow,.intro{color:#f0d29e}button,.button,.secondary{background:linear-gradient(#fff0c9,#e2b570);color:#432410;border:1px solid #ba853f;box-shadow:0 2px 4px #0003}input,select{background:#fff7e4;color:#402b17;border-color:#b98b51}.portrait-choice{background:#dec395}.code{background:#ead2a4;color:#402b17}.portrait{background:#e5d0a6}.text-link{border-color:#b98b51}.project-card p{color:#684a27}.inline-status{color:inherit}.splash-art{border:3px solid #ba853f;border-radius:15px}.login-form [hidden]{display:none!important}@media(max-width:800px){.splash-copy{margin:12px 22px 25px;padding:28px}.site-header{margin:6px 10px}}
/* Compact signed-in dashboard and persistent navigation. */
.site-header{position:sticky;top:8px;z-index:100;padding:12px 22px;gap:18px}.brand-icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.brand-icon{overflow:hidden;flex-shrink:0}nav{gap:18px}.page{margin-top:22px}.home-welcome{display:flex;align-items:center;gap:17px;margin:22px 0}.home-portrait{display:block;width:68px;height:68px;border:2px solid #c68b3f;border-radius:50%;object-fit:cover}.home-welcome h1{font-size:30px;line-height:1.25;letter-spacing:-.7px;margin:0 0 8px}.home-welcome .text-link{font-size:13px}.homestead-entry{display:flex;align-items:center;gap:17px;padding:14px 18px;background:linear-gradient(#ffffff0c,#0003),url('/assets/wood.webp') center/350px;border:2px solid #ba853f;border-radius:13px;box-shadow:0 3px 8px #0004;min-height:96px}.homestead-entry>img{width:66px;height:66px;object-fit:cover;border-radius:9px}.homestead-entry strong{display:block;font:700 23px Georgia,serif;color:#fff0cd}.homestead-entry small{display:block;color:#e6ce9f;font-size:14px;margin-top:6px}.entry-action{margin-left:auto;background:linear-gradient(#fff0c9,#e2b570);color:#432410;border:1px solid #ba853f;border-radius:8px;padding:10px 16px;font-size:14px;font-weight:600}.home-page .section-title{margin:24px 0 14px}.home-page .section-title h2{font-size:24px;margin:0}.home-page .grid{gap:16px}.home-page .project-card img{height:140px;aspect-ratio:auto;object-fit:cover}.home-page .project-card div{padding:16px}.home-page .project-card h3{font-size:17px}.home-page .project-card p{font-size:13px;line-height:1.5;margin:8px 0 14px}.home-page .family-card{padding:18px}.home-page .family-card .portrait{width:62px;height:62px}.home-page .family-card h3{margin:12px 0 5px;font-size:16px}
@media(max-width:800px){.site-header{top:0;padding:12px 16px}nav{gap:12px}.home-welcome h1{font-size:26px}.homestead-entry{gap:13px;padding:12px}.homestead-entry strong{font-size:21px}.home-page .family-card{padding:16px 10px}}
@media(max-width:450px){.site-header{gap:10px;margin:0;border-radius:0 0 12px 12px}.home-welcome{gap:13px;margin:18px 0}.home-portrait{width:55px;height:55px}.home-welcome h1{font-size:24px}.homestead-entry>img{width:52px;height:52px}.homestead-entry strong{font-size:19px}.homestead-entry small{font-size:12px}.entry-action{font-size:12px;padding:9px}.home-page .project-card img{height:130px}}

/* Keep conditional form controls hidden when their option is inactive. */
[hidden]{display:none!important}
