/* 开口说 · 首页仪表盘 & 我的 */

.dash-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px 24px;
    flex-shrink: 0;
    width: 100%;
}

.dash-hero {
    text-align: center;
    padding: 8px 0 16px;
}

.dash-brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    user-select: none;
    margin: 0 0 12px;
    line-height: 1.15;
    background: linear-gradient(105deg, #6ee7b7 0%, #10b981 45%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: dashBrandIn 0.55s ease-out both;
}

.dash-tagline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 12px;
    max-width: 100%;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.5;
    color: var(--text-sub);
    animation: dashTagIn 0.65s 0.12s ease-out both;
}

.dash-tagline-lead {
    opacity: 0.85;
}

.dash-tagline-sep {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    animation: dashSepPulse 2.4s ease-in-out infinite;
}

.dash-tagline-trail {
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.dash-tagline-brand {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.dash-status {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

@keyframes dashBrandIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dashTagIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dashSepPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12); opacity: 0.85; }
    50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.22); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .dash-brand,
    .dash-tagline,
    .dash-tagline-sep {
        animation: none;
    }
}

.dash-next {
    margin-bottom: 16px;
}

.dash-next-skeleton {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.dash-next-card {
    background: var(--card);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 18px 16px 16px;
    text-align: left;
}

.dash-next-card.is-done {
    border-color: var(--border);
}

.dash-next-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dash-next-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.dash-next-msg {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.45;
}

.dash-next-bar {
    height: 6px;
    background: var(--btn-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 14px;
}

.dash-next-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

.dash-next-cta {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: var(--accent);
    color: #04140f;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 16px;
    border-radius: 12px;
}

.dash-next-cta:active {
    opacity: 0.9;
}

.dash-next-skip {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 4px;
    font-family: inherit;
}

.dash-meta-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dash-meta-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 12px;
    color: var(--text-sub);
    cursor: pointer;
    font-family: inherit;
    min-height: 56px;
}

.dash-meta-line {
    display: block;
    text-align: center;
    line-height: 1.3;
}

.dash-meta-chip strong {
    font-size: 16px;
    font-family: var(--mono);
    color: var(--accent);
    font-weight: 800;
}

.dash-meta-sub {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: var(--text-sub);
    opacity: 0.9;
    line-height: 1.3;
}

.dash-meta-sub strong {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text-main);
}

.dash-progress-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.dash-progress-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
}

.dash-progress-pill.done {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
}

.dash-progress-name {
    font-weight: 600;
    color: var(--text-main);
}

.dash-progress-num {
    font-size: 12px;
    color: var(--text-sub);
    font-variant-numeric: tabular-nums;
}

.dash-progress-pill.done .dash-progress-num {
    color: var(--accent);
    font-weight: 700;
}

.dash-recommend {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.dash-recommend.is-dismissed {
    display: none;
}

.dash-recommend-body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.dash-recommend-body p {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.4;
}

.dash-recommend-body a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.dash-rec-never {
    display: inline-block;
    margin-top: 8px;
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.dash-rec-dismiss {
    flex-shrink: 0;
    align-self: flex-start;
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.dash-stats-row {
    display: none;
}

.dash-tasks {
    display: none;
}

.dash-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dash-stat-card.accent {
    border-color: var(--accent);
    cursor: pointer;
}

.dash-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.dash-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 900;
    font-family: var(--mono);
    color: var(--accent);
    line-height: 1;
}

.dash-stat-card.accent .dash-stat-value {
    color: var(--accent);
}

.dash-stat-unit,
.dash-stat-sub {
    display: block;
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 6px;
    font-weight: 500;
}

.dash-stat-sub {
    color: var(--accent);
    opacity: 0.85;
}

.dash-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-section-hint {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 12px;
}

.dash-tasks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.dash-task-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

.dash-task-card.done {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.06);
}

.dash-task-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.dash-task-head span {
    font-size: 12px;
    color: var(--text-sub);
}

.dash-task-bar {
    height: 6px;
    background: var(--btn-bg);
    border-radius: 3px;
    overflow: hidden;
}

.dash-task-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
}

.dash-record-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dash-record-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-record-item span {
    font-size: 11px;
    color: var(--text-sub);
}

.dash-record-item strong {
    font-size: 1.25rem;
    font-family: var(--mono);
    color: var(--text-main);
}

.dash-record-item em {
    font-size: 10px;
    color: var(--text-sub);
    font-style: normal;
}

.dash-error {
    text-align: center;
    color: #f87171;
    padding: 8px 0 0;
    font-size: 14px;
}

.more-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

button.more-item {
    appearance: none;
    -webkit-appearance: none;
}

.more-item:active {
    border-color: var(--accent);
}

.more-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
}
/* more.html 误用 icon-btn 时取消 36px 触控下限，避免列表图标被撑开 */
.more-icon.icon-btn {
  min-width: 0;
  min-height: 0;
  padding: 0;
  cursor: inherit;
  border-radius: 0;
}
.more-icon.icon-btn:active {
  background: transparent;
  color: var(--accent);
}
.more-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.more-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.more-body strong {
    font-size: 15px;
}

.more-body span {
    font-size: 12px;
    color: var(--text-sub);
}

.more-arrow {
    color: var(--text-sub);
    font-size: 20px;
}

.dash-feedback-link {
    text-align: center;
    margin: 8px 0 24px;
}

.dash-text-btn {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dash-text-btn:active {
    color: var(--accent);
}

.dash-task-skeleton {
    padding: 16px;
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.dash-retry-btn {
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
}
