:root {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f7f8ff;
    background: #06132f;
    font-synthesis: none;
    --cyan: #63eaff;
    --coral: #ff897b;
    --line: rgba(145, 202, 255, .32)
}

* {
    box-sizing: border-box
}

html {
    scrollbar-width: none;
    scroll-behavior: smooth
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #06132f;
    color: #f7f8ff;
    overflow-x: hidden
}

body::-webkit-scrollbar {
    display: none
}

button,
textarea {
    font: inherit
}

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

button {
    cursor: pointer;
    color: inherit
}

button:disabled {
    cursor: default
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px
}

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

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(90deg, rgba(2, 10, 29, .8), rgba(3, 12, 32, .44) 34%, rgba(3, 12, 32, .08) 70%, rgba(2, 9, 25, .32)), linear-gradient(180deg, rgba(1, 7, 23, .12), rgba(2, 8, 24, .5)), url("assets/story-workbench-bg-reference.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #06132f
}

.backdrop:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 10, 28, .42) 0 14%, transparent 38%), linear-gradient(180deg, transparent 65%, rgba(2, 8, 24, .58))
}

.app-shell {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    padding: 31px 18px 24px;
    border-right: 1px solid rgba(128, 186, 244, .27);
    background: linear-gradient(180deg, rgba(3, 15, 39, .88), rgba(3, 12, 32, .68));
    overflow: hidden
}

.sidebar:after {
    content: "";
    position: absolute;
    left: -80px;
    right: -80px;
    bottom: -80px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(26, 101, 203, .34), transparent 67%);
    pointer-events: none
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px
}

.brand strong {
    display: block;
    font-size: 20px;
    letter-spacing: 1px;
    white-space: nowrap
}

.brand small {
    display: block;
    margin-top: 5px;
    color: #8ba7d2;
    font-size: 10px;
    letter-spacing: .6px;
    white-space: nowrap
}

.sprite {
    display: block;
    background-image: url("assets/story-workbench-elements-sprite.png");
    background-repeat: no-repeat;
    background-size: 264px 176px;
    background-color: transparent
}

.sprite-logo {
    width: 64px;
    height: 64px;
    background-position: 0 0;
    filter: drop-shadow(0 0 10px rgba(80, 217, 255, .44))
}

.navigation {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
    margin-top: 42px
}

.nav-item {
    border: 0;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 17px;
    text-align: left;
    color: #a1b7d9;
    font-size: 16px;
    transition: background .18s, color .18s
}

.nav-icon {
    position: relative;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: #85a6d0
}

.nav-icon:before,
.nav-icon:after {
    content: "";
    position: absolute;
    display: block
}

.home-icon:before {
    width: 18px;
    height: 15px;
    background: currentColor;
    border-radius: 3px;
    clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%)
}

.home-icon:after {
    width: 5px;
    height: 8px;
    bottom: 2px;
    background: #07142f
}

.pen-icon:before {
    width: 17px;
    height: 4px;
    background: currentColor;
    transform: rotate(-42deg);
    border-radius: 3px
}

.pen-icon:after {
    width: 4px;
    height: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    right: 1px;
    top: 5px
}

.spark-icon:before {
    content: "✦";
    font-size: 21px;
    color: currentColor
}

.globe-icon:before {
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    border-radius: 50%
}

.globe-icon:after {
    width: 12px;
    height: 18px;
    border-left: 1px solid currentColor;
    border-right: 1px solid currentColor;
    border-radius: 50%
}

.person-icon:before {
    width: 9px;
    height: 9px;
    border: 1px solid currentColor;
    border-radius: 50%;
    top: 2px
}

.person-icon:after {
    width: 17px;
    height: 9px;
    border: 1px solid currentColor;
    border-radius: 10px 10px 2px 2px;
    bottom: 2px
}

.outline-icon:before {
    width: 17px;
    height: 20px;
    border: 1px solid currentColor;
    border-radius: 3px
}

.outline-icon:after {
    width: 9px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 4px currentColor, 0 8px currentColor
}

.material-icon:before {
    content: "✦";
    font-size: 20px
}

.publish-icon:before {
    content: "→";
    font-size: 25px
}

.settings-icon:before {
    content: "⚙";
    font-size: 21px
}

.nav-item kbd {
    margin-left: auto;
    color: #7a98c3;
    font: 10px inherit;
    letter-spacing: 1px
}

.nav-item.active {
    padding-left: 15px;
    color: #f4faff;
    background: linear-gradient(105deg, rgba(40, 111, 233, .56), rgba(32, 70, 145, .28));
    box-shadow: inset 2px 0 0 var(--cyan), 0 8px 24px rgba(22, 102, 226, .18)
}

.nav-item.active .nav-icon {
    color: #07142f;
    background: var(--cyan);
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(99, 234, 255, .58)
}

.nav-item:not(.active):disabled {
    opacity: .8
}

.settings {
    margin-top: 8px;
    padding-top: 17px;
    border-top: 1px solid rgba(139, 190, 243, .17);
    border-radius: 0
}

.sidebar-quote {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 0 23px 17px;
    color: #97afd3
}

.quote-mark {
    display: block;
    height: 30px;
    color: var(--coral);
    font: 47px/1 Georgia, serif
}

.sidebar-quote p {
    margin: 7px 0 16px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: 2px
}

.quote-line {
    display: block;
    width: 25px;
    height: 2px;
    margin-bottom: 19px;
    background: linear-gradient(90deg, var(--coral), transparent)
}

.sidebar-quote small {
    font-size: 8px;
    line-height: 1.8;
    letter-spacing: 3px;
    color: #6d8fbd
}

.sidebar-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 11px 0;
    border-top: 1px solid rgba(139, 190, 243, .17);
    color: #7f9eca;
    font-size: 10px
}

.sidebar-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #60e9a8;
    box-shadow: 0 0 12px #60e9a8
}

.sidebar-status b {
    margin-left: auto;
    color: #5b7eae;
    font-weight: 400
}

.main-content {
    position: relative;
    min-width: 0;
    padding: 0 38px 30px
}

.hero {
    position: relative;
    min-height: 478px;
    padding: 73px 0 0 58px;
    overflow: hidden
}

.hero-copy {
    position: relative;
    z-index: 2
}

.hero-kicker {
    margin: 0;
    color: #77a5d8;
    font-size: 10px;
    letter-spacing: 4.6px
}

.hero h1 {
    margin: 20px 0 19px;
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: clamp(55px, 5vw, 82px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 2px;
    text-shadow: 0 5px 25px rgba(0, 0, 0, .35)
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(105deg, #fff 10%, #62e8ff 76%, #4681ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.subtitle {
    margin: 0;
    color: #b4c8e5;
    font-size: 17px;
    letter-spacing: 2px
}

.hero-rule {
    width: 28px;
    height: 2px;
    margin-top: 28px;
    background: linear-gradient(90deg, #6be6ff, var(--coral))
}

.hero-tags {
    margin: 16px 0 0;
    color: #82a6d2;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 13px;
    letter-spacing: 2.5px
}

.hero-aside {
    position: absolute;
    z-index: 2;
    right: 6px;
    top: 34px;
    color: #adc9ec;
    font-size: 11px;
    line-height: 2;
    text-align: right;
    letter-spacing: 2px
}

.hero-aside>span {
    display: block;
    width: 22px;
    height: 1px;
    margin: 7px 0 0 auto;
    background: var(--coral)
}

.hero-aside small {
    display: block;
    margin-top: 90px;
    color: #8ea9cf;
    font-size: 11px;
    line-height: 1.8
}

.idea-card {
    position: relative;
    z-index: 3;
    min-height: 363px;
    padding: 42px 46px 22px;
    border: 1px solid rgba(140, 197, 251, .45);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(10, 29, 66, .9), rgba(4, 15, 39, .88));
    box-shadow: inset 0 1px 0 rgba(209, 242, 255, .12), 0 15px 38px rgba(0, 5, 24, .25);
    overflow: hidden
}

.idea-card:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -50px;
    bottom: -65px;
    width: 70%;
    height: 180px;
    background: radial-gradient(ellipse at 20% 100%, rgba(255, 130, 112, .48), transparent 61%), linear-gradient(160deg, transparent 40%, rgba(21, 74, 146, .45));
    transform: skewY(-8deg)
}

.card-index {
    position: absolute;
    right: 29px;
    top: 20px;
    color: #7997c4;
    font: 18px/1 Georgia, serif
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-position: -88px 0;
    filter: drop-shadow(0 0 13px rgba(255, 132, 113, .42))
}

.idea-card h2 {
    margin: 18px 0 8px;
    color: #f8fbff;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 1px
}

.idea-card h2 span {
    font-size: 28px;
    font-weight: 400
}

.card-copy {
    margin: 0;
    color: #abc3e2;
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: .3px
}

.input-wrap {
    position: relative;
    margin-top: 18px;
    max-width: 880px
}

.input-wrap textarea {
    width: 100%;
    height: 74px;
    resize: none;
    padding: 0;
    color: #eaf3ff;
    background: transparent;
    border: 0;
    outline: 0;
    line-height: 1.7;
    font-size: 14px
}

.input-wrap textarea::placeholder {
    color: #abc3e2;
    opacity: 1
}

.character-count {
    position: absolute;
    right: 0;
    bottom: 0;
    color: #6e8fbd;
    font-size: 10px
}

.input-error {
    margin: 0;
    color: #ffabb2;
    font-size: 11px
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 37px;
    padding: 8px 13px;
    border-radius: 19px;
    border: 1px solid rgba(131, 181, 236, .3);
    font-size: 12px;
    white-space: nowrap
}

.chip {
    background: rgba(25, 57, 104, .68);
    color: #d1e2f6
}

.ai-tag {
    cursor: default
}

.button-icon {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    color: #8ddcff
}

.dice-icon {
    font-size: 18px
}

.spark-small {
    font-size: 16px
}

.primary {
    margin-left: auto;
    color: #fff;
    background: linear-gradient(105deg, #397eff, #4d72fb 62%, #e57c83);
    border: 0;
    box-shadow: 0 8px 20px rgba(45, 126, 255, .25);
    font-weight: 600
}

.primary:hover {
    transform: translateY(-2px)
}

.primary:disabled {
    opacity: .74
}

.arrow {
    font-size: 18px;
    line-height: 1
}

.page-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 43px 20px 0;
    color: #7899c4
}

.page-footer>div>span {
    display: block;
    width: 27px;
    height: 2px;
    margin-bottom: 15px;
    background: var(--coral)
}

.page-footer b {
    display: block;
    color: #6dcbff;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 14px;
    font-weight: 500
}

.page-footer small {
    display: block;
    margin-top: 7px;
    color: #6d8fbf;
    font-size: 9px;
    letter-spacing: 3px
}

.page-footer p {
    margin: 0;
    text-align: right;
    color: #8aa5c9;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 1px
}

.toast {
    position: fixed;
    z-index: 10;
    bottom: 24px;
    left: 50%;
    padding: 11px 19px;
    border: 1px solid rgba(151, 215, 255, .3);
    border-radius: 10px;
    background: rgba(8, 29, 67, .96);
    box-shadow: 0 9px 30px rgba(0, 6, 28, .45);
    color: #d8eaff;
    font-size: 13px;
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: .25s;
    pointer-events: none
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0)
}

@media(max-width:980px) {
    .app-shell {
        grid-template-columns: 232px minmax(0, 1fr)
    }

    .main-content {
        padding-inline: 27px
    }

    .hero {
        padding-left: 35px
    }

    .hero h1 {
        font-size: 64px
    }

    .idea-card {
        padding-left: 30px;
        padding-right: 30px
    }
}

@media(max-width:760px) {
    .app-shell {
        display: block;
        padding: 12px 14px
    }

    .sidebar {
        position: relative;
        top: 0;
        height: auto;
        min-height: 0;
        border: 1px solid var(--line);
        border-radius: 17px;
        padding: 13px 14px
    }

    .navigation {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 16px;
        gap: 4px
    }

    .nav-item {
        padding: 9px 10px;
        font-size: 12px
    }

    .nav-item kbd,
    .nav-item:not(.active):disabled {
        display: none
    }

    .sidebar-quote,
    .sidebar-status {
        display: none
    }

    .main-content {
        padding: 0
    }

    .hero {
        min-height: 430px;
        padding: 38px 5px 24px
    }

    .hero h1 {
        font-size: clamp(48px, 12vw, 76px)
    }

    .hero-aside {
        display: none
    }

    .idea-card {
        min-height: 390px;
        padding: 34px 24px 23px
    }

    .page-footer {
        padding: 27px 7px 0
    }

    .page-footer p {
        display: none
    }
}

@media(max-width:520px) {
    .brand {
        padding: 0 4px
    }

    .hero-kicker {
        font-size: 9px;
        letter-spacing: 3px
    }

    .hero h1 {
        font-size: 47px
    }

    .subtitle {
        font-size: 14px
    }

    .hero-tags {
        font-size: 11px
    }

    .idea-card {
        padding-left: 20px;
        padding-right: 20px
    }

    .panel-actions {
        flex-wrap: wrap
    }

    .primary {
        margin-left: 0
    }

    .page-footer {
        padding-bottom: 10px
    }
}

/* Animations intentionally always run: the loading, copy and entrance feedback is part of the product experience. */

.icon-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden
}

.icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    filter: drop-shadow(0 0 12px rgba(99, 234, 255, .62))
}

.brand-mark .icon {
    width: 46px;
    height: 46px;
    fill: currentColor;
    stroke: none
}

.nav-icon .icon {
    width: 19px;
    height: 19px
}

.card-icon {
    display: block;
    width: 72px;
    height: 72px;
    border: 0;
    box-shadow: none;
    background-position: -72px 0;
    background-size: 216px 144px;
    filter: drop-shadow(0 0 14px rgba(255, 132, 113, .5))
}

.title-arrow {
    width: 24px;
    height: 24px;
    margin-left: 5px;
    vertical-align: -2px;
    color: #b9ddff
}

.button-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round
}

.primary .button-icon {
    width: 17px;
    height: 17px;
    color: #fff
}

/* Compact concept card: the blueprint card is intentionally omitted. */
.idea-card {
    width: 49%;
    margin-left: 2px
}

.card-icon {
    width: 88px;
    height: 88px;
    background-size: 264px 176px;
    background-position: -88px 0;
    filter: drop-shadow(0 0 15px rgba(255, 132, 113, .52))
}

.panel-actions {
    margin-top: 34px
}

.idea-card:after {
    right: -18px;
    bottom: -18px;
    width: 54%;
    height: 58%;
    background-image: linear-gradient(145deg, transparent 26%, rgba(8, 21, 47, .08)), url("assets/story-workbench-elements-sprite.png");
    background-size: 100% 100%, 792px 528px;
    background-position: center, -528px 0;
    background-repeat: no-repeat;
    opacity: .86;
    transform: none;
    mix-blend-mode: screen
}

@media(max-width:980px) {
    .idea-card {
        width: 56%
    }
}

@media(max-width:760px) {
    .idea-card {
        width: 100%;
        margin-left: 0
    }

    .panel-actions {
        margin-top: 30px
    }
}

/* Final visual alignment against story-workbench-concept-v2.png. */
.backdrop {
    z-index: 0;
    pointer-events: none
}

.app-shell {
    position: relative;
    z-index: 1
}

.hero h1 {
    font-size: 82px
}

.card-icon {
    width: 88px;
    height: 88px;
    background-size: 528px 352px;
    background-position: -220px -54px;
    filter: drop-shadow(0 0 15px rgba(255, 132, 113, .52))
}

@media(max-width:980px) {
    .hero h1 {
        font-size: 64px
    }
}

@media(max-width:760px) {
    .hero h1 {
        font-size: clamp(48px, 12vw, 76px)
    }
}

.backdrop {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0
}

.hero {
    padding-left: 26px
}

.hero h1 {
    font-size: 92px;
    margin: 30px 0 30px
}

.card-icon {
    width: 100px;
    height: 100px;
    margin-left: -10px;
    background-size: 594px 396px;
    background-position: -245px -60px
}

.idea-card h2 {
    margin-top: 10px
}

.panel-actions {
    margin-top: 43px
}

.idea-card:after {
    top: auto;
    right: -18px;
    bottom: -18px;
    width: 54%;
    height: 58%;
    opacity: .7;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%)
}

@media(max-width:980px) {
    .hero {
        padding-left: 35px
    }

    .hero h1 {
        font-size: 64px;
        margin: 20px 0 19px
    }
}

@media(max-width:760px) {
    .hero {
        padding-left: 5px
    }

    .hero h1 {
        font-size: 76px;
        margin: 20px 0 19px
    }

    .card-icon {
        width: 88px;
        height: 88px;
        margin-left: 0;
        background-size: 528px 352px;
        background-position: -220px -54px
    }

    .idea-card h2 {
        margin-top: 18px
    }

    .panel-actions {
        margin-top: 30px
    }
}

.sprite-logo {
    width: 48px;
    height: 48px;
    background-size: 211px 141px;
    background-position: -13px -13px;
    filter: drop-shadow(0 0 12px rgba(80, 217, 255, .55))
}

.brand-mark .icon {
    display: none
}

.sidebar-quote {
    padding-bottom: 17px
}

.sidebar-quote p {
    margin-top: 0
}

.hero-aside {
    top: 58px;
    right: 7px;
    width: 130px
}

.aside-vertical {
    font-size: 12px;
    line-height: 2.05;
    letter-spacing: 3px
}

.aside-vertical span {
    display: block;
    width: 22px;
    height: 1px;
    margin: 13px 0 0 auto;
    background: var(--coral)
}

