:root {
    --bulk-create-ink: #312b32;
    --bulk-create-muted: #756d76;
    --bulk-create-line: #e7dfe3;
    --bulk-create-accent: #d64278;
    --bulk-create-accent-dark: #b82c61;
    --bulk-create-soft: #fff5f8;
    --bulk-create-pro: #8b5a00;
    --bulk-create-surface: #f7f5f6;
    --bulk-create-card-line: #e5dfe2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: var(--bulk-create-ink);
    font-family: "Noto Sans JP", sans-serif;
}

.bulk-create-page {
    min-height: 100vh;
    padding-bottom: 146px;
}

.bulk-create-header {
    background: #fff;
}

.bulk-create-main,
.bulk-create-selection-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.create-editor-header {
    position: relative;
    z-index: 120;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) auto auto;
    min-height: 64px;
    align-items: center;
    padding-right: max(20px, calc((100% - 1180px) / 2));
    padding-left: max(20px, calc((100% - 1180px) / 2));
}

.create-editor-header-left {
    display: flex;
    min-width: 0;
    height: 100%;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.create-editor-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #251f22;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.create-editor-brand:hover,
.create-editor-brand:focus {
    color: #bd4a78;
    text-decoration: none;
}

.create-editor-brand img {
    display: block;
    width: 24px;
    height: 24px;
    flex: none;
}

.create-header-menu {
    position: relative;
    flex: none;
}

.create-header-menu summary {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    color: #3a3438;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    list-style: none;
}

.create-header-menu summary::-webkit-details-marker {
    display: none;
}

.create-header-menu summary:hover,
.create-header-menu[open] summary {
    background: #fff6fa;
    color: #9f315b;
}

.create-header-menu summary span {
    position: relative;
    display: block;
    width: 18px;
    height: 14px;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 6px;
    background-repeat: no-repeat;
    background-size: 18px 2px;
}

.create-header-menu summary span::before,
.create-header-menu summary span::after {
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.create-header-menu summary span::before {
    top: 0;
}

.create-header-menu summary span::after {
    bottom: 0;
}

.create-header-menu summary i {
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transform: translateY(1px);
}

.create-header-menu nav {
    position: absolute;
    z-index: 300;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    min-width: 180px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid #e3dce0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(36, 31, 32, .16);
}

.create-header-menu nav a {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border-radius: 7px;
    color: #332d2f;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.create-header-menu nav a.is-history,
.create-header-menu nav a.is-list {
    border-top: 1px solid #f0eaee;
}

.create-header-menu nav a span {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    color: currentColor;
}

.create-header-menu nav a strong {
    overflow: hidden;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.create-header-menu-item.is-new span::before,
.create-header-menu-item.is-new span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.create-header-menu-item.is-new span::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.create-header-menu-svg-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.create-header-menu-item.is-list span::before {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 3px;
    content: "";
}

.create-header-menu-item.is-list span::after {
    position: absolute;
    top: 8px;
    left: 2px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
    content: "";
}

.create-header-menu-item.is-history span::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
}

.create-header-menu-item.is-history span::after {
    position: absolute;
    top: 6px;
    left: 9px;
    width: 5px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
}

.create-header-menu-item.is-old span::before {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    content: "";
}

.create-header-menu-item.is-old span::after {
    position: absolute;
    top: 7px;
    left: 8px;
    width: 6px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
    content: "";
}

.create-header-menu nav a:hover,
.create-header-menu nav a:focus,
.create-header-menu nav a.is-current {
    background: #fff6fa;
    color: #9f315b;
    text-decoration: none;
}

.create-editor-header-space {
    grid-column: 3;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
}

.create-editor-header > .td-service-account-create {
    grid-column: 4;
    grid-row: 1;
    margin-right: 0;
    margin-left: 5px;
}

.bulk-create-editor-link {
    color: var(--bulk-create-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.bulk-create-editor-link:hover,
.bulk-create-editor-link:focus {
    color: var(--bulk-create-accent-dark);
    text-decoration: underline;
}

.bulk-create-controls {
    padding-top: 18px;
    background: var(--bulk-create-surface);
    box-shadow: 0 0 0 100vmax var(--bulk-create-surface);
    clip-path: inset(0 -100vmax);
}

.bulk-create-inputs {
    display: grid;
    gap: 10px;
}

.bulk-create-input-field {
    min-width: 0;
}

.bulk-create-text-input {
    display: block;
    width: 100%;
    height: 56px;
    min-height: 56px;
    max-height: 116px;
    resize: none;
    overflow-y: hidden;
    padding: 10px 14px;
    border: 1px solid #d8ced3;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--bulk-create-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.bulk-create-text-input:focus {
    border-color: var(--bulk-create-accent);
    box-shadow: 0 0 0 4px rgba(214, 66, 120, .12);
}

.bulk-create-help {
    display: block;
    margin: 0 2px 5px;
    color: var(--bulk-create-muted);
    font-size: 12px;
}

.bulk-create-landing-page-intro {
    margin-top: 18px;
}

.bulk-create-landing-page-intro h1 {
    margin: 0;
    color: var(--bulk-create-ink);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    line-height: 1.35;
}

.bulk-create-landing-page-intro p {
    max-width: 840px;
    margin: 8px 0 0;
    color: var(--bulk-create-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.75;
}

.bulk-create-tabs-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
}

.bulk-create-tabs-scroll {
    position: relative;
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: thin;
}

.bulk-create-tabs-scroll::after {
    position: sticky;
    right: 0;
    display: block;
    float: right;
    width: 32px;
    height: 44px;
    margin-top: -44px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--bulk-create-surface));
    content: "";
}

.bulk-create-tabs {
    display: flex;
    width: max-content;
    gap: 4px;
}

.bulk-create-tab {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--bulk-create-muted);
    font-weight: 800;
    white-space: nowrap;
}

.bulk-create-tab.is-active {
    border-bottom-color: var(--bulk-create-accent);
    color: var(--bulk-create-accent-dark);
}

.bulk-create-pro-legend {
    flex: none;
    margin: 0;
    color: var(--bulk-create-muted);
    font-size: 12px;
    white-space: nowrap;
}

.bulk-create-status {
    min-height: 24px;
    margin: 20px 0 12px;
    color: var(--bulk-create-muted);
    font-size: 13px;
}

.bulk-create-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.bulk-create-card,
.bulk-create-selected-preview {
    background: #fff;
}

.bulk-create-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--bulk-create-card-line);
    border-radius: 14px;
    box-shadow: none;
}

