/* Current Figma device communication and safety screens, read 2026-11-12. */
.dev-figma-asset{display:block;flex:none;max-width:none;object-fit:contain}
.dev-figma-call{height:100%;min-height:600px;padding:0 16px;display:flex;flex-direction:column}
.dev-figma-call .page-header{height:60px;padding:8px 16px;margin:0 -16px}
.dev-figma-call .dev-call-scene{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:45px 0 0;min-height:250px}
.dev-figma-call .dev-call-avatar{display:block;width:100px;height:100px;background:none;box-shadow:none;border:0;border-radius:50%;overflow:hidden}
.dev-figma-call .dev-call-avatar img{width:100px;height:100px;object-fit:cover;position:static;transform:none}
.dev-figma-call .dev-call-scene h1{font-size:20px;line-height:28px;margin:16px 0 24px;font-weight:600}
.dev-figma-call .dev-call-state{margin:0;text-align:center;min-height:72px}
.dev-figma-call .dev-call-state h2,.dev-figma-call #dev-call-time{font-size:14px;line-height:22px;font-weight:400;color:var(--muted);margin:0}
.dev-figma-call .dev-call-state p{font-size:12px;line-height:20px;color:var(--muted);margin:12px auto 0;max-width:280px}
.dev-figma-call .dev-call-bottom{padding:0 16px 114px;flex:none}
.dev-figma-call-controls{display:grid;grid-template-columns:72px 72px 72px;gap:32px;justify-content:center;align-items:center}
.dev-figma-call .dev-call-round{display:grid;place-items:center;width:72px;height:72px;padding:0;border:0;border-radius:50%;background:#0208120f}
.dev-figma-call .dev-call-round.selected{background:#6bb66770;box-shadow:0 0 0 2px #fff}
.dev-figma-call .dev-call-round.dev-hangup{background:#ff3b30}
.dev-figma-call .dev-hangup-label{margin-top:16px;font-size:var(--ui-meta);color:var(--muted);line-height:16px}
.dev-figma-call .dev-call-bottom>.btn{margin:0 0 8px}
.dev-figma-messages{height:100%;min-height:540px;display:flex;flex-direction:column;padding:0 16px 16px}
.dev-figma-messages .page-header{height:60px;margin:0 -16px;padding:8px 16px}
.dev-figma-messages .dev-message-thread{flex:1;min-height:0;overflow:auto;padding:16px 0 12px;display:flex;flex-direction:column;gap:18px}
.dev-figma-messages .dev-message{max-width:100%;width:100%;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:0}
.dev-figma-messages .dev-message.from-parent{align-items:flex-end}
.dev-figma-messages .dev-message-time{align-self:center;color:var(--muted);font-size:var(--ui-meta);line-height:16px;margin:0 0 16px}
.dev-figma-messages .dev-message:not(:first-child) .dev-message-time{display:none}
.dev-figma-messages .dev-message-bubble{position:relative;max-width:calc(100% - 16px);border-radius:20px;background:#fff;padding:12px;box-shadow:none;border:0;min-width:0}
.dev-figma-messages .from-parent .dev-message-bubble{background:#0208120f;border-radius:20px}
.dev-figma-messages .dev-message-bubble>p{font-size:14px;line-height:22px;margin:0;white-space:pre-wrap;word-break:break-word}
.dev-figma-messages .dev-message-bubble>.dev-figma-asset{position:absolute;left:24px;bottom:-6px}
.dev-figma-messages .from-parent .dev-message-bubble>.dev-figma-asset{left:auto;right:24px}
.dev-figma-messages .dev-message-bubble.dev-voice-bubble{padding:12px 16px;border-radius:20px;min-width:94px}
.dev-figma-messages .dev-voice-message{display:flex;gap:12px;align-items:center;margin:0;padding:0;width:auto;min-width:0;color:var(--ink);min-height:22px;background:none}
.dev-figma-messages .dev-voice-message.playing{opacity:.55;animation:devVoicePulse 1s infinite alternate}
.dev-voice-actions{margin:9px 0 0;display:flex;justify-content:flex-start}
.dev-transcribe-button{font-size:var(--ui-meta)!important;line-height:18px;color:var(--muted);border:0;background:transparent;padding:0 4px}
.dev-transcription{margin-top:8px;max-width:calc(100% - 16px);border-radius:20px;background:#fff;padding:12px;font-size:14px;line-height:22px}
.from-parent .dev-transcription{background:#0208120f}
.dev-figma-messages .dev-message-status{font-size:var(--ui-meta);margin:6px 3px 0;line-height:16px}
.dev-figma-messages .dev-message-status:empty{display:none}
.dev-figma-messages .dev-message-compose{margin:0;padding:0;background:none;flex:none;border:0;box-shadow:none;position:relative}
.dev-figma-messages .dev-child-composer{min-height:56px;display:flex;align-items:center;padding:12px 16px;gap:10px;border:1px solid #fff;border-radius:28px;background:#ffffff66;box-shadow:none}
.dev-figma-messages .dev-child-composer textarea{padding:0;min-height:22px;height:22px;max-height:88px;background:transparent;border:0;outline:0;resize:none;line-height:22px;font-size:14px;flex:1;min-width:0}
.dev-figma-messages .dev-message-plus,.dev-figma-messages .dev-message-voice{padding:0;border:0;background:transparent;display:grid;place-items:center;width:24px;height:24px;flex:none}
.dev-figma-messages .dev-child-send{width:30px;height:30px;min-width:30px;font-size:20px;line-height:30px;background:var(--green);box-shadow:none}
.dev-figma-messages .dev-child-composer:has(textarea:placeholder-shown) .dev-child-send{display:none}
.dev-figma-messages .dev-child-composer:has(textarea:not(:placeholder-shown)) .dev-message-voice{display:none}
.dev-figma-messages .dev-message-wait-note{font-size:var(--ui-meta);padding:8px 12px;margin-bottom:0}
.dev-figma-messages .dev-message-call{font-size:var(--ui-meta);color:var(--muted);text-align:center;display:block;margin:8px 0}
.dev-figma-messages .dev-image-bubble{padding:6px}
.dev-figma-messages .dev-image-bubble img{max-width:235px;width:auto;height:auto;max-height:220px;border-radius:15px;object-fit:contain}
.phone:has(.dev-figma-location) #content,.phone:has(.dev-figma-route) #content{overflow:visible;bottom:34px}
.dev-figma-location,.dev-figma-route{position:relative;height:100%;padding:0;min-height:600px;isolation:isolate}
.dev-figma-location>.page-header,.dev-figma-route>.page-header{position:relative;z-index:2;padding:8px 16px;height:60px}
.dev-location-map{position:absolute;inset:-54px 0 -34px;z-index:-1;overflow:hidden}
.dev-location-map>.dev-figma-asset{position:absolute;width:418px;height:812px;max-width:none;object-fit:cover;left:50%;top:50%;transform:translate(-50%,-50%)}
.dev-location-pin{position:absolute;width:44px;height:44px;border-radius:50%;padding:3px;background:#fff;box-shadow:0 3px 8px #02081233;left:40%;top:18%}
.dev-location-pin>.dev-figma-asset{width:38px;height:38px;object-fit:cover;border-radius:50%}
.dev-location-panel{position:absolute;left:0;right:0;top:46.5%;bottom:-34px;padding:16px 16px 44px;border-radius:20px 20px 0 0;background:linear-gradient(155deg,#f0f7f4ed,#f7f5f0ed);backdrop-filter:blur(20px);overflow:auto}
.dev-location-panel h3{font-size:16px;line-height:24px;margin:0 0 16px;font-weight:600}
.dev-location-address{display:flex;gap:12px;align-items:center;padding:12px 0;margin-bottom:6px}
.dev-location-address strong{font-size:16px;line-height:24px;display:block}
.dev-location-address small{font-size:12px;line-height:18px;display:block;margin-top:6px;color:var(--muted)}
.dev-location-panel .dev-info-line{display:flex;justify-content:space-between;align-items:center;min-height:54px;border:0;margin:0;padding:12px 0;font-size:14px}
.dev-location-panel .dev-info-line strong{font-weight:400;color:var(--muted)}
.dev-location-panel>.btn{margin:12px 12px 0;width:calc(100% - 24px);min-height:54px;border-radius:27px;box-shadow:none;font-size:14px}
.dev-location-panel>.btn.secondary{background:#fff;color:var(--muted);border:0;margin-top:8px}
.dev-figma-route .dev-segment{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:2;border-radius:28px;padding:0;background:#ffffff99;width:160px;height:44px;display:flex;margin:0;box-shadow:0 4px 16px #0409110d}
.dev-figma-route .dev-segment button{height:44px;width:80px;padding:0;border-radius:28px;background:transparent;border:0;color:var(--muted)}
.dev-figma-route .dev-segment button.active{background:white;color:var(--ink);box-shadow:none}
.dev-figma-route .dev-location-panel{top:63.5%;padding-bottom:34px}
.dev-figma-route .dev-route-path{position:absolute;left:14.5%;top:27.5%}
.dev-figma-route .route-start{left:9.3%;top:41.5%}
.dev-figma-route .route-end{left:64%;top:25%}
.dev-figma-route .dev-timeline{padding:10px 0 0;background:transparent;border:0;box-shadow:none}
.dev-figma-route .dev-timeline-item{display:grid;grid-template-columns:44px 12px 1fr;gap:12px;min-height:68px;padding:0;position:relative;align-items:start}
.dev-figma-route .dev-timeline-item time{font-size:14px;line-height:22px;color:var(--ink)}
.dev-figma-route .dev-timeline-item strong{font-size:14px;line-height:22px;font-weight:500}
.dev-figma-route .dev-timeline-item small{font-size:12px;line-height:18px;color:var(--muted);display:block;margin-top:4px}
.dev-figma-route .dev-timeline-dot{position:relative;width:12px;height:12px;display:block;border:0;background:transparent;box-shadow:none;margin-top:5px;left:auto;top:auto}
.dev-figma-route .dev-timeline-dot:after,.dev-figma-route .dev-timeline-item:before{display:none}
.dev-route-timeline-line{position:absolute;left:6px;top:12px;transform:rotate(90deg);transform-origin:0 0}
.dev-figma-fences{padding:0;overflow:hidden;border-radius:20px;background:#ffffff66;border:.5px solid #fff}
.dev-figma-fence-row{display:flex;gap:8px;align-items:center;text-align:left;width:100%;padding:16px 12px;min-height:76px;background:none;border:0}
.dev-figma-fence-row>span:first-child{flex:1;display:block;min-width:0}
.dev-figma-fence-row strong{display:block;font-size:16px;line-height:24px;font-weight:600}
.dev-figma-fence-row small{display:block;font-size:var(--ui-meta);line-height:16px;margin-top:4px;color:var(--muted)}
.dev-fence-state{font-size:14px;line-height:22px;color:var(--muted);white-space:nowrap}
.dev-figma-add-row{display:flex;justify-content:space-between;align-items:center;padding:16px;width:100%;min-height:54px;border:0;background:transparent;text-align:left}
.dev-figma-guard>h3{font-size:16px;line-height:24px;padding:0 12px;margin:0 0 8px}
.dev-figma-guard>h3:not(:first-child){margin-top:16px}
.dev-figma-guard .dev-setting-list{padding:0;background:#ffffff66;border:.5px solid #fff;border-radius:20px;margin:0;overflow:hidden}
.dev-figma-guard .dev-setting-row{padding:16px 12px;min-height:72px;gap:12px;border:0;display:flex;align-items:center}
.dev-figma-guard .dev-setting-row>div{flex:1;min-width:0}
.dev-figma-guard .dev-setting-row strong{font-size:14px;line-height:22px;font-weight:500}
.dev-figma-guard .dev-setting-row small{font-size:var(--ui-meta);line-height:16px;margin-top:4px;color:var(--muted)}
.dev-figma-guard .dev-switch{width:64px;height:28px;background:#b9bcb5;min-width:64px}
.dev-figma-guard .dev-switch.is-on{background:var(--green)}
.dev-figma-guard .dev-switch span{width:22px;height:22px;top:3px;left:3px}
.dev-figma-guard .dev-switch.is-on span{transform:translateX(36px)}
.dev-guard-slots{padding:0;border-radius:20px;background:#ffffff66;border:.5px solid #fff;overflow:hidden}
.dev-guard-days{display:flex;flex-wrap:wrap;gap:12px;border:0;padding:10px 0}
.dev-guard-days label{display:flex!important;flex-direction:row;align-items:center;gap:4px!important;margin:0!important}
.dev-guard-days input,.dev-checkbox-row input{width:auto!important;min-height:0!important}
.dev-modal-form .dev-checkbox-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between}
.dev-danger-link{color:var(--ui-danger);background:transparent;border:0;padding:14px;display:block;width:100%}
.dev-figma-find{text-align:center}
.dev-figma-find .dev-find-orb{margin:6px auto 0;width:220px;height:220px;border:0;background:none;border-radius:0;box-shadow:none}
.dev-figma-find .dev-find-orb>img{width:220px;height:220px;position:static;object-fit:contain;filter:none}
.dev-figma-find>p{font-size:var(--ui-meta);line-height:16px;color:var(--muted);margin:6px 0 24px}
.dev-figma-find>.btn{height:54px;min-height:54px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:27px;box-shadow:none}
.dev-figma-alerts .dev-alert-date{font-size:var(--ui-meta);line-height:16px;color:var(--muted);margin:16px 12px 8px}
.dev-figma-alerts .dev-alert-date:first-child{margin-top:16px}
.dev-figma-alerts .dev-alert-list{padding:0;margin:0;border-radius:20px;overflow:hidden;background:#ffffff66;border:.5px solid #fff}
.dev-figma-alerts .dev-alert-item{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px;border:0;background:none;width:100%}
.dev-figma-alerts .dev-tinted-icon{width:20px;height:20px;background:transparent;border-radius:0;padding:0}
.dev-figma-alerts .dev-alert-copy{flex:1}
.dev-figma-alerts .dev-alert-copy strong{font-size:14px;line-height:22px;font-weight:500}
.dev-figma-alerts .dev-alert-copy small{font-size:var(--ui-meta);line-height:16px;color:var(--muted);margin-top:4px}
.dev-contact-guide .dev-contact-intro-icon,.dev-contact-guide>h3,.dev-contact-guide>p{display:none}
.dev-contact-guide .dev-contact-target{display:grid;grid-template-columns:1fr 1.5fr;gap:0;padding:0 12px;background:#fff;border:0;border-radius:20px;margin:12px 0 32px}
.dev-contact-guide .dev-contact-target span,.dev-contact-guide .dev-contact-target strong{padding:16px 0;line-height:22px;font-size:14px;font-weight:400}
.dev-contact-guide .dev-contact-target strong{text-align:right;color:var(--muted)}
.dev-contact-guide .dev-contact-target i{display:none}
.dev-contact-guide .dev-form-actions{gap:8px}
.dev-contact-guide .dev-form-actions .btn{min-height:44px;border-radius:22px}
@media(max-width:350px){.dev-figma-call-controls{gap:24px}.dev-figma-call .dev-call-bottom{padding-left:0;padding-right:0}.dev-figma-guard .dev-setting-row{gap:8px}.dev-figma-guard .dev-switch{min-width:52px;width:52px}.dev-figma-guard .dev-switch.is-on span{transform:translateX(24px)}}
@media(max-height:730px){.dev-figma-call{min-height:530px}.dev-figma-call .dev-call-scene{padding-top:22px}.dev-figma-call .dev-call-bottom{padding-bottom:70px}.dev-figma-messages{min-height:500px}}

/* Fence edit keeps the original safe modal lifecycle in the full-screen design. */
.phone:has(.dev-figma-fence-editor) #content{visibility:hidden}
.overlay:has(.dev-figma-fence-editor){background:transparent;align-items:flex-start}
.sheet:has(.dev-figma-fence-editor){height:calc(100% - 54px);max-height:none;margin-top:54px;border-radius:0;padding:0 16px 34px;background:transparent;box-shadow:none;animation:none}
.sheet:has(.dev-figma-fence-editor)>.sheet-handle,.sheet:has(.dev-figma-fence-editor)>.sheet-header{display:none}
.sheet:has(.dev-figma-fence-editor)>.sheet-body{padding:0}
.dev-modal-form.dev-figma-fence-editor{gap:0}
.dev-fence-editor-header{height:60px;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.dev-fence-editor-header h2{margin:0;font-size:16px;line-height:24px;font-weight:600}
.dev-fence-editor-header button{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:50%}
.dev-fence-back{background:#ffffff66;box-shadow:inset 0 0 0 1px #fff}
.dev-fence-done{background:var(--green)}
.dev-figma-fence-editor .dev-fence-notification{display:flex;min-height:56px;padding:12px 16px;margin:0 0 16px;background:#ffffff66;border:1px solid #fff;border-radius:20px;font-size:14px;color:var(--ink)}
.dev-figma-fence-editor #dev-fence-enabled{appearance:none;position:relative;display:block;width:64px!important;height:28px;min-height:28px!important;border:0;border-radius:16px;padding:0;background:#b9bcb5;cursor:pointer;flex:none}
.dev-figma-fence-editor #dev-fence-enabled:checked{background:var(--green)}
.dev-figma-fence-editor #dev-fence-enabled:before{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:white;transition:transform .2s}
.dev-figma-fence-editor #dev-fence-enabled:checked:before{transform:translateX(36px)}
.dev-fence-fields{padding:0 12px;background:#ffffff66;border:1px solid #fff;border-radius:20px}
.dev-figma-fence-editor .dev-fence-fields>label{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;min-height:54px;font-size:14px;line-height:22px;color:var(--ink)}
.dev-fence-fields input,.dev-fence-fields select{width:60%;padding:8px 0;min-width:0;min-height:44px;border:0;background:transparent;border-radius:6px;text-align:right;color:var(--muted);font-size:14px}
.dev-fence-radius-field{display:flex;align-items:center;gap:8px;min-width:0}
.dev-fence-radius-field select{appearance:none;width:80px;padding-right:0;cursor:pointer}
@media(max-width:350px){.dev-fence-fields input{width:58%}.dev-figma-fence-editor .dev-fence-fields>label{gap:8px;font-size:13px}.dev-fence-fields input,.dev-fence-fields select{font-size:13px}}