.hero-aside small {
    margin-top: 69px;
    font-size: 11px;
    line-height: 1.7
}

.hero-aside b {
    display: block;
    margin-top: 72px;
    color: #48aaff;
    font: 400 9px/1.9 Georgia, serif;
    letter-spacing: 3px
}

.card-icon {
    transform: translateY(-10px)
}

.idea-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 30px
}

.title-arrow {
    margin-left: 14px
}

.card-copy {
    font-size: 16px;
    line-height: 1.65
}

.panel-actions {
    margin-top: 35px;
    gap: 10px
}

.button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px
}

.primary {
    margin-left: 0;
    color: #d1e2f6;
    background: rgba(25, 57, 104, .68);
    border: 1px solid rgba(131, 181, 236, .3);
    box-shadow: none;
    font-weight: 400
}

.primary:hover {
    transform: none;
    background: rgba(37, 75, 132, .74)
}

.primary .button-icon {
    color: #8ddcff
}

@media(max-width:760px) {
    .hero-aside {
        display: none
    }

    .card-icon {
        transform: none
    }

    .idea-card h2 {
        margin-top: 18px;
        margin-bottom: 8px;
        font-size: 27px
    }

    .card-copy {
        font-size: 14px
    }

    .button {
        font-size: 12px
    }
}

.idea-card:after {
    clip-path: polygon(40% 38%, 100% 24%, 100% 100%, 0 100%, 0 74%);
    mix-blend-mode: screen;
    opacity: .58
}

/* Generated gpt-image-2 sprite with keyed RGBA transparency. */
.sprite {
    background-image: url("assets/story-workbench-elements-sprite-transparent.png")
}

.creation-view {
    min-height: 100vh;
    padding: 62px 38px 48px 58px
}

.creation-view[hidden] {
    display: none
}

.creation-heading {
    position: relative;
    z-index: 2
}

.creation-heading h1 {
    margin: 20px 0 18px;
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: 82px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 2px;
    text-shadow: 0 5px 25px rgba(0, 0, 0, .35)
}

.creation-heading h1 em {
    font-style: normal;
    background: linear-gradient(105deg, #fff 10%, #62e8ff 76%, #4681ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.creation-layout {
    display: grid;
    grid-template-columns: minmax(420px, 550px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 46px
}

.creation-panel {
    position: relative;
    min-height: 390px;
    padding: 39px 42px;
    border: 1px solid rgba(140, 197, 251, .48);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(10, 29, 66, .9), rgba(4, 15, 39, .88));
    box-shadow: inset 0 1px 0 rgba(209, 242, 255, .12), 0 15px 38px rgba(0, 5, 24, .25);
    overflow: hidden
}

.creation-panel:after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse at 70% 90%, rgba(255, 130, 112, .36), transparent 66%);
    pointer-events: none
}

.creation-icon {
    width: 88px;
    height: 88px;
    background-size: 264px 176px;
    background-position: -176px -88px;
    filter: drop-shadow(0 0 14px rgba(99, 190, 255, .55))
}

.creation-label {
    margin: 19px 0 8px;
    color: #74dbff;
    font-size: 11px;
    letter-spacing: 2px
}

.creation-panel h2 {
    margin: 0 0 10px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 29px;
    letter-spacing: 1px
}

.creation-copy {
    max-width: 420px;
    margin: 0;
    color: #abc3e2;
    font-size: 15px;
    line-height: 1.9
}

.creation-button {
    margin-top: 30px
}

.creation-art {
    min-height: 390px;
    border: 1px solid rgba(99, 234, 255, .55);
    border-radius: 20px;
    background-image: linear-gradient(90deg, rgba(3, 13, 35, .12), rgba(3, 13, 35, .02)), url("assets/story-workbench-creation-reference.webp");
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 1px 0 rgba(209, 242, 255, .12), 0 15px 38px rgba(0, 5, 24, .25)
}

@media(max-width:980px) {
    .creation-view {
        padding-left: 35px;
        padding-right: 27px
    }

    .creation-layout {
        grid-template-columns: 1fr
    }

    .creation-art {
        min-height: 340px
    }

    .creation-heading h1 {
        font-size: 64px
    }
}

@media(max-width:760px) {
    .creation-view {
        padding: 38px 5px 30px
    }

    .creation-heading h1 {
        font-size: 56px
    }

    .creation-panel {
        padding: 30px 24px
    }

    .creation-layout {
        margin-top: 30px
    }

    .creation-art {
        min-height: 260px
    }
}

.nav-icon:before,
.nav-icon:after {
    display: none
}

.nav-icon .icon {
    display: block;
    width: 22px;
    height: 22px;
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round
}

.nav-item.active .nav-icon .icon {
    color: #07142f;
    stroke-width: 1.7
}

.creation-art {
    background-image: linear-gradient(90deg, rgba(3, 13, 35, .08), rgba(3, 13, 35, .02)), url("assets/story-workbench-hero.webp")
}

.creation-icon {
    background-size: 594px 396px;
    background-position: -450px -253px
}

.nav-item:focus {
    outline: none
}

.idea-card:after {
    background-image: url("assets/story-workbench-elements-sprite-transparent.png");
    background-size: 792px 528px;
    background-position: -528px 0;
    background-color: transparent
}

.creation-panel {
    min-height: 520px
}

.creation-art {
    min-height: 520px
}

.creation-input-label {
    display: block;
    margin-top: 22px;
    margin-bottom: 8px;
    color: #c7ddf5;
    font-size: 13px;
    letter-spacing: 1px
}

.creation-story-input {
    display: block;
    width: 100%;
    height: 118px;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid rgba(131, 181, 236, .35);
    border-radius: 12px;
    outline: none;
    background: rgba(3, 15, 39, .72);
    color: #eef7ff;
    font-size: 14px;
    line-height: 1.75
}

.creation-story-input::placeholder {
    color: #7897bf
}

.creation-story-input:focus {
    border-color: rgba(99, 234, 255, .85);
    box-shadow: 0 0 0 3px rgba(99, 234, 255, .1)
}

.creation-input-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: #7093be;
    font-size: 11px
}

.creation-button {
    margin-top: 21px
}

.creation-button.is-loading {
    opacity: .72;
    cursor: wait
}

.creation-error {
    margin: 10px 0 0;
    color: #ffabb2;
    font-size: 12px;
    line-height: 1.5
}

.creation-result {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(110, 211, 255, .42);
    border-radius: 12px;
    background: rgba(4, 24, 56, .78)
}

.creation-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #79ddff;
    font-size: 12px;
    letter-spacing: .6px
}

.creation-result-head button {
    border: 0;
    background: transparent;
    color: #b8d9fb;
    font-size: 12px
}

.creation-result-head button:hover {
    color: #fff
}

.creation-result p {
    margin: 10px 0 0;
    color: #dcecff;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap
}

@media(max-width:980px) {

    .creation-panel,
    .creation-art {
        min-height: 520px
    }
}

@media(max-width:760px) {
    .creation-panel {
        min-height: 0
    }

    .creation-art {
        min-height: 260px
    }

    .creation-story-input {
        height: 130px
    }
}

/* Keep the creation card icon clean while the generated film visual stays in the art panel. */
.creation-icon {
    background-size: 594px 396px;
    background-position: -56px -56px
}

/* Unreleased navigation stays quiet and grey; only working views use the cyan active state. */
.nav-item:not(.active):disabled {
    color: rgba(157, 174, 201, .48);
    opacity: .62
}

.nav-item:not(.active):disabled .nav-icon {
    color: rgba(139, 162, 194, .52)
}

.nav-item:disabled {
    display: none
}

.settings-view {
    min-height: 100vh;
    padding: 62px 38px 48px 58px
}

.settings-view[hidden] {
    display: none
}

.settings-heading {
    position: relative;
    z-index: 2
}

.settings-heading h1 {
    margin: 20px 0 18px;
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: 82px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 2px;
    text-shadow: 0 5px 25px rgba(0, 0, 0, .35)
}

.settings-heading h1 em {
    font-style: normal;
    background: linear-gradient(105deg, #fff 10%, #62e8ff 76%, #4681ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 1080px;
    margin-top: 50px
}

.settings-card {
    position: relative;
    min-height: 260px;
    padding: 36px 38px;
    border: 1px solid rgba(140, 197, 251, .42);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(10, 29, 66, .9), rgba(4, 15, 39, .88));
    box-shadow: inset 0 1px 0 rgba(209, 242, 255, .1), 0 15px 38px rgba(0, 5, 24, .2);
    overflow: hidden
}

.settings-card:after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 250px;
    height: 190px;
    background: radial-gradient(ellipse, rgba(45, 114, 216, .22), transparent 70%);
    pointer-events: none
}

.settings-card-index {
    position: absolute;
    right: 25px;
    top: 19px;
    color: #7997c4;
    font: 18px/1 Georgia, serif
}

.settings-card-title {
    display: flex;
    align-items: center;
    gap: 15px
}

.settings-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(99, 234, 255, .55);
    border-radius: 14px;
    background: rgba(27, 86, 160, .46);
    color: #70e7ff;
    font-size: 22px;
    box-shadow: 0 0 18px rgba(70, 191, 255, .2)
}

.settings-card h2 {
    margin: 0;
    color: #f8fbff;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 24px;
    letter-spacing: 1px
}

.settings-card-title p {
    margin: 5px 0 0;
    color: #8eafd5;
    font-size: 12px
}

.settings-label {
    display: block;
    margin: 29px 0 8px;
    color: #9fc4e8;
    font-size: 12px;
    letter-spacing: 1px
}

.settings-secret {
    display: flex;
    gap: 9px
}

.settings-secret input {
    min-width: 0;
    flex: 1;
    height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(131, 181, 236, .3);
    border-radius: 9px;
    background: rgba(3, 15, 39, .72);
    color: #dcecff;
    font: 13px/40px Consolas, monospace
}

.settings-action {
    height: 40px;
    padding: 0 17px;
    border: 1px solid rgba(131, 181, 236, .34);
    border-radius: 9px;
    background: rgba(25, 57, 104, .68);
    color: #cfe5ff;
    font-size: 12px
}

.settings-hint {
    margin: 12px 0 0;
    color: #6f92be;
    font-size: 11px;
    line-height: 1.6
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 37px;
    padding: 17px 0;
    border-top: 1px solid rgba(139, 190, 243, .16);
    border-bottom: 1px solid rgba(139, 190, 243, .16)
}

.settings-toggle-row strong {
    display: block;
    color: #e5f2ff;
    font-size: 14px;
    font-weight: 500
}

.settings-toggle-row small {
    display: block;
    margin-top: 6px;
    color: #7899c4;
    font-size: 11px
}

.toggle {
    position: relative;
    display: block;
    width: 48px;
    height: 27px;
    flex: none
}

.toggle input {
    position: absolute;
    opacity: 0
}

.toggle span {
    display: block;
    width: 48px;
    height: 27px;
    border-radius: 20px;
    background: #294568;
    box-shadow: inset 0 0 0 1px rgba(165, 207, 248, .32);
    transition: .2s
}

.toggle span:after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #a4bedc;
    transition: .2s
}

.toggle input:checked+span {
    background: linear-gradient(100deg, #2387e8, #5ce8e1);
    box-shadow: 0 0 15px rgba(77, 205, 255, .35)
}

.toggle input:checked+span:after {
    left: 25px;
    background: #fff
}

@media(max-width:980px) {
    .settings-view {
        padding-left: 35px;
        padding-right: 27px
    }

    .settings-heading h1 {
        font-size: 64px
    }

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

@media(max-width:760px) {
    .settings-view {
        padding: 38px 5px 30px
    }

    .settings-heading h1 {
        font-size: 56px
    }

    .settings-card {
        padding: 30px 24px
    }
}

/* The right creation panel changes from reference art to loading and then to the generated prompt. */
.creation-output {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(99, 234, 255, .55);
    border-radius: 20px;
    background: rgba(4, 16, 41, .86);
    box-shadow: inset 0 1px 0 rgba(209, 242, 255, .12), 0 15px 38px rgba(0, 5, 24, .25);
    overflow: hidden
}

.creation-art {
    position: absolute;
    inset: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: filter .35s ease, transform .35s ease
}

.creation-output.is-loading .creation-art {
    filter: blur(4px) brightness(.42);
    transform: scale(1.045)
}

.creation-output.has-result {
    background: linear-gradient(145deg, rgba(9, 34, 77, .94), rgba(10, 22, 53, .96) 63%, rgba(83, 45, 72, .9))
}

.creation-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 11px;
    padding: 32px;
    text-align: center;
    background: linear-gradient(145deg, rgba(4, 21, 53, .78), rgba(7, 11, 31, .69));
    backdrop-filter: blur(2px)
}

.creation-loading[hidden],
.creation-result[hidden] {
    display: none
}

.creation-loading strong {
    color: #f1f8ff;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 20px;
    letter-spacing: 1px
}

.creation-loading small {
    color: #9db9dd;
    font-size: 12px;
    letter-spacing: .7px
}

.loading-orbit {
    position: relative;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(107, 226, 255, .48);
    border-radius: 50%;
    box-shadow: 0 0 26px rgba(62, 184, 255, .35), inset 0 0 18px rgba(62, 184, 255, .17);
    animation: creation-spin 2.2s linear infinite
}

.loading-orbit:before,
.loading-orbit:after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 143, 134, .55);
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(34deg)
}

.loading-orbit:after {
    inset: 20px;
    border-color: rgba(118, 232, 255, .84);
    border-right-color: transparent;
    transform: rotate(-57deg)
}

.loading-orbit i {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7deaff;
    box-shadow: 0 0 10px #7deaff
}

.loading-orbit i:nth-child(1) {
    top: -3px;
    left: 31px
}

.loading-orbit i:nth-child(2) {
    right: 3px;
    bottom: 15px;
    background: #ff9b91;
    box-shadow: 0 0 10px #ff9b91
}

.loading-orbit i:nth-child(3) {
    left: 7px;
    bottom: 10px
}

.loading-bar {
    width: min(220px, 80%);
    height: 3px;
    margin-top: 7px;
    border-radius: 3px;
    background: rgba(137, 184, 231, .18);
    overflow: hidden
}

.loading-bar i {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #57dfff, #ff958d);
    box-shadow: 0 0 12px rgba(92, 221, 255, .7);
    animation: creation-loading-bar 1.35s ease-in-out infinite
}

.creation-result {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 29px 31px;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: linear-gradient(145deg, rgba(9, 31, 72, .2), rgba(10, 21, 51, .25) 64%, rgba(83, 45, 72, .18))
}

.creation-result-head {
    font-size: 13px
}

.creation-result p {
    max-width: 620px;
    margin-top: 19px;
    font-size: 14px;
    line-height: 1.95
}

@keyframes creation-spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes creation-loading-bar {
    0% {
        transform: translateX(-115%)
    }

    50% {
        transform: translateX(170%)
    }

    100% {
        transform: translateX(300%)
    }
}

@media(max-width:980px) {
    .creation-output {
        min-height: 520px
    }
}

@media(max-width:760px) {
    .creation-output {
        min-height: 300px
    }

    .creation-loading {
        padding: 24px
    }

    .creation-loading strong {
        font-size: 18px
    }

    .creation-result {
        padding: 24px 22px
    }
}

/* Single-workspace layout: the app stays on one creation screen and settings open in a modal. */
.single-shell {
    position: relative;
    z-index: 1;
    width: min(1440px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 26px 42px 34px
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px
}

.topbar .brand {
    padding: 0;
    gap: 13px
}

.topbar .brand strong {
    font-size: 20px
}

.topbar .brand small {
    font-size: 10px
}

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

.engine-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #86a7d0;
    font-size: 11px
}

.engine-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #60e9a8;
    box-shadow: 0 0 12px #60e9a8
}

.engine-status b {
    color: #5b7eae;
    font-weight: 400
}

.settings-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(131, 181, 236, .32);
    border-radius: 10px;
    background: rgba(7, 27, 63, .56);
    color: #c6dcf5;
    font-size: 12px;
    transition: .2s
}

.settings-trigger:hover {
    border-color: rgba(99, 234, 255, .8);
    background: rgba(22, 68, 127, .65);
    color: #fff
}

.settings-trigger .icon {
    width: 18px;
    height: 18px;
    color: #7de8ff
}

.single-main {
    position: relative;
    min-width: 0
}

.single-creation {
    min-height: 0;
    padding: 60px 0 0
}

.single-creation .creation-heading {
    padding-left: 28px
}

.single-creation .creation-heading h1 {
    font-size: 82px
}

.single-creation .creation-layout {
    max-width: 1220px;
    margin: 52px auto 0
}

.single-creation .creation-panel,
.single-creation .creation-output {
    min-height: 500px
}

.single-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 35px 28px 0;
    color: #7899c4
}

.single-footer>div>span {
    display: block;
    width: 27px;
    height: 2px;
    margin-bottom: 15px;
    background: var(--coral)
}

.single-footer b {
    display: block;
    color: #6dcbff;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 14px;
    font-weight: 500
}

.single-footer small {
    display: block;
    margin-top: 7px;
    color: #6d8fbf;
    font-size: 9px;
    letter-spacing: 3px
}

.single-footer p {
    margin: 0;
    text-align: right;
    color: #8aa5c9;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 1px
}

.settings-modal[hidden] {
    display: none
}

.settings-modal {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px
}

.settings-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(1, 8, 24, .7);
    backdrop-filter: blur(9px)
}

.settings-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    padding: 30px 32px 26px;
    border: 1px solid rgba(140, 197, 251, .52);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(8, 27, 63, .98), rgba(4, 13, 35, .98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(209, 242, 255, .13)
}

.settings-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px
}

