:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #25313b;
  background: #fafaf8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid #36566b; outline-offset: 3px; }

.workspace { display: grid; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { display: flex; flex-direction: column; border-right: 1px solid #cbd1d3; padding: 36px 26px 26px; }
.overline, .list-heading, .sidebar-note { font-size: 0.72rem; letter-spacing: 0.065em; }
.overline, .list-heading { text-transform: uppercase; }
.overline { color: #36566b; font-weight: 700; margin: 0 0 28px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { font-size: 1.85rem; line-height: 1.23; letter-spacing: -0.025em; margin-bottom: 15px; }
.list-heading { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin: 0; border-bottom: 1px solid #9faab0; font-weight: 700; }
.list-heading span { color: #647078; font-weight: 400; }
.manifest-status { font-size: 0.84rem; line-height: 1.5; color: #647078; padding: 18px 0; }
.environment-list { list-style: none; margin: 0; padding: 0; }
.environment-list li { border-bottom: 1px solid #dce0e0; }
.environment-button { display: block; width: 100%; border: 0; border-left: 2px solid transparent; padding: 17px 14px; text-align: left; background: transparent; color: inherit; cursor: pointer; }
.environment-button:hover { background: #f1f3f2; }
.environment-button[aria-pressed="true"] { border-left-color: #36566b; background: #eef1f1; }
.environment-number { display: block; color: #36566b; font-size: 0.7rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.environment-name { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; line-height: 1.35; }
.environment-description { display: none; }
.task-panel { margin-top: 30px; }
.task-panel .list-heading { display: block; font-family: Arial, Helvetica, sans-serif; }
.task-status, .verification-result { color: #647078; font-size: 0.78rem; line-height: 1.5; margin: 12px 0; }
.task-status:empty, .verification-result:empty { display: none; }
.task-list { list-style: none; margin: 0 0 14px; padding: 0; }
.task-list li { border-bottom: 1px solid #dce0e0; }
.task-option { display: block; width: 100%; padding: 12px 10px; border: 0; border-left: 2px solid transparent; background: transparent; color: inherit; text-align: left; cursor: pointer; font-size: 0.8rem; line-height: 1.5; }
.task-option:hover { background: #f1f3f2; }
.task-option[aria-pressed="true"] { border-left-color: #36566b; background: #eef1f1; }
.task-number { display: block; color: #36566b; font-size: 0.7rem; margin-bottom: 4px; }
.task-note { display: block; margin-top: 5px; color: #647078; }
.verify-button { width: 100%; border: 1px solid #36566b; padding: 11px 14px; background: #36566b; color: #fff; cursor: pointer; font-size: 0.8rem; font-weight: 700; }
.verify-button:hover:not(:disabled) { background: #253d4d; }
.verify-button:disabled { border-color: #cbd1d3; background: #e7eaeb; color: #7c858a; cursor: not-allowed; }
.verification-result[data-success="true"] { color: #225b44; }
.verification-result[data-success="false"] { color: #8a493d; }
.sidebar-note { color: #647078; line-height: 1.6; margin: auto 0 0; padding-top: 32px; letter-spacing: 0; }

.preview { min-width: 0; }
.preview-stage { display: flex; justify-content: center; align-items: center; min-height: 100%; min-height: 100dvh; padding: 28px clamp(20px, 3vw, 50px); background: #f3f4f3; }
.phone { flex: 0 1 auto; width: min(410px, 100%, 43dvh); min-width: 260px; padding: 15px 9px 18px; border: 2px solid #303840; border-radius: 37px; background: #303840; }
.phone-speaker { width: 48px; height: 4px; margin: -4px auto 12px; border-radius: 4px; background: #7d8990; }
.phone-screen { position: relative; width: 100%; aspect-ratio: 390 / 844; overflow: hidden; background: #fff; border-radius: 18px; }
.phone-screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.frame-status { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; margin: 0; padding: 32px; background: #fff; color: #647078; font-size: 0.88rem; text-align: center; line-height: 1.5; }
.frame-status[hidden], iframe[hidden] { display: none; }
.phone-home { width: 95px; height: 4px; margin: 12px auto -8px; border-radius: 4px; background: #7d8990; }

@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { padding: 20px 18px 14px; border-right: 0; border-bottom: 1px solid #cbd1d3; }
  .sidebar-heading .overline { margin-bottom: 8px; }
  h1 { font-size: 1.4rem; margin-bottom: 5px; }
  .list-heading { padding-bottom: 8px; }
  .environment-list { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
  .environment-list li { flex: 0 0 148px; border: 0; }
  .environment-button { height: 100%; padding: 11px; border: 1px solid #cbd1d3; }
  .environment-button[aria-pressed="true"] { border: 1px solid #36566b; box-shadow: inset 0 2px #36566b; }
  .environment-description { display: none; }
  .sidebar-note { padding: 4px 0 0; margin: 0; }
  .preview-stage { min-height: 0; padding: 24px 18px 36px; }
  .phone { width: min(410px, 100%); min-width: 0; }
}
