:root {
    font-family: -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
    color: #272535;
    background: #faf9f7;
    font-size: 15px
}

.hero h1,.page-title,.detail-png-export .page-title {
    font-family: "Shippori Mincho","Yu Mincho",serif
}

.auth-panel {
    max-width: 720px;
    padding: clamp(24px,5vw,48px)
}

.auth-panel h1 {
    margin: 0 0 10px
}

.auth-lead {
    color: #655f6c;
    line-height: 1.8
}

.auth-benefits,.auth-caution {
    margin: 24px 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f3f7fd
}

.auth-caution {
    background: #fff4ea
}

.usage-notice {
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid #f0c79f;
    border-radius: 14px;
    background: #fff8f1;
    color: #5f4939
}

.usage-notice h2 {
    margin: 0 0 8px;
    color: #9e5527;
    font-size: 16px
}

.usage-notice ul {
    margin: 0;
    padding-left: 1.4em;
    line-height: 1.8
}

.auth-benefits h2,.auth-caution h2 {
    font-size: 16px;
    margin: 0 0 8px
}

.auth-benefits ul {
    margin: 0;
    padding-left: 1.4em;
    line-height: 1.9
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px
}

.auth-tabs button {
    position: relative;
    min-height: 48px;
    padding: 0 18px;
    font-weight: 700
}

