:root {
    --app-bg: #eef3fa;
    --app-bg-dark: #102746;
    --app-bg-dark-2: #1a3a63;
    --app-header-text: #f1f7ff;
    --shell-x: clamp(14px, 3.5vw, 28px);
    --surface: #ffffff;
    --surface-soft: #f6f9ff;
    --surface-elev: #fcfdff;
    --ink: #0f172a;
    --ink-soft: #2a3c52;
    --muted: #64748b;
    --line: #d6e1ef;
    --primary: #1a73e8;
    --primary-strong: #0f59bf;
    --primary-soft: #e8f1ff;
    --success: #1f8a4c;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(900px 300px at 8% -90px, color-mix(in srgb, var(--primary) 22%, transparent), transparent 72%),
    linear-gradient(180deg, var(--app-bg-dark) 0%, var(--app-bg-dark-2) 25%, var(--app-bg) 58%, #f8fbff 100%);
    font-family: "Manrope", sans-serif;
    line-height: 1.45;
}

h1,
h2,
h3,
h4 {
    font-family: "Sora", sans-serif;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.mobile-shell {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: calc(12px + env(safe-area-inset-top)) var(--shell-x) calc(68px + env(safe-area-inset-bottom));
}

.app-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    padding: 0.74rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 22px rgba(9, 27, 52, 0.2);
    position: sticky;
    top: calc(8px + env(safe-area-inset-top));
    z-index: 1;
    overflow: auto;
}

.brand-line {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--app-header-text);
}

.brand-block {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    max-width: 62%;
}

.brand-logo {
    display: block;
    height: 53px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
    margin: -0.72rem -0.86rem;
    border-radius: 14px;
}

.token-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--app-header-text);
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.32rem 0.64rem;
    white-space: nowrap;
}

.token-chip strong {
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.79rem;
    font-weight: 700;
    color: var(--app-header-text);
    position: sticky;
    top: calc(70px + env(safe-area-inset-top));
    z-index: 1;
}

.progress {
    height: 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    margin-bottom: 1rem;
    position: sticky;
    top: calc(94px + env(safe-area-inset-top));
    z-index: 1;
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-strong), var(--primary));
}

.question-card {
    width: calc(100% + (var(--shell-x) * 2));
    margin: auto calc(var(--shell-x) * -1) 0;
    min-height: clamp(440px, 64dvh, 780px);
    border: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: var(--surface-elev);
    box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.22), 0 18px 36px rgba(16, 39, 70, 0.16);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 4;
}

.question-card .card-body {
    width: 100%;
    padding: 1.2rem var(--shell-x) calc(104px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.page-damage-photo.damage-photo-intro .mobile-shell {
    padding-bottom: 0px;
}

body.page-damage-photo.damage-photo-intro .question-card {
    min-height: clamp(300px, 52dvh, 520px);
}

body.page-damage-photo.damage-photo-intro .question-card .card-body {
    padding-bottom: calc(var(--damage-intro-sticky-height, 112px) + env(safe-area-inset-bottom));
    gap: 0.72rem;
}

#damage-intro-sticky-actions .inner > .btn:first-child,
#damage-intro-sticky-actions .inner > .btn:last-child {
    flex: 1 1 100%;
}

.question-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.3vw, 1.4rem);
    line-height: 1.26;
    font-weight: 750;
}

.question-subtitle {
    margin: -0.25rem 0 0;
    font-size: 0.94rem;
    color: #4f6680;
    line-height: 1.45;
}

.quick-data {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
    padding: 0.84rem;
}

.quick-data dt {
    margin-bottom: 0.12rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6988a7;
}

.quick-data dd {
    margin-bottom: 0.62rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.quick-data dd:last-child {
    margin-bottom: 0;
}

.option-group {
    display: grid;
    gap: 0.64rem;
}

.option-pill {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.72rem;
    width: 100%;
    border: 1px solid var(--line);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, #ffffff);
    border-radius: 15px;
    padding: 0.9rem 2.92rem 0.9rem 0.9rem;
    background: #fff;
    color: var(--ink-soft);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-left-color 0.15s ease;
}

.option-pill::after {
    content: "";
    position: absolute;
    right: 0.92rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--primary) 24%, #ffffff);
    background: #fff;
}