.settings-dialog-head h2 {
    margin: 13px 0 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 32px;
    letter-spacing: 2px
}

.settings-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(131, 181, 236, .3);
    border-radius: 10px;
    background: rgba(24, 60, 112, .5);
    color: #bcd7f5
}

.settings-close:hover {
    color: #fff;
    border-color: var(--cyan)
}

.settings-close .icon {
    width: 19px;
    height: 19px
}

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

.settings-modal-grid .settings-card {
    min-height: 245px;
    padding: 28px 25px
}

.settings-modal-grid .settings-card-title {
    gap: 11px
}

.settings-modal-grid .settings-card h2 {
    font-size: 21px
}

.settings-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px
}

.settings-cancel,
.settings-save {
    height: 40px;
    padding: 0 19px;
    border-radius: 9px;
    font-size: 12px
}

.settings-cancel {
    border: 1px solid rgba(131, 181, 236, .3);
    background: transparent;
    color: #afc8e5
}

.settings-save {
    border: 0;
    background: linear-gradient(105deg, #397eff, #4d72fb 62%, #e57c83);
    color: #fff;
    box-shadow: 0 7px 19px rgba(45, 126, 255, .25)
}

.settings-save:hover {
    transform: translateY(-1px)
}

body.modal-open {
    overflow: hidden
}

@media(max-width:980px) {
    .single-shell {
        padding: 24px 27px 30px
    }

    .single-creation {
        padding-top: 42px
    }

    .single-creation .creation-heading {
        padding-left: 8px
    }

    .single-creation .creation-heading h1 {
        font-size: 64px
    }

    .single-creation .creation-layout {
        margin-top: 38px
    }
}

@media(max-width:760px) {
    .single-shell {
        padding: 15px 16px 25px
    }

    .topbar {
        min-height: 54px
    }

    .topbar .brand strong {
        font-size: 18px
    }

    .topbar .brand small {
        font-size: 9px
    }

    .engine-status {
        display: none
    }

    .settings-trigger {
        padding: 9px 10px
    }

    .single-creation {
        padding-top: 37px
    }

    .single-creation .creation-heading {
        padding-left: 4px
    }

    .single-creation .creation-heading h1 {
        font-size: 53px
    }

    .single-creation .creation-layout {
        margin-top: 30px
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        min-height: 0
    }

    .single-footer {
        padding: 27px 4px 0
    }

    .single-footer p {
        display: none
    }

    .settings-modal {
        padding: 14px
    }

    .settings-dialog {
        padding: 25px 19px 20px;
        max-height: calc(100vh - 28px)
    }

    .settings-modal-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .settings-modal-grid .settings-card {
        min-height: 0;
        padding: 23px 20px
    }

    .settings-dialog-head {
        margin-bottom: 18px
    }

    .settings-dialog-head h2 {
        font-size: 28px
    }
}

/* Enterprise visual pass: calm surfaces, clearer hierarchy and a restrained product-workbench finish. */
:root {
    --cyan: #8ee9ff;
    --coral: #ff9389;
    --line: rgba(151, 202, 242, .25)
}

body {
    background: #040b18;
    color: #f5f8ff
}

.backdrop {
    background-image: linear-gradient(180deg, rgba(3, 11, 26, .86), rgba(3, 10, 24, .94)), linear-gradient(90deg, rgba(3, 11, 26, .78), rgba(3, 11, 26, .56) 48%, rgba(3, 11, 26, .76)), url("assets/story-workbench-bg-reference.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #040b18
}

.backdrop:after {
    background: radial-gradient(circle at 74% 13%, rgba(35, 122, 217, .16), transparent 31%), linear-gradient(180deg, transparent 46%, rgba(2, 7, 18, .74) 100%);
    opacity: .9
}

.single-shell {
    width: min(1480px, 100%);
    padding: 24px 48px 34px
}

.topbar {
    min-height: 66px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(151, 202, 242, .18)
}

.topbar .brand {
    gap: 12px
}

.topbar .brand strong {
    font-size: 21px;
    letter-spacing: .6px
}

.topbar .brand small {
    margin-top: 4px;
    color: #89a4c9
}

.topbar-actions {
    gap: 17px
}

.engine-status {
    color: #9ab3d3;
    font-size: 11px
}

.engine-status b {
    color: #6f8bae
}

.settings-trigger {
    padding: 10px 15px;
    border-color: rgba(150, 204, 247, .3);
    border-radius: 10px;
    background: rgba(10, 31, 62, .56);
    color: #d6e7fa;
    box-shadow: inset 0 1px 0 rgba(231, 248, 255, .06)
}

.settings-trigger:hover {
    border-color: rgba(142, 233, 255, .75);
    background: rgba(20, 61, 112, .72)
}

.single-creation {
    padding-top: 55px
}

.single-creation .creation-heading {
    padding-left: 34px
}

.hero-kicker {
    color: #8ab4dd;
    letter-spacing: 4px;
    font-size: 10px
}

.single-creation .creation-heading h1 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .2em;
    margin: 18px 0 14px;
    font-size: clamp(52px, 5.35vw, 80px);
    line-height: 1.08;
    letter-spacing: 1px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, .32)
}

.single-creation .creation-heading h1 em {
    white-space: nowrap
}

.subtitle {
    color: #b8cae1;
    font-size: 16px;
    letter-spacing: 1.4px
}

.hero-rule {
    width: 32px;
    height: 2px;
    margin-top: 25px;
    background: linear-gradient(90deg, var(--cyan), var(--coral))
}

.single-creation .creation-layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.16fr);
    gap: 18px;
    max-width: 1340px;
    margin: 44px auto 0
}

.single-creation .creation-panel,
.single-creation .creation-output {
    min-height: 566px
}

.creation-panel,
.creation-output {
    border-radius: 16px;
    border-color: rgba(150, 204, 247, .34);
    box-shadow: inset 0 1px 0 rgba(231, 248, 255, .1), 0 20px 52px rgba(0, 4, 18, .28);
    backdrop-filter: blur(10px)
}

.creation-panel {
    padding: 38px 34px 32px;
    background: linear-gradient(145deg, rgba(12, 32, 65, .91), rgba(4, 15, 35, .93))
}

.creation-panel:after {
    right: -12%;
    bottom: -18%;
    width: 65%;
    height: 55%;
    background: radial-gradient(ellipse at 70% 90%, rgba(65, 124, 225, .2), transparent 68%)
}

.card-index {
    top: 22px;
    right: 26px;
    color: #8ea9cc;
    font-size: 16px
}

.creation-icon {
    width: 82px;
    height: 82px;
    filter: drop-shadow(0 0 17px rgba(99, 190, 255, .42))
}

.creation-label {
    margin: 18px 0 8px;
    color: #70d9f6;
    font-size: 11px;
    letter-spacing: 1.8px
}

.creation-panel h2 {
    margin: 0 0 11px;
    font-size: 28px;
    letter-spacing: .6px
}

.creation-input-label {
    margin-top: 24px;
    color: #b2c9e4;
    font-size: 12px;
    letter-spacing: .8px
}

.creation-story-input {
    height: 132px;
    padding: 15px 16px;
    border-color: rgba(144, 195, 240, .34);
    border-radius: 11px;
    background: rgba(2, 12, 29, .56);
    color: #eef7ff;
    font-size: 14px;
    line-height: 1.75;
    box-shadow: inset 0 1px 7px rgba(0, 0, 0, .12)
}

.creation-story-input:focus {
    border-color: rgba(142, 233, 255, .82);
    box-shadow: 0 0 0 3px rgba(142, 233, 255, .1), inset 0 1px 7px rgba(0, 0, 0, .12)
}

.creation-input-meta {
    margin-top: 8px;
    color: #7997ba;
    font-size: 11px
}

.creation-button {
    height: 45px;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 9px 22px rgba(43, 122, 240, .2)
}

.creation-output {
    background: rgba(4, 15, 35, .84)
}

.creation-art {
    background-image: linear-gradient(180deg, rgba(3, 13, 35, .04), rgba(3, 13, 35, .18)), url("assets/story-workbench-hero.webp");
    background-position: center;
    background-size: cover;
    opacity: .96
}

.creation-output.has-result {
    background: linear-gradient(145deg, rgba(9, 29, 61, .95), rgba(5, 16, 37, .97))
}

.creation-result {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) 188px;
    gap: 16px;
    padding: 27px 29px 24px;
    background: linear-gradient(145deg, rgba(9, 31, 72, .12), rgba(6, 18, 42, .24));
    overflow: hidden
}

.creation-result-head {
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(145, 204, 243, .18);
    color: #80e2ff;
    font-size: 13px;
    letter-spacing: .5px
}

.creation-result-head button {
    padding: 6px 10px;
    border: 1px solid rgba(146, 202, 240, .26);
    border-radius: 7px;
    background: rgba(24, 61, 110, .48);
    color: #c1d9f1;
    font-size: 11px
}

