:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #10181b;
  color: #eef3ef;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 64rem; margin: auto; padding: clamp(1rem, 5vw, 4rem); }
header { border-bottom: 1px solid #37484d; margin-bottom: 2rem; }
h1 { font-size: clamp(2rem, 6vw, 3.35rem); letter-spacing: -.05em; margin: 0; }
header p { display: flex; align-items: center; gap: .8rem; color: #c1d0d1; }
.status { border: 1px solid #507363; color: #baf1cd; border-radius: 1rem; padding: .2rem .65rem; font-size: .875rem; }
.workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(1rem, 5vw, 4rem); align-items: start; }
.phone { background: #263539; border: 1px solid #526368; border-radius: 1.5rem; padding: 1.25rem; box-shadow: 0 1rem 2rem #0005; }
.display { background: #c1d2a8; color: #182919; border: .45rem solid #142125; border-radius: .6rem; padding: 1rem; font-family: ui-monospace, monospace; min-height: 8rem; }
.display-title { font-weight: 700; border-bottom: 1px solid #697d60; padding-bottom: .35rem; }
.display p { margin: .65rem 0 .3rem; }
fieldset { border: 0; padding: 0; margin: 1rem 0 0; min-inline-size: 0; }
legend { color: #d2dddd; font-size: .875rem; padding: 0; }
.softkeys, .keypad { display: grid; gap: .4rem; margin-top: .65rem; }
.softkeys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.keypad { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button { border: 1px solid #586b70; border-radius: .45rem; background: #18262b; color: #d2dddd; min-height: 2.5rem; font: inherit; }
button small { font-size: .68rem; }
.softkeys button { min-height: 1rem; }
.details h2 { margin: 0; font-size: 1.45rem; }
.details p { color: #c1d0d1; line-height: 1.55; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #18272b; border-left: .2rem solid #89dbae; padding: 1rem; color: #baf1cd; }
dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; border-bottom: 1px solid #37484d; padding: .7rem 0; }
dt { color: #c1d0d1; }
dd { margin: 0; }
@media (max-width: 42rem) { .workspace { grid-template-columns: 1fr; } }