.bulk-create-card:hover,
.bulk-create-card:focus-within {
    border-color: #e7a5bd;
}

.bulk-create-card-select {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
}

.bulk-create-card-select:focus {
    outline: 0;
}

.bulk-create-card-select:focus-visible,
.bulk-create-card-preview:focus-visible {
    outline: 2px solid var(--bulk-create-accent-dark);
    outline-offset: 2px;
}

.bulk-create-card.is-selected {
    border-color: var(--bulk-create-accent);
    box-shadow: 0 0 0 2px rgba(214, 66, 120, .18);
}

.bulk-create-card-media {
    position: relative;
    display: block;
    flex: none;
    aspect-ratio: var(--bulk-create-card-aspect, 1 / 1);
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding: clamp(8px, 1.2vw, 14px);
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.bulk-create-card-title {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 8px 46px;
    border-top: 1px solid #eef0f2;
    background: #fff;
    color: var(--bulk-create-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bulk-create-card-preview {
    position: absolute;
    z-index: 3;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(214, 66, 120, .26);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    color: var(--bulk-create-accent-dark);
    cursor: pointer;
    font-family: "Material Symbols Rounded";
    font-size: 19px;
    font-variation-settings: "FILL" 0;
    line-height: 1;
}

.bulk-create-card-preview:hover {
    background: #fff;
    border-color: rgba(214, 66, 120, .5);
}

.bulk-create-card-media canvas,
.bulk-create-selected-preview canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bulk-create-card-unavailable-message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--bulk-create-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.bulk-create-check {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: none;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--bulk-create-accent);
    color: #fff;
    font-family: "Material Symbols Rounded";
    font-size: 20px;
    font-variation-settings: "FILL" 1;
}

.bulk-create-card.is-selected .bulk-create-check {
    display: inline-flex;
}

.bulk-create-sentinel {
    height: 40px;
}

.bulk-create-selection-bar {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid var(--bulk-create-line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 30px rgba(43, 35, 40, .11);
    backdrop-filter: blur(12px);
}

.bulk-create-selection-inner {
    display: grid;
    grid-template-columns: 68px minmax(150px, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 10px 0;
}

.bulk-create-selected-preview {
    overflow: hidden;
    width: 64px;
    height: 64px;
    border: 1px solid var(--bulk-create-line);
    border-radius: 10px;
}

.bulk-create-selected-copy {
    display: grid;
    gap: 3px;
}

.bulk-create-selected-copy strong {
    font-size: 15px;
}

.bulk-create-selected-copy span {
    color: var(--bulk-create-muted);
    font-size: 12px;
}

.bulk-create-actions {
    display: flex;
    gap: 10px;
}

.bulk-create-download {
    position: relative;
    display: flex;
}

.bulk-create-download .bulk-create-button {
    width: 100%;
}

.bulk-create-download-menu {
    z-index: 80;
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
}

.bulk-create-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 11px;
    font-weight: 900;
    text-decoration: none;
}

.bulk-create-button.is-secondary {
    border: 1px solid #cbbfc5;
    background: #fff;
    color: var(--bulk-create-ink);
}

.bulk-create-edit-new-tab-icon {
    width: 17px;
    height: 17px;
    margin-left: 7px;
    flex: 0 0 auto;
}

.bulk-create-button.is-primary {
    border: 1px solid var(--bulk-create-accent);
    background: var(--bulk-create-accent);
    color: #fff;
}

.bulk-create-button.is-primary.is-pro {
    border-color: #815400;
    background: #815400;
}

.bulk-create-button:disabled {
    cursor: wait;
    opacity: .68;
}

.bulk-create-purchase-notice {
    width: min(1180px, calc(100% - 40px));
    min-height: 0;
    margin: -7px auto 8px;
    color: var(--bulk-create-pro);
    font-size: 12px;
    text-align: right;
}

@media (max-width: 900px) {
    .bulk-create-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bulk-create-tabs-row {
        align-items: flex-end;
        flex-direction: column-reverse;
        gap: 6px;
    }

    .bulk-create-tabs-scroll {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .bulk-create-page {
        padding-bottom: 194px;
    }

    .bulk-create-main,
    .bulk-create-selection-inner {
        width: min(100% - 24px, 1180px);
    }

    .create-editor-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 60px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .create-editor-header-left {
        padding: 0;
    }

    .create-editor-brand {
        padding: 0 4px;
        font-size: 15px;
    }

    .create-editor-brand span {
        display: none;
    }

    .create-editor-brand img {
        width: 22px;
        height: 22px;
    }

    .create-header-menu summary {
        width: 42px;
        min-height: 42px;
        justify-content: center;
        padding: 0;
    }

    .create-header-menu summary strong,
    .create-header-menu summary i {
        display: none;
    }

    .create-header-menu summary span {
        width: 20px;
        height: 16px;
        background-position: 0 7px;
        background-size: 20px 2px;
    }

    .create-header-menu summary span::before,
    .create-header-menu summary span::after {
        width: 20px;
    }

    .create-editor-header-space {
        grid-column: 2;
        padding-right: 6px;
    }

    .create-editor-header > .td-service-account-create {
        grid-column: 3;
        margin-right: 0;
        margin-left: 4px;
    }

    .bulk-create-editor-link {
        font-size: 11px;
    }

    .bulk-create-controls {
        padding-top: 14px;
    }

    .bulk-create-text-input {
        min-height: 56px;
        padding: 10px 12px;
        font-size: 20px;
    }

    .bulk-create-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bulk-create-card-title {
        min-height: 42px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .bulk-create-card-preview {
        bottom: 5px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .bulk-create-selection-inner {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
        min-height: 132px;
    }

    .bulk-create-selected-preview {
        width: 54px;
        height: 54px;
    }

    .bulk-create-actions {
        grid-column: 1 / -1;
    }

    .bulk-create-download {
        min-width: 0;
        flex: 1;
    }

    .bulk-create-download-menu {
        position: fixed;
        right: 12px;
        bottom: 142px;
        left: 12px;
        width: auto;
        max-height: calc(100dvh - 154px);
    }

    .bulk-create-button {
        min-width: 0;
        flex: 1;
        padding: 0 12px;
        font-size: 13px;
    }

    .bulk-create-purchase-notice {
        width: calc(100% - 24px);
        text-align: left;
    }

}