.option-pill:hover {
    border-color: color-mix(in srgb, var(--primary) 34%, #ffffff);
    background: color-mix(in srgb, var(--primary-soft) 38%, #ffffff);
}

.btn-check:checked + .option-pill {
    border-color: color-mix(in srgb, var(--primary) 64%, #ffffff);
    border-left-color: var(--primary);
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--primary-soft) 85%, #ffffff) 100%);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
}

.btn-check:checked + .option-pill::after {
    content: "✓";
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    border-color: var(--primary);
    background: var(--primary);
}

.option-content {
    min-width: 0;
}

.option-title {
    display: block;
    font-size: 0.96rem;
    line-height: 1.28;
    font-weight: 700;
}

.option-description {
    display: block;
    margin-top: 0.24rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.option-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-soft) 80%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary) 28%, #ffffff);
    color: var(--primary-strong);
    display: inline-grid;
    place-items: center;
}

.option-icon i {
    font-size: 0.95rem;
}

.btn-check:checked + .option-pill .option-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.option-pill-damage {
    align-items: center;
}

.soft-box {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
    padding: 0.88rem;
    box-shadow: 0 8px 16px rgba(18, 45, 78, 0.06);
}

.damage-focus {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.72rem;
    align-items: start;
}

.damage-focus-panel {
    border: 2px solid color-mix(in srgb, var(--primary) 42%, #ffffff);
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--primary-soft) 82%, #ffffff) 100%);
    box-shadow: 0 8px 18px rgba(var(--bs-primary-rgb), 0.12);
}

.damage-focus-panel .small {
    color: color-mix(in srgb, var(--primary-strong) 55%, #334155) !important;
}

.damage-focus-panel #current-damage-form {
    color: color-mix(in srgb, var(--primary-strong) 62%, #1e293b);
    font-size: 1.02rem;
}

.damage-focus-icon {
    width: 2.28rem;
    height: 2.28rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-soft) 82%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, #ffffff);
    color: var(--primary-strong);
    display: grid;
    place-items: center;
}

.damage-focus-icon i {
    font-size: 0.98rem;
}

.damage-intro-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: clamp(300px, 56vh, 460px);
    padding: 1rem 0.2rem 1.35rem;
}

.damage-intro-header {
    width: min(100%, 36rem);
    margin: 0 auto;
}

