:root {
    --BrandPrimary: #a4084f;
    --BrandPrimaryDark: #7d063d;
    --BrandSecondary: #f97316;
    --BrandSecondarySoft: #fff0e4;
    --Surface: #ffffff;
    --SurfaceSoft: #fff8f4;
    --SurfaceMuted: #f6f7fb;
    --TextStrong: #22252b;
    --TextMuted: #6f7785;
    --Border: #ececf4;
    --Success: #16a34a;
    --Danger: #dc2626;
    --Shadow: 0 18px 36px rgba(34, 37, 43, 0.08);
    --Radius: 18px;
    --RadiusSmall: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    color: var(--TextStrong);
    background: #3a3a3f;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

svg {
    width: 100%;
    height: 100%;
}

.AmbientBackground {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #3a3a3f 0%, #2d2d31 100%);
    pointer-events: none;
}

.DeviceWrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
}

.MobileFrame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f2 100%);
    overflow: hidden;
}

.TopBar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(236, 236, 244, 0.9);
}

.TopBarBrand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.TopBarBrandIcon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--BrandPrimary), var(--BrandSecondary));
}

.TopBarBrand strong,
.TopBarBrand small {
    display: block;
}

.TopBarBrand strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    line-height: 1.1;
}

.TopBarBrand small {
    margin-top: 2px;
    color: var(--TextMuted);
    font-size: 0.72rem;
}

.TopBarActions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ProfileChip,
.IconButton {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 0;
    background: #fff4ee;
    color: var(--BrandPrimary);
    box-shadow: inset 0 0 0 1px rgba(164, 8, 79, 0.08);
}

.ProfileAvatar {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 700;
}

.IconButton {
    cursor: pointer;
    padding: 8px;
}

.IconButton svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.LogoutForm {
    margin: 0;
}

.MobileShell {
    padding: 12px 12px 96px;
}

.FlashMessage {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.FlashMessage.isSuccess {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.FlashMessage.isError {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.PageHeader,
.InfoCard,
.FormSectionCard,
.GlassCard,
.AuthFooterCard,
.SuccessCard,
.MiniMetricCard,
.CarouselSection {
    background: var(--Surface);
    border: 1px solid var(--Border);
    border-radius: var(--Radius);
    box-shadow: var(--Shadow);
}

.PageHeader,
.InfoCard,
.FormSectionCard,
.GlassCard,
.AuthFooterCard,
.SuccessCard,
.CarouselSection {
    padding: 14px;
    margin-bottom: 12px;
}

.PageHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.Eyebrow {
    margin: 0 0 6px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--BrandPrimary);
}

.Eyebrow.isLight {
    color: rgba(255, 255, 255, 0.76);
}

h1,
h2,
strong {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.2;
}

h2 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.2;
}

p {
    margin: 0;
    color: var(--TextMuted);
    line-height: 1.5;
    font-size: 0.78rem;
}

.PageSubtitle {
    margin-top: 6px;
}

.WelcomeBanner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 0 0 24px 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, var(--BrandPrimary) 0%, #cb114a 46%, var(--BrandSecondary) 100%);
    color: #fff;
}

.WelcomeBanner h1 {
    font-size: 1.22rem;
}

.WelcomeBanner p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.86);
}

.WelcomeBannerMeta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.WelcomeBannerMeta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    font-weight: 600;
}

.CompactStatGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.MiniMetricCard {
    padding: 12px;
}

.MetricLabel {
    display: block;
    color: var(--TextMuted);
    font-size: 0.7rem;
}

.MiniMetricCard strong {
    display: block;
    margin-top: 5px;
    font-size: 1.02rem;
}

.CompactHighlightCard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff0ea, #ffffff);
    border: 1px solid #ffe0d1;
}

.CompactHighlightCard strong {
    display: block;
    margin-bottom: 4px;
}

.CardHeading,
.StatusItem,
.ReportCard,
.UserCard,
.ChecklistItem,
.DetailList div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.CardHeading {
    margin-bottom: 10px;
}

.CardHeading span {
    flex: 0 0 auto;
    font-size: 0.7rem;
    color: var(--TextMuted);
}

.BannerCarousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.BannerCarousel::-webkit-scrollbar,
.SectionPills::-webkit-scrollbar,
.QuickMenuScroller::-webkit-scrollbar {
    display: none;
}

.BannerSlide {
    position: relative;
    flex: 0 0 100%;
    min-height: 128px;
    padding: 14px;
    border-radius: 16px;
    scroll-snap-align: start;
    overflow: hidden;
    color: #fff;
}

.BannerSlide::before,
.BannerSlide::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.BannerSlide::before {
    width: 120px;
    height: 120px;
    right: -28px;
    top: -26px;
}

.BannerSlide::after {
    width: 72px;
    height: 72px;
    right: 18px;
    bottom: -18px;
}

.BannerSlide.isOne {
    background: linear-gradient(135deg, var(--BrandPrimary), #db2777);
}

.BannerSlide.isTwo {
    background: linear-gradient(135deg, #ef4444, var(--BrandSecondary));
}

.BannerSlide.isThree {
    background: linear-gradient(135deg, #7c2d12, #f97316);
}

.BannerSlide small {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.68rem;
    opacity: 0.84;
}

.BannerSlide strong {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 76%;
    font-size: 1rem;
    line-height: 1.35;
}

.CarouselDots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.CarouselDots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #e2dbe3;
}

.CarouselDots span.isActive {
    width: 16px;
    background: var(--BrandPrimary);
}

.QuickMenuScroller {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.QuickMenuGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.QuickMenuGrid.isCompact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.QuickMenuCard {
    display: grid;
    justify-items: start;
    gap: 7px;
    padding: 12px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #f0e6e8;
    min-height: 104px;
}

.QuickMenuCard.isCompact {
    min-height: 110px;
}

.QuickMenuCard strong {
    font-size: 0.79rem;
    line-height: 1.2;
}

.QuickMenuCard small {
    color: var(--TextMuted);
    font-size: 0.67rem;
    line-height: 1.3;
}

.QuickMenuIcon {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 12px;
    color: var(--BrandPrimary);
    background: #fff3ef;
}

.QuickMenuIcon svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.StatusList {
    display: grid;
    gap: 8px;
}

.StatusList.isCompact {
    gap: 7px;
}

.StatusItem,
.ReportCard,
.UserCard,
.ChecklistItem {
    padding: 11px 12px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #f1edf0;
}

.StatusItem.isCompact,
.ReportCard,
.UserCard,
.ChecklistItem {
    align-items: flex-start;
}

.StatusItem p,
.ReportCard p,
.UserCard p {
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.45;
}

.StatusBadge,
.DataTag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.StatusBadge.isDone {
    background: rgba(22, 163, 74, 0.12);
    color: var(--Success);
}

.StatusBadge.isPending {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.StackForm {
    display: grid;
    gap: 12px;
}

.FieldGrid,
.CounterGrid,
.StatGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.FieldBlock {
    display: grid;
    gap: 6px;
    width: 100%;
}

.FieldBlock span {
    font-size: 0.74rem;
    font-weight: 700;
    color: #343a45;
}

.FieldBlock.alignEnd {
    align-self: end;
}

input,
textarea,
select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid #ebeaf0;
    background: #fbfbfd;
    color: var(--TextStrong);
    outline: none;
    box-shadow: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(164, 8, 79, 0.28);
    background: #fff;
}

textarea {
    resize: vertical;
}

.LargeTextarea {
    min-height: 150px;
}

.SectionPills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 10px;
}

.WizardProgress {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 12px;
    padding-bottom: 2px;
}

.WizardChip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #fff0ea;
    color: var(--BrandPrimary);
    font-size: 0.68rem;
    font-weight: 700;
}

.WizardChip.isActive {
    background: linear-gradient(135deg, var(--BrandPrimary), var(--BrandSecondary));
    color: #fff;
}

.SectionPills a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff0ea;
    color: var(--BrandPrimary);
    font-size: 0.68rem;
    font-weight: 700;
}

.UploadCard {
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed #f2b49b;
    background: var(--SurfaceSoft);
}

