:root{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#253431;background:#f6f7f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input{font:inherit}.auth-shell{min-height:100svh;display:grid;grid-template-columns:1fr 1fr}.brand-panel{background:#183f35;color:#f2f5ea;padding:48px 64px;display:flex;flex-direction:column;position:relative;overflow:hidden}.brand-panel:after{content:"";position:absolute;width:500px;height:500px;border:1px solid #ffffff10;border-radius:50%;right:-230px;bottom:-230px;box-shadow:0 0 0 75px #ffffff04,0 0 0 150px #ffffff03;pointer-events:none}.brand{display:inline-flex;align-items:center;gap:2px;font-size:25px;font-weight:500;text-decoration:none;letter-spacing:-1px;width:fit-content}.brand-mark{font-weight:750}.brand-copy{margin:auto 0;max-width:450px;padding:80px 0}.eyebrow{font-size:11px;font-weight:650;letter-spacing:2px;display:block}.brand-copy .eyebrow{color:#b4c9b7}.brand-copy h1{font-size:clamp(32px,3.8vw,58px);line-height:1.13;letter-spacing:-1.8px;font-weight:500;margin:25px 0}.brand-copy p{line-height:1.8;font-size:15px;max-width:340px;color:#c2d1c8}.brand-footer{font-size:12px;color:#c2d1c8}.form-panel{position:relative;display:flex;align-items:center;justify-content:center;padding:90px 48px}.languages{position:absolute;right:48px;top:48px;display:flex;gap:12px;font-size:11px;letter-spacing:.7px;color:#89948c}.languages a{text-decoration:none;padding:4px}.languages a[aria-current]{font-weight:750;color:#254e3e}.form-content{width:100%;max-width:360px}.form-content .eyebrow{color:#698775}.form-content h2{font-size:32px;font-weight:550;letter-spacing:-.8px;margin:18px 0 10px}.muted{color:#748079;font-size:14px;line-height:1.6;margin:0 0 35px}form label{display:block;font-size:13px;font-weight:550;margin:20px 0 9px}input:not([type=hidden]){width:100%;min-height:48px;border:1px solid #d4dbd2;background:#fff;border-radius:7px;padding:12px 14px;color:#253431;transition:border-color .15s}input:focus{outline:3px solid #bfd1bf66;border-color:#618773}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:28px;min-height:48px;border:0;border-radius:7px;background:#244f3d;color:#fff;font-size:14px;padding:13px 18px;cursor:pointer}.primary:hover{background:#1b402f}.primary:focus-visible,.secondary:focus-visible,a:focus-visible{outline:3px solid #90ad95;outline-offset:4px}.form-note{font-size:12px;line-height:1.7;color:#7c8780;margin-top:24px}.error{font-size:13px;line-height:1.6;border:1px solid #e5c3bd;background:#fcf0ed;color:#8c3932;border-radius:6px;padding:12px}.app-header{display:flex;align-items:center;gap:24px;background:#fff;border-bottom:1px solid #e1e5dd;padding:20px 40px}.dark{color:#244f3d}.app-header form{margin-left:auto}.workspace-name{font-size:13px;color:#788379}.secondary{background:transparent;border:1px solid #d6ded5;padding:9px 15px;border-radius:6px;color:#3d5847;cursor:pointer}.welcome{max-width:1040px;margin:90px auto;padding:0 40px}.welcome>.eyebrow{color:#6e8b74}.welcome h1{font-size:36px;font-weight:500;letter-spacing:-1px;line-height:1.3;margin:20px 0}.welcome>p{color:#738078;line-height:1.7}.account-card{display:flex;gap:16px;align-items:center;margin-top:36px;max-width:380px;padding:22px;background:#fff;border:1px solid #e0e6db;border-radius:10px}.status-dot{width:9px;height:9px;border-radius:50%;background:#6e9774}.account-card strong{font-size:13px;font-weight:550}.account-card p{margin:5px 0 0;color:#77877a;font-size:13px}@media(max-width:720px){.auth-shell{grid-template-columns:1fr}.brand-panel{padding:28px 28px 32px}.brand-copy{padding:25px 0 0}.brand-copy .eyebrow,.brand-copy p,.brand-footer{display:none}.brand-copy h1{font-size:30px;letter-spacing:-.7px;margin:0;max-width:330px}.form-panel{padding:70px 28px 45px;align-items:start}.languages{right:28px;top:22px}.form-content{max-width:400px}.form-content h2{font-size:28px}.app-header{padding:20px}.welcome{margin:55px auto;padding:0 24px}.welcome h1{font-size:28px}.workspace-name{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
select,textarea{font:inherit;max-width:100%;min-height:44px;border:1px solid #d4dbd2;background:#fff;border-radius:7px;padding:10px;color:inherit}button{font:inherit}button:disabled{opacity:.55;cursor:wait}.signed-user{margin-left:auto;font-size:13px}.app-header form{margin-left:0}.locale-link{font-size:11px;text-decoration:none}.workspace-layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100svh - 85px)}.sidebar{padding:30px 16px;border-right:1px solid #e0e6db;background:#fafbf8}.sidebar a{display:block;padding:13px 15px;margin:4px 0;border-radius:7px;text-decoration:none;font-size:14px;color:#607166}.sidebar a[aria-current]{background:#e4ede3;color:#204c36;font-weight:600}.workspace-content{padding:36px 40px;min-width:0;max-width:1600px;width:100%;outline:none}.workspace-content .welcome{padding:0;margin:35px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.page-heading .eyebrow{color:#6e8b74}.page-heading h1{font-size:30px;font-weight:550;letter-spacing:-.6px;margin:12px 0}.page-heading p{font-size:14px;line-height:1.6;color:#738078;max-width:700px}.panel{background:#fff;border:1px solid #dfe5dc;border-radius:10px;padding:24px;margin-bottom:20px;min-width:0}.panel h2{font-size:18px;font-weight:600;margin:0 0 12px}.panel h3{font-size:15px;margin-top:25px}.panel summary{cursor:pointer;font-size:14px;font-weight:550;padding:5px 0}.panel details:not(:first-child){margin-top:16px}.panel label{line-height:1.6}.panel label input:not([type=checkbox]),.panel label select{display:block;margin-top:7px;width:100%}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;align-items:end}.form-grid label{margin:12px 0 0;min-width:0}.form-grid .primary{margin:0}.compact-form{display:flex;flex-wrap:wrap;gap:16px;align-items:end}.compact-form label{flex:1;min-width:180px}.compact-form button{margin:0 0 9px;width:auto}.card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:20px}.card-list .panel{margin:0}.card-title{display:flex;justify-content:space-between;gap:20px;align-items:start}.card-title h2{margin-bottom:4px}.state{display:inline-block;border-radius:20px;background:#eef1eb;padding:5px 9px;font-size:11px;font-weight:550;white-space:nowrap}.state.active{color:#285d38;background:#e7f0e3}.state.inactive{color:#91483e;background:#fae9e4}.chips{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}.chips span{font-size:12px;border:1px solid #e1e8dc;border-radius:20px;padding:5px 9px}.checkboxes{display:flex;flex-wrap:wrap;gap:12px 20px;margin:16px 0}.checkboxes label,.check-label{display:flex;align-items:center;gap:7px;font-size:13px;margin:0}.checkboxes input[type=checkbox],.check-label input[type=checkbox]{width:17px;height:17px;min-height:17px;accent-color:#28523c}.inline-action{margin-top:22px}.danger{color:#994437;border-color:#e7c7c0}.count-badge{background:#e8eee3;border-radius:25px;padding:10px 16px}.empty{padding:30px 0;color:#7c877c}.matrix-scroll{overflow:auto;padding:0;max-width:100%}.matrix{border-collapse:collapse;width:100%;font-size:13px}.matrix th,.matrix td{border-bottom:1px solid #e8ece4;border-right:1px solid #edf0e9;text-align:left;vertical-align:top;padding:14px;min-width:180px}.matrix thead th{min-width:215px;background:#f3f6ef}.matrix th:first-child{position:sticky;left:0;background:#fff;z-index:1;min-width:230px}.matrix th small{display:block;margin-top:12px;font-weight:400;line-height:1.6;color:#798777}.matrix .resource-row th{background:#eaf0e4;color:#4a664a;padding:12px 18px}.permission-cell{display:block;text-decoration:none;color:#7e897d;min-height:42px}.permission-cell.allow{color:#326843}.permission-cell.deny{color:#a04c3b}.permission-cell small{display:block;font-size:11px;line-height:1.5;margin-top:5px;color:#7c8979}.rule-form{max-width:700px}.rule-form fieldset{border:1px solid #dfe6d8;border-radius:7px;margin:20px 0 0}.rule-form .primary{max-width:250px}.assignment-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #e6ebe2;font-size:13px;align-items:center}.decision{border-top:1px solid #e5eadd;padding:10px 0}.decision p{font-size:13px;color:#6c7b69}.diff-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.diff-columns>div{min-width:0}.diff-columns pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f8f2;padding:14px;font-size:12px;max-height:340px;overflow:auto}.timeline time,.timeline p{font-size:12px;color:#7b8579;overflow-wrap:anywhere}.navigation-status,.navigation-error{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#214b37;color:white;border-radius:8px;box-shadow:0 5px 30px #0002;z-index:10;max-width:calc(100vw - 30px)}.navigation-error{background:#fff0ea;border:1px solid #d8aaa0;color:#803f34;cursor:pointer}.form-error{margin-top:15px}.busy-indicator{opacity:.7}.timeline .panel{padding:20px}@media(max-width:950px){.workspace-layout{grid-template-columns:170px minmax(0,1fr)}.workspace-content{padding:28px 22px}.app-header{gap:14px;padding:18px 22px}.diff-columns{grid-template-columns:1fr}}@media(max-width:720px){.workspace-layout{display:block}.sidebar{display:flex;overflow-x:auto;gap:4px;padding:10px 14px;border-bottom:1px solid #dfe5d8}.sidebar a{white-space:nowrap;padding:10px;font-size:12px;margin:0}.workspace-content{padding:25px 18px}.app-header{flex-wrap:wrap;gap:12px}.signed-user{font-size:11px;max-width:120px;overflow-wrap:anywhere}.app-header .brand{font-size:23px}.page-heading h1{font-size:26px}.panel{padding:18px}.form-grid{grid-template-columns:1fr}.compact-form{display:block}.compact-form button{margin:15px 0 0}.card-title{gap:10px}.diff-columns{grid-template-columns:1fr}.assignment-row{flex-wrap:wrap}.locale-link{font-size:10px}}
.notice{padding:16px 20px;border:1px solid #d8e3cb;border-radius:8px;background:#eef4e8;color:#557047;font-size:14px;line-height:1.7}.section-title{margin-top:32px!important}.fit-button{max-width:280px}.panel textarea{display:block;width:100%;margin-top:7px}.dictionary-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.dictionary-tabs a{padding:10px 16px;text-decoration:none;border:1px solid #dfe6d7;border-radius:22px;background:white;font-size:13px}.dictionary-tabs a[aria-current]{background:#264f3a;color:white;border-color:#264f3a}.rate-card time{display:block;color:#7d8977;font-size:12px;margin-bottom:10px}.currency-card p{font-size:13px;color:#71806a}.currency-card form>.check-label{margin:20px 0}.workspace-name{max-width:220px;overflow-wrap:anywhere}

.card-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.card-tabs a{padding:10px 14px;border:1px solid var(--line,#dce3db);border-radius:8px;text-decoration:none}.card-tabs a[aria-current=page]{background:#e4ece2;color:#234f3f}.record-row,.pagination,.search-form{display:flex;justify-content:space-between;align-items:center;gap:18px}.record-row h2{margin:8px 0}.record-row time{font-size:13px;color:#687c6c}.search-form label{flex:1}.pagination{margin-top:24px}.full-width{grid-column:1/-1}.back-link,.inline-link{display:inline-block;margin:10px 0}.danger-zone{border-color:#d4b4ae}.danger{color:#9d3b30}textarea{max-width:100%}pre{overflow-wrap:anywhere;white-space:pre-wrap;min-width:0}@media(max-width:600px){.record-row,.search-form{align-items:stretch;flex-direction:column}.pagination{flex-wrap:wrap}.page-heading h1{overflow-wrap:anywhere}}

.record-table{width:100%;border-collapse:collapse;background:#fff}.record-table th,.record-table td{padding:14px;text-align:left;border-bottom:1px solid #dce3db;vertical-align:top}.table-scroll{overflow-x:auto;border:1px solid #dce3db;border-radius:12px}.stage-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.stage-form label{min-width:150px;flex:1}.stage-form button{white-space:nowrap}.kanban-columns{display:flex;gap:16px;overflow-x:auto;align-items:flex-start;padding-bottom:20px}.kanban-column{flex:0 0 300px;background:#edf1eb;padding:14px;border-radius:12px;border-top:4px solid var(--stage-color)}.kanban-column header{margin-bottom:16px}.kanban-column h2{font-size:18px}.kanban-card{padding:16px;background:white;border:1px solid #dce3db;border-radius:10px;margin:12px 0;overflow-wrap:anywhere}.kanban-card h3{font-size:18px}.drop-ready{outline:2px solid #246248}.filter-panel details{margin:16px 0}.filter-panel>.form-grid{margin-bottom:18px}.record-table input[type=checkbox],.panel input[type=checkbox]{width:auto}select[multiple]{min-height:100px}.workspace-content{min-width:0}@media(max-width:600px){.kanban-column{flex-basis:285px}.stage-form{flex-direction:column;align-items:stretch}.record-table td,.record-table th{padding:10px}}

.collection-filters{margin:20px 0}.collection-filters>summary{cursor:pointer;padding:14px 18px;background:#fff;border:1px solid #dce3db;border-radius:8px}.collection-filters .panel{margin-top:12px}.page-heading>.primary{width:auto;flex:0 0 auto;align-self:flex-start;margin-top:0;text-decoration:none}.collection-filters[open]>summary{margin-bottom:12px}

.conversion-table{width:100%;border-collapse:collapse;background:#fff}.conversion-table th,.conversion-table td{padding:12px;border-bottom:1px solid #dce3db;text-align:left;vertical-align:top;min-width:145px;max-width:260px;overflow-wrap:anywhere}.conversion-table input,.conversion-table select,.conversion-table textarea{min-width:160px;max-width:240px}.conversion-table td div{margin-bottom:6px}[data-conversion-setup] fieldset{border:1px solid #dce3db;border-radius:10px;padding:18px;min-width:0}[data-conversion-confirm]>.panel>.primary{max-width:400px}

[data-conversion-confirm] .inline-link{margin-right:18px}
/* Stage7: snapshots use the existing panel/form language. */
[data-position]{margin:1.25rem 0;padding:1.25rem;border:1px solid var(--line,#d7e0da);border-radius:12px;min-width:0}
[data-position] legend{font-weight:700;padding:0 .5rem}
.row-actions{display:flex;align-items:end;flex-wrap:wrap;gap:1rem;margin:1rem 0}.row-actions label{flex:1;min-width:180px}

.product-summary{min-width:720px}.product-summary th,.product-summary td{padding:14px;text-align:left;vertical-align:top}.product-summary td{line-height:1.6}.product-summary td:first-child{min-width:180px}
[data-product-rows] .checkbox,[data-product-refresh] .checkbox{display:flex;align-items:center;gap:10px}[data-product-rows] .checkbox input,[data-product-refresh] .checkbox input{min-height:auto;flex:none;margin:0}
.preview-total{font-size:20px;font-weight:700;padding:14px;background:#edf3ea;border-radius:8px}
.user-text{white-space:pre-wrap;overflow-wrap:anywhere}.record-table select[multiple]{min-height:7rem;min-width:10rem}input[type=file]{max-width:100%}
.activity-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-editor textarea{display:block;width:100%;margin-top:7px}@media(max-width:720px){.activity-editor{grid-template-columns:1fr}}

.notification-bell{display:inline-flex;align-items:center;gap:6px;text-decoration:none;padding:9px;border:1px solid #d4dbd2;border-radius:9px;min-height:44px}.notification-count{font-size:12px;min-width:18px;text-align:center;font-weight:600}.notification-item.is-unread{border-left:4px solid #28523c}.notification-item h2{overflow-wrap:anywhere}.notification-item form{margin-top:16px}
/* Work time uses the existing workspace forms and cards. */
.action-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.action-row form{margin:0}.table-scroll{max-width:100%;overflow-x:auto}.time-totals{display:flex;flex-wrap:wrap;gap:28px;margin-bottom:24px}.time-totals div{display:grid;gap:8px}.time-totals strong{font-size:24px}.schedule-day{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,1fr) minmax(130px,1fr);gap:18px;padding:16px 0;border-bottom:1px solid #dce3dd}.schedule-day label:first-child{display:flex;align-items:center;gap:10px}.schedule-day input[type=checkbox]{width:auto}.time-interval{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(220px,2fr) minmax(220px,2fr) auto;gap:14px;align-items:end;padding:18px 0;border-bottom:1px solid #dce3dd}.time-interval input{min-width:0;width:100%}form[data-time-correction]>label{display:grid;gap:10px;margin:20px 0}nav.view-switch{display:flex;flex-wrap:wrap;gap:18px;margin:20px 0 28px}
@media(max-width:1000px){.time-interval{grid-template-columns:1fr 1fr}}@media(max-width:600px){.time-interval,.schedule-day{grid-template-columns:1fr}[data-worktime-header]{white-space:normal}.time-totals{gap:18px}}

/* Reports retain explicit period/currency and independently scroll wide registries. */
.report-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.report-filters label{display:grid;align-content:start;gap:8px;min-width:0}.report-filters input,.report-filters select{width:100%;min-width:0}.report-filters small{line-height:1.5;color:#59685d}.report-filters .action-row{align-items:end;margin-top:0}[data-report-result] .record-table td{max-width:320px;overflow-wrap:anywhere}[data-report-result] .table-scroll{margin:20px 0 30px}
@media(max-width:1000px){.report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.report-filters{grid-template-columns:1fr}[data-report-meta]{overflow-wrap:anywhere}}
[data-report-result] .record-table{min-width:640px}[data-report-result] .record-table td:not(:first-child){white-space:nowrap}[data-report-result] [data-report-registry]{min-width:1050px}[data-report-result] [data-report-registry] td:first-child{white-space:nowrap}[data-report-result] [data-report-registry] td:nth-child(2),[data-report-result] [data-report-registry] td:nth-child(3),[data-report-result] [data-report-registry] td:last-child{white-space:normal;min-width:150px}
