html, body, #app {
    height: 100%;
}

html, body {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #eef4fb;
}

body {
    margin: 0;
    overflow: hidden;
}

h1:focus {
    outline: none;
}

button, input, select, textarea {
    font: inherit;
}

.app-viewport {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.app-shell {
    position: relative;
    width: min(100%, 1200px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: clamp(12px, 2.5vw, 28px);
    box-sizing: border-box;
    overflow: hidden;
}

.app-content {
    position: relative;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 4px 0 12px;
}

.app-content--auth {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: clamp(14px, 3vw, 34px) 0 28px;
}

.app-content::-webkit-scrollbar {
    display: none;
}

.screen-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-page,
.auth-page {
    padding-top: 2px;
}

.patients-page {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding-bottom: 46px;
}

.patients-page .panel-card--tight {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    margin-bottom: 0;
}

.patients-page .patient-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 4px;
}

.patients-page .patient-list::-webkit-scrollbar {
    width: 8px;
}

.patients-page .patient-list::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.28);
    border-radius: 999px;
}

.patients-page .section-heading__sub {
    min-width: 0;
    text-align: right;
}

.patients-page .patient-card {
    width: 100%;
    border: 0;
    text-align: left;
    background: #fff;
}

.patients-page .patient-card--selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14) inset;
}

.patients-page .patient-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.patients-page .patient-card__info-button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
}

.patient-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    z-index: 30;
    overflow: hidden;
}

.patient-modal-overlay.is-visible {
    display: flex;
}

.patient-modal {
    width: min(100%, 420px);
    max-height: min(86vh, 760px);
    overflow: hidden;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.75) transparent;
}

.patient-modal::-webkit-scrollbar {
    width: 8px;
}

.patient-modal::-webkit-scrollbar-track {
    background: transparent;
}

.patient-modal::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.75);
    border-radius: 999px;
}

.patient-modal__handle {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 0 auto 10px;
    flex: 0 0 auto;
}

.patient-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.patient-modal__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
    font-weight: 900;
    flex: 0 0 auto;
}

.patient-modal__title-block {
    flex: 1;
    min-width: 0;
}

.patient-modal__name {
    font-size: 18px;
    font-weight: 900;
    color: #1e293b;
}

.patient-modal__sub {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.patient-modal__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f8fafc;
    color: #475569;
    font-size: 20px;
    line-height: 1;
}

.patient-modal__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 8px;
}

.patient-modal__body::-webkit-scrollbar {
    width: 8px;
}

.patient-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.patient-modal__body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.75);
    border-radius: 999px;
}

.patient-modal__section-label {
    font-size: 12px;
    font-weight: 900;
    color: #3b82f6;
}

.patient-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.patient-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fbff;
}

