:root {
    --bg: #fff8f7;
    --surface: #ffffff;
    --surface-soft: #fff1f2;
    --surface-peach: #fff5ef;
    --pink: #ff6f91;
    --pink-dark: #eb557c;
    --pink-soft: #ffe1e9;
    --peach: #ff9d84;
    --lavender: #a98de9;
    --ink: #332b31;
    --muted: #958892;
    --line: #f1e4e7;
    --line-strong: #ead5da;
    --danger: #d84a5f;
    --sidebar-w: 312px;
    --shadow-sm: 0 8px 26px rgba(113, 70, 84, .08);
    --shadow-md: 0 18px 55px rgba(113, 70, 84, .13);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased
}

body {
    height: 100dvh;
    overflow: hidden
}

button,
input,
textarea,
select {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    color: inherit
}

a {
    color: inherit
}

.hidden {
    display: none !important
}

.mobile-only {
    display: none !important
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    width: 100%;
    height: 100dvh;
    background: linear-gradient(135deg, #fff8f7 0%, #fffdfc 58%, #fff4f5 100%)
}

/* Left navigation */
.sidebar {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100dvh;
    padding: 20px 16px 16px;
    background: rgba(255, 255, 255, .9);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 12px 0 40px rgba(99, 65, 76, .04)
}

.sidebar:before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    width: 105px;
    height: 7px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, var(--pink), var(--peach))
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 2px 5px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 9px 24px rgba(255, 111, 145, .25)
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px
}

.brand-copy strong {
    font-size: 18px;
    letter-spacing: .02em
}

.brand-copy small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase
}

.sidebar-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
    background: var(--surface-soft);
    font-size: 21px;
    cursor: pointer
}

.service-picker {
    position: relative;
    margin-top: 20px
}

.service-picker-button {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #f4dce2;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow-sm)
}

.service-picker-button:hover {
    border-color: #f7c9d5;
    transform: translateY(-1px)
}

.service-picker-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--pink-soft);
    color: var(--pink-dark);
    font-size: 16px;
    font-weight: 900
}

.service-picker-icon-selfie {
    background: #fff0e8;
    color: #ee795b
}

.service-picker-icon-tattoo {
    background: #f0ebff;
    color: #8068c5
}

.service-picker-copy {
    min-width: 0
}

.service-picker-copy small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em
}

.service-picker-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px
}

.service-picker-chevron {
    color: #b8aab2;
    font-size: 16px;
    text-align: center;
    transition: transform .18s
}

.service-picker.open .service-picker-chevron {
    transform: rotate(180deg)
}

.service-picker-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 80;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-md)
}

.service-picker-option {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 13px;
    text-decoration: none
}

.service-picker-option:hover {
    background: #fff6f8
}

.service-picker-option.active {
    background: var(--surface-soft)
}

.service-picker-option-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--pink)
}

.service-picker-option-copy strong {
    display: block;
    font-size: 10px
}

.service-picker-option-copy small {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 8px
}

.service-picker-check {
    color: var(--pink);
    font-weight: 900;
    text-align: center
}

.new-chat-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 58px;
    margin: 14px 0 10px;
    padding: 9px 12px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pink) 0%, #ff7f9c 58%, var(--peach) 100%);
    color: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 13px 30px rgba(255, 111, 145, .24);
    transition: .18s ease
}

.new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 111, 145, .29)
}

.new-chat-plus {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .2);
    font-size: 23px
}

.new-chat-btn strong {
    display: block;
    font-size: 12px
}

.new-chat-btn small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .78);
    font-size: 8px
}

.side-menu {
    display: grid;
    gap: 3px;
    padding: 4px 0 10px;
    border-bottom: 1px solid var(--line)
}

.side-menu-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 5px 8px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    color: #635963;
    font-size: 10px;
    font-weight: 800
}

.side-menu-item:hover {
    background: #fff4f6;
    color: var(--pink-dark)
}

.side-menu-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: #fff7f8;
    color: var(--pink);
    font-size: 14px
}

.side-menu-item i {
    color: #c9bbc2;
    font-size: 17px;
    font-style: normal;
    text-align: center
}

.history-section {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    padding-top: 13px
}

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px 8px
}

.history-head small {
    display: block;
    color: #c1aeb7;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .13em
}

.history-head h2 {
    margin: 2px 0 0;
    font-size: 11px
}

