*{box-sizing:border-box}body{margin:0;background:#f3f7f8;color:#193642;font:15px/1.6 'Malgun Gothic',sans-serif}header{max-width:850px;margin:auto;padding:24px 18px;display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center}header>a{font-size:22px;font-weight:bold;color:#087f83;text-decoration:none}header>span{font-size:13px}nav{display:flex;align-items:center;gap:12px;margin-left:auto}a{color:#087f83}main{max-width:800px;margin:auto;padding:0 16px 30px}h1{font-size:26px;margin:0 0 6px}h2{font-size:19px;margin:0 0 12px}p{margin:6px 0 16px}.card{padding:22px;background:white;border:1px solid #dce8eb;border-radius:18px;margin-bottom:16px;box-shadow:0 5px 20px #17394705}form{margin:0}label{display:block;margin-bottom:14px;font-weight:bold}input,textarea,select{display:block;width:100%;border:1px solid #c8d9de;border-radius:9px;padding:11px;font:16px/1.5 inherit;color:#193642;background:#fff;margin-top:6px;font-size:16px}textarea{min-height:90px;resize:vertical}button{font:inherit;border:1px solid #bcd5d8;border-radius:10px;background:white;color:#20505b;padding:10px 14px;cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:default}.primary{background:#087f83;border-color:#087f83;color:white}.wide{width:100%}small,.muted{font-size:12px;color:#627982}.check{font-weight:normal;display:flex;gap:10px;align-items:flex-start}.check input{width:20px;height:20px;flex:none;margin:3px 0}details{margin:12px 0}summary{cursor:pointer;font-weight:bold;color:#087f83;padding:8px 0}details p{font-size:13px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.full{grid-column:1/-1}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:100;background:#143b49;color:white;max-width:90vw;border-radius:12px;padding:12px 18px;display:none}#notice.show{display:block}.stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.stages button{min-width:0;font-size:13px}.stages button.active{background:#087f83;color:#fff}.badge{display:inline-block;border-radius:20px;background:#ee655c;color:#fff;font-size:11px;padding:0 6px;margin-left:5px}.messages{max-height:460px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:10px 0}.message{max-width:90%;background:#eef3f5;border-radius:12px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start}.message.mine{background:#dff3ef;align-self:flex-end}.message small{display:block;margin-bottom:4px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.record{width:100%;text-align:left;display:block;margin:8px 0;padding:15px}.record strong{display:block}.photo{max-width:100%;max-height:360px;object-fit:contain;border-radius:10px}.shipping{border:2px solid #15b9a6;animation:glow 1.7s infinite alternate}@keyframes glow{to{box-shadow:0 0 15px #1dbfa666}}footer{text-align:center;padding:20px;font-size:12px}#error{color:#b33;margin:12px 0}.hidden{display:none!important}@media(max-width:500px){.grid{display:block}.card{padding:17px}header{padding:18px}nav{margin-left:0}.stages{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.shipping{animation:none}}
.welcome{text-align:center;padding:44px 24px;background:linear-gradient(150deg,#fff,#e8f8fb)}.welcome h1{font-size:32px;line-height:1.4;margin:24px 0;color:#0b4958}.welcome-features{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:28px 0}.welcome-features span{border:1px solid #bdd9df;border-radius:24px;padding:8px 12px;font-size:13px}.welcome small{display:block;margin-top:12px}.welcome .primary{min-height:58px;font-size:18px}

.welcome-brand{font-size:clamp(26px,6vw,40px);font-weight:900;color:#075e70;margin:8px 0}.welcome-mark{font-size:64px;color:#087f83;line-height:1}.welcome .primary{background:linear-gradient(110deg,#15395c,#089b9a)}

.stages .change-status{border:1px dashed #15958f;background:#effaf7;color:#08716f;font-weight:bold}#status-panel{box-shadow:none;background:#f4faf9;margin:12px 0;padding:14px}#status-panel:not([open]){display:none}

.status-dropdown{position:relative;min-width:0}.status-dropdown>.change-status{width:100%;height:100%}.status-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:170px;max-height:340px;overflow:auto;z-index:20;padding:6px;background:white;border:1px solid #bcd5d8;border-radius:12px;box-shadow:0 8px 24px #19364226}.status-menu[hidden]{display:none}.status-menu button{display:block;width:100%;border:0;text-align:left;color:#193642;background:white}.status-menu button:hover{background:#e6f6f2}

/* Familiar messenger layout */
.messages{background:#b9cddd;min-height:260px;max-height:55vh;padding:22px 18px;gap:18px;border-radius:14px 14px 0 0;scroll-behavior:smooth}
.message{position:relative;background:#fff;color:#24323c;border-radius:3px 14px 14px 14px;max-width:82%;padding:12px 15px;box-shadow:0 1px 2px #20374b14;line-height:1.65}
.message.mine{background:#ffe35b;border-radius:14px 3px 14px 14px}
.message small{font-size:11px;color:#536374;white-space:normal;margin-bottom:7px}
.chat-sticker{display:block;font-size:64px;line-height:1.3;padding:6px 14px;text-align:center}
#chat{position:sticky;bottom:0;background:white;padding:12px;border:1px solid #d8e1e7;border-radius:0 0 14px 14px;z-index:2}
#chat label{margin-bottom:8px}#chat-title{font-size:12px;color:#677785}#chat textarea{min-height:72px;max-height:160px;border-color:#e0e5e8;margin-top:4px}
#chat>.primary{background:#ffe35b;color:#332d17;border-color:#eed34d;font-weight:bold}
.chat-tools{display:flex;align-items:center;gap:12px;margin-bottom:8px}.chat-tools span{font-size:11px;color:#71818d}
#stickers-toggle{border:0;background:#f1f5f8;padding:7px 12px}
#sticker-panel[hidden]{display:none}#sticker-panel{padding:10px;background:#f4f7fa;border-radius:12px;margin-bottom:10px}
.sticker-tabs{display:flex;gap:4px;overflow:auto}.sticker-tabs button{flex:none;font-size:12px;padding:5px 10px}.sticker-tabs [aria-pressed=true]{background:#ffe35b;border-color:#ffe35b}
.sticker-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:10px 0}.sticker-grid button{font-size:32px;background:white;border:0;min-height:54px}
@media(max-width:500px){.messages{padding:18px 12px;max-height:52vh}.message{max-width:88%}#chat{padding-bottom:calc(10px + env(safe-area-inset-bottom))}}

.shipping-choice{border:1px solid #dce6eb;border-radius:12px;padding:14px;margin:0 0 16px}.shipping-choice legend{font-weight:700;font-size:15px}.shipping-choice label{display:flex;gap:10px;align-items:center;font-weight:400;margin:8px 0;min-height:44px}.shipping-choice input{width:20px;height:20px;margin:0;flex:none}

#intake-submit-wrap{width:100%;border-radius:10px}#intake-submit-wrap button:disabled{pointer-events:none}#intake-submit-wrap:focus-visible{outline:2px solid #087f83;outline-offset:3px}

#intake input::placeholder,#intake textarea::placeholder{color:#929da5;opacity:1;font-weight:400}

#intake-submit-wrap{position:relative;text-align:right;min-height:44px}
#intake-submit-wrap>button{width:auto;min-width:112px}
#shipping-hint{position:static;right:auto;top:auto;transform:none;max-width:100%;font-size:12px;line-height:1.4;color:#a33;text-align:right;pointer-events:none}
#shipping-hint[hidden]{display:none}

.message.mine{margin-left:20px}.unread-one{position:absolute;right:calc(100% + 6px);bottom:6px;color:#725800;font-size:12px;font-weight:700;line-height:1}

.sound-settings{position:relative;margin:0}.sound-settings summary{font-size:13px;white-space:nowrap}.sound-popover{position:absolute;right:0;top:100%;width:270px;max-width:85vw;padding:16px;background:#fff;border:1px solid #d4e0e5;border-radius:14px;box-shadow:0 8px 28px #1233;z-index:30}.sound-popover label{margin:12px 0 4px;font-size:14px}.sound-popover input[type=range]{width:100%;padding:0;accent-color:#087f83}.sound-popover small{display:block;margin-top:10px}.sound-popover output{float:right}

/* Stage sequence: arrows stay with the following step, including on phones. */
#stages.stages{display:flex;flex-wrap:nowrap;gap:28px;overflow-x:auto;padding:3px 2px 8px;align-items:stretch}
#stages.stages>button,#stages.stages>.status-dropdown{position:relative;flex:0 0 auto;min-width:150px}
#stages.stages>button~button:before,#stages.stages>.status-dropdown:before{content:'→';position:absolute;left:-24px;top:50%;transform:translateY(-50%);width:20px;color:#688c99;font-size:20px;pointer-events:none}
#stages.stages>.status-dropdown .status-menu{position:fixed;top:auto;right:auto;margin-top:6px}
@media(max-width:500px){#stages.stages>button,#stages.stages>.status-dropdown{min-width:120px}}

/* Keep correction menu visible and emphasize the actual current status. */
#stages.stages{flex-wrap:wrap;overflow:visible;gap:18px 28px;padding:8px 2px 12px}
#stages.stages>.status-dropdown .status-menu{position:absolute;top:calc(100% + 6px);right:0;margin-top:0;max-width:80vw}
#stages.stages>.current-stage{background:linear-gradient(120deg,#007e88,#00bfa6,#087eac);background-size:220% 220%;border:2px solid #00bca8;color:#fff;font-weight:700;animation:stageAmbient 1.8s ease-in-out infinite;z-index:1}
.current-label{display:block;color:inherit;font-size:10px;line-height:1.2}
.status-help{display:block;padding:7px 9px;max-width:230px;white-space:normal}
@keyframes stageAmbient{0%,100%{box-shadow:0 0 0 2px #00cbb533,0 0 10px #00bfa655;background-position:0% 50%}50%{box-shadow:0 0 0 5px #00cbb544,0 0 24px #00bfa6aa;background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){#stages.stages>.current-stage{animation:none;box-shadow:0 0 0 3px #00cbb544}}

.chat-status{align-self:center;text-align:center;background:#eaf3f7d9;color:#315465;border-radius:20px;padding:9px 20px;max-width:95%;font-size:13px}.chat-status strong,.chat-status small,.chat-status span{display:block}.chat-status small{font-size:10px;margin-top:3px}#stages [data-stage]{cursor:default}

/* Full-width status divider in the shared conversation. */
.messages>.chat-status{align-self:stretch;flex:none;width:calc(100% + 36px);max-width:none;margin:10px -18px;padding:16px 18px;border-radius:0;background:#167d87;color:#fff;border-top:1px solid #116b75;border-bottom:1px solid #116b75;text-align:center;box-sizing:border-box}
.messages>.chat-status strong{font-size:22px;font-weight:800;line-height:1.45;letter-spacing:.02em}
.messages>.chat-status small{color:#e1f4f5;font-size:11px;margin-top:5px}
.messages>.chat-status span{font-size:14px;margin-top:6px;overflow-wrap:anywhere}
@media(max-width:500px){.messages>.chat-status{width:calc(100% + 24px);margin-left:-12px;margin-right:-12px;padding:14px 12px}.messages>.chat-status strong{font-size:20px}}

/* Rounded status cards: only the latest actual status glows. */
.messages>.chat-status{align-self:stretch;width:auto;max-width:none;margin:10px 2px;padding:18px 20px;border:1px solid #ffffffa8;border-radius:18px;background:#edf5f8;color:#416274;box-shadow:0 3px 12px #22465a0a;text-align:center}
.messages>.chat-status strong{font-size:20px;letter-spacing:0;line-height:1.5}
.messages>.chat-status small{color:#718897;font-size:11px;margin-top:5px}
.messages>.chat-status span{font-size:13px;color:inherit}
.messages>.chat-status.is-current{border:2px solid transparent;background:linear-gradient(120deg,#f4ffff,#e7f9f6) padding-box,linear-gradient(110deg,#0bb8b0,#62dfce,#37a3e2,#0bb8b0) border-box;background-size:100% 100%,260% 100%;color:#086c77;animation:chatStatusGlow 2.8s ease-in-out infinite}
@keyframes chatStatusGlow{0%,100%{background-position:0 0,0% 50%;box-shadow:0 0 0 2px #31d9c51a,0 0 13px #10bea63d}50%{background-position:0 0,100% 50%;box-shadow:0 0 0 4px #31d9c529,0 0 25px #10bea675}}
@media(max-width:500px){.messages>.chat-status{width:auto;margin:8px 2px;padding:15px 12px}.messages>.chat-status strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){.messages>.chat-status.is-current{animation:none;box-shadow:0 0 14px #10bea645}}

.delete-message{display:block;margin:0 0 5px auto;min-height:28px;padding:2px 8px;font-size:11px;border:1px solid #776a3540;background:#ffffff70;color:#665c39;border-radius:7px}

.contact-phone{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin:3px 0 8px}.contact-phone strong{font-size:17px;letter-spacing:.02em;margin-right:4px}.contact-action{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #bce8df;border-radius:12px;background:#edfaf6;color:#078779;text-decoration:none}.contact-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.contact-sms{background:#eff6ff;border-color:#cbdfff;color:#3275bb}.contact-action:hover{filter:brightness(.96)}.contact-action:focus-visible{outline:2px solid #087f83;outline-offset:3px}

.sound-settings>summary{padding:8px 12px;border:1px solid #d2dde3;border-radius:20px;background:#f0f4f6;color:#637583;list-style:none}.sound-settings>summary::-webkit-details-marker{display:none}.sound-settings[data-sound-state=on]>summary,#sound[data-sound-state=on],#sound-toggle[data-sound-state=on]{background:#e2f8eb;border-color:#67c995;color:#116b3e;font-weight:700;box-shadow:0 0 0 3px #38b77912}.sound-settings[data-sound-state=pending]>summary{background:#fff6dc;border-color:#e7ce83;color:#846116}.sound-settings[data-sound-state=off]>summary{background:#f0f2f4;color:#77818b}

.case-date{font-size:15px;margin:24px 0 8px;padding:10px 14px;border-radius:10px;background:#e9f2f5;border-left:4px solid #07868a}.case-row{display:flex;align-items:center;gap:12px}.case-row>input,.case-controls input{width:20px;height:20px;margin:0;flex:none;accent-color:#087f83}.case-row .record{flex:1;min-width:0}.case-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.case-controls label{display:flex;align-items:center;gap:8px;margin:0}.case-controls #delete-selected{color:#a43b3b}

.sound-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sound-popover-heading strong{font-size:16px}.sound-popover-heading #sound-close{min-width:70px;min-height:44px;padding:8px 10px;border-radius:10px;background:#f0f4f6;color:#35515e;border:1px solid #d6e1e5}.sound-settings>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;touch-action:manipulation}.sound-popover{z-index:100;max-height:75vh;overflow-y:auto}.sound-popover button{touch-action:manipulation}
@media(max-width:600px){.sound-settings[open]>.sound-popover{position:fixed;top:90px;right:12px;left:12px;width:auto;max-width:none;max-height:calc(100dvh - 110px);padding:18px;border-radius:18px;box-shadow:0 12px 45px #15374340}}

.sound-settings>summary{gap:8px}.sound-state-icon{width:27px;height:27px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sound-state-icon .sound-prohibited{stroke:#d83232;stroke-width:2.8}.sound-settings[data-sound-state=off]>summary{border-color:#e7baba;background:#fff2f2;color:#a92e2e}.sound-settings[data-sound-state=off] .sound-bell{stroke:#747d86}

/* A compact, aligned toolbar on desktop and mobile. */
header{max-width:800px;padding:22px 16px 20px;display:grid;grid-template-columns:1fr;gap:4px}
header>a{font-size:23px;letter-spacing:-.7px;line-height:1.4}header>span{font-size:12px;color:#6b8390}
header nav{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:stretch;gap:9px;width:100%;margin:14px 0 0}
header nav>#copy,header nav>#login,header nav>.sound-settings>summary{width:100%;min-height:48px;height:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 8px;border:1px solid #d7e5e9;border-radius:13px;background:#fff;color:#315260;font-size:13px;font-weight:700;text-decoration:none;line-height:1.4;box-sizing:border-box;white-space:nowrap;box-shadow:0 2px 7px #23455205}
header nav>#copy{background:#e6f7f4;border-color:#c2e9e1;color:#087e79}
header nav>#copy:before{content:'↗';font-size:19px;line-height:1}header nav>#login:before{content:'☷';font-size:20px;line-height:1}
header nav>.sound-settings{margin:0;min-width:0}header nav>.sound-settings[data-sound-state=on]>summary{background:#e2f8eb;border-color:#a4dcb9;color:#116b3e}header nav>.sound-settings[data-sound-state=off]>summary{background:#fff2f2;border-color:#e7baba;color:#a92e2e}header nav>.sound-settings[data-sound-state=pending]>summary{background:#fff7df;border-color:#e7d99b;color:#846116}
header .sound-state-icon{width:22px;height:22px}
@media(max-width:500px){header{padding:18px 16px 16px}header>a{font-size:21px}header nav{gap:7px;margin-top:12px}header nav>#copy,header nav>#login,header nav>.sound-settings>summary{font-size:12px;padding:9px 4px;gap:4px;border-radius:11px;min-height:48px}header .sound-state-icon{width:20px;height:20px}}
@media(max-width:360px){header nav{grid-template-columns:1fr 1fr}header nav>.sound-settings{grid-column:1/-1}}

/* Icon-only sound control next to the case list. */
header nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px}
header nav>.sound-settings{grid-column:auto}
header nav>.sound-settings>summary{padding:0;width:48px;min-height:48px}
header nav>.sound-settings>summary>span{display:none}
header nav>.sound-settings>summary .sound-state-icon{width:27px;height:27px}
@media(max-width:360px){header nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px}header nav>.sound-settings{grid-column:auto}}

header nav>.sound-control{width:48px;height:48px;min-height:48px;padding:9px;display:flex;align-items:center;justify-content:center;border-radius:12px;touch-action:manipulation}
header nav>.sound-control[data-sound-state=on]{background:#e2f8eb;border-color:#a4dcb9;color:#116b3e}
header nav>.sound-control[data-sound-state=off]{background:#fff2f2;border-color:#e7baba;color:#a92e2e}
header nav>.sound-control .sound-state-icon{width:27px;height:27px}
header nav>.sound-control[data-sound-state=off] .sound-bell{stroke:#747d86}

.case-controls{gap:8px;justify-content:flex-end}.case-controls>button,.case-controls>.select-all-icon{width:44px;height:44px;min-height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e5e9;border-radius:12px;background:#f6f9fa;margin:0;cursor:pointer}.case-controls svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.case-controls #delete-selected{background:#fff3f2;border-color:#f0d6d3;color:#b44b43}.case-controls #trash-toggle{color:#507482}.case-controls>button:disabled{opacity:.35;cursor:default}

.message .delete-message{width:30px;height:30px;min-height:30px;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#ffffff60;font-size:22px;line-height:1;color:#726741;touch-action:manipulation}.message .delete-message:hover{background:#ffffffa0}

/* Messenger rows with separate sender, bubble and timestamp. */
.messages{gap:16px;background:#b5c9da;padding-top:22px;padding-bottom:22px}
.chat-row{align-self:flex-start;max-width:94%;min-width:0}.chat-row.mine{align-self:flex-end}
.chat-sender{font-size:12px;color:#354b5b;margin:0 0 6px 2px;font-weight:600}.chat-row.mine .chat-sender{text-align:right;margin-right:2px}
.chat-bubble-line{display:flex;align-items:flex-end;gap:7px;min-width:0}.chat-row.mine .chat-bubble-line{flex-direction:row-reverse}
.chat-row .message{max-width:none;min-width:42px;margin:0;flex:0 1 auto;background:#fff;padding:10px 13px;border-radius:11px;white-space:normal;box-shadow:0 1px 2px #263d4914}
.chat-row.mine .message{background:#ffe450;border-radius:11px}
.chat-row .message:before{content:'';position:absolute;top:9px;left:-6px;border-top:0 solid transparent;border-bottom:9px solid transparent;border-right:8px solid #fff}
.chat-row.mine .message:before{left:auto;right:-6px;border-right:0;border-left:8px solid #ffe450}
.bubble-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.55}
.chat-meta{flex:none;font-size:10px;line-height:1.4;color:#526b7d;padding-bottom:1px}.chat-row.mine .chat-meta{text-align:right}.chat-meta time span{display:block;white-space:nowrap}.chat-unread{display:block;color:#816500;font-size:11px;font-weight:700;margin-bottom:2px}
.chat-row .delete-message{float:right;display:inline-flex;width:24px;height:24px;min-height:24px;margin:-4px -6px 2px 7px;background:transparent;color:#786e40;font-size:19px}.chat-row .chat-sticker{font-size:60px;padding:3px 8px}
@media(max-width:500px){.chat-row{max-width:96%}.chat-row .message{padding:9px 11px}.chat-meta{font-size:9px}.chat-bubble-line{gap:6px}}

/* Reference chat structure: avatar/name only for incoming message groups. */
.messages{gap:5px;background:#b6cddd;padding:20px 16px;border-radius:12px 12px 0 0}
.chat-row{position:relative;max-width:94%;padding-left:46px;margin-top:13px}.chat-row.continued{margin-top:0}.chat-row.mine{padding-left:0;padding-right:0;max-width:85%;margin-top:13px}.chat-row.mine.continued{margin-top:0}
.chat-avatar{position:absolute;left:0;top:0;width:36px;height:36px;border-radius:13px;background:#eff7fa;color:#276574;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;border:1px solid #ffffff70}
.chat-sender{font-size:12px;font-weight:400;color:#203b4f;margin:0 0 5px;line-height:1.4}
.chat-row .message,.chat-row.mine .message{border-radius:4px;padding:7px 9px;box-shadow:none;min-width:28px}.chat-row.mine .message{background:#ffeb33}.chat-row.mine .message:before{border-left-color:#ffeb33}
.chat-row.continued .message:before{display:none}.chat-row .message:before{top:6px}
.bubble-text{font-size:14px;line-height:1.5}.chat-meta{font-size:10px;color:#324d61;line-height:1.3;padding-bottom:1px;min-width:0}.chat-meta time{white-space:nowrap}
.chat-row .delete-message{float:right;width:20px;height:20px;min-height:20px;font-size:16px;margin:-3px -5px 0 4px;opacity:.55}.chat-row .delete-message:hover{opacity:1}
.chat-day{align-self:center;margin:16px 0 10px;padding:5px 14px;border-radius:16px;background:#7a98ad38;color:#344f62;font-size:11px}
#chat{position:sticky;background:#fff;border-radius:0 0 12px 12px;padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) 65px;gap:6px 8px;align-items:end}
#chat .chat-tools{grid-column:1/-1;margin:0}#chat .chat-tools>span{display:none}#sticker-panel{grid-column:1/-1}#chat>label{margin:0}#chat-title{display:none}#chat textarea{margin:0;min-height:68px;max-height:130px;border:0;border-radius:0;padding:7px 2px;resize:none;font-size:15px;outline-offset:2px}#chat>.primary{width:65px;min-height:38px;height:38px;border-radius:5px;background:#ffeb33;border-color:#ebd930;font-size:13px;margin-bottom:3px}#stickers-toggle{min-height:32px;padding:4px 8px;background:transparent}
@media(max-width:500px){.messages{padding:16px 12px;max-height:62vh}.chat-row{padding-left:42px;max-width:97%}.chat-row.mine{max-width:87%}.chat-avatar{width:33px;height:33px;border-radius:12px}.chat-meta{font-size:9px}#chat{padding-bottom:calc(9px + env(safe-area-inset-bottom))}}

#attach-input[hidden],#attach-tray[hidden]{display:none}#attach-button{font-size:25px;border:0;background:transparent;min-height:32px;padding:0 8px;color:#536b7a}#attach-tray{grid-column:1/-1;padding:10px;background:#f1f6f8;border-radius:10px;overflow-wrap:anywhere}#attach-tray>div{display:flex;justify-content:space-between;align-items:center;font-size:12px}#attach-tray button{min-height:32px;padding:3px 10px}#send-files{background:#ffe450;margin-top:8px}.file-drag{outline:3px dashed #00a69b;outline-offset:-5px}.attachment-file{display:block;padding:0;border:0;background:transparent;text-align:left;max-width:240px;min-width:100px;overflow-wrap:anywhere}.attachment-file img{display:block;width:100%;max-height:280px;object-fit:contain;border-radius:5px}.attachment-file>span,.attachment-file>small{display:block;font-size:12px;margin-top:4px}.attachment-file .file-symbol{font-size:28px}

/* Explicit composer slots prevent optional panels from moving the send button. */
#chat{display:grid;grid-template-columns:minmax(0,1fr) 64px;grid-template-areas:"tools tools" "stickers stickers" "attachments attachments" "input send";gap:0 8px;align-items:end;width:100%;min-width:0}
#chat>.chat-tools{grid-area:tools;min-width:0;display:flex;align-items:center;gap:4px;margin:0 0 6px}
#chat>#sticker-panel{grid-area:stickers;min-width:0}
#chat>#attach-tray{grid-area:attachments;min-width:0;margin:0 0 8px}
#chat>label{grid-area:input;display:block;min-width:0;width:100%;margin:0;font-weight:normal}
#chat>label>textarea{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;min-height:64px;padding:8px 2px;line-height:1.5}
#chat>button.primary{grid-area:send;align-self:end;justify-self:end;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:64px;min-width:64px;height:40px;min-height:40px;margin:0 0 4px;padding:0;border-radius:6px;line-height:1;white-space:nowrap}
#chat [hidden]{display:none!important}
@media(max-width:500px){#chat{grid-template-columns:minmax(0,1fr) 58px;padding-left:10px;padding-right:10px;column-gap:6px}#chat>button.primary{width:58px;min-width:58px}}

#sticker-panel .sticker-grid{display:flex;overflow-x:auto;gap:5px;margin:7px 0;padding-bottom:4px}#sticker-panel .sticker-grid button{flex:0 0 44px;min-height:44px;height:44px;padding:3px;font-size:28px}#sticker-panel>small{display:none}#sticker-panel{padding:7px 8px;margin-bottom:8px}

#stickers-toggle{display:none!important}
#sticker-panel{display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:center;gap:4px;padding:4px 6px}
#sticker-panel .sticker-grid{grid-column:1;grid-row:1;min-width:0;margin:0}
#sticker-panel .sticker-category-picker{grid-column:2;grid-row:1;width:40px;height:40px;min-height:40px;padding:9px;border:0;border-radius:10px;background:#e5eef2;color:#426775}
.sticker-category-picker svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
#sticker-panel .sticker-tabs{display:none;grid-column:1/-1;grid-row:2}
#sticker-panel.categories-open .sticker-tabs{display:flex;padding:5px 0}

#chat .chat-tools #stickers-toggle{display:inline-flex!important;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:7px;background:transparent;border:0;color:#536b7a}
#stickers-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#chat .chat-tools #attach-button{width:36px;height:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0}
#chat>#sticker-panel[hidden]{display:none!important}

.attachment-media{max-width:260px;min-width:120px}.attachment-media video{display:block;width:100%;height:auto;max-height:340px;object-fit:contain;background:#18242c;border-radius:6px}.attachment-media .attachment-file{max-width:100%;width:100%}.attachment-media img{min-height:70px;max-height:340px}

header nav>#copy:before{content:none}header nav>#copy .copy-icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Sticker picker overlays the conversation without taking up layout space. */
#chat>#sticker-panel{position:absolute;bottom:calc(100% + 8px);left:8px;right:8px;z-index:25;grid-area:auto;margin:0;padding:12px;max-height:240px;overflow:auto;border:1px solid #d2e1e7;border-radius:16px;background:#fff;box-shadow:0 8px 30px #25435430}
#chat>#sticker-panel[hidden]{display:none!important}
#chat>#sticker-panel .sticker-grid{padding:2px 0 5px}
#chat>#sticker-panel .sticker-grid button{background:#f4f7f9;border-radius:10px}
#chat>#sticker-panel .sticker-tabs{flex-wrap:wrap}

#admin-plus-menu{position:absolute;left:8px;bottom:calc(100% + 8px);z-index:26;width:190px;padding:7px;background:white;border:1px solid #d2e1e7;border-radius:14px;box-shadow:0 8px 30px #25435430}#admin-plus-menu>button{display:block;width:100%;border:0;text-align:left;background:white;border-radius:8px;font-size:14px}#admin-plus-menu>button:hover{background:#edf6f6}

header.is-admin{grid-template-columns:minmax(0,1fr) auto;align-items:center}header.is-admin>a{grid-column:1;grid-row:1;min-width:0}header.is-admin>span:not(.admin-login-badge){grid-column:1/-1;grid-row:2}header.is-admin>nav{grid-column:1/-1;grid-row:3}
header.is-admin>.admin-login-badge{grid-column:2;grid-row:1;justify-self:end;position:relative;overflow:hidden;white-space:nowrap;padding:5px 10px;border:1px solid #29cab9;border-radius:20px;background:#e4fff8;color:#08756a;font-size:11px;font-weight:700;line-height:1.5;box-shadow:0 0 10px #18c9ad55}
.admin-login-badge:after{content:'';position:absolute;inset:-50% auto -50% -70%;width:45%;background:linear-gradient(90deg,transparent,#ffffffdd,transparent);transform:skewX(-20deg);animation:adminBadgeSweep 1s linear infinite;pointer-events:none}
@keyframes adminBadgeSweep{to{left:140%}}
#stages.stages>.current-stage{animation-duration:1s}.messages>.chat-status.is-current{animation-duration:1.2s}
@media(max-width:360px){header.is-admin>a{font-size:18px}header.is-admin>.admin-login-badge{font-size:10px;padding:4px 7px}}
@media(prefers-reduced-motion:reduce){.admin-login-badge:after{animation:none;display:none}}

#chat #message{border:1px solid rgba(80,105,118,.25);border-radius:8px;padding:8px;outline:none;box-shadow:none}
#chat #message:focus,#chat #message:focus-visible{border-color:rgba(80,105,118,.5);outline:none;box-shadow:none}

#chat-photo-viewer{width:96vw;max-width:1200px;height:92vh;max-height:92dvh;margin:auto;padding:0;border:0;border-radius:14px;background:#17232d;color:#fff;overflow:hidden}#chat-photo-viewer::backdrop{background:#07111bd9}.photo-viewer-tools{display:flex;align-items:center;gap:10px;padding:10px 14px;height:62px}.photo-viewer-tools>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.photo-viewer-tools>a,.photo-viewer-tools>button{display:flex;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;border:0;background:#ffffff18;color:#fff;border-radius:10px;text-decoration:none;font-size:26px;padding:0}.photo-viewer-body{height:calc(100% - 62px);overflow:auto;display:flex;align-items:center;justify-content:center;padding:8px}.photo-viewer-body img{max-width:100%;max-height:100%;object-fit:contain;touch-action:pinch-zoom}

.delete-confirm-dialog{width:calc(100% - 36px);max-width:360px;padding:23px;border:1px solid #d6e4e8;border-radius:18px;color:#244653;box-shadow:0 16px 50px #162f4933}.delete-confirm-dialog::backdrop{background:#152d4655}.delete-confirm-dialog h2{font-size:17px;margin:0 0 20px}.delete-confirm-check{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:400;margin-bottom:22px}.delete-confirm-check input{width:19px;height:19px;margin:0;accent-color:#087f83}.delete-confirm-actions{display:flex;justify-content:flex-end;gap:8px}.delete-confirm-actions button{min-width:80px}.delete-confirm-actions [data-confirm]{background:#b64141;color:#fff;border-color:#b64141}

#transfer-progress{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);width:calc(100% - 28px);max-width:430px;z-index:150;display:flex;flex-direction:column;gap:6px;pointer-events:none;max-height:40vh;overflow:auto}.transfer-row{padding:12px 15px;background:#fff;border:1px solid #c9e5e1;border-radius:13px;box-shadow:0 5px 22px #183d4930}.transfer-row>div{display:flex;gap:12px;justify-content:space-between;font-size:12px;color:#315968}.transfer-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transfer-percent{flex:none;color:#078c80;font-weight:700}.transfer-row progress{display:block;width:100%;height:7px;margin-top:8px;border:0;border-radius:8px;overflow:hidden;accent-color:#0aaf9c}.transfer-row progress::-webkit-progress-bar{background:#e5f0f0;border-radius:8px}.transfer-row progress::-webkit-progress-value{background:#0aaf9c;border-radius:8px}.transfer-row.failed .transfer-percent{color:#b43d3d}

.large-transfer{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:calc(100% - 28px);max-width:460px;z-index:155}

.case-controls>.select-all-icon{order:0}.case-controls>#trash-toggle{order:1}.case-controls>#delete-selected{order:2}

.invite-dialog{max-height:90dvh;overflow:auto}.invite-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.invite-heading button{border:0;font-size:22px}.invite-dialog>img{display:block;width:100%;max-height:40vh;object-fit:contain}.invite-dialog>p{text-align:center;margin:10px}.invite-sms{display:block;text-align:center;padding:12px}.invite-dialog>small{display:block;text-align:center}

.pdf-thumb{display:block;width:100%;max-width:240px;height:auto;background:white;border-radius:5px;min-height:100px}#chat-pdf-viewer{width:94vw;max-width:960px;height:90dvh;padding:0;border:0;border-radius:14px;background:#243340;color:white}#chat-pdf-viewer::backdrop{background:#102030bb}.pdf-pages{height:calc(100% - 120px);overflow:auto;text-align:center;padding:10px}.pdf-pages canvas{max-width:100%;height:auto;background:white}.pdf-navigation{display:flex;align-items:center;justify-content:center;gap:18px;height:58px}

.address-search-button{margin-top:7px;font-size:13px;background:#edf8f6;color:#087f83}.address-dialog{width:calc(100% - 24px);max-width:500px;height:620px;max-height:85dvh;padding:12px;border:1px solid #cddfe5;border-radius:16px}.address-dialog::backdrop{background:#16354466}.address-heading{display:flex;align-items:center;justify-content:space-between;height:44px;margin-bottom:8px}.address-heading button{border:0;font-size:24px}.address-search-frame{height:calc(100% - 52px)}

#intake [hidden]{display:none!important}.inline-address-search{margin-top:6px;border:1px solid #c8d9de;border-radius:10px;overflow:hidden;background:white}.inline-address-frame{height:190px;min-height:180px;font-weight:normal}.selected-address{display:flex;align-items:center;gap:8px;margin-top:6px;padding:10px;background:#eff8f6;border-radius:9px;font-size:14px;font-weight:normal}.selected-address>span{flex:1}.selected-address button{font-size:12px;padding:5px 9px}#address-detail:disabled{background:#edf1f3;color:#94a1a7;border-color:#dde4e8}

#intake .inline-address-frame{width:100%;height:300px;min-height:220px;max-height:340px;overflow:hidden}
#intake .inline-address-frame>div{width:100%!important;height:100%!important;min-width:0!important}
#intake .inline-address-frame iframe{display:block!important;width:100%!important;height:100%!important;min-width:0!important;border:0!important}
#intake .inline-address-search{width:100%;max-width:100%;box-sizing:border-box}

.info-edit-help{display:block;margin:8px 0 14px;color:#627d8b}.intake-edit-dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;box-sizing:border-box;border:1px solid #d5e5ec;border-radius:18px;padding:24px;color:#173d4f}.intake-edit-dialog::backdrop{background:#173d4f66}.intake-edit-dialog input,.intake-edit-dialog textarea,.intake-edit-dialog select{box-sizing:border-box;width:100%}.edit-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.edit-error{color:#b43e3e}

.repair-items{min-width:0;margin:0;padding:14px 16px;border:1px solid #d5e5ec;border-radius:12px}.repair-item-options{display:flex;flex-wrap:wrap;gap:12px 20px}.repair-item-options label{display:flex;align-items:center;gap:7px;margin:0}.repair-item-options input[type=checkbox],.intake-edit-dialog .repair-item-options input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#008c91}.repair-item-other{display:flex;align-items:center;gap:12px;margin-top:12px}.repair-item-other input{flex:1;min-width:0;width:auto}

/* Highlight only the field currently being edited. */
@property --intake-focus-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes intake-focus-orbit { to { --intake-focus-angle: 360deg; } }
#intake input:not([type=checkbox]):not([type=radio]):focus,
#intake textarea:focus,
.intake-edit-dialog input:not([type=checkbox]):not([type=radio]):focus,
.intake-edit-dialog textarea:focus,
.intake-edit-dialog select:focus {
 border: 2px solid transparent;
 outline: 2px solid #00b9b52b;
 outline-offset: 2px;
 background: linear-gradient(#fff,#fff) padding-box, conic-gradient(from var(--intake-focus-angle),#00a995,#6be8de,#168dff,#a965ed,#00a995) border-box;
 box-shadow: 0 0 11px #00b9b538;
 animation: intake-focus-orbit 1s linear infinite;
}
#intake input:not([type=checkbox]):not([type=radio]),#intake textarea,
.intake-edit-dialog input:not([type=checkbox]):not([type=radio]),.intake-edit-dialog textarea,.intake-edit-dialog select { border-width:2px; }
.repair-item-options input[type=radio],.intake-edit-dialog .repair-item-options input[type=radio]{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#008c91}
.repair-items [data-repair-history-detail][hidden]{display:none!important}
@media (prefers-reduced-motion:reduce){#intake input:focus,#intake textarea:focus,.intake-edit-dialog input:focus,.intake-edit-dialog textarea:focus,.intake-edit-dialog select:focus{animation:none}}

/* Refined intake layout, scoped to preserve conversation screens. */
.intake-card{padding:0;overflow:hidden;border:1px solid #e0e9ea;border-radius:24px;box-shadow:0 12px 40px #183b4710}
.intake-heading{padding:36px 36px 28px;background:linear-gradient(120deg,#f4faf9,#fff 75%);border-bottom:1px solid #edf1f2}
.intake-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#168d87}
.intake-heading h1{font-size:32px;letter-spacing:-1.3px;line-height:1.4;margin:10px 0}
.intake-heading p{font-size:14px;line-height:1.8;color:#73848c;margin:0}
#intake{padding:8px 36px 30px}#intake>.grid{gap:0 20px}
.intake-section-title{display:flex;align-items:center;gap:10px;margin:26px 0 18px;padding-top:12px}
.intake-section-title span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#e9f6f3;color:#15887f;font-size:11px;font-weight:700}
.intake-section-title h2{margin:0;font-size:16px;letter-spacing:-.4px;color:#243f4a}
#intake label{font-size:13px;font-weight:600;color:#425b65;margin-bottom:18px}
#intake input:not([type=radio]):not([type=checkbox]),#intake textarea{font-family:inherit;font-size:15px;line-height:1.6;padding:12px 14px;margin-top:8px;min-height:48px;border-radius:12px;border-color:#e3eaed;background-color:#fbfcfd;transition:box-shadow .18s,border-color .18s}
#intake input::placeholder,#intake textarea::placeholder{color:#a0aeb4;font-size:13px;font-weight:400}
#intake textarea{min-height:115px}#intake .repair-items,#intake .shipping-choice{border:0;background:#f7f9fa;border-radius:14px;padding:18px;margin:0 0 14px;min-width:0}
#intake fieldset legend{float:left;width:100%;padding:0;margin:0 0 12px;font-size:13px;font-weight:700;color:#425b65}
#intake fieldset legend+*{clear:both}
#intake .repair-item-options{gap:8px;display:flex;flex-wrap:wrap}
#intake .repair-item-options label{display:flex;gap:8px;align-items:center;min-height:40px;margin:0;padding:8px 12px;border:1px solid #e1e8ea;border-radius:10px;background:#fff;font-size:13px;cursor:pointer;font-weight:500;transition:background .15s,border-color .15s}
#intake .repair-item-options label:has(input:checked),#intake .shipping-choice label:has(input:checked){background:#e8f7f3;border-color:#65bdb0;color:#087d70}
#intake input[type=checkbox],#intake input[type=radio]{accent-color:#0c9486;box-shadow:none}
#intake .repair-item-other{margin:12px 0 0;font-weight:500}#intake .repair-item-other input{margin-top:0;background:#fff}
#intake [data-repair-history-detail]{margin:16px 0 0}
#intake .shipping-choice label{display:flex;align-items:center;gap:10px;background:#fff;padding:13px 14px;border:1px solid #e1e8ea;border-radius:10px;font-weight:500;margin-bottom:8px;cursor:pointer}
#intake .shipping-choice label:last-child{margin-bottom:0}#intake .shipping-choice input{width:18px;height:18px;flex:0 0 18px;margin:0}
#intake #terms{padding:14px 16px;border:1px solid #e7edef;border-radius:12px;margin:14px 0 20px;background:#fff}
#intake #terms summary{font-size:13px;padding:0;color:#4b6570}#intake #terms p{color:#6d7e86;line-height:1.9;margin-top:14px}#intake #terms .check{margin:16px 0 6px;line-height:1.7}
#intake-submit-wrap{padding-top:4px;gap:14px}#intake-submit-wrap .primary{min-height:50px;border-radius:12px;padding:12px 28px;background:linear-gradient(110deg,#087d7e,#0ba291);border:0;font-weight:700;box-shadow:0 4px 12px #0c8e8220}
#intake-submit-wrap .primary:disabled{background:#e5ebed;color:#97a5ac;box-shadow:none;opacity:1}
#intake #shipping-hint{font-size:12px}
@media(max-width:540px){.intake-card{border-radius:18px}.intake-heading{padding:26px 22px 22px}.intake-heading h1{font-size:28px}#intake{padding:2px 20px 24px}#intake>.grid{display:grid;grid-template-columns:1fr;gap:0}#intake>.grid>*{grid-column:1}.intake-section-title{margin-top:22px}#intake .repair-items,#intake .shipping-choice{padding:14px}#intake .repair-item-options label{padding:8px 10px}.intake-heading p{font-size:13px}#intake .repair-item-other{align-items:flex-start;flex-direction:column;gap:4px}#intake .repair-item-other input{width:100%}}

.fixed-mobile{display:flex;align-items:center;gap:0;margin-top:8px;border:2px solid #e3eaed;border-radius:12px;background:#fbfcfd;overflow:hidden;min-height:48px}.fixed-mobile-prefix{padding:0 16px;flex:none;color:#3c5863;font-size:15px;font-weight:700;border-right:1px solid #dce5e8}.fixed-mobile:focus-within{border-color:#13b7ab;box-shadow:0 0 11px #00b9b538;animation:glow .7s infinite alternate}#intake .fixed-mobile input,.intake-edit-dialog .fixed-mobile input{flex:1;min-width:0;width:0;border:0!important;outline:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;animation:none!important;padding:11px 14px}

.phone-validation{display:block;margin-top:6px;font-size:12px;color:#c24b49;font-weight:400}.phone-validation[hidden]{display:none!important}.fixed-mobile:has(input[aria-invalid="true"]){border-color:#d98d88}

.inline-address-results{border:1px solid #dce8eb;border-radius:12px;padding:10px;margin-top:8px;max-height:260px;overflow:auto;font-size:13px;background:white}.inline-address-results[hidden]{display:none}.inline-address-results button{width:100%;display:block;text-align:left;border:0;border-bottom:1px solid #edf2f3;border-radius:6px}.inline-address-results strong,.inline-address-results small{display:block}.inline-address-results button:hover{background:#e9f7f3}

#intake #terms .terms-checklist .check{padding:12px 0;margin:0;border-bottom:1px solid #edf1f2;font-size:13px;font-weight:400}#intake #terms .terms-all{padding:14px;border-radius:10px;background:#e9f7f3;margin:16px 0 0;font-weight:700}#intake #terms .check input{flex:0 0 18px;width:18px;height:18px}

#intake #terms .terms-all{font-size:20px;font-weight:800;min-height:68px;padding:18px 20px;gap:14px;align-items:center;cursor:pointer}#intake #terms .terms-all input[type=checkbox]{width:28px;height:28px;flex:0 0 28px;margin:0}#intake #terms .terms-all span{font-size:20px;line-height:1.4}

#intake #terms .terms-all,#intake #terms .terms-all span{font-size:22px}#intake #terms .terms-all input[type=checkbox]{width:32px;height:32px;flex-basis:32px}#intake #terms>summary{font-size:17px;font-weight:700;line-height:1.6}

#intake #terms{
 border:2px solid transparent;
 background:linear-gradient(#fff,#fff) padding-box,conic-gradient(from var(--intake-focus-angle),#09a998,#72ece0,#278df3,#a477df,#09a998) border-box;
 box-shadow:0 0 12px #0cb4aa22;
 animation:intake-focus-orbit 1s linear infinite;
}
@media(prefers-reduced-motion:reduce){#intake #terms{animation:none}}

@keyframes consent-pop{0%{transform:scale(1)}28%{transform:scale(1.035,.96)}52%{transform:scale(.985,1.06)}73%{transform:scale(1.012,.985)}100%{transform:scale(1)}}
#intake #terms .terms-all.consent-bounce{animation:consent-pop .55s ease-out 1;transform-origin:center}
@media(prefers-reduced-motion:reduce){#intake #terms .terms-all.consent-bounce{animation:none}}

#intake #terms .terms-checklist .check{border-radius:8px;transition:background-color .15s;color:#425b65}
#intake #terms .terms-checklist .check:focus-within{font-size:18px;line-height:1.8;background:#eff9f6;color:#183f49}
@media(hover:hover){#intake #terms .terms-checklist .check:hover{font-size:18px;line-height:1.8;background:#eff9f6;color:#183f49}}

#intake #terms .terms-speak{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:9px;margin-left:12px;border:1px solid #c7e6e0;border-radius:50%;background:#eff9f6;color:#078578;cursor:pointer}
.terms-speak svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#intake #terms .terms-speak[aria-pressed=true]{background:#078578;color:#fff;box-shadow:0 0 0 4px #09ad9820}
#intake #terms .terms-speak:focus-visible{outline:2px solid #168cff;outline-offset:3px}

#intake #terms .terms-checklist .check{line-height:1.8;transition:font-size .26s cubic-bezier(.22,.61,.36,1),background-color .26s ease,color .26s ease,box-shadow .26s ease}
#intake #terms .terms-checklist .check:focus-within{box-shadow:0 4px 14px #138b7910}
@media(hover:hover){#intake #terms .terms-checklist .check:hover{box-shadow:0 4px 14px #138b7910}}
@media(prefers-reduced-motion:reduce){#intake #terms .terms-checklist .check{transition:none}}

/* Overlay enlargement preserves each row's original dimensions. */
#intake #terms .terms-checklist .check,
#intake #terms .terms-checklist .check:hover,
#intake #terms .terms-checklist .check:focus-within{position:relative;font-size:13px;line-height:1.8;transition:background-color .2s ease;box-shadow:none}
#intake #terms .terms-checklist .check::after{content:attr(data-zoom-text);position:absolute;left:25px;right:0;top:50%;transform:translateY(-50%) scale(.97);transform-origin:left center;z-index:5;padding:12px 14px;border:1px solid #bfe5dc;border-radius:12px;background:#f1fbf7;box-shadow:0 6px 20px #163f4924;color:#183f49;font-size:18px;line-height:1.75;font-weight:400;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .24s cubic-bezier(.22,.61,.36,1),visibility .2s}
#intake #terms .terms-checklist .check:focus-within::after{opacity:1;visibility:visible;transform:translateY(-50%) scale(1)}
@media(hover:hover){#intake #terms .terms-checklist .check:hover::after{opacity:1;visibility:visible;transform:translateY(-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){#intake #terms .terms-checklist .check::after{transition:none}}

#intake #terms .terms-voice-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;margin:12px 0;background:#f3f8f8;border-radius:12px}
#intake #terms .terms-voice-controls label{font-size:13px;margin:0;font-weight:600}
.terms-voice-controls output{float:right;color:#078578;font-variant-numeric:tabular-nums}
#intake #terms .terms-voice-controls input[type=range]{width:100%;height:28px;min-height:28px;padding:0;border:0;background:transparent;box-shadow:none;animation:none;margin:8px 0 0;accent-color:#078578;cursor:pointer}
@media(max-width:380px){#intake #terms .terms-voice-controls{grid-template-columns:1fr}}

@keyframes consent-attention{0%,100%{background:#e9f7f3;box-shadow:0 0 0 2px #08a58c20}50%{background:#c4f2e7;box-shadow:0 0 16px #08a58c60}}
@keyframes consent-point{0%,100%{transform:translateY(2px)}50%{transform:translateY(-4px)}}
#intake #terms .terms-all.awaiting-consent{animation:consent-attention 1.2s ease-in-out infinite;flex-wrap:wrap}
#intake #terms .terms-all .consent-guide{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:14px;color:#087b69;white-space:nowrap}
#intake #terms .terms-all .consent-guide>span{font-size:25px;animation:consent-point .8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#intake #terms .terms-all.awaiting-consent,#intake #terms .terms-all .consent-guide>span{animation:none}#intake #terms .terms-all.awaiting-consent{outline:2px solid #08a58c}}

#intake #terms .terms-checklist .check::after{color:#c62828}

@keyframes reading-line-glow{0%,100%{box-shadow:0 0 0 2px #05bca480,0 0 10px #05bca425}50%{box-shadow:0 0 0 2px #2499ed,0 0 18px #2499ed45}}
#intake #terms .terms-reading{position:relative;z-index:6;background:#effbf7;border-radius:9px;animation:reading-line-glow 1.1s ease-in-out infinite;scroll-margin:100px}
#intake #terms .terms-checklist .check>span{transform-origin:left center;transition:transform .3s ease,color .3s ease}
#intake #terms .terms-checklist .check.terms-reading>span{transform:scale(1.035);color:#c62828}
#intake #terms .terms-checklist .check.terms-reading::after{opacity:1;visibility:visible;transform:translateY(-50%) scale(1);box-shadow:0 4px 18px #0ba18b35;border-color:#0bbda5}
@media(prefers-reduced-motion:reduce){#intake #terms .terms-reading{animation:none;outline:2px solid #08a58c}#intake #terms .terms-checklist .check>span{transition:none}}

#intake-submit .submit-hand{display:none}#intake-submit.intake-ready .submit-hand{display:inline-block;margin-left:8px;animation:consent-point .6s ease-in-out infinite}
#intake-submit-wrap #intake-submit.intake-ready{border:2px solid transparent;background:linear-gradient(#078b80,#078b80) padding-box,conic-gradient(from var(--intake-focus-angle),#79ffe0,#138cff,#eaa2ff,#79ffe0) border-box;animation:intake-focus-orbit .7s linear infinite;box-shadow:0 0 16px #00b6a64a}
@media(prefers-reduced-motion:reduce){#intake-submit-wrap #intake-submit.intake-ready,#intake-submit.intake-ready .submit-hand{animation:none}}

.carrier-dialog{width:min(720px,calc(100vw - 28px));max-height:85vh;padding:22px;border:1px solid #dce8eb;border-radius:18px;color:#193642;background:#fff}.carrier-dialog::backdrop{background:#17374766}.carrier-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:19px}.carrier-dialog-top button{font-size:24px;padding:0;width:44px}.carrier-dialog .ship-carrier-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.carrier-dialog .ship-carrier{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #e1eaed;border-radius:12px}.carrier-dialog .ship-carrier-logo{width:65px;max-height:42px;object-fit:contain}.carrier-dialog .ship-carrier-copy{flex:1;min-width:0}.carrier-dialog .ship-carrier-copy strong,.carrier-dialog .ship-carrier-copy small{display:block}.carrier-dialog .ship-carrier-call{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;background:#e9f7f3;border-radius:10px}.carrier-dialog .ship-carrier-call svg{width:20px;height:20px}.carrier-dialog .ship-carriers>p{font-size:13px;color:#627982}@media(max-width:600px){.carrier-dialog .ship-carrier-grid{grid-template-columns:1fr}}

header nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 48px}
header nav>#carrier-info{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;padding:10px 8px;border:1px solid #d7e5e9;border-radius:13px;background:#fff;color:#315260;font-size:13px;font-weight:700;line-height:1.4}
header nav>#copy,header nav>#login{min-width:0}
@media(max-width:540px){
 header nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;grid-template-areas:"carrier carrier carrier" "copy login sound";gap:8px}
 header nav>#carrier-info{grid-area:carrier;min-height:42px;border-radius:11px}
 header nav>#copy{grid-area:copy}
 header nav>#login{grid-area:login}
 header nav>.sound-control{grid-area:sound;width:44px;height:48px;padding:8px}
 header nav>#copy,header nav>#login{font-size:12px;padding:10px 4px;gap:5px}
}

#intake .shipping-immediate-notice{margin:14px 0 0;padding:14px 16px;border:1px solid #efc5bb;background:#fff3ee;border-radius:10px;color:#b44730;font-size:16px;font-weight:700}
#intake .shipping-immediate-notice[hidden]{display:none}
#intake.shipping-not-ready>.grid>*:not(:first-child):not(.shipping-choice){display:none!important}
#intake.shipping-not-ready>#terms,#intake.shipping-not-ready>#intake-submit-wrap,#intake.shipping-not-ready>#error{display:none!important}

header nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;grid-template-areas:"copy login sound"}
header nav>#copy{grid-area:copy}header nav>#login{grid-area:login}header nav>.sound-control{grid-area:sound}
.intake-carrier-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;min-height:44px;padding:10px 16px;border:1px solid #bfe2dc;border-radius:11px;background:#edf9f5;color:#087e73;font-size:14px;font-weight:700}
.intake-carrier-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:540px){header nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;grid-template-areas:"copy login sound"}}

#intake-submit-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 14px}
#intake-submit-wrap #shipping-hint{order:0;flex:0 0 auto;white-space:nowrap;word-break:keep-all;margin:0;line-height:1.6}
#intake-submit-wrap #intake-submit{order:1;flex:0 0 auto;width:auto}
@media(max-width:540px){#intake-submit-wrap #shipping-hint{flex-basis:100%;text-align:right;font-size:12px}#intake-submit-wrap #intake-submit{min-width:130px}}

.quote-decision{padding:16px;margin:12px 0;border:1px solid #cfe5df;border-radius:13px;background:#f0faf7;color:#23564e}.quote-choice-buttons{display:flex;gap:10px;margin-top:12px}.quote-choice-buttons button{flex:1;min-height:48px;font-weight:700}.quote-decision.withdraw{background:#fff4ee;border-color:#efd4c6;color:#a35031}.quote-decision.proceed{font-weight:700}

.repair-title-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}.repair-title-row h1{margin:0}#repair-shortcut{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#087f83;background:#edf9f5;padding:8px 11px;white-space:nowrap}.repair-shortcut-dialog{width:min(460px,calc(100vw - 32px));max-height:85vh;border:1px solid #d7e7e9;border-radius:18px;padding:24px;color:#193642}.repair-shortcut-dialog::backdrop{background:#16384666}.shortcut-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:20px}

.repair-title-row{justify-content:flex-start;gap:12px}.repair-title-row #repair-shortcut{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.45;padding:6px 10px;font-size:12px;flex-shrink:0}

.repair-title-row #repair-shortcut{flex-direction:row;align-items:center;gap:8px}.shortcut-icon-badge{width:36px;height:36px;object-fit:contain;border-radius:8px;flex-shrink:0}.shortcut-button-label{display:flex;flex-direction:column;line-height:1.45;text-align:left}

.repair-title-row{display:flex;flex-wrap:nowrap;align-items:center;gap:10px}
.repair-title-row h1{min-width:0;flex:1;margin:0;overflow-wrap:anywhere}
.repair-title-row #repair-shortcut{flex:0 0 auto;margin:0}
@media(max-width:540px){.repair-title-row{gap:8px}.repair-title-row h1{font-size:clamp(17px,4.7vw,23px);letter-spacing:-.7px;line-height:1.4}.repair-title-row #repair-shortcut{padding:6px;gap:5px;font-size:11px}.repair-title-row .shortcut-icon-badge{width:30px;height:30px}}

#quote-composer{width:min(580px,calc(100vw - 28px))}.quote-file-drop{padding:20px;text-align:center;border:2px dashed #9ecfc6;border-radius:12px;background:#eff9f6}.quote-file-drop p{font-size:14px}.quote-files>div{display:flex;align-items:center;justify-content:space-between;gap:10px;overflow-wrap:anywhere;margin-top:8px}.quote-error{color:#b44730}.quote-file-drop.file-drag{background:#d8f6ee;border-color:#0b9e89}

.quote-decision:has([data-quote-choice]){border:2px solid #20b8a2;background:#effbf7;padding:20px;scroll-margin:90px;box-shadow:0 0 14px #10b39c25}.quote-decision>strong{font-size:20px}.quote-choice-buttons{display:grid;grid-template-columns:1fr 1fr}.quote-choice-buttons button{font-size:16px;min-height:52px}

#required-quote{width:min(680px,calc(100vw - 24px));max-height:90dvh;box-sizing:border-box;border:1px solid #cce5df;border-radius:18px;padding:22px;background:#fff;color:#193642;overflow:auto}#required-quote::backdrop{background:#102f41bb}#required-quote .required-quote-files{max-height:62dvh;overflow:auto;margin:16px 0}#required-quote .attachment-media{width:100%;margin-bottom:12px}#required-quote .attachment-file{width:100%;display:flex;flex-direction:column;align-items:center}#required-quote img,#required-quote canvas{max-width:100%;height:auto;max-height:55dvh;object-fit:contain}#required-quote .quote-choice-buttons{position:sticky;bottom:0;background:white;padding:12px 0 0}#required-quote .required-quote-error{color:#b44730}

.case-controls #repair-shortcut{order:-1;display:inline-flex;align-items:center;gap:6px;width:auto;min-width:0;height:44px;padding:4px 8px;margin:0;font-size:11px;background:#edf9f5;flex-shrink:0}.case-controls #repair-shortcut .shortcut-icon-badge{width:30px;height:30px}.case-controls{align-items:center}

/* Repair billing: scoped styles, readable on narrow mobile screens. */
.payment-card{margin:16px 0 20px;border:1px solid #e2e8e7;border-radius:20px;background:#fff;overflow:hidden;padding:26px;box-shadow:0 8px 28px #17394709;color:#193642}.payment-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px}.payment-eyebrow{font-size:12px;font-weight:800;letter-spacing:.04em;color:#087f83}.payment-tag{padding:5px 10px;background:#fff5c5;color:#6b5500;font-size:11px;font-weight:700;border-radius:30px}.payment-card .payment-intro{margin:0 0 4px;font-size:14px;color:#65777b}.payment-total{font-size:clamp(30px,6vw,42px);font-weight:800;letter-spacing:-.05em;line-height:1.35;margin-bottom:24px;font-variant-numeric:tabular-nums}.payment-total>span{font-size:16px;font-weight:500;letter-spacing:0;margin-left:7px}.payment-bank{position:relative;padding:22px;border:1px solid #eee9c5;border-top:5px solid #ffe300;border-radius:14px;background:#fffef5}.payment-bank-logo{display:block;width:112px;height:auto;margin:0 0 20px}.payment-bank-name{font-size:12px;color:#676655;margin-bottom:4px}.payment-account{font-size:clamp(18px,4.8vw,25px);font-weight:750;letter-spacing:.02em;overflow-wrap:anywhere;color:#1e1e1e}.payment-holder{font-size:13px;color:#72705f;margin-top:5px}.payment-holder strong{color:#333;margin-left:5px}.payment-card .payment-copy{margin-top:17px;width:100%;min-height:42px;background:white;border:1px solid #ddd9be;color:#373625;font-size:13px;display:flex;align-items:center;justify-content:center;gap:9px}.payment-card .payment-submit{width:100%;margin-top:20px;min-height:54px;border:0;background:#ffe300;color:#1e1e1e;font-weight:800;font-size:16px;display:flex;align-items:center;justify-content:center;gap:12px}.payment-card .payment-submit:hover{background:#f1d700}.payment-card .payment-help{font-size:12px;text-align:center;color:#6a7b7b;margin:10px 0 0;line-height:1.6}.payment-card .payment-edit{margin-top:18px;width:100%;background:#eef7f5;border:1px solid #cee1dd;color:#087f83}.payment-card.is-paid .payment-tag{color:#087661;background:#e2f4eb}.payment-next{display:flex;align-items:flex-start;gap:12px;margin-top:20px;padding:17px;background:#eff8f4;border-radius:12px}.payment-next>span{flex:none;background:#128268;color:white;border-radius:50%;width:25px;height:25px;text-align:center}.payment-next strong{font-size:15px}.payment-next small{display:block;font-size:12px;margin-top:4px;line-height:1.6}.billing-composer{box-sizing:border-box;width:470px;max-width:calc(100vw - 28px);max-height:90vh;overflow:auto;border:0;border-radius:22px;padding:30px;background:white;color:#193642;box-shadow:0 24px 80px #001f3b44}.billing-composer::backdrop{background:#082b3e80}.billing-composer h2{font-size:23px;margin:9px 0}.billing-description{font-size:13px;color:#637b83;margin-bottom:25px}.billing-composer label{font-size:13px;margin-bottom:8px}.billing-amount-wrap{display:flex;align-items:center;border:2px solid #087f83;border-radius:13px;background:#f8fcfb;padding:4px 16px}.billing-amount-wrap input{width:100%;min-width:0;border:0;background:transparent;font-size:30px;font-weight:800;text-align:right;outline:none;padding:10px 8px;margin:0}.billing-amount-wrap span{font-size:18px}.billing-account-preview{margin:20px 0;padding:18px;border-radius:12px;background:#fffdf0;border-top:3px solid #ffe300}.billing-account-preview img{width:100px;height:auto;display:block;margin-bottom:12px}.billing-account-preview p{font-size:15px;font-weight:700;margin:0;overflow-wrap:anywhere}.billing-account-preview p span{display:block;font-size:12px;font-weight:400;color:#6f776d;margin-top:5px}.billing-error{font-size:13px;color:#b33535;min-height:1em}.billing-actions{display:flex;gap:8px}.billing-actions button{flex:1;padding:12px 8px;font-size:13px}.billing-actions button.primary{flex:2}@media(max-width:420px){.payment-card{padding:18px;border-radius:16px}.payment-bank{padding:17px}.billing-composer{padding:22px}.payment-card-head{margin-bottom:18px}.payment-total>span{font-size:14px}}

#shipment-photo-composer{width:min(580px,calc(100vw - 28px));max-height:88dvh;overflow:auto;border:0;box-shadow:0 22px 70px #122e3940;padding:26px;border-radius:20px}#shipment-photo-composer h2{margin-bottom:8px}.shipment-description{font-size:13px;color:#647b83}.shipment-drop{display:flex;flex-direction:column;align-items:center;gap:9px;padding:26px 16px;border:2px dashed #9fcfc7;border-radius:15px;background:#f0faf7;text-align:center}.shipment-drop.file-drag{border-color:#087f83;background:#d8f5e9}.shipment-photo-symbol{font-size:40px;line-height:1.1;color:#087f83}.shipment-drop strong{font-size:15px}.shipment-drop>span:not(.shipment-photo-symbol){font-size:12px;color:#627d79}.shipment-drop button{margin-top:5px;background:white;border-color:#a6cec6}.shipment-previews{display:grid;gap:10px;margin-top:16px}.shipment-preview{display:flex;align-items:center;gap:12px;padding:10px;background:#f5f8f9;border-radius:12px}.shipment-preview img{width:72px;height:72px;object-fit:contain;background:white;border-radius:6px}.shipment-preview>div{flex:1;min-width:0}.shipment-preview strong{display:block;font-size:13px;overflow-wrap:anywhere}.shipment-preview small{display:block;margin-top:4px}.shipment-preview button{flex:none;font-size:23px;padding:3px 10px}.shipment-error{color:#ad3434;font-size:13px;margin:12px 0 0}.shipment-progress{font-size:13px;color:#087f83;margin:8px 0 0}#status-menu [data-shipment-photo]{font-weight:800;color:#087f83;background:#edf9f5}#shipment-photo-composer input[hidden]{display:none} @media(max-width:420px){#shipment-photo-composer{padding:20px}.shipment-drop{padding:22px 10px}.shipment-drop strong{font-size:14px}}

.shipment-address-notice{display:flex;flex-direction:column;gap:7px;margin:16px 0;padding:20px;border:1px solid #e7ce79;border-left:5px solid #e9b82f;border-radius:13px;background:#fffae9;color:#614c13}.shipment-address-notice>span{font-size:12px;font-weight:700}.shipment-address-notice strong{font-size:19px;line-height:1.5}.shipment-address-notice small{color:#756333;font-size:13px}

.payment-confirm-request{margin-top:20px;border:1px solid #e5cd82;border-radius:13px;padding:17px;background:#fff9e7}.payment-confirm-request strong{font-size:15px;color:#624d11}.payment-confirm-request p{font-size:12px;line-height:1.65;margin:8px 0 12px;color:#756843}.payment-confirm-request button{width:100%;font-weight:700}

#required-shipment-address{width:min(780px,calc(100vw - 24px));max-height:94dvh;overflow:auto;padding:24px;border:0;border-radius:20px;background:white;color:#193642;box-shadow:0 24px 90px #102b3b66}#required-shipment-address::backdrop{background:#102b3bbb}.shipment-address-heading>span{font-size:12px;font-weight:800;color:#087f83}.shipment-address-heading h2{font-size:22px;margin:8px 0}.shipment-address-heading p{font-size:13px;color:#627982;margin:0 0 17px}.shipment-address-photo{padding:10px;text-align:center;background:#eef3f5;border:1px solid #dce6e9;border-radius:12px;overflow:auto;max-height:57dvh}.shipment-address-photo img{display:block;max-width:100%;max-height:53dvh;height:auto;margin:auto;object-fit:contain;cursor:zoom-in}.shipment-address-photo img[hidden]{display:none}.shipment-address-photo p{padding:22px 10px;font-size:13px}.shipment-address-choices{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;position:sticky;bottom:-24px;background:white;padding:16px 0 8px}.shipment-address-choices button{font-size:14px;font-weight:700;min-height:50px;padding:10px 5px}.shipment-address-choices [data-address-choice=wrong]{background:#fff3ec;border-color:#ebc3b1;color:#984421}.shipment-address-error{color:#ad3434;font-size:13px;margin:10px 0 0}.shipment-address-change{padding-top:16px}.shipment-address-change>div{display:flex;gap:8px;margin-top:14px}.shipment-address-change>div button{flex:1}.shipment-address-change small{display:block;font-size:12px}.shipment-address-result{margin:12px 0;padding:15px;border:1px solid #d6e4e5;border-radius:12px;background:#f2f7f8;font-size:14px}.shipment-address-result.address-ok{color:#0c725d;background:#eaf8f1;border-color:#b7dfcb}.shipment-address-result.address-attention{color:#913c21;background:#fff0e6;border:2px solid #e4aa86}.shipment-address-result p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.shipment-address-result small{display:block;color:inherit;margin-top:6px}#required-shipment-address [hidden]{display:none!important}@media(max-width:420px){#required-shipment-address{padding:18px}.shipment-address-heading h2{font-size:19px}.shipment-address-choices{gap:6px;bottom:-18px}.shipment-address-choices button{font-size:12px}.shipment-address-photo{max-height:52dvh}}

header nav>#login[hidden]{display:none!important}header:not(.is-admin) nav{grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"copy sound"}

#chat-pdf-viewer .pdf-pages canvas{max-width:none;display:block;margin:0 auto}#chat-pdf-viewer .pdf-navigation{gap:7px;padding:6px;flex-wrap:nowrap}#chat-pdf-viewer .pdf-navigation button{min-width:36px;padding:6px 9px}#chat-pdf-viewer .pdf-page-count{white-space:nowrap;font-size:13px}#chat-pdf-viewer [data-fit]{font-size:12px;min-width:58px}#required-quote .pdf-thumb{width:100%;max-width:100%;object-fit:contain}

#required-quote .attachment-media{max-width:100%}#chat-photo-viewer [data-original]{width:auto;min-width:76px;font-size:12px;padding:0 8px}#chat-photo-viewer.original-size .photo-viewer-body{display:block}#chat-photo-viewer.original-size img{max-width:none;max-height:none;width:auto;height:auto;display:block;margin:auto}#chat-video-viewer{width:96vw;max-width:1200px;height:90dvh;margin:auto;padding:0;border:0;border-radius:14px;background:#17232d;color:white;overflow:hidden}#chat-video-viewer::backdrop{background:#07111bd9}#chat-video-viewer video{width:100%;height:calc(100% - 62px);object-fit:contain;background:#000}

.repair-queue{margin:16px 0 4px;padding:18px 22px;border:1px solid #b8e4df;border-radius:16px;background:linear-gradient(120deg,#e6f8f4,#f5fbff);color:#17646b;display:flex;align-items:center;justify-content:space-between;gap:12px}.repair-queue>strong{font-size:28px;color:#008c8b}.repair-queue>strong small{font-size:15px;margin-left:5px}.repair-queue form{width:100%;margin:0}.repair-queue form>label{font-weight:700}.repair-queue form>small{display:block;margin-top:10px;font-size:12px;color:#607e88}.queue-controls{display:flex;align-items:center;gap:10px;margin-top:10px}.queue-controls input{width:120px;margin:0}.queue-controls button{margin:0;min-width:80px}.queue-position{margin:14px 0;padding:14px 16px;background:#eefaf7;border-radius:12px;border-left:4px solid #00aaa0}.queue-position strong{display:block;font-size:19px;color:#087f83}.queue-position small{display:block;margin-top:7px;line-height:1.6;color:#577881}.queue-current-status{font-size:14px;color:#577881}

header.is-admin nav{grid-template-columns:minmax(0,1fr) minmax(200px,1fr) minmax(0,1fr) 48px;grid-template-areas:"copy queue login sound";align-items:center}header nav>.repair-queue{grid-area:queue;margin:0;padding:9px 12px;min-width:0}header nav>.repair-queue form>label{font-size:12px;display:block;margin:0}header nav .queue-controls{margin-top:5px;gap:5px}header nav .queue-controls input{width:65px;min-width:0;height:32px;padding:4px 6px}header nav .queue-controls button{min-width:44px;padding:5px;height:32px;font-size:12px}header nav .queue-controls>span{font-size:12px}@media(max-width:620px){header.is-admin nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;grid-template-areas:"copy login sound" "queue queue queue"}header nav>.repair-queue form{display:flex;align-items:center;justify-content:space-between;gap:8px}header nav .queue-controls{margin:0}}

header.is-admin nav>#copy{display:none!important}header.is-admin nav{grid-template-columns:minmax(240px,1fr) minmax(0,1fr) 48px;grid-template-areas:"queue login sound"}header nav>.repair-queue form{display:flex;align-items:center;justify-content:center;gap:8px}header nav .queue-controls{margin:0}header nav #queue-saved-count[hidden]{display:none}@media(max-width:540px){header.is-admin nav{grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"queue queue" "login sound"}}

/* Persistent heartbeat with a soft ambient halo. */
.queue-position{position:relative;isolation:isolate;border:1px solid #74d8d0;border-left:4px solid #00aaa0;background:linear-gradient(115deg,#e5fbf6,#f1fbff);padding:18px 20px;box-shadow:0 4px 18px #00a99c19}
.queue-position::before{content:"";position:absolute;inset:-4px;border-radius:16px;z-index:-1;pointer-events:none;box-shadow:0 0 18px 3px #00bca84a,0 0 36px 7px #39c8e526;opacity:.4;animation:queue-ambient 2.8s ease-in-out infinite}
.queue-position strong{font-size:clamp(19px,4.7vw,25px);font-weight:800;line-height:1.45;transform-origin:left center;animation:queue-heartbeat 2.8s ease-in-out infinite;text-shadow:0 0 12px #00bba52e}
.queue-position small{position:relative;font-size:12px}
@keyframes queue-heartbeat{0%,38%,100%{transform:scale(1)}12%{transform:scale(1.035)}20%{transform:scale(1)}29%{transform:scale(1.025)}}
@keyframes queue-ambient{0%,45%,100%{opacity:.3}14%{opacity:.9}23%{opacity:.5}32%{opacity:.75}}
@media(prefers-reduced-motion:reduce){.queue-position strong,.queue-position::before{animation:none}.queue-position::before{opacity:.45}}

#attach-tray.pending-previews,.quote-files.pending-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:start}#attach-tray.pending-previews[hidden]{display:none}.pending-preview{position:relative;margin:0;min-width:0;overflow:hidden;border:1px solid #c4ddd9;border-radius:12px;background:#fff;box-shadow:0 3px 10px #153f4910}.pending-preview-media{height:160px;background:#edf3f5;display:flex;align-items:center;justify-content:center}.pending-preview-media img,.pending-preview-media video{display:block;width:100%;height:100%;object-fit:contain}.pending-preview-media img{cursor:zoom-in}.pending-preview figcaption{padding:10px 12px}.pending-preview figcaption strong{display:block;font-size:12px;overflow-wrap:anywhere;padding-right:12px}.pending-preview figcaption small{display:block;color:#648087;font-size:11px;margin-top:5px}.pending-preview .pending-preview-remove{position:absolute;right:6px;top:6px;width:28px!important;height:28px;min-height:28px!important;padding:0!important;border:1px solid #d0dcdf;border-radius:50%;background:#fffffff0;color:#284653;font-size:20px;line-height:24px}.pending-file-icon{font-size:27px;font-weight:800;color:#087f83}.pending-preview-error{display:block;padding:8px;color:#985231;font-size:11px}.pending-preview-error[hidden]{display:none}

.pending-preview-media{position:relative}.pending-preview-media canvas{display:block;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in}.pending-pdf-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#edf3f5;font-size:12px;color:#426974}

@font-face{font-family:HwsPretendard;src:url('/extend/hws-pretendard-regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
body{font-family:HwsPretendard,'Pretendard','Apple SD Gothic Neo','Malgun Gothic',sans-serif;letter-spacing:-.02em}input,textarea,select,button{font-family:inherit}input[type=file][hidden]{display:none!important}
#quote-composer{padding:28px;border:1px solid #dbe9e9;border-radius:24px;box-shadow:0 24px 80px #102f4133;background:linear-gradient(160deg,#fff 65%,#f2faf8);max-height:90dvh;overflow:auto}#quote-composer::backdrop{background:#193b4b66;backdrop-filter:blur(4px)}.quote-heading{display:flex;gap:14px;align-items:center;margin-bottom:24px}.quote-heading-icon{display:grid;place-items:center;width:48px;height:48px;flex:none;background:#e4f6f2;border-radius:15px;color:#087f83}.quote-heading-icon svg,.quote-upload-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#quote-composer h2{font-size:22px;font-weight:800;letter-spacing:-.04em;margin:0 0 4px}.quote-heading p{font-size:12px;color:#72858e;margin:0}#quote-composer label{font-size:13px;color:#3d5864;font-weight:700}#quote-composer textarea{font-family:inherit;font-size:14px;line-height:1.7;letter-spacing:-.015em;padding:14px 16px;border-radius:13px;min-height:110px;outline:none}#quote-composer textarea:focus{border-color:#19a99d;box-shadow:0 0 0 3px #14b8a615}#quote-composer textarea::placeholder{color:#97a7ad}.quote-file-drop{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 16px;border:1.5px dashed #a7d7cf;border-radius:16px;background:#f0faf7}.quote-file-drop .quote-upload-icon{display:grid;place-items:center;width:58px;height:58px;min-height:58px;padding:0;border:1px solid #c4e5df;border-radius:18px;background:white;color:#008c83;box-shadow:0 5px 16px #088a8014;transition:transform .18s,box-shadow .18s}.quote-upload-icon:hover{transform:translateY(-2px);box-shadow:0 8px 20px #088a8026}.quote-upload-icon:focus-visible{outline:3px solid #72cfc5;outline-offset:3px}.quote-file-drop strong{font-size:14px;font-weight:600;color:#37615e}.quote-file-drop p{font-size:12px;color:#79918c;margin:0}#quote-composer .shortcut-actions{gap:10px;margin-top:22px}#quote-composer .shortcut-actions button{font-size:14px;font-weight:700;border-radius:12px;padding:11px 20px}#quote-composer [data-send]{background:linear-gradient(120deg,#088b87,#087b8d);border:0;box-shadow:0 5px 14px #078b8225}@media(max-width:480px){#quote-composer{padding:20px;border-radius:19px}.quote-heading{gap:10px}.quote-heading p{font-size:11px}.quote-file-drop strong{font-size:12px}}

#billing-composer{width:min(620px,calc(100vw - 28px));max-height:90dvh;overflow:auto}.completion-photo-section{margin:22px 0}.completion-photo-section h3{font-size:14px;color:#37615e;margin:0 0 10px}.completion-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-top:12px}#billing-composer .billing-actions{position:sticky;bottom:-1px;background:white;padding-top:14px}

.attachment-type-icon{display:inline-flex;align-items:center;vertical-align:middle}.attachment-type-icon svg{width:48px;height:54px}.pending-file-icon .attachment-type-icon svg{width:64px;height:72px}

#completion-payment-popup{width:min(680px,calc(100vw - 24px));max-height:92dvh;padding:0;border:1px solid #c6e1dc;border-radius:22px;background:#f7fbfa;color:#193642;overflow:hidden;box-shadow:0 24px 80px #163c4833}#completion-payment-popup::backdrop{background:#173b4c99;backdrop-filter:blur(3px)}.completion-payment-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 22px;background:white;border-bottom:1px solid #e0ece9}.completion-payment-header span{font-size:12px;color:#098c83;font-weight:700}.completion-payment-header h2{font-size:21px;margin:4px 0 0}.completion-payment-header button{width:38px;min-height:38px;height:38px;padding:0;border-radius:50%;font-size:24px}.completion-payment-scroll{max-height:calc(92dvh - 140px);overflow-y:auto;overscroll-behavior:contain;padding:18px;scrollbar-gutter:stable}.completion-payment-photos h3{font-size:14px;color:#466c72;margin:0 0 12px}.completion-payment-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:22px}.completion-payment-media .attachment-media,.completion-payment-media .attachment-file{width:100%;max-width:100%}.completion-payment-media img,.completion-payment-media canvas,.completion-payment-media video{width:100%;max-height:440px;object-fit:contain}.completion-payment-media .attachment-media{padding:10px;border:1px solid #dce8e4;border-radius:12px;background:white}.completion-payment-account .payment-card{margin:0}.completion-payment-guide{font-size:11px;text-align:center;line-height:1.5;margin:0;padding:10px;background:white;color:#66828a}.completion-payment-open{margin:12px 0}@media(max-width:480px){.completion-payment-header{padding:16px}.completion-payment-header h2{font-size:18px}.completion-payment-scroll{padding:12px}.completion-payment-media{grid-template-columns:minmax(0,1fr)}}

/* Include connector space in each wrapped row before centering. */
#stages.stages{justify-content:center;column-gap:0;row-gap:18px;padding:8px 2px 12px}#stages.stages>button,#stages.stages>.status-dropdown{margin-left:28px}#stages.stages>:first-child{margin-left:0}

@media(max-width:600px){
 #stages.stages{justify-content:center;column-gap:0;row-gap:14px;padding:8px 0 12px}
 #stages.stages>button,#stages.stages>.status-dropdown{flex:0 0 calc((100% - 48px)/2);width:calc((100% - 48px)/2);min-width:0;max-width:150px;margin-left:24px}
 #stages.stages>:first-child{margin-left:0}
 #stages.stages>button~button:before,#stages.stages>.status-dropdown:before{left:-24px;width:20px;text-align:center}
 #stages.stages>button,#stages.stages>.status-dropdown>.change-status{padding:10px 4px;font-size:12px;white-space:normal;word-break:keep-all;text-align:center}
 #stages.stages>.status-dropdown>.change-status{width:100%;height:100%}
}

.intake-shipping-buttons{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;margin-top:18px}.intake-shipping-buttons .intake-carrier-button{margin-top:0}.intake-shipping-buttons svg{flex:none}.repair-shipping-address-card{padding:20px;margin:18px 0;background:#eef9f6;border:1px solid #c7e5de;border-radius:14px}.repair-shipping-address-card small,.repair-shipping-address-card strong{display:block}.repair-shipping-address-card strong{font-size:18px;line-height:1.6;margin-top:6px;word-break:keep-all}.repair-shipping-address-card p{margin:12px 0 0;color:#577980}@media(max-width:480px){.intake-shipping-buttons .intake-carrier-button{font-size:12px;padding:9px 10px}.intake-shipping-buttons{gap:6px}}

.required-quote-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.required-quote-heading h2{margin:0}.required-quote-heading [data-quote-close]{width:38px;height:38px;min-height:38px;flex:none;padding:0;border-radius:50%;font-size:24px;line-height:1}

.shipment-upload-action{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;margin:14px 0;border:1px solid #9cdacf;border-radius:16px;background:#edf9f5}.shipment-upload-action strong{color:#087f83;font-size:17px}.shipment-upload-action p{font-size:12px;color:#5d7d82;margin:6px 0 0}.shipment-upload-action button{display:flex;align-items:center;justify-content:center;gap:8px;flex:none;font-weight:700}.shipment-upload-action svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}@media(max-width:540px){.shipment-upload-action{flex-direction:column;align-items:stretch}.shipment-upload-action button{width:100%}}

#intake #terms .terms-intro{position:relative}
#intake #terms .terms-intro::after{content:attr(data-zoom-text);position:absolute;left:0;right:0;top:50%;transform:translateY(-50%) scale(.97);transform-origin:left center;z-index:5;padding:12px 14px;border:1px solid #bfe5dc;border-radius:12px;background:#f1fbf7;box-shadow:0 6px 20px #163f4924;color:#c62828;font-size:18px;line-height:1.75;font-weight:400;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .24s cubic-bezier(.22,.61,.36,1),visibility .2s}
#intake #terms .terms-intro.terms-reading::after{opacity:1;visibility:visible;transform:translateY(-50%) scale(1);box-shadow:0 4px 18px #0ba18b35;border-color:#0bbda5}
@media(prefers-reduced-motion:reduce){#intake #terms .terms-intro::after{transition:none}}

/* Keep intake guidance on its own row above the submit button. */
#intake-submit-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:12px;padding-top:12px}
#intake-submit-wrap #shipping-hint{order:0;flex:0 0 auto;max-width:100%;white-space:normal;text-align:right;line-height:1.6;margin:0}
#intake-submit-wrap #intake-submit{order:1;flex:0 0 auto;margin:0;max-width:100%}

#admin-payment-confirm-popup{position:fixed;inset:0;width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;margin:24px auto auto;border:0;border-radius:20px;padding:20px;background:#fff;box-shadow:0 20px 70px #123b4550;overflow:auto}
#admin-payment-confirm-popup::backdrop{background:rgb(13 40 48 / 55%);backdrop-filter:blur(3px)}
#admin-payment-confirm-popup .payment-confirm-request{margin:0}
#admin-payment-confirm-popup button{min-height:48px}

.admin-shipment-set{margin-top:22px;padding-top:18px;border-top:1px solid #dbe8eb}.admin-shipment-set h3{margin:0 0 14px}.admin-shipment-set [data-help]{font-size:13px;color:#587582}.admin-shipment-set [data-later]{display:block;margin:12px auto 0}.admin-shipment-set [data-later][hidden]{display:none}.admin-shipment-set .shipment-preview img{max-height:180px;object-fit:contain}

.return-method-fields{border:1px solid #b5d9dc;border-radius:14px;padding:16px;margin:20px 0;display:grid;gap:12px}.return-method-fields legend{font-weight:700;color:#087e85}.return-method-fields label{display:flex;gap:8px;align-items:center}.return-method-fields input[type=radio]{width:20px;height:20px}.return-method-fields .return-address{display:grid}.return-method-fields p{font-size:13px;line-height:1.7;color:#587582}

#quick-customer-popup{width:min(480px,calc(100% - 32px));box-sizing:border-box;border:1px solid #a7e1dc;border-radius:22px;padding:30px;background:#fff;box-shadow:0 20px 70px #123b4550}#quick-customer-popup h2{font-size:24px;color:#087e85;margin:12px 0 16px}#quick-customer-popup p{line-height:1.8;color:#587582;margin:0}#quick-customer-popup::backdrop{background:rgb(13 40 48 / 55%);backdrop-filter:blur(3px)}

.popup-chat-badge{display:block;margin:0 0 16px auto!important;width:auto!important;min-height:38px;padding:8px 15px;border:1px solid #77d2cb;border-radius:999px;background:#e5faf7;color:#067e80;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.popup-chat-badge:hover{background:#cbf2ed}.popup-chat-badge:focus-visible{outline:3px solid #17b9b0;outline-offset:3px}

/* Completed cases retain their status styling without the ambient animation. */
#stages.stages.situation-ended>.current-stage,.messages.situation-ended>.chat-status.is-current{animation:none!important;box-shadow:none!important}

/* Preserve the light chat palette regardless of OS dark-mode preference. */
:root{color-scheme:only light}html,body{color-scheme:only light;background-color:#f3f7f8;color:#193642}dialog,input,textarea,select,button{color-scheme:only light}

header #copy{display:none!important}.customer-title-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}.customer-title-actions #sound-control{margin:0;flex-shrink:0}.repair-title-row:has(.customer-title-actions){flex-wrap:wrap}.repair-title-row:has(.customer-title-actions) h1{flex:1 1 auto}

.customer-brand-contact{display:flex;align-items:center;gap:10px;max-width:100%}.customer-brand-contact>a{font-size:22px;font-weight:700;color:#087f83;text-decoration:none;white-space:nowrap}.customer-contact-icons{display:flex;align-items:center;gap:4px}.customer-contact-icons a{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e6f7f4;color:#087f83}.customer-contact-icons svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-title-actions #sound-control{display:grid;place-items:center;box-sizing:border-box;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px;padding:6px!important;border-radius:10px;flex:0 0 38px}.customer-title-actions #sound-control svg{width:24px!important;height:24px!important}.customer-title-actions #sound-control[data-sound-state=on]{background:#e2f8eb;border-color:#a4dcb9;color:#116b3e}.customer-title-actions #sound-control[data-sound-state=off]{background:#fff2f2;border-color:#e7baba;color:#a92e2e}
@media(max-width:400px){.customer-brand-contact{gap:6px}.customer-brand-contact>a{font-size:19px}}

#sound-control[data-sound-state=pending]{background:#e2f8eb;border-color:#a4dcb9;color:#116b3e}

#intake #terms.speech-active .terms-checklist .check:not(.terms-reading)::after{opacity:0!important;visibility:hidden!important;transform:translateY(-50%) scale(.97)!important}
#intake #terms.speech-active .terms-checklist .check:not(.terms-reading)>span{transform:none!important;color:inherit!important}

.repair-notice-dialog{width:min(600px,calc(100vw - 28px));max-height:88dvh;overflow:auto;box-sizing:border-box;padding:24px;border:1px solid #b7ded9;border-radius:20px;background:#fff;color:#193642}.repair-notice-dialog::backdrop{background:#16384688}.repair-notice-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;padding:16px;background:#eff9f7;border-radius:12px}#repair-notice-manage{white-space:nowrap;grid-column:1/-1}

#repair-notice-manage a{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border:1px solid #badad6;border-radius:10px;text-decoration:none;font-size:13px}.repair-entry-notices details{border-bottom:1px solid #dce8eb;padding-bottom:12px}.repair-entry-notices .repair-notice-content{margin:10px 0;max-height:45dvh;overflow:auto}

header.is-admin{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px}header.is-admin>#repair-notice-write{grid-column:2;grid-row:1;font-size:11px;font-weight:700;white-space:nowrap;padding:5px 9px;border:1px solid #b8ddd7;border-radius:20px;background:#effaf7;color:#08756a;text-decoration:none;line-height:1.5}header.is-admin>.admin-login-badge{grid-column:3}@media(max-width:420px){header.is-admin>a:first-child{font-size:17px}header.is-admin{column-gap:5px}header.is-admin>#repair-notice-write{font-size:10px;padding:5px 7px}}

#customer-latest-notice{width:calc(100% - 32px);max-width:768px;margin:0 auto 14px;border:1px solid #cfe7e4;border-radius:12px;background:#fff;overflow:hidden}#customer-latest-notice>summary{padding:11px 14px;font-size:14px;line-height:1.5;color:#087f83;overflow-wrap:anywhere}#customer-latest-notice .customer-notice-body{padding:0 14px 14px;font-size:14px;color:#193642}#customer-latest-notice .customer-notice-body>div{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;padding:12px 0;border-top:1px solid #e4efed}#customer-latest-notice .customer-notice-body>button{display:block;margin-left:auto;padding:6px 16px;min-height:36px;font-size:13px}

#customer-latest-notice.notice-unread{border:2px solid #00b9a7;animation:noticeAmbientPulse 1.4s ease-in-out infinite}#customer-latest-notice.notice-unread>summary{font-weight:800}@keyframes noticeAmbientPulse{0%,100%{box-shadow:0 0 5px #00bfa555,inset 0 0 3px #00bfa522;background:#fff}50%{box-shadow:0 0 22px #00c9b5aa,0 0 8px #00c9b588,inset 0 0 12px #00c9b533;background:#d9fff5}}@media(prefers-reduced-motion:reduce){#customer-latest-notice.notice-unread{animation:none;box-shadow:0 0 14px #00c9b588;background:#d9fff5}}

header>.customer-brand-contact{width:100%;min-width:0}header .customer-brand-contact>#sound-control{margin-left:auto;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;padding:7px;border-radius:50%;display:grid;place-items:center}header .customer-brand-contact>#sound-control svg{width:20px;height:20px}header .customer-brand-contact>.customer-contact-icons{flex-shrink:0}@media(max-width:380px){header .customer-brand-contact{gap:6px}header .customer-brand-contact>a{font-size:19px}}

header.is-admin{grid-template-columns:minmax(0,1fr) auto auto auto}header.is-admin>#auto-customer-sync{grid-column:3;grid-row:1;display:flex;flex-direction:column;gap:3px}#auto-customer-sync label{display:flex;align-items:center;gap:5px;font-size:11px;margin:0;white-space:nowrap}#auto-customer-sync input{width:15px;height:15px;margin:0;accent-color:#087f83}header.is-admin>.admin-login-badge{grid-column:4}@media(max-width:640px){header.is-admin{grid-template-columns:1fr auto auto}header.is-admin>a:first-child{grid-column:1/-1}header.is-admin>#repair-notice-write{grid-column:1;grid-row:2;justify-self:start}header.is-admin>#auto-customer-sync{grid-column:2;grid-row:2}header.is-admin>.admin-login-badge{grid-column:3;grid-row:2}header.is-admin>span:not(.admin-login-badge){grid-row:3}header.is-admin>nav{grid-row:4}}

.customer-case-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}.customer-case-actions>button,.customer-case-actions>select{box-sizing:border-box;height:44px;min-height:44px;margin:0;font:inherit;line-height:1.2}.customer-case-actions>button{flex:0 0 auto}.customer-case-actions>select{flex:1 1 auto;min-width:0;max-width:100%;padding:0 32px 0 12px}.repair-items input:disabled+span{opacity:.45}

#completion-payment-popup.visit-schedule-dialog{display:flex;flex-direction:column;max-height:90dvh;overflow:hidden}#completion-payment-popup.visit-schedule-dialog .completion-payment-scroll{flex:1 1 auto;min-height:0;overflow:auto}#completion-payment-popup .visit-schedule-form{flex:0 0 auto;margin:0;padding:14px 20px;background:#fff;border-top:1px solid #cce5e6}#completion-payment-popup .visit-schedule-form label{display:flex;align-items:center;gap:12px;font-weight:700}#completion-payment-popup .visit-schedule-form input{flex:1;min-width:0;height:44px}#completion-payment-popup .visit-schedule-form button{margin-top:8px;min-height:46px}#completion-payment-popup .visit-schedule-form p:empty{display:none}

/* Guidance stays before the submit button in one row; text may wrap within its column. */
#intake #intake-submit-wrap{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:14px;box-sizing:border-box;width:100%;min-width:0;padding-top:12px}
#intake #intake-submit-wrap #shipping-hint{position:static;transform:none;order:0;flex:1 1 0;min-width:0;max-width:none;margin:0;font-size:16px;font-weight:700;line-height:1.5;text-align:right;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;color:#a52d2d}
#intake #intake-submit-wrap #intake-submit{order:1;flex:0 0 auto;width:auto;min-width:104px;max-width:none;margin:0;padding:12px 18px;white-space:nowrap}

#repair-shipping-address-dialog .repair-shipping-address-card .contact-phone{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;white-space:nowrap;margin:6px 0 0}
#repair-shipping-address-dialog .contact-phone .contact-action{box-sizing:border-box;flex:0 0 36px;width:36px;height:36px;margin:0;padding:0;vertical-align:middle}
#repair-shipping-address-dialog .contact-phone .contact-action svg{display:block;flex:none;width:19px;height:19px}
@media(max-width:360px){#repair-shipping-address-dialog .repair-shipping-address-card{padding:14px}#repair-shipping-address-dialog .contact-phone{font-size:14px;gap:6px}}

#intake .intake-next-field{display:block;position:relative;width:100%;min-width:0}
#intake .intake-next-field>input,#intake .intake-next-field>textarea{box-sizing:border-box;width:100%;padding-right:52px}
#intake .intake-next-button{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:0;margin:0;padding:9px;border:0;border-radius:10px;background:#e5f6f3;color:#078487}
#intake .intake-next-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

#intake label.address-unused-choice{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-height:32px;margin:0;padding:0;font-size:15px;line-height:1.4;cursor:pointer}
#intake label.address-unused-choice[hidden]{display:none!important}
#intake label.address-unused-choice>input[type="checkbox"]{position:static;display:block;flex:0 0 18px;box-sizing:border-box;width:18px;height:18px;min-width:18px;min-height:18px;margin:0;padding:0;transform:none;accent-color:#078487}

#large-transfer{position:fixed;top:max(16px,env(safe-area-inset-top));bottom:auto;z-index:2147483647;pointer-events:none}#large-transfer .transfer-row{border:2px solid #079e94;box-shadow:0 6px 24px #133a4940}#large-transfer .transfer-percent{font-size:16px}#large-transfer progress{height:10px}

/* Upload status belongs directly below the conversation, above the composer. */
#large-transfer{position:static;inset:auto;transform:none;box-sizing:border-box;width:100%;max-width:none;margin:0;z-index:auto;pointer-events:none}
#large-transfer .transfer-row{padding:6px 10px;border:0;border-radius:0;background:#f0faf8;box-shadow:none}
#large-transfer .transfer-row>div{font-size:11px;gap:8px;align-items:center}
#large-transfer .transfer-label{flex:1;min-width:0}
#large-transfer .transfer-percent{font-size:11px;white-space:nowrap}
#large-transfer progress{height:3px;margin-top:4px}

.messages #large-transfer,.shared-upload-message{box-sizing:border-box;width:90%;max-width:420px;margin:10px 8px 10px auto;border-radius:12px;overflow:hidden;background:#fff9bf;padding:10px}.shared-upload-message strong,.shared-upload-message span,.shared-upload-message small{display:block;overflow-wrap:anywhere}.shared-upload-message span{font-weight:700;color:#087e80;margin:6px 0}.shared-upload-message progress{width:100%;height:5px;accent-color:#079a91}.shared-upload-message small{font-size:11px;color:#657a7e}
