:root { color-scheme: light; --ink:#17211d; --muted:#66736d; --paper:#f4f2ec; --panel:#fffdf8; --line:#deddd5; --green:#174f3b; --lime:#dbe7b5; --blue:#dbe8ed; --shadow:0 18px 50px rgba(23,33,29,.09); font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); min-height:100vh; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; border:1px solid var(--line); border-radius:10px; background:white; padding:.7rem 1rem; color:var(--ink); }
.primary { background:var(--green); color:white; border-color:var(--green); box-shadow:0 6px 16px rgba(23,79,59,.18); }
.button-link { display:inline-block; text-decoration:none; border:1px solid var(--green); border-radius:10px; padding:.7rem 1rem; white-space:nowrap; }
.rail { position:fixed; inset:0 auto 0 0; width:230px; background:#13231c; color:white; padding:28px 20px; display:flex; flex-direction:column; z-index:2; }
.brand { color:white; text-decoration:none; font-size:1.1rem; font-weight:750; display:flex; align-items:center; gap:10px; }
.brand span { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:var(--lime); color:#173525; }
.rail nav { margin-top:48px; display:grid; gap:8px; }
.rail nav a { color:#b8c6bf; padding:11px 12px; border-radius:9px; text-decoration:none; }
.rail nav a.active { background:#294238; color:white; }
.identity { margin-top:auto; display:grid; gap:4px; padding:12px; border-top:1px solid #30453c; }
.identity span { color:#9aaba3; font-size:.78rem; }
.identity button { margin-top:8px; background:transparent; color:#b8c6bf; border-color:#40584d; padding:.45rem; }
main { margin-left:230px; padding:40px clamp(24px,5vw,72px) 70px; }
.topbar,.workspace-header { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; }
h1 { font-family:Georgia,serif; font-size:clamp(2.5rem,5vw,4.6rem); line-height:.95; letter-spacing:-.05em; margin:6px 0 12px; font-weight:500; }
h2 { margin:0 0 5px; font-size:1.15rem; }
p { color:var(--muted); margin:.25rem 0; }
.eyebrow { color:var(--green); text-transform:uppercase; letter-spacing:.16em; font-size:.7rem; font-weight:800; }
.auth-panel { margin-top:34px; padding:18px 20px; background:var(--blue); border:1px solid #cadbe1; border-radius:14px; display:flex; justify-content:space-between; align-items:end; gap:20px; }
.auth-panel.hidden { display:none; }
.auth-panel form { display:flex; align-items:end; gap:8px; }
.developer-auth { color:var(--muted); font-size:.75rem; }
.developer-auth summary { cursor:pointer; }
.developer-auth form { margin-top:8px; }
label { display:grid; gap:6px; color:#44514b; font-size:.78rem; font-weight:700; }
input,select,textarea { width:100%; border:1px solid var(--line); border-radius:9px; background:white; padding:.72rem .8rem; color:var(--ink); }
.auth-panel label { flex:1; min-width:220px; }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:32px 0 18px; }
.metrics article { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:17px 20px; display:flex; justify-content:space-between; align-items:center; }
.metrics span { color:var(--muted); font-size:.78rem; }
.metrics strong { font-family:Georgia,serif; font-size:1.8rem; font-weight:500; }
.workspace { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:24px; box-shadow:var(--shadow); }
.workspace-header { align-items:center; border-bottom:1px solid var(--line); padding-bottom:20px; }
.filters { display:flex; gap:10px; }
.request-list { display:grid; }
.request-row { display:grid; grid-template-columns:70px minmax(180px,1fr) 120px 120px; align-items:center; gap:16px; padding:17px 4px; border-bottom:1px solid #ebe9e1; cursor:pointer; border-radius:8px; }
.request-row:hover { background:#f8f6f0; }
.request-row:last-child { border-bottom:0; }
.request-row .number { color:var(--muted); font-variant-numeric:tabular-nums; }
.request-row h3 { margin:0 0 4px; font-size:.95rem; }
.request-row p { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
.badge { justify-self:start; border-radius:999px; padding:5px 9px; font-size:.7rem; font-weight:750; background:#edf0ed; }
.priority { text-transform:capitalize; font-size:.76rem; color:var(--muted); }
.empty-state { text-align:center; padding:64px 20px; color:var(--muted); }
dialog { width:min(680px,calc(100% - 28px)); border:0; padding:0; border-radius:18px; box-shadow:0 30px 90px rgba(15,30,23,.3); }
dialog::backdrop { background:rgba(14,27,21,.5); backdrop-filter:blur(3px); }
dialog form { padding:25px; display:grid; gap:17px; }
dialog header,dialog footer { display:flex; justify-content:space-between; align-items:center; gap:12px; }
dialog h2 { font-family:Georgia,serif; font-size:1.8rem; font-weight:500; }
.icon { border:0; font-size:1.5rem; padding:4px 9px; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.form-message { color:#9b2c2c; min-height:1.2em; }
dialog footer { justify-content:flex-end; }
.detail-dialog { width:min(820px,calc(100% - 28px)); max-height:calc(100vh - 32px); }
.detail-shell { padding:26px; display:grid; gap:22px; }
.detail-shell > header { display:flex; justify-content:space-between; align-items:start; }
.detail-shell h3 { font-size:.86rem; text-transform:uppercase; letter-spacing:.08em; margin:0 0 12px; }
.detail-description { color:var(--ink); font-size:1rem; line-height:1.6; white-space:pre-wrap; }
.detail-meta { display:flex; flex-wrap:wrap; gap:8px; }
.detail-meta span { background:#f0eee7; padding:6px 9px; border-radius:999px; color:var(--muted); font-size:.72rem; }
.staff-controls { border:1px solid var(--line); background:#f8f7f2; border-radius:12px; padding:16px; }
.compact { margin-top:14px; padding:.55rem .8rem; }
.note-list { display:grid; gap:10px; margin-bottom:14px; }
.note { border-left:3px solid var(--green); background:#f7f6f1; border-radius:0 9px 9px 0; padding:12px 14px; }
.note.internal { border-left-color:#c18b2f; background:#fff7e5; }
.note p { color:var(--ink); white-space:pre-wrap; }
.note small { color:var(--muted); }
.note-form { display:grid; grid-template-columns:1fr 160px auto; align-items:end; gap:10px; }
.attachment-list { display:grid; gap:7px; margin-bottom:10px; }
.attachment-list a { color:var(--green); font-weight:700; font-size:.82rem; }
.attachment-form { display:flex; align-items:end; gap:10px; }
body.customer .staff-controls { display:none; }
body.customer .staff-only-field { display:none; }
body[data-product="helpdesk"] .work-order-field { display:none; }
@media (max-width:800px) { .rail { position:static; width:auto; height:auto; flex-direction:row; align-items:center; padding:14px 18px; } .rail nav { margin:0 0 0 auto; display:flex; } .identity { display:none; } main { margin:0; padding:28px 18px 50px; } .topbar { align-items:center; } h1 { font-size:2.7rem; } .auth-panel,.auth-panel form { display:grid; min-width:0; } .metrics { grid-template-columns:1fr; } .workspace-header,.filters { align-items:stretch; display:grid; } .request-row { grid-template-columns:55px 1fr; } .request-row .badge,.request-row .priority { grid-column:2; } .note-form { grid-template-columns:1fr; } .attachment-form { display:grid; } .form-grid { grid-template-columns:1fr; } }
