.demo-win {
  inline-size: 100%;
  block-size: 100%;
  min-inline-size: 0;
  overflow: hidden;
  container-type: inline-size;
  background: radial-gradient(ellipse at 28% 15%, #e0e5d9, transparent 66%), #cbd5c7;
  color: #253d36;
  font-family: "Segoe UI", var(--sans, system-ui);
  text-align: start;
}
.demo-win__camera {
  inline-size: 100%;
  block-size: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 41px;
  justify-items: center;
  gap: 10px;
  padding: 23px clamp(17px, 5%, 34px) 21px;
}
.demo-win__mail, .demo-win__rail { inline-size: min(100%, 29rem); min-inline-size: 0; }
.demo-win__mail {
  border: 1px solid #98a798;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 3px 8px #304b3621;
}
.demo-win__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-bottom: 1px solid #d5dcd1;
  border-radius: 8px 8px 0 0;
  background: #edf1ea;
  color: #45574e;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}
.demo-win__envelope { position: relative; width: 14px; height: 10px; border: 1px solid currentColor; border-radius: 2px; overflow: hidden; }
.demo-win__envelope::after { content: ""; position: absolute; width: 9px; height: 9px; left: 1px; top: -6px; transform: rotate(45deg); border: solid currentColor; border-width: 0 1px 1px 0; }
.demo-win__paper { padding: 14px clamp(14px, 4.2%, 24px); }
.demo-win__paper p { margin: 0; }
.demo-win__subject { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 650; line-height: 1.35; }
.demo-win__paper .demo-win__greeting { margin-block: 12px 3px; }
.demo-win__greeting, .demo-win__reply { font-size: .97rem; line-height: 1.45; }
.demo-win__caret { display: inline-block; height: 1em; margin-inline-start: 1px; border-left: 2px solid #37694f; vertical-align: -.12em; }
.demo-win__rail { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-win__key {
  align-self: center;
  flex: none;
  border: 1px solid #8c998b;
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 6px 9px;
  color: #254034;
  background: #f9f9ee;
  font: 600 .75rem/1.3 var(--sans, system-ui);
}
.demo-win[data-phase="holding"] .demo-win__key { color: #fcfcf4; background: #2a513f; border-color: #234433; transform: translateY(2px); }
.demo-win__hud {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 124px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 11px 4px 5px;
  border: 1px solid #65695d;
  border-radius: 24px;
  background: #252924;
  color: #faf8f4;
  box-shadow: 0 2px 5px #20352724;
}
.demo-win__hud[hidden] { display: none; }
.demo-win__meter { display: flex; flex: none; align-items: center; justify-content: center; gap: 2px; width: 27px; height: 27px; border-radius: 50%; background: #3e4a41; color: #c2eed9; }
.demo-win__meter i { width: 2px; height: 6px; border-radius: 2px; background: currentColor; }
.demo-win__meter i:nth-child(even) { height: 11px; }
.demo-win__meter i:nth-child(3) { height: 16px; }
.demo-win[data-phase="released"] .demo-win__meter i { width: 3px; height: 3px; }
.demo-win[data-phase="released"] .demo-win__meter i:nth-child(n+4) { display: none; }
.demo-win[data-phase="inserted"] .demo-win__meter i { display: none; }
.demo-win[data-phase="inserted"] .demo-win__meter::after { content: ""; width: 5px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.demo-win__status { font-size: .75rem; line-height: 1.25; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .demo-win[data-phase="holding"] .demo-win__key { transform: none; }
}
