.screen-planner {
  grid-template-columns: minmax(195px, 250px) minmax(220px, 1fr) minmax(230px, 300px);
}

.screen-sample {
  min-width: 0;
  padding: 16px;
  background: #e9edef;
  border-color: #d5dce0;
}

.sample-device {
  --pv-ink: #1c282b;
  --pv-muted: #667579;
  --pv-accent: #176957;
  --pv-line: #e3e8e6;
  color-scheme: light;
  color: var(--pv-ink);
  width: 390px;
  height: 844px;
  min-width: 390px;
  max-height: none;
  zoom: var(--preview-scale, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  border: 7px solid #263130;
  border-radius: 48px;
  padding: 0;
  background: #fff;
  box-shadow: 0 12px 24px #18282524, 0 0 0 2px #a7b1ad;
  font: 400 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-align: left;
}

.sample-device *, .sample-device *::before, .sample-device *::after {
  letter-spacing: 0;
}

.sample-device [hidden] { display: none !important; }
.sample-device button, .sample-device input { font: inherit; }
.sample-device button { cursor: pointer; }
.sample-device button:focus-visible, .sample-device input:focus-visible, .sample-screen-body:focus-visible {
  outline: 3px solid #258575;
  outline-offset: -3px;
}
.sample-device svg { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.sample-device h2, .sample-device h3, .sample-device p { margin: 0; }
.sample-device h2 { font-size: 28px; font-weight: 750; line-height: 1.2; }
.sample-device h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.sample-device p { color: var(--pv-muted); font-size: 15px; line-height: 1.55; }
.sample-device small { font-size: 12px; color: var(--pv-muted); line-height: 1.4; }
.sample-device strong { font-weight: 650; }
.sample-device input { min-width: 0; }
.sample-device img { display: block; width: 100%; max-width: 100%; object-fit: cover; }
.sample-device button { -webkit-tap-highlight-color: transparent; }

.pv-status {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  font-size: 14px;
  font-weight: 700;
  position: relative;
}
.pv-status > span:last-child { display: flex; gap: 4px; }
.pv-status svg { width: 16px; height: 16px; }
.pv-camera { position: absolute; width: 92px; height: 25px; background: #17201e; border-radius: 20px; left: calc(50% - 46px); top: 9px; }
.pv-appbar { display: flex; justify-content: space-between; align-items: center; height: 48px; flex-shrink: 0; padding: 0 22px; border-bottom: 1px solid var(--pv-line); }
.pv-app-brand { display: flex; align-items: center; gap: 7px; color: var(--pv-accent); font-size: 14px; font-weight: 750; }
.pv-app-brand svg { width: 18px; height: 18px; }
.pv-sample-label { font-size: 10px; color: #697773; font-weight: 650; }
.sample-screen-body {
  display: block;
  flex: 1;
  min-height: 0;
  padding: 24px 22px 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-width: thin;
  scrollbar-color: #bacbc3 transparent;
  scroll-padding: 16px;
  background: #fff;
}
.pv-heading { margin-bottom: 24px; }
.pv-heading p { margin-top: 8px; font-size: 14px; }
.pv-option { margin-top: 22px; }
.pv-option:empty { display: none; }
.pv-section { margin-top: 24px; }
.pv-section:first-child { margin-top: 0; }
.pv-section > h3 { margin-bottom: 12px; }
.pv-section > p + * { margin-top: 14px; }
.pv-bottom-space { height: 28px; }
.pv-row { min-height: 66px; display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--pv-line); }
.pv-symbol { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 8px; color: var(--pv-accent); background: #edf5f0; }
.pv-row-copy { min-width: 0; flex: 1; }
.pv-row-copy strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.pv-row-copy small { display: block; margin-top: 3px; }
.pv-value { color: #687673; font-size: 12px; max-width: 30%; text-align: right; }
.pv-button { width: 100%; border: 1px solid #ccd9d3; color: var(--pv-ink); background: #fff; min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 8px; padding: 11px 14px; font-size: 14px !important; font-weight: 650 !important; text-align: left; }
.pv-button + .pv-button { margin-top: 10px; }
.pv-button.pv-primary { background: var(--pv-accent); color: #fff; border-color: var(--pv-accent); }
.pv-button:hover { box-shadow: inset 0 0 0 2px #25857545; }
.pv-tool { display: inline-grid; place-items: center; border: 1px solid var(--pv-line); border-radius: 8px; background: #f6f8f7; width: 44px; height: 44px; color: var(--pv-accent); flex-shrink: 0; }
.pv-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 8px 0; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-chips button { border: 1px solid var(--pv-line); background: #f7f9f8; color: #54625e; border-radius: 8px; padding: 8px 12px; font-size: 13px; min-height: 36px; }
.pv-chips button[aria-pressed="true"] { background: #e6f2eb; color: #145a48; border-color: #87b9a1; }
.pv-field { display: grid; gap: 7px; margin: 14px 0; font-size: 13px; font-weight: 600; }
.pv-field input { background: #f8faf9; border: 1px solid #d8e0dc; color: var(--pv-ink); padding: 12px; border-radius: 8px; width: 100%; height: 46px; font-weight: 400; }
.pv-field input::placeholder { color: #7b8782; }
.pv-field input[type="range"] { accent-color: var(--pv-accent); padding: 0; }
.pv-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pv-toggle { position: relative; cursor: pointer; }
.pv-toggle input { position: absolute; right: 0; width: 42px; height: 26px; opacity: 0; cursor: pointer; }
.pv-switch { width: 42px; height: 26px; border-radius: 20px; background: #ccd6d1; padding: 3px; flex-shrink: 0; pointer-events: none; }
.pv-switch::after { content: ""; display: block; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0002; }
.pv-toggle input:checked + .pv-switch { background: var(--pv-accent); }
.pv-toggle input:checked + .pv-switch::after { transform: translateX(16px); }
.pv-toggle input:focus-visible + .pv-switch { outline: 3px solid #258575; outline-offset: 3px; }
.pv-photo { height: 185px; border-radius: 8px; }
.pv-cover { height: 180px; border-radius: 8px; }
.pv-album { aspect-ratio: 1; border-radius: 8px; }
.pv-media { border: 1px solid var(--pv-line); border-radius: 8px; overflow: hidden; margin: 16px 0; }
.pv-media .pv-photo { border-radius: 0; height: 150px; }
.pv-media > div { padding: 14px; }
.pv-media strong, .pv-media small { display: block; }
.pv-media small { margin-top: 5px; }
.pv-welcome { padding: 24px 0 0; }
.pv-welcome h2 { margin: 14px 0 12px; font-size: 30px; }
.pv-app-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: #e8f2eb; color: var(--pv-accent); }
.pv-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.pv-avatar { display: grid; place-items: center; width: 44px; height: 44px; background: #e4efec; color: #246d58; border-radius: 50%; font-size: 13px; font-weight: 750; flex-shrink: 0; }
.pv-person strong, .pv-person small { display: block; }
.pv-person small { margin-top: 3px; }
.pv-stats { display: flex; padding: 20px 0; gap: 12px; border-bottom: 1px solid var(--pv-line); }
.pv-stats > div { flex: 1; min-width: 0; }
.pv-stats strong { display: block; font-size: 23px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.pv-stats small { display: block; margin-top: 6px; }
.pv-progress { margin: 16px 0; }
.pv-progress > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 9px; }
.pv-progress strong { font-size: 13px; }
.pv-progress small { text-align: right; }
.pv-progress progress { display: block; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; background: #e9eeeb; accent-color: var(--pv-accent); }
.pv-progress progress::-webkit-progress-bar { background: #e9eeeb; }
.pv-progress progress::-webkit-progress-value { background: var(--pv-accent); border-radius: 10px; }
.pv-notice { background: #edf5f0; border-left: 3px solid #71a58a; padding: 14px; display: flex; align-items: flex-start; gap: 10px; }
.pv-notice > svg { color: var(--pv-accent); margin-top: 1px; }
.pv-notice strong { font-size: 14px; }
.pv-notice p { font-size: 12px; margin-top: 4px; }
.pv-chart { height: 160px; display: flex; align-items: stretch; gap: 14px; padding: 8px 8px 24px; border-bottom: 1px solid var(--pv-line); }
.pv-chart > div { position: relative; flex: 1; display: flex; align-items: flex-end; }
.pv-chart span { width: 100%; background: #74af98; border-radius: 4px 4px 0 0; }
.pv-chart > div:nth-child(3n) span { background: #e0b34d; }
.pv-chart small { position: absolute; top: calc(100% + 5px); width: 100%; text-align: center; }
.pv-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-gallery img { height: 150px; }
.pv-filmstrip { display: flex; gap: 4px; margin-top: 20px; border: 2px solid #83b69e; padding: 4px; border-radius: 8px; }
.pv-filmstrip img { width: calc(25% - 3px); height: 46px; border-radius: 3px; }
.pv-document { border: 1px solid #d8dfdc; background: #fcfdfc; padding: 26px; min-height: 230px; }
.pv-document h3 { margin: 14px 0; }
.pv-document p { margin: 10px 0; font-size: 13px; }
.pv-document hr { border: 0; border-top: 1px solid #e0e6e2; margin: 24px 0; }
.pv-viewfinder { position: relative; }
.pv-viewfinder img { height: 340px; }
.pv-viewfinder > svg { position: absolute; width: 70%; height: 70%; color: #fff9; top: 15%; left: 15%; stroke-width: 0.5; }
.pv-wave { height: 90px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pv-wave i { width: 6px; background: #80b39b; border-radius: 6px; }
.pv-conversation { display: flex; flex-direction: column; gap: 14px; }
.pv-message { border-radius: 8px; padding: 12px 14px; max-width: 85%; background: #f0f3f1; align-self: flex-start; margin-bottom: 12px; font-size: 14px; overflow-wrap: anywhere; }
.pv-message.own { align-self: flex-end; background: #e1f0e6; margin-left: auto; }
.pv-message small { display: block; text-align: right; margin-top: 5px; font-size: 10px; }
.pv-typing { font-size: 12px !important; }
.pv-typing span { font-weight: 800; margin-left: 5px; }
.pv-composer { display: flex; padding: 12px 16px; gap: 8px; border-top: 1px solid var(--pv-line); }
.pv-composer input { width: 100%; padding: 10px 12px; border: 1px solid var(--pv-line); border-radius: 8px; background: #f7f9f8; color: var(--pv-ink); }
.pv-rating { display: flex; gap: 16px; align-items: center; padding: 16px 0; }
.pv-rating > strong { font-size: 48px; line-height: 1; font-weight: 750; }
.pv-rating svg { color: #af7e13; fill: #f2ce70; width: 17px; }
.pv-rating small { display: block; margin-top: 5px; }
.pv-calendar { border-bottom: 1px solid var(--pv-line); padding-bottom: 16px; }
.pv-calendar-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pv-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.pv-calendar-grid small { padding-bottom: 8px; }
.pv-calendar-grid button { width: 100%; aspect-ratio: 1; background: transparent; color: var(--pv-ink); border: 0; border-radius: 50%; font-size: 13px; }
.pv-calendar-grid button[aria-pressed="true"] { color: #fff; background: var(--pv-accent); }
.pv-amount { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; }
.pv-amount.total { border-top: 1px solid var(--pv-line); font-size: 19px; margin-top: 4px; }
.pv-price { font-size: 42px; font-weight: 750; margin: 10px 0; }
.pv-timeline { list-style: none; margin: 16px 0; padding: 0; }
.pv-timeline li { position: relative; margin-left: 8px; padding: 0 0 25px 24px; border-left: 2px solid #c2d9cb; }
.pv-timeline li:last-child { padding-bottom: 0; }
.pv-timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--pv-accent); }
.pv-timeline strong, .pv-timeline small { display: block; }
.pv-timeline strong { font-size: 14px; }
.pv-timeline small { margin-top: 4px; }
.pv-pass-code { padding: 24px 12px; text-align: center; background: #f6f9f7; }
.pv-pass-code > svg { display: block; margin: 0 auto 14px; width: 160px; height: 160px; stroke-width: 1; }
.pv-map { height: 280px; position: relative; overflow: hidden; background: #e7eee8; border-radius: 8px; border: 1px solid #d9e2d9; }
.pv-map-park { position: absolute; padding: 24px 12px; width: 42%; height: 50%; top: 0; right: 0; background: #c9dfb8; color: #547345; font-size: 11px; }
.pv-map-road { position: absolute; display: block; width: 140%; height: 17px; border: 1px solid #d1d7d0; background: #fff; left: -15%; }
.road-a { top: 40%; transform: rotate(-28deg); }
.road-b { top: 60%; transform: rotate(48deg); }
.road-c { top: 75%; transform: rotate(-28deg); }
.pv-map-route { position: absolute; width: 38%; height: 26%; top: 44%; left: 29%; border-left: 5px solid #37846c; border-bottom: 5px solid #37846c; transform: rotate(-28deg); border-radius: 0 0 0 12px; }
.pv-map-pin { position: absolute; color: #236e54; background: #fff; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; box-shadow: 0 2px 7px #254b3426; }
.pin-a { top: 28%; left: 22%; }
.pin-b { top: 56%; left: 66%; }
.pin-c { top: 70%; left: 32%; color: #b05c42; }
.pv-map-label { position: absolute; bottom: 14px; right: 12px; font-size: 11px; color: #617660; }
.pv-weather { text-align: center; padding: 24px 0; }
.pv-weather > svg { display: block; margin: 0 auto 12px; width: 66px; height: 66px; color: #d5a637; }
.pv-weather > strong { font-size: 72px; font-weight: 550; line-height: 1.1; }
.pv-weather p { margin: 8px 0; }
.pv-game-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; background: #e5ece7; border-radius: 8px; }
.pv-game-board span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: #f8faf8; font-size: 24px; font-weight: 750; }
.pv-game-board .tile-0 { background: #d2ded6; }
.pv-game-board .tile-4 { background: #d1e8d7; }
.pv-game-board .tile-8 { background: #f4d68e; }
.pv-game-board .tile-16 { background: #cae3ec; }
.pv-live-player { position: relative; }
.pv-live-player span { position: absolute; left: 12px; top: 12px; background: #a33037; color: white; padding: 5px 8px; font-size: 11px; border-radius: 4px; }
.pv-tabbar { flex-shrink: 0; display: flex; justify-content: space-around; border-top: 1px solid var(--pv-line); background: #fff; padding: 10px 8px 4px; }
.pv-tabbar button { display: grid; justify-items: center; gap: 4px; background: none; border: 0; color: #87928c; padding: 5px 12px; font-size: 10px; min-width: 60px; }
.pv-tabbar button[aria-pressed="true"] { color: var(--pv-accent); }
.pv-home-indicator { display: grid; place-items: center; flex: 0 0 24px; background: #fff; }
.pv-home-indicator > span { width: 110px; height: 4px; border-radius: 4px; background: #253c31; }
.pv-toast { position: absolute; bottom: 100px; left: 20px; right: 20px; padding: 12px 14px; background: #203c32; color: #fff; border-radius: 8px; font-size: 13px; box-shadow: 0 4px 16px #0002; pointer-events: none; }
.screen-thumb-list, .screen-controls, .screen-option-list { overscroll-behavior: contain; overflow-anchor: none; }
.screen-thumb-page { background: #fff; border-color: #bdccc4; }
.screen-thumb-page i { background: #adc9ba; }

@media (max-width: 960px) {
  .screen-planner { grid-template-columns: 1fr; }
  .screen-sample { height: 740px; min-height: 0; }
}
@media (max-width: 600px) {
  .order-form:has(.order-panel[data-step-id="screens"].active) { padding: 16px; }
  .screen-sample { height: 650px; }
}