.creation-result-head button:hover {
    border-color: rgba(142, 233, 255, .72);
    color: #fff;
    background: rgba(28, 85, 143, .64)
}

.creation-result p {
    max-width: none;
    margin: 0;
    overflow: auto;
    padding-right: 6px;
    color: #d9e9fa;
    font-size: 13px;
    line-height: 1.9
}

.creation-loading {
    background: linear-gradient(145deg, rgba(4, 19, 46, .84), rgba(4, 10, 26, .84));
    backdrop-filter: blur(4px)
}

.creation-loading strong {
    font-size: 19px
}

.creation-loading small {
    color: #a3bbd8
}

.single-footer {
    padding: 34px 34px 0;
    color: #7c9bc1
}

.single-footer b {
    color: #8adbf4
}

.single-footer p {
    color: #8ea8c9
}

.settings-dialog {
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(9, 28, 61, .98), rgba(3, 12, 28, .98));
    box-shadow: 0 28px 85px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(231, 248, 255, .12)
}

@media(max-width:980px) {
    .single-shell {
        padding-inline: 30px
    }

    .single-creation {
        padding-top: 44px
    }

    .single-creation .creation-heading {
        padding-left: 18px
    }

    .single-creation .creation-heading h1 {
        font-size: 64px
    }

    .single-creation .creation-layout {
        margin-top: 36px
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        min-height: 520px
    }
}

@media(max-width:760px) {
    .single-shell {
        padding: 15px 16px 25px
    }

    .topbar {
        min-height: 54px;
        padding-bottom: 11px
    }

    .single-creation {
        padding-top: 36px
    }

    .single-creation .creation-heading {
        padding-left: 4px
    }

    .single-creation .creation-heading h1 {
        display: block;
        font-size: clamp(45px, 13vw, 60px);
        line-height: 1.12
    }

    .single-creation .creation-heading h1 em {
        display: block;
        margin-top: 2px
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.7
    }

    .single-creation .creation-layout {
        margin-top: 29px
    }

    .single-creation .creation-panel {
        padding: 30px 24px 26px
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        min-height: 0
    }

    .creation-story-input {
        height: 136px
    }

    .creation-output {
        min-height: 380px !important
    }

    .creation-result {
        grid-template-rows: auto minmax(0, 1fr) 150px;
        padding: 23px 21px 20px;
        gap: 12px
    }

    .single-footer {
        padding: 27px 4px 0
    }
}

/* Selected direction: bright enterprise editorial. */
:root {
    --cyan: #168fe9;
    --coral: #ff8c7f;
    --line: rgba(38, 104, 176, .2)
}

body {
    background: #f4f8fd;
    color: #102a4e
}

.backdrop {
    background-image: linear-gradient(118deg, rgba(255, 255, 255, .97) 0%, rgba(247, 251, 255, .94) 45%, rgba(236, 246, 255, .91) 100%), url("assets/story-workbench-bg-reference.webp");
    background-position: center top;
    background-size: cover;
    background-color: #f4f8fd
}

.backdrop:after {
    background: radial-gradient(circle at 70% 14%, rgba(84, 177, 255, .16), transparent 32%), radial-gradient(circle at 14% 68%, rgba(137, 198, 255, .13), transparent 29%), linear-gradient(180deg, transparent 58%, rgba(231, 242, 252, .7));
    opacity: 1
}

.single-shell {
    width: min(1600px, 100%);
    padding: 30px 60px 42px
}

.topbar {
    min-height: 68px;
    padding: 0 4px 18px;
    border-bottom: 1px solid rgba(39, 95, 155, .16)
}

.topbar .brand strong {
    color: #102d57;
    font-size: 22px
}

.topbar .brand small {
    color: #758baa;
    font-size: 10px
}

.brand-mark {
    filter: drop-shadow(0 5px 12px rgba(22, 143, 233, .24))
}

.engine-status {
    color: #7188a7;
    font-size: 11px
}

.engine-status i {
    background: #19c998;
    box-shadow: 0 0 10px rgba(25, 201, 152, .42)
}

.engine-status b {
    color: #8094ae
}

.settings-trigger {
    padding: 10px 17px;
    border: 1px solid rgba(34, 115, 204, .25);
    border-radius: 10px;
    background: rgba(255, 255, 255, .74);
    color: #234c7d;
    box-shadow: 0 7px 20px rgba(36, 91, 150, .06), inset 0 1px 0 #fff
}

.settings-trigger .icon {
    color: #167ed6
}

.settings-trigger:hover {
    border-color: rgba(22, 126, 214, .54);
    background: #fff;
    color: #0d5dab;
    box-shadow: 0 10px 24px rgba(36, 91, 150, .1)
}

.single-main:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 18px;
    right: 1%;
    width: 58%;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 44%, rgba(101, 183, 255, .17), rgba(193, 224, 248, .08) 45%, transparent 72%);
    filter: blur(3px);
    pointer-events: none
}

.single-creation {
    padding-top: 68px
}

.single-creation .creation-heading {
    padding-left: 42px
}

.hero-kicker {
    color: #487bb8;
    font-size: 10px;
    letter-spacing: 4.5px
}

.single-creation .creation-heading h1 {
    gap: .2em;
    margin: 18px 0 15px;
    color: #102a50;
    font-size: clamp(58px, 5.55vw, 86px);
    line-height: 1.05;
    letter-spacing: .5px;
    text-shadow: none
}

.single-creation .creation-heading h1 em {
    background: linear-gradient(105deg, #1b55d8 3%, #108fee 52%, #1fc9d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.subtitle {
    color: #627b9a;
    font-size: 17px;
    letter-spacing: 1.2px
}

.hero-rule {
    width: 46px;
    height: 2px;
    margin-top: 25px;
    background: linear-gradient(90deg, #1b79ed 0 48%, transparent 48% 59%, #ff8c7f 59%)
}

.single-creation .creation-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
    gap: 22px;
    max-width: 1460px;
    margin: 50px auto 0
}

.single-creation .creation-panel,
.single-creation .creation-output {
    min-height: 590px
}

.creation-panel,
.creation-output {
    border: 1px solid rgba(38, 114, 194, .22);
    border-radius: 18px;
    box-shadow: 0 24px 68px rgba(41, 88, 135, .1), inset 0 1px 0 rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px)
}

.creation-panel {
    padding: 42px 40px 38px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(247, 251, 255, .91))
}

.creation-panel:after {
    right: -8%;
    bottom: -25%;
    width: 72%;
    height: 58%;
    background: radial-gradient(ellipse at 68% 90%, rgba(255, 176, 143, .16), rgba(144, 211, 255, .1) 38%, transparent 70%)
}

.card-index {
    top: 25px;
    right: 29px;
    color: #4979b9;
    font-size: 16px
}

.creation-icon {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 10px 20px rgba(43, 137, 224, .2))
}

.creation-label {
    margin: 21px 0 0;
    color: #156fd4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px
}

.creation-input-label {
    margin-top: 38px;
    margin-bottom: 10px;
    color: #496688;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px
}

.creation-story-input {
    height: 180px;
    padding: 18px 19px;
    border: 1px solid rgba(56, 111, 172, .3);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    color: #173557;
    font-size: 14px;
    line-height: 1.8;
    box-shadow: inset 0 2px 8px rgba(39, 92, 145, .04)
}

.creation-story-input::placeholder {
    color: #7890ac
}

.creation-story-input:focus {
    border-color: rgba(22, 126, 214, .65);
    box-shadow: 0 0 0 4px rgba(22, 143, 233, .09), inset 0 2px 8px rgba(39, 92, 145, .04)
}

.creation-input-meta {
    margin-top: 9px;
    color: #8195ad;
    font-size: 11px
}

.creation-button {
    height: 48px;
    margin-top: 24px;
    padding: 0 21px;
    border-radius: 11px;
    background: linear-gradient(105deg, #1766e6, #1f9af0 62%, #22bfd2);
    box-shadow: 0 12px 26px rgba(24, 117, 223, .24);
    font-size: 13px
}

.creation-button:hover {
    box-shadow: 0 15px 31px rgba(24, 117, 223, .3)
}

.creation-error {
    color: #c74956
}

.creation-output {
    background: rgba(255, 255, 255, .84)
}

.creation-art {
    background-image: linear-gradient(180deg, rgba(238, 247, 255, .02), rgba(25, 71, 125, .08)), url("assets/story-workbench-hero.webp");
    background-position: center;
    background-size: cover;
    opacity: .96
}

.creation-output.has-result {
    background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(242, 249, 255, .95))
}

.creation-result {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 22px;
    padding: 36px 38px;
    background: radial-gradient(circle at 100% 100%, rgba(96, 189, 255, .12), transparent 38%), linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 251, 255, .96));
    overflow: hidden
}

.creation-result-head {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(44, 108, 173, .16);
    color: #126bc8;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px
}

.creation-result-head button {
    padding: 7px 12px;
    border: 1px solid rgba(37, 119, 203, .2);
    border-radius: 8px;
    background: #edf6ff;
    color: #176abb;
    font-size: 12px
}

