:root {
    --color-primary: #171717;
    --color-primary-hover: #2b2b2b;
    --color-accent: #9a6700;
    --color-accent-soft: #fff7df;
    --color-background: #f6f7f9;
    --color-surface: #ffffff;
    --color-surface-2: #f9fafb;
    --color-text: #171717;
    --color-muted: #667085;
    --color-border: #e4e7ec;
    --color-success: #087443;
    --color-success-soft: #ecfdf3;
    --color-danger: #b42318;
    --color-danger-soft: #fff1f0;
    --color-warning: #8a4b00;
    --color-warning-soft: #fff7e6;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 12px 32px rgba(16, 24, 40, .09);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --focus: 0 0 0 3px rgba(154, 103, 0, .22);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button, a.button { touch-action: manipulation; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
    --color-primary: #1d4ed8;
    --color-primary-hover: #1e40af;
    --color-accent: #2563eb;
    --color-accent-soft: #eff6ff;
    --color-background: #f4f7fb;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --focus: 0 0 0 3px rgba(37, 99, 235, .18);
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% -4%, rgba(37, 99, 235, .10), transparent 27rem),
        radial-gradient(circle at 92% 10%, rgba(14, 165, 233, .07), transparent 22rem),
        var(--color-background);
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: min(960px, calc(100% - 24px));
    margin: 12px auto 0;
    padding: 11px 13px;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-mark img { display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover; }
