/* Desktop layout is preserved. These shared corrections also fit phone browsers. */
:root{--web-muted:#63748b;--web-ink:#21354e;--web-line:#dfe7f1}
html[data-web-role=chat]{--accent:#7836b4;--o-accent:#7836b4;--o-navy:#532581;--triq-nav-accent:#7836b4}
html[data-web-role=employee]{--accent:#c15b14;--o-accent:#c15b14;--o-navy:#91440e;--triq-nav-accent:#c15b14}
input,textarea,select,[contenteditable]{caret-color:var(--accent,#1559b4)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent,#1559b4);outline-offset:3px}
[hidden]{display:none!important}
.web-locked-field,select:disabled,input[readonly]{background:#f0f2f5!important;color:#677384!important;border-color:#dfe3e9!important}
body #app .web-status{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:max-content!important;max-width:100%;flex:0 0 auto;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font-size:11px!important;line-height:1.35!important;padding:4px 8px!important;border-radius:7px!important}
.web-status-pair{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;max-width:100%}.web-status-pair [data-secondary]{order:-1}
body #app [data-status-tone=waiting]{background:#fff3da!important;color:#805300!important}body #app [data-status-tone=progress]{background:#e7effd!important;color:#24598c!important}body #app [data-status-tone=hold]{background:#fff0e1!important;color:#934c00!important}body #app [data-status-tone=resolved]{background:#e4f5ec!important;color:#176742!important}body #app [data-status-tone=closed]{background:#eef0f4!important;color:#586373!important}body #app [data-status-tone=overdue]{background:#fde9ec!important;color:#a12f42!important}
.o-ticket-header .o-person{min-width:0;flex:1 1 120px}.o-ticket-header .o-controls{justify-content:flex-end;max-width:100%}.o-ticket-header .web-status-pair{margin-block:6px}
body #app .r40-employee-card,body #app .r40-employee-identity{padding:18px;margin-block:14px;min-height:0;border-radius:14px}
body #app .r40-employee-form .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
body #app .r40-employee-form .field{margin:0;min-width:0;gap:5px}body #app .r40-employee-form .field.full{grid-column:1/-1}
body #app .r40-employee-form input:not([type=checkbox]):not([type=hidden]),body #app .r40-employee-form select{box-sizing:border-box;max-width:100%;width:100%;height:40px;min-height:40px;padding:8px 11px;font-size:13px;border-radius:9px}
.r38-previous-proposals{padding:12px 16px!important;min-height:0!important}.r38-previous-proposals summary{cursor:pointer;font-weight:600}
body #app .r40-employee-identity .detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0 0 10px}.r40-employee-identity .detail-list>div{margin:0;padding:0;border:0;min-width:0}.r40-employee-identity dt{font-size:11px;color:var(--web-muted)}.r40-employee-identity dd{font-size:13px;overflow-wrap:anywhere;margin:0}
body #app .r40-country-picker{padding:0!important;border:0!important;background:transparent!important;min-height:0!important}
.r40-country-picker [data-country-controls]{display:grid;grid-template-columns:1fr 1fr;gap:10px}.r40-country-picker .onboarding-country-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.r40-country-picker .onboarding-chip{min-height:32px;border-radius:18px;font-size:12px}
.r40-country-picker>[data-country-selected-field],.r40-country-picker>label[for=selected-country-names],.r40-country-picker>[data-country-count],.r40-country-picker [data-add-country],.r40-country-picker>.help{display:none!important}
body #app .r40-permissions{padding:14px!important;border:1px solid var(--web-line);border-radius:12px;min-width:0;margin:0}
.r40-permissions .r38-enable{display:flex;gap:9px;align-items:center;margin-bottom:12px}.r40-permission-controls{display:grid;gap:10px}.r40-access-label{display:grid;gap:6px;font-size:13px;font-weight:600}.r40-ticket-actions{border:1px solid var(--web-line);border-radius:9px;padding:10px 12px}.r40-ticket-actions summary{cursor:pointer;min-height:24px;font-weight:600;font-size:13px}.r40-ticket-actions label,.r40-money-option{display:flex;align-items:center;gap:8px;min-height:36px;font-size:13px}.r40-permissions input[type=checkbox]{width:18px;height:18px;min-width:18px;accent-color:var(--accent)}.r40-permissions .help{margin:0!important}
.r40-ticket-invoice{padding:16px!important;margin:14px 0 0!important;background:#f7f9fc;border:1px solid var(--web-line);border-radius:12px;grid-column:1/-1}.r40-invoice-actions button{font-size:12px;min-height:38px;border-radius:9px;color:var(--accent)}
html body dialog.r40-invoice-preview[open]{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:min(1000px,calc(100vw - 32px))!important;height:calc(100dvh - 32px)!important;max-height:calc(100dvh - 32px)!important;max-width:1000px!important;min-height:0!important;overflow:hidden!important;padding:0!important;border:1px solid var(--web-line)!important;border-radius:14px!important;background:#fff!important;z-index:1000}
.r40-invoice-preview iframe{height:calc(100% - 68px)!important;min-height:0!important;max-height:none!important}.r40-invoice-preview::backdrop{background:#12345970;backdrop-filter:blur(3px)}
.web-last-account{display:flex;align-items:center;flex-wrap:wrap;border:1px solid var(--web-line);border-radius:12px;padding:12px;margin-top:16px;gap:8px}.web-last-use{display:flex;gap:10px;align-items:center;flex:1;border:0;background:transparent;text-align:left;color:var(--web-ink);padding:0;min-width:0}.web-last-use>span:last-child{display:grid;gap:4px}.web-last-use small{font-size:11px;color:var(--web-muted)}.web-last-forget{border:0;background:#f0f3f8;color:var(--web-muted);border-radius:50%;font-size:19px;width:30px;height:30px}.web-last-account p{flex:1 1 100%;margin:4px 0 0}
.r38-login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;font-size:12px}.triq-save-login{display:flex;align-items:center;gap:7px;font-size:12px}.triq-save-login input{width:17px!important;height:17px!important;min-height:17px!important;accent-color:var(--accent)}
body #app [data-chat-category]{position:relative;padding-right:66px!important}.web-chat-type{position:absolute;right:8px;bottom:14px;font-size:9px;font-weight:600;padding:3px 5px;border-radius:5px;line-height:1.3;background:#edf2fa;color:#336499;max-width:72px;overflow-wrap:normal}
[data-chat-category=department] .web-chat-type{background:#f2ecfc;color:#7043a2}[data-chat-category=external] .web-chat-type{background:#e7f6f4;color:#29796f}
.web-draft-preview{display:block;max-width:64px;max-height:48px;object-fit:cover;border-radius:6px}.web-draft-preview:is(audio){max-width:220px;width:100%;height:36px}.chat-pending>*:has(.web-draft-preview){display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body #app .o-attachment-choices{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.o-attachment-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;padding:8px 4px!important;font-size:11px!important}
html body dialog.web-recorder[open]{position:fixed!important;inset:auto 16px max(20px,env(safe-area-inset-bottom))!important;margin:0 auto!important;transform:none!important;width:min(520px,calc(100vw - 32px))!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 40px)!important;max-width:520px!important;border:1px solid var(--web-line);border-radius:16px;background:#fff;padding:20px!important;overflow:auto!important;color:var(--web-ink)}
.web-recorder h2{font-size:18px;margin:0 0 10px}.web-recorder-status{font-size:13px;line-height:1.5;color:var(--web-muted)}.web-recorder-timer{display:block;text-align:center;font-size:28px;font-variant-numeric:tabular-nums;margin:12px}.web-recorder audio{width:100%;height:42px}.web-recorder .actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.web-recorder .btn{min-height:38px;font-size:12px;border:1px solid var(--web-line);border-radius:8px;padding:8px 12px;background:#fff;color:var(--web-ink)}.web-recorder .primary{background:var(--accent);color:#fff}.web-wave{--level:0;display:block;margin:12px auto;width:80%;height:calc(4px + 30px * var(--level));min-height:4px;border-radius:20px;background:var(--accent);transition:height .1s}
.web-app-actions{margin-top:18px!important}.web-app-actions .btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin-right:8px}.web-sound-prefs{margin:16px 0 0;padding:12px;border:1px solid var(--web-line);border-radius:10px;font-size:12px}.web-sound-prefs summary{font-weight:600;cursor:pointer;min-height:24px}.web-sound-prefs form{display:grid;gap:12px;margin-top:12px}.web-sound-enable{display:flex;align-items:center;gap:8px}.web-sound-prefs .field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}.web-sound-prefs select{min-height:38px;border:1px solid var(--web-line);border-radius:8px;font:inherit}.web-sound-prefs button{font-size:11px!important}
body .triq-message-center[data-kind=success],body .triq-message-center.success{background:#3b4145df;color:#fff;box-shadow:0 5px 20px #10232a22;border-radius:10px;font-size:12px;backdrop-filter:blur(8px)}
.web-chat-bottom{display:none}
.web-employee-dashboard{margin:-18px -18px 18px}.web-employee-brand{position:sticky;top:0;z-index:7;isolation:isolate;background:#c35d16;color:#fff;padding:18px 24px 16px;display:grid;grid-template-columns:100px 1fr;gap:4px 22px;align-items:center}.web-employee-brand img{grid-row:1/4;width:calc(92px - 32px * var(--web-home-collapse,0));height:auto;filter:brightness(0) invert(1);transition:width .1s}.web-employee-brand h1{font-size:22px!important;margin:0!important}.web-employee-brand p{margin:0;line-height:1.4;font-size:12px}.web-employee-brand>div{font-size:12px;opacity:.9}.web-employee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 24px}.web-employee-grid>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:112px!important;border:1px solid var(--web-line);background:#fff;color:var(--web-ink);border-radius:12px;font-size:13px!important;font-weight:600;white-space:normal}.web-employee-symbol{display:grid;place-items:center;width:38px;height:38px;background:#fff1e5;border-radius:12px;color:#b15412}.web-employee-symbol svg{width:23px;height:23px}.web-employee-home-details{display:none!important}
@media(max-width:800px){
 .web-employee-dashboard{margin:-14px -14px 14px}.web-employee-brand{padding:14px 16px;grid-template-columns:72px 1fr;gap:3px 12px}.web-employee-brand img{width:calc(68px - 20px * var(--web-home-collapse,0))}.web-employee-grid{padding:14px;gap:9px}.web-employee-grid>button{min-height:102px!important;font-size:12px!important;padding:10px 6px!important}
 html[data-web-role=chat] #app .o-main:has(~.web-chat-bottom),html[data-web-role=chat] #app .o-main{padding-bottom:88px!important}
 .web-chat-bottom{position:fixed;display:flex;inset:auto 12px max(10px,env(safe-area-inset-bottom));z-index:45;align-items:center;justify-content:space-around;border:1px solid #ffffffb0;background:#ffffffdb;backdrop-filter:blur(20px) saturate(1.3);-webkit-backdrop-filter:blur(20px) saturate(1.3);border-radius:21px;box-shadow:0 6px 25px #1d274528;padding:7px}
 .web-chat-bottom button{display:grid;justify-items:center;gap:4px;flex:1;border:0;border-radius:14px;background:transparent;color:#6b7180;font-size:10px;min-height:46px}.web-chat-bottom button.selected{color:#7836b4;background:#f2eafa}.web-chat-bottom svg{width:22px;height:22px}
 .r40-country-picker [data-country-controls]{grid-template-columns:1fr}body #app .r40-employee-form .fields{grid-template-columns:1fr;gap:12px}.r40-employee-identity .detail-list{grid-template-columns:1fr!important}
 body #app .r40-employee-form input:not([type=checkbox]):not([type=hidden]),body #app .r40-employee-form select{font-size:16px;min-height:44px;height:44px}
 .r38-login-options{align-items:flex-start;font-size:11px}.triq-save-login{font-size:11px}.web-status-pair{max-width:100%}
 .web-sound-prefs .field{grid-template-columns:minmax(0,1fr) auto}.web-sound-prefs select{width:100%;font-size:13px}
}
@media(max-width:359px){.web-employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.web-employee-brand h1{font-size:18px!important}}
@media(prefers-reduced-motion:reduce){.web-employee-brand img,.web-wave{transition:none}}
html body #app .r40-permissions input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;flex:0 0 18px!important;margin:0!important;padding:0!important}
html body #app .r40-permissions .r38-enable,html body #app .r40-permissions .r40-money-option,html body #app .r40-permissions .r40-ticket-actions>label{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;width:auto!important;white-space:normal!important}
.web-message-reactions{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--web-line);padding-bottom:8px;margin-bottom:6px}.web-message-reactions button{min-width:30px!important;min-height:30px!important;font-size:17px!important;padding:4px!important;background:transparent!important;border:0!important}.chat-message-actions .chat-action-list{z-index:20;max-width:min(320px,calc(100vw - 40px));max-height:50dvh;overflow:auto}
html body .triq-loading-layer{position:fixed!important;inset:0!important;z-index:10000!important;background:#dce3eb55!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.triq-loading-layer .triq-loader-mark{position:absolute;top:50%;left:50%;width:120px;height:80px;transform:translate(-50%,-50%);background:var(--accent,#1559b4);mask:url('/assets/triq-logo-blue.png') center/contain no-repeat;-webkit-mask:url('/assets/triq-logo-blue.png') center/contain no-repeat;overflow:hidden}
.triq-loader-mark:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffffaa,transparent);transform:translateX(-100%);animation:web-triq-glow 1.5s ease-in-out infinite}@keyframes web-triq-glow{to{transform:translateX(100%)}}@media(prefers-reduced-motion:reduce){.triq-loader-mark:after{animation:none}}
html body.triq-loading-active #app{filter:none!important}html body .triq-loader-mark{top:50%!important;background:var(--accent,#1559b4)!important}html body .triq-loader-mark:after{animation:web-triq-glow 1.5s ease-in-out infinite!important;opacity:1!important}@media(prefers-reduced-motion:reduce){html body .triq-loader-mark:after{animation:none!important}}
html body #triq-centered-messages:has([data-kind=success]){position:fixed!important;inset:auto auto 24px 50%!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100vw - 32px)!important;pointer-events:none!important;z-index:10100!important}
html body .triq-centered-message[data-kind=success]{background:#3b4145df!important;border:1px solid #ffffff33!important;color:#fff!important;box-shadow:0 5px 22px #17293526!important;border-radius:10px!important;min-width:0!important;max-width:440px!important;padding:10px 38px 10px 14px!important;font:12px/1.45 Inter,system-ui,sans-serif!important;pointer-events:auto!important}
.triq-centered-message[data-kind=success] .triq-message-title{display:none!important}.triq-centered-message[data-kind=success] p{margin:0!important;color:inherit!important}.triq-centered-message[data-kind=success] .triq-message-close{color:#fff!important}
@media(max-width:800px){html[data-web-role=chat] body #triq-centered-messages:has([data-kind=success]){bottom:88px!important}}
html[data-web-role=processor] body #app :is(button.primary,.btn.primary,.f-chat-btn,.o-chat-room [type=submit],.o-nav.selected){background:#10805a!important;border-color:#10805a!important;color:#fff!important}
html[data-web-role=employee] body #app :is(button.primary,.btn.primary,.f-chat-btn,.o-chat-room [type=submit],.o-nav.selected){background:#bd5914!important;border-color:#bd5914!important;color:#fff!important}
html[data-web-role=chat] body #app :is(button.primary,.btn.primary,.f-chat-btn,.o-chat-room [type=submit],.o-nav.selected){background:#7836b4!important;border-color:#7836b4!important;color:#fff!important}
body #app .o-ticket-detail .o-ownership{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}body #app .o-ticket-detail .o-ownership :is(small,b){word-break:normal!important;overflow-wrap:normal!important;line-height:1.45!important}
body #app .o-ticket-chat .o-ticket-detail [data-action$=ticket-chat]{display:none!important}
body #app .triq-voice-message{display:flex;align-items:center;gap:9px;width:min(310px,100%);max-width:100%;min-width:0;padding:10px;border:1px solid var(--web-line);border-radius:12px;background:#fff}.triq-voice-play,.triq-voice-speed{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:0;border-radius:50%;background:#edf2fa;color:var(--accent);font:600 11px Inter,system-ui}.triq-voice-play svg{width:19px;height:19px}.triq-voice-track{flex:1;min-width:0}.triq-voice-wave{height:25px;display:flex;align-items:center;justify-content:space-between;gap:2px}.triq-voice-wave i{flex:1;min-width:1px;height:5px;border-radius:2px;background:var(--accent);opacity:.5}.triq-voice-track input[type=range]{display:block;min-height:16px!important;height:16px;width:100%;padding:0!important;accent-color:var(--accent)}.triq-voice-meta{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--web-muted)}
html body dialog.web-rate-app[open]{position:fixed;inset:0;margin:auto;padding:22px;border:1px solid var(--web-line);border-radius:16px;max-width:440px;width:calc(100vw - 32px);height:fit-content;color:var(--web-ink);background:#fff}.web-rate-app h2{font-size:18px}.web-rate-app p{font-size:13px;line-height:1.6}.web-rate-app .btn{display:inline-flex;align-items:center;margin-right:8px;padding:9px 12px;border:1px solid var(--web-line);border-radius:8px;text-decoration:none;background:white;color:var(--accent)}
.web-my-id code{display:inline-block;max-width:100%;font-size:13px;color:var(--web-ink);overflow-wrap:anywhere;background:#f0f4f9;padding:10px;border-radius:8px;margin:0 10px 8px 0}.web-my-id .btn{margin:0 8px 8px 0}
.web-employee-brand{padding-block:calc(18px - 8px * var(--web-home-collapse,0))}.web-employee-brand h1{font-size:calc(22px - 3px * var(--web-home-collapse,0))!important}
@media(max-width:800px){.web-employee-brand{padding-block:calc(14px - 6px * var(--web-home-collapse,0))}.web-employee-brand h1{font-size:calc(22px - 3px * var(--web-home-collapse,0))!important}}