.auth-tabs button[aria-selected="true"] {
    background: var(--ske-blue,#2777c7);
    border-color: var(--ske-blue,#2777c7);
    color: #fff;
    box-shadow: 0 5px 12px rgba(39,119,199,.22)
}

.auth-tabs button[aria-selected="true"]::after {
    content: "選択中";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ske-orange,#df7a3c);
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap
}

[data-auth-required-nav][hidden] {
    display: none !important
}

.auth-guide {
    margin: 26px 0;
    padding: 20px;
    border: 1px solid #c9daf0;
    border-radius: 16px;
    background: #fff
}

.auth-guide h2 {
    margin: 0 0 7px;
    color: var(--ske-navy,#173d69);
    font-size: 18px
}

.auth-guide p {
    margin: 0 0 15px;
    color: #655f6c;
    line-height: 1.7
}

.auth-guide-visual {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px
}

.auth-form[hidden] {
    display: none
}

.auth-credentials {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #b9d3f2;
    border-radius: 14px;
    background: #f3f7fd
}

.auth-credentials code {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #173d69
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

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

button {
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

.shell {
    max-width: 1380px;
    min-height: 100vh;
    margin: auto
}

.top {
    height: 76px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9e7e7
}

.brand {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: .02em
}

.brandmark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #df7a3c;
    color: white;
    margin-right: 7px
}

.private-label,.muted {
    color: #85818c;
    font-size: 13px
}

.layout {
    display: grid;
    grid-template-columns: 230px minmax(0,1fr);
    min-height: calc(100vh - 76px)
}

.sidebar {
    padding: 42px 19px 20px 28px;
    border-right: 1px solid #e9e7e7;
    position: relative
}

.side-title {
    font-size: 10px;
    color: #aaa3b2;
    letter-spacing: .18em;
    margin: 0 14px 20px;
    font-weight: 750
}

.nav {
    display: block;
    width: 100%;
    border: 0;
    text-align: left;
    background: transparent;
    color: #665f72;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 7px;
    font-weight: 600
}

.nav:hover,.nav.active {
    background: #fff0e5;
    color: #a74f20
}

.side-foot {
    position: absolute;
    bottom: 30px;
    color: #a7a1aa;
    font-size: 12px;
    left: 42px
}

.main {
    max-width: 1040px;
    width: 100%;
    padding: 56px clamp(20px,6vw,78px) 100px
}

.status {
    color: #a55327;
    margin-bottom: 15px
}

.status:empty {
    display: none
}

.eyebrow {
    font-size: 12px;
    color: #c66b38;
    letter-spacing: .08em;
    font-weight: 750;
    margin: 0
}

.hero h1 {
    font-family: Georgia,"Yu Mincho",serif;
    font-size: clamp(27px,3.4vw,42px);
    line-height: 1.4;
    letter-spacing: .025em;
    margin: 0 0 12px
}

.hero p {
    color: #827d88;
    margin: 0
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: end;
    margin-bottom: 44px
}

.primary {
    background: #d46c32;
    color: #fff;
    border: 1px solid #d46c32;
    border-radius: 11px;
    padding: 12px 18px;
    font-weight: 700;
    box-shadow: 0 5px 13px #7762a126
}

.primary:hover {
    background: #ac4d22
}

.secondary {
    background: #fff;
    color: #9c5b38;
    border: 1px solid #ead4c4;
    border-radius: 11px;
    padding: 11px 16px;
    font-weight: 650
}

.danger {
    color: #b2475b;
    border-color: #ebccd2
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0
}

.section-head h2 {
    font-size: 19px;
    margin: 0
}

.filters {
    display: flex;
    gap: 9px;
    margin: 0 0 24px
}

.input,textarea,select {
    background: #fff;
    color: #282532;
    border: 1px solid #ddd9e1;
    border-radius: 10px;
    padding: 12px 13px;
    outline: 0
}

.input:focus,textarea:focus,select:focus {
    border-color: #d8804d;
    box-shadow: 0 0 0 3px #ffead9
}

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

.custom-event-fields[hidden] {
    display: none !important
}

.field[hidden] {
    display: none !important
}

.ad-banner {
    display: grid;
    place-items: center;
    min-height: 110px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #d8e4ef;
    border-radius: 12px;
    background: #fff;
    color: var(--ske-muted);
    text-align: center
}

.ad-banner span {
    font-size: 11px;
    letter-spacing: .08em
}

.ad-banner p {
    margin: 4px 0 0;
    font-size: 13px
}

.custom-event-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 700
}

.custom-event-grid .custom-event-name {
    grid-column: 1 / -1
}

.filters .input {
    width: 100%
}

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

.card {
    background: white;
    border: 1px solid #eee2d8;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 26px #62320d0a;
    min-width: 0
}

.card:hover {
    border-color: #edc6a5
}

.card .date {
    font-size: 12px;
    color: #c4774d;
    font-weight: 700
}

.card h3 {
    font-size: 20px;
    margin: 12px 0 4px
}

.event {
    color: #8b8691;
    font-size: 13px;
    margin-bottom: 20px
}

.quote {
    background: #fff7f0;
    border-left: 3px solid #eebd96;
    color: #4e4759;
    padding: 15px;
    border-radius: 0 9px 9px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
    max-height: 115px;
    overflow: hidden
}

.next {
    font-size: 12px;
    color: #ab6540;
    margin: 18px 0 0
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px
}

.card-actions button {
    font-size: 13px
}

.empty {
    padding: 54px 25px;
    background: #fff;
    border: 1px dashed #edceb8;
    border-radius: 16px;
    text-align: center;
    color: #81778e
}

.panel {
    max-width: 820px
}

.page-title {
    font-size: 30px;
    margin: 0;
    font-family: Georgia,"Yu Mincho",serif
}

.page-sub {
    color: #8d8792;
    margin: 0 0 16px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 17px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 17px
}

.field label {
    font-weight: 700;
    font-size: 13px
}

.field input,.field textarea {
    width: 100%
}

textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.8
}

.field.small textarea {
    min-height: 90px
}

.full {
    grid-column: 1/-1
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px
}

.preview {
    border-radius: 15px;
    padding: 22px;
    background: #fff0e3;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.mobile-nav {
    display: none
}

.line {
    border: 0;
    border-top: 1px solid #eee9f1;
    margin: 26px 0
}

.public {
    max-width: 800px;
    margin: 55px auto;
    padding: 0 20px 80px;
    line-height: 1.9
}

.public h1 {
    font-size: 32px
}

.public a {
    color: #705599;
    text-decoration: underline
}

@media(max-width: 900px) {
    .cards {
        grid-template-columns:1fr
    }

    .main {
        padding: 35px 25px 90px
    }
}

@media(max-width: 660px) {
    .top {
        height:62px;
        padding: 0 18px
    }

    .private-label {
        font-size: 11px
    }

    .layout {
        display: block
    }

    .sidebar {
        display: none
    }

    .main {
        padding: 28px 18px 95px
    }

    .hero {
        align-items: start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 28px
    }

    .hero h1 {
        font-size: 29px
    }

    .filters {
        flex-direction: column
    }

    .card {
        padding: 20px
    }

    .form-grid {
        display: block
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 66px;
        background: #fff;
        border-top: 1px solid #eadbd1;
        z-index: 5;
        justify-content: space-around;
        align-items: center
    }

    .mobile-nav>* {
        border: 0;
        background: none;
        color: #a45e36;
        font-weight: 650;
        font-size: 12px;
        padding: 12px
    }

    .page-title {
        font-size: 26px
    }
}

/* ä¼šè©±ãƒ¬ãƒ */
.suggestions {
    background: #fff;
    position: relative;
    z-index: 2;
    max-height: 220px;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px #70371120
}

.suggestions:empty {
    display: none
}

.suggestions button {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 10px 14px;
    color: #40332b
}

.suggestions button:hover {
    background: #fff0e3
}

.speaker-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 14px 0 26px
}

.speaker-toolbar button {
    background: #fff7ef;
    border: 1px solid #e9cdb7;
    color: #a34e25;
    border-radius: 20px;
    padding: 9px 12px;
    font-size: 13px
}

.chat-editor,.chat-display {
    background: #f7f2ec;
    border-radius: 17px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 130px
}

.chat-row,.bubble-wrap {
    width: min(82%,540px);
    align-self: flex-start
}

.chat-row.self,.bubble-wrap.self {
    align-self: flex-end
}

.chat-label,.bubble-speaker {
    display: block;
    font-size: 11px;
    color: #867362;
    font-weight: 700;
    margin: 0 0 5px 9px
}

.chat-row.self .chat-label,.bubble-wrap.self .bubble-speaker {
    text-align: right;
    margin-right: 9px
}

.chat-text,.bubble {
    display: block;
    background: white;
    border: 1px solid #eadccf;
    border-radius: 15px;
    padding: 12px 14px;
    width: 100%;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-height: 50px
}

.chat-row.self .chat-text,.bubble-wrap.self .bubble {
    background: #ffdfc3;
    border-color: #f3c49f
}

.chat-row.thought .chat-text,.bubble-wrap.thought .bubble {
    background: #fff7e4;
    border-style: dashed
}

.chat-row.staff .chat-text,.bubble-wrap.staff .bubble {
    background: #e9e6e2
}

.remove-chat {
    background: none;
    border: 0;
    color: #a87260;
    font-size: 18px;
    padding: 2px 8px;
    float: right
}

.chat-font-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 8px 0;
    color: #766858;
    font-size: 12px;
    font-weight: 700
}

