@media screen {
html { --pwa-header-color: #131a21; background-color: var(--pwa-header-color); }
html[data-pwa-header="calculator"] { --pwa-header-color: #090d0c; }
html[data-pwa-header="promo"] { --pwa-header-color: #070b0e; }
html[data-theme="light"] { --pwa-header-color: #ffffff; }
html:is(.pwa-standalone, .pwa-ios-edge, .pwa-ios-native)[data-theme] body > :is(.topbar, .calc-header, .ph) { background: var(--pwa-header-color); transition: none; }
html.pwa-ios-edge {
--pwa-safe-top: env(safe-area-inset-top, 0px);
--pwa-safe-bottom: env(safe-area-inset-bottom, 0px);
--pwa-safe-left: env(safe-area-inset-left, 0px);
--pwa-safe-right: env(safe-area-inset-right, 0px);
}
html.pwa-ios-edge body {
box-sizing: border-box;
padding: var(--pwa-safe-top) var(--pwa-safe-right) var(--pwa-safe-bottom) var(--pwa-safe-left);
}
html.pwa-ios-edge body::before {
content: "";
position: fixed;
inset: 0 0 auto;
height: var(--pwa-safe-top);
background: var(--pwa-header-color);
z-index: 2147483647;
pointer-events: none;
}
html.pwa-ios-edge body > :is(.topbar, .ph) { top: var(--pwa-safe-top); }
html.pwa-ios-edge .topbar-select .logout-corner { right: 1rem; }
html.pwa-native-chat {
--pwa-safe-top: 0px;
--pwa-safe-bottom: env(safe-area-inset-bottom, 0px);
--pwa-safe-left: env(safe-area-inset-left, 0px);
--pwa-safe-right: env(safe-area-inset-right, 0px);
}
html.pwa-native-chat body {
box-sizing: border-box;
padding: 0 var(--pwa-safe-right) var(--pwa-safe-bottom) var(--pwa-safe-left);
}
html.pwa-ios-native body > :is(.topbar, .ph) { top: 0; }
html.pwa-ios-native .topbar-select .logout-corner { right: 1rem; }
}
@media screen and (display-mode: standalone) {
html:root[data-theme] body > :is(.topbar, .calc-header, .ph) { background: var(--pwa-header-color); transition: none; }
}
.ntf-page { max-width: 1080px; }
.ntf-panel { padding: 20px; }
.ntf-intro { max-width: 78ch; margin-bottom: 18px; line-height: 1.6; }
.ntf-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ntf-table th, .ntf-table td { padding: 16px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.ntf-table thead th { color: var(--muted); font-size: .8rem; font-weight: 400; background: var(--panel-2); }
.ntf-table thead th:first-child { width: 104px; white-space: nowrap; }
.ntf-table thead th:nth-child(2) { width: 28%; }
.ntf-table tbody th { font-weight: 600; color: var(--text); }
.ntf-table label { cursor: pointer; }
.ntf-table input[type="checkbox"] { appearance: auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--income); cursor: pointer; }
.ntf-table input[type="checkbox"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.ntf-description { color: var(--muted); line-height: 1.6; font-size: .88rem; }
.ntf-unavailable label, .ntf-unavailable input[type="checkbox"] { cursor: not-allowed; }
.ntf-unavailable { background: var(--panel-2); }
.ntf-access-note { display: block; margin-top: 8px; color: var(--warn); font-size: .82rem; }
.ntf-save-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.ntf-save-row p { max-width: 58ch; }
.ntf-device-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ntf-device-count { color: var(--muted); font-size: .8rem; }
.ntf-device-status { margin: 12px 0 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); line-height: 1.6; }
.ntf-device-status[data-state="enabled"] { color: var(--income); border-color: var(--income); }
.ntf-device-status[data-state="blocked"], .ntf-action-status[data-error="true"] { color: var(--warn); }
.ntf-device-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ntf-device-actions .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.5; }
.ntf-action-status { margin-top: 12px; font-size: .85rem; line-height: 1.6; }
.ntf-action-status:empty { display: none; }
.ntf-device-footnote { margin-top: 18px; max-width: 80ch; line-height: 1.6; }
.ntf-installed-message { margin-top: 10px; color: var(--income); }
.ntf-devices-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.ntf-devices-list h3 { font-size: .95rem; margin-bottom: 8px; }
.ntf-devices-list ul { list-style: none; padding: 0; margin: 14px 0 0; }
.ntf-devices-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.ntf-devices-list li > div { min-width: 0; overflow-wrap: anywhere; }
.ntf-devices-list li span { display: block; margin-top: 4px; }
.ntf-devices-list li form { flex: none; }
.ntf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pwa-install, .pwa-install-dialog {
--pwa-panel: var(--panel, var(--p-panel, #131a21));
--pwa-line: var(--border, var(--p-line, #263341));
--pwa-text: var(--text, var(--p-text, #d7e2ec));
--pwa-muted: var(--muted, var(--p-dim, #a3b1be));
--pwa-accent: var(--income, var(--p-acc, #00ff9c));
--pwa-cyan: var(--cyan, var(--p-cyan, #00e0ff));
font: 12px/1.6 Consolas, 'Courier New', monospace;
color: var(--pwa-text);
}
.pwa-install { display: flex; justify-content: center; margin: 24px auto 0; max-width: 660px; }
.pwa-install-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; font: inherit; border: 1px solid var(--pwa-line); border-radius: 9px; background: var(--pwa-panel); color: var(--pwa-cyan); cursor: pointer; box-shadow: none; }
.pwa-install-button:hover { border-color: var(--pwa-cyan); }
.pwa-install-button:focus-visible { outline: 2px solid var(--pwa-cyan); outline-offset: 3px; }
.pwa-install-button svg { flex: none; width: 17px; height: 17px; }
.pwa-install-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; margin: auto; border: 1px solid var(--pwa-line); border-radius: 14px; background: var(--pwa-panel); box-shadow: 0 20px 80px rgb(0 0 0 / 24%); text-align: left; }
.pwa-install-dialog::backdrop { background: rgb(16 25 34 / 48%); }
.pwa-install-dialog h2 { color: var(--pwa-text); font-size: 1.1rem; margin: 0 0 14px; }
.pwa-install-dialog p { margin: 12px 0 0; max-width: none; color: var(--pwa-muted); font-size: 13px; line-height: 1.7; }
.pwa-install-dialog strong { color: var(--pwa-text); }
.pwa-install-copy { margin-top: 12px; }
.pwa-install-copy-status:empty { display: none; }
.pwa-install-dialog .pwa-install-close { display: flex; justify-content: flex-end; margin-top: 22px; }
.pwa-install-dialog .pwa-install-close button { color: var(--pwa-text); }
.theme-compact-footer .pwa-install { margin-top: 0; }
.pwa-install.pwa-apps { display: block; width: 100%; max-width: 760px; margin: 26px auto 0; padding-top: 24px; border-top: 1px solid var(--pwa-line); text-align: center; }
.pwa-apps-heading { margin-bottom: 12px; }
.pwa-apps .pwa-apps-heading h2 { margin: 0; color: var(--pwa-text); font: inherit; font-size: 14px; font-weight: 600; }
.pwa-apps .pwa-apps-heading p { margin: 5px 0 0; max-width: none; color: var(--pwa-muted); font: inherit; font-size: 11px; }
.pwa-apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 420px; margin: 0 auto; }
.pwa-apps .pwa-app-card { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 7px 6px 6px; border: 1px solid var(--pwa-line); border-radius: 10px; background: var(--pwa-panel); color: var(--pwa-text); text-decoration: none; box-shadow: none; transition: border-color .16s, transform .16s; }
.pwa-app-card img { display: block; flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: contain; margin: 0 0 5px; }
.pwa-app-name { color: var(--pwa-text); font-size: 11px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pwa-app-purpose { display: block; flex: 1; color: var(--pwa-muted); font-size: 9px; line-height: 1.3; margin-top: 2px; }
.pwa-app-action { display: flex; align-items: center; justify-content: space-between; gap: 4px; align-self: stretch; padding-top: 5px; margin-top: 5px; border-top: 1px solid var(--pwa-line); color: var(--pwa-cyan); font-size: 10px; }
.pwa-apps .pwa-app-card:focus-visible { outline: 2px solid var(--pwa-cyan); outline-offset: 4px; }
@media (hover: hover) { .pwa-apps .pwa-app-card:hover { border-color: var(--pwa-cyan); color: var(--pwa-text); transform: translateY(-2px); text-shadow: none; } }
.pwa-app-page { max-width: 620px; margin: 24px auto 36px; padding: 36px 24px; text-align: center; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); }
.pwa-app-page-icon { display: block; width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 26px; }
.pwa-app-page-eyebrow { margin: 0 0 9px; color: var(--cyan); font-size: .75rem; }
.pwa-app-page h1 { margin: 0 0 16px; font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.35; }
.pwa-app-page-description { margin: 0 auto; max-width: 43ch; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.pwa-app-page-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.pwa-app-page-actions .pwa-install-button { padding: 12px 20px; min-height: 46px; font-size: .9rem; color: var(--cyan); background: var(--panel-2); }
.pwa-app-page-actions .pwa-app-page-open { color: var(--muted); font-size: .8rem; text-decoration: none; padding: 12px 4px; }
.pwa-app-page-open:hover { color: var(--cyan); }
.pwa-app-page-note { color: var(--muted); font-size: .75rem; line-height: 1.7; margin: 0; }
@media (max-width: 600px) {
.pwa-apps .pwa-app-card { padding-inline: 4px; }
.pwa-app-page { padding: 28px 18px; margin-top: 10px; }
}
@media (max-width: 360px) {
.pwa-apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 216px; }
}
.body-select .pwa-apps { max-width: 660px; margin: 0 auto; padding-top: 8px; border-top: 0; }
.body-select .pwa-apps-heading, .body-select .pwa-app-purpose { display: none; }
.body-select .pwa-apps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.body-select .pwa-app-card { padding: 6px 3px; border-radius: 10px; }
.body-select .pwa-app-card img { width: 36px; height: 36px; margin-bottom: 4px; border-radius: 9px; }
.body-select .pwa-app-name { font-size: 9px; }
.body-select .pwa-app-action { justify-content: center; padding: 0; margin-top: 3px; border: 0; font-size: 8px; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .pwa-apps .pwa-app-card { transition: none; transform: none !important; } }
.pwa-install [hidden], .pwa-install-dialog [hidden], .pwa-app-page [hidden], .ntf-page [hidden] { display: none !important; }
@media (max-width: 600px) {
.ntf-panel { padding: 16px; }
.ntf-table thead { display: none; }
.ntf-table tbody, .ntf-table tr { display: block; }
.ntf-table tr { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.ntf-table th, .ntf-table td { padding: 0; border: 0; }
.ntf-choice { grid-row: 1 / span 2; }
.ntf-table tbody th { grid-column: 2; }
.ntf-description { grid-column: 2; padding-top: 7px !important; }
.ntf-save-row { align-items: stretch; gap: 12px; }
.ntf-device-actions { flex-direction: column; align-items: stretch; }
.ntf-device-actions .btn { width: 100%; }
.ntf-devices-list li { flex-wrap: wrap; gap: 10px; }
}
@media (pointer: coarse) { .pwa-install-button { min-height: 44px; } .ntf-choice { min-height: 44px; } }
@media print { .pwa-install, .pwa-install-dialog, .ntf-device-actions, .ntf-install-panel { display: none !important; } }
.pwa-push-dialog { width: min(440px, calc(100vw - 24px)); box-sizing: border-box; padding: 22px; font-size: 14px; }
.pwa-push-dialog h2 { font-size: 20px; line-height: 1.3; }
.pwa-push-dialog p { font-size: 13px; line-height: 1.5; }
.pwa-push-choices { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.pwa-push-choices legend { font-size: 12px; color: var(--pwa-muted); margin-bottom: 8px; }
.pwa-push-choices label { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; color: var(--pwa-text); }
.pwa-push-choices input { appearance: auto; flex: none; width: 19px; height: 19px; accent-color: var(--pwa-accent); margin: 0; transform: none; }
.pwa-push-choices .pwa-push-unavailable { color: var(--pwa-muted); cursor: default; }
.pwa-push-dialog .pwa-push-note { font-size: 12px; }
.pwa-push-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.pwa-push-actions .pwa-install-button { min-height: 44px; font-size: 13px; }
.pwa-push-actions .pwa-push-enable { background: var(--pwa-accent); color: #071510; border-color: var(--pwa-accent); font-weight: 700; }
html[data-theme="light"] .pwa-push-actions .pwa-push-enable { color: #fff; }
.pwa-push-actions button:disabled { opacity: .55; cursor: default; }
.pwa-push-dialog .ntf-action-status[data-error="true"] { color: var(--warn, #ffce50); }
@media (max-width: 360px) {
.pwa-push-dialog { padding: 18px; }
.pwa-push-actions { flex-direction: column-reverse; }
.pwa-push-actions button { width: 100%; }
}