.history-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 5px #fff0f4
}

.chat-list {
    min-height: 0;
    overflow-y: auto;
    padding: 2px 3px 8px;
    scrollbar-width: thin;
    scrollbar-color: #ead7dd transparent
}

.chat-list::-webkit-scrollbar {
    width: 5px
}

.chat-list::-webkit-scrollbar-thumb {
    background: #ead7dd;
    border-radius: 99px
}

.chat-item {
    position: relative;
    width: 100%;
    min-height: 39px;
    margin: 2px 0;
    padding: 9px 12px 9px 29px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #8b7b85;
    font-size: 9px;
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer
}

.chat-item:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 1.5px solid #decbd2;
    border-radius: 50%;
    transform: translateY(-50%)
}

.chat-item:hover {
    background: #fff6f8;
    color: #5f5159
}

.chat-item.active {
    background: linear-gradient(90deg, #fff0f4, #fff7f5);
    color: var(--pink-dark);
    font-weight: 900
}

.chat-item.active:before {
    border-color: var(--pink);
    background: var(--pink);
    box-shadow: 0 0 0 3px #ffe1e9
}

.sidebar-bottom {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line)
}

.credit-card {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr) 29px;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    padding: 9px 10px;
    border-radius: 17px;
    background: linear-gradient(135deg, #fff0f4, #fff6f1);
    border: 1px solid #f6dce1;
    text-decoration: none
}

.credit-orb {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 13px;
    background: #fff;
    color: var(--pink);
    font-size: 19px;
    box-shadow: 0 5px 14px rgba(255, 111, 145, .12)
}

.credit-copy small {
    display: block;
    color: #a9949e;
    font-size: 8px;
    font-weight: 800
}

.credit-copy strong {
    display: block;
    margin-top: 2px;
    font-size: 11px
}

.credit-copy b {
    font-size: 16px;
    color: var(--pink-dark)
}

.credit-add {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 10px;
    background: var(--pink);
    color: #fff;
    font-size: 18px
}

.sidebar-account {
    position: relative
}

.account-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    text-align: left;
    cursor: pointer
}

.account-trigger:hover {
    background: #faf5f6
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 12px;
    background: #efe8ff;
    color: #765db4;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase
}

.account-copy {
    min-width: 0
}

.account-copy small {
    display: block;
    color: #b2a2ab;
    font-size: 7px;
    font-weight: 900
}

.account-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    font-size: 9px
}

.account-caret {
    color: #b5a6ae;
    font-size: 13px;
    text-align: center;
    letter-spacing: 1px
}

.account-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 7px);
    z-index: 90;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow-md)
}

.account-menu-user {
    padding: 8px 9px 10px;
    border-bottom: 1px solid var(--line)
}

.account-menu-user small {
    display: block;
    color: var(--muted);
    font-size: 8px
}

.account-menu-user strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9px
}

.side-link {
    display: block;
    padding: 9px;
    border-radius: 10px;
    color: #62545d;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none
}

.side-link:hover {
    background: #fff4f6;
    color: var(--pink-dark)
}

.history-delete {
    width: 100%;
    margin-top: 4px;
    padding: 9px;
    border: 1px solid #f3d2d8;
    border-radius: 11px;
    background: #fff;
    color: #c54f65;
    font-size: 8px;
    font-weight: 900;
    cursor: pointer
}

.history-delete:hover {
    background: #fff0f2
}

.history-delete:disabled {
    opacity: .55;
    cursor: wait
}

/* Main chat */
.main-panel {
    display: grid;
    grid-template-rows: 76px minmax(0, 1fr);
    min-width: 0;
    height: 100dvh;
    overflow: hidden;
    padding: 0 18px 18px
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 7px 8px
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.chat-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0
}

.chat-heading-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    height: 29px;
    padding: 0 9px;
    border-radius: 10px;
    background: #fff0f4;
    color: var(--pink-dark);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .04em
}

.chat-heading>div {
    min-width: 0
}

.chat-heading h1 {
    margin: 0;
    max-width: 54vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    letter-spacing: -.02em
}

.chat-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 9px
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.ghost-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .8);
    color: #73656d;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(70, 40, 50, .04)
}

.ghost-btn:hover {
    border-color: #f2cad5;
    color: var(--pink-dark);
    background: #fff
}

