.personal-page-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 24, 14, 0.55);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    padding: 20px;
    transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
    will-change: opacity, backdrop-filter;
}

.personal-page-card {
    width: min(96vw, 1020px);
    height: calc(100vh - 40px);
    max-height: 760px;
    background: #fffaf4;
    border-radius: 24px;
    border: 1px solid rgba(118, 103, 84, 0.25);
    box-shadow: 0 28px 60px rgba(38, 28, 18, 0.25);
    padding: 40px;
    text-align: left;
    color: var(--claude-text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.personal-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.personal-page-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.personal-page-header h2 {
    font-size: 24px;
    margin: 0;
}

.personal-page-header p {
    margin: 6px 0 0;
    color: var(--claude-text-secondary);
    font-size: 14px;
}

.personal-page-close {
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--claude-accent) 0%, var(--claude-accent-strong) 100%);
    color: #fffdf8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(189, 93, 58, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.personal-page-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(189, 93, 58, 0.3);
}

.personal-page-logout {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(118, 103, 84, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--claude-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.personal-page-logout:hover {
    background: #fff;
    box-shadow: 0 12px 24px rgba(38, 28, 18, 0.12);
}

.personalization-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.personal-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(118, 103, 84, 0.2);
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toggle-title {
    font-weight: 600;
}

.toggle-desc {
    color: var(--claude-text-secondary);
    font-size: 13px;
}

.toggle-switch {
    position: relative;
    width: 46px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    inset: 0;
    background-color: #d7d1c5;
    border-radius: 30px;
    transition: background-color 0.2s ease;
}

.switch-slider::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.toggle-switch input:checked + .switch-slider {
    background: var(--claude-accent);
}

.toggle-switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

.personal-toggle-row {
    margin-bottom: 18px;
}

.personalization-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
}

.personal-page-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(118, 103, 84, 0.2);
    background: rgba(255, 255, 255, 0.92);
    align-self: flex-start;
    height: auto;
    max-height: none;
    overflow: visible;
    flex-wrap: wrap;
}

.personal-tab-button {
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    background: transparent;
    color: var(--claude-text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.personal-tab-desc {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--claude-text-tertiary);
    margin-top: 2px;
    letter-spacing: 0.4px;
}

.personal-tab-button.active {
    background: rgba(189, 93, 58, 0.12);
    color: var(--claude-accent);
    box-shadow: 0 10px 24px rgba(189, 93, 58, 0.15);
}

.personal-tab-button:focus-visible {
    outline: 2px solid rgba(189, 93, 58, 0.4);
    outline-offset: 2px;
}

.personalization-content-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
}

.personalization-content {
    position: relative;
    overflow-y: auto;
    border-radius: 24px;
    border: 1px solid rgba(118, 103, 84, 0.18);
    background: rgba(255, 255, 255, 0.98);
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.personalization-content::-webkit-scrollbar {
    display: none;
}

.personalization-content .personal-page {
    width: 100%;
    padding: 16px 26px 26px;
}

@media (max-width: 1024px) {
    .personalization-layout {
        grid-template-columns: 1fr;
    }

    .personal-page-tabs {
        flex-direction: row;
        padding: 14px;
        height: auto;
        flex-wrap: wrap;
    }

    .personal-tab-button {
        flex: 1;
        text-align: center;
    }
}

.behavior-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(118, 103, 84, 0.18);
}

.behavior-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.behavior-field-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.behavior-field-header .field-title {
    font-weight: 600;
}

.behavior-field-header .field-desc {
    color: var(--claude-text-secondary);
    font-size: 13px;
}

.experiment-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(118, 103, 84, 0.18);
    padding: 28px 30px;
}

.experiment-hero {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
    gap: 28px;
    align-items: center;
}

.experiment-visual {
    position: relative;
    border-radius: 32px;
    min-height: 220px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.65), rgba(104, 147, 255, 0.2))
        rgba(28, 27, 41, 0.95);
    box-shadow: 0 25px 60px rgba(24, 20, 37, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.experiment-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
}

.experiment-visual-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 60%);
    filter: blur(50px);
    transform: translate(-15%, -20%);
    opacity: 0.8;
    animation: experimentDrift 8s ease-in-out infinite alternate;
}

.experiment-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