.chat-font-label select {
    flex: 1;
    min-width: 0;
    padding: 7px 9px;
    font-size: 12px
}

.font-noto-sans-jp {font-family:"Noto Sans JP",sans-serif}
.font-zen-kaku-gothic-new {font-family:"Zen Kaku Gothic New",sans-serif}
.font-zen-maru-gothic {font-family:"Zen Maru Gothic",sans-serif}
.font-noto-serif-jp {font-family:"Noto Serif JP",serif}
.font-hina-mincho {font-family:"Hina Mincho",serif}
.font-dela-gothic-one {font-family:"Dela Gothic One",sans-serif}
.font-mochiy-pop-one {font-family:"Mochiy Pop One",sans-serif}
.font-kaisei-decol {font-family:"Kaisei Decol",serif}
.font-yomogi {font-family:"Yomogi",cursive}
.font-yusei-magic {font-family:"Yusei Magic",cursive}
.font-zen-kurenaido {font-family:"Zen Kurenaido",sans-serif}

.bubble-wrap .bubble {
    font-size: 15px
}

select {
    width: 100%
}

.chat-row.staff,.bubble-wrap.staff {
    align-self: center;
    width: min(70%,440px);
    text-align: center
}

.chat-row.staff .chat-label,.bubble-wrap.staff .bubble-speaker {
    margin-left: 0;
    text-align: center
}

.chat-row.staff .chat-text,.bubble-wrap.staff .bubble {
    text-align: center
}

.bubble-wrap.member {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: min(90%,590px)
}

.bubble-wrap.member .bubble-content {
    min-width: 0;
    flex: 1
}

.member-avatar {
    display: block;
    width: 36px;
    height: 36px;
    flex: none;
    object-fit: cover;
    border-radius: 50%;
    background: #f0ded0
}

.chat-row.member {
    position: relative;
    padding-left: 45px
}

.chat-row.member .member-avatar {
    position: absolute;
    left: 0;
    top: 16px
}

@media(max-width: 660px) {
    .chat-row.staff,.bubble-wrap.staff {
        width:min(86%,440px)
    }

    .bubble-wrap.member {
        width: 100%
    }

    .member-avatar {
        width: 32px;
        height: 32px
    }
}

