.storage-location-overlay[hidden] {
    display: none !important;
}

body.storage-location-modal-open {
    overflow: hidden;
}

body.storage-location-modal-open > *:not(#storage-location-overlay) {
    pointer-events: none !important;
    user-select: none;
}

body.storage-location-modal-open #storage-location-overlay,
body.storage-location-modal-open #storage-location-overlay * {
    pointer-events: auto;
}

.storage-location-overlay {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, rgba(232, 243, 255, 0.72), rgba(238, 246, 251, 0.84));
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
    isolation: isolate;
    overflow: hidden;
}

.storage-location-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
    background-image:
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png");
    background-repeat: no-repeat;
    background-size:
        128px 96px,
        82px 62px,
        104px 78px,
        64px 48px,
        92px 69px,
        56px 42px,
        74px 55px,
        118px 88px;
    background-position:
        8% 14%,
        24% 78%,
        83% 13%,
        93% 72%,
        62% 86%,
        39% 12%,
        14% 48%,
        74% 42%;
    filter: saturate(1.14);
}

.storage-location-modal {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    overscroll-behavior: contain;
    border-radius: 22px;
    border: 1px solid rgba(97, 147, 190, 0.22);
    background:
        radial-gradient(circle at 12% 8%, rgba(114, 195, 255, 0.22), transparent 168px),
        radial-gradient(circle at 96% 18%, rgba(255, 221, 145, 0.2), transparent 148px),
        linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(236, 247, 254, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 30px 84px rgba(28, 72, 113, 0.22);
    color: #14385d;
    font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

.storage-location-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.16;
    pointer-events: none;
    background-image:
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png");
    background-repeat: no-repeat;
    background-size:
        92px 69px,
        64px 48px,
        78px 58px,
        52px 39px,
        86px 65px,
        58px 44px;
    background-position:
        7% 88%,
        72% 8%,
        96% 76%,
        34% 18%,
        54% 92%,
        88% 36%;
}

.storage-location-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(91, 137, 180, 0.2);
    background: rgba(255, 255, 255, 0.82);
    color: rgba(20, 56, 93, 0.72);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(43, 91, 135, 0.1);
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.storage-location-close:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 140, 221, 0.32);
    background: rgba(255, 255, 255, 0.96);
    color: #104c81;
}

.storage-location-view[hidden] {
    display: none !important;
}

.storage-location-view {
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.storage-location-shell {
    display: grid;
    gap: 20px;
    padding: 32px;
    padding-right: 60px;
    box-sizing: border-box;
}

.storage-location-shell--intro {
    gap: 0;
    padding: 0;
    padding-right: 0;
}

.storage-location-shell--selection {
    gap: 18px;
    padding: 34px 44px 32px;
    padding-right: 60px;
}

.storage-location-hero {
    display: grid;
    gap: 11px;
    max-width: 760px;
}

.storage-location-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(56, 140, 230, 0.12);
    color: #1972c5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.storage-location-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: #113b63;
    letter-spacing: -0.02em;
}

.storage-location-subtitle,
.storage-location-note,
.storage-location-error-text,
.storage-location-empty {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(20, 56, 93, 0.78);
}

.storage-location-note--error {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(215, 90, 90, 0.24);
    background: rgba(255, 238, 238, 0.95);
    color: #b54040;
}

.storage-location-banner {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(79, 156, 230, 0.22);
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(228, 242, 255, 0.98));
    color: #145287;
}

.storage-location-intro-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    overflow: hidden;
    min-height: 342px;
    padding: 46px 52px 42px;
    border-radius: 22px;
    border: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(105, 185, 249, 0.3), transparent 132px),
        radial-gradient(circle at 92% 14%, rgba(255, 216, 133, 0.32), transparent 112px),
        radial-gradient(circle at 74% 96%, rgba(87, 194, 230, 0.22), transparent 164px),
        linear-gradient(145deg, rgba(250, 253, 255, 0.98), rgba(226, 244, 255, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 18px 48px rgba(45, 112, 172, 0.16);
}

.storage-location-intro-card::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 2;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    pointer-events: none;
}

