:root { color-scheme: light; --accent: #19766c; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #202a2d; font: 15px/1.55 Arial,sans-serif; }
[hidden] { display: none !important; }
.intro-page { width: 100%; max-width: 540px; margin: 0 auto; padding: 12px 22px 28px; }
header { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid #edf0ef; margin-bottom: 24px; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #263d3a; text-decoration: none; }
.icon-button svg { width: 24px; height: 24px; }
h1 { font-size: 23px; line-height: 1.5; margin: 0 0 18px; }
.policy-status { font-size: 13px; color: #6d7673; margin: 0 0 20px; }
.policy-status[role=alert] { color: #b24b46; }
input[type=checkbox] { width: 23px; height: 23px; margin: 0; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.all-agree { display: flex; align-items: center; gap: 14px; padding: 17px 14px; background: #f3f5f4; border-radius: 6px; font-size: 17px; font-weight: 600; }
.document { margin: 26px 0; }
.document-heading { display: flex; align-items: center; gap: 8px; }
.document-heading label { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 15px; font-weight: 600; }
.required { color: #b24b46; white-space: nowrap; }
.document-preview { height: 110px; overflow-y: auto; border: 1px solid #dce2df; border-radius: 6px; margin: 13px 0 0; padding: 12px; color: #6d7673; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.intro-actions { padding-top: 8px; }
button { font: inherit; cursor: pointer; }
.primary { width: 100%; min-height: 50px; border: 0; border-radius: 6px; padding: 12px 18px; color: #fff; background: var(--accent); font-weight: 600; }
button:disabled { opacity: .45; cursor: default; }
dialog { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 540px; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 8px 8px 0 0; overflow-y: auto; color: inherit; }
dialog::backdrop { background: #0008; }
.permission-sheet { padding: 26px 24px max(20px,env(safe-area-inset-bottom)); }
h2 { margin: 0 0 22px; font-size: 24px; line-height: 1.4; }
.permissions { list-style: none; padding: 0; margin: 0; }
.permissions li { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.permission-icon { display: inline-flex; width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #e0e7e4; border-radius: 50%; align-items: center; justify-content: center; color: var(--accent); }
.permission-icon svg { width: 23px; height: 23px; }
.permissions strong { font-weight: 600; font-size: 15px; }
.permissions small { color: #78817e; font-size: 12px; font-weight: 400; }
.permissions p { margin: 4px 0 0; color: #77807c; font-size: 13px; }
.permission-note { font-size: 12px; color: #77807c; margin: 18px 0; }
#permissionStatus { font-size: 13px; color: #465b55; white-space: pre-line; }
.text-button { display: block; padding: 12px; width: 100%; background: transparent; border: 0; color: #6b7570; font-size: 13px; }
.legal-body { min-height: 50vh; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.optional-permission-dialog { inset: 0; margin: auto; width: calc(100% - 32px); max-width: 430px; }
.optional-permission-dialog h2 { font-size: 21px; }
.optional-permission-dialog p, .optional-permission-dialog li { overflow-wrap: anywhere; }
.optional-permission-dialog ul { padding-inline-start: 22px; color: #465b55; }
.permission-confirm-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.permission-confirm-actions button { min-height: 48px; padding: 10px; white-space: normal; overflow-wrap: anywhere; }
.secondary { border: 1px solid #dce2df; border-radius: 6px; color: #263d3a; background: #f3f5f4; font-weight: 600; }
@media(max-width:350px) { .intro-page { padding-inline:16px; } h1 { font-size:21px; } .document-heading label { font-size:13px; } .permission-sheet { padding-inline:18px; } }
