:root{--green:#1f4d2b;--green-hover:#17391f;--green-soft:#e8efe9;--olive:#6b7a2e;--olive-soft:#eef0e0;--white:#fff;--gray-50:#f6f7f6;--gray-100:#eceeec;--gray-300:#c9cdc9;--gray-600:#5b625c;--gray-900:#1c211d;--red:#a32020;--red-soft:#fbeaea;--radius:10px;--sidebar:240px;--topbar:64px;--bottombar:68px;color:var(--gray-900);background:var(--gray-50);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{background:var(--gray-50);min-height:100vh;margin:0}h1{margin:0 0 .5rem;font-size:1.6rem;line-height:1.25}h2{margin:1.75rem 0 .75rem;font-size:1.15rem}p{margin:0 0 .75rem}code{background:var(--gray-100);border-radius:4px;padding:.1em .35em}.muted{color:var(--gray-600)}.lead{font-size:1.1rem}:focus-visible{outline:3px solid var(--olive);outline-offset:2px}.btn{min-height:44px;font:inherit;border-radius:var(--radius);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:.5rem;padding:.6rem 1.1rem;font-weight:600;display:inline-flex}.btn:disabled{opacity:.6;cursor:default}.btn-primary{background:var(--green);color:var(--white)}.btn-primary:hover:not(:disabled){background:var(--green-hover)}.btn-secondary{background:var(--white);color:var(--green);border-color:var(--gray-300)}.btn-secondary:hover:not(:disabled){background:var(--green-soft)}.btn-ghost{color:var(--green);background:0 0;padding:.5rem .75rem}.btn-ghost:hover{background:var(--green-soft)}.btn-block{width:100%}.actions{gap:.75rem;margin-top:1.25rem;display:grid}.form{gap:1rem;margin-top:1rem;display:grid}.field{gap:.35rem;font-weight:600;display:grid}.field input{font:inherit;border:1px solid var(--gray-300);border-radius:var(--radius);background:var(--white);min-height:48px;padding:.6rem .8rem;font-weight:400}.field input:focus{border-color:var(--green);outline:2px solid var(--green-soft)}.alert{border-radius:var(--radius);padding:.85rem 1rem}.alert p:last-child{margin-bottom:0}.alert-error{background:var(--red-soft);color:var(--red);border:1px solid #efc4c4}.alert-error .btn{margin-top:.75rem}.status{color:var(--gray-600);align-items:center;gap:.75rem;padding:.5rem 0;display:flex}.spinner{border:3px solid var(--gray-300);border-top-color:var(--green);border-radius:50%;width:20px;height:20px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2.5s}}.tag{letter-spacing:.04em;color:var(--olive);background:var(--olive-soft);border:1px solid var(--olive);vertical-align:middle;border-radius:999px;margin-left:.5rem;padding:.1rem .5rem;font-size:.75rem;font-weight:700;display:inline-block}.centered{place-items:center;min-height:100vh;padding:1.5rem 1rem;display:grid}.card{background:var(--white);border:1px solid var(--gray-100);border-radius:14px;padding:2rem 1.75rem}.card-narrow{width:100%;max-width:420px}.brand{color:var(--olive);letter-spacing:.02em;margin-bottom:.25rem;font-weight:700}.company-list{gap:.75rem;margin:1rem 0 1.25rem;padding:0;list-style:none;display:grid}.company-option{text-align:left;width:100%;font:inherit;cursor:pointer;background:var(--white);border:1px solid var(--gray-300);border-radius:var(--radius);gap:.15rem;min-height:64px;padding:.85rem 1rem;display:grid}.company-option:hover{border-color:var(--green);background:var(--green-soft)}.company-option-name{font-weight:700}.shell{min-height:100vh}.sidebar{width:var(--sidebar);background:var(--green);color:var(--white);padding:1.25rem .75rem;position:fixed;inset:0 auto 0 0}.sidebar-brand{margin-bottom:1.5rem;padding:0 .75rem;font-size:1.05rem;font-weight:700}.nav-link{border-radius:var(--radius);color:var(--white);align-items:center;gap:.75rem;padding:.7rem .75rem;font-weight:600;text-decoration:none;display:flex}.nav-link:hover{background:#ffffff1a}.nav-link.active{background:var(--white);color:var(--green)}.topbar{z-index:2;margin-left:var(--sidebar);min-height:var(--topbar);background:var(--white);border-bottom:1px solid var(--gray-100);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:.5rem 1.5rem;display:flex;position:sticky;top:0}.topbar-company{align-items:center;min-width:0;display:flex}.topbar-company-name{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.topbar-user{align-items:center;gap:.25rem;margin-left:auto;display:flex}.topbar-person{color:var(--gray-600);margin-right:.5rem}.content{margin-left:var(--sidebar);padding:2rem 1.5rem}.page{max-width:960px}.bottombar{display:none}.stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;display:grid}.stat{background:var(--white);border:1px solid var(--gray-100);border-left:4px solid var(--olive);border-radius:var(--radius);padding:1.1rem 1.25rem;display:grid}.stat-value{color:var(--green);font-size:2rem;font-weight:700;line-height:1.1}.stat-label{color:var(--gray-600)}.empty{margin-top:1rem}@media (width<=899px){:root{font-size:17px}.sidebar{display:none}.topbar,.content{margin-left:0}.topbar{padding:.5rem 1rem}.topbar-person{font-size:.9rem}.content{padding:1.25rem 1rem calc(var(--bottombar) + 1.5rem + env(safe-area-inset-bottom))}.btn{min-height:52px}.btn-ghost{min-height:44px}.bottombar{z-index:3;min-height:var(--bottombar);padding-bottom:env(safe-area-inset-bottom);background:var(--white);border-top:1px solid var(--gray-300);display:flex;position:fixed;inset:auto 0 0}.bottom-link{color:var(--gray-600);flex:1;place-items:center;gap:.1rem;padding:.5rem;font-size:.85rem;font-weight:600;text-decoration:none;display:grid}.bottom-link.active{color:var(--green)}.card{padding:1.5rem 1.25rem}}.page-header,.section-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.page-header h1{margin:0}.section-header{margin-top:2rem}.section-header h2{margin:0}.page-header{margin-bottom:1.25rem}.page-actions{flex-wrap:wrap;gap:.5rem;display:flex}.back-link{color:var(--green);margin-bottom:.75rem;font-weight:600;text-decoration:none;display:inline-block}.back-link:before{content:"‹ "}.back-link:hover{text-decoration:underline}a.btn{text-decoration:none}.item-list{gap:.6rem;margin:1rem 0 0;padding:0;list-style:none;display:grid}.item-link,.item{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);justify-content:space-between;align-items:center;gap:.75rem;padding:.9rem 1rem;display:flex}.item-link{color:inherit;gap:.15rem;min-height:64px;text-decoration:none;display:grid}.item-link:hover{border-color:var(--green);background:var(--green-soft)}.item-body{gap:.15rem;min-width:0;display:grid}.item-title{font-weight:700}.item-meta{color:var(--gray-600);font-size:.95rem}.item-actions{flex-shrink:0;gap:.25rem;display:flex}.details{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem 1.5rem;margin:0;padding:1.1rem 1.25rem;display:grid}.details dt{color:var(--gray-600);font-size:.9rem}.details dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:.1rem 0 0}.page-form{max-width:720px}.form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;display:grid}.form-grid>.field{align-content:start}.required{color:var(--gray-600);font-size:.9rem;font-weight:400}.field textarea{font:inherit;border:1px solid var(--gray-300);border-radius:var(--radius);background:var(--white);resize:vertical;padding:.6rem .8rem}.field textarea:focus{border-color:var(--green);outline:2px solid var(--green-soft)}.field-hint{color:var(--gray-600);font-size:.9rem;font-weight:400}.field-error{color:var(--red);font-size:.95rem;font-weight:600}.field-invalid input,.field-invalid textarea{border-color:var(--red)}.form-actions{flex-wrap:wrap;gap:.75rem;margin-top:.5rem;display:flex}.btn-danger{background:var(--red);color:var(--white)}.btn-danger:hover:not(:disabled){background:#861a1a}.btn-danger-outline{background:var(--white);color:var(--red);border-color:#e3b5b5}.btn-danger-outline:hover:not(:disabled){background:var(--red-soft)}.btn-ghost-danger{color:var(--red)}.btn-ghost-danger:hover{background:var(--red-soft)}.modal-backdrop{z-index:10;background:#1c211d73;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.modal{background:var(--white);border-radius:14px;width:100%;max-width:460px;padding:1.5rem}.modal h2{margin-top:0}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:.75rem;margin-top:1.25rem;display:flex}@media (width<=899px){.form-grid{grid-template-columns:minmax(0,1fr)}.form-actions .btn,.page-header .btn,.modal-actions .btn{flex:1}.item{flex-wrap:wrap}.item-actions{justify-content:flex-end;width:100%}.item-actions .btn{min-height:44px}}.page-wide{max-width:1280px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.list-controls{flex-wrap:wrap;align-items:end;gap:.75rem;margin-top:1rem;display:flex}.search{flex:280px}.search input,.sort-select select{width:100%;font:inherit;border:1px solid var(--gray-300);border-radius:var(--radius);background:var(--white);min-height:44px;padding:.5rem .8rem}.search input:focus,.sort-select select:focus{border-color:var(--green);outline:2px solid var(--green-soft)}.sort-select{flex:220px;gap:.25rem;font-size:.95rem;font-weight:600;display:grid}.result-count{margin:.75rem 0 0;font-size:.95rem}.table-wrap{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);margin-top:.75rem;overflow-x:auto}.data-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.data-table th,.data-table td{text-align:left;border-bottom:1px solid var(--gray-100);vertical-align:middle;padding:.65rem .9rem}.data-table thead th{background:var(--gray-50);color:var(--gray-600);white-space:nowrap;padding:0;font-size:.9rem}.data-table tbody th{font-weight:700}.data-table .num{text-align:right}.data-table thead th.num .sort-button{justify-content:flex-end}.data-table tfoot th,.data-table tfoot td{background:var(--gray-50);border-bottom:0;font-weight:700}.data-table tbody tr:hover{background:var(--green-soft)}.row-link{cursor:pointer}.data-table a{color:var(--green);font-weight:700;text-decoration:none}.data-table a:hover{text-decoration:underline}.sort-button{width:100%;font:inherit;color:inherit;cursor:pointer;text-align:inherit;background:0 0;border:0;align-items:center;gap:.35rem;padding:.65rem .9rem;font-weight:600;display:flex}.sort-button:hover,th[aria-sort=ascending] .sort-button,th[aria-sort=descending] .sort-button{color:var(--green)}.sort-mark{min-width:.8rem;font-size:.7rem}.actions-cell{text-align:right;white-space:nowrap}.input-with-button{gap:.5rem;display:flex}.sign-toggle{min-width:56px;padding:.5rem}.location-section{border:1px solid var(--gray-300);border-radius:var(--radius);background:var(--white);min-width:0;margin:0;padding:1rem 1.1rem 1.1rem;display:block}.location-section>*+*{margin-top:.75rem}.location-section legend{padding:0 .35rem;font-weight:700}.location-section p{margin:0}.location-current{color:var(--gray-900)}.location-warning{color:#7a5a00}.manual-coords{border-top:1px solid var(--gray-100);padding-top:.75rem}.manual-coords summary{cursor:pointer;color:var(--green);align-items:center;min-height:44px;font-weight:600;display:flex}.manual-coords[open] summary{margin-bottom:.75rem}.alert-success{background:var(--green-soft);color:var(--green);border:1px solid #c6d8ca}.alert-warning{color:#6b4e00;background:#fff6dc;border:1px solid #ecd796}.alert-success p,.alert-warning p{margin:0}.alert-warning p+p{margin-top:.35rem}.badge{white-space:nowrap;border-radius:999px;padding:.1rem .55rem;font-size:.85rem;font-weight:600;display:inline-block}.badge-own{background:var(--green-soft);color:var(--green)}.badge-inherited{background:var(--olive-soft);color:#4f5a20}.badge-none{background:var(--gray-100);color:var(--gray-600)}.data-table thead th.plain{padding:.65rem .9rem;font-weight:600}.item-title-link{color:var(--green);text-decoration:none}.item-title-link:hover{text-decoration:underline}.field{min-width:0}.field input,.field textarea{width:100%;min-width:0}.input-with-button input{flex:auto;width:0}
