/* owner.css — see docs/2026-09-07-machine-qr-demo-spec.md
   Owner QR flow chrome + screens. Reuses vars/base classes from styles.css. */

.owner-topbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 14px;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 5;
  border-bottom: 1px solid var(--border);
}

.owner-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.owner-brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
}

.owner-brand-label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.owner-unit-line {
  font-size: 13px;
  color: var(--ink-dim);
}

.owner-screen {
  flex: 1;
  padding: 6px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.owner-screen-with-sticky {
  padding-bottom: 110px;
}

/* ---------- Unit card (menu) ---------- */
.owner-unit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.owner-unit-model {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--ink);
}

.owner-unit-serial {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.owner-unit-meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* ---------- Menu rows ---------- */
.owner-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.owner-menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-height: 64px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform .08s ease;
}

.owner-menu-row:active { background: var(--card-hi); transform: scale(0.99); }

.owner-menu-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.owner-menu-icon svg { width: 22px; height: 22px; }

.owner-menu-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owner-menu-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.owner-menu-mins {
  font-size: 13px;
  color: var(--ink-faint);
}

.owner-menu-secondary .owner-menu-icon {
  background: var(--paper);
}

.owner-footer-note {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.5;
  margin: 4px 0 0;
}

/* ---------- Procedure ---------- */
.owner-proc-head h1 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.owner-proc-meta {
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 4px;
}

.owner-safety-callout {
  background: var(--card);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.owner-step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.owner-step-num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.owner-step-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.owner-step-tip {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.4;
}

.owner-step-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.owner-step-nav .btn {
  width: auto;
  flex: 1;
}

.owner-step-nav .btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.owner-step-progress {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Troubleshoot checklist ---------- */
.owner-symptom-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.owner-symptom-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.owner-symptom-check {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--red);
}

.owner-symptom-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.owner-symptom-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.owner-symptom-tip {
  font-size: 13px;
  color: var(--ink-dim);
}

/* ---------- Sticky request bar ---------- */
.owner-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--border);
  z-index: 20;
}

.owner-sticky-btn {
  width: 100%;
}

/* ---------- Request form ---------- */
.owner-readonly-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.owner-readonly-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.owner-readonly-label {
  font-size: 13px;
  color: var(--ink-faint);
}

.owner-readonly-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.owner-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.owner-file-field {
  display: flex;
  flex-direction: column;
}

.owner-file-input {
  font-size: 14px;
  color: var(--ink);
}

.owner-file-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.owner-file-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-hi);
  display: flex;
  align-items: center;
  justify-content: center;
}

.owner-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-file-name {
  font-size: 10px;
  color: var(--ink-faint);
  text-align: center;
  padding: 4px;
  word-break: break-word;
}

#owner-request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.owner-consent-text {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------- Sent ---------- */
.owner-sent-screen {
  align-items: center;
  text-align: center;
  padding-top: 40px;
}

.owner-sent-tick {
  color: var(--success);
  width: 64px;
  height: 64px;
}

.owner-sent-tick svg { width: 64px; height: 64px; }

.owner-sent-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.owner-sent-ref {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
}

.owner-sent-line {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 320px;
}

.owner-sent-screen .btn {
  width: 100%;
  margin-top: 8px;
}
