/* --- Settings 应用：资料卡 + 原生设置列表（沿用小手机自身的浅色细线风格） --- */
#settings-screen .settings-app-content {
    padding: 0;
    background: #f7f7f8;
}

/* 顶部资料卡：整体按原来的 ~65% 等比收窄，内部元素同比例缩小，保持匀称 */
.settings-profile-card {
    position: relative;
    margin: 9px 14px 0;
    padding: 8px 12px 12px;
    background: #fff;              /* 纯色，不要方格/点阵 */
    border-radius: 13px;
    box-shadow: 0 1px 9px rgba(0, 0, 0, .045);
    overflow: hidden;
}

.settings-sheet-handle {
    width: 30px;
    height: 3px;
    border-radius: 3px;
    background: #dedbde;
    margin: 0 auto 10px;
}

.settings-card-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #E8A8C8;
    cursor: pointer;
}
.settings-card-close svg { width: 14px; height: 14px; display: block; }

.settings-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.settings-avatar-btn {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: none;
    border-radius: 50%;
    background: #efecef;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.settings-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.settings-avatar-btn.has-image img { display: block; }
.settings-avatar-btn.has-image .settings-avatar-placeholder { display: none; }
.settings-avatar-placeholder {
    font-size: 17px;
    font-weight: 300;
    line-height: 1;
    color: #c8c2c8;
}

.settings-identity {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.settings-edit-field { cursor: pointer; }
.settings-profile-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #8E8A8F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.settings-profile-handle {
    font-size: 11px;
    color: #A7A3A8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-profile-bio {
    margin: 3px 0 4px;
    min-width: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #F6D5EC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-card-divider {
    border: 0;
    border-top: 1px dashed #CBC7CB;
    margin: 0 0 10px;
}

.settings-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.settings-decor-icons {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #E8A8C8;
    pointer-events: none;   /* 仅装饰，点不开 */
    flex-shrink: 0;
}
.settings-decor-icons svg { width: 14px; height: 14px; display: block; }

/* 按钮：Publish → Settings，背景换成与正文一致的淡粉，字用不刺眼的深灰 */
.settings-publish-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: #F6D5EC;
    color: #6B666C;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 17px;
    cursor: pointer;
}
.settings-publish-btn:active { opacity: .82; }

/* 文字编辑浮层 */
.settings-edit-overlay {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .28);
}
.settings-edit-overlay.visible { display: flex; }
.settings-edit-box {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
.settings-edit-title { font-size: 14px; color: #8E8A8F; margin-bottom: 10px; }
.settings-edit-input {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    border: 1px solid #e8e6e8;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    color: #3a363a;
    box-sizing: border-box;
}
.settings-edit-actions { display: flex; gap: 10px; margin-top: 14px; }
.settings-edit-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}
.settings-edit-cancel { background: #f2f0f2; color: #6b676b; }
.settings-edit-save { background: #191919; color: #fff; }

/* 原生设置列表：行与行之间无空隙 */
.settings-list-title {
    padding: 18px 18px 8px;
    font-size: 12px;
    letter-spacing: .4px;
    color: #9a969a;
}
.settings-list-group {
    background: #fff;
    border-top: 1px solid #eceaec;
    border-bottom: 1px solid #eceaec;
}
.settings-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 13px 18px;
    background: #fff;
    cursor: pointer;
}
.settings-row + .settings-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 54px;
    right: 0;
    height: 1px;
    background: #f0eef0;
}
.settings-row:active { background: #faf8fa; }
.settings-row.is-toggle { cursor: default; }
.settings-row.is-toggle:active { background: #fff; }
.settings-row-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ED97C2;   /* 与第一行 API 图标同色，整列跟随粉色 */
}
.settings-row-icon svg { width: 22px; height: 22px; display: block; }
.settings-row-icon.is-api { color: #ED97C2; }
.settings-row-label {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #3a363a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.settings-row-arrow { flex-shrink: 0; color: #c4c0c4; font-size: 20px; line-height: 1; }

/* 深色模式开关（iOS 风格，开启色用淡粉，不刺眼） */
.settings-switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.settings-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.settings-switch-track {
    display: block;
    width: 42px;
    height: 25px;
    border-radius: 999px;
    background: #dedbde;
    transition: background .2s;
    position: relative;
}
.settings-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
    transition: transform .2s;
}
.settings-switch input:checked + .settings-switch-track { background: #E8A8C8; }
.settings-switch input:checked + .settings-switch-track::after { transform: translateX(17px); }

/* 备忘面板顶部：整理后的自用说明 */
.ovo-memo-intro {
    margin: 4px 0 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eceaec;
    border-radius: 14px;
}
.ovo-memo-intro-title { font-size: 16px; font-weight: 600; color: #8E8A8F; }
.ovo-memo-intro-sub { font-size: 12px; color: #a7a3a8; margin: 4px 0 12px; }
.ovo-memo-intro-row {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #f2f0f2;
    font-size: 13px;
    line-height: 1.5;
}
.ovo-memo-intro-row b { flex: 0 0 84px; font-weight: 600; color: #3a363a; }
.ovo-memo-intro-row span { flex: 1; min-width: 0; color: #7c787c; word-break: break-word; }

/* ===== 自用版：移除作者内置小组件，主屏只留应用网格 ===== */
/* DOM 保留（避免初始化脚本取不到节点），只在视觉上移除，零回归 */
#home-screen .home-widget-container,
#home-screen .app-grid-widget-container,
#home-screen .heart-photo-widget { display: none !important; }
#home-screen .app-grid {
    margin-top: 26px;
    height: auto;
    min-height: calc(100% - 150px);
    grid-template-rows: none;
    grid-auto-rows: minmax(84px, auto);
    align-content: start;
}
/* Storage 与 Studio 已各有归宿，空的 dock 不再占位 */
#home-screen .dock:empty { display: none; }