.UploadCard input[type=file] {
    background: #fff;
}

.PhotoPreviewGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.PhotoPreviewGrid img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
}

.WeatherOptions,
.TagList,
.InlineActions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ChoiceChip input {
    display: none;
}

.ChoiceChip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f4f5f8;
    color: var(--TextMuted);
    font-size: 0.72rem;
    font-weight: 700;
}

.ChoiceChip input:checked + span {
    background: linear-gradient(135deg, var(--BrandPrimary), var(--BrandSecondary));
    color: #fff;
}

.CounterField {
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    background: #fbfbfd;
    border: 1px solid #efeef3;
}

.CounterField span {
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.35;
}

.CounterField input {
    padding: 10px 11px;
}

.PrimaryButton,
.SecondaryActionButton,
.GhostButton,
.InlineAction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

.PrimaryButton {
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--BrandPrimary), var(--BrandSecondary));
}

.PrimaryButton.isCompact {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.74rem;
}

.SecondaryActionButton,
.GhostButton,
.InlineAction {
    padding: 0 12px;
    color: var(--BrandPrimary);
    background: #fff2ed;
}

.InlineAction {
    min-height: 32px;
    font-size: 0.68rem;
}

.StickyActionBar {
    position: sticky;
    bottom: 84px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--Border);
    box-shadow: 0 10px 24px rgba(34, 37, 43, 0.08);
}

.StickyActionBar.isWizard {
    margin-top: 12px;
}

.ChecklistList {
    display: grid;
    gap: 8px;
}

.ChecklistItem strong {
    font-size: 0.94rem;
}

.ChecklistItem.isDone {
    background: rgba(236, 253, 245, 0.92);
}

.ChecklistItem.isMissing {
    background: rgba(254, 242, 242, 0.92);
}

.SuccessCard {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.SuccessIcon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(22, 163, 74, 0.16);
    color: var(--Success);
    font-size: 1.4rem;
    font-weight: 800;
}

.DetailList {
    display: grid;
    gap: 8px;
}

.DetailList div {
    padding: 10px 0;
    border-bottom: 1px dashed #f0edf2;
}

.DetailList div:last-child {
    border-bottom: 0;
}

.DetailList span {
    color: var(--TextMuted);
    font-size: 0.7rem;
}

.DetailList strong {
    max-width: 58%;
    text-align: right;
    font-size: 0.76rem;
    word-break: break-word;
}

.RichText {
    line-height: 1.6;
    word-break: break-word;
}

.SummaryBox {
    white-space: pre-wrap;
    background: #231f28;
    color: #f4f2f7;
    padding: 12px;
    border-radius: 14px;
    font-size: 0.72rem;
    line-height: 1.55;
    overflow: auto;
}

.AuthScreen {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.AuthBrand {
    position: relative;
    padding: 26px 18px 20px;
    margin: -12px -12px 14px;
    color: #fff;
    background:
        radial-gradient(circle at 80% -10%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(135deg, var(--BrandPrimary) 0%, #cb114a 52%, var(--BrandSecondary) 100%);
    border-radius: 0 0 34px 34px;
}

.AuthBrand p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.86);
}

.BrandMark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.AuthFooterCard {
    text-align: center;
    display: grid;
    gap: 4px;
}

.AuthFooterCard a {
    color: var(--BrandPrimary);
    font-weight: 700;
}

.BottomNavigation {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 30;
    width: calc(100vw - 18px);
    max-width: 408px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(34, 37, 43, 0.14);
}

.BottomNavItem {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 2px;
    color: #7c8494;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 12px;
}

.BottomNavItem.isActive {
    color: var(--BrandPrimary);
    background: #fff1eb;
}

.BottomNavIcon {
    width: 20px;
    height: 20px;
}

.BottomNavIcon svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ProfileHeroCard {
    margin: -12px -12px 12px;
    padding: 24px 16px 16px;
    background: linear-gradient(135deg, var(--BrandPrimary), var(--BrandSecondary));
    color: #fff;
    text-align: center;
    border-radius: 0 0 28px 28px;
}

.ProfileHeroCard p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.84);
}

