@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');
:root{font:16px/1.5 "Instrument Sans",Arial,sans-serif;color:#203039;background:#f5f8f8;--teal:#006573;--orange:#aa4000}
*{box-sizing:border-box}body{margin:0}header{display:flex;gap:14px;align-items:center;padding:16px max(20px,calc((100vw - 1120px)/2));background:#24343b;color:white;border-bottom:4px solid #f26a1b}.brand{font-size:24px;font-weight:800;color:#ff9a4d;text-decoration:none}.back{margin-left:auto;color:white}
main{max-width:1160px;margin:auto;padding:26px 20px 48px}.intro{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:20px}.layout{display:grid;grid-template-columns:1.15fr 1fr;gap:16px}.stack{display:grid;gap:16px}.support{margin-top:16px}.card,dialog{border:1px solid #d4dfe0;border-radius:12px;background:white;padding:24px}.kicker{font-size:12px;color:var(--teal);font-weight:800;letter-spacing:.08em}h1,h2{line-height:1.16;margin:0 0 10px}h1{font-size:clamp(28px,5vw,44px)}h2{font-size:23px}p{margin:0 0 12px}.subtle{color:#4e626a}ol{padding-left:24px}li{padding:6px 0}li span{display:block;color:#4e626a}.prefs{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:10px}button,input,select{font:inherit}button,select,input[type=search],input:not([type]){border:1px solid #7b9ca1;border-radius:7px;padding:8px 12px;background:white;color:#203039}button{cursor:pointer;margin:3px 3px 3px 0;color:var(--teal);font-weight:700}button.primary{background:var(--orange);border-color:var(--orange);color:white}input[type=search],input:not([type]){width:100%;margin:6px 0}a{color:var(--teal)}dialog{max-width:min(480px,92vw)}dialog::backdrop{background:#20303980}[hidden]{display:none!important}#answer,#receipt{margin:8px 0}#notices p{border-left:3px solid #f77b22;padding-left:10px}
@media(max-width:700px){.layout{grid-template-columns:1fr}.intro{align-items:start;flex-direction:column}header{flex-wrap:wrap}.back{margin-left:0}}

.preview{margin-top:12px;padding:16px;border:1px solid #d4dfe0;border-radius:10px}
.preview h3{margin:0 0 8px}
.preview.sms p{background:#eef3f3;border-radius:14px;padding:12px;margin-bottom:0}
.conversation{display:grid;gap:8px;max-height:300px;overflow:auto;margin:12px 0}
.bubble{justify-self:start;max-width:90%;padding:9px 12px;background:#eef3f3;border-radius:12px;margin:0;overflow-wrap:anywhere}
.bubble.outgoing{justify-self:end;background:#d9eff2}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.phone{border:7px solid #27343b;border-radius:30px;max-width:440px;width:100%;justify-self:center}
.phone-top{background:#eef3f3;padding:10px;text-align:center;border-radius:12px;font-weight:700}
.mail{border-top:4px solid #ed7724}
.mail .bubble{width:100%;max-width:100%}
.toolbar [aria-pressed=true]{background:#e1f2f3}

/* Customer and specialist views share the visual language of the demo. */
:root{--orange:#ad4405;--ink:#16232b;--line:#d7e1e3;background:#f4f7f7;color:var(--ink)}
header{min-height:72px;background:#232c32;flex-wrap:wrap}
header .brand{font-size:29px;letter-spacing:-.04em;color:#f26a1b}
.portal-brand-divider{border-left:1px solid #738087;padding-left:14px}
.portal-nav{margin-left:auto;display:flex;gap:20px;flex-wrap:wrap}
.portal-nav a{color:#edf3f4;text-decoration:none;padding:7px 0;border-bottom:3px solid transparent}
.portal-nav a:hover,.portal-nav a[aria-current]{border-bottom-color:#f26a1b;color:white}
main{padding-top:36px}
.card{box-shadow:0 2px 9px #253d4610;border-color:var(--line)}
.card h2{letter-spacing:-.025em}
button.primary,.portal-button{border-radius:8px;background:var(--orange);color:white}
.portal-button{display:inline-block;text-decoration:none;padding:8px 12px;font-weight:700}
:focus-visible{outline:3px solid #158497;outline-offset:3px}
.status-strip{background:#e2f3f1;border-radius:8px;color:#174c53;padding:12px 14px;margin:12px 0}
.journey-card ol,.case-timeline,#internal-history{list-style:none;padding-left:0;margin:18px 0}
.journey-card li,.case-timeline li,#internal-history li{position:relative;padding:7px 0 14px 30px;border-left:2px solid #c8dddd;margin-left:9px}
.journey-card li::before,.case-timeline li::before,#internal-history li::before{content:"";position:absolute;left:-9px;top:9px;width:12px;height:12px;border:2px solid #769399;border-radius:50%;background:white}
.journey-card li[data-state=complete]::before,.case-timeline li[data-state=complete]::before,#internal-history li::before{background:#087b69;border-color:#087b69}
.journey-card li[data-state=current],.case-timeline li[data-state=current]{font-weight:700;color:#005864}
.journey-card li[data-state=current]::before,.case-timeline li[data-state=current]::before{border-color:#007a87;box-shadow:0 0 0 3px #d4eff1}
.ava-mark{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffe9db;color:#a23b00;font-weight:800}
.phone{background:#fff;align-self:start;max-width:400px;padding:14px 18px;border:8px solid #26333b;border-radius:36px;box-shadow:0 10px 24px #253d4625}
.phone-top{display:grid;justify-items:center;gap:4px;background:#f5f7f8;border-bottom:1px solid var(--line)}
.phone-notch{width:70px;height:7px;border-radius:10px;background:#26333b;margin-bottom:6px}
.phone-top small{color:#53666d}
.phone .conversation{min-height:155px;align-content:start}
.phone .bubble.outgoing{background:#006d9b;color:white}
.mail-header{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:12px}
.mail-header h2{margin:0}
.mail .toolbar{margin-top:12px}
.mail .conversation{min-height:126px;align-content:start}
.mail .bubble{background:#f5f8f8;border:1px solid var(--line);border-radius:8px}
#email-preview{border-top:4px solid #eb792d}
#email-subject{font-weight:700}
#sms-preview{max-width:310px;border:5px solid #26333b;border-radius:24px}
@media(max-width:760px){.portal-nav{margin-left:0;width:100%;gap:10px 16px}.portal-nav a{font-size:14px}main{padding-top:24px}.card{padding:18px}}

/* Demo controls live outside the customer UI so the product screens match the mockups. */
.demo-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:6px max(20px,calc((100vw - 1120px)/2));background:#fff4cf;color:#5a4300;border-bottom:1px solid #ead79c;font-size:14px}
.demo-bar-label{font-weight:700;letter-spacing:.02em}
.demo-bar button,.demo-bar select{margin:0;padding:3px 10px;font-size:14px;border-color:#c9b26a;color:#5a4300;background:#fffaf0}
.demo-bar label{display:inline-flex;align-items:center;gap:6px}
.demo-bar a{color:#5a4300;font-weight:700}
.demo-bar .demo-bar-end{margin-left:auto}
.link-button{border:0;background:none;padding:0;margin:8px 0 0;color:var(--teal);text-decoration:underline;font-weight:700;display:block}
@media(max-width:760px){.demo-bar .demo-bar-end{margin-left:0}}

/* ---- Tier 2 design system ---------------------------------------------- */
/* Brand orange: #ec6012 is the brightest orange that keeps white text at 3:1,
   so primary buttons use large text (18.67px bold = WCAG "large").
   #ad4405 (5.8:1) is for small orange text such as warning pills. */
:root{--brand:#ec6012;--brand-hover:#d9520b;--brand-strong:#ad4405;--orange:var(--brand)}
button.primary,.portal-button{font-size:1.1667rem;padding:9px 18px;border-color:var(--brand)}
button.primary:hover,.portal-button:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.btn-block{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:10px 0 0;padding:12px 18px}
.button-stack{display:grid;gap:10px;margin-top:16px}.button-stack .btn-block{margin:0}
.icon-button-label{display:inline-flex;align-items:center;gap:8px}

/* Brand lockup: mark + wordmark. */
.brand{display:inline-flex;align-items:baseline;gap:0;text-decoration:none}
.brand-mark{width:.78em;height:.78em;fill:currentColor;stroke:none;fill-rule:evenodd;flex:none;margin:0 -.03em -.06em 0}
.brand-davo{gap:6px;color:#fff}.brand-davo .brand-mark{color:#f26a1b}

/* Icons (stroke icons from icons.js). */
.icon{width:1.25em;height:1.25em;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.25em}
.icon-lg{width:28px;height:28px}
.with-icon{display:flex;align-items:center;gap:10px}
.with-icon>.icon{color:var(--teal)}
a.with-icon{display:inline-flex;gap:6px;margin-top:4px}
.kicker.with-icon{color:#203039;font-size:15px;letter-spacing:0;font-weight:700}
.kicker.with-icon>.icon{width:24px;height:24px}
.ava-mark .icon{width:20px;height:20px}

/* Pills. */
.pill,.status-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:3px 12px;font-size:14px;font-weight:700;line-height:1.4;white-space:nowrap}
.pill-success,.status-pill{background:#d9f2e8;color:#0a5c4b}
.pill-info{background:#dcf1f4;color:#0a5965}
.pill-warning{background:#ffe6d4;color:var(--brand-strong)}
.pill-danger{background:#fde1df;color:#a8261c}
.pill-neutral{background:#eceff1;color:#3b4d55}

/* Alert banners. */
.alert{display:flex;gap:14px;align-items:flex-start;border-radius:10px;padding:16px 18px;margin:12px 0}
.alert>.icon{width:28px;height:28px;margin-top:1px}
.alert strong{display:block;font-size:1.06rem}
.alert p{margin:2px 0 0}
.alert-info{background:#e2f3f1;color:#174c53}.alert-info>.icon{color:#0b7285}
.alert-warning{background:#fff0e4;color:#4f2508}.alert-warning>.icon{color:var(--brand-strong)}

/* Icon list rows. */
.icon-list{list-style:none;padding:0;margin:8px 0}
.icon-list>li{display:flex;align-items:center;gap:14px;padding:12px 2px;border-bottom:1px solid var(--line)}
.icon-list>li:last-child{border-bottom:0}
.icon-list>li>.icon{width:24px;height:24px;color:#36525a}
.icon-row-text{flex:1;min-width:0}
.icon-list li .icon-row-text span,.icon-row-text small{display:block;color:#4e626a;font-size:15px}
.icon-list .row-end{margin-left:auto;display:inline-flex;align-items:center;gap:10px;color:#6b8086}

/* Meta row: owner, dates and status separated by rules. */
.meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:10px 0 14px}
.meta-row>*{display:inline-flex;align-items:center;gap:7px}
.meta-row>*+*{border-left:1px solid var(--line);padding-left:16px}
.meta-row .icon{color:#36525a}
.ava-mark .brand-mark{width:17px;height:17px;margin:0}
@media(max-width:560px){.meta-row>*+*{border-left:0;padding-left:0}}
