/* Трубка GSM: матовый пластик, утопленный LCD и физические клавиши. */
.modal-backdrop:has(.modal-phone){padding:48px 14px 20px;background:radial-gradient(ellipse at 50% 45%,#26312bc9,#0c1214ed 75%);overflow-y:auto}
.modal.modal-phone{isolation:isolate;position:relative;flex:none;display:grid;grid-template-rows:34px 20px minmax(145px,1fr) 104px 174px 10px;gap:10px;width:min(100%,320px);height:clamp(610px,calc(100dvh - 80px),714px);max-height:none;padding:23px 24px 24px;overflow:visible;border:2px solid #4b5050;border-radius:46px 46px 55px 55px;background:radial-gradient(ellipse at 14% 0,#555c60a6,transparent 35%),repeating-linear-gradient(100deg,#ffffff02 0 1px,#00000003 1px 3px),linear-gradient(100deg,#202629,#333b3f 12%,#292f32 48%,#252c2f 87%,#171d20);box-shadow:inset 2px 0 2px #b7c0bd30,inset -4px 0 4px #06090ba1,inset 0 3px 2px #c2c8c12b,inset 0 -5px 6px #03080ba8,0 2px 0 2px #090e11,8px 20px 28px #0009,0 35px 85px #0008}
.modal-phone:before{content:'';position:absolute;z-index:-1;inset:7px 6px;border:1px solid #8c96951c;border-radius:39px 39px 48px 48px;pointer-events:none;box-shadow:0 0 0 1px #0a0f1455}
.modal-phone:after{content:'';position:absolute;z-index:-1;left:-5px;top:128px;height:55px;width:4px;border-radius:3px 0 0 3px;background:repeating-linear-gradient(0deg,#171c1e 0 4px,#4a5050 4px 5px);box-shadow:-1px 0 #070a0c}
.handset-antenna{position:absolute;z-index:-1;right:33px;bottom:calc(100% - 10px);height:51px;width:19px;border:1px solid #4a5050;border-radius:8px 8px 2px 2px;background:linear-gradient(90deg,#171c1f,#3d4547 35%,#252b2e 65%,#10171a);box-shadow:inset 2px 0 2px #8b989822,3px 2px 4px #0005}
.handset-antenna:after{content:'';position:absolute;bottom:0;left:-4px;right:-4px;height:14px;border:1px solid #424b4d;border-radius:5px 5px 0 0;background:linear-gradient(90deg,#151b1e,#3a4347,#1a2124)}
.handset-crown{position:relative;display:grid;place-items:center}
.handset-speaker{width:76px;height:20px;border-radius:18px;background:repeating-linear-gradient(0deg,#080e10 0 2px,#424b4e 2px 3px,#181f21 3px 5px);box-shadow:inset 0 2px 3px #000a,0 1px #8a949333}
.handset-led{position:absolute;right:11px;top:5px;width:5px;height:5px;border:1px solid #0e1910;border-radius:50%;background:#8aa678;box-shadow:0 0 5px #a5c08655,inset 1px 1px #c9d9a7}
.handset-brand{display:flex;align-items:center;justify-content:space-between;padding-inline:8px;color:#bfc5bc;text-shadow:0 1px #000;align-self:center}
.handset-brand>b{font:600 13px/1 var(--display);letter-spacing:3px}
.handset-brand>span{font:8px/1 monospace;color:#939e99;letter-spacing:1.5px}
.handset-screen-bezel{display:flex;min-height:0;margin:0 -3px;padding:8px;border:1px solid #151d20;border-radius:13px 13px 19px 19px;background:linear-gradient(155deg,#131b1e,#3c4649 75%,#59615f);box-shadow:0 1px #a6af9b38,inset 0 3px 6px #060b0d,inset 1px 0 #091014}
.handset-screen{--lcd-ink:#293c29;--lcd-paper:#aab987;display:flex;flex-direction:column;min-width:0;width:100%;overflow:hidden;padding:9px 9px 0;border:2px solid #18291d;border-radius:4px 4px 8px 8px;background:repeating-linear-gradient(0deg,#23381e08 0 1px,transparent 1px 3px),radial-gradient(ellipse at 45% 40%,#c2c996,#a4b682 85%);color:var(--lcd-ink);font-family:'Courier New',monospace;text-shadow:0 0 1px #37572e28;box-shadow:inset 1px 3px 5px #273e2966,inset 0 0 16px #5f7c3d40,0 1px #bcc5a133}
.handset-status{display:flex;align-items:center;gap:7px;flex:none;height:14px;margin-bottom:7px;font-size:9px;line-height:1;letter-spacing:.3px}
.handset-status>b{font-size:8px;letter-spacing:.5px;margin-right:auto}
.phone-signal{display:flex;align-items:flex-end;gap:2px;height:11px}
.phone-signal>i{display:block;width:3px;background:var(--lcd-ink);height:4px}.phone-signal>i:nth-child(2){height:6px}.phone-signal>i:nth-child(3){height:8px}.phone-signal>i:nth-child(4){height:10px}
.phone-battery{position:relative;display:block;width:17px;height:8px;border:1px solid var(--lcd-ink);background:repeating-linear-gradient(90deg,var(--lcd-ink) 0 3px,transparent 3px 4px);background-clip:content-box;padding:1px}
.phone-battery:after{content:'';position:absolute;left:100%;top:1px;width:2px;height:4px;background:var(--lcd-ink)}
.handset-screen-title{display:flex;align-items:center;justify-content:space-between;gap:4px;flex:none;padding:5px 0 6px;border-top:1px solid #33482d7a;border-bottom:1px solid #33482d7a}
.handset-screen-title>h2{font:bold 14px/1.1 'Courier New',monospace;margin:0;letter-spacing:-.4px;color:inherit}
.handset-screen-title>span{font-size:10px;white-space:nowrap}
.phone-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#42563885 transparent;outline-offset:-2px;padding:5px 0}
.handset-message{display:flex;align-items:flex-start;gap:7px;width:100%;min-height:48px;padding:7px 5px;text-align:left;border:0;border-radius:0;background:none;color:inherit;font:12px/1.35 'Courier New',monospace}
.handset-message>span:last-child{flex:1;min-width:0}
.handset-message strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:400;line-height:1.3}
.handset-message.unread strong{font-weight:700}
.handset-message small{display:block;font-size:9px;line-height:1.5;opacity:.85;margin-top:4px;white-space:nowrap}
.handset-message.selected,.handset-message:hover{color:#bac897;background:#30472eea;text-shadow:none}
.sms-envelope{position:relative;display:block;flex:none;height:10px;width:14px;border:1px solid currentColor;margin-top:3px}
.sms-envelope:before{content:'';position:absolute;top:-4px;left:2px;width:7px;height:7px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg)}
.sms-envelope.is-open{opacity:.6}.sms-envelope.is-open:before{top:-5px;transform:rotate(225deg)}
.handset-soft-labels{display:flex;align-items:stretch;justify-content:space-between;gap:6px;flex:none;border-top:1px solid #33482d7a;min-height:29px}
.handset-soft-labels>button{max-width:67%;font:bold 11px/1.2 'Courier New',monospace;color:inherit;background:none;border:0;border-radius:0;padding:7px 0;text-align:left}
.handset-soft-labels>button:last-child{text-align:right;flex-shrink:0}
.handset-soft-labels>button:hover{text-decoration:underline;text-underline-offset:3px}
.handset-screen button:disabled{opacity:.4;cursor:default}
.handset-screen :focus-visible{outline:1px dashed currentColor;outline-offset:-2px}
.handset-sms{padding:6px 3px 10px;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.handset-sms-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px;font-size:10px;margin-bottom:8px}
.handset-sms>h3{font:bold 14px/1.35 'Courier New',monospace;color:inherit;margin:0 0 8px}
.handset-sms>p{font:12px/1.6 'Courier New',monospace;color:inherit;margin:0;white-space:pre-line}
.handset-resolved{display:block;margin:0 0 7px;font-size:10px}
.handset-target{display:block;color:inherit;border:1px solid currentColor;border-radius:0;background:none;font:bold 11px/1.3 'Courier New',monospace;padding:6px;margin-top:10px;width:100%;text-align:left}
.handset-target:hover{color:#bac897;background:#30472e}
.handset-menu{padding:4px 0}
.handset-menu>button{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;padding:10px 4px;border:0;border-radius:0;background:none;color:inherit;font:12px/1.2 'Courier New',monospace;text-align:left}
.handset-menu>button.selected,.handset-menu>button:hover:not(:disabled){background:#30472e;color:#bac897}
.handset-menu b{font-weight:400}
.handset-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:100%;text-align:center;padding:15px 5px}
.handset-empty>.sms-envelope{margin:4px 0 12px;width:22px;height:15px}
.handset-empty>h3{font:bold 14px/1.2 'Courier New',monospace;color:inherit;margin:0 0 8px}
.handset-empty>p{font:11px/1.5 'Courier New',monospace;color:inherit;margin:0;max-width:180px}
.handset-controls{display:grid;grid-template-columns:1fr 66px 1fr;grid-template-rows:32px 60px;gap:9px 14px;padding:0 6px}
.handset-key{border:1px solid #0c1215;border-radius:12px;background:linear-gradient(165deg,#50585a,#343d40 42%,#242d30);box-shadow:inset 0 1px 1px #b0b9b65e,inset 1px 0 #7b878040,inset -1px -2px 2px #070e11b3,0 2px 1px #060a0c,0 3px 0 #515b5630;color:#d2d6c9;text-shadow:0 1px 2px #000;font-family:var(--font);touch-action:manipulation}
.handset-key:hover{background:linear-gradient(165deg,#626b6a,#3c4848 42%,#303c3e)}
.handset-key:active{transform:translateY(2px);box-shadow:inset 0 1px 3px #0009,0 1px #69736d33}
.handset-key:focus-visible,.handset-rocker>button:focus-visible{outline:2px solid #d4c090;outline-offset:2px}
.handset-key:disabled{opacity:.4;cursor:default}
.handset-soft{height:26px;align-self:start;border-radius:7px 7px 13px 13px;margin-inline:4px;display:grid;place-items:center}
.handset-soft>span{width:17px;height:2px;border-radius:1px;background:#bbc2b4;box-shadow:0 1px #111}
.handset-soft-left{grid-column:1;transform:rotate(-5deg)}.handset-soft-right{grid-column:3;transform:rotate(5deg)}
.handset-call,.handset-end{height:37px;margin-top:8px;display:grid;place-items:center;border-radius:13px 10px 17px 13px}
.handset-call{grid-row:2;grid-column:1;transform:rotate(-8deg);color:#8cac7d}
.handset-end{grid-row:2;grid-column:3;transform:rotate(8deg);color:#b57564;border-radius:10px 13px 13px 17px}
.handset-call>.ico,.handset-end>.ico{width:22px;height:22px;stroke-width:2.4}
.handset-call>.ico{transform:rotate(-25deg)}.handset-end>.ico{transform:rotate(115deg)}
.handset-rocker{grid-column:2;grid-row:1/3;display:grid;grid-template-rows:1fr 8px 1fr;border:2px solid #12191c;border-radius:25px;background:linear-gradient(90deg,#3b4748,#64716e 45%,#3c4949);box-shadow:inset 1px 1px 2px #a9b1a760,inset -2px -2px 3px #0e161a,0 2px #727d6b33}
.handset-rocker>button{display:grid;place-items:center;background:none;color:#c3cabc;font:18px/1 monospace;border-radius:23px;padding:0;text-shadow:0 1px #000}
.handset-rocker>button:hover{background:#abb8a316}
.handset-rocker>span{height:8px;color:#192527;font:15px/7px monospace;text-align:center;text-shadow:0 1px #9ba99b66}
.handset-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,1fr);gap:9px 13px;margin:0 7px}
.handset-digit{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;border-radius:9px 9px 13px 13px;padding:2px 0}
.handset-digit:nth-child(3n+1){transform:rotate(-5deg)}.handset-digit:nth-child(3n){transform:rotate(5deg)}
.handset-digit>b{font:500 22px/1 var(--font);letter-spacing:1px}
.handset-digit>small{font:500 6px/1.5 var(--font);letter-spacing:.5px;color:#b7c0b0;white-space:nowrap}
.handset-digit:active{transform:translateY(2px)}
.handset-mic{display:grid;place-items:end center}
.handset-mic>span{width:32px;height:5px;border-radius:5px;background:repeating-linear-gradient(90deg,#0b1215 0 3px,#4d5750 3px 5px);box-shadow:0 1px #858f7f22}
@media(max-height:700px){.modal-backdrop:has(.modal-phone){align-items:flex-start}.modal.modal-phone{height:610px}}
@media(max-width:360px){.modal.modal-phone{padding-inline:20px;grid-template-rows:30px 18px minmax(145px,1fr) 99px 166px 10px;gap:9px;border-radius:40px 40px 50px 50px}.handset-controls{padding-inline:4px;gap:8px 12px;grid-template-rows:29px 60px}.handset-keypad{margin-inline:5px;gap:8px 11px}.handset-screen{padding-inline:7px}.handset-status{gap:5px}.handset-status>b{font-size:7px}.handset-message{font-size:11px}.handset-message small{font-size:8px}.handset-digit>small{font-size:5px}.handset-soft-labels>button{font-size:10px}}
