#root{min-height:100dvh}h1,h2,h3,p{margin-top:0}button,input,select{border-radius:var(--radius-control)}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.button{min-height:34px;color:var(--text);white-space:nowrap;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:8px 13px;font-size:13px;font-weight:650;line-height:1;text-decoration:none;transition:background-color .14s,border-color .14s,transform .16s cubic-bezier(.23,1,.32,1);display:inline-flex}@media (prefers-reduced-motion:no-preference){.button:active:not(:disabled),.icon-button:active:not(:disabled){transform:scale(.97)}}.button:hover{text-decoration:none}.button:disabled{opacity:.58}.button-primary{color:var(--on-accent);background:var(--accent);box-shadow:var(--shadow-sm), inset 0 1px 0 color-mix(in srgb, var(--on-accent) 12%, transparent)}.button-primary:hover:not(:disabled){background:var(--accent-hover)}.button-secondary{border-color:var(--border-strong);background:var(--surface);box-shadow:var(--shadow-sm)}.button-secondary:hover:not(:disabled){background:var(--surface-muted)}.button-quiet{min-height:32px;color:var(--accent-text);background:var(--accent-soft);padding:6px 9px}.button-quiet:hover:not(:disabled){background:var(--accent-soft-hover)}.button-wide{justify-content:space-between;width:100%;min-height:44px;padding-inline:16px}.button-link{color:var(--accent-text);background:0 0;border:0;align-self:center;align-items:center;gap:6px;padding:4px;font-size:13px;font-weight:650;display:inline-flex}.button-link:hover{text-underline-offset:3px;text-decoration:underline}.icon-button{width:34px;height:34px;color:inherit;background:0 0;border:1px solid #0000;flex:0 0 34px;place-items:center;padding:0;transition:transform .16s cubic-bezier(.23,1,.32,1);display:inline-grid}.icon-button:hover{color:var(--text);background:var(--surface-muted)}.brand-lockup{color:var(--sidebar-active-text);align-items:center;gap:10px;display:flex}.brand-plate{border-radius:var(--radius-control);background:var(--surface);flex:none;padding:4px 6px;display:inline-flex}.brand-logo{width:auto;display:block}.brand-lockup-sidebar .brand-logo{height:40px}.brand-lockup-auth .brand-logo{height:52px}.brand-separator{background:var(--sidebar-line);flex:none;width:1px;height:22px}.brand-product{font-family:var(--font-display);letter-spacing:-.01em;white-space:nowrap;font-size:15px;font-weight:600;line-height:1.1}.brand-lockup-auth{gap:14px}.brand-lockup-auth .brand-separator{height:28px}.brand-lockup-auth .brand-product{font-size:20px}.auth-page{background:var(--surface);grid-template-columns:minmax(360px,.92fr) minmax(500px,1.08fr);min-height:100dvh;display:grid}.auth-intro{min-height:100dvh;color:var(--sidebar-text);background:var(--sidebar-bg);flex-direction:column;justify-content:space-between;padding:clamp(32px,5vw,72px);display:flex;position:relative;overflow:hidden}.auth-intro>*{z-index:1;position:relative}.auth-intro:after{z-index:0;border:1px solid color-mix(in srgb, var(--sidebar-active-icon) 14%, transparent);width:620px;height:620px;box-shadow:0 0 0 70px color-mix(in srgb, var(--sidebar-active-icon) 3%, transparent), 0 0 0 140px color-mix(in srgb, var(--sidebar-active-icon) 2%, transparent);content:"";pointer-events:none;border-radius:50%;position:absolute;bottom:-200px;right:-180px}.auth-intro-copy{max-width:560px;margin-block:auto;padding-block:56px}.auth-kicker,.page-kicker{color:var(--accent-text);letter-spacing:.11em;text-transform:uppercase;margin-bottom:12px;font-size:11px;font-weight:760}.auth-intro .auth-kicker{color:var(--sidebar-active-icon)}.auth-intro h1{max-width:520px;color:var(--sidebar-active-text);letter-spacing:-.03em;margin-bottom:16px;font-size:clamp(36px,3.4vw,46px);font-weight:600;line-height:1.04}.auth-intro-copy>p:last-child{max-width:440px;color:var(--sidebar-text);margin-bottom:0;font-size:15px;line-height:1.55}.auth-security-note{max-width:390px;color:var(--sidebar-muted);align-items:center;gap:10px;font-size:12px;line-height:1.4;display:flex}.auth-security-note svg{color:var(--sidebar-active-icon);flex:none}.auth-form-panel{place-items:center;min-height:100dvh;padding:32px;display:grid}.auth-form{flex-direction:column;gap:20px;width:min(100%,410px);display:flex}.auth-form header{margin-bottom:8px}.auth-form .field input{min-height:40px}.auth-form h2{margin-bottom:9px;font-size:30px}.auth-form header p,.dialog-header p{color:var(--text-muted);margin-bottom:0;font-size:13px;line-height:1.5}.field{color:var(--text);flex-direction:column;gap:7px;font-size:12px;font-weight:650;display:flex}.field input,.field select,.field textarea{border:1px solid var(--border-strong);width:100%;min-height:36px;color:var(--text);background:var(--surface);padding:9px 11px;font-family:inherit;font-size:14px;font-weight:450;transition:border-color .14s,box-shadow .14s}.field input:hover,.field select:hover,.field textarea:hover{border-color:color-mix(in srgb, var(--text-faint) 35%, var(--border-strong))}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:0}.field textarea{resize:vertical;min-height:78px}.field small{color:var(--text-muted);font-size:11px;font-weight:450}.generate-contract-missing{margin:6px 0 0;padding-left:18px}.contract-template-dialog{width:min(100%,640px)}.contract-template-active{gap:4px;display:grid}.contract-template-active strong{color:var(--text);overflow-wrap:anywhere}.contract-template-upload{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.contract-template-upload input[type=file]{flex:240px;min-width:0}.contract-template-problems{margin:6px 0 0;padding-left:18px}.contract-template-heading{margin:0 0 8px;font-size:13px}.contract-template-versions{border:1px solid var(--border);border-radius:var(--radius-control);margin:0;padding:0;list-style:none;display:grid}.contract-template-versions>li{justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.contract-template-versions>li+li{border-top:1px solid var(--border)}.contract-template-versions>li>div:first-child{overflow-wrap:anywhere;gap:2px;min-width:0;font-size:12px;display:grid}.contract-template-versions strong{align-items:center;gap:8px;font-size:13px;display:flex}.contract-template-version-actions{flex-shrink:0;align-items:center;gap:6px;display:flex}.contract-template-placeholders summary{cursor:pointer;font-size:13px;font-weight:650}.contract-template-placeholders p{color:var(--text-muted);margin:8px 0;font-size:12px}.contract-template-placeholders dl{gap:4px;margin:0;font-size:12px;display:grid}.contract-template-placeholders dl>div{grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:10px;display:grid}.contract-template-placeholders dd{color:var(--text-muted);margin:0}@media (width<=520px){.contract-template-versions>li{flex-direction:column;align-items:stretch}.contract-template-placeholders dl>div{grid-template-columns:1fr;gap:0}}.field-row{grid-template-columns:.72fr 1.28fr;gap:12px;display:grid}.form-message{border-radius:var(--radius-control);margin:-4px 0 0;padding:10px 12px;font-size:12px;line-height:1.45}.form-error{color:var(--danger);background:var(--danger-soft)}.form-notice{color:var(--success);background:var(--success-soft)}.centered-state{background:var(--surface-page);place-items:center;min-height:100dvh;padding:24px;display:grid}.app-shell{grid-template-columns:var(--sidebar-width) minmax(0, 1fr);min-height:100dvh;display:grid}.sidebar{height:100dvh;min-height:620px;color:var(--sidebar-text);border-right:1px solid var(--sidebar-line);background:var(--sidebar-bg);flex-direction:column;padding:18px 14px 14px;display:flex;position:sticky;top:0}.sidebar>.brand-lockup{height:48px;margin-bottom:20px;padding:0 8px}.sidebar a:focus-visible,.sidebar button:focus-visible,.nav-link:focus-visible,.sidebar .icon-button:focus-visible,.nav-group-toggle:focus-visible,.nav-sublink:focus-visible{outline:2px solid var(--sidebar-focus);outline-offset:-2px}.primary-navigation{flex-direction:column;flex:1;gap:3px;display:flex}.nav-link{border-radius:var(--radius-control);min-height:41px;color:var(--sidebar-text);align-items:center;gap:11px;padding:8px 10px;font-size:13px;font-weight:550;text-decoration:none;transition:color .12s,background-color .12s;display:flex}.nav-link:hover{color:var(--sidebar-active-text);background:var(--sidebar-hover-bg)}.nav-link-active{color:var(--sidebar-active-text);background:var(--sidebar-active-bg)}.nav-link-active svg{color:var(--sidebar-active-icon)}.sidebar-user{border-top:1px solid var(--sidebar-line);align-items:center;gap:9px;padding:12px 7px 3px;display:flex}.user-avatar{width:34px;height:34px;color:var(--accent-text);background:var(--accent-soft);border-radius:50%;flex:0 0 34px;place-items:center;font-size:11px;font-weight:780;display:grid}.user-summary{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.user-summary strong,.user-summary span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-summary strong{color:var(--sidebar-active-text);font-size:11px;font-weight:650}.user-summary span{color:var(--sidebar-muted);font-size:10px}.app-workspace{background:var(--surface-page);min-width:0}.topbar{z-index:20;height:var(--topbar-height);border-bottom:1px solid var(--border);background:color-mix(in srgb, var(--surface-page) 94%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);justify-content:flex-start;align-items:center;gap:20px;padding:0 28px;display:flex;position:sticky;top:0}.global-search{width:min(620px,72vw);color:var(--text-muted);align-items:center;gap:9px;display:flex;position:relative}.global-search input{width:100%;height:36px;color:var(--text);background:0 0;border:0;padding:0;font-size:13px}.global-search input:focus{outline:0}.global-search:focus-within{color:var(--accent-text)}.global-search kbd{border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted);background:var(--surface);flex:none;padding:3px 6px;font-family:inherit;font-size:9px;line-height:1}.global-search-clear{width:26px;height:26px;color:var(--text-muted);background:0 0;border:0;border-radius:50%;flex:none;place-items:center;padding:0;display:grid}.global-search-clear:hover{color:var(--text);background:var(--surface-muted)}.global-search-panel{z-index:40;border:1px solid var(--border-strong);border-radius:var(--radius-surface);background:var(--surface);width:min(640px,100vw - 40px);max-height:min(560px,100vh - 100px);box-shadow:var(--shadow-dialog);padding:8px;position:absolute;top:calc(100% + 13px);left:-12px;overflow-y:auto}.global-search-group+.global-search-group{border-top:1px solid var(--border);margin-top:5px;padding-top:5px}.global-search-group h2{color:var(--text-muted);font-family:var(--font-sans);letter-spacing:.05em;text-transform:uppercase;margin:0;padding:7px 9px 5px;font-size:9px;font-weight:750}.global-search-group a{border-radius:var(--radius-control);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-height:48px;padding:7px 9px;text-decoration:none;display:grid}.global-search-group a:hover,.global-search-group a.is-active{background:var(--surface-muted)}.global-search-group a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.global-search-group a>span:last-child{min-width:0}.global-search-group strong,.global-search-group small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.global-search-group strong{color:var(--text);font-size:12px;font-weight:680}.global-search-group small{color:var(--text-muted);margin-top:2px;font-size:10px}.global-search-result-icon{border:1px solid var(--border);border-radius:var(--radius-control);width:31px;height:31px;color:var(--accent-text);background:var(--surface-sunken);place-items:center;display:grid}.global-search-state{color:var(--text-muted);text-align:center;margin:0;padding:22px 14px;font-size:12px}.global-search-state.is-error{color:var(--danger);gap:7px;display:grid}.global-search-state button{color:var(--accent-text);background:0 0;border:0;justify-self:center;padding:0;font-weight:650}.registry-row-focused td{background:var(--accent-soft)}.page-content{padding:28px}.page-section{width:min(100%,1500px);margin:0 auto}.page-header{justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:26px;display:flex}.page-header h1{margin-bottom:7px;font-size:clamp(26px,2.1vw,30px)}.page-header>div>p:last-child{max-width:620px;color:var(--text-muted);margin-bottom:0;font-size:13px;line-height:1.5}.page-kicker{margin-bottom:9px}.registry{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);overflow:hidden}.registry-summary{border-bottom:1px solid var(--border);min-height:52px;color:var(--text-muted);align-items:center;gap:7px;padding:0 16px;font-size:12px;display:flex}.registry-summary strong{color:var(--text);font-variant-numeric:tabular-nums}.registry-summary span+strong{margin-left:14px}.table-scroll{position:relative;overflow-x:auto}.data-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:920px}.data-table th{border-bottom:1px solid var(--border);height:38px;color:var(--text-muted);background:var(--surface-sunken);letter-spacing:.01em;text-align:left;padding:8px 14px;font-size:11.5px;font-weight:600}.data-table th:first-child{width:27%}.data-table th:nth-child(2),.data-table th:nth-child(3){width:18%}.data-table th:nth-child(4){width:27%}.data-table th:last-child{width:10%}.data-table td{border-bottom:1px solid var(--border);color:var(--text);vertical-align:middle;padding:13px 14px;font-size:12px;line-height:1.4}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover td{background:var(--surface-sunken)}.entity-name{align-items:center;gap:10px;min-width:0;display:flex}.entity-icon{border-radius:var(--radius-control);width:32px;height:32px;color:var(--accent-text);background:var(--accent-soft);flex:0 0 32px;place-items:center;display:grid}.entity-name>div{flex-direction:column;gap:2px;min-width:0;display:flex}.entity-name strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:680;overflow:hidden}.entity-name span{color:var(--text-faint);font-size:10px}.type-badge{border-radius:var(--radius-sm);color:var(--text-muted);background:var(--surface-muted);padding:5px 8px;font-size:10px;font-weight:680;display:inline-flex}.tabular{font-variant-numeric:tabular-nums}.site-list{flex-wrap:wrap;gap:5px 10px;display:flex}.site-list span{color:var(--text-muted);align-items:center;gap:4px;font-size:11px;display:inline-flex}.site-list svg{color:var(--accent)}.muted{color:var(--text-faint)}.table-actions{text-align:right}.empty-state,.state-view{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);flex-direction:column;justify-content:center;align-items:flex-start;min-height:250px;padding:34px;display:flex}.empty-state>svg{color:var(--accent);margin-bottom:22px}.empty-state h2{margin-bottom:7px;font-size:17px}.empty-state p{max-width:440px;color:var(--text-muted);margin-bottom:0;font-size:12px;line-height:1.5}.state-view{width:min(100%,640px);min-height:180px}.state-view-error{grid-template-columns:auto 1fr auto;align-items:center;gap:16px;display:grid}.state-view-error>svg{color:var(--danger)}.state-view-error strong{margin-bottom:4px;font-size:14px;display:block}.state-view-error p{color:var(--text-muted);margin:0;font-size:12px;line-height:1.45}.skeleton{border-radius:var(--radius-control);background:var(--surface-muted)}.skeleton-title{width:42%;height:20px;margin-bottom:22px}.skeleton-line{width:88%;height:11px;margin-bottom:10px}.skeleton-line-short{width:64%}@media (prefers-reduced-motion:no-preference){.skeleton{animation:1.4s ease-in-out infinite skeleton-pulse}@keyframes skeleton-pulse{0%,to{opacity:.58}50%{opacity:1}}}.dialog-backdrop{z-index:50;background:var(--backdrop);place-items:center;padding:20px;display:grid;position:fixed;inset:0}.dialog{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);width:min(100%,500px);max-height:calc(100dvh - 40px);box-shadow:var(--shadow-dialog);overflow-y:auto}.dialog-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 22px 18px;display:flex}.dialog-header h2{margin-bottom:5px;font-size:20px}.dialog-kicker{color:var(--accent-text);letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px;font-size:9px;font-weight:760;display:block}.dialog-header .icon-button:hover{border-color:var(--border);background:var(--surface-muted)}.dialog-form{gap:18px;padding:22px;display:grid}.dialog-actions{justify-content:flex-end;gap:8px;padding-top:4px;display:flex}.info-callout{border:1px solid var(--border);border-radius:var(--radius-control);color:var(--text-muted);background:var(--surface-muted);padding:12px 14px;font-size:12px;line-height:1.55}.employee-toolbar{grid-template-columns:minmax(300px,1fr) auto;gap:12px;margin-bottom:14px;display:grid}.client-directory,.employee-client-context,.employee-selection-bar{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface)}.client-directory{overflow:hidden}.client-directory>header{border-bottom:1px solid var(--border);background:var(--surface-muted);justify-content:space-between;align-items:center;gap:24px;min-height:82px;padding:16px 18px;display:flex}.client-directory>header span,.employee-client-context>div>span{color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px;font-size:10px;font-weight:720;display:block}.client-directory>header h2{margin:0;font-size:21px}.client-directory>header p{color:var(--text-muted);margin:0;font-size:12px}.client-directory-list{display:grid}.client-directory-list>button{border:0;border-bottom:1px solid var(--border);min-height:78px;color:var(--text);background:var(--surface);text-align:left;cursor:pointer;border-radius:0;grid-template-columns:42px minmax(0,1fr) auto 24px;align-items:center;gap:14px;padding:12px 18px;transition:background-color .14s;display:grid}.client-directory-list>button:last-child{border-bottom:0}.client-directory-list>button:hover{background:var(--surface-sunken)}.client-directory-mark{border-radius:var(--radius-control);width:38px;height:38px;color:var(--accent-text);background:var(--accent-soft);place-items:center;display:grid}.client-directory-list>button>span:nth-child(2){gap:4px;min-width:0;display:grid}.client-directory-list strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:680;overflow:hidden}.client-directory-list small{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.client-directory-list .is-active,.client-directory-list .is-inactive{border-radius:var(--radius-sm);padding:5px 8px;font-size:10px;font-weight:680}.client-directory-list .is-active{color:var(--success);background:var(--success-soft)}.client-directory-list .is-inactive{color:var(--text-muted);background:var(--surface-muted)}.employee-client-context{justify-content:space-between;align-items:center;gap:20px;min-height:76px;margin-bottom:12px;padding:12px 16px;display:flex}.employee-client-context>div{gap:2px;min-width:0;display:grid}.employee-client-context strong{text-overflow:ellipsis;white-space:nowrap;font-size:17px;overflow:hidden}.employee-client-context small{color:var(--text-muted);font-size:11px}.employee-selection-bar{justify-content:space-between;align-items:center;gap:16px;min-height:54px;margin-bottom:14px;padding:8px 10px 8px 14px;display:flex}.employee-selection-bar>div{align-items:center;gap:8px;display:flex}.employee-selection-bar strong{font-variant-numeric:tabular-nums;font-size:14px}.employee-selection-bar span{color:var(--text-muted);font-size:11px}.employee-selection-bar>div:last-child>span{text-align:right;max-width:240px}.employee-view-switch{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-muted);gap:3px;width:fit-content;margin-bottom:14px;padding:3px;display:inline-flex}.employee-view-switch button{border-radius:var(--radius-sm);min-height:34px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;padding:7px 13px;font-size:11px;font-weight:680}.employee-view-switch button.is-active{color:var(--text);background:var(--surface);box-shadow:var(--shadow-sm)}.registry-search{border:1px solid var(--border);border-radius:var(--radius-control);min-height:36px;color:var(--text-faint);background:var(--surface);align-items:center;gap:9px;padding:3px 4px 3px 12px;display:flex}.registry-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring)}.registry-search input{width:100%;min-width:0;color:var(--text);background:0 0;border:0;outline:0;font-size:13px}.registry-filters{gap:8px;display:flex}.registry-filters select{border:1px solid var(--border);max-width:190px;min-height:36px;color:var(--text);background:var(--surface);padding:8px 30px 8px 10px;font-size:12px}.registry-page-summary{margin-left:auto}.employee-table{min-width:1040px}.employee-table-selectable{min-width:1100px}.data-table.employee-table-selectable .employee-select-column{text-align:center;width:46px;padding-inline:12px}.data-table.employee-table-selectable .employee-person-column{width:220px}.data-table.employee-table-selectable .employee-document-column{width:145px}.data-table.employee-table-selectable .employee-client-column,.data-table.employee-table-selectable .employee-employer-column{width:190px}.data-table.employee-table-selectable .employee-stage-column{width:155px}.data-table.employee-table-selectable .employee-period-column{width:170px}.employee-table-selectable input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;margin:0}.employee-table:not(.employee-table-selectable) th:first-child{width:23%}.employee-table:not(.employee-table-selectable) th:nth-child(2){width:15%}.employee-table:not(.employee-table-selectable) th:nth-child(3){width:23%}.employee-table:not(.employee-table-selectable) th:nth-child(4){width:19%}.employee-table:not(.employee-table-selectable) th:nth-child(5){width:15%}.employee-table:not(.employee-table-selectable) th:nth-child(6){width:5%}.clickable-row{cursor:pointer}.employee-avatar{color:var(--accent-text);background:var(--accent-soft);letter-spacing:.02em;font-size:10px;font-weight:650}.assignment-cell{flex-direction:column;gap:2px;display:flex}.assignment-cell strong{color:var(--text);font-size:12px}.assignment-cell span{color:var(--text-faint);font-size:10px}.status-badge{border:1px solid var(--border);border-radius:var(--radius-sm);min-height:22px;color:var(--text-muted);background:var(--surface-muted);align-items:center;gap:6px;padding:2px 8px;font-size:11px;font-weight:600;line-height:1.2;display:inline-flex}.status-awaiting_permit,.status-waiting_transfer{color:var(--warning);background:var(--warning-soft);border-color:#0000}.status-permit_issued,.status-arrived,.status-transferred,.status-registered{color:var(--success);background:var(--success-soft);border-color:#0000}.status-terminated_revoked,.status-terminated_not_revoked{color:var(--danger);background:var(--danger-soft);border-color:#0000}.registry-pagination{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding:12px 14px;display:flex}.employee-dialog{width:min(100%,880px)}.employee-wizard-progress{border-bottom:1px solid var(--border);grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0 0 18px;list-style:none;display:grid}.employee-wizard-progress li{color:var(--text-faint);align-items:center;gap:8px;display:flex;position:relative}.employee-wizard-progress li:not(:last-child):after{z-index:0;background:var(--border);content:"";height:1px;position:absolute;top:50%;left:36px;right:8px}.employee-wizard-progress li>span{z-index:1;border:1px solid var(--border);background:var(--surface);border-radius:50%;flex:0 0 27px;place-items:center;width:27px;height:27px;font-size:10px;font-weight:760;display:grid;position:relative}.employee-wizard-progress li>strong{z-index:1;background:var(--surface);padding-right:8px;font-size:10px;font-weight:650;position:relative}.employee-wizard-progress li.is-active,.employee-wizard-progress li.is-complete{color:var(--text)}.employee-wizard-progress li.is-active>span{border-color:var(--accent);color:var(--on-accent);background:var(--accent)}.employee-wizard-progress li.is-complete>span{border-color:color-mix(in srgb, var(--success) 40%, var(--border));color:var(--success);background:var(--success-soft)}.wizard-step{min-height:260px}.employee-wizard-summary{grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);gap:28px;min-height:260px;display:grid}.employee-wizard-summary>div>span,.registry-overview-header span{color:var(--accent-text);letter-spacing:.09em;text-transform:uppercase;font-size:9px;font-weight:760}.employee-wizard-summary h3{letter-spacing:-.025em;margin:7px 0 8px;font-size:19px}.employee-wizard-summary p{color:var(--text-muted);font-size:11px;line-height:1.55}.employee-wizard-summary dl{gap:0;margin:0;display:grid}.employee-wizard-summary dl>div{border-bottom:1px solid var(--border);grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr);gap:16px;padding:10px 0;display:grid}.employee-wizard-summary dt{color:var(--text-faint);font-size:10px}.employee-wizard-summary dd{color:var(--text);margin:0;font-size:11px;font-weight:620}.form-section{border:0;border-bottom:1px solid var(--border);gap:14px;margin:0;padding:0 0 20px;display:grid}.form-section:last-of-type{border-bottom:0;padding-bottom:0}.form-section legend{color:var(--text);margin-bottom:2px;padding:0;font-size:13px;font-weight:760}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;display:grid}.form-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid-span-two{grid-column:span 2}.profile-back-link{color:var(--text-muted);align-items:center;gap:7px;margin-bottom:22px;font-size:12px;font-weight:650;text-decoration:none;display:inline-flex}.profile-back-link:hover{color:var(--accent-text)}.employee-profile-header{justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px;display:flex}.employee-profile-identity{align-items:center;gap:16px;min-width:0;display:flex}.employee-profile-avatar{border-radius:var(--radius-surface);width:58px;height:58px;color:var(--on-accent);background:var(--accent);flex:0 0 58px;place-items:center;font-size:15px;font-weight:800;display:grid}.employee-profile-header h1{margin-bottom:8px;font-size:clamp(26px,2.1vw,30px)}.employee-profile-header .page-kicker{margin-bottom:4px}.employee-profile-grid{grid-template-columns:minmax(240px,.33fr) minmax(0,.67fr);align-items:start;gap:16px;display:grid}.profile-stack{gap:16px;display:grid}.profile-card{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);padding:22px}.profile-card h2{margin-bottom:18px;font-size:17px}.profile-card-header{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px;display:flex}.profile-card-header h2,.profile-card-header .page-kicker{margin-bottom:0}.profile-card-header .page-kicker{margin-bottom:5px}.profile-card-header>svg{color:var(--accent)}.profile-details{gap:15px;margin:0;display:grid}.profile-details>div{gap:4px;display:grid}.profile-details dt,.document-summary dt{color:var(--text-faint);letter-spacing:.05em;text-transform:uppercase;font-size:10px;font-weight:700}.profile-details dd,.document-summary dd{color:var(--text);overflow-wrap:anywhere;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:580;display:flex}.profile-details dd svg{color:var(--accent)}.document-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.document-summary{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-sunken);padding:16px}.document-summary>div:first-child{justify-content:space-between;align-items:center;gap:10px;display:flex}.document-summary strong{font-size:12px}.document-number{color:var(--text);letter-spacing:.03em;font-variant-numeric:tabular-nums;margin:15px 0;font-size:18px;font-weight:720}.document-summary dl{grid-template-columns:1fr 1fr;gap:12px;margin:0;display:grid}.document-summary dl>div{gap:3px;display:grid}.employment-list{gap:10px;display:grid}.employment-card{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);padding:16px}.employment-card>header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px;display:flex}.employment-card>header>div,.assignment-summary>div{flex-direction:column;gap:3px;display:flex}.employment-card strong,.assignment-summary strong{color:var(--text);font-size:12px}.employment-card header span,.assignment-summary div span{color:var(--text-faint);font-size:10px}.employment-dates{color:var(--text-muted);font-variant-numeric:tabular-nums;align-items:center;gap:7px;margin-bottom:13px;font-size:11px;display:flex}.employment-dates svg{color:var(--accent)}.assignment-list{gap:7px;display:grid}.assignment-summary{border-radius:var(--radius-control);background:var(--surface-muted);justify-content:space-between;align-items:center;gap:14px;padding:10px 11px;display:flex}@media (width<=960px){.auth-page{grid-template-columns:1fr}.auth-intro{min-height:auto;padding:28px}.auth-intro:after{display:none}.auth-intro-copy{padding-block:48px 22px}.auth-security-note{display:none}.auth-form-panel{min-height:auto;padding-block:56px}.app-shell{display:block}.sidebar{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;width:100%;height:auto;min-height:0;padding:10px 14px;display:grid;position:static}.sidebar>.brand-lockup{gap:8px;height:auto;margin:0;padding:0}.sidebar .brand-plate{padding:3px 5px}.sidebar .brand-lockup-sidebar .brand-logo{height:32px}.primary-navigation{scrollbar-width:thin;scrollbar-color:var(--sidebar-line) transparent;flex-direction:row;overflow-x:auto}.nav-link{min-width:max-content}.nav-link span{display:none}.sidebar-user{border:0;padding:0}.user-summary{display:none}.topbar{top:0}.employee-toolbar{grid-template-columns:1fr}.employee-selection-bar{flex-direction:column;align-items:flex-start}.employee-selection-bar>div:last-child{justify-content:space-between;width:100%}.registry-filters select{flex:1;max-width:none}.employee-profile-grid{grid-template-columns:1fr}}@media (width<=640px){.auth-intro h1{font-size:39px}.sidebar .brand-separator{display:none}.sidebar .brand-product{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.auth-form-panel{padding:38px 20px}.page-content{padding:20px 14px}.client-directory>header,.employee-client-context,.employee-selection-bar>div:last-child{flex-direction:column;align-items:stretch}.client-directory-list>button{grid-template-columns:38px minmax(0,1fr) 20px;gap:10px;padding-inline:14px}.client-directory-list>button>.is-active,.client-directory-list>button>.is-inactive{display:none}.employee-client-context .button,.employee-selection-bar .button{width:100%}.employee-selection-bar>div:last-child>span{text-align:left;max-width:none}.topbar{height:58px;padding:0 14px}.global-search{flex:1;width:auto}.global-search input{text-overflow:ellipsis}.global-search kbd{display:none}.page-header{flex-direction:column;align-items:flex-start;gap:18px}.page-header .button{width:100%}.state-view-error{align-items:flex-start;display:flex}.state-view-error .button{width:100%;margin-top:8px}.field-row{grid-template-columns:1fr}.registry-filters{flex-direction:column}.registry-search .button{width:auto}.form-grid,.form-grid-three{grid-template-columns:1fr}.form-grid-span-two{grid-column:auto}.employee-profile-header{flex-direction:column;align-items:flex-start}.employee-profile-header>.button{width:100%}.document-grid{grid-template-columns:1fr}.dialog-backdrop{align-items:end;padding:0}.dialog{border-radius:var(--radius-surface) var(--radius-surface) 0 0;border-bottom:0;border-left:0;border-right:0;width:100%;max-height:92dvh}}.button-danger{border-color:var(--border-strong);color:var(--danger);background:var(--surface);box-shadow:var(--shadow-sm)}.button-danger:hover:not(:disabled){background:var(--danger-soft)}.sidebar .icon-button:hover{border-color:var(--sidebar-line);color:var(--sidebar-active-text);background:var(--sidebar-hover-bg)}.primary-navigation{overscroll-behavior:contain;min-height:0;overflow-y:auto}.nav-group-row{align-items:center;display:flex;position:relative}.nav-group-link{flex:1;min-width:0;padding-right:38px}.nav-group-toggle{border-radius:var(--radius-control);width:28px;height:28px;color:var(--sidebar-muted);cursor:pointer;background:0 0;border:0;place-items:center;transition:color .12s,background-color .12s;display:grid;position:absolute;right:5px}.nav-group-toggle:hover{color:var(--sidebar-active-text);background:var(--sidebar-hover-bg)}.nav-group-toggle svg{transition:transform .18s cubic-bezier(.23,1,.32,1)}.nav-group-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}.nav-sublist{flex-direction:column;gap:1px;margin:2px 0 8px;padding:0 0 0 30px;list-style:none;display:flex;position:relative}.nav-sublist:before{background:var(--sidebar-line);content:"";width:1px;position:absolute;top:3px;bottom:3px;left:19px}.nav-sublink{border-radius:var(--radius-control);min-height:30px;color:var(--sidebar-text);align-items:center;gap:10px;padding:5px 9px;font-size:12.5px;font-weight:500;text-decoration:none;transition:color .12s,background-color .12s;display:flex}.nav-sublink-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.nav-sublink:hover{color:var(--sidebar-active-text);background:var(--sidebar-hover-bg)}.nav-sublink.is-active{color:var(--sidebar-active-text);background:var(--sidebar-active-bg);font-weight:620}.nav-sub-count{color:var(--sidebar-muted);font-variant-numeric:tabular-nums;font-size:11px;font-weight:520}.nav-sublink.is-active .nav-sub-count{color:var(--sidebar-active-icon)}@media (width<=960px){.primary-navigation{overflow-y:visible}.nav-group,.nav-group-row{flex:none;align-items:center;display:flex}.nav-group-link{padding-right:10px}.nav-group-toggle{position:static}.nav-sublist{flex-direction:row;margin:0;padding:0 6px 0 2px}.nav-sublist:before{display:none}.nav-sublink{min-width:max-content}}.topbar{border-bottom-color:var(--border);background:color-mix(in srgb, var(--surface) 96%, transparent)}.app-workspace,.page-content{background:var(--surface-page)}.company-address{color:var(--text-muted);align-items:center;gap:6px;font-size:12px;display:inline-flex}.company-address svg{color:var(--accent);flex:none}.company-table .company-column-name{width:24%}.company-table .company-column-kind{width:14%}.company-table .company-column-tax{width:18%}.company-table .company-column-address{width:34%}.company-table .company-column-actions{width:10%}.company-row-inactive td{color:var(--text-muted);background:var(--surface-sunken)}.entity-name .company-status{align-items:center;gap:5px;display:inline-flex}.entity-name .company-status:before{content:"";background:currentColor;border-radius:50%;width:5px;height:5px}.entity-name .company-status.is-active{color:var(--success)}.entity-name .company-status.is-inactive{color:var(--danger)}.company-row-actions{justify-content:flex-end;gap:4px;display:flex}.company-action{border-color:var(--border);width:30px;height:30px;color:var(--text-muted);background:var(--surface);flex-basis:30px}.company-action:hover{border-color:var(--border-strong);color:var(--text);background:var(--surface-muted)}.company-action.is-destructive:hover{border-color:color-mix(in srgb, var(--danger) 25%, var(--border));color:var(--danger);background:var(--danger-soft)}.company-action.is-positive{color:var(--success)}.company-action.is-positive:hover{border-color:color-mix(in srgb, var(--success) 25%, var(--border));color:var(--success);background:var(--success-soft)}.company-kind-lock{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-muted);gap:5px;padding:12px 13px;display:grid}.company-kind-lock>span{color:var(--text-faint);letter-spacing:.05em;text-transform:uppercase;font-size:10px;font-weight:750}.company-kind-lock strong{color:var(--text);font-size:13px}.company-kind-lock small{color:var(--text-muted);font-size:11px;line-height:1.45}.company-status-dialog{width:min(100%,540px)}.user-table th:first-child{width:25%}.user-table th:nth-child(2){width:16%}.user-table th:nth-child(3){width:28%}.user-table th:nth-child(4){width:20%}.user-table th:nth-child(5){width:11%}.user-row-blocked td{color:var(--text-muted);background:var(--surface-sunken)}.user-scope-summary{color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.user-status{color:var(--text-muted);align-items:center;gap:6px;font-size:11px;font-weight:650;display:inline-flex}.user-status:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.user-status.is-active{color:var(--success)}.user-status.is-invited{color:var(--warning)}.user-status.is-blocked{color:var(--danger)}.registry-message{margin:12px 16px 0}.user-dialog{width:min(100%,560px)}.user-scope-picker{border:0;gap:8px;padding:0;display:grid}.user-scope-picker legend{color:var(--text);margin-bottom:4px;font-size:12px;font-weight:680}.user-scope-picker>p{color:var(--text-muted);margin:0;font-size:11px;line-height:1.45}.user-scope-options{border:1px solid var(--border);border-radius:var(--radius-control);max-height:190px;display:grid;overflow-y:auto}.user-scope-options label{border-bottom:1px solid var(--border);min-height:42px;color:var(--text);cursor:pointer;align-items:center;gap:10px;padding:9px 12px;font-size:12px;display:flex}.user-scope-options label:last-child{border-bottom:0}.user-scope-options label:hover{background:var(--surface-muted)}.user-scope-options input{width:15px;height:15px;accent-color:var(--accent)}.audit-toolbar{border-block:1px solid var(--border);grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:12px 18px;margin-bottom:14px;padding:14px 0;display:grid}.audit-search{min-height:36px}.audit-filter-grid{grid-template-columns:160px 190px 138px 138px;gap:8px;display:grid}.audit-filter{gap:4px;display:grid}.audit-filter>span{color:var(--text-muted);letter-spacing:.05em;text-transform:uppercase;font-size:9px;font-weight:750}.audit-filter select,.audit-filter input{border:1px solid var(--border);border-radius:var(--radius-control);width:100%;min-height:34px;color:var(--text);background:var(--surface);padding:6px 9px;font-size:11px}.audit-filter select:focus,.audit-filter input:focus{border-color:var(--accent);outline:2px solid var(--accent-soft);outline-offset:1px}.audit-clear{grid-column:1/-1;justify-self:start}.audit-retention-note{margin-left:auto}.audit-table{min-width:1120px}.audit-table th{color:var(--text-muted)}.audit-table th:last-child,.audit-table>tbody>tr:not(.audit-detail-row)>td:last-child{z-index:1;box-shadow:-1px 0 var(--border);position:sticky;right:0}.audit-table th:last-child{background:var(--surface-muted)}.audit-table>tbody>tr:not(.audit-detail-row)>td:last-child{background:var(--surface)}.audit-table>tbody>tr.audit-row-expanded>td:last-child{background:var(--surface-sunken)}.audit-table th:first-child{width:15%}.audit-table th:nth-child(2){width:25%}.audit-table th:nth-child(3){width:20%}.audit-table th:nth-child(4){width:18%}.audit-table th:nth-child(5){width:16%}.audit-table th:nth-child(6){width:6%}.audit-table .audit-row-expanded td{background:var(--surface-sunken);border-bottom-color:#0000}.audit-timestamp{color:var(--text-muted);white-space:nowrap}.audit-action-title,.audit-description,.audit-actor{display:block}.audit-action-title{color:var(--text);font-size:12px;font-weight:680}.audit-description{color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:3px;font-size:10px;display:-webkit-box;overflow:hidden}.audit-entity-link{color:var(--accent-text);font-weight:650;text-decoration:none}.audit-entity-link:hover{text-underline-offset:3px;text-decoration:underline}.audit-actor strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650;overflow:hidden}.audit-actor small{color:var(--text-muted);margin-top:2px;font-size:9px;display:block}.audit-category{border-radius:var(--radius-sm);color:var(--text-muted);background:var(--surface-muted);padding:5px 8px;font-size:9px;font-weight:690;display:inline-flex}.audit-category.is-access{color:var(--violet);background:var(--violet-soft)}.audit-category.is-company{color:var(--success);background:var(--success-soft)}.audit-category.is-administrative,.audit-category.is-deadline{color:var(--warning);background:var(--warning-soft)}.audit-category.is-task{color:var(--info);background:var(--info-soft)}.audit-expand svg{transition:transform .14s cubic-bezier(.23,1,.32,1)}.audit-expand[aria-expanded=true] svg{transform:rotate(180deg)}.audit-detail-row td{background:var(--surface-sunken);padding:0}.audit-detail-row:hover td{background:var(--surface-sunken)}.audit-details{grid-template-columns:minmax(0,1fr) minmax(220px,.36fr);gap:28px;padding:4px 20px 22px 178px;display:grid}.audit-change-grid{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);overflow:hidden}.audit-change-head,.audit-change-line{border-bottom:1px solid var(--border);grid-template-columns:minmax(140px,.7fr) repeat(2,minmax(150px,1fr));align-items:center;gap:12px;min-height:36px;padding:7px 12px;display:grid}.audit-change-line:last-child{border-bottom:0}.audit-change-head{color:var(--text-muted);background:var(--surface-muted);letter-spacing:.05em;text-transform:uppercase;font-size:9px;font-weight:750}.audit-change-line strong,.audit-change-line span{overflow-wrap:anywhere;font-size:10px;line-height:1.4}.audit-change-line strong{color:var(--text-muted);font-weight:650}.audit-change-line span:last-child{color:var(--text);font-weight:620}.audit-detail-summary{color:var(--text-muted);margin:0;font-size:11px;line-height:1.55}.audit-technical-details{align-content:start;gap:12px;margin:0;display:grid}.audit-technical-details div{gap:3px;display:grid}.audit-technical-details dt{color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;font-size:9px;font-weight:720}.audit-technical-details dd{color:var(--text-muted);overflow-wrap:anywhere;margin:0;font-size:10px;line-height:1.45}.audit-technical-details code{color:var(--text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:9px}.audit-pagination{border-top:1px solid var(--border);padding:14px 16px}@media (width<=1180px){.audit-toolbar{grid-template-columns:1fr}.audit-filter-grid{grid-template-columns:repeat(4,minmax(130px,1fr))}.audit-details{padding-left:20px}}@media (width<=760px){.audit-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-retention-note{display:none}.audit-details{grid-template-columns:1fr}.audit-change-grid{overflow-x:auto}.audit-change-head,.audit-change-line{min-width:560px}}@media (width<=480px){.audit-filter-grid{grid-template-columns:1fr}}.company-status-callout{border:1px solid color-mix(in srgb, var(--warning) 25%, var(--border));border-radius:var(--radius-control);color:var(--warning);background:var(--warning-soft);grid-template-columns:auto 1fr;gap:10px;padding:13px 14px;display:grid}.company-status-callout svg{margin-top:1px}.company-status-callout p{font-size:12px;line-height:1.55}.compact-form-section{border-bottom:0;padding-bottom:0}.month-filter{flex-direction:column;gap:3px;min-width:148px;display:flex}.month-filter span{color:var(--text-faint);letter-spacing:.05em;text-transform:uppercase;font-size:9px;font-weight:750}.month-filter input{min-height:28px;color:var(--text);background:0 0;border:0;padding:0;font-size:12px}.client-lists{gap:16px;display:grid}.global-employee-registry{overflow:hidden}.registry-overview-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:24px;min-height:76px;padding:14px 18px;display:flex}.registry-overview-header h2{margin:5px 0 0;font-size:18px}.registry-overview-header p{color:var(--text-muted);margin:0;font-size:11px}.monthly-list-summary{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface-sunken);justify-content:space-between;align-items:center;gap:24px;min-height:72px;padding:14px 18px;display:flex}.monthly-list-summary>div{flex-direction:column;gap:3px;display:flex}.monthly-list-summary span,.client-registry-header span{color:var(--text-faint);letter-spacing:.08em;text-transform:uppercase;font-size:9px;font-weight:760}.monthly-list-summary strong{text-transform:capitalize;font-size:18px;font-weight:670}.monthly-list-summary p{color:var(--text-muted);margin:0;font-size:12px}.client-registry{overflow:hidden}.client-registry-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:20px;min-height:70px;padding:14px 18px;display:flex}.client-registry-header h2{margin:4px 0 0;font-size:18px}.client-registry-count{align-items:center;gap:8px;display:flex}.monthly-pagination{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface)}.page-content:has(.employee-profile-page){padding:0}.app-workspace:has(.employee-profile-page)>.topbar{display:none}.employee-profile-page{background:var(--surface-page);min-height:100dvh}.profile-breadcrumb-bar{border-bottom:1px solid var(--border);background:var(--surface-page);justify-content:space-between;align-items:center;gap:24px;min-height:58px;padding:0 28px;display:flex}.profile-breadcrumb-bar nav,.profile-breadcrumb-bar>div{align-items:center;gap:10px;display:flex}.profile-breadcrumb-bar nav{color:var(--text-faint);font-size:13px}.profile-breadcrumb-bar a{color:inherit;text-decoration:none}.profile-breadcrumb-bar a:hover{color:var(--text)}.profile-breadcrumb-bar strong{color:var(--text);font-weight:570}.profile-breadcrumb-bar>div{color:var(--text-faint)}.prototype-profile-layout{grid-template-columns:minmax(330px,390px) minmax(0,1fr);min-height:calc(100dvh - 59px);display:grid}.profile-identity-panel{border-right:1px solid var(--border);background:var(--surface-page);flex-direction:column;min-width:0;padding:26px 30px 24px;display:flex}.profile-identity-panel .profile-back-link{margin-bottom:20px}.passport-photo-placeholder{border:1px solid var(--border);border-radius:var(--radius-surface);background:repeating-linear-gradient(45deg, color-mix(in srgb, var(--surface-muted) 88%, transparent) 0, color-mix(in srgb, var(--surface-muted) 88%, transparent) 12px, color-mix(in srgb, var(--surface-sunken) 96%, transparent) 12px, color-mix(in srgb, var(--surface-sunken) 96%, transparent) 24px);place-items:center;min-height:230px;display:grid}.passport-photo-placeholder span{border:1px solid var(--border);border-radius:var(--radius-control);color:var(--text-faint);background:var(--surface);letter-spacing:.08em;padding:7px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.profile-name-block{padding:20px 0 18px}.profile-name-block h1{margin-bottom:6px;font-size:clamp(24px,2.1vw,30px);line-height:1.08}.profile-name-block p{color:var(--text-faint);gap:8px;margin:0;font-size:12px;display:flex}.profile-status-card{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);flex-direction:column;align-items:flex-start;gap:9px;padding:16px;display:flex}.profile-status-card>span{color:var(--text-faint);letter-spacing:.1em;text-transform:uppercase;font-size:9px;font-weight:750}.profile-status-card small{color:var(--text-faint);font-size:10px}.prototype-profile-facts{margin:14px 0 0}.prototype-profile-facts>div{border-bottom:1px solid var(--border);grid-template-columns:minmax(110px,.9fr) minmax(0,1.1fr);align-items:center;gap:12px;min-height:42px;display:grid}.prototype-profile-facts dt{color:var(--text-faint);font-size:11px}.prototype-profile-facts dd{color:var(--text);text-align:right;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:12px;font-weight:540;overflow:hidden}.profile-identity-footer{color:var(--text-faint);flex-wrap:wrap;gap:5px 8px;margin-top:auto;padding-top:30px;font-size:10px;display:flex}.profile-identity-footer span+span:before{content:"·";margin-right:8px}.profile-identity-footer .button{width:100%;margin-top:12px}.profile-identity-footer .button+.button{margin-top:3px}.profile-task-confirmation{border-radius:var(--radius-control);width:100%;color:var(--success);background:var(--success-soft);margin:8px 0 0;padding:9px 10px;font-size:10px;line-height:1.45}.profile-task-confirmation a{color:inherit;text-underline-offset:2px;font-weight:720}.profile-detail-panel{min-width:0}.profile-tabs{border-bottom:1px solid var(--border);align-items:flex-end;gap:8px;min-height:64px;padding:0 34px;display:flex;overflow-x:auto}.profile-tabs button{min-height:64px;color:var(--text-muted);white-space:nowrap;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;padding:0 16px;font-size:13px;display:inline-flex;position:relative}.profile-tabs button:hover{color:var(--text)}.profile-tabs button:after{content:"";background:0 0;height:2px;position:absolute;bottom:-1px;left:10px;right:10px}.profile-tabs .profile-tab-active{color:var(--text);font-weight:680}.profile-tabs .profile-tab-active:after{background:var(--accent)}.profile-tab-content{padding:30px 38px 64px}.profile-section-heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px;display:flex}.profile-section-heading>div{align-items:baseline;gap:12px;display:flex}.profile-section-heading>.profile-section-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}.profile-section-heading h2{margin:0;font-size:18px}.profile-section-heading span{color:var(--text-faint);font-size:11px}.profile-section-heading input{border:1px solid var(--border);width:min(100%,240px);min-height:36px;color:var(--text);background:var(--surface);padding:8px 12px;font-size:12px}.employee-timeline{gap:30px;margin:0;padding:2px 0 0 42px;list-style:none;display:grid;position:relative}.employee-timeline:before{background:var(--border);content:"";width:1px;position:absolute;top:8px;bottom:8px;left:13px}.timeline-event{gap:4px;display:grid;position:relative}.timeline-event:before{z-index:1;border:2px solid var(--text-faint);background:var(--surface-page);content:"";border-radius:50%;width:10px;height:10px;position:absolute;top:5px;left:-36px}.timeline-accent:before{border-color:var(--accent)}.timeline-info:before{border-color:var(--info)}.timeline-success:before{border-color:var(--success)}.timeline-warning:before{border-color:var(--warning)}.timeline-danger:before{border-color:var(--danger);background:var(--danger)}.timeline-neutral:before{border-color:var(--text);background:var(--text)}.timeline-event time{color:var(--text-faint);font-size:11px}.timeline-event strong{color:var(--text);font-size:13px;font-weight:580}.timeline-event p{color:var(--text-faint);margin:0;font-size:11px}.employment-archive{border-top:1px solid var(--border);margin-top:54px;padding-top:28px}.employment-archive>header{align-items:flex-start;gap:11px;margin-bottom:18px;display:flex}.employment-archive>header svg{color:var(--accent)}.employment-archive h3{margin:0 0 3px;font-size:14px}.employment-archive header p{color:var(--text-faint);margin:0;font-size:11px}.archive-list{gap:10px;display:grid}.archive-list>article{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);overflow:hidden}.archive-employment-header,.archive-assignment{justify-content:space-between;align-items:center;gap:18px;padding:12px 14px;display:flex}.archive-employment-header{border-bottom:1px solid var(--border)}.archive-employment-header>div,.archive-assignment>div{flex-direction:column;gap:3px;min-width:0;display:flex}.archive-employment-header strong,.archive-assignment strong{font-size:12px}.archive-employment-header div span,.archive-assignment span,.archive-assignment small{color:var(--text-faint);font-size:10px}.archive-assignment+.archive-assignment{border-top:1px solid var(--border)}.archive-assignment>div:last-child{text-align:right;align-items:flex-end}.prototype-document-list{gap:9px;display:grid}.prototype-document-list>article{border-bottom:1px solid var(--border);grid-template-columns:auto minmax(180px,1fr) minmax(260px,1.1fr) auto;align-items:center;gap:16px;padding:15px 16px;display:grid}.prototype-document-list>article>svg{color:var(--accent)}.prototype-document-list>article>div{flex-direction:column;gap:3px;display:flex}.prototype-document-list strong{font-size:12px}.prototype-document-list article>div>span{color:var(--text-faint);font-size:11px}.prototype-document-list dl{gap:30px;margin:0;display:flex}.prototype-document-list dl>div{gap:3px;display:grid}.prototype-document-list dt{color:var(--text-faint);text-transform:uppercase;font-size:9px}.prototype-document-list dd{margin:0;font-size:11px}.profile-empty-tab{min-height:360px;color:var(--text-faint);flex-direction:column;justify-content:center;align-items:flex-start;display:flex}.profile-empty-tab h2{color:var(--text);margin:16px 0 7px;font-size:18px}.profile-empty-tab p{max-width:480px;font-size:12px;line-height:1.55}.profile-authorization-upload{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface-sunken);margin-top:24px;overflow:hidden}.profile-authorization-upload>header{border-bottom:1px solid var(--border);background:var(--surface);padding:16px}.profile-authorization-upload>header span{color:var(--text-faint);letter-spacing:.08em;text-transform:uppercase;font-size:9px;font-weight:760}.profile-authorization-upload>header h3{margin:5px 0 4px;font-size:16px}.profile-authorization-upload>header p{color:var(--text-muted);margin:0;font-size:10px}.profile-permit-list{gap:12px;display:grid}.profile-permit-list>article{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);padding:16px}.profile-permit-list>article>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:13px;display:flex}.profile-permit-list>article>header>div{flex-direction:column;gap:3px;display:flex}.profile-permit-list>article>header strong{font-size:13px}.profile-permit-list>article>header>div>span{color:var(--text-faint);font-size:9px}.profile-permit-list dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:10px 0 0;display:grid}.profile-permit-list dl>div{min-width:0;padding:8px 10px 8px 0}.profile-permit-list dt{color:var(--text-faint);margin-bottom:3px;font-size:9px}.profile-permit-list dd{color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:10px;font-weight:620;overflow:hidden}.employee-actions-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;display:grid}.employee-actions-grid>form{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);flex-direction:column;gap:15px;padding:22px;display:flex}.employee-actions-grid form>span{color:var(--accent-text);letter-spacing:.08em;text-transform:uppercase;font-size:9px;font-weight:760}.employee-actions-grid h2{margin:-4px 0 0;font-size:18px}.employee-actions-grid form>p{min-height:50px;color:var(--text-faint);margin:-7px 0 2px;font-size:11px;line-height:1.5}.employee-actions-grid form>.button{margin-top:auto}.action-confirmation{color:var(--text-muted);cursor:pointer;align-items:flex-start;gap:9px;font-size:10px;line-height:1.45;display:flex}.action-confirmation input{accent-color:var(--accent);margin-top:2px}.correction-action-form{border-color:color-mix(in srgb, var(--warning) 25%, var(--border))!important}.danger-action-form{border-color:color-mix(in srgb, var(--danger) 25%, var(--border))!important}@media (width<=1120px){.prototype-profile-layout{grid-template-columns:320px minmax(0,1fr)}.profile-identity-panel{padding-inline:22px}.profile-tab-content{padding-inline:26px}.employee-actions-grid{grid-template-columns:1fr}.prototype-document-list>article{grid-template-columns:auto 1fr auto}.prototype-document-list dl{display:none}}@media (width<=800px){.prototype-profile-layout{grid-template-columns:1fr}.profile-identity-panel{border-right:0;border-bottom:1px solid var(--border)}.passport-photo-placeholder{min-height:260px}.profile-identity-footer{margin-top:22px}.profile-tabs{padding-inline:10px}.profile-tab-content{padding:24px 20px 48px}}@media (width<=640px){.profile-breadcrumb-bar{padding-inline:16px}.profile-breadcrumb-bar nav a:first-child,.profile-breadcrumb-bar nav span:first-of-type{display:none}.profile-section-heading{flex-direction:column;align-items:flex-start}.profile-section-heading>.profile-section-actions,.profile-section-heading>.profile-section-actions .button,.profile-section-heading input{width:100%}.monthly-list-summary{flex-direction:column;align-items:flex-start;gap:8px}.registry-overview-header,.employee-wizard-summary{flex-direction:column;grid-template-columns:1fr;align-items:flex-start}.employee-wizard-progress li>strong{display:none}.prototype-document-list>article{grid-template-columns:auto 1fr}.prototype-document-list>article>.type-badge{grid-column:2;justify-self:start}}.trc-page-header{align-items:flex-start;margin-bottom:30px}.trc-page-header h1{margin-bottom:8px}.trc-page-header p strong{color:var(--text)}.page-header-actions{flex:none;gap:8px;display:flex}.case-module-tabs{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-muted);align-items:center;gap:4px;width:fit-content;max-width:100%;min-height:46px;margin-bottom:30px;padding:4px;display:flex;overflow-x:auto}.case-module-tabs button{border-radius:var(--radius-sm);min-height:36px;color:var(--text-muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;align-items:center;gap:8px;padding:7px 14px;font-size:12px;display:inline-flex}.case-module-tabs button.is-active{color:var(--text);border-color:var(--accent);background:var(--surface);box-shadow:var(--shadow-sm);font-weight:720}.case-module-tabs button span{border-radius:var(--radius-sm);min-width:20px;height:20px;color:var(--text-muted);background:var(--border);font-variant-numeric:tabular-nums;place-items:center;padding:0 6px;font-size:9px;font-weight:760;display:inline-grid}.trc-kpi-strip{grid-template-columns:repeat(5,minmax(130px,1fr));gap:clamp(24px,4vw,70px);margin:8px 18px 34px;display:grid}.trc-kpi-strip button{min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;padding:0}.trc-kpi-strip button:hover:not(:disabled) span{text-underline-offset:3px;text-decoration:underline}.trc-kpi-strip strong,.trc-kpi-strip span,.trc-kpi-strip small{display:block}.trc-kpi-strip strong{font-family:var(--font-display);font-variant-numeric:tabular-nums;letter-spacing:-.035em;margin-bottom:7px;font-size:32px;font-weight:680}.trc-kpi-strip span{color:var(--text);margin-bottom:4px;font-size:12px;font-weight:680;line-height:1.25}.trc-kpi-strip small{color:var(--text-muted);font-size:10px;line-height:1.35}.trc-kpi-strip .kpi-tone-warning strong{color:var(--warning)}.trc-kpi-strip .kpi-tone-danger strong{color:var(--danger)}.trc-kpi-strip .kpi-tone-info strong{color:var(--info)}.case-toolbar{border-bottom:1px solid var(--border);grid-template-columns:minmax(340px,1fr) auto;gap:28px;margin-bottom:15px;padding:0 8px 13px}.case-toolbar .registry-search{box-shadow:none;background:0 0;border:0;border-radius:0}.case-toolbar .registry-search:focus-within{box-shadow:none;border:0}.case-toolbar .registry-filters{justify-content:flex-end;align-items:center}.case-toolbar .registry-filters select{background-color:#0000;border:0;width:100%;max-width:165px}.case-clear-filters{min-height:36px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;padding:5px 4px;font-size:11px}.case-clear-filters:hover{color:var(--text);text-underline-offset:3px;text-decoration:underline}.case-status-filters{flex-wrap:wrap;gap:7px;margin:0 8px 28px;display:flex}.case-status-filters button{border-radius:var(--radius-control);min-height:30px;color:var(--text-muted);background:var(--surface-muted);font:inherit;cursor:pointer;border:1px solid #0000;align-items:center;gap:7px;padding:5px 9px;font-size:10px;display:inline-flex}.case-status-filters button>span{opacity:.62;background:currentColor;border-radius:50%;width:6px;height:6px}.case-status-filters button>strong{border-radius:var(--radius-sm);background:color-mix(in srgb, var(--surface) 48%, transparent);font-variant-numeric:tabular-nums;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:9px;display:grid}.case-status-filters button.is-active{box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--surface) 68%, transparent);border-color:currentColor}.case-status-filters .case-filter-submitted{color:var(--warning);background:var(--warning-soft)}.case-status-filters .case-filter-issued{color:var(--info);background:var(--info-soft)}.case-status-filters .case-filter-work-started,.case-status-filters .case-filter-report-sent{color:var(--success);background:var(--success-soft)}.case-status-filters .case-filter-revoked{color:var(--danger);background:var(--danger-soft)}.case-status-filters .case-filter-draft,.case-status-filters .case-filter-expired{color:var(--text-muted);background:var(--surface-muted)}.cases-registry{background:0 0;border:0;border-radius:0;overflow:visible}.administrative-task-panel{min-width:0}.task-queue-intro{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-end;gap:34px;margin:2px 8px 20px;padding-bottom:18px;display:flex}.task-queue-intro>div{min-width:0}.task-queue-intro>div>span{color:var(--accent-text);letter-spacing:.08em;text-transform:uppercase;font-size:9px;font-weight:760}.task-queue-intro h2{margin:6px 0 5px;font-size:20px}.task-queue-intro p{max-width:72ch;color:var(--text-muted);margin:0;font-size:11px;line-height:1.55}.task-queue-counts{flex:none;gap:26px;margin:0;display:flex}.task-queue-counts>div{flex-direction:column-reverse;gap:3px;min-width:58px;display:flex}.task-queue-counts dt{color:var(--text-faint);font-size:9px}.task-queue-counts dd{color:var(--text);font-family:var(--font-display);font-variant-numeric:tabular-nums;margin:0;font-size:22px;font-weight:680}.task-queue-counts .is-overdue dd{color:var(--danger)}.task-queue-toolbar{grid-template-columns:minmax(300px,1fr) 180px 190px auto;align-items:center;gap:10px;margin:0 8px 14px;display:grid}.task-queue-toolbar .registry-search{min-width:0}.task-queue-toolbar>select{border:1px solid var(--border);width:100%;min-height:36px;color:var(--text);background:var(--surface);padding:7px 28px 7px 10px;font-size:11px}.task-registry{background:0 0;border:0;border-radius:0;overflow:visible}.task-table{table-layout:fixed;min-width:1240px}.task-table th:first-child{width:290px}.task-table th:nth-child(2){width:190px}.task-table th:nth-child(3){width:165px}.task-table th:nth-child(4),.task-table th:nth-child(5){width:105px}.task-table th:nth-child(6){width:140px}.task-table th:nth-child(7){width:150px}.task-table th:last-child{width:105px}.task-table td{vertical-align:middle;height:82px;padding-block:11px}.task-table tbody tr:hover td{background:var(--surface-sunken)}.task-title-cell,.task-status-cell{flex-direction:column;align-items:flex-start;gap:4px;min-width:0;display:flex}.task-title-cell strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;overflow:hidden}.task-title-cell p{color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:9px;line-height:1.4;display:-webkit-box;overflow:hidden}.task-kind{border-radius:var(--radius-sm);min-height:19px;color:var(--text-muted);background:var(--surface-muted);white-space:nowrap;align-items:center;padding:3px 7px;font-size:8px;font-weight:720;line-height:1;display:inline-flex}.task-kind-manual{color:var(--accent-text);background:var(--accent-soft)}.task-kind-residence_documents{color:var(--violet);background:var(--violet-soft)}.task-kind-work_commencement_report{color:var(--warning);background:var(--warning-soft)}.task-priority,.task-status{border-radius:var(--radius-sm);color:var(--text-muted);background:var(--surface-muted);white-space:nowrap;align-items:center;padding:5px 8px;font-size:9px;font-weight:680;line-height:1;display:inline-flex}.task-priority-high{color:var(--warning);background:var(--warning-soft)}.task-priority-urgent{color:var(--danger);background:var(--danger-soft)}.task-priority-low{color:var(--info);background:var(--info-soft)}.task-status-open{color:var(--warning);background:var(--warning-soft)}.task-status-scheduled{color:var(--info);background:var(--info-soft)}.task-status-completed{color:var(--success);background:var(--success-soft)}.task-status-cancelled{color:var(--text-muted);background:var(--surface-muted)}.task-status-cell small{color:var(--text-faint);font-size:8px;line-height:1.35}.task-due-date{color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;align-items:center;gap:5px;font-size:9px;display:inline-flex}.task-due-date.is-overdue{color:var(--danger);font-weight:680}.task-user{color:var(--text-muted);-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:9px;line-height:1.35;display:-webkit-box;overflow:hidden}.task-case-link{max-width:100%;color:inherit;text-align:left;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:3px;padding:0;display:flex}.task-case-link strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:10px;overflow:hidden}.task-case-link span{color:var(--accent-text);font-size:8px;font-weight:650}.task-case-link:hover span{text-underline-offset:2px;text-decoration:underline}.task-no-case{color:var(--text-faint);font-size:9px}.task-complete-button,.task-cancel-button{border:1px solid var(--border-strong);min-height:30px;color:var(--text);background:var(--surface);white-space:nowrap;justify-content:center;align-items:center;gap:5px;padding:6px 8px;font-size:9px;font-weight:680;display:inline-flex}.task-complete-button:hover{color:var(--success);border-color:color-mix(in srgb, var(--success) 40%, var(--border));background:var(--success-soft)}.task-cancel-button:hover{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 25%, var(--border));background:var(--danger-soft)}.administrative-task-dialog{width:min(100%,590px)}.task-action-dialog{width:min(100%,500px)}.task-case-hint{border-radius:var(--radius-control);color:var(--text-muted);background:var(--surface-muted);margin:0;padding:11px 12px;font-size:11px;line-height:1.5}.cases-table-scroll{max-width:100%}.cases-table{table-layout:fixed;min-width:1180px}.cases-table th{z-index:1;position:sticky;top:0}.cases-table th:first-child{width:42px}.cases-table th:nth-child(2){width:130px}.cases-table th:nth-child(3){width:180px}.cases-table th:nth-child(4){width:175px}.cases-table th:nth-child(5){width:110px}.cases-table th:nth-child(6){width:190px}.cases-table th:nth-child(7),.cases-table th:nth-child(8){width:100px}.cases-table th:nth-child(9){width:210px}.cases-table th:last-child{width:42px}.cases-table td{vertical-align:middle;height:64px;padding-top:10px;padding-bottom:10px}.cases-table .clickable-row:hover td{background:var(--surface-sunken)}.cases-table .clickable-row.is-selected td{background:var(--accent-soft)}.cases-table .entity-name{min-width:0}.case-person-link{border-radius:var(--radius-control);color:inherit;text-decoration:none}.case-person-link:hover strong{text-decoration:underline;-webkit-text-decoration-color:var(--text-faint);text-decoration-color:var(--text-faint);text-underline-offset:3px}.case-person-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.cases-table .entity-name strong,.case-company-cell strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.case-company-cell{flex-direction:column;align-items:flex-start;gap:3px;min-width:0;display:flex}.case-company-cell strong{max-width:100%;color:var(--text);font-size:11px}.case-company-cell span{max-width:100%;color:var(--text-faint);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.case-select-cell{text-align:center!important;padding-right:4px!important}.case-select-cell input{width:15px;height:15px;accent-color:var(--accent);cursor:pointer;margin:0}.case-reference-cell{flex-direction:column;gap:4px;min-width:0;display:flex}.case-reference-cell strong{color:var(--text);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.case-reference-cell span{color:var(--text-faint);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.case-person-initials{width:27px;height:27px;color:var(--text-muted);background:var(--surface-muted);border-radius:50%;flex:0 0 27px;place-items:center;font-size:9px;font-weight:720;display:inline-grid}.operational-status{border-radius:var(--radius-sm);max-width:100%;color:var(--text-muted);background:var(--surface-muted);text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;padding:5px 9px;font-size:10px;font-weight:650;line-height:1.2;display:inline-flex;overflow:hidden}.operational-status:before{content:"";opacity:.7;background:currentColor;border-radius:50%;flex:0 0 6px;width:6px;height:6px}.operational-status-submitted{color:var(--warning);background:var(--warning-soft)}.operational-status-issued{color:var(--info);background:var(--info-soft)}.operational-status-arrived,.operational-status-residence-pending{color:var(--violet);background:var(--violet-soft)}.operational-status-report-pending{color:var(--warning);background:var(--warning-soft)}.operational-status-report-overdue{color:var(--danger);background:var(--danger-soft)}.operational-status-work-started,.operational-status-report-sent{color:var(--success);background:var(--success-soft)}.operational-status-revoked{color:var(--danger);background:var(--danger-soft)}.operational-status-expired,.operational-status-closed{color:var(--text-muted);background:var(--surface-muted)}.case-bulk-actions{border-bottom:1px solid var(--border);align-items:center;gap:10px;min-height:58px;padding:8px 12px;display:flex}.case-bulk-actions>strong{font-variant-numeric:tabular-nums;margin-right:4px;font-size:12px}.bulk-report-dialog{width:min(100%,560px)}.bulk-report-people{flex-wrap:wrap;gap:6px;max-height:116px;display:flex;overflow-y:auto}.bulk-report-people span{border-radius:var(--radius-control);color:var(--text-muted);background:var(--surface-muted);padding:5px 8px;font-size:9px}.partner-ownership,.case-status,.report-status{border:1px solid var(--border);border-radius:var(--radius-sm);white-space:nowrap;align-items:center;padding:4px 7px;font-size:9px;font-weight:720;line-height:1;display:inline-flex}.partner-internal{color:var(--accent-text);background:var(--accent-soft);border-color:#0000}.partner-external{color:var(--text-muted);border-color:var(--border);background:var(--surface-muted)}.case-status-draft{color:var(--text-muted);background:var(--surface-muted)}.case-status-submitted{color:var(--violet);background:var(--violet-soft);border-color:#0000}.case-status-issued{color:var(--info);background:var(--info-soft);border-color:#0000}.case-status-expired,.case-status-revocation_pending{color:var(--warning);background:var(--warning-soft);border-color:#0000}.case-status-revoked{color:var(--danger);background:var(--danger-soft);border-color:#0000}.case-status-closed{color:var(--success);background:var(--success-soft);border-color:#0000}.report-pending,.report-due{color:var(--warning);background:var(--warning-soft);border-color:#0000}.report-overdue{color:var(--danger);background:var(--danger-soft);border-color:#0000}.report-sent{color:var(--success);background:var(--success-soft);border-color:#0000}.report-cancelled,.report-not_required{color:var(--text-muted);background:var(--surface-muted)}.case-cell-date{color:var(--text-faint);margin-top:5px;font-size:9px;display:block}.cases-table .table-actions{color:var(--text-faint);text-align:right}.case-open-button{border-radius:var(--radius-control);width:28px;height:28px;color:var(--text-faint);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:inline-grid}.case-open-button:hover{color:var(--text);background:var(--surface-muted)}.case-open-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.cases-registry .registry-pagination{align-items:center}.cases-registry .registry-pagination>span{color:var(--text-faint);margin-right:auto;font-size:10px}.trc-empty-state{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);min-height:260px}.partner-dialog-list{border-bottom:1px solid var(--border);max-height:210px;display:grid;overflow-y:auto}.partner-dialog-list>div{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;min-height:45px;padding:8px 18px;display:flex}.partner-dialog-list>div:last-child{border-bottom:0}.partner-dialog-list strong{font-size:11px}.partner-dialog-empty{border-bottom:1px solid var(--border);color:var(--text-faint);margin:0;padding:16px 18px;font-size:10px}.case-drawer-backdrop{z-index:90;background:var(--backdrop);justify-content:center;align-items:center;padding:28px;display:flex;position:fixed;inset:0}.case-drawer{border-radius:var(--radius-surface);background:var(--surface);width:min(1040px,100vw - 56px);height:min(900px,100dvh - 56px);min-height:0;box-shadow:var(--shadow-dialog);flex-direction:column;display:flex;overflow:hidden}.case-drawer-header{border-bottom:1px solid var(--border);background:var(--surface-sunken);flex:none;justify-content:space-between;align-items:center;gap:20px;min-height:76px;padding:14px 22px;display:flex}.case-drawer-header span,.case-drawer-section>header span{color:var(--text-faint);letter-spacing:.08em;text-transform:uppercase;font-size:9px;font-weight:760}.case-drawer-header h2{margin:4px 0 0;font-size:20px}.case-drawer-header .icon-button:hover{border-color:var(--border);background:var(--surface-muted)}.case-drawer-body{overscroll-behavior:contain;scrollbar-gutter:stable;flex:auto;gap:12px;min-height:0;padding:16px;display:grid;overflow-y:auto}.case-drawer-summary,.case-drawer-section{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface)}.case-drawer-summary{order:-2;padding:14px 16px}.case-primary-action{border-color:color-mix(in srgb, var(--accent) 42%, var(--border));order:-1}.case-primary-action>header{background:color-mix(in srgb, var(--accent) 7%, var(--surface))}.case-primary-action>header>strong.is-overdue{color:var(--danger);background:color-mix(in srgb, var(--danger) 10%, var(--surface))}.case-action-intro,.case-action-context{padding:14px 16px 0}.case-action-intro strong,.case-action-context strong{color:var(--text);font-size:12px;display:block}.case-action-intro p,.case-action-context p{color:var(--text-faint);margin:5px 0 0;font-size:10px;line-height:1.5}.case-drawer-person{border-bottom:1px solid var(--border);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding-bottom:12px;display:grid}.case-drawer-person>div{flex-direction:column;gap:3px;min-width:0;display:flex}.case-drawer-person a{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:720;overflow:hidden}.case-drawer-person>div>span{color:var(--text-faint);font-size:10px}.case-drawer-summary dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 20px;margin:10px 0 0;display:grid}.case-drawer-summary dl>div{min-width:0;padding:5px 0}.case-drawer-summary dt{color:var(--text-faint);margin-bottom:4px;font-size:9px}.case-drawer-summary dd{color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:11px;font-weight:620;overflow:hidden}.case-detail-tabs{border-bottom:1px solid var(--border);align-items:center;gap:24px;min-height:44px;padding:0 4px;display:flex}.case-detail-tabs button{height:44px;color:var(--text-faint);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:7px;padding:0 2px;font-size:11px;font-weight:650;display:inline-flex;position:relative}.case-detail-tabs button:after{content:"";background:0 0;height:2px;position:absolute;bottom:-1px;left:0;right:0}.case-detail-tabs button:hover,.case-detail-tabs button.is-active{color:var(--text)}.case-detail-tabs button.is-active:after{background:var(--accent)}.case-detail-tabs button>span{border-radius:var(--radius-sm);min-width:18px;color:var(--text-muted);background:var(--surface-muted);text-align:center;padding:2px 5px;font-size:9px}.case-detail-tabs button.is-active>span{color:var(--accent-text);background:var(--accent-soft)}.case-drawer-section{overflow:hidden}.case-drawer-section>header{border-bottom:1px solid var(--border);background:var(--surface-sunken);justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:12px 16px;display:flex}.case-drawer-section>header h3{margin:4px 0 0;font-size:15px}.case-drawer-section>header>strong{border-radius:var(--radius-sm);min-width:24px;height:24px;color:var(--text-muted);background:var(--surface-muted);place-items:center;padding:0 7px;font-size:10px;display:grid}.case-section-empty{color:var(--text-faint);margin:0;padding:18px 16px;font-size:11px;line-height:1.5}.case-onboarding-list{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.case-onboarding-list>div{border-bottom:1px solid var(--border);grid-template-columns:auto minmax(0,1fr);align-content:center;gap:3px 9px;min-height:48px;padding:10px 14px;display:grid}.case-onboarding-list>div:nth-child(odd){border-right:1px solid var(--border)}.case-onboarding-list>div:nth-last-child(-n+2){border-bottom:0}.case-onboarding-list>div>span{border:1px solid var(--border-strong);background:var(--surface);border-radius:50%;grid-row:1/3;align-self:center;width:9px;height:9px}.case-onboarding-list>div.is-complete>span{border-color:var(--success);background:var(--success);box-shadow:inset 0 0 0 2px var(--surface)}.case-onboarding-list strong{font-size:10px}.case-onboarding-list small{color:var(--text-faint);font-size:9px}.case-process-dates{border-top:1px solid var(--border);background:var(--surface-sunken);grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:12px 14px;display:grid}.case-process-dates>div:last-child{grid-column:1/-1;padding-top:10px}.case-process-dates dt{color:var(--text-faint);font-size:9px}.case-process-dates dd{color:var(--text);margin:3px 0 0;font-size:10px;font-weight:620}.case-document-list{display:grid}.case-document-list button{border:0;border-bottom:1px solid var(--border);min-height:60px;color:var(--text-muted);text-align:left;cursor:pointer;background:0 0;border-radius:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 16px;display:grid}.case-document-list button:hover{background:var(--surface-sunken)}.case-document-list button>span{flex-direction:column;gap:3px;min-width:0;display:flex}.case-document-list button strong{color:var(--text);font-size:11px}.case-document-list button small{color:var(--text-faint);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.case-document-list button>.tabular{color:var(--text-muted);white-space:nowrap;font-size:10px}.authorization-dropzone{background:var(--surface-sunken);gap:12px;padding:16px;display:grid}.document-kind-switch{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-muted);grid-template-columns:repeat(2,1fr);gap:3px;padding:3px;display:grid}.document-kind-switch button{border-radius:var(--radius-sm);min-height:33px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;font-size:10px;font-weight:660}.document-kind-switch button.is-active{color:var(--text);background:var(--surface);box-shadow:var(--shadow-sm)}.document-file-drop{border:1px dashed var(--border-strong);border-radius:var(--radius-surface);min-height:76px;color:var(--accent);background:var(--surface);cursor:pointer;align-items:center;gap:12px;padding:14px;display:flex}.document-file-drop>span{flex-direction:column;gap:4px;min-width:0;display:flex}.document-file-drop strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.document-file-drop small{color:var(--text-faint);font-size:9px}.document-file-drop input{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}.case-action-stack{gap:0;display:grid}.case-action-stack>form{justify-items:start;gap:12px;padding:14px 16px 16px;display:grid}.case-action-stack form>.button{min-width:190px}.case-action-options{width:100%;color:var(--text-muted)}.case-action-options summary{width:max-content;color:var(--text-muted);cursor:pointer;font-size:10px;font-weight:620}.case-action-options .field{width:min(100%,420px);margin-top:10px}.case-action-stack textarea{min-height:64px}.case-drawer{background:var(--surface);width:min(1220px,100vw - 56px);height:min(860px,100dvh - 56px)}.case-drawer-header{background:var(--surface-sunken);min-height:68px;padding:12px 20px 12px 24px}.case-drawer-header>div{min-width:0}.case-drawer-header h2{text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:18px;overflow:hidden}.case-workspace{flex:auto;grid-template-columns:316px minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.case-context-panel{border-right:1px solid var(--border);overscroll-behavior:contain;background:var(--surface-sunken);scrollbar-gutter:stable;min-height:0;padding:22px 22px 28px;overflow-y:auto}.case-context-person{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:11px;display:grid}.case-context-person>div{gap:3px;min-width:0;display:grid}.case-context-person a{color:var(--text);text-overflow:ellipsis;text-underline-offset:3px;white-space:nowrap;font-size:14px;font-weight:720;overflow:hidden}.case-context-person>div>span{color:var(--text-faint);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.case-context-status{max-width:100%;margin-top:14px;display:inline-flex}.case-context-facts{border-top:1px solid var(--border);margin:20px 0 0}.case-context-facts>div{border-bottom:1px solid var(--border);grid-template-columns:minmax(88px,.8fr) minmax(0,1.2fr);align-items:center;gap:12px;min-height:40px;display:grid}.case-context-facts dt{color:var(--text-muted);font-size:10px}.case-context-facts dd{color:var(--text);text-align:right;text-overflow:ellipsis;margin:0;font-size:10px;font-weight:620;line-height:1.35;overflow:hidden}.case-context-process{margin-top:26px}.case-context-process>header{justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px;display:flex}.case-context-process h3{letter-spacing:-.015em;margin:0;font-size:13px;font-weight:700}.case-context-process p{color:var(--text-faint);margin:4px 0 0;font-size:9px;line-height:1.4}.case-context-process>header>span,.case-view-header>span,.case-document-group>header>span:not(.case-status){border-radius:var(--radius-sm);min-width:25px;height:25px;color:var(--text-muted);background:var(--surface-muted);flex:none;place-items:center;padding-inline:7px;font-size:9px;font-weight:720;display:grid}.case-process-stepper{margin:0;padding:0;list-style:none}.case-process-stepper li{grid-template-columns:24px minmax(0,1fr);align-items:start;gap:10px;min-height:49px;display:grid;position:relative}.case-process-stepper li:not(:last-child):after{background:var(--border);content:"";width:1px;position:absolute;top:24px;bottom:0;left:11px}.case-process-stepper li>span{z-index:1;border:1px solid var(--border-strong);width:24px;height:24px;color:var(--text-muted);background:var(--surface-sunken);border-radius:50%;place-items:center;font-size:9px;font-weight:720;display:grid}.case-process-stepper li.is-complete>span{border-color:var(--success);color:var(--on-accent);background:var(--success)}.case-process-stepper li>div{gap:3px;padding:3px 0 12px;display:grid}.case-process-stepper strong{color:var(--text);font-size:10px;font-weight:650;line-height:1.3}.case-process-stepper small{color:var(--text-faint);font-size:9px;line-height:1.35}.case-work-area{background:var(--surface);flex-direction:column;min-width:0;min-height:0;display:flex}.case-work-tabs{border-bottom:1px solid var(--border);flex:none;align-items:stretch;gap:6px;min-height:58px;padding:0 26px;display:flex;overflow-x:auto}.case-work-tabs button{min-height:58px;color:var(--text-muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:0 13px;font-size:12px;font-weight:630;transition:color .14s cubic-bezier(.23,1,.32,1),transform .14s cubic-bezier(.23,1,.32,1);display:inline-flex;position:relative}.case-work-tabs button:after{content:"";background:0 0;height:2px;position:absolute;bottom:-1px;left:9px;right:9px}.case-work-tabs button.is-active{color:var(--text);font-weight:720}.case-work-tabs button.is-active:after{background:var(--accent)}.case-work-tabs button:active{transform:scale(.98)}.case-work-tabs button>span{border-radius:var(--radius-sm);min-width:21px;height:21px;color:var(--text-muted);background:var(--surface-muted);place-items:center;padding:0 6px;font-size:9px;display:grid}.case-work-tabs button>span.is-overdue{color:var(--danger);background:color-mix(in srgb, var(--danger) 10%, var(--surface))}.case-work-tabs button.is-active>span:not(.is-overdue){color:var(--accent-text);background:var(--accent-soft)}.case-work-content{overscroll-behavior:contain;scrollbar-gutter:stable;flex:auto;min-height:0;padding:26px 30px 36px;overflow-y:auto}.case-action-view,.case-tab-view{width:min(100%,760px)}.case-view-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:20px;min-height:54px;padding-bottom:18px;display:flex}.case-view-header h3{color:var(--text);letter-spacing:-.025em;margin:0;font-size:18px;font-weight:720}.case-view-header p{max-width:56ch;color:var(--text-muted);margin:5px 0 0;font-size:11px;line-height:1.5}.case-view-header>span.is-overdue{min-width:0;height:auto;color:var(--danger);background:color-mix(in srgb, var(--danger) 9%, var(--surface));padding:6px 9px;display:inline-flex}.case-action-intro,.case-action-context{max-width:620px;padding:22px 0 0}.case-action-context{padding-bottom:0}.case-action-intro strong,.case-action-context strong{color:var(--text);font-size:14px;font-weight:680}.case-action-intro p,.case-action-context p{color:var(--text-muted);margin-top:6px;font-size:11px;line-height:1.55}.case-action-stack{width:min(100%,640px);margin-top:18px}.case-action-stack>form,.case-action-stack>.authorization-dropzone{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface-sunken);justify-items:start;gap:14px;padding:20px;display:grid}.case-action-stack form>.field{width:min(100%,310px)}.case-action-stack form>.button{min-width:0;margin-top:2px}.case-action-options{width:min(100%,500px)}.case-action-options summary{min-height:32px;color:var(--text-muted);text-underline-offset:3px;align-items:center;font-size:10px;display:inline-flex}.case-action-options .field{width:100%}.authorization-dropzone .form-grid,.document-kind-switch{width:min(100%,500px)}.document-kind-switch button{transition:background-color .14s cubic-bezier(.23,1,.32,1),transform .14s cubic-bezier(.23,1,.32,1)}.document-kind-switch button:active,.document-file-drop:active,.case-document-list button:active{transform:scale(.98)}.document-file-drop{width:min(100%,500px);min-height:86px;transition:border-color .14s cubic-bezier(.23,1,.32,1),background-color .14s cubic-bezier(.23,1,.32,1),transform .14s cubic-bezier(.23,1,.32,1)}.case-document-group{border-bottom:1px solid var(--border);padding:22px 0 4px}.case-document-group:last-child{border-bottom:0}.case-document-group>header{justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:12px;display:flex}.case-document-group h4{color:var(--text);margin:0;font-size:13px;font-weight:690}.case-document-group>header p{color:var(--text-faint);margin:4px 0 0;font-size:9px;line-height:1.4}.case-section-empty{padding:16px 0 18px;font-size:10px}.case-document-list{border-top:1px solid var(--border)}.case-document-list button{width:100%;min-height:62px;padding:11px 4px;transition:background-color .14s cubic-bezier(.23,1,.32,1),transform .14s cubic-bezier(.23,1,.32,1)}.case-document-list button:last-child{border-bottom:0}.case-document-list button strong{font-size:11px}.case-document-list button small,.case-document-list button>.tabular{font-size:9px}.case-history-view{width:min(100%,680px)}.case-event-timeline{padding:24px 0 8px 20px}.case-event-timeline li{min-height:70px;padding:0 0 20px 24px}.case-event-timeline time{font-size:10px}.case-event-timeline strong{font-size:12px}.case-event-timeline p{max-width:65ch;font-size:10px}@media (hover:hover) and (pointer:fine){.case-work-tabs button:hover{color:var(--text)}.document-file-drop:hover{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 3%, var(--surface))}.case-document-list button:hover{background:var(--surface-sunken)}}@media (width<=900px){.case-workspace{grid-template-rows:minmax(220px,38dvh) minmax(0,1fr);grid-template-columns:minmax(0,1fr)}.case-context-panel{border-right:0;border-bottom:1px solid var(--border)}.case-context-facts{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.case-context-facts>div:nth-child(odd){padding-right:16px}.case-context-facts>div:nth-child(2n){border-left:1px solid var(--border);padding-left:16px}}@media (width<=560px){.case-drawer-header{min-height:60px;padding-inline:16px 12px}.case-workspace{grid-template-rows:minmax(210px,40dvh) minmax(0,1fr)}.case-context-panel{padding:18px 16px 22px}.case-context-facts{grid-template-columns:1fr}.case-context-facts>div:nth-child(odd),.case-context-facts>div:nth-child(2n){border-left:0;padding-inline:0}.case-work-tabs,.case-work-tabs button{min-height:52px;padding-inline:10px}.case-work-content{padding:20px 16px 30px}.case-view-header h3{font-size:16px}.case-action-stack>form,.case-action-stack>.authorization-dropzone{padding:16px}.case-document-list button{grid-template-columns:auto minmax(0,1fr)}.case-document-list button>.tabular{white-space:normal;grid-column:2;justify-self:start}}.case-next-action-cell{min-width:0}.case-next-action-cell>span{color:var(--text-faint);font-size:10px;line-height:1.35}.case-quick-action{border:1px solid color-mix(in srgb, var(--accent) 34%, var(--border));border-radius:var(--radius-control);width:100%;max-width:none;color:var(--accent-text);background:color-mix(in srgb, var(--accent) 6%, var(--surface));font:inherit;text-align:left;white-space:normal;cursor:pointer;padding:7px 9px;font-size:10px;font-weight:690;line-height:1.25}.case-quick-action:hover{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 11%, var(--surface))}.case-quick-action.is-overdue{border-color:color-mix(in srgb, var(--danger) 42%, var(--border));color:var(--danger);background:color-mix(in srgb, var(--danger) 7%, var(--surface))}.case-event-timeline{margin:0;padding:18px 22px 22px 38px;list-style:none}.case-event-timeline li{border-left:1px solid var(--border);gap:3px;min-height:78px;padding:0 0 22px 20px;display:grid;position:relative}.case-event-timeline li:last-child{min-height:0;padding-bottom:0}.case-event-timeline li:before{border:2px solid var(--surface);background:var(--accent);width:9px;height:9px;box-shadow:0 0 0 1px var(--accent);content:"";border-radius:50%;position:absolute;top:2px;left:-5px}.case-event-timeline time{color:var(--text-faint);font-size:9px}.case-event-timeline strong{color:var(--text);font-size:11px}.case-event-timeline p{color:var(--text-muted);margin:0;font-size:9px;line-height:1.45}@media (width<=1200px){.trc-kpi-strip{grid-template-columns:repeat(3,1fr);gap:24px 36px}.case-toolbar{grid-template-columns:1fr}.case-toolbar .registry-filters{justify-content:flex-start}.task-queue-toolbar{grid-template-columns:minmax(280px,1fr) 170px 180px}.task-queue-toolbar .case-clear-filters{grid-column:1/-1;justify-self:start}}@media (width<=800px){.trc-page-header{flex-direction:column;align-items:flex-start}.case-module-tabs{width:100%}.case-toolbar .registry-filters{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.case-toolbar .registry-filters select{max-width:none}.case-drawer-backdrop{padding:12px}.case-drawer{border-radius:var(--radius-surface);width:100%;height:calc(100dvh - 24px)}.case-drawer-summary dl{grid-template-columns:repeat(2,minmax(0,1fr))}.task-queue-intro{flex-direction:column;align-items:flex-start}.task-queue-toolbar{grid-template-columns:1fr 1fr}.task-queue-toolbar .registry-search{grid-column:1/-1}}@media (width<=560px){.case-drawer-backdrop{padding:0}.case-drawer{border-radius:0;height:100dvh}.page-header-actions,.page-header-actions .button{width:100%}.trc-kpi-strip{grid-template-columns:repeat(2,1fr);gap:22px;margin-inline:4px}.case-toolbar .registry-filters{grid-template-columns:1fr}.case-bulk-actions{flex-direction:column;align-items:stretch}.case-bulk-actions .button,.case-bulk-actions .button-link{width:100%}.case-drawer-body{padding:10px}.case-drawer-person,.case-document-list button{grid-template-columns:auto minmax(0,1fr)}.case-drawer-person>.case-status,.case-document-list button>.tabular{grid-column:2;justify-self:start}.case-drawer-summary dl,.case-action-stack>form{grid-template-columns:1fr}.case-action-stack form>.field,.case-action-stack form>.button{grid-column:1}.document-kind-switch,.case-onboarding-list{grid-template-columns:1fr}.case-onboarding-list>div{border-right:0;border-bottom:1px solid var(--border)}.case-onboarding-list>div:last-child{border-bottom:0}.task-queue-counts{justify-content:space-between;gap:14px;width:100%}.task-queue-toolbar{grid-template-columns:1fr}.task-queue-toolbar .registry-search,.task-queue-toolbar .case-clear-filters{grid-column:1}}.nav-count{border-radius:var(--radius-sm);min-width:20px;height:20px;color:var(--on-accent);background:var(--accent);font-variant-numeric:tabular-nums;place-items:center;margin-left:auto;padding:0 6px;font-size:9px;font-weight:780;display:inline-grid}.inbox-page{width:min(100%,1260px);margin:0 auto}.inbox-header{justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:24px;display:flex}.inbox-header h1{margin:0 0 7px;font-size:clamp(26px,2.1vw,30px)}.inbox-header p{max-width:620px;color:var(--text-muted);margin:0;font-size:13px;line-height:1.5}.inbox-summary{border-block:1px solid var(--border);grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px;display:grid}.inbox-summary>div{border-right:1px solid var(--border);align-items:center;gap:13px;min-height:84px;padding:18px 24px;display:flex}.inbox-summary>div:last-child{border-right:0}.inbox-summary svg{color:var(--text-faint)}.inbox-summary span{color:var(--text-muted);gap:3px;font-size:10px;display:grid}.inbox-summary strong{font-family:var(--font-display);color:var(--text);font-variant-numeric:tabular-nums;font-size:24px;font-weight:680;line-height:1}.inbox-summary .is-danger svg,.inbox-summary .is-danger strong{color:var(--danger)}.inbox-tabs{border-bottom:1px solid var(--border);gap:22px;margin-bottom:18px;display:flex}.inbox-tabs button{min-height:42px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;align-items:center;gap:7px;padding:0 1px;font-size:12px;font-weight:640;display:inline-flex;position:relative}.inbox-tabs button:after{content:"";background:0 0;height:2px;position:absolute;bottom:-1px;left:0;right:0}.inbox-tabs button:hover,.inbox-tabs button.is-active{color:var(--text)}.inbox-tabs button.is-active:after{background:var(--accent)}.inbox-tabs button>span{border-radius:var(--radius-sm);min-width:19px;height:19px;color:var(--accent-text);background:var(--accent-soft);place-items:center;padding-inline:5px;font-size:9px;display:inline-grid}.inbox-feed{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);overflow:hidden}.inbox-item{border:0;border-bottom:1px solid var(--border);width:100%;min-height:106px;color:var(--text);text-align:left;cursor:pointer;background:0 0;grid-template-columns:auto minmax(0,1fr) minmax(180px,.28fr) auto;align-items:center;gap:17px;padding:18px 20px;display:grid}.inbox-item:last-child{border-bottom:0}.inbox-item:hover{background:var(--surface-muted)}.inbox-item.is-unread{background:color-mix(in srgb, var(--accent-soft) 50%, var(--surface))}.inbox-item.is-unread:hover{background:var(--accent-soft)}.inbox-item-icon{width:38px;height:38px;color:var(--text-muted);background:var(--surface-muted);border-radius:50%;place-items:center;display:grid}.inbox-item-due .inbox-item-icon{color:var(--warning);background:var(--warning-soft)}.inbox-item-overdue .inbox-item-icon{color:var(--danger);background:var(--danger-soft)}.inbox-item-copy,.inbox-item-deadline{min-width:0;display:grid}.inbox-item-copy{gap:5px}.inbox-item-copy>span:first-child{align-items:center;gap:9px;display:flex}.inbox-item-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.inbox-item-copy small{border-radius:var(--radius-sm);color:var(--text-muted);background:var(--surface-muted);padding:3px 7px;font-size:8px;font-weight:720}.inbox-item-copy p{color:var(--text-muted);margin:0;font-size:11px;line-height:1.45}.inbox-item-person{color:var(--text-faint);font-size:9px}.inbox-item-deadline{justify-items:start;gap:4px}.inbox-item-deadline small{color:var(--accent-text);font-size:9px;font-weight:720}.inbox-item-deadline strong{font-variant-numeric:tabular-nums;font-size:13px}.inbox-item-deadline span{color:var(--text-faint);font-size:9px}.inbox-empty-state{border:0;min-height:340px}.deadline-dialog{width:min(100%,620px)}.deadline-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.deadline-consequence{border:1px solid var(--border);border-radius:var(--radius-control);color:var(--text-muted);background:var(--surface-sunken);align-items:flex-start;gap:10px;padding:12px 13px;display:flex}.deadline-consequence svg{color:var(--accent-text);flex:none}.deadline-consequence p{margin:0;font-size:11px;line-height:1.5}.case-document-row{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto;align-items:stretch;display:grid}.case-document-row:last-child,.case-document-row .case-document-open{border-bottom:0}.document-deadline-copy{justify-items:end;gap:3px;min-width:150px;display:grid}.document-deadline-copy small{color:var(--text-faint);font-size:9px}.document-deadline-copy strong{color:var(--text);font-size:10px}.deadline-edit-button{border:0;border-left:1px solid var(--border);color:var(--accent-text);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:6px;padding:8px 12px;font-size:10px;font-weight:680;display:inline-flex}.deadline-edit-button:hover{background:var(--accent-soft)}.case-action-deadline{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-sunken);justify-content:space-between;align-items:center;gap:16px;margin-top:14px;display:flex}.case-action-deadline>div{color:var(--text-muted);flex-wrap:wrap;gap:6px 18px;padding:11px 13px;font-size:10px;display:flex}.case-action-deadline strong{color:var(--text);font-variant-numeric:tabular-nums}.prototype-document-list .document-row-actions{flex-direction:column;align-items:flex-end;gap:7px;display:flex}.prototype-document-list .document-row-actions>.type-badge{color:var(--text-muted)}.prototype-document-list .document-row-actions>.button{white-space:nowrap}.task-available-date{color:var(--text-faint);margin-top:4px;font-size:9px;display:block}@media (width<=900px){.inbox-header{flex-direction:column;align-items:flex-start}.inbox-item{grid-template-columns:auto minmax(0,1fr) auto}.inbox-item-deadline{grid-column:2}.inbox-item>svg{grid-area:1/3/span 2}.prototype-document-list>article{grid-template-columns:auto minmax(0,1fr)}.prototype-document-list dl,.prototype-document-list .document-row-actions{grid-column:2}.prototype-document-list .document-row-actions{align-items:flex-start}}@media (width<=600px){.inbox-header .button{width:100%}.inbox-summary{grid-template-columns:1fr}.inbox-summary>div{border-right:0;border-bottom:1px solid var(--border);min-height:68px;padding:14px 4px}.inbox-summary>div:last-child{border-bottom:0}.inbox-tabs{gap:16px;overflow-x:auto}.inbox-tabs button{flex:none}.inbox-item{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;padding:15px 13px}.inbox-item-deadline{grid-column:2}.inbox-item>svg{display:none}.deadline-form-grid,.case-document-row{grid-template-columns:1fr}.case-document-row .deadline-edit-button{border-top:1px solid var(--border);border-left:0;justify-content:flex-start}.document-deadline-copy{grid-column:2;justify-items:start}.case-action-deadline{flex-direction:column;align-items:stretch}.case-action-deadline .deadline-edit-button{border-top:1px solid var(--border);border-left:0;justify-content:flex-start}.prototype-document-list dl{flex-wrap:wrap;gap:12px 22px}}.inbox-pagination{border-top:1px solid var(--border);color:var(--text-muted);justify-content:space-between;align-items:center;padding:18px 4px 4px;display:flex}.inbox-pagination>div{align-items:center;gap:12px;display:flex}@media (width<=720px){.inbox-pagination{flex-direction:column;align-items:stretch;gap:12px}.inbox-pagination>div{justify-content:space-between}}.settlements-header{align-items:center}.settlement-status{border:1px solid var(--border-strong);border-radius:var(--radius-sm);min-height:36px;color:var(--text-muted);background:var(--surface);align-items:center;gap:8px;padding:8px 12px;font-size:12px;font-weight:680;display:inline-flex}.settlement-status-finalized{color:var(--success);border-color:color-mix(in srgb, var(--success) 25%, var(--border));background:var(--success-soft)}.settlement-toolbar{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);grid-template-columns:170px minmax(220px,320px) minmax(260px,1fr);align-items:end;gap:10px;margin-bottom:14px;padding:14px;display:grid}.settlement-filter,.settlement-rate-form label,.settlement-accommodation-fields label{gap:6px;display:grid}.settlement-filter>span,.settlement-rate-form label>span,.settlement-accommodation-fields label>span{color:var(--text-muted);font-size:11px;font-weight:680}.settlement-filter input,.settlement-filter select,.settlement-rate-form input,.settlement-accommodation-fields input{border:1px solid var(--border-strong);min-height:36px;color:var(--text);background:var(--surface);font:inherit;font-size:12px}.settlement-filter input,.settlement-rate-form input,.settlement-accommodation-fields input{padding:8px 10px}.settlement-filter select{padding:8px 30px 8px 10px}.settlement-search{width:100%;min-height:36px}.settlement-rate-strip{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface-sunken);grid-template-columns:minmax(190px,.8fr) minmax(480px,1.7fr) minmax(150px,auto);align-items:end;gap:18px;margin-bottom:14px;padding:16px;display:grid}.settlement-rate-current{gap:3px;display:grid}.settlement-rate-current>span,.settlement-summary span{color:var(--text-muted);font-size:11px}.settlement-rate-current strong{color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-size:18px}.settlement-rate-current small{color:var(--text-muted);font-size:10px}.settlement-rate-form{grid-template-columns:minmax(130px,1fr) minmax(150px,1fr) auto;align-items:end;gap:8px;display:grid}.settlement-rate-history{align-self:center;position:relative}.settlement-rate-history summary{color:var(--accent-text);cursor:pointer;font-size:12px;font-weight:680}.settlement-rate-history ul{z-index:12;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);width:250px;max-height:260px;box-shadow:var(--shadow-dialog);margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 9px);right:0;overflow-y:auto}.settlement-rate-history li{border-bottom:1px solid var(--border);gap:2px;padding:9px;font-size:11px;display:grid}.settlement-rate-history li:last-child{border-bottom:0}.settlement-rate-history li span{color:var(--text-muted)}.settlement-notice{border:1px solid color-mix(in srgb, var(--success) 25%, var(--border));border-radius:var(--radius-control);color:var(--success);background:var(--success-soft);align-items:center;gap:9px;margin-bottom:14px;padding:10px 12px;font-size:12px;display:flex}.settlement-empty{min-height:290px}.settlement-empty .button{margin-top:18px}.settlement-empty>small{color:var(--text-muted);margin-top:9px}.settlement-summary{border:1px solid var(--border);border-radius:var(--radius-surface);background:var(--surface);grid-template-columns:repeat(5,minmax(110px,1fr)) minmax(150px,1.3fr);margin-bottom:14px;display:grid;overflow:hidden}.settlement-summary>div{border-right:1px solid var(--border);gap:5px;padding:14px 16px;display:grid}.settlement-summary>div:last-child{border-right:0}.settlement-summary strong{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:14px}.settlement-summary-total{background:var(--sidebar-bg)}.settlement-summary-total span{color:var(--sidebar-text)}.settlement-summary-total strong{color:var(--sidebar-active-text);font-size:17px}.settlement-actions-bar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px;display:flex}.settlement-version-history{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);grid-template-columns:auto 1fr;align-items:center;gap:8px 14px;margin-bottom:12px;padding:10px 12px;display:grid}.settlement-version-history>span{color:var(--text-muted);font-size:11px;font-weight:680}.settlement-version-history>div{flex-wrap:wrap;gap:6px;display:flex}.settlement-version-history button{border:1px solid var(--border);min-height:29px;color:var(--text-muted);background:var(--surface);padding:5px 9px;font-size:10px;font-weight:680}.settlement-version-history button.is-active{border-color:color-mix(in srgb, var(--accent) 40%, var(--border));color:var(--accent-text);background:var(--accent-soft)}.settlement-version-history small{color:var(--text-muted);grid-column:2;font-size:10px}.settlement-actions-bar>div{align-items:center;gap:8px;display:flex}.unsaved-count{color:var(--accent-text);font-size:11px;font-weight:680}.settlement-registry{overflow:visible}.settlement-scroll-hint{margin-left:auto}.settlement-table-scroll{border-radius:0 0 var(--radius-surface) var(--radius-surface);scrollbar-color:var(--border-strong) transparent;max-width:100%}.settlement-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1560px}.settlement-col-employee{width:220px}.settlement-col-company{width:170px}.settlement-col-status{width:150px}.settlement-col-hours{width:82px}.settlement-col-total-hours{width:86px}.settlement-col-rate{width:96px}.settlement-col-base{width:108px}.settlement-col-money{width:112px}.settlement-col-payout{width:130px}.settlement-table th{z-index:3;border-bottom:1px solid var(--border);height:40px;color:var(--text-muted);background:var(--surface-sunken);letter-spacing:.04em;text-align:left;text-transform:uppercase;white-space:nowrap;padding:8px 9px;font-size:10px;font-weight:760;position:sticky;top:0}.settlement-table td{border-bottom:1px solid var(--border);height:62px;color:var(--text);background:var(--surface);vertical-align:middle;padding:9px;font-size:11px}.settlement-table tbody tr:hover>td{background:var(--surface-sunken)}.settlement-row-dirty>td,.settlement-row-dirty:hover>td{background:var(--accent-soft)}.settlement-employee-toggle{width:100%;color:var(--text);text-align:left;background:0 0;border:0;align-items:center;gap:8px;padding:0;display:flex}.settlement-employee-toggle svg{color:var(--text-muted);flex:none;transition:transform .14s ease-out;transform:rotate(-90deg)}.settlement-employee-toggle svg.is-open{transform:rotate(0)}.settlement-employee-toggle span,.settlement-table td:nth-child(2),.settlement-table td:nth-child(3),.settlement-payout{gap:3px;display:grid}.settlement-employee-toggle strong,.table-primary,.settlement-payout strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:680;overflow:hidden}.settlement-employee-toggle small,.table-secondary,.settlement-table td:nth-child(3) small,.settlement-calculated small,.settlement-payout small{color:var(--text-muted);font-size:10px}.settlement-registration{line-height:1.25}.settlement-number-input,.settlement-money-input{border:1px solid var(--border-strong);width:100%;height:34px;color:var(--text);background:var(--surface);font-variant-numeric:tabular-nums;text-align:right;padding:6px 7px;font-size:11px}.settlement-number-input:disabled,.settlement-money-input:disabled{color:var(--text);opacity:1;background:0 0;border-color:#0000}.settlement-calculated,.settlement-payout{font-variant-numeric:tabular-nums;text-align:right}.settlement-payout{justify-content:end}.settlement-payout.is-negative strong{color:var(--danger)}.settlement-detail-row>td{background:var(--surface-muted);height:auto;padding:0}.settlement-detail-row:hover>td{background:var(--surface-muted)!important}.settlement-row-details{width:min(calc(100vw - var(--sidebar-width) - 90px), 1400px);padding:18px 20px;position:sticky;left:0}.settlement-row-details dl{grid-template-columns:repeat(4,minmax(130px,1fr));gap:14px 24px;margin:0 0 18px;display:grid}.settlement-row-details dl>div{gap:3px;display:grid}.settlement-row-details dt{color:var(--text-muted);font-size:10px}.settlement-row-details dd{color:var(--text);margin:0;font-size:12px;font-weight:620}.settlement-accommodation-fields{grid-template-columns:minmax(280px,2fr) minmax(180px,1fr);gap:12px;max-width:700px;display:grid}.settlement-pagination{border-top:1px solid var(--border);color:var(--text-muted);background:var(--surface);justify-content:space-between;align-items:center;padding:10px 14px;font-size:11px;display:flex}.settlement-pagination>div{gap:6px;display:flex}.settlement-finalize-warning{border:1px solid color-mix(in srgb, var(--warning) 25%, var(--border));border-radius:var(--radius-control);color:var(--warning);background:var(--warning-soft);grid-template-columns:auto 1fr;gap:10px;padding:12px;display:grid}.settlement-finalize-warning p{margin:0;font-size:12px;line-height:1.5}.settlement-reconcile-list{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);max-height:min(260px,34vh);overflow:auto}.settlement-reconcile-list>div{border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums;grid-template-columns:minmax(180px,1fr) 90px 120px;align-items:center;gap:12px;padding:9px 11px;font-size:11px;display:grid}.settlement-reconcile-list>div:first-child{z-index:1;color:var(--text-muted);background:var(--surface-muted);letter-spacing:.06em;text-transform:uppercase;font-size:9px;font-weight:700;position:sticky;top:0}.settlement-reconcile-list>div:last-child{border-bottom:0}.settlement-reconcile-list strong,.settlement-reconcile-list small{display:block}.settlement-reconcile-list small{color:var(--text-muted);margin-top:2px}.settlement-finalize-summary{grid-template-columns:1fr 1fr;gap:12px;margin:0;display:grid}.settlement-finalize-summary>div{border:1px solid var(--border);border-radius:var(--radius-control);gap:4px;padding:12px;display:grid}.settlement-finalize-summary dt{color:var(--text-muted);font-size:10px}.settlement-finalize-summary dd{font-variant-numeric:tabular-nums;margin:0;font-size:16px;font-weight:680}@media (width<=1180px){.settlement-rate-strip{grid-template-columns:minmax(180px,.8fr) minmax(430px,1.7fr)}.settlement-rate-history{grid-column:1/-1}.settlement-summary{grid-template-columns:repeat(3,1fr)}.settlement-summary>div:nth-child(3){border-right:0}.settlement-summary>div:nth-child(-n+3){border-bottom:1px solid var(--border)}}@media (width<=860px){.settlement-toolbar,.settlement-rate-strip,.settlement-rate-form{grid-template-columns:1fr}.settlement-actions-bar,.settlement-actions-bar>div{flex-direction:column;align-items:stretch}.settlement-actions-bar .button{width:100%}.settlement-row-details{width:calc(100vw - 56px)}.settlement-row-details dl{grid-template-columns:repeat(2,minmax(130px,1fr))}}@media (width<=640px){.settlements-header{align-items:flex-start}.settlement-summary{grid-template-columns:repeat(2,1fr)}.settlement-summary>div,.settlement-summary>div:nth-child(3){border-right:1px solid var(--border);border-bottom:1px solid var(--border)}.settlement-summary>div:nth-child(2n){border-right:0}.settlement-summary>div:nth-last-child(-n+2){border-bottom:0}.settlement-row-details{width:calc(100vw - 28px);padding:16px}.settlement-version-history{grid-template-columns:1fr}.settlement-version-history small{grid-column:1}.settlement-row-details dl,.settlement-accommodation-fields,.settlement-finalize-summary{grid-template-columns:1fr}.settlement-scroll-hint{display:none}}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal-DC-KSUi6.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:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal-BgDaEnEv.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}@font-face{font-family:Urbanist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/urbanist-latin-ext-wght-normal-Bdxck5Au.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:Urbanist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/urbanist-latin-wght-normal-D69JTELx.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{--surface-page:#f3f5f8;--surface:#fdfdfe;--surface-muted:#eef1f5;--surface-sunken:#f6f8fa;--text:#172033;--text-muted:#556074;--text-faint:#626c80;--border:#e1e6ed;--border-strong:#cdd5df;--accent:#3d72b7;--accent-hover:#32619f;--accent-text:#1d4785;--accent-soft:#e8f0fa;--accent-soft-hover:#dbe7f6;--on-accent:#fff;--focus-ring:#64a3d973;--selection-bg:#cfe0f5;--danger:#b42f3a;--danger-soft:#fbe9eb;--warning:#8a5a00;--warning-soft:#fbf1dc;--success:#217a52;--success-soft:#e3f3ea;--info:#1d4785;--info-soft:#e8f0fa;--violet:#5e4b94;--violet-soft:#efecf9;--sidebar-bg:#13284a;--sidebar-text:#c9d5e8;--sidebar-muted:#8fa2c2;--sidebar-active-bg:#ffffff1a;--sidebar-active-text:#fff;--sidebar-active-icon:#8cbcec;--sidebar-line:#ffffff24;--sidebar-focus:#8cbcec;--sidebar-hover-bg:#ffffff0f;--backdrop:#17203366;--shadow-sm:0 1px 2px #1720330d;--shadow-dialog:0 24px 60px #17203324, 0 2px 6px #1720330f;--font-sans:"Geist Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-display:"Urbanist Variable", "Geist Variable", -apple-system, system-ui, sans-serif;--radius-sm:3px;--radius-control:4px;--radius-surface:6px;--radius-round:999px;--sidebar-width:244px;--topbar-height:68px;font-family:var(--font-sans);font-variant-numeric:tabular-nums;color:var(--text);background:var(--surface-page);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html{background:var(--surface-page);min-width:320px;min-height:100%}body{min-width:320px;min-height:100%;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed}a{color:inherit}::selection{color:var(--text);background:var(--selection-bg)}::placeholder{color:var(--text-faint);opacity:1}h1,h2{font-family:var(--font-display);letter-spacing:-.02em;font-weight:600}.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}