.ghost-btn span {
    color: var(--pink);
    font-size: 14px
}

.menu-mobile-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px
}

.menu-mobile-btn span {
    width: 16px;
    height: 2px;
    border-radius: 99px;
    background: #6d5e67
}

.mobile-credit-link {
    display: grid !important;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 13px;
    background: var(--pink);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(255, 111, 145, .24)
}

.chat-stage {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #f2e3e6;
    border-radius: 30px;
    background: rgba(255, 255, 255, .79);
    box-shadow: 0 22px 70px rgba(99, 58, 73, .08);
    backdrop-filter: blur(18px)
}

.chat-stage:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--peach), #d8c8ff);
    opacity: .72
}

.chat-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
    opacity: .5
}

.deco-one {
    width: 220px;
    height: 220px;
    right: -75px;
    top: 55px;
    background: radial-gradient(circle, #ffe0e9 0%, rgba(255, 224, 233, 0) 70%)
}

.deco-two {
    width: 260px;
    height: 260px;
    left: -120px;
    bottom: 100px;
    background: radial-gradient(circle, #fff0e8 0%, rgba(255, 240, 232, 0) 70%)
}

.messages {
    position: relative;
    z-index: 2;
    min-height: 0;
    overflow-y: auto;
    padding: 34px clamp(20px, 4vw, 64px) 28px;
    scroll-behavior: smooth
}

.messages::-webkit-scrollbar {
    width: 6px
}

.messages::-webkit-scrollbar-thumb {
    background: #eadce1;
    border-radius: 999px
}

.messages::-webkit-scrollbar-track {
    background: transparent
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    max-width: 560px;
    margin: auto;
    padding: 46px 20px 130px;
    text-align: center
}

.empty-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin-bottom: 17px;
    border-radius: 33px;
    background: linear-gradient(145deg, #fff0f4, #fff7f2);
    border: 1px solid #f5dce2;
    box-shadow: 0 18px 45px rgba(255, 111, 145, .12)
}

.empty-heart {
    color: var(--pink);
    font-size: 42px;
    line-height: 1
}

.empty-sparkle {
    position: absolute;
    color: var(--peach);
    font-size: 14px
}

.empty-sparkle.one {
    right: 15px;
    top: 13px
}

.empty-sparkle.two {
    left: 17px;
    bottom: 14px;
    color: var(--lavender);
    font-size: 10px
}

.service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 99px;
    background: #fff0f4;
    color: var(--pink-dark);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .07em
}

.empty-state h1 {
    margin: 12px 0 8px;
    font-size: clamp(23px, 2.6vw, 34px);
    letter-spacing: -.045em
}

.empty-state p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.85
}

.empty-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 19px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    color: #9b8b94;
    font-size: 8px;
    font-weight: 800
}

.empty-hint span {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 8px;
    background: #fff0f4;
    color: var(--pink-dark);
    font-size: 7px
}

.empty-hint i {
    font-style: normal;
    color: #d1c0c7
}

.message {
    display: flex;
    width: 100%;
    margin: 16px 0
}

.message.user {
    justify-content: flex-end
}

.message.assistant {
    justify-content: flex-start
}

.bubble {
    max-width: min(780px, 82%);
    padding: 14px 16px;
    border-radius: 21px;
    font-size: 12px;
    line-height: 1.72;
    box-shadow: 0 8px 24px rgba(86, 55, 65, .05)
}

.user-bubble {
    border-bottom-right-radius: 7px;
    background: linear-gradient(135deg, var(--pink), #ff7d98);
    color: #fff
}

.assistant-bubble {
    border: 1px solid var(--line);
    border-bottom-left-radius: 7px;
    background: #fff;
    color: #534951
}

.message-source {
    display: block;
    max-width: 270px;
    max-height: 340px;
    margin-bottom: 10px;
    border-radius: 16px;
    object-fit: cover
}

.message-text {
    word-break: break-word
}

.meta {
    margin-top: 8px;
    color: #b5a6ae;
    font-size: 8px
}

.user-bubble .meta {
    color: rgba(255, 255, 255, .7)
}

.job-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 10px;
    padding: 0 9px;
    border-radius: 99px;
    background: #fff3f5;
    color: #9c7180;
    font-size: 8px;
    font-weight: 900
}

.job-status.completed {
    background: #f1fbf6;
    color: #4a956a
}