.ProfileHeroAvatar {
    width: 74px;
    height: 74px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.96);
    color: var(--BrandPrimary);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
}

.LogoutBlock {
    margin-top: 10px;
}

table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

pre {
    margin: 0;
}

@media (max-width: 390px) {
    .MobileShell {
        padding: 10px 10px 92px;
    }

    .QuickMenuGrid,
    .QuickMenuGrid.isCompact,
    .FieldGrid,
    .CounterGrid,
    .PhotoPreviewGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .StickyActionBar {
        grid-template-columns: 1fr;
    }

    .WelcomeBanner {
        grid-template-columns: 1fr;
    }
}

:root {
    --BrandPrimary: #b11226;
    --BrandPrimaryDark: #7d0c1b;
    --BrandSecondary: #17345f;
    --BrandSecondarySoft: #e7edf6;
    --BrandNeutral: #c7c7c7;
    --Surface: #ffffff;
    --SurfaceSoft: #f4f5f7;
    --SurfaceMuted: #ebedf1;
    --TextStrong: #14243c;
    --TextMuted: #687589;
    --Border: #d7dde7;
    --Shadow: 0 18px 36px rgba(12, 23, 43, 0.1);
    --KeyboardInset: 0px;
}

html,
body {
    background:
        radial-gradient(circle at top center, rgba(199, 199, 199, 0.24), transparent 26%),
        linear-gradient(180deg, #10233f 0%, #132a4b 52%, #0d1a31 100%);
}

body {
    color: var(--TextStrong);
}

.AmbientBackground {
    background:
        radial-gradient(circle at 12% 0%, rgba(177, 18, 38, 0.18), transparent 24%),
        radial-gradient(circle at 100% 12%, rgba(199, 199, 199, 0.12), transparent 22%),
        linear-gradient(180deg, #10233f 0%, #132a4b 52%, #0d1a31 100%);
}

.MobileFrame {
    background:
        radial-gradient(circle at top right, rgba(177, 18, 38, 0.08), transparent 25%),
        linear-gradient(180deg, #f7f8fa 0%, #eef2f6 100%);
}

.TopBar {
    padding: 12px 14px 10px;
    background: rgba(247, 248, 250, 0.92);
    border-bottom: 1px solid rgba(215, 221, 231, 0.94);
}

.TopBarBrand {
    gap: 12px;
}

.TopBarBrandIcon {
    width: 42px;
    height: 42px;
    padding: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(231, 237, 246, 0.94));
    box-shadow: inset 0 0 0 1px rgba(23, 52, 95, 0.08);
}

.TopBarBrandIcon img,
.BrandLogo,
.PwaInstallPromptLogo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.TopBarBrand strong {
    font-size: 1rem;
}

.TopBarBrand small {
    max-width: 170px;
    color: var(--TextMuted);
}

.ProfileChip,
.IconButton {
    background: linear-gradient(145deg, #ffffff, #eef2f6);
    color: var(--BrandSecondary);
    box-shadow: inset 0 0 0 1px rgba(23, 52, 95, 0.08);
}

.ProfileChip svg,
.IconButton svg,
.SecondaryActionButton svg,
.InlineAction svg,
.BottomNavIcon svg,
.QuickMenuIcon svg,
.PwaInstallPromptActions svg,
.IconOnlyButton svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.PageHeader,
.InfoCard,
.FormSectionCard,
.GlassCard,
.AuthFooterCard,
.SuccessCard,
.MiniMetricCard,
.CarouselSection {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 221, 231, 0.94);
    box-shadow: 0 18px 42px rgba(15, 31, 58, 0.08);
}

.Eyebrow {
    color: var(--BrandPrimary);
}

.WelcomeBanner,
.ProfileHeroCard {
    background:
        radial-gradient(circle at top right, rgba(199, 199, 199, 0.22), transparent 28%),
        linear-gradient(135deg, var(--BrandSecondary) 0%, #244977 46%, var(--BrandPrimary) 100%);
}

.CompactHighlightCard {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 237, 246, 0.82));
    border-color: rgba(23, 52, 95, 0.12);
}

.BannerSlide.isOne {
    background: linear-gradient(135deg, var(--BrandSecondary), #274f81);
}

.BannerSlide.isTwo {
    background: linear-gradient(135deg, var(--BrandPrimary), #cf4253);
}

.BannerSlide.isThree {
    background: linear-gradient(135deg, #44536b, var(--BrandSecondary));
}

.CarouselDots span {
    background: rgba(104, 117, 137, 0.24);
}

.QuickMenuCard,
.StatusItem,
.ReportCard,
.UserCard,
.ChecklistItem {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(215, 221, 231, 0.82);
}

.QuickMenuIcon {
    color: var(--BrandSecondary);
    background: linear-gradient(145deg, rgba(231, 237, 246, 0.92), rgba(255, 255, 255, 0.96));
}

.StatusBadge.isPending {
    background: rgba(23, 52, 95, 0.12);
    color: var(--BrandSecondary);
}

input,
textarea,
select {
    border-color: rgba(215, 221, 231, 0.92);
    background: rgba(248, 249, 251, 0.96);
    scroll-margin-bottom: 180px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(23, 52, 95, 0.32);
    box-shadow: 0 0 0 4px rgba(23, 52, 95, 0.08);
}

.WizardChip,
.SectionPills a {
    background: rgba(23, 52, 95, 0.08);
    color: var(--BrandSecondary);
}

.WizardChip.isActive,
.ChoiceChip input:checked + span,
.PrimaryButton {
    background: linear-gradient(135deg, var(--BrandSecondary), var(--BrandPrimary));
}

.UploadCard {
    border-color: rgba(177, 18, 38, 0.22);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 245, 247, 0.98));
}

.ChoiceChip span {
    background: rgba(23, 52, 95, 0.06);
}

.CounterField {
    background: rgba(248, 249, 251, 0.96);
    border-color: rgba(215, 221, 231, 0.88);
}

.SecondaryActionButton,
.GhostButton,
.InlineAction,
.IconOnlyButton {
    color: var(--BrandSecondary);
    background: linear-gradient(145deg, rgba(231, 237, 246, 0.82), rgba(255, 255, 255, 0.96));
    box-shadow: inset 0 0 0 1px rgba(23, 52, 95, 0.08);
}

.SecondaryActionButton.isIconOnly,
.GhostButton.isIconOnly,
.InlineAction.isIconOnly,
.IconOnlyButton {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 7px;
    border-radius: 12px;
}

.IconOnlyButton {
    border: 0;
    cursor: pointer;
}

.IconOnlyButton.isSolid {
    color: #fff;
    background: linear-gradient(135deg, var(--BrandSecondary), var(--BrandPrimary));
    box-shadow: none;
}

.StickyActionBar {
    bottom: calc(84px + var(--KeyboardInset));
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(215, 221, 231, 0.94);
}

.DetailList div {
    border-bottom-color: rgba(215, 221, 231, 0.88);
}

.SummaryBox {
    background: linear-gradient(160deg, #15243c, #20365b);
    color: #f4f7fb;
}

.AuthPage .MobileFrame {
    background:
        radial-gradient(circle at top center, rgba(177, 18, 38, 0.12), transparent 26%),
        linear-gradient(180deg, #f5f7fa 0%, #ecf0f5 100%);
}

.AuthScreen {
    min-height: calc(100vh - 24px);
    justify-content: center;
    gap: 12px;
    padding: 18px 4px 12px;
}

.AuthBrand {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 26px 20px 22px;
    margin: 0 0 2px;
    color: #fff;
    background:
        radial-gradient(circle at top center, rgba(199, 199, 199, 0.18), transparent 28%),
        linear-gradient(145deg, var(--BrandSecondary), #274f81 52%, var(--BrandPrimary) 100%);
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(15, 31, 58, 0.18);
}

.BrandLogo {
    width: 76px;
    height: 76px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(9, 18, 31, 0.18);
}

.AuthTagline {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
}

.AuthBrand p {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.86);
}

.CardHeading.isAuth {
    margin-bottom: 14px;
}

.AuthFooterCard {
    padding: 16px;
}

.AuthFooterCard a {
    color: var(--BrandSecondary);
}

.BottomNavigation {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(215, 221, 231, 0.94);
    backdrop-filter: blur(16px);
}

.BottomNavItem.isActive {
    color: var(--BrandSecondary);
    background: rgba(23, 52, 95, 0.08);
}

.MetricCard {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 221, 231, 0.94);
    box-shadow: 0 16px 32px rgba(15, 31, 58, 0.08);
}

.MetricCard.isAccent {
    background: linear-gradient(135deg, var(--BrandSecondary), var(--BrandPrimary));
    color: #fff;
}

.MetricCard.isAccent .MetricLabel {
    color: rgba(255, 255, 255, 0.78);
}

.InfoText {
    color: var(--TextMuted);
    line-height: 1.6;
}

.PwaInstallPrompt {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 35;
    width: calc(100vw - 26px);
    max-width: 404px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 221, 231, 0.96);
    box-shadow: 0 18px 32px rgba(15, 31, 58, 0.16);
    backdrop-filter: blur(16px);
}

.PwaInstallPromptBody,
.PwaInstallPromptActions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.PwaInstallPromptBody strong {
    display: block;
    font-size: 0.86rem;
}

.PwaInstallPromptBody p {
    margin-top: 2px;
    font-size: 0.68rem;
}

.PwaInstallPromptLogo {
    width: 42px;
    height: 42px;
    padding: 7px;
    border-radius: 14px;
    background: rgba(244, 245, 247, 0.96);
}

.KeyboardOpen .BottomNavigation,
.KeyboardOpen .PwaInstallPrompt {
    opacity: 0;
    pointer-events: none;
}

.CopySuccess {
    color: #fff;
    background: linear-gradient(135deg, var(--BrandSecondary), var(--BrandPrimary));
    box-shadow: none;
}

@media (max-width: 390px) {
    .AuthScreen {
        padding-inline: 0;
    }

    .PwaInstallPrompt {
        width: calc(100vw - 20px);
        bottom: 86px;
    }

    .PwaInstallPromptBody {
        gap: 8px;
    }

}

body {
    font-size: 12px;
}

h1 {
    font-size: 1.04rem;
}

h2 {
    font-size: 0.84rem;
}

p {
    font-size: 0.72rem;
}

.TopBar {
    padding: 10px 12px 8px;
}

.TopBarBrand strong {
    font-size: 0.9rem;
}

.TopBarBrand small,
.MetricLabel,
.CardHeading span,
.DetailList span,
.StatusItem p,
.ReportCard p,
.UserCard p,
.InfoText,
.WelcomeBannerMeta span,
.PwaInstallPromptBody p {
    font-size: 0.66rem;
}

.TopBarBrandIcon,
.ProfileChip,
.IconButton,
.SecondaryActionButton.isIconOnly,
.GhostButton.isIconOnly,
.InlineAction.isIconOnly,
.IconOnlyButton {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
}

.ProfilePhoto,
.ProfileHeroPhoto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.ProfileAvatar {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--BrandSecondary);
}

.ProfileHeroAvatar {
    overflow: hidden;
}

.MobileShell {
    padding: 10px 10px 92px;
}

.PageHeader,
.InfoCard,
.FormSectionCard,
.GlassCard,
.AuthFooterCard,
.SuccessCard,
.CarouselSection,
.MiniMetricCard,
.MetricCard {
    padding: 12px;
    margin-bottom: 10px;
}

.AuthPage {
    background:
        radial-gradient(circle at top center, rgba(199, 199, 199, 0.12), transparent 26%),
        linear-gradient(145deg, var(--BrandSecondary), #274f81 52%, var(--BrandPrimary) 100%);
}

.AuthPage .AmbientBackground,
.AuthPage .MobileFrame {
    background:
        radial-gradient(circle at top center, rgba(199, 199, 199, 0.18), transparent 28%),
        linear-gradient(145deg, var(--BrandSecondary), #274f81 52%, var(--BrandPrimary) 100%);
}

.AuthPage .GlassCard,
.AuthPage .AuthFooterCard {
    background: rgba(255, 255, 255, 0.96);
}

.AuthScreen {
    min-height: calc(100vh - 20px);
    padding-top: 12px;
}

.AuthBrand {
    padding: 22px 18px 18px;
    background: transparent;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.AuthBrand p {
    max-width: 250px;
}

.AuthPage .GlassCard {
    border-radius: 24px;
    box-shadow: 0 22px 44px rgba(15, 31, 58, 0.16);
}

.AuthPage .CardHeading.isAuth {
    margin-bottom: 10px;
}

.AuthBrandHalo {
    position: absolute;
    top: -34px;
    left: 50%;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
    transform: translateX(-50%);
    pointer-events: none;
}

.BrandLogo {
    width: 66px;
    height: 66px;
    position: relative;
    z-index: 1;
}

.AuthBrand .Eyebrow,
.AuthBrand h1,
.AuthTagline {
    position: relative;
    z-index: 1;
}

.AuthScreen.isLoginShowcase {
    display: grid;
    align-items: center;
}

.LoginCard {
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 52px rgba(15, 31, 58, 0.18);
}

.LoginHero {
    position: relative;
    min-height: 200px;
    padding: 28px 22px 92px;
    background: linear-gradient(145deg, #1f5f96 0%, #2d4bc9 52%, #b11226 100%);
    overflow: hidden;
}

.LoginHero::before,
.LoginHero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.LoginHero::before {
    width: 180px;
    height: 180px;
    top: -62px;
    right: -48px;
}

.LoginHero::after {
    width: 132px;
    height: 132px;
    left: -54px;
    bottom: 18px;
}

.LoginHeroBrand {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    color: #fff;
}

.LoginHeroBrand strong {
    font-size: 1.2rem;
}

.LoginHeroBrand span {
    max-width: 180px;
    font-size: 0.7rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.LoginHeroWave {
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: -2px;
    height: 82px;
    background: #fff;
    border-top-left-radius: 56% 100%;
    border-top-right-radius: 44% 100%;
}

.LoginFormPanel {
    margin: -44px 12px 12px;
    position: relative;
    z-index: 2;
    border-radius: 24px !important;
}

.CardHeading.isCentered {
    justify-content: center;
    text-align: center;
}

.AuthDivider {
    position: relative;
    margin: 14px 0 10px;
    text-align: center;
}

.AuthDivider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(215, 221, 231, 0.96);
}

.AuthDivider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 10px;
    background: #fff;
    color: var(--TextMuted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.AuthFooterInline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--TextMuted);
}

.AuthFooterInline a {
    font-weight: 700;
    color: var(--BrandSecondary);
}

.WelcomeBanner {
    padding: 14px 14px 12px;
    gap: 8px;
}

.WelcomeBanner p {
    margin-top: 4px;
}

.CompactStatGrid {
    gap: 6px;
    margin-bottom: 10px;
}

.QuickMenuGridSimple {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 4px;
}

.QuickMenuGridSimple.isExtra {
    margin-top: 10px;
}

.QuickMenuMini {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--TextStrong);
    text-align: center;
}

.QuickMenuMini strong {
    font-size: 0.58rem;
    line-height: 1.15;
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0;
    word-break: break-word;
}

.QuickMenuMiniIcon {
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 10px;
    color: var(--BrandSecondary);
    background: linear-gradient(145deg, rgba(231, 237, 246, 0.94), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 0 0 1px rgba(23, 52, 95, 0.08);
}

.QuickMenuMiniIcon svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.QuickMenuMini.isOtherToggle.isActive .QuickMenuMiniIcon,
.QuickMenuMini:active .QuickMenuMiniIcon {
    color: #fff;
    background: linear-gradient(135deg, var(--BrandSecondary), var(--BrandPrimary));
    box-shadow: none;
}

.QuickMenuScroller,
.QuickMenuCard,
.QuickMenuGrid,
.QuickMenuGrid.isCompact {
    display: none;
}

.BannerSlide {
    min-height: 116px;
    padding: 12px;
}

.BannerSlide strong {
    font-size: 0.9rem;
    max-width: 82%;
}

.CompactHighlightCard {
    padding: 10px;
}

.StackForm {
    gap: 14px;
}

.FormSectionCard .FieldBlock,
.FormSectionCard .UploadCard,
.FormSectionCard .WeatherOptions,
.FormSectionCard .CounterGrid,
.FormSectionCard .FieldGrid,
.FormSectionCard .PhotoPreviewGrid {
    margin-top: 8px;
}

.FieldGrid,
.CounterGrid,
.StatGrid {
    gap: 12px;
}

.FieldBlock {
    gap: 7px;
}

.FieldBlock span,
.CounterField span {
    font-size: 0.68rem;
}

input,
textarea,
select {
    padding: 10px 11px;
    font-size: 0.72rem;
}

.ChoiceChip span {
    min-height: 34px;
    font-size: 0.68rem;
}

.UploadCard strong,
.DetailList strong,
.StatusItem strong,
.ReportCard strong,
.UserCard strong {
    font-size: 0.74rem;
}

.PhotoPreviewGrid img {
    height: 74px;
}

.PrimaryButton,
.GhostButton,
.SecondaryActionButton,
.InlineAction {
    font-size: 0.7rem;
}

.PrimaryButton.isArrowOnly,
.GhostButton.isArrowOnly {
    width: 100%;
    min-height: 38px;
    padding: 0;
}

.PrimaryButton.isArrowOnly svg,
.GhostButton.isArrowOnly svg {
    width: 16px;
    height: 16px;
}

.StickyActionBar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}

.SummaryBox {
    font-size: 0.68rem;
}

.ProfileHeroCard {
    padding: 20px 14px 14px;
}

.ProfileHeroAvatar {
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
}

.PwaInstallPrompt {
    z-index: 60;
    pointer-events: auto;
}

.PwaInstallPrompt.isVisible {
    display: flex;
}

#DismissInstallPrompt {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.StatusToggleField {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(248, 249, 251, 0.96);
    border: 1px solid rgba(215, 221, 231, 0.9);
}

.StatusToggleField span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--TextStrong);
}

