﻿:root{--blue:#1a73e8;--green:#188038;--red:#d93025;--line:#dadce0;--muted:#5f6368}
*{box-sizing:border-box}
body{margin:0;color:#202124;background:#fff;font:14px Arial,sans-serif}
button,input,textarea{font:inherit}
header{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}
.brand{display:flex;align-items:center;gap:12px;font-size:20px}
.logo{display:grid;place-items:center;width:38px;height:38px;background:#34c759;color:#fff;border-radius:10px}
.account{display:flex;align-items:center;gap:12px}
.account i{width:9px;height:9px;background:#d93025;border-radius:50%}
.account i.on{background:#188038}
.account strong{font-size:16px}
.account button{border:0;background:#f1f3f4;padding:9px 14px;border-radius:18px}
.shell{display:flex;height:calc(100vh - 64px)}
aside{width:92px;border-right:1px solid var(--line);padding:20px 10px}
aside button{width:72px;border:0;background:transparent;padding:13px 5px;border-radius:22px;font-size:20px;color:var(--muted);margin-bottom:8px}
aside button span{display:block;font-size:12px;margin-top:4px}
aside button.active{background:#e8f0fe;color:var(--blue)}
main{flex:1;overflow:auto}
.page{display:none;padding:28px 36px}
.page.active{display:block}
.title{border-bottom:1px solid var(--line);margin-bottom:24px}
.title h1{font-size:28px;margin:0 0 6px}
.title p{color:var(--muted);margin:0 0 18px}
.title-row{display:flex;justify-content:space-between;align-items:start}
.primary{background:var(--blue);color:#fff;border:0;border-radius:20px;padding:10px 18px}
.content-grid{display:grid;grid-template-columns:minmax(380px,1fr) 330px;gap:32px}
.list{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.recent,.conversation{display:flex;align-items:center;min-height:68px;padding:10px 16px;border-bottom:1px solid #eee}
.recent:last-child,.conversation:last-child{border:0}
.avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e8f0fe;color:var(--blue);margin-right:12px}
.item-main{flex:1}
.item-main b{font-size:16px}
.item-main p{margin:4px 0;color:var(--muted)}
.item-time{font-size:12px;color:var(--muted)}
.danger{color:var(--red)}
.callback{border:0;background:#e8f0fe;color:var(--blue);width:36px;height:36px;border-radius:50%;margin-left:10px}
.callback svg{width:18px;fill:currentColor}
.dialer{border:1px solid var(--line);border-radius:12px;padding:22px;text-align:center}
.dialer input{width:100%;font-size:24px;text-align:center;border:0;border-bottom:1px solid var(--line);padding:14px;outline:0}
.keypad{display:grid;grid-template-columns:repeat(3,64px);justify-content:center;gap:10px;width:max-content;margin:20px auto}
.keypad button{width:64px;height:52px;border:0;border-radius:26px;background:#f1f3f4;font-size:20px}
.keypad>span{display:none}
.keypad .call{grid-column:2;justify-self:center}
.call{width:58px;height:58px;border:0;border-radius:50%;background:#34c759;color:#fff;font-size:24px}
.empty{padding:36px;text-align:center;color:var(--muted)}
.panel{display:none;position:fixed;right:0;top:64px;bottom:0;width:min(680px,100%);background:#fff;border-left:1px solid var(--line);z-index:5}
.panel-head{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 18px}
.panel-head button{border:0;background:none;color:var(--blue)}
#bubbles{height:calc(100% - 128px);overflow:auto;padding:22px;display:flex;flex-direction:column;gap:8px}
.bubble{max-width:72%;padding:10px 14px;border-radius:18px}
.bubble.out{align-self:flex-end;background:var(--blue);color:#fff}
.bubble.in{background:#f1f3f4}
.bubble small{display:block;font-size:10px;opacity:.7}
.composer{height:64px;border-top:1px solid var(--line);display:flex;padding:9px 14px;gap:10px}
.composer textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:20px;padding:10px}
.composer button{border:0;border-radius:20px;background:var(--blue);color:#fff;padding:0 20px}
.call-screen{display:none;position:fixed;inset:0;background:linear-gradient(#3c4750,#111);color:#fff;z-index:20;text-align:center;padding-top:15vh}
.call-screen h1{font-size:42px}
.call-screen>div{margin-top:30vh;display:flex;justify-content:center;gap:30px}
.call-screen button,.floating{border:0;color:#fff;border-radius:30px;padding:15px 24px}
.red{background:var(--red)!important}
.green{background:#34c759!important}
.call-tools button{width:90px;height:70px;background:#ffffff2a}
.call-tools small{display:block}
.modal{display:none;position:fixed;inset:0;background:#0006;z-index:40;align-items:center;justify-content:center}
.modal>div{width:340px;background:#fff;border-radius:12px;padding:24px;text-align:center}
.modal input{width:100%;padding:12px;margin:10px 0;border:1px solid var(--line);border-radius:8px}
.modal button{border:0;color:var(--blue);background:#fff;padding:10px 18px}
#confirmDialog{z-index:60}
#confirmDialog>div{padding:24px 24px 16px}
.modal-actions{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);margin:20px -24px -16px}
.modal-actions button{width:100%;min-height:48px;margin:0;padding:0;text-align:center}
.modal-actions button+button{border-left:1px solid var(--line);color:var(--red)}
.modal-actions.info{grid-template-columns:1fr}
.modal-actions.info #confirmOk{border-left:0;color:var(--blue)}
.settings-hint{color:var(--muted)}
#settings .settings-primary,#settings .settings-danger{display:block;width:100%;margin-top:8px;border-radius:9px}
#settings .settings-primary{color:#fff;background:var(--blue)}
#settings .settings-danger{color:var(--red);background:#fff1f0}
.message-checks{font-weight:700;letter-spacing:-2px;margin-left:4px}
.message-checks.read{color:#b9e6ff}
.floating{display:none;position:fixed;bottom:30px;left:50%;z-index:25}
audio{display:none}
@media(max-width:800px){aside{width:68px}
.content-grid{grid-template-columns:1fr}
.dialer{order:-1}
.page{padding:20px 14px}
}