.job-status.failed {
    background: #fff0f1;
    color: #c55566
}

.job-status.pending,
.job-status.processing {
    background: #fff6eb;
    color: #bd7b46
}

.result-grid {
    display: grid;
    grid-template-columns: minmax(0, 420px);
    gap: 8px
}

.result-grid.multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px
}

.result-image {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #f7f1f3;
    border: 1px solid var(--line)
}

.result-image img {
    display: block;
    width: 100%;
    height: auto
}

.bulk-actions {
    margin-top: 9px
}

.bulk-save-btn {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: #fff0f4;
    color: var(--pink-dark);
    font-size: 9px;
    font-weight: 900;
    cursor: pointer
}

.composer-wrap {
    position: relative;
    z-index: 5;
    width: min(900px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0 0 18px
}

.upload-preview {
    display: grid;
    grid-template-columns: 47px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: calc(100% - 18px);
    margin: 0 auto 7px;
    padding: 7px 9px;
    border: 1px solid #f2dfe4;
    border-radius: 15px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-sm)
}

.upload-preview img {
    width: 47px;
    height: 47px;
    border-radius: 12px;
    object-fit: cover
}

.upload-preview-copy {
    min-width: 0
}

.upload-preview-copy small {
    display: block;
    color: #baa7b0;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .09em
}

.upload-preview-copy strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px
}

.text-btn {
    border: 0;
    border-radius: 10px;
    background: #fff0f2;
    color: #c6576b;
    padding: 8px 10px;
    font-size: 8px;
    font-weight: 900;
    cursor: pointer
}

.composer-card {
    overflow: hidden;
    border: 1px solid #eedce1;
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 50px rgba(89, 53, 66, .13)
}

.composer-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 10px 10px 8px
}

.attach-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px dashed #f0bdca;
    border-radius: 16px;
    background: #fff3f6;
    color: var(--pink);
    cursor: pointer;
    transition: .18s
}

.attach-btn:hover {
    background: #ffe9ef;
    transform: translateY(-1px)
}

.attach-btn span {
    font-size: 24px;
    font-weight: 300
}

#promptInput {
    width: 100%;
    min-height: 48px;
    max-height: 180px;
    resize: none;
    padding: 12px 5px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.65
}

#promptInput::placeholder {
    color: #c0b1b8
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 114px;
    height: 48px;
    padding: 0 9px 0 15px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 111, 145, .23)
}

.send-btn:hover {
    transform: translateY(-1px)
}

.send-btn:disabled {
    opacity: .55;
    cursor: wait;
    transform: none
}

.send-btn i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    font-style: normal;
    font-size: 15px
}

.composer-tools {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 43px;
    padding: 6px 10px 9px;
    border-top: 1px solid #f4eaed
}

.shortcut-btn,
.tool-select,
.tool-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 29px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #75666f;
    font-size: 8px;
    font-weight: 800
}

.shortcut-btn {
    cursor: pointer
}

.shortcut-btn:hover {
    border-color: #f2c6d1;
    color: var(--pink-dark);
    background: #fff7f9
}

.tool-select select {
    border: 0;
    outline: 0;
    background: transparent;
    color: #554952;
    font-size: 9px;
    font-weight: 900
}

.tool-info strong {
    font-size: 8px
}

.composer-note {
    margin-left: auto;
    color: #c2b3ba;
    font-size: 7px;
    font-weight: 800
}

/* Library */
.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #6f6169;
    font-size: 20px;
    cursor: pointer
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    justify-content: flex-end;
    background: rgba(49, 35, 42, .24);
    backdrop-filter: blur(4px)
}

.drawer {
    width: min(620px, 94vw);
    height: 100dvh;
    padding: 22px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -28px 0 70px rgba(55, 35, 43, .14)
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line)
}

.drawer-head small {
    color: var(--pink);
    font-size: 8px;
    font-weight: 900
}

.drawer-head h2 {
    margin: 3px 0 0;
    font-size: 21px
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.library-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--shadow-sm)
}

.library-item a {
    display: block;
    background: #f8f3f5
}

.library-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover
}

.library-item>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    color: #a08f98;
    font-size: 8px
}

.library-item span {
    font-weight: 900;
    color: #685a62
}

/* Manual */
.manual-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(51, 38, 45, .26);
    backdrop-filter: blur(5px)
}