/* LINEé¢¨ã®ä¼šè©±è¡¨ç¤ºã€‚ã‚µã‚¤ãƒˆå…¨ä½“ã®ã‚ªãƒ¬ãƒ³ã‚¸è‰²ã¯ç¶­æŒã™ã‚‹ã€‚ */
.chat-editor,.chat-display {
    background: #91afd6;
    border-radius: 12px;
    padding: 24px 18px;
    gap: 18px
}

.chat-label,.bubble-speaker {
    color: #344866;
    font-size: 12px
}

.chat-row.self,.chat-row.thought,.bubble-wrap.self,.bubble-wrap.thought {
    align-self: flex-end
}

.chat-row.self .chat-label,.chat-row.thought .chat-label,.bubble-wrap.self .bubble-speaker,.bubble-wrap.thought .bubble-speaker {
    text-align: right;
    margin-right: 8px
}

.chat-text,.bubble {
    background: #fff;
    border: 0;
    border-radius: 18px;
    color: #1d2731;
    box-shadow: 0 1px 1px #48689126
}

.chat-row.self .chat-text,.chat-row.thought .chat-text,.bubble-wrap.self .bubble,.bubble-wrap.thought .bubble {
    background: #72ea65;
    border: 0
}

.chat-row.thought .chat-text,.bubble-wrap.thought .bubble {
    background: #b8f1ad;
    font-style: italic
}

.chat-row.staff .chat-text,.bubble-wrap.staff .bubble {
    background: #dbe6f4;
    border: 0;
    color: #344866
}

.bubble-wrap {
    position: relative
}

.bubble-wrap.member,.bubble-wrap.self,.bubble-wrap.thought {
    width: fit-content;
    max-width: min(90%,590px)
}

.bubble-wrap.member .bubble-content {
    flex: 0 1 auto;
    min-width: 0
}

.bubble-wrap .bubble {
    position: relative;
    width: auto;
    min-height: 0
}

.bubble-wrap.member .bubble {
    border-radius: 18px;
}

.bubble-wrap.self .bubble,.bubble-wrap.thought .bubble {
    border-radius: 18px;
}

.bubble-wrap.member .bubble::before,.bubble-wrap.self .bubble::after,.bubble-wrap.thought .bubble::after {
    content: "";
    position: absolute;
    top: 0;
    width: 12px;
    height: 16px;
    border: 0;
    box-shadow: none
}

.bubble-wrap.member .bubble::before {
    /* left:-11px; */
    /* background:#fff; */
    /* clip-path:polygon(100% 0,0 0,100% 100%); */
}

.bubble-wrap.self .bubble::after {
    /* right:-11px; */
    /* background:#72ea65; */
    /* clip-path:polygon(0 0,100% 0,0 100%); */
}

.bubble-wrap.thought .bubble::after {
    /* right:-11px; */
    /* background:#b8f1ad; */
    /* clip-path:polygon(0 0,100% 0,0 100%); */
}

.bubble-wrap.member .member-avatar {
    width: 48px;
    height: 48px;
    margin-top: 18px
}

.chat-row.member {
    padding-left: 56px
}

.chat-row.member .member-avatar {
    top: 14px;
    width: 48px;
    height: 48px
}

.member-avatar {
    border: 1px solid #ffffffa8
}

@media(max-width: 660px) {
    .bubble-wrap.member {
        width:fit-content;
        max-width: 100%
    }

    .bubble-wrap.member .member-avatar {
        width: 44px;
        height: 44px
    }

    .chat-row.member .member-avatar {
        width: 44px;
        height: 44px
    }
}

.chat-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin: 20px 0
}

.chat-image-previews img {
    display: block;
    width: min(100%,300px);
    height: auto;
    box-shadow: 0 8px 24px #34486633;
    border-radius: 8px
}

.bubble-wrap.staff {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: min(82%,540px);
    text-align: left
}

.bubble-wrap.staff .bubble-content {
    min-width: 0;
    flex: 1
}

.bubble-wrap.staff .bubble-speaker {
    text-align: left;
    margin-left: 12px
}

.bubble-wrap.staff .bubble {
    text-align: left
}

.bubble-wrap.staff .staff-avatar {
    width: 48px;
    height: 48px;
    margin-top: 17px
}

.chat-row.staff {
    position: relative;
    padding-left: 56px
}

