.image-upload-page {
    --upload-primary: #15803d;
    --upload-primary-dark: #14532d;
    --upload-cyan: #16a34a;
    --upload-success: #059669;
    --upload-text: #0f172a;
    --upload-muted: #64748b;
    --upload-border: #e2e8f0;
    --upload-surface: #ffffff;
}

.image-upload-page .upload-hero { min-height: 170px; padding: 30px 36px; border: 1px solid #dce8e0; background: #fff; box-shadow: 0 8px 28px #173c3308; }
.image-upload-page .upload-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); color: #173c33; }
.image-upload-page .upload-hero-art { min-height: 120px; }
.image-upload-page .upload-art-card { width: 90px; height: 90px; border-radius: 24px; transform: rotate(5deg); background: #1f6d53; box-shadow: 0 12px 24px #173c3318; }
.image-upload-page .orbit-one { width: 150px; height: 150px; }
.image-upload-page .orbit-two { width: 120px; height: 120px; }
.upload-limit { display: inline-flex; padding: 7px 12px; border-radius: 8px; background: #eff7f2; color: #1f6d53; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.image-upload-page .upload-panel, .image-upload-page .result-panel { border-color: #dce8e0; box-shadow: 0 6px 24px #173c3308; }
.image-upload-page .upload-submit { background: #1f6d53; border-radius: 12px; box-shadow: 0 4px 12px #173c3315; }
.batch-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.batch-preview:empty { display: none; }
.batch-preview-card { position: relative; min-width: 0; padding: 7px; border: 1px solid #dce8e0; border-radius: 12px; background: #f8fbf9; }
.batch-preview-card img { width: 100%; height: 90px; object-fit: cover; border-radius: 7px; }
.batch-preview-card span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; margin-top: 6px; }
.batch-preview-card button { position: absolute; top: 11px; right: 11px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; color: #9f1239; cursor: pointer; font-size: 20px; }
.batch-results { display: grid; gap: 12px; }
.batch-result { min-width: 0; padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fbfdfc; }
.batch-result strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.batch-result p { margin: 6px 0 12px; font-size: 12px; color: #a34036; }
.batch-result.is-success p { color: #1f6d53; }
.batch-result img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; float: right; margin-left: 10px; }
.batch-result input { display: block; box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid #dce8e0; border-radius: 8px; background: #fff; font-size: 12px; }
.batch-result button, .batch-result a { display: inline-block; padding: 8px 12px; margin: 10px 8px 0 0; border: 1px solid #dce8e0; border-radius: 8px; color: #1f6d53; background: #fff; font-size: 12px; cursor: pointer; }
.image-upload-page button:focus-visible, .image-upload-page a:focus-visible { outline: 3px solid #86b79b; outline-offset: 3px; }
@media (max-width: 600px) {
    .image-upload-page .upload-hero { padding: 24px; min-height: 130px; }
    .batch-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.image-upload-page .image-upload-content {
    background:
        radial-gradient(circle at 86% 4%, rgba(34, 197, 94, .10), transparent 25rem),
        radial-gradient(circle at 7% 68%, rgba(134, 239, 172, .11), transparent 22rem),
        #f0f9f3;
    min-height: calc(100vh - 80px);
    padding-bottom: 42px;
}

.upload-breadcrumb { display: flex; align-items: center; gap: 9px; padding-top: 24px; margin-bottom: 16px; color: #64748b; font-size: 13px; font-weight: 600; }
.upload-breadcrumb a { color: #475569; transition: color .2s ease; }
.upload-breadcrumb a:hover { color: var(--upload-primary); }
.upload-breadcrumb i { font-size: 9px; color: #94a3b8; }

.upload-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .45fr);
    min-height: 310px; padding: 48px 55px; border: 1px solid rgba(187, 247, 208, .88); border-radius: 28px;
    background: linear-gradient(135deg, #fff 0%, #f4fcf6 52%, #dcfce7 100%); box-shadow: 0 18px 45px rgba(30, 65, 42, .09);
}
.upload-hero::before { content: ''; position: absolute; inset: auto -85px -130px auto; width: 350px; height: 350px; border-radius: 50%; background: rgba(34, 197, 94, .08); }
.upload-hero-copy { position: relative; z-index: 2; align-self: center; max-width: 720px; }

.upload-hero h1 { margin: 17px 0 13px; color: var(--upload-text); font-size: clamp(34px, 4vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.upload-hero h1 span { color: var(--upload-primary); }




.upload-hero-art { position: relative; display: grid; min-height: 210px; place-items: center; }
.upload-art-orbit { position: absolute; border: 1px solid rgba(21, 128, 61, .18); border-radius: 50%; }
.orbit-one { width: 220px; height: 220px; }
.orbit-two { width: 165px; height: 165px; border-style: dashed; }
.upload-art-card { position: relative; z-index: 1; display: flex; width: 126px; height: 126px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; border: 1px solid rgba(255,255,255,.8); border-radius: 32px; background: linear-gradient(145deg, #16a34a, #14532d); color: #fff; box-shadow: 0 24px 40px rgba(20,83,45,.26); transform: rotate(5deg); }
.upload-art-card i { font-size: 42px; }.upload-art-card span { font-size: 12px; font-weight: 900; letter-spacing: .18em; }
@keyframes upload-orbit { to { transform: rotate(360deg); } }

.upload-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); gap: 24px; margin-top: 24px; }
.upload-panel, .result-panel { min-width: 0; padding: 30px; border: 1px solid var(--upload-border); border-radius: 24px; background: var(--upload-surface); box-shadow: 0 12px 35px rgba(30,41,59,.065); }
.upload-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.upload-step { color: var(--upload-primary); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.upload-panel-heading h2 { margin: 3px 0 3px; color: var(--upload-text); font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.upload-panel-heading p { color: var(--upload-muted); font-size: 13px; }
.imgur-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 99px; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 800; }

.upload-dropzone { display: flex; min-height: 270px; align-items: center; justify-content: center; flex-direction: column; padding: 32px; border: 2px dashed #cbd5e1; border-radius: 20px; background: linear-gradient(145deg, #fbfdff, #f8fafc); cursor: pointer; text-align: center; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.upload-dropzone:hover, .upload-dropzone:focus-visible, .upload-dropzone.is-dragging { border-color: var(--upload-primary); outline: none; background: #f0fdf4; box-shadow: 0 0 0 4px rgba(34,197,94,.10); transform: translateY(-2px); }
.upload-drop-icon { display: grid; width: 72px; height: 72px; margin-bottom: 18px; place-items: center; border-radius: 22px; background: #dcfce7; color: var(--upload-primary); font-size: 30px; }
.upload-dropzone strong { color: var(--upload-text); font-size: 18px; font-weight: 800; }.upload-dropzone p { margin: 7px 0 18px; color: var(--upload-muted); font-size: 13px; }
.upload-select-button { display: inline-flex; padding: 10px 18px; border-radius: 10px; background: var(--upload-primary); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 8px 18px rgba(21,128,61,.22); }

.file-preview { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; min-height: 180px; padding: 16px; border: 1px solid #dbe3ee; border-radius: 20px; background: #f8fafc; }
.preview-image-wrap { overflow: hidden; min-height: 148px; border-radius: 14px; background: #e2e8f0; }.preview-image-wrap img { width: 100%; height: 100%; max-height: 180px; object-fit: cover; }
.preview-details { display: flex; min-width: 0; align-items: flex-start; justify-content: center; flex-direction: column; }.preview-details strong { overflow: hidden; width: 100%; color: var(--upload-text); font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.preview-details > span { margin: 6px 0 18px; color: var(--upload-muted); font-size: 12px; }
.preview-details button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--upload-primary); font-size: 12px; font-weight: 800; cursor: pointer; }

.upload-status { margin-top: 17px; padding: 14px 16px; border-radius: 13px; background: #f1f5f9; }.upload-status-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #475569; font-size: 12px; }.upload-status-row strong { color: var(--upload-primary); }
.upload-progress { overflow: hidden; height: 7px; border-radius: 99px; background: #dbe3ee; }.upload-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--upload-primary-dark), #22c55e); transition: width .15s linear; }
.upload-error { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 12px; line-height: 1.5; }.upload-error i { margin-top: 3px; }
.upload-submit { display: flex; width: 100%; height: 52px; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--upload-primary), #14532d); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 11px 24px rgba(21,128,61,.23); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.upload-submit:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 15px 28px rgba(20,83,45,.27); }.upload-submit:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }.upload-submit.is-loading i { animation: upload-pulse 1s ease-in-out infinite; }
@keyframes upload-pulse { 50% { transform: translateY(-3px); opacity: .55; } }

.result-panel { display: flex; flex-direction: column; }.result-empty { display: flex; min-height: 320px; align-items: center; justify-content: center; flex-direction: column; padding: 35px; border: 1px dashed #dbe3ee; border-radius: 20px; background: #fbfdff; text-align: center; }
.result-empty > div { display: grid; width: 62px; height: 62px; margin-bottom: 17px; place-items: center; border-radius: 20px; background: #f1f5f9; color: #94a3b8; font-size: 25px; }.result-empty strong { color: #334155; font-size: 15px; }.result-empty p { max-width: 310px; margin-top: 7px; color: #94a3b8; font-size: 12px; line-height: 1.6; }
.result-success { min-width: 0; }.result-image { position: relative; display: block; overflow: hidden; height: 185px; border-radius: 17px; background: #e2e8f0; }.result-image img { width: 100%; height: 100%; object-fit: contain; }.result-image > span { position: absolute; right: 10px; bottom: 10px; padding: 7px 10px; border-radius: 9px; background: rgba(15,23,42,.78); color: #fff; font-size: 10px; font-weight: 700; backdrop-filter: blur(5px); }
.result-success-title { display: flex; align-items: center; gap: 11px; margin: 17px 0; }.result-success-title > i { color: var(--upload-success); font-size: 25px; }.result-success-title div { display: flex; min-width: 0; flex-direction: column; }.result-success-title strong { color: #065f46; font-size: 14px; }.result-success-title span { color: var(--upload-muted); font-size: 11px; }
.result-success > label { display: block; margin-bottom: 7px; color: #334155; font-size: 12px; font-weight: 800; }.result-link-row { display: flex; min-width: 0; }.result-link-row input { min-width: 0; height: 46px; flex: 1; padding: 0 13px; border: 1px solid #cbd5e1; border-right: 0; border-radius: 11px 0 0 11px; outline: none; background: #f8fafc; color: #334155; font-size: 12px; }.result-link-row button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 0 11px 11px 0; background: var(--upload-primary); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }.result-link-row button.is-copied { background: var(--upload-success); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }.result-actions button, .result-actions a { display: flex; height: 42px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #dbe3ee; border-radius: 11px; background: #fff; color: #475569; font-size: 12px; font-weight: 800; cursor: pointer; }.result-actions a { color: var(--upload-primary); }

.upload-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }.upload-notes article { display: flex; gap: 13px; padding: 20px; border: 1px solid var(--upload-border); border-radius: 18px; background: rgba(255,255,255,.86); }.upload-notes article > i { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #dcfce7; color: var(--upload-primary); }.upload-notes strong { color: #1e293b; font-size: 13px; }.upload-notes p { margin-top: 4px; color: var(--upload-muted); font-size: 11px; line-height: 1.55; }

[hidden] { display: none !important; }

@media (max-width: 1180px) { .upload-hero { grid-template-columns: 1fr 220px; padding: 42px; }.upload-workspace { grid-template-columns: 1fr 1fr; }.upload-panel, .result-panel { padding: 25px; } }
@media (max-width: 900px) { .upload-hero { grid-template-columns: 1fr; }.upload-hero-art { display: none; }.upload-workspace { grid-template-columns: 1fr; }.upload-notes { grid-template-columns: 1fr; }.result-empty { min-height: 230px; } }
@media (max-width: 640px) {
    .image-upload-page .image-upload-content { padding-left: 14px; padding-right: 14px; }.upload-breadcrumb { padding-top: 16px; }
    .upload-hero { min-height: 0; padding: 29px 21px; border-radius: 22px; }.upload-hero h1 { margin-top: 14px; font-size: 31px; }
    .upload-workspace { gap: 16px; margin-top: 16px; }.upload-panel, .result-panel { padding: 20px 16px; border-radius: 20px; }.upload-panel-heading { margin-bottom: 18px; }.upload-panel-heading h2 { font-size: 20px; }.imgur-badge { font-size: 9px; }
    .upload-dropzone { min-height: 235px; padding: 25px 15px; }.file-preview { grid-template-columns: 105px minmax(0, 1fr); gap: 13px; }.preview-image-wrap { min-height: 120px; }.preview-details strong { font-size: 13px; }
    .result-image { height: 165px; }.result-link-row { flex-direction: column; gap: 8px; }.result-link-row input { width: 100%; border-right: 1px solid #cbd5e1; border-radius: 11px; }.result-link-row button { height: 43px; justify-content: center; border-radius: 11px; }.upload-notes { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .image-upload-page *, .image-upload-page *::before, .image-upload-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }