/* Urine strip tab */
#page-urine-strip [hidden] { display: none !important; }
.us-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.us-layout > * { min-width: 0; }
.us-review { overflow-x: auto; }
.us-mark, .us-review { grid-column: 1 / -1; }
.us-steps ol { margin: 0.5rem 0 0.5rem 1.2rem; padding: 0; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.us-hi { display: block; color: #52514e; font-size: 0.85rem; }
.us-tip { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 0.5rem 0.75rem; margin: 0.5rem 0 0; font-size: 0.88rem; }
.us-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.4rem 0; }
.us-row select { min-width: 12rem; max-width: 100%; }
.us-camera-status { font-size: 0.85rem; color: #166534; min-height: 1.1rem; }
.us-camera-status.us-camera-missing { color: #92400e; }
.us-countdown { font-size: 1.4rem; font-weight: 800; color: #1d4ed8; min-height: 1.8rem; margin: 0.4rem 0; }
#us-video { width: 100%; max-height: 360px; background: #111; border-radius: 8px; display: block; }
.us-live { position: relative; }
.us-live[hidden] { display: none; }
#us-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.us-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0; font-size: 0.85rem; }
.us-key { border: 2px dashed; border-radius: 6px; padding: 0.2rem 0.5rem; font-weight: 700; }
.us-key-strip { border-color: #dc2626; color: #991b1b; }
.us-key-chart { border-color: #2563eb; color: #1e40af; }
.us-red { color: #dc2626; }
.us-blue { color: #2563eb; }
#us-visit-patient { margin-top: 0.5rem; }
.us-resume-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #F1F5F9; }
.us-replace .btn { font-size: 0.82rem; }
.us-thumbs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.us-thumbs figure { margin: 0; }
.us-thumbs canvas { width: 240px; max-width: 100%; border-radius: 6px; border: 1px solid #d4d4d4; }
.us-thumbs figcaption { font-size: 0.8rem; color: #52514e; }
.us-instruction { font-weight: 700; color: #92400e; min-height: 1.4rem; margin: 0.3rem 0; }
#us-mark-canvas { width: 100%; height: auto; border-radius: 8px; border: 1px solid #d4d4d4; cursor: crosshair; touch-action: manipulation; }
.us-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.us-table th, .us-table td { padding: 0.4rem; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.us-table select { width: 100%; }
.us-unsure { background: #fef9c3; }
.us-selected { outline: 2px solid #16a34a; }
.us-empty { color: #52514e; text-align: center; padding: 1rem; }
.us-pad-link { background: none; border: none; color: #1d4ed8; text-decoration: underline; cursor: pointer; padding: 0; text-align: left; font: inherit; }
.us-swatches { display: flex; gap: 4px; margin-top: 4px; }
.us-swatch { width: 32px; height: 32px; border: 1px solid #94a3b8; border-radius: 4px; background: repeating-linear-gradient(45deg, #f1f5f9 0 4px, #fff 4px 8px); }
.us-chip { display: inline-block; border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.78rem; font-weight: 700; }
.us-chip-ok { background: #dcfce7; color: #166534; }
.us-chip-warn { background: #fef3c7; color: #92400e; }
.us-chip-bad { background: #fee2e2; color: #991b1b; }
.us-note { font-size: 0.78rem; color: #52514e; margin-top: 0.2rem; }
.us-check { white-space: nowrap; font-size: 0.85rem; }
.us-save-hint { color: #92400e; font-size: 0.85rem; min-height: 1.2rem; }
.us-saved-card { background: #dcfce7; border-radius: 8px; padding: 0.6rem 0.8rem; display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; font-weight: 700; color: #166534; }
.urine-strip-ask { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5rem 0.75rem; background: #eff6ff; border-radius: 8px; margin: 0.4rem 0; font-size: 0.9rem; }
.urine-strip-ask[hidden] { display: none; }
.us-layout[hidden], #us-patient-picker[hidden] { display: none; }
.us-patient { margin-bottom: 1rem; }
.us-patient-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; font-size: 0.95rem; }
.us-patient-bar:empty { display: none; }
.us-patient-bar .btn { margin-left: auto; }
.us-patient .us-row input { flex: 1 1 14rem; min-width: 0; padding: 0.6rem 0.75rem; border: 1px solid #d4d4d4; border-radius: 8px; font: inherit; }
.us-patient-results { display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.us-patient-option { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; text-align: left; width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #d4d4d4; border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.us-patient-option:hover, .us-patient-option:focus { border-color: #1d4ed8; background: #eff6ff; }
.us-patient-option span { color: #52514e; font-size: 0.85rem; }
.us-workspace { display: grid; gap: 1rem; }
.us-workspace > * { min-width: 0; }
.us-stepper { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 0.75rem; padding: 0; }
.us-stepper li { padding: 0.3rem 0.7rem; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 0.85rem; }
.us-stepper li .us-hi { display: inline; font-size: 0.75rem; color: inherit; }
.us-stepper li.us-current { background: #1d4ed8; color: #fff; font-weight: 700; }
.us-stepper li.us-done { background: #dcfce7; color: #166534; }
.us-stepper li.us-done b::after { content: ' \2713'; }
.us-step-title { font-size: 1.2rem; margin: 0.2rem 0 0.3rem; }
.us-step-help { margin: 0 0 0.6rem; color: #334155; font-size: 0.95rem; }
.us-big { display: block; width: 100%; font-size: 1.15rem; padding: 0.9rem 1.4rem; margin-top: 0.75rem; }
.us-instruction { background: #fef08a; color: #713f12; border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 1rem; }
#us-mark-canvas { margin-top: 0.5rem; }
#us-circles-ask { margin-top: 0.6rem; }
.us-wait-note { font-weight: 700; color: #1d4ed8; }
.us-wait-note:empty, .us-countdown:empty { display: none; }
.us-tools summary, .us-steps summary { cursor: pointer; font-weight: 700; }
.us-example { display: inline-flex; flex-direction: column; gap: 0.25rem; margin: 0 0 0.75rem; text-decoration: none; color: #475569; font-size: 0.8rem; max-width: 100%; }
.us-example img { max-width: min(460px, 100%); max-height: 240px; object-fit: contain; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.us-thumbs figure:empty { width: 180px; max-width: 45%; min-height: 110px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.5rem; color: #64748b; font-size: 0.85rem; }
.us-thumbs figure:empty::before { content: attr(data-empty); }
.us-countdown.us-soon { background: #fee2e2; color: #b91c1c; border-radius: 8px; padding: 0.4rem 0.6rem; }
.us-timeline { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0; }
.us-shot { background: #f1f5f9; color: #475569; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.8rem; }
.us-shot-done { background: #dcfce7; color: #166534; font-weight: 600; }
.us-shot-lock { background: #e0f2fe; color: #075985; }
.us-meaning { margin-top: 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.6rem 0.8rem; background: #f8fafc; }
.us-meaning h4 { margin: 0 0 0.4rem; }
.us-meaning ul, .us-hist-meaning { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.25rem; }
.us-meaning-red { color: #b91c1c; font-weight: 700; }
.us-meaning-yellow { color: #92400e; font-weight: 600; }
.us-meaning-info { color: #1d4ed8; }
.us-meaning-ok { color: #166534; }
.us-history summary { cursor: pointer; font-weight: 700; }
.us-hist-item { border-top: 1px solid #e2e8f0; padding: 0.6rem 0; display: grid; gap: 0.35rem; }
.us-hist-when { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.us-hist-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.us-hist-chip { background: #f1f5f9; border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.8rem; }
.us-hist-abnormal { background: #fef3c7; color: #92400e; font-weight: 700; }
.us-hist-meaning { font-size: 0.85rem; }
.us-hist-photo img { max-width: min(480px, 100%); border-radius: 8px; border: 1px solid #cbd5e1; }
.us-tools[open] summary, .us-steps[open] summary { margin-bottom: 0.5rem; }
@media (max-width: 1024px) { .us-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
    .us-table { font-size: 0.8rem; }
    .us-table th, .us-table td { padding: 0.3rem 0.2rem; }
    .us-table select { max-width: 6.5rem; font-size: 0.8rem; }
    .us-check { white-space: normal; }
}

/* Review as cards (2026-10-12): bottle row (fixed) on the left, the pad at its own time on the right; photos by time; re-centre */
.us-cards { display: grid; gap: 0.6rem; }
.us-card { border: 1px solid #e2e8f0; border-left: 5px solid #16a34a; border-radius: 10px; padding: 0.55rem 0.7rem; background: #fff; min-width: 0; overflow-wrap: anywhere; }
.us-card.us-unsure { border-left-color: #f59e0b; background: #fffbeb; }
.us-card.us-selected { outline: 2px solid #16a34a; }
.us-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.us-card-head .us-pad-link { font-weight: 700; font-size: 1rem; }
.us-when { font-size: 0.8rem; color: #1e40af; background: #dbeafe; border-radius: 999px; padding: 0.05rem 0.5rem; font-weight: 600; }
.us-when-late { color: #92400e; background: #fef3c7; }
.us-card-head .us-chip { margin-left: auto; }
.us-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; align-items: start; margin: 0.5rem 0; }
.us-label { font-size: 0.78rem; color: #475569; margin-bottom: 0.25rem; }
.us-blocks { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.us-block { display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 3px; border: 2px solid transparent; border-radius: 8px; background: none; font: inherit; font-size: 0.72rem; color: #334155; cursor: pointer; min-width: 48px; }
.us-block canvas, .us-block i { width: 40px; height: 40px; border-radius: 4px; border: 1px solid #94a3b8; display: block; }
.us-block i { background: repeating-linear-gradient(45deg, #f1f5f9 0 4px, #fff 4px 8px); }
.us-block-missing { opacity: 0.5; cursor: default; }
.us-block-on { border-color: #16a34a; background: #dcfce7; font-weight: 700; }
.us-block-on canvas { outline: 2px solid #16a34a; }
.us-block-near { border-style: dashed; border-color: #f59e0b; }
.us-block:not(.us-block-missing):hover, .us-block:focus-visible { background: #eff6ff; }
.us-pad-side { text-align: center; }
.us-pad-crop { display: inline-flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 3px; border: 2px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; font-size: 0.72rem; color: #1d4ed8; cursor: pointer; }
.us-pad-crop canvas { width: 72px; height: 72px; border-radius: 4px; border: 1px solid #94a3b8; image-rendering: pixelated; }
.us-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.88rem; }
.us-card-foot select { max-width: 11rem; }
.us-ok { color: #166534; font-weight: 700; }
.us-adjusted { box-shadow: inset 0 0 0 1px #bfdbfe; }
.us-moments-wrap { margin-bottom: 0.6rem; }
.us-moments { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.us-moment { margin: 0; cursor: pointer; max-width: 100%; }
.us-moment canvas { display: block; border-radius: 6px; border: 1px solid #cbd5e1; max-width: 100%; }
.us-moment figcaption { font-size: 0.75rem; color: #334155; margin-top: 0.15rem; max-width: 150px; }
.us-moment-big figcaption { max-width: 420px; }
.us-moment-none { width: 150px; min-height: 90px; border: 2px dashed #cbd5e1; border-radius: 6px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.72rem; color: #64748b; padding: 0.3rem; box-sizing: border-box; }
.us-adjust { border: 2px solid #1d4ed8; border-radius: 10px; padding: 0.5rem; margin: 0.4rem 0 0.8rem; background: #eff6ff; }
#us-adjust-canvas { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 6px; cursor: crosshair; touch-action: manipulation; image-rendering: pixelated; }
@media (max-width: 600px) {
    .us-compare { grid-template-columns: minmax(0, 1fr); }
    .us-pad-side { text-align: left; }
    .us-block { min-width: 44px; }
    .us-block canvas, .us-block i { width: 34px; height: 34px; }
}

/* What the app found (2026-10-13): chart left, strip right; shown at 30 s while waiting and at the check step */
.us-found { border: 2px solid #1d4ed8; border-radius: 10px; padding: 0.5rem 0.7rem; margin: 0.5rem 0; background: #eff6ff; }
.us-found-text { margin: 0 0 0.4rem; font-size: 0.95rem; }
.us-found-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.us-found-grid figure { margin: 0; min-width: 0; }
.us-found-grid figcaption { font-size: 0.8rem; font-weight: 700; color: #1e3a8a; margin-bottom: 0.2rem; }
.us-found-grid canvas { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; }
.us-found-notes { margin: 0.4rem 0 0 1.1rem; padding: 0; font-size: 0.85rem; color: #92400e; }
.us-found-ok { color: #166534; }
.us-group { margin: 0.4rem 0 0.8rem; }
.us-group-title { margin: 0 0 0.4rem; font-size: 0.95rem; color: #1e3a8a; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.us-group-photo { font-size: 0.78rem; color: #1e40af; background: #dbeafe; border-radius: 999px; padding: 0.05rem 0.5rem; font-weight: 600; }
.us-group .us-card { margin-bottom: 0.5rem; }
@media (max-width: 600px) { .us-found-grid { grid-template-columns: minmax(0, 1fr); } }
.us-found-warn { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 8px; padding: 0.45rem 0.65rem; font-weight: 600; margin: 0 0 0.5rem; font-size: 0.9rem; }
