* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f4f8; color: #1a1a2e; min-height: 100vh; -webkit-font-smoothing: antialiased; }
.screen { display: none; padding: 24px 16px; max-width: 420px; margin: 0 auto; min-height: 100vh; }
.screen.active { display: block; }
.header { text-align: center; margin-bottom: 32px; padding-top: 40px; }
.header h1 { font-size: 24px; color: #1a73e8; margin-bottom: 8px; }
.header p { color: #666; font-size: 14px; }
.card { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card h2 { font-size: 18px; margin-bottom: 16px; color: #1a1a2e; }
input { width: 100%; padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 12px; font-size: 16px; margin-bottom: 12px; outline: none; transition: border 0.2s; background: #fafafa; }
input:focus { border-color: #1a73e8; background: #fff; }
button { width: 100%; padding: 14px; background: #1a73e8; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: opacity 0.2s, transform 0.1s; }
button:active { transform: scale(0.98); }
button:disabled { background: #ccc; cursor: not-allowed; transform: none; }
button.secondary { background: #e8f0fe; color: #1a73e8; }
.verdict { border-radius: 16px; padding: 24px; text-align: center; margin: 16px 0; }
.verdict.safe { background: #e6f4ea; color: #137333; }
.verdict.caution { background: #fef7e0; color: #b06000; }
.verdict.danger { background: #fce8e6; color: #c5221f; }
.verdict.unknown { background: #e8eaed; color: #5f6368; }
.verdict-emoji { font-size: 48px; margin-bottom: 8px; }
.hidden { display: none !important; }
.error { color: #c5221f; font-size: 13px; margin-top: 4px; }
.checklist label { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; cursor: pointer; }
.checklist input[type=checkbox] { width: auto; margin-right: 12px; margin-bottom: 0; }
.drug-section { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.drug-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.drug-section h3 { font-size: 14px; color: #1a73e8; margin-bottom: 6px; }
.drug-section p { font-size: 14px; color: #444; line-height: 1.5; }
.drug-section ul { list-style: none; padding: 0; }
.drug-section li { font-size: 14px; color: #444; padding: 4px 0; padding-left: 16px; position: relative; line-height: 1.4; }
.drug-section li::before { content: "•"; color: #1a73e8; position: absolute; left: 4px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; margin-left: 6px; }
.badge.safe { background: #e6f4ea; color: #137333; }
.badge.caution { background: #fef7e0; color: #b06000; }
.badge.danger { background: #fce8e6; color: #c5221f; }
.spinner { width: 24px; height: 24px; border: 3px solid #e0e0e0; border-top-color: #1a73e8; border-radius: 50%; animation: spin 0.6s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.autocomplete-wrap { position: relative; }
.autocomplete-wrap input { margin-bottom: 0; }
.cond-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 2px solid #e0e0e0; border-top: none; border-radius: 0 0 12px 12px; max-height: 200px; overflow-y: auto; z-index: 10; }
.cond-dropdown div { padding: 10px 16px; font-size: 15px; cursor: pointer; }
.cond-dropdown div:hover { background: #e8f0fe; }
.cond-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cond-tag { display: inline-flex; align-items: center; background: #e8f0fe; color: #1a73e8; padding: 6px 12px; border-radius: 20px; font-size: 14px; cursor: pointer; }
.cond-tag::after { content: "✕"; margin-left: 8px; font-size: 12px; opacity: 0.6; }
