:root{--paper:#f5f0e7;--surface:#fffdf9;--ink:#29342f;--muted:#717971;--forest:#3f6655;--forest2:#2f4f42;--sage:#dfe8df;--sand:#ebe0cf;--peach:#e7c4ad;--gold:#c8a760;--line:#ddd8cd;--danger:#8a3434;--shadow:0 15px 42px rgba(45,55,49,.09);--radius:22px;--font:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:var(--font)/1.55 Inter,system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}h1,h2,h3{font-family:Georgia,serif;line-height:1.15}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 12% 12%,#eadbc8,transparent 32%),radial-gradient(circle at 88% 82%,#d4e0d4,transparent 30%),var(--paper)}.login-card{width:min(100%,470px);padding:44px;background:rgba(255,253,249,.96);border:1px solid rgba(63,102,85,.12);border-radius:32px;box-shadow:var(--shadow);text-align:center}.brand-mark,.logo-button span{display:grid;place-items:center;background:var(--forest);color:white;font:700 30px Georgia,serif}.brand-mark{width:72px;height:72px;margin:auto;border-radius:23px}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:.74rem;font-weight:800;color:var(--forest);margin:20px 0 7px}.login-card h1{font-size:clamp(2.1rem,7vw,3.2rem);margin:0}.login-card h1 span{color:var(--forest)}.lead,.meta{color:var(--muted)}.form-stack{display:grid;gap:15px;text-align:left}.form-stack label,.field{display:grid;gap:7px;font-weight:750;font-size:.9rem}input,select,textarea{width:100%;border:1px solid var(--line);background:white;border-radius:13px;padding:12px 14px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--forest);box-shadow:0 0 0 4px rgba(63,102,85,.12)}.primary,.secondary,.danger{border:0;border-radius:13px;padding:12px 17px;font-weight:800}.primary{background:var(--forest);color:#fff}.secondary{background:var(--sage);color:var(--forest2)}.danger{background:#f2dddd;color:var(--danger)}.text-button{border:0;background:none;color:var(--forest);font-weight:800;padding:9px}.demo-hint{margin-top:15px;padding:12px;background:#f0eadf;border-radius:13px;color:var(--muted);font-size:.84rem}.site-header{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px clamp(16px,4vw,56px);background:rgba(245,240,231,.93);backdrop-filter:blur(16px);border-bottom:1px solid rgba(63,102,85,.11)}.logo-button{border:0;background:none;padding:0}.logo-button span{width:43px;height:43px;border-radius:13px;font-size:23px}.desktop-nav{display:flex;gap:4px}.nav-button{border:0;background:none;color:var(--muted);padding:10px 11px;border-radius:11px;font-weight:750}.nav-button.active,.nav-button:hover{background:var(--sage);color:var(--forest2)}.header-actions{display:flex;gap:8px}.icon-button,.avatar,.menu-button{height:42px;border:1px solid var(--line);background:var(--surface);border-radius:13px;color:var(--forest);font-weight:850}.icon-button{padding:0 12px}.avatar{width:42px;border-radius:50%;background:var(--peach);color:#5a3427}.menu-button{display:none;width:42px}.mobile-nav{display:none}.content{min-height:calc(100vh - 135px)}.page{width:min(1160px,calc(100% - 34px));margin:auto;padding:40px 0 70px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.page-head h2{font-size:clamp(2rem,5vw,3.2rem);margin:0}.actions,.inline{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.card{background:var(--surface);border:1px solid rgba(63,102,85,.11);border-radius:var(--radius);box-shadow:0 8px 28px rgba(45,55,49,.055);padding:21px}.hero{display:grid;grid-template-columns:1.2fr .8fr;min-height:430px;border-radius:32px;overflow:hidden;background:var(--forest);color:white;box-shadow:var(--shadow)}.hero-copy{padding:clamp(34px,6vw,72px);display:flex;flex-direction:column;justify-content:center}.hero-copy h2{font-size:clamp(2.7rem,7vw,5rem);margin:0;max-width:9ch}.hero-copy p{color:#e8efe9;font-size:1.08rem;max-width:43ch}.hero-art{position:relative;background:linear-gradient(145deg,#e4c4ad,#eee2cc)}.hero-art:before{content:"Familie Schmid\A Sommer 2025";white-space:pre;position:absolute;right:28px;bottom:28px;background:#fff;color:var(--ink);padding:15px 18px;border-radius:16px;font:700 1.1rem Georgia,serif;box-shadow:var(--shadow);transform:rotate(-2deg)}.hero-art:after{content:"👨‍👩‍👧‍👦";position:absolute;inset:0;display:grid;place-items:center;font-size:7rem}.section-title{margin:32px 0 14px}.section-title h3{font-size:1.75rem;margin:0}.birthday-list,.directory,.reports,.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.birthday{display:flex;gap:14px;align-items:center}.date-box{min-width:58px;height:62px;border-radius:15px;background:var(--sage);display:grid;place-items:center;text-align:center;color:var(--forest2)}.date-box strong{font-size:1.35rem;line-height:1}.filters,.searchbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:20px}.searchbar input{max-width:430px}.filter{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 14px;font-weight:750;color:var(--muted)}.filter.active{background:var(--forest);color:#fff}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.photo{aspect-ratio:1/.78;border-radius:19px;position:relative;overflow:hidden;background:linear-gradient(140deg,#cddccd,#e6c2ad)}.photo:nth-child(2n){background:linear-gradient(140deg,#e3cf99,#efe4be)}.photo:before{content:"👨‍👩‍👧‍👦";position:absolute;inset:0;display:grid;place-items:center;font-size:4.5rem}.photo-info{position:absolute;left:9px;right:9px;bottom:9px;background:rgba(255,255,255,.92);padding:9px 11px;border-radius:11px;font-weight:800;font-size:.83rem}.report-card{display:flex;flex-direction:column;gap:10px}.report-icon{font-size:2rem}.family-tree{display:grid;gap:12px}.family-tree details{border-left:2px solid var(--sage);padding-left:18px}.family-tree summary{list-style:none;cursor:pointer}.family-tree summary::-webkit-details-marker{display:none}.family-tree summary:before{content:"▸";display:inline-block;margin-right:8px;color:var(--forest);transition:.2s}.family-tree details[open]>summary:before{transform:rotate(90deg)}.couple-row{display:flex;gap:10px;align-items:stretch;margin:8px 0 12px}.person-card{font:inherit;color:inherit;text-align:left;cursor:pointer;min-width:190px;max-width:250px;display:flex;gap:11px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:16px;background:#fff}.person-card.highlight{background:#f6e7bc;border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,167,96,.18)}.portrait{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:var(--sage);font-size:1.5rem;flex:0 0 auto}.person-card strong{display:block}.family-id{font-size:.76rem;color:var(--muted)}.children{display:grid;gap:10px;margin:4px 0 8px 22px}.directory{grid-template-columns:repeat(2,1fr)}.contact-row{display:flex;gap:13px;align-items:center}.contact-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.detail-grid,.profile-grid{display:grid;grid-template-columns:.7fr 1.3fr;gap:16px}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-item{padding:13px;background:#f6f2ea;border-radius:14px}.detail-item small{display:block;color:var(--muted)}.calendar-layout{display:grid;grid-template-columns:1.5fr .7fr;gap:17px}.month-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.month-head h3{margin:0;font-size:1.7rem}.month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.day-name{text-align:center;color:var(--muted);font-weight:800;font-size:.8rem;padding:8px}.day{min-height:84px;padding:8px;border:1px solid var(--line);border-radius:11px;background:#fff}.day.muted{opacity:.28}.event-dot{display:block;margin-top:7px;padding:4px 6px;border-radius:7px;background:var(--sage);font-size:.72rem;color:var(--forest2)}.event-list{display:grid;gap:11px}.event{display:flex;gap:11px;align-items:center}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.span-2{grid-column:1/-1}.checkbox-row{display:flex;gap:9px;align-items:center;font-weight:650}.checkbox-row input{width:auto}.profile-panel{text-align:center}.big-avatar{width:112px;height:112px;margin:0 auto 13px;display:grid;place-items:center;border-radius:50%;background:var(--peach);font:700 2.2rem Georgia,serif}.admin-grid{grid-template-columns:repeat(2,1fr)}.admin-card h3{margin-top:0}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:10px;border-bottom:1px solid var(--line);font-size:.9rem}.log-list{max-height:260px;overflow:auto}.log-entry{padding:10px 0;border-bottom:1px solid var(--line)}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--sage);font-size:.78rem;font-weight:850}.toast{position:fixed;right:20px;bottom:20px;z-index:100;padding:13px 17px;border-radius:13px;background:var(--forest2);color:white;opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}dialog{border:0;border-radius:22px;padding:0;max-width:min(620px,calc(100% - 28px));box-shadow:var(--shadow)}dialog::backdrop{background:rgba(30,40,34,.42)}.modal-inner{padding:26px}.modal-inner h2{margin-top:0}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}footer{display:flex;justify-content:space-between;padding:22px clamp(18px,4vw,60px);color:var(--muted);border-top:1px solid var(--line)}body.senior{--font:20px}body.senior button,body.senior input,body.senior select{min-height:50px}body.senior .page{width:min(1100px,calc(100% - 24px))}@media(max-width:900px){.desktop-nav{display:none}.menu-button{display:block}.mobile-nav.open{display:grid;position:fixed;z-index:35;top:68px;left:12px;right:12px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.hero,.calendar-layout,.detail-grid,.profile-grid{grid-template-columns:1fr}.hero-art{min-height:280px}.gallery{grid-template-columns:repeat(2,1fr)}.birthday-list,.reports,.admin-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.page{width:min(100% - 22px,1160px);padding-top:26px}.page-head{align-items:flex-start;flex-direction:column}.birthday-list,.reports,.admin-grid,.directory{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr}.couple-row{overflow-x:auto;padding-bottom:5px}.person-card{min-width:165px}.form-grid,.detail-list{grid-template-columns:1fr}.span-2{grid-column:auto}.month-grid{gap:3px}.day{min-height:63px;padding:5px;font-size:.8rem}.event-dot{font-size:.61rem}.login-card{padding:30px 22px}footer{flex-direction:column;align-items:center}.header-actions .icon-button{display:none}}
.person-life{display:block;margin-top:4px;font-size:.78rem;line-height:1.35;color:var(--muted)}
.admin-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.admin-nav-button{border:1px solid var(--line);background:var(--surface);padding:10px 14px;border-radius:12px;font-weight:800;color:var(--muted)}
.admin-nav-button.active{background:var(--forest);color:#fff;border-color:var(--forest)}
.admin-dashboard{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.admin-tile{text-align:left;min-height:130px;display:flex;flex-direction:column;justify-content:space-between;color:var(--ink);cursor:pointer}
.admin-tile strong{font-size:1.12rem}.admin-tile span{color:var(--forest);font-weight:800}
.role-list{display:grid;gap:14px}.role-list article{padding:18px;border-radius:16px;background:#f6f2ea}.role-list h3{margin:0 0 5px}
@media(max-width:800px){.admin-dashboard{grid-template-columns:1fr 1fr}.table{display:block;overflow-x:auto}.person-life{font-size:.72rem}}
@media(max-width:520px){.admin-dashboard{grid-template-columns:1fr}}

.person-card:hover{border-color:var(--forest);box-shadow:0 6px 18px rgba(45,55,49,.09)}.contact.highlight-contact{background:#f6e7bc;border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,167,96,.18)}

/* Calendar and profile refinements */
.calendar-layout{align-items:start}
.calendar-card{min-width:0}
.birthday-sidebar{align-self:start;height:auto;min-height:0}
.birthday-sidebar h3{margin-top:0;margin-bottom:18px}
.event-list{gap:0}
.event{padding:12px 0;border-bottom:1px solid var(--line);align-items:flex-start}
.event:last-child{border-bottom:0}
.event-date{min-width:88px;color:var(--muted);font-size:.86rem}
.day-number{display:block;font-weight:800}
.big-avatar{overflow:hidden}
.big-avatar img,.avatar.has-image img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.profile-image-help{margin:9px 0 18px;color:var(--muted);font-size:.82rem}
.loginbox:before{display:none!important}.invite-logo{width:86px;height:86px;margin:0 auto 18px}.invite-logo img{width:100%;height:100%;display:block;object-fit:contain}.invite-submit{display:block;width:100%;margin-top:24px}.header-actions{align-items:center}.header-actions>.icon-button,.header-actions>.avatar,.header-logout-form,.header-logout{align-self:center}.header-logout-form{display:inline-flex;align-items:center;margin:0}.header-logout svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.header-logout{width:42px;height:42px;display:grid;place-items:center;padding:9px;border:1px solid var(--line);border-radius:4px;background:#faf6ee;color:var(--forest);font-size:1.45rem;line-height:1}.header-logout:hover{background:#f2dddd;color:var(--danger);border-color:#d8bcbc}.profile-details>div:nth-child(n+3){grid-column:1/-1}.profile-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}.profile-actions .btn{min-width:150px}.admin-form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}.inactive-toggle{display:inline-flex;width:auto;margin-bottom:18px;padding:10px 14px;border:1px solid #c9bca8;border-radius:4px;background:#faf6ee;font-weight:800;cursor:pointer}.inactive-toggle:has(input:checked){background:#f2dddd;border-color:#c69288;color:#74352f}.inactive-toggle input{width:auto}.table-sort{color:inherit;text-decoration:none;white-space:nowrap}.table-sort:hover{text-decoration:underline}.admin-user-id{display:inline-block;padding:2px 7px;border-radius:999px;background:var(--sage);color:var(--forest2);font-size:.78rem;font-weight:800;white-space:nowrap}.logout-profile{display:inline-flex;margin-top:16px;color:#7b3f38;border:1px solid #dec7c0;border-radius:12px;padding:10px 15px;background:#fff}
@media(max-width:900px){.birthday-sidebar{width:100%}}

/* Deutlich verbesserter Senioren-Modus */
body.senior{
  --font:22px;
  --ink:#101713;
  --muted:#39483f;
  --line:#9ba99f;
  line-height:1.65;
  letter-spacing:.01em;
}
body.senior .site-header{min-height:86px;padding:12px 22px;border-bottom:2px solid var(--line)}
body.senior .logo-button,body.senior .avatar,body.senior .menu-button{width:58px;height:58px;font-size:1.25rem}
body.senior .icon-button{min-width:68px;height:58px;font-size:1.15rem;border:2px solid var(--forest)}
body.senior .nav-button,body.senior .admin-nav-button{min-height:56px;padding:14px 18px;font-size:1.05rem;border:2px solid transparent}
body.senior .nav-button.active,body.senior .admin-nav-button.active{outline:3px solid rgba(63,102,85,.25)}
body.senior .page{width:min(1180px,calc(100% - 28px));padding-top:34px}
body.senior .page-head h2{font-size:clamp(2.5rem,6vw,4rem)}
body.senior .card{padding:30px;border:2px solid var(--line);box-shadow:none}
body.senior button,body.senior input,body.senior select,body.senior textarea{
  min-height:60px;
  font-size:1.08rem;
  border-width:2px;
  border-color:#718178;
  border-radius:14px;
}
body.senior button{padding:13px 20px;font-weight:850}
body.senior input,body.senior select,body.senior textarea{padding:14px 16px;background:#fff;color:#111}
body.senior input:focus,body.senior select:focus,body.senior textarea:focus,body.senior button:focus,body.senior a:focus{outline:4px solid rgba(42,91,67,.32);outline-offset:3px}
body.senior .field{font-size:1.08rem;font-weight:850;gap:9px}
body.senior .form-grid{grid-template-columns:1fr;gap:23px}
body.senior .form-grid .span-2{grid-column:auto}
body.senior .checkbox-row{min-height:58px;padding:12px 14px;border:2px solid var(--line);border-radius:14px;background:#fff;font-size:1.05rem}
body.senior .checkbox-row input{width:30px;height:30px;min-height:30px;flex:0 0 auto}
body.senior .profile-grid,body.senior .detail-grid,body.senior .calendar-layout{grid-template-columns:1fr}
body.senior .profile-panel{text-align:left}
body.senior .big-avatar{width:150px;height:150px;margin-left:0}
body.senior .person-card{min-width:260px;padding:20px;border-width:2px}
body.senior .person-life,body.senior .meta,body.senior .event-date{font-size:.98rem;color:#344239}
body.senior .portrait{width:62px;height:62px;font-size:2rem}
body.senior .day{min-height:108px;border-width:2px;font-size:1rem}
body.senior .event-dot{font-size:.86rem;padding:7px}
body.senior .event{width:100%;text-align:left;background:#fff;border:0;border-bottom:2px solid var(--line);border-radius:0;padding:17px 6px}
body.senior .birthday-list,body.senior .reports,body.senior .admin-grid,body.senior .directory{grid-template-columns:1fr}
body.senior .contact-actions{display:grid;grid-template-columns:1fr}
body.senior dialog{font-size:1.05rem}
body.senior .modal-inner{padding:34px}
body.senior footer{font-size:1rem}
body.senior .header-actions .icon-button{display:inline-flex}
.event-jump{appearance:none;width:100%;font:inherit;color:inherit;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;cursor:pointer}
.event-jump:hover{background:#f6f2ea}
.calendar-searchbar input{width:min(100%,620px);max-width:620px}
@media(max-width:620px){body.senior{--font:20px}body.senior .month-grid{min-width:680px}body.senior .calendar-card{overflow-x:auto}body.senior .header-actions .icon-button{display:inline-flex}}

/* Stammbaum ohne doppelte Kategorienamen */
.family-branch{position:relative}
.family-branch>summary{list-style:none;display:flex;align-items:center;gap:9px;width:max-content;min-height:34px;margin-bottom:6px;cursor:pointer;color:var(--forest);font-weight:800}
.family-branch>summary::-webkit-details-marker{display:none}
.branch-chevron{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;background:#fff;transition:transform .2s}
.family-branch[open]>summary .branch-chevron{transform:rotate(90deg)}
.branch-content{margin-left:13px;padding-left:18px;border-left:2px solid var(--line)}
.sibling-count{font-size:.88rem;color:var(--muted)}
.family-branch .family-branch{margin-top:12px}

/* Anmeldeprotokoll: normale Seitenhöhe statt eigenem Scrollfenster */
.login-log-page{overflow:visible}
.log-searchbar{margin-bottom:8px}
.log-searchbar input{width:min(100%,720px);max-width:720px}
.log-list{max-height:none;overflow:visible;display:grid;gap:0}
.log-entry{padding:20px 0;border-bottom:1px solid var(--line)}
.log-entry[hidden]{display:none}
.log-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.log-status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:.8rem;font-weight:850}
.log-status.success{background:#dcebdd;color:#24583d}
.log-status.failed{background:#f3dddd;color:#7b3535}
.log-details{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0}
.log-details>div{min-width:0;padding:12px 13px;border-radius:13px;background:#f6f2ea}
.log-details dt{font-size:.76rem;font-weight:850;color:var(--muted);margin-bottom:4px}
.log-details dd{margin:0;overflow-wrap:anywhere}
.empty-log{padding:18px 0}
@media(max-width:1000px){.log-details{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.log-entry-head{display:grid}.log-details{grid-template-columns:1fr}}
body.senior .log-details{grid-template-columns:1fr 1fr}
body.senior .log-details>div{padding:18px;border:2px solid var(--line);background:#fff}
@media(max-width:700px){body.senior .log-details{grid-template-columns:1fr}}

/* Stammbaum: eigener Auf-/Zuklappknopf neben den getrennten Personenkarten */
.family-branch{position:relative;padding-left:45px}
.family-branch>summary{position:absolute;left:0;top:10px;width:34px;height:34px;min-height:34px;margin:0;display:grid;place-items:center;z-index:2}
.family-branch>summary .branch-chevron{margin:0}
.branch-content{margin-left:0;padding-left:17px;border-left:2px solid var(--line)}
.family-branch>.branch-content>.couple-row{margin-top:0}
.sibling-group>summary{top:4px}
.sibling-group>.branch-content{padding-top:0}
body.senior .family-branch{padding-left:58px}
body.senior .family-branch>summary{width:46px;height:46px;top:8px}
body.senior .branch-chevron{width:44px;height:44px;font-size:1.25rem;border-width:2px}

/* =========================================================
   Zeitloses Landhaus-Design – warme, ruhige und klare Optik
   ========================================================= */
:root{
  --paper:#eee7d9;
  --surface:#fbf7ef;
  --ink:#312e28;
  --muted:#706b61;
  --forest:#3f5644;
  --forest2:#293b2f;
  --sage:#dce1d3;
  --sand:#e6dac5;
  --peach:#d8bea0;
  --gold:#a8874f;
  --line:#cfc3af;
  --danger:#7d3f36;
  --shadow:0 12px 28px rgba(65,54,39,.10);
  --radius:7px;
}
body{
  background:
    linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)),
    var(--paper);
  color:var(--ink);
  font-family:"Segoe UI",Tahoma,Arial,sans-serif;
}
h1,h2,h3,.section-title h3,.month-head h3{
  font-family:Georgia,"Times New Roman",serif;
  color:#302c25;
  letter-spacing:.005em;
}
a{color:var(--forest)}

/* Ruhiger Kopfbereich */
.site-header{
  background:rgba(244,238,226,.97);
  border-bottom:1px solid #bfae94;
  box-shadow:0 3px 12px rgba(73,61,44,.07);
  backdrop-filter:blur(9px);
}
.logo-button span,.brand-mark{
  background:var(--forest2);
  border:1px solid #1d2c22;
  border-radius:4px;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.10);
}
.nav-button{
  border-radius:3px;
  padding:10px 12px;
  color:#655f55;
  transition:background-color .18s ease,color .18s ease;
}
.nav-button.active,.nav-button:hover{
  background:#d9ddcf;
  color:#26382c;
}
.icon-button,.avatar,.menu-button{
  border-color:#bfb39f;
  background:#faf6ee;
  border-radius:4px;
}
.avatar{display:inline-grid;place-items:center;flex:0 0 auto;overflow:hidden;border-radius:50%;line-height:1;text-align:center;text-decoration:none}

/* Flächen und Karten */
.card,.login-card,dialog{
  background:var(--surface);
  border:1px solid #cbbda8;
  border-radius:7px;
  box-shadow:var(--shadow);
}
.card{padding:24px}
.page{padding-top:44px}
.page-head{border-bottom:1px solid #cbbda8;padding-bottom:17px;margin-bottom:25px}
.page-head h2{font-weight:600}
.section-title{border-bottom:1px solid #d2c7b7;padding-bottom:8px}

/* Eingaben und Schaltflächen */
input,select,textarea{
  border:1px solid #bfb29d;
  background:#fffdf8;
  border-radius:3px;
  padding:12px 13px;
}
input:focus,select:focus,textarea:focus{
  border-color:#596f5d;
  box-shadow:0 0 0 3px rgba(63,86,68,.13);
}
.primary,.secondary,.danger,.admin-nav-button,.filter,.logout-profile{
  border-radius:3px;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
.primary{background:var(--forest2);border:1px solid #223128}
.primary:hover{background:#35493a}
.secondary{background:#e2e4d8;border:1px solid #bdc3b5;color:#34483a}
.secondary:hover{background:#d5dacb}
.danger{border:1px solid #d2b2aa;background:#eee0dc}
.filter{border-color:#c6baa7;background:#fbf7ef}
.filter.active{background:var(--forest2);border-color:var(--forest2)}

/* Startseite */
.hero{
  border-radius:7px;
  background:#34493a;
  border:1px solid #26372c;
  box-shadow:var(--shadow);
}
.hero-art{background:linear-gradient(145deg,#cbb08e,#e5d5bb)}
.hero-art:before{
  border-radius:3px;
  border:1px solid #c9bda9;
  transform:none;
  background:#fbf7ef;
}
.date-box{
  border-radius:3px;
  border:1px solid #c2c8bb;
  background:#e2e5d9;
}

/* Galerie und Dokumente */
.photo{border-radius:5px;border:1px solid #c3b49e}
.photo-info{border-radius:3px;border:1px solid rgba(186,171,149,.8)}
.report-card{border-left:4px solid #6d806e}

/* Stammbaum und Adressbuch */
.person-card{
  border-radius:4px;
  border-color:#c2b7a6;
  background:#fffdf8;
  box-shadow:0 3px 9px rgba(65,54,39,.045);
}
.person-card:hover{border-color:#617663;box-shadow:0 5px 13px rgba(65,54,39,.09)}
.person-card.highlight,.contact.highlight-contact{
  background:#eee3c8;
  border-color:#aa8b51;
  box-shadow:0 0 0 2px rgba(168,135,79,.16);
}
.portrait{background:#dfe2d6;border:1px solid #c2c8bb}
.branch-chevron{border-radius:3px;border-color:#bfb29d;background:#fbf7ef}
.branch-content{border-left-color:#aeb9aa}
.detail-item,.role-list article,.log-details>div{
  background:#f2ede3;
  border-radius:3px;
  border:1px solid #ddd2c1;
}

/* Kalender */
.day{
  border-radius:2px;
  border-color:#cfc3b2;
  background:#fffdf8;
}
.day:hover{background:#f6f1e7}
.event-dot{border-radius:2px;background:#dfe3d7}
.event-jump:hover{background:#f0eadf}

/* Adminbereich */
.admin-nav{
  background:#e8e0d1;
  border:1px solid #cbbda8;
  padding:9px;
  border-radius:4px;
}
.admin-nav-button{background:#f7f2e8;border-color:#c7baa6}
.admin-nav-button.active{background:var(--forest2);border-color:var(--forest2)}
.admin-tile{border-top:4px solid #657765}
.table th{font-family:Georgia,"Times New Roman",serif;background:#eee7db;color:#38332c}
.table th,.table td{border-bottom-color:#d2c7b6}
.badge,.log-status{border-radius:3px}

/* Login */
.login-shell{
  background:
    linear-gradient(rgba(238,231,217,.84),rgba(238,231,217,.84)),
    repeating-linear-gradient(90deg,rgba(108,83,53,.025) 0,rgba(108,83,53,.025) 1px,transparent 1px,transparent 7px),
    var(--paper);
}
.login-card{border-radius:7px}
.login-card h1{font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive;font-weight:600;line-height:1.18;letter-spacing:.01em}
.login-card h1 span{display:inline-block;margin-top:.12em;text-transform:capitalize;font-size:1.08em}
.demo-hint{border-radius:3px;border:1px solid #d7ccbb;background:#f0e9dd}

/* Dialoge, Hinweise und Fußbereich */
dialog{border-radius:5px}
.toast{border-radius:3px;background:#293b2f;border:1px solid #1f2d24}
footer{background:#e9e1d3;border-top-color:#c9bca8}
.logout-profile{background:#faf5ed}

/* Sanfte, sparsame Bewegung */
button,a,input,select,textarea,.card,.person-card{transition-duration:.18s;transition-timing-function:ease}

/* Seniorenmodus behält den Stil, wird aber besonders klar */
body.senior .card,
body.senior input,
body.senior select,
body.senior textarea,
body.senior button,
body.senior .checkbox-row{
  border-radius:3px;
}
body.senior .card{background:#fffdf8;border-color:#8f887c}
body.senior .checkbox-row{background:#fffdf8}
body.senior .nav-button.active,body.senior .admin-nav-button.active{outline-color:rgba(39,60,46,.30)}

@media(max-width:900px){
  .mobile-nav.open{border-radius:4px;background:#faf6ee;border-color:#bfb29d}
}

/* Stammbaum-Korrekturen: genau ein Pfeil und sauberes Einklappen */
.family-tree summary::before{content:none!important;display:none!important}
.family-branch:not([open])>.branch-content{display:none!important}
.family-branch:not([open]){min-height:44px}
.family-branch>summary{user-select:none}
.family-branch>summary .branch-chevron::before{content:"›"}
.family-branch[open]>summary .branch-chevron::before{content:"›"}
.branch-chevron{font-size:0}
.branch-chevron::before{font-size:1.15rem;line-height:1}
.sibling-group>summary{position:relative;left:auto;top:auto;width:auto;height:auto;display:flex;justify-content:flex-start}
.sibling-group:not([open]){min-height:auto}
.sibling-group>.branch-content{margin-top:8px}
.log-duration{margin-top:5px;font-weight:750;color:var(--forest)}

/* Nur-Stammbaum-Personen */
.tree-only-switch{padding:14px 16px;border:1px solid var(--line);background:var(--cream-2,#f4efe3);font-weight:700}
.tree-only-note{margin-top:-8px}
#fullUserFields{display:grid}
#fullUserFields.is-hidden{display:none}
.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.modal-heading h2{margin:0}.modal-close{width:42px;height:42px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:1.6rem;line-height:1}.modal-close:hover{background:var(--sand)}dialog[open]{display:block}

.portrait img{object-fit:cover}.tree-person-text{min-width:0}.person-card{text-decoration:none}

img.portrait{object-fit:cover}

/* Einheitliche Stammbaumkarten */
.tree .person-card{flex:0 0 310px;width:310px;min-width:310px;max-width:310px;min-height:100px}
@media(max-width:620px){.tree .person-card{flex-basis:270px;width:270px;min-width:270px;max-width:270px}}

/* Familienlogo */
.brand-mark{overflow:hidden;padding:0;background:#fff}.brand-mark img{width:100%;height:100%;display:block;object-fit:contain}.logo-button img{width:43px;height:43px;display:block;object-fit:contain;border:1px solid #1d2c22;border-radius:4px;background:#fff}

.visually-hidden-file{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.profile-actions{justify-content:flex-start!important;flex-wrap:wrap}.profile-actions .btn:first-child{margin-right:auto}
.reminder-page{max-width:980px;margin:auto}.reminder-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.reminder-card{padding:24px;border:1px solid var(--line);background:#fffdf8;border-radius:8px}.reminder-card h2{margin:0 0 6px}.reminder-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.switch{margin:0;position:relative}.switch input{position:absolute;opacity:0}.switch span{display:block;width:58px;height:32px;border-radius:999px;background:#aaa;position:relative;transition:.2s}.switch span:after{content:"";position:absolute;width:24px;height:24px;left:4px;top:4px;border-radius:50%;background:white;transition:.2s}.switch input:checked+span{background:var(--forest)}.switch input:checked+span:after{transform:translateX(26px)}.reminder-created{margin-top:18px}.autosave-state{margin:18px 0 0;color:var(--forest);font-weight:800}
.special-events{display:inline-block;margin:12px 0 0 18px;padding:12px 16px;border-left:4px solid var(--gold);background:#f7f0df}.special-events>strong{display:block}.birthday-link{color:inherit;text-decoration:none}.birthday-link:hover{background:#f4eee3}
.audit-list{display:grid;gap:12px}.audit-entry{margin:0}.mail-body{white-space:pre-wrap;font:inherit;line-height:1.55;background:#f6f2ea;padding:16px;border-radius:6px;max-height:55vh;overflow:auto}
footer{justify-content:flex-end}
@media(max-width:760px){.reminder-grid{grid-template-columns:1fr}.profile-actions .btn:first-child{margin-right:0}.profile-actions .btn{width:100%}.special-events{display:block;margin-left:0}}

.album-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.album-card,.album-photo{color:inherit;text-decoration:none}.album-card img,.album-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--line);border-radius:4px}.empty-album{display:grid;place-items:center;aspect-ratio:4/3;background:#eee7da;color:var(--muted)}.gallery-detail{text-align:center}.gallery-detail img{display:block;max-width:100%;max-height:76vh;width:auto;height:auto;margin:auto;border:1px solid var(--line)}
.home-banner{margin-top:18px}.home-banner img,.login-banner img{display:block;width:100%;height:auto}.home-banner img{border:1px solid var(--line);border-radius:8px}.login-banner{width:min(100%,390px);margin:0 auto 22px}.login-banner img{border-radius:7px}
.clickable-profile-image{cursor:zoom-in}.image-viewer{width:min(900px,calc(100% - 28px));max-width:900px;background:#111}.image-viewer .dialogin{padding:44px 18px 18px}.image-viewer .close{position:absolute;right:12px;top:10px}.image-viewer img{display:block;max-width:100%;max-height:80vh;width:auto;height:auto;margin:auto}
.reminder-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reminder-card{min-height:220px}
.calendar-topline{display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,1fr);gap:22px;align-items:start}.calendar-search-form{position:relative}.calendar-search-form input{max-width:none}.calendar-suggestions{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:25;background:#fffdf8;border:1px solid var(--line);box-shadow:var(--shadow);max-height:360px;overflow:auto}.calendar-suggestions a{display:flex;justify-content:space-between;gap:15px;padding:12px 14px;color:inherit;text-decoration:none;border-bottom:1px solid var(--line)}.calendar-suggestions a:hover{background:var(--sage)}.calendar-suggestions span{color:var(--muted);font-size:.88rem}.special-events{display:block;margin:0;padding:13px 16px}.special-events>div{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px solid rgba(0,0,0,.08)}.special-events>div:last-child{border-bottom:0}.content-event{display:flex;justify-content:space-between;align-items:center;gap:15px}.content-event .actions{margin:0}
@media(max-width:900px){.reminder-grid{grid-template-columns:1fr}.calendar-topline{grid-template-columns:1fr}.special-events{margin:0}.content-event{align-items:flex-start;flex-direction:column}}

.gallery-search,.report-search{margin:14px 0 18px}.gallery-search input,.report-search input{max-width:520px}.reports-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.report-file{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none}.report-file:hover{border-color:var(--forest)}.report-file small{display:block;color:var(--muted);margin-top:4px}.report-pdf-icon{display:grid;place-items:center;flex:0 0 54px;height:62px;background:#8a3434;color:white;border-radius:5px;font-weight:900}.report-reader iframe{display:block;width:100%;height:78vh;margin-top:18px;border:1px solid var(--line);background:white}

.report-reading-page{width:min(1180px,calc(100% - 24px));margin:0 auto;padding:26px 0 70px}.report-reading-head{position:sticky;top:66px;z-index:18;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:18px 22px;margin-bottom:28px;background:rgba(244,238,226,.96);border:1px solid var(--line);box-shadow:0 8px 22px rgba(55,45,32,.12);backdrop-filter:blur(10px)}.report-reading-head>.btn{justify-self:end}.report-reading-title{text-align:center}.report-reading-title span{font-size:.75rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--forest)}.report-reading-title h1{margin:3px 0;font-size:clamp(1.5rem,4vw,2.4rem)}.report-reading-title p{margin:0;color:var(--muted)}.report-paper-stack{display:grid;gap:28px;max-width:940px;margin:auto}.report-paper{margin:0;background:white;padding:12px 12px 8px;border:1px solid #cfc8bc;box-shadow:0 18px 42px rgba(50,42,31,.16)}.report-paper img{display:block;width:100%;height:auto;background:white}.report-paper figcaption{text-align:center;padding:9px 0 2px;color:var(--muted);font-size:.82rem}
@media(max-width:760px){.report-reading-page{width:min(100% - 12px,1180px);padding-top:10px}.report-reading-head{position:static;grid-template-columns:1fr;padding:14px}.report-reading-head>.btn,.report-reading-head>div:first-child{justify-self:stretch}.report-reading-head .btn{display:block;text-align:center}.report-paper-stack{gap:14px}.report-paper{padding:5px 5px 3px}}

.home-collage{position:relative}.home-collage>img{position:relative;z-index:1}.home-collage-hotspots{position:absolute;z-index:2;inset:0;width:100%;height:100%;display:block}.home-collage-hotspots polygon{fill:transparent;stroke:none;pointer-events:all;cursor:pointer;outline:none}.home-collage-hotspots polygon:focus-visible{stroke:rgba(255,255,255,.9);stroke-width:4;vector-effect:non-scaling-stroke}
.home-photo-lightbox{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;background:rgba(15,18,16,.94);overflow:hidden}.home-photo-lightbox[open]{display:grid;place-items:center}.home-photo-lightbox::backdrop{background:rgba(10,12,11,.82);backdrop-filter:blur(8px)}.home-photo-lightbox img{display:block;max-width:calc(100vw - 42px);max-height:calc(100vh - 42px);width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 24px 80px rgba(0,0,0,.55)}.home-lightbox-close{position:fixed;z-index:3;top:18px;right:20px;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(20,24,21,.75);color:white;font-size:2rem;line-height:1;cursor:pointer}.home-lightbox-close:hover{background:white;color:#222}

.collage-wrapper{position:relative;width:100%}.collage-wrapper>img{display:block;width:100%;height:auto}.collage-wrapper>#collage-hotspots{position:absolute;z-index:3;inset:0;width:100%;height:100%;pointer-events:none}.collage-wrapper.calibration-active>#collage-hotspots{pointer-events:auto;cursor:crosshair;touch-action:none}
.calibration-polygon{fill:rgba(255,0,0,.25);stroke:#e00000;stroke-width:3;vector-effect:non-scaling-stroke}.calibration-current{fill:rgba(255,180,0,.18);stroke:#ffb000;stroke-width:3;stroke-dasharray:9 6;vector-effect:non-scaling-stroke}.calibration-point{fill:#ffe600;stroke:#111;stroke-width:2;vector-effect:non-scaling-stroke}.calibration-point.current{fill:#7dff6d}
.calibration-panel{margin-top:18px}.calibration-status{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:16px;border-left:5px solid var(--gold);background:#f7f0df;font-size:1.05rem}.calibration-status span{color:var(--forest);font-weight:800}.calibration-actions{display:flex;gap:9px;flex-wrap:wrap}.calibration-panel textarea{min-height:360px;margin-top:8px;font:13px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre}
@media(max-width:700px){.calibration-status{display:grid}.calibration-actions .btn{width:100%;text-align:center}}

.collage-wrapper{position:relative;width:100%}.collage-wrapper>#family-collage{display:block;width:100%;height:auto}.collage-wrapper>#collage-hotspots{position:absolute;z-index:3;inset:0;width:100%;height:100%;pointer-events:none}.collage-hotspot{fill:transparent;stroke:transparent;cursor:pointer;pointer-events:auto;outline:none;transition:fill .16s ease}.collage-hotspot:hover,.collage-hotspot:focus-visible{fill:rgba(255,255,255,.15);stroke:rgba(255,255,255,.55);stroke-width:2;vector-effect:non-scaling-stroke}
.collage-lightbox{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;background:rgba(10,14,12,.92);overflow:hidden}.collage-lightbox[open]{display:grid;place-items:center}.collage-lightbox::backdrop{background:rgba(5,8,6,.76);backdrop-filter:blur(8px)}.collage-lightbox>img{display:block;max-width:90vw;max-height:90vh;width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 26px 90px rgba(0,0,0,.62)}.collage-lightbox-close{position:fixed;z-index:5;top:18px;right:20px;display:grid;place-items:center;width:50px;height:50px;min-height:0;padding:0;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(20,26,22,.78);color:#fff;font-size:2rem;line-height:1;cursor:pointer}.collage-lightbox-close:hover,.collage-lightbox-close:focus-visible{background:#fff;color:#1d241f;outline:3px solid rgba(255,255,255,.35);outline-offset:3px}

/* latest-layout-fixes */
.reminder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reminder-card{min-width:0;overflow:hidden}.reminder-head>div{min-width:0}.reminder-event-options{display:grid;gap:18px}.reminder-subsetting{border-top:1px solid var(--line);padding-top:18px}.reminder-subsetting .reminder-head{align-items:center}.report-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.report-title-row h1{margin-bottom:0}.calendar-birthday-dot{display:block;text-decoration:none;cursor:pointer}.deceased-person{cursor:default}
@media(max-width:760px){.reminder-grid{grid-template-columns:1fr}.reminder-head{gap:12px}.switch{flex:0 0 auto}}

/* upcoming-event-details */
.special-events .upcoming-event{border-bottom:1px solid rgba(0,0,0,.1)}.special-events .upcoming-event:last-child{border-bottom:0}.upcoming-event summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 2px;cursor:pointer;list-style:none}.upcoming-event summary::-webkit-details-marker{display:none}.upcoming-event summary>span:first-child{display:grid;gap:2px}.upcoming-event summary small{color:var(--muted);font-weight:500}.upcoming-event-arrow{font-size:1.35rem;line-height:1;transition:transform .2s}.upcoming-event[open] .upcoming-event-arrow{transform:rotate(180deg)}.upcoming-event-details{padding:2px 2px 13px;border-top:1px dashed rgba(0,0,0,.12)}.upcoming-event-details p{margin:9px 0}.event-description{white-space:pre-line}.upcoming-event summary:hover strong,.upcoming-event summary:focus-visible strong{color:var(--forest)}

/* report-reader-navigation */
.report-reader-navigation{max-width:940px;margin:0 auto 18px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.report-reader-navigation .btn:first-child{justify-self:start}.report-reader-navigation .btn:last-child{justify-self:end}.report-reader-navigation-bottom{margin-top:24px;margin-bottom:0}@media(max-width:600px){.report-reader-navigation{grid-template-columns:1fr}.report-reader-navigation span{display:none}.report-reader-navigation .btn:first-child,.report-reader-navigation .btn:last-child{justify-self:stretch;text-align:center}}

[hidden]{display:none!important}
.child-parent-search{position:relative;margin-top:8px}.child-parent-suggestion{display:flex;width:100%;justify-content:space-between;gap:15px;padding:12px 14px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fffdf8;color:inherit;text-align:left}.child-parent-suggestion:hover,.child-parent-suggestion:focus{background:var(--sage)}.child-parent-suggestion span{color:var(--muted);font-size:.88rem}
.site-header{left:0;right:0;width:100%;max-width:100vw}
.family-id-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
#childParent{margin-top:8px}
.folder-icon{display:grid;place-items:center;aspect-ratio:4/3;border:1px solid var(--line);background:linear-gradient(145deg,#eee3c8,#dcc898);font-size:clamp(4rem,10vw,7rem)}
.copy-details p{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.copy-button{padding:6px 9px;border:1px solid var(--line);background:var(--sage);color:var(--forest2);font-weight:750}
.calendar-focus{position:relative;z-index:2;border-color:var(--gold)!important;background:#fff0b8!important;box-shadow:0 0 0 4px rgba(200,167,96,.38);animation:calendarPulse 1.1s ease-in-out 3}
@keyframes calendarPulse{50%{box-shadow:0 0 0 8px rgba(200,167,96,.12)}}
.tree-panel{width:min(1460px,calc(100vw - 24px));max-width:none;margin-left:50%;transform:translateX(-50%)}
.tree-panel .tree .person-card{flex-basis:270px;width:270px;min-width:270px;max-width:270px;min-height:86px}
.tree-panel .tree ul{margin-left:18px;padding-left:14px}
.collage-lightbox[open]{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none}
.collage-lightbox>img{touch-action:pinch-zoom}
@media(max-width:620px){
 .calendar-card{width:100%;max-width:100%;overflow:hidden!important}
 .calendar-card .month-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;width:100%!important;min-width:0!important}
 .calendar-card .day,.calendar-card .day-name{width:auto!important;min-width:0!important;max-width:100%!important}
 .calendar-card .event-dot{overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap}
 .birthday-sidebar [data-default="0"]{display:none!important}
 .tree-panel{width:calc(100vw - 12px);padding:12px;margin-left:50%}
 .tree-panel .tree .person-card{width:100%!important;min-width:0!important;max-width:100%!important;flex-basis:auto!important}
 .tree-panel .tree ul{margin-left:3px;padding-left:7px}
 .family-id-tools{grid-template-columns:1fr}.family-id-tools .btn{width:100%}
 .copy-details p{grid-template-columns:1fr}.copy-button{justify-self:start}
 .gallery-photo-navigation{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
 .gallery-photo-navigation>a{display:grid;place-items:center;min-width:48px;font-size:1.35rem}
 .gallery-photo-navigation>a span{display:none}
 .gallery-photo-navigation>span:only-child{display:none}
 .collage-lightbox>img{max-width:100vw;max-height:100dvh;border-radius:0}
}
