/* ── Admin panel styles ── */
.admin-container { max-width: 1000px; margin: 0 auto; padding: 2rem; }
.admin-header { text-align: center; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.admin-header p { color: var(--text-light); font-size: 0.9rem; }

.btn {
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary { background: var(--accent-pink); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 183, 178, 0.4); }
.btn-secondary { background: #f0f0f0; color: var(--text-main); }
.btn-secondary:hover { background: #e0e0e0; transform: translateY(-1px); }
.btn-danger { background: #ffe0e0; color: #e74c3c; font-size: 0.8rem; padding: 0.4rem 1rem; }
.btn-danger:hover { background: #e74c3c; color: white; transform: translateY(-1px); }

.admin-panel { display: none; }
.admin-panel.visible { display: block; }

.tab-nav {
    display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap;
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,247,246,0.66));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 0.72rem 1rem 0.82rem; margin-bottom: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(236, 228, 220, 0.76);
    box-shadow: 0 8px 24px rgba(180,150,150,0.08), 0 0 32px rgba(255,183,178,0.08);
    transition: border-radius 0.3s;
}
.tab-nav.stuck {
    border-radius: 0 0 18px 18px;
    border-top-color: transparent;
    box-shadow: 0 6px 20px rgba(180, 160, 165, 0.14);
}
.tab-group {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
}
.tab-group + .tab-group {
    border-left: 1px solid rgba(226, 212, 202, 0.9);
    padding-left: 0.85rem;
}
.tab-group::before {
    content: attr(data-group-label);
    color: #c4aaa5;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    padding-right: 0.05rem;
}
.tab-btn {
    padding: 0.42rem 0.95rem;
    border: 1.5px solid #eee;
    background: rgba(255,255,255,0.82);
    border-radius: 999px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
    white-space: nowrap;
}
.tab-btn:hover { border-color: var(--accent-pink); color: var(--text-main); transform: translateY(-2px); }
.tab-btn.active { border-color: var(--accent-pink); color: var(--text-main); background: #fff5f5; box-shadow: 0 6px 18px rgba(255,183,178,0.16); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.form-card {
    /* 铺满容器（去掉宽度限制）；按设计规范 §14 用毛玻璃 surface 而非死白，透出背景暖色 */
    background: var(--liquid-bg);
    border: none;
    backdrop-filter: var(--liquid-filter-soft); -webkit-backdrop-filter: var(--liquid-filter-soft);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--liquid-shadow);
    margin-bottom: 1.5rem;
}
.form-card h3 { font-size: 1.1rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1.5px solid #f5f5f5; padding-bottom: 0.8rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.4rem; }
/* 输入框坐在玻璃面上：半透明暖白 + 暖边，不再用纯白块硬怼毛玻璃；聚焦时再提到近实色保证可读 */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(236, 228, 220, 0.85);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.3s, background 0.25s;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent-pink); background: rgba(255, 255, 255, 0.88); }
.form-group textarea { min-height: 5.5rem; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── 表单类 tab：卡片收到舒适阅读宽度并居中（📋内容卡片网格 + 照片两卡保持满宽对齐）── */
.tab-form .form-card { max-width: 680px; margin-left: auto; margin-right: auto; }


.emoji-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.emoji-option {
    width: 40px; height: 40px;
    border: 2px solid #eee;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; cursor: pointer;
    transition: all 0.2s; background: white;
}
.emoji-option:hover { border-color: var(--accent-pink); transform: scale(1.1); }
.emoji-option.selected { border-color: var(--accent-pink); background: #fff5f5; box-shadow: 0 2px 8px rgba(255, 183, 178, 0.3); }

.existing-list { margin-top: 1rem; }
.existing-item {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem; background: rgba(255,255,255,0.74);
    border: 1px solid rgba(236,228,220,0.8);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: 14px; margin-bottom: 0.55rem; transition: background 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.existing-item:hover { background: rgba(255,255,255,0.9); border-color: rgba(255,183,178,0.7); }
.existing-item .item-info { flex: 1; }
.existing-item .item-title { font-weight: 500; font-size: 0.9rem; }
.existing-item .item-meta { font-size: 0.75rem; color: var(--text-light); }

.toast {
    position: fixed; bottom: max(2rem, env(safe-area-inset-bottom, 0px)); left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.8rem 1.5rem; background: var(--text-main);
    color: white; border-radius: 25px; font-size: 0.9rem;
    font-weight: 500; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease; z-index: 9999;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Undo toast — extended from .toast */
.undo-toast {
    position: fixed; bottom: max(2rem, env(safe-area-inset-bottom, 0px)); left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex; align-items: center; gap: 1rem;
    padding: 0.7rem 1.2rem; background: var(--text-main);
    color: white; border-radius: 25px; font-size: 0.88rem;
    font-weight: 500; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease; z-index: 9999;
}
.undo-toast.show { transform: translateX(-50%) translateY(0); }
.undo-toast .undo-btn {
    background: rgba(255,255,255,0.2); color: white; border: none;
    padding: 0.3rem 0.8rem; border-radius: 15px; cursor: pointer;
    font-family: inherit; font-size: 0.82rem; font-weight: 600;
    transition: background 0.2s;
}
.undo-toast .undo-btn:hover { background: rgba(255,255,255,0.35); }
.undo-toast .undo-bar {
    position: absolute; bottom: 0; left: 1rem; right: 1rem; height: 2px;
    background: var(--accent-pink); border-radius: 1px;
    animation: undoCountdown 5s linear forwards;
}
@keyframes undoCountdown { from { width: 100%; } to { width: 0%; } }

/* Post preview overlay */
.preview-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.preview-overlay.show { opacity: 1; pointer-events: auto; }
.preview-card-wrap {
    background: white; border-radius: 18px; padding: 1.5rem;
    width: 320px; max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(20px); transition: transform 0.3s;
}
.preview-overlay.show .preview-card-wrap { transform: translateY(0); }
.preview-card-wrap .card-img-placeholder {
    height: 160px; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; border-radius: 12px; margin-bottom: 1rem;
    background: linear-gradient(120deg, #f6d365, #fda085); /* default, overridden inline */
}
.preview-card-wrap .preview-tag {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 0.75rem; margin-bottom: 0.5rem;
}
.preview-card-wrap .preview-tag.pink { background: #ffe0e0; color: #d63384; }
.preview-card-wrap .preview-tag.green { background: #d4edda; color: #198754; }
.preview-card-wrap .preview-tag.blue { background: #d6eaf8; color: #2980b9; }
.preview-card-wrap .preview-tag.purple { background: #e8daef; color: #8e44ad; }
.preview-card-wrap h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--text-main); }
.preview-card-wrap .preview-content {
    font-size: 0.85rem; color: var(--text-light); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.preview-card-wrap .preview-meta {
    margin-top: 0.8rem; font-size: 0.75rem; color: #bbb;
    display: flex; justify-content: space-between;
}
.preview-actions {
    display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.2rem;
}

/* Tag chip UI */
.tag-chip-container {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    padding: 0.5rem; border: 1.5px solid #f0f0f0; border-radius: 10px;
    min-height: 40px; transition: border-color 0.2s; cursor: text;
}
.tag-chip-container:focus-within { border-color: var(--accent-pink); }
.tag-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px;
    border: 1.5px dashed #ddd;
    font-size: 0.78rem; cursor: pointer; color: var(--text-light);
    transition: all 0.25s var(--ease-soft); background: transparent;
    user-select: none; white-space: nowrap;
}
.tag-chip:hover { border-color: var(--accent-pink); color: var(--text-main); }
.tag-chip.active {
    border: 1.5px solid var(--accent-pink);
    background: #ffe0e0; color: var(--text-main);
}
.tag-chip .chip-x {
    font-size: 0.65rem; opacity: 0.4; cursor: pointer;
    margin-left: 2px; line-height: 1;
}
.tag-chip .chip-x:hover { opacity: 1; }
.tag-chip.suggested { border-style: dashed; }
.tag-chip-input {
    border: none; outline: none; font-family: inherit;
    font-size: 0.8rem; padding: 3px 4px; min-width: 80px;
    flex: 1; background: transparent; color: var(--text-main);
}
.tag-chip-input::placeholder { color: #ccc; }
.tag-chip-divider {
    width: 1px; height: 18px; background: #eee; margin: 0 2px;
}

/* Upload results */
.upload-results { margin-top: 1rem; }
.upload-result-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0; font-size: 0.82rem; color: var(--text-main);
}
.upload-result-item.success { color: #198754; }
.upload-result-item.fail { color: #e74c3c; }
.upload-result-summary {
    margin-top: 0.5rem; padding: 0.5rem 1rem;
    background: #f9f9f9; border-radius: 10px;
    font-size: 0.82rem; color: var(--text-light); text-align: center;
}

.back-link { display: inline-block; margin-bottom: 1rem; text-decoration: none; color: var(--text-light); font-weight: 500; transition: color 0.3s; }
.back-link:hover { color: var(--accent-pink); }

.upload-zone {
    border: 2px dashed #e4d8d0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 210px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--surface);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent-pink); background: #fff5f5; }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone .upload-icon { font-size: 2.8rem; margin-bottom: 0.6rem; }
.upload-zone p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }
.upload-zone-sub { font-size: 0.74rem; color: #c3b8af; white-space: nowrap; }   /* 宽屏一行 */

/* 照片上传：左拖拽区 / 右表单，双栏铺满；窄屏堆叠 */
.photo-up-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1.6rem; align-items: stretch; }
.photo-up-left { display: flex; flex-direction: column; gap: 0.9rem; }
.photo-up-left .upload-zone { flex: 1; }            /* 拖拽区撑满左栏高度，消除左下空白 */
.photo-up-left .upload-preview { margin: 0; }
.photo-up-right > .form-group:first-child { margin-top: 0; }
.photo-up-submit { text-align: center; margin-top: 1.4rem; }
.photo-up-submit .btn { min-width: 240px; }
@media (max-width: 760px) {
    .photo-up-grid { grid-template-columns: 1fr; gap: 1rem; }
    .photo-up-left .upload-zone { min-height: 150px; flex: none; }
    .upload-zone-sub { white-space: normal; }   /* 窄屏允许换行成两行 */
}
@media (max-width: 380px) {
    .upload-zone-sub { font-size: 0.68rem; }     /* 超窄再压缩提示字号 */
}

/* 状态页分段导航：四块一次只显示一块，不再一长条拉到底 */
.se-subnav { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; max-width: 680px; margin: 0 auto 1.2rem; }
.se-subnav-btn { padding: 0.45rem 1rem; border: 1.5px solid #ece4dc; background: var(--surface); border-radius: 20px; font-family: inherit; font-size: 0.82rem; color: var(--text-light); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.se-subnav-btn:hover { border-color: var(--accent-pink); color: var(--text-main); }
.se-subnav-btn.active { border-color: var(--accent-pink); color: var(--text-main); background: #fff5f5; }
.se-panel { display: none; }
.se-panel.active { display: block; }
/* 状态各块标题栏：标题左、＋新建 右上角（对齐内容视图的 .le-add） */
.se-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1.5px solid #f5f5f5; padding-bottom: 0.8rem; margin-bottom: 1.1rem; }
.se-head h3 { margin: 0; border: none; padding: 0; }
.se-head .le-add { flex-shrink: 0; }
/* 个人状态：把 谁 / 日期类型 / 时段 选择器收进一张柔和控制面板 */
.se-selectbar { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 0.5rem 1rem 1rem; margin-bottom: 1.1rem; }
.se-selectbar .se-row-label:first-child { margin-top: 0.4rem; }

/* About：杂志式双栏 — 简介/旅程整行，Fun Facts | 技能 并排 */
.about-grid-page { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 940px; margin: 0 auto; align-items: start; }
.about-grid-page > .form-card { margin-bottom: 0; }
.about-grid-page > .about-full { grid-column: 1 / -1; }
@media (max-width: 760px) { .about-grid-page { grid-template-columns: 1fr; gap: 1rem; } }

/* 后台 textarea 自增高：去掉内层滚动条与手动拖拽柄（高度由 JS 控制）*/
.form-card textarea { resize: none; overflow: hidden; }

/* ══ 经典版隔离：碎碎念/动态/推荐/管理 保持 0.6 原貌，不继承新版的加宽/毛玻璃/自增高 ══ */
#tab-post .form-card, #tab-timeline .form-card, #tab-likes .form-card, #tab-manage .form-card {
    max-width: 640px; margin-left: auto; margin-right: auto;
    background: white; border: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
#tab-post .form-card textarea, #tab-timeline .form-card textarea,
#tab-likes .form-card textarea, #tab-manage .form-card textarea { resize: vertical; overflow: auto; }
/* 空相册：占满整行居中，不再是一个大空盒 */
.photo-grid .empty-hint { grid-column: 1 / -1; text-align: center; color: #c4bab1; padding: 2.5rem 1rem; font-size: 0.95rem; margin: 0; }

.upload-preview { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0; }
.upload-preview-item {
    width: 100px; height: 100px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-item .remove-btn {
    position: absolute; top: 4px; right: 4px;
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.6); color: white;
    border: none; border-radius: 50%;
    font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.upload-preview-item .remove-btn:hover { background: rgba(220,50,50,0.8); }

.upload-progress {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin: 0.8rem 0;
    display: none;
}
.upload-progress-bar {
    height: 100%;
    background: var(--accent-pink);
    border-radius: 2px;
    transition: width 0.3s;
    width: 0%;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* ── 照片图书馆：干净瓷砖 + 悬浮删除 + 点开弹窗编辑 ── */
/* 实况图 LIVE 角标（上传预览 + 后台瓦片通用）+ HEIC 占位 */
.upload-preview-item { position: relative; }
.preview-live-badge, .photo-tile .photo-live-badge {
    position: absolute; top: 0.4rem; left: 0.4rem; z-index: 3;
    display: inline-flex; align-items: center; gap: 0.24rem;
    padding: 0.12rem 0.44rem 0.12rem 0.34rem; border-radius: 999px;
    background: rgba(40, 36, 34, 0.48); color: #fff; font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.03em; pointer-events: none;
}
/* 上传预览里的实况开关：可点，关掉时变灰 */
.preview-live-badge.live-toggle {
    pointer-events: auto; cursor: pointer; border: none; font-family: inherit;
    -webkit-tap-highlight-color: transparent; transition: opacity .15s, background .15s;
}
.preview-live-badge.live-toggle.is-off { background: rgba(120, 110, 105, 0.55); opacity: 0.72; }
.plb-ring { width: 0.56rem; height: 0.56rem; border-radius: 50%; border: 1.4px solid currentColor; position: relative; flex-shrink: 0; }
.plb-ring::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.preview-heic-ph {
    width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.6); border: 1px dashed rgba(236, 228, 220, 0.95); border-radius: 8px;
    color: var(--accent-pink); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em;
}

.photo-tile {
    position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
    cursor: pointer; background: var(--surface); box-shadow: var(--shadow-soft);
    transition: transform 0.2s var(--ease-soft), box-shadow 0.2s;
}
.photo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile.is-hidden img { opacity: 0.45; }
.photo-tile-bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.6rem 0.7rem 0.55rem; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.62), transparent);
    display: flex; flex-direction: column; gap: 0.1rem; pointer-events: none;
}
.photo-tile-title { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-tile-meta { font-size: 0.7rem; opacity: 0.88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-tile-actions { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; gap: 0.35rem; opacity: 0; transition: opacity 0.18s; }
.photo-tile:hover .photo-tile-actions { opacity: 1; }
.pt-btn { min-width: 42px; height: 28px; padding: 0 0.65rem; border-radius: 999px; border: none; cursor: pointer; background: rgba(255,255,255,0.92); box-shadow: 0 2px 8px rgba(0,0,0,0.22); font-family: inherit; font-size: 0.72rem; font-weight: 600; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s, transform 0.12s; }
.pt-btn:hover { transform: scale(1.1); }
.pt-del { color: #e8847c; }
.pt-del:hover { background: #e8847c; color: #fff; }
.photo-tile-hidden { position: absolute; top: 0.5rem; left: 0.5rem; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.66rem; padding: 0.15rem 0.5rem; border-radius: 999px; }
@media (hover: none) { .photo-tile-actions { opacity: 1; } }

/* 照片编辑弹窗里的预览图 + 可见开关 */
.cf-photo-preview { border-radius: 12px; overflow: hidden; margin-bottom: 1rem; max-height: 200px; background: var(--surface); }
.cf-photo-preview img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.cf-photo-visible { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-main); margin-top: 0.4rem; cursor: pointer; }

.admin-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-top-right { display: flex; gap: 0.5rem; align-items: center; }
.admin-pill {
    padding: 0.35rem 0.9rem; border: 1.5px solid #eee; border-radius: 20px;
    font-size: 0.8rem; font-weight: 500; font-family: inherit; cursor: pointer;
    /* line-height 必须显式定死：<a> 继承 body 的 1.8、<button> 用 UA 默认 ~1.2，
       不定死的话 a/button 混排的 pill 会一高一矮（教程按钮变大就是这个根因） */
    line-height: 1.2;
    text-decoration: none; background: white; color: var(--text-light); transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
/* 顶栏三颗 pill 共用 .admin-pill 一套参数（1.5px / 0.35rem 0.9rem / 0.8rem），不许单独开特例 */
.admin-pill:hover { border-color: var(--accent-pink); color: var(--accent-pink); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(255,183,178,0.2); }
.admin-pill.accent { border-color: var(--accent-pink); color: var(--accent-pink); background: #fff5f5; }
.admin-pill.accent:hover { background: var(--accent-pink); color: white; }
.admin-pill.danger:hover { border-color: #e74c3c; color: #e74c3c; box-shadow: 0 3px 10px rgba(231,76,60,0.12); }

/* ── Crop modal ── */
.crop-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.crop-overlay.show { opacity: 1; pointer-events: auto; }

.crop-modal {
    background: #1a1a1a;
    border-radius: 20px;
    width: 100%; max-width: 520px;
    display: flex; flex-direction: column;
    overflow: hidden;
}

.crop-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem;
    color: white;
}
.crop-header h3 { font-size: 1rem; font-weight: 500; }
.crop-queue { font-size: 0.82rem; color: #888; }

.crop-canvas-wrap {
    position: relative;
    background: black;
    display: flex; align-items: center; justify-content: center;
    height: 320px;
    overflow: hidden;
    cursor: move;
}
#cropCanvas { display: block; touch-action: none; }

.crop-ratio-bar {
    display: flex; gap: 0.5rem; padding: 0.8rem 1.2rem;
    background: #111;
    justify-content: center;
}
.ratio-btn {
    padding: 0.35rem 0.9rem;
    border: 1.5px solid #444;
    border-radius: 20px;
    background: none;
    color: #aaa;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
}
.ratio-btn.active { border-color: var(--accent-pink); color: var(--accent-pink); }

.crop-actions {
    display: flex; gap: 0.6rem; padding: 0.9rem 1.2rem;
    background: #1a1a1a;
}
.crop-actions .btn { flex: 1; border: none; padding: 0.7rem; border-radius: 12px;
    font-family: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer;
    transition: all 0.2s; touch-action: manipulation;
}
.btn-crop-cancel { background: #333; color: #aaa; }
.btn-crop-cancel:hover { background: #444; }
.btn-crop-skip { background: #333; color: #888; }
.btn-crop-skip:hover { background: #444; }
.btn-crop-apply { background: var(--accent-pink); color: white; }
.btn-crop-apply:hover { background: #ff9c96; }

.crop-rotate-bar {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0 1.2rem 0.5rem;
    background: #1a1a1a;
}
.crop-rotate-btn {
    width: 38px; height: 38px;
    border: none; background: #333;
    border-radius: 10px; color: white;
    font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; touch-action: manipulation;
}
.crop-rotate-btn:hover { background: #444; }

/* 遮罩：景深靠 blur 不靠压暗 —— 暖棕轻染 + 大模糊，告别灰蒙蒙 */
.edit-modal-overlay {
    position: fixed; inset: 0; background: rgba(96, 74, 64, 0.18);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s;
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
}
.edit-modal-overlay.show { opacity: 1; pointer-events: auto; }
.edit-modal {
    background:
        radial-gradient(circle at 10% 0%, rgba(255,183,178,0.16), transparent 38%),
        radial-gradient(circle at 92% 4%, rgba(168,230,207,0.14), transparent 42%),
        linear-gradient(145deg, rgba(255,255,255,0.66), rgba(255,248,246,0.42) 50%, rgba(246,255,251,0.48)),
        rgba(255, 252, 248, 0.72);
    backdrop-filter: blur(30px) saturate(1.32);
    -webkit-backdrop-filter: blur(30px) saturate(1.32);
    border-radius: 24px; padding: 0;
    width: 90%; max-width: 540px; max-height: 85vh; max-height: 85dvh;
    overflow: hidden;                          /* 圆角裁切：滚动条不再把右侧切成方角（仿首页 post-modal）*/
    display: flex; flex-direction: column;     /* 标题/按钮固定，中间表单滚动 */
    box-shadow:
        0 18px 46px rgba(70, 55, 55, 0.14),
        inset 0 1px 1px rgba(255,255,255,0.82);
    transform: translateY(20px);
    transition: transform 0.3s;
}
.edit-modal-overlay.show .edit-modal { transform: translateY(0); }
.edit-modal > h3 {   /* 仅弹窗自身标题；> 防止泄漏到 #editModalBody 内的预览卡 .card h3 */
    font-size: 1.1rem;
    margin: 0;
    padding: 1.8rem 1.8rem 0.9rem;
    border-bottom: 1px solid rgba(241,236,230,0.84);
    flex-shrink: 0;
}
#editModalBody {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem 1.25rem 0.35rem 1.8rem;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 170, 170, 0.42) transparent;
}   /* 内层滚动层，圆角由外层保证；右内边距给滚动条留缝 */
#editModalBody::-webkit-scrollbar { width: 8px; }
#editModalBody::-webkit-scrollbar-track { background: transparent; }
#editModalBody::-webkit-scrollbar-thumb {
    background: rgba(180, 170, 170, 0.34);
    border: 2px solid rgba(255,255,255,0.95);
    border-radius: 999px;
}
#editModalBody::-webkit-scrollbar-thumb:hover { background: rgba(255, 183, 178, 0.72); }
.edit-modal .form-group { margin-bottom: 1rem; }
.edit-modal .btn-row {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin: 0;
    padding: 1rem 1.8rem 1.35rem;
    border-top: 1px solid rgba(241,236,230,0.84);
    flex-shrink: 0;
    background:
        radial-gradient(circle at 78% 100%, rgba(168,230,207,0.10), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,249,247,0.36));
    box-shadow:
        0 -16px 28px rgba(255,255,255,0.18),
        inset 0 1px 0 rgba(255,255,255,0.42);
}
/* 移动端：弹窗更高更宽，padding 收一点 */
@media (max-width: 600px) {
    .edit-modal { max-height: 92vh; max-height: 92dvh; width: 94%; padding: 0; backdrop-filter: blur(18px) saturate(1.26); -webkit-backdrop-filter: blur(18px) saturate(1.26); }
    .edit-modal-overlay { backdrop-filter: blur(8px) saturate(1.08); -webkit-backdrop-filter: blur(8px) saturate(1.08); }
    .edit-modal > h3 { padding: 1.4rem 1.4rem 0.85rem; }
    #editModalBody { padding: 0.95rem 0.95rem 0.3rem 1.4rem; }
    .edit-modal .btn-row { padding: 0.95rem 1.4rem 1.15rem; }
    /* 一整行 12 个在手机上太小点不准 → 塌成两整行，照样左右铺满 */
    .grad-picker { grid-template-columns: repeat(6, 1fr); }
    .color-picker { grid-template-columns: repeat(5, 1fr); }
}
/* 自增高 textarea（标题/内容共用）：不显滚动条、不可手动拖拽，高度由 JS 随内容增长；min-height 走内联 style */
.form-group textarea.cf-autoarea { resize: none; overflow: hidden; line-height: 1.5; }
.btn-edit { background: #f5f5f5; color: var(--text-main); font-size: 0.8rem; padding: 0.4rem 1rem; }
.btn-edit:hover { background: var(--accent-pink); color: white; }

/* ── Swatch pickers：等分弹性格铺满整行（桌面 12 渐变/10 纯色各一整行，
 * 移动端塌成两整行），左右顶满不留空。糖果质感：发丝白边 + 顶部高光，
 * 选中 = 白隔圈 + 粉环 + ✓ ── */
.grad-picker { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 0.45rem; }
.color-picker { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 0.45rem; }
.grad-swatch, .color-swatch {
    position: relative;
    width: auto;
    aspect-ratio: 1;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        0 2px 5px rgba(78, 66, 62, 0.07);
    transition: transform .18s var(--spring), box-shadow .18s;
    flex-shrink: 0;
}
.grad-swatch:hover:not(.selected), .color-swatch:hover:not(.selected) { transform: scale(1.12); }
.grad-swatch.selected, .color-swatch.selected {
    transform: scale(1.08);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        0 0 0 2px #fff,
        0 0 0 3.5px var(--accent-pink),
        0 3px 10px rgba(255, 183, 178, 0.35);
}
.grad-swatch.selected::after, .color-swatch.selected::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}
.grad-swatch.selected::after { color: #fff; text-shadow: 0 1px 3px rgba(78, 66, 62, 0.35); }
.color-swatch.selected::after { color: rgba(82, 68, 62, 0.6); }

/* 碎碎念发布前预览卡（弹窗内，复用首页 .card，约束宽度居中） */
.cf-label-hint { font-size: 0.68rem; color: #c4aaa5; font-weight: 400; margin-left: 0.3rem; }

/* 碎碎念编辑实时预览：窄屏=折叠（toggle 控制），宽屏=左右并排常驻 */
.cf-layout { display: block; }
.cf-editor { min-width: 0; }
.cf-preview-label { font-size: 0.72rem; color: #c4aaa5; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.cf-live-preview { display: none; margin-top: 1rem; }
.cf-live-preview.open { display: block; }
.cf-preview-host { display: flex; justify-content: center; }
.cf-preview-host .card.cf-preview-card { width: 100%; max-width: 300px; pointer-events: none; }  /* 预览卡静态、不响应 hover/点击 */
.cf-preview-toggle { width: 100%; margin-top: 0.3rem; }

@media (min-width: 880px) {
    .edit-modal.cf-wide { max-width: 940px; }
    .cf-wide .cf-layout { display: flex; gap: 1.5rem; align-items: flex-start; }
    .cf-wide .cf-editor { flex: 1 1 auto; }
    .cf-wide .cf-live-preview { display: block; flex: 0 0 300px; position: sticky; top: 0; margin-top: 0; }
    .cf-wide .cf-preview-toggle { display: none; }   /* 宽屏预览常驻，不需要折叠钮 */
}

/* 地点自动补全：替代原生 datalist，风格对齐 .custom-select */
.loc-autocomplete { position: relative; }
.loc-suggest {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: white; border: 1.5px solid #eee; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 50; overflow: hidden;
    animation: bpPickerFadeIn 0.15s ease;
}
.loc-suggest.open { display: block; }
.loc-suggest-item {
    padding: 0.6rem 1rem; cursor: pointer; display: flex; align-items: center;
    gap: 0.5rem; font-size: 0.92rem; transition: background 0.15s; color: var(--text-main);
}
.loc-suggest-item:hover { background: #fff5f5; }

/* ── Custom select dropdown ── */
.custom-select { position: relative; }
.custom-select-btn {
    width: 100%; padding: 0.7rem 1rem; border: 1.5px solid #eee;
    border-radius: 10px; background: white; font-family: inherit;
    font-size: 0.95rem; cursor: pointer; display: flex; align-items: center;
    gap: 0.5rem; transition: all 0.3s;
}
.custom-select-btn:hover { border-color: var(--accent-pink); }
.custom-select.open .custom-select-btn { border-color: var(--accent-pink); }
.custom-select-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.custom-select-text { flex: 1; text-align: left; color: var(--text-main); }
.custom-select-arrow { color: var(--accent-pink); font-size: 0.85rem; transition: transform 0.2s; }
.custom-select.open .custom-select-arrow { transform: rotate(180deg); }
.custom-select-dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: white; border: 1.5px solid #eee; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 50; overflow: hidden;
    animation: bpPickerFadeIn 0.15s ease;
}
.custom-select.open .custom-select-dropdown { display: block; }
.custom-select-option {
    padding: 0.6rem 1rem; cursor: pointer; display: flex; align-items: center;
    gap: 0.5rem; font-size: 0.92rem; transition: background 0.15s;
}
.custom-select-option:hover { background: #fff5f5; }
.custom-select-option.selected { color: var(--accent-pink); font-weight: 500; }
.cs-emoji { font-size: 0.95rem; line-height: 1; flex-shrink: 0; }
/* custom-select 下拉是 absolute，打开时让弹窗外层 + 内层滚动层都不裁切 */
.edit-modal.cs-active { overflow: visible; }
.edit-modal.cs-active #editModalBody { overflow: visible; }

/* ── Number stepper ── */
.num-stepper { display: inline-flex; align-items: center; border: 1.5px solid #eee; border-radius: 10px; overflow: hidden; }
.num-step { width: 36px; height: 36px; border: none; background: transparent; font-size: 1.1rem; color: var(--accent-pink); cursor: pointer; transition: background .15s; font-family: inherit; line-height: 1; flex-shrink: 0; }
.num-step:hover { background: #fff0ef; transform: scale(1.05); }
.num-stepper input[type=number] { width: 48px; height: 36px; border: none; border-left: 1.5px solid #eee; border-right: 1.5px solid #eee; text-align: center; font-family: inherit; font-size: 0.95rem; background: white; -moz-appearance: textfield; padding: 0; }
.num-stepper input[type=number]::-webkit-inner-spin-button,
.num-stepper input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; display: none; }
.num-stepper input[type=number]:focus { outline: none; }

/* ── Expanded emoji picker ── */
.emoji-picker-recommended { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.emoji-more-btn { height: 40px; padding: 0 0.8rem; border: 2px dashed #eee; border-radius: 10px; background: white; font-size: 0.8rem; color: var(--text-light); cursor: pointer; transition: all 0.2s; white-space: nowrap; font-family: inherit; }
.emoji-more-btn:hover { border-color: var(--accent-pink); color: var(--accent-pink); transform: translateY(-1px); }
.emoji-more-btn.open { border-style: solid; border-color: var(--accent-pink); background: #fff5f5; color: var(--accent-pink); }
.emoji-expanded-panel { border: 1.5px solid #eee; border-radius: 12px; padding: 0.7rem; margin-top: 0.5rem; background: white; }
.emoji-search { width: 100%; padding: 0.5rem 0.8rem; border: 1.5px solid #eee; border-radius: 8px; font-family: inherit; font-size: 0.88rem; margin-bottom: 0.5rem; box-sizing: border-box; }
.emoji-search:focus { outline: none; border-color: var(--accent-pink); }
.emoji-cat-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.emoji-cat { padding: 0.2rem 0.6rem; border: 1.5px solid #eee; border-radius: 15px; background: white; font-size: 0.78rem; cursor: pointer; font-family: inherit; color: var(--text-light); transition: all 0.15s; white-space: nowrap; }
.emoji-cat.active { border-color: var(--accent-pink); background: #fff5f5; color: var(--text-main); }
/* padding 给边缘 emoji 放大/选中阴影留出呼吸空间，避免被滚动容器裁切 */
.emoji-cat-grid { display: flex; flex-wrap: wrap; gap: 0.35rem; max-height: 190px; overflow-y: auto; padding: 6px; }
.emoji-cat-grid .emoji-option { width: 36px; height: 36px; font-size: 1.2rem; }

/* ── About editor ── */
.journey-edit-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; background: #fafafa; border-radius: 8px; margin-bottom: 0.4rem; }
.journey-edit-info { flex: 1; font-size: 0.85rem; min-width: 0; }
.journey-edit-year { color: var(--accent-pink); font-size: 0.78rem; font-weight: 500; }
.journey-edit-title { color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey-edit-btns { display: flex; gap: 0.3rem; flex-shrink: 0; }
.journey-edit-btns button { padding: 0.2rem 0.6rem; border-radius: 8px; border: none; font-size: 0.75rem; cursor: pointer; font-family: inherit; }
.je-edit { background: #e8f5e9; color: #2e7d32; transition: all 0.15s; }
.je-edit:hover { background: #c8e6c9; transform: translateY(-1px); }
.je-del { background: #ffe0e0; color: #e74c3c; transition: all 0.15s; }
.je-del:hover { background: #ffcdd2; transform: translateY(-1px); }
/* Skill tags — WYSIWYG editor matching about.html display */
.skill-tag { padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.82rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.3rem; }
.skill-tag.s1 { background: #ffe0e0; color: #e74c3c; }
.skill-tag.s2 { background: #d4edda; color: #27ae60; }
.skill-tag.s3 { background: #d6eaf8; color: #2980b9; }
.skill-tag.s4 { background: #fdebd0; color: #e67e22; }
.skill-tag.s5 { background: #e8daef; color: #8e44ad; }
.skill-tag.s6 { background: #d5f5e3; color: #1abc9c; }
.skill-tags-editor {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
    padding: 0.6rem; border: 1.5px solid #f0f0f0; border-radius: 12px;
    min-height: 44px; transition: border-color 0.2s; cursor: text;
}
.skill-tags-editor:focus-within { border-color: var(--accent-pink); }
.skill-tags-editor .skill-tag { cursor: default; user-select: none; transition: opacity 0.2s; }
.skill-tags-editor .skill-tag:hover { opacity: 0.8; }
.skill-tags-editor .skill-tag .skill-x {
    font-size: 0.65rem; opacity: 0.4; cursor: pointer; margin-left: 2px;
}
.skill-tags-editor .skill-tag .skill-x:hover { opacity: 1; }
.skill-add-input {
    border: none; outline: none; font-family: inherit;
    font-size: 0.82rem; padding: 0.3rem 4px; min-width: 120px;
    flex: 1; background: transparent; color: var(--text-main);
}
.skill-add-input::placeholder { color: #ccc; }
.ae-avatar-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.ae-avatar-inputs input {
    text-align: center;
    font-size: 1.35rem;
    min-height: 48px;
    padding: 0.45rem 0.6rem;
}
.ae-skill-editor {
    border: 1px solid rgba(236,228,220,0.8);
    background: rgba(255,255,255,0.7);
    border-radius: 18px;
    padding: 0.85rem;
}
.ae-skill-chip-row {
    cursor: default;
    border-color: rgba(236,228,220,0.9);
    background: rgba(250,250,250,0.52);
    min-height: 56px;
}
.ae-skill-empty {
    color: #bbb;
    font-size: 0.82rem;
    padding: 0.35rem 0.2rem;
}
.ae-skill-edit-chip {
    padding: 0.25rem 0.28rem 0.25rem 0.78rem;
    border-radius: 999px;
    gap: 0.35rem;
}
.ae-skill-edit-chip .ae-skill-chip-input {
    width: 9.5rem;
    max-width: 38vw;
    min-width: 4.5rem;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0.16rem 0;
}
.ae-skill-remove {
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.64);
    color: currentColor;
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 600;
    padding: 0.12rem 0.42rem;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.16s, background 0.16s, transform 0.16s;
}
.ae-skill-remove:hover {
    opacity: 1;
    background: rgba(255,255,255,0.92);
    transform: translateY(-1px);
}
.ae-skill-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.75rem;
}
.ae-skill-add-row .skill-add-input {
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border: 1.5px solid #eee;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
}
.ae-skill-add-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: var(--accent-pink);
    color: #fff;
    font-family: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255,183,178,0.28);
    transition: transform 0.16s, box-shadow 0.16s;
}
.ae-skill-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255,183,178,0.34);
}
.about-add-journey { background: #fafafa; border: 1.5px dashed #ddd; border-radius: 10px; padding: 0.8rem; margin-top: 0.5rem; }

/* ── Photo management: pagination & filters ── */
.photo-toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.photo-toolbar .date-input-wrap { flex: 0 0 auto; }
/* 与其他日期框（.form-group input）风格对齐：inherit 字体（否则 "Jun 2026" 走浏览器默认字体）
   + 暖中性玻璃边框/底/内阴影 + 同款聚焦态；仅保留 toolbar 紧凑尺寸（小字号/定宽/图标留白）*/
.photo-toolbar .date-input-wrap input {
    font-family: inherit;
    font-size: 0.82rem;
    padding: 0.4rem 2.2rem 0.4rem 0.8rem;
    width: 150px;
    border: 1.5px solid rgba(236, 228, 220, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
    color: var(--text-main);
    transition: border-color 0.3s, background 0.25s;
}
.photo-toolbar .date-input-wrap input:focus { outline: none; border-color: var(--accent-pink); background: rgba(255, 255, 255, 0.88); }
.photo-tag-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; flex: 1; }
.photo-tag-pill { padding: 0.25rem 0.7rem; border: 1.5px solid #eee; border-radius: 15px; font-size: 0.75rem; cursor: pointer; background: white; transition: all 0.2s; font-family: inherit; color: var(--text-light); }
.photo-tag-pill:hover, .photo-tag-pill.active { border-color: var(--accent-pink); color: var(--accent-pink); background: #fff5f5; transform: translateY(-1px); }
.photo-pagination { display: flex; justify-content: center; gap: 0.3rem; margin-top: 1rem; }
.photo-page-btn { width: 32px; height: 32px; border: 1.5px solid #eee; border-radius: 8px; background: white; font-family: inherit; font-size: 0.82rem; cursor: pointer; transition: all 0.2s; color: var(--text-light); display: flex; align-items: center; justify-content: center; }
.photo-page-btn:hover { border-color: var(--accent-pink); color: var(--accent-pink); transform: translateY(-1px); }
.photo-page-btn.active { border-color: var(--accent-pink); background: #fff5f5; color: var(--accent-pink); font-weight: 500; }
.photo-page-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.empty-hint { text-align: center; color: #ccc; font-size: 0.88rem; padding: 2rem 0; }

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .admin-container { padding: 1rem; }
    .admin-top-bar { flex-wrap: wrap; gap: 0.5rem; }
    .petal { display: none; }
    /* 导航：手机横向滚动（不换行）、隐藏滚动条、从左开始 */
    /* 移动端不横向拉：5 个标签居中换行成两行；隐藏「主页/素材/页面」分组标签与分隔 */
    .tab-nav { gap: 0.45rem; padding: 0.7rem 0.8rem; flex-wrap: wrap; overflow: visible; justify-content: center; }
    .tab-group { display: contents; }                /* 组容器不占布局 → 按钮直接在 tab-nav 里居中换行 */
    .tab-group::before { display: none; }            /* 隐藏分组标签 */
    .tab-group + .tab-group { border-left: none; padding-left: 0; }
    .tab-btn { padding: 0.42rem 0.9rem; font-size: 0.8rem; flex-shrink: 0; }
    .se-pills { gap: 0.3rem; }
    .form-card { padding: 1.3rem; }
    /* 输入字号≥16px，避免 iOS 聚焦时整页放大 */
    .form-group input, .form-group textarea, .form-group select { font-size: 16px; }
}

/* ── Status editor (💬 状态 tab) — reuses .form-card / .admin-pill / .existing-item / .skill-tags-editor ── */
.se-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.se-row-label { font-size: 0.75rem; color: var(--text-light); margin: 0.6rem 0 0.35rem; }
.se-group-label { font-weight: 500; font-size: 0.82rem; color: #999; margin: 0.9rem 0 0.4rem; padding-left: 0.15rem; }
/* 关心语：每个天气桶一张毛玻璃分组卡，清爽分区 */
.se-care-group { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 0.8rem 1rem 0.9rem; margin-bottom: 0.85rem; }
.se-care-group .se-group-label { margin-top: 0; }
.se-care-group .existing-item { margin-bottom: 0.4rem; }
.se-empty { color: #ccc; text-align: center; font-size: 0.85rem; padding: 0.9rem; }
.se-hint { font-size: 0.74rem; color: #bbb; margin: 0.3rem 0 0.6rem; line-height: 1.6; }
.se-hint code { background: #f3f3f3; border-radius: 5px; padding: 0.05rem 0.3rem; font-size: 0.92em; color: #888; }
.se-mood { display: inline-flex; align-items: center; gap: 0.3rem; }
.se-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
/* mood/cond 下拉直接复用 .form-group select 的既有样式，无需额外样式 */

/* ══ 📋 内容：主页式实时编辑（live-edit.js）══ */
@media (max-width: 700px) {
    .ae-skill-edit-chip .ae-skill-chip-input { max-width: 48vw; font-size: 16px; }
}

.ae-page-head {
    max-width: 940px;
    margin: 0 auto 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #eadfd6;
}
.ae-page-head.ae-home-head {
    margin-bottom: 1.15rem;
}
.ae-page-head h2 {
    font-size: 1.45rem;
    margin: 0.1rem 0 0.3rem;
}
.ae-page-head p,
.ae-card-head p {
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 0;
}
.ae-kicker {
    display: inline-flex;
    color: var(--accent-pink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}
.ae-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1.5px solid #f5f5f5;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.ae-card-head h3 {
    border: none;
    padding: 0;
    margin: 0 0 0.25rem;
}
.ae-canvas-card { max-width: 940px; margin-left: auto; margin-right: auto; }
.ae-upload-panel { max-width: 940px; margin-left: auto; margin-right: auto; }
#tab-photos .ae-upload-panel,
#tab-photos .ae-canvas-card {
    background:
        radial-gradient(circle at 9% 0%, rgba(255,183,178,0.07), transparent 38%),
        radial-gradient(circle at 92% 10%, rgba(168,230,207,0.06), transparent 42%),
        var(--liquid-bg);
    border: none;
    box-shadow: var(--liquid-shadow);
    backdrop-filter: var(--liquid-filter);
    -webkit-backdrop-filter: var(--liquid-filter);
}
#tab-photos .ae-upload-panel {
    background:
        radial-gradient(circle at 12% 0%, rgba(255,183,178,0.07), transparent 40%),
        var(--liquid-bg);
}
#tab-photos .photo-toolbar,
#tab-photos .photo-group-section {
    background:
        var(--liquid-bg-soft);
    border: none;
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: var(--liquid-shadow);
    backdrop-filter: var(--liquid-filter-soft);
    -webkit-backdrop-filter: var(--liquid-filter-soft);
}
.ae-view-switcher {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    flex-shrink: 0;
}
.ae-view-switcher .view-btn {
    min-height: 34px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid #ece4dc;
    background: rgba(255,255,255,0.72);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
    box-shadow: none;
    transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.ae-view-switcher .view-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255,183,178,0.15);
}
.ae-view-switcher .view-btn.active {
    border-color: var(--accent-pink);
    background: #fff5f5;
    color: var(--text-main);
}

.ae-editable {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    transition: box-shadow 0.18s, transform 0.18s, background-color 0.18s;
    outline: none;
}
.ae-editable:hover {
    box-shadow: 0 8px 22px rgba(255, 183, 178, 0.10), inset 0 1px 1px rgba(255,255,255,0.72);
}
.ae-editable::after {
    content: '✎ ' attr(data-ae-label);
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.72);
    background:
        radial-gradient(circle at 24% 18%, rgba(255,255,255,0.92), transparent 44%),
        linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.42));
    color: rgba(255, 139, 139, 0.94);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.16s, transform 0.16s;
    pointer-events: none;
    z-index: 5;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.78),
        inset 0 -1px 1px rgba(255,183,178,0.10),
        0 6px 18px rgba(255,183,178,0.18);
    backdrop-filter: blur(12px) saturate(1.12);
    -webkit-backdrop-filter: blur(12px) saturate(1.12);
    text-shadow:
        0 1px 0 rgba(255,255,255,0.82),
        0 0 10px rgba(255,255,255,0.62);
}
.ae-editable:hover::after { opacity: 1; transform: translateY(0); }
.card.ae-editable:hover {
    box-shadow: var(--liquid-shadow-hover), var(--liquid-rim);
}
.card.ae-editable::after {
    right: 1rem;
    bottom: 1rem;
    left: auto;
    top: auto;
    z-index: 9;
}
.ae-controls {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: flex;
    gap: 0.35rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.16s, transform 0.16s;
    z-index: 8;
}
.ae-editable:hover > .ae-controls { opacity: 1; transform: translateY(0); }
.ae-ctrl {
    min-width: 42px;
    height: 30px;
    padding: 0 0.7rem;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: var(--accent-pink);
    font-size: 0.72rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ae-del:hover { background: #e8847c; color: #fff; }
.ae-empty {
    padding: 1.4rem;
    text-align: center;
    color: #bbb;
    background: #fafafa;
    border: 1px dashed #eee;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* About live canvas */
.ae-about-canvas { max-width: 940px; margin: 0 auto; }
.ae-about-canvas .about-hero {
    max-width: none;
    box-sizing: border-box;
    padding: 2.4rem 1rem 2rem;
    background:
        radial-gradient(circle at 28% 22%, rgba(255,183,178,0.09), transparent 38%),
        radial-gradient(circle at 72% 24%, rgba(168,230,207,0.09), transparent 40%),
        var(--liquid-bg);
    backdrop-filter: var(--liquid-filter); -webkit-backdrop-filter: var(--liquid-filter);
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: var(--liquid-shadow);
}
.ae-about-canvas .about-hero.ae-editable {
    padding-right: 1.2rem;
}
.ae-about-canvas .about-card {
    border: none;
    box-shadow: var(--liquid-shadow);
    background:
        var(--liquid-bg);
    backdrop-filter: var(--liquid-filter); -webkit-backdrop-filter: var(--liquid-filter);
}
.ae-about-canvas .ae-about-bios {
    background:
        radial-gradient(circle at 10% 12%, rgba(255,183,178,0.08), transparent 36%),
        var(--liquid-bg);
}
.ae-about-canvas .ae-about-journey-card {
    background:
        radial-gradient(circle at 92% 10%, rgba(168,230,207,0.09), transparent 38%),
        var(--liquid-bg);
}
.ae-about-canvas .ae-about-skills-card {
    background:
        radial-gradient(circle at 12% 18%, rgba(214,234,248,0.10), transparent 40%),
        radial-gradient(circle at 88% 18%, rgba(255,183,178,0.06), transparent 36%),
        var(--liquid-bg);
}
.ae-about-canvas .ae-about-fun-card {
    background:
        radial-gradient(circle at 85% 12%, rgba(255,224,178,0.10), transparent 38%),
        var(--liquid-bg);
}
.ae-about-canvas .fun-item {
    background:
        radial-gradient(circle at 86% 8%, rgba(255,183,178,0.08), transparent 42%),
        var(--liquid-bg-soft);
    border: none;
    box-shadow: var(--liquid-shadow);
}
.ae-about-canvas .fun-item:nth-child(2n) {
    background:
        radial-gradient(circle at 88% 10%, rgba(168,230,207,0.09), transparent 42%),
        var(--liquid-bg-soft);
}
.ae-about-canvas .fun-item:nth-child(3n) {
    background:
        radial-gradient(circle at 88% 10%, rgba(214,234,248,0.10), transparent 42%),
        var(--liquid-bg-soft);
}
.ae-about-canvas .fun-item:nth-child(4n) {
    background:
        radial-gradient(circle at 86% 8%, rgba(255,224,178,0.10), transparent 42%),
        var(--liquid-bg-soft);
}
.ae-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ae-section-title h2 { margin: 0; }
.ae-bio-line { padding: 0.55rem 0.7rem; border-radius: 12px; }
.ae-about-skills-card .skill-tags { min-height: 2.5rem; }
/* 技能区整块可点：给 hover 粉环和 chips 之间留出呼吸，负 margin 抵消占位（静息排版不变） */
#aboutLiveSkills.ae-editable {
    padding: 0.65rem 0.7rem;
    margin: -0.65rem -0.7rem;
    border-radius: 14px;
}

/* Gallery admin canvas */
.photo-view-timeline,
.photo-view-location {
    display: block;
}
.photo-group-section {
    margin-bottom: 1.6rem;
}
.photo-group-section h4 {
    font-size: 0.92rem;
    color: var(--accent-pink);
    margin: 0 0 0.7rem;
    padding-left: 0.2rem;
}
.photo-view-location .photo-group-section h4 { color: #52c7a0; }
.photo-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
}
.photo-group-grid .photo-tile { aspect-ratio: 1; }

/* Settings contextual editor */
.settings-live-canvas { max-width: 940px; margin: 0 auto; }
.settings-hero-preview {
    min-height: 260px;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 183, 178, 0.10), transparent 40%),
        radial-gradient(circle at 82% 28%, rgba(168, 230, 207, 0.10), transparent 40%),
        var(--liquid-bg);
    border: none;
    box-shadow: var(--liquid-shadow);
    backdrop-filter: var(--liquid-filter); -webkit-backdrop-filter: var(--liquid-filter);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.settings-preview-label {
    font-size: 0.72rem;
    color: var(--accent-pink);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.settings-hero-preview h1 { font-size: 2.1rem; margin: 0 0 0.75rem; }
.settings-hero-preview p { color: var(--text-light); line-height: 1.8; max-width: 620px; margin: 0 auto; }
.settings-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.settings-mini-card {
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 8%, rgba(255,224,178,0.08), transparent 42%),
        var(--liquid-bg-soft);
    border: none;
    backdrop-filter: var(--liquid-filter-soft); -webkit-backdrop-filter: var(--liquid-filter-soft);
    padding: 1.2rem;
    box-shadow: var(--liquid-shadow);
}
.settings-mini-card:nth-child(2n) {
    background:
        radial-gradient(circle at 88% 8%, rgba(214,234,248,0.10), transparent 42%),
        var(--liquid-bg-soft);
}
.settings-mini-card span {
    display: block;
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
}
.settings-mini-card strong { font-size: 1rem; color: var(--text-main); }

/* Status Lab */
.status-lab {
    max-width: 940px;
    margin: 0 auto 1.3rem;
}
.status-lab .ae-page-head { max-width: none; }
.status-lab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.status-preview-card {
    background:
        radial-gradient(circle at 10% 0%, rgba(255,183,178,0.06), transparent 42%),
        var(--liquid-bg-soft);
    border: none;
    backdrop-filter: var(--liquid-filter-soft); -webkit-backdrop-filter: var(--liquid-filter-soft);
    border-radius: 18px;
    padding: 1.05rem 1.1rem;
    box-shadow: var(--liquid-shadow);
    min-height: 126px;
}
.status-preview-card:nth-child(2n) {
    background:
        radial-gradient(circle at 88% 8%, rgba(168,230,207,0.07), transparent 42%),
        var(--liquid-bg-soft);
}
.sl-label {
    display: inline-flex;
    color: var(--accent-pink);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}
.sl-main {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.62;
}
.sl-quote {
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 500;
}
.sl-meta {
    color: var(--text-light);
    font-size: 0.74rem;
    line-height: 1.5;
    margin-top: 0.65rem;
}

/* Status editor: compact, same canvas width as the previews */
#tab-status .status-lab,
#tab-status .se-subnav,
#tab-status .se-panel {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}
#tab-status .se-subnav { margin-bottom: 1rem; }
#tab-status .form-card {
    background:
        radial-gradient(circle at 8% 0%, rgba(255,183,178,0.06), transparent 40%),
        radial-gradient(circle at 92% 12%, rgba(168,230,207,0.06), transparent 42%),
        var(--liquid-bg);
    border: none;
    backdrop-filter: var(--liquid-filter); -webkit-backdrop-filter: var(--liquid-filter);
    border-radius: 22px;
    padding: 1.55rem;
    box-shadow: var(--liquid-shadow);
}
#tab-status .se-head {
    border-bottom-color: rgba(236,228,220,0.76);
    margin-bottom: 0.95rem;
}
#tab-status .se-selectbar {
    background:
        radial-gradient(circle at 96% 8%, rgba(168,230,207,0.06), transparent 42%),
        var(--liquid-bg-soft);
    border: none;
    border-radius: 18px;
    padding: 0.9rem 1rem 0.65rem;
    margin-bottom: 1rem;
    box-shadow: var(--liquid-shadow);
}
#tab-status .se-pills {
    gap: 0.48rem;
    margin-bottom: 0.55rem;
}
#tab-status .se-row-label {
    margin: 0.55rem 0 0.35rem;
}
#tab-status .se-selectbar .se-row-label:first-child {
    margin-top: 0;
}
#tab-status .existing-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}
#tab-status .se-editable-row {
    position: relative;
    display: block;
    min-height: 98px;
    margin-bottom: 0;
    padding: 1rem 5.2rem 2.1rem 1rem;
    background:
        radial-gradient(circle at 96% 8%, rgba(255,224,178,0.07), transparent 42%),
        var(--liquid-bg-soft);
    border: none;
    border-radius: 18px;
    box-shadow: var(--liquid-shadow);
}
#tab-status .se-editable-row .item-info {
    min-width: 0;
}
#tab-status .se-editable-row .item-title {
    font-size: 0.92rem;
    line-height: 1.5;
}
#tab-status .se-editable-row .item-meta {
    margin-top: 0.4rem;
    line-height: 1.55;
}
#tab-status .se-editable-row .ae-row-actions {
    position: absolute;
    top: 0.82rem;
    right: 0.82rem;
}
#tab-status .se-editable-row::after {
    right: 0.82rem;
    bottom: 0.78rem;
    transform: translateY(4px);
}
#tab-status .se-editable-row:hover::after {
    transform: translateY(0);
}
#tab-status .se-empty {
    grid-column: 1 / -1;
}
#tab-status .se-care-group {
    background:
        radial-gradient(circle at 8% 0%, rgba(194,233,251,0.06), transparent 42%),
        var(--liquid-bg-soft);
    border: none;
    border-radius: 18px;
    box-shadow: var(--liquid-shadow);
}

.le-section { margin-bottom: 2.4rem; }
.le-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; padding-bottom: 0.6rem; border-bottom: 1px dashed #ececec; }
.le-section-head .section-title { margin: 0; }
.le-add { flex-shrink: 0; border: none; background: var(--accent-pink); color: #fff; font-size: 0.82rem; font-weight: 500; padding: 0.45rem 1.05rem; border-radius: 999px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 3px 10px rgba(255, 183, 178, 0.4); white-space: nowrap; }
.le-add:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(255, 183, 178, 0.55); }
.le-add:active { transform: translateY(0); }
.le-empty { color: #ccc; text-align: center; font-size: 0.88rem; padding: 1.6rem; }

/* 悬浮编辑/删除控件 */
.le-item { position: relative; cursor: pointer; border-radius: 16px; }   /* 整卡可点编辑 */
.le-controls { position: absolute; top: 0.65rem; right: 0.65rem; display: flex; gap: 0.4rem; opacity: 0; transform: translateY(-4px); transition: opacity 0.18s, transform 0.18s; z-index: 6; pointer-events: none; }
.le-item:hover > .le-controls, .le-item:focus-within > .le-controls { opacity: 1; transform: translateY(0); pointer-events: auto; }
.le-ctrl { min-width: 42px; height: 30px; padding: 0 0.7rem; border-radius: 999px; border: none; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.94); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16); transition: transform 0.12s, background 0.15s, color 0.15s; font-family: inherit; font-size: 0.72rem; font-weight: 600; }
.le-ctrl:hover { transform: scale(1.12); }
.le-del { color: #e8847c; }
.le-del:hover { background: #e8847c; color: #fff; }

.card.ae-editable,
.rec-card.ae-editable,
.timeline-content.ae-editable { border-radius: 16px; }
.timeline-content.ae-editable { padding-right: 5rem; }
.rec-card.ae-editable { padding-right: 5rem; }
.journey-item.ae-editable {
    border-radius: 16px;
    padding: 0.85rem 5rem 0.9rem 1rem;
    margin-left: -1rem;
}
.journey-item.ae-editable::before { left: calc(-2.5rem + 2px + 1rem); }
.se-editable-row { padding-right: 0.8rem; }
.se-editable-row::after { bottom: 50%; transform: translateY(50%); right: 4.4rem; }
.se-editable-row:hover::after { transform: translateY(50%); }
.ae-row-actions { flex-shrink: 0; display: flex; align-items: center; gap: 0.45rem; }
.ae-row-delete {
    border: none;
    border-radius: 999px;
    background: #fff0ef;
    color: #e8847c;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.34rem 0.75rem;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, transform 0.16s;
}
.ae-row-delete:hover { background: #e8847c; color: #fff; transform: translateY(-1px); }

/* ── 新版 / 经典版 双模式：内容管理 tab 二选一显示，共用 tab 始终在 ── */
/* 新版（默认）：藏起经典版的 碎碎念/动态/推荐/管理 */
#admin-panel.mode-new .tab-legacy { display: none; }
/* 经典版：藏起新版的 📋 内容 */
#admin-panel.mode-classic .tab-new { display: none; }

/* 顶栏「经典版 / 回到新版」切换入口 —— 复用 .admin-pill，加一点强调 */
.mode-toggle-pill { border-color: var(--accent-pink); color: #c98; background: #fff7f6; }
.mode-toggle-pill:hover { background: var(--accent-pink); color: #fff; }
#admin-panel.mode-classic .mode-toggle-pill { border-color: #c9b3e6; color: #8a6db5; background: #f7f3fc; }
#admin-panel.mode-classic .mode-toggle-pill:hover { background: #c9b3e6; color: #fff; }

/* 移动端 / 触屏：控件常驻，且给条目留出右侧空间避免压字 */
@media (hover: none) {
    .ae-editable > .ae-controls { opacity: 1; transform: none; pointer-events: auto; }
    .le-controls { opacity: 1; transform: none; pointer-events: auto; }
    .le-section .rec-card { padding-right: 2.8rem; }
    .le-section .timeline-content { padding-right: 2.6rem; }
    #tab-status .se-editable-row::after { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
    #tab-status .existing-list { grid-template-columns: 1fr; }
    #tab-status .form-card { padding: 1.2rem; border-radius: 18px; }
    #tab-status .se-editable-row { padding-right: 4.8rem; }
}
@media (max-width: 600px) {
    .le-section-head { flex-wrap: wrap; }
    .le-controls { opacity: 1; transform: none; pointer-events: auto; }
    .ae-page-head,
    .ae-card-head { align-items: stretch; flex-direction: column; }
    .ae-view-switcher { justify-content: flex-start; flex-wrap: wrap; }
    .settings-meta-grid,
    .status-lab-grid { grid-template-columns: 1fr; }
    .settings-hero-preview { min-height: 220px; padding: 2rem 1.2rem; }
    .settings-hero-preview h1 { font-size: 1.65rem; }
    .ae-controls,
    .ae-editable::after { opacity: 1; transform: none; }
    #tab-status .se-editable-row { padding: 0.95rem 0.95rem 2.3rem; }
    #tab-status .se-editable-row .ae-row-actions { top: auto; right: 0.75rem; bottom: 0.72rem; }
    #tab-status .se-editable-row::after { right: auto; left: 0.95rem; bottom: 0.82rem; }
}