.chat-row.staff .staff-avatar {
    position: absolute;
    left: 0;
    top: 14px;
    width: 48px;
    height: 48px
}

.chat-row.staff .chat-label {
    text-align: left;
    margin-left: 12px
}

.chat-row.staff .chat-text {
    text-align: left
}

@media(max-width: 660px) {
    .bubble-wrap.staff {
        width:min(94%,540px)
    }

    .bubble-wrap.staff .staff-avatar,.chat-row.staff .staff-avatar {
        width: 44px;
        height: 44px
    }
}

.publication-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 20px
}

.publication-controls label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e9cdb7;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    background: #fff9f3
}

.publication-controls input {
    accent-color: #d36c34
}

.row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 5px
}

.row-actions button {
    border: 1px solid #c8d8ed;
    background: #fff;
    border-radius: 8px;
    min-width: 36px;
    min-height: 34px;
    color: #344866
}

.row-actions .remove-chat {
    float: none;
    font-size: 18px;
    padding: 0
}

.chat-row.staff .row-actions {
    justify-content: flex-end
}

.chat-row.self .row-actions,.chat-row.thought .row-actions {
    justify-content: flex-end
}

.filters .field {
    min-width: min(260px,100%)
}

/* SKE48cal shared visual language */
:root {
    --ske-navy: #172b4d;
    --ske-blue: #2476c8;
    --ske-blue-soft: #edf6ff;
    --ske-orange: #ef7d00;
    --ske-line: #d9e5f2;
    --ske-muted: #64748b
}

body {
    background: #f7fbff;
    color: var(--ske-navy)
}

.shell {
    max-width: 1440px
}

.top {
    min-height: 72px;
    height: auto;
    padding: 10px clamp(16px,5vw,64px);
    border-bottom-color: var(--ske-line);
    background: #fff
}

.handshake-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ske-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15
}

.handshake-brand small {
    display: block;
    margin-bottom: 2px;
    color: var(--ske-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em
}

.handshake-brand-icon {
    width: 38px;
    height: 38px;
    object-fit: contain
}

.calendar-return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #b7d4f0;
    border-radius: 10px;
    background: var(--ske-blue-soft);
    color: var(--ske-blue);
    font-size: 13px;
    font-weight: 800
}

.calendar-return-link:hover {
    border-color: var(--ske-blue);
    background: #dff0ff
}

.sidebar {
    border-right-color: var(--ske-line);
    background: #fff
}

.nav {
    color: #4b6380
}

.nav:hover,.nav.active {
    background: var(--ske-blue-soft);
    color: var(--ske-blue)
}

.main {
    padding-top: 46px
}

.eyebrow,.status {
    color: var(--ske-blue)
}

.hero h1,.page-title,.section-head h2 {
    color: var(--ske-navy)
}

.hero p,.private-label,.muted,.side-foot {
    color: var(--ske-muted)
}

.primary {
    border-color: var(--ske-orange);
    background: var(--ske-orange);
    box-shadow: 0 5px 13px rgba(239,125,0,.16)
}

.primary:hover {
    background: #ce6800
}

.secondary {
    border-color: #bfd5ea;
    color: var(--ske-blue)
}

.input,textarea,select {
    border-color: #c9d9e9
}

.input:focus,textarea:focus,select:focus {
    border-color: var(--ske-blue);
    box-shadow: 0 0 0 3px rgba(36,118,200,.14)
}

.card,.panel {
    border-color: var(--ske-line)
}

.hero h1,.page-title,.detail-png-export .page-title {
    font-family: "Shippori Mincho","Yu Mincho",serif
}

@media(max-width:700px) {
    .top {
        min-height: 64px;
        padding: 8px 12px
    }

    .handshake-brand {
        gap: 7px;
        font-size: 16px
    }

    .handshake-brand-icon {
        width: 34px;
        height: 34px
    }

    .calendar-return-link {
        min-height: 44px;
        padding-inline: 10px;
        font-size: 12px
    }
}

.chat-row[class*="font-"] .chat-text, .bubble-wrap[class*="font-"] .bubble { font-family: inherit; }

