.trouble-body .page-shell { padding: max(10px, env(safe-area-inset-top)) 12px max(90px, calc(78px + env(safe-area-inset-bottom))); }
.trouble-body .brand-header { width: 100%; max-width: 680px; justify-content: flex-start; margin: 0 auto; gap: 7px; }
.trouble-body .brand-mark { width: 27px; height: 27px; font-size: 19px; border-radius: 8px; }
.trouble-body .brand-name { font-size: 18px; }
.trouble-body .brand-caption { font-size: 10px; }
.trouble-body .main-content { display: block; padding: 8px 0 16px; }
.trouble-page { max-width: 680px; margin: 0 auto; min-width: 0; }
.trouble-page *, .trouble-page *::before, .trouble-page *::after { min-width: 0; overflow-wrap: anywhere; }
.trouble-header { margin-bottom: 12px; }
.trouble-header h1 { margin-top: 8px; font-size: 22px; line-height: 1.45; color: var(--brand-dark); }
.trouble-top-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px; color: var(--brand-primary); font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid var(--brand-border); border-radius: 9px; background: #fff; }
.trouble-page h2 { margin: 0; line-height: 1.55; font-size: 20px; color: var(--brand-text); }
.trouble-page h3 { margin: 18px 0 8px; font-size: 16px; line-height: 1.5; }
.trouble-page p, .trouble-page li { font-size: 15px; line-height: 1.8; }
.trouble-page p { margin: 10px 0; }
.trouble-page ul, .trouble-page ol { margin: 10px 0; padding-left: 22px; }
.trouble-page li + li { margin-top: 7px; }
.trouble-page details { border-radius: 10px; }
.trouble-page summary { min-height: 44px; padding: 10px 2px; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.6; }
.trouble-safety { padding: 13px 14px 7px; border: 1px solid #edc7c7; border-left: 4px solid #b92f36; border-radius: 12px; background: #fff6f5; }
.trouble-safety h2 { font-size: 16px; color: #902a30; }
.trouble-safety > p { margin: 5px 0 0; font-size: 13px; }
.trouble-safety details { color: #7a2b2f; }
.trouble-safety details p, .trouble-safety details li { font-size: 13px; }
.trouble-contacts { margin: 10px 0; padding: 1px 14px 7px; border: 1px solid var(--brand-border); background: #fff; }
.trouble-step-nav { display: flex; gap: 8px; margin-top: 14px; }
.trouble-step-nav button { flex: 1; min-height: 44px; padding: 8px; border: 1px solid var(--brand-border-strong); border-radius: 9px; color: var(--brand-primary); background: #fff; font-size: 14px; font-weight: 650; }
.trouble-step-nav button:disabled { color: #8a968f; border-color: var(--brand-border); cursor: default; }
.trouble-progress { color: var(--brand-muted); font-size: 12px !important; margin: 9px 1px !important; }
.trouble-question { padding: 19px 16px; border: 1px solid var(--brand-border); border-radius: 14px; background: #fff; }
.trouble-question h2:focus { outline: none; }
.trouble-options { display: grid; gap: 10px; margin-top: 18px; }
.trouble-options button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 58px; padding: 13px 15px; border: 1px solid var(--brand-primary); border-radius: 11px; color: #fff; background: var(--brand-primary); text-align: left; font-size: 16px; font-weight: 700; line-height: 1.6; }
.trouble-options button::after { content: '›'; flex: 0 0 auto; font-size: 24px; line-height: 1; }
.trouble-options button:hover { background: var(--brand-hover); }
.trouble-options button.trouble-option-secondary { color: var(--brand-primary); background: #fff; border-color: var(--brand-border-strong); }
.trouble-options button.trouble-option-secondary:hover { background: var(--brand-soft); }
.trouble-options button.trouble-option-danger { background: #a72d35; border-color: #a72d35; }
.trouble-notice { padding: 12px 13px; margin: 13px 0; border: 1px solid #e6c785; border-left: 4px solid #ac761d; border-radius: 9px; background: #fff9eb; }
.trouble-notice p { margin: 5px 0 0; font-size: 14px; }
.trouble-notice strong { display: block; font-size: 15px; line-height: 1.6; }
.trouble-notice.is-danger { border-color: #e6b3b7; border-left-color: #b5303b; background: #fff1f2; color: #8f2630; }
.trouble-notice.is-info { border-color: #bcd5c6; border-left-color: var(--brand-primary); background: var(--brand-soft); }
.trouble-note { color: var(--brand-muted); font-size: 13px !important; line-height: 1.75 !important; }
.trouble-privacy { margin-top: 15px !important; padding: 0 2px; }
.trouble-checklist { display: grid; gap: 7px; padding: 0 !important; list-style: none; }
.trouble-checklist label { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 9px 0; min-height: 44px; font-size: 14px; font-weight: 500; line-height: 1.7; }
.trouble-checklist input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand-primary); }
.trouble-contact-list { display: grid; gap: 8px; margin: 10px 0; }
.trouble-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--brand-border); border-radius: 9px; }
.trouble-contact strong, .trouble-contact span { display: block; font-size: 13px; line-height: 1.6; }
.trouble-contact span { color: var(--brand-muted); font-weight: 400; }
.trouble-call-link { display: inline-flex; align-items: center; justify-content: center; min-width: 66px; min-height: 44px; padding: 8px; border: 1px solid var(--brand-border-strong); border-radius: 8px; color: var(--brand-primary); background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.trouble-source-list { font-size: 12px; }
.trouble-source-list a { display: inline-block; min-height: 44px; padding: 8px 0; color: var(--brand-primary); font-size: 13px; line-height: 1.65; text-decoration: underline; }
.trouble-emergency { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; max-width: 704px; margin: 0 auto; padding: 7px 12px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #e7b9bd; background: #fff8f7; box-shadow: 0 -3px 12px #5320170d; }
.trouble-emergency a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border: 1px solid #c65d65; border-radius: 9px; color: #962b34; background: #fff; text-decoration: none; }
.trouble-emergency strong { font-size: 17px; line-height: 1.25; }
.trouble-emergency span { margin-top: 2px; font-size: 10px; font-weight: 700; line-height: 1.4; }
.trouble-photo-form { margin: 17px 0; padding-top: 4px; border-top: 1px solid var(--brand-border); }
.trouble-photo-form label { font-size: 14px; line-height: 1.6; }
.trouble-photo-form select, .trouble-photo-form input[type="text"], .trouble-photo-form textarea { display: block; width: 100%; min-height: 46px; padding: 10px; border: 1px solid var(--brand-border-strong); border-radius: 8px; background: #fff; color: var(--brand-text); font: inherit; font-size: 16px; line-height: 1.5; }
.trouble-photo-form textarea { min-height: 80px; resize: vertical; }
.trouble-vehicle-facts { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 5px 8px; font-size: 13px; line-height: 1.6; }
.trouble-vehicle-facts dt { color: var(--brand-muted); }
.trouble-vehicle-facts dd { margin: 0; }
.trouble-file-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0 8px; }
.trouble-file-actions button, .trouble-file-clear { min-height: 46px; padding: 9px; border: 1px solid var(--brand-border-strong); border-radius: 9px; background: #fff; color: var(--brand-primary); font-size: 14px; font-weight: 650; }
.trouble-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 90px; gap: 6px; padding: 16px; border: 2px dashed var(--brand-border-strong); border-radius: 10px; background: #f7faf8; text-align: center; cursor: pointer; font-size: 14px; }
.trouble-drop.dragover { border-color: var(--brand-primary); background: var(--brand-soft); }
.trouble-drop small { font-size: 12px; color: var(--brand-muted); }
.trouble-preview { display: block; max-width: 100%; max-height: 230px; margin: 12px auto; border-radius: 8px; object-fit: contain; }
.trouble-file-name { margin: 9px 0 !important; font-size: 12px !important; color: var(--brand-muted); }
.trouble-analyze { display: block; min-height: 48px; width: 100%; margin: 13px 0 0; padding: 11px; border: 1px solid var(--brand-primary); border-radius: 9px; background: var(--brand-primary); color: #fff; font-size: 15px; font-weight: 700; }
.trouble-analyze:disabled { opacity: .55; cursor: default; }
.trouble-error { padding: 12px; border: 1px solid #e6b3b7; border-radius: 8px; background: #fff1f2; color: #8f2630; font-size: 14px !important; line-height: 1.7; }
.trouble-ai-results { margin: 15px 0; padding: 12px; border: 1px solid #bcd5c6; border-radius: 9px; background: #f7fbf8; }
.trouble-ai-results h3 { margin-top: 0; }
.trouble-ai-results h4 { margin: 14px 0 5px; font-size: 15px; }
.trouble-ai-results p, .trouble-ai-results li { font-size: 14px; }
.trouble-status { padding: 12px; margin: 12px 0; border-radius: 9px; color: #8f2630; background: #fff1f2; border: 1px solid #e6b3b7; font-size: 15px; font-weight: 700; line-height: 1.7; }
.trouble-status.is-confirmed { color: var(--brand-dark); background: var(--brand-soft); border-color: #bcd5c6; }
@media (min-width: 680px) { .trouble-body .page-shell { padding-left: 24px; padding-right: 24px; } .trouble-question { padding: 23px; } }
@media (prefers-reduced-motion: reduce) { .trouble-page * { scroll-behavior: auto; } }
