:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#172b3a;background:#f3f6f8;line-height:1.45}
*{box-sizing:border-box}body{margin:0}a{color:#075d84}a:hover{text-decoration:none}
.topbar{background:#153b51;color:#fff;padding:1rem max(1rem,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}
.brand{font-weight:700}.brand span{display:block;font-size:.8rem;font-weight:400;color:#c6e4ed}
nav{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}.topbar nav a,.topbar .link-button{color:#fff}.nav-group{position:relative}.nav-group summary{color:#fff;list-style:none}.nav-group summary::-webkit-details-marker{display:none}.nav-group>div{position:absolute;z-index:5;display:grid;gap:.55rem;min-width:220px;margin-top:.55rem;padding:.8rem;background:#153b51;border:1px solid #2b5a73;border-radius:.35rem;box-shadow:0 8px 22px #0b263a35}.session{margin-left:auto;display:flex;align-items:center;gap:1rem;font-size:.88rem;flex-wrap:wrap}
.container{max-width:1180px;margin:2rem auto;padding:0 1rem;min-height:65vh}
.panel{background:#fff;border:1px solid #d9e2e8;border-radius:.65rem;padding:1.2rem;margin:1rem 0;box-shadow:0 2px 8px #153b5108}
h1{font-size:1.9rem;margin:.1rem 0 .3rem}h2{font-size:1.25rem;margin:.2rem 0 1rem}h3{font-size:1rem}p{margin:.4rem 0 1rem}.heading{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap}
form{margin:0}label{display:flex;flex-direction:column;gap:.3rem;font-weight:600;font-size:.9rem}input,select,textarea{font:inherit;color:inherit;border:1px solid #aabdc9;border-radius:.35rem;padding:.55rem .65rem;background:#fff;min-width:0}textarea{min-height:7rem}input:focus,select:focus,textarea:focus{outline:2px solid #2d91b8;outline-offset:1px}
button,.button{font:inherit;background:#075d84;color:#fff;border:0;border-radius:.35rem;padding:.55rem .85rem;cursor:pointer;text-decoration:none;display:inline-block;white-space:nowrap}button:hover,.button:hover{background:#064969;color:#fff}.secondary{background:#e5eef3;color:#173e54}.secondary:hover{background:#cddfe9;color:#173e54}.small{font-size:.82rem;padding:.3rem .55rem}.link-button{background:none;padding:0;text-decoration:underline}.link-button:hover{background:none}
.stack{display:grid;gap:1rem}.row-form,.search{display:flex;gap:.8rem;align-items:end;flex-wrap:wrap}.row-form>*{max-width:100%}.grow{flex:1;min-width:230px}.grid{display:grid;gap:1rem}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.inline{display:inline}.compact{margin-top:.75rem}.checkbox{flex-direction:row;align-items:center}.checkbox input{width:auto}.clean-list{list-style:none;padding:0}.clean-list li{display:flex;justify-content:space-between;gap:.6rem;align-items:center;padding:.4rem 0;border-bottom:1px solid #e1e7eb}
#person-data-form:not(.show-empty) .empty-field{display:none}.show-empty-fields{justify-self:start}
.login-card{max-width:440px;margin:4rem auto}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.93rem}th,td{text-align:left;padding:.65rem .6rem;border-bottom:1px solid #e1e7eb;vertical-align:top}th{background:#eef4f7}tr:last-child td{border-bottom:0}
.notice{border-radius:.4rem;padding:.75rem 1rem;margin-bottom:1rem}.notice.ok{background:#d9f2e5}.notice.error{background:#ffe3df;color:#7d241b}.hint{color:#5e6e79;font-size:.85rem}summary{cursor:pointer;font-weight:600}.personal-occupations{border-top:1px solid #d9e2e8;margin-top:1.4rem;padding-top:1rem}.personal-occupations h3{margin:.1rem 0 .7rem}.history-panel>summary{font-size:.95rem}.history-panel[open]>summary{margin-bottom:.8rem}.history-panel .history-item{border-top:1px solid #e1e7eb;padding:.55rem 0;font-size:.8rem}.history-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7f8;padding:.7rem;border-radius:.3rem;font-size:.75rem}footer{text-align:center;color:#657985;padding:2rem 1rem;font-size:.85rem}
.pagination{margin-top:1rem;display:flex;gap:.75rem;align-items:center;justify-content:flex-end;flex-wrap:wrap}.pagination a{border:1px solid #aabdc9;border-radius:.35rem;padding:.35rem .65rem;text-decoration:none;background:#fff;color:#075d84}.pagination a:hover{background:#eef4f7;color:#064969}
.project-groups{display:grid;gap:1rem}.project-group{border:1px solid #d9e2e8;border-radius:.4rem;padding:.8rem;background:#fbfdfe}.project-group>summary{display:flex;justify-content:space-between;gap:1rem;align-items:center}.project-group h3{margin:1rem 0 .45rem;font-size:1rem}.subproject-title{display:inline-flex;align-items:center;background:#eaf3f7;border-left:4px solid #2d6f8f;color:#173d50;padding:.35rem .65rem;border-radius:.25rem;font-weight:700}
@media(max-width:800px){.grid.three{grid-template-columns:1fr}}@media(max-width:700px){.grid.two{grid-template-columns:1fr}.session{margin-left:0}.row-form>*{width:100%}.row-form button{width:auto}}
.project-filter { border: 1px solid #d6e2ed; border-radius: 8px; padding: 12px; }
.project-options { display: grid; gap: 6px; max-height: 180px; overflow-y: auto; }
.project-options label { display: block; font-weight: normal; }
.project-options input { width: auto; }