.manual-modal {
    width: min(680px, 96vw);
    max-height: min(780px, 92dvh);
    overflow: hidden;
    border: 1px solid #f1dfe4;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-md)
}

.manual-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line)
}

.manual-modal-heading {
    display: flex;
    align-items: center;
    gap: 11px
}

.manual-modal-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    font-weight: 900
}

.manual-modal-heading small {
    display: block;
    color: var(--pink);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em
}

.manual-modal-heading h2 {
    margin: 3px 0 0;
    font-size: 18px
}

.manual-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #6f6169;
    font-size: 20px;
    cursor: pointer
}

.manual-modal-body {
    max-height: calc(min(780px, 92dvh) - 78px);
    overflow-y: auto;
    padding: 20px
}

.manual-intro {
    padding: 16px;
    border-radius: 18px;
    background: #fff2f5;
    margin-bottom: 16px
}

.manual-intro p {
    margin: 9px 0 0;
    color: #78666f;
    font-size: 11px;
    line-height: 1.75
}

.manual-steps {
    display: grid;
    gap: 8px
}

.manual-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px
}

.manual-step-no {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: #fff0f4;
    color: var(--pink-dark);
    font-size: 10px;
    font-weight: 900
}

.manual-step strong {
    font-size: 11px
}

.manual-step p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.65
}

.manual-example,
.manual-tip,
.manual-note {
    margin-top: 14px;
    padding: 14px;
    border-radius: 15px
}

.manual-example {
    background: #faf8f9;
    border: 1px solid var(--line)
}

.manual-section-title {
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 900
}

.manual-prompt-box {
    padding: 11px;
    border-radius: 11px;
    background: #fff;
    color: #61545c;
    font-size: 9px;
    line-height: 1.7;
    border: 1px solid var(--line)
}

.manual-tip {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    background: #fff0f4;
    color: #7e5865
}

.manual-tip-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: var(--pink);
    font-weight: 900
}

.manual-tip strong,
.manual-note strong {
    font-size: 10px
}

.manual-tip p,
.manual-note p {
    margin: 4px 0 0;
    font-size: 9px;
    line-height: 1.65
}

.manual-note {
    background: #fff;
    border: 1px solid var(--line);
    color: #74656d
}

/* Drag & drop */
.drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(255, 248, 249, .92);
    backdrop-filter: blur(6px)
}

.drop-overlay-card {
    width: min(420px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px;
    border: 2px dashed #f3b7c6;
    border-radius: 28px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-md)
}

.drop-overlay-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    border-radius: 21px;
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    font-size: 32px
}

.drop-overlay-card strong {
    font-size: 18px
}

.drop-overlay-card span {
    color: var(--muted);
    font-size: 10px
}

.sidebar-backdrop {
    display: none
}

@media (max-width:980px) {
    :root {
        --sidebar-w: 286px
    }

    .main-panel {
        padding-right: 12px;
        padding-left: 12px
    }

    .chat-heading p {
        display: none
    }

    .messages {
        padding-left: 24px;
        padding-right: 24px
    }
}