.storage-location-intro-card::after {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 0;
    opacity: 0.24;
    pointer-events: none;
    background-image:
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png");
    background-repeat: no-repeat;
    background-size:
        104px 78px,
        72px 54px,
        86px 65px,
        58px 44px,
        76px 57px,
        62px 47px,
        92px 69px,
        50px 38px;
    background-position:
        5% 14%,
        24% 82%,
        45% 11%,
        61% 88%,
        78% 26%,
        91% 76%,
        98% 8%,
        36% 48%;
    mix-blend-mode: multiply;
    filter: saturate(1.16);
    transform: rotate(-5deg) scale(1.04);
}

.storage-location-intro-art {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 232px;
    isolation: isolate;
}

.storage-location-intro-art::before {
    content: "";
    position: absolute;
    width: 214px;
    height: 214px;
    border-radius: 42% 58% 54% 46%;
    background: linear-gradient(135deg, rgba(74, 156, 230, 0.18), rgba(255, 255, 255, 0.58));
    filter: blur(0.2px);
    transform: rotate(-8deg);
    z-index: -1;
}

.storage-location-intro-image {
    display: block;
    width: min(230px, 100%);
    filter: drop-shadow(0 18px 30px rgba(34, 92, 146, 0.24));
}

.storage-location-intro-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 26px;
    align-content: center;
    justify-items: center;
}

.storage-location-intro-text {
    position: relative;
    margin: 0;
    max-width: 680px;
    color: #0f5b84;
    font-size: 18px;
    line-height: 1.96;
    font-weight: 800;
    letter-spacing: 0.018em;
    text-wrap: pretty;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55),
        0 8px 22px rgba(52, 135, 192, 0.12);
}

.storage-location-intro-actions {
    justify-content: center;
    gap: 14px;
    transform: translateX(24px);
}

.storage-location-btn.storage-location-intro-button {
    position: relative;
    overflow: hidden;
    min-width: 176px;
    min-height: 52px;
    padding: 0 32px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(109, 199, 255, 0.72), rgba(118, 221, 232, 0.56) 48%, rgba(255, 220, 143, 0.46));
    color: #12547f;
    font-size: 15px;
    backdrop-filter: blur(14px) saturate(1.34);
    -webkit-backdrop-filter: blur(14px) saturate(1.34);
    box-shadow:
        0 16px 32px rgba(61, 155, 214, 0.22),
        0 5px 0 rgba(62, 150, 199, 0.14),
        inset 0 -12px 22px rgba(34, 146, 211, 0.12);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.54);
}

.storage-location-btn.storage-location-intro-button--secondary {
    border-color: rgba(93, 158, 214, 0.22);
    background: rgba(255, 255, 255, 0.52);
    color: #19618b;
    box-shadow:
        0 12px 26px rgba(61, 155, 214, 0.12),
        inset 0 -10px 18px rgba(92, 178, 222, 0.08);
}

.storage-location-btn.storage-location-intro-button::before {
    content: none;
}

.storage-location-btn.storage-location-intro-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.78);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 38%),
        linear-gradient(135deg, rgba(126, 209, 255, 0.78), rgba(132, 231, 239, 0.66) 48%, rgba(255, 226, 156, 0.54));
    box-shadow:
        0 20px 38px rgba(61, 155, 214, 0.28),
        0 5px 0 rgba(62, 150, 199, 0.12),
        inset 0 -12px 22px rgba(34, 146, 211, 0.13);
}

.storage-location-btn.storage-location-intro-button:hover::before {
    content: none;
}

.storage-location-btn.storage-location-intro-button--secondary:hover {
    border-color: rgba(93, 158, 214, 0.34);
    background: rgba(255, 255, 255, 0.66);
    box-shadow:
        0 16px 30px rgba(61, 155, 214, 0.16),
        inset 0 -10px 18px rgba(92, 178, 222, 0.1);
}

.storage-location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.storage-location-shell--selection .storage-location-grid {
    gap: 0;
}

.storage-location-panel,
.storage-location-other,
.storage-location-progress {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(101, 166, 224, 0.22);
    background:
        radial-gradient(circle at 8% 0%, rgba(111, 194, 255, 0.12), transparent 128px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 251, 255, 0.8));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 14px 36px rgba(39, 96, 151, 0.08);
}

