:root{color-scheme:dark;--bg:#020403;--panel:#07100b;--panel2:#0a1610;--line:#173421;--green:#21e56f;--gold:#efc45f;--text:#f5f8f6;--muted:#91a197;--red:#ff6464}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{padding-bottom:calc(82px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#020403,#06110a 52%,#020403)}
a{color:inherit;text-decoration:none}button,input{font:inherit}.dp-shell{max-width:720px;margin:0 auto;min-height:100dvh}
.dp-head{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;min-height:74px;padding:env(safe-area-inset-top) 14px 0;background:rgba(2,4,3,.96);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.dp-head-center{text-align:center}.dp-head-center strong{display:block;letter-spacing:.12em;font-size:17px}.dp-head-center small{display:block;color:var(--gold);font-size:10px;letter-spacing:.16em;margin-top:3px}
.dp-icon-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:14px;background:#061009;color:#fff;display:grid;place-items:center;font-size:20px}
.dp-main{padding:18px 16px 24px}.dp-title-row{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}
.dp-title-row h1{margin:0;font-size:34px;letter-spacing:-.045em}.dp-title-row p{margin:4px 0 0;color:var(--muted);font-size:13px}
.dp-sync{border:1px solid #31533d;background:#0a1710;color:var(--green);border-radius:12px;padding:10px 13px;font-weight:900;font-size:12px;white-space:nowrap}
.dp-search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#050b07;border-radius:14px;padding:0 13px;min-height:50px;margin-bottom:16px}
.dp-search span{color:var(--gold)}.dp-search input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:#fff;font-size:16px}.dp-search input::placeholder{color:#657269}
.dp-section-label{display:flex;align-items:center;justify-content:space-between;margin:18px 2px 9px;color:var(--muted);font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.dp-list{border-top:1px solid var(--line)}.dp-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:72px;border-bottom:1px solid var(--line);padding:10px 2px}
.dp-avatar{width:50px;height:50px;border-radius:50%;background:#0d1c13;border:1px solid #284c34;display:grid;place-items:center;font-weight:950;color:var(--gold);overflow:hidden}
.dp-avatar img{width:100%;height:100%;object-fit:cover}.dp-copy{min-width:0}.dp-name{font-size:16px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-meta{margin-top:3px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dp-direct{display:inline-flex;align-items:center;gap:5px;color:var(--green);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.dp-direct:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 10px rgba(33,229,111,.7)}
.dp-row-actions{display:flex;gap:6px}.dp-mini{width:38px;height:38px;border-radius:12px;border:1px solid #294633;background:#08120c;color:#fff;display:grid;place-items:center;font-size:17px}.dp-mini.velvet{border-color:#5e8a31;color:var(--green)}
.dp-empty{padding:42px 18px;text-align:center;color:var(--muted)}.dp-empty strong{display:block;color:#fff;font-size:18px;margin-bottom:8px}.dp-empty button{margin-top:14px}
.dp-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;background:rgba(2,4,3,.97);backdrop-filter:blur(20px);border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);gap:2px}
.dp-nav a{min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#829087;font-size:10px;font-weight:800}.dp-nav a span:first-child{font-size:20px}.dp-nav a.active{color:var(--green)}
.dp-quick{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0 0 18px}.dp-quick a{min-height:92px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#08140d,#040906);padding:16px;display:flex;flex-direction:column;justify-content:space-between}.dp-quick i{font-style:normal;font-size:26px}.dp-quick b{font-size:15px}.dp-quick small{color:var(--muted);font-size:11px}
.dp-recent-kind{color:var(--gold);font-size:11px;font-weight:900;text-transform:uppercase}
.dp-dial{display:grid;place-items:center;padding-top:8px}.dp-number{width:100%;min-height:72px;background:transparent;border:0;border-bottom:1px solid var(--line);color:#fff;text-align:center;font-size:30px;letter-spacing:.035em;outline:0}
.dp-pad{width:min(390px,100%);display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:22px 20px 14px}.dp-key{aspect-ratio:1;border-radius:50%;border:1px solid #294633;background:#0a1610;color:#fff;font-size:28px;font-weight:650;display:grid;place-items:center}.dp-key:active{background:#173a24}
.dp-dial-actions{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:8px}.dp-call,.dp-text,.dp-velvet{width:58px;height:58px;border-radius:50%;border:0;display:grid;place-items:center;font-size:23px}.dp-call{background:var(--green);color:#021007}.dp-text{background:#15251a;color:#fff;border:1px solid #31533d}.dp-velvet{background:#17310e;color:var(--gold);border:1px solid #6f8f3c}.dp-velvet[hidden]{display:none}
.dp-backspace{margin-top:16px;border:0;background:none;color:var(--muted);font-size:15px}
.dp-card{border:1px solid var(--line);background:var(--panel);border-radius:20px;padding:20px;margin-bottom:14px}.dp-contact-hero{text-align:center;padding-top:28px}.dp-contact-hero .dp-avatar{width:104px;height:104px;margin:0 auto 14px;border-radius:28px}.dp-contact-hero h1{margin:0;font-size:30px}.dp-contact-hero p{margin:6px 0 0;color:var(--muted)}
.dp-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.dp-action-grid button,.dp-action-grid a{min-height:76px;border:1px solid #294633;border-radius:16px;background:#08120c;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-weight:850}.dp-action-grid .velvet{color:var(--green);border-color:#4a7031}.dp-action-grid .invite{color:var(--gold)}
.dp-note{color:var(--muted);font-size:12px;line-height:1.5}.dp-status{font-size:12px;color:var(--green);margin-top:10px}.dp-status.bad{color:#ff9f96}
.dp-message-launch{display:grid;gap:12px}.dp-message-option{border:1px solid var(--line);border-radius:18px;background:#07100b;padding:18px;display:flex;align-items:center;gap:14px}.dp-message-option i{font-style:normal;font-size:28px}.dp-message-option b{display:block}.dp-message-option small{display:block;color:var(--muted);margin-top:3px;line-height:1.35}
@media(min-width:720px){.dp-nav{left:50%;right:auto;transform:translateX(-50%);width:720px;border-left:1px solid var(--line);border-right:1px solid var(--line)}}
@media(max-width:360px){
.dp-main{padding-left:12px;padding-right:12px}
.dp-title-row{align-items:flex-start;flex-direction:column;gap:10px}
.dp-sync{width:100%}
.dp-row{grid-template-columns:46px minmax(0,1fr);gap:10px}
.dp-avatar{width:44px;height:44px}
.dp-row-actions{grid-column:2;justify-self:start;flex-wrap:wrap}
.dp-nav{padding-left:4px;padding-right:4px}
.dp-nav a{font-size:9px}
.dp-action-grid{grid-template-columns:1fr 1fr}
}
/* DIRECT PHONE NATIVE R25 */
.dp-phone-search{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px;min-height:64px;border:1px solid var(--line);border-radius:32px;background:#0a0e0c;padding:0 10px;margin:4px 0 14px}
.dp-phone-search a,.dp-phone-search button{width:40px;height:40px;border:0;background:transparent;color:#d7ddd9;font-size:22px;display:grid;place-items:center}
.dp-phone-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#fff;font-size:18px}.dp-phone-search input::placeholder{color:#8d9891}
.dp-chip-row{display:flex;gap:9px;overflow-x:auto;padding:0 0 16px;scrollbar-width:none}.dp-chip-row::-webkit-scrollbar{display:none}.dp-chip{flex:0 0 auto;border:1px solid #334239;background:#080d0a;color:#c9d0cb;border-radius:12px;min-height:42px;padding:0 17px;font-weight:800}.dp-chip.active{background:#23422d;color:#eaffef;border-color:#477353}
.dp-fav-wrap{margin:8px 0 20px}.dp-fav-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.dp-fav-head h2{margin:0;font-size:18px}.dp-fav-head a{color:var(--green);font-size:12px;font-weight:850}
.dp-favorites{display:flex;gap:16px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:none}.dp-favorites::-webkit-scrollbar{display:none}.dp-fav{flex:0 0 72px;text-align:center;color:#fff}.dp-fav .dp-avatar{width:58px;height:58px;margin:0 auto 6px}.dp-fav span{display:block;font-size:11px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dp-search-results{margin:-4px 0 16px;border:1px solid var(--line);border-radius:16px;background:#050b07;overflow:hidden}.dp-search-results[hidden]{display:none}
.dp-key{position:relative}.dp-key strong{font:650 28px/1 system-ui}.dp-key small{display:block;margin-top:7px;color:#aeb7b1;font-size:10px;letter-spacing:.12em;font-weight:700}.dp-key[data-key="1"] small{letter-spacing:.2em}
.dp-suggested{width:100%;margin:4px 0 6px}.dp-suggested-title{color:#9da9a1;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;margin:0 0 8px}.dp-suggested .dp-row{min-height:58px}
.dp-message-list{display:grid;gap:10px}.dp-message-row{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid var(--line);background:#07100b;border-radius:18px;padding:12px}.dp-message-row .dp-avatar{width:46px;height:46px}.dp-message-actions{display:flex;gap:6px}
.dp-native-note{display:none;color:var(--green);font-size:11px;margin:-8px 2px 14px}.dp-native-note.on{display:block}
.dp-quick b,.dp-quick small{display:block}.dp-quick b{margin-bottom:4px}
.dp-identity-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(239,196,95,.34);background:#120f07;border-radius:14px;padding:12px 13px;margin:0 0 14px;color:#d9cfaf;font-size:12px;line-height:1.4}.dp-identity-notice[hidden]{display:none}.dp-identity-notice a{flex:0 0 auto;color:var(--gold);font-weight:900;border:1px solid rgba(239,196,95,.38);border-radius:10px;padding:8px 10px}
/* VELVET LINE NATIVE PHONE R2 */
.dp-pad{width:min(350px,100%);gap:10px;padding:12px 26px 8px}
.dp-key{height:72px;aspect-ratio:auto;border-radius:38px}
.dp-key strong{font-size:27px}.dp-key small{margin-top:4px}
.dp-number{min-height:54px;font-size:27px}.dp-dial{padding-top:0}
.dp-dial-actions{margin-top:4px}.dp-backspace{margin-top:10px}
.vl-phone-role{border:1px solid #334239;background:#090d0b;border-radius:18px;padding:14px;margin:0 0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.vl-phone-role[hidden]{display:none}.vl-phone-role b{display:block}.vl-phone-role small{display:block;color:var(--muted);margin-top:3px;line-height:1.35}
.vl-phone-role button,.vl-native-btn{border:1px solid #42604b;background:#102017;color:var(--green);border-radius:12px;min-height:42px;padding:0 14px;font-weight:900}
.vl-call-card{display:grid;grid-template-columns:48px minmax(0,1fr) 42px;gap:12px;align-items:center;padding:12px 4px;border-bottom:1px solid var(--line)}
.vl-call-direction{font-size:11px;font-weight:900;text-transform:uppercase}.vl-call-direction.missed{color:#ff8b8b}.vl-call-direction.outgoing{color:var(--green)}
.vl-call-time{color:var(--muted);font-size:12px;margin-top:3px}
.vl-ptt-key-box{border:1px solid var(--line);border-radius:16px;padding:14px;background:#07100b}.vl-ptt-key-box p{margin:6px 0;color:var(--muted);font-size:12px;line-height:1.45}
@media(max-height:760px){.dp-key{height:62px}.dp-pad{gap:8px;padding-top:8px}.dp-head{min-height:64px}.dp-main{padding-top:10px}}
.vl-call-card .dp-copy{min-width:0;overflow:hidden}.vl-call-time{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vl-call-card .dp-row-actions{flex-wrap:nowrap}
.vl-dialpad-icon{width:22px;height:28px;position:relative;display:block!important;flex:0 0 auto}
.vl-dialpad-icon:before{content:"";position:absolute;left:2px;top:2px;width:4px;height:4px;border-radius:50%;background:currentColor;box-shadow:8px 0 currentColor,16px 0 currentColor,0 8px currentColor,8px 8px currentColor,16px 8px currentColor,0 16px currentColor,8px 16px currentColor,16px 16px currentColor,0 24px currentColor,8px 24px currentColor,16px 24px currentColor}
.dp-dial{padding-top:64px}
.dp-dial .dp-number{margin-bottom:14px}
@media(max-height:760px){.dp-dial{padding-top:42px}.dp-dial .dp-number{margin-bottom:10px}}

/* VELVET LINE CHAMELEON R5 — phone behavior stays familiar; Velvet is the skin */
:root{
  --bg:#030106;
  --panel:#0b0710;
  --panel2:#120a18;
  --line:#352641;
  --green:#a855f7;
  --gold:#d5ad63;
  --text:#fbf9ff;
  --muted:#aaa3b0;
}
html,body{background:#030106}
body{background:radial-gradient(circle at 50% -10%,rgba(126,34,206,.16),transparent 32%),linear-gradient(180deg,#030106,#08030c 58%,#020103)}
.dp-head,.dp-nav{background:rgba(3,1,6,.97);border-color:var(--line)}
.dp-phone-search,.dp-search,.dp-search-results{background:#0c0910;border-color:#392a43}
.dp-chip{background:#0b080e;border-color:#463650;color:#d7d1db}
.dp-chip.active{background:#2b163b;border-color:#7f4da5;color:#fff}
.dp-fav-head a,.dp-status,.dp-nav a.active{color:#b56cff}
.dp-avatar{background:#120b17;border-color:#4e355d;color:var(--gold)}
.dp-row,.dp-list,.vl-call-card{border-color:#2f2238}
.dp-direct{color:var(--gold)}
.dp-direct:before{background:var(--gold);box-shadow:0 0 10px rgba(213,173,99,.55)}
.dp-mini{background:#0e0912;border-color:#3b2a46}
.dp-mini.velvet{border-color:#8d6a2f;color:var(--gold);background:#130e08}
.dp-call{background:#8b3fd1;color:#fff}
.dp-text{background:#17111d;border-color:#463550}
.dp-velvet{background:#191006;color:var(--gold);border-color:#8d6a2f}
.dp-key{background:#100a15;border-color:#44314f;color:#fff}
.dp-key:active{background:#2e1740}
.vl-phone-role,.vl-ptt-key-box{background:#0b0710;border-color:#3b2b45}
.vl-phone-role button,.vl-native-btn{background:#24122f;border-color:#76439a;color:#fff}
.dc-settings-row:active{background:rgba(168,85,247,.07)}
.dc-settings-icon{color:#b66cff}
/* VELVET LINE CONTACT UNIFICATION R39 — phone-list structure */
.dp-list{background:transparent!important;border-top:1px solid #2f2238!important}
.dp-row{background:rgba(7,3,10,.32)!important;border-bottom:1px solid #3a2945!important;border-radius:0!important;min-height:74px!important;padding:9px 2px!important}
.dp-avatar{border-radius:50%!important;background:#09050d!important;border:1px solid #513761!important;color:#d8d0df!important}
.dp-avatar img{border-radius:50%!important}
.dp-name{font-size:17px!important;font-weight:850!important}
.dp-meta{color:#a9a1af!important;font-size:12px!important}
.dp-row-actions{gap:6px!important;align-items:center!important;flex-wrap:nowrap!important}
.dp-mini{width:40px;height:40px;border-radius:12px!important;border:1px solid #4a3157!important;background:#09050d!important;padding:0!important}
.dp-mini.call{color:#e34c59!important;font-size:20px!important}
.dp-mini.message{color:#fff!important}
.dp-mini.walkie{color:#d5ad63!important}
.dp-mini.invite{width:auto!important;min-width:52px!important;padding:0 8px!important;color:#d5ad63!important;font-size:10px!important;font-weight:950!important;letter-spacing:.04em}
.vl-phone-icon{display:block;line-height:1}
.vl-message-icon{position:relative;display:block;width:20px;height:15px;border-radius:8px;background:#fff}
.vl-message-icon:after{content:"";position:absolute;left:3px;bottom:-4px;border-width:4px 4px 0 0;border-style:solid;border-color:#fff transparent transparent transparent}
.vl-walkie-icon{position:relative;display:block;width:15px;height:22px;border:2px solid currentColor;border-radius:3px}
.vl-walkie-icon:before{content:"";position:absolute;width:2px;height:7px;background:currentColor;right:-4px;top:-7px;transform:rotate(28deg);transform-origin:bottom}
.vl-walkie-icon:after{content:"";position:absolute;left:3px;top:5px;width:7px;height:2px;background:currentColor;box-shadow:0 4px 0 currentColor,2px 10px 0 1px currentColor}
.vl-contact-placeholder{position:relative;display:block;width:100%;height:100%}
.vl-contact-placeholder:before{content:"";position:absolute;left:50%;top:8px;transform:translateX(-50%);width:13px;height:13px;border:2px solid #cfc6d7;border-radius:50%}
.vl-contact-placeholder:after{content:"";position:absolute;left:50%;bottom:7px;transform:translateX(-50%);width:24px;height:13px;border:2px solid #cfc6d7;border-bottom:0;border-radius:14px 14px 0 0}
@media(max-width:420px){
  .dp-row{grid-template-columns:48px minmax(0,1fr) auto!important;gap:9px!important}
  .dp-avatar{width:46px!important;height:46px!important}
  .dp-row-actions{grid-column:auto!important;justify-self:end!important}
  .dp-mini{width:38px;height:38px}
  .dp-mini.invite{min-width:48px!important;padding:0 6px!important}
}
