/* S06 screens styles — mobile-first, uses app.css variables */

/* Login */
#login-form { max-width: 360px; margin: 40px auto 0; }
#login-form .form-group { margin-bottom: 16px; }
.login-error { color: var(--danger); font-size: 14px; margin-top: 8px; min-height: 20px; }

/* Messages */
.back-link { display: inline-block; margin-bottom: 12px; color: var(--primary); text-decoration: none; font-size: 14px; min-height: 44px; line-height: 44px; }
.tpl-card h4 { font-size: 15px; margin-bottom: 6px; }
.tpl-text { white-space: pre-wrap; font-size: 14px; margin-bottom: 10px; word-break: break-word; }
.btn-tg { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--fg); }

/* Docs */
.doc-body { overflow-wrap: break-word; word-break: break-word; font-size: 15px; line-height: 1.6; }
.doc-body h2 { margin-top: 20px; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc-body th, .doc-body td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.tag-ok { border-left: 4px solid #22c55e; padding-left: 8px; }
.tag-soon { border-left: 4px solid #eab308; padding-left: 8px; }
.tag-no { border-left: 4px solid #6b7280; padding-left: 8px; }
.search-results { margin-bottom: 16px; }
.search-hit { font-size: 13px; padding: 8px 12px; }
.search-hit a { color: var(--primary); text-decoration: none; font-weight: 600; margin-right: 8px; }

/* Report */
.report-pre { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 12px; font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; max-width: 100%; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.report-table th, .report-table td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.report-table th { background: var(--surface); font-weight: 600; }
.error-list { font-size: 13px; color: var(--danger); margin-top: 8px; padding-left: 20px; }
.error-list li { margin-bottom: 4px; }
.btn-export { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 8px 16px; border-radius: 6px; min-height: 44px; }

/* Inbox */
.question-card small { display: block; font-size: 12px; color: var(--border); margin-top: 4px; }

@media (prefers-color-scheme: dark) {
  .tag-ok { border-left-color: #16a34a; }
  .tag-soon { border-left-color: #ca8a04; }
  .tag-no { border-left-color: #9ca3af; }
}