.UserCard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 12px;
}

.UserCard .InlineActions {
    flex-wrap: nowrap;
    align-items: center;
}

.UserStatusToggle,
.UserStatusLink {
    color: #fff !important;
    box-shadow: none !important;
}

.UserStatusToggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.UserStatusLink {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
}

.UserStatusToggle svg,
.UserStatusLink svg {
    width: 16px;
    height: 16px;
}

.UserStatusToggle.isActive,
.UserStatusLink.isActive {
    background: linear-gradient(135deg, #14b85a, #0a8a41) !important;
}

.UserStatusToggle.isInactive,
.UserStatusLink.isInactive {
    background: linear-gradient(135deg, #d93a4a, #b11226) !important;
}

.TrendMetricGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.MetricCard.isTrend {
    padding: 12px;
    text-align: center;
}

.MetricCard.isTrend strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
}

.MetricCard.isTrend p {
    margin-top: 3px;
}

.WeatherSummaryGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.WeatherSummaryCard {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(248, 249, 251, 0.96);
    border: 1px solid rgba(215, 221, 231, 0.9);
}

.WeatherSummaryCard strong {
    font-size: 0.8rem;
}

.WeatherSummaryCard span {
    color: var(--TextMuted);
    font-size: 0.66rem;
    font-weight: 700;
}

.ReportCard.isTrend {
    align-items: center;
}

@media (max-width: 390px) {
    .QuickMenuGridSimple {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 2px;
    }

    .QuickMenuMiniIcon {
        width: 24px;
        height: 24px;
        padding: 4px;
    }

    .QuickMenuMini strong {
        font-size: 0.54rem;
    }

    .WeatherSummaryGrid,
    .TrendMetricGrid,
    .FieldGrid,
    .CounterGrid,
    .PhotoPreviewGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .UserCard {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .UserCard .InlineActions {
        flex-direction: row;
        gap: 6px;
    }

    .LoginHero {
        min-height: 182px;
        padding: 24px 18px 86px;
    }
}
