:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #17212b;
  --muted: #6d7782;
  --line: #e4e9ef;
  --accent: #1684ff;
  --accent-dark: #0967d5;
  --shadow: 0 8px 26px rgba(29, 42, 56, .08);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 24px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; letter-spacing: -.03em; }
h2 { margin-bottom: 8px; font-size: 23px; letter-spacing: -.025em; }
.avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #dceeff; color: var(--accent-dark); font-weight: 800; }
.hero-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, #e8f4ff, #f8fbff); box-shadow: var(--shadow); }
.hero-card h2 { font-size: 19px; }
.hero-card p, .section-lead { margin-bottom: 0; color: var(--muted); line-height: 1.45; }
.selection-guidance { margin: 16px 0 0; padding: 14px; border-radius: 14px; background: #eef7ff; color: #3f5367; font-size: 14px; line-height: 1.45; }
.selection-guidance strong { color: var(--text); }
.hero-icon, .action-icon { flex: 0 0 auto; display: grid; place-items: center; }
.hero-icon { width: 42px; height: 42px; border-radius: 13px; background: #fff; font-size: 21px; }
.action-grid { display: grid; gap: 10px; margin-top: 16px; }
.action-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); color: var(--text); text-align: left; box-shadow: 0 2px 8px rgba(29,42,56,.03); }
.action-card:active { transform: translateY(1px); }
.action-card--primary { border-color: #b8ddff; background: #fafdff; }
.action-icon { width: 42px; height: 42px; border-radius: 13px; background: #eef6ff; font-size: 20px; }
.action-card strong, .action-card small { display: block; }
.action-card strong { margin-bottom: 4px; font-size: 15px; }
.action-card small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.chevron { color: #8d9aa7; font-size: 27px; line-height: 1; }
.footnote { margin: 18px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hidden { display: none !important; }
.back-link { padding: 0; border: 0; background: transparent; color: var(--accent-dark); font-size: 14px; }
.screen > h2 { margin-top: 18px; }
form { display: grid; gap: 14px; margin-top: 20px; }
label { display: grid; gap: 7px; color: #3f4b57; font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--text); padding: 12px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #8fc7ff; box-shadow: 0 0 0 3px rgba(22,132,255,.12); }
textarea { resize: vertical; }
.file-picker { padding: 14px; border: 1px dashed #a9cbed; border-radius: 14px; background: #f8fcff; }
.file-picker input[type=file] { padding: 8px 0 0; border: 0; background: transparent; }
.file-picker-hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.attachment-list { display: grid; gap: 8px; }
.attachment-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 13px; }
.attachment-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-remove { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #b04747; font-size: 18px; line-height: 1; }
.primary-button { width: 100%; margin-top: 4px; padding: 13px 16px; border: 0; border-radius: 13px; background: var(--accent); color: white; font-weight: 750; box-shadow: 0 6px 14px rgba(22,132,255,.22); }
.primary-button:active { background: var(--accent-dark); }
.info-card { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.info-card p { margin: 7px 0 10px; color: var(--muted); line-height: 1.45; }
.info-card a { color: var(--accent-dark); font-weight: 650; text-decoration: none; }
.notice { margin-top: 18px; padding: 14px; border-radius: 14px; background: #eaf6ec; color: #236b36; font-size: 14px; line-height: 1.45; }
@media (min-width: 560px) { .action-grid { grid-template-columns: 1fr 1fr; } }
