/* EXP-011 is an inset tool module; inherits the existing modern page shell. */
.loan-import {margin:2rem 0;padding:2rem;background:#fff;border:1px solid rgba(15, 23, 42, 0.08);border-radius:20px;box-shadow:0 14px 36px rgba(15, 23, 42, 0.08);color:#212931;}
.loan-import [hidden], [data-loan-rollout][hidden] {display:none!important}
.loan-import h2 {color:#18212b;letter-spacing:-.02em;font-weight:900}
.loan-import label {display:block;font-size:1rem;font-weight:700;margin:.8rem 0 .3rem;letter-spacing:normal;text-transform:none}
.loan-import input,.loan-import select,.loan-import textarea {width:100%;max-width:100%;font:inherit;border:1px solid #87929b;border-radius:8px;color:#212931;background:#fff;padding:.6rem;min-height:44px}
.loan-import textarea {resize:vertical}
.loan-import button {white-space:normal;line-height:1.35;height:auto;min-height:44px;padding:.7rem 1rem;letter-spacing:normal;text-transform:none;box-shadow:none;border:1px solid #84937a;font:inherit;font-weight:700;border-radius:12px}
.loan-import .lt-primaryCta {background:#afe67e;color:#18212b;border:0}
.loan-import .lt-primaryCta:hover {background:#bcf18c}
.loan-import :focus-visible {outline:3px solid rgba(53, 84, 40, 0.32);outline-offset:3px}
.loan-import-actions {display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;margin:1rem 0}
.loan-import-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}
.loan-import-row {border:1px solid rgba(15, 23, 42, 0.08);border-radius:20px;padding:1rem;margin:1rem 0;background:#f4f6f8}
.loan-import-row summary {cursor:pointer;min-height:44px;padding:.5rem 0}
.loan-import-balance {font-size:1.5rem;font-weight:900;padding:1rem;background:#e9f5df;border-radius:12px}
.loan-import-disclosure {font-size:.95rem;line-height:1.6}
.loan-import-questions {padding:1rem;border-inline-start:4px solid #8d631d;background:#fff9e9}
.loan-import input[type=checkbox] {appearance:auto;opacity:1;position:static;width:1.2rem;height:1.2rem;min-height:0;margin-inline-end:.6rem}
.loan-import pre {white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem}
.loan-import svg {width:min(100%,280px);height:auto;display:block}
.loan-import .loan-import-source {max-height:15rem;overflow:auto}
@media(max-width:640px){.loan-import{padding:1.1rem}.loan-import-grid{grid-template-columns:1fr}.loan-import-actions{align-items:stretch;flex-direction:column}.loan-import-actions>*{width:100%}}

.loan-import #loan-import-image {margin:1rem 0;overflow:auto;max-height:70vh}
.loan-import #loan-import-image-preview {display:block;max-width:100%;width:auto;height:auto}

.loan-import #loan-import-image-preview.enlarged {max-width:none}

.loan-import-upload-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.loan-import .loan-import-hint {font-size:.85rem;margin:0 0 .5rem;line-height:1.4}
.loan-import details {margin:1rem 0}
.loan-import summary {cursor:pointer;font-weight:700;min-height:44px;padding:.5rem 0}
.loan-import [tabindex="-1"] {scroll-margin-top:1rem}
@media(pointer:fine){.loan-import-camera-option{display:none}}
@media(max-width:640px){.loan-import-upload-grid{grid-template-columns:1fr}.loan-import p{line-height:1.5}}

.loan-import {font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.loan-import button.lt-primaryCta {color:#18212b!important}

.loan-import a {text-decoration:underline;text-underline-offset:3px}

/* Scoped tool surface: stays light to match the surrounding website. */
#import-loan-history {--li-text:#212931;--li-muted:#53616d;--li-surface:#fff;--li-inset:#f4f6f8;--li-line:rgba(15,23,42,.13);--li-accent:#afe67e;background:var(--li-surface);color:var(--li-text);border-radius:24px;padding:clamp(1.25rem,4vw,2.5rem)}
#import-loan-history h2,#import-loan-history h3,#import-loan-history h4,#import-loan-history label,#import-loan-history summary {color:var(--li-text)}
#import-loan-history h3 {letter-spacing:-.02em;text-transform:none}
#import-loan-history .lt-eyebrow,#import-loan-history .loan-import-hint,.loan-import-disclosure {color:var(--li-muted)}
#import-loan-history input,#import-loan-history select,#import-loan-history textarea {background:var(--li-surface);color:var(--li-text);border:1px solid var(--li-line);border-radius:12px}
#import-loan-history textarea {padding:1rem;line-height:1.6}
#import-loan-history textarea::placeholder {color:var(--li-muted);opacity:1}
.loan-import-upload-grid {margin-top:1.25rem}
.loan-import-upload-grid>div {padding:1rem 1.1rem;background:var(--li-inset);border:1px solid var(--li-line);border-radius:20px}
.loan-import-upload-grid label {margin-top:0}
#import-loan-history input[type=file] {font-size:.85rem;padding:.4rem;background:transparent;border:0}
#import-loan-history input::file-selector-button {font:inherit;font-weight:600;padding:.6rem .8rem;margin-inline-end:.6rem;border:1px solid var(--li-line);border-radius:10px;background:var(--li-surface);color:var(--li-text);cursor:pointer}
#import-loan-history button {background:var(--li-surface);color:var(--li-text)!important;border-color:var(--li-line);transition:background .18s ease,box-shadow .18s ease}
#import-loan-history button:hover {background:var(--li-inset);box-shadow:0 3px 10px rgba(15,23,42,.06)}
#import-loan-history button:disabled {opacity:.5;cursor:default}
#import-loan-history .loan-import-row {background:var(--li-inset);border-color:var(--li-line)}
#import-loan-history #loan-import-status:empty {display:none}
#import-loan-history #loan-import-status {font-size:.95rem;line-height:1.6}
#import-loan-history[aria-busy=true] #loan-import-status {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.loan-import-loading {text-align:center;padding:clamp(2rem,6vw,4rem) 1rem;background:radial-gradient(ellipse at top,rgba(175,230,126,.18),transparent 70%),var(--li-inset);border:1px solid var(--li-line);border-radius:20px;margin:1.5rem 0;outline:none}
.loan-import-loading h3 {margin:1.25rem 0 .65rem;font-size:1.4rem}
.loan-import-loading p {max-width:30rem;margin:0 auto 1.5rem;line-height:1.6;color:var(--li-muted)}
.loan-import-orbit {position:relative;display:grid;place-items:center;width:88px;height:88px;margin:auto;border:1px solid var(--li-line);border-radius:50%;background:var(--li-surface)}
.loan-import-orbit:after {content:"";position:absolute;inset:-2px;border:3px solid transparent;border-top-color:#659d39;border-right-color:var(--li-accent);border-radius:50%;animation:loan-orbit 2.4s linear infinite}
.loan-import-document {display:flex;flex-direction:column;justify-content:center;gap:6px;width:32px;height:40px;border:1.5px solid var(--li-muted);border-radius:6px;padding:6px}
.loan-import-document i {height:2px;border-radius:2px;background:var(--li-muted);animation:loan-line 2.4s ease-in-out infinite}
.loan-import-document i:nth-child(2) {animation-delay:.2s}.loan-import-document i:last-child {width:65%;animation-delay:.4s}
@keyframes loan-orbit {to{transform:rotate(360deg)}}
@keyframes loan-line {0%,100%{opacity:.35}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){#import-loan-history *,#import-loan-history *:after {animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#import-loan-history p {color:var(--li-text);font-family:inherit}
#import-loan-history .loan-import-hint, #import-loan-history .loan-import-disclosure, #import-loan-history .lt-eyebrow, #import-loan-history .loan-import-loading p {color:var(--li-muted)}
#import-loan-history button.lt-primaryCta {background:#afe67e;color:#18212b!important;border:0}
#import-loan-history button.lt-primaryCta:hover {background:#bcf18c}
#import-loan-history .loan-import-loading p {text-align:center}
#import-loan-history .loan-import-loading h3 {font-family:inherit;font-weight:650;font-size:1.4rem}

#import-loan-history .loan-import-source-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.25rem 0 .8rem}
#import-loan-history .loan-import-source-choices button {display:flex;align-items:center;gap:1rem;text-align:left;padding:1.15rem;background:var(--li-inset);border-radius:20px;min-height:130px}
#import-loan-history .loan-import-source-choices button:hover,#import-loan-history .loan-import-source-choices button[data-selected=true] {background:#eef6e7;border-color:#82a966}
#import-loan-history .loan-import-source-choices button>span:nth-child(2) {flex:1;min-width:0}
#import-loan-history .loan-import-source-choices strong {display:block;font:650 1.1rem/1.4 system-ui,sans-serif;color:var(--li-text)}
#import-loan-history .loan-import-source-choices small {display:block;margin-top:.3rem;font-size:.88rem;font-weight:400;line-height:1.5;color:var(--li-muted)}
#import-loan-history .loan-import-source-icon {display:grid;place-items:center;flex-shrink:0;width:40px;height:44px;border-radius:12px;background:#e3efda;font:500 1.3rem/1 system-ui,sans-serif}
#import-loan-history #loan-import-photo-options {padding:1rem;background:var(--li-inset);border-radius:16px}
#import-loan-history #loan-import-text-panel {margin:1.2rem 0}
#import-loan-history #loan-import-selected-document {padding:1rem;background:#eef6e7;border-radius:12px;overflow-wrap:anywhere}
@media(max-width:850px){#import-loan-history .loan-import-source-choices{grid-template-columns:1fr}#import-loan-history .loan-import-source-choices button{min-height:88px}}

#import-loan-history .loan-import-source-icon svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* Brand green is a surface, with dark text for contrast. */
#import-loan-history .loan-import-source-icon {background:var(--li-accent);color:#18212b}
#import-loan-history button.lt-primaryCta {min-height:56px;padding:1rem 1.5rem;font-weight:700}
#import-loan-history input[type=checkbox] {accent-color:#355428}
