* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #212121;
    max-width: 600px;
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    flex: 1;
}

.content {
    padding: 16px;
    padding-bottom: 110px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.btn-primary { background: #1976d2; color: #fff; width: 100%; display: block; }
.btn-secondary { background: #e0e0e0; color: #212121; }
.btn-small { padding: 8px 14px; font-size: 15px; }
.btn-outline { background: transparent; border: 1px solid #ccc; font-size: 15px; padding: 8px 14px; }

.footer-btn {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 600px;
    margin: 0 auto;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

/* Medicine list (main screen) */
.medicine-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.medicine-item input[type=checkbox] {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1976d2;
}

.medicine-item label {
    font-size: 20px;
    flex: 1;
    cursor: pointer;
}

.last-request {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 16px;
}

/* Settings form */
.field-label {
    font-size: 17px;
    font-weight: bold;
    margin-top: 22px;
    margin-bottom: 6px;
}

.field-input {
    width: 100%;
    font-size: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.field-hint {
    font-size: 12px;
    color: #888;
    font-family: monospace;
    margin-top: 4px;
    line-height: 1.5;
}

.radio-group { margin-bottom: 4px; }

.radio-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
    font-size: 20px;
    cursor: pointer;
}

.radio-item input[type=radio] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    accent-color: #1976d2;
}

.template-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 22px;
    margin-bottom: 4px;
}

.template-row .field-label { margin: 0; flex: 1; align-self: center; }

textarea.field-input {
    min-height: 100px;
    resize: vertical;
    font-family: monospace;
    font-size: 15px;
}

.privacy-note {
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    line-height: 1.5;
    margin-top: 24px;
}