/* Only conversation text and picker samples use the selected font. */
.font-picker {flex:1;min-width:0;position:relative;font-weight:400}
.font-picker summary {cursor:pointer;border:1px solid #d5dce4;border-radius:8px;background:#fff;padding:9px 12px;color:#24364b;list-style-position:inside}
.font-picker-options {margin-top:4px;padding:4px;background:#fff;border:1px solid #d5dce4;border-radius:8px;max-height:300px;overflow-y:auto}
.font-picker-options button {display:block;width:100%;text-align:left;background:#fff;color:#24364b;border:0;border-radius:5px;padding:10px 12px;font-size:15px;font-weight:400;cursor:pointer}
.font-picker-options button:hover,.font-picker-options button:focus-visible,.font-picker-options button[aria-pressed="true"] {background:#eaf2fa;outline:2px solid #b9cfe4;outline-offset:-2px}

/* Conversation palettes, shared by editor, details, public reports and PNG. */
[data-theme="warm"] {--chat-bg:#fff1e7;--bubble-bg:#fffaf5;--bubble-self:#ffc9ad;--bubble-thought:#ffe6bb;--bubble-staff:#eed6c8;--bubble-border:#d7aa90;--speaker-color:#79503d}
[data-theme="cool"] {--chat-bg:#edf5fb;--bubble-bg:#fff;--bubble-self:#c5e6fa;--bubble-thought:#e1f3f3;--bubble-staff:#d9e1ef;--bubble-border:#acc9db;--speaker-color:#38586e}
[data-theme="lavender"] {--chat-bg:#f4effa;--bubble-bg:#fffafd;--bubble-self:#e0ccf4;--bubble-thought:#f8dfed;--bubble-staff:#e3ddeb;--bubble-border:#c8b3db;--speaker-color:#68507c}
.chat-editor[data-theme]:not([data-theme="default"]),.chat-display[data-theme]:not([data-theme="default"]) {background:var(--chat-bg)}
[data-theme]:not([data-theme="default"]) .chat-text,[data-theme]:not([data-theme="default"]) .bubble {background:var(--bubble-bg);border-color:var(--bubble-border);color:#293343}
[data-theme]:not([data-theme="default"]) .self .chat-text,[data-theme]:not([data-theme="default"]) .self .bubble {background:var(--bubble-self)}
[data-theme]:not([data-theme="default"]) .thought .chat-text,[data-theme]:not([data-theme="default"]) .thought .bubble {background:var(--bubble-thought)}
[data-theme]:not([data-theme="default"]) .staff .chat-text,[data-theme]:not([data-theme="default"]) .staff .bubble {background:var(--bubble-staff)}
[data-theme]:not([data-theme="default"]) .chat-label,[data-theme]:not([data-theme="default"]) .bubble-speaker {color:var(--speaker-color)}

[data-theme="mint"] {--chat-bg:#edf7f1;--bubble-bg:#fff;--bubble-self:#c8ebd8;--bubble-thought:#edf3cc;--bubble-staff:#dce8e1;--bubble-border:#aacbb9;--speaker-color:#3e6652}
[data-theme="sakura"] {--chat-bg:#fff1f5;--bubble-bg:#fffbfc;--bubble-self:#f8ccdc;--bubble-thought:#ffead8;--bubble-staff:#eedee5;--bubble-border:#ddb4c4;--speaker-color:#7b4e61}
[data-theme="mono"] {--chat-bg:#f0f1f3;--bubble-bg:#fff;--bubble-self:#d6dbe1;--bubble-thought:#f4f4f4;--bubble-staff:#e4e6e9;--bubble-border:#b8bec6;--speaker-color:#4f5661}

/* Staff text and font picker must not inherit the old centered alignment. */
.chat-row.staff,.bubble-wrap.staff,
.chat-row.staff .chat-font-label,.chat-row.staff .font-picker summary {
    text-align: left;
}

@media(max-width: 900px) {
 .mobile-nav {height:calc(56px + env(safe-area-inset-bottom,0px));padding:0 0 env(safe-area-inset-bottom,0px);border-top:1px solid #e0e4ec;box-shadow:0 -2px 8px #24364b0a;z-index:20;align-items:stretch}
 .mobile-nav>button,.mobile-nav>a {display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 0;border:0;border-radius:0;background:transparent;color:#aab3c4;font-size:10px;font-weight:600;line-height:1.2;text-decoration:none}
 .mobile-nav svg {width:20px;height:20px;flex-shrink:0}
 .mobile-nav>.active {color:#287dca;background:transparent}
 .mobile-nav>:focus-visible {outline:2px solid #287dca;outline-offset:-3px}
 body {padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}
