:root{--paper:#fffaf0;--white:#fff;--ink:#262922;--sub:#6c6e62;--honey:#eec64d;--honey2:#fff0b6;--stroke:#e8e4d8;--sage:#e8ecdf;--danger:#a84632;--r:18px;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:#736026}.boot{text-align:center;padding:40vh 20px;font-family:Georgia,serif;font-size:40px}.boot small{display:block;font:14px system-ui;color:var(--sub)}.shell{max-width:1200px;margin:auto;min-height:100dvh;display:grid;grid-template-columns:225px minmax(0,1fr)}.rail{position:sticky;top:0;height:100dvh;background:#fffef9;border-right:1px solid var(--stroke);padding:27px 16px;display:flex;flex-direction:column;gap:16px}.brand{font-family:Georgia,serif;font-size:25px;line-height:1.1;padding:7px 12px}.brand small{display:block;font:10px ui-sans-serif,sans-serif;letter-spacing:2px;color:#9b802c;margin-top:8px}.railnav{display:grid;gap:6px}.navbtn{display:flex;gap:12px;align-items:center;width:100%;border:0;background:transparent;border-radius:12px;text-align:left;padding:13px 14px;color:#51564d}.navbtn.active{background:#f3e7b7;color:#242920;font-weight:750}.navbtn .sym{font-size:18px;width:22px;text-align:center}.rail-foot{margin-top:auto;border-top:1px solid var(--stroke);padding:16px 12px;font-size:12px;color:var(--sub)}.content{min-width:0;padding:34px 42px 120px}.topline{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px;color:var(--sub);margin-bottom:22px}.pill{padding:7px 12px;border:1px solid var(--stroke);border-radius:99px;background:#fff;font-size:12px}.pagehead{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}.pagehead h1{font:normal clamp(29px,4vw,49px)/1.05 Georgia,serif;margin:0;letter-spacing:-1.5px}.pagehead p{color:var(--sub);line-height:1.5;margin:9px 0 0}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2.4px;text-transform:uppercase;color:#988031;margin-bottom:8px}.primary{border:0;background:var(--ink);color:#fff;border-radius:13px;padding:12px 18px;font-weight:700}.primary:hover{background:#444c3e}.accent{background:var(--honey);color:#28271d}.secondary{border:1px solid var(--stroke);background:#fff;color:var(--ink);padding:11px 14px;border-radius:12px;font-weight:650}.ghost{border:0;background:transparent;padding:8px;color:var(--sub)}.hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);background:#fff;border:1px solid var(--stroke);border-radius:22px;overflow:hidden;margin-bottom:24px;min-height:320px}.hero-photo{background:#edeae0;display:flex;align-items:center;justify-content:center;min-height:300px}.hero-photo img{width:100%;height:auto;max-height:570px;object-fit:contain;display:block}.hero-copy{padding:clamp(25px,4vw,46px);display:flex;flex-direction:column;justify-content:center;gap:12px;background:#fffdf6}.hero-copy h2{font:normal clamp(32px,4vw,52px)/1.06 Georgia,serif;margin:0;letter-spacing:-1px}.hero-copy p{color:#595b4f;line-height:1.7;margin:0}.hero-date{font-size:13px;color:#9a7f2a;letter-spacing:3px}.dashcols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pane{border:1px solid var(--stroke);background:var(--white);border-radius:18px;padding:20px;min-width:0}.pane h3{font:normal 25px Georgia,serif;margin:0 0 14px}.pane-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.muted{color:var(--sub)}.tiny{font-size:12px}.mood-rows{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mood-person{background:#faf6e9;border-radius:12px;padding:15px}.mood-person:nth-child(2){background:#f4f4f0}.mood-person strong{display:block;margin-bottom:8px}.mood-person .big{font-size:20px;font-weight:700}.mood-person small{display:block;color:#737467;margin-top:7px;line-height:1.5}.minirow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--stroke)}.minirow:last-child{border:0}.minirow span{min-width:0}.rooms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0}.room{border:1px solid var(--stroke);border-radius:16px;padding:18px;background:#fff;text-align:left;min-height:140px;display:flex;flex-direction:column;justify-content:space-between}.room:hover{border-color:#b6a75b;background:#fffdf7}.room b{font-size:18px}.room small{color:var(--sub);line-height:1.4}.room .index{font:italic 25px Georgia,serif;color:#bc972d}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 20px}.chip{border:1px solid var(--stroke);padding:9px 13px;border-radius:99px;background:#fff;font-size:13px;color:#52594f}.chip.active{background:#292f28;color:#fff;border-color:#292f28}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.search{border:1px solid var(--stroke);background:#fff;border-radius:12px;padding:12px 13px;flex:1;min-width:175px;outline:none}.search:focus,input:focus,textarea:focus,select:focus{outline:2px solid #d8b94f;outline-offset:1px}.records{display:grid;gap:10px}.record{background:#fff;border:1px solid var(--stroke);border-radius:15px;padding:15px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:start}.record-check{width:28px;height:28px;border:2px solid #c7be9f;border-radius:50%;background:#fff;font-size:15px}.record-check.checked{background:#d1bd61;border-color:#d1bd61}.record-main{min-width:0}.record-title{font-weight:750;font-size:16px;overflow-wrap:anywhere}.record-summary{margin-top:6px;color:var(--sub);font-size:12px;line-height:1.5}.record-photo{width:70px;height:70px;object-fit:contain;background:#f6f3ea;border-radius:9px;margin:10px 0;display:block}.record-bottom{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.status{display:inline-block;padding:5px 9px;font-size:11px;border-radius:99px;background:#f2f1e9;color:#666656}.status.ok{background:#e6efe1;color:#3c6135}.status.warn{background:#fff0c6;color:#76601e}.record-actions{display:flex;flex-direction:column;gap:5px;align-items:end}.smallbtn{border:1px solid var(--stroke);background:#fff;border-radius:9px;padding:8px 10px;font-size:12px}.empty{border:1px dashed #bcb8a8;border-radius:15px;text-align:center;padding:45px 16px;color:var(--sub);background:#fffdf8}.empty b{color:#41453d;display:block;font:normal 23px Georgia,serif;margin-bottom:8px}.section-title{font:normal 27px Georgia,serif;margin:28px 0 14px}.storyline{border-left:2px solid #dfc56e;padding-left:20px;margin-left:10px}.storyitem{position:relative;padding:8px 0 22px}.storyitem:before{position:absolute;content:'';width:11px;height:11px;border-radius:50%;background:#e5c65c;left:-26px;top:14px}.storydate{font-size:11px;letter-spacing:1px;color:#9c8339}.storytext{font-size:16px;margin-top:5px;font-weight:650}.intro{min-height:100dvh;background:#fffaf0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);align-items:stretch;max-width:1300px;margin:auto}.intro-image{background:#eae7e0;display:flex;justify-content:center;align-items:center}.intro-image img{width:100%;height:auto;max-height:100dvh;object-fit:contain;display:block}.intro-content{display:flex;flex-direction:column;justify-content:center;padding:clamp(30px,6vw,80px);gap:20px}.intro-content h1{font:normal clamp(40px,6vw,72px)/1.04 Georgia,serif;letter-spacing:-2px;margin:0}.intro-content p{color:#5e6055;line-height:1.8}.intro-content blockquote{border-left:3px solid #e7ca65;margin:0;padding:0 0 0 15px;line-height:1.65;color:#43483e}.intro-content .step{font-size:12px;color:#92742e;letter-spacing:2px}.intro-content .buttons{display:flex;gap:8px;flex-wrap:wrap}.bottom-nav{display:none}.backdrop{position:fixed;inset:0;background:#111b12a8;z-index:15;display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:#fffdf8;border-radius:20px;width:min(560px,100%);max-height:92dvh;overflow:auto;box-shadow:0 25px 90px #0004}.modalheader{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid var(--stroke)}.modalheader h2{margin:0;font:normal 28px Georgia,serif}.modalbody{padding:22px;display:grid;gap:15px}.field{display:grid;gap:6px}.field label{font-size:12px;color:#6a6d61;font-weight:700}.field input,.field textarea,.field select{width:100%;background:#fff;border:1px solid #d9d6c9;border-radius:11px;padding:12px;color:#242a22}.field textarea{resize:vertical;min-height:78px}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modalfooter{display:flex;gap:8px;justify-content:flex-end;padding:17px 22px;border-top:1px solid var(--stroke)}.maparea{height:280px;min-height:280px;border:1px solid var(--stroke);border-radius:12px;overflow:hidden;background:#ebe9db}.mapinfo{font-size:12px;color:var(--sub);line-height:1.5}.subtle{background:#fff8e0;padding:12px;border-radius:11px;font-size:12px;line-height:1.6}.progress{height:7px;background:#efede5;border-radius:12px;overflow:hidden}.progress>span{display:block;height:100%;background:#c6a944}.activity{display:flex;flex-direction:column;gap:10px}.activity article{padding:14px 0;border-bottom:1px solid var(--stroke)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:40;background:#262c24;color:#fff;padding:12px 18px;border-radius:11px;display:none;max-width:min(520px,90vw);text-align:center}.error{padding:30px;background:#fff6e8;border:1px solid #dfcfae;border-radius:17px}.profile-switch{display:flex;gap:5px}.profile-switch button{border:1px solid var(--stroke);padding:8px 10px;border-radius:99px;background:#fff;font-size:12px}.profile-switch button.active{background:#f0d06c}.img-preview{width:100%;max-height:240px;object-fit:contain;background:#f0efe9;border-radius:10px}.meta-label{font-size:11px;color:#8b7d52;letter-spacing:1.5px;text-transform:uppercase}.short-link{display:inline-flex;gap:6px;align-items:center;font-size:12px;word-break:break-all}button:hover:not(:disabled){filter:brightness(.97)}@media(max-width:850px){.shell{display:block}.rail{display:none}.content{padding:20px 16px 100px}.hero{grid-template-columns:1fr}.hero-photo{min-height:0}.hero-photo img{max-height:none}.hero-copy{padding:26px}.dashcols{grid-template-columns:1fr}.rooms{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:9;background:#fffef9;border-top:1px solid var(--stroke);display:flex;justify-content:space-around;padding:8px 4px calc(8px + env(safe-area-inset-bottom));gap:3px}.bottom-nav button{border:0;background:transparent;display:grid;place-items:center;gap:2px;min-width:0;flex:1;color:#727568;font-size:10px;padding:6px 1px}.bottom-nav button.active{color:#252b20;font-weight:800;background:#f7edc9;border-radius:10px}.bottom-nav button span{font-size:19px}.intro{grid-template-columns:1fr}.intro-image img{max-height:55dvh}.intro-content{padding:30px 22px 50px}.intro-content h1{font-size:43px}.pagehead{align-items:start}.pagehead h1{font-size:35px}.modal{max-height:90dvh}.formrow{grid-template-columns:1fr}}@media(max-width:400px){.mood-rows{grid-template-columns:1fr 1fr}.record{gap:8px;padding:12px}.record-photo{width:55px;height:55px}.rooms{gap:9px}.room{padding:14px;min-height:130px}}
.photo-placeholder{text-align:center;font:normal 44px Georgia,serif;color:#6a654c;padding:60px 20px}.photo-placeholder span{color:#e2c35a}.photo-placeholder small{display:block;font:14px ui-sans-serif,sans-serif;color:#898571;margin-top:12px}
/* D&V release 10 additions */
:root{--paper:#FBF9F2;--honey:#F0CC61;--ink:#282B24;--stroke:#DDDCCF}
.status-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.status-choice{padding:13px 12px;text-align:left;border:1px solid var(--stroke);border-radius:12px;background:#fff;color:var(--ink)}.status-choice.chosen{background:#f7e7aa;border-color:#aa892b;font-weight:700}
.setup-error{max-width:560px;margin:16vh auto;padding:26px;line-height:1.7}.calendar-row{align-items:center;gap:20px}.intro-image img{object-fit:contain !important;max-height:100dvh;width:100%;height:auto}.hero-photo img{object-fit:contain !important;width:100%;height:auto}
@media(max-width:600px){.status-options{grid-template-columns:1fr}.intro-image{min-height:0;max-height:none}.intro-image img{max-height:54dvh;object-fit:contain}.intro-content{padding:24px 22px 70px}.intro-content h1{font-size:clamp(30px,9vw,42px)}.record-actions{min-width:78px}.record-actions button{font-size:11px}.hero-photo img{max-height:none}.topline{font-size:11px}}

/* Семейная глава v11 */
.family-intro{display:grid;grid-template-columns:190px 1fr;align-items:center;gap:24px;border:1px solid #e4d8b2;background:linear-gradient(110deg,#fff8de,#fff);border-radius:24px;padding:28px;margin-bottom:20px}.family-intro h2{font:normal 29px Georgia,serif;margin:0 0 9px}.family-intro p{line-height:1.6;color:#6c6e62;margin:0}.family-names{display:flex;gap:10px;align-items:center;justify-content:center;font:normal 42px Georgia,serif;color:#66592c}.family-plus{font-size:25px;color:#c2a348}.family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:20px}.family-symbol{width:48px;height:48px;background:#f9ebbd;color:#8f7627;border-radius:15px;display:grid;place-items:center;font-size:28px;margin-bottom:12px}.family-panel p{min-height:48px;line-height:1.6}@media(max-width:650px){.family-intro{grid-template-columns:1fr;gap:12px;padding:22px}.family-grid{grid-template-columns:1fr}.family-panel p{min-height:0}}
