button,a,input,select,textarea{touch-action:manipulation}button,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bb781d;outline-offset:3px}.languages button{border:0;min-width:44px;min-height:44px;background:transparent;color:white;font-weight:750;border-radius:10px}.languages button[aria-pressed=true]{background:white;color:#244c4d}.langbar{position:sticky;top:0;z-index:20;overflow:visible}.langbar .brand{flex:1}.menu-button{color:white;background:transparent;border:1px solid #ffffff55;border-radius:10px;width:44px;height:44px;font-size:22px}.menu-drawer{position:absolute;top:100%;right:10px;min-width:240px;max-width:calc(100vw - 20px);background:#fff;color:#244c4d;border:1px solid #bdd0c9;border-radius:12px;box-shadow:0 12px 28px #244c4d33;padding:8px}.menu-drawer a,.menu-drawer button{display:block;text-align:left;width:100%;padding:12px;min-height:44px;border:0;background:none;border-radius:8px}.menu-drawer a:hover{background:#edf4f1}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.actions .btn,.btn{min-height:44px}.panel{background:#fff;border:1px solid #d1dcd5;border-radius:16px;padding:20px;margin:18px 0;min-width:0}.narrow{max-width:610px;margin:24px auto}.field{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:650;margin-bottom:16px;min-width:0}.field input,.field select,.field textarea{width:100%;min-height:48px;border:1px solid #90aaa0;border-radius:10px;padding:11px 12px;background:#fff;color:#203c3d;font-size:16px}.field textarea{min-height:115px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.check-label{display:flex;align-items:flex-start;gap:9px;min-height:44px;padding:8px 0;font-size:14px;line-height:1.5}.check-label input{width:20px;height:20px;flex-shrink:0}.notice{padding:12px 14px;border-radius:10px;background:#fff4d9;color:#665324;font-size:14px;line-height:1.5;margin:16px 0}.muted{color:#586d6b;font-size:14px;line-height:1.6}.empty-state{padding:58px 14px;text-align:center}.empty-state h2{font:600 30px/1.25 Georgia,serif;max-width:500px;margin:0 auto 20px}.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 16px}.profile-header h1{word-break:normal;overflow-wrap:anywhere}.profile-header{align-items:center}.profile-tabs{position:sticky;top:72px;z-index:10;background:#f3f6f3;max-width:100%}.family-section{margin:20px 0}.family-section h2{text-align:left;font-size:18px}.siblings-group{margin-top:12px;padding:14px;border:1px solid #cad8d0;border-radius:14px;background:#fff}.union-parent-names{font-size:14px;margin-bottom:14px;line-height:1.7}.union-parent-names a{font-weight:700;text-decoration:underline}.cards .person.selected strong{font-size:15px}.notes{padding:12px 0}.record{border-left:3px solid #b9cebf;margin:16px 0;padding:8px 16px;overflow-wrap:anywhere}.record h3{font-size:16px;margin-bottom:8px}.record p{line-height:1.7;white-space:pre-wrap;font-size:14px}.timeline-item{border-left:3px solid #bbcabd;margin-left:10px;padding:0 18px 24px}.timeline-item strong{display:block;margin-bottom:7px}.status-chip{padding:3px 8px;border-radius:20px;background:#edf4ef;font-size:12px;display:inline-block;margin:4px 0}.case-list{display:grid;gap:12px}.case-card{display:block;padding:18px;background:white;border:1px solid #cad8d0;border-radius:14px;overflow-wrap:anywhere}.case-card strong{display:block;font-size:18px;margin:6px 0}.case-id{font-size:12px;color:#586d6b}.message{padding:15px;background:#edf4f1;border-radius:12px;margin:12px 0;overflow-wrap:anywhere}.message p{white-space:pre-wrap;line-height:1.6}.message summary{font-size:13px}.message small{font-size:11px}.case-record pre,.audit-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#f3f6f3;padding:12px;border-radius:8px}.warning-list{line-height:1.8}.auth-tabs{display:flex;gap:8px;margin:16px 0}.auth-tabs .btn{flex:1}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:min(620px,calc(100vw - 24px));background:#244c4d;color:white;padding:14px 18px;border-radius:12px;box-shadow:0 6px 20px #0003;z-index:11000;display:none;line-height:1.5}#toast.show{display:block}.step-title{font-size:20px!important;text-align:left;margin-bottom:20px}.auth-title{font:600 36px/1.1 Georgia,serif;text-align:center}.lang-choice{padding:50px 0;text-align:center}.lang-choice .languages{justify-content:center;margin:32px 0}.lang-choice .languages button{color:#244c4d;border:1px solid #b7c9c0;min-width:110px;min-height:60px;font-size:18px;background:white}.lang-choice .languages button[aria-pressed=true]{background:#244c4d;color:#fff}.lang-choice h1{font-size:46px}.admin-heading{padding:28px 0 10px}.admin-nav{display:flex;flex-wrap:wrap;gap:10px}.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric{padding:16px;border:1px solid #cad8d0;border-radius:12px;background:#fff}.metric strong{display:block;font-size:26px}.profile-panel{padding-top:12px}.profile-media-grid img{max-width:100%;height:auto}.error-state{min-height:250px;padding:45px 16px;text-align:center}.profile-photo{object-fit:cover}.search-results{margin:16px 0}.audit-entry{border-bottom:1px solid #cad8d0;padding:14px 0}.profile-panel .panel h2{text-align:left;font-size:18px}.check-result{margin:20px 0}.candidate{border:1px solid #cad8d0;border-radius:12px;padding:14px;margin:12px 0}.candidate label{display:flex;gap:10px;min-height:44px;align-items:center}.pagination{margin:18px auto;text-align:center}.menu-drawer[hidden]{display:none}.profile-header .profile-photo{width:114px;height:138px;object-fit:cover}.empty-state .tree-mark{width:86px;height:86px;margin:0 auto 20px;border-radius:28px;background:#e4ede6;display:flex;align-items:center;justify-content:center;font:44px Georgia;color:#244c4d}.btn:disabled{opacity:.55;cursor:wait}.profile-section h2{text-align:left}input[type=file]{max-width:100%}.media-thumb{width:180px;max-width:100%;border-radius:12px}.btn.danger{background:#894b44}a.branch{min-height:120px}.inline-links{display:flex;flex-wrap:wrap;gap:12px}.inline-links a{text-decoration:underline}.profile-header .profile-heading{min-width:0}.langbar>a.brand{color:white}.profile-section p{line-height:1.6}form{min-width:0}
@media(max-width:620px){.langbar{min-height:66px}.langbar .brand{max-width:none;white-space:nowrap}.profile-tabs{top:66px}.form-grid{grid-template-columns:1fr}.panel{padding:16px}.profile-header{align-items:flex-start}.metric-row{grid-template-columns:1fr 1fr}.lang-choice .languages button{min-width:85px}.profile-photo{width:92px!important;height:112px!important}.profile-header .profile-heading h1{font-size:28px}.profile-actions .btn{flex:1 1 auto}.profile-tabs .profile-tab{min-height:48px}.admin-nav a{min-height:44px}.narrow{margin:18px auto}.home-heading{padding:24px 0 18px}.cards{grid-template-columns:1fr}.parent-pair .person{padding:9px}.parent-pair .person strong{font-size:14px}}
.profile-header{grid-template-columns:114px minmax(0,1fr);gap:20px}.profile-header .profile-photo{align-self:center}.profile-avatar{align-self:center}
@media(max-width:620px){.profile-header{grid-template-columns:92px minmax(0,1fr);gap:14px}}
@media print{#toast{display:none!important}}
