/* Home: an illustrated cell carrier identifies the primary task even before a record exists. */
.mobile-home { max-width: 1016px; margin-inline: auto; }
.home-greeting { margin-bottom: clamp(18px, 2.4vw, 30px); }
.home-greeting p { color: var(--ink-soft); font-size: 13px; }
.home-greeting h1 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 740; line-height: 1.18; }
.home-archive { border-color: var(--rule); color: var(--action); border-radius: 14px; }
.start-detection, .start-detection:hover {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: 1fr; align-content: center; justify-items: start; gap: 12px;
  min-height: 246px; padding: 30px clamp(24px, 4vw, 52px); border: 1px solid #254e6d; border-radius: 22px;
  background: radial-gradient(ellipse at 82% 85%, #295676, transparent 56%), #122e49;
  box-shadow: 0 8px 20px rgb(20 47 70 / 9%);
}
.start-detection::before, .start-detection::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.start-detection::before {
  inset: 0 0 0 30%; opacity: .52;
  background-image: linear-gradient(30deg, transparent 49%, #86afca32 50%, transparent 51%), linear-gradient(150deg, transparent 49%, #86afca32 50%, transparent 51%);
  background-size: 54px 31px;
  mask-image: linear-gradient(100deg, transparent, #000 62%);
}
.start-detection::after {
  top: 6%; right: 9%; width: 32%; height: 89%;
  background: url("cell-module.webp") center / contain no-repeat;
  filter: drop-shadow(0 12px 9px rgb(3 18 33 / 35%));
}
.start-detection .start-symbol {
  width: 34px; height: 34px; border-radius: 8px; background: #254866; color: #c4e8ff;
}
.start-symbol svg { width: 20px; height: 20px; }
.start-detection strong { font-size: clamp(21px, 2.55vw, 35px); line-height: 1.3; font-weight: 650; }
.start-detection small { font-size: 14px; color: #c7dbe9; margin-top: 7px; }
.start-detection .start-arrow {
  margin: 2px 0 0; width: 48px; height: 30px; border-radius: 20px;
  background: #d9edfa; color: #163d60; transition: background-color .15s;
}
.start-arrow svg { width: 18px; }
.start-detection:active { transform: none; }
.home-sections { grid-template-columns: minmax(0,1.16fr) minmax(0,1fr); gap: 26px; margin-top: 27px; }
.record-surface, .discovery-surface { border-color: var(--rule); border-radius: 15px; box-shadow: var(--surface-shadow); }
.compact-empty { min-height: 127px; }
.compact-empty > svg, .demo-symbol {
  box-sizing: content-box; background: var(--tint); color: var(--action); border-radius: 10px;
}
.compact-empty > svg { padding: 10px; flex-shrink: 0; }
.demo-symbol { width: 44px; height: 44px; }
.demo-entry small, .compact-empty p, .home-count { color: var(--ink-soft); }
.preparation summary { color: #3d556a; }
.home-sections .section-head h2 { font-weight: 680; }
.app-footer { color: #596b7b; border-color: var(--rule); }
@media (hover:hover) {
  .start-detection:hover .start-arrow { background: white; }
  .demo-entry:hover, .archive-battery-row:hover, .archive-history-row:hover,
  .detection-record-row:hover, .home-archive:hover { background: #f1f7fc; }
}

/* Task steps, records, archives, and findings share typography, with color reserved for state. */
.flow-nav { border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.flow-step { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.reason-option, .identity-fields, .existing-pick { border-color: var(--rule); border-radius: 13px; }
.reason-option.selected { border-color: var(--action); box-shadow: inset 3px 0 var(--action); background: #eef6fc; }
.flow-dock .primary { background: var(--action); }
.file-choice { background: #f6fbff; border: 1px dashed #8cadc7; border-radius: 13px; }
.flow-intro p, .field-hint, .reason-option small { color: var(--ink-soft); }
.detection-records, .battery-archive { --records-ink: var(--ink-deep); --records-line: var(--rule); --archive-line: var(--rule); }
.detection-records .records-header, .archive-title { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.detection-records .record-bucket { border-radius: 11px; }
.detection-records .record-bucket[aria-pressed="true"] { background: #193f60; border-color: #193f60; color: white; }
.detection-records .record-bucket[aria-pressed="true"] :is(strong,svg) { color: white; }
.detection-records .record-list, .archive-surface, .archive-empty { box-shadow: var(--surface-shadow); }
.archive-identity { padding-block: 14px; border-block: 1px solid var(--rule); }
.archive-glyph { background: var(--tint); color: var(--action); }
.archive-pack-id, .reading-summary, .owner-soc-metrics { font-variant-numeric: tabular-nums; }
.owner-result-summary { background: #e3edf5; border-inline-start: 4px solid #46769e; border-radius: 4px 14px 14px 4px; }
.owner-result-summary.owner-kind-findings { background: #fcf0d9; border-color: #ad7328; }
.owner-result-summary.owner-kind-limited { background: #eeeae2; border-color: #827661; }
.owner-kicker { font-weight: 600; color: #4f5d67; }
.owner-next, .professional-details { border-color: var(--rule); box-shadow: var(--surface-shadow); }
.owner-soc-card { background: #f6faff; border-color: #c7dbea; }
.owner-soc-metrics strong { color: #224866; }
@media (max-width: 700px) {
  .home-sections { grid-template-columns: 1fr; gap: 17px; margin-top: 18px; }
  .home-greeting { margin-bottom: 16px; }
  .start-detection, .start-detection:hover { min-height: 161px; padding: 18px; gap: 8px; border-radius: 16px; }
  .start-detection::after { width: 34%; right: 3%; top: 10%; height: 80%; }
  .start-detection .start-symbol { width: 26px; height: 26px; }
  .start-symbol svg { width: 16px; height: 16px; }
  .start-detection small { font-size: 12px; margin-top: 4px; }
  .start-detection .start-arrow { width: 37px; height: 24px; }
  .compact-empty { min-height: 91px; }
  .demo-entry { padding-block: 15px; }
  .home-sections .section-head { margin-bottom: 7px; }
}