@media (max-width:820px) {
    .mobile-only {
        display: flex !important
    }

    .mobile-credit-link{
      display: grid !important;
    }

    body.sidebar-open {
        overflow: hidden
    }

    .app-shell {
        display: block
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(320px, 88vw);
        height: 100dvh;
        transform: translateX(-104%);
        transition: transform .22s ease;
        box-shadow: 24px 0 60px rgba(56, 35, 43, .15);
        z-index: 190
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(45, 32, 39, .22);
        backdrop-filter: blur(3px);
        z-index: 180
    }

    .main-panel {
        grid-template-rows: 64px minmax(0, 1fr);
        height: 100dvh;
        padding: 0 8px 8px
    }

    .topbar {
        padding: 8px 5px
    }

    .chat-heading {
        gap: 8px
    }

    .chat-heading-badge {
        display: none
    }

    .chat-heading h1 {
        max-width: 58vw;
        font-size: 14px
    }

    .chat-heading p {
        display: none
    }

    .ghost-btn {
        display: none
    }

    .chat-stage {
        border-radius: 25px
    }

    .messages {
        padding: 22px 12px 24px
    }

    .empty-state {
        padding: 32px 10px 112px
    }

    .empty-visual {
        width: 82px;
        height: 82px;
        border-radius: 28px
    }

    .empty-heart {
        font-size: 36px
    }

    .empty-state h1 {
        font-size: 23px
    }

    .empty-state p {
        font-size: 10px
    }

    .empty-hint {
        gap: 4px;
        padding: 7px 8px;
        font-size: 7px
    }

    .empty-hint span {
        width: 20px;
        height: 20px
    }

    .bubble {
        max-width: 92%;
        padding: 11px 13px;
        border-radius: 18px;
        font-size: 11px
    }

    .user-bubble {
        border-bottom-right-radius: 6px
    }

    .assistant-bubble {
        border-bottom-left-radius: 6px
    }

    .result-grid.multi {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .composer-wrap {
        width: calc(100% - 12px);
        padding-bottom: 8px
    }

    .composer-card {
        border-radius: 20px
    }

    .composer-main {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 5px;
        padding: 7px 7px 5px;
    }

    .attach-btn {
        width: 42px;
        height: 42px;
        border-radius: 13px
    }

    .send-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 13px
    }

    .send-btn span {
        display: none
    }

    .send-btn i {
        width: auto;
        height: auto;
        background: transparent;
        font-size: 17px
    }

    #promptInput {
        min-height: 42px;
        padding: 9px 3px 7px;
        font-size: 11px
    }

    .composer-tools {
        min-height: 37px;
        padding: 5px 7px 7px;
        overflow-x: auto;
        white-space: nowrap
    }

    .shortcut-btn,
    .tool-select,
    .tool-info {
        flex: 0 0 auto;
        min-height: 27px
    }

    .tool-info,
    .composer-note {
        display: none
    }

    .upload-preview {
        grid-template-columns: 40px minmax(0, 1fr) auto
    }

    .upload-preview img {
        width: 40px;
        height: 40px
    }

    .drawer {
        padding: 16px
    }

    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:520px) {
    .empty-hint i {
        display: none
    }

    .empty-hint {
        flex-wrap: wrap;
        justify-content: center
    }

    .message-source {
        max-width: 210px
    }

    .result-grid.multi {
        grid-template-columns: 1fr
    }

    .manual-modal-backdrop {
        padding: 8px
    }

    .manual-modal {
        border-radius: 22px
    }

    .manual-modal-head {
        padding: 14px
    }

    .manual-modal-body {
        padding: 14px
    }

    .library-grid {
        grid-template-columns: 1fr 1fr
    }

    .topbar-actions {
        gap: 4px
    }

    .chat-heading h1 {
        max-width: 52vw
    }
}

/* ===== Readability + gallery layout refinement v61 ===== */
html,
body {
    font-size: 15px
}

/* Sidebar typography */
.brand-copy small {
    font-size: 11px
}

.service-picker-copy small {
    font-size: 11px
}

.service-picker-copy strong {
    font-size: 14px
}

.service-picker-option-copy strong {
    font-size: 13px
}

.service-picker-option-copy small {
    font-size: 11px
}

.new-chat-btn strong {
    font-size: 14px
}

.new-chat-btn small {
    font-size: 11px
}

.side-menu-item {
    font-size: 14px
}

.history-head small {
    font-size: 10px
}

.history-head h2 {
    font-size: 14px
}

.chat-item {
    font-size: 13px;
    line-height: 1.45
}

.credit-copy small {
    font-size: 11px
}

.credit-copy strong {
    font-size: 13px
}

.account-copy small {
    font-size: 10px
}

.account-copy strong {
    font-size: 13px
}

.account-menu-user small {
    font-size: 11px
}

.account-menu-user strong {
    font-size: 13px
}

.side-link {
    font-size: 13px
}

.history-delete {
    font-size: 12px
}

/* Main / chat typography */
.chat-heading-badge {
    font-size: 11px
}

.chat-heading h1 {
    font-size: 20px
}

.chat-heading p {
    font-size: 12px
}

.ghost-btn {
    font-size: 12px
}

.service-pill {
    font-size: 11px
}

.empty-state p {
    font-size: 14px;
    line-height: 1.8
}

.empty-hint {
    font-size: 12px
}

.bubble {
    font-size: 14px;
    line-height: 1.75
}

.meta {
    font-size: 11px
}

.job-status {
    font-size: 11px
}

.bulk-save-btn {
    font-size: 12px
}

