:root{--bg:#f7f8f5;--paper:#fff;--ink:#253a33;--muted:#758078;--line:#e4e8e1;--green:#285548;--light:#edf3ed;--gold:#a18143;--red:#a94542;--radius:14px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--green)}button:disabled{opacity:.45;cursor:not-allowed}button,input,select{transition:background .15s,border-color .15s,box-shadow .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b9cfc0;outline-offset:3px}[hidden]{display:none!important}.sidebar{width:250px;background:#f0f3ec;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;border-right:1px solid #e1e7dc;padding:32px 20px 18px}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:20px;letter-spacing:-.6px;text-decoration:none;white-space:nowrap}.brand-symbol{display:flex;justify-content:center;align-items:center;width:42px;height:44px;background:var(--green);color:#e4c98c;font-size:42px;border-radius:13px;font-weight:300}.brand small{display:block;font-size:8px;letter-spacing:1.65px;font-weight:600;color:#7a897b;margin-top:3px}.nav-caption{color:#899286;font-size:10px;letter-spacing:1.7px;font-weight:650;margin:43px 15px 14px}nav .nav-caption{margin-top:33px}.nav{display:flex;align-items:center;width:100%;gap:11px;background:transparent;border:0;color:#6b776c;text-align:left;padding:12px 14px;border-radius:9px;margin:5px 0;font-size:13px;font-weight:550}.nav svg{width:18px;height:18px}.nav:hover{background:#e5ece1}.nav.active{background:#dde8db;color:#244c3d;font-weight:650}.nav-count{margin-left:auto;font-size:10px;background:#c8d9c8;min-width:22px;padding:1px 5px;text-align:center;border-radius:5px}.sidebar-bottom{margin-top:auto;border-top:1px solid #dce4d6;padding:22px 9px 12px;font-size:11px;color:#74806f}.sidebar-bottom strong{font-size:11px;color:#54634f}.sidebar-bottom p{line-height:1.8;margin:10px 0}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6e9270;margin-right:6px}.sidebar-bottom .text-button{font-size:11px}.sidebar-foot{display:flex;justify-content:space-between;color:#96a08f;font-size:8px;letter-spacing:1.4px;margin:18px 9px 0}.app-shell{margin-left:250px}.topbar{height:78px;background:#ffffffb5;border-bottom:1px solid var(--line);padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{font-size:12px;color:#92998f}.breadcrumb span{margin:0 12px;color:#b5bcb2}.breadcrumb strong{color:#657461;font-weight:500}.year-control{display:flex;align-items:center;gap:9px;font-size:12px;white-space:nowrap}.year-control label{color:#7b8678}.year-control svg{width:16px;color:#83927c}.year-control input{width:78px;padding:7px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;font-weight:650;color:var(--green)}#yearName{color:#8a947f;font-size:10px}main{max-width:1500px;margin:auto;padding:38px 40px 30px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:28px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:2.2px;color:var(--gold);margin-bottom:7px}h1{font-size:30px;letter-spacing:-1.1px;line-height:1.3;margin:0;font-weight:650}h2{font-size:17px;font-weight:650;letter-spacing:-.3px;margin:0 0 12px}h3{font-size:14px;margin:0}p{color:var(--muted);margin:9px 0 0}.page-heading p{font-size:13px}.actions{display:flex;gap:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dbe2d7;background:white;color:#4c5b4d;border-radius:8px;padding:10px 15px;font-weight:550;font-size:12px;white-space:nowrap;min-height:40px}.btn:hover{background:#f0f4ed;border-color:#b9c7b5}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 2px 2px #153d2010}.btn.primary:hover{background:#1c4136}.btn.danger{color:var(--red);border-color:#ebc7c3;background:#fff}.btn svg{width:16px;height:16px}.text-button{border:0;background:transparent;color:var(--green);padding:2px 0;font-size:12px;font-weight:600}.text-button:hover{text-decoration:underline}svg{width:20px;height:20px;display:block;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[data-icon]{display:inline-flex;flex-shrink:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.stat{display:flex;align-items:center;gap:16px;background:white;border:1px solid var(--line);padding:21px 23px;border-radius:var(--radius)}.stat-icon{width:45px;height:45px;background:#eff4eb;color:#68835a;border-radius:12px;display:flex;align-items:center;justify-content:center}.stat:nth-child(2) .stat-icon{background:#f8f3e7;color:#af9458}.stat:nth-child(3) .stat-icon{background:#edf2f3;color:#739293}.stat label{color:#889080;display:block;font-size:11px}.stat strong{font-size:27px;font-weight:600;letter-spacing:-.7px}.stat small{color:#8a9486;margin-left:7px;font-size:11px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}.list-panel{overflow:hidden}.list-toolbar{padding:19px 22px;display:flex;gap:12px;border-bottom:1px solid var(--line)}.searchbox{display:flex;align-items:center;gap:9px;flex:1;min-width:100px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:#fbfcf9}.searchbox svg{width:16px;color:#97a18f}.searchbox input{padding:10px 0;min-width:50px;width:100%;border:0;outline:none;background:none;color:var(--ink);font-size:12px}.searchbox input::placeholder{color:#98a091}.searchbox button{border:0;background:none;color:#7d8b75;font-size:20px}.list-toolbar select{min-width:145px;font-size:12px}.list-caption{display:flex;justify-content:space-between;gap:12px;background:#fbfcf9;border-bottom:1px solid var(--line);padding:14px 24px;font-size:11px}.list-caption strong{color:#667460;font-weight:600}.list-caption span{color:#99a18f}.family-card{border-bottom:1px solid var(--line);padding:23px 25px 18px}.family-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.family-avatar{width:34px;height:34px;background:#f2f4ee;border:1px solid #e5ebdf;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#7d9273}.family-avatar svg{width:16px;height:16px}.family-head h3{font-weight:600;font-size:14px}.family-head small{font-size:10px;color:#98a18f}.family-head .family-actions{margin-left:auto;display:flex;gap:5px}.icon-btn{border:0;background:transparent;border-radius:7px;color:#87947b;font-size:25px;line-height:1;width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center}.icon-btn svg{width:16px;height:16px}.icon-btn:hover{background:#edf3e9;color:var(--green)}.icon-btn.delete:hover{background:#fcf0ed;color:var(--red)}.member-list{display:grid;grid-template-columns:repeat(2,1fr);column-gap:25px;row-gap:1px}.member-display{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #eff2eb;min-width:0}.member-initial{height:31px;width:31px;flex-shrink:0;background:#f2f4f0;color:#88947f;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px}.member-display .name{font-size:12px;font-weight:550;overflow-wrap:anywhere}.member-display .detail{color:#8d9686;font-size:10px;margin-top:3px}.member-display .address{color:#8d9686;font-size:10px;white-space:normal;margin-top:2px;overflow-wrap:anywhere}.member-display .badge{margin-left:auto;align-self:flex-start;margin-top:2px;flex-shrink:0}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;background:#f2eee5;color:#907648;padding:3px 8px;font-size:10px;font-weight:600;white-space:nowrap}.badge::before{content:'✧';font-size:12px}.badge.green{background:#edf4eb;color:#618052}.badge.rose{background:#fbefec;color:#b37465}.badge.blue{background:#eef3f7;color:#6f8a9c}.badge.gray{background:#f0f1ed;color:#8b9282}.empty{padding:55px 20px 61px;text-align:center;min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center}.empty-illustration{height:94px;width:110px;position:relative;margin:0 auto 18px;display:flex;align-items:center;justify-content:center}.empty-illustration:before{content:'';position:absolute;width:87px;height:87px;border-radius:50%;background:#f0f4eb}.empty-illustration svg{position:relative;width:44px;height:44px;color:#899d79;stroke-width:1.1}.empty-illustration:after{content:'✧';position:absolute;right:3px;top:3px;font-size:29px;color:#bea875}.empty h2{font-size:18px;margin:0 0 5px}.empty p{font-size:12px;max-width:370px;margin:0 0 21px;line-height:1.8}.empty .actions{justify-content:center}.pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 24px;font-size:11px;color:#9aa18e}.pagination:empty{display:none}.pagination .btn{min-height:30px;padding:5px 10px;font-size:11px}.footnote{display:flex;gap:8px;font-size:10px;color:#8b9584;line-height:1.8;margin-top:17px}.footnote svg{width:14px;height:14px;margin-top:3px}.footnote .text-button{font-size:10px;font-weight:500;margin-left:6px}.app-footer{display:flex;justify-content:space-between;max-width:1500px;margin:auto;padding:16px 40px 25px;font-size:9px;color:#a3aa9b}.app-footer>span:first-child{letter-spacing:.8px}.star-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:25px}.star-card{text-align:left;display:flex;flex-direction:column;gap:13px;border:1px solid var(--line);background:white;border-radius:11px;padding:17px}.star-card.active{border-color:#719268;box-shadow:0 0 0 1px #719268;background:#f5f8f1}.star-card strong{font-size:25px;font-weight:550}.star-card small{font-size:11px;color:#8a9681}.star-results{padding:23px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-title h2{margin:0}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{padding:12px;background:#f6f8f3;color:#7f8c75;font-size:10px;letter-spacing:.2px;font-weight:600;white-space:nowrap}td{padding:13px 12px;border-bottom:1px solid #edf0e9;vertical-align:middle;overflow-wrap:anywhere}.table-empty{text-align:center;padding:50px;color:#929d88}.lookup-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:25px;max-width:950px}.lookup-form{padding:29px}.lookup-form h2{margin-bottom:24px}.lookup-form>label{margin-bottom:20px}.lookup-form .btn{width:100%;margin-top:25px}.lookup-result{padding:40px 30px;text-align:center;background:radial-gradient(circle at 50% 10%,#f1f4e9,white 85%);display:flex;flex-direction:column;align-items:center;justify-content:center}.large-star{color:#b99b5c;font-size:77px;line-height:1.1;font-weight:300;margin-bottom:18px}.lookup-result h2{font-size:28px;font-weight:550;margin:8px 0}.lookup-result p{font-size:12px;max-width:340px;line-height:1.9}.lookup-result .formula{font-size:12px;margin-top:20px;background:#fff;border:1px solid var(--line);width:100%}.lookup-result small{font-size:10px;color:#839279}.data-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:25px}.data-card{padding:26px;display:flex;align-items:flex-start;flex-direction:column}.tile-icon{padding:12px;border-radius:10px;background:#eff4eb;color:#768d67;margin-bottom:17px}.data-card p{font-size:13px;margin:0 0 23px;max-width:400px;flex:1}.data-card small{display:block;font-size:10px;color:#909a85;margin-top:12px}.data-card .text-button{margin-top:14px}.notice{border:1px solid #e5e4d1;background:#faf9f1;color:#8c8059;border-radius:10px;display:flex;gap:12px;padding:17px 20px;margin:20px 0;font-size:12px;line-height:1.7}.notice>span{padding-top:2px}.notice p{margin:4px 0 0;color:inherit}.notice.error{background:#fff1ed;border-color:#efc9c0;color:#a34d3e}.notice.compact{padding:12px 15px;font-size:11px}.setting-row,.danger-zone{padding:24px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:20px}.setting-row h2,.danger-zone h2{font-size:14px;margin-bottom:5px}.setting-row p,.danger-zone p{font-size:12px;margin:0}.setting-row p{max-width:660px}.switch-label{white-space:nowrap;flex-direction:row;align-items:center;gap:7px!important}.danger-zone{margin-top:30px}.danger-zone h2{color:var(--red)}.guide-layout{display:grid;grid-template-columns:1.7fr 1fr;gap:24px}.guide{padding:27px}.guide p,.guide li{font-size:13px;line-height:1.9}.guide h2:not(:first-child){margin-top:29px}.guide .formula{font-size:13px}.guide table{margin-top:17px}.guide-side{display:flex;flex-direction:column;gap:22px}.guide ol{padding-left:19px;color:var(--muted)}.guide li{margin:10px 0}.formula{background:#f1f5ed;border-radius:8px;padding:16px;color:#526d44}.guide a{text-underline-offset:3px}.help{font-size:11px;color:#8f9987;line-height:1.8}.required,.error-text{color:var(--red)}.error-text{font-size:12px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#64745b;font-weight:500}input:not([type=checkbox]),select{width:100%;border:1px solid #dfe5d8;background:#fff;border-radius:7px;color:#34452d;padding:10px 11px;min-height:40px;font-size:13px}input::placeholder{color:#a1aa98}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:15px}.checkbox-row{flex-direction:row;align-items:center;font-size:12px;gap:8px;margin:18px 0}.icon-btn[data-close]{font-size:26px;font-weight:300}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:25px 29px;border-bottom:1px solid var(--line);gap:18px}.dialog-head h2{font-size:21px;margin:0}.dialog-head .eyebrow{font-size:9px}.dialog-body{padding:25px 29px;overflow:auto;max-height:calc(90vh - 180px)}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:18px 29px;background:#fbfcf9}dialog{border:1px solid var(--line);padding:0;border-radius:16px;width:min(900px,94vw);max-height:92vh;color:var(--ink);box-shadow:0 30px 100px #1731202b}dialog::backdrop{background:#1b302756;backdrop-filter:blur(3px)}dialog.drawer{width:690px;max-width:96vw;margin:0 0 0 auto;height:100dvh;max-height:100dvh;border-radius:16px 0 0 16px}.drawer form{height:100%;display:flex;flex-direction:column}.drawer .dialog-body{flex:1;max-height:none}.drawer .dialog-body>.section-title{margin:28px 0 0}.drawer .dialog-body>.help{margin-bottom:18px}.small-dialog{width:440px}.small-dialog .dialog-body p{margin-top:0;white-space:pre-line}.member-row{padding:18px;border:1px solid var(--line);border-radius:11px;background:#fbfcf9;margin-bottom:14px}.member-row-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.member-row-top strong{font-size:11px;color:#94a188}.member-fields{display:grid;grid-template-columns:1.8fr .9fr 1fr 1fr;gap:11px}.member-fields input,.member-fields select{font-size:12px;padding:8px;min-width:0}.member-fields label{font-size:10px;white-space:nowrap}.member-row>.address-label{margin-top:12px;font-size:10px}.member-row>.address-label input{font-size:12px}.member-row-top .badge{margin-left:auto;margin-right:12px}.import-meta{display:flex;align-items:center;justify-content:space-between;gap:15px}.import-meta strong{font-size:13px;overflow-wrap:anywhere}.import-meta label{max-width:270px;font-size:10px}.import-meta select{font-size:11px}#importSummary{font-size:13px;margin:15px 0}#importErrors{max-height:140px;overflow:auto;color:var(--red);font-size:12px}#importErrors li{margin:5px 0}#importPreview{max-height:300px}.import-warning{color:#93794a}#toast{position:fixed;bottom:28px;left:calc(50% + 125px);transform:translateX(-50%) translateY(20px);background:#254b3e;color:#fff;padding:13px 21px;border-radius:9px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 4px 25px #173b2826;z-index:100;max-width:90vw}#toast.visible{opacity:1;transform:translateX(-50%)}#printArea{display:none}.view{animation:appear .16s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1500px){main{padding-top:45px}.member-list{grid-template-columns:repeat(3,1fr)}}@media(max-width:1150px){.sidebar{width:215px;padding-left:14px;padding-right:14px}.app-shell{margin-left:215px}.brand{font-size:18px}.nav{font-size:12px;padding:11px 10px;gap:9px}main{padding:30px 25px}.topbar{padding:0 25px}.page-heading{align-items:flex-start}.page-heading .actions{flex-direction:column}.stats{gap:12px}.stat{padding:17px;gap:12px}.member-list{grid-template-columns:1fr 1fr}.member-display{gap:8px}.member-initial{display:none}.star-grid{grid-template-columns:repeat(3,1fr)}.guide-layout{grid-template-columns:1fr}.guide-side{display:grid;grid-template-columns:1fr 1fr}#toast{left:calc(50% + 107px)}}@media(max-width:850px){.sidebar{width:190px;padding:23px 12px}.brand{gap:7px;font-size:17px}.brand-symbol{width:32px;height:35px;font-size:33px}.brand small{font-size:6px}.nav{font-size:11px}.app-shell{margin-left:190px}.breadcrumb{display:none}.topbar{height:66px;justify-content:flex-end}.member-list{grid-template-columns:1fr}.stat-icon{display:none}.stat{padding:15px}.stat strong{font-size:24px}.list-toolbar{flex-wrap:wrap;padding:15px}.searchbox{flex-basis:100%}.list-toolbar select{flex:1;width:auto}.family-card{padding:20px}.lookup-layout{grid-template-columns:1fr}.page-heading h1{font-size:27px}.page-heading p{font-size:12px}.page-heading .actions{gap:7px}.page-heading .btn{font-size:11px}.data-grid{gap:15px}.data-card{padding:20px}#yearName{display:none}#toast{left:calc(50% + 95px)}}@media(max-width:650px){.sidebar{position:static;width:100%;padding:17px 16px 0;border-right:0;border-bottom:1px solid var(--line);height:auto;background:#f0f3ec}.brand{font-size:19px}.brand small{font-size:7px}.brand-symbol{width:35px;height:36px}.sidebar>.nav-caption,.sidebar-bottom,.sidebar-foot,nav .nav-caption,.nav-count{display:none}.sidebar nav{display:flex;overflow-x:auto;margin-top:17px;gap:5px;padding-bottom:9px}.nav{min-width:fit-content;width:auto;gap:7px;padding:9px 10px;font-size:11px;margin:0}.nav svg{width:15px}.app-shell{margin:0}.topbar{height:58px;padding:0 18px;justify-content:space-between}.breadcrumb{display:block;font-size:10px}.breadcrumb>span{margin:0 5px}.breadcrumb>strong{display:none}.year-control{gap:7px;font-size:11px}.year-control input{min-height:33px;width:70px;font-size:12px}main{padding:26px 17px}.page-heading{flex-direction:column;gap:17px;margin-bottom:22px}.page-heading .actions{flex-direction:row;width:100%;gap:8px}.page-heading .actions .btn{flex:1;font-size:12px}.page-heading h1{font-size:28px}.page-heading p{font-size:12px}.eyebrow{font-size:8px}.stats{gap:8px;margin-bottom:20px}.stat{padding:13px 11px}.stat label{font-size:9px}.stat strong{font-size:23px}.stat small{font-size:9px;margin-left:4px}.list-caption{padding:12px 15px}.list-caption span{display:none}.family-card{padding:18px 15px}.member-list{grid-template-columns:1fr}.member-initial{display:flex}.family-head h3{font-size:13px}.member-display .name{font-size:12px}.empty{padding:35px 15px;min-height:320px}.empty h2{font-size:16px}.empty p{font-size:11px}.empty .actions{flex-direction:column}.footnote{font-size:10px}.app-footer{padding:7px 18px 20px;font-size:8px}.star-grid{grid-template-columns:repeat(2,1fr);gap:10px}.star-card{padding:15px}.star-results{padding:17px}.star-results .section-title{align-items:flex-start}.star-results h2{font-size:16px}.data-grid,.guide-side{grid-template-columns:1fr}.setting-row,.danger-zone{align-items:flex-start;flex-direction:column;padding:20px}.guide{padding:20px}.lookup-form{padding:22px}.dialog-head{padding:20px}.dialog-head h2{font-size:19px}.dialog-body{padding:20px}.dialog-footer{padding:16px 20px}.member-fields{grid-template-columns:1.4fr 1fr}.member-row{padding:14px}.member-fields label{font-size:11px}.import-meta{align-items:flex-start;flex-direction:column}.import-meta label{max-width:none;width:100%}#toast{left:50%;width:max-content;max-width:90vw}.pagination{padding:13px 15px;flex-wrap:wrap}.badge{font-size:10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{body>*{display:none!important}#printArea{display:block!important;padding:15px;color:#000;font:12px/1.6 Arial,sans-serif}#printArea h1{font-size:22px}#printArea p{color:#444;margin-bottom:20px}#printArea table{font-size:11px}#printArea th{color:#222;background:#eee}#printArea td{border-bottom:1px solid #ddd}#printArea tr{break-inside:avoid}@page{size:A4 landscape;margin:12mm}}

.searchbox input{border:0;background:transparent;padding:10px 0;border-radius:0;box-shadow:none}
.list-toolbar select{width:180px;flex:0 0 180px}.searchbox input{min-width:0}.searchbox svg{flex-shrink:0}
@media(max-width:700px){.list-toolbar select{width:auto;flex:1}}
