:root{--ink:#202622;--green:#1e5f4f;--rail:#1f2923;--gold:#d9a441;--paper:#f7f5f0;--line:#e1ded7;--muted:#7b817a;--white:#fff;--red:#c54c44}*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--paper)}button,input,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app{height:100dvh;display:grid;grid-template-columns:72px 340px minmax(460px,1fr) 292px;overflow:hidden}.rail{background:var(--rail);color:#fff;display:flex;flex-direction:column;align-items:center;padding:22px 12px 16px;z-index:20}.brand{width:44px;height:44px;border:1px solid #59645c;border-radius:14px;display:grid;place-items:center;background:#29342d;font-family:Manrope;font-weight:800;letter-spacing:-2px}.brand span{color:var(--gold)}.rail nav{display:grid;gap:10px;margin-top:38px}.rail-btn{width:44px;height:44px;border:0;border-radius:13px;background:transparent;color:#aeb8b1;position:relative}.rail-btn:hover{background:#344139;color:#fff}.rail-btn.active{background:var(--gold);color:var(--rail);box-shadow:0 8px 18px #0004}.rail-btn i{font-style:normal;font-size:20px}.rail-btn b{position:absolute;top:-5px;right:-4px;background:var(--red);color:#fff;border:2px solid var(--rail);min-width:18px;height:18px;border-radius:10px;font-size:9px;display:grid;place-items:center}.settings{margin-top:auto}.user-avatar,.avatar{border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700}.user-avatar{width:32px;height:32px;background:var(--gold);color:var(--rail);font-size:11px;margin-top:14px}
.inbox-panel{height:100dvh;display:flex;flex-direction:column;background:#fbfaf7;border-right:1px solid var(--line);min-width:0}.panel-head{height:104px;padding:24px 22px 17px;display:flex;align-items:center;justify-content:space-between}.panel-head small,.overline{display:block;color:#868b83;font-size:9px;font-weight:800;letter-spacing:.13em}.panel-head h1{font:800 24px Manrope;margin:3px 0 0;letter-spacing:-.7px}.square{width:38px;height:38px;border:1px solid #dfddd7;background:#fff;border-radius:11px;color:#59605a}.square.primary{background:var(--green);color:#fff;border:0;font-size:20px;box-shadow:0 5px 14px #1e5f4f30}.search{height:38px;margin:0 18px;position:relative;display:block}.search span{position:absolute;left:12px;top:8px;color:#898e86;font-size:20px}.search input{width:100%;height:100%;border:0;background:#eeece6;border-radius:10px;padding:0 48px 0 37px;outline:none;font-size:12px}.search input:focus{box-shadow:0 0 0 2px #1e5f4f40}.search kbd{position:absolute;right:9px;top:8px;padding:3px 6px;border:1px solid #d8d5ce;border-radius:5px;background:#f8f7f4;color:#90938d;font-size:9px}.filters{display:flex;gap:7px;padding:14px 18px 5px;overflow:auto}.filters button{white-space:nowrap;border:1px solid #e5e1d9;background:#fff;border-radius:20px;padding:6px 9px;color:#676d66;font-size:10px}.section-label{padding:18px 22px 7px;display:flex;justify-content:space-between;color:#888d86;font-size:9px;font-weight:800;letter-spacing:.08em}.section-label button{border:0;background:transparent;color:#888d86;font-size:9px}.thread-list{padding:0 10px;overflow:auto;scrollbar-width:thin;flex:1}.thread{width:100%;min-height:88px;border:0;background:transparent;border-radius:14px;padding:13px 12px;display:flex;gap:11px;text-align:left;color:inherit;position:relative}.thread:hover{background:#f0eee8}.thread.active{background:#e9f0ec;box-shadow:inset 3px 0 var(--green)}.avatar{width:40px;height:40px;flex:none;font-size:12px;background:#4f7f70}.avatar.rust{background:#a96348}.avatar.purple{background:#6b6a9f}.avatar.brown{background:#87714f}.avatar.xl{width:70px;height:70px;font-size:22px}.avatar.xxl{width:90px;height:90px;font-size:25px}.thread-copy{min-width:0;flex:1}.thread-title{display:flex;justify-content:space-between;gap:8px}.thread-title strong{font-size:13px}.thread-title time{font-size:9px;color:#969a94}.thread-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#737871;font-size:11px;margin-top:4px}.thread-tag{display:inline-block;margin-top:8px;padding:2px 6px;background:#fff;border:1px solid var(--line);border-radius:8px;color:#687069;font-size:8px;letter-spacing:.05em;text-transform:uppercase}.unread{position:absolute;right:12px;bottom:13px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-size:9px}.balance{margin:10px 14px 14px;padding:12px;display:flex;align-items:center;gap:9px;border:1px solid #e2ded5;border-radius:13px;background:#f4f1ea}.spark{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#ead9af;color:#956f20}.balance div{display:grid;flex:1}.balance strong{font-size:10px}.balance small{font-size:8px;color:#858981}.balance em{font-style:normal;font-size:8px;font-weight:800;border:1px solid #d5d0c7;border-radius:10px;padding:3px 6px;color:#8d5c51}.balance em.on{background:#dfece6;border-color:#bad2c8;color:#286552}
.conversation{height:100dvh;display:flex;flex-direction:column;min-width:0}.conversation-head{height:79px;padding:0 22px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);background:#ffffffaa;backdrop-filter:blur(14px)}.contact-title{display:grid;min-width:0}.contact-title strong{font-size:13px}.contact-title small{font-size:9px;color:#7d827b;margin-top:3px}.contact-title i{display:inline-block;width:6px;height:6px;background:#4d9a66;border-radius:50%;box-shadow:0 0 0 3px #e0eee3}.head-actions{margin-left:auto;display:flex;gap:8px}.mobile-menu{display:none;border:0;background:transparent;font-size:19px}.messages{padding:24px clamp(18px,4vw,64px);overflow:auto;flex:1}.day{height:29px;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:18px}.day:before{content:'';height:1px;background:var(--line);position:absolute;inset-inline:0}.day span{position:relative;background:var(--paper);padding:4px 10px;color:#92968f;font-size:9px;letter-spacing:.07em}.message-row{display:flex;gap:9px;align-items:flex-end;margin-bottom:19px}.message-row.outgoing{justify-content:flex-end}.message-row>div{max-width:min(78%,540px)}.bubble{padding:11px 13px;font-size:12px;line-height:1.55;box-shadow:0 2px 4px #252a270b}.incoming .bubble{background:#fff;border:1px solid #e5e2db;border-radius:5px 15px 15px}.outgoing .bubble{background:#245e4f;color:#fff;border-radius:15px 5px 15px 15px}.message-row time{display:block;color:#949891;font-size:8px;margin-top:5px}.outgoing time{text-align:right}.call-event{margin:24px auto;width:min(420px,92%);border:1px solid #dedbd4;background:#efede7;border-radius:13px;padding:11px 13px;display:flex;align-items:center;gap:10px}.call-event>span{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#dbe7e2;color:#2f6657}.call-event div{display:grid;flex:1}.call-event strong{font-size:10px}.call-event small{font-size:8px;color:#878b84}.call-event button{border:0;background:transparent;color:var(--green);font-size:9px;font-weight:700}.empty{height:100%;display:grid;place-content:center;text-align:center;color:#8b9089}.empty b{font:700 20px Manrope;color:#49504a}.empty span{font-size:11px;margin-top:5px}
.composer-area{padding:8px 22px 18px;background:linear-gradient(to top,var(--paper) 78%,transparent)}.composer{border:1px solid #d9d6cf;border-radius:15px;padding:10px;background:#fff;box-shadow:0 8px 26px #312f2912}.composer textarea{width:100%;min-height:30px;max-height:110px;resize:none;border:0;outline:0;background:transparent;font-size:12px}.composer-bar{display:flex;justify-content:space-between}.composer-bar button{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#707770}.composer-bar button:hover{background:#f0eee9}.composer-bar .send{width:34px;height:34px;border-radius:10px;background:var(--green);color:#fff}.upload-preview{width:max-content;max-width:100%;display:flex;gap:9px;align-items:center;padding:8px 10px;background:#fff;border:1px solid #dedbd4;border-radius:11px;margin-bottom:7px}.upload-preview>span{color:var(--green)}.upload-preview div{display:grid}.upload-preview strong{font-size:9px}.upload-preview small{font-size:8px;color:#868b84}.upload-preview button{border:0;background:transparent;font-size:18px;color:#868b84}
.profile{height:100dvh;overflow:auto;background:#fff;border-left:1px solid var(--line);padding:28px 20px 20px}.profile-hero{text-align:center;border-bottom:1px solid #e8e5df;padding-bottom:22px}.profile-hero>.avatar{margin:auto;box-shadow:0 0 0 5px #f1eee8}.profile h2{font:700 17px Manrope;margin:12px 0 0}.profile-hero p{margin:4px 0 17px;color:#7f847d;font-size:10px}.profile-actions{display:flex;justify-content:center;gap:20px}.profile-actions button{display:grid;gap:5px;justify-items:center;border:0;background:transparent;color:#616760;font-size:8px}.profile-actions span{width:33px;height:33px;border-radius:10px;display:grid;place-items:center;background:#edf2ef;color:#2c6958;font-size:15px}.profile section{padding:20px 2px;border-bottom:1px solid #e8e5df}.profile section header{display:flex;justify-content:space-between}.profile section header small{font-size:8px;font-weight:800;letter-spacing:.1em;color:#858a83}.profile section header button{border:0;background:transparent;color:var(--green);font-size:8px;font-weight:700}.profile dl{display:grid;grid-template-columns:67px 1fr;gap:10px 8px;margin:14px 0 0;font-size:9px}.profile dt{color:#969a94}.profile dd{margin:0;color:#4f554f}.file{display:flex;align-items:center;gap:9px;margin-top:12px}.file>span{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#eee9dc;color:#92752f;font-size:7px;font-weight:800}.file>span.photo{background:#e5efea;color:#39705f}.file div{display:grid}.file strong{font-size:8px}.file small{font-size:7px;color:#92968f}.open-dialer{margin-top:19px;width:100%;display:flex;gap:10px;align-items:center;padding:11px;border:1px solid #dfdcd5;border-radius:12px;background:#f6f4ef;text-align:left;color:#4d544e}.open-dialer>span{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:var(--green);color:#fff}.open-dialer div{display:grid;flex:1}.open-dialer strong{font-size:9px}.open-dialer small{font-size:8px;color:#8b8f89}.mobile-nav{display:none}
.modal{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:18px;background:#10151266;backdrop-filter:blur(8px)}.modal-card{width:min(360px,100%);position:relative;background:#fffefa;border-radius:22px;padding:24px;box-shadow:0 30px 80px #0005}.modal-card .close{position:absolute;right:15px;top:14px;width:30px;height:30px;border:0;background:#f0eee8;border-radius:9px;font-size:20px}.modal-card h2{font:800 21px Manrope;margin:6px 0}.modal-card>p{font-size:11px;color:#777d76;margin:0 0 18px}.phone-input{width:100%;height:48px;border:0;border-radius:12px;background:#f2f0eb;text-align:center;font-size:17px;outline:none}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 22px;padding:14px 18px}.key{aspect-ratio:1;border:0;border-radius:50%;background:#f0eee8;display:grid;place-content:center}.key strong{font-size:21px}.key small{height:8px;font-size:7px;letter-spacing:.13em;color:#858982}.big-action{width:100%;height:44px;border:0;border-radius:12px;background:var(--green);color:#fff;font-weight:700}.modal-symbol{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#e1ede8;color:var(--green);font-size:20px}.schedule-card label{display:grid;gap:6px;margin:11px 0;font-size:10px;font-weight:700}.schedule-card input{height:40px;border:1px solid var(--line);border-radius:9px;padding:0 10px}.note{display:grid;margin:14px 0;padding:10px;background:#f2f0eb;border-radius:10px}.note b{font-size:9px}.note span{font-size:8px;color:#727871}.call-screen{position:fixed;z-index:150;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;background:radial-gradient(circle at 50% 30%,#345b4c,#18221d 60%,#111713);overflow:hidden}.rings{position:absolute;width:370px;height:370px;border-radius:50%;background:#68ae8f14;box-shadow:0 0 0 70px #68ae8f0a,0 0 0 140px #68ae8f05;animation:pulse 2.8s infinite}.call-screen>*:not(.rings){z-index:1}.call-screen>small{letter-spacing:.18em;color:#b7c7bd;margin-bottom:35px}.call-screen h2{font:800 25px Manrope;margin:18px 0 5px}.call-screen>p{font-size:11px;color:#b9c6bf}.call-buttons{display:flex;gap:34px;margin-top:50px}.call-buttons button{width:58px;display:grid;justify-items:center;gap:8px;border:0;background:transparent;color:#fff;font-size:20px}.call-buttons button:before{content:'';position:absolute}.call-buttons button>span{font-size:8px}.call-buttons .hangup{width:58px;height:58px;border-radius:50%;background:var(--red);align-content:center}.toast{position:fixed;z-index:200;left:50%;bottom:24px;transform:translateX(-50%);max-width:min(430px,90%);padding:11px 15px;border-radius:12px;background:#1d2621;color:#fff;box-shadow:0 10px 30px #0004;font-size:11px}.toast.error{background:#963e39}@keyframes pulse{50%{transform:scale(1.06);opacity:.7}}
@media(max-width:1180px){.app{grid-template-columns:68px 314px minmax(440px,1fr)}.profile{display:none}}@media(max-width:820px){.app{display:block}.rail,.profile{display:none}.inbox-panel{position:fixed;z-index:50;inset:0 0 58px;transform:translateX(-102%);transition:.25s;box-shadow:15px 0 35px #191e2b2e}.inbox-panel.open{transform:none}.conversation{height:calc(100dvh - 58px)}.mobile-menu{display:block}.conversation-head{height:68px;padding:0 12px}.head-actions button:last-child{display:none}.messages{padding:19px 12px}.message-row>div{max-width:85%}.composer-area{padding:6px 10px 11px}.mobile-nav{position:fixed;z-index:60;inset:auto 0 0;height:58px;display:grid;grid-template-columns:repeat(5,1fr);background:#fffffff5;border-top:1px solid #dedbd4}.mobile-nav button{border:0;background:transparent;color:#868c85;display:grid;place-content:center;gap:2px;font-size:16px}.mobile-nav button.active{color:var(--green)}.mobile-nav small{font-size:7px}.balance{margin-bottom:8px}}@media(max-width:430px){.contact-title small{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bubble{font-size:11px}.modal{align-items:end}.modal-card{border-radius:22px 22px 14px 14px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