.creation-result-head button:hover {
    border-color: rgba(22, 126, 214, .5);
    background: #e3f1ff;
    color: #0f5da8
}

.creation-result p {
    max-width: none;
    margin: 0;
    overflow: auto;
    padding: 2px 12px 6px 0;
    color: #244362;
    font-size: 14px;
    line-height: 2.05
}

.creation-result-art {
    display: none
}

.creation-output.is-loading .creation-art {
    filter: blur(5px) brightness(.86);
    transform: scale(1.035)
}

.creation-loading {
    background: rgba(246, 251, 255, .86);
    color: #173557;
    backdrop-filter: blur(8px)
}

.creation-loading strong {
    color: #143d68;
    font-size: 20px
}

.creation-loading small {
    color: #7189a4
}

.loading-orbit {
    border-color: rgba(22, 143, 233, .35);
    box-shadow: 0 0 28px rgba(22, 143, 233, .18), inset 0 0 18px rgba(22, 143, 233, .1)
}

.loading-orbit:before {
    border-color: rgba(255, 140, 127, .58);
    border-left-color: transparent
}

.loading-orbit:after {
    border-color: rgba(22, 143, 233, .7);
    border-right-color: transparent
}

.loading-orbit i {
    background: #168fe9;
    box-shadow: 0 0 10px rgba(22, 143, 233, .7)
}

.loading-bar {
    background: rgba(46, 112, 179, .13)
}

.loading-bar i {
    background: linear-gradient(90deg, #1766e6, #1fc9d9);
    box-shadow: 0 0 10px rgba(22, 143, 233, .4)
}

.single-footer {
    padding: 42px 42px 0;
    color: #7f94ad
}

.single-footer>div>span {
    background: linear-gradient(90deg, #1979e7 0 48%, #ff8c7f 48%)
}

.single-footer b {
    color: #47789f
}

.single-footer small {
    color: #8295aa
}

.single-footer p {
    color: #7890aa
}

.settings-backdrop {
    background: rgba(31, 55, 82, .28);
    backdrop-filter: blur(10px)
}

.settings-dialog {
    border: 1px solid rgba(38, 114, 194, .22);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(245, 250, 255, .99));
    box-shadow: 0 28px 90px rgba(31, 67, 104, .24), inset 0 1px 0 #fff;
    color: #173557
}

.settings-dialog-head h2 {
    color: #122f54
}

.settings-close {
    border-color: rgba(38, 114, 194, .2);
    background: #eef6ff;
    color: #3570aa
}

.settings-close:hover {
    border-color: #168fe9;
    color: #0e66b4
}

.settings-modal-grid .settings-card {
    border-color: rgba(38, 114, 194, .2);
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 14px 35px rgba(41, 88, 135, .07), inset 0 1px 0 #fff
}

.settings-card:after {
    background: radial-gradient(ellipse, rgba(69, 165, 242, .1), transparent 70%)
}

.settings-card h2 {
    color: #183b63
}

.settings-card-title p {
    color: #758ba4
}

.settings-card-icon {
    border-color: rgba(22, 143, 233, .35);
    background: #eaf5ff;
    color: #1687dd;
    box-shadow: none
}

.settings-card-index {
    color: #6e8fb3
}

.settings-label {
    color: #4b6888
}

.settings-secret input {
    border-color: rgba(45, 105, 166, .25);
    background: #fff;
    color: #173557
}

.settings-action {
    border-color: rgba(45, 105, 166, .25);
    background: #edf6ff;
    color: #29699f
}

.settings-toggle-row {
    border-color: rgba(45, 105, 166, .13)
}

.settings-toggle-row strong {
    color: #234464
}

.settings-cancel {
    border-color: rgba(45, 105, 166, .25);
    color: #577390
}

.settings-save {
    background: linear-gradient(105deg, #1766e6, #1f9af0);
    box-shadow: 0 8px 20px rgba(24, 117, 223, .2)
}

.toast {
    border-color: rgba(38, 114, 194, .2);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 34px rgba(31, 67, 104, .18);
    color: #21486e
}

@media(max-width:1080px) {
    .single-shell {
        padding-inline: 34px
    }

    .single-creation .creation-heading {
        padding-left: 16px
    }

    .single-creation .creation-layout {
        grid-template-columns: 1fr;
        margin-top: 40px
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        min-height: 540px
    }
}

@media(max-width:760px) {
    .single-shell {
        padding: 15px 16px 25px
    }

    .single-creation {
        padding-top: 40px
    }

    .single-creation .creation-heading {
        padding-left: 4px
    }

    .single-creation .creation-heading h1 {
        font-size: clamp(46px, 13vw, 61px)
    }

    .single-creation .creation-panel {
        padding: 31px 24px 27px
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        min-height: 0
    }

    .creation-icon {
        width: 78px;
        height: 78px
    }

    .creation-input-label {
        margin-top: 31px
    }

    .creation-story-input {
        height: 150px
    }

    .creation-output {
        min-height: 380px !important
    }

    .creation-result {
        grid-template-rows: auto minmax(0, 1fr);
        padding: 25px 22px
    }

    .single-footer {
        padding: 29px 4px 0
    }
}

/* Editorial reference alignment: wide hero, two-line title, and centered cards. */
.backdrop {
    background-image: url("assets/story-workbench-editorial-background.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #fbfdff
}

.backdrop:after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(245, 250, 255, .2) 66%, rgba(232, 243, 253, .64));
    opacity: 1
}

.single-shell {
    width: min(1540px, 100%);
    padding: 28px 42px 40px
}

.topbar {
    padding-inline: 36px
}

.single-main:before {
    display: none
}

.single-creation {
    padding-top: 53px
}

.single-creation .creation-heading {
    padding-left: 34px
}

.single-creation .creation-heading h1 {
    display: block;
    margin: 17px 0 14px;
    font-size: clamp(58px, 5.15vw, 79px);
    line-height: 1.03;
    letter-spacing: 0
}

.single-creation .creation-heading h1 em {
    display: block;
    margin-top: 3px
}

.single-creation .creation-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.06fr);
    gap: 22px;
    max-width: 1340px;
    margin: 43px auto 0
}

.single-creation .creation-panel,
.single-creation .creation-output {
    min-height: 508px
}

.creation-panel {
    padding: 35px 40px 32px
}

.creation-icon {
    width: 86px;
    height: 86px
}

.creation-label {
    margin-top: 18px
}

.creation-input-label {
    margin-top: 31px
}

.creation-story-input {
    height: 120px
}

.creation-button {
    margin-top: 22px
}

.creation-art {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(222, 240, 252, .2)), url("assets/story-workbench-hero.webp");
    background-position: 65% 16%;
    background-size: cover;
    opacity: 1
}

.creation-output {
    background: rgba(255, 255, 255, .86)
}

.creation-result {
    padding: 31px 36px
}

@media(max-width:1080px) {
    .single-shell {
        padding-inline: 30px
    }

    .topbar {
        padding-inline: 20px
    }

    .single-creation .creation-heading {
        padding-left: 16px
    }

    .single-creation .creation-layout {
        max-width: 100%;
        margin-top: 40px
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        min-height: 520px
    }
}

@media(max-width:760px) {
    .single-shell {
        padding: 15px 16px 25px
    }

    .topbar {
        padding-inline: 0
    }

    .single-creation {
        padding-top: 40px
    }

    .single-creation .creation-heading {
        padding-left: 4px
    }

    .single-creation .creation-heading h1 {
        font-size: clamp(46px, 13vw, 61px)
    }

    .single-creation .creation-heading h1 em {
        margin-top: 2px
    }

    .single-creation .creation-panel {
        padding: 31px 24px 27px
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        min-height: 0
    }

    .creation-story-input {
        height: 150px
    }
}

@media(min-width:1081px) {
    .single-creation .creation-heading {
        padding-left: 70px
    }

    .single-creation .creation-layout {
        max-width: 1255px;
        margin-left: 70px;
        margin-right: auto
    }
}