.experiment-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(1px);
    background: radial-gradient(circle, rgba(98, 178, 255, 0.8), rgba(255, 255, 255, 0));
    animation: experimentDrift 10s ease-in-out infinite alternate;
}

.experiment-orb.orb-one {
    top: 20%;
    left: 14%;
}

.experiment-orb.orb-two {
    bottom: 10%;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 166, 122, 0.85), rgba(255, 255, 255, 0));
}

.experiment-copy h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.experiment-copy p {
    color: var(--claude-text-secondary);
    line-height: 1.6;
}

.experiment-subtitle {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.4em;
    color: var(--claude-accent);
    margin-bottom: 6px;
}

.experiment-toggle-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    border-radius: 22px;
    border: 1px solid rgba(118, 103, 84, 0.2);
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 45px rgba(16, 24, 40, 0.08);
}

.experiment-toggle-info h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.experiment-toggle-info p {
    margin: 0;
    color: var(--claude-text-secondary);
}

.experiment-toggle .toggle-text {
    max-width: 320px;
}

.experiment-note {
    border-radius: 18px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px dashed rgba(118, 103, 84, 0.3);
}

.experiment-note p {
    margin-bottom: 10px;
    font-weight: 600;
}

.experiment-hint-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
    color: var(--claude-text-secondary);
}

/* Liquid glass overlay */
.liquid-glass-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1200;
}

.liquid-glass-panel {
    position: absolute;
    pointer-events: auto;
    border-radius: 150px;
    overflow: hidden;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.25),
        0 -10px 25px inset rgba(0, 0, 0, 0.15),
        0 -1px 4px 1px inset rgba(255, 255, 255, 0.74);
    cursor: grab;
    background: rgba(3, 6, 14, 0.22);
    touch-action: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.liquid-glass-panel:active {
    cursor: grabbing;
}

.liquid-glass-panel::before {
    content: "";
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%),
        radial-gradient(circle at 80% 5%, rgba(128, 183, 255, 0.18), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.liquid-glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
        repeating-linear-gradient(140deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 6px);
    mix-blend-mode: screen;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.liquid-glass-panel > * {
    position: relative;
    z-index: 2;
}

.liquid-glass-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.liquid-glass-specular {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.4), transparent 58%),
        radial-gradient(circle at 70% 8%, rgba(255, 200, 150, 0.22), transparent 55%),
        radial-gradient(circle at 45% 120%, rgba(140, 180, 255, 0.35), transparent 45%);
    mix-blend-mode: screen;
    opacity: 0.85;
}

.liquid-glass-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    padding: 0 24px;
}

.liquid-glass-toolbar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
    z-index: 1210;
}

.liquid-glass-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(18px);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.liquid-glass-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
}

