:root {
    --hm-primary: #087cff;
    --hm-primary-dark: #075dcc;
    --hm-navy: #0a214d;
    --hm-teal: #13c8ae;
    --hm-green: #14b87a;
    --hm-red: #f34b5f;
    --hm-orange: #ff9f43;
    --hm-violet: #7357ed;
    --hm-cyan: #15b7cf;
    --hm-slate: #6a7d95;
    --hm-text: #10213d;
    --hm-muted: #6b7c93;
    --hm-line: #dfe8f2;
    --hm-surface: #ffffff;
    --hm-bg: #f3f8fc;
    --hm-shadow: 0 10px 28px rgba(19, 74, 129, .08);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(33, 150, 243, .12), transparent 25rem),
        radial-gradient(circle at 88% 18%, rgba(21, 200, 174, .12), transparent 25rem),
        #eaf4fb;
    color: var(--hm-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(8, 124, 255, .22); outline-offset: 2px; }

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f7fbff;
    color: var(--hm-muted);
    font-size: .9rem;
    transition: opacity .3s ease, visibility .3s ease;
}
.app-loader.loaded { opacity: 0; visibility: hidden; }
.loader-mark { width: 82px; height: 82px; overflow: hidden; border-radius: 24px; box-shadow: 0 14px 30px rgba(8, 124, 255, .18); }
.loader-mark img { width: 100%; height: 100%; object-fit: cover; }
.app-loader .spinner-border { width: 1.5rem; height: 1.5rem; border-width: .18rem; }

.app-shell {
    width: min(100%, 520px);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--hm-bg);
    box-shadow: 0 0 45px rgba(19, 63, 105, .14);
    position: relative;
    overflow-x: hidden;
}
.app-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: calc(72px + var(--safe-top));
    padding: calc(12px + var(--safe-top)) 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(213, 226, 238, .8);
    backdrop-filter: blur(18px);
}
.brand-button { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; background: transparent; color: var(--hm-text); text-align: left; }
.brand-icon { width: 40px; height: 40px; border-radius: 13px; object-fit: cover; box-shadow: 0 7px 16px rgba(8, 124, 255, .18); }
.brand-button strong { display: block; font-size: 1.03rem; letter-spacing: -.02em; }
.brand-button small { display: block; margin-top: 1px; color: var(--hm-muted); font-size: .72rem; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--hm-line); border-radius: 14px; background: #fff; color: var(--hm-navy); display: inline-grid; place-items: center; font-size: 1.12rem; transition: .2s ease; }
.icon-button:hover, .icon-button:active { color: var(--hm-primary); border-color: #b9d9fb; background: #f5faff; }
.icon-button.small { width: 34px; height: 34px; border-radius: 11px; font-size: .95rem; }
.notification-dot { position: absolute; width: 8px; height: 8px; right: 9px; top: 8px; border-radius: 50%; background: var(--hm-red); border: 2px solid #fff; }
.avatar-button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--hm-primary), var(--hm-teal)); color: #fff; font-weight: 800; font-size: .78rem; box-shadow: 0 6px 15px rgba(8, 124, 255, .22); }

