:root{color-scheme:light;--bg:#f5f6f8;--surface:#ffffff;--ink:#252a32;--muted:#697586;--line:#dde2e9;--orange:#d96531;--deep-orange:#b64f24}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);
font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{
outline:2px solid #b45e1b;outline-offset:3px}
.portal-login{min-height:100vh;display:grid;place-items:center;padding:24px}
.portal-auth-wrap{width:min(100%,430px)}
.portal-brand{display:flex;align-items:center;gap:11px}
.portal-mark{font-size:26px;letter-spacing:-.1em;font-weight:1000;color:#36516b}
.portal-mark span{color:#b65b19}.portal-brand strong{display:block;font-size:13px;letter-spacing:.18em}
.portal-brand small{display:block;font-size:9px;letter-spacing:.17em;color:var(--muted)}
.portal-card{background:var(--surface);border:1px solid var(--line);
border-radius:13px;padding:18px;box-shadow:0 6px 24px #34445c0a}
.portal-login-card{margin-top:25px;padding:27px}
.portal-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:900;color:#9b501b;margin:0}
h1{margin:7px 0 6px;font-weight:900;letter-spacing:-.04em;line-height:1.15;
font-size:clamp(24px,3vw,35px)}
h1 span{color:#b65b19}.portal-muted{color:var(--muted);margin:5px 0;font-size:12px}
.portal-form{display:grid;gap:13px;margin-top:20px}
.portal-form label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#40546a}
.portal-form input{width:100%;padding:11px;border:1px solid #aabac8;
border-radius:7px;background:#fff;color:var(--ink)}
.portal-form button,.portal-primary{padding:11px 15px;background:#c66a23;color:#fff;
font-weight:800;border:1px solid #b15c1c;border-radius:8px}
.portal-form button:hover,.portal-primary:hover{background:#ad5a1b}
.portal-error{font-size:12px;color:#993c2a;margin:0;min-height:1em}
.portal-meta{font-size:10px;color:#52677b;margin-top:16px;text-align:center}
.portal-shell{min-height:100vh;display:flex;flex-direction:column}
.portal-top{background:#fff;border-bottom:1px solid var(--line);
display:flex;justify-content:space-between;align-items:center;
gap:14px;padding:15px max(18px,calc((100vw - 1150px)/2))}
.portal-secondary{border:1px solid #d3dfe6;background:#fff;color:#3e5368;
border-radius:8px;padding:8px 12px;font-size:12px;font-weight:750}
.portal-secondary:hover{background:#f0f5f9}
.portal-main{width:min(1150px,100%);padding:25px 18px 24px;margin:0 auto}
.portal-hero{display:flex;justify-content:space-between;align-items:center;
flex-wrap:wrap;gap:15px;background:linear-gradient(110deg,#fff,#fff2e6);
border:1px solid #eddbc8;border-radius:15px;padding:22px 25px}
.portal-hero-badge{min-width:115px;text-align:center;padding:9px 14px;
background:#fff;border:1px solid #ebd9c9;border-radius:10px}
.portal-hero-badge strong{display:block;font-size:27px;color:#915120}
.portal-hero-badge small{display:block;font-size:10px;color:#53677a}
.portal-honesty{margin:15px 0;font-size:12px;color:#5d4937;
padding:9px 12px;border-radius:8px;background:#fff7ed;border:1px solid #efd7ba}
.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.portal-product{padding:17px;min-width:0}
.portal-product-head{display:flex;justify-content:space-between;
gap:8px;align-items:start;flex-wrap:wrap}
.portal-product-head strong{font-size:14px;color:#283d50}
.portal-state{background:#fff2e2;color:#884a1d;border-radius:7px;
padding:4px 7px;font-size:10px;font-weight:850}
.portal-hostname{margin:10px 0;font-size:12px;color:#3e5970;overflow-wrap:anywhere;font-weight:800}
.portal-product small{font-size:10px;line-height:1.4}
.portal-settings{margin-top:16px}
.portal-settings summary{font-weight:800;color:#40586b;cursor:pointer;font-size:12px}
.portal-settings .portal-form{max-width:480px}
.portal-message{color:#695038;font-size:12px}
.portal-footer{padding:15px 18px;margin-top:auto;text-align:center;
font-size:10px;color:#52677b;border-top:1px solid var(--line)}
@media(max-width:790px){.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.portal-grid{grid-template-columns:1fr}
.portal-hero{padding:17px}.portal-top{padding:14px 16px}.portal-login-card{padding:21px}}

/* dev.40 – real customer service requests without altering the portal shell. */
.portal-service{margin-top:15px}
.portal-service-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.portal-service h2{font-size:17px;letter-spacing:-.02em;margin:4px 0 3px}
.portal-service-count{padding:6px 9px;border-radius:7px;background:#fff3e6;
color:#965b27;font-size:11px;white-space:nowrap}
.portal-service-create{margin:11px 0;padding:9px 12px;border-radius:8px;
background:#f9fbfd;border:1px solid #dce6ed}
.portal-service-create summary{font-size:12px;font-weight:850;color:#425c73;cursor:pointer}
.portal-service-create .portal-form{max-width:680px;margin:10px 0}
.portal-service-create select,.portal-service-create textarea{width:100%;border:1px solid #acbdcb;
border-radius:7px;color:#30475a;background:#fff;padding:10px;font:inherit}
.portal-service-create textarea{resize:vertical}
.portal-service-list{display:grid;gap:7px;max-height:280px;overflow:auto;overscroll-behavior:contain}
.portal-service-row{display:grid;gap:4px;text-align:left;padding:11px 13px;
border:1px solid #dce5ed;background:#fff;border-radius:8px;color:#344a5e}
.portal-service-row:hover,.portal-service-row:focus-visible{background:#fff9f3;border-color:#dfb994}
.portal-service-row strong{font-size:12px;overflow-wrap:anywhere}
.portal-service-row small{font-size:10px;color:#596e80}
.portal-service-thread{margin-top:12px;display:grid;gap:10px;padding:12px;
border:1px solid #dce5eb;background:#f9fbfd;border-radius:10px}
.portal-service-thread[hidden]{display:none}
.portal-service-thread-head{display:flex;gap:8px;flex-wrap:wrap;
justify-content:space-between;align-items:center}
.portal-service-thread-head strong{font-size:12px;overflow-wrap:anywhere}
.portal-service-history{display:grid;gap:8px;max-height:330px;overflow:auto}
.portal-service-message{border:1px solid #dfe6ec;background:#fff;border-radius:8px;
padding:10px;font-size:11px;overflow-wrap:anywhere}
.portal-service-message.operator{border-left:3px solid #db8536}
.portal-service-message.customer{border-left:3px solid #7da3b4}
.portal-service-message strong{font-size:10px;color:#41566b}
.portal-service-message p{white-space:pre-wrap;margin:7px 0 0;line-height:1.5}
.portal-service-thread .portal-form{margin:5px 0}
.portal-service-thread textarea{min-height:60px;padding:9px;border:1px solid #b6c7d1;
border-radius:7px;resize:vertical}