.storage-location-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #1061ad;
    letter-spacing: 0.01em;
}

.storage-location-path-list,
.storage-location-summary-list,
.storage-location-legacy-list,
.storage-location-restart-list,
.storage-location-choice-list {
    display: grid;
    gap: 12px;
}

.storage-location-path-item,
.storage-location-summary-item,
.storage-location-legacy-item {
    display: grid;
    gap: 6px;
}

.storage-location-path-item--inline {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.storage-location-path-item--inline .storage-location-label {
    white-space: nowrap;
}

.storage-location-path-item--inline .storage-location-path {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    word-break: normal;
    text-overflow: ellipsis;
    color: #14385d;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.storage-location-path-item--recommended {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(55, 139, 221, 0.22);
    background:
        radial-gradient(circle at 94% 12%, rgba(255, 220, 145, 0.16), transparent 92px),
        linear-gradient(180deg, rgba(238, 248, 255, 0.98), rgba(229, 244, 255, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 10px 24px rgba(49, 114, 175, 0.06);
}

.storage-location-path-item--recommended .storage-location-label {
    color: #1267b8;
}

.storage-location-selection-panel {
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.storage-location-selection-panel .storage-location-path-list {
    gap: 16px;
}

.storage-location-path-item--selection-input {
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.storage-location-path-item--selection-input .storage-location-label {
    color: #1061ad;
    font-size: 13px;
}

.storage-location-selection-panel .storage-location-path-item--inline {
    padding-top: 10px;
    border-top: 1px solid rgba(96, 159, 216, 0.16);
}

.storage-location-selection-actions {
    justify-content: flex-end;
    margin-top: -2px;
}

.storage-location-selection-actions[hidden] {
    display: none !important;
}

.storage-location-preview-panel {
    margin-top: 2px;
    gap: 18px;
    padding: 20px 22px 22px;
    border-color: rgba(79, 156, 230, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 220, 145, 0.15), transparent 124px),
        radial-gradient(circle at 0% 100%, rgba(104, 190, 255, 0.12), transparent 142px),
        linear-gradient(180deg, rgba(248, 252, 255, 0.92), rgba(236, 247, 255, 0.78));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 12px 30px rgba(39, 96, 151, 0.06);
}

.storage-location-preview-note {
    max-width: 720px;
    color: rgba(16, 82, 135, 0.84);
    font-weight: 700;
}

.storage-location-preview-panel .storage-location-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.storage-location-preview-panel .storage-location-summary-item {
    gap: 5px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(100, 164, 224, 0.14);
}

.storage-location-preview-panel .storage-location-summary-value {
    font-weight: 800;
}

.storage-location-label {
    font-size: 12px;
    font-weight: 800;
    color: rgba(20, 56, 93, 0.78);
}

.storage-location-path,
.storage-location-restart-path {
    font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    word-break: break-all;
    color: #204e79;
}

.storage-location-summary-value {
    font-size: 14px;
    line-height: 1.65;
    color: #14385d;
}

.storage-location-preview-steps {
    display: grid;
    gap: 8px;
}

.storage-location-preview-step {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(20, 56, 93, 0.88);
}

.storage-location-actions,
.storage-location-error-actions,
.storage-location-restart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.storage-location-restart-actions {
    justify-content: flex-end;
    padding-top: 2px;
}

.storage-location-btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(96, 159, 216, 0.24);
    background: rgba(255, 255, 255, 0.88);
    color: #145287;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.storage-location-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 140, 221, 0.42);
    box-shadow: 0 10px 24px rgba(49, 114, 175, 0.12);
}

.storage-location-btn:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
    box-shadow: none;
}

.storage-location-btn--primary {
    border-color: rgba(255, 255, 255, 0.62);
    background: linear-gradient(135deg, rgba(76, 169, 255, 0.94), rgba(47, 150, 242, 0.92));
    color: #f8fbff;
    box-shadow: 0 14px 28px rgba(47, 143, 233, 0.22);
}

.storage-location-btn--secondary {
    background: rgba(244, 250, 255, 0.92);
}

.storage-location-btn--compact {
    min-width: 132px;
    white-space: nowrap;
}

.storage-location-other[hidden],
.storage-location-panel[hidden] {
    display: none !important;
}

.storage-location-choice {
    width: 100%;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(96, 159, 216, 0.18);
    background: rgba(247, 251, 255, 0.94);
    color: inherit;
    padding: 14px 16px;
    cursor: pointer;
}

.storage-location-choice.is-active {
    border-color: rgba(51, 136, 221, 0.5);
    background: rgba(230, 244, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(77, 160, 238, 0.1);
}

.storage-location-choice-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
}

.storage-location-choice-check {
    color: #1f7fd7;
}

.storage-location-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.storage-location-input {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(96, 159, 216, 0.2);
    background: rgba(255, 255, 255, 0.98);
    color: #14385d;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.storage-location-input:focus {
    border-color: rgba(54, 138, 221, 0.56);
    box-shadow: 0 0 0 4px rgba(88, 164, 238, 0.14);
}

.storage-location-loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(63, 136, 209, 0.14);
    border-top-color: #2f8fe9;
    animation: storage-location-spin 0.9s linear infinite;
    box-shadow: 0 10px 28px rgba(47, 143, 233, 0.16);
}

.storage-location-progress {
    gap: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 221, 145, 0.16), transparent 128px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 255, 0.88));
}

