.device-sheet {
  color-scheme: dark;
  color: #eef2ed;
  width: min(450px, calc(100% - 32px));
  max-height: min(86dvh, 780px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #47574d;
  border-radius: 20px;
  background: #151b18;
  box-shadow: 0 25px 84px #03080580;
  text-align: start;
  font: inherit;
}
.device-sheet::backdrop { background: rgb(4 9 7 / 72%); backdrop-filter: blur(5px); }
.dv-head, .dv-subhead, .dv-actions, .dv-option { display: flex; align-items: center; }
.dv-head {
  position: sticky; top: 0; z-index: 1; justify-content: space-between;
  gap: 12px; padding: 12px 21px 11px 13px; border-bottom: 1px solid #303b33; background: #151b18;
}
.device-sheet :is(h2,h3,p) { margin: 0; }
.dv-head h2 { font-size: 1.08rem; font-weight: 700; }
.dv-body { padding: 20px 21px 18px; }
.dv-install { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 4px 13px; margin-block-end: 24px; }
.dv-install img { inline-size: 52px; block-size: 52px; border-radius: 14px; }
.device-sheet h3 { color: #f0f4ed; font-size: .95rem; line-height: 1.55; }
.dv-install p, .dv-explain, .dv-copy small, .dv-message, .dv-local {
  color: #bac6bc; font-size: .8rem; line-height: 1.75;
}
.dv-install p { padding-block-start: 3px; }
.dv-install .dv-install-action { grid-column: 2; justify-self: start; }
.dv-subhead { justify-content: space-between; gap: 12px; }
.dv-state {
  display: inline-flex; gap: 5px; align-items: center; color: #b7c1b8;
  padding: 2px 8px; border: 1px solid #3b473e; border-radius: 20px; line-height: 1.6; font-size: .72rem;
}
.dv-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #88948a; }
.dv-state[data-active="true"] { color: #b8e5c2; border-color: #476e53; }
.dv-state[data-active="true"]::before { background: #97dca4; }
.dv-explain { padding-block: 6px 10px; }
.dv-options { display: block; margin: 0; padding: 0; min-width: 0; border: 0; }
.dv-option { min-height: 56px; gap: 11px; border-bottom: 1px solid #2c3730; cursor: pointer; }
.dv-glyph { color: #abbbaf; display: grid; place-items: center; width: 25px; flex: none; }
.dv-copy { flex: 1; min-width: 0; padding-block: 6px; }
.dv-copy strong,.dv-copy small { display: block; }
.dv-copy strong { color: #e6ede6; font-size: .88rem; }
.dv-copy small { color: #a9b5ab; font-size: .74rem; }
.dv-option input {
  appearance: none; width: 21px; height: 21px; min-width: 21px; padding: 0; margin: 0 5px;
  border-radius: 6px; border: 1px solid #738276; background: #19211b;
  display: grid; place-content: center;
}
.dv-option input:checked { border-color: #a8d9b0; background: #a8d9b0; }
.dv-option input:checked::after {
  content: ''; width: 8px; height: 4px; border: solid #122219; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px,-1px);
}
.dv-options:disabled .dv-option { cursor: default; }
.dv-options:disabled input { opacity: .5; }
.dv-actions { gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.dv-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 14px; border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; color: #e1ebe2; background: none; font: inherit; font-size: .81rem; font-weight: 650;
}
.device-sheet [hidden] { display: none; }
.dv-main { background: #b4dfb9; color: #122519; }
.dv-main:hover:not(:disabled) { background: #c4edca; }
.dv-secondary, .dv-install-action { border-color: #44544a; }
.dv-install-action { margin-block-start: 4px; }
.dv-stop { color: #edb7ad; padding-inline: 8px; }
.dv-close { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.dv-close:hover,.dv-secondary:hover:not(:disabled) { background: #26332a; }
.dv-button:disabled { opacity: .5; cursor: default; }
.dv-button:focus-visible,.dv-option input:focus-visible { outline: 2px solid #b8e3c0; outline-offset: 3px; }
.dv-message:not(:empty) { padding-top: 10px; color: #d2e3d4; }
.dv-local { margin-block-start: 15px !important; border-top: 1px solid #2c3730; padding-top: 10px; font-size: .74rem; }
.dv-target { outline: 2px solid #85c094; outline-offset: -2px; }
@media(max-width: 560px) {
  .device-sheet {
    margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh;
    border-radius: 22px 22px 0 0; border-width: 1px 0 0;
  }
  .dv-body { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
  .dv-head { padding-inline: 16px 8px; }
  .dv-actions .dv-main:only-of-type { width: 100%; }
}