.app-content { padding: 18px 16px calc(94px + var(--safe-bottom)); }
.app-page { display: none; animation: pageIn .28s ease; }
.app-page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
h1 { margin: 0; color: #0b1e3d; font-size: clamp(1.45rem, 6vw, 1.85rem); font-weight: 800; letter-spacing: -.035em; }
h2 { margin: 0; color: #10213d; font-size: 1.04rem; font-weight: 800; letter-spacing: -.02em; }
.eyebrow { margin: 0 0 3px; color: var(--hm-primary); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.welcome-row, .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.weather-pill { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #dcebf6; background: #fff; border-radius: 16px; color: var(--hm-primary); box-shadow: 0 5px 15px rgba(19, 74, 129, .05); }
.weather-pill i { font-size: 1.2rem; }
.weather-pill strong, .weather-pill small { display: block; line-height: 1.05; }
.weather-pill strong { font-size: .85rem; }
.weather-pill small { color: var(--hm-muted); font-size: .62rem; margin-top: 3px; }
.page-intro { margin: -8px 0 16px; color: var(--hm-muted); font-size: .86rem; line-height: 1.5; }

.hero-card { position: relative; overflow: hidden; min-height: 118px; margin-bottom: 22px; padding: 18px; border-radius: 23px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; background: linear-gradient(130deg, #087cff 0%, #12a4ec 55%, #13c8ae 100%); box-shadow: 0 16px 34px rgba(8, 124, 255, .22); }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.17); }
.hero-card::before { width: 180px; height: 180px; right: -70px; top: -100px; }
.hero-card::after { width: 100px; height: 100px; right: 38px; bottom: -72px; }
.hero-card > * { position: relative; z-index: 1; }
.hero-label { display: block; margin-bottom: 7px; font-size: .69rem; font-weight: 700; color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .07em; }
.hero-card strong { display: block; font-size: 1.07rem; }
.hero-card small { display: block; margin-top: 4px; color: rgba(255,255,255,.78); font-size: .7rem; }
.health-score { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(255,255,255,.17); border: 4px solid rgba(255,255,255,.72); box-shadow: inset 0 0 0 5px rgba(255,255,255,.09); }
.health-score span { font-size: 1.45rem; font-weight: 900; line-height: 1; }
.health-score small { display: inline; margin: 0; font-size: .6rem; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 2px 11px; }
.section-heading p { margin: 3px 0 0; color: var(--hm-muted); font-size: .75rem; }
.text-button, .comment-template { border: 0; background: transparent; color: var(--hm-primary); font-size: .76rem; font-weight: 700; padding: 4px 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.metric-card { min-width: 0; padding: 11px 5px 10px; border: 1px solid var(--hm-line); border-radius: 17px; background: #fff; color: var(--hm-text); text-align: center; box-shadow: 0 5px 16px rgba(19, 74, 129, .04); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.metric-card:active { transform: scale(.97); }
.metric-card.active { border-color: var(--hm-primary); box-shadow: 0 8px 22px rgba(8, 124, 255, .14), inset 0 0 0 1px var(--hm-primary); }
.metric-card > span:not(.metric-icon), .metric-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-card > span:not(.metric-icon) { margin-top: 7px; font-size: .77rem; font-weight: 800; }
.metric-card small { margin-top: 2px; color: var(--hm-muted); font-size: .61rem; }
.metric-icon { width: 38px; height: 38px; margin: 0 auto; display: grid; place-items: center; border-radius: 13px; font-size: 1rem; }
.metric-blue { color: #0b75ee; background: #e8f3ff; }.metric-red { color: var(--hm-red); background: #ffedf0; }.metric-orange { color: #f18922; background: #fff2e3; }.metric-violet { color: var(--hm-violet); background: #f0edff; }.metric-green { color: var(--hm-green); background: #e6f9f1; }.metric-cyan { color: var(--hm-cyan); background: #e7fafd; }.metric-indigo { color: #4661e9; background: #edf0ff; }.metric-teal { color: #0aaf98; background: #e4faf6; }.metric-slate { color: var(--hm-slate); background: #edf2f6; }

.content-card, .filter-card, .settings-group { padding: 15px; border: 1px solid var(--hm-line); border-radius: 19px; background: #fff; box-shadow: var(--hm-shadow); }
.content-card { margin-bottom: 16px; }
.card-title-row, .chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-kicker { display: block; margin-bottom: 2px; color: var(--hm-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.status-badge { display: inline-flex; gap: 5px; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.status-good { color: #0c9461; background: #e4f8ef; }.status-warning { color: #d47713; background: #fff2df; }.status-alert { color: #d9364a; background: #ffebee; }
.form-label { color: #30445f; font-size: .74rem; font-weight: 750; }
.form-control, .form-select { min-height: 46px; border-color: #dce6f0; border-radius: 13px; color: var(--hm-text); font-size: .86rem; background-color: #fbfdff; }
.form-control:focus, .form-select:focus { border-color: #7cbcff; box-shadow: 0 0 0 .22rem rgba(8, 124, 255, .1); background-color: #fff; }
textarea.form-control { min-height: 78px; resize: none; }
.value-entry { position: relative; }
.value-entry input { height: 64px; padding-right: 70px; font-size: 1.55rem; font-weight: 850; text-align: center; }
.value-entry .unit { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--hm-muted); font-size: .7rem; font-weight: 700; }
.range-labels { display: flex; justify-content: space-between; margin: 6px 4px 0; color: var(--hm-muted); font-size: .65rem; }
.metric-number-block + .metric-number-block { margin-top: 15px; padding-top: 13px; border-top: 1px solid #e4edf4; }
.metric-range { width: 100%; height: 18px; margin: 3px 0 -2px; border: 0; outline: 0; background: transparent; appearance: none; cursor: pointer; }
.metric-range::-webkit-slider-runnable-track { height: 7px; border-radius: 99px; background: linear-gradient(90deg, #ffb34e 0 24%, #15bd7d 24% 78%, #f05263 78%); }
.metric-range::-moz-range-track { height: 7px; border-radius: 99px; background: linear-gradient(90deg, #ffb34e 0 24%, #15bd7d 24% 78%, #f05263 78%); }
.metric-range::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -5px; border: 3px solid #fff; border-radius: 50%; background: var(--hm-primary); box-shadow: 0 2px 7px rgba(0,0,0,.25); appearance: none; }
.metric-range::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--hm-primary); box-shadow: 0 2px 7px rgba(0,0,0,.25); }
.comment-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 9px; padding: 10px; border-radius: 12px; background: #edf7ff; color: #3f6487; font-size: .67rem; line-height: 1.4; }
.comment-note i { color: var(--hm-primary); margin-top: 1px; }
.btn { border-radius: 13px; font-weight: 750; font-size: .85rem; }
.btn-primary { border-color: var(--hm-primary); background: linear-gradient(135deg, #087cff, #056be1); box-shadow: 0 7px 17px rgba(8, 124, 255, .18); }
.btn-save { min-height: 51px; }
.btn-square { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.soft-primary { min-height: 48px; border-color: transparent; color: #0769d4; background: #e7f3ff; }

.segmented-control { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: #e9f0f6; overflow: hidden; }
.segmented-control button { flex: 1; min-height: 37px; border: 0; border-radius: 10px; background: transparent; color: #58708e; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.segmented-control button.active { background: #fff; color: var(--hm-primary); box-shadow: 0 3px 10px rgba(22, 67, 107, .1); }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e6f2ff; }
.date-card { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 13px; border: 1px solid var(--hm-line); border-radius: 16px; background: #fff; }
.date-card > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--hm-primary); background: #e8f3ff; }
.date-card strong, .date-card small { display: block; }
.date-card strong { font-size: .79rem; }.date-card small { margin-top: 2px; color: var(--hm-muted); font-size: .66rem; }
.progress-ring { margin-left: auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: var(--hm-primary); font-size: .64rem; font-weight: 850; background: radial-gradient(circle at center, white 58%, transparent 60%), conic-gradient(var(--hm-primary) 50%, #dfeaf3 0); }
.medicine-timeline { position: relative; margin: 0 0 15px; }
.medicine-timeline::before { content: ""; position: absolute; top: 23px; bottom: 23px; left: 56px; width: 2px; background: #dce8f1; }
.medicine-row { position: relative; display: grid; grid-template-columns: 45px 18px 1fr auto; align-items: center; gap: 7px; min-height: 73px; padding: 8px 7px 8px 0; border-bottom: 1px solid #e8eef4; }
.medicine-row:last-child { border-bottom: 0; }
.medicine-time { font-size: .72rem; font-weight: 800; text-align: right; }
.timeline-dot { position: relative; z-index: 1; width: 13px; height: 13px; margin: auto; border: 3px solid #fff; border-radius: 50%; background: var(--hm-primary); box-shadow: 0 0 0 2px var(--hm-primary); }
.timeline-dot.success { background: var(--hm-green); box-shadow: 0 0 0 2px var(--hm-green); }.timeline-dot.warning { background: #ffad2f; box-shadow: 0 0 0 2px #ffad2f; }.timeline-dot.danger { background: var(--hm-red); box-shadow: 0 0 0 2px var(--hm-red); }.timeline-dot.muted { background: #94a8bc; box-shadow: 0 0 0 2px #94a8bc; }
.medicine-info strong, .medicine-info small { display: block; }.medicine-info strong { font-size: .79rem; }.medicine-info small { margin-top: 3px; color: var(--hm-muted); font-size: .68rem; }
.medicine-state { min-width: 74px; text-align: right; font-size: .65rem; font-weight: 800; }
.medicine-state i { display: block; margin-left: auto; margin-bottom: 4px; width: 26px; height: 26px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: .72rem; }
.medicine-state.success { color: var(--hm-green); }.medicine-state.success i { background: var(--hm-green); }.medicine-state.primary { color: var(--hm-primary); }.medicine-state.primary i { background: var(--hm-primary); }.medicine-state.warning { color: #d88316; }.medicine-state.warning i { background: #ffad2f; }.medicine-state.danger { color: var(--hm-red); }.medicine-state.danger i { background: var(--hm-red); }
.setting-toggle { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #e7edf3; }
.setting-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.setting-toggle strong, .setting-toggle small { display: block; }.setting-toggle strong { font-size: .78rem; }.setting-toggle small { margin-top: 2px; color: var(--hm-muted); font-size: .66rem; }
.form-switch .form-check-input { width: 2.7em; height: 1.45em; border-color: #adc0d2; cursor: pointer; }.form-switch .form-check-input:checked { border-color: var(--hm-teal); background-color: var(--hm-teal); }
.bg-blue-soft { color: #087cff; background: #e6f2ff; }.bg-green-soft { color: #11ad75; background: #e5f8f0; }.bg-cyan-soft { color: #0fa6bd; background: #e5f8fb; }.bg-violet-soft { color: #6e57e9; background: #eeebff; }.bg-orange-soft { color: #e88a27; background: #fff0df; }

.filter-card { margin-bottom: 14px; padding: 10px; box-shadow: 0 5px 18px rgba(19, 74, 129, .04); }
.filter-scroll { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }.filter-scroll::-webkit-scrollbar { display: none; }
.filter-scroll button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: #edf3f8; color: #48617e; font-size: .68rem; font-weight: 750; }
.filter-scroll button.active { color: #fff; background: var(--hm-primary); box-shadow: 0 5px 12px rgba(8,124,255,.2); }
.table-card { padding: 12px; overflow: hidden; }
.table-summary { display: flex; align-items: center; justify-content: space-between; margin: 0 1px 10px; color: var(--hm-muted); font-size: .7rem; }.table-summary strong { color: var(--hm-text); font-size: 1rem; }
#historyTable { font-size: .72rem; }
#historyTable thead th { color: #506783; border-color: #e5edf4; font-size: .66rem; white-space: nowrap; }
#historyTable tbody td { vertical-align: middle; border-color: #e8eef4; }
#historyTable tbody tr { transition: background .15s ease; } #historyTable tbody tr:hover { --bs-table-hover-bg: #edf7ff; }
.column-filters select { width: 104px; min-height: 33px; padding: 4px 25px 4px 7px; border: 1px solid #d7e4ef; border-radius: 9px; color: #405a76; background: #f8fbfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235a718a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center/10px; appearance: none; font-size: .62rem; }
.row-actions { display: flex; gap: 4px; min-width: 98px; }.row-actions button { width: 29px; height: 29px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; }.action-view { color: #087cff; background: #e6f2ff; }.action-edit { color: #a46b08; background: #fff3d7; }.action-delete { color: #d9364a; background: #ffe9ec; }
.type-cell { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; }.type-cell i { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; }
div.dataTables_wrapper div.dataTables_filter input, div.dataTables_wrapper div.dataTables_length select { border-radius: 9px; border-color: #dbe5ee; font-size: .7rem; }
div.dataTables_wrapper div.dataTables_filter label, div.dataTables_wrapper div.dataTables_length label, div.dataTables_wrapper div.dataTables_info { color: var(--hm-muted); font-size: .66rem; }
.pagination { --bs-pagination-font-size: .7rem; --bs-pagination-border-radius: 9px; }
.page-link { color: var(--hm-primary); }.active>.page-link, .page-link.active { border-color: var(--hm-primary); background: var(--hm-primary); }

.chart-card { padding: 15px 12px; }.chart-head { padding: 0 3px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: -3px 3px 10px; }.legend-item { display: flex; align-items: center; gap: 5px; color: var(--hm-muted); font-size: .65rem; font-weight: 700; }.legend-dot { width: 18px; height: 3px; border-radius: 3px; }
.chart-wrap { position: relative; width: 100%; min-height: 260px; }.chart-wrap canvas { width: 100%; height: 260px; display: block; }
.chart-tooltip { position: absolute; z-index: 2; min-width: 135px; padding: 9px 11px; pointer-events: none; border: 1px solid #dce8f1; border-radius: 11px; background: rgba(255,255,255,.97); box-shadow: 0 9px 25px rgba(16, 51, 86, .15); color: var(--hm-muted); font-size: .65rem; line-height: 1.5; }
.chart-tooltip strong { color: var(--hm-text); }
.average-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.average-card { padding: 13px 8px; border-radius: 16px; text-align: center; }.average-card i { display: block; margin-bottom: 7px; font-size: 1.05rem; }.average-card strong { display: block; font-size: 1.2rem; }.average-card small { display: block; margin-top: 3px; color: var(--hm-muted); font-size: .6rem; line-height: 1.25; }
.average-red { color: var(--hm-red); background: #ffebee; }.average-blue { color: var(--hm-primary); background: #e6f2ff; }.average-green { color: var(--hm-green); background: #e4f8ef; }.average-orange { color: #e88a27; background: #fff1e1; }.average-violet { color: var(--hm-violet); background: #efecff; }
.insight-card { display: flex; gap: 11px; background: linear-gradient(135deg, #f0f8ff, #f1fffb); }.insight-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #e88a27; background: #fff3db; }.insight-card strong { font-size: .77rem; }.insight-card p { margin: 3px 0 0; color: var(--hm-muted); font-size: .68rem; line-height: 1.45; }

.invite-list { display: grid; gap: 11px; margin-bottom: 15px; }
.invite-card { padding: 14px; border: 1px solid var(--hm-line); border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(19,74,129,.05); }
.invite-head { display: flex; align-items: center; gap: 10px; }.guest-avatar { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 850; font-size: .78rem; background: linear-gradient(135deg, #2d8bf1, #16c0a4); }.invite-head strong, .invite-head small { display: block; }.invite-head strong { font-size: .79rem; }.invite-head small { margin-top: 2px; color: var(--hm-muted); font-size: .64rem; }.invite-menu { margin-left: 2px; border: 0; background: transparent; color: var(--hm-muted); font-size: 1.1rem; }
.permissions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }.permission-chip { padding: 5px 7px; border-radius: 8px; color: #48617e; background: #edf3f8; font-size: .61rem; font-weight: 700; }.permission-chip i { color: var(--hm-primary); margin-right: 3px; }
.invite-expiry { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--hm-green); font-size: .63rem; font-weight: 700; }
.security-note { display: flex; gap: 11px; padding: 14px; border-radius: 18px; color: #375d7a; background: #e8f8f5; }.security-note > i { color: var(--hm-green); font-size: 1.3rem; }.security-note strong { display: block; font-size: .75rem; }.security-note p { margin: 3px 0 0; font-size: .66rem; line-height: 1.45; }

.profile-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 15px; border: 1px solid var(--hm-line); border-radius: 19px; background: #fff; box-shadow: var(--hm-shadow); }
.profile-avatar { position: relative; flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: .95rem; font-weight: 900; background: linear-gradient(135deg, #0a77f0, #13c8ae); }.online-dot { position: absolute; right: 1px; bottom: 2px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--hm-green); }
.profile-card strong, .profile-card small, .profile-card span { display: block; }.profile-card strong { font-size: .85rem; }.profile-card small { margin-top: 2px; color: var(--hm-muted); font-size: .68rem; }.profile-card span:not(.online-dot) { margin-top: 5px; color: var(--hm-primary); font-size: .61rem; font-weight: 700; }
.premium-card { width: 100%; display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 13px 15px; border: 0; border-radius: 17px; color: #735200; text-align: left; background: linear-gradient(135deg, #fff0bf, #fff8e5); }.premium-card > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #ffb22d, #ff8a1f); }.premium-card strong, .premium-card small { display: block; }.premium-card strong { font-size: .77rem; }.premium-card small { margin-top: 2px; font-size: .63rem; opacity: .78; }
.settings-group { margin-bottom: 12px; padding: 2px 14px; }.settings-group > button { width: 100%; min-height: 59px; display: flex; align-items: center; gap: 10px; padding: 9px 0; border: 0; border-bottom: 1px solid #e8eef4; background: transparent; text-align: left; }.settings-group > button:last-child { border-bottom: 0; }.settings-group strong, .settings-group small { display: block; }.settings-group strong { font-size: .75rem; }.settings-group small { margin-top: 2px; color: var(--hm-muted); font-size: .63rem; }.settings-group .bi-chevron-right, .profile-card > .bi-chevron-right, .premium-card > .bi-chevron-right { color: #8ca0b5; font-size: .75rem; }
.btn-logout { min-height: 49px; color: #dc3545; border: 1px solid #ffd5da; background: #fff0f2; }.version-label { margin: 12px 0 0; color: #8b9aae; font-size: .61rem; text-align: center; }

.bottom-nav { position: fixed; z-index: 1030; bottom: 0; left: 50%; width: min(100%, 520px); min-height: calc(70px + var(--safe-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 6px calc(7px + var(--safe-bottom)); border-top: 1px solid rgba(213,226,238,.9); background: rgba(255,255,255,.95); backdrop-filter: blur(18px); box-shadow: 0 -7px 24px rgba(19,63,105,.08); }
.bottom-nav button { min-width: 0; border: 0; background: transparent; color: #6d8096; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .59rem; font-weight: 750; }
.bottom-nav button > i { font-size: 1.15rem; }.bottom-nav button.active { color: var(--hm-primary); }.bottom-nav button span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav-main-icon { width: 35px; height: 28px; margin-top: -7px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--hm-primary), #13b6db); box-shadow: 0 6px 12px rgba(8,124,255,.22); }

.more-sheet { width: min(100%, 520px); height: auto !important; max-height: 75vh; margin: 0 auto; border: 0; border-radius: 26px 26px 0 0; }.more-sheet .offcanvas-header { padding: 20px 18px 8px; }.more-sheet .offcanvas-body { padding: 12px 18px calc(24px + var(--safe-bottom)); }.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.more-grid button { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 9px; padding: 13px; border: 1px solid var(--hm-line); border-radius: 16px; background: #fff; text-align: left; }.more-grid button > span { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }.more-grid strong { align-self: end; font-size: .74rem; }.more-grid small { align-self: start; color: var(--hm-muted); font-size: .61rem; }
.modal-content { border: 0; border-radius: 22px; box-shadow: 0 20px 60px rgba(16,51,86,.2); }.modal-header { padding: 18px 18px 10px; border: 0; }.modal-title { font-size: 1.15rem; font-weight: 850; }.modal-body { padding: 10px 18px 18px; }.modal-footer { border-color: #e5edf3; }.permission-box { display: grid; gap: 8px; padding: 12px; border-radius: 14px; color: #526983; background: #f3f7fa; font-size: .75rem; }.permission-box strong { color: var(--hm-text); }.permission-box label { display: flex; align-items: center; gap: 8px; }.permission-box input { accent-color: var(--hm-primary); }
.language-search { position: sticky; top: -10px; z-index: 1; display: flex; align-items: center; gap: 9px; margin: -4px 0 10px; padding: 8px 12px; border: 1px solid #dbe6ef; border-radius: 13px; background: #fff; }.language-search i { color: #71869b; }.language-search input { width: 100%; border: 0; outline: 0; color: var(--hm-text); }
.language-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.language-item { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 8px; border: 1px solid #e0e9f1; border-radius: 12px; background: #fff; text-align: left; }.language-item.active { border-color: var(--hm-primary); background: #edf7ff; box-shadow: inset 0 0 0 1px var(--hm-primary); }.language-code { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--hm-primary); background: #e8f3ff; font-size: .62rem; font-weight: 900; text-transform: uppercase; }.language-item strong, .language-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.language-item strong { font-size: .69rem; }.language-item small { color: var(--hm-muted); font-size: .57rem; }
.toast-container { z-index: 4000; width: min(100%, 500px); }.app-toast { border: 0; border-radius: 15px; color: #fff; background: rgba(16,33,61,.94); box-shadow: 0 12px 32px rgba(16,33,61,.22); backdrop-filter: blur(15px); }.app-toast .toast-body { display: flex; align-items: center; gap: 9px; font-size: .77rem; font-weight: 700; }.app-toast i { color: #35d39c; font-size: 1rem; }

@media (max-width: 374px) {
    .app-content { padding-inline: 11px; }
    .app-header { padding-inline: 11px; }
    .metric-grid { gap: 6px; }
    .metric-card { padding-inline: 3px; }
    .brand-button small { display: none; }
    .average-grid { gap: 5px; }
    .language-list { grid-template-columns: 1fr; }
}
@media (min-width: 700px) {
    body { padding: 22px 0; }
    .app-shell { min-height: calc(100dvh - 44px); border-radius: 30px; overflow: clip; }
    .app-header { top: 22px; }
    .bottom-nav { bottom: 22px; border-radius: 0 0 30px 30px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* HealthMeter UI 1.2 refinements */
.metric-slider,
.metric-filter-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
    cursor: grab;
}
.metric-slider { margin: 0 0 16px; padding: 2px 0 7px; }
.metric-filter-slider { padding: 2px 0 5px; }
.metric-slider::-webkit-scrollbar, .metric-filter-slider::-webkit-scrollbar { display: none; }
.metric-slider.dragging, .metric-filter-slider.dragging, .filter-scroll.dragging, .table-drag-scroll.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.metric-slider .metric-card { flex: 0 0 auto; min-width: auto; padding: 7px 11px 7px 7px; display: flex; align-items: center; gap: 7px; border-radius: 14px; scroll-snap-align: start; }
.metric-slider .metric-icon { width: 34px; height: 34px; margin: 0; border-radius: 11px; }
.metric-slider .metric-card > .metric-label { display: block; margin: 0; font-size: .7rem; }
.hide-metric-labels .metric-slider .metric-card { padding-right: 7px; }
.hide-metric-labels .metric-label { display: none !important; }
.metric-filter-slider button { flex: 0 0 auto; min-height: 39px; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid transparent; border-radius: 12px; background: #eef4f8; color: #425d79; font-size: .67rem; font-weight: 800; scroll-snap-align: start; }
.metric-filter-slider button > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; }
.metric-filter-slider button.active { border-color: #83bfff; color: #0768d3; background: #fff; box-shadow: 0 5px 14px rgba(8,124,255,.12); }
.reference-hint { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 11px; border: 1px solid #cfe7fb; border-radius: 13px; color: #315f88; background: linear-gradient(135deg, #eaf6ff, #edfbf8); font-size: .68rem; line-height: 1.42; }
.reference-hint i { color: var(--hm-primary); margin-top: 1px; }
.reference-hint strong { color: var(--hm-navy); }
.current-stamp { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 9px 11px; border-radius: 12px; color: #58708e; background: #f1f6fa; font-size: .65rem; }
.current-stamp i { color: var(--hm-primary); }.current-stamp strong { margin-left: auto; color: var(--hm-text); white-space: nowrap; }
.drag-scroll { -webkit-overflow-scrolling: touch; }
.app-page[data-page="medicines"].active { height: calc(100dvh - 210px - var(--safe-top) - var(--safe-bottom)); min-height: 520px; display: flex; flex-direction: column; }
.medicine-timeline { flex: 1 1 auto; min-height: 0; max-height: none; margin-bottom: 0; padding-bottom: 24px; overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 24px; scrollbar-color: #c6d7e5 transparent; scrollbar-width: thin; touch-action: pan-y; }
.medicine-row { cursor: pointer; }.medicine-row:hover { background: #edf7ff; }
.confirm-medicine { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #f1f8fd; }
.confirm-medicine strong, .confirm-medicine small { display: block; }.confirm-medicine small { margin-top: 3px; color: var(--hm-muted); font-size: .68rem; }
#historyTable { min-width: 610px; }
.table-drag-scroll { cursor: grab; touch-action: pan-x; }
div.dataTables_wrapper > .row:first-child { align-items: end; margin-bottom: 8px; flex-wrap: nowrap; }
div.dataTables_wrapper > .row:first-child > div { width: 50%; flex: 0 0 50%; padding-inline: 4px; }
div.dataTables_wrapper div.dataTables_filter { text-align: left; }
div.dataTables_wrapper div.dataTables_filter label,
div.dataTables_wrapper div.dataTables_length label { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
div.dataTables_wrapper div.dataTables_filter input { width: 100%; margin: 0; }
div.dataTables_wrapper div.dataTables_length select { width: 100%; margin: 0; }
div.dataTables_wrapper div.dataTables_filter input, div.dataTables_wrapper div.dataTables_length select { min-height: 36px; }
div.dataTables_wrapper div.dataTables_filter label, div.dataTables_wrapper div.dataTables_length label, div.dataTables_wrapper div.dataTables_info { font-size: .62rem; white-space: nowrap; }
.chart-controls { display: flex; align-items: center; gap: 8px; }
.chart-head-actions { display: flex; align-items: center; gap: 9px; }
.comment-switch { margin: 0; }.comment-switch .form-check-input { margin: 0; width: 2.35em; height: 1.25em; }
.invite-card.invite-disabled { opacity: .68; background: #f4f6f8; }
.invite-actions .dropdown-menu { min-width: 205px; padding: 6px; border: 1px solid var(--hm-line); border-radius: 13px; box-shadow: 0 12px 30px rgba(16,51,86,.15); }
.invite-actions .dropdown-item { padding: 9px 10px; border-radius: 9px; font-size: .72rem; }.invite-actions .dropdown-item i { width: 20px; color: var(--hm-primary); }
.stats-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 13px; }.stats-summary > div { padding: 12px; border-radius: 14px; text-align: center; background: #edf7ff; }.stats-summary strong, .stats-summary small { display: block; }.stats-summary strong { color: var(--hm-primary); font-size: 1rem; }.stats-summary small { margin-top: 3px; color: var(--hm-muted); font-size: .62rem; }
.invite-contact-list { display: grid; gap: 8px; margin: -4px 0 14px; }.invite-contact-card { width: 100%; display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #dce8f1; border-radius: 13px; color: #405a76; background: #f8fbfd; text-align: left; }.invite-contact-card strong { color: var(--hm-text); font-size: .73rem; }.invite-contact-card small { font-size: .62rem; line-height: 1.35; }
.contact-permission-level { display: grid; grid-template-columns: 1fr; gap: 7px; margin: -2px 0 3px 24px; padding: 9px 10px; border-left: 2px solid #b8d8f8; border-radius: 0 10px 10px 0; background: #fff; }.contact-permission-level.is-disabled { opacity: .48; }
#inviteStatsTable { min-width: 540px; font-size: .68rem; } #inviteStatsTable thead th { white-space: nowrap; color: #506783; font-size: .62rem; } #inviteStatsTable tbody tr:hover { --bs-table-hover-bg: #edf7ff; }
.access-log { display: grid; gap: 8px; }.access-log-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid #e1eaf2; border-radius: 13px; }.access-log-item > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--hm-primary); background: #e8f3ff; }.access-log-item strong, .access-log-item small { display: block; }.access-log-item strong { font-size: .7rem; }.access-log-item small { margin-top: 2px; color: var(--hm-muted); font-size: .6rem; }.access-ip { color: #506983; font-size: .59rem; font-weight: 700; }
.forever-check { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 1px solid #dce6f0; border-radius: 13px; color: #405a76; background: #fbfdff; font-size: .72rem; font-weight: 750; }.forever-check input { accent-color: var(--hm-primary); }
.reference-settings { margin-top: 14px; padding: 12px; border-radius: 15px; background: #f3f8fc; }.reference-settings > strong { font-size: .75rem; }
.settings-help { margin: 4px 0 7px; color: var(--hm-muted); font-size: .62rem; }.target-row { display: grid; grid-template-columns: 1fr 88px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #dfe9f1; }.target-row:last-child { border-bottom: 0; }.target-row label strong,.target-row label small { display: block; }.target-row label strong { font-size: .71rem; }.target-row label small { margin-top: 2px; color: var(--hm-muted); font-size: .59rem; }.target-row .form-control { min-height: 40px; text-align: center; }
.address-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.address-list { display: grid; gap: 8px; margin-top: 8px; }.address-row { display: grid; grid-template-columns: 92px 1fr 36px; gap: 6px; }.address-row .form-control { min-width: 0; }.address-remove { border: 1px solid #ffd6dc; border-radius: 10px; color: #dc3545; background: #fff1f3; }
.choice-card { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 12px; border: 1px solid var(--hm-line); border-radius: 13px; cursor: pointer; }.choice-card input { accent-color: var(--hm-primary); }.choice-card strong, .choice-card small { display: block; }.choice-card strong { font-size: .75rem; }.choice-card small { margin-top: 2px; color: var(--hm-muted); font-size: .63rem; }
.prototype-boundary { margin: 10px 0 0; color: var(--hm-muted); font-size: .65rem; text-align: center; }
.feedback-counter { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--hm-muted); font-size: .62rem; }
.planner-types { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }.planner-types::-webkit-scrollbar { display: none; }.planner-types button { flex: 0 0 auto; min-width: 74px; padding: 10px 7px; border: 1px solid var(--hm-line); border-radius: 13px; color: #49627f; background: #f6f9fc; font-size: .64rem; font-weight: 750; }.planner-types button i, .planner-types button span { display: block; }.planner-types button i { margin-bottom: 5px; color: var(--hm-primary); font-size: .95rem; }.planner-types button.active { color: #0768d3; border-color: #69adf5; background: #eaf5ff; }
.planner-existing { padding: 12px; border-radius: 15px; background: #f3f8fc; }.plan-list { display: grid; gap: 8px; margin-top: 9px; }.plan-card { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid #dde8f1; border-radius: 12px; background: #fff; }.plan-card.plan-disabled { opacity: .58; }.plan-card > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--hm-primary); background: #e8f3ff; }.plan-card strong,.plan-card small { display: block; }.plan-card strong { font-size: .69rem; }.plan-card small { margin-top: 2px; color: var(--hm-muted); font-size: .58rem; }.plan-actions { display: flex; gap: 3px; }.plan-actions button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #55708d; background: #eef4f8; }.plan-actions .plan-delete { color: #d9364a; background: #ffecef; }
.plan-filter-slider { display: flex; gap: 7px; margin-bottom: 15px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }.plan-filter-slider::-webkit-scrollbar { display: none; }.plan-filter-slider button { flex: 0 0 auto; min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dce7f0; border-radius: 12px; color: #49627f; background: #f4f8fb; font-size: .66rem; font-weight: 800; }.plan-filter-slider button i { color: var(--hm-primary); }.plan-filter-slider button.active { color: #0768d3; border-color: #69adf5; background: #eaf5ff; box-shadow: inset 0 0 0 1px #69adf5; }
.plan-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }.plan-list-head strong,.plan-list-head small { display: block; }.plan-list-head strong { font-size: .85rem; }.plan-list-head small { margin-top: 2px; color: var(--hm-muted); font-size: .62rem; }.plan-list-head .btn { min-height: 38px; }
#plannerModal .modal-body { min-height: 360px; }.plan-empty { padding: 30px 15px; border: 1px dashed #cdddea; border-radius: 14px; color: var(--hm-muted); text-align: center; font-size: .7rem; }
#exportMetrics { grid-template-columns: 1fr 1fr; } #exportMetrics > strong, #exportMetrics > label:first-of-type { grid-column: 1 / -1; }
.calendar-connect { padding: 12px; border-radius: 14px; background: #f3f7fa; }.calendar-connect > strong { display: block; margin-bottom: 8px; font-size: .72rem; }.calendar-connect > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.calendar-connect button { min-height: 40px; border: 1px solid #d9e4ed; border-radius: 11px; background: #fff; color: #354e69; font-size: .7rem; font-weight: 750; }
.premium-summary { padding: 18px; border-radius: 17px; text-align: center; color: #8a5b00; background: linear-gradient(135deg,#fff0bd,#fff8e7); }.premium-summary i,.premium-summary strong,.premium-summary small { display: block; }.premium-summary i { margin-bottom: 8px; font-size: 1.5rem; }.premium-summary small { margin-top: 3px; font-size: .68rem; }.feature-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; color: #425b76; font-size: .7rem; }.feature-list i { color: var(--hm-green); margin-right: 5px; }
.app-info-box { display: grid; gap: 4px; margin-top: 14px; padding: 12px; border-radius: 14px; color: #58708a; background: #f1f6fa; font-size: .65rem; }.app-info-box strong { color: var(--hm-text); }
.profile-card { color: inherit; }

/* HealthMeter UI 1.5 personalization */
.medicines-settings-button { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #cfe3f5; border-radius: 13px; color: #076bd8; background: #fff; font-size: .69rem; font-weight: 800; box-shadow: 0 5px 16px rgba(25,78,126,.07); }
.medicines-settings-button:hover, .medicines-settings-button:focus-visible { color: #005fc4; border-color: #78b9f5; background: #eef7ff; }
.personalization-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 14px; background: #edf3f7; }
.personalization-theme-setting { margin-bottom: 13px; padding: 0 1px 13px; }
.personalization-tabs .nav-item { min-width: 0; }
.personalization-tabs .nav-link { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 0; border-radius: 11px; color: #4d6782; font-size: .72rem; font-weight: 800; }
.personalization-tabs .nav-link.active { color: var(--hm-primary); background: #fff; box-shadow: 0 4px 13px rgba(20,71,116,.09); }
.personalization-content { margin-top: 13px; }
.personalization-label-setting { padding-top: 0; }
.personalization-section-head { padding: 13px 1px 7px; }
.personalization-section-head strong, .personalization-section-head small { display: block; }
.personalization-section-head strong { color: var(--hm-text); font-size: .75rem; }
.personalization-section-head small { margin-top: 3px; color: var(--hm-muted); font-size: .62rem; line-height: 1.4; }
.personalization-list { display: grid; gap: 7px; }
.personalization-option { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e0eaf2; border-radius: 13px; background: #f9fbfd; cursor: pointer; }
.personalization-option:hover { border-color: #bcd9f1; background: #f2f8fd; }
.personalization-option-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; }
.personalization-option > span:nth-child(2) { min-width: 0; }
.personalization-option strong, .personalization-option small { display: block; }
.personalization-option strong { color: var(--hm-text); font-size: .72rem; }
.personalization-option small { margin-top: 2px; color: var(--hm-muted); font-size: .59rem; }
.period-option-icon { color: #087cff; background: #e8f3ff; }
.personalization-option .form-switch { flex: 0 0 auto; padding-left: 2.5em; }
.personalization-option .form-check-input { margin-top: 0; }

@media (max-width: 360px) {
    .medicines-settings-button span { display: none; }
    .medicines-settings-button { width: 42px; justify-content: center; padding-inline: 0; }
}

/* HealthMeter UI 1.6 passwordless access and devices */
.auth-shell { width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; padding: calc(20px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)); position: relative; overflow: hidden; background: linear-gradient(180deg,#f8fcff 0,#eef7fd 52%,#f8fbfd 100%); box-shadow: 0 0 45px rgba(19,63,105,.14); }
.auth-shell[hidden], .app-shell[hidden] { display: none !important; }
.auth-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.auth-brand img { width: 48px; height: 48px; border-radius: 15px; box-shadow: 0 8px 20px rgba(8,124,255,.2); }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { color: var(--hm-navy); font-size: 1rem; }
.auth-brand small { margin-top: 2px; color: var(--hm-muted); font-size: .63rem; }
.auth-language-button { min-height: 38px; margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #dce8f1; border-radius: 12px; color: #35536f; background: rgba(255,255,255,.9); box-shadow: 0 5px 16px rgba(20,65,108,.07); font-size: .63rem; font-weight: 800; }
.auth-language-button .bi-globe2 { color: var(--hm-primary); font-size: .85rem; }.auth-language-button .bi-chevron-down { color: #8ca0b5; font-size: .56rem; }
.auth-hero { min-height: 225px; margin: 18px 0 -44px; padding: 30px 23px 72px; position: relative; overflow: hidden; border-radius: 28px; color: #fff; background: linear-gradient(135deg,#087cff 0%,#08a5e6 50%,#13c8ae 100%); box-shadow: 0 18px 42px rgba(8,124,255,.22); }
.auth-hero::after { content:""; width: 180px; height: 180px; position: absolute; right: -72px; bottom: -85px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.auth-hero strong, .auth-hero small { display: block; position: relative; z-index: 2; }
.auth-hero strong { margin-top: 22px; font-size: 1.45rem; line-height: 1.12; letter-spacing: -.025em; }
.auth-hero small { margin-top: 8px; color: rgba(255,255,255,.83); font-size: .7rem; }
.auth-pulse { width: 52px; height: 52px; display: grid; place-items: center; position: relative; z-index: 2; border: 1px solid rgba(255,255,255,.45); border-radius: 17px; background: rgba(255,255,255,.17); backdrop-filter: blur(8px); font-size: 1.3rem; }
.auth-orbit { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }.orbit-one { width: 150px; height: 150px; right: -24px; top: -50px; }.orbit-two { width: 95px; height: 95px; right: 45px; top: 20px; }
.auth-card { position: relative; z-index: 3; padding: 20px; border: 1px solid rgba(215,230,241,.9); border-radius: 23px; background: rgba(255,255,255,.97); box-shadow: 0 18px 45px rgba(20,65,108,.14); }
.auth-card h1 { margin: 0 0 7px; color: var(--hm-navy); font-size: 1.55rem; font-weight: 900; letter-spacing: -.035em; }
.auth-lead { margin: 0 0 16px; color: var(--hm-muted); font-size: .72rem; line-height: 1.52; }
.auth-lead strong { color: #35536f; }
.auth-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 14px; background: #eaf1f6; }
.auth-methods button { min-height: 40px; border: 0; border-radius: 10px; color: #58708e; background: transparent; font-size: .7rem; font-weight: 800; }
.auth-methods button.active { color: var(--hm-primary); background: #fff; box-shadow: 0 3px 11px rgba(22,67,107,.1); }
.auth-input-wrap { position: relative; }.auth-input-wrap > i { position: absolute; z-index: 2; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hm-primary); }.auth-input-wrap .form-control { min-height: 52px; padding-left: 42px; border-radius: 14px; }
.auth-primary { min-height: 50px; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; font-size: .77rem; font-weight: 800; }
.auth-legal { margin: 14px 4px 0; color: #8192a5; font-size: .57rem; line-height: 1.45; text-align: center; }
.auth-back, .auth-resend { border: 0; color: var(--hm-primary); background: transparent; font-size: .67rem; font-weight: 800; }.auth-back { margin: -5px 0 17px; padding: 5px 0; }.auth-resend { width: 100%; margin-top: 12px; padding: 8px; }
.auth-code-icon { width: 50px; height: 50px; margin-bottom: 13px; display: grid; place-items: center; border-radius: 16px; color: #0ca383; background: #e4f8f3; font-size: 1.25rem; }
.auth-code-input { min-height: 58px; border-radius: 14px; text-align: center; letter-spacing: .48em; font-size: 1.3rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.auth-demo-note { display: flex; gap: 8px; margin-top: 11px; padding: 10px; border-radius: 12px; color: #526e86; background: #edf6fd; font-size: .61rem; line-height: 1.42; }.auth-demo-note i { color: var(--hm-primary); }.auth-demo-note strong { color: var(--hm-navy); }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 17px; color: #698096; font-size: .61rem; }.auth-security i { color: var(--hm-green); }
.device-list { display: grid; gap: 8px; }.device-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #dfe9f1; border-radius: 14px; background: #f9fbfd; }.device-card.current { border-color: #a9d4fa; background: #eff8ff; }.device-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--hm-primary); background: #e4f1ff; font-size: 1.05rem; }.device-card strong, .device-card small { display: block; }.device-card strong { font-size: .73rem; }.device-card small { margin-top: 2px; color: var(--hm-muted); font-size: .59rem; line-height: 1.35; }.current-device-badge { margin-left: 5px; padding: 2px 5px; border-radius: 6px; color: #0a8e71; background: #dff7f0; font-size: .5rem; vertical-align: 1px; }.device-remove { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; color: #d9364a; background: #ffecef; }.btn-danger-soft { min-height: 46px; border: 1px solid #ffd0d7; border-radius: 13px; color: #d9364a; background: #fff0f2; font-size: .72rem; font-weight: 800; }

/* HealthMeter UI 1.7 subscription and demo access */
.demo-mode-banner { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 10px 12px; border: 1px solid #ffd98b; border-radius: 15px; color: #725000; background: linear-gradient(135deg,#fff5d9,#fffaf0); box-shadow: 0 8px 22px rgba(114,80,0,.08); }
.demo-mode-banner[hidden] { display: none !important; }
.demo-mode-banner > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #fff; background: #f2a51a; }
.demo-mode-banner div { min-width: 0; flex: 1; }.demo-mode-banner strong,.demo-mode-banner small { display: block; }.demo-mode-banner strong { font-size: .74rem; }.demo-mode-banner small { margin-top: 2px; color: #8c6d2d; font-size: .59rem; line-height: 1.35; }
.demo-mode-banner button { flex: 0 0 auto; padding: 7px 9px; border: 0; border-radius: 9px; color: #fff; background: #087cff; font-size: .62rem; font-weight: 700; }
.subscription-state,.store-expiry-note,.payment-account-summary,.server-contract-note { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 16px; }
.subscription-state { color: #784e00; background: #fff2cc; }.subscription-state.active { color: #007c5d; background: #e4f8f1; }
.subscription-state > span,.payment-account-summary > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; background: #f2a51a; font-size: 1.15rem; }.subscription-state.active > span { background: #12b886; }
.subscription-state strong,.subscription-state small,.store-expiry-note strong,.store-expiry-note small,.payment-account-summary strong,.payment-account-summary small,.server-contract-note strong,.server-contract-note small { display: block; }
.subscription-state small,.store-expiry-note small,.payment-account-summary small,.server-contract-note small { margin-top: 3px; color: #6d7f96; font-size: .65rem; line-height: 1.4; }
.store-expiry-note { align-items: flex-start; margin-top: 12px; color: #9f3043; background: #fff0f2; }.store-expiry-note > i { margin-top: 1px; color: #f0445c; font-size: 1.1rem; }
.subscription-section-title { margin: 20px 0 10px; font-size: .78rem; }
.stripe-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stripe-plan { position: relative; min-width: 0; padding: 15px 11px; border: 1px solid #dce7f1; border-radius: 16px; text-align: left; color: var(--hm-text); background: #fff; }.stripe-plan.active { border-color: #087cff; background: #edf6ff; box-shadow: inset 0 0 0 1px #087cff; }
.stripe-plan span,.stripe-plan strong,.stripe-plan small { display: block; }.stripe-plan span { font-size: .67rem; font-weight: 700; }.stripe-plan strong { margin-top: 6px; color: #087cff; font-size: 1.65rem; line-height: 1; }.stripe-plan small { margin-top: 5px; color: #6d7f96; font-size: .58rem; }
.stripe-plan > i { display: none; position: absolute; top: 10px; right: 10px; color: #087cff; }.stripe-plan.active > i { display: block; }.stripe-plan em { position: absolute; top: -7px; right: 8px; padding: 3px 6px; border-radius: 8px; color: #fff; background: #12b886; font-size: .52rem; font-style: normal; font-weight: 700; }
.stripe-checkout { min-height: 48px; font-weight: 700; }.payment-account-summary { margin-bottom: 15px; background: #edf6ff; }.payment-account-summary > span { background: #087cff; }.payment-account-summary > div { min-width: 0; flex: 1; }
.payment-table-wrap { padding-bottom: 3px; }.payment-status { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 9px; white-space: nowrap; font-size: .6rem; font-weight: 700; }.payment-status.paid { color: #008765; background: #e4f8f1; }.payment-status.failed { color: #d9344c; background: #fff0f2; }
.payment-receipt { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #087cff; background: #eaf5ff; }.server-contract-note { align-items: flex-start; margin-top: 13px; color: #08745a; background: #e7f8f3; }.server-contract-note > i { margin-top: 2px; color: #12b886; font-size: 1.05rem; }
.demo-write-flash { animation: demoFlash .7s ease; } @keyframes demoFlash { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(242,165,26,.25); } }

@media (min-width: 700px) { .auth-shell { min-height: calc(100dvh - 44px); border-radius: 30px; } }
@media (max-width: 370px) { .auth-shell { padding-inline: 13px; }.auth-card { padding: 17px 15px; }.auth-hero { padding-inline: 19px; }.auth-hero strong { font-size: 1.3rem; }.auth-language-button { padding-inline: 8px; }.auth-language-button span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.demo-mode-banner button { padding-inline: 7px; }.stripe-plans { grid-template-columns: 1fr; } }

/* HealthMeter UI 1.8 dark application theme. Guest view and e-mail templates use separate assets. */
html[data-theme="dark"] {
    color-scheme: dark;
    --hm-navy: #edf6ff;
    --hm-text: #e7eff8;
    --hm-muted: #9eb2c6;
    --hm-line: #294056;
    --hm-surface: #132235;
    --hm-bg: #0b1725;
    --hm-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    --bs-body-color: #e7eff8;
    --bs-body-bg: #0b1725;
    --bs-secondary-color: #9eb2c6;
    --bs-border-color: #294056;
}
html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 12% 8%, rgba(8, 124, 255, .14), transparent 25rem),
        radial-gradient(circle at 88% 18%, rgba(19, 200, 174, .1), transparent 25rem),
        #06101b;
    color: var(--hm-text);
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] .brand-button,
html[data-theme="dark"] .modal-title { color: var(--hm-text); }
html[data-theme="dark"] .app-loader { color: var(--hm-muted); background: #081522; }
html[data-theme="dark"] .app-shell { background: var(--hm-bg); box-shadow: 0 0 45px rgba(0, 0, 0, .38); }
html[data-theme="dark"] .app-header { border-bottom-color: rgba(49, 71, 93, .92); background: rgba(13, 27, 42, .94); }
html[data-theme="dark"] .bottom-nav { border-top-color: rgba(49, 71, 93, .92); background: rgba(13, 27, 42, .96); box-shadow: 0 -7px 24px rgba(0, 0, 0, .24); }
html[data-theme="dark"] .bottom-nav button { color: #91a7bc; }
html[data-theme="dark"] .bottom-nav button.active { color: #4da6ff; }
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .weather-pill,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .filter-card,
html[data-theme="dark"] .settings-group,
html[data-theme="dark"] .date-card,
html[data-theme="dark"] .invite-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .more-grid button,
html[data-theme="dark"] .language-search,
html[data-theme="dark"] .language-item,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .stripe-plan,
html[data-theme="dark"] .calendar-connect button,
html[data-theme="dark"] .medicines-settings-button,
html[data-theme="dark"] .contact-permission-level { color: var(--hm-text); border-color: var(--hm-line); background: var(--hm-surface); }
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .icon-button:active,
html[data-theme="dark"] .medicines-settings-button:hover,
html[data-theme="dark"] .medicines-settings-button:focus-visible { color: #67b5ff; border-color: #376891; background: #172c42; }
html[data-theme="dark"] .notification-dot { border-color: #0d1b2a; }
html[data-theme="dark"] .online-dot,
html[data-theme="dark"] .timeline-dot { border-color: var(--hm-surface); }
html[data-theme="dark"] .form-label { color: #c4d2df; }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .column-filters select,
html[data-theme="dark"] div.dataTables_wrapper div.dataTables_filter input,
html[data-theme="dark"] div.dataTables_wrapper div.dataTables_length select,
html[data-theme="dark"] .forever-check {
    color: var(--hm-text);
    border-color: #30485f;
    background-color: #0e1c2c;
}
html[data-theme="dark"] .form-control::placeholder { color: #768da3; opacity: 1; }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus { color: #f4f8fc; border-color: #4d98dc; background-color: #11243a; box-shadow: 0 0 0 .22rem rgba(60, 157, 243, .16); }
html[data-theme="dark"] .language-search input { color: var(--hm-text); background: transparent; }
html[data-theme="dark"] .btn-light { color: #dfeaf5; border-color: #30485f; background: #1a2d40; }
html[data-theme="dark"] .btn-light:hover { color: #fff; background: #21384e; }
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(190%); }
html[data-theme="dark"] .modal-footer { border-color: var(--hm-line); }
html[data-theme="dark"] .dropdown-item { color: #d7e4ef; }
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus { color: #fff; background: #1d344a; }
html[data-theme="dark"] .segmented-control,
html[data-theme="dark"] .personalization-tabs,
html[data-theme="dark"] .auth-methods { background: #101f30; }
html[data-theme="dark"] .segmented-control button,
html[data-theme="dark"] .personalization-tabs .nav-link,
html[data-theme="dark"] .auth-methods button { color: #9eb4c9; }
html[data-theme="dark"] .segmented-control button.active,
html[data-theme="dark"] .personalization-tabs .nav-link.active,
html[data-theme="dark"] .auth-methods button.active { color: #5aafff; background: #1a3046; box-shadow: 0 4px 13px rgba(0, 0, 0, .22); }
html[data-theme="dark"] .metric-filter-slider button,
html[data-theme="dark"] .filter-scroll button,
html[data-theme="dark"] .planner-types button,
html[data-theme="dark"] .plan-filter-slider button { color: #a9bdd0; border-color: #263d52; background: #122236; }
html[data-theme="dark"] .metric-filter-slider button.active,
html[data-theme="dark"] .planner-types button.active,
html[data-theme="dark"] .plan-filter-slider button.active { color: #70baff; border-color: #4387c5; background: #18324b; box-shadow: inset 0 0 0 1px #4387c5; }
html[data-theme="dark"] .filter-scroll button.active { color: #fff; border-color: var(--hm-primary); background: var(--hm-primary); }
html[data-theme="dark"] .metric-card.active { border-color: #419cff; background: #172c42; box-shadow: 0 8px 22px rgba(0, 97, 201, .2), inset 0 0 0 1px #419cff; }
html[data-theme="dark"] .metric-blue { color: #5bb0ff; background: #17314a; }
html[data-theme="dark"] .metric-red { color: #ff7181; background: #3a202b; }
html[data-theme="dark"] .metric-orange { color: #ffb669; background: #392b1d; }
html[data-theme="dark"] .metric-violet { color: #aa96ff; background: #2a2545; }
html[data-theme="dark"] .metric-green { color: #55d7a4; background: #17392f; }
html[data-theme="dark"] .metric-cyan { color: #4fd6e8; background: #173640; }
html[data-theme="dark"] .metric-indigo { color: #8d9dff; background: #222b4a; }
html[data-theme="dark"] .metric-teal { color: #48d7c2; background: #153b37; }
html[data-theme="dark"] .metric-slate { color: #b0c1d2; background: #263442; }
html[data-theme="dark"] .reference-hint,
html[data-theme="dark"] .comment-note,
html[data-theme="dark"] .current-stamp,
html[data-theme="dark"] .confirm-medicine,
html[data-theme="dark"] .permission-box,
html[data-theme="dark"] .reference-settings,
html[data-theme="dark"] .planner-existing,
html[data-theme="dark"] .calendar-connect,
html[data-theme="dark"] .app-info-box { color: #a9bfd2; border-color: #2b5068; background: #102638; }
html[data-theme="dark"] .reference-hint strong,
html[data-theme="dark"] .permission-box strong,
html[data-theme="dark"] .app-info-box strong { color: #edf6ff; }
html[data-theme="dark"] .personalization-theme-setting,
html[data-theme="dark"] .personalization-label-setting,
html[data-theme="dark"] .setting-toggle,
html[data-theme="dark"] .target-row,
html[data-theme="dark"] .settings-group > button,
html[data-theme="dark"] .medicine-row { border-color: var(--hm-line); }
html[data-theme="dark"] .personalization-option { color: var(--hm-text); border-color: #2a4157; background: #102033; }
html[data-theme="dark"] .personalization-option:hover { border-color: #3f6f98; background: #152b40; }
html[data-theme="dark"] .form-switch .form-check-input:not(:checked) { border-color: #526c83; background-color: #263b4f; }
html[data-theme="dark"] .medicine-timeline::before { background: #294056; }
html[data-theme="dark"] .medicine-row:hover { background: #10283d; }
html[data-theme="dark"] .chart-tooltip { color: #aec0d1; border-color: #38536c; background: rgba(15, 30, 46, .98); box-shadow: 0 9px 25px rgba(0, 0, 0, .32); }
html[data-theme="dark"] .average-red { color: #ff7181; background: #3a202b; }
html[data-theme="dark"] .average-blue { color: #5aafff; background: #17314a; }
html[data-theme="dark"] .average-green { color: #4bd39e; background: #17382f; }
html[data-theme="dark"] .average-orange { color: #ffb669; background: #392b1d; }
html[data-theme="dark"] .average-violet { color: #aa96ff; background: #2a2545; }
html[data-theme="dark"] .insight-card { background: linear-gradient(135deg, #122b43, #12342f); }
html[data-theme="dark"] .permission-chip,
html[data-theme="dark"] .stats-summary > div { color: #b8c9d9; background: #172c40; }
html[data-theme="dark"] .security-note { color: #afd2ca; background: #12362f; }
html[data-theme="dark"] .invite-card.invite-disabled { background: #101b28; }
html[data-theme="dark"] .invite-contact-card,
html[data-theme="dark"] .device-card,
html[data-theme="dark"] .access-log-item,
html[data-theme="dark"] .choice-card { color: #b7c8d8; border-color: var(--hm-line); background: #101f30; }
html[data-theme="dark"] .device-card.current { border-color: #3d7cad; background: #142c42; }
html[data-theme="dark"] .table { --bs-table-color: #dfe9f3; --bs-table-bg: transparent; --bs-table-border-color: #294056; --bs-table-hover-color: #fff; --bs-table-hover-bg: #142b40; }
html[data-theme="dark"] #historyTable thead th,
html[data-theme="dark"] #inviteStatsTable thead th { color: #a9bdd0; border-color: var(--hm-line); }
html[data-theme="dark"] #historyTable tbody td { border-color: var(--hm-line); }
html[data-theme="dark"] .page-link { color: #64b4ff; border-color: #30475e; background: #132438; }
html[data-theme="dark"] .page-link:hover { color: #fff; background: #1b334a; }
html[data-theme="dark"] .active > .page-link,
html[data-theme="dark"] .page-link.active { color: #fff; border-color: var(--hm-primary); background: var(--hm-primary); }
html[data-theme="dark"] div.dataTables_wrapper .dataTables_processing { color: var(--hm-text); border-color: var(--hm-line); background: rgba(19, 34, 53, .96); }
html[data-theme="dark"] .plan-actions button { color: #a9bed1; background: #213448; }
html[data-theme="dark"] .plan-actions .plan-delete,
html[data-theme="dark"] .address-remove,
html[data-theme="dark"] .device-remove,
html[data-theme="dark"] .btn-danger-soft,
html[data-theme="dark"] .btn-logout { color: #ff7888; border-color: #613141; background: #3a202a; }
html[data-theme="dark"] .premium-card,
html[data-theme="dark"] .premium-summary { color: #f2cd78; background: linear-gradient(135deg, #3a2d18, #2b261c); }
html[data-theme="dark"] .feature-list { color: #c1cfdb; }
html[data-theme="dark"] .demo-mode-banner { color: #f0cf83; border-color: #725a27; background: linear-gradient(135deg, #392d18, #27231c); }
html[data-theme="dark"] .demo-mode-banner small { color: #d3b978; }
html[data-theme="dark"] .subscription-state { color: #f0c875; background: #382d1c; }
html[data-theme="dark"] .subscription-state.active { color: #65dcba; background: #16372f; }
html[data-theme="dark"] .store-expiry-note { color: #ff91a0; background: #3a202a; }
html[data-theme="dark"] .payment-account-summary,
html[data-theme="dark"] .server-contract-note { color: #8fe4cf; background: #14362f; }
html[data-theme="dark"] .stripe-plan.active { border-color: #3f9cff; background: #17324a; }
html[data-theme="dark"] .auth-shell { background: linear-gradient(180deg, #081522 0, #0b1a29 52%, #091522 100%); box-shadow: 0 0 45px rgba(0, 0, 0, .42); }
html[data-theme="dark"] .auth-card { color: var(--hm-text); border-color: #294056; background: rgba(18, 33, 51, .98); box-shadow: 0 18px 45px rgba(0, 0, 0, .32); }
html[data-theme="dark"] .auth-card h1,
html[data-theme="dark"] .auth-lead strong,
html[data-theme="dark"] .auth-demo-note strong { color: #edf6ff; }
html[data-theme="dark"] .auth-demo-note { color: #aec1d2; background: #10283d; }
html[data-theme="dark"] .auth-legal { color: #92a8bc; }
html[data-theme="dark"] .auth-security { color: #9db2c5; }
html[data-theme="dark"] .auth-code-icon { color: #65dbba; background: #173a31; }
html[data-theme="dark"] .feeling-scale button { color: var(--hm-text); border-color: var(--hm-line); background: #102033; }
html[data-theme="dark"] .feeling-scale button.active { border-color: #419cff; background: #17324a; }
.future-setting{opacity:.68}.future-setting .form-check-input{cursor:not-allowed}.future-label{display:block;margin-top:2px;color:var(--hm-primary);font-size:.67rem;font-style:normal;font-weight:700;letter-spacing:.01em}
