﻿/* OmniFix iOS Liquid V4 final override.
   Loaded after app.css and scoped to current Blazor class names. */
:root {
    --ios-v4-bg: #f5f5f7;
    --ios-v4-bg-deep: #eeeeef;
    --ios-v4-card: #ffffff;
    --ios-v4-card-strong: #ffffff;
    --ios-v4-border: rgba(0, 0, 0, 0.08);
    --ios-v4-hairline: rgba(0, 0, 0, 0.06);
    --ios-v4-text: #1d1d1f;
    --ios-v4-muted: #6e6e73;
    --ios-v4-teal: #007aff;
    --ios-v4-blue: #007aff;
    --ios-v4-amber: #bf5b00;
    --ios-v4-green: #248a3d;
    --ios-v4-red: #d70015;
    --ios-v4-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
    --ios-v4-soft-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
    --omni-body-font: "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC", "Segoe UI", Arial, sans-serif;
    --omni-display-font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC", "Segoe UI", Arial, sans-serif;
    --omni-label-font: "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

html body .manual-answer-card {
    border-color: rgba(23, 108, 114, 0.18) !important;
}

html body .manual-answer-result {
    margin-top: 18px;
}

html body .manual-answer-summary {
    align-items: center;
    background: rgba(23, 108, 114, 0.08);
    border: 1px solid rgba(23, 108, 114, 0.14);
    border-radius: 18px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px;
}

html body .manual-answer-summary strong {
    color: #176c72;
    font-size: 17px;
}

html body .manual-answer-summary span {
    color: #52636b;
    font-size: 15px;
}

html body .manual-answer-main {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(12, 37, 46, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(22, 52, 65, 0.08);
    color: #12272f;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.55;
    margin: 14px 0;
    padding: 18px 20px;
}

html body .manual-answer-candidates {
    display: grid;
    gap: 10px;
    margin: 12px 0 16px;
}

html body .manual-answer-candidate {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(12, 37, 46, 0.1);
    border-radius: 18px;
    display: grid;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    padding: 14px 16px;
}

html body .manual-answer-candidate strong {
    color: #12272f;
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

html body .manual-answer-candidate span {
    color: #176c72;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

html body .manual-answer-candidate p {
    color: #52636b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

html body .manual-answer-candidate--drawing-region {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 249, 0.86));
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 14px 34px rgba(23, 47, 57, 0.08);
    gap: 10px;
    padding: 16px;
}

html body .manual-answer-candidate--drawing-region strong {
    align-items: center;
    display: flex;
    gap: 10px;
    font-size: 18px;
}

html body .manual-answer-candidate--drawing-region strong::before {
    align-items: center;
    background: rgba(0, 122, 255, 0.12);
    border: 1px solid rgba(0, 122, 255, 0.22);
    border-radius: 12px;
    color: #0057d8;
    content: "□";
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 17px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    width: 30px;
}

html body .manual-answer-followups {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(12, 37, 46, 0.12);
    border-radius: 22px;
    display: grid;
    gap: 14px;
    margin: 14px 0 20px;
    padding: 16px;
}

html body .manual-answer-refinement-heading {
    align-items: end;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

html body .manual-answer-refinement-heading strong {
    color: #12272f;
    font-size: 20px;
    font-weight: 860;
    line-height: 1.3;
}

html body .manual-answer-refinement-heading span {
    color: #52636b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-align: right;
}

html body .manual-answer-selection-group {
    background: rgba(245, 248, 250, 0.92);
    border: 1px solid rgba(12, 37, 46, 0.1);
    border-radius: 18px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

html body .manual-answer-selection-group--drawing {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 247, 249, 0.9));
    border-color: rgba(0, 122, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px rgba(23, 47, 57, 0.08);
}

html body .manual-answer-selection-copy {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

html body .manual-answer-selection-copy strong {
    color: #12272f;
    font-size: 17px;
    font-weight: 840;
    line-height: 1.25;
}

html body .manual-answer-selection-copy span {
    color: #52636b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    max-width: 620px;
    text-align: right;
}

html body .manual-answer-followup-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

html body .manual-answer-selection-group--drawing .manual-answer-followup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html body .manual-answer-followup {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(12, 37, 46, 0.14);
    border-radius: 16px;
    color: #12272f;
    cursor: pointer;
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 14px 16px;
    text-align: left;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

html body .manual-answer-followup--drawing-region {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 251, 0.92));
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    min-height: 146px;
    overflow: hidden;
    padding: 16px;
    position: relative;
}

html body .manual-answer-followup--drawing-region::before {
    background:
        linear-gradient(90deg, rgba(0, 122, 255, 0.22), rgba(23, 108, 114, 0.12));
    border-radius: 999px;
    content: "";
    height: 6px;
    inset: 0 16px auto;
    position: absolute;
}

html body .manual-answer-followup--drawing-region::after {
    align-items: center;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.18);
    border-radius: 999px;
    color: #0057d8;
    content: "区域";
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    height: 26px;
    justify-content: center;
    letter-spacing: 0;
    padding: 0 10px;
    position: absolute;
    right: 14px;
    top: 16px;
}

html body .manual-answer-followup:hover {
    border-color: rgba(23, 108, 114, 0.38);
    box-shadow: 0 12px 24px rgba(22, 52, 65, 0.1);
    transform: translateY(-1px);
}

html body .manual-answer-followup--drawing-region:hover {
    border-color: rgba(0, 122, 255, 0.36);
    box-shadow: 0 18px 36px rgba(0, 122, 255, 0.1);
}

html body .manual-answer-followup span {
    color: #176c72;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.25;
}

html body .manual-answer-followup--drawing-region span {
    color: #12272f;
    font-size: 20px;
    max-width: calc(100% - 58px);
}

html body .manual-answer-followup small {
    color: #6f7f88;
    font-size: 13px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.35;
}

html body .manual-answer-followup--drawing-region small {
    color: #0057d8;
    font-size: 12px;
    padding-top: 8px;
}

html body .manual-answer-followup em {
    color: #52636b;
    font-size: 14px;
    font-style: normal;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

html body .manual-answer-followup--drawing-region em {
    border-top: 1px solid rgba(12, 37, 46, 0.08);
    color: #52636b;
    margin-top: 8px;
    padding-top: 10px;
}

@media (max-width: 640px) {
    html body .manual-answer-refinement-heading {
        align-items: start;
        display: grid;
    }

    html body .manual-answer-refinement-heading span,
    html body .manual-answer-selection-copy span {
        text-align: left;
    }

    html body .manual-answer-selection-copy {
        align-items: start;
        display: grid;
    }

    html body .manual-answer-followup-grid {
        grid-template-columns: 1fr;
    }

    html body .manual-answer-selection-group--drawing .manual-answer-followup-grid {
        grid-template-columns: 1fr;
    }

    html body .manual-answer-followup--drawing-region {
        min-height: 118px;
    }
}

/* RC login final: original mobile icon, glass card, and intro motion. */
html body .ios-auth-shell {
    background:
        radial-gradient(circle at 7% 20%, rgba(255, 255, 255, 0.2), transparent 11%),
        linear-gradient(115deg, #050608 0%, #101217 47%, #cfd7e0 48%, #eef3f8 100%) !important;
}

html body .ios-auth-shell .ios-login-page {
    grid-template-columns: minmax(560px, 1.04fr) minmax(420px, 0.96fr) !important;
}

html body .ios-auth-shell .ios-login-hero {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 14%),
        radial-gradient(circle at 76% 68%, rgba(110, 220, 255, 0.08), transparent 26%),
        linear-gradient(145deg, #050608 0%, #101217 58%, #171b22 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34) !important;
    padding: 44px 44px 58px !important;
}

html body .ios-auth-shell .ios-login-hero::before {
    animation: omniOriginalIconStage 1200ms cubic-bezier(.16, 1, .3, 1) both !important;
    background: url("images/omnifix-icon-large.png") center / cover no-repeat !important;
    border: 0 !important;
    border-radius: clamp(44px, 6.2vw, 72px) !important;
    box-shadow:
        0 28px 66px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    color: transparent !important;
    content: "" !important;
    display: block !important;
    height: clamp(230px, 24vw, 330px) !important;
    inset: 14% auto auto 9% !important;
    opacity: 1 !important;
    text-shadow: none !important;
    width: clamp(230px, 24vw, 330px) !important;
    z-index: 0 !important;
}

html body .ios-auth-shell .ios-login-hero::after {
    animation: omniOriginalLightSweep 2100ms cubic-bezier(.16, 1, .3, 1) 260ms both !important;
    background: linear-gradient(104deg, transparent 0%, transparent 39%, rgba(255, 255, 255, 0.5) 49%, transparent 61%, transparent 100%) !important;
    filter: blur(0.2px) !important;
    inset: -28% auto -28% -48% !important;
    mix-blend-mode: screen !important;
    transform: rotate(9deg) !important;
    width: 38% !important;
    z-index: 3 !important;
}

html body .ios-auth-shell .ios-login-brand {
    align-self: end !important;
    animation: omniOriginalBrandSettle 980ms cubic-bezier(.16, 1, .3, 1) 180ms both !important;
    display: grid !important;
    filter: none !important;
    gap: 24px !important;
    grid-template-columns: 1fr !important;
    margin: 0 0 42px 4px !important;
}

html body .ios-auth-shell .ios-login-brand .ios-brand-mark {
    animation: omniOriginalIconPin 980ms cubic-bezier(.16, 1, .3, 1) 120ms both !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: none !important;
    height: 0 !important;
    overflow: visible !important;
    width: 0 !important;
}

html body .ios-auth-shell .ios-login-brand .ios-brand-mark img {
    border-radius: 22px !important;
    display: block !important;
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.36)) !important;
    height: 76px !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transform: translate(0, -6px) scale(0.9) !important;
    width: 76px !important;
}

html body .ios-auth-shell .ios-login-brand span:not(.ios-brand-mark) {
    color: #ffffff !important;
    font-size: clamp(72px, 7.2vw, 102px) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 0.94 !important;
    text-shadow: 0 22px 58px rgba(0, 0, 0, 0.38) !important;
}

html body .ios-auth-shell .ios-login-brand small {
    color: rgba(221, 230, 242, 0.94) !important;
    display: block !important;
    font-size: clamp(22px, 2vw, 29px) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    margin-top: 20px !important;
}

html body .ios-auth-shell .ios-login-copy {
    display: none !important;
}

html body .ios-auth-shell .ios-login-panel-grid {
    align-content: center !important;
    isolation: isolate !important;
    position: relative !important;
}

html body .ios-auth-shell .ios-login-panel-grid::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(203, 214, 226, 0.22) 43%, transparent 70%) !important;
    border-radius: 999px !important;
    content: "" !important;
    height: min(60vw, 720px) !important;
    position: absolute !important;
    right: -26% !important;
    top: 4% !important;
    width: min(60vw, 720px) !important;
    z-index: -1 !important;
}

html body .ios-auth-shell .ios-login-form {
    animation: omniLoginCardRise 820ms cubic-bezier(.16, 1, .3, 1) 320ms both !important;
    background: rgba(248, 250, 253, 0.74) !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    border-radius: 30px !important;
    box-shadow:
        0 28px 74px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    max-width: 410px !important;
    padding: 42px !important;
    place-self: center !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.18) !important;
    backdrop-filter: blur(22px) saturate(1.18) !important;
}

html body .ios-auth-shell .ios-login-form .ios-panel-header .ios-kicker {
    color: #344054 !important;
    font-size: 21px !important;
    font-weight: 850 !important;
}

