@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Poppins', Arial, sans-serif;
  background: #080a0d;
  color: #f6f8fc;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
body:has(.dialog-backdrop) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid #3895ff;
  outline-offset: 2px;
}

#app {
  width: min(100%, 500px);
  min-height: 100dvh;
  margin: auto;
  background: #0b0d10;
  box-shadow: 0 0 70px #0008;
}

.app-shell { min-height: 100dvh; padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px); padding-left: env(safe-area-inset-left, 0px); padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
#app:has(> .auth-page) { width: 100%; border: 0; box-shadow: none; }
.auth-page {
  min-height: 100dvh; display: grid; justify-items: center; align-content: center; gap: 20px;
  padding: max(28px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 18% 8%, #14365b77, transparent 48%), radial-gradient(ellipse at 85% 95%, #07549d22, transparent 48%), #080f1b;
}
.auth-panel { width: min(100%, 460px); min-width: 0; background: linear-gradient(155deg, #15263c, #101d30 55%, #0f1b2d); border: 1px solid #314762; border-radius: 26px; padding: 32px; box-shadow: 0 24px 80px #0006, 0 1px 0 #ffffff08 inset; }
.auth-brand { display: flex; align-items: center; justify-content: center; min-height: 72px; margin-bottom: 22px; }
.auth-logo { display: block; width: 224px; max-width: 100%; max-height: 76px; object-fit: contain; object-position: center; }
.auth-intro { text-align: center; }
.auth-eyebrow { display: block; margin-bottom: 8px; color: #80baff; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.auth-intro h1 { margin: 0 0 10px; font-size: clamp(25px, 4vw, 30px); line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.auth-intro p { max-width: 33ch; margin: 0 auto; color: #a9bcd4; font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.auth-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; padding: 4px; border: 1px solid #2b405a; border-radius: 13px; background: #0c1829; }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: #a9bbd1; font-size: 13px; font-weight: 600; }
.auth-tabs button.active { background: #213c5d; color: white; box-shadow: 0 2px 6px #0003, 0 1px 0 #ffffff0d inset; }
.auth-panel form { display: grid; gap: 16px; margin-top: 20px; }
.auth-panel label { display: grid; min-width: 0; gap: 8px; color: #d7e2ef; font-size: 12px; font-weight: 600; }
.auth-panel input { width: 100%; min-width: 0; min-height: 50px; background: #0a1525; border: 1px solid #344b68; border-radius: 12px; padding: 12px 14px; color: #f6f8fc; font-size: 16px; font-weight: 400; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-panel input:hover { border-color: #506e90; }
.auth-panel input:focus { border-color: #6bb1ff; box-shadow: 0 0 0 3px #348cf426; }
.auth-panel .auth-submit { margin-top: 4px; min-height: 50px; border-radius: 12px; background: linear-gradient(110deg, #176ddd, #0758ba); border-color: #338cec; box-shadow: 0 5px 18px #0063d526; font-size: 13px; }
.auth-panel .auth-submit:hover { background: linear-gradient(110deg, #2780f1, #116acc); }
.auth-divider { display: flex; align-items: center; gap: 13px; margin: 19px 0; color: #859bb7; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #2d415c; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; margin-top: 24px; padding: 12px 16px; border: 1px solid #dce4ee; border-radius: 12px; background: #f7f9fc; color: #24334b; font-size: 13px; font-weight: 600; box-shadow: 0 3px 8px #0002; transition: background .15s, border-color .15s; }
.auth-google:hover { background: white; border-color: #a9c9f5; }
.auth-google:disabled { cursor: wait; opacity: .7; }
.google-mark { display: block; flex: none; width: 20px; height: 20px; }
.auth-switch { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 10px auto 0; font-size: 12px; }
.auth-switch[href] { text-align: center; text-decoration: none; }
.admin-access-link { display: block; margin-top: 18px; text-align: center; text-decoration: none; }
.auth-status { color: #a8b9cf; font-size: 13px; text-align: center; }
.auth-panel .auth-status { margin: 14px 0 10px; color: #ffb3bb; }
.account-actions { display: grid; gap: 9px; }
.page { padding: 20px 20px 24px; }
.page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; min-height: 40px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.045em; margin-bottom: 0; }
h2 { font-size: 18px; letter-spacing: -.035em; margin-bottom: 14px; }
h3 { font-size: 16px; letter-spacing: -.025em; margin-bottom: 4px; }
.muted { color: #a8b5c8; }
.small { font-size: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 23px 0 11px; }
.section-head h2 { margin: 0; }
.section-head.sub { margin-top: 23px; }

.primary-button, .chip, .icon-button, .text-button, .ghost-button, .danger-button {
  border: 0;
  color: inherit;
}
.primary-button {
  background: #0759bd;
  border: 1px solid #2184e9;
  border-radius: 10px;
  padding: 8px 13px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-button:hover { background: #126bd7; }
.primary-button:disabled { opacity: .55; cursor: not-allowed; }
.text-button { background: none; color: #69a9ff; font-weight: 700; padding: 4px; }
.icon-button { background: none; padding: 7px; display: inline-grid; place-items: center; color: #f4f7fa; }
.icon-button svg { width: 24px; height: 24px; }
.ghost-button, .danger-button { padding: 10px 14px; border-radius: 10px; font-weight: 700; background: #1b2a40; }
.danger-button { background: #6b1824; }
.full { width: 100%; }

.home-page { padding: 16px 27px 24px; }
.brand-row { min-height: 62px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; justify-items: center; gap: 10px; margin-bottom: 12px; }
.brand-logo { width: min(100%, 190px); max-height: 62px; object-fit: contain; }
.whatsapp-logo { width: 39px; height: 39px; object-fit: contain; }
.brand-row > .icon-button { color: #f5f8fb; width: 44px; height: 44px; }
.bell-button { position: relative; }
.bell-button span { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 9px; background: #d22b39; color: #fff; font-size: 10px; font-weight: 800; }
.greeting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.greeting h1 { font-size: 21px; }
.greeting p { color: #d1d5dc; margin: 3px 0 0; font-size: 10px; }
.avatar { width: 61px; height: 61px; border: 3px solid #263e62; background: #173b71; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.large { width: 67px; height: 67px; }
.progress-panel { border-top: 1px solid #1e2530; border-bottom: 1px solid #1e2530; padding: 7px 16px 5px; margin-bottom: 10px; }
.progress-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.progress-title svg { color: #25b623; width: 20px; height: 20px; }
.progress-track { height: 17px; background: #555d68; border-radius: 20px; overflow: hidden; }
.progress-fill { display: block; height: 100%; background: #20b523; border-radius: inherit; }
.progress-caption { text-align: right; margin-top: 5px; font-weight: 800; font-size: 12px; }
.hours-progress { display: block; width: 100%; height: 17px; border: 0; border-radius: 20px; overflow: hidden; appearance: none; background: #555d68; color: #20b523; }
.hours-progress::-webkit-progress-bar { background: #555d68; border-radius: 20px; }
.hours-progress::-webkit-progress-value { background: #20b523; border-radius: 20px; }
.hours-progress::-moz-progress-bar { background: #20b523; border-radius: 20px; }
.hours-breakdown { margin: 5px 0; color: #abb8c9; font-size: 12px; }
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 52px !important; }
.password-toggle { position: absolute; top: 0; right: 0; width: 48px; height: 100%; min-height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #b6cce5; cursor: pointer; border-radius: 10px; }
.password-toggle svg { width: 22px; height: 22px; }
.password-toggle:focus-visible { outline: 2px solid #69aaff; outline-offset: -3px; }
.service-payment { display: grid; gap: 12px; }
.service-payment[hidden], .custom-place[hidden] { display: none; }
.service-end-hint { color: #94c7ff; }
.bell-button[data-unread="true"] { background: #173455; color: #b4dcff; box-shadow: 0 0 0 2px #3671a7; }
.notice-card.unread { border-left: 3px solid #4c9aff; background: #142840; }
.notice-card.unread .notice-title { color: #fff; font-weight: 800; }
.nav-notice-count { position: absolute; top: 3px; right: 16%; min-width: 19px; padding: 2px 5px; border-radius: 10px; background: #d22b39; color: #fff; font-size: 11px; }
.bottom-nav button { position: relative; }
.unread-heading-badge { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 3px 7px; border-radius: 8px; background: #164982; color: #c6e2ff; font-size: 11px; white-space: nowrap; }
.plan-benefits .plan-benefit-upcoming { color: #a5b6ca; }
.plan-benefit-upcoming img { width: 15px; height: 15px; margin-top: 2px; object-fit: contain; flex: none; }
.plan-benefit-upcoming small { margin-left: 4px; color: #8c9fb8; font-size: 10px; white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.summary-tile { border: 1px solid #2a496c; border-radius: 17px; min-height: 101px; padding: 12px 11px; text-align: left; color: white; position: relative; overflow: hidden; }
.summary-tile svg { position: absolute; right: 8px; bottom: 9px; width: 29px; height: 29px; opacity: .65; }
.summary-tile strong { display: block; font-size: 13px; }
.summary-tile span { display: block; margin-top: 6px; font-weight: 800; font-size: 32px; letter-spacing: -.06em; }
.summary-tile.money span { font-size: 17px; letter-spacing: -.045em; position: relative; z-index: 1; }
.home-page .section-head { margin-top: 22px; margin-bottom: 10px; }
.home-page .section-head h2 { font-size: 18px; }
.summary-tile.blue { background: #0647a1; }
.summary-tile.orange { background: #c3610a; }
.summary-tile.green { background: #139715; }

.notice-card, .event-card, .finance-row, .profile-card, .surface { background: #111f33; border: 1px solid #2d4361; border-radius: 18px; }
.notice-card { width: 100%; min-height: 145px; padding: 14px; color: white; display: flex; text-align: left; gap: 12px; margin: 7px 0; align-items: flex-start; position: relative; }
.notice-card:hover, .event-card:hover, .finance-row:hover, .profile-card:hover { border-color: #4488d9; }
.notice-icon, .event-icon, .finance-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.notice-icon { width: 52px; height: 52px; }
.notice-icon svg { width: 35px; height: 35px; }
.event-icon svg, .finance-icon svg { width: 25px; height: 25px; }
.notice-icon.red { background: #b21530; }
.notice-icon.purple { background: #46229c; }
.notice-icon.blue { background: #0658bc; }
.notice-icon.green { background: #168b24; }
.notice-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.notice-title { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; }
.notice-publication { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.notice-body small { display: block; color: #f0f3f9; font-size: 10px; line-height: 1.3; margin-top: 3px; }
.notice-body p { color: #f0f3f9; font-size: 10px; line-height: 1.45; margin: 10px 0 0; }
.notice-category { display: block; width: fit-content; margin-bottom: 7px; padding: 3px 7px; border-radius: 7px; background: #203b60; color: #dbe9fa; font-size: 10px; font-weight: 800; }
.notice-side { display: flex; flex: none; flex-direction: column; align-items: flex-end; align-self: stretch; justify-content: space-around; gap: 8px; }
.notice-side > span { font-size: 11px; }
.notice-side svg { width: 20px; height: 20px; color: white; }
.notice-card.compact { min-height: 69px; padding: 8px 10px; margin: 6px 0; gap: 11px; align-items: center; border-radius: 15px; }
.notice-card.compact .notice-icon { width: 48px; height: 48px; }
.notice-card.compact .notice-title { font-size: 10px; font-weight: 500; }
.notice-card.compact.unread .notice-title { font-size: 11px; font-weight: 700; line-height: 1.35; }
.notice-card.compact .notice-publication { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-card.compact .notice-body small { font-size: 9px; margin-top: 0; }
.notice-card.compact .notice-side > span { color: #c4cbd4; font-size: 11px; top: 9px; right: 12px; }
.notices-page .page-title-row { margin-bottom: 16px; }
.notifications-page .page-title-row { margin-bottom: 16px; }
.notifications-page .notification-intro { margin: 0 0 13px; color: #b8c8da; font-size: 12px; }
.notification-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.notification-filters .chip { min-width: 0; padding-inline: 5px; }
.notification-panel { background: #111f33; border: 1px solid #2d4361; border-radius: 16px; padding: 13px; margin-bottom: 16px; }
.notification-panel > strong { font-size: 14px; }
.notification-panel p { color: #b8c8da; font-size: 11px; line-height: 1.45; margin: 3px 0 10px; }
.notification-panel > div { display: flex; gap: 8px; }
.notification-panel button { flex: 1; min-width: 0; min-height: 37px; white-space: normal; font-size: 11px; line-height: 1.2; }
.search-toggle { color: #0878e7; }
.search-toggle svg { width: 29px; height: 29px; }
.badge { display: inline-flex; align-items: center; border-radius: 9px; padding: 5px 8px; font-size: 10px; font-weight: 800; white-space: nowrap; background: #1855ac; }
.badge.new { background: #74202b; border: 1px solid #a23a48; }
.badge.ord { background: #208e39; }
.badge.ras { background: #e78321; }
.badge.seg { background: #1674d8; }
.badge.pro { background: #6631b4; }
.badge.received { background: #228833; }
.badge.pending { background: #805115; }
.badge.scale { background: #1457b0; }
.badge.outside { background: #ac1717; }

.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 0 16px; }
.chip { background: #111f33; border: 1px solid #334a67; border-radius: 10px; padding: 6px 5px; font-weight: 700; font-size: 16px; }
.chip.active { background: #0759bd; border-color: #2982e3; }
.chip em { font-style: normal; background: white; color: #0753af; border-radius: 30px; padding: 0 7px; margin-left: 3px; }
.search-box { display: flex; align-items: center; gap: 9px; background: #111f33; border: 1px solid #334a67; border-radius: 11px; padding: 0 11px; margin-bottom: 14px; }
.search-box svg { width: 18px; height: 18px; color: #8da9c9; }
.search-box input { border: 0; outline: 0; background: transparent; color: white; height: 42px; width: 100%; }
.search-box input::placeholder { color: #8da0b9; }

.calendar { padding: 10px 4px 10px; margin: 0 -5px; border-radius: 25px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 8px 20px; font-size: 15px; font-weight: 800; }
.calendar-heading button { border: 0; background: none; color: #bfcde0; font-size: 24px; width: 30px; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.weekdays { margin-bottom: 5px; color: #a2b1c4; text-align: center; font-size: 10px; font-weight: 800; }
.day { background: #0d1b2e; border: 1px solid #2d4361; border-radius: 8px; min-height: 42px; color: #f7faff; font-size: 12px; font-weight: 800; padding: 4px 1px 1px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.day.outside-month { color: #728096; }
.day.selected { border: 2px solid #198eff; background: #112c4b; padding: 3px 0 0; }
.day .day-badge { width: 100%; text-align: center; color: white; font-size: 9px; padding: 1px 0; border-radius: 6px; }
.day-badge.ord { background: #29bf50; }
.day-badge.ras { background: #f18a25; }
.day-badge.pro { background: #733ad0; }
.day-badge.seg { background: #1881ee; }
.calendar-hint { display: flex; align-items: center; gap: 8px; padding: 7px; margin-top: 7px; border: 1px solid #2c4568; border-radius: 10px; color: #aebdd1; font-size: 9px; }
.calendar-hint svg { width: 17px; height: 17px; flex: none; }
.calendar-page .section-head { margin: 22px -5px 8px; }
.calendar-page .section-head h2 { font-size: 16px; }
.calendar-page .other-title { margin-top: 12px; }
.calendar-page .other-title h2 { color: #8cb8fa; }
.event-card { width: calc(100% + 10px); min-height: 82px; color: inherit; display: flex; gap: 11px; padding: 10px; text-align: left; margin: 7px -5px; align-items: center; border-radius: 18px; }
.event-card .event-info { flex: 1; min-width: 0; }
.event-card .event-info strong { display: block; font-size: 14px; }
.event-card .event-info span { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 3px; font-size: 11px; color: #d0dbea; }
.event-card .event-info span svg { width: 13px; height: 13px; flex: none; }
.event-card .event-info .service-value { color: #8ec1ff; font-weight: 700; }
.event-meta { display: flex; align-items: center; gap: 7px; align-self: stretch; }
.event-meta > svg { width: 16px; height: 16px; }
.event-icon.ord { background: #168b30; }
.event-icon.ras { background: #c96c15; }
.event-icon.pro { background: #6e34c2; }
.event-icon.seg, .event-icon.other { background: #1260b4; }

.money-hero { min-height: 104px; display: grid; grid-template-columns: 62px minmax(0, 1fr) 44px; align-items: center; gap: 10px 14px; padding: 14px 18px; }
.money-hero img { width: 62px; height: 62px; object-fit: contain; }
.money-hero p { margin: 0 0 2px; font-size: 15px; }
.money-hero strong { font-size: clamp(17px, 6vw, 23px); white-space: nowrap; letter-spacing: -.045em; }
.balance-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: white; padding: 10px; }
.balance-toggle svg { width: 24px; height: 24px; }
.estimate-breakdown { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid #334b69; }
.estimate-breakdown span { display: grid; gap: 1px; color: #adbed2; font-size: 10px; }
.estimate-breakdown b { color: #fff; font-size: 12px; }
.money-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.finance-note { color: #aebdd1; font-size: 10px; line-height: 1.5; margin: 8px 0 0; }
.money-stat { min-height: 94px; border: 1px solid #2d4361; border-radius: 17px; text-align: center; padding: 9px 4px; }
.money-stat.received, .money-stat.pending { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.money-stat.received { background: #08651b; border-color: #2aac49; }
.money-stat.pending { background: #785012; border-color: #bb801b; }
.money-stat.hours { background: #0e1a29; }
.money-stat svg { width: 26px; height: 26px; display: block; margin: 0 auto 4px; }
.money-stat span { display: block; font-size: 12px; }
.money-stat strong { display: block; font-size: 13px; white-space: nowrap; }
.hours-ring { position: relative; width: 47px; height: 47px; display: grid !important; place-items: center; margin: 0 auto 1px; font-size: 11px !important; font-weight: 800; }
.hours-ring svg { position: absolute; inset: 0; width: 47px; height: 47px; fill: none; stroke: #536071; stroke-width: 5; transform: rotate(-90deg); }
.hours-ring .hours-ring-progress { stroke: #32bb78; }
.hours-ring b { position: relative; font-size: inherit; }
.finance-page .section-head { margin: 20px 0 11px; gap: 5px; }
.finance-page .section-head h2 { font-size: 17px; white-space: nowrap; }
.finance-page .outside-title { margin: 15px 0 8px; }
.month-select { background: #111f33; border: 1px solid #334a67; color: #fff; border-radius: 10px; padding: 7px 5px; width: 145px; font-size: 11px; }
.finance-row { position: relative; width: 100%; min-height: 74px; color: inherit; display: flex; gap: 10px; text-align: left; align-items: center; padding: 9px; margin: 7px 0; border-radius: 17px; }
.finance-row .details { min-width: 0; flex: 1; }
.finance-row .details strong, .finance-row .details span, .finance-row .details b { display: block; }
.finance-row .details strong { font-size: 15px; }
.finance-row .details span { color: #aebdd1; font-size: 11px; }
.finance-row .details b { font-size: 13px; }
.finance-row .meta { position: absolute; top: 9px; right: 28px; text-align: right; font-size: 10px; color: #c2cedd; }
.finance-row:has(.badge.outside) .meta { top: 24px; }
.finance-row .meta span { display: block; margin-top: 4px; }
.finance-row .badge { font-size: 9px; padding: 3px 5px; }
.finance-row > svg { width: 15px; height: 15px; flex: none; }
.finance-icon.ord { background: #087114; }
.finance-icon.ras { background: #596c87; }
.finance-icon.pro { background: #155ac2; }
.finance-icon.seg { background: #682ac5; }

.profile-page { position: relative; padding-left: 16px; padding-right: 16px; }
.profile-page .page-title-row { margin: 0 4px 18px; }
.profile-content.locked { filter: blur(9px); opacity: .55; pointer-events: none; user-select: none; }
.profile-sensitive { position: relative; }
.profile-sensitive:has(.profile-gate) { min-height: 510px; }
.profile-gate { position: absolute; z-index: 2; top: 72px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 370px); padding: 22px; border: 1px solid #46678e; border-radius: 20px; background: #13253d; box-shadow: 0 18px 50px #0009; }
.profile-gate-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; background: #174a83; }
.profile-gate-icon svg { width: 23px; height: 23px; }
.profile-gate h2 { margin-bottom: 6px; }
.profile-gate p { margin-bottom: 14px; color: #c0d0e3; font-size: 12px; line-height: 1.5; }
.profile-gate label { display: grid; gap: 7px; margin-bottom: 14px; font-size: 12px; font-weight: 700; }
.profile-gate input { width: 100%; min-height: 44px; border: 1px solid #526a86; border-radius: 10px; padding: 10px 12px; background: #0a1727; color: white; }
.profile-gate .form-error { color: #ffb3bb; }
.profile-lead { width: 100%; min-height: 105px; display: flex; align-items: center; gap: 12px; padding: 13px; margin: 0 0 28px; border-radius: 16px; color: inherit; text-align: left; }
.profile-lead:hover { border-color: #4488d9; }
.profile-lead .details { flex: 1; min-width: 0; }
.profile-lead strong { display: block; font-size: 15px; }
.profile-lead span { display: block; font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.profile-lead > svg { width: 20px; height: 20px; flex: none; }
.profile-card { display: block; position: relative; width: 100%; min-height: 82px; color: white; text-align: left; padding: 8px 44px 8px 15px; margin: 8px 0 0; border-radius: 16px; }
.profile-card .head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.profile-card .head > svg:first-child { width: 21px; height: 21px; color: #1486ec; }
.profile-card .head > svg:last-child { position: absolute; width: 18px; height: 18px; right: 15px; top: 50%; transform: translateY(-50%); }
.profile-card strong { font-size: 16px; }
.profile-card p { font-size: 11px; line-height: 1.5; color: #d7e1ed; margin: 0; }
.profile-line { display: grid; grid-template-columns: 102px 1fr; gap: 3px; }
.profile-line span:last-child { overflow-wrap: anywhere; }
.profile-card[data-section="preferences"] { min-height: 109px; }
.privacy { display: block; color: #aeb0b5; font-size: 12px; text-align: center; margin: 27px auto 10px; }

.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 500px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #0e1013;
  border: 1px solid #2b313a;
  border-radius: 15px 15px 0 0;
  padding: 13px 4px calc(9px + env(safe-area-inset-bottom));
}
.bottom-nav button { border: 0; background: none; color: #f3f5f9; display: grid; justify-items: center; gap: 4px; font-size: 10px; padding: 2px 0; }
.bottom-nav button.active { color: #167feb; }
.bottom-nav svg { width: 24px; height: 24px; }
.nav-logo { display: none; }

#dialog-root:empty { display: none; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 20; background: #000b; display: grid; align-items: end; justify-items: center; padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-right: env(safe-area-inset-right, 0px); padding-left: env(safe-area-inset-left, 0px); }
.dialog { background: #111c2b; width: min(100%, 500px); max-height: min(calc(100dvh - max(12px, env(safe-area-inset-top, 0px)) - 12px), 820px); overflow: auto; overscroll-behavior: contain; border: 1px solid #405878; border-radius: 20px 20px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 60px #0008; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dialog-heading h2 { margin: 0; }
.dialog form { display: grid; gap: 13px; }
.photo-field { display: flex; align-items: center; gap: 14px; }
.photo-field label { flex: 1; min-width: 0; }
.dialog .photo-picker input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.photo-picker span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #0c1522; border: 1px solid #39516f; border-radius: 10px; padding: 10px 12px; color: #fff; }
.photo-picker:focus-within span { outline: 2px solid #3895ff; outline-offset: 2px; }
.dialog label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #cad6e6; }
.dialog label[hidden] { display: none; }
.form-hint { margin: -7px 0 0; color: #a8b9cf; font-size: 11px; }
.form-error { color: #ff9ca7; font-size: 12px; margin: 0; }
.form-success { color: #80dfb4; font-size: 12px; margin: 0; }
.install-help { color: #d0dbea; font-size: 14px; line-height: 1.6; }
.dialog-backdrop:has(.pwa-onboarding) { backdrop-filter: blur(7px); padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); align-items: center; }
.dialog:has(.pwa-onboarding) { width: min(100%, 460px); max-height: calc(100dvh - 32px); border-radius: 24px; padding: 24px; background: linear-gradient(155deg, #182c46, #101d30 65%); border-color: #496387; box-shadow: 0 24px 90px #0009; }
.dialog:has(.pwa-onboarding) .dialog-heading { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.dialog:has(.pwa-onboarding) .dialog-heading h2 { max-width: 23ch; font-size: 22px; line-height: 1.3; text-wrap: balance; }
.dialog:has(.pwa-onboarding) .dialog-heading .icon-button { margin: -3px -5px 0 0; flex: none; }
.pwa-onboarding { text-align: center; }
.pwa-onboarding-icon { display: block; width: 76px; height: 76px; margin: 0 auto 15px; border-radius: 19px; box-shadow: 0 6px 24px #005fd544; }
.pwa-onboarding-lead { margin: 0 0 18px; color: #b5c8df; font-size: 13px; line-height: 1.6; text-wrap: pretty; }
.pwa-onboarding-features { display: grid; gap: 10px; margin-bottom: 18px; text-align: left; }
.pwa-onboarding-step { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; background: #0b1728aa; border: 1px solid #314965; border-radius: 13px; }
.pwa-onboarding-step > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: #1b3f6855; }
.pwa-onboarding-step > div { min-width: 0; }
.pwa-onboarding-step strong { display: block; color: #eaf2ff; font-size: 13px; margin-bottom: 4px; }
.pwa-onboarding-step p { margin: 0; color: #a8bdd7; font-size: 12px; line-height: 1.55; }
.pwa-onboarding-step svg { display: block; width: 18px; height: 18px; color: #7eb8ff; }
.pwa-onboarding-actions { display: grid; gap: 9px; }
.pwa-onboarding-actions button { min-height: 46px; border-radius: 11px; font-size: 13px; white-space: normal; }
.pwa-onboarding-actions button:disabled { opacity: .55; cursor: not-allowed; }
.pwa-onboarding-actions .primary-button { background: linear-gradient(110deg, #176ddd, #0758ba); }
.pwa-onboarding-actions .text-button { min-height: 44px; color: #a4bddc; font-size: 12px; font-weight: 500; }
.pwa-onboarding-status { margin: 12px 0 0; color: #9ab1cd; font-size: 11px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.pwa-onboarding-status:empty { display: none; }
.notification-popup .notification-panel { position: static; padding: 12px; margin-bottom: 14px; }
.notification-popup .notification-panel p { font-size: 12px; margin: 6px 0 10px; }
.notification-popup .notification-panel strong { font-size: 13px; }
.notification-popup .filters { gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.notification-popup .chip { flex: none; padding: 8px 10px; font-size: 12px; }
.notification-popup .notice-card { width: 100%; }
.notification-popup .notice-card .notice-side { flex-shrink: 0; }
.dialog:has(.notification-popup) { border-radius: 20px; margin-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
.dialog-backdrop:has(.notification-popup) { padding: max(12px, env(safe-area-inset-top, 0px)) 12px; align-items: center; }
.plan-profile-card { margin-bottom: 18px; width: 100%; }
.plan-profile-card.is-pro { border-color: #357bcb; background: linear-gradient(120deg, #122e50, #131e2d); }
.plan-tag { display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 3px 9px; border-radius: 20px; background: #164574; color: #b9dcff; font-size: 11px; font-weight: 700; }
.dialog-backdrop:has(.pricing-view, .checkout-view) { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); align-items: center; }
.dialog:has(.pricing-view, .checkout-view) { width: min(100%, 760px); padding: 26px; border-radius: 24px; max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))); background: #0d1726; border-color: #354d6e; box-shadow: 0 24px 100px #000b; }
.dialog:has(.checkout-view) { width: min(100%, 480px); }
.dialog:has(.pricing-view) .dialog-heading h2, .dialog:has(.checkout-view) .dialog-heading h2 { font-size: 15px; color: #b2c3d9; }
.pricing-intro { margin: 10px 0 24px; }
.pricing-eyebrow { display: block; color: #83baff; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.pricing-intro h3 { font-size: clamp(27px, 4vw, 34px); line-height: 1.18; letter-spacing: -.04em; margin: 10px 0 12px; }
.pricing-intro p { max-width: 44ch; margin: 0; color: #a2b5ce; font-size: 13px; line-height: 1.65; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 4px; }
.plan-option { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid #314359; border-radius: 18px; background: #101c2c; }
.plan-pro { background: radial-gradient(ellipse at top right, #245daf55, transparent 65%), linear-gradient(155deg, #15365e, #102641 80%); border-color: #4b97eb; box-shadow: 0 0 0 1px #357aca33 inset, 0 10px 28px #04132688; }
.plan-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-title h3 { margin: 0; font-size: 19px; }
.plan-pro .plan-title h3 { font-size: 16px; }
.plan-title h3 > span { color: #8dc6ff; }
.plan-current { flex: none; padding: 4px 7px; border: 1px solid #54769d; border-radius: 6px; color: #a9caf0; font-size: 9px; font-weight: 600; }
.plan-pro .plan-current { border-color: #669ed7; color: #d1e7ff; background: #2461aa44; }
.plan-description { margin: 9px 0 18px; font-size: 12px; color: #b0c4dd; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; margin-bottom: 22px; }
.plan-price strong { font-size: 35px; font-weight: 700; line-height: 1.15; letter-spacing: -.05em; color: #f0f6ff; white-space: nowrap; }
.plan-price > span { color: #a2bddf; font-size: 12px; }
.plan-benefits { display: grid; gap: 13px; padding: 0; margin: 0 0 24px; list-style: none; }
.plan-benefits li { display: flex; align-items: flex-start; gap: 9px; color: #c8d8ec; font-size: 12px; line-height: 1.5; }
.plan-benefits svg { flex: none; width: 15px; height: 15px; color: #6cabee; margin-top: 2px; }
.plan-pro .plan-benefits svg { color: #87c5ff; }
.plan-pro .plan-benefits li:first-child { color: white; font-weight: 600; }
.plan-footer { margin-top: auto; text-align: center; }
.plan-footer > span { display: block; padding: 13px 0; color: #91a8c7; font-size: 11px; }
.plan-footer .primary-button, .checkout-submit { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-size: 13px; border-radius: 11px; white-space: normal; background: linear-gradient(110deg, #2585ef, #1265cc); border-color: #459bf8; box-shadow: 0 4px 15px #005cc244; }
.plan-footer .primary-button:hover, .checkout-submit:hover { background: #2887ef; }
.plan-footer .primary-button svg, .checkout-submit svg { width: 17px; height: 17px; flex: none; }
.plan-footer > small { display: block; font-size: 10px; color: #9dbbde; margin-top: 10px; }
.plan-footer .plan-active { display: inline-flex; align-items: center; gap: 7px; color: #a4e9c9; font-size: 13px; font-weight: 600; }
.plan-active svg { width: 18px; height: 18px; }
.billing-feedback { padding: 13px 15px; margin: 16px 0; border: 1px solid #315474; border-radius: 12px; background: #112b4555; color: #bbd2ec; font-size: 12px; line-height: 1.6; }
.subscription-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 0; padding: 17px; border: 1px solid #31465f; border-radius: 13px; background: #101e2f; }
.subscription-summary > div strong { display: block; margin-top: 5px; font-size: 14px; }
.subscription-summary > p { flex-basis: 100%; margin: 2px 0 0; color: #a4bbd6; font-size: 12px; }
.subscription-summary .text-button { padding: 8px 0; font-size: 11px; }
.subscription-status { padding: 6px 10px; border-radius: 7px; background: #6f541a33; color: #edcd8f; font-size: 11px; }
.subscription-status.active { background: #18634344; color: #9de2bd; }
.billing-history { margin-top: 22px; border-top: 1px solid #2c425d; padding-top: 15px; }
.billing-history summary { cursor: pointer; color: #a9c0de; font-size: 12px; padding: 7px 0; }
.billing-history summary span { font-size: 10px; margin-left: 5px; color: #7fa3cf; }
.billing-charge { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-top: 12px; padding: 12px 0; border-top: 1px solid #263b55; font-size: 12px; }
.billing-charge > div { min-width: 0; overflow-wrap: anywhere; }
.billing-charge small { display: block; margin-top: 5px; color: #9db2ce; font-size: 10px; }
.billing-charge b { flex: none; }
.checkout-view { text-align: center; padding-top: 6px; }
.checkout-icon, .upgrade-symbol { display: inline-grid; place-items: center; width: 50px; height: 50px; border: 1px solid #3873b3; border-radius: 14px; color: #8cc6ff; background: linear-gradient(145deg, #214c7d, #132d49); }
.checkout-icon svg, .upgrade-symbol svg { width: 24px; height: 24px; }
.checkout-intro { margin: 20px 0 24px; }
.checkout-intro h3 { font-size: 27px; margin: 8px 0 10px; line-height: 1.2; }
.checkout-intro p { margin: 0 auto; color: #b0c5df; font-size: 13px; line-height: 1.6; max-width: 30ch; }
.checkout-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 18px; border-radius: 13px; background: #152940; border: 1px solid #36597c; }
.checkout-order > div { display: grid; gap: 4px; min-width: 0; }
.checkout-order strong { font-size: 16px; }
.checkout-order > div span { font-size: 11px; color: #a7c0dc; }
.checkout-order > strong { flex: none; font-size: 20px; text-align: right; }
.checkout-order small { display: block; font-size: 10px; font-weight: 400; color: #a6c0dd; margin-top: 2px; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 21px 1px 8px; text-align: left; font-size: 13px; }
.checkout-total strong { font-size: 23px; letter-spacing: -.025em; }
.checkout-terms { margin: 12px 0 23px; color: #97afcd; font-size: 11px; line-height: 1.65; text-align: left; }
.checkout-security { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 16px; color: #8da7c5; font-size: 10px; }
.checkout-security svg { width: 14px; height: 14px; }
.checkout-error { font-size: 12px; line-height: 1.5; color: #ffb4be; text-align: left; padding: 13px; background: #60243233; border: 1px solid #914359; border-radius: 10px; }
.home-plan-teaser { display: flex; align-items: flex-start; gap: 16px; margin-top: 26px; padding: 22px; border: 1px solid #345e8b; border-radius: 18px; background: radial-gradient(ellipse at top right, #21569a44, transparent 70%), #12233a; }
.home-plan-teaser .upgrade-symbol { width: 42px; height: 42px; flex: none; }
.home-plan-teaser > div { min-width: 0; }
.home-plan-teaser h2 { margin: 7px 0 10px; font-size: 20px; line-height: 1.25; }
.home-plan-teaser p { margin: 0 0 17px; color: #a9bfdb; font-size: 12px; line-height: 1.6; }
.home-plan-teaser button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; font-size: 12px; white-space: normal; }
.home-plan-teaser button svg { width: 15px; height: 15px; }
.pro-upgrade { margin-top: 25px; padding: 28px; text-align: center; border-color: #345f90; background: radial-gradient(ellipse at top, #275fad55, transparent 70%), #132238; }
.pro-upgrade .upgrade-symbol { margin-bottom: 20px; }
.pro-upgrade h2 { font-size: 28px; line-height: 1.2; margin: 12px 0; }
.pro-upgrade p { color: #b6c9df; font-size: 13px; line-height: 1.6; margin-bottom: 18px; }
.upgrade-price { display: flex; justify-content: center; align-items: baseline; gap: 6px; font-size: 15px; margin: 16px 0 25px; color: #a9cdf7; }
.upgrade-price strong { color: white; font-size: 48px; letter-spacing: -.05em; }
.upgrade-price > span { font-size: 12px; }
.pro-upgrade .primary-button { min-height: 47px; }
@media (max-width: 600px) {
  .dialog:has(.pricing-view, .checkout-view) { padding: 20px; border-radius: 20px; }
  .plans-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .plan-pro { order: -1; }
  .plan-option { padding: 21px; }
  .plan-price strong { font-size: 38px; }
  .plan-benefits { gap: 11px; }
  .home-plan-teaser { padding: 18px; gap: 12px; }
}
@media (max-width: 360px) {
  .dialog:has(.pricing-view, .checkout-view) { padding: 16px; }
  .plan-option { padding: 18px; }
  .plan-title h3, .plan-pro .plan-title h3 { font-size: 14px; }
  .plan-current { font-size: 8px; }
  .checkout-order { padding: 14px; }
  .checkout-order strong { font-size: 15px; }
  .checkout-order > strong { font-size: 18px; }
  .home-plan-teaser { flex-direction: column; }
}
@media (min-width: 601px) and (max-height: 740px) {
  .dialog:has(.pricing-view) { padding: 22px; }
  .dialog:has(.pricing-view) .dialog-heading { margin-bottom: 12px; }
  .pricing-intro { margin: 5px 0 18px; }
  .pricing-intro h3 { font-size: 27px; margin: 8px 0; }
  .pricing-intro h3 br { display: none; }
  .pricing-intro p { max-width: none; font-size: 12px; }
  .plan-option { padding: 20px; }
  .plan-description { margin-bottom: 16px; }
  .plan-price { margin-bottom: 20px; }
  .plan-benefits { gap: 11px; margin-bottom: 20px; }
}
@media (display-mode: standalone) {
  .app-shell { padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  .admin-shell { padding-top: max(12px, env(safe-area-inset-top, 0px)); }
}
.dialog input, .dialog select, .dialog textarea { width: 100%; background: #0c1522; border: 1px solid #39516f; border-radius: 10px; padding: 11px 12px; color: white; outline: none; }
.dialog textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dialog-actions { display: flex; gap: 9px; margin-top: 10px; }
.dialog-actions button { flex: 1; }
.earning-actions { flex-direction: column-reverse; }
.earning-actions button { flex: none; width: 100%; }
.detail-list { display: grid; gap: 10px; margin-bottom: 18px; }
.detail-list div { border-bottom: 1px solid #304156; padding-bottom: 9px; }
.detail-list span { display: block; color: #a8b9cf; font-size: 11px; }
.detail-list strong { font-size: 14px; }
.earning-summary { background: #152b47; border: 1px solid #36577e; border-radius: 14px; padding: 16px; margin-bottom: 17px; }
.earning-summary span, .earning-summary strong { display: block; }
.earning-summary span { color: #b9c9dc; font-size: 13px; }
.earning-summary strong { font-size: 26px; line-height: 1.3; margin-top: 3px; }
.empty { color: #aebdd0; border: 1px dashed #38506d; padding: 24px; text-align: center; border-radius: 14px; font-size: 13px; }
.admin-shell { min-height: 100dvh; background: radial-gradient(circle at 78% 0%, #132843 0, #0b111b 42%, #090d14 100%); }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 20px; background: #0e1725; border-bottom: 1px solid #2d4361; }
.admin-topbar img { width: 150px; max-height: 54px; object-fit: contain; }
.admin-topbar span { color: #93abc8; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-page { width: min(100%, 1320px); margin: auto; padding: 26px 16px 48px; }
.admin-page > .page-title-row { flex-wrap: wrap; }
.admin-kicker { color: #75adf0; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.admin-back { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 12px; text-decoration: none; }
.admin-back svg { width: 17px; height: 17px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 14px; margin: 2px 0 18px; }
.admin-tabs button { flex: 1 1 calc(33.333% - 6px); border: 1px solid transparent; border-radius: 10px; padding: 10px 8px; background: transparent; color: #aabbd0; font-size: 12px; font-weight: 700; }
.admin-tabs button:hover, .admin-tabs button.active { color: white; border-color: #375f92; background: #17345b; }
.admin-status { margin: 0 0 18px; }
.admin-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
.admin-metric { min-width: 0; display: grid; gap: 5px; padding: 18px; border-radius: 16px; }
.admin-metric > span { color: #a9bdd3; font-size: 11px; font-weight: 700; }
.admin-metric strong { font-size: clamp(19px, 3vw, 27px); line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; }
.admin-metric small { color: #78a9da; font-size: 10px; }
.admin-columns { display: grid; gap: 16px; align-items: start; }
.admin-section { min-width: 0; padding: 20px; margin-bottom: 16px; border-radius: 17px; }
.admin-section h2 { margin: 0 0 10px; font-size: 17px; }
.admin-section h3 { margin: 26px 0 12px; }
.admin-section p { margin: 0 0 14px; color: #bac9da; font-size: 13px; line-height: 1.5; }
.admin-section form { display: grid; gap: 14px; }
.admin-section label { display: grid; gap: 7px; color: #cad6e6; font-size: 12px; font-weight: 700; }
.admin-section input, .admin-section select, .admin-section textarea { width: 100%; min-width: 0; background: #0c1522; border: 1px solid #39516f; border-radius: 10px; padding: 11px 12px; color: white; }
.admin-section textarea { resize: vertical; }
.admin-file-picker { position: relative; }
.admin-file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; }
.admin-file-picker span { display: block; max-width: 100%; padding: 12px; border: 1px dashed #4e739c; border-radius: 10px; color: #c6dcf5; font-weight: 500; overflow-wrap: anywhere; cursor: pointer; }
.admin-file-picker:focus-within span { outline: 2px solid #3895ff; outline-offset: 2px; }
.admin-list-row { display: grid; gap: 4px; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid #304156; color: white; text-align: left; background: none; }
.admin-list-row:hover, .admin-list-row.selected { color: #91c4ff; }
.admin-list-row span, .admin-match span { color: #b6c4d5; font-size: 12px; overflow-wrap: anywhere; }
.admin-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.admin-heading a { color: #78b7ff; font-size: 12px; white-space: nowrap; }
.admin-heading .month-select { width: 150px; flex: none; }
.admin-heading .text-button { font-size: 11px; white-space: nowrap; }
.admin-inline-stats { display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; padding: 12px 0; }
.admin-inline-stats strong { color: #8fc2ff; font-size: 22px; }
.admin-inline-stats span { color: #aabbd0; font-size: 11px; margin-right: 10px; }
.admin-history { padding: 12px 0; border-top: 1px solid #304156; }
.admin-history strong, .admin-history span { display: block; }
.admin-history strong { font-size: 12px; }
.admin-history span { color: #a8b9cf; font-size: 11px; margin-top: 3px; }
.admin-history p { margin: 8px 0 0; overflow-wrap: anywhere; }
.admin-search { grid-template-columns: minmax(0, 1fr) auto; gap: 8px !important; margin: 12px 0; }
.admin-search input { grid-column: 1 / -1; }
.admin-search select { min-width: 0; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 17px; }
.admin-pagination span { color: #aabbd0; font-size: 10px; text-align: center; }
.admin-pagination button { padding: 8px; font-size: 11px; }
.admin-pagination button:disabled { opacity: .4; cursor: default; }
.admin-label { display: inline-block; border-radius: 20px; padding: 4px 8px; background: #243a56; color: #bad8fb; font-size: 10px; font-weight: 700; }
.admin-label.is-ok { background: #173e2f; color: #9be4b5; }
.admin-label.is-waiting { background: #493919; color: #f4d693; }
.admin-label.is-late { background: #51232a; color: #ffc2c9; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 0; border-bottom: 1px solid #304156; }
.admin-detail-grid span, .admin-detail-grid strong { display: block; overflow-wrap: anywhere; }
.admin-detail-grid span { color: #9fb4cc; font-size: 10px; }
.admin-detail-grid strong { margin-top: 3px; font-size: 12px; }
.admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.admin-form-grid > button { min-height: 44px; white-space: normal; line-height: 1.25; }
.admin-client-detail > .full { margin-top: 12px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.admin-table th { color: #9db2ca; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.admin-table th, .admin-table td { padding: 13px 11px; border-bottom: 1px solid #304156; vertical-align: top; }
.admin-table td small { display: block; color: #9fb0c5; font-size: 10px; margin-top: 4px; }
.admin-table-link { padding: 0; border: 0; background: none; color: #8fc2ff; text-align: left; font-size: 12px; font-weight: 700; }
.admin-row-actions { display: flex; gap: 5px; flex-wrap: wrap; min-width: 120px; }
.admin-row-actions button { padding: 6px 8px; font-size: 10px; white-space: normal; }
.admin-empty-cell { color: #aabbd0; text-align: center; padding: 30px !important; }
.admin-workflow { display: flex; align-items: center; gap: 20px; margin: 18px 0 22px; padding: 17px; border: 1px solid #294a70; border-radius: 14px; background: linear-gradient(135deg, #0a2545, #101c2c); }
.admin-document { position: relative; width: 82px; height: 105px; flex: none; overflow: hidden; padding: 31px 14px; border: 2px solid #86baff; border-radius: 8px 18px 8px 8px; background: #dbeaf8; box-shadow: 0 12px 30px #0005; transform: rotate(-5deg); }
.admin-document:before { content: ''; position: absolute; top: 0; right: 0; border-top: 19px solid #6da9ed; border-left: 19px solid transparent; }
.admin-document i { display: block; height: 5px; margin-bottom: 9px; border-radius: 4px; background: #6387ad; }
.admin-document i:last-child { width: 65%; }
.admin-document span { position: absolute; inset: -25% 0 auto; height: 25%; background: linear-gradient(transparent, #25aeff9c, transparent); z-index: 1; opacity: 0; }
.admin-document.is-scanning { animation: admin-float 2s ease-in-out infinite; }
.admin-document.is-scanning span { opacity: 1; animation: admin-scan 1.8s linear infinite; }
.admin-workflow ol { display: grid; gap: 11px; padding: 0; margin: 0; list-style: none; }
.admin-workflow li { display: flex; align-items: center; gap: 8px; color: #8ba1bc; }
.admin-workflow li b { width: 23px; height: 23px; display: grid; place-items: center; flex: none; border-radius: 50%; border: 1px solid #45607f; font-size: 10px; }
.admin-workflow li div { display: grid; line-height: 1.2; }
.admin-workflow li strong { font-size: 11px; }
.admin-workflow li small { font-size: 9px; }
.admin-workflow li.active, .admin-workflow li.done { color: #b9deff; }
.admin-workflow li.active b { background: #176bd3; border-color: #5ba9ff; color: white; box-shadow: 0 0 0 5px #176bd333; }
.admin-workflow li.done b { background: #17764b; border-color: #59d5a2; color: white; }
.admin-send-note { padding: 11px; border-radius: 9px; background: #1b2f46; font-size: 11px !important; }
.admin-reprocess { width: 100%; margin: 2px 0 14px; }
.admin-match { padding: 14px 0; border-top: 1px solid #304156; }
.admin-match strong, .admin-match span { display: block; }
.admin-match p { margin: 10px 0; overflow-wrap: anywhere; }
.admin-match-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-match-actions span { flex: 1; }
.admin-match-actions button { padding: 8px 10px; font-size: 12px; }
@keyframes admin-float { 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes admin-scan { to { transform: translateY(165px); } }
@media (prefers-reduced-motion: reduce) { .admin-document.is-scanning, .admin-document.is-scanning span { animation: none; } }
@media (max-width: 600px) {
  .auth-page { padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .auth-panel { padding: clamp(20px, 6vw, 28px); border-radius: 22px; }
  .auth-brand { margin-bottom: 18px; }
  .auth-logo { width: 216px; }
  .admin-form-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-form-grid > button { width: 100%; }
  .admin-heading .month-select { width: 132px; }
}

@media (max-height: 760px) {
  .auth-page { align-content: start; }
  .auth-brand { min-height: 60px; margin-bottom: 14px; }
  .auth-logo { max-height: 64px; }
  .auth-google { margin-top: 20px; }
}

@media (max-width: 360px), (max-height: 640px) {
  .dialog:has(.pwa-onboarding) { padding: 18px; border-radius: 20px; }
  .dialog:has(.pwa-onboarding) .dialog-heading h2 { font-size: 19px; }
  .pwa-onboarding-icon { width: 58px; height: 58px; border-radius: 15px; margin-bottom: 11px; }
  .pwa-onboarding-lead { margin-bottom: 13px; font-size: 12px; }
  .pwa-onboarding-features { gap: 8px; margin-bottom: 13px; }
  .pwa-onboarding-step { padding: 10px 12px; }
}

@media (max-width: 360px) {
  .money-hero { gap: 8px; padding-inline: 12px; }
  .money-hero img { width: 50px; height: 50px; }
  .money-hero p { font-size: 12px; }
  .money-hero strong { font-size: 19px; }
  .money-hero > svg { width: 20px; height: 20px; }
  .finance-page .section-head h2 { font-size: 15px; }
  .month-select { width: 125px; font-size: 10px; }
}

@media (min-width: 700px) {
  body { background: radial-gradient(circle at 50% 10%, #11223c, #07090c 65%); }
  #app { border-left: 1px solid #223043; border-right: 1px solid #223043; }
  .dialog-backdrop { align-items: center; }
  .dialog { border-radius: 20px; max-height: 85dvh; }
}

@media (min-width: 768px) {
  #app { width: 100%; box-shadow: none; }
  .app-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); padding-bottom: 0; }
  .app-shell > .page { grid-column: 2; grid-row: 1; width: min(100%, 1280px); min-width: 0; margin: 0 auto; padding: 36px clamp(28px, 4vw, 56px) 60px; }
  .bottom-nav { position: sticky; grid-column: 1; grid-row: 1; top: 0; left: auto; bottom: auto; transform: none; width: 200px; height: 100dvh; display: flex; flex-direction: column; gap: 5px; align-items: stretch; border: 0; border-right: 1px solid #27364a; border-radius: 0; padding: 26px 12px; }
  .nav-logo { display: block; width: 150px; max-height: 62px; object-fit: contain; margin: 0 auto 28px; }
  .bottom-nav button { display: flex; justify-content: flex-start; align-items: center; gap: 13px; min-height: 50px; border-radius: 11px; padding: 10px 12px; font-size: 12px; font-weight: 700; text-align: left; }
  .bottom-nav button:hover, .bottom-nav button.active { background: #142d50; }
  .bottom-nav svg { width: 22px; height: 22px; flex: none; }
  .page-title-row { margin-bottom: 24px; }
  h1 { font-size: 30px; }
  .home-page .brand-row { min-height: 64px; margin-bottom: 18px; }
  .home-page .greeting { min-height: 62px; }
  .summary-grid { gap: 12px; }
  .summary-tile { min-height: 125px; padding: 16px; }
  .summary-tile strong { font-size: 14px; }
  .summary-tile span { font-size: 36px; }
  .summary-tile.money span { font-size: 22px; }
  .calendar { margin: 0; padding: 18px; }
  .day { min-height: 52px; }
  .calendar-page .section-head { margin-left: 0; margin-right: 0; }
  .event-card { width: 100%; margin: 9px 0; }
  .dialog { width: min(calc(100% - 32px), 620px); }
  .admin-shell > .admin-page { padding: 36px clamp(28px, 4vw, 56px) 60px; }
  .admin-topbar { padding-inline: max(28px, calc((100vw - 1210px) / 2)); }
  .admin-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .admin-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .admin-columns.clients { grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr); }
  .admin-tabs { flex-wrap: nowrap; gap: 10px; }
  .admin-tabs button { flex: none; padding: 12px 17px; }
}

@media (min-width: 1180px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .bottom-nav { width: 220px; padding-inline: 16px; }
  .home-page, .calendar-layout, .finance-layout, .notifications-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .home-page { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
  .home-activity .section-head:first-child { margin-top: 10px; }
  .calendar-layout { grid-template-columns: minmax(390px, .95fr) minmax(0, 1.05fr); }
  .calendar-agenda .section-head:first-child, .finance-transactions .section-head:first-child { margin-top: 0; }
  .finance-layout { grid-template-columns: minmax(380px, .9fr) minmax(0, 1.1fr); }
  .notifications-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .notices-layout { max-width: 850px; margin-inline: auto; }
  .notification-panel { position: sticky; top: 30px; }
  .notification-panel > div { flex-direction: column; }
  .notices-main { min-width: 0; }
  .profile-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-content: start; }
  .profile-content > .profile-lead { grid-column: 1 / -1; }
  .profile-lead { margin-bottom: 10px; }
  .profile-card { margin: 0; min-height: 110px; }
  .profile-card[data-section="preferences"] { min-height: 110px; }
}
.mfa-qr {
  display: block;
  width: min(220px, 100%);
  margin: 16px auto;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}
@media (min-width: 768px) and (display-mode: standalone) {
  .bottom-nav { height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px))); }
}

.notification-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; color: #9fb5cf; font-size: 12px; }
.notification-list-heading button { min-height: 44px; padding: 8px 12px; }
button:disabled { cursor: default; opacity: .55; }
.profile-billing { padding: 22px; margin-bottom: 24px; border: 1px solid #365371; border-radius: 20px; background: linear-gradient(125deg, #182e48, #111e30); }
.profile-billing.is-pro { border-color: #4088d8; }
.profile-billing-heading, .profile-plan-overview, .profile-last-charge { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-billing-heading h2 { margin: 6px 0 0; font-size: 20px; }
.profile-plan-overview { margin: 20px 0; align-items: start; }
.profile-plan-overview > div { min-width: 0; }
.profile-plan-overview strong { font-size: 17px; }
.profile-plan-overview p { max-width: 45ch; color: #b3c6df; margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.profile-plan-overview > b { font-size: 23px; white-space: nowrap; letter-spacing: -.04em; text-align: right; }
.profile-plan-overview small { display: block; margin-top: 3px; color: #a5bcda; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.profile-billing-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 18px; border-top: 1px solid #324967; padding-top: 16px; }
.profile-billing-details dt { color: #90a9c9; font-size: 11px; margin-bottom: 5px; }
.profile-billing-details dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.profile-billing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.profile-billing-actions .primary-button, .profile-billing-actions .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; font-size: 12px; }
.profile-billing-actions svg { width: 16px; height: 16px; }
.profile-billing-actions .text-button { min-height: 44px; font-size: 12px; }
.profile-last-charge { padding-top: 16px; margin-top: 16px; border-top: 1px solid #324967; font-size: 11px; color: #afc2db; }
.profile-last-charge strong { color: #fff; }
.billing-empty-inline { font-size: 11px; color: #8fa8c8; margin: 16px 0 0; }
.billing-history-view .ghost-button { margin-top: 24px; }
.billing-empty { text-align: center; padding: 24px 12px; }
.billing-empty svg { display: block; width: 40px; height: 40px; margin: 0 auto 16px; color: #7fb8f7; }
.billing-empty p { color: #a6bbd6; font-size: 12px; }
.charge-status.paid { color: #a7e3bc; }
.charge-status.open { color: #f1d395; }
.dialog:has(.embedded-checkout) { width: min(100%, 540px); }
.embedded-checkout { text-align: left; }
.embedded-checkout .checkout-order > strong { font-size: 23px; }
.payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.payment-method { display: flex; align-items: center; justify-content: start; gap: 9px; padding: 13px 11px; border: 1px solid #395373; border-radius: 12px; background: #132236; color: #cedff4; text-align: left; min-width: 0; }
.payment-method.selected { background: #143660; border-color: #549ff1; color: #fff; box-shadow: 0 0 0 1px #549ff133; }
.payment-method > svg { width: 20px; height: 20px; flex: none; }
.payment-method > span { font-size: 13px; font-weight: 700; min-width: 0; }
.payment-method small { display: block; font-size: 9px; line-height: 1.4; color: #a9bed9; font-weight: 400; margin-top: 3px; }
.payment-method .pix-icon { color: #32bcad; width: 23px; height: 23px; }
.payment-card-form { margin: 0; }
.payment-explanation { color: #b5c9e2; font-size: 12px; line-height: 1.5; margin: 0 0 16px; }
.payment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.payment-form-grid label { display: grid; gap: 7px; min-width: 0; color: #c9d9ee; font-size: 11px; font-weight: 600; }
.payment-form-grid .full-field { grid-column: 1 / -1; }
.payment-form-grid input, .payment-form-grid select, .secure-card-field { width: 100%; min-width: 0; height: 48px; border: 1px solid #425d7f; border-radius: 10px; background: #0a1626; color: #fff; padding: 12px; font-size: 16px; }
.secure-card-field { display: block; padding: 13px 12px; }
.secure-card-field iframe { display: block; width: 100%; height: 20px; border: 0; }
.secure-card-field:focus-within { outline: 2px solid #5eafff; outline-offset: 2px; }
.checkout-unavailable { padding: 12px 16px; border: 1px dashed #456387; border-radius: 13px; color: #b8cce5; text-align: center; font-size: 12px; line-height: 1.6; }
.checkout-unavailable > svg { width: 26px; height: 26px; color: #88baf1; }
.checkout-back { display: block; margin: 12px auto 0; min-height: 44px; font-size: 12px; }
.pix-payment { display: grid; gap: 14px; text-align: center; padding: 12px 0; }
.pix-payment p { margin: 0; color: #afc4de; font-size: 12px; line-height: 1.6; }
.pix-payment h4 { margin: 0; font-size: 19px; }
.pix-state { justify-self: center; padding: 7px 13px; border-radius: 24px; background: #614d203d; color: #ffdc8b; font-size: 12px; }
.pix-qr { width: min(230px, 100%); aspect-ratio: 1; object-fit: contain; justify-self: center; padding: 12px; background: #fff; border-radius: 14px; }
.pix-code-label { display: grid; gap: 7px; text-align: left; font-size: 11px; color: #bfd2e9; }
.pix-code-label textarea { width: 100%; resize: none; padding: 10px 12px; border: 1px solid #425d7f; border-radius: 10px; background: #0a1626; color: #bfd2e9; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.pix-payment small { font-size: 10px; color: #93adcc; }
.pix-payment form { display: grid; gap: 16px; }
.pix-code-label input { width: 100%; height: 46px; padding: 10px 12px; border: 1px solid #425d7f; border-radius: 10px; background: #0a1626; color: white; font-size: 16px; }
.dialog:has(.embedded-checkout) { width: min(100%, 460px); padding: 22px; }
.dialog:has(.embedded-checkout) .dialog-heading h2 { font-size: 20px; color: #f1f6ff; }
.embedded-checkout .checkout-order { padding: 14px; }
.embedded-checkout .checkout-order > strong { font-size: 21px; }
.embedded-checkout .payment-methods { margin: 16px 0; }
.embedded-checkout .checkout-back { margin-top: 4px; }
.embedded-checkout .checkout-unavailable { border: 0; padding: 8px 4px; background: none; }
.embedded-checkout .checkout-unavailable p { margin: 0; }
.dialog:has(.pricing-view) { width: min(100%, 640px); }
.pricing-intro { margin: 4px 0 16px; }
.plan-option { padding: 16px; border-radius: 14px; }
.plan-pro { box-shadow: none; background: #153455; }
.plan-price { margin-bottom: 16px; }
.plan-price strong { font-size: 28px; }
.plan-benefits { gap: 9px; margin-bottom: 18px; }
.plan-description { margin-bottom: 14px; }
.embedded-checkout .checkout-security { line-height: 1.5; text-align: center; }
@media (max-width: 360px) {
  .profile-billing { padding: 16px; }
  .profile-billing-heading h2 { font-size: 18px; }
  .profile-plan-overview > b { font-size: 20px; }
  .payment-method { padding: 12px 8px; gap: 6px; }
  .payment-method small { font-size: 9px; }
  .profile-billing-actions > .primary-button, .profile-billing-actions > .ghost-button { width: 100%; }
}
@media (max-width: 600px) {
  .plan-free { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .plan-free .plan-title h3 { font-size: 16px; }
  .plan-free .plan-price { grid-column: 2; grid-row: 1; margin: 0; align-self: center; gap: 4px; }
  .plan-free .plan-price strong { font-size: 21px; }
  .plan-free .plan-price > span { font-size: 10px; }
  .plan-free .plan-description, .plan-free .plan-footer { display: none; }
  .plan-free .plan-benefits { grid-column: 1 / -1; margin: 0; gap: 5px; }
  .plan-free .plan-benefits li { font-size: 11px; }
  .plans-grid { gap: 12px; }
}

.whatsapp-panel form { display: grid; gap: 16px; }
.whatsapp-panel .consent-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.whatsapp-panel .consent-line input { width: 20px; height: 20px; flex-shrink: 0; }
.whatsapp-panel > .text-button { margin-top: 16px; }

.auth-privacy, .account-privacy { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; color: #abc9e9; font-size: 13px; text-align: center; text-underline-offset: 3px; }

.ordinary-days { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:12px 0; }
.ordinary-days label { position:relative;display:block;cursor:pointer; }
.ordinary-days input { position:absolute;opacity:0;width:100%;height:100%; }
.ordinary-days span { display:grid;place-items:center;min-height:42px;border:1px solid #64748b;border-radius:8px; }
.ordinary-days input:checked + span { background:#bc3b79;color:#fff;border-color:#bc3b79; }
.ordinary-days input:focus-visible + span { outline:3px solid #38bdf8; }
.notice-card a,.detail-list a { color:#1689db;text-decoration:underline;overflow-wrap:anywhere; }
article.notice-card { cursor:pointer;text-align:left; }

.day.ordinary-day { background:#f5d4e4;color:#54213a; }
.day.ordinary-day.selected { outline:2px solid #bc3b79;outline-offset:-2px; }

.day-number { position:relative;display:grid;place-items:center;width:28px;height:28px;flex:none; }
.today-ring { position:absolute;inset:0;width:28px;height:28px;transform:rotate(-90deg);pointer-events:none; }
.profile-billing-compact { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 12px;margin:12px 0;border:1px solid #2d4361;border-radius:12px;background:#101f31; }
.profile-billing-compact h2 { font-size:14px;margin:0 0 4px; }
.profile-billing-compact span { font-size:12px;color:#a9bdd3; }
.billing-compact-actions { display:flex;flex-direction:column;align-items:flex-end;gap:4px; }
.billing-compact-actions button { font-size:12px;padding:4px; }

.calendar-actions { display:flex;align-items:center;gap:6px; }
.calendar-actions button { min-height:40px;padding:8px 10px;font-size:12px;white-space:nowrap; }
@media (max-width:360px) { .calendar-page > .page-title-row { gap:6px; } .calendar-actions button { padding-inline:7px;font-size:11px; } }
