:root{color-scheme:light;--ink:#192642;--muted:#75829b;--stroke:#e6ebf3;--blue:#3865d8;--nav:#111c35;--panel:#fff;--canvas:#f5f7fc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-size:14px}input,textarea,button,select{font:inherit}button{cursor:pointer}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #83a7ff;outline-offset:2px}input,textarea,select{border:1px solid #d9e1ef;background:#fff;padding:11px 13px;border-radius:10px;color:var(--ink);max-width:100%}textarea{resize:vertical}h1,h2,h3,p{margin-top:0}.muted{color:var(--muted)}.small{font-size:12px}.small-muted{color:#8895ab;font-size:12px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.2em;color:#99adce;font-weight:800}.button{border:0;padding:12px 17px;border-radius:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button.primary{background:var(--blue);color:#fff}.button.light{background:white;color:#2e50af}.button.outline{background:#fff;border:1px solid var(--stroke);color:#43516d}.button:disabled{opacity:.45;cursor:not-allowed}.button.full{width:100%}.button:hover:not(:disabled){filter:brightness(.96)}.admin-layout{min-height:100vh}.sidebar{width:240px;position:fixed;left:0;top:0;bottom:0;display:flex;flex-direction:column;background:var(--nav);color:#e8efff;padding:28px 13px;z-index:30}.sidebar-logo{display:flex;align-items:center;gap:11px;padding:2px 13px 30px}.logo-symbol{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#3c67dd;font-size:23px}.sidebar-logo strong,.sidebar-logo small{display:block}.sidebar-logo strong{font-size:18px}.sidebar-logo small{font-size:9px;letter-spacing:.23em;color:#9baccc;margin-top:6px}.side-caption{font-size:10px;letter-spacing:.22em;color:#7286aa;margin:10px 15px 14px;font-weight:700}.sidebar nav{display:grid;gap:5px}.sidebar nav button{width:100%;background:transparent;border:0;text-align:left;padding:13px 14px;border-radius:11px;color:#a9b6d0;font-weight:600;font-size:13px;display:flex;align-items:center}.sidebar nav button:hover,.sidebar nav button.active{background:#28385d;color:#fff}.counter{margin-left:auto;background:#e8f0ff26;border-radius:50px;padding:2px 7px;font-size:11px}.side-bottom{margin-top:auto;padding:13px 13px 4px;border-top:1px solid #293853}.side-bottom>p{display:flex;align-items:center;gap:11px;margin:12px 0}.side-bottom strong,.side-bottom small{display:block}.side-bottom small{color:#8fa2c7;font-size:11px;margin-top:5px}.avatar{background:#4d6de0;width:35px;height:35px;display:grid;place-items:center;border-radius:12px;font-weight:800}.logout{color:#97acce;background:transparent;border:0;padding:8px 0;font-size:12px}.main-shell{margin-left:240px;min-height:100vh}.topbar{height:100px;padding:24px min(4vw,50px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--stroke)}.topbar small{font-size:10px;letter-spacing:.2em;color:var(--muted)}.topbar h1{font-size:25px;margin:6px 0 0;letter-spacing:-.04em}.toolbar{display:flex;align-items:center;gap:11px;color:#54637e;font-size:12px}.toolbar select{padding:8px}.live-led{width:8px;height:8px;border-radius:50%;background:#21b47e;box-shadow:0 0 0 4px #e4f9f0}.main-shell main{padding:37px min(4vw,50px) 65px;max-width:1600px;margin:auto}.screen{display:none}.screen.active{display:block}.hero-panel{background:linear-gradient(120deg,#2145ac,#3869d7 65%,#6b93ed);color:white;padding:42px 45px;border-radius:18px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.hero-panel>div:first-child{max-width:560px;z-index:1}.hero-panel h2{font-size:clamp(26px,3vw,39px);letter-spacing:-.035em;font-weight:700;margin:9px 0 13px}.hero-panel p:not(.eyebrow){color:#deebff;line-height:1.8}.hero-panel .button{margin-top:18px}.hero-graphic{font-size:230px;opacity:.18;line-height:.7}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:23px 0 34px}.metric-card{border:1px solid var(--stroke);border-radius:16px;background:#fff;padding:23px}.metric-card small{display:block;color:var(--muted);font-size:12px}.metric-card strong{display:block;font-size:32px;margin-top:14px;letter-spacing:-.04em}.metric-card span{display:inline-block;margin-top:8px;color:#3a8e78;font-size:11px}.section-title{font-size:18px;margin:36px 0 18px}.table-card{background:white;border:1px solid var(--stroke);border-radius:15px;overflow:hidden;min-height:70px}.data-row{display:grid;grid-template-columns:75px minmax(120px,1fr) minmax(120px,1fr) 140px;gap:16px;border-bottom:1px solid #f0f2f7;padding:18px 20px;align-items:center;font-size:13px}.data-row:last-child{border-bottom:0}.data-row:hover{background:#fbfcff}.data-row strong{display:block}.data-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.tag{display:inline-flex;background:#edf3ff;color:#315bb6;padding:5px 10px;border-radius:99px;font-size:11px;font-weight:700}.tag.closed{background:#f1f3f6;color:#8390a2}.empty{color:var(--muted);padding:35px;text-align:center}.inbox-layout{display:grid;grid-template-columns:minmax(235px,31%) 1fr;gap:16px;min-height:620px;height:calc(100vh - 204px);max-height:850px}.thread-panel,.chat-panel{background:#fff;border:1px solid var(--stroke);border-radius:17px;overflow:hidden;display:flex;flex-direction:column;min-height:0}.panel-head,.chat-head{border-bottom:1px solid var(--stroke);padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-head strong{font-size:15px}.pill{font-size:10px;background:#e7f8ef;color:#1a9866;border-radius:30px;padding:5px 11px}.thread-list{overflow-y:auto;flex:1}.thread{display:block;text-align:left;width:100%;padding:17px 18px;border:0;border-bottom:1px solid #eef1f6;background:white;color:var(--ink)}.thread:hover,.thread.selected{background:#f0f4fc}.thread-top{display:flex;justify-content:space-between;gap:8px}.thread-top strong{font-size:13px}.thread-top small{color:#8b96a7;font-size:10px}.thread p{font-size:12px;color:#75829c;margin:10px 0 5px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.thread small{color:#a0a8b8}.chat-head h2{font-size:16px;margin:0 0 6px}.chat-head p{margin:0;font-size:11px;max-width:380px;word-break:break-all}.flex-gap{display:flex;gap:9px;align-items:center}.chat-head select{width:140px;padding:9px}.chat-head .button{font-size:12px;padding:10px}.chat-messages{flex:1;overflow:auto;padding:23px;min-height:100px;background:#fafbff}.chat-line{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:17px}.chat-line.mine{align-items:flex-end}.chat-line.system{align-items:center}.chat-bubble{display:block;max-width:min(75%,440px);background:#fff;border:1px solid #e3e8f1;padding:12px 15px;border-radius:14px 14px 14px 3px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:13px}.mine .chat-bubble{background:var(--blue);color:#fff;border-color:var(--blue);border-radius:14px 14px 3px 14px}.system .chat-bubble{background:#eef2f7;color:#7d8ca5;border-radius:14px;font-size:11px}.chat-line time{font-size:10px;color:#9aa7bb;margin-top:6px}.chat-compose{padding:15px 17px;border-top:1px solid var(--stroke);display:flex;gap:12px;align-items:end}.chat-compose textarea{flex:1;max-height:150px}.chat-compose .button{height:44px}.section-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-bar p{margin:0}.form-card{max-width:820px;background:#fff;border:1px solid var(--stroke);border-radius:18px;padding:28px;margin:22px 0}.form-card h2{font-size:21px}.form-card label,.auth-card label{display:block;font-size:12px;font-weight:700;color:#52617e;margin-bottom:17px}.form-card label input,.form-card label textarea,.form-card label select,.auth-card label input,.auth-card label textarea{display:block;margin-top:8px;width:100%}.cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check{display:flex!important;align-items:center;gap:9px}.check input{width:auto!important}.site-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.site-card{background:#fff;border:1px solid var(--stroke);border-radius:15px;padding:25px}.site-card strong{font-size:17px}.site-card p{font-size:12px;color:var(--muted);line-height:1.6}.site-card pre{white-space:pre-wrap;word-break:break-all;background:#f4f6fa;border-radius:10px;padding:13px;font-size:10px;line-height:1.7;color:#465677}.site-card .button{font-size:12px;padding:9px 12px}#toast{position:fixed;bottom:23px;right:23px;background:#1a2a45;color:white;border-radius:12px;padding:14px 20px;box-shadow:0 20px 45px #0013;display:none;max-width:400px;z-index:50}#toast.visible{display:block}.main-shell footer{padding:24px 50px;color:#7c8ba3;border-top:1px solid var(--stroke);font-size:11px}.main-shell footer span{font-weight:700;color:#4c5f87}.auth-body{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 90% 10%,#e3ecff,transparent 45%),#f6f8fd}.auth-card{background:white;width:min(100%,430px);border:1px solid var(--stroke);border-radius:20px;padding:37px;box-shadow:0 28px 80px #26477c12}.auth-card.installer{max-width:760px;width:min(100%,760px)}.mark{width:53px;height:53px;border-radius:17px;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:28px;margin-bottom:24px}.auth-card h1{font-size:29px;letter-spacing:-.04em}.auth-card>.muted{line-height:1.7;margin-bottom:27px}.auth-card form{margin:23px 0 20px}.auth-card .full{margin-top:8px}.notice{padding:13px;border-radius:10px}.notice.error{background:#fff0f0;color:#ab2637}.auth-card .small-muted{margin-top:23px}#mobileMenu{display:none}@media(max-width:1080px){.sidebar{width:205px}.main-shell{margin-left:205px}.topbar{padding:20px}.main-shell main{padding:25px}.metric-grid{gap:10px}.metric-card{padding:17px}.inbox-layout{grid-template-columns:240px 1fr}.chat-head{flex-direction:column;align-items:flex-start}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:0 0 45px #1b2c5838}.sidebar.open{transform:translateX(0)}#mobileMenu{display:block;background:transparent;border:0;font-size:24px;margin-right:12px}.main-shell{margin:0}.topbar{height:80px;justify-content:start}.toolbar{margin-left:auto}.toolbar .online-label{display:none}.metric-grid{grid-template-columns:repeat(2,1fr)}.hero-panel{padding:27px}.hero-graphic{display:none}.inbox-layout{display:flex;flex-direction:column;height:auto;max-height:none}.thread-panel{height:220px;min-height:220px}.chat-panel{height:570px}.data-row{grid-template-columns:50px 1fr 90px;gap:10px}.data-row>:nth-child(3){display:none}.cols{grid-template-columns:1fr}.main-shell footer{padding:22px}.form-card{padding:20px}.toolbar select{max-width:95px}}

.history-view{width:100%;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}.history-view:hover{background:#f2f6ff}

/* v1.0.2 – explicit operator availability + visible accessible color chooser */
.live-led[data-status='away']{background:#e4a43b;box-shadow:0 0 0 4px #fff1d7}
.live-led[data-status='offline']{background:#9ca6b7;box-shadow:0 0 0 4px #edf0f5}
.color-picker{display:flex;align-items:center;gap:10px;margin-top:8px;max-width:430px}
.form-card label .color-picker input[type='color']{width:54px;min-width:54px;height:46px;padding:4px;border:1px solid #d9e1ef;border-radius:10px;cursor:pointer;background:#fff;margin:0}
.form-card label .color-picker input[type='text']{margin:0;flex:1;min-width:0;width:auto;font-family:ui-monospace,Menlo,monospace;letter-spacing:.04em;text-transform:uppercase}
.color-swatch{display:block;width:46px;height:46px;min-width:46px;border:3px solid white;outline:1px solid #d9e1ef;border-radius:12px;background:#3865d8;box-shadow:0 2px 8px #1926421a}
.color-help{font-size:11px;line-height:1.65;color:#71809d;margin-top:7px;display:block;font-weight:400}
@font-face{font-family:'MCS Pyidaungsu';src:url('/assets/fonts/Pyidaungsu-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'MCS Pyidaungsu';src:url('/assets/fonts/Pyidaungsu-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
html[lang='my'] .main-shell,html[lang='my'] .sidebar,html[lang='my'] input,html[lang='my'] select,html[lang='my'] button,html[lang='my'] textarea{font-family:'MCS Pyidaungsu',system-ui,sans-serif;letter-spacing:0}
@media(max-width:760px){.color-picker{max-width:100%}.toolbar{gap:5px}.toolbar select{max-width:90px}.main-shell main{padding:20px 14px 65px}.hero-panel{padding:25px 20px}.chat-panel{min-height:0;height:min(68dvh,660px)}.chat-messages{min-height:0;flex:1 1 0}}
@media(max-width:420px){.topbar h1{font-size:20px}.toolbar select{max-width:80px;font-size:12px}.metric-card{padding:15px}.metric-card strong{font-size:26px}.color-picker{gap:7px}.color-swatch{width:38px;min-width:38px;height:42px}}

.tag.away{background:#fff4df;color:#9b661d}

/* Uploaded brand logo, with existing sparkle fallback until actual image is loaded. */
.logo-symbol{position:relative;overflow:hidden;flex-shrink:0}
.logo-symbol .logo-image{display:none;width:100%;height:100%;object-fit:contain;background:transparent}
.logo-symbol.has-logo{background:transparent}
.logo-symbol.has-logo .logo-fallback{display:none}
.logo-symbol.has-logo .logo-image{display:block}
.brand-control{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:start;gap:24px}
.brand-preview{width:180px;height:150px;border-radius:20px;background:#eef3fc;border:1px dashed #b7c6e0;display:grid;place-items:center;overflow:hidden;font-size:48px;color:#4265bc}
.brand-preview img{display:none;width:100%;height:100%;object-fit:contain;padding:12px}
.brand-preview.has-logo img{display:block}
.brand-preview.has-logo .brand-preview-fallback{display:none}
.brand-controls form{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.brand-controls form label{width:100%;margin:0}
.brand-controls input[type=file]{display:block;max-width:100%;flex:1;min-width:210px;margin:0}
.brand-controls .button{white-space:nowrap}
.brand-controls #removeBrandLogo{margin-top:14px}
.brand-controls #brandLogoFeedback{margin-top:15px}
.auth-brand-image{width:100%;height:100%;object-fit:contain}
.mark:has(.auth-brand-image){background:transparent}
@media(max-width:570px){.brand-control{grid-template-columns:1fr}.brand-preview{width:100%;max-width:210px;height:140px}}