.storage-location-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.storage-location-progress-label {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
    color: #145287;
}

.storage-location-progress-value {
    font-size: 13px;
    font-weight: 800;
    color: #145287;
}

.storage-location-progress-track {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(70, 140, 209, 0.1);
    box-shadow: inset 0 1px 2px rgba(42, 92, 141, 0.08);
}

.storage-location-progress-track.is-error {
    background: rgba(215, 90, 90, 0.14);
}

.storage-location-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #3c9eff, #7bcfff);
    transition: width 0.28s ease;
}

.storage-location-progress-track.is-error .storage-location-progress-fill {
    background: linear-gradient(90deg, #e47373, #f0aaaa);
}

.storage-location-progress-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 12px;
}

.storage-location-progress-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(12.5% + 8px);
    right: calc(12.5% + 8px);
    height: 2px;
    border-radius: 999px;
    background: rgba(73, 132, 189, 0.16);
}

.storage-location-progress-step {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 8px 0;
    border: 0;
    background: transparent;
    color: rgba(20, 56, 93, 0.78);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 800;
    text-align: center;
}

.storage-location-progress-step::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    border: 2px solid rgba(78, 144, 206, 0.22);
    background: #f7fbff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9);
}

.storage-location-progress-step.is-active {
    color: #0f5ea9;
}

.storage-location-progress-step.is-active::before {
    border-color: rgba(47, 143, 233, 0.86);
    background: #2f8fe9;
    box-shadow: 0 0 0 5px rgba(47, 143, 233, 0.12), 0 8px 18px rgba(47, 143, 233, 0.2);
}

.storage-location-progress-step.is-completed {
    color: #186ebf;
}

.storage-location-progress-step.is-completed::before {
    border-color: rgba(31, 127, 215, 0.78);
    background: #dff0ff;
}

.storage-location-completion-card {
    box-sizing: border-box;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    pointer-events: auto;
    isolation: isolate;
    width: min(420px, calc(100vw - 24px));
    display: grid;
    gap: 14px;
    overflow: hidden;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(98, 160, 217, 0.24);
    background:
        radial-gradient(circle at 10% 8%, rgba(111, 194, 255, 0.16), transparent 118px),
        radial-gradient(circle at 100% 0%, rgba(255, 221, 145, 0.16), transparent 108px),
        linear-gradient(180deg, rgba(251, 254, 255, 0.98), rgba(239, 248, 255, 0.98));
    color: #14385d;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 24px 80px rgba(37, 91, 143, 0.2);
}

