/* Page layout for the test-phone flasher, on CMS-Light 2.0. Only token
   variables (tokens.gen.css) and the Chaya patterns (chaya.css), both copied
   from design/screens/theme at deploy time; no literal colours here. */

@font-face { font-family: "Public Sans"; font-weight: 400; src: url("../fonts/public_sans_regular.ttf") format("truetype"); }
@font-face { font-family: "Public Sans"; font-weight: 500; src: url("../fonts/public_sans_medium.ttf") format("truetype"); }
@font-face { font-family: "Public Sans"; font-weight: 600; src: url("../fonts/public_sans_semibold.ttf") format("truetype"); }
@font-face { font-family: "Public Sans"; font-weight: 700; src: url("../fonts/public_sans_bold.ttf") format("truetype"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; src: url("../fonts/courier_prime_regular.ttf") format("truetype"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; src: url("../fonts/courier_prime_bold.ttf") format("truetype"); }

html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; line-height: 22px; }
.sprite { display: none; }
[hidden] { display: none !important; }

/* The CMS-Light shell: navy bar, product name, who is signed in. */
.shell { background: var(--shell); color: var(--shell-text); }
.shell-inner { max-width: 760px; margin: 0 auto; padding: var(--space-3) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: baseline; justify-content: space-between; }
.shell-title { color: var(--shell-on); font-size: 18px; line-height: 26px; font-weight: 700; }
.shell-sub { color: var(--shell-text); font-weight: 400; margin-left: var(--space-2); }
.shell-user { font-size: 13px; }
.shell a { color: var(--shell-on); }

.page { max-width: 760px; margin: 0 auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.step { display: flex; flex-direction: column; gap: var(--space-3); }
.step h2 { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.step p, .step ol { margin: 0; }
.steps { padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.actions .btn { width: auto; }
.btn:disabled { background: var(--disabled-bg); color: var(--disabled-fg); border-color: var(--disabled-bg); cursor: not-allowed; }
.btn:focus-visible, .input:focus-visible, .build input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.note .ic { margin-top: 1px; }
.note strong { font-weight: 700; }

/* Builds: one selectable row each */
.list { display: flex; flex-direction: column; border: var(--size-border) solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.list:empty { display: none; }
.build { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); background: var(--surface); border-bottom: var(--size-border) solid var(--divider); cursor: pointer; min-height: var(--chaya-touch); box-sizing: border-box; }
.build:last-child { border-bottom: none; }
.build:hover { background: var(--state-hovered); }
.build:has(input:checked) { background: var(--action-primary-container); }
.build input { margin-top: 4px; accent-color: var(--action-primary); }
.build-body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.build-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.b-sha { overflow-wrap: anywhere; }

/* Phone facts */
.rows { border: var(--size-border) solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.kv { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-4); border-bottom: var(--size-border) solid var(--divider); background: var(--surface); }
.kv:last-child { border-bottom: none; }

.field { display: flex; flex-direction: column; gap: var(--space-1); max-width: 360px; }
.input { box-sizing: border-box; min-height: var(--chaya-touch); padding: 0 var(--space-3); border: var(--size-border) solid var(--outline); border-radius: var(--radius-md); background: var(--surface); color: var(--text-primary); font-size: 16px; }

progress { appearance: none; width: 100%; height: 8px; border: var(--size-border) solid var(--outline); border-radius: var(--radius-sm); background: var(--neutral-container); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--neutral-container); }
progress::-webkit-progress-value { background: var(--action-primary); }
progress::-moz-progress-bar { background: var(--action-primary); }

.foot { display: flex; flex-direction: column; gap: var(--space-2); padding: 0 var(--space-1) var(--space-6); }
.foot p { margin: 0; }

/* Sign out: a link-styled button in the shell */
.link { background: none; border: none; padding: 0; margin-left: var(--space-2); font: inherit; color: var(--shell-on); text-decoration: underline; cursor: pointer; }