html body .ios-auth-shell .ios-login-form .ios-panel-header h2 {
    color: #070914 !important;
    font-size: clamp(38px, 3.2vw, 44px) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

html body .ios-auth-shell .ios-login-form .ios-field {
    background: rgba(255, 255, 255, 0.68) !important;
    border: 1px solid rgba(215, 223, 234, 0.96) !important;
    border-radius: 16px !important;
    padding: 15px 17px !important;
}

html body .ios-auth-shell .ios-login-form .ios-field span {
    color: #667085 !important;
    font-size: 16px !important;
    font-weight: 760 !important;
}

html body .ios-auth-shell .ios-login-form .ios-field input.form-control {
    font-size: 19px !important;
    font-weight: 650 !important;
}

html body .ios-auth-shell .ios-login-form .primary-action {
    background: linear-gradient(100deg, #101828 0%, #2b3448 56%, #6edcff 100%) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18) !important;
}

html body .ios-auth-shell .ios-login-form .secondary-action {
    border-color: rgba(16, 24, 40, 0.28) !important;
    color: #101828 !important;
}

@keyframes omniOriginalIconStage {
    0% {
        filter: blur(1px);
        opacity: 0;
        transform: translate(-26vw, 6vh) scale(1.34);
    }
    56% {
        filter: blur(0);
        opacity: 1;
        transform: translate(1.8vw, -0.8vh) scale(1.04);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes omniOriginalIconPin {
    0%, 72% {
        opacity: 0;
        transform: translate(88px, -150px) scale(3.2);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes omniOriginalBrandSettle {
    0% {
        opacity: 0;
        transform: translate(12vw, 10vh) scale(1.12);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes omniOriginalLightSweep {
    0% {
        opacity: 0;
        transform: translateX(0) rotate(9deg);
    }
    18% {
        opacity: 0.92;
    }
    100% {
        opacity: 0;
        transform: translateX(395%) rotate(9deg);
    }
}

@keyframes omniLoginCardRise {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .ios-auth-shell .ios-login-hero::before,
    html body .ios-auth-shell .ios-login-hero::after,
    html body .ios-auth-shell .ios-login-brand,
    html body .ios-auth-shell .ios-login-brand .ios-brand-mark,
    html body .ios-auth-shell .ios-login-form {
        animation: none !important;
    }
}

@media (max-width: 1100px) {
    html body .ios-auth-shell .ios-login-page {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body .ios-auth-shell .ios-login-form {
        max-width: 540px !important;
    }
}

@media (max-width: 720px) {
    html body .ios-auth-shell {
        background:
            radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.2), transparent 16%),
            linear-gradient(180deg, #050608 0%, #101217 62%, #dfe6ee 100%) !important;
    }

    html body .ios-auth-shell .ios-auth-main {
        padding: 0 !important;
    }

    html body .ios-auth-shell .ios-login-page {
        gap: 0 !important;
        min-height: 100vh !important;
    }

    html body .ios-auth-shell .ios-login-hero {
        background:
            radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.2), transparent 22%),
            linear-gradient(180deg, #050608 0%, #101217 100%) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: 420px !important;
        padding: 34px 28px 22px !important;
    }

    html body .ios-auth-shell .ios-login-hero::before {
        border-radius: 44px !important;
        height: 174px !important;
        inset: 72px auto auto 50% !important;
        transform: translateX(-50%) !important;
        width: 174px !important;
    }

    html body .ios-auth-shell .ios-login-brand {
        align-self: end !important;
        justify-items: center !important;
        margin: 0 0 24px !important;
        text-align: center !important;
    }

    html body .ios-auth-shell .ios-login-brand .ios-brand-mark {
        display: none !important;
    }

    html body .ios-auth-shell .ios-login-brand span:not(.ios-brand-mark) {
        font-size: 52px !important;
        line-height: 1 !important;
    }

    html body .ios-auth-shell .ios-login-brand small {
        font-size: 19px !important;
        margin-top: 12px !important;
    }

    html body .ios-auth-shell .ios-login-panel-grid {
        background:
            radial-gradient(circle at 86% 26%, rgba(255, 255, 255, 0.44), transparent 40%),
            linear-gradient(180deg, rgba(223, 230, 238, 0), #dfe6ee 42%, #eef3f8 100%) !important;
        margin-top: -20px !important;
        padding: 0 28px 34px !important;
    }

    html body .ios-auth-shell .ios-login-panel-grid::before {
        display: none !important;
    }

    html body .ios-auth-shell .ios-login-form {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.22) !important;
        border-radius: 30px !important;
        box-shadow:
            0 24px 54px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
        max-width: none !important;
        padding: 34px 30px 30px !important;
        -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
        backdrop-filter: blur(22px) saturate(1.08) !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-panel-header .ios-kicker {
        color: #e5eef8 !important;
        font-size: 21px !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-panel-header h2 {
        color: #ffffff !important;
        font-size: 34px !important;
        line-height: 1.1 !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field {
        background: rgba(255, 255, 255, 0.13) !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field span,
    html body .ios-auth-shell .ios-login-form .ios-check {
        color: #c9d7e8 !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field input.form-control {
        color: #ffffff !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field input.form-control::placeholder {
        color: rgba(229, 238, 248, 0.56) !important;
    }
}

/* Manual library quality card: final responsive polish. */
.manual-closure-card {
    overflow: hidden;
}

.manual-closure-card .panel-heading {
    align-items: flex-start;
    gap: 16px;
}

.manual-closure-card .panel-heading > div {
    min-width: 0;
}

.manual-closure-card .panel-heading h2 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.08;
}

.manual-closure-card .panel-heading .v3-muted {
    max-width: 72ch;
}

.manual-closure-card .v3-pill {
    line-height: 1.35;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
}

.manual-closure-card .manual-health-grid {
    align-items: stretch;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.manual-closure-card .manual-health-grid > div {
    align-content: space-between;
    display: grid;
    min-height: 88px;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
}

.manual-closure-card .manual-health-grid span {
    font-size: 12px;
    line-height: 1.28;
    min-width: 0;
    overflow-wrap: anywhere;
}

.manual-closure-card .manual-health-grid strong {
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.02;
    margin-top: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.manual-closure-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.manual-closure-actions .primary-action,
.manual-closure-actions .secondary-action {
    justify-content: center;
    min-height: 42px;
    min-width: 0;
    padding-inline: 14px;
    white-space: normal;
    width: 100%;
}

.manual-closure-card .status-strip--inline,
.manual-closure-card .manual-issues {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.manual-closure-card .status-strip--inline span,
.manual-closure-card .manual-issues span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.manual-tool-drawer {
    padding: 0;
}

.manual-tool-drawer-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    list-style: none;
    padding: 18px 20px;
}

.manual-tool-drawer-summary::-webkit-details-marker {
    display: none;
}

.manual-tool-drawer-summary::after {
    align-items: center;
    background: #f0f7f8;
    border: 1px solid rgba(23, 108, 114, 0.18);
    border-radius: 999px;
    color: #176c72;
    content: "+";
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 18px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
    order: 3;
    width: 28px;
}

.manual-tool-drawer[open] > .manual-tool-drawer-summary::after {
    content: "-";
}

.manual-tool-drawer-summary > span:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.manual-tool-drawer-summary strong {
    color: #132126;
    font-size: 22px;
    line-height: 1.12;
}

.manual-tool-drawer-summary small {
    color: #61737b;
    font-size: 12px;
    line-height: 1.35;
}

.manual-tool-drawer-summary .v3-pill {
    flex: 0 0 auto;
}

.manual-tool-drawer-body {
    border-top: 1px solid #dde5ea;
    display: grid;
    gap: 12px;
    padding: 12px;
}

.manual-tool-drawer-body > .v3-card {
    background: #f9fbfc;
    border-color: #dde5ea;
    box-shadow: none;
}

.manual-tool-drawer-body > .v3-card .panel-heading h2 {
    font-size: clamp(20px, 2.2vw, 24px);
}

.manual-library-main {
    min-width: 0;
}

.manual-module-hub {
    background: #ffffff;
    border: 1px solid #dde5ea;
    border-radius: 18px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.manual-module-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.manual-module-heading h2 {
    color: #132126;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.1;
    margin: 0;
}

.manual-module-heading p {
    color: #61737b;
    font-size: 13px;
    line-height: 1.45;
    margin: 6px 0 0;
}

.manual-module-list {
    display: grid;
    gap: 10px;
}

.manual-module-panel {
    background: #f8fbfc;
    border: 1px solid #dde5ea;
    border-radius: 14px;
    overflow: hidden;
}

.manual-module-panel > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    list-style: none;
    padding: 14px 16px;
}

.manual-module-panel > summary::-webkit-details-marker {
    display: none;
}

.manual-module-panel > summary::after {
    align-items: center;
    background: #eef7f8;
    border: 1px solid rgba(23, 108, 114, 0.18);
    border-radius: 999px;
    color: #176c72;
    content: "+";
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 18px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.manual-module-panel[open] > summary::after {
    content: "-";
}

.manual-module-panel > summary span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.manual-module-panel > summary strong {
    color: #132126;
    font-size: 16px;
    line-height: 1.2;
}

.manual-module-panel > summary small {
    color: #61737b;
    font-size: 12px;
    line-height: 1.35;
}

.manual-module-panel > .v3-card {
    background: #ffffff;
    border: 0;
    border-radius: 0;
    border-top: 1px solid #dde5ea;
    box-shadow: none;
    padding: 16px;
}

.manual-module-panel > .v3-card .panel-heading h2 {
    font-size: clamp(19px, 2vw, 24px);
}

.manual-module-panel .manual-health-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

@media (max-width: 720px) {
    .manual-closure-card {
        padding: 18px;
    }

    .manual-closure-card .panel-heading {
        display: grid;
        gap: 12px;
    }

    .manual-closure-card .panel-heading h2 {
        font-size: clamp(26px, 7.2vw, 34px);
    }

    .manual-closure-card .v3-pill {
        justify-self: start;
        max-width: min(100%, 286px);
        padding: 8px 12px;
    }

    .manual-closure-card .manual-health-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 16px;
    }

    .manual-closure-card .manual-health-grid > div:nth-child(n+5) {
        display: none;
    }

    .manual-closure-card .manual-health-grid > div {
        min-height: 92px;
        padding: 12px 10px;
    }

    .manual-closure-card .manual-health-grid strong {
        font-size: clamp(24px, 8vw, 30px);
    }

    .manual-closure-actions {
        grid-template-columns: 1fr;
    }

    .manual-closure-actions .primary-action,
    .manual-closure-actions .secondary-action {
        min-height: 46px;
    }

    .manual-tool-drawer-summary {
        align-items: flex-start;
        padding: 16px;
    }

    .manual-tool-drawer-summary strong {
        font-size: 24px;
    }

    .manual-tool-drawer-summary .v3-pill {
        display: none;
    }

    .manual-tool-drawer-body {
        padding: 10px;
    }

    .manual-tool-drawer-body .manual-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manual-module-hub {
        border-radius: 18px;
        padding: 14px;
    }

    .manual-module-heading {
        align-items: flex-start;
    }

    .manual-module-heading .v3-pill {
        display: none;
    }

    .manual-module-panel > summary {
        padding: 14px;
    }

    .manual-module-panel > .v3-card {
        padding: 14px;
    }

    .manual-module-panel .manual-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .manual-closure-card .manual-health-grid {
        grid-template-columns: 1fr;
    }
}

/* Login hero brand pass: make OmniFix the first signal and keep auth page free of app chrome. */
html body .ios-auth-shell .ios-auth-topbar {
    display: none !important;
}

html body .ios-auth-shell {
    background:
        linear-gradient(115deg, rgba(7, 9, 18, 0.96) 0%, rgba(19, 29, 54, 0.84) 38%, rgba(242, 246, 251, 0.96) 39%, rgba(248, 250, 253, 1) 100%) !important;
    overflow-x: hidden !important;
}

html body .ios-auth-main {
    min-height: 100vh !important;
    padding: 28px !important;
}

html body .ios-auth-content {
    align-items: stretch !important;
    display: grid !important;
    min-height: calc(100vh - 56px) !important;
    padding: 0 !important;
}

html body .ios-login-page {
    align-items: stretch !important;
    display: grid !important;
    gap: 28px !important;
    grid-template-columns: minmax(560px, 1.12fr) minmax(420px, 0.78fr) !important;
    min-height: calc(100vh - 56px) !important;
}

html body .ios-login-hero {
    align-content: stretch !important;
    background:
        radial-gradient(circle at 18% 42%, rgba(77, 219, 224, 0.3), transparent 20%),
        radial-gradient(circle at 70% 58%, rgba(0, 122, 255, 0.2), transparent 26%),
        linear-gradient(145deg, rgba(9, 31, 37, 0.98), rgba(8, 45, 52, 0.84)) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 38px !important;
    box-shadow: 0 34px 90px rgba(3, 16, 20, 0.34) !important;
    color: #ffffff !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 44px !important;
    position: relative !important;
}

html body .ios-login-hero::before {
    animation: omniLogoDrift 1300ms cubic-bezier(.16, 1, .3, 1) both !important;
    background:
        radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.34), transparent 17%),
        radial-gradient(circle at 54% 50%, rgba(98, 236, 239, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 42px !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 42px 110px rgba(64, 231, 236, 0.16) !important;
    content: "OF" !important;
    display: grid !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(112px, 14vw, 236px) !important;
    font-weight: 900 !important;
    height: clamp(220px, 28vw, 420px) !important;
    inset: auto auto 8% -4% !important;
    justify-items: center !important;
    line-height: 1 !important;
    place-items: center !important;
    position: absolute !important;
    text-shadow: 0 14px 42px rgba(0, 0, 0, 0.24) !important;
    width: clamp(220px, 28vw, 420px) !important;
    z-index: 0 !important;
}

html body .ios-login-hero::after {
    animation: omniLightSweep 2200ms ease-out both !important;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.0) 38%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.0) 62%, transparent 100%) !important;
    content: "" !important;
    inset: -30% auto -30% -55% !important;
    position: absolute !important;
    transform: rotate(8deg) !important;
    width: 46% !important;
    z-index: 1 !important;
}

html body .ios-login-brand {
    align-items: flex-start !important;
    animation: omniBrandSettle 1100ms cubic-bezier(.16, 1, .3, 1) 180ms both !important;
    display: flex !important;
    gap: 20px !important;
    grid-column: auto !important;
    justify-self: start !important;
    position: relative !important;
    z-index: 2 !important;
}

html body .ios-login-brand .ios-brand-mark {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
    color: #082b31 !important;
    font-size: 28px !important;
    height: 76px !important;
    letter-spacing: 0 !important;
    width: 76px !important;
}

html body .ios-login-brand span:not(.ios-brand-mark) {
    color: #ffffff !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(64px, 7vw, 128px) !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    line-height: 0.88 !important;
    text-shadow: 0 18px 54px rgba(0, 0, 0, 0.32) !important;
}

html body .ios-login-brand small,
html body .ios-login-copy .ios-kicker,
html body .ios-login-copy h1,
html body .ios-login-copy p,
html body .ios-login-visual,
html body .ios-login-health {
    display: none !important;
}

html body .ios-login-copy {
    align-self: end !important;
    color: rgba(232, 251, 252, 0.82) !important;
    max-width: 540px !important;
    min-height: 84px !important;
    position: relative !important;
    z-index: 2 !important;
}

html body .ios-login-copy::before {
    color: rgba(232, 251, 252, 0.88) !important;
    content: "Robot Service Platform" !important;
    display: block !important;
    font-size: clamp(18px, 1.7vw, 26px) !important;
    font-weight: 760 !important;
    line-height: 1.15 !important;
}

html body .ios-login-copy::after {
    background: linear-gradient(90deg, rgba(101, 238, 242, 0.86), rgba(255, 255, 255, 0.0)) !important;
    border-radius: 999px !important;
    content: "" !important;
    display: block !important;
    height: 5px !important;
    margin-top: 20px !important;
    width: min(360px, 62%) !important;
}

html body .ios-login-panel-grid {
    align-content: center !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: 1fr !important;
}

html body .ios-login-form {
    align-self: center !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: 34px !important;
    box-shadow: 0 28px 80px rgba(20, 39, 46, 0.16) !important;
    min-height: 0 !important;
    padding: 42px !important;
    width: 100% !important;
}

html body .ios-login-form .ios-panel-header {
    margin-bottom: 28px !important;
}

html body .ios-login-form .ios-panel-header .ios-kicker {
    color: #0071e3 !important;
    display: block !important;
    font-size: 15px !important;
    font-weight: 850 !important;
}

html body .ios-login-form .ios-panel-header h2 {
    color: #11181c !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(36px, 3.2vw, 52px) !important;
    font-weight: 880 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.02 !important;
}

html body .ios-login-form .ios-field {
    background: #ffffff !important;
    border: 1px solid rgba(17, 24, 28, 0.12) !important;
    border-radius: 22px !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    padding: 18px 20px !important;
}

html body .ios-login-form .ios-field span,
html body .ios-login-form .ios-check {
    color: #182a31 !important;
    font-size: 17px !important;
    font-weight: 820 !important;
}

html body .ios-login-form .ios-field input.form-control {
    color: #11181c !important;
    font-size: 21px !important;
    font-weight: 680 !important;
    min-height: 42px !important;
}

html body .ios-login-form .ios-check {
    margin: 12px 0 24px !important;
}

html body .ios-login-form .ios-check input {
    height: 20px !important;
    width: 20px !important;
}

html body .ios-login-form .ios-action-row {
    gap: 14px !important;
    margin: 26px 0 0 !important;
}

html body .ios-login-form .primary-action,
html body .ios-login-form .secondary-action {
    border-radius: 999px !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    min-height: 58px !important;
    padding-inline: 24px !important;
}

@keyframes omniLogoDrift {
    0% {
        filter: blur(1px);
        opacity: 0;
        transform: translate(32vw, -16vh) scale(1.48);
    }
    62% {
        filter: blur(0);
        opacity: 1;
        transform: translate(3vw, -2vh) scale(1.06);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes omniBrandSettle {
    0% {
        opacity: 0;
        transform: translate(18vw, 24vh) scale(1.34);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes omniLightSweep {
    0% {
        opacity: 0;
        transform: translateX(0) rotate(8deg);
    }
    24% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(360%) rotate(8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .ios-login-hero::before,
    html body .ios-login-hero::after,
    html body .ios-login-brand {
        animation: none !important;
    }
}

@media (max-width: 1100px) {
    html body .ios-login-page {
        grid-template-columns: 1fr !important;
    }

    html body .ios-login-hero {
        min-height: 380px !important;
    }
}

@media (max-width: 720px) {
    html body .ios-auth-main {
        padding: 14px !important;
    }

    html body .ios-auth-content,
    html body .ios-login-page {
        min-height: auto !important;
    }

    html body .ios-login-page {
        gap: 14px !important;
    }

    html body .ios-login-hero {
        border-radius: 28px !important;
        min-height: 260px !important;
        padding: 28px !important;
    }

    html body .ios-login-hero::before {
        border-radius: 30px !important;
        height: 190px !important;
        inset: auto auto 4% -10% !important;
        width: 190px !important;
    }

    html body .ios-login-brand {
        gap: 14px !important;
    }

    html body .ios-login-brand .ios-brand-mark {
        border-radius: 18px !important;
        font-size: 21px !important;
        height: 56px !important;
        width: 56px !important;
    }

    html body .ios-login-brand span:not(.ios-brand-mark) {
        font-size: clamp(48px, 14vw, 76px) !important;
    }

    html body .ios-login-copy {
        min-height: 54px !important;
    }

    html body .ios-login-copy::before {
        font-size: 16px !important;
    }

    html body .ios-login-form {
        border-radius: 28px !important;
        padding: 28px !important;
    }

    html body .ios-login-form .ios-panel-header h2 {
        font-size: 34px !important;
    }

    html body .ios-login-form .ios-field input.form-control {
        font-size: 19px !important;
    }
}

/* Apple Store V4 final refinements: lighter mobile rail and less dashboard-like login. */
html body .ios-login-visual {
    display: none !important;
}

html body .ios-login-copy {
    max-width: 720px !important;
}

html body .workbench-input-panel,
html body .workbench-result-area {
    min-height: 520px !important;
}

html body .workbench-empty-start {
    min-height: 484px !important;
}

@media (max-width: 960px) {
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail,
    html body .operator-shell .shell-sidebar {
        display: flex !important;
        gap: 10px !important;
        max-height: 78px !important;
        padding: 10px !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .brand-block,
    html body .operator-shell .shell-sidebar .brand-block,
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-stack--secondary,
    html body .operator-shell .shell-sidebar .nav-stack--secondary,
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .sidebar-card,
    html body .operator-shell .shell-sidebar .sidebar-card,
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .sidebar-user,
    html body .operator-shell .shell-sidebar .sidebar-user {
        display: none !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-stack,
    html body .operator-shell .shell-sidebar .nav-stack {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        gap: 8px !important;
        height: 48px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-item-link,
    html body .operator-shell .shell-sidebar .nav-item-link {
        flex: 0 0 auto !important;
        min-height: 48px !important;
        padding: 0 18px !important;
        width: auto !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-item-index,
    html body .operator-shell .shell-sidebar .nav-item-index,
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-item-copy small,
    html body .operator-shell .shell-sidebar .nav-item-copy small {
        display: none !important;
    }

    html body .workbench-input-panel,
    html body .workbench-result-area,
    html body .workbench-empty-start {
        min-height: 0 !important;
    }
}

/* Apple Store V4 copy reduction: absolute final layer. */
html body .workspace-header .muted,
html body .topbar-copy p,
html body .panel-heading p,
html body .ios-panel-header p,
html body .ios-hero-card p,
html body .ios-login-copy p,
html body .workbench-hero-copy p:not(.eyebrow),
html body .workbench-input-panel .muted,
html body .workbench-evidence-panel .muted,
html body .workbench-empty-start p,
html body .workbench-empty-start .muted,
html body .v3-card > p.v3-muted,
html body .v3-card .v3-muted,
html body .v3-note,
html body .ios-form-note,
html body .ios-empty-copy,
html body .sidebar-card p,
html body .sidebar-user-role,
html body .nav-item-copy small {
    display: none !important;
}

html body .workbench-hero {
    min-height: 230px !important;
}

html body .workbench-hero-copy h1 {
    margin-bottom: 0 !important;
}

html body .panel-heading,
html body .ios-panel-header {
    margin-bottom: 18px !important;
}

html body .workspace-header {
    align-items: center !important;
}

/* Apple Store V4 copy reduction: remove secondary empty-state explanations. */
html body p.empty-state,
html body .empty-state p,
html body .v3-empty,
html body .figma-empty p,
html body .workbench-evidence-empty p,
html body .robot-empty-state span,
html body .operator-empty-state p,
html body .service-attachment-empty,
html body .ai-quick-switch-empty {
    display: none !important;
}

/* Apple Store V4 copy reduction: remove non-functional brand subtitles. */
html body .brand-subtitle,
html body .ios-login-brand small,
html body .operator-status small,
html body .omni-shell.omni-shell--service.ios-shell .brand-subtitle,
html body .omni-shell.omni-shell--service.ios-shell .operator-status small,
html body .operator-shell .brand-subtitle,
html body .operator-shell .operator-status small {
    display: none !important;
}

/* Apple Store V4 copy reduction: remove secondary empty-state explanations. */
html body p.empty-state,
html body .empty-state p,
html body .v3-empty,
html body .figma-empty p,
html body .workbench-evidence-empty p,
html body .robot-empty-state span,
html body .operator-empty-state p,
html body .service-attachment-empty,
html body .ai-quick-switch-empty {
    display: none !important;
}

/* Apple Store V4 copy reduction: final override, keep at the physical end. */
html body .workspace-header .muted,
html body .topbar-copy p,
html body .panel-heading p,
html body .ios-panel-header p,
html body .ios-hero-card p,
html body .ios-login-copy p,
html body .workbench-hero-copy p:not(.eyebrow),
html body .workbench-input-panel .muted,
html body .workbench-evidence-panel .muted,
html body .workbench-empty-start p,
html body .workbench-empty-start .muted,
html body .v3-card > p.v3-muted,
html body .v3-card .v3-muted,
html body .v3-note,
html body .ios-form-note,
html body .ios-empty-copy,
html body .sidebar-card p,
html body .sidebar-user-role,
html body .nav-item-copy small {
    display: none !important;
}

html body .workbench-hero {
    min-height: 230px !important;
}

html body .workbench-hero-copy h1 {
    margin-bottom: 0 !important;
}

html body .panel-heading,
html body .ios-panel-header {
    margin-bottom: 18px !important;
}

html body .workspace-header {
    align-items: center !important;
}

/* Apple Store V4 copy reduction: remove explanatory microcopy from the UI. */
html body .workspace-header .muted,
html body .topbar-copy p,
html body .panel-heading p,
html body .ios-panel-header p,
html body .ios-hero-card p,
html body .ios-login-copy p,
html body .workbench-hero-copy p:not(.eyebrow),
html body .workbench-input-panel .muted,
html body .workbench-evidence-panel .muted,
html body .workbench-empty-start p,
html body .workbench-empty-start .muted,
html body .v3-card > p.v3-muted,
html body .v3-card .v3-muted,
html body .v3-note,
html body .ios-form-note,
html body .ios-empty-copy,
html body .sidebar-card p,
html body .sidebar-user-role {
    display: none !important;
}

html body .workbench-hero {
    min-height: 230px !important;
}

html body .workbench-hero-copy h1 {
    margin-bottom: 0 !important;
}

html body .panel-heading,
html body .ios-panel-header {
    margin-bottom: 18px !important;
}

html body .workspace-header {
    align-items: center !important;
}

/* Apple Store V4 focus pass: restore clear field boundaries and hierarchy. */
html body .ios-card,
html body .v3-card,
html body .v3-stat,
html body .panel,
html body .workbench-input-panel,
html body .workbench-result-area,
html body .workbench-evidence-panel,
html body .ios-login-form {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

html body .robot-form-grid label,
html body .robot-maintenance-form label,
html body .manual-import-form label,
html body .manual-search-grid label,
html body .workbench-form label,
html body .ios-field {
    background: #fbfbfd !important;
    border: 1px solid #d7d7dc !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 14px 14px !important;
}

html body .manual-search-grid {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto !important;
}

html body .manual-search-grid label:first-child {
    grid-column: 1 / -1 !important;
}

html body .manual-search-grid .primary-action,
html body .manual-search-grid .secondary-action {
    align-self: end !important;
    min-height: 58px !important;
    padding: 0 22px !important;
}

html body .robot-search-field {
    background: #fbfbfd !important;
    border: 1px solid #d7d7dc !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    padding: 12px 14px 14px !important;
}

html body .robot-form-grid label:focus-within,
html body .robot-maintenance-form label:focus-within,
html body .manual-import-form label:focus-within,
html body .manual-search-grid label:focus-within,
html body .workbench-form label:focus-within,
html body .ios-field:focus-within,
html body .robot-search-field:focus-within {
    background: #ffffff !important;
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14) !important;
}

html body .robot-form-grid label > .form-control,
html body .robot-maintenance-form label > .form-control,
html body .manual-import-form label > .form-control,
html body .manual-search-grid label > .form-control,
html body .workbench-form label > .form-control,
html body .ios-field > .form-control,
html body .robot-search-field > .form-control {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 34px !important;
    padding: 2px 0 0 !important;
}

html body .robot-form-grid textarea.form-control,
html body .robot-maintenance-form textarea.form-control,
html body .workbench-form textarea.form-control,
html body .ios-field textarea.form-control {
    min-height: 70px !important;
}

html body .robot-search-bar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 24px !important;
    padding: 14px !important;
}

html body .panel-heading h2,
html body .v3-card h2,
html body .workbench-input-panel h2 {
    color: #1d1d1f !important;
}

html body .panel-heading p,
html body .workspace-header .muted {
    color: #6e6e73 !important;
}

html body .queue-item,
html body .queue-stack button,
html body .manual-quality-item {
    border: 1px solid #d7d7dc !important;
    box-shadow: none !important;
}

/* Search panels: override legacy grid tracks that squeeze the input/buttons. */
html body .column-stack .panel .robot-search-bar,
html body .workspace-grid .robot-search-bar,
html body .workspace-grid--robot-workbench .robot-search-bar,
html body .workspace-grid--inventory .robot-search-bar {
    align-items: stretch !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body .column-stack .panel .robot-search-bar .robot-search-field,
html body .workspace-grid .robot-search-bar .robot-search-field,
html body .workspace-grid--robot-workbench .robot-search-bar .robot-search-field,
html body .workspace-grid--inventory .robot-search-bar .robot-search-field {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

html body .column-stack .panel .robot-search-bar .robot-search-field .form-control,
html body .workspace-grid .robot-search-bar .robot-search-field .form-control {
    width: 100% !important;
}

html body .column-stack .panel .robot-search-bar .primary-action,
html body .column-stack .panel .robot-search-bar .secondary-action,
html body .workspace-grid .robot-search-bar .primary-action,
html body .workspace-grid .robot-search-bar .secondary-action {
    border-radius: 999px !important;
    box-sizing: border-box !important;
    height: 58px !important;
    min-height: 58px !important;
    min-width: 0 !important;
    padding: 0 18px !important;
    width: 100% !important;
}

@media (max-width: 960px) {
    html body .column-stack .panel .robot-search-bar,
    html body .workspace-grid .robot-search-bar,
    html body .workspace-grid--robot-workbench .robot-search-bar,
    html body .workspace-grid--inventory .robot-search-bar {
        grid-template-columns: 1fr !important;
    }
}

/* Apple Store V4 density authority: keep forms spacious and reduce text pressure. */
html body .workspace-header .muted,
html body .panel-heading p,
html body .ios-panel-header p,
html body .v3-card > p.v3-muted,
html body .v3-card .v3-muted,
html body .workbench-input-panel .muted,
html body .workbench-evidence-panel .muted {
    color: #86868b !important;
    display: -webkit-box !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    max-width: 56ch !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

html body .panel-heading,
html body .ios-panel-header {
    align-items: flex-start !important;
    display: block !important;
    margin-bottom: 22px !important;
}

html body .panel-heading > button,
html body .panel-heading > .secondary-action,
html body .panel-heading > .v3-pill {
    margin-top: 10px !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    width: auto !important;
}

html body .panel-heading h2,
html body .v3-card h2,
html body .workbench-input-panel h2,
html body .workbench-evidence-panel h2 {
    font-size: clamp(28px, 2.2vw, 34px) !important;
    line-height: 1.08 !important;
    margin-bottom: 6px !important;
}

html body .form-control,
html body input.form-control,
html body select.form-control,
html body textarea.form-control {
    border-color: #d2d2d7 !important;
    border-radius: 18px !important;
    font-size: 17px !important;
    min-height: 58px !important;
    padding: 15px 18px !important;
}

html body textarea.form-control {
    min-height: 92px !important;
}

html body label,
html body .workbench-form label,
html body .robot-form-grid label,
html body .robot-maintenance-form label,
html body .manual-import-form label,
html body .manual-search-grid label {
    color: #1d1d1f !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    gap: 8px !important;
}

html body .robot-search-bar {
    align-items: stretch !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 1fr 1fr !important;
}

html body .robot-search-field {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
}

html body .robot-search-field .form-control {
    width: 100% !important;
}

html body .robot-search-bar .primary-action,
html body .robot-search-bar .secondary-action {
    align-items: center !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    height: 58px !important;
    justify-content: center !important;
    min-height: 58px !important;
    padding: 0 18px !important;
    width: 100% !important;
}

html body .robot-search-bar .primary-action::before {
    content: "⌕";
    font-size: 20px;
    line-height: 1;
    margin-right: 8px;
}

html body .robot-form-grid {
    gap: 24px 18px !important;
}

html body .robot-maintenance-form,
html body .manual-import-form,
html body .manual-search-grid,
html body .workbench-form {
    gap: 18px !important;
}

html body .robot-form-grid .form-control,
html body .robot-maintenance-form .form-control {
    background: #fbfbfd !important;
}

html body .queue-item,
html body .queue-stack button,
html body .manual-quality-item,
html body .v3-row {
    border-radius: 20px !important;
    min-height: 86px !important;
    padding: 16px !important;
}

html body .detail-block,
html body .queue-item-body p,
html body .queue-item-body > span,
html body .v3-row span,
html body .v3-row p {
    color: #86868b !important;
    display: -webkit-box !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
}

html body .v3-stat {
    min-height: 206px !important;
    position: relative !important;
}

html body .v3-stat::after,
html body .ios-metric-card::after {
    background: linear-gradient(90deg, #0071e3, rgba(0, 113, 227, 0.08)) !important;
    border-radius: 999px !important;
    bottom: 24px !important;
    content: "" !important;
    height: 8px !important;
    left: 28px !important;
    opacity: 0.5 !important;
    position: absolute !important;
    right: 28px !important;
}

html body .v3-stat-top .v3-note,
html body .sidebar-card p,
html body .topbar-copy p {
    display: none !important;
}

html body .workbench-inline-fields {
    grid-template-columns: 1fr 1fr !important;
}

html body .workbench-result-area {
    min-height: 470px !important;
}

html body .workbench-empty-start {
    min-height: 434px !important;
}

@media (max-width: 960px) {
    html body .workspace-header .muted,
    html body .panel-heading p,
    html body .ios-panel-header p,
    html body .v3-card .v3-muted,
    html body .workbench-input-panel .muted {
        display: none !important;
    }

    html body .panel-heading h2,
    html body .v3-card h2,
    html body .workbench-input-panel h2 {
        font-size: 30px !important;
    }

    html body .robot-search-bar,
    html body .workbench-inline-fields,
    html body .manual-search-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Apple Store V4 density pass: fewer words, larger controls, more visual structure. */
html body .workspace-header .muted,
html body .panel-heading p,
html body .ios-panel-header p,
html body .v3-card > p.v3-muted,
html body .v3-card .v3-muted,
html body .workbench-input-panel .muted,
html body .workbench-evidence-panel .muted {
    color: #86868b !important;
    display: -webkit-box !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    max-width: 56ch !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

html body .panel-heading,
html body .ios-panel-header {
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 22px !important;
}

html body .panel-heading h2,
html body .v3-card h2,
html body .workbench-input-panel h2,
html body .workbench-evidence-panel h2 {
    font-size: clamp(28px, 2.5vw, 38px) !important;
    line-height: 1.08 !important;
    margin-bottom: 6px !important;
}

html body .form-control,
html body input.form-control,
html body select.form-control,
html body textarea.form-control {
    border-color: #d2d2d7 !important;
    border-radius: 18px !important;
    font-size: 17px !important;
    min-height: 58px !important;
    padding: 15px 18px !important;
}

html body textarea.form-control {
    min-height: 92px !important;
}

html body label,
html body .workbench-form label,
html body .robot-form-grid label,
html body .robot-maintenance-form label,
html body .manual-import-form label,
html body .manual-search-grid label {
    color: #1d1d1f !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    gap: 8px !important;
}

html body .robot-search-bar {
    align-items: stretch !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
}

html body .robot-search-field {
    min-width: 0 !important;
    width: 100% !important;
}

html body .robot-search-field .form-control {
    width: 100% !important;
}

html body .robot-search-bar .primary-action,
html body .robot-search-bar .secondary-action {
    min-height: 54px !important;
    width: 100% !important;
}

html body .robot-search-bar .primary-action::before {
    content: "⌕";
    font-size: 20px;
    line-height: 1;
    margin-right: 8px;
}

html body .secondary-action::before {
    content: "";
}

html body .robot-form-grid {
    gap: 22px 12px !important;
}

html body .robot-maintenance-form,
html body .manual-import-form,
html body .manual-search-grid,
html body .workbench-form {
    gap: 18px !important;
}

html body .queue-item,
html body .queue-stack button,
html body .manual-quality-item,
html body .v3-row {
    border-radius: 20px !important;
    min-height: 86px !important;
    padding: 16px !important;
}

html body .detail-block,
html body .queue-item-body p,
html body .queue-item-body > span,
html body .v3-row span,
html body .v3-row p {
    color: #86868b !important;
    display: -webkit-box !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
}

html body .v3-stat {
    min-height: 206px !important;
    position: relative !important;
}

html body .v3-stat::after,
html body .ios-metric-card::after {
    background: linear-gradient(90deg, #0071e3, rgba(0, 113, 227, 0.08)) !important;
    border-radius: 999px !important;
    bottom: 24px !important;
    content: "" !important;
    height: 8px !important;
    left: 28px !important;
    opacity: 0.55 !important;
    position: absolute !important;
    right: 28px !important;
}

html body .v3-stat-top .v3-note,
html body .sidebar-card p,
html body .topbar-copy p {
    display: none !important;
}

html body .workbench-hero-rings {
    gap: 24px !important;
}

html body .workbench-hero-copy .muted,
html body .workbench-hero-copy p:not(.eyebrow) {
    -webkit-line-clamp: 2 !important;
}

html body .workbench-inline-fields {
    grid-template-columns: 1fr !important;
}

html body .workbench-result-area {
    min-height: 470px !important;
}

html body .workbench-empty-start {
    min-height: 434px !important;
}

@media (min-width: 1180px) {
    html body .robot-search-bar {
        grid-template-columns: minmax(0, 1fr) 136px 156px !important;
    }

    html body .robot-search-bar .primary-action,
    html body .robot-search-bar .secondary-action {
        width: auto !important;
    }

    html body .workbench-inline-fields {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 960px) {
    html body .workspace-header .muted,
    html body .panel-heading p,
    html body .ios-panel-header p,
    html body .v3-card .v3-muted,
    html body .workbench-input-panel .muted {
        display: none !important;
    }

    html body .panel-heading h2,
    html body .v3-card h2,
    html body .workbench-input-panel h2 {
        font-size: 30px !important;
    }
}

html,
body,
.omni-shell.omni-shell--service.ios-shell,
.operator-shell,
.ios-auth-shell {
    background: var(--ios-v4-bg) !important;
    color: var(--ios-v4-text) !important;
    font-family: var(--omni-body-font) !important;
    letter-spacing: 0 !important;
}

.omni-shell.omni-shell--service.ios-shell,
.operator-shell {
    display: flex !important;
    min-height: 100vh !important;
    padding: 0 !important;
}

.omni-shell.omni-shell--service.ios-shell .shell-sidebar,
.operator-shell .shell-sidebar {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), var(--ios-v4-soft-shadow) !important;
    box-sizing: border-box !important;
    flex: 0 0 186px !important;
    height: calc(100vh - 44px) !important;
    margin: 24px 0 24px 24px !important;
    overflow: hidden auto !important;
    padding: 20px !important;
    position: sticky !important;
    top: 24px !important;
    width: 186px !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
}

.omni-shell.omni-shell--service.ios-shell .shell-main,
.operator-shell .shell-main {
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 24px 24px 32px 18px !important;
}

.omni-shell.omni-shell--service.ios-shell .shell-topbar,
.operator-shell .shell-topbar,
.ios-auth-topbar {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), var(--ios-v4-soft-shadow) !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: minmax(380px, 1fr) auto auto !important;
    min-height: 78px !important;
    padding: 14px 18px 14px 26px !important;
    width: 100% !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
}

.omni-shell.omni-shell--service.ios-shell .shell-content,
.operator-shell .shell-content,
.ios-auth-content {
    box-sizing: border-box !important;
    padding: 20px 0 0 !important;
    width: 100% !important;
}

.brand-block {
    background: transparent !important;
    display: block !important;
    padding: 10px 4px 20px !important;
}

.brand-name {
    color: var(--ios-v4-text) !important;
    font-family: var(--omni-label-font) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 34px !important;
}

.brand-subtitle,
.topbar-copy p,
.muted,
.v3-muted,
.v3-note,
.v3-row span,
.v3-row p {
    color: var(--ios-v4-muted) !important;
}

.nav-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-stack--secondary {
    border-top: 1px solid var(--ios-v4-hairline) !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
}

.nav-item-link,
.nav-stack .nav-item-link {
    align-items: center !important;
    background: #f5f5f7 !important;
    border: 0 !important;
    border-radius: 18px !important;
    color: #424245 !important;
    display: flex !important;
    gap: 10px !important;
    min-height: 46px !important;
    padding: 8px 10px !important;
    text-decoration: none !important;
    width: 100% !important;
}

.nav-item-link.active,
.nav-stack .nav-item-link.active {
    background: #1d1d1f !important;
    color: #ffffff !important;
}

.nav-item-index {
    align-items: center !important;
    background: #ffffff !important;
    border-radius: 13px !important;
    color: #1d1d1f !important;
    display: inline-flex !important;
    flex: 0 0 36px !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    height: 36px !important;
    justify-content: center !important;
    min-width: 36px !important;
}

.nav-item-link.active .nav-item-index {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

.nav-item-copy strong {
    color: inherit !important;
    display: block !important;
    font-family: var(--omni-label-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
}

.nav-item-copy small,
.sidebar-card p,
.sidebar-user-role {
    color: var(--ios-v4-muted) !important;
}

.sidebar-card,
.sidebar-card--highlight,
.sidebar-user {
    background: #f5f5f7 !important;
    border: 0 !important;
    border-radius: 20px !important;
    color: var(--ios-v4-text) !important;
    margin: 14px 0 0 !important;
    padding: 12px !important;
    width: auto !important;
}

.topbar-copy strong {
    color: var(--ios-v4-text) !important;
    font-family: var(--omni-label-font) !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 32px !important;
}

.topbar-copy p {
    font-size: 14px !important;
    line-height: 20px !important;
    margin: 0 !important;
}

.topbar-tabs {
    align-items: center !important;
    background: #f5f5f7 !important;
    border: 0 !important;
    border-radius: 999px !important;
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto !important;
    padding: 4px !important;
}

.topbar-tab {
    background: transparent !important;
    border-radius: 999px !important;
    color: #424245 !important;
    flex: 0 0 auto !important;
    font-family: var(--omni-label-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: 34px !important;
    padding: 7px 14px !important;
}

.topbar-tab.active {
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    color: #1d1d1f !important;
}

.operator-status {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--ios-v4-border) !important;
    border-radius: 999px !important;
    min-height: 44px !important;
}

.operator-status-mark {
    background: rgba(15, 123, 126, 0.12) !important;
    color: var(--ios-v4-teal) !important;
}

.ios-card,
.v3-card,
.v3-card--nested,
.v3-stat,
.v3-row,
.v3-photo-tile,
.figma-panel,
.figma-stat,
.figma-lane,
.agent-card,
.document-card,
.diagnosis-feedback-card {
    background: var(--ios-v4-card) !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: var(--ios-v4-text) !important;
    overflow: hidden !important;
    backdrop-filter: none !important;
}

.v3-card,
.v3-stat,
.figma-panel {
    padding: 28px !important;
}

.v3-card h1,
.v3-card h2,
.v3-card h3,
.v3-stat strong,
.v3-large-title,
.ios-hero-card h1,
.ios-login-copy h1,
.ios-panel-header h2 {
    color: var(--ios-v4-text) !important;
    font-family: var(--omni-display-font) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.v3-card h2,
.ios-panel-header h2,
.workbench-input-panel h2,
.workbench-evidence-panel h2,
.workbench-result-topline h2 {
    font-size: clamp(28px, 2.5vw, 40px) !important;
    line-height: 1.08 !important;
}

.ios-hero-card h1,
.workbench-hero-copy h1,
.ios-login-copy h1 {
    text-wrap: balance !important;
}

.ios-kicker,
.eyebrow,
.workbench-kicker,
.v3-label,
.soft-badge,
.ios-metric-card__top,
.ios-status-item strong {
    font-family: var(--omni-label-font) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
}

.v3-large-title,
.v3-stat strong,
.ios-metric-card strong {
    font-family: var(--omni-body-font) !important;
    font-weight: 800 !important;
    font-size: clamp(38px, 4.3vw, 58px) !important;
    line-height: 1 !important;
}

.ios-page,
.v3-page {
    display: grid !important;
    gap: 24px !important;
    width: 100% !important;
}

.ios-hero-grid,
.ios-dashboard-grid {
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: minmax(0, 1.48fr) minmax(360px, 0.72fr) !important;
}

.ios-metric-grid,
.ios-module-grid {
    display: grid !important;
    gap: 20px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.ios-hero-card,
.ios-login-hero {
    min-height: 360px !important;
    padding: 46px 48px !important;
}

.ios-dashboard-glance {
    align-items: center !important;
    display: grid !important;
    gap: 28px !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    min-height: 360px !important;
    padding: 42px !important;
}

.ios-hero-card h1,
.ios-login-copy h1 {
    font-size: clamp(54px, 6vw, 76px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
    max-width: 820px !important;
}

.ios-hero-card p,
.ios-login-copy p,
.ios-panel-header p,
.workbench-hero-copy p:not(.eyebrow) {
    color: var(--ios-v4-muted) !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
}

.ios-hero-actions,
.ios-action-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 30px !important;
}

.ios-module-card,
.ios-metric-card,
.v3-stat {
    min-height: 190px !important;
}

.ios-module-card {
    color: var(--ios-v4-text) !important;
    display: grid !important;
    gap: 14px !important;
    padding: 28px !important;
    text-decoration: none !important;
}

.ios-module-card strong {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.ios-module-card span,
.ios-metric-card__caption,
.ios-status-item span,
.ios-empty-copy {
    color: var(--ios-v4-muted) !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.workbench-hero {
    align-items: center !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: none !important;
    display: grid !important;
    gap: 28px !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.8fr) !important;
    margin-bottom: 24px !important;
    min-height: 300px !important;
    padding: 44px 48px !important;
    backdrop-filter: none !important;
}

.workbench-hero-copy h1 {
    color: var(--ios-v4-text) !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(54px, 5.5vw, 74px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
}

.workbench-hero-rings {
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: repeat(3, minmax(108px, 1fr)) !important;
}

.workbench-layout {
    align-items: start !important;
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: minmax(320px, 0.58fr) minmax(420px, 0.9fr) minmax(300px, 0.52fr) !important;
}

.workbench-input-panel,
.workbench-result-area,
.workbench-evidence-panel,
.workbench-result-content,
.workbench-empty-start,
.workbench-insufficient,
.diagnosis-loading-state {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.workbench-input-panel,
.workbench-evidence-panel {
    padding: 24px !important;
}

.workbench-result-area {
    min-height: 560px !important;
    padding: 18px !important;
}

.workbench-empty-start {
    background: #ffffff !important;
    min-height: 482px !important;
}

.form-control,
.workbench-form .form-control,
.ios-field .form-control {
    background: #ffffff !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 14px !important;
    color: var(--ios-v4-text) !important;
    font-size: 16px !important;
    min-height: 50px !important;
    box-shadow: none !important;
}

.primary-action,
button.primary-action,
a.primary-action {
    background: #0071e3 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    min-height: 52px !important;
}

.secondary-action,
a.secondary-action,
button.secondary-action {
    background: transparent !important;
    border: 1px solid #0071e3 !important;
    border-radius: 999px !important;
    color: #0071e3 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    min-height: 52px !important;
}

@media (max-width: 1280px) {
    .operator-status {
        display: none !important;
    }

    .ios-metric-grid,
    .ios-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ios-hero-grid,
    .ios-dashboard-grid,
    .workbench-hero {
        grid-template-columns: 1fr !important;
    }

    .workbench-layout {
        grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr) !important;
    }

    .workbench-evidence-panel {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 960px) {
    .omni-shell.omni-shell--service.ios-shell,
    .operator-shell {
        display: block !important;
        padding: 10px !important;
    }

    .omni-shell.omni-shell--service.ios-shell .shell-sidebar,
    .operator-shell .shell-sidebar {
        border-radius: 24px !important;
        display: grid !important;
        gap: 10px !important;
        height: auto !important;
        margin: 0 0 10px !important;
        max-height: 136px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 12px !important;
        position: static !important;
        width: 100% !important;
    }

    .brand-block {
        align-items: center !important;
        display: flex !important;
        min-height: 26px !important;
        padding: 0 !important;
    }

    .brand-name {
        font-size: 18px !important;
        line-height: 22px !important;
    }

    .brand-subtitle,
    .nav-stack--secondary,
    .sidebar-card,
    .sidebar-card--highlight,
    .sidebar-user {
        display: none !important;
    }

    .nav-stack {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        grid-auto-flow: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        margin: 0 !important;
        overflow-x: auto !important;
        padding: 0 0 2px !important;
        scrollbar-width: none !important;
        white-space: nowrap !important;
    }

    .nav-stack::-webkit-scrollbar {
        display: none !important;
    }

    .nav-item-link,
    .nav-stack .nav-item-link,
    .omni-shell.omni-shell--service.ios-shell .nav-stack .nav-item-link,
    .operator-shell .nav-stack .nav-item-link {
        flex: 0 0 auto !important;
        gap: 8px !important;
        min-height: 44px !important;
        padding: 6px 10px 6px 6px !important;
        width: auto !important;
    }

    .nav-item-index,
    .omni-shell.omni-shell--service.ios-shell .nav-item-index,
    .operator-shell .nav-item-index {
        display: none !important;
    }

    .omni-shell.omni-shell--service.ios-shell .nav-stack,
    .operator-shell .nav-stack {
        display: flex !important;
        flex-direction: row !important;
        grid-auto-flow: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        height: 48px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .omni-shell.omni-shell--service.ios-shell .nav-stack .nav-item-link,
    .operator-shell .nav-stack .nav-item-link {
        background: rgba(255, 255, 255, 0.62) !important;
        border-radius: 18px !important;
        flex: 0 0 auto !important;
        min-height: 42px !important;
        padding: 0 14px !important;
        width: auto !important;
    }

    .nav-item-copy strong {
        font-size: 13px !important;
        max-width: none !important;
        white-space: nowrap !important;
    }

    .nav-item-copy small {
        display: none !important;
    }

    .omni-shell.omni-shell--service.ios-shell .shell-main,
    .operator-shell .shell-main {
        padding: 0 !important;
    }

    .omni-shell.omni-shell--service.ios-shell .shell-topbar,
    .operator-shell .shell-topbar,
    .ios-auth-topbar {
        border-radius: 24px !important;
        grid-template-columns: 1fr !important;
        margin: 0 0 10px !important;
        min-height: 82px !important;
        padding: 14px 16px !important;
    }

    .topbar-copy strong {
        font-size: 24px !important;
        line-height: 29px !important;
    }

    .topbar-copy p {
        display: none !important;
    }

    .omni-shell.omni-shell--service.ios-shell .shell-content,
    .operator-shell .shell-content {
        padding: 0 !important;
    }

    .ios-hero-card h1,
    .ios-login-copy h1,
    .workbench-hero-copy h1 {
        font-size: 40px !important;
        letter-spacing: -0.01em !important;
        line-height: 1.02 !important;
    }

    .ios-metric-grid,
    .ios-module-grid,
    .ios-ring-row,
    .ios-hero-grid,
    .ios-dashboard-grid,
    .ios-dashboard-grid--bottom,
    .v3-grid,
    .v3-grid--work-order,
    .v3-grid--diagnosis,
    .v3-grid--documents,
    .v3-grid--system,
    .v3-grid--operator,
    .workbench-layout,
    .workbench-hero,
    .workbench-priority-grid,
    .workbench-result-utilities,
    .workbench-inline-fields,
    .workbench-advanced-grid {
        grid-template-columns: 1fr !important;
    }

    .ios-card,
    .v3-card,
    .v3-stat,
    .figma-panel,
    .workbench-hero,
    .workbench-input-panel,
    .workbench-result-area,
    .workbench-evidence-panel {
        border-radius: 22px !important;
        padding: 20px !important;
    }

    .ios-hero-card,
    .ios-login-hero {
        min-height: 0 !important;
        padding: 28px 24px !important;
    }

    .ios-dashboard-glance {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
        padding: 24px !important;
    }

    .workbench-hero {
        min-height: 0 !important;
        padding: 28px 24px !important;
    }

    .workbench-hero-copy .muted,
    .workbench-hero-rings {
        display: none !important;
    }

    .workbench-result-area {
        min-height: 340px !important;
    }

    .workbench-empty-start {
        min-height: 300px !important;
    }
}

/* Apple Store V4 authority layer.
   Keep this block last: app.css contains several older V2/V3/V4 rules with
   very specific selectors, so these selectors intentionally win the cascade. */
html body,
html body .omni-shell.omni-shell--service.ios-shell,
html body .operator-shell,
html body .ios-auth-shell {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    font-family: var(--omni-body-font) !important;
}

html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail,
html body .operator-shell .shell-sidebar {
    background: rgba(255, 255, 255, 0.86) !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 12px 34px rgba(0, 0, 0, 0.05) !important;
    flex-basis: 186px !important;
    height: calc(100vh - 48px) !important;
    margin: 24px 0 24px 24px !important;
    padding: 20px !important;
    top: 24px !important;
    width: 186px !important;
}

html body .omni-shell.omni-shell--service.ios-shell .shell-main,
html body .operator-shell .shell-main {
    padding: 24px 24px 32px 18px !important;
}

html body .omni-shell.omni-shell--service.ios-shell .shell-topbar.ios-context-bar,
html body .operator-shell .shell-topbar,
html body .ios-auth-topbar {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 12px 34px rgba(0, 0, 0, 0.05) !important;
    min-height: 78px !important;
    padding: 14px 18px 14px 26px !important;
}

html body .nav-item-link,
html body .nav-stack .nav-item-link {
    background: #f5f5f7 !important;
    border: 0 !important;
    border-radius: 18px !important;
    color: #424245 !important;
}

html body .nav-item-link.active,
html body .nav-stack .nav-item-link.active,
html body .omni-shell.omni-shell--service.ios-shell .nav-stack .nav-item-link.active {
    background: #1d1d1f !important;
    color: #ffffff !important;
}

html body .nav-item-index {
    background: #ffffff !important;
    color: #1d1d1f !important;
}

html body .nav-item-link.active .nav-item-index {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

html body .topbar-tabs {
    background: #f5f5f7 !important;
    border: 0 !important;
}

html body .topbar-tab.active {
    background: #ffffff !important;
    color: #1d1d1f !important;
}

html body .ios-card,
html body .v3-card,
html body .v3-stat,
html body .figma-panel,
html body .agent-card,
html body .document-card,
html body .diagnosis-feedback-card,
html body .workbench-hero,
html body .workbench-input-panel,
html body .workbench-result-area,
html body .workbench-evidence-panel,
html body .workbench-result-content,
html body .workbench-empty-start,
html body .workbench-insufficient,
html body .diagnosis-loading-state {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

html body .ios-hero-card {
    min-height: 360px !important;
    padding: 48px !important;
}

html body .ios-hero-card h1,
html body .ios-login-copy h1,
html body .workbench-hero-copy h1 {
    color: #1d1d1f !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(54px, 6vw, 76px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
}

html body .ios-hero-card p,
html body .ios-login-copy p,
html body .workbench-hero-copy p:not(.eyebrow),
html body .ios-panel-header p {
    color: #6e6e73 !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
}

html body .ios-dashboard-glance {
    display: grid !important;
    grid-template-columns: 148px minmax(0, 1fr) !important;
    min-height: 360px !important;
    padding: 42px !important;
}

html body .ios-metric-card,
html body .ios-module-card,
html body .v3-stat {
    min-height: 190px !important;
    padding: 28px !important;
}

html body .ios-metric-card .ios-progress,
html body .v3-stat .ios-progress,
html body .v3-stat > i,
html body .ios-waterfall i {
    opacity: 0.7 !important;
}

html body .workbench-layout {
    grid-template-columns: minmax(340px, 0.62fr) minmax(520px, 1fr) !important;
}

html body .workbench-evidence-panel {
    grid-column: 1 / -1 !important;
}

html body .workbench-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr) !important;
    min-height: 300px !important;
    padding: 44px 48px !important;
}

html body .ios-login-page {
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.68fr) !important;
    min-height: calc(100vh - 128px) !important;
    overflow: hidden !important;
}

html body .ios-login-hero {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: none !important;
    min-height: 720px !important;
    padding: 48px !important;
}

html body .ios-login-panel-grid {
    display: block !important;
    min-width: 0 !important;
    overflow: visible !important;
}

html body .ios-login-form {
    min-height: 720px !important;
    padding: 42px 28px !important;
}

html body .ios-login-health {
    display: none !important;
}

html body .ios-login-visual {
    opacity: 0.72 !important;
}

@media (max-width: 960px) {
    html body .omni-shell.omni-shell--service.ios-shell,
    html body .operator-shell {
        display: block !important;
        padding: 10px !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail,
    html body .operator-shell .shell-sidebar {
        height: auto !important;
        margin: 0 0 12px !important;
        max-height: 126px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 12px !important;
        position: static !important;
        width: 100% !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-main,
    html body .operator-shell .shell-main {
        padding: 0 !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-topbar.ios-context-bar,
    html body .operator-shell .shell-topbar,
    html body .ios-auth-topbar {
        grid-template-columns: 1fr !important;
        margin-bottom: 12px !important;
        min-height: 82px !important;
        padding: 14px 16px !important;
    }

    html body .ios-hero-grid,
    html body .ios-dashboard-grid,
    html body .ios-metric-grid,
    html body .ios-module-grid,
    html body .workbench-hero,
    html body .workbench-layout,
    html body .ios-login-page {
        grid-template-columns: 1fr !important;
    }

    html body .ios-hero-card,
    html body .ios-login-hero,
    html body .workbench-hero {
        min-height: 0 !important;
        padding: 28px 24px !important;
    }

    html body .ios-login-form {
        min-height: 0 !important;
        padding: 28px 24px !important;
    }

    html body .ios-hero-card h1,
    html body .ios-login-copy h1,
    html body .workbench-hero-copy h1 {
        font-size: 40px !important;
        letter-spacing: -0.01em !important;
        line-height: 1.02 !important;
    }

    html body .ios-dashboard-glance {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
        padding: 24px !important;
    }

    html body .workbench-evidence-panel {
        grid-column: auto !important;
    }
}

/* Apple Store V4 final refinements: must stay at the physical end of file. */
html body .ios-login-visual {
    display: none !important;
}

html body .ios-login-copy {
    max-width: 720px !important;
}

html body .workbench-input-panel,
html body .workbench-result-area {
    min-height: 520px !important;
}

html body .workbench-empty-start {
    min-height: 484px !important;
}

@media (max-width: 960px) {
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail,
    html body .operator-shell .shell-sidebar {
        display: flex !important;
        gap: 10px !important;
        max-height: 78px !important;
        padding: 10px !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .brand-block,
    html body .operator-shell .shell-sidebar .brand-block,
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-stack--secondary,
    html body .operator-shell .shell-sidebar .nav-stack--secondary,
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .sidebar-card,
    html body .operator-shell .shell-sidebar .sidebar-card,
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .sidebar-user,
    html body .operator-shell .shell-sidebar .sidebar-user {
        display: none !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-stack,
    html body .operator-shell .shell-sidebar .nav-stack {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        gap: 8px !important;
        height: 48px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-item-link,
    html body .operator-shell .shell-sidebar .nav-item-link {
        flex: 0 0 auto !important;
        min-height: 48px !important;
        padding: 0 18px !important;
        width: auto !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-item-index,
    html body .operator-shell .shell-sidebar .nav-item-index,
    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-item-copy small,
    html body .operator-shell .shell-sidebar .nav-item-copy small {
        display: none !important;
    }

    html body .workbench-input-panel,
    html body .workbench-result-area,
    html body .workbench-empty-start {
        min-height: 0 !important;
    }
}

/* Apple Store V4 copy reduction: absolute final layer. */
html body .workspace-header .muted,
html body .topbar-copy p,
html body .panel-heading p,
html body .ios-panel-header p,
html body .ios-hero-card p,
html body .ios-login-copy p,
html body .workbench-hero-copy p:not(.eyebrow),
html body .workbench-input-panel .muted,
html body .workbench-evidence-panel .muted,
html body .workbench-empty-start p,
html body .workbench-empty-start .muted,
html body .v3-card > p.v3-muted,
html body .v3-card .v3-muted,
html body .v3-note,
html body .ios-form-note,
html body .ios-empty-copy,
html body .sidebar-card p,
html body .sidebar-user-role,
html body .nav-item-copy small {
    display: none !important;
}

html body .workbench-hero {
    min-height: 230px !important;
}

html body .workbench-hero-copy h1 {
    margin-bottom: 0 !important;
}

html body .panel-heading,
html body .ios-panel-header {
    margin-bottom: 18px !important;
}

html body .workspace-header {
    align-items: center !important;
}

/* Apple Store V4 copy reduction: remove secondary empty-state explanations. */
html body p.empty-state,
html body .empty-state p,
html body .v3-empty,
html body .figma-empty p,
html body .workbench-evidence-empty p,
html body .robot-empty-state span,
html body .operator-empty-state p,
html body .service-attachment-empty,
html body .ai-quick-switch-empty {
    display: none !important;
}
/* Apple Store V4 copy reduction: remove non-functional brand subtitles. */
html body .brand-subtitle,
html body .ios-login-brand small,
html body .operator-status small {
    display: none !important;
}
/* Apple Store V4 copy reduction: high-specificity final subtitle removal. */
html body .omni-shell.omni-shell--service.ios-shell .brand-subtitle,
html body .omni-shell.omni-shell--service.ios-shell .operator-status small,
html body .operator-shell .brand-subtitle,
html body .operator-shell .operator-status small,
html body .ios-auth-shell .ios-login-brand small {
    display: none !important;
}

/* Operator quick diagnosis polish: scoped final layer. */
html body .operator-quick-page {
    --quick-ink: #1d1d1f;
    --quick-muted: #6e7781;
    --quick-line: rgba(29, 29, 31, 0.12);
    --quick-panel: rgba(255, 255, 255, 0.86);
    --quick-teal: #0f7b7e;
    display: grid !important;
    gap: 22px !important;
}

html body .operator-quick-page .operator-quick-hero {
    align-items: end !important;
    background:
        radial-gradient(circle at 78% 34%, rgba(15, 123, 126, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 250, 0.82)) !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 28px !important;
    box-shadow: 0 22px 60px rgba(15, 30, 42, 0.08) !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 180px !important;
    padding: 34px 40px !important;
}

html body .operator-quick-page .workbench-hero-copy {
    max-width: 760px !important;
}

html body .operator-quick-page .workbench-hero-copy .eyebrow {
    color: var(--quick-teal) !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
}

html body .operator-quick-page .workbench-hero-copy h1 {
    color: var(--quick-ink) !important;
    font-size: clamp(46px, 4.4vw, 76px) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 0.94 !important;
    margin: 0 !important;
}

html body .operator-quick-page .workbench-hero-status {
    align-content: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    max-width: 560px !important;
}

html body .operator-quick-page .workbench-hero-status span {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--quick-line) !important;
    border-radius: 999px !important;
    color: #24434a !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    min-height: 38px !important;
    padding: 10px 16px !important;
}

html body .operator-quick-page .operator-quick-layout {
    align-items: stretch !important;
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: minmax(360px, 0.74fr) minmax(520px, 1.18fr) !important;
}

html body .operator-quick-page .operator-quick-input,
html body .operator-quick-page .operator-quick-result,
html body .operator-quick-page .operator-quick-evidence {
    background: var(--quick-panel) !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 26px !important;
    box-shadow: 0 18px 50px rgba(15, 30, 42, 0.07) !important;
}

html body .operator-quick-page .operator-quick-input,
html body .operator-quick-page .operator-quick-result {
    min-height: 610px !important;
    padding: 26px !important;
}

html body .operator-quick-page .operator-quick-evidence {
    grid-column: 1 / -1 !important;
    min-height: 132px !important;
    padding: 22px 26px !important;
}

html body .operator-quick-page .panel-heading {
    align-items: center !important;
    border-bottom: 1px solid rgba(29, 29, 31, 0.08) !important;
    display: flex !important;
    margin: 0 0 18px !important;
    padding-bottom: 16px !important;
}

html body .operator-quick-page .panel-heading h2 {
    color: var(--quick-ink) !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

html body .operator-quick-page .operator-quick-form {
    display: grid !important;
    gap: 13px !important;
    grid-template-columns: 1fr 1fr !important;
}

html body .operator-quick-page .operator-quick-form label:first-child,
html body .operator-quick-page .operator-quick-form label:nth-child(5),
html body .operator-quick-page .operator-quick-form label:nth-child(6),
html body .operator-quick-page .operator-quick-form .primary-action {
    grid-column: 1 / -1 !important;
}

html body .operator-quick-page .operator-quick-form label {
    background: rgba(246, 247, 249, 0.72) !important;
    border: 1px solid rgba(29, 29, 31, 0.13) !important;
    border-radius: 18px !important;
    color: var(--quick-ink) !important;
    display: grid !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    gap: 5px !important;
    min-height: 66px !important;
    padding: 12px 14px !important;
}

html body .operator-quick-page .operator-quick-form .form-control {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--quick-ink) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    min-height: 26px !important;
    padding: 0 !important;
}

html body .operator-quick-page .operator-quick-form .form-control::placeholder {
    color: rgba(42, 50, 56, 0.52) !important;
    opacity: 1 !important;
}

html body .operator-quick-page .operator-quick-form textarea.form-control {
    min-height: 70px !important;
    resize: vertical !important;
}

html body .operator-quick-page .operator-quick-form .primary-action {
    border-radius: 18px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    min-height: 58px !important;
    margin-top: 4px !important;
    width: 100% !important;
}

html body .operator-quick-page .operator-quick-empty {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 548px !important;
    position: relative !important;
}

html body .operator-quick-page .operator-quick-orbit {
    align-items: center !important;
    background: radial-gradient(circle, rgba(15, 123, 126, 0.18), rgba(15, 123, 126, 0.07) 58%, transparent 59%) !important;
    border-radius: 50% !important;
    display: grid !important;
    height: 164px !important;
    justify-items: center !important;
    margin-bottom: 22px !important;
    position: relative !important;
    width: 164px !important;
}

html body .operator-quick-page .operator-quick-orbit::before,
html body .operator-quick-page .operator-quick-orbit::after {
    border: 1px solid rgba(15, 123, 126, 0.2) !important;
    border-radius: 50% !important;
    content: "" !important;
    position: absolute !important;
}

html body .operator-quick-page .operator-quick-orbit::before {
    inset: 22px !important;
}

html body .operator-quick-page .operator-quick-orbit::after {
    inset: -8px !important;
}

html body .operator-quick-page .operator-quick-orbit span {
    background: var(--quick-teal) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 14px rgba(15, 123, 126, 0.11) !important;
    height: 18px !important;
    width: 18px !important;
}

html body .operator-quick-page .operator-quick-orbit i,
html body .operator-quick-page .operator-quick-orbit b {
    background: rgba(15, 123, 126, 0.42) !important;
    border-radius: 50% !important;
    height: 10px !important;
    position: absolute !important;
    width: 10px !important;
}

html body .operator-quick-page .operator-quick-orbit i {
    right: 24px !important;
    top: 38px !important;
}

html body .operator-quick-page .operator-quick-orbit b {
    bottom: 26px !important;
    left: 34px !important;
}

html body .operator-quick-page .operator-quick-empty h2 {
    color: var(--quick-ink) !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    margin: 0 0 18px !important;
}

html body .operator-quick-page .operator-quick-empty-steps {
    background: rgba(246, 247, 249, 0.82) !important;
    border: 1px solid rgba(29, 29, 31, 0.1) !important;
    border-radius: 999px !important;
    display: flex !important;
    gap: 6px !important;
    padding: 6px !important;
}

html body .operator-quick-page .operator-quick-empty-steps span {
    background: #fff !important;
    border-radius: 999px !important;
    color: #40525a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    min-width: 62px !important;
    padding: 8px 13px !important;
    text-align: center !important;
}

html body .operator-quick-page .operator-quick-evidence .panel-heading {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

html body .operator-quick-page .operator-quick-evidence .workbench-evidence-empty {
    display: none !important;
}

html body .operator-quick-page .operator-quick-evidence .workbench-evidence-list {
    margin-top: 18px !important;
}

@media (max-width: 1180px) {
    html body .operator-quick-page .operator-quick-layout {
        grid-template-columns: 1fr !important;
    }

    html body .operator-quick-page .operator-quick-input,
    html body .operator-quick-page .operator-quick-result {
        min-height: 0 !important;
    }
}

@media (max-width: 720px) {
    html body .operator-quick-page {
        gap: 14px !important;
    }

    html body .operator-quick-page .operator-quick-hero {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
        padding: 24px !important;
    }

    html body .operator-quick-page .workbench-hero-copy h1 {
        font-size: 44px !important;
    }

    html body .operator-quick-page .workbench-hero-status {
        justify-content: flex-start !important;
        margin-top: 18px !important;
    }

    html body .operator-quick-page .operator-quick-input,
    html body .operator-quick-page .operator-quick-result,
    html body .operator-quick-page .operator-quick-evidence {
        border-radius: 22px !important;
        padding: 20px !important;
    }

    html body .operator-shell .shell-topbar .topbar-tabs,
    html body .operator-shell .shell-topbar .operator-status {
        display: none !important;
    }

    html body .operator-shell .shell-topbar {
        min-height: 70px !important;
        padding: 18px 20px !important;
    }

    html body .operator-quick-page .operator-quick-form {
        grid-template-columns: 1fr !important;
    }

    html body .operator-quick-page .operator-quick-form label,
    html body .operator-quick-page .operator-quick-form label:first-child,
    html body .operator-quick-page .operator-quick-form label:nth-child(5),
    html body .operator-quick-page .operator-quick-form .primary-action {
        grid-column: auto !important;
    }

    html body .operator-quick-page .operator-quick-empty {
        min-height: 360px !important;
    }

    html body .operator-quick-page .operator-quick-evidence {
        min-height: 92px !important;
    }
}

/* Operator rail contrast: smoked glass anchor for field workflows. */
html body .operator-shell .shell-sidebar {
    background:
        radial-gradient(circle at 22% 10%, rgba(95, 210, 215, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(18, 48, 53, 0.96), rgba(8, 30, 35, 0.92)) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 28px 78px rgba(6, 21, 25, 0.24) !important;
}

html body .operator-shell .brand-name {
    color: #ffffff !important;
    font-weight: 850 !important;
    opacity: 1 !important;
}

html body .operator-shell .operator-sidebar-card,
html body .operator-shell .operator-sidebar-flow {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html body .operator-shell .operator-sidebar-card strong,
html body .operator-shell .operator-sidebar-flow strong {
    color: #ffffff !important;
    opacity: 1 !important;
}

html body .operator-shell .sidebar-metric-row span {
    color: rgba(226, 249, 249, 0.78) !important;
    font-weight: 760 !important;
}

html body .operator-shell .nav-stack .nav-item-link {
    color: rgba(231, 249, 249, 0.72) !important;
    opacity: 1 !important;
}

html body .operator-shell .nav-stack .nav-item-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

html body .operator-shell .nav-stack .nav-item-link.active {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2) !important;
    color: #0d3035 !important;
}

html body .operator-shell .nav-stack .nav-item-link.active .nav-item-copy strong {
    color: #0d3035 !important;
}

html body .operator-shell .nav-item-copy strong {
    color: inherit !important;
    font-weight: 820 !important;
}

html body .operator-shell .nav-item-link--compact {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #0d3035 !important;
}

html body .operator-shell .nav-item-link--compact .nav-item-copy strong {
    color: #0d3035 !important;
}

html body .operator-shell .sidebar-logout-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-weight: 780 !important;
}

html body .operator-shell .operator-sidebar-card,
html body .operator-shell .operator-sidebar-flow {
    display: none !important;
}

html body .ios-hero-card > p,
html body .ios-hero-card > .ios-kicker,
html body .ios-dashboard-glance p,
html body .ios-panel-header p,
html body .ios-module-card > span {
    display: none !important;
}

/* iOS V4 readability pass: keep the layout airy, but stop tiny labels from blurring together. */
html body {
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
}

html body .omni-shell.omni-shell--service.ios-shell .nav-stack .nav-item-link,
html body .omni-shell.omni-shell--service.ios-shell .nav-stack .nav-item-link strong,
html body .operator-shell .nav-stack .nav-item-link,
html body .operator-shell .nav-stack .nav-item-link strong {
    font-size: 15px !important;
    line-height: 1.35 !important;
}

html body .omni-shell.omni-shell--service.ios-shell .nav-item-index {
    font-size: 13px !important;
    font-weight: 850 !important;
}

html body .topbar-tabs a,
html body .topbar-tabs .nav-link,
html body .operator-status,
html body .ios-kicker,
html body .primary-action,
html body .secondary-action,
html body .nav-item-link--compact,
html body .sidebar-logout-btn {
    font-size: 15px !important;
    line-height: 1.35 !important;
}

html body .ios-card,
html body .panel,
html body .v3-panel,
html body .form-control,
html body input,
html body select,
html body textarea,
html body button {
    font-size: 16px !important;
    line-height: 1.45 !important;
}

html body .ios-card small,
html body .ios-card span,
html body .ios-card p,
html body .v3-muted,
html body .text-muted,
html body .status-list,
html body .ios-status-list,
html body .ios-status-list *,
html body .ios-timeline,
html body .ios-timeline *,
html body .operator-history-meta,
html body .operator-history-meta *,
html body table,
html body th,
html body td,
html body .badge,
html body .pill,
html body .tag {
    font-size: 15px !important;
    line-height: 1.55 !important;
}

html body .ios-metric-card,
html body .ios-metric-card * {
    line-height: 1.35 !important;
}

html body .ios-metric-card small,
html body .ios-metric-card p,
html body .ios-metric-card span:not(.nav-item-index) {
    font-size: 15px !important;
}

html body .ios-status-list li,
html body .status-list li,
html body .ios-timeline li {
    gap: 8px !important;
    margin-bottom: 12px !important;
}

html body .v3-icon,
html body .nav-item-index,
html body .operator-status-mark {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

html body .v3-label,
html body .soft-badge,
html body .workbench-hero-status span,
html body .workbench-ai-status--ready,
html body .operator-status strong,
html body .operator-status small,
html body .operator-quick-empty-steps span {
    font-size: 15px !important;
    line-height: 1.45 !important;
}

html body .soft-badge,
html body .workbench-hero-status span,
html body .operator-quick-empty-steps span {
    min-height: 38px !important;
    padding: 8px 15px !important;
}

html body .operator-status {
    min-width: 132px !important;
    padding-inline: 18px !important;
}

html body .operator-status strong {
    font-weight: 820 !important;
}

html body .workbench-hero-copy .eyebrow,
html body .operator-quick-page .workbench-hero-copy .eyebrow {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

@media (max-width: 720px) {
    html body .omni-shell.omni-shell--service.ios-shell .shell-topbar .topbar-tabs {
        display: none !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 10px 14px !important;
        scroll-padding-inline: 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-stack {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        padding-right: 12px !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-stack .nav-item-link {
        flex: 0 0 auto !important;
        min-width: 92px !important;
        white-space: nowrap !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail .nav-stack--secondary .nav-item-link {
        min-width: 96px !important;
    }

    html body .omni-shell.omni-shell--service.ios-shell .shell-sidebar.ios-rail::after {
        content: "" !important;
        flex: 0 0 14px !important;
        height: 1px !important;
    }

    html body .operator-shell .shell-sidebar {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 10px 14px !important;
        scroll-padding-inline: 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body .operator-shell .shell-sidebar::after {
        content: "" !important;
        flex: 0 0 12px !important;
        height: 1px !important;
    }

    html body .operator-shell .shell-sidebar .nav-stack {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        padding-right: 8px !important;
    }

    html body .operator-shell .shell-sidebar .nav-stack .nav-item-link,
    html body .operator-shell .shell-sidebar .nav-item-link--compact {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        white-space: nowrap !important;
    }
}

/* Login auth identity final layer: keep this at the physical end so the brand scene wins. */
html body .ios-auth-shell .ios-auth-topbar {
    display: none !important;
}

html body .ios-auth-shell {
    background:
        linear-gradient(115deg, rgba(5, 19, 24, 0.92) 0%, rgba(11, 33, 39, 0.82) 38%, rgba(238, 246, 247, 0.94) 39%, rgba(247, 250, 251, 1) 100%) !important;
    overflow-x: hidden !important;
}

html body .ios-auth-shell .ios-auth-main {
    min-height: 100vh !important;
    padding: 28px !important;
}

html body .ios-auth-shell .ios-auth-content {
    align-items: stretch !important;
    display: grid !important;
    min-height: calc(100vh - 56px) !important;
    padding: 0 !important;
}

html body .ios-auth-shell .ios-login-page {
    align-items: stretch !important;
    display: grid !important;
    gap: 28px !important;
    grid-template-columns: minmax(560px, 1.12fr) minmax(420px, 0.78fr) !important;
    min-height: calc(100vh - 56px) !important;
}

html body .ios-auth-shell .ios-login-hero {
    align-content: stretch !important;
    background:
        radial-gradient(circle at 22% 22%, rgba(171, 214, 255, 0.24), transparent 18%),
        radial-gradient(circle at 76% 68%, rgba(72, 97, 255, 0.22), transparent 25%),
        linear-gradient(142deg, #070914 0%, #111b33 52%, #1c2d58 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 38px !important;
    box-shadow: 0 34px 90px rgba(3, 16, 20, 0.34) !important;
    color: #ffffff !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 44px !important;
    position: relative !important;
}

html body .ios-auth-shell .ios-login-hero::before {
    animation: omniLogoDrift 1300ms cubic-bezier(.16, 1, .3, 1) both !important;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.42), transparent 18%),
        radial-gradient(circle at 58% 58%, rgba(151, 202, 255, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(222, 235, 255, 0.05)) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 42px !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 42px 110px rgba(79, 147, 255, 0.22) !important;
    color: rgba(255, 255, 255, 0.94) !important;
    content: "OF" !important;
    display: grid !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(112px, 14vw, 236px) !important;
    font-weight: 900 !important;
    height: clamp(220px, 28vw, 420px) !important;
    inset: auto auto 8% -4% !important;
    justify-items: center !important;
    line-height: 1 !important;
    opacity: 1 !important;
    place-items: center !important;
    position: absolute !important;
    text-shadow: 0 14px 42px rgba(0, 0, 0, 0.24) !important;
    width: clamp(220px, 28vw, 420px) !important;
    z-index: 0 !important;
}

html body .ios-auth-shell .ios-login-hero::after {
    animation: omniLightSweep 2200ms ease-out both !important;
    background: linear-gradient(105deg, transparent 0%, transparent 36%, rgba(220, 238, 255, 0.58) 50%, transparent 64%, transparent 100%) !important;
    content: "" !important;
    inset: -30% auto -30% -55% !important;
    position: absolute !important;
    transform: rotate(8deg) !important;
    width: 46% !important;
    z-index: 1 !important;
}

html body .ios-auth-shell .ios-login-brand {
    align-items: flex-start !important;
    animation: omniBrandSettle 1100ms cubic-bezier(.16, 1, .3, 1) 180ms both !important;
    color: #ffffff !important;
    display: flex !important;
    gap: 20px !important;
    grid-column: auto !important;
    justify-self: start !important;
    position: relative !important;
    z-index: 2 !important;
}

html body .ios-auth-shell .ios-login-brand .ios-brand-mark {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
    color: #0b1224 !important;
    font-size: 28px !important;
    height: 76px !important;
    letter-spacing: 0 !important;
    width: 76px !important;
}

html body .ios-auth-shell .ios-login-brand span:not(.ios-brand-mark) {
    color: #ffffff !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(64px, 7vw, 128px) !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    line-height: 0.88 !important;
    opacity: 1 !important;
    text-shadow: 0 18px 54px rgba(0, 0, 0, 0.32) !important;
}

html body .ios-auth-shell .ios-login-brand {
    filter: drop-shadow(0 20px 46px rgba(20, 48, 104, 0.28)) !important;
}

html body .ios-auth-shell .ios-login-brand small,
html body .ios-auth-shell .ios-login-copy .ios-kicker,
html body .ios-auth-shell .ios-login-copy h1,
html body .ios-auth-shell .ios-login-copy p,
html body .ios-auth-shell .ios-login-visual,
html body .ios-auth-shell .ios-login-health {
    display: none !important;
}

html body .ios-auth-shell .ios-login-copy {
    align-self: end !important;
    color: rgba(232, 251, 252, 0.82) !important;
    max-width: 540px !important;
    min-height: 84px !important;
    position: relative !important;
    z-index: 2 !important;
}

html body .ios-auth-shell .ios-login-copy::before {
    color: rgba(236, 246, 255, 0.9) !important;
    content: "Robot Service Platform" !important;
    display: block !important;
    font-size: clamp(18px, 1.7vw, 26px) !important;
    font-weight: 760 !important;
    line-height: 1.15 !important;
}

html body .ios-auth-shell .ios-login-copy::after {
    background: linear-gradient(90deg, rgba(111, 174, 255, 0.92), rgba(255, 255, 255, 0)) !important;
    border-radius: 999px !important;
    content: "" !important;
    display: block !important;
    height: 5px !important;
    margin-top: 20px !important;
    width: min(360px, 62%) !important;
}

html body .ios-auth-shell .ios-login-panel-grid {
    align-content: center !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: 1fr !important;
}

html body .ios-auth-shell .ios-login-form {
    align-self: center !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: 34px !important;
    box-shadow: 0 28px 80px rgba(20, 39, 46, 0.16) !important;
    min-height: 0 !important;
    padding: 42px !important;
    width: 100% !important;
}

html body .ios-auth-shell .ios-login-form .ios-panel-header {
    margin-bottom: 28px !important;
}

html body .ios-auth-shell .ios-login-form .ios-panel-header .ios-kicker {
    color: #246bfe !important;
    display: block !important;
    font-size: 15px !important;
    font-weight: 850 !important;
}

html body .ios-auth-shell .ios-login-form .ios-panel-header h2 {
    color: #11181c !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(36px, 3.2vw, 52px) !important;
    font-weight: 880 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.02 !important;
}

html body .ios-auth-shell .ios-login-form .ios-field {
    background: #ffffff !important;
    border: 1px solid rgba(17, 24, 28, 0.12) !important;
    border-radius: 22px !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    padding: 18px 20px !important;
}

html body .ios-auth-shell .ios-login-form .ios-field span,
html body .ios-auth-shell .ios-login-form .ios-check {
    color: #182a31 !important;
    font-size: 17px !important;
    font-weight: 820 !important;
}

html body .ios-auth-shell .ios-login-form .ios-field input.form-control {
    color: #11181c !important;
    font-size: 21px !important;
    font-weight: 680 !important;
    min-height: 42px !important;
}

html body .ios-auth-shell .ios-login-form .ios-check {
    margin: 12px 0 24px !important;
}

html body .ios-auth-shell .ios-login-form .ios-check input {
    height: 20px !important;
    width: 20px !important;
}

html body .ios-auth-shell .ios-login-form .ios-action-row {
    gap: 14px !important;
    margin: 26px 0 0 !important;
}

html body .ios-auth-shell .ios-login-form .primary-action,
html body .ios-auth-shell .ios-login-form .secondary-action {
    border-radius: 999px !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    min-height: 58px !important;
    padding-inline: 24px !important;
}

html body .ios-auth-shell .ios-login-form .primary-action {
    background: linear-gradient(135deg, #246bfe, #5d7cff) !important;
    box-shadow: 0 16px 38px rgba(36, 107, 254, 0.24) !important;
}

html body .ios-auth-shell .ios-login-form .secondary-action {
    border-color: rgba(36, 107, 254, 0.58) !important;
    color: #246bfe !important;
}

@media (prefers-reduced-motion: reduce) {
    html body .ios-auth-shell .ios-login-hero::before,
    html body .ios-auth-shell .ios-login-hero::after,
    html body .ios-auth-shell .ios-login-brand {
        animation: none !important;
    }
}

@media (max-width: 1100px) {
    html body .ios-auth-shell .ios-login-page {
        grid-template-columns: 1fr !important;
    }

    html body .ios-auth-shell .ios-login-hero {
        min-height: 380px !important;
    }
}

@media (max-width: 720px) {
    html body .ios-auth-shell .ios-auth-main {
        padding: 14px !important;
        overflow-x: hidden !important;
    }

    html body .ios-auth-shell .ios-auth-content,
    html body .ios-auth-shell .ios-login-page {
        min-height: auto !important;
        overflow-x: hidden !important;
    }

    html body .ios-auth-shell .ios-login-page {
        gap: 14px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
    }

    html body .ios-auth-shell .ios-login-hero {
        background:
            radial-gradient(circle at 24% 22%, rgba(171, 214, 255, 0.24), transparent 24%),
            linear-gradient(150deg, #070914 0%, #132149 100%) !important;
        border-radius: 28px !important;
        min-height: 260px !important;
        padding: 28px !important;
    }

    html body .ios-auth-shell .ios-login-hero::before {
        border-radius: 30px !important;
        height: 190px !important;
        inset: auto auto 4% -10% !important;
        width: 190px !important;
    }

    html body .ios-auth-shell .ios-login-brand {
        gap: 14px !important;
    }

    html body .ios-auth-shell .ios-login-brand .ios-brand-mark {
        border-radius: 18px !important;
        font-size: 21px !important;
        height: 56px !important;
        width: 56px !important;
    }

    html body .ios-auth-shell .ios-login-brand span:not(.ios-brand-mark) {
        font-size: clamp(48px, 14vw, 76px) !important;
    }

    html body .ios-auth-shell .ios-login-copy {
        min-height: 54px !important;
    }

    html body .ios-auth-shell .ios-login-copy::before {
        font-size: 16px !important;
    }

    html body .ios-auth-shell .ios-login-form {
        border-radius: 28px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 28px !important;
        width: 100% !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field,
    html body .ios-auth-shell .ios-login-form .ios-field input.form-control {
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-action-row {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-panel-header h2 {
        font-size: 34px !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field input.form-control {
        font-size: 19px !important;
    }
}

/* RC login final lock: original mobile app icon wins over every earlier login pass. */
html body .ios-auth-shell {
    background:
        radial-gradient(circle at 7% 20%, rgba(255, 255, 255, 0.2), transparent 11%),
        linear-gradient(115deg, #050608 0%, #101217 47%, #cfd7e0 48%, #eef3f8 100%) !important;
    overflow-x: hidden !important;
}

html body .ios-auth-shell .ios-auth-topbar,
html body .ios-auth-shell .ios-login-copy,
html body .ios-auth-shell .ios-login-visual,
html body .ios-auth-shell .ios-login-health {
    display: none !important;
}

html body .ios-auth-shell .ios-auth-main {
    min-height: 100vh !important;
    padding: 28px !important;
}

html body .ios-auth-shell .ios-auth-content {
    display: grid !important;
    min-height: calc(100vh - 56px) !important;
    padding: 0 !important;
}

html body .ios-auth-shell .ios-login-page {
    display: grid !important;
    gap: 28px !important;
    grid-template-columns: minmax(560px, 1.04fr) minmax(420px, 0.96fr) !important;
    min-height: calc(100vh - 56px) !important;
}

html body .ios-auth-shell .ios-login-hero {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 14%),
        radial-gradient(circle at 76% 68%, rgba(110, 220, 255, 0.08), transparent 26%),
        linear-gradient(145deg, #050608 0%, #101217 58%, #171b22 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 38px !important;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34) !important;
    display: grid !important;
    grid-template-rows: 1fr auto !important;
    overflow: hidden !important;
    padding: 44px 44px 58px !important;
    position: relative !important;
}

html body .ios-auth-shell .ios-login-hero::before {
    animation: omniOriginalIconStage 1200ms cubic-bezier(.16, 1, .3, 1) both !important;
    background: url("images/omnifix-icon-large.png") center / cover no-repeat !important;
    border: 0 !important;
    border-radius: clamp(44px, 6.2vw, 72px) !important;
    box-shadow:
        0 28px 66px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    color: transparent !important;
    content: "" !important;
    display: block !important;
    font-size: 0 !important;
    height: clamp(230px, 24vw, 330px) !important;
    inset: 14% auto auto 9% !important;
    opacity: 1 !important;
    text-shadow: none !important;
    width: clamp(230px, 24vw, 330px) !important;
    z-index: 0 !important;
}

html body .ios-auth-shell .ios-login-hero::after {
    animation: omniOriginalLightSweep 2100ms cubic-bezier(.16, 1, .3, 1) 260ms both !important;
    background: linear-gradient(104deg, transparent 0%, transparent 39%, rgba(255, 255, 255, 0.5) 49%, transparent 61%, transparent 100%) !important;
    content: "" !important;
    filter: blur(0.2px) !important;
    inset: -28% auto -28% -48% !important;
    mix-blend-mode: screen !important;
    position: absolute !important;
    transform: rotate(9deg) !important;
    width: 38% !important;
    z-index: 3 !important;
}

html body .ios-auth-shell .ios-login-brand {
    align-self: end !important;
    animation: omniOriginalBrandSettle 980ms cubic-bezier(.16, 1, .3, 1) 180ms both !important;
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: 1fr !important;
    margin: 0 0 42px 4px !important;
    position: relative !important;
    z-index: 2 !important;
}

html body .ios-auth-shell .ios-login-brand .ios-brand-mark {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 0 !important;
    overflow: visible !important;
    width: 0 !important;
}

html body .ios-auth-shell .ios-login-brand .ios-brand-mark img {
    display: none !important;
}

html body .ios-auth-shell .ios-login-brand span:not(.ios-brand-mark) {
    color: #ffffff !important;
    font-family: var(--omni-display-font) !important;
    font-size: clamp(72px, 7.2vw, 102px) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 0.94 !important;
    text-shadow: 0 22px 58px rgba(0, 0, 0, 0.38) !important;
}

html body .ios-auth-shell .ios-login-brand small {
    color: rgba(221, 230, 242, 0.94) !important;
    display: block !important;
    font-size: clamp(22px, 2vw, 29px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-top: 20px !important;
}

html body .ios-auth-shell .ios-login-panel-grid {
    align-content: center !important;
    display: grid !important;
    isolation: isolate !important;
    position: relative !important;
}

html body .ios-auth-shell .ios-login-panel-grid::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(203, 214, 226, 0.22) 43%, transparent 70%) !important;
    border-radius: 999px !important;
    content: "" !important;
    height: min(60vw, 720px) !important;
    position: absolute !important;
    right: -26% !important;
    top: 4% !important;
    width: min(60vw, 720px) !important;
    z-index: -1 !important;
}

html body .ios-auth-shell .ios-login-form {
    animation: omniLoginCardRise 820ms cubic-bezier(.16, 1, .3, 1) 320ms both !important;
    background: rgba(248, 250, 253, 0.74) !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    border-radius: 30px !important;
    box-shadow:
        0 28px 74px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    max-width: 410px !important;
    padding: 42px !important;
    place-self: center !important;
    width: 100% !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.18) !important;
    backdrop-filter: blur(22px) saturate(1.18) !important;
}

html body .ios-auth-shell .ios-login-form .ios-panel-header .ios-kicker {
    color: #344054 !important;
    display: block !important;
    font-size: 21px !important;
    font-weight: 850 !important;
}

html body .ios-auth-shell .ios-login-form .ios-panel-header h2 {
    color: #070914 !important;
    font-size: clamp(38px, 3.2vw, 44px) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

html body .ios-auth-shell .ios-login-form .ios-field {
    background: rgba(255, 255, 255, 0.68) !important;
    border: 1px solid rgba(215, 223, 234, 0.96) !important;
    border-radius: 16px !important;
    padding: 15px 17px !important;
}

html body .ios-auth-shell .ios-login-form .ios-field span {
    color: #667085 !important;
    font-size: 16px !important;
    font-weight: 760 !important;
}

html body .ios-auth-shell .ios-login-form .ios-field input.form-control {
    font-size: 19px !important;
    font-weight: 650 !important;
}

html body .ios-auth-shell .ios-login-form .primary-action {
    background: linear-gradient(100deg, #101828 0%, #2b3448 56%, #6edcff 100%) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18) !important;
}

html body .ios-auth-shell .ios-login-form .secondary-action {
    border-color: rgba(16, 24, 40, 0.28) !important;
    color: #101828 !important;
}

@keyframes omniOriginalIconStage {
    0% {
        filter: blur(1px);
        opacity: 0;
        transform: translate(-26vw, 6vh) scale(1.34);
    }
    56% {
        filter: blur(0);
        opacity: 1;
        transform: translate(1.8vw, -0.8vh) scale(1.04);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes omniOriginalBrandSettle {
    0% {
        opacity: 0;
        transform: translate(12vw, 10vh) scale(1.12);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes omniOriginalLightSweep {
    0% {
        opacity: 0;
        transform: translateX(0) rotate(9deg);
    }
    18% {
        opacity: 0.92;
    }
    100% {
        opacity: 0;
        transform: translateX(395%) rotate(9deg);
    }
}

@keyframes omniLoginCardRise {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .ios-auth-shell .ios-login-hero::before,
    html body .ios-auth-shell .ios-login-hero::after,
    html body .ios-auth-shell .ios-login-brand,
    html body .ios-auth-shell .ios-login-form {
        animation: none !important;
    }
}

@media (max-width: 1100px) {
    html body .ios-auth-shell .ios-login-page {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body .ios-auth-shell .ios-login-form {
        max-width: 540px !important;
    }
}

@media (max-width: 720px) {
    html body .ios-auth-shell {
        background:
            radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.2), transparent 16%),
            linear-gradient(180deg, #050608 0%, #101217 62%, #dfe6ee 100%) !important;
    }

    html body .ios-auth-shell .ios-auth-main {
        padding: 0 !important;
    }

    html body .ios-auth-shell .ios-auth-content {
        min-height: 100vh !important;
    }

    html body .ios-auth-shell .ios-login-page {
        gap: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        min-height: 100vh !important;
    }

    html body .ios-auth-shell .ios-login-hero {
        background:
            radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.2), transparent 22%),
            linear-gradient(180deg, #050608 0%, #101217 100%) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: 360px !important;
        padding: 28px 28px 18px !important;
    }

    html body .ios-auth-shell .ios-login-hero::before {
        border-radius: 40px !important;
        height: 162px !important;
        inset: 64px auto auto 50% !important;
        transform: translateX(-50%) !important;
        width: 162px !important;
    }

    html body .ios-auth-shell .ios-login-brand {
        justify-items: center !important;
        justify-self: center !important;
        margin: 0 0 4px !important;
        text-align: center !important;
        width: 100% !important;
    }

    html body .ios-auth-shell .ios-login-brand span:not(.ios-brand-mark) {
        font-size: 48px !important;
        line-height: 1 !important;
    }

    html body .ios-auth-shell .ios-login-brand small {
        font-size: 18px !important;
        margin-top: 10px !important;
    }

    html body .ios-auth-shell .ios-login-panel-grid {
        background:
            radial-gradient(circle at 86% 26%, rgba(255, 255, 255, 0.44), transparent 40%),
            linear-gradient(180deg, rgba(223, 230, 238, 0), #dfe6ee 42%, #eef3f8 100%) !important;
        margin-top: 0 !important;
        padding: 0 28px 28px !important;
    }

    html body .ios-auth-shell .ios-login-panel-grid::before {
        display: none !important;
    }

    html body .ios-auth-shell .ios-login-form {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.22) !important;
        border-radius: 30px !important;
        box-shadow:
            0 24px 54px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
        max-width: none !important;
        place-self: start center !important;
        padding: 24px 30px 24px !important;
        -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
        backdrop-filter: blur(22px) saturate(1.08) !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-panel-header .ios-kicker,
    html body .ios-auth-shell .ios-login-form .ios-field span,
    html body .ios-auth-shell .ios-login-form .ios-check {
        color: #c9d7e8 !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-panel-header h2,
    html body .ios-auth-shell .ios-login-form .ios-field input.form-control {
        color: #ffffff !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-panel-header h2 {
        font-size: 30px !important;
        line-height: 1.1 !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field {
        background: rgba(255, 255, 255, 0.13) !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
        gap: 4px !important;
        margin-bottom: 12px !important;
        padding: 10px 16px !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-panel-header {
        margin-bottom: 16px !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-check {
        margin: 4px 0 16px !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-action-row {
        margin-top: 16px !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field input.form-control {
        font-size: 18px !important;
        min-height: 32px !important;
    }

    html body .ios-auth-shell .ios-login-form .primary-action {
        min-height: 54px !important;
    }

    html body .ios-auth-shell .ios-login-form .secondary-action {
        display: none !important;
    }

    html body .ios-auth-shell .ios-login-form .ios-field input.form-control::placeholder {
        color: rgba(229, 238, 248, 0.56) !important;
    }
}