.storage-location-completion-card::before {
    content: "";
    position: absolute;
    inset: -16px;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image:
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png"),
        url("/static/icons/paw_ui.png");
    background-repeat: no-repeat;
    background-size: 78px 58px, 54px 40px, 64px 48px, 46px 35px;
    background-position: 92% 12%, 14% 96%, 78% 88%, 28% 18%;
}

.storage-location-completion-card .storage-location-completion-path-list {
    gap: 16px;
}

.storage-location-completion-card .storage-location-completion-path-item {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
        "label link"
        "path link";
    column-gap: 16px;
    row-gap: 6px;
    align-items: end;
    min-width: 0;
}

.storage-location-completion-path-item .storage-location-label {
    grid-area: label;
}

.storage-location-completion-path-item .storage-location-path {
    grid-area: path;
    min-width: 0;
}

.storage-location-completion-link {
    grid-area: link;
    position: relative;
    align-self: end;
    justify-self: end;
    appearance: none;
    width: auto;
    min-height: 0;
    padding: 0 0 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #376f9d;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.16s ease;
}

.storage-location-completion-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.28;
}

.storage-location-completion-link:hover {
    color: #145f9c;
}

.storage-location-completion-link:focus-visible {
    outline: 2px solid rgba(47, 150, 242, 0.58);
    outline-offset: 3px;
}

.storage-location-completion-card .storage-location-completion-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 2px;
}

.storage-location-completion-actions .storage-location-btn {
    width: 100%;
    min-width: 0;
    border: 0;
}