.upload-preview-copy small {
    font-size: 10px
}

.upload-preview-copy strong {
    font-size: 12px
}

.text-btn {
    font-size: 12px
}

#promptInput {
    font-size: 15px
}

.send-btn {
    font-size: 13px
}

.shortcut-btn,
.tool-select,
.tool-info {
    font-size: 11px
}

.tool-select select {
    font-size: 12px
}

.tool-info strong {
    font-size: 11px
}

.composer-note {
    font-size: 10px
}

.drawer-head small {
    font-size: 11px
}

.library-item>div {
    font-size: 11px
}

.manual-modal-heading small {
    font-size: 11px
}

.manual-intro p {
    font-size: 14px
}

.manual-step-no {
    font-size: 12px
}

.manual-step strong {
    font-size: 14px
}

.manual-step p {
    font-size: 13px
}

.manual-section-title {
    font-size: 13px
}

.manual-prompt-box {
    font-size: 13px
}

.manual-tip strong,
.manual-note strong {
    font-size: 13px
}

.manual-tip p,
.manual-note p {
    font-size: 13px
}

.drop-overlay-card span {
    font-size: 13px
}

/* Perfectly centered close icons: draw the X instead of relying on glyph metrics */
.sidebar-close,
.manual-close,
#closeLibrary {
    position: relative;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

.sidebar-close::before,
.sidebar-close::after,
.manual-close::before,
.manual-close::after,
#closeLibrary::before,
#closeLibrary::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.sidebar-close::before,
.manual-close::before,
#closeLibrary::before {
    transform: translate(-50%, -50%) rotate(45deg)
}

.sidebar-close::after,
.manual-close::after,
#closeLibrary::after {
    transform: translate(-50%, -50%) rotate(-45deg)
}

/* Image grids: desktop 3 columns, mobile 2 columns */
.result-grid.multi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(900px, 100%);
    max-width: 900px;
    gap: 10px;
}

.library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

@media (max-width:820px) {
    .chat-heading h1 {
        font-size: 18px
    }

    .empty-state p {
        font-size: 13px
    }

    .empty-hint {
        font-size: 11px
    }

    .bubble {
        font-size: 14px
    }

    #promptInput {
        font-size: 14px;
    }

    .result-grid.multi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px
    }

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