.damage-intro-icon {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 18px;
    border: 1px solid #cadcf5;
    background: radial-gradient(95% 95% at 25% 20%, #ffffff 0%, rgba(255, 255, 255, 0.35) 45%, transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 70%, #ffffff) 0%, color-mix(in srgb, var(--primary) 15%, #ffffff) 100%);
    color: color-mix(in srgb, var(--primary-strong) 82%, #0f172a);
    display: grid;
    place-items: center;
    margin-bottom: 0.62rem;
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.15);
}

.damage-intro-icon i {
    font-size: 1.5rem;
}

.damage-intro-caption {
    margin: 0;
    color: color-mix(in srgb, var(--primary-strong) 55%, #64748b);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.damage-intro-title {
    margin: 0.35rem 0 0.35rem;
    font-size: clamp(1.28rem, 2.35vw, 1.5rem);
    line-height: 1.2;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary-strong) 72%, #0f172a);
}

.damage-intro-help {
    margin: 0;
    color: #516983;
    font-size: 0.9rem;
    line-height: 1.42;
    max-width: 34rem;
}

body.page-damage-photo.damage-photo-intro .damage-intro-screen {
    justify-content: flex-start;
    align-items: stretch;
    min-height: auto;
    padding-top: 0.1rem;
    padding-bottom: 0.2rem;
    gap: 0.56rem;
}

body.page-damage-photo.damage-photo-intro .damage-intro-header {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.68rem;
    align-items: center;
    text-align: left;
    background: linear-gradient(
            180deg,
            color-mix(in srgb, var(--primary-soft) 86%, #ffffff) 0%,
            color-mix(in srgb, var(--primary) 26%, #ffffff) 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary) 34%, #c8d8eb);
    border-radius: 14px;
    padding: 0.62rem 0.68rem;
    box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb), 0.16);
}

body.page-damage-photo.damage-photo-intro .damage-intro-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 8px 16px rgba(var(--bs-primary-rgb), 0.14);
}

body.page-damage-photo.damage-photo-intro .damage-intro-icon i {
    font-size: 1.18rem;
}

body.page-damage-photo.damage-photo-intro .damage-intro-header-copy {
    min-width: 0;
}

body.page-damage-photo.damage-photo-intro .damage-intro-caption {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
}

body.page-damage-photo.damage-photo-intro .damage-intro-title {
    margin: 0.18rem 0 0.16rem;
    font-size: clamp(1.02rem, 2.1vw, 1.22rem);
    line-height: 1.2;
}

body.page-damage-photo.damage-photo-intro .damage-intro-help {
    font-size: 0.82rem;
    line-height: 1.32;
    max-width: none;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-modes {
    width: 100%;
    display: grid;
    gap: 0.44rem;
    margin-top: 0.16rem;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-mode {
    border: 1px solid #dce6f3;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.56rem 0.62rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.56rem;
    align-items: center;
    box-shadow: none;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-mode-copy {
    min-width: 0;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-mode-caption {
    margin: 0;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #7689a3;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-mode-title {
    margin: 0.08rem 0 0.12rem;
    font-size: 0.88rem;
    line-height: 1.2;
    font-weight: 760;
    color: #1f3551;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-mode-description {
    margin: 0;
    font-size: 0.77rem;
    line-height: 1.34;
    color: #4c6079;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-mode-detail {
    margin: 0.16rem 0 0;
    font-size: 0.67rem;
    line-height: 1.22;
    color: #74879d;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-mode-icon {
    width: 1.96rem;
    height: 1.96rem;
    border-radius: 10px;
    border: 1px solid #dce6f3;
    background: #f7faff;
    color: #4d6582;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

body.page-damage-photo.damage-photo-intro .damage-intro-photo-mode-icon i {
    font-size: 0.82rem;
}

.damage-intro-more-examples {
    border-color: #dce6f3;
    background: #f8fbff;
    box-shadow: none;
    padding: 0.64rem 0.68rem;
}

.damage-intro-more-title {
    margin: 0 0 0.36rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5f7896;
    font-weight: 800;
}

.damage-intro-more-list {
    margin: 0;
    padding-left: 1rem;
    color: #3f556f;
    font-size: 0.79rem;
    line-height: 1.36;
    display: grid;
    gap: 0.2rem;
}

.damage-intro-more-note {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #2f5f95;
    line-height: 1.35;
}

body.page-damage-photo.damage-photo-intro .damage-intro-actions {
    width: 100%;
    margin-top: 0.5rem;
    display: block;
}

body.page-damage-photo.damage-photo-intro .damage-intro-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0.64rem 0.88rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.damage-intro-note {
    margin-top: 0.95rem;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.48rem;
    text-align: left;
    border: 1px solid #cfe0f6;
    background: #f3f8ff;
    border-radius: 12px;
    padding: 0.62rem 0.72rem;
    color: #4c6683;
    font-size: 0.83rem;
    max-width: 32rem;
}

.damage-intro-note i {
    color: #2969ce;
    margin-top: 0.08rem;
}

.damage-intro-capture-tip {
    margin-top: 0.95rem;
    width: min(100%, 36rem);
    border: 1px solid #e6cc92;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffaf1 0%, #fff4de 100%);
    padding: 0.66rem 0.72rem;
    text-align: left;
}

.damage-intro-capture-tip-head {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #8a3a00;
    margin-bottom: 0.26rem;
}

.damage-intro-capture-tip-head i {
    color: #b64900;
}

.damage-intro-capture-tip-text {
    color: #6f4f15;
    font-size: 0.84rem;
    line-height: 1.43;
}

.damage-intro-capture-list {
    margin: 0;
    padding-left: 1.12rem;
    color: #5f4414;
    font-size: 0.9rem;
    line-height: 1.45;
    display: grid;
    gap: 0.38rem;
}

.damage-intro-capture-list li::marker {
    color: #b64900;
}

.damage-intro-capture-list-title {
    list-style: none;
    margin-left: -1.12rem;
    color: #7a3200;
}

.damage-intro-critical-panel {
    margin-top: 0.95rem;
    width: min(100%, 36rem);
    border: 1px solid #e6cc92;
    border-radius: 13px;
    background: linear-gradient(180deg, #fffaf1 0%, #fff4de 100%);
    padding: 0.7rem 0.72rem;
    box-shadow: 0 8px 16px rgba(138, 58, 0, 0.08);
}

.damage-intro-critical-target {
    margin: 0.24rem 0 0.58rem;
    color: #7a3200;
    font-size: 0.8rem;
    font-weight: 700;
}

.damage-intro-critical-head {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
}

.damage-intro-critical-head-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(182, 73, 0, 0.12);
    color: #b64900;
    font-size: 0.78rem;
}

.damage-intro-critical-head-title {
    color: #8a3a00;
    font-size: 0.84rem;
    font-weight: 800;
}

.damage-intro-critical-grid {
    display: grid;
    gap: 0.46rem;
}

.damage-intro-critical-step {
    border: 1px solid #ecd5aa;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.56rem 0.62rem;
}

.damage-intro-critical-step-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #7a3200;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.damage-intro-critical-step-icon {
    width: 1.56rem;
    height: 1.56rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, #b64900 14%, #ffffff);
    color: #b64900;
    font-size: 0.8rem;
    flex: 0 0 auto;
}

.damage-intro-critical-step-title {
    color: #793100;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.18;
}

.damage-intro-critical-step-text {
    margin: 0;
    color: #5f4414;
    font-size: 0.84rem;
    line-height: 1.43;
}

.damage-intro-critical-step-note {
    margin: 0.35rem 0 0;
    color: #6f4f15;
    font-size: 0.8rem;
    line-height: 1.35;
}

@media (min-width: 760px) {
    .damage-intro-critical-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.damage-upload-tip {
    display: inline-block;
    margin-top: 0.2rem;
    color: #6f4f15;
}

.damage-intro-actions {
    width: min(100%, 420px);
    margin-top: 1rem;
    display: block;
}

.damage-intro-actions .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.2;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.72rem 0.8rem;
}

.upload-field {
    border: 2px solid color-mix(in srgb, var(--primary) 42%, #ffffff);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--primary-soft) 76%, #ffffff) 100%);
    padding: 0.85rem;
}

.facade-upload-field {
    border-color: #f1ba67;
    background: linear-gradient(180deg, #fffdf7 0%, #fff4dd 100%);
}

.facade-upload-field .form-label {
    color: #6a4100;
}

.facade-status-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    border-color: #b6dbc6;
    background: linear-gradient(180deg, #f5fff9 0%, #eafff2 100%);
    color: #1e6a3f;
    font-size: 0.84rem;
    font-weight: 700;
}

.estimate-highlight-card {
    border: 2px solid #6aa6f3;
    background: linear-gradient(180deg, #f2f8ff 0%, #e8f2ff 100%);
    box-shadow: 0 10px 20px rgba(33, 95, 183, 0.12);
}

.estimate-highlight-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.56rem;
    margin-bottom: 0.58rem;
}

.estimate-highlight-head i {
    width: 2rem;
    height: 2rem;
    border-radius: 11px;
    border: 1px solid #a7c8f5;
    background: #ffffff;
    color: #1e63cd;
    display: grid;
    place-items: center;
    font-size: 0.92rem;
}

.estimate-highlight-head .form-label {
    color: #163d73;
    font-weight: 800;
}

.estimate-highlight-subtitle {
    color: #47688f;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 600;
}

.estimate-input-group .input-group-text {
    border-color: #9ac1f2;
    background: #fff;
    color: #1f4f8f;
    font-weight: 800;
}

.estimate-input {
    border-color: #8fbaf0;
    background: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.estimate-input:focus {
    border-color: #5f98e7;
    box-shadow: 0 0 0 3px rgba(63, 130, 230, 0.22);
}

.estimate-highlight-note {
    color: #4f7198;
    font-weight: 600;
}

.estimate-review-card {
    border: 2px solid #a0c8f8;
    background: linear-gradient(180deg, #f6fbff 0%, #eaf4ff 100%);
}

.estimate-review-head {
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    color: #1f4f8f;
    margin-bottom: 0.34rem;
}

.estimate-review-value {
    font-family: "Sora", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #153e78;
}

.doc-suggestion-list {
    display: grid;
    gap: 0.72rem;
    margin-bottom: 0.9rem;
}

.doc-suggestion-item {
    border: 1px solid #cfe0f4;
    border-radius: 14px;
    background: #fbfdff;
    padding: 0.74rem;
}

.doc-suggestion-item.state-uploaded {
    border-color: #97cfac;
    background: linear-gradient(180deg, #f6fff9 0%, #ecfbf2 100%);
    box-shadow: 0 8px 16px rgba(29, 120, 67, 0.08);
}

.doc-suggestion-item.state-ready {
    border-color: #7aaee8;
    background: linear-gradient(180deg, #f4f9ff 0%, #e9f3ff 100%);
    box-shadow: 0 10px 18px rgba(27, 90, 170, 0.11);
}

.doc-suggestion-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.56rem;
    align-items: start;
    margin-bottom: 0.56rem;
}

.doc-suggestion-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 11px;
    border: 1px solid #c8dcf5;
    background: #edf5ff;
    color: #1d64cc;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.doc-suggestion-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1c3758;
}

.doc-suggestion-help {
    margin: 0.24rem 0 0;
    font-size: 0.81rem;
    line-height: 1.35;
    color: #5a748f;
}

.doc-upload-status {
    margin-top: 0.56rem;
    border-radius: 12px;
    padding: 0.46rem 0.58rem;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.doc-upload-status i {
    width: 1rem;
    text-align: center;
}

.doc-upload-status.is-empty {
    border-color: #ccd8e6;
    background: #f7faff;
    color: #5f7691;
}

.doc-upload-status.is-uploaded {
    border-color: #93cba9;
    background: #ecfaf2;
    color: #1f6f42;
}

.doc-upload-status.is-ready {
    background: #eaf3ff;
    color: #1f5fae;
}

.upload-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.upload-field-head .form-label {
    color: var(--primary-strong);
    font-weight: 700;
}

.intro-reopen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid #b8cde6;
    background: #ffffff;
    color: #2a5687;
    border-radius: 999px;
    padding: 0.32rem 0.64rem;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.intro-reopen-btn:hover,
.intro-reopen-btn:focus {
    border-color: #8fb0d8;
    background: #f7fbff;
    color: #1e4978;
    box-shadow: 0 0 0 3px rgba(79, 138, 225, 0.15);
}

.upload-field.has-files {
    border-color: var(--primary);
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--primary-soft) 88%, #ffffff) 100%);
}

.upload-copy {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.upload-trigger {
    position: relative;
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--primary) 26%, #ffffff);
    border-radius: 12px;
    background: #fff;
    color: var(--primary-strong);
    padding: 0.76rem 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 0.93rem;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.upload-trigger.is-disabled,
.upload-trigger[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.56;
}

.native-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(100%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.upload-trigger [type=file] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.upload-trigger-primary {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #ffffff;
    font-weight: 800;
}

.upload-trigger i {
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, #ffffff);
    background: color-mix(in srgb, var(--primary-soft) 82%, #ffffff);
    color: var(--primary-strong);
    display: grid;
    place-items: center;
    font-size: 0.86rem;
}

.upload-trigger:hover,
.upload-trigger:focus {
    border-color: color-mix(in srgb, var(--primary) 38%, #ffffff);
    background: color-mix(in srgb, var(--primary-soft) 42%, #ffffff);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.14);
}

.upload-trigger-primary:hover,
.upload-trigger-primary:focus {
    border-color: var(--primary-strong);
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #0b3f82) 0%, var(--primary-strong) 100%);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.22);
}

.upload-trigger-primary i {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.upload-trigger-docs {
    border-color: color-mix(in srgb, var(--primary) 25%, #ffffff);
    background: color-mix(in srgb, var(--primary-soft) 72%, #ffffff);
    color: var(--primary-strong);
    font-weight: 700;
}

.upload-trigger-docs:hover,
.upload-trigger-docs:focus {
    border-color: color-mix(in srgb, var(--primary) 35%, #ffffff);
    background: color-mix(in srgb, var(--primary-soft) 90%, #ffffff);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.16);
}

.upload-trigger-docs i {
    border-color: color-mix(in srgb, var(--primary) 20%, #ffffff);
    background: #ffffff;
    color: var(--primary-strong);
}

.doc-suggestion-item.state-uploaded .upload-trigger-docs {
    border-color: #71b58f;
    background: linear-gradient(180deg, #eefdf4 0%, #dcf6e8 100%);
    color: #1e6a3f;
}

.doc-suggestion-item.state-uploaded .upload-trigger-docs:hover,
.doc-suggestion-item.state-uploaded .upload-trigger-docs:focus {
    border-color: #5ba57d;
    background: linear-gradient(180deg, #e3f8ed 0%, #d0f0e0 100%);
    box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.18);
}

.doc-suggestion-item.state-uploaded .upload-trigger-docs i {
    border-color: #8ec7a8;
    background: #ffffff;
    color: #2a8652;
}

.upload-list {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.upload-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    max-width: 100%;
    border: 1px solid #c3d8f2;
    background: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    color: #3e5f81;
    font-size: 0.76rem;
    font-weight: 700;
}

.upload-chip i {
    color: #2a6ed4;
}

.upload-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-hint {
    margin-top: 0.52rem;
    font-size: 0.82rem;
    color: #607a96;
    font-weight: 600;
    line-height: 1.35;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 0.46rem 0.55rem;
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
}

.upload-hint i {
    width: 1rem;
    text-align: center;
    margin-top: 0.08rem;
}

.upload-hint-main {
    display: block;
    font-weight: 800;
}

.upload-hint-sub {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.77rem;
    line-height: 1.35;
}

.upload-hint.is-uploaded {
    border-color: #b8dbc8;
    background: linear-gradient(180deg, #f5fff9 0%, #edf8f2 100%);
    color: #1f6f42;
}

.upload-hint.is-uploaded i {
    color: #238851;
}

.upload-hint.is-ready {
    border-color: #b8d0ea;
    background: linear-gradient(180deg, #f6faff 0%, #eef5ff 100%);
    color: #2d5f97;
}

.upload-hint.is-ready i {
    color: #2b6ecf;
}

.helper-error {
    margin-top: 0.48rem;
    color: #b83a2b;
    font-size: 0.83rem;
    font-weight: 700;
}

.page-error-banner {
    border: 2px solid #ef9b90;
    border-radius: 14px;
    background: #9b2a1f;
    box-shadow: 0 10px 20px rgba(173, 43, 32, 0.12);
    padding: 0.78rem 0.82rem;
    margin-bottom: 0.72rem;
}

.page-error-banner-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.34rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
}

.page-error-banner-head i {
    width: 1.22rem;
    text-align: center;
}

.page-error-line {
    color: white;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.page-error-line + .page-error-line {
    margin-top: 0.2rem;
}

.summary-list {
    margin: 0;
    padding-left: 1.06rem;
}

.summary-list li {
    margin-bottom: 0.34rem;
    font-size: 0.91rem;
}

.form-label {
    margin-bottom: 0.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334a63;
}

.form-control,
.form-select {
    border-color: var(--line);
    border-radius: 13px;
    font-size: 0.96rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #8eb6f3;
    box-shadow: 0 0 0 3px rgba(76, 137, 231, 0.18);
}

.form-text {
    font-size: 0.8rem;
    color: #70859d;
}

@supports (-webkit-touch-callout: none) {
    .form-control,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

.sticky-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #d2dfee;
    backdrop-filter: blur(8px);
    box-shadow: 0 -10px 20px rgba(18, 45, 78, 0.09);
}

.sticky-actions .inner {
    width: 100%;
    display: flex;
    gap: 0.58rem;
    padding: 10px var(--shell-x) calc(12px + env(safe-area-inset-bottom));
}

.sticky-actions .btn {
    border-radius: 12px;
    padding: 0.82rem 0.94rem;
    font-size: 0.92rem;
    font-weight: 800;
    min-width: 0;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.sticky-actions .inner > .btn:first-child {
    flex: 0 0 34%;
}

.sticky-actions .inner > .btn:last-child {
    flex: 1 1 66%;
}

.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--primary-strong);
    background: var(--primary-strong);
}

.btn-success {
    border-color: var(--success);
    background: var(--success);
}

.btn-outline-secondary {
    color: #35546f;
    border-color: #bdd0e4;
    background: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #294764;
    border-color: #a8bfd8;
    background: #f8fbff;
}

.empty-state {
    border: 1px dashed #aec3dc;
    border-radius: 12px;
    background: #f4f8ff;
    padding: 0.95rem;
    color: #3c5873;
    font-size: 0.9rem;
}

.upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(14, 33, 58, 0.72);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
}

.upload-overlay.is-active {
    display: flex;
}

.upload-overlay-card {
    width: min(100%, 460px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(227, 237, 250, 0.16) 100%);
    padding: 1.05rem 0.98rem;
    color: #f3f8ff;
    box-shadow: 0 22px 34px rgba(5, 17, 36, 0.34);
}

.upload-overlay-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.upload-overlay-subtitle {
    margin: 0.34rem 0 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: rgba(239, 246, 255, 0.92);
}

.upload-overlay-progress {
    position: relative;
    margin-top: 0.8rem;
    width: 100%;
    height: 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    overflow: hidden;
}

.upload-overlay-progress::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #b9d4ff 0%, #ffffff 100%);
    transform: translate3d(-120%, 0, 0);
    animation: none;
    will-change: transform;
}

.upload-overlay.is-active .upload-overlay-progress::before {
    animation: upload-indeterminate 1.1s ease-in-out infinite;
}

@keyframes upload-indeterminate {
    0% {
        transform: translate3d(-120%, 0, 0);
    }
    100% {
        transform: translate3d(260%, 0, 0);
    }
}

@media (min-width: 920px) {
    :root {
        --shell-x: clamp(24px, 5vw, 60px);
    }

    .mobile-shell {
        max-width: 100%;
    }
}