.liquid-glass-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.liquid-glass-btn.ghost {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.liquid-glass-btn.ghost:hover {
    background: rgba(15, 15, 25, 0.75);
}

@keyframes experimentDrift {
    from {
        transform: translate(-5%, -5%) scale(1);
    }
    to {
        transform: translate(5%, 5%) scale(1.05);
    }
}

@media (max-width: 960px) {
    .experiment-hero {
        grid-template-columns: 1fr;
    }
}

.run-mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.run-mode-card {
    border: 1px solid rgba(118, 103, 84, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.run-mode-card:hover {
    border-color: rgba(118, 103, 84, 0.4);
    transform: translateY(-1px);
}

.run-mode-card.active {
    border-color: var(--claude-accent);
    background: rgba(118, 103, 84, 0.08);
    box-shadow: 0 8px 20px rgba(118, 103, 84, 0.18);
}

.run-mode-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.run-mode-title {
    font-weight: 600;
    font-size: 15px;
}

.run-mode-badge {
    font-size: 12px;
    color: var(--claude-accent);
    font-weight: 600;
    background: rgba(118, 103, 84, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
}

.run-mode-desc {
    color: var(--claude-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.thinking-presets {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thinking-presets button {
    flex: 1;
    min-width: 100px;
    border: 1px solid rgba(118, 103, 84, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--claude-text-secondary);
}

.thinking-presets button.active {
    border-color: var(--claude-accent);
    color: var(--claude-accent);
    background: rgba(118, 103, 84, 0.08);
}

.thinking-presets button small {
    font-size: 12px;
    font-weight: 500;
}

.thinking-input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.thinking-input-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.thinking-input-row input {
    width: 120px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(118, 103, 84, 0.3);
}

.thinking-hint {
    color: var(--claude-text-secondary);
    font-size: 13px;
}

.behavior-hint {
    color: var(--claude-text-secondary);
    font-size: 13px;
}

.link-button {
    border: none;
    background: none;
    color: var(--claude-accent);
    font-weight: 600;
    cursor: pointer;
}

.tool-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(118, 103, 84, 0.08);
    border: 1px solid rgba(118, 103, 84, 0.2);
    font-size: 13px;
}

.tool-category-chip input {
    accent-color: var(--claude-accent);
}

.global-actions {
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

/* ========================================= */
/* 移动端面板入口 */
/* ========================================= */

.mobile-panel-trigger {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease;
    padding: 0;
}

.mobile-panel-trigger.is-hidden {
    opacity: 0;
}

.mobile-panel-topbar {
    background: var(--claude-left-rail);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(51, 35, 20, 0.1);
    pointer-events: auto;
}

.mobile-panel-fab {
    width: 44px;
    height: 44px;
    border: none;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--claude-text);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
}

.mobile-panel-fab img {
    width: 32px;
    height: 32px;
}

.mobile-panel-menu {
    pointer-events: auto;
    display: grid;
    grid-auto-flow: column;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(38, 28, 18, 0.15);
    align-self: flex-start;
}

.mobile-topbar-title {
    flex: 0 0 50%;
    max-width: 50%;
    font-size: 14px;
    font-weight: 600;
    color: var(--claude-text);
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--claude-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-btn img,
.mobile-menu-svg {
    width: 26px;
    height: 26px;
    display: block;
}

.mobile-menu-btn--conversation .mobile-menu-svg {
    width: 30px;
    height: 30px;
    transition: color 0.2s ease;
}

.mobile-panel-menu-enter-active,
.mobile-panel-menu-leave-active {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-panel-menu-enter-from,
.mobile-panel-menu-leave-to {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
}

/* ========================================= */
/* 移动端半覆盖面板 */
/* ========================================= */

.mobile-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 11, 7, 0.45);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: stretch;
    padding: 0;
}

.mobile-panel-overlay--left {
    justify-content: flex-start;
}

.mobile-panel-overlay--right {
    justify-content: flex-end;
}

.mobile-panel-sheet {
    width: 100%;
    height: 100%;
    background: var(--claude-left-rail);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-panel-sheet--conversation,
.mobile-panel-sheet--workspace {
    background: var(--claude-left-rail);
}

.mobile-panel-sheet--focus {
    background: var(--claude-panel);
}

.mobile-overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: var(--claude-text);
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
}

.mobile-overlay-content {
    margin-top: 0;
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mobile-panel-sheet .conversation-sidebar,
.mobile-panel-sheet .sidebar,
.mobile-panel-sheet .right-sidebar {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    border: none;
    border-radius: 0;
}

.mobile-panel-sheet .conversation-sidebar {
    height: 100%;
}

@media (max-width: 768px) {
    .mobile-panel-sheet .left-sidebar,
    .mobile-panel-sheet .right-sidebar {
        display: flex !important;
        flex-direction: column;
    }
    
    .mobile-panel-sheet .conversation-sidebar {
        position: relative;
        transform: none !important;
        box-shadow: none;
    }
    
    .mobile-panel-sheet .conversation-sidebar.collapsed {
        transform: none !important;
    }
    
    .mobile-panel-sheet .sidebar-header {
        position: static;
        border: none;
        padding: 12px 16px 0;
    }
    
    .mobile-panel-sheet .focused-files {
        padding-top: 8px;
    }
}

.mobile-panel-overlay-enter-active,
.mobile-panel-overlay-leave-active {
    transition: opacity 0.25s ease;
}

.mobile-panel-overlay-enter-from,
.mobile-panel-overlay-leave-to {
    opacity: 0;
}

.mobile-panel-overlay .mobile-panel-sheet {
    transform: translateX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-panel-overlay--left.mobile-panel-overlay-enter-from .mobile-panel-sheet,
.mobile-panel-overlay--left.mobile-panel-overlay-leave-to .mobile-panel-sheet {
    transform: translateX(-28px);
}

.mobile-panel-overlay--right.mobile-panel-overlay-enter-from .mobile-panel-sheet,
.mobile-panel-overlay--right.mobile-panel-overlay-leave-to .mobile-panel-sheet {
    transform: translateX(28px);
}
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 24, 14, 0.5);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2200;
    transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
    will-change: opacity, backdrop-filter;
}

.confirm-modal {
    width: min(360px, 100%);
    background: var(--claude-bg);
    border: 1px solid var(--claude-border-strong, rgba(118,103,84,0.35));
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(61, 57, 41, 0.22);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.confirm-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.confirm-message {
    font-size: 14px;
    color: var(--claude-text-secondary);
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.confirm-button {
    border: 1px solid var(--claude-border-strong, rgba(118,103,84,0.35));
    background: transparent;
    color: var(--claude-text);
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
    cursor: pointer;
}

.confirm-button--primary {
    background: var(--claude-accent);
    border-color: var(--claude-accent-strong);
    color: #fff;
}

.confirm-dialog-fade-enter-active,
.confirm-dialog-fade-leave-active {
    transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
}

.confirm-dialog-fade-enter-from,
.confirm-dialog-fade-leave-to {
    opacity: 0;
    backdrop-filter: blur(0px);
}

.confirm-dialog-fade-enter-active .confirm-modal,
.confirm-dialog-fade-leave-active .confirm-modal {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.confirm-dialog-fade-enter-from .confirm-modal,
.confirm-dialog-fade-leave-to .confirm-modal {
    transform: translateY(18px) scale(0.97);
    opacity: 0;
}

.personal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.personalization-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: stretch;
}

.personal-left-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.personal-left-column .personal-section {
    height: 100%;
}

.personal-section {
    flex: 1 1 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(118, 103, 84, 0.25);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.personal-right-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    align-self: stretch;
    height: 100%;
}

.personal-right-column > .personal-form-actions {
    margin-top: auto;
}

.personal-section.personal-considerations .personal-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.personal-section.personal-considerations .consideration-list {
    max-height: 260px;
    min-height: 220px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.personal-section.personal-considerations .consideration-list::-webkit-scrollbar {
    display: none;
}

.personal-section.personal-considerations .consideration-item {
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 1024px) {
    .personalization-sections {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .personal-right-column,
    .personal-left-column {
        width: 100%;
        max-width: none;
    }
}

.personal-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.personal-field input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(118, 103, 84, 0.4);
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.personal-field input:focus {
    outline: 2px solid rgba(189, 93, 58, 0.35);
    border-color: rgba(189, 93, 58, 0.6);
}

.tone-preset-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--claude-text-secondary);
}

.tone-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tone-preset-buttons button {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(118, 103, 84, 0.4);
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.tone-preset-buttons button:hover {
    border-color: var(--claude-accent);
    color: var(--claude-accent);
}

.consideration-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.consideration-input input {
    flex: 1;
}

.consideration-add {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: var(--claude-accent);
    color: #fffdf8;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}

.consideration-add:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.consideration-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consideration-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(118, 103, 84, 0.5);
    background: rgba(255, 255, 255, 0.9);
    cursor: grab;
}

.drag-handle {
    font-size: 16px;
    color: var(--claude-text-secondary);
}

.consideration-text {
    flex: 1;
    font-size: 14px;
    color: var(--claude-text);
}

.consideration-remove {
    border: none;
    background: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #d64545;
    padding: 0 4px;
}

.consideration-hint,
.consideration-limit {
    font-size: 13px;
    color: var(--claude-text-secondary);
}

.personal-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 0 0;
    justify-content: flex-end;
}

.personal-form-actions.card-aligned {
    padding: 0;
    margin-top: auto;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .personal-form-actions.card-aligned {
        margin-top: 12px;
    }
}

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

.personal-actions-row .personal-form-actions {
    width: 100%;
    max-width: 420px;
    padding: 0;
}

@media (min-width: 1025px) {
    .personal-actions-row .personal-form-actions {
        max-width: calc(50% - 9px);
    }
}

.personal-status-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
}

.personal-form-actions .primary {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--claude-accent) 0%, var(--claude-accent-strong) 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.personal-form-actions .primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.personal-form-actions .status {
    font-size: 13px;
}

.personal-form-actions .status.success {
    color: #0f9d58;
}

.personal-form-actions .status.error {
    color: #d64545;
}

.personal-status-fade-enter-active,
.personal-status-fade-leave-active {
    transition: opacity 0.25s ease;
}

.personal-status-fade-enter-from,
.personal-status-fade-leave-to {
    opacity: 0;
}

.personalization-loading {
    padding: 32px 0;
    text-align: center;
    color: var(--claude-text-secondary);
    font-size: 14px;
}

.personal-page-vertical-enter-active,
.personal-page-vertical-leave-active {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.personal-page-vertical-enter-from {
    opacity: 0;
    transform: translateY(26px);
}

.personal-page-vertical-leave-to {
    opacity: 0;
    transform: translateY(-26px);
}

.personal-page-fade-enter-active,
.personal-page-fade-leave-active {
    transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
}

.personal-page-fade-enter-from,
.personal-page-fade-leave-to {
    opacity: 0;
    backdrop-filter: blur(0);
}

.personal-page-overlay.personal-page-fade-enter-active .personal-page-card,
.personal-page-overlay.personal-page-fade-leave-active .personal-page-card {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.personal-page-overlay.personal-page-fade-enter-from .personal-page-card,
.personal-page-overlay.personal-page-fade-leave-to .personal-page-card {
    transform: translateY(18px) scale(0.985);
    opacity: 0;
}

/* 彩蛋灌水特效 */
.easter-egg-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 80;
}

.easter-egg-overlay.active {
    opacity: 1;
}
.panel-card {
    border-left: 1px solid var(--claude-border);
    padding: 0 0 0 0;
}
.app-loading-state {
    min-height: calc(var(--app-viewport, 100vh) - 160px);
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
    color: var(--claude-text);
}

.loading-animation {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-copy {
    margin-top: 48px;
}
.loading-copy h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.loading-copy p {
    margin: 6px 0 0;
    color: var(--claude-text-secondary);
}

.boxes {
    --size: 34px;
    --duration: 900ms;
    --box-primary: var(--claude-accent);
    --box-secondary: var(--claude-accent-strong, #d07b4c);
    --box-tertiary: #f8d7c0;
    height: calc(var(--size) * 2);
    width: calc(var(--size) * 3);
    position: relative;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    margin-top: calc(var(--size) * -1.5);
    transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
}

.boxes .box {
    width: var(--size);
    height: var(--size);
    top: 0;
    left: 0;
    position: absolute;
    transform-style: preserve-3d;
}

.boxes .box:nth-child(1) {
    transform: translate(100%, 0);
    animation: box1 var(--duration) linear infinite;
}

.boxes .box:nth-child(2) {
    transform: translate(0, 100%);
    animation: box2 var(--duration) linear infinite;
}

.boxes .box:nth-child(3) {
    transform: translate(100%, 100%);
    animation: box3 var(--duration) linear infinite;
}

.boxes .box:nth-child(4) {
    transform: translate(200%, 0);
    animation: box4 var(--duration) linear infinite;
}

.boxes .box > div {
    --background: var(--box-primary);
    --top: auto;
    --right: auto;
    --bottom: auto;
    --left: auto;
    --translateZ: calc(var(--size) / 2);
    --rotateY: 0deg;
    --rotateX: 0deg;
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    top: var(--top);
    right: var(--right);
    bottom: var(--bottom);
    left: var(--left);
    border-radius: 6px;
    transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}

.boxes .box > div:nth-child(1) {
    --top: 0;
    --left: 0;
}

.boxes .box > div:nth-child(2) {
    --background: var(--box-secondary);
    --right: 0;
    --rotateY: 90deg;
}

.boxes .box > div:nth-child(3) {
    --background: var(--box-tertiary);
    --rotateX: -90deg;
}

.boxes .box > div:nth-child(4) {
    --background: rgba(255, 255, 255, 0.95);
    --top: 0;
    --left: 0;
    --translateZ: calc(var(--size) * 3 * -1);
}

@keyframes box1 {
    0%, 50% {
        transform: translate(100%, 0);
    }

    100% {
        transform: translate(200%, 0);
    }
}

@keyframes box2 {
    0% {
        transform: translate(0, 100%);
    }

    50% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100%, 0);
    }
}

@keyframes box3 {
    0%, 50% {
        transform: translate(100%, 100%);
    }

    100% {
        transform: translate(0, 100%);
    }
}

@keyframes box4 {
    0% {
        transform: translate(200%, 0);
    }

    50% {
        transform: translate(200%, 100%);
    }

    100% {
        transform: translate(100%, 100%);
    }
}