@media (max-width:520px) {
    .result-grid.multi {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

/* ===== Image preview modal v62 ===== */
.result-image,
.library-item .js-image-preview {
    cursor: zoom-in;
}

.image-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(22, 16, 19, .86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-preview-backdrop.hidden {
    display: none;
}

.image-preview-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    height: min(92dvh, 980px);
    min-height: 0;
    border-radius: 22px;
    background: rgba(29, 23, 26, .96);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
    overflow: hidden;
}

.image-preview-canvas {
    display: grid;
    place-items: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 22px 12px;
    overflow: auto;
    overscroll-behavior: contain;
}

.image-preview-canvas img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(92dvh - 112px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
}

.image-preview-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(15, 12, 13, .72);
    color: #fff;
    font-size: 28px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.image-preview-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    padding: 10px 18px max(16px, env(safe-area-inset-bottom));
}

.image-preview-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    background: #fff;
    color: #4d3942;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

body.image-preview-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .image-preview-backdrop {
        padding: 0;
        background: rgba(16, 12, 14, .94);
    }

    .image-preview-modal {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .image-preview-canvas {
        padding: max(62px, env(safe-area-inset-top)) 12px 8px;
    }

    .image-preview-canvas img {
        max-height: calc(100dvh - 136px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 8px;
    }

    .image-preview-close {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        width: 44px;
        height: 44px;
        line-height: 40px;
    }

    .image-preview-actions {
        padding: 8px 14px max(14px, env(safe-area-inset-bottom));
    }

    .image-preview-download {
        width: 100%;
        min-height: 50px;
        font-size: 14px;
    }
}



.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.brand-app-icon {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: cover;
    border-radius: 26%;
    flex-shrink: 0;
    box-shadow:
        0 8px 24px rgba(255, 80, 130, .16),
        0 2px 6px rgba(0, 0, 0, .06);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.03emem;
    color: #302b31;
}

.brand-sub {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #8f858d;
}

@media (max-width: 600px) {
    .brand-logo {
        gap: 12px;
    }

    .brand-app-icon {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-sub {
        margin-top: 5px;
        font-size: 10px;
    }
}


/* =====================================
   生成枚数
===================================== */

.count-dropdown {
    position: relative;
    display: inline-flex;
}


/* 閉じている状態 */

.count-dropdown-trigger {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    height: 27px;
    min-width: 125px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 42px 0 12px;
    border: 1px solid #efdee3;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
    box-shadow:
        0 3px 12px rgba(60, 35, 45, .035);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.count-dropdown-trigger:hover {
    border-color: #f6c0cf;
}

.count-dropdown.is-open .count-dropdown-trigger {
    border-color: #ff739a;

    background: #fffafb;

    box-shadow:
        0 0 0 5px rgba(255, 115, 154, .10);
}


.count-label {
    color: #75666f;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}


.count-current {
    color: #342e31;
    font-size: 14px;
    font-weight: 800;
}


/* 矢印 */

.count-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 3px solid #ff739a;
    border-bottom: 3px solid #ff739a;
    transform:
        translateY(-70%)
        rotate(45deg);
    transition: transform .2s ease;
}

.count-dropdown.is-open .count-arrow {
    transform:
        translateY(-30%)
        rotate(225deg);
}


/* =====================================
   開いたメニュー
===================================== */

.count-dropdown-menu {
    position: fixed;

    z-index: 999999;

    width: 260px;

    padding: 10px;

    background: rgba(255, 255, 255, .98);

    border: 1px solid #f0dfe4;
    border-radius: 24px;

    box-shadow:
        0 24px 70px rgba(71, 42, 52, .18),
        0 5px 20px rgba(71, 42, 52, .07);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(8px)
        scale(.97);

    transform-origin: bottom center;

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;

    overflow-y: auto;

    scrollbar-width: none;
}

.count-dropdown-menu::-webkit-scrollbar {
    display: none;
}

.count-dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* =====================================
   各項目
===================================== */

.count-option {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    min-height: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 16px;

    border: 0;
    border-radius: 17px;

    background: transparent;

    text-align: left;

    font-family: inherit;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.count-option:hover {
    background: #fff5f7;
}

.count-option:active {
    transform: scale(.98);
}


/* 選択中 */

.count-option.is-active {
    background: #fff0f3;
}

.count-option > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.count-option strong {
    color: #382f34;

    font-size: 16px;
    font-weight: 800;
}

.count-option span {
    color: #aa979f;

    font-size: 12px;
    font-weight: 500;
}


/* チェック */

.count-option i {
    display: none;

    color: #ff7098;

    font-size: 22px;
    font-weight: 900;

    font-style: normal;

    margin-left: 15px;
}

.count-option.is-active i {
    display: block;
}


/* =====================================
   スマホ
===================================== */

@media (max-width: 600px) {

    .count-dropdown-trigger {
        /* height: 48px; */
        /* min-width: 175px; */
        /* padding-left: 17px; */
        /* border-radius: 17px; */
    }

    .count-label {
        font-size: 11px;
    }

    .count-current {
        font-size: 14px;
    }

    .count-dropdown-menu {
        width: 240px;

        border-radius: 22px;
    }

    .count-option {


        border-radius: 16px;
    }

}

/* App announcements */
.app-announcement-bar{display:flex;align-items:center;gap:10px;margin:10px 18px 0;padding:11px 14px;border:1px solid #ffd7e7;border-radius:13px;background:#fff7fb;color:#31202a;text-decoration:none;box-shadow:0 6px 20px rgba(45,24,35,.04);min-width:0}.app-announcement-label{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#ff2f92;color:#fff;font-size:9px;font-weight:800}.app-announcement-bar strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.app-announcement-bar small{margin-left:auto;color:#9f6b82;font-size:10px;white-space:nowrap}.app-announcement-bar i{font-style:normal;color:#c66a95;font-size:18px}.announcement-menu-link{display:flex!important;align-items:center;gap:8px}.announcement-menu-link span{min-width:0}.announcement-menu-link b{margin-left:auto;display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ff2f92;color:#fff;font-size:9px}
@media(max-width:700px){.app-announcement-bar{margin:8px 10px 0;padding:10px 11px}.app-announcement-bar small{display:none}}

.main-panel.has-announcement{grid-template-rows:76px auto minmax(0,1fr)}
