:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none;color:#19283e;background:#f5f7fb;--accent:#2563eb;--accent-dark:#1d4ed8;--shadow-light:rgba(37,99,235,0.2);--accent-soft:#eff4ff;--accent-border:#c7d7fc;--focus:#2563eb;--bottom:env(safe-area-inset-bottom,0px);--border:#e2e8f0;--muted:#57677d;--radius:12px}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:var(--page-bg)}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border:1px solid transparent;border-radius:8px;padding:12px 16px;font-size:14px;font-weight:650;cursor:pointer;text-decoration:none;transition:background .15s,box-shadow .15s}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:active,.button:active{transform:translateY(1px)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:28px;line-height:1.2;letter-spacing:-.8px;margin:8px 0}h2{font-size:18px;line-height:1.35;letter-spacing:-.3px;margin:0 0 20px}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:750;text-transform:uppercase}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0;pointer-events:none}.primary:hover{filter:brightness(.94)}.danger{background:#be123c;color:#fff}.light{background:#fff;color:#475569;border-color:var(--border)}
label{display:block;font-size:13px;font-weight:600;color:#46556b;margin-bottom:20px}label>.icon{width:16px;height:16px;margin-right:6px;vertical-align:-3px;color:var(--muted)}input,select,textarea{display:block;width:100%;min-height:50px;margin-top:8px;padding:13px 14px;border:1px solid #c5cfdd;border-radius:8px;color:#19283e;font-size:16px;font-weight:400;line-height:1.4}input::placeholder,textarea::placeholder{color:#6b788b}textarea{resize:vertical}input:user-invalid,textarea:user-invalid,select:user-invalid{border-color:#be123c;background:#fffafb}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding:calc(40px + env(safe-area-inset-top,0px)) 24px 24px;color:white;position:relative;z-index:10}.portal-heading{display:flex;text-align:left;min-width:0;flex:1;overflow-wrap:anywhere;}.portal-heading>div{min-width:0;max-width:100%}.portal-symbol{place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:16px}.portal-symbol>.icon{width:24px;height:24px}header .eyebrow{color:#dbeafe;letter-spacing:1.2px}header h1{margin:6px 0;color:white;font-weight:800;letter-spacing:-0.5px}#user-name{font-size:13px;color:#dbeafe;font-weight:500}#logout{position:static;flex-shrink:0;width:48px;height:48px;font-size:0;padding:8px;background:transparent;color:white;} #logout:hover{background:rgba(255,255,255,0.3)}#logout>.icon{width:17px;height:17px}main{max-width:760px;margin:auto;padding:24px max(20px,env(safe-area-inset-right,0px)) calc(122px + var(--bottom))}.card{padding:22px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);margin-bottom:16px;box-shadow:0 2px 8px #17243a03;overflow-wrap:anywhere}.card label:last-child{margin-bottom:0}.form-heading{display:flex;align-items:center;gap:12px;margin-bottom:24px}.form-heading h2{margin:0;font-size:17px}.form-heading p{margin:4px 0 0;font-size:12px;color:var(--muted)}.step-number{display:grid;place-items:center;min-width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-weight:750;font-size:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 16px}.section-heading h2,.section-heading .form-heading{margin:0}.section-heading>p{margin:0;font-size:13px}h2[data-icon]{display:flex;align-items:center;gap:10px}h2[data-icon]>.icon{color:var(--accent);width:22px;height:22px}.actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.actions .primary{flex:1}.submit-actions>.primary{min-height:54px}
.workspace-summary{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--border);border-radius:16px;background:#fff;margin-bottom:24px;padding:18px 0}.overview-item{padding:0 16px;border-right:1px solid var(--border)}.overview-item:last-child{border:0}.overview-item>span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.overview-item .icon{width:14px;height:14px}.overview-item strong{display:block;font-size:22px;font-weight:750;letter-spacing:-.5px;margin-top:10px}.list-controls{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:10px;margin-bottom:20px}.list-controls label{margin:0}.list-controls input,.list-controls select{margin:0;min-height:48px;padding:12px}.request-card{position:relative}.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.card-top>div:first-child{min-width:0}.card-top h2{font-size:17px;margin:8px 0 0}.card-top .eyebrow{font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:1px}.badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.badge{display:inline-flex;align-items:center;gap:4px;font-weight:700;background:#edf1f6;white-space:nowrap}.badge>.icon{width:12px;height:12px}.request-card>.small{font-size:12px;line-height:1.8}.details{margin:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:13px}.details summary{padding:14px 0;min-height:48px;cursor:pointer;color:var(--accent);font-weight:600;font-size:13px}.details summary>.icon{width:16px;height:16px;margin-right:7px}.details p{line-height:1.9}.request-card>.secondary{margin-top:12px}.return-action{background:#fff1f2;color:#a51236}
.notice,#connection{border:1px solid #e6c781;background:#fff8e8;color:#7a4b0b;border-radius:8px;padding:15px;font-size:13px;line-height:1.65;white-space:pre-wrap;margin-bottom:18px}.empty{text-align:center;padding:42px 24px;border:1px solid var(--border);border-radius:var(--radius);background:#fff}.empty-icon{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:20px;background:var(--accent-soft);color:var(--accent);margin-bottom:22px}.empty-icon>.icon{width:28px;height:28px}.empty h2{font-size:18px;margin-bottom:10px}.empty p{font-size:13px;margin:0}.file-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;padding:16px;background:#fff;border:1px solid var(--border);border-radius:16px}.file-tools p{width:100%;margin:4px 0 0}.file-tools .button,.file-tools button{font-size:12px}#settings-view>.section-heading{margin-top:0;flex-wrap:wrap}#company-list .card>p{font-size:13px;color:var(--muted);line-height:1.8}#company-list button{margin:6px 8px 0 0}
nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;justify-content:center;gap:6px;border-top:1px solid var(--border);padding:9px max(12px,env(safe-area-inset-right,0px)) calc(9px + var(--bottom));box-shadow:0 -4px 20px #17243a04}nav button{flex:1;min-width:0;max-width:180px;min-height:64px;padding:8px 5px;flex-direction:column;gap:6px;background:transparent;color:#596a80;font-size:11px;font-weight:600;border-radius:14px}nav button>.icon{width:22px;height:22px}nav button[aria-current=page]{background:var(--accent-soft);color:var(--accent)}nav button[aria-current=page]>.icon{stroke-width:2.2}body.keyboard-open nav{display:none}dialog{border:1px solid var(--border);border-radius:22px;padding:26px;width:calc(100% - 32px);max-width:580px;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #17243a33}dialog::backdrop{background:#13223f80;backdrop-filter:blur(3px)}dialog h2{font-size:21px;margin-bottom:24px}dialog form>p{font-size:13px;color:var(--muted)}dialog .actions{padding-top:16px;border-top:1px solid var(--border);margin-top:24px}#message{position:fixed;left:16px;right:16px;bottom:calc(98px + var(--bottom));z-index:50;max-width:700px;margin:auto;display:flex;align-items:center;gap:12px;padding:8px 8px 8px 18px;background:#19283e;color:#fff;border-radius:14px;box-shadow:0 6px 30px #17243a26;font-size:13px;line-height:1.6}#message-text{flex:1;min-width:0;overflow-wrap:anywhere}#dismiss-message{background:transparent;color:#fff;width:48px;padding:12px;flex-shrink:0}#message[data-kind=error]{background:#8f1735}body.keyboard-open #message{bottom:16px}
@media(min-width:600px){ #new-view, #settings-view, #list-view, #workspace-summary, #file-tools, #connection { max-width: 800px; margin-left: auto; margin-right: auto; }}
    #request-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
@media(max-width:420px){.portal-symbol{width:38px;height:42px;border-radius:8px}.portal-heading{gap:10px}header h1{font-size:18px}#logout{width:48px;padding:12px;font-size:0;gap:0}#logout>.icon{width:19px;height:19px}main{padding-left:16px;padding-right:16px}.card{padding:20px}.card-top{flex-direction:column}.badges{justify-content:flex-start}.overview-item{padding:0 12px}.overview-item>span{font-size:10px;gap:4px}.overview-item strong{font-size:20px}.list-controls{grid-template-columns:minmax(0,1fr) 120px}.list-controls input,.list-controls select{font-size:12px}.actions{gap:8px}.actions>button,.actions>.button{font-size:13px;padding-left:12px;padding-right:12px}}
@media(max-width:480px){.row{grid-template-columns:1fr;gap:0}.card{padding:16px}.portal-heading{gap:8px}header .eyebrow{font-size:8px}header h1{font-size:17px}.overview-item{padding:0 9px}.overview-item .icon{display:none}.list-controls{grid-template-columns:1fr}dialog{padding:20px}.section-heading{gap:8px}}
#workers{display:grid;gap:12px;margin-bottom:16px}
.card.worker{padding:0;margin:0;border-radius:16px;box-shadow:0 2px 8px #17243a05;overflow:hidden;border-color:#dfe6ef}
.worker-heading{display:flex;align-items:center;gap:4px;padding:8px 10px 8px 14px;background:#fff}
.worker-heading h2{display:block;margin:0;flex:1;min-width:0}
.worker-toggle{width:100%;padding:6px 0;gap:12px;justify-content:flex-start;text-align:left;background:transparent;color:#17243a;min-height:56px;border-radius:8px}
.worker-number{display:grid;place-items:center;width:36px;height:40px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:750;flex-shrink:0;font-variant-numeric:tabular-nums}
.worker-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.worker-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;line-height:1.35}
.worker-meta{display:block;font-size:11px;font-weight:450;line-height:1.5;overflow-wrap:anywhere}
.worker-chevron{width:20px;height:20px;flex-shrink:0;transition:transform .15s}
.worker-toggle[aria-expanded="true"] .worker-chevron{transform:rotate(180deg);color:var(--accent)}
.worker .remove-worker{background:transparent;padding:12px;border-radius:10px;flex-shrink:0}
.worker .remove-worker>.icon{width:18px;height:18px}
.worker .remove-worker:hover,.worker .remove-worker:focus-visible{background:#fff1f2;color:#be123c}
.worker-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:20px;border-top:1px solid #edf1f6;background:linear-gradient(#fafcff,#fff 90px)}
.worker-fields label{margin-bottom:0;font-size:12px;letter-spacing:.1px;color:#475569}
.worker-fields input,.worker-fields select{border-radius:10px}
.worker:has(.worker-toggle[aria-expanded="true"]){border-color:var(--accent-border);box-shadow:0 3px 12px #1d4ed808}
#add-worker{font-size:13px;border:1px solid var(--accent-border);background:#fff;padding:10px 13px}
#worker-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eef2f7;color:#475569;border-radius:8px;padding:4px 12px 4px 16px;margin-bottom:16px;font-size:13px}
#undo-worker{background:transparent;color:var(--accent);font-size:13px}
@media(max-width:360px){.worker-heading{padding-left:10px;padding-right:6px}.worker-toggle{gap:8px}.worker-number{width:30px;height:36px}.worker-title{font-size:14px}}
@media(prefers-reduced-motion:reduce){.worker-chevron{transition:none}}

.worker .remove-worker{width:48px;height:48px;min-height:48px;color:#64748b}.worker-meta{color:#57677d}.worker-chevron{color:#64748b}.worker-fields input,.worker-fields select{border-color:#c5cfdd}.worker-toggle:focus-visible{outline-offset:-3px}

.form-hint{font-size:12px;color:var(--muted);margin:0 0 18px}.field-error{display:block;color:#a51236;font-size:12px;font-weight:500;line-height:1.5;margin-top:7px}input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:#a51236}

dialog{color:#19283e}dialog h2{padding-right:40px}.dialog-close{position:absolute;top:12px;right:12px;width:48px;padding:12px;background:transparent;color:var(--muted)}.dialog-close:hover{background:var(--accent-soft)}
@media(min-width:900px){
    #app-view {
        max-width:1600px;
        margin:0 auto;
        display:grid;
        grid-template-columns:220px minmax(0,1fr);
        grid-template-rows:auto 1fr;
        min-height:100dvh;
        align-items:start;
    }
    header {grid-column:1 / -1;grid-row:1;padding:28px 32px}
    nav {
        grid-column:1;grid-row:2;flex-direction:column;justify-content:flex-start;
        position:sticky;top:24px;bottom:auto;left:auto;right:auto;
        border:0;padding:24px 16px;box-shadow:none;
        align-self:start;backdrop-filter:none;
    }
    nav button {
        flex:none;width:100%;max-width:none;min-height:52px;padding:12px 14px;
        flex-direction:row;justify-content:flex-start;gap:12px;font-size:14px;
        border-radius:10px;margin-bottom:4px;
    }
    main {
        width:100%;min-width:0;max-width:none;margin:0;grid-column:2;grid-row:2;
    }
    #new-view,#settings-view {width:100%;max-width:960px}
    #list-view,#workspace-summary,#file-tools,#connection {max-width:1120px}
    #message {left:236px;bottom:24px}
}

.card {
    transition: border-color .2s, box-shadow .2s;
}
nav {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96);
}
.badge {
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 11px;
}
.badge.Medium, .badge.pending {
    background: #fef3c7;
    color: #92400e;
}
.badge.High, .badge.returned {
    background: #fee2e2;
    color: #991b1b;
}
.badge.Normal {
    background: #f3f4f6;
    color: #374151;
}
input, select, textarea {
    background: #f9fafb;
    border-color: #b8c4d4;
    transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--shadow-light, rgba(37, 99, 235, 0.2));
    outline: none;
}
.primary {
    color: white !important;
    border: none;
}
.secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.secondary:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}
#billing-form fieldset{min-width:0;border-radius:14px}
#billing-form legend{font-weight:700}
#billing-error{overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}.card:hover,.primary:hover{transform:none}}
#billing-form legend{color:var(--accent-dark)}
#billing-form .row{grid-template-columns:repeat(2,minmax(0,1fr))}
#billing-form .row>label,#billing-form input{min-width:0}
@media(max-width:520px){#billing-form .row{grid-template-columns:1fr}}
#billing-review{padding:18px;background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:14px;margin:20px 0}
#billing-review dl{display:grid;gap:12px;margin:0;font-size:13px}
#billing-review dt{color:#475569}#billing-review dd{margin:0;text-align:right;overflow-wrap:anywhere;font-weight:600}
#review-total{font-size:18px;color:var(--accent-dark)}.review-total-label{align-self:center;font-weight:700}
#billing-missing{padding:16px;border:1px solid #dbe3ee;border-radius:12px;margin:18px 0}
#billing-missing h3{margin:0;font-size:16px}
#billing-missing-fields label:last-child{margin-bottom:0}
.billing-options{border-top:1px solid #e2e8f0;padding:4px 0}
.billing-options>summary{padding:14px 0;min-height:48px;font-size:14px;font-weight:600;cursor:pointer}
.billing-options-body{padding:8px 0}
#billing-form fieldset{padding:0;border:0;margin:18px 0}
#billing-form legend{margin-bottom:18px;padding:0;font-size:16px}

.invoice-send-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.invoice-send-actions button{min-width:0}
.whatsapp-action{color:var(--accent-dark)!important;background:#ecfdf5!important;border-color:#bbf7d0!important}
#email-error{overflow-wrap:anywhere}
.details-grid { display: grid; gap: 12px; margin-bottom: 20px; background: #f8fafc; padding: 16px; border-radius: 12px; border: 1px solid #e2e8f0; }
.detail-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.detail-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { font-size: 13px; color: #0f172a; font-weight: 600; overflow-wrap: anywhere; }
.worker-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-bottom: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.worker-header { display: flex; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.worker-name { font-weight: 700; color: #1e293b; font-size: 13px; text-overflow: ellipsis; overflow: hidden; }
.worker-tax { font-size: 10px; background: #f1f5f9; padding: 3px 8px; border-radius: 6px; color: #475569; font-weight: 750; letter-spacing: 0.5px; }
.worker-stats { display: flex; gap: 16px; font-size: 12px; color: #64748b; flex-wrap: wrap; }
.worker-stats span { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.worker-stats .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.workers-heading { font-size: 11px; color: #64748b; margin: 0 0 10px 4px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
html {scroll-padding-top:24px}
main,section,form,.row>*,.actions>*,.workspace-summary>* {min-width:0}
input,select,textarea {min-width:0;max-width:100%}
button,.button {overflow-wrap:anywhere;line-height:1.4}
main {padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
header {padding-top:calc(24px + env(safe-area-inset-top,0px));padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}
.portal-heading {flex-direction:row;align-items:center;gap:14px}
.portal-symbol {display:grid;background:#ffffff20;color:#fff;border:1px solid #ffffff30}
header h1 {font-size:clamp(20px,2.2vw,28px)}
header .eyebrow {font-size:10px}
#logout {border:1px solid #ffffff40;border-radius:10px}
#logout:focus-visible {outline-color:#fff}
#request-form {display:grid;gap:20px}
#request-form>.form-hint,#request-form>.card {margin:0}
.form-section {border-radius:16px}
#request-list {align-items:start}
#request-list>.card {margin-bottom:0}
#request-list>.empty {grid-column:1 / -1}
.card-top {flex-wrap:wrap}
.card-top>div:first-child {flex:1 1 140px}
.card-top .badges {flex:0 1 auto;max-width:100%}
.overview-item>span {flex-wrap:wrap;line-height:1.5}
.overview-item strong {overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.list-controls input,.list-controls select {font-size:16px}
#billing-review dl {grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
.details-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
.detail-label {white-space:normal}
.worker-tax {flex-shrink:0}
.actions>.button {max-width:100%;min-width:0}
.dialog-close {z-index:1}
dialog {max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - var(--bottom))}
.card.worker:hover {box-shadow:0 2px 8px #17243a05}
#add-worker {min-height:48px}
nav button:hover {background:var(--accent-soft);color:var(--accent-dark)}
@media(min-width:600px){
    #logout {width:auto;font-size:13px;padding:10px 14px}
    .worker-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
    .worker-fields>.row,.worker-fields>label:last-child {grid-column:1 / -1}
}
@media(min-width:900px){
    main {padding:32px clamp(24px,3vw,48px) 64px}
    nav {background:transparent}
    .form-section {padding:24px}
}
@media(min-width:1200px){
    #request-form {grid-template-columns:minmax(260px,.8fr) minmax(0,1.4fr);align-items:start}
    #request-form>.form-hint {grid-column:1 / -1}
    #request-form>.submit-actions {grid-column:2}
}
@media(max-width:599px){
    header {gap:12px;padding-bottom:20px}
    .portal-symbol {width:40px;height:44px;border-radius:12px}
    .portal-heading {gap:10px}
    #request-form {gap:16px}
    #request-list {gap:16px}
    .card-top {flex-direction:column}
    .card-top>div:first-child {flex:auto}
    .badges {justify-content:flex-start}
    .actions>button,.actions>.button {flex:1 1 100%}
    .invoice-send-actions {grid-template-columns:repeat(2,minmax(0,1fr))}
    .section-heading {flex-wrap:wrap}
    dialog .actions {gap:8px}
}
@media(max-width:360px){
    main {padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
    header {padding-left:16px;padding-right:16px}
    .overview-item {padding:0 8px}
    .worker-fields {padding:14px}
}
.details-grid.client-details {display:block}
.client-details-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:12px;margin-bottom:16px}
.worker-header {align-items:flex-start}
.worker-name {min-width:0;white-space:normal;overflow-wrap:anywhere}
.worker-stats span {min-width:0;overflow-wrap:anywhere}
.workers-list>.worker-card:last-child {margin-bottom:0!important}
.worker-fields>.row {gap:20px 16px}
body { overflow-x: hidden; } img, video, canvas, audio, iframe, embed, object { max-width: 100%; height: auto; }
input::-ms-reveal, input::-ms-clear { display: none; }
 {display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:start}
.collaboration-tabs button[aria-pressed=true] {background:var(--accent-soft);color:var(--accent);font-weight:700}
 {min-width:0}
.collaboration-search {flex:1;min-width:140px;margin:0}
 {gap:12px;margin-top:0}
.collaboration-card h3 {font-size:17px;line-height:1.5;overflow-wrap:anywhere;margin:0}
.collaboration-card .contact-address {white-space:pre-line;overflow-wrap:anywhere}
 {display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1.3fr);gap:8px 16px;font-size:13px}
 {color:var(--muted)}
 {margin:0;overflow-wrap:anywhere}
.collaboration-card .actions {margin-top:20px}
#company-list .card {margin-bottom:16px}
#settings-view {max-width:1100px}
#billing-dialog {max-width:760px}
#billing-dialog h3 {font-size:15px;margin:20px 0 14px}
.billing-parties {padding:0 0 12px;border-bottom:1px solid var(--border)}
.billing-parties>h3 {margin-top:0!important}
#billing-company {font-weight:600}
#review-reverse,#review-reversed {color:var(--muted)}
.worker-tax {white-space:normal;max-width:60%;text-align:right;overflow-wrap:anywhere}
#company-dialog fieldset,#billing-details fieldset {margin-bottom:18px}
@media(max-width:699px){
  {grid-template-columns:minmax(0,1fr);gap:16px}
  {flex-wrap:wrap}
  {flex:1}
 nav button {font-size:10px;overflow-wrap:anywhere}
}
.skip-link {position:fixed;top:8px;left:8px;z-index:100;padding:12px;background:#fff;color:var(--accent);transform:translateY(-160%)}
.skip-link:focus {transform:none}
:root {--page-bg:#f5f7fb}
header {background:#1d4ed8;box-shadow:none}
.primary {background:var(--accent-dark)!important;box-shadow:none!important}
.primary:hover {box-shadow:none!important}
.card:hover {box-shadow:0 2px 8px #17243a03}
.workspace-summary {gap:0}
.overview-item {display:flex;align-items:flex-start;gap:10px}
.overview-icon {color:var(--muted);padding-top:3px}
.overview-meta {min-width:0}
.overview-meta>span {display:block;font-size:12px;color:var(--muted);line-height:1.5}
.overview-meta strong {margin:6px 0 0}
.overview-meta .overview-sub {font-size:11px;margin-top:4px}
.card-id-chip {font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.card-invoice-badge {display:flex;align-items:center;gap:6px;margin:0 0 14px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.card-invoice-badge .icon {width:16px;height:16px}
.card-kpi-bar {display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:12px;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:16px 0}
.kpi-pill {min-width:0}
.kpi-tag {display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
.kpi-val {font-size:16px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.return-reason-box {border-left:3px solid #a51236;background:#fff7f7;padding:12px 14px;margin:16px 0;font-size:13px}
.return-reason-tag {font-weight:600;color:#8f1735}
.return-reason-tag .icon {width:15px;height:15px}
.return-reason-text {margin:8px 0 0;white-space:pre-wrap}
.request-card>.details {border-top:0;margin-top:0}
.badge.pending {background:#f1f5f9;color:#475569}
.badge.approved {background:#edf7f0;color:#27613b}
.badge.High,.badge.returned {background:#fff0f0;color:#991b1b}
#presets-view {max-width:1120px;margin:auto}
#presets-view>.section-heading {flex-wrap:wrap}
.section-heading>div {min-width:0;flex:1 1 240px}
.preset-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;align-items:start}
.preset-card {margin:0}
.preset-card h3,.allocation-card h3 {margin:0 0 8px;font-size:17px}
.agent-profile {display:flex;align-items:flex-start;gap:12px;min-width:0}
.agent-profile>div {min-width:0}
.agent-avatar {display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:1px solid var(--border);border-radius:8px;background:#f8fafc;color:var(--muted)}
 {display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);max-width:100%;line-height:1.5}
 {width:15px;height:15px}
 {display:flex;flex-wrap:wrap;gap:6px 14px;margin:14px 0}
 {font-size:12px;color:var(--muted);overflow-wrap:anywhere}
 {padding:14px 0;margin-bottom:16px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
 {display:flex;flex-direction:column;gap:6px;font-size:13px}
.preset-card .actions,.allocation-card .actions {justify-content:flex-start}
.preset-card .actions>*,.allocation-card .actions>* {font-size:12px}
.username-pill {font-size:12px;font-weight:400;color:var(--muted)}
.allocation-pipeline {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin:20px 0;padding:16px;background:#f8fafc;border:1px solid var(--border);border-radius:10px}
.pipeline-step {min-width:0}
.pipeline-label {display:block;font-size:11px;color:var(--muted);margin-bottom:7px}
.pipeline-val {font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.pipeline-arrow {color:var(--muted)}
.pipeline-arrow .icon {width:16px;height:16px}
dialog {scrollbar-gutter:stable}
.billing-options>summary:focus-visible {outline:3px solid var(--focus);outline-offset:2px}
.billing-options summary {line-height:1.5}
 {margin-bottom:0}
body[data-role=agent] .workers-header-row {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:24px 0 12px}
body[data-role=agent] .workers-header-row>div {min-width:0;flex:1 1 160px}
body[data-role=agent] .workers-title {font-size:14px;font-weight:600}
body[data-role=agent] .workers-header-row p {font-size:12px;margin:4px 0 0}
body[data-role=agent] .workers-count-badge {font-size:11px;color:var(--muted);padding:5px 9px;border:1px solid var(--border);border-radius:8px;white-space:nowrap}
body[data-role=agent] #add-worker {width:100%;margin-bottom:8px;min-height:48px}
body[data-role=agent] .request-live-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px 20px;background:#fff;border:1px solid var(--border);border-radius:12px}
body[data-role=agent] .summary-pill {min-width:0}
body[data-role=agent] .summary-pill-label {display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
body[data-role=agent] .summary-pill-value {display:block;font-size:16px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body[data-role=agent] .summary-pill-highlight .summary-pill-value {color:var(--accent-dark)}
body[data-role=agent] #request-form>.request-live-summary {margin:0}
@media(min-width:1200px) {
 body[data-role=agent] #agent-details {grid-column:1;grid-row:2}
 body[data-role=agent] #request-details {grid-column:2;grid-row:2}
 body[data-role=agent] #request-live-summary {grid-column:2}
}
@media(max-width:599px) {
 body[data-role=agent] .request-live-summary {grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
 body[data-role=agent] .summary-pill {display:flex;align-items:center;justify-content:space-between;gap:12px}
 body[data-role=agent] .summary-pill-label {margin:0}
 body[data-role=agent] .summary-pill-value {font-size:14px}
}
@media(min-width:900px) {#navigation {max-height:calc(100dvh - 48px);overflow-y:auto}}
@media(max-width:699px) {
  .allocation-pipeline {grid-template-columns:minmax(0,1fr);gap:12px}
  .allocation-pipeline .pipeline-arrow {display:none}
  .pipeline-step+.pipeline-step {padding-top:12px;border-top:1px solid var(--border)}
}
@media(max-width:599px) {
  .overview-icon,.overview-sub {display:none!important}
  .overview-meta>span {font-size:10px}
  .overview-item {padding:0 10px}
  .overview-meta strong {font-size:22px}
  .preset-grid {gap:16px}
  .preset-card .card-top {align-items:flex-start}
   {flex-basis:auto!important}
   {padding-top:4px}
  .kpi-val {font-size:15px}
  .kpi-tag {font-size:10px}
  nav {gap:2px;padding-left:6px;padding-right:6px}
  nav button {font-size:10px;border-radius:8px}
  #billing-review dl {grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px}
}
input::placeholder, textarea::placeholder {color:var(--muted);opacity:1;font-size:14px;font-weight:400;letter-spacing:normal}

.portal-symbol{border:0;background:transparent;border-radius:12px;overflow:hidden}
.portal-symbol img{display:block;width:100%;height:100%;object-fit:contain}
.setup-heading{align-items:center;margin-top:8px}
.setup-heading h2{font-size:21px;letter-spacing:-.4px}
.setup-heading p{font-size:14px;line-height:1.7;max-width:520px;margin:8px 0 0}
.setup-heading>.primary{flex:none;min-height:46px}
.contact-toolbar{display:flex;align-items:center;gap:16px;margin:24px 0 12px;flex-wrap:wrap}
.collaboration-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--border);border-radius:12px;background:white}
.collaboration-tabs button{background:transparent;color:var(--muted);padding:10px 24px;min-height:44px;justify-content:center}
.collaboration-search{min-width:180px}
.contact-toolbar input{margin:0;min-height:52px}
#contact-kind-hint{margin-bottom:20px;line-height:1.7}
.setup-empty{border:1px dashed #cbd5e1;border-radius:16px;padding:36px 24px;background:white;text-align:center}
.setup-empty h3{font-size:19px;margin:16px 0 8px}
.setup-empty p{max-width:400px;margin:8px auto;line-height:1.7}
.setup-checklist{display:inline-block;text-align:left;color:var(--muted);font-size:14px;padding-left:24px;line-height:2.1}
.setup-options{border-top:1px solid var(--border);margin-top:20px}
.setup-options>summary{padding:17px 0;cursor:pointer;font-size:14px;font-weight:600;line-height:1.7}
.setup-options>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
.optional-label{display:inline-block;font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}
.setup-options-body{padding:0 0 6px}
.setup-options-body>.section-heading{margin-top:0}
.setup-options-body h3{font-size:16px;margin:0}
#agent-links{margin-top:28px}
#agent-links .empty{padding:24px 12px}
#agent-links .empty h2{font-size:16px}
.preset-card>.actions,.collaboration-card>.actions{justify-content:flex-start;margin-top:18px}
.preset-card>.actions button,.collaboration-card>.actions button{font-size:14px}
.preset-card .contact-address{white-space:pre-line;font-size:14px;line-height:1.7}
.setup-progress{display:flex;gap:8px;list-style:none;padding:0;margin:24px 0}
.setup-progress li{flex:1;padding:10px 6px;border-bottom:3px solid var(--border);font-size:12px;color:var(--muted);text-align:center}
.setup-progress li[aria-current]{color:var(--accent-dark);border-color:var(--accent);font-weight:700}
[data-company-step]>h3{font-size:17px;margin:0 0 8px}
[data-company-step]>p{line-height:1.7;margin-bottom:20px}
.wizard-actions{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
#contact-form>.actions{margin-top:20px}
@media(max-width:599px){
 .setup-heading{align-items:stretch;gap:16px}
 .setup-heading>.primary{width:100%}
 .contact-toolbar{gap:12px}
 .collaboration-tabs{width:100%}
 .collaboration-tabs button{flex:1}
 .collaboration-search{width:100%}
 .setup-empty{padding:28px 20px}
 .wizard-actions>.primary{flex-basis:100%;order:-1}
 .wizard-actions>.secondary{flex:1}
}
