:root { --olive:#9ca469; --olive-dark:#78834b; --olive-soft:#f2f4e9; --charcoal:#252d3a; --muted:#66778e; --line:#e5e9ee; --bg:#f7f9fb; }
* { box-sizing:border-box; }
body { margin:0; color:var(--charcoal); background:var(--bg); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.workspace-header { height:66px; padding:9px 24px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:5; }
.brand { display:flex; align-items:center; gap:12px; color:inherit; text-decoration:none; font-weight:800; }.brand img{width:40px;height:40px;object-fit:contain}.header-actions{display:flex;align-items:center;gap:13px}.language-picker{min-height:36px;padding:0 9px;border:1px solid #d9dfe6;border-radius:8px;background:#fff;display:flex;align-items:center;gap:6px}.language-picker select{border:0;background:transparent;outline:0}.user-email{font-size:13px;color:#65748a}.logout{padding:8px 11px;border:1px solid #dce2e8;border-radius:8px;text-decoration:none;font-size:13px}
.workspace-layout{min-height:calc(100vh - 66px);display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{padding:24px 15px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:66px;height:calc(100vh - 66px)}.sidebar-title{padding:0 9px 22px;display:flex;align-items:center;gap:10px}.sidebar-title span{width:34px;height:34px;border-radius:8px;background:var(--olive-soft);color:var(--olive-dark);display:grid;place-items:center;font-size:11px;font-weight:900}.sidebar nav{display:grid;gap:4px}.sidebar nav a{padding:11px 12px;border-radius:8px;color:#53637a;text-decoration:none;font-size:14px}.sidebar nav a:hover,.sidebar nav a.active{background:var(--olive-soft);color:#4d592e;font-weight:750}.back-to-selection{margin-top:auto;padding:11px 12px;color:#8793a4;text-decoration:none;font-size:13px}
.content{padding:clamp(28px,4vw,54px);max-width:1420px;width:100%}.welcome-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}.eyebrow{margin:0 0 7px;color:var(--olive-dark);font-size:11px;font-weight:850;letter-spacing:.13em}.welcome-row h1{margin:0;font-size:clamp(32px,4vw,44px);letter-spacing:-.045em}.welcome-row p:last-child{margin:8px 0 0;color:#8290a2}.access-badge{padding:8px 12px;border-radius:999px;background:#eaf3dd;color:#4f6428;font-size:12px;font-weight:800}.page-message{margin-bottom:20px;padding:13px 15px;border-radius:9px;background:#fff2de;color:#7a5315;border:1px solid #efddbd}.panel{padding:26px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 24px rgba(35,52,72,.04)}.pending-panel{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(360px,1.25fr);gap:38px}.pending-panel[hidden],#approved-content[hidden],.profile-panel[hidden]{display:none!important}.pending-panel h2,.profile-panel h2{margin:0;font-size:27px;letter-spacing:-.03em}.pending-panel>div>p:last-child{color:var(--muted);line-height:1.65}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{display:grid;gap:7px;color:#475970;font-size:13px;font-weight:700}.form-grid input,.form-grid select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #dbe2e9;border-radius:8px;background:#fff;color:var(--charcoal);font:inherit}.form-grid input:focus,.form-grid select:focus{outline:3px solid rgba(156,164,105,.17);border-color:var(--olive)}.checkbox-field{grid-column:1/-1;grid-template-columns:20px 1fr!important;align-items:start;font-weight:500!important;line-height:1.5}.checkbox-field input{min-height:0;margin-top:3px}.form-grid button{grid-column:1/-1;min-height:43px;border:0;border-radius:8px;background:var(--olive);color:#fff;font:inherit;font-weight:800;cursor:pointer}.form-grid button:hover{background:var(--olive-dark)}.form-message{grid-column:1/-1;min-height:18px;margin:0;color:#944735;font-size:13px}.wide{grid-column:1/-1}
.overview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.overview-card{min-height:176px;padding:21px;background:#fff;border:1px solid var(--line);border-radius:13px;display:flex;flex-direction:column}.overview-card .icon{width:36px;height:36px;border-radius:9px;background:var(--olive-soft);color:var(--olive-dark);display:grid;place-items:center;font-weight:900}.overview-card h3{margin:18px 0 7px;font-size:18px}.overview-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.overview-card a{margin-top:auto;padding-top:16px;color:var(--olive-dark);font-size:13px;font-weight:800;text-decoration:none}.profile-panel{margin-top:22px}.panel-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:22px}.panel-heading>strong{font-size:22px;color:var(--olive-dark)}
@media(max-width:1000px){.workspace-layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line)}.sidebar nav{display:flex;overflow-x:auto}.sidebar nav a{white-space:nowrap}.back-to-selection{display:none}.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.workspace-header{height:auto;align-items:flex-start}.brand span,.user-email{display:none}.header-actions{gap:7px}.workspace-layout{min-height:0}.sidebar{top:0}.content{padding:28px 18px}.pending-panel{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.checkbox-field,.wide,.form-message,.form-grid button{grid-column:1}.overview-cards{grid-template-columns:1fr}.welcome-row{display:block}.access-badge{display:inline-flex;margin-top:14px}}

.temp-worker-messages{margin-top:22px}.temp-worker-messages .panel-heading p:last-child{margin:7px 0 0;color:var(--muted)}.temp-worker-message-list{height:min(52vh,520px);min-height:260px;overflow:auto;padding:18px;background:#f8fafb;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:12px}.portal-message{max-width:min(78%,680px);padding:12px 14px;border:1px solid #dfe5ea;border-radius:13px;background:#fff;box-shadow:0 2px 10px rgba(35,52,72,.04)}.portal-message.own{align-self:flex-end;background:var(--olive-soft);border-color:#dce2c8}.portal-message header{display:flex;justify-content:space-between;gap:18px;margin-bottom:6px;font-size:12px}.portal-message time{color:var(--muted)}.portal-message p{margin:0;line-height:1.55;overflow-wrap:anywhere}.message-empty{margin:auto;color:var(--muted);text-align:center}.message-empty.error{color:#944735}.temp-worker-message-form{margin-top:16px}.temp-worker-message-form label{display:grid;gap:7px;color:#475970;font-size:13px;font-weight:700}.temp-worker-message-form textarea{width:100%;padding:12px;border:1px solid #dbe2e9;border-radius:9px;resize:vertical;font:inherit}.temp-worker-message-form textarea:focus{outline:3px solid rgba(156,164,105,.17);border-color:var(--olive)}.temp-worker-message-form>div{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:10px}.temp-worker-message-form button{min-height:42px;padding:0 18px;border:0;border-radius:8px;background:var(--olive);color:#fff;font:inherit;font-weight:800;cursor:pointer}.temp-worker-message-form button:disabled{opacity:.55;cursor:wait}
.message-attachments{display:grid;gap:7px;margin-top:10px}.message-attachments a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d5dcc4;border-radius:8px;background:rgba(255,255,255,.82);color:#334154;text-decoration:none}.message-attachments a:hover,.message-attachments a:focus-visible{border-color:var(--olive);outline:2px solid rgba(156,164,105,.18)}.message-attachments a span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-attachments small,.temp-worker-file-selection small{color:var(--muted)}.temp-worker-file-picker{margin-top:10px}.temp-worker-file-picker input{padding:10px;border:1px dashed #c9d0d8;border-radius:9px;background:#fafbfc;font:inherit;font-weight:400}.file-hint{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.temp-worker-file-selection{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;margin-top:7px!important;gap:7px!important}.temp-worker-file-selection:empty{display:none!important}.temp-worker-file-selection span{padding:6px 9px;border-radius:999px;background:#f0f2e8;color:#3f4a35;font-size:12px}.temp-worker-file-selection.error{color:#944735;font-size:13px}
.message-lifecycle-note{margin:0 0 12px;padding:10px 12px;border:1px solid #d8dec8;border-radius:9px;background:#f2f4eb;color:#586146;font-size:13px;line-height:1.45}
.profile-form textarea{width:100%;padding:11px;border:1px solid #dbe2e9;border-radius:8px;resize:vertical;font:inherit}.portal-subsection{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.portal-subsection h3{margin:0 0 13px}.portal-record-list{display:grid;gap:9px}.portal-record{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.portal-record>div{min-width:0;display:grid;gap:4px}.portal-record strong{font-size:14px}.portal-record small{color:var(--muted);overflow-wrap:anywhere}.portal-status{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#eef1f4;color:#53637a;font-size:11px;font-weight:800}.portal-status.approved,.portal-status.active{background:#eaf3dd;color:#4f6428}.portal-status.rejected,.portal-status.cancelled{background:#f8e8e5;color:#934533}.portal-status.submitted,.portal-status.planned{background:#fff2d9;color:#7b5d1d}#temp-worker-workspace-status:empty{display:none}
