@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/admin/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/admin/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/admin/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/admin/assets/inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/admin/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/admin/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/admin/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f6f1e7;--surface:#fffcf6;--surface-2:#f3ece0;--surface-3:#e9e0d1;--overlay:#2b1d126b;--border:#e7ddcc;--border-strong:#d7c9b2;--text:#2b1d13;--text-2:#6b5848;--text-3:#8f7c69;--accent:#ad5630;--accent-hover:#934625;--accent-soft:#f6e6d8;--accent-text:#8f4321;--on-accent:#fff;--focus:#ad56304d;--gold:#d6975c;--olive:#6f7a3e;--success:#5d7a32;--success-soft:#edf1e0;--danger:#c22f3d;--danger-hover:#a82734;--danger-soft:#fbe9eb;--danger-text:#a8202f;--info-soft:#edf0f5;--info-text:#3e5a85;--male:#4f6f8f;--male-soft:#e8eef4;--female:#a2496f;--female-soft:#f6e8ee;--radius-xs:6px;--radius-sm:8px;--radius:12px;--radius-lg:16px;--radius-full:999px;--shadow-xs:0 1px 2px #2b1d120d;--shadow-sm:0 1px 3px #2b1d120f, 0 1px 2px #2b1d120a;--shadow-md:0 6px 16px -4px #2b1d121a, 0 2px 4px #2b1d120a;--shadow-lg:0 24px 48px -12px #2b1d1238, 0 4px 10px #2b1d120f;--font:"Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace;--text-xs:.75rem;--text-sm:.8125rem;--text-base:.875rem;--text-md:.9375rem;--text-lg:1.125rem;--text-xl:1.375rem;--text-2xl:1.75rem;--sidebar-w:248px;--rail-w:68px;--topbar-h:56px;--bottom-nav-h:64px;--page-max:1200px;--control-h:38px;--control-h-sm:32px;--ease:cubic-bezier(.2, 0, 0, 1);--dur:.16s}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#16110d;--surface:#1e1813;--surface-2:#272019;--surface-3:#322920;--overlay:#0009;--border:#382d23;--border-strong:#4a3c2f;--text:#f5ece0;--text-2:#c4b3a0;--text-3:#8f7d6a;--accent:#e39a62;--accent-hover:#eeac78;--accent-soft:#e39a6226;--accent-text:#f0b07e;--on-accent:#2b1608;--focus:#e39a6266;--gold:#e8b27a;--olive:#a3ad6c;--success:#9db86a;--success-soft:#9db86a26;--danger:#ec6a6f;--danger-hover:#f28286;--danger-soft:#ec6a6f26;--danger-text:#f4979a;--info-soft:#7896c826;--info-text:#a9c0e4;--male:#93afcc;--male-soft:#93afcc24;--female:#dc93b2;--female-soft:#dc93b224;--shadow-xs:0 1px 2px #0000004d;--shadow-sm:0 1px 3px #00000059;--shadow-md:0 8px 20px -6px #00000080;--shadow-lg:0 24px 48px -12px #000000a6}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--topbar-h) + 16px)}body{min-height:100dvh;font-family:var(--font);font-size:var(--text-base);color:var(--text);background:var(--bg);font-feature-settings:"cv11", "ss01";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;margin:0;line-height:1.5}h1,h2,h3,h4,p,dl,dd,ol,ul,figure{margin:0}ul,ol{padding:0;list-style:none}a{color:inherit;text-decoration:none}img,svg{max-width:100%;display:block}button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}button{cursor:pointer;background:0 0;border:0;padding:0}button:disabled{cursor:not-allowed}code,kbd{font-family:var(--font-mono);font-size:.9em}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-xs)}::selection{background:var(--accent-soft);color:var(--text)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:100;background:var(--text);color:var(--bg);border-radius:var(--radius-sm);transition:transform var(--dur) var(--ease);padding:8px 14px;position:fixed;top:8px;left:8px;transform:translateY(-200%)}.skip-link:focus{transform:none}.muted{color:var(--text-2)}.small{font-size:var(--text-sm)}.nowrap{white-space:nowrap}.align-end,.table .align-end{text-align:end}.mr-auto{margin-right:auto}.stack{flex-direction:column;gap:16px;min-width:0;display:flex}.stack-sm{flex-direction:column;gap:10px;display:flex}.show-mobile{display:none}@media (width<=767px){.hide-mobile{display:none!important}.show-mobile{display:inline}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.logo{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;flex-shrink:0}.btn{height:var(--control-h);border-radius:var(--radius-sm);font-size:var(--text-base);white-space:nowrap;-webkit-user-select:none;user-select:none;transition:background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 80ms var(--ease);border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-weight:550;line-height:1;display:inline-flex}.btn:active:not(:disabled){transform:translateY(.5px)}.btn:disabled{opacity:.5}.btn.is-loading{opacity:.85}.btn svg{flex-shrink:0}.btn-primary{background:var(--accent);color:var(--on-accent);box-shadow:var(--shadow-xs), inset 0 1px 0 #ffffff1f}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text);box-shadow:var(--shadow-xs)}.btn-secondary:hover:not(:disabled){background:var(--surface-2);border-color:var(--border-strong)}.btn-ghost{color:var(--text-2)}.btn-ghost:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:var(--danger-hover)}.btn-danger-ghost{color:var(--danger-text)}.btn-danger-ghost:hover:not(:disabled){background:var(--danger-soft)}.btn-sm{height:var(--control-h-sm);font-size:var(--text-sm);gap:6px;padding:0 10px}.btn-icon{width:var(--control-h);padding:0}.btn-sm.btn-icon{width:var(--control-h-sm)}.btn-block{width:100%}.input,.select{width:100%;height:var(--control-h);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:var(--text-base);color:var(--text);transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);appearance:none;padding:0 12px}.input::placeholder{color:var(--text-3)}.input:hover,.select:hover{border-color:var(--border-strong)}.input:focus,.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus);outline:none}.input[aria-invalid=true]{border-color:var(--danger)}.input[aria-invalid=true]:focus{box-shadow:0 0 0 3px var(--danger-soft)}.input:disabled{background:var(--surface-2);color:var(--text-3)}@media (pointer:coarse){.input,.select{font-size:16px}}.select{cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238f7c69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;padding-right:34px}.textarea{resize:vertical;height:auto;min-height:120px;padding:10px 12px;line-height:1.55}input[type=search]::-webkit-search-cancel-button{display:none}.input-icon{position:relative}.input-icon>svg{color:var(--text-3);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.input-icon>svg~.input{padding-left:36px}.input-icon-end .input{padding-right:40px}.input-trailing{pointer-events:none;display:flex;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.input-preview{font-size:var(--text-xs);color:var(--accent-text);background:var(--accent-soft);border-radius:var(--radius-full);padding:2px 8px;font-weight:550}.input-icon-end:has(.input-preview) .input{padding-right:120px}.input-action{border-radius:var(--radius-xs);width:30px;height:30px;color:var(--text-3);place-items:center;display:grid;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.input-action:hover{color:var(--text);background:var(--surface-2)}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field-label-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.field-label{font-size:var(--text-sm);color:var(--text);font-weight:550}.field-required{color:var(--danger)}.field-optional{color:var(--text-3);font-weight:400}.field-hint{font-size:var(--text-xs);color:var(--text-3)}.field-error{font-size:var(--text-xs);color:var(--danger-text);align-items:center;gap:6px;font-weight:500;display:flex}.check-inline{font-size:var(--text-xs);color:var(--text-2);cursor:pointer;align-items:center;gap:6px;display:inline-flex}.check-inline input{accent-color:var(--accent);margin:0}.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);gap:2px;max-width:100%;padding:3px;display:inline-flex}.segmented-option{min-width:84px;height:30px;font-size:var(--text-sm);color:var(--text-2);cursor:pointer;transition:background-color var(--dur) var(--ease), color var(--dur) var(--ease);border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:550;display:inline-flex;position:relative}.segmented-option input{opacity:0;pointer-events:none;position:absolute}.segmented-option:hover{color:var(--text)}.segmented-option.is-active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.segmented-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:1px}.segmented.is-disabled{opacity:.6}.segmented.is-disabled .segmented-option{cursor:not-allowed}.segmented[aria-invalid=true]{border-color:var(--danger)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-xs);min-width:0}.card-pad{padding:20px}.card-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.card-title{font-size:var(--text-md);letter-spacing:-.01em;align-items:center;gap:8px;font-weight:600;display:flex}.card-pad>.card-title{margin-bottom:14px}.section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.count{border-radius:var(--radius-full);background:var(--surface-2);min-width:20px;height:20px;color:var(--text-2);font-size:var(--text-xs);font-variant-numeric:tabular-nums;place-items:center;padding:0 6px;font-weight:600;display:inline-grid}.link-subtle{font-size:var(--text-sm);color:var(--text-2);align-items:center;gap:4px;font-weight:550;display:inline-flex}.link-subtle:hover{color:var(--accent-text)}.badge{border-radius:var(--radius-full);height:22px;font-size:var(--text-xs);white-space:nowrap;background:var(--surface-2);color:var(--text-2);align-items:center;gap:4px;padding:0 8px;font-weight:550;display:inline-flex}.badge-male{background:var(--male-soft);color:var(--male)}.badge-female{background:var(--female-soft);color:var(--female)}.badge-accent{background:var(--accent-soft);color:var(--accent-text)}.avatar{--size:40px;width:var(--size);height:var(--size);border-radius:var(--radius-full);background:var(--surface-3);color:var(--text-2);font-weight:600;font-size:calc(var(--size) * .38);letter-spacing:-.02em;-webkit-user-select:none;user-select:none;flex-shrink:0;place-items:center;display:inline-grid;position:relative;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.avatar-xs{--size:24px}.avatar-sm{--size:32px}.avatar-md{--size:40px}.avatar-lg{--size:56px}.avatar-xl{--size:96px}.avatar-male{background:var(--male-soft);color:var(--male)}.avatar-female{background:var(--female-soft);color:var(--female)}.avatar-empty{border:1.5px dashed var(--border-strong);color:var(--text-3);font-size:var(--text-sm);background:0 0}.list>li+li{border-top:1px solid var(--border)}.list-item{align-items:center;gap:12px;min-height:60px;padding:12px 20px;display:flex}.list-item-link{transition:background-color var(--dur) var(--ease)}.list-item-link:hover{background:var(--surface-2)}.list-item-text{flex-direction:column;flex:1;min-width:0;display:flex}.list-item-title{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:8px;font-weight:550;display:flex;overflow:hidden}.list-item-meta{font-size:var(--text-sm);color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.list-item-aside{font-size:var(--text-sm);color:var(--text-3);white-space:nowrap}.list-empty{color:var(--text-2);text-align:center;padding:24px 20px}.person-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;display:grid}.person-row{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);transition:border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);align-items:center;min-width:0;display:flex}.person-row:hover{border-color:var(--border-strong);background:var(--surface-2)}.person-row-link{border-radius:inherit;flex:1;align-items:center;gap:10px;min-width:0;padding:8px 10px;display:flex}.person-row-empty{color:var(--text-2);border-style:dashed;gap:10px;padding:8px 10px}.person-row-text{flex-direction:column;flex:1;min-width:0;line-height:1.35;display:flex}.person-row-name{text-overflow:ellipsis;white-space:nowrap;font-weight:550;overflow:hidden}.person-row-meta{font-size:var(--text-xs);color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.person-row-chevron{color:var(--text-3);flex-shrink:0}.person-row-actions{padding-right:6px;display:flex}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:var(--text-base)}.table th{text-align:left;font-size:var(--text-xs);color:var(--text-3);text-transform:uppercase;letter-spacing:.04em;background:var(--surface);border-bottom:1px solid var(--border);white-space:nowrap;padding:10px 16px;font-weight:550;position:sticky;top:0}.table td{border-bottom:1px solid var(--border);vertical-align:middle;padding:10px 16px}.table tbody tr:last-child td{border-bottom:0}.table th:first-child,.table td:first-child{padding-left:20px}.table th:last-child,.table td:last-child{padding-right:20px}.row-link{cursor:pointer;transition:background-color var(--dur) var(--ease)}.row-link:hover{background:var(--surface-2)}.cell-person{align-items:center;gap:12px;min-width:0;display:flex}.cell-person>span:last-child{flex-direction:column;line-height:1.3;display:flex}.cell-title{font-weight:550}.cell-sub{font-size:var(--text-xs);color:var(--text-3);font-variant-numeric:tabular-nums}.table-card.is-stale{opacity:.6;transition:opacity var(--dur) var(--ease)}.mobile-list{display:none}.mobile-list>li+li{border-top:1px solid var(--border)}@media (width<=767px){.table-wrap{display:none}.mobile-list{display:block}.mobile-list .list-item{padding:12px 16px}}.pagination{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;display:flex}.pagination-info{font-size:var(--text-sm);color:var(--text-2);font-variant-numeric:tabular-nums}.pagination-info strong{color:var(--text);font-weight:550}.pagination-controls{align-items:center;gap:6px;display:flex}.pagination-pages{gap:2px;display:flex}.pagination-page{border-radius:var(--radius-xs);min-width:32px;height:32px;font-size:var(--text-sm);color:var(--text-2);font-variant-numeric:tabular-nums;padding:0 6px;font-weight:550}.pagination-page:hover{background:var(--surface-2);color:var(--text)}.pagination-page.is-active{background:var(--accent-soft);color:var(--accent-text)}.pagination-gap{width:24px;color:var(--text-3);place-items:center;display:grid}.pagination-compact{font-size:var(--text-sm);font-variant-numeric:tabular-nums;padding:0 8px;font-weight:550;display:none}@media (width<=767px){.pagination{padding:12px 16px}.pagination-pages{display:none}.pagination-compact{display:inline}}.spinner{opacity:.7;border:2px solid;border-right-color:#0000;border-radius:50%;flex-shrink:0;animation:.7s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{border-radius:var(--radius-xs);background:linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);background-size:200% 100%;animation:1.4s ease-in-out infinite shimmer;display:block}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.page-loader{min-height:50vh;color:var(--text-3);place-items:center;display:grid}.empty{text-align:center;flex-direction:column;align-items:center;gap:6px;padding:48px 24px;display:flex}.empty-icon{border-radius:var(--radius);background:var(--surface-2);width:48px;height:48px;color:var(--text-2);place-items:center;margin-bottom:8px;display:grid}.empty-title{font-weight:600;font-size:var(--text-md)}.empty-desc{color:var(--text-2);max-width:36ch}.empty-action{margin-top:12px}.alert{border-radius:var(--radius-sm);font-size:var(--text-sm);align-items:flex-start;gap:10px;padding:10px 14px;line-height:1.45;display:flex}.alert svg{flex-shrink:0;margin-top:1px}.alert-danger{background:var(--danger-soft);color:var(--danger-text)}.alert-info{background:var(--info-soft);color:var(--info-text)}.progress{border-radius:var(--radius-full);background:var(--surface-2);height:8px;margin-bottom:10px;overflow:hidden}.progress>span{background:var(--accent);border-radius:inherit;height:100%;transition:width .4s var(--ease);display:block}.toasts{z-index:60;pointer-events:none;flex-direction:column;gap:8px;width:min(380px,100vw - 32px);display:flex;position:fixed;bottom:20px;right:20px}.toast{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);pointer-events:auto;animation:toast-in .22s var(--ease);align-items:flex-start;gap:10px;padding:12px 12px 12px 14px;display:flex}.toast-icon{flex-shrink:0;margin-top:1px}.toast-success .toast-icon{color:var(--success)}.toast-error .toast-icon{color:var(--danger)}.toast-info .toast-icon{color:var(--info-text)}.toast-content{flex:1;min-width:0}.toast-title{font-weight:600;font-size:var(--text-base)}.toast-desc{font-size:var(--text-sm);color:var(--text-2);margin-top:2px}.toast-close{color:var(--text-3);border-radius:var(--radius-xs);padding:2px}.toast-close:hover{color:var(--text);background:var(--surface-2)}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)scale(.98)}}@media (width<=767px){.toasts{width:auto;left:16px;right:16px;bottom:calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom))}}.dialog{color:var(--text);background:0 0;border:0;width:520px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);padding:0;overflow:visible}.dialog-sm{width:420px}.dialog-lg{width:680px}.dialog::backdrop{background:var(--overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fade-in .16s var(--ease)}.dialog[open] .dialog-panel,.dialog[open] .palette-panel{animation:dialog-in .2s var(--ease)}.dialog-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);max-height:calc(100dvh - 48px);box-shadow:var(--shadow-lg);flex-direction:column;display:flex}.dialog-header{justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 20px 0;display:flex}.dialog-title{font-size:var(--text-lg);letter-spacing:-.01em;font-weight:600}.dialog-desc{color:var(--text-2);font-size:var(--text-base);margin-top:4px}.dialog-body{padding:16px 20px;overflow-y:auto}.dialog-body>p+p,.dialog-body>p+ul{margin-top:8px}.dialog-footer{border-top:1px solid var(--border);background:var(--surface-2);border-radius:0 0 var(--radius-lg) var(--radius-lg);justify-content:flex-end;gap:8px;padding:14px 20px;display:flex}.dialog-header+.dialog-footer{margin-top:20px}@keyframes fade-in{0%{opacity:0}}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px)scale(.98)}}@keyframes sheet-in{0%{transform:translateY(100%)}}@media (width<=767px){.dialog:not(.palette){width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0}.dialog:not(.palette) .dialog-panel{border-radius:var(--radius-lg) var(--radius-lg) 0 0;max-height:92dvh;padding-bottom:env(safe-area-inset-bottom);border-bottom:0}.dialog[open]:not(.palette) .dialog-panel{animation:sheet-in .26s var(--ease)}.dialog-panel:before{content:"";border-radius:var(--radius-full);background:var(--border-strong);align-self:center;width:36px;height:4px;margin-top:8px}.dialog-header{padding-top:12px}.dialog-footer{border-radius:0;flex-wrap:wrap-reverse}.dialog-footer .btn{flex:1}.dialog-footer .mr-auto{flex-basis:100%}}.impact-list{flex-direction:column;gap:6px;margin-top:10px;display:flex}.impact-list li{color:var(--text-2);font-size:var(--text-sm);padding-left:16px;position:relative}.impact-list li:before{content:"";background:var(--danger);border-radius:50%;width:6px;height:6px;position:absolute;top:.6em;left:2px}.choice-list{flex-direction:column;gap:8px;display:flex}.choice{border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);align-items:center;gap:12px;padding:10px 12px;display:flex}.choice:hover{background:var(--surface-2)}.choice.is-active{border-color:var(--accent);background:var(--accent-soft)}.choice input{accent-color:var(--accent);margin:0}.choice-text{flex-direction:column;line-height:1.35;display:flex}.choice-text>span{font-weight:550}.choice-text small{color:var(--text-2);font-size:var(--text-xs)}.divider-text{color:var(--text-3);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.06em;align-items:center;gap:12px;display:flex}.divider-text:before,.divider-text:after{content:"";background:var(--border);flex:1;height:1px}.menu{display:inline-flex;position:relative}.menu-list{z-index:40;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:208px;box-shadow:var(--shadow-md);animation:dialog-in .14s var(--ease);padding:4px;position:absolute;top:calc(100% + 6px)}.menu-end{right:0}.menu-start{left:0}.menu-start-up{top:auto;bottom:calc(100% + 6px);left:0}.menu-header{border-bottom:1px solid var(--border);flex-direction:column;margin-bottom:4px;padding:8px 10px 10px;line-height:1.35;display:flex}.menu-header strong{font-weight:600}.menu-header span{font-size:var(--text-xs);color:var(--text-2);text-overflow:ellipsis;overflow:hidden}.menu-item{border-radius:var(--radius-xs);width:100%;height:36px;font-size:var(--text-base);color:var(--text);text-align:left;align-items:center;gap:10px;padding:0 10px;display:flex}.menu-item svg{color:var(--text-2)}.menu-item:hover:not(:disabled),.menu-item:focus-visible{background:var(--surface-2);outline:none}.menu-item:disabled,.menu-item:disabled svg{color:var(--text-3)}.menu-item.is-danger:not(:disabled),.menu-item.is-danger:not(:disabled) svg{color:var(--danger-text)}.menu-item.is-danger:hover:not(:disabled){background:var(--danger-soft)}.menu-separator{background:var(--border);height:1px;margin:4px 0}.combo{position:relative}.combo-list{z-index:30;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);max-height:300px;box-shadow:var(--shadow-md);overscroll-behavior:contain;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto}.combo-option{border-radius:var(--radius-xs);cursor:pointer;align-items:center;gap:10px;padding:8px;display:flex}.combo-option.is-active{background:var(--surface-2)}.combo-option-text{flex-direction:column;flex:1;min-width:0;line-height:1.35;display:flex}.combo-option-name{text-overflow:ellipsis;white-space:nowrap;font-weight:550;overflow:hidden}.combo-option-meta{font-size:var(--text-xs);color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.combo-option-id{font-size:var(--text-xs);color:var(--text-3);font-variant-numeric:tabular-nums}.combo-empty{color:var(--text-2);font-size:var(--text-sm);text-align:center;padding:14px 10px}.combo-selected{min-height:var(--control-h);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);align-items:center;gap:10px;padding:4px 4px 4px 8px;display:flex}.combo-selected-text{flex-direction:column;flex:1;min-width:0;line-height:1.3;display:flex}.combo-selected-name{text-overflow:ellipsis;white-space:nowrap;font-weight:550;overflow:hidden}.combo-selected-meta{font-size:var(--text-xs);color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.palette{width:600px;max-height:70vh;margin-top:12vh}.palette-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);max-height:70vh;box-shadow:var(--shadow-lg);flex-direction:column;display:flex;overflow:hidden}.palette-search{border-bottom:1px solid var(--border);color:var(--text-3);align-items:center;gap:10px;padding:0 16px;display:flex}.palette-search input{height:54px;font-size:var(--text-md);color:var(--text);background:0 0;border:0;outline:none;flex:1}.palette-search input::placeholder{color:var(--text-3)}.palette-search kbd,.sidebar-search kbd{border:1px solid var(--border);color:var(--text-3);background:var(--surface-2);border-radius:4px;padding:2px 6px;font-size:11px}.palette-list{padding:6px;overflow-y:auto}.palette-group{font-size:var(--text-xs);color:var(--text-3);padding:8px 10px 4px;font-weight:550}.palette-item{border-radius:var(--radius-sm);cursor:pointer;align-items:center;gap:10px;padding:8px 10px;display:flex}.palette-item.is-active{background:var(--surface-2)}.palette-item-icon{border-radius:var(--radius-xs);background:var(--surface-3);width:24px;height:24px;color:var(--text-2);place-items:center;display:grid}.palette-item-text{flex:1;align-items:baseline;gap:8px;min-width:0;font-weight:500;display:flex}.palette-item-text small{color:var(--text-3);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;font-weight:400;overflow:hidden}.palette-enter{color:var(--text-3)}.palette-empty{text-align:center;color:var(--text-2);padding:24px}@media (width<=767px){.palette{width:calc(100vw - 24px);max-width:calc(100vw - 24px);margin-top:12px}.palette-search kbd{display:none}}.dropzone{border:1.5px dashed var(--border-strong);border-radius:var(--radius);background:var(--surface-2);text-align:center;transition:border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);flex-direction:column;align-items:center;gap:14px;padding:28px 20px;display:flex}.dropzone.is-dragging{border-color:var(--accent);background:var(--accent-soft)}.dropzone-icon{border-radius:var(--radius);background:var(--surface);width:52px;height:52px;color:var(--text-2);box-shadow:var(--shadow-xs);place-items:center;display:grid}.dropzone-preview{object-fit:cover;border-radius:var(--radius);width:160px;height:160px;box-shadow:var(--shadow-md)}.dropzone-text{font-size:var(--text-sm);color:var(--text-2);flex-direction:column;align-items:center;gap:6px;display:flex}.fab{z-index:25;right:16px;bottom:calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom));background:var(--accent);width:56px;height:56px;color:var(--on-accent);box-shadow:var(--shadow-lg);border-radius:18px;place-items:center;display:none;position:fixed}.fab:active{transform:scale(.96)}@media (width<=767px){.fab{display:grid}}.field>.segmented{align-self:flex-start}@media (width<=767px){.field>.segmented{align-self:stretch}.field>.segmented .segmented-option{flex:1}}.app-shell{min-height:100dvh}.sidebar{z-index:20;width:var(--sidebar-w);background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:4px;padding:16px 12px 12px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-brand{align-items:center;gap:10px;padding:4px 8px 16px;display:flex}.sidebar-brand-text{font-weight:650;font-size:var(--text-md);letter-spacing:-.02em;align-items:baseline;gap:6px;display:flex}.sidebar-brand-text small{color:var(--text-3);font-weight:500;font-size:var(--text-sm)}.sidebar-search{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);height:36px;color:var(--text-3);font-size:var(--text-base);transition:border-color var(--dur) var(--ease);align-items:center;gap:10px;margin-bottom:12px;padding:0 10px;display:flex}.sidebar-search:hover{border-color:var(--border-strong);color:var(--text-2)}.sidebar-search span{text-align:left;flex:1}.nav{flex-direction:column;gap:2px;display:flex}.nav-item{border-radius:var(--radius-sm);height:38px;color:var(--text-2);transition:background-color var(--dur) var(--ease), color var(--dur) var(--ease);align-items:center;gap:12px;padding:0 10px;font-weight:500;display:flex}.nav-item:hover{background:var(--surface-2);color:var(--text)}.nav-item.active{background:var(--accent-soft);color:var(--accent-text);font-weight:600}.sidebar-footer{border-top:1px solid var(--border);margin-top:auto;padding-top:12px}.sidebar-footer .menu{width:100%;display:flex}.account-btn{border-radius:var(--radius-sm);text-align:left;width:100%;color:var(--text-3);align-items:center;gap:10px;padding:6px;display:flex}.account-btn:hover{background:var(--surface-2)}.account-btn-text{flex-direction:column;flex:1;min-width:0;line-height:1.3;display:flex}.account-btn-text span{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-weight:550;overflow:hidden}.account-btn-text small{font-size:var(--text-xs);color:var(--text-3);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.main{margin-left:var(--sidebar-w);outline:none;min-height:100dvh}.page{max-width:var(--page-max);flex-direction:column;gap:20px;margin:0 auto;padding:28px 32px 64px;display:flex}.page-narrow{max-width:800px}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.page-header-main{min-width:0}.page-back{border-radius:var(--radius-xs);color:var(--text-2);font-size:var(--text-sm);align-items:center;gap:2px;margin:0 0 8px -4px;padding:2px 6px 2px 2px;font-weight:500;display:inline-flex}.page-back:hover{color:var(--text);background:var(--surface-2)}.page-title{font-size:var(--text-2xl);letter-spacing:-.025em;font-weight:650;line-height:1.2}.page-subtitle{color:var(--text-2);min-height:1.5em;margin-top:4px}.page-actions{flex-wrap:wrap;gap:8px;display:flex}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.toolbar-search{flex:280px;max-width:420px}.toolbar-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.toolbar-filters .select{width:auto;min-width:140px}.topbar,.bottom-nav{display:none}@media (width<=1099px) and (width>=768px){.sidebar{width:var(--rail-w);align-items:center;padding:16px 10px 12px}.sidebar-label,.sidebar-brand-text{display:none}.sidebar-brand{padding:4px 0 16px}.sidebar-search{justify-content:center;width:44px;padding:0}.nav{width:100%}.nav-item{justify-content:center;height:44px;padding:0}.sidebar-footer{justify-content:center;width:100%;display:flex}.account-btn{justify-content:center}.main{margin-left:var(--rail-w)}.page{padding:24px 24px 56px}}@media (width<=767px){.sidebar{display:none}.topbar{z-index:20;height:calc(var(--topbar-h) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 8px 0 16px;background:color-mix(in srgb, var(--bg) 85%, transparent);-webkit-backdrop-filter:saturate(1.6)blur(12px);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.topbar-brand{letter-spacing:-.02em;align-items:center;gap:10px;font-weight:650;display:flex}.topbar-actions{align-items:center;gap:2px;display:flex}.topbar-avatar{border-radius:var(--radius-full);padding:4px}.main{padding-bottom:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));margin-left:0}.page{gap:16px;padding:20px 16px 40px}.page-title{font-size:var(--text-xl)}.bottom-nav{z-index:20;height:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:saturate(1.6)blur(12px);border-top:1px solid var(--border);grid-template-columns:repeat(4,1fr);display:grid;position:fixed;inset:auto 0 0}.bottom-nav-item{color:var(--text-3);flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:550;display:flex}.bottom-nav-item svg{transition:transform var(--dur) var(--ease)}.bottom-nav-item.active{color:var(--accent-text)}.bottom-nav-item.active svg{transform:translateY(-1px)}.toolbar{gap:8px}.toolbar-search{flex-basis:100%;max-width:none}.toolbar-filters{scrollbar-width:none;flex-wrap:nowrap;width:calc(100% + 32px);margin:0 -16px;padding:0 16px;overflow-x:auto}.toolbar-filters::-webkit-scrollbar{display:none}.toolbar-filters .select{flex:none;min-width:0}.card-pad{padding:16px}.card-header{padding:14px 16px}.list-item{padding:12px 16px}}.auth{background:radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-soft), transparent 70%), var(--bg);flex-direction:column;justify-content:center;align-items:center;gap:20px;min-height:100dvh;padding:24px 16px;display:flex}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);width:100%;max-width:400px;box-shadow:var(--shadow-md);flex-direction:column;gap:20px;padding:32px;display:flex}.auth-brand{text-align:center;flex-direction:column;align-items:center;gap:6px;display:flex}.auth-brand .logo{margin-bottom:10px}.auth-brand h1{font-size:var(--text-xl);letter-spacing:-.025em;font-weight:650}.auth-brand p{color:var(--text-2)}.auth-note{font-size:var(--text-xs);color:var(--text-2);text-align:center;border-radius:var(--radius-sm);background:var(--surface-2);padding:10px}.auth-footer{font-size:var(--text-sm);color:var(--text-3)}@media (width<=480px){.auth{justify-content:flex-start;padding-top:12vh}.auth-card{box-shadow:none;padding:24px 20px}}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-xs);flex-direction:column;gap:6px;min-width:0;padding:16px 18px;display:flex}.stat-link{transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease)}.stat-link:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.stat-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.stat-label{font-size:var(--text-sm);color:var(--text-2);font-weight:500}.stat-icon{border-radius:var(--radius-sm);background:var(--accent-soft);width:30px;height:30px;color:var(--accent-text);flex-shrink:0;place-items:center;display:grid}.stat-value{letter-spacing:-.03em;font-variant-numeric:tabular-nums;align-items:center;min-height:32px;font-size:1.75rem;font-weight:650;line-height:1.15;display:flex}.stat-hint{font-size:var(--text-xs);color:var(--text-3)}.dash-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}.split-bar{border-radius:var(--radius-full);background:var(--surface-2);gap:2px;height:10px;margin-bottom:16px;display:flex;overflow:hidden}.split-male{background:var(--male)}.split-female{background:var(--female)}.legend{flex-direction:column;gap:10px;display:flex}.legend>div{font-size:var(--text-sm);justify-content:space-between;align-items:center;gap:8px;display:flex}.legend dt{color:var(--text-2);align-items:center;gap:8px;display:flex}.legend dd{font-variant-numeric:tabular-nums;font-weight:600}.legend dd small{color:var(--text-3);margin-left:4px;font-weight:400}.dot{background:var(--border-strong);border-radius:50%;width:8px;height:8px;display:inline-block}.dot-male{background:var(--male)}.dot-female{background:var(--female)}.card-cta{transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);align-items:center;gap:14px;display:flex}.card-cta:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.card-cta>span:nth-child(2){flex-direction:column;flex:1;line-height:1.4;display:flex}.card-cta small{color:var(--text-2);font-size:var(--text-sm)}.card-cta>svg{color:var(--text-3)}@media (width<=1099px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-grid{grid-template-columns:1fr}}@media (width<=767px){.stat{padding:14px}.stat-value{font-size:1.5rem}}.profile{flex-wrap:wrap;align-items:center;gap:20px;padding:24px;display:flex}.profile-photo{border-radius:var(--radius-full);flex-shrink:0;position:relative}.profile-photo .avatar{box-shadow:0 0 0 4px var(--surface), 0 0 0 5px var(--border)}.profile-photo-overlay{border-radius:var(--radius-full);background:var(--surface);border:1px solid var(--border);width:32px;height:32px;color:var(--text-2);box-shadow:var(--shadow-sm);transition:color var(--dur) var(--ease), transform var(--dur) var(--ease);place-items:center;display:grid;position:absolute;bottom:0;right:0}.profile-photo:hover .profile-photo-overlay{color:var(--accent-text);transform:scale(1.06)}.profile-main{flex:1;min-width:200px}.profile-name{font-size:var(--text-2xl);letter-spacing:-.025em;overflow-wrap:anywhere;font-weight:650;line-height:1.2}.profile-meta{color:var(--text-2);font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:8px;display:flex}.profile-actions{flex-wrap:wrap;gap:8px;display:flex}.person-layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:16px;display:grid}.person-layout>aside{position:sticky;top:24px}.details{flex-direction:column;gap:12px;display:flex}.details>div{font-size:var(--text-base);grid-template-columns:90px 1fr;gap:12px;display:grid}.details dt{color:var(--text-3)}.details dd{overflow-wrap:anywhere;flex-direction:column;font-weight:500;display:flex}.details dd small{color:var(--text-2);font-weight:400;font-size:var(--text-sm)}.bio{border-top:1px solid var(--border);white-space:pre-line;color:var(--text-2);overflow-wrap:anywhere;margin-top:16px;padding-top:16px;line-height:1.65}.child-group+.child-group{border-top:1px dashed var(--border);padding-top:16px}.child-group-head{font-size:var(--text-sm);color:var(--text-2);justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.child-group-head strong{color:var(--text);font-weight:550}.generations{flex-direction:column;gap:18px;display:flex}.generation-title{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);align-items:center;gap:8px;margin-bottom:8px;font-weight:600;display:flex}@media (width<=1099px){.person-layout{grid-template-columns:1fr}.person-layout>aside{order:-1;position:static}}@media (width<=767px){.profile{text-align:center;flex-direction:column;gap:14px;padding:24px 16px 16px}.profile-main{width:100%;min-width:0}.profile-name{font-size:var(--text-xl)}.profile-meta{justify-content:center}.profile-actions{grid-template-columns:1fr 1fr 1fr auto;width:100%;display:grid}.profile-actions .btn{padding:0 8px}.person-grid{grid-template-columns:1fr}}.form{flex-direction:column;gap:16px;display:flex}.form-section-head{margin-bottom:16px}.form-section-head .card-title{margin-bottom:2px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.span-2{grid-column:1/-1}.form-actions{z-index:10;background:linear-gradient(to top, var(--bg) 70%, transparent);justify-content:flex-end;gap:8px;margin-top:-4px;padding:12px 0;display:flex;position:sticky;bottom:0}.form-actions-inline{justify-content:flex-end;display:flex}@media (width<=767px){.form-grid{grid-template-columns:1fr}.form-actions{bottom:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);margin:0 -16px;padding:12px 16px}.form-actions .btn{flex:1}.form-actions-inline .btn{width:100%}}.tree-card{padding:12px 8px;overflow-x:auto}.tree{min-width:max-content}.tree-children{border-left:1px solid var(--border);margin-left:19px;padding-left:14px;position:relative}.tree-item{position:relative}.tree-children>.tree-item:before{content:"";background:var(--border);width:12px;height:1px;position:absolute;top:20px;left:-14px}.tree-row{border-radius:var(--radius-sm);min-height:40px;transition:background-color .6s var(--ease);align-items:center;gap:6px;padding:2px 8px 2px 0;scroll-margin:120px;display:flex}.tree-row.is-focus{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.tree-toggle,.tree-toggle-spacer{border-radius:var(--radius-xs);width:28px;height:28px;color:var(--text-3);flex-shrink:0;place-items:center;display:grid}.tree-toggle:hover{background:var(--surface-2);color:var(--text)}.tree-toggle svg{transition:transform var(--dur) var(--ease)}.tree-toggle.is-open svg{transform:rotate(90deg)}.tree-person{border-radius:var(--radius-sm);white-space:nowrap;align-items:center;gap:8px;padding:4px 8px 4px 4px;display:inline-flex}.tree-person:hover{background:var(--surface-2)}.tree-name{font-weight:550}.tree-dates{font-size:var(--text-xs);color:var(--text-3);font-variant-numeric:tabular-nums}.tree-spouse{border-radius:var(--radius-full);background:var(--surface-2);border:1px solid var(--border);height:24px;font-size:var(--text-xs);color:var(--text-2);white-space:nowrap;align-items:center;gap:5px;padding:0 9px;display:inline-flex}.tree-spouse svg{color:var(--female)}.tree-spouse:hover{border-color:var(--border-strong);color:var(--text)}.tree-count{font-size:var(--text-xs);color:var(--text-3);border-radius:var(--radius-full);border:1px dashed var(--border-strong);font-variant-numeric:tabular-nums;place-items:center;height:20px;padding:0 7px;display:inline-grid}.tree-loose{border-top:1px solid var(--border);margin-top:12px;padding:12px 8px 0}.tree-loose summary{cursor:pointer;color:var(--text-2);align-items:center;gap:8px;padding:4px 8px;font-weight:550;list-style:none;display:flex}.tree-loose summary::-webkit-details-marker{display:none}.tree-loose[open] summary{margin-bottom:8px}@media (width<=767px){.tree-card{border-left:0;border-right:0;border-radius:0;margin:0 -16px;padding:8px 4px}.tree-children{margin-left:13px;padding-left:8px}.tree-children>.tree-item:before{width:6px;left:-8px}}.admin-list .list-item{min-height:68px}.account-profile{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.account-profile>div{flex:1;min-width:200px}.account-name{font-weight:600;font-size:var(--text-md)}@media (width<=767px){.account-logout{width:100%}}