.storage-location-completion-card .storage-location-completion-later {
    border-color: rgba(100, 112, 124, 0.2);
    background: linear-gradient(180deg, #aeb5bc, #99a2ab);
    color: #f8fbff;
    text-shadow: 0 1px 2px rgba(39, 51, 63, 0.38);
    box-shadow: 0 10px 22px rgba(67, 78, 89, 0.2);
}

.storage-location-completion-card .storage-location-completion-later:hover {
    border-color: rgba(90, 103, 116, 0.3);
    background: linear-gradient(180deg, #b3b9c0, #a0a8b0);
    box-shadow: 0 12px 24px rgba(67, 78, 89, 0.24);
}

.storage-location-completion-card > *:not(.storage-location-close) {
    position: relative;
    z-index: 1;
}

.storage-location-completion-card.is-dragging {
    user-select: none;
    cursor: grabbing;
}

.storage-location-completion-drag-handle {
    cursor: grab;
    user-select: none;
}

.storage-location-completion-card .storage-location-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.storage-location-panel-title--with-close {
    padding-right: 36px;
}

.storage-location-completion-card[hidden] {
    display: none !important;
}

@keyframes storage-location-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 860px) {
    .storage-location-intro-card {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .storage-location-intro-art {
        min-height: 178px;
    }

    .storage-location-intro-image {
        width: 174px;
    }

    .storage-location-intro-actions {
        justify-content: center;
        transform: none;
    }

    .storage-location-grid {
        grid-template-columns: 1fr;
    }

    .storage-location-progress-steps {
        grid-template-columns: 1fr 1fr;
        gap: 8px 0;
    }

    .storage-location-progress-steps::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .storage-location-overlay {
        padding: 12px;
    }

    .storage-location-modal {
        max-height: calc(100vh - 24px);
    }

    .storage-location-shell {
        padding: 20px;
        padding-right: 52px;
    }

    .storage-location-shell--selection {
        padding: 26px 20px 22px;
        padding-right: 52px;
    }

    .storage-location-shell--intro {
        padding: 0;
        padding-right: 0;
    }

    .storage-location-title {
        font-size: 25px;
    }

    .storage-location-intro-card {
        gap: 14px;
        min-height: 0;
        padding: 34px 22px 26px;
        border-radius: 22px;
    }

    .storage-location-intro-card::before {
        inset: 10px;
        border-radius: 18px;
    }

    .storage-location-intro-text {
        font-size: 16px;
        line-height: 1.82;
    }

    .storage-location-intro-button {
        width: 100%;
    }

    .storage-location-actions,
    .storage-location-error-actions,
    .storage-location-restart-actions,
    .storage-location-progress-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .storage-location-input-row,
    .storage-location-progress-steps,
    .storage-location-preview-panel .storage-location-summary-list {
        grid-template-columns: 1fr;
    }

    .storage-location-path-item--inline {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .storage-location-selection-actions {
        margin-top: 0;
    }

    .storage-location-btn {
        width: 100%;
    }

    .storage-location-completion-card {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
}

@media (max-width: 480px) {
    .storage-location-completion-card .storage-location-completion-path-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "label"
            "path"
            "link";
    }

    .storage-location-completion-link {
        justify-self: start;
    }
}

@media (max-width: 360px) {
    .storage-location-completion-card .storage-location-completion-actions {
        grid-template-columns: 1fr;
    }
}

/* ================= Dark mode ================
   触发：<html data-theme="dark">
   颜色对比度均按 WCAG 2.1 AA（正文 ≥ 4.5:1，UI ≥ 3:1）选取。 */

[data-theme="dark"] .storage-location-overlay {
    background: linear-gradient(145deg, rgba(8, 12, 20, 0.78), rgba(12, 18, 28, 0.86));
}

[data-theme="dark"] .storage-location-overlay::before,
[data-theme="dark"] .storage-location-modal::before,
[data-theme="dark"] .storage-location-completion-card::before {
    opacity: 0.12;
    mix-blend-mode: screen;
}

[data-theme="dark"] .storage-location-modal {
    border-color: rgba(120, 170, 220, 0.18);
    background: linear-gradient(180deg, rgba(28, 36, 50, 0.98), rgba(22, 30, 44, 0.98));
    color: #e6eef7;
    box-shadow: 0 30px 84px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .storage-location-close {
    background: rgba(40, 52, 72, 0.86);
    border-color: rgba(140, 180, 220, 0.32);
    color: #e6eef7;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .storage-location-close:hover {
    background: rgba(56, 72, 100, 0.96);
    border-color: rgba(127, 196, 255, 0.6);
    color: #ffffff;
}

[data-theme="dark"] .storage-location-badge {
    background: rgba(95, 177, 255, 0.22);
    color: #a7d2ff;
}

[data-theme="dark"] .storage-location-title {
    color: #f5f9ff;
}

[data-theme="dark"] .storage-location-subtitle,
[data-theme="dark"] .storage-location-note,
[data-theme="dark"] .storage-location-error-text,
[data-theme="dark"] .storage-location-empty {
    color: #c4d2e6;
}

[data-theme="dark"] .storage-location-note--error {
    border-color: rgba(255, 110, 110, 0.5);
    background: rgba(72, 24, 28, 0.6);
    color: #ffb1b1;
}

[data-theme="dark"] .storage-location-banner {
    border-color: rgba(108, 174, 240, 0.36);
    background: linear-gradient(180deg, rgba(36, 60, 92, 0.7), rgba(28, 50, 78, 0.7));
    color: #cfe1f8;
}

[data-theme="dark"] .storage-location-intro-card {
    background:
        radial-gradient(circle at 18% 22%, rgba(95, 177, 255, 0.22), transparent 132px),
        radial-gradient(circle at 92% 14%, rgba(255, 214, 128, 0.13), transparent 112px),
        radial-gradient(circle at 74% 96%, rgba(91, 190, 230, 0.12), transparent 164px),
        linear-gradient(145deg, rgba(29, 52, 80, 0.96), rgba(22, 42, 66, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 48px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .storage-location-intro-card::before {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .storage-location-intro-card::after {
    opacity: 0.14;
    mix-blend-mode: screen;
}

[data-theme="dark"] .storage-location-intro-art::before {
    background: linear-gradient(135deg, rgba(95, 177, 255, 0.18), rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .storage-location-intro-image {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.42));
}

[data-theme="dark"] .storage-location-intro-text {
    color: #e4f5ff;
    text-shadow:
        0 1px 10px rgba(0, 18, 38, 0.46),
        0 8px 22px rgba(95, 177, 255, 0.12);
}

[data-theme="dark"] .storage-location-btn.storage-location-intro-button {
    border-color: rgba(188, 226, 255, 0.26);
    background:
        linear-gradient(180deg, rgba(232, 248, 255, 0.1), transparent 38%),
        linear-gradient(135deg, rgba(77, 169, 235, 0.5), rgba(65, 190, 205, 0.38) 48%, rgba(255, 205, 128, 0.24));
    color: #e9f7ff;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.36),
        0 5px 0 rgba(7, 35, 74, 0.24),
        inset 0 -12px 22px rgba(95, 177, 255, 0.1);
    text-shadow: 0 1px 10px rgba(0, 20, 42, 0.36);
}

[data-theme="dark"] .storage-location-btn.storage-location-intro-button--secondary {
    border-color: rgba(188, 226, 255, 0.18);
    background: rgba(35, 67, 96, 0.48);
    color: #d7f0ff;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.24),
        inset 0 -12px 22px rgba(95, 177, 255, 0.07);
}

[data-theme="dark"] .storage-location-btn.storage-location-intro-button:hover {
    background:
        linear-gradient(180deg, rgba(232, 248, 255, 0.14), transparent 38%),
        linear-gradient(135deg, rgba(89, 182, 247, 0.58), rgba(76, 204, 218, 0.46) 48%, rgba(255, 211, 142, 0.28));
}

[data-theme="dark"] .storage-location-btn.storage-location-intro-button--secondary:hover {
    border-color: rgba(188, 226, 255, 0.3);
    background: rgba(43, 82, 116, 0.58);
}

[data-theme="dark"] .storage-location-panel,
[data-theme="dark"] .storage-location-other,
[data-theme="dark"] .storage-location-progress {
    border-color: rgba(120, 170, 220, 0.18);
    background: rgba(36, 46, 64, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .storage-location-panel-title {
    color: #a7d2ff;
}

[data-theme="dark"] .storage-location-path-item--recommended {
    border-color: rgba(95, 177, 255, 0.45);
    background: linear-gradient(180deg, rgba(28, 60, 96, 0.7), rgba(22, 50, 84, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .storage-location-path-item--recommended .storage-location-label {
    color: #a7d2ff;
}

[data-theme="dark"] .storage-location-selection-panel {
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .storage-location-path-item--selection-input {
    border: 0;
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .storage-location-path-item--selection-input .storage-location-label {
    color: #a7d2ff;
}

[data-theme="dark"] .storage-location-selection-panel .storage-location-path-item--inline {
    border-top-color: rgba(120, 170, 220, 0.22);
}

[data-theme="dark"] .storage-location-preview-panel {
    border-color: rgba(120, 170, 220, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 214, 128, 0.1), transparent 124px),
        radial-gradient(circle at 0% 100%, rgba(86, 164, 230, 0.1), transparent 142px),
        linear-gradient(180deg, rgba(36, 46, 64, 0.62), rgba(28, 38, 54, 0.56));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .storage-location-preview-panel .storage-location-summary-item {
    border-color: rgba(120, 170, 220, 0.16);
    background: rgba(21, 31, 48, 0.34);
}

[data-theme="dark"] .storage-location-label {
    color: #b3c2d8;
}

[data-theme="dark"] .storage-location-path,
[data-theme="dark"] .storage-location-restart-path {
    color: #d8e4f4;
}

[data-theme="dark"] .storage-location-summary-value {
    color: #e6eef7;
}

[data-theme="dark"] .storage-location-preview-step {
    color: #d8e4f4;
}

[data-theme="dark"] .storage-location-btn {
    border-color: rgba(120, 170, 220, 0.32);
    background: rgba(46, 60, 84, 0.78);
    color: #e6eef7;
}

[data-theme="dark"] .storage-location-btn:hover {
    border-color: rgba(127, 196, 255, 0.6);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    background: rgba(58, 76, 106, 0.92);
}

[data-theme="dark"] .storage-location-btn:disabled {
    opacity: 0.42;
}

[data-theme="dark"] .storage-location-btn--primary {
    border-color: rgba(95, 177, 255, 0.55);
    background: linear-gradient(180deg, #4ca0f6, #2d80df);
    color: #ffffff;
}

[data-theme="dark"] .storage-location-btn--primary:hover {
    border-color: rgba(127, 196, 255, 0.78);
    background: linear-gradient(180deg, #5fb1ff, #3a8cea);
}

[data-theme="dark"] .storage-location-btn--secondary {
    background: rgba(40, 52, 72, 0.8);
}

[data-theme="dark"] .storage-location-choice {
    border-color: rgba(120, 170, 220, 0.24);
    background: rgba(38, 50, 70, 0.7);
    color: #e6eef7;
}

[data-theme="dark"] .storage-location-choice.is-active {
    border-color: rgba(127, 196, 255, 0.66);
    background: rgba(36, 76, 120, 0.72);
    box-shadow: 0 0 0 3px rgba(95, 177, 255, 0.2);
}

[data-theme="dark"] .storage-location-choice-check {
    color: #7dc1ff;
}

[data-theme="dark"] .storage-location-input {
    border-color: rgba(120, 170, 220, 0.32);
    background: rgba(36, 48, 68, 0.92);
    color: #e6eef7;
}

[data-theme="dark"] .storage-location-input::placeholder {
    color: #97a6bc;
}

[data-theme="dark"] .storage-location-input:focus {
    border-color: rgba(127, 196, 255, 0.78);
    box-shadow: 0 0 0 4px rgba(95, 177, 255, 0.2);
}

[data-theme="dark"] .storage-location-loader {
    border-color: rgba(106, 173, 255, 0.18);
    border-top-color: #5fb1ff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .storage-location-progress {
    background: linear-gradient(180deg, rgba(36, 46, 64, 0.78), rgba(28, 38, 54, 0.78));
}

[data-theme="dark"] .storage-location-progress-label {
    color: #d8e4f4;
}

[data-theme="dark"] .storage-location-progress-value {
    color: #b3c2d8;
}

[data-theme="dark"] .storage-location-progress-track {
    background: rgba(106, 173, 255, 0.18);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .storage-location-progress-track.is-error {
    background: rgba(255, 110, 110, 0.24);
}

[data-theme="dark"] .storage-location-progress-fill {
    background: linear-gradient(90deg, #4ca0f6, #7bcfff);
}

[data-theme="dark"] .storage-location-progress-track.is-error .storage-location-progress-fill {
    background: linear-gradient(90deg, #ff8c8c, #ffb6b6);
}

[data-theme="dark"] .storage-location-progress-steps::before {
    background: rgba(120, 170, 220, 0.26);
}

[data-theme="dark"] .storage-location-progress-step {
    color: #97a6bc;
}

[data-theme="dark"] .storage-location-progress-step::before {
    border-color: rgba(120, 170, 220, 0.36);
    background: #1c2432;
    box-shadow: 0 0 0 5px rgba(28, 36, 50, 0.96);
}

[data-theme="dark"] .storage-location-progress-step.is-active {
    color: #a7d2ff;
}

[data-theme="dark"] .storage-location-progress-step.is-active::before {
    border-color: rgba(127, 196, 255, 0.92);
    background: #4ca0f6;
    box-shadow: 0 0 0 5px rgba(76, 160, 246, 0.2), 0 8px 18px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .storage-location-progress-step.is-completed {
    color: #87c4f5;
}

[data-theme="dark"] .storage-location-progress-step.is-completed::before {
    border-color: rgba(127, 196, 255, 0.78);
    background: #2c4566;
}

[data-theme="dark"] .storage-location-completion-card {
    border-color: rgba(120, 170, 220, 0.24);
    background: linear-gradient(180deg, rgba(28, 36, 50, 0.98), rgba(22, 30, 44, 0.98));
    color: #e6eef7;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .storage-location-completion-link {
    color: #b7d9f7;
}

[data-theme="dark"] .storage-location-completion-link:hover {
    color: #d7ebff;
}

[data-theme="dark"] .storage-location-completion-card .storage-location-completion-later {
    border-color: rgba(190, 200, 212, 0.2);
    background: linear-gradient(180deg, #747d88, #5d6670);
    color: #f4f7fa;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .storage-location-completion-card .storage-location-completion-later:hover {
    border-color: rgba(210, 220, 232, 0.28);
    background: linear-gradient(180deg, #818b97, #69737e);
}
