/* Dialler palette and touch targets are shared across both web themes. */
.phone-launcher{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:8px;border:0;border-radius:12px;background:transparent;cursor:pointer}.phone-launcher .icon{width:23px;height:23px;stroke-width:2}.phone-launcher.is-ready{color:#91d071}.phone-launcher.is-unavailable{color:#f08087}.phone-launcher:hover{background:#ffffff12}.phone-launcher:focus-visible{outline:2px solid currentColor;outline-offset:2px}.phone-launcher[hidden],#webphone[hidden],.login-mode #phone-launcher,.login-mode #webphone{display:none}
#webphone{--ph-bg:#fcfdfc;--ph-soft:#f2f5f1;--ph-key:#f0f4f0;--ph-line:#dce5dc;--ph-text:#203126;--ph-muted:#617367;--ph-green:#467e30;--ph-tint:#e6f0df;--ph-red:#bd3b4b;--ph-red-text:#fff;position:fixed;right:24px;top:76px;width:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 92px);overflow-y:auto;z-index:70;font-family:inherit;overscroll-behavior:contain}
html[data-theme="dark"] #webphone{--ph-bg:#182229;--ph-soft:#1e2b32;--ph-key:#24343d;--ph-line:#35474e;--ph-text:#f0f5f2;--ph-muted:#aec0c3;--ph-green:#a0d581;--ph-tint:#2b4331;--ph-red:#d45262}
html[data-theme] body #webphone{background:var(--ph-bg);color:var(--ph-text);border:1px solid var(--ph-line);border-radius:22px;box-shadow:0 24px 72px #0004}
#webphone.has-blf{width:556px}.phone-workspace{display:flex;align-items:stretch}.phone-main{width:340px;min-width:0;flex:1;display:flex;flex-direction:column}
html[data-theme] body #webphone .phone-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;background:var(--ph-bg);border-bottom:1px solid var(--ph-line);color:var(--ph-text);font-size:14px;font-weight:600}.phone-header>div{display:flex;align-items:center;gap:9px}.phone-header .icon{width:19px;height:19px}
html[data-theme] body #webphone .phone-header small{background:var(--ph-tint);color:var(--ph-green);padding:4px 9px;border-radius:8px;font-size:11px;font-weight:600;letter-spacing:.3px}
.phone-header-actions{display:flex;gap:6px;align-items:center}html[data-theme] body #webphone .phone-header-actions button{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;background:transparent;border:0;border-radius:9px;color:var(--ph-muted);cursor:pointer;font-size:23px}.phone-header-actions .icon{width:17px;height:17px}html[data-theme] body #webphone .phone-header-actions button:hover{background:var(--ph-soft);color:var(--ph-text)}
html[data-theme] body #webphone .phone-status{display:flex;align-items:center;justify-content:center;gap:7px;padding:16px 12px 12px;color:var(--ph-muted);font-size:12px;font-weight:500}.phone-status .dot{width:6px;height:6px}
#webphone-form{padding:0 18px;margin:0}#webphone-form label{display:block;font-size:11px;font-weight:500;color:var(--ph-muted);margin:0 0 8px 2px}
html[data-theme] body #webphone #phone-number{display:block;box-sizing:border-box;width:100%;min-width:0;height:66px;border:1px solid var(--ph-line);border-radius:15px;background:var(--ph-soft);color:var(--ph-text);text-align:center;padding:12px 10px;font-size:27px;font-weight:500;line-height:1.2;font-family:inherit;letter-spacing:.2px;outline:none;box-shadow:none}
html[data-theme] body #webphone #phone-number::placeholder{color:var(--ph-muted);font-size:20px;font-weight:400;letter-spacing:0}html[data-theme] body #webphone #phone-number:focus{border-color:var(--ph-green);box-shadow:0 0 0 3px color-mix(in srgb,var(--ph-green) 12%,transparent)}
#webphone .phone-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:18px 18px 20px}
html[data-theme] body #webphone .phone-keypad>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:59px;padding:7px;border-radius:17px;border:1px solid var(--ph-line);background:var(--ph-key);color:var(--ph-text);font-family:inherit;font-size:27px;font-weight:400;line-height:1.1;cursor:pointer;transition:background .15s,border-color .15s,transform .12s;box-shadow:0 1px 1px #00000005}
html[data-theme] body #webphone .phone-keypad small{display:block;min-height:11px;font-size:9px;font-weight:500;letter-spacing:1.8px;line-height:1.2;color:var(--ph-muted)}
html[data-theme] body #webphone .phone-keypad>button:hover{background:var(--ph-tint);border-color:var(--ph-green);color:var(--ph-text)}#webphone .phone-keypad>button:active{transform:scale(.96)}
#webphone button:focus-visible{outline:2px solid var(--ph-green);outline-offset:3px}
#webphone .phone-call-actions{display:flex;gap:10px;padding:0 18px 14px}#webphone .phone-call-actions>button{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-height:52px;border:0;border-radius:16px;padding:12px 16px;color:#fff;font-size:14px;font-weight:600;line-height:1.2;font-family:inherit;cursor:pointer;transition:filter .15s,transform .12s}#webphone .phone-call-actions .icon{width:22px;height:22px}
html[data-theme] body #webphone :is(.phone-call,.phone-answer){background:#4a8233;color:#fff;box-shadow:0 5px 13px #467e3026}html[data-theme] body #webphone .phone-hangup{background:var(--ph-red);color:var(--ph-red-text)}#webphone .phone-call-actions>button:hover{filter:brightness(1.08)}#webphone .phone-call-actions>button:active{transform:scale(.98)}html[data-theme] body #webphone .phone-call-actions>button:disabled{background:var(--ph-soft);border:1px solid var(--ph-line);color:var(--ph-muted);box-shadow:none;cursor:default}
html[data-theme] body #webphone .phone-peer{display:flex;flex-direction:column;align-items:center;gap:7px;background:transparent;padding:5px 18px 12px;color:var(--ph-text)}html[data-theme] body #webphone .phone-avatar{width:56px;height:56px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--ph-tint);color:var(--ph-green);border-radius:19px;margin:0 0 4px}.phone-avatar .icon{width:26px;height:26px}
html[data-theme] body #webphone .phone-peer strong{font-size:23px;font-weight:600;line-height:1.25;letter-spacing:-.3px;text-align:center;overflow-wrap:anywhere;color:var(--ph-text)}html[data-theme] body #webphone .phone-peer small{font-size:13px;color:var(--ph-muted)}#webphone #phone-timer{font-size:12px;font-variant-numeric:tabular-nums;color:var(--ph-green);background:var(--ph-tint);border-radius:20px;padding:5px 12px;margin-top:3px}
#webphone .phone-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px 18px 20px}
html[data-theme] body #webphone .phone-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:75px;padding:10px 4px;border:1px solid var(--ph-line);border-radius:16px;background:var(--ph-key);color:var(--ph-text);font-size:11px;font-weight:500;line-height:1.3;font-family:inherit;cursor:pointer}
html[data-theme] body #webphone .phone-controls button:hover,html[data-theme] body #webphone .phone-controls button.on{background:var(--ph-tint);color:var(--ph-green);border-color:var(--ph-green)}#webphone .phone-controls .icon{width:23px;height:23px}html[data-theme] body #webphone .phone-controls button:disabled{opacity:.5;background:var(--ph-soft);border-color:var(--ph-line);color:var(--ph-muted);cursor:wait}
html[data-theme] body #webphone .phone-message{margin:0;padding:0 18px 12px;color:var(--ph-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}#webphone .phone-message:empty{display:none}
html[data-theme] body #webphone .phone-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;margin-top:auto;background:var(--ph-soft);border-top:1px solid var(--ph-line)}html[data-theme] body #webphone .phone-bottom>button{min-height:28px;padding:0;border:0;background:transparent;color:var(--ph-text);font-size:11px;font-weight:500;font-family:inherit;cursor:pointer}html[data-theme] body #webphone .phone-bottom>span{font-size:10px;color:var(--ph-muted)}
#webphone.in-call .phone-call-actions{position:sticky;bottom:0;z-index:2;padding-top:10px;padding-bottom:12px;margin-top:auto}html[data-theme] body #webphone.in-call .phone-call-actions{background:var(--ph-bg);box-shadow:0 -5px 12px color-mix(in srgb,var(--ph-bg) 80%,transparent)}
#webphone .phone-main>.button{margin:0 18px 12px;min-height:42px}
#webphone .phone-transfer{margin:0 18px 12px;padding:14px;border-radius:16px;display:flex;flex-direction:column;gap:11px;min-width:0;font-size:12px}html[data-theme] body #webphone .phone-transfer{color:var(--ph-text);background:var(--ph-soft);border:1px solid var(--ph-line)}
html[data-theme] body #webphone .phone-transfer input{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid var(--ph-line);border-radius:10px;background:var(--ph-bg);color:var(--ph-text);font:inherit}#webphone .phone-transfer>div{display:flex;justify-content:flex-end;gap:8px}#webphone .phone-transfer .button{font-size:11px;padding:10px}html[data-theme] body #webphone .phone-transfer small{color:var(--ph-muted);line-height:1.5;font-size:11px}html[data-theme] body #webphone .phone-action-progress{color:var(--ph-green);font-size:12px;margin:0 18px 12px}
/* The Snom key order and status colours remain unchanged. */
html[data-theme] body #webphone .phone-blf-panel{display:none;flex:0 0 216px;width:216px;box-sizing:border-box;padding:17px 12px;background:var(--ph-soft);border-right:1px solid var(--ph-line)}html[data-theme] body #webphone.has-blf .phone-blf-panel{display:block}
html[data-theme] body #webphone .phone-blf-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:600;color:var(--ph-text);margin-bottom:13px}.phone-blf-heading>span:last-child{font-size:10px;font-weight:400;color:var(--ph-muted)}.phone-blf-keys{display:flex;flex-direction:column;gap:4px}
html[data-theme] body #webphone .phone-blf-key{display:flex;align-items:center;gap:7px;min-height:32px;padding:6px;width:100%;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ph-text);text-align:left;font:inherit;font-size:12px;cursor:pointer}.phone-blf-key span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html[data-theme] body #webphone .phone-blf-key:hover:not(:disabled){background:var(--ph-tint);border-color:var(--ph-line);color:var(--ph-text)}#webphone .phone-blf-key:disabled{opacity:1;cursor:default}#webphone .phone-blf-right{flex-direction:row-reverse;text-align:right;padding-left:20px}#webphone .phone-blf-left{padding-right:20px}
.phone-blf-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#9aa8a3}.phone-blf-dot.blf-available{background:#65b450}.phone-blf-dot.blf-internal{background:#5197e1}.phone-blf-dot.blf-mobile{background:#dba641}.phone-blf-dot.blf-dnd{background:#e46f7e}.phone-blf-dot.blf-busy{background:#aa7bdb}.phone-blf-dot.blf-speed{background:#56aba2}.phone-blf-dot.blf-closure{background:#ce77ad}.phone-blf-dot.blf-empty{opacity:.5}
.phone-blf-pages{display:flex;justify-content:center;gap:6px;margin-top:16px}html[data-theme] body #webphone .phone-blf-pages button{width:30px;height:30px;border-radius:9px;border:1px solid var(--ph-line);background:var(--ph-bg);color:var(--ph-muted);font:inherit;font-size:11px;cursor:pointer}html[data-theme] body #webphone .phone-blf-pages button[aria-pressed="true"]{background:var(--ph-tint);color:var(--ph-green);border-color:var(--ph-green)}html[data-theme] body #webphone .phone-blf-empty{color:var(--ph-muted);font-size:12px;line-height:1.6;padding:10px 0}.phone-blf-empty .text-button{white-space:normal;text-align:left;margin-top:12px}
#portal-dialog{z-index:90}#browser-check{position:fixed;bottom:18px;left:95px;z-index:80;padding:14px;background:#fff;border:1px solid #b9d0a5;box-shadow:0 4px 20px #182a1620}#browser-check pre{font-size:10px;max-width:440px;margin-bottom:0}
@media(max-width:580px){#webphone,#webphone.has-blf{width:calc(100vw - 20px);max-width:420px;right:max(10px,env(safe-area-inset-right));top:calc(64px + env(safe-area-inset-top));max-height:calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.phone-workspace{flex-direction:column}.phone-main{width:100%;flex:auto;order:0}html[data-theme] body #webphone .phone-blf-panel{width:100%;flex-basis:auto;order:1;border-right:0;border-top:1px solid var(--ph-line);padding:14px}.phone-blf-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] body #webphone .phone-blf-key{min-height:40px}#webphone .phone-blf-pages button{width:36px;height:36px}#webphone .phone-header-actions button{min-width:36px;height:36px}#webphone .phone-keypad>button{min-height:54px}#webphone .phone-bottom>button{min-height:36px}}
@media(prefers-reduced-motion:reduce){#webphone button{transition:none!important}}

.phone-blf-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.phone-blf-heading .phone-blf-edit{display:inline-flex;align-items:center;gap:4px;margin-left:auto;width:auto;min-height:28px;padding:4px 7px;border:1px solid currentColor;border-radius:7px;font-size:11px;background:transparent;color:inherit}.phone-blf-edit svg{width:13px;height:13px}