.creation-button {
    color: #fff;
    background: linear-gradient(105deg, #1766e6, #1f9af0 62%, #22bfd2);
    border: 0;
    font-weight: 600
}

.creation-button .button-icon {
    color: #fff
}

.creation-icon {
    display: block;
    object-fit: cover;
    border-radius: 18px;
    background: none;
    box-shadow: 0 10px 24px rgba(22, 126, 214, .18);
    filter: none
}

.settings-modal-grid {
    grid-template-columns: 1fr
}

.settings-modal-grid .settings-card {
    min-height: 230px
}

.brand-mark {
    object-fit: cover;
    border-radius: 12px;
    background: none;
    box-shadow: 0 7px 17px rgba(22, 126, 214, .16);
    filter: none
}

.settings-dialog {
    width: min(560px, 100%);
    padding: 27px 30px 24px
}

.settings-dialog-head {
    align-items: center;
    margin-bottom: 22px
}

.settings-dialog-head h2 {
    margin: 0;
    color: #122f54;
    font-size: 28px;
    letter-spacing: 1px
}

.settings-simple .settings-secret {
    width: 100%
}

.settings-simple .settings-secret input {
    height: 46px;
    line-height: 46px
}

.settings-simple .settings-action {
    height: 46px
}

.settings-dialog-actions {
    margin-top: 24px
}

@media(max-width:760px) {
    .settings-dialog {
        padding: 25px 19px 20px
    }
}

/* Option A: compact minimal enterprise key modal. */
.settings-dialog {
    width: min(576px, 100%);
    padding: 28px 30px 24px;
    border-radius: 14px;
    border: 1px solid rgba(38, 114, 194, .18);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 70px rgba(35, 72, 109, .2), inset 0 1px 0 #fff
}

.settings-dialog-head {
    margin-bottom: 23px
}

.settings-dialog-head h2 {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .5px
}

.settings-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f3f8fe
}

.settings-simple .settings-secret {
    gap: 0;
    align-items: stretch
}

.settings-simple .settings-secret input {
    height: 46px;
    line-height: 46px;
    border-radius: 10px 0 0 10px;
    border-right: 0;
    outline: none
}

.settings-simple .settings-secret input:focus {
    border-color: rgba(22, 126, 214, .65);
    box-shadow: 0 0 0 3px rgba(22, 143, 233, .08)
}

.settings-simple .settings-action {
    min-width: 68px;
    height: 46px;
    border-radius: 0 10px 10px 0;
    border-left: 0;
    background: #edf6ff;
    color: #176abb
}

.settings-dialog-actions {
    margin-top: 22px;
    gap: 10px
}

.settings-cancel,
.settings-save {
    height: 40px;
    border-radius: 9px
}

.settings-cancel {
    padding-inline: 18px
}

.settings-save {
    padding-inline: 19px
}

/* Viewport-fit workbench: the whole page stays on one screen with no page scrolling. */
@media(min-width:1081px) and (min-height:900px) {

    html,
    body {
        height: 100%;
        overflow: hidden
    }

    .single-shell {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding-bottom: 20px
    }

    .single-main,
    .single-creation {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0
    }

    .single-creation {
        padding-top: 32px
    }

    .single-creation .creation-heading {
        flex: none
    }

    .single-creation .creation-heading h1 {
        margin: 12px 0 10px
    }

    .hero-rule {
        margin-top: 18px
    }

    .single-creation .creation-layout {
        flex: 1;
        min-height: 0;
        margin: 28px 0 0 70px
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        min-height: 0
    }

    .creation-panel {
        display: flex;
        flex-direction: column
    }

    .creation-panel .creation-icon,
    .creation-panel .creation-label,
    .creation-panel .creation-input-label,
    .creation-panel .creation-input-meta,
    .creation-panel .creation-button,
    .creation-panel .creation-error {
        flex: none
    }

    .creation-story-input {
        flex: 1;
        min-height: 72px;
        height: auto;
        resize: none
    }

    .single-footer {
        flex: none;
        padding: 16px 42px 0
    }
}
/* Result prompt scrolls silently: no visible scrollbar inside the output card. */
.creation-result p {
    scrollbar-width: none
}

.creation-result p::-webkit-scrollbar {
    display: none
}

/* Interaction feedback: copy success state, loading spinner in the button, entrance motion. */
.creation-result-head button {
    transition: color .2s, border-color .2s, background .2s, transform .15s
}

.creation-result-head button:active {
    transform: scale(.94)
}

.creation-result-head button.is-copied {
    border-color: rgba(13, 168, 208, .55);
    background: linear-gradient(105deg, rgba(23, 178, 226, .16), rgba(31, 201, 217, .18));
    color: #0d9db8;
    animation: copy-pop .38s cubic-bezier(.3, 1.4, .5, 1)
}

@keyframes copy-pop {
    0% {
        transform: scale(.8)
    }

    60% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

.creation-button {
    transition: box-shadow .25s, transform .15s, opacity .2s
}

.creation-button:active {
    transform: scale(.97)
}

.creation-button.is-loading {
    box-shadow: 0 9px 26px rgba(24, 117, 223, .34)
}

.creation-button.is-loading .button-icon {
    width: 16px;
    height: 16px;
    color: transparent;
    border: 2px solid rgba(255, 255, 255, .38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: creation-spin .85s linear infinite
}

.creation-button.is-loading span {
    animation: loading-text-pulse 1.4s ease-in-out infinite
}

@keyframes loading-text-pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .55
    }
}

.creation-loading {
    animation: loading-in .45s ease both
}

@keyframes loading-in {
    from {
        opacity: 0;
        transform: scale(.965)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.creation-loading strong {
    background: linear-gradient(90deg, #143d68 30%, #1f8fe8 50%, #143d68 70%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loading-shimmer 2s linear infinite
}

@keyframes loading-shimmer {
    to {
        background-position: -220% 0
    }
}

.loading-orbit i {
    animation: orbit-dot-glow 1.6s ease-in-out infinite
}

.loading-orbit i:nth-child(2) {
    animation-delay: .35s
}

.loading-orbit i:nth-child(3) {
    animation-delay: .7s
}

@keyframes orbit-dot-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.7);
        opacity: .55
    }
}

.creation-result {
    animation: result-in .5s cubic-bezier(.22, .8, .35, 1) both
}

@keyframes result-in {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Loading state: everything visibly moves - breathing art, glowing orbit, drifting particles. */
.creation-output.is-loading .creation-art {
    animation: art-breathe 5.5s ease-in-out infinite alternate
}

@keyframes art-breathe {
    from {
        transform: scale(1.02)
    }

    to {
        transform: scale(1.09)
    }
}

.creation-output.is-loading .loading-orbit {
    animation: creation-spin 1.5s linear infinite, orbit-pulse 2.1s ease-in-out infinite
}

@keyframes orbit-pulse {

    0%,
    100% {
        box-shadow: 0 0 24px rgba(22, 143, 233, .26), inset 0 0 16px rgba(22, 143, 233, .14)
    }

    50% {
        box-shadow: 0 0 46px rgba(22, 143, 233, .58), inset 0 0 28px rgba(22, 143, 233, .32)
    }
}

.loading-orbit:before {
    animation: orbit-ring-counter 2.6s linear infinite
}

.loading-orbit:after {
    animation: orbit-ring-counter 1.9s linear infinite reverse
}

@keyframes orbit-ring-counter {
    to {
        transform: rotate(-360deg)
    }
}

.loading-orbit i {
    animation: orbit-dot-glow 1.1s ease-in-out infinite
}

.loading-orbit i:nth-child(2) {
    animation-delay: .28s
}

.loading-orbit i:nth-child(3) {
    animation-delay: .56s
}

.creation-loading:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 3px at 16% 32%, rgba(31, 143, 232, .55), transparent 65%),
        radial-gradient(circle 2px at 80% 24%, rgba(255, 140, 127, .6), transparent 65%),
        radial-gradient(circle 2.5px at 64% 76%, rgba(31, 143, 232, .5), transparent 65%),
        radial-gradient(circle 2px at 30% 84%, rgba(255, 140, 127, .45), transparent 65%),
        radial-gradient(circle 1.5px at 50% 12%, rgba(31, 143, 232, .4), transparent 65%);
    pointer-events: none;
    animation: particles-drift 6.5s ease-in-out infinite
}

@keyframes particles-drift {
    0% {
        transform: translateY(16px);
        opacity: 0
    }

    25% {
        opacity: 1
    }

    75% {
        opacity: 1
    }

    100% {
        transform: translateY(-30px);
        opacity: 0
    }
}

.loading-bar {
    animation: bar-glow 1.7s ease-in-out infinite
}

@keyframes bar-glow {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(31, 143, 232, 0)
    }

    50% {
        box-shadow: 0 0 16px rgba(31, 143, 232, .5)
    }
}

.creation-loading small {
    animation: loading-text-pulse 1.8s ease-in-out infinite
}

/* ── 双生成按钮：免费（渐变主按钮）/ 高质量（白底描边，密钥付费档）── */
.creation-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 24px
}

.creation-buttons .creation-button {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    white-space: nowrap
}

.creation-button-key {
    color: #1766e6;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(23, 102, 230, .38);
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(22, 126, 214, .14)
}

.creation-button-key .button-icon {
    color: #1766e6
}

.creation-button-key:hover {
    background: #fff;
    box-shadow: 0 15px 31px rgba(24, 117, 223, .3)
}

.creation-button-key:disabled {
    opacity: .55
}

@media(max-width:560px) {
    .creation-buttons {
        flex-direction: column
    }
}

/* 手机端：输入面板与输出面板必须上下排列，避免两列挤在同一行。 */
@media(max-width:760px) {
    .single-creation .creation-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .single-creation .creation-panel,
    .single-creation .creation-output {
        width: 100%;
        min-width: 0;
    }
}