.patient-detail-key {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.patient-detail-val {
    font-size: 12px;
    color: #1e293b;
    font-weight: 800;
    text-align: right;
}

.soap-page {
    gap: 10px;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.soap-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
}

.soap-summary-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.soap-summary-card__name {
    font-size: 16px;
    font-weight: 900;
    color: #1e293b;
}

.soap-summary-card__meta {
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.soap-summary-card .status-pill,
.soap-summary-card .badge-action {
    min-height: 30px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.soap-tabs {
    margin-top: 2px;
}

.soap-page > .panel-card {
    flex: 1;
    min-height: 0;
}

.soap-page > .panel-card--tight {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.soap-page > .soap-summary-card {
    flex: 0 0 auto;
}

.soap-list-page {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding-bottom: 46px;
}

.soap-list-page .soap-list-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    gap: 12px;
}

.soap-list-page .soap-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.soap-list-page .soap-list::-webkit-scrollbar {
    width: 8px;
}

.soap-list-page .soap-list::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.28);
    border-radius: 999px;
}

.soap-list-page .soap-list-card {
    padding: 12px 14px;
    cursor: pointer;
}

.soap-list-page .soap-list-card:hover {
    border-color: rgba(59, 130, 246, 0.36);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.soap-list-page .soap-list-card__header,
.soap-list-page .soap-list-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.soap-list-page .soap-list-card__patient {
    font-weight: 900;
    color: #1e293b;
}

.soap-list-page .soap-list-card__meta {
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.soap-list-page .soap-list-card__summary {
    margin-top: 10px;
    color: #334155;
    white-space: pre-wrap;
    line-height: 1.6;
}

.soap-list-page .soap-list-card__footer {
    margin-top: 10px;
}

.soap-list-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.soap-list-pager__button {
    min-width: 80px;
}

.soap-list-pager__info {
    color: #475569;
    font-weight: 800;
}

.soap-list-page .soap-empty-state {
    padding: 18px;
}

.soap-list-page .soap-empty-state__title {
    margin: 0;
    color: #1e293b;
    font-weight: 900;
}

.soap-list-page .soap-empty-state__text {
    margin: 6px 0 0;
    color: #64748b;
}

.soap-list-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    z-index: 40;
    overflow-y: auto;
}

.soap-list-detail {
    width: min(100%, 1100px);
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f8fbff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.soap-input-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.soap-input-panel__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 4px;
}

.soap-input-panel__field {
    flex: 0 0 auto;
    min-height: 0;
    margin-bottom: 0;
}

.soap-input-panel__field .soap-textarea-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.soap-input-panel__field .soap-textarea {
    min-height: 160px;
    max-height: 220px;
    resize: none;
    overflow-y: auto;
}

.soap-photo-section {
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
}

.soap-photo-section .photo-preview-card {
    max-height: 100%;
    min-height: 0;
    flex: 0 0 auto;
}

.soap-related-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.soap-related-section__heading {
    margin-top: 2px;
}

.soap-related-section__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.soap-related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.soap-related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.soap-related-item__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.soap-related-item__name {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.soap-related-item__info {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.soap-related-item__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.soap-related-button {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    text-align: center;
    display: grid;
    place-items: center;
}

.soap-related-item__download,
.soap-related-item__remove {
    min-height: 30px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.soap-input-panel__footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, #fff 22px);
    z-index: 1;
}

.soap-action-row {
    justify-content: space-between;
}

.soap-action-row {
    margin-top: 0;
}

.soap-confirm-actions {
    justify-content: space-between;
}

.soap-patient-modal,
.soap-confirm-modal {
    width: min(100%, 460px);
}

@media (min-width: 768px) {
    .patient-modal-overlay {
        align-items: center;
    }
}

.home-dashboard {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    gap: 12px;
}

.home-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 2px;
}

.home-header__greeting {
    margin: 0 0 4px;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}

.home-header__name {
    margin: 0;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.home-header__name span {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.home-notification {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.home-notification__icon {
    font-size: 18px;
}

.home-notification__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    padding: 0 4px;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-stat-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 14px;
    min-height: 92px;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-stat-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
}

.home-stat-card__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.home-stat-card__value {
    align-self: flex-end;
    font-size: clamp(26px, 6vw, 32px);
    line-height: 1;
    font-weight: 800;
    color: #3b82f6;
}

.home-stat-card__value span {
    margin-left: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.home-stat-card--blue .home-stat-card__icon { background: #eff6ff; color: #3b82f6; }
.home-stat-card--violet .home-stat-card__icon { background: #f5f3ff; color: #7c3aed; }
.home-stat-card--orange .home-stat-card__icon { background: #fff7ed; color: #f97316; }
.home-stat-card--green .home-stat-card__icon { background: #f0fdf4; color: #22c55e; }
.home-stat-card--violet .home-stat-card__value { color: #7c3aed; }
.home-stat-card--orange .home-stat-card__value { color: #f97316; }
.home-stat-card--green .home-stat-card__value { color: #22c55e; }

.home-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-section__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.home-section__link {
    border: 0;
    background: transparent;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
}

.home-schedule-card,
.home-patient-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef2f7;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.04);
    overflow: hidden;
}

.home-schedule-row,
.home-patient-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
}

.home-schedule-row + .home-schedule-row,
.home-patient-row + .home-patient-row {
    border-top: 1px solid #eef2f7;
}

.home-schedule-time {
    color: #4f46e5;
    font-size: 14px;
    font-weight: 800;
    min-width: 44px;
}

.home-schedule-badge,
.home-patient-badge {
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.home-schedule-badge { background: #eff6ff; color: #4f46e5; }
.home-patient-badge { background: #eff6ff; color: #4f46e5; }
.home-patient-badge.is-med { background: #eff6ff; color: #3b82f6; }
.home-patient-badge.is-sur { background: #f0fdf4; color: #22c55e; }
.home-patient-badge.is-car { background: #f5f3ff; color: #a855f7; }

.home-schedule-body,
.home-patient-body {
    min-width: 0;
}

.home-schedule-name,
.home-patient-name {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
}

.home-schedule-meta,
.home-patient-meta {
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.home-schedule-status,
.home-patient-status {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.home-schedule-status.is-active { background: #eff6ff; color: #4f46e5; }
.home-schedule-status.is-wait { background: #f8fafc; color: #3b82f6; border: 1px solid #dbeafe; }
.home-schedule-status.is-review { background: #f5f3ff; color: #a855f7; }
.home-patient-status.is-watch { background: #fff7ed; color: #f97316; }
.home-patient-status.is-stable { background: #f0fdf4; color: #22c55e; }
.home-patient-status.is-alert { background: #fef2f2; color: #ef4444; }

.home-patient-room {
    min-width: 52px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
}

.home-patient-time {
    min-width: 52px;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 800;
}

.home-patient-row--outpatient {
    grid-template-columns: auto auto 1fr auto;
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.home-quick-btn {
    border: 0;
    border-radius: 14px;
    background: #f8fafc;
    min-height: 54px;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    padding: 10px 8px;
}

.home-sync-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #64748b;
    padding: 2px 6px 0;
}

.home-sync-bar__right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    font-weight: 700;
}

.home-sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.hero-card,
.panel-card,
.auth-card,
.photo-preview-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(219, 234, 254, 0.9);
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.06);
}

.hero-card {
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card h1,
.page-header h1,
.auth-hero h1 {
    margin: 0;
    color: #1e293b;
    font-size: 22px;
    line-height: 1.2;
}

.hero-copy {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.badge-action,
.ghost-button,
.primary-button,
.secondary-button,
.action-card,
.chip,
.segment-button,
.bottom-nav__item,
.patient-card,
.thumbnail-card,
.setting-row {
    cursor: pointer;
}

.badge-action {
    border: 0;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 14px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card__label,
.metric-card__note,
.section-heading__sub,
.patient-card__meta,
.timeline-item__text,
.patient-summary__meta,
.history-card__time,
.history-card__summary,
.account-card__meta,
.photo-group-card__meta,
.status-note,
.field-label small,
.setting-row small {
    color: #64748b;
}

.metric-card__label,
.section-heading,
.patient-card__name,
.patient-summary__name,
.history-card__name,
.photo-group-card__name,
.account-card__name,
.field-label,
.page-header h1 {
    font-weight: 800;
}

.metric-card__value {
    color: #2563eb;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.metric-card__note {
    font-size: 11px;
}

.panel-card {
    padding: 16px;
}

.panel-card--tight {
    padding: 14px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 13px;
}

.timeline-list,
.patient-list,
.history-list,
.photo-group-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-item,
.patient-card,
.history-card,
.photo-group-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    align-items: center;
}

.timeline-item__time {
    color: #3b82f6;
    font-weight: 800;
    font-size: 12px;
}

.timeline-item__title {
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
}

.timeline-item__text {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.5;
}

.timeline-item__tag,
.status-pill,
.header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    background: #eff6ff;
    color: #2563eb;
    white-space: nowrap;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.action-card,
.ghost-button,
.primary-button,
.secondary-button,
.field-action {
    border: 0;
    border-radius: 16px;
    font-weight: 800;
}

.action-card {
    min-height: 64px;
    padding: 12px;
    background: #f8fbff;
    color: #1e293b;
}

.action-card--primary,
.primary-button,
.primary-button--solid {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.soap-page .page-header {
    align-items: center;
}

.soap-back-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #1e293b;
    font-size: 20px;
    font-weight: 900;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.08);
    flex: 0 0 auto;
}

.ghost-button,
.secondary-button {
    background: #eff6ff;
    color: #2563eb;
    padding: 10px 14px;
    white-space: nowrap;
}

.ghost-button--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.ghost-button--active {
    background: #3b82f6;
    color: #fff;
}

.search-bar {
    display: flex;
    gap: 8px;
}

.search-bar--split {
    flex-direction: column;
}

.field-input,
.textarea-input {
    width: 100%;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    padding: 12px 14px;
    outline: none;
}

.field-input--date {
    max-width: 100%;
}

.field-input:focus,
.textarea-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip-row--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
}

.chip-row--scroll::-webkit-scrollbar,
.app-content::-webkit-scrollbar {
    display: none;
}

.chip {
    border: 1px solid #dbeafe;
    background: #fff;
    color: #64748b;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.chip--active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.patient-card {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
}

.patient-card__left,
.patient-card__right,
.patient-summary,
.history-card__header,
.photo-group-card__header,
.field-with-action,
.check-row,
.setting-row,
.account-card,
.button-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.patient-card__left {
    flex: 1;
    min-width: 0;
}

.patient-card__right {
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.avatar-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.patient-card__name,
.patient-summary__name,
.history-card__name,
.photo-group-card__name,
.account-card__name {
    color: #1e293b;
    font-size: 14px;
}

.patient-card__meta,
.patient-summary__meta,
.account-card__meta,
.photo-group-card__meta {
    font-size: 11px;
    margin-top: 2px;
}

.patient-card__chevron {
    color: #cbd5e1;
    font-size: 20px;
    font-weight: 700;
}

.segmented-control {
    display: flex;
    background: rgba(148, 163, 184, 0.12);
    padding: 4px;
    border-radius: 14px;
    gap: 4px;
}

.segment-button {
    flex: 1;
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.segment-button--active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.header-badge {
    padding: 7px 12px;
}

.soap-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.soap-textarea-wrap {
    position: relative;
}

.textarea-input {
    min-height: 72px;
    resize: vertical;
}

.soap-textarea {
    min-height: 300px;
    line-height: 1.6;
    white-space: pre-wrap;
    padding-bottom: 52px;
}

.soap-voice-button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    min-height: 32px;
    padding-inline: 12px;
    z-index: 2;
}

.soap-input-hint {
    margin-top: 0;
    font-size: 11px;
    color: #64748b;
    text-align: left;
}

.soap-photo-section {
    margin-top: 10px;
    min-height: 0;
    overflow: hidden;
}

.soap-photo-section__heading {
    margin-bottom: 8px;
}

.photo-preview-card {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
}

.photo-preview__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.photo-preview__annotation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 2;
    pointer-events: none;
    display: block;
}

.soap-image-editor-preview {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: #f8fbff;
}

.soap-image-editor-preview .photo-preview__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 3;
}

.soap-photo-actions {
    gap: 8px;
}

.soap-draw-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: end;
}

.soap-draw-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: #475569;
    font-weight: 700;
}

.soap-draw-control--width {
    min-width: 180px;
    flex: 1 1 180px;
}

.soap-color-input {
    width: 44px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 10px;
    padding: 2px;
    background: #fff;
}

.soap-width-input {
    width: 100%;
}

.soap-draw-value {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.soap-photo-button {
    position: relative;
    overflow: hidden;
    flex: 1 1 0;
    text-align: center;
    display: grid;
    place-items: center;
}

.soap-photo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.soap-voice-message {
    margin-top: 6px;
    font-size: 11px;
    color: #2563eb;
    font-weight: 700;
}

.button-row {
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 4px;
}

.soap-action-row {
    gap: 8px;
}

.soap-action-row .secondary-button,
.soap-action-row .primary-button {
    flex: 1 1 0;
}

.primary-button,
.secondary-button {
    padding: 11px 14px;
}

.primary-button--solid {
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.status-note {
    margin: 0;
    font-size: 11px;
    text-align: center;
}

.history-card__header,
.photo-group-card__header,
.patient-summary {
    justify-content: space-between;
}

.history-card__summary {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.soap-history-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soap-history-panel__hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
}

.soap-history-panel__title {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.soap-history-panel__count {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.soap-history-list {
    gap: 12px;
}

.soap-history-card {
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.history-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.history-card__time-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 11px;
    font-weight: 800;
}

.status-pill--history {
    background: #eef2ff;
    color: #4338ca;
}

.history-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.history-card__image-count {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #2563eb;
}

.history-card__footer-chevron {
    font-size: 18px;
    color: #94a3b8;
}

.soap-history-viewer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.soap-history-viewer--detail {
    padding: 2px 0 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 8px;
}

.soap-history-viewer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.soap-history-viewer__header--soaplike {
    align-items: center;
}

.soap-history-viewer__header-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.soap-history-viewer__name {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}

.soap-history-viewer__meta {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.soap-history-viewer__patient-summary {
    margin-top: 0;
}

.soap-history-viewer__patient-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.soap-history-viewer__patient-card--soaplike {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.soap-history-viewer__avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.14));
    color: #1d4ed8;
    font-weight: 900;
}

.soap-history-viewer__patient-name {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.soap-history-viewer__patient-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.soap-history-viewer__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.soap-history-viewer__body--soaplike {
    gap: 10px;
}

.soap-history-viewer__summary {
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    white-space: pre-wrap;
    line-height: 1.7;
    color: #0f172a;
}

.soap-history-viewer__summary.textarea-input {
    min-height: 180px;
    white-space: pre-wrap;
    line-height: 1.7;
    background: #fff;
}

.soap-history-viewer__images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.soap-history-viewer__images-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.soap-history-viewer__image-count {
    font-size: 11px;
    font-weight: 800;
    color: #2563eb;
}

.soap-history-viewer__preview {
    min-height: 220px;
    max-height: 42vh;
}

.soap-history-viewer__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
    gap: 10px;
}

.soap-history-viewer__image-grid .thumbnail-card {
    width: 100%;
    min-width: 0;
    max-width: 140px;
}

.soap-history-viewer__image-grid .thumbnail-card__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.soap-history-viewer__thumb-note {
    font-size: 11px;
    color: #64748b;
}

.soap-history-viewer__footer {
    justify-content: flex-end;
}

.soap-history-delete {
    background: #fee2e2;
    color: #b91c1c;
}

.soap-history-back {
    flex: 0 0 auto;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-row {
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    background: #fff;
    text-align: left;
}

.account-card {
    justify-content: space-between;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 12px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.field-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
}

.field-with-action {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
}

.field-action {
    background: #eff6ff;
    color: #2563eb;
    padding: 0 12px;
}

.input-wrapper {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    width: 100%;
}

.input-icon,
.eye-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    pointer-events: none;
}

.input-icon {
    width: 32px;
    height: 32px;
    justify-self: center;
}

.eye-icon {
    border: 0;
    background: transparent;
    color: #64748b;
    pointer-events: auto;
    padding: 0;
    width: 32px;
    height: 32px;
    justify-self: center;
}

.field-input--icon {
    padding-left: 16px;
}

.field-input--password {
    padding-left: 16px;
    padding-right: 16px;
}

.field-input--select {
    appearance: none;
    padding-right: 40px;
}

.field-input,
.textarea-input {
    width: 100%;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    min-height: 60px;
    padding: 16px;
    outline: none;
    box-sizing: border-box;
}

.field-input--icon,
.field-input--password {
    padding-top: 16px;
    padding-bottom: 16px;
}

.field-input::placeholder,
.textarea-input::placeholder {
    color: #94a3b8;
}

.field-input:focus,
.textarea-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.checkbox-group {
    justify-content: flex-start;
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    padding-left: 2px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    gap: 10px;
}

.auth-page {
    width: 100%;
    max-width: 460px;
    padding-top: 0;
    position: relative;
    overflow: hidden;
    margin-inline: auto;
}

.login-title {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 52px 24px 0;
    margin-bottom: 28px;
}

.login-title h1 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #000;
}

.login-title p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(22px, 4vw, 32px) clamp(16px, 3vw, 20px) 24px;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.auth-card .field-group:last-of-type {
    margin-bottom: 0;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.login-btn {
    width: 100%;
    padding: 15px 0;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #2563eb;
}

.login-error {
    margin: 12px 0 0;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 480px) {
    .app-shell {
        padding: 12px;
    }

    .home-dashboard {
        max-width: 100%;
    }

    .app-content--auth {
        padding: 12px 0 24px;
        align-items: stretch;
    }

    .auth-page {
        max-width: 100%;
    }

    .home-stats-grid,
    .home-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-schedule-row,
    .home-patient-row {
        grid-template-columns: auto auto 1fr;
    }

    .home-schedule-status,
    .home-patient-status {
        grid-column: 3;
        justify-self: end;
    }

    .field-input--icon {
        padding-left: 16px;
    }

    .field-input--password {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-title {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-card {
        border-radius: 26px;
    }
}

@media (min-width: 768px) {
    .app-shell {
        padding: 24px;
    }

    .home-dashboard {
        max-width: 520px;
    }

    .app-content--auth {
        padding-top: 28px;
    }

    .auth-page {
        max-width: 460px;
    }

    .home-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .field-input--icon {
        padding-left: 84px;
    }

    .field-input--password {
        padding-left: 84px;
        padding-right: 68px;
    }
}

.bottom-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    margin: 0 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 8px 8px 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    z-index: 20;
}

.bottom-nav__item {
    color: #94a3b8;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

.bottom-nav__item.active {
    color: #2563eb;
}

.bottom-nav__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bottom-nav__symbol {
    line-height: 1;
    font-size: 11px;
    font-weight: 900;
}

.bottom-nav__label {
    line-height: 1;
}

.bottom-nav__item.active .bottom-nav__icon {
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-1px);
}

.bottom-nav__item.active .bottom-nav__symbol {
    color: #2563eb;
}

.bottom-nav__item:not(.active) .bottom-nav__icon {
    background: transparent;
    color: #94a3b8;
}

.home-indicator {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 21;
}

.home-indicator span {
    width: 140px;
    height: 5px;
    border-radius: 999px;
    background: #000;
}

.photo-group-card__header,
.history-card__header {
    margin-bottom: 10px;
}

.thumbnail-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.thumbnail-row::-webkit-scrollbar {
    display: none;
}

.thumbnail-card {
    min-width: 92px;
    height: 86px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #eff6ff, #fff);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    text-align: left;
    position: relative;
}

.thumbnail-card--active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.thumbnail-card__kind {
    font-size: 10px;
    font-weight: 900;
    color: #2563eb;
}

.thumbnail-card__label {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.thumbnail-card__preview-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.2 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbff;
}

.thumbnail-card__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.thumbnail-card__preview--annotation {
    pointer-events: none;
}

.thumbnail-card__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #ef4444;
    font-size: 14px;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.photo-preview {
    min-height: 120px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(34, 197, 94, 0.12));
    border: 1px dashed rgba(37, 99, 235, 0.28);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    isolation: isolate;
}

.photo-preview--interactive {
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.photo-preview--interactive:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.photo-preview__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    touch-action: none;
}

.photo-preview__shape {
    width: 110px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 0 0 8px rgba(37, 99, 235, 0.14);
    transform: rotate(-7deg);
    position: relative;
    z-index: 0;
}

.soap-photo-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
}

.soap-photo-tool-button {
    padding-inline: 12px;
    min-height: 32px;
    font-size: 11px;
}

.soap-photo-editor-actions {
    justify-content: space-between;
    gap: 8px;
}

.soap-image-editor-modal {
    width: min(94vw, 760px);
}

.soap-image-editor-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soap-image-editor-preview {
    width: 100%;
    max-height: 58vh;
}

.photo-preview__text {
    position: absolute;
    inset: auto 0 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    z-index: 0;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}