.public-main {
    width: min(820px, calc(100% - 24px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.hero { text-align: center; margin-bottom: 28px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.22; letter-spacing: -.035em; }
h1 { font-size: clamp(31px, 7vw, 48px); }
h2 { font-size: clamp(23px, 5vw, 30px); }
h3 { font-size: 18px; }
.hero p { max-width: 560px; margin: 16px auto 0; color: var(--color-muted); }

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .065);
}
.card-body { padding: clamp(20px, 5vw, 34px); }
.card-header { padding: 24px 28px 0; }
.card-header + .card-body { padding-top: 20px; }

.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }
.section-stack { display: grid; gap: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
.field { min-width: 0; }
.field label, .field-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 650;
}
.required { color: var(--color-danger); }
.field-help { margin: 6px 0 0; color: var(--color-muted); font-size: 13px; line-height: 1.45; }
.field-error { margin: 6px 0 0; color: var(--color-danger); font-size: 13px; }
.return-reason-panel { display: grid; gap: 14px; padding: 16px; border: 1px solid #dfe7f1; border-radius: 14px; background: #f8fafc; }
.return-reason-panel .field-help { color: #64748b; }
.return-reason-tip { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid #bfdbfe; border-radius: 12px; color: #1e3a8a; background: #eff6ff; }
.return-reason-tip[hidden] { display: none !important; }
.return-reason-tip > span { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #1d4ed8; background: #dbeafe; }
.return-reason-tip > span svg { width: 17px; height: 17px; }
.return-reason-tip > div { min-width: 0; }
.return-reason-tip strong { display: block; font-size: 14px; line-height: 1.45; }
.return-reason-tip p { margin: 3px 0 0; color: #334e7d; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.return-product-switch { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 11px; padding: 13px 14px; border: 1px solid #bbf7d0; border-radius: 12px; color: #14532d; background: #f0fdf4; }
.return-product-switch[hidden] { display: none !important; }
.return-product-switch > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #15803d; background: #dcfce7; }
.return-product-switch > span svg { width: 19px; height: 19px; }
.return-product-switch > div { min-width: 0; }
.return-product-switch strong { display: block; font-size: 14px; line-height: 1.45; }
.return-product-switch p { margin: 3px 0 0; color: #3f6d50; font-size: 13px; line-height: 1.55; }
.return-product-switch-button { grid-column: 1 / -1; width: 100%; min-height: 46px; margin-top: 2px; white-space: nowrap; }
.return-reason-other[hidden] { display: none !important; }
.return-reason-other textarea { min-height: 92px; background: #fff; }

input[type="text"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="datetime-local"], select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cfd4dc;
    border-radius: var(--radius-sm);
    outline: none;
    background: #fff;
    color: var(--color-text);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: #98a2b3; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--focus);
}
input[readonly] { background: #f5f6f7; color: #475467; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.button:hover { background: var(--color-primary-hover); }
.button:active { opacity: .84; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button svg { width: 18px; height: 18px; }
.button-block { width: 100%; }
.button-secondary { background: #fff; border-color: var(--color-border); color: var(--color-text); }
.button-secondary:hover { background: #f5f6f7; }
.button-danger { background: var(--color-danger); }
.button-danger:hover { background: #912018; }
.button-switch { background: #047857; }
.button-switch:hover { background: #065f46; }
.button-quiet { background: transparent; color: var(--color-muted); }
.button-quiet:hover { background: #f2f4f7; color: var(--color-text); }
.button-small { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 14px;
}
.alert-success { background: var(--color-success-soft); border-color: #a6f4c5; color: #05603a; }
.alert-error { background: var(--color-danger-soft); border-color: #fecdca; color: #912018; }
.alert-warning { background: var(--color-warning-soft); border-color: #fedf89; color: #7a2e0e; }
.alert-info { background: #f1f5ff; border-color: #c7d7fe; color: #2d4a8a; }
.alert svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; }

.return-notice {
    position: relative;
    margin-bottom: 28px;
    padding: clamp(18px, 4vw, 24px);
    overflow: hidden;
    border: 1px solid #c7d2fe;
    border-radius: 22px;
    background: radial-gradient(circle at 92% 4%, rgba(168, 85, 247, .14), transparent 30%), linear-gradient(145deg, #f8faff 0%, #f5f3ff 58%, #fff 100%);
    box-shadow: 0 18px 48px rgba(79, 70, 229, .11);
    color: #1e1b4b;
}
.return-notice::after { content: ''; position: absolute; top: -86px; right: -72px; width: 190px; height: 190px; border-radius: 50%; background: rgba(99, 102, 241, .07); pointer-events: none; }
.return-notice-head { position: relative; z-index: 1; display: block; min-width: 0; padding: 16px 16px 16px 18px; border: 1px solid #a5b4fc; border-radius: 16px; background: linear-gradient(145deg, #fff, #f8faff); box-shadow: inset 4px 0 0 #6366f1, 0 10px 26px rgba(79, 70, 229, .08); }
.refund-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin-bottom: 7px; }
.return-notice-kicker {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.refund-time-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.refund-time-fast { color: #5b21b6; background: #ede9fe; }
.refund-time-standard { color: #3730a3; background: #e0e7ff; }
.refund-time-slow { color: #9a3412; background: #ffedd5; }
.return-notice h2 {
    color: #3730a3;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0;
}
.return-notice-lead { margin: 5px 0 0; color: #475569; font-size: 14px; font-weight: 400; line-height: 1.58; }
.return-notice-lead b { color: #3730a3; font-weight: 800; }
.refund-speed-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.refund-speed {
    min-width: 0;
    padding: 16px;
    border: 1px solid;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(30, 41, 59, .055);
}
.refund-speed-label {
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.refund-speed strong { display: block; font-size: 19px; line-height: 1.35; }
.refund-speed p { margin: 5px 0 0; color: #475569; font-size: 14px; line-height: 1.58; }
.refund-speed p b { font-size: 15px; }
.refund-speed-standard { border-color: #c7d2fe; background: linear-gradient(145deg, #fff, #f8faff); box-shadow: inset 4px 0 0 #818cf8, 0 8px 22px rgba(30, 41, 59, .055); }
.refund-speed-standard .refund-speed-label, .refund-speed-standard strong, .refund-speed-standard p b { color: #3730a3; }
.refund-speed-slow { border-color: #fed7aa; background: linear-gradient(145deg, #fff, #fff7ed); box-shadow: inset 4px 0 0 #fb923c, 0 8px 22px rgba(30, 41, 59, .055); }
.refund-speed-slow .refund-speed-label, .refund-speed-slow strong, .refund-speed-slow p b { color: #9a3412; }
.return-retention-tips { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 12px; }
.return-retention-tip { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; border: 1px solid; border-radius: 14px; background: #fff; }
.return-retention-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.return-retention-icon svg { width: 18px; height: 18px; }
.return-retention-tip > div { min-width: 0; }
.return-retention-tip strong { display: block; color: #26344e; font-size: 15px; line-height: 1.45; }
.return-retention-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.return-retention-heading > strong { min-width: 0; }
.return-retention-heading > span { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); font-size: 11px; font-weight: 800; white-space: nowrap; }
.return-retention-tip p { margin: 4px 0 0; color: #475569; font-size: 14px; line-height: 1.68; overflow-wrap: anywhere; }
.return-retention-tip p b { color: inherit; font-weight: 800; }
.return-retention-tip.plan-tip { border-color: #bfdbfe; background: linear-gradient(135deg, #eff6ff, #f5f3ff); }
.return-retention-tip.plan-tip .return-retention-icon { color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); }
.return-retention-tip.plan-tip strong, .return-retention-tip.plan-tip p b { color: #3730a3; }

.summary-box {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-2);
}
.summary-box h3 { margin-bottom: 12px; }
.summary-list { display: grid; gap: 8px; margin: 0; }
.summary-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; }
.summary-row dt { color: var(--color-muted); }
.summary-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.price-value { color: #047857; font-size: 18px; font-variant-numeric: tabular-nums; }

.smart-courier-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fffc 100%);
}
.smart-courier-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #047857; color: #fff; }
.smart-courier-icon svg { width: 22px; height: 22px; }
.smart-courier-card strong { display: block; color: #065f46; font-size: 16px; }
.smart-courier-card p { margin: 3px 0 0; color: #47665b; font-size: 14px; line-height: 1.55; }
.smart-courier-badge { padding: 4px 9px; border-radius: 999px; background: #d1fae5; color: #047857; font-size: 12px; font-weight: 800; white-space: nowrap; }
.switch-help { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fff7ed; color: #9a3412; }

.step-header { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.step-number {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
.step-header p { margin: 4px 0 0; color: var(--color-muted); font-size: 14px; }

.option-grid { display: grid; gap: 12px; }
.radio-option { position: relative; }
.radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.radio-option label:hover { border-color: #98a2b3; }
.radio-option input:checked + label { border-color: var(--color-accent); background: var(--color-accent-soft); box-shadow: 0 0 0 1px var(--color-accent); }
.radio-option input:focus-visible + label { box-shadow: var(--focus); }
.radio-dot { width: 18px; height: 18px; border: 2px solid #98a2b3; border-radius: 50%; }
.radio-option input:checked + label .radio-dot { border: 5px solid var(--color-accent); }

.success-hero { text-align: center; }
.success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--color-success-soft);
    color: var(--color-success);
}
.success-icon svg { width: 34px; height: 34px; }
.success-hero p { color: var(--color-muted); }

.return-form-hero { margin: 0 4px 20px; text-align: left; }
.return-form-hero h1 { font-size: clamp(30px, 6vw, 42px); }
.return-form-hero p { max-width: 680px; margin: 9px 0 0; font-size: 16px; }

.rebook-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: #fffbeb;
    color: #78350f;
}
.rebook-notice-icon { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fef3c7; color: #b45309; }
.rebook-notice-icon svg { width: 17px; height: 17px; }
.rebook-notice strong { display: block; font-size: 14px; line-height: 1.45; }
.rebook-notice span:not(.rebook-notice-icon) { display: block; margin-top: 2px; color: #92400e; font-size: 13px; line-height: 1.5; }

/* Young customer return experience. Kept under public-page to avoid affecting admin UI. */
.public-page {
    --public-primary: #5b5cf0;
    --public-primary-strong: #4338ca;
    --public-secondary: #06b6d4;
    --public-ink: #17213a;
    --public-muted: #667085;
    --public-line: #dfe4f2;
    --public-surface: rgba(255, 255, 255, .94);
    --public-shadow-sm: 0 10px 28px rgba(48, 46, 129, .07);
    --public-shadow-lg: 0 24px 70px rgba(67, 56, 202, .14);
    background: #f5f7ff;
    color: var(--public-ink);
}
.public-page.modal-open { overflow: hidden; }
.public-page .site-shell {
    --color-primary: var(--public-primary);
    --color-primary-hover: var(--public-primary-strong);
    --color-accent: var(--public-primary);
    --color-accent-soft: #eef2ff;
    --color-background: transparent;
    --color-text: var(--public-ink);
    --color-muted: var(--public-muted);
    --color-border: var(--public-line);
    --focus: 0 0 0 4px rgba(91, 92, 240, .17);
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(130deg, rgba(224, 231, 255, .72), rgba(236, 254, 255, .54) 44%, rgba(250, 245, 255, .78)),
        #f5f7ff;
}
.public-page .site-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, .54) 58% 70%, transparent 70%),
        radial-gradient(circle at 12% 12%, rgba(99, 102, 241, .14), transparent 26rem),
        radial-gradient(circle at 88% 18%, rgba(6, 182, 212, .10), transparent 24rem);
}
.public-page .public-header {
    width: min(1040px, calc(100% - 32px));
    margin-top: 14px;
    padding: 10px 12px;
    border-color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 8px 30px rgba(67, 56, 202, .08);
    backdrop-filter: blur(18px) saturate(135%);
}
.public-page .brand { color: #242453; }
.public-page .brand-mark {
    border-radius: 13px;
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    box-shadow: 0 7px 16px rgba(79, 70, 229, .22);
}
.public-page .public-main {
    width: min(900px, calc(100% - 32px));
    padding: 32px 0 max(72px, env(safe-area-inset-bottom));
}
.public-page .public-main:focus { outline: none; }
.public-page .hero { margin-bottom: 24px; }
.public-page .hero .eyebrow {
    min-height: 30px;
    margin-bottom: 10px;
    padding: 5px 11px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #4338ca;
    background: rgba(238, 242, 255, .86);
    font-size: 12px;
    letter-spacing: .04em;
}
.public-page .eyebrow-dot { box-shadow: 0 0 0 4px rgba(91, 92, 240, .12); }
.public-page h1, .public-page h2, .public-page h3 { color: #20204f; }
.public-page .return-form-hero {
    margin: 2px 2px 24px;
    padding: 8px 4px 0;
}
.public-page .return-form-hero h1 {
    font-size: clamp(31px, 6vw, 44px);
    font-weight: 850;
    letter-spacing: -.045em;
}
.public-page .return-form-hero p { color: #5f6981; }
.public-page .card {
    overflow: hidden;
    border-color: rgba(215, 221, 237, .92);
    border-radius: 24px;
    background: var(--public-surface);
    box-shadow: var(--public-shadow-sm);
    backdrop-filter: blur(10px);
}
.public-page .section-stack { gap: 20px; }
.public-page .section-stack > .card { position: relative; }
.public-page .section-stack > .card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6 52%, #06b6d4);
}
.public-page .card-body { padding: clamp(22px, 5vw, 34px); }
.public-page .step-header { gap: 14px; margin-bottom: 22px; }
.public-page .step-number {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 18px rgba(79, 70, 229, .22);
    font-size: 15px;
}
.public-page .step-header h2 { font-size: clamp(21px, 4vw, 27px); }
.public-page .step-header p { color: #707990; }
.public-page .stack { gap: 20px; }
.public-page .field label, .public-page .field-label {
    margin-bottom: 8px;
    color: #303654;
    font-size: 14px;
    font-weight: 750;
}
.public-page input[type="text"],
.public-page input[type="password"],
.public-page input[type="number"],
.public-page input[type="tel"],
.public-page input[type="url"],
.public-page input[type="datetime-local"],
.public-page select,
.public-page textarea {
    min-height: 52px;
    padding: 12px 14px;
    border-color: #d7ddeb;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .025);
}
.public-page textarea { min-height: 108px; }
.public-page input:hover, .public-page select:hover, .public-page textarea:hover { border-color: #aeb8d0; }
.public-page input:focus-visible, .public-page select:focus-visible, .public-page textarea:focus-visible {
    border-color: #6366f1;
    background: #fff;
}
.public-page input[readonly] { border-color: #dce1ed; background: #f3f5fa; }
.public-page .field-help { color: #737c91; font-size: 13px; }
.public-page .return-reason-panel {
    gap: 15px;
    padding: 17px;
    border-color: #dfe4f2;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(248, 250, 255, .96), rgba(244, 247, 255, .78));
}
.public-page .return-reason-tip,
.public-page .return-product-switch { border-radius: 15px; }
.public-page .return-reason-tip { border-color: #c7d2fe; background: linear-gradient(135deg, #eef2ff, #f5f3ff); }
.public-page .return-product-switch { border-color: #a7f3d0; background: linear-gradient(135deg, #ecfdf5, #f4fffb); }
.public-page .smart-courier-card {
    border-color: #a5f3fc;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfeff, #f0fdfa 56%, #f5f3ff);
}
.public-page .smart-courier-icon { background: linear-gradient(145deg, #06b6d4, #0d9488); box-shadow: 0 8px 18px rgba(13, 148, 136, .18); }
.public-page .smart-courier-card strong { color: #0f766e; }
.public-page .smart-courier-badge { color: #0f766e; background: rgba(204, 251, 241, .86); }
.public-page .button {
    min-height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 9px 22px rgba(79, 70, 229, .18);
    transition: background .2s ease, border-color .2s ease, opacity .2s ease, box-shadow .2s ease, transform .2s ease;
}
.public-page .button:hover { background: linear-gradient(135deg, #5558ea, #4338ca); box-shadow: 0 12px 26px rgba(79, 70, 229, .24); }
.public-page .button:active { transform: translateY(1px); opacity: .92; }
.public-page .button:disabled { transform: none; box-shadow: none; }
.public-page .button-secondary {
    border-color: #d7ddeb;
    color: #3f4661;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .05);
}
.public-page .button-secondary:hover { color: #4338ca; background: #f5f7ff; }
.public-page .button-danger { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.public-page .button-switch { background: linear-gradient(135deg, #0d9488, #047857); }
.public-page .return-product-switch-button { background: linear-gradient(135deg, #16a34a, #047857); }
.public-page .section-stack > .button-block {
    min-height: 56px;
    border-radius: 17px;
    font-size: 16px;
    letter-spacing: .01em;
    box-shadow: 0 14px 30px rgba(79, 70, 229, .22);
}
.public-page .alert, .public-page .rebook-notice { border-radius: 15px; }
.public-page .return-notice {
    margin-bottom: 26px;
    border-color: rgba(199, 210, 254, .94);
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(248, 250, 255, .96), rgba(245, 243, 255, .92));
    box-shadow: var(--public-shadow-lg);
}
.public-page .return-notice::after { display: none; }
.public-page .return-notice-head,
.public-page .refund-speed,
.public-page .return-retention-tip { border-radius: 18px; }
.public-page .summary-box { border-radius: 17px; background: linear-gradient(145deg, #f8faff, #f7f8fc); }
.public-page .success-hero { padding-top: clamp(28px, 6vw, 44px); }
.public-page .success-icon {
    width: 70px;
    height: 70px;
    color: #fff;
    background: linear-gradient(145deg, #22c55e, #059669);
    box-shadow: 0 14px 30px rgba(5, 150, 105, .2);
}
.public-page .empty-state { padding: 48px 22px; }

.refund-info-modal {
    z-index: 120;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    background: rgba(20, 24, 48, .62);
    backdrop-filter: blur(8px);
}
.modal.refund-info-dialog {
    display: flex;
    flex-direction: column;
    width: min(660px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 26px;
    background: linear-gradient(160deg, #fff, #f7f7ff 72%, #f0fdff);
    box-shadow: 0 30px 100px rgba(15, 23, 42, .38);
}
.modal-backdrop.is-open .refund-info-dialog { animation: refund-dialog-in .26s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes refund-dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header.refund-info-header {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(224, 228, 241, .9);
    background: linear-gradient(135deg, rgba(238, 242, 255, .9), rgba(250, 245, 255, .78));
}
.refund-info-header > div { min-width: 0; }
.refund-info-kicker {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #4338ca;
    background: #e0e7ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}
.refund-info-header h2 { color: #25205a; font-size: clamp(24px, 5vw, 30px); }
.refund-info-header p { margin: 7px 0 0; color: #667085; font-size: 14px; line-height: 1.55; }
.refund-info-modal .modal-close {
    flex: 0 0 44px;
    border: 1px solid #dfe4f2;
    border-radius: 13px;
    color: #4b556b;
    background: rgba(255, 255, 255, .9);
    font-size: 25px;
    line-height: 1;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.refund-info-modal .modal-close:hover { border-color: #c7d2fe; color: #4338ca; background: #eef2ff; }
.modal-body.refund-info-body { min-height: 0; padding: 18px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.refund-info-list { display: grid; gap: 12px; }
.refund-info-item {
    padding: 16px 17px;
    border: 1px solid;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(30, 41, 59, .055);
}
.refund-info-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.refund-info-label { min-width: 0; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.refund-info-item h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.refund-info-item p { margin: 5px 0 0; color: #566076; font-size: 14px; line-height: 1.62; }
.refund-info-item strong { font-weight: 800; }
.refund-info-fast { border-color: #a5b4fc; box-shadow: inset 4px 0 0 #6366f1, 0 8px 22px rgba(30, 41, 59, .055); }
.refund-info-fast .refund-info-label, .refund-info-fast h3, .refund-info-fast strong { color: #3730a3; }
.refund-info-standard { border-color: #c7d2fe; box-shadow: inset 4px 0 0 #818cf8, 0 8px 22px rgba(30, 41, 59, .055); }
.refund-info-standard .refund-info-label, .refund-info-standard h3, .refund-info-standard strong { color: #3730a3; }
.refund-info-slow { border-color: #fed7aa; background: #fffcf7; box-shadow: inset 4px 0 0 #fb923c, 0 8px 22px rgba(30, 41, 59, .055); }
.refund-info-slow .refund-info-label, .refund-info-slow h3, .refund-info-slow strong { color: #9a3412; }
.refund-info-confirm { min-height: 52px; margin-top: 16px; }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(300px, 88vw);
    padding: 20px 16px;
    background: #161616;
    color: #fff;
    transform: translateX(-105%);
    transition: transform .22s ease;
    overflow-y: auto;
}
.admin-sidebar.is-open { transform: translateX(0); }
.admin-sidebar .brand { padding: 0 8px 20px; }
.admin-sidebar .brand-mark { background: #fff; color: #161616; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #d0d5dd;
    font-weight: 600;
}
.admin-nav a:hover, .admin-nav a.active { background: #2a2a2a; color: #fff; }
.admin-nav svg { width: 19px; height: 19px; }
.admin-sidebar-footer { margin-top: 28px; padding: 16px 8px 0; border-top: 1px solid #333; color: #98a2b3; font-size: 13px; }
.admin-main { min-width: 0; }
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
}
.menu-button { width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 9px; background: #f2f4f7; }
.menu-button svg { width: 24px; height: 24px; }
.admin-content { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.page-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-heading p { margin: 7px 0 0; color: var(--color-muted); }

.stats-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.stat-card span { color: var(--color-muted); font-size: 14px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }

.panel { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--color-border); }
.panel-body { padding: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; }
th { background: #f8f9fb; color: #475467; font-size: 13px; font-weight: 700; white-space: nowrap; }
td { font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--color-muted); }
.small { font-size: 13px; }
.truncate { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-success { background: var(--color-success-soft); color: #05603a; }
.badge-warning { background: var(--color-warning-soft); color: #7a2e0e; }
.badge-danger { background: var(--color-danger-soft); color: #912018; }
.badge-neutral { background: #f2f4f7; color: #475467; }

.empty-state { padding: 48px 20px; text-align: center; color: var(--color-muted); }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--color-text); font-size: 17px; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at top, #fff7df, #f6f7f9 44%); }
.login-card { width: min(440px, 100%); }

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(17, 24, 39, .58);
}
.modal-backdrop.is-open { display: flex; }
.modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.modal-header { display: flex; justify-content: space-between; gap: 16px; padding: 22px 22px 14px; }
.modal-body { padding: 8px 22px 22px; }
.modal-close { width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 9px; background: #f2f4f7; }
.return-product-result-heading { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.return-product-result-heading > div { min-width: 0; }
.return-product-result-heading h2 { margin: 1px 0 5px; font-size: 21px; }
.return-product-result-heading p { margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.return-product-result-icon { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.return-product-result-icon i { display: none; }
.return-product-result-icon svg { width: 24px; height: 24px; }
.return-product-result-modal.is-success .return-product-result-icon { color: #15803d; background: #dcfce7; }
.return-product-result-modal.is-success .result-success-icon { display: block; }
.return-product-result-modal.is-error .return-product-result-icon { color: #b42318; background: #fee4e2; }
.return-product-result-modal.is-error .result-error-icon { display: block; }
.share-url { padding: 12px; border: 1px solid var(--color-border); border-radius: 9px; background: #f8f9fb; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.share-preview { min-height: 130px; white-space: pre-wrap; }

.overlay { position: fixed; inset: 0; z-index: 30; display: none; background: rgba(0,0,0,.45); }
.overlay.is-open { display: block; }

@media (min-width: 600px) {
    .refund-speed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .public-header { padding: 9px 10px; }
    .brand { gap: 8px; font-size: 15px; }
    .brand-mark { width: 36px; height: 36px; }
    .public-main { padding-top: 20px; }
    .return-retention-tip { gap: 10px; padding: 13px; }
    .return-retention-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .return-retention-icon { flex-basis: 32px; width: 32px; height: 32px; }
    .return-retention-tip strong { font-size: 15px; }
    .return-retention-tip p { font-size: 15px; line-height: 1.65; }
    .card-body { padding: 20px; }
    .smart-courier-card { grid-template-columns: 44px minmax(0, 1fr); }
    .smart-courier-badge { grid-column: 2; justify-self: start; }
    .success-hero .inline-actions, .success-hero .inline-actions form, .success-hero .inline-actions .button { width: 100%; }
    .public-page .public-header, .public-page .public-main { width: calc(100% - 24px); }
    .public-page .public-main { padding-top: 22px; }
    .public-page .return-notice { padding: 14px; border-radius: 21px; }
    .public-page .return-notice-head, .public-page .refund-speed { padding: 14px; }
    .public-page .return-form-hero { padding-right: 2px; padding-left: 2px; }
    .public-page .card { border-radius: 21px; }
    .public-page .card-body { padding: 20px 17px; }
    .public-page .return-reason-panel { padding: 14px; }
    .public-page .step-header { gap: 11px; }
    .public-page .step-number { width: 36px; height: 36px; border-radius: 12px; }
    .public-page .smart-courier-card { padding: 14px; }
    .refund-info-modal { padding-right: 10px; padding-left: 10px; }
    .modal.refund-info-dialog { border-radius: 22px; }
    .modal-header.refund-info-header { gap: 10px; padding: 19px 17px 14px; }
    .refund-info-header h2 { font-size: 24px; }
    .refund-info-header p { font-size: 13px; }
    .modal-body.refund-info-body { padding: 14px 17px 18px; }
    .refund-info-item { padding: 14px; border-radius: 16px; }
    .refund-info-item-top { align-items: flex-start; }
    .refund-info-item h3 { font-size: 18px; }
    .refund-info-item p { font-size: 14px; }
}

@media (max-height: 620px) and (orientation: landscape) {
    .refund-info-modal { align-items: flex-start; }
    .modal.refund-info-dialog { max-height: calc(100dvh - 24px); }
    .modal-header.refund-info-header { padding-top: 16px; padding-bottom: 12px; }
    .modal-body.refund-info-body { padding-top: 12px; padding-bottom: 16px; }
}

@media (min-width: 960px) {
    .admin-shell { grid-template-columns: 250px minmax(0, 1fr); }
    .admin-sidebar { position: sticky; top: 0; width: 250px; height: 100vh; transform: none; }
    .admin-topbar { padding-left: 28px; padding-right: 28px; }
    .menu-button, .overlay { display: none !important; }
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .public-header, .admin-sidebar, .admin-topbar, .button, .alert { display: none !important; }
    body { background: #fff; }
    .card, .panel { border: 0; box-shadow: none; }
}
