/* Owlex Tasks — app.css */
/* No CDN, fully local */

:root {
    --bg: #0f172a;
    --bg-surface: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --border: #334155;
    --radius: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text);
}

/* Accent */
.accent {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, transform 0.1s;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent);
    color: #0f172a;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.04);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero-tagline {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 100px;
    background: rgba(249, 115, 22, 0.08);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero .lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.center {
    text-align: center;
}

.muted {
    color: var(--text-muted);
}

.dim {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: var(--accent);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* CTA Block */
.cta-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
}

.cta-block h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-block p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Form */
.form-inline {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.input {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    outline: none;
    min-width: 260px;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: var(--accent);
}

.input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Auth */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .logo {
    display: inline-block;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert li {
    margin-bottom: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .section {
        padding: 50px 0;
    }

    .cta-block {
        padding: 32px 20px;
    }

    .nav-links {
        gap: 16px;
        font-size: 13px;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .input {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }
}

/* App Layout */
.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.app-nav {
    display: flex;
    gap: 4px;
}

.app-nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.app-nav-link:hover,
.app-nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.app-nav-link.active {
    color: var(--accent);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu-name {
    font-size: 14px;
    color: var(--text-muted);
}

.user-menu-logout {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: color 0.2s, border-color 0.2s;
}

.user-menu-logout:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.app-content {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.app-footer {
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.app-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Dashboard */
.dashboard-greeting {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.dashboard-date {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dashboard-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: border-color 0.2s;
}

.dashboard-card:hover {
    border-color: var(--accent);
}

.dashboard-card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.dashboard-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .app-nav {
        display: none;
    }
}

/* ===== APP LAYOUT v2 (BEM) ===== */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.app-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 60px;
}

.app-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.app-logo span {
    color: #ff7a1a;
}

.app-nav {
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.app-nav__link {
    color: #a7b0c4;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.app-nav__link:hover {
    color: #fff;
    background: #1e2942;
}

.app-nav__link--active {
    color: #ff7a1a;
    background: rgba(255, 122, 26, 0.1);
}

.app-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-user__name {
    color: #a7b0c4;
    font-size: 14px;
}

.app-user__logout {
    color: #ff7a1a;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #ff7a1a;
    border-radius: 8px;
    transition: all 0.2s;
}

.app-user__logout:hover {
    background: #ff7a1a;
    color: #0d1424;
}

.app-main {
    flex: 1;
    padding: 40px 24px 56px;
    max-width: 1152px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ===== DASHBOARD HERO ===== */
.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.dashboard-greeting h1 {
    font-size: 32px;
    margin: 0 0 14px;
    color: #ffffff;
    line-height: 1.15;
}

.dashboard-greeting .dashboard-date {
    color: #b9c3da;
    font-size: 15px;
    margin: 0 0 12px;
}

/* ===== CALENDAR CARD (dashboard compact) ===== */
.dashboard-calendar-card {
    background: #111a2f;
    border: 1px solid #22304f;
    border-radius: 12px;
    padding: 16px;
    width: 340px;
    max-width: 100%;
    min-height: 0;
}

.dashboard-calendar-card h2 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.2;
    color: #ffffff;
}

/* ===== MONTH CALENDAR MINI (dashboard scoped) ===== */
.month-calendar-mini .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 38px);
    gap: 5px;
    width: max-content;
    max-width: 100%;
}

.month-calendar-mini .cal-header {
    width: 38px;
    text-align: center;
    font-size: 11px;
    line-height: 1;
    color: #7885a2;
    text-transform: uppercase;
    padding-bottom: 4px;
}

.month-calendar-mini .cal-day {
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(26, 35, 64, 0.85);
    color: #aeb8cf;
    font-size: 13px;
    line-height: 1;
}

.month-calendar-mini .cal-day.today {
    border: 2px solid #ff7a1a;
    color: #ffffff;
    background: rgba(255, 122, 26, 0.18);
    opacity: 1;
}

.month-calendar-mini .cal-day.all-done {
    background: #ff7a1a;
    color: #0d1424;
    font-weight: 700;
    opacity: 1;
}

.month-calendar-mini .cal-day.has-tasks {
    background: rgba(255, 122, 26, 0.24);
    color: #ffb077;
    opacity: 1;
}

.month-calendar-mini .cal-day.future {
    opacity: 0.55;
    color: #596783;
    background: rgba(26, 35, 64, 0.45);
}

.month-calendar-mini .cal-day.empty {
    visibility: hidden;
}

/* ===== CARDS GRID (dashboard) ===== */
.dashboard-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr) minmax(240px, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-cards-grid > * {
    align-self: start;
}

/* ===== GRID v2 (legacy fallback) ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }
    .dashboard-calendar-card {
        width: 100%;
        max-width: 380px;
    }
    .dashboard-cards-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .app-main {
        padding: 28px 16px 48px;
    }
}

/* ===== CARD v2 ===== */
.dashboard-card {
    background: #111a2e;
    border: 1px solid #1e2942;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    transition: all 0.2s;
}

.dashboard-card:hover {
    border-color: #ff7a1a;
    transform: translateY(-2px);
}

.dashboard-card__icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.dashboard-card__title {
    font-size: 20px;
    margin: 0 0 12px;
    color: #fff;
}

.dashboard-card__text {
    color: #a7b0c4;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.dashboard-card__badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 122, 26, 0.15);
    color: #ff7a1a;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-card__badge--link {
    text-decoration: none;
    transition: background 0.2s;
}

.dashboard-card__badge--link:hover {
    background: rgba(255, 122, 26, 0.3);
}

/* ===== FOOTER v2 ===== */
.app-footer {
    padding: 24px 0;
    border-top: 1px solid #1e2942;
    color: #6b7590;
    font-size: 13px;
    text-align: center;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ HEADER ===== */
@media (max-width: 768px) {
    .app-header__inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .app-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .app-user__name {
        display: none;
    }
}

/* ===== TASK FORM ===== */
.task-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.task-form-header {
  margin-bottom: 32px;
}

.task-form-back {
  color: #a7b0c4;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.task-form-back:hover {
  color: #ff7a1a;
}

.task-form-header h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #fff;
}

.task-form-subtitle {
  color: #a7b0c4;
  font-size: 15px;
  margin: 0;
}

.task-form {
  background: #111a2e;
  border: 1px solid #1e2942;
  border-radius: 16px;
  padding: 32px;
}

.task-form .form-group {
  margin-bottom: 24px;
}

.task-form .form-label {
  display: block;
  color: #e6ecff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #0d1424;
  border: 1px solid #1e2942;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #ff7a1a;
}

.slot-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.slot-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: #0d1424;
  border: 2px solid #1e2942;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.slot-option:hover:not(.slot-option--disabled) {
  border-color: #ff7a1a;
}

.slot-option input { display: none; }

.slot-option:has(input:checked) {
  border-color: #ff7a1a;
  background: rgba(255, 122, 26, 0.05);
}

.slot-option:has(input:checked) .slot-option__number {
  color: #ff7a1a;
}

.slot-option--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slot-option__number {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.slot-option__label {
  font-size: 11px;
  color: #a7b0c4;
  text-transform: uppercase;
}

.category-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0d1424;
  border: 2px solid #1e2942;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.category-option:hover { border-color: #ff7a1a; }
.category-option input { display: none; }

.category-option:has(input:checked) {
  border-color: #ff7a1a;
  background: rgba(255, 122, 26, 0.05);
}

.category-option__icon { font-size: 22px; }

.category-option__label {
  color: #e6ecff;
  font-size: 14px;
  font-weight: 500;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #0d1424;
  border: 2px solid #1e2942;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-option:hover { border-color: #ff7a1a; }
.checkbox-option input { display: none; }

.checkbox-option__box {
  width: 22px;
  height: 22px;
  border: 2px solid #1e2942;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s;
}

.checkbox-option:has(input:checked) .checkbox-option__box {
  background: #ff7a1a;
  border-color: #ff7a1a;
}

.checkbox-option:has(input:checked) .checkbox-option__box::after {
  content: '✓';
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
}

.checkbox-option__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-option__title {
  color: #e6ecff;
  font-weight: 600;
  font-size: 14px;
}

.checkbox-option__hint {
  color: #a7b0c4;
  font-size: 13px;
  line-height: 1.5;
}

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

.btn {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn--primary {
  background: #ff7a1a;
  color: #0d1424;
}

.btn--primary:hover { background: #ff9040; }

.btn--secondary {
  background: transparent;
  color: #a7b0c4;
  border: 1px solid #1e2942;
}

.btn--secondary:hover {
  color: #fff;
  border-color: #ff7a1a;
}

.dashboard-card__action {
  display: inline-block;
  padding: 8px 14px;
  background: #ff7a1a;
  color: #0d1424;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.dashboard-card__action:hover { background: #ff9040; }

.flash-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid #4caf50;
  color: #4caf50;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.flash-error {
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid #ff7a1a;
  color: #ff7a1a;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .category-picker { grid-template-columns: 1fr; }
  .task-form { padding: 20px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; text-align: center; }
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-card--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CARD HEADER ===== */
.dashboard-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.dashboard-card__stats { flex-shrink: 0; }

.task-counter {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 122, 26, 0.15);
  color: #ff7a1a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

/* ===== TASK LIST ===== */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-slot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #0d1424;
  border: 1px solid #1e2942;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s;
}

/* Checkbox */
.task-check-form {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 14px;
}

.task-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #3a4560;
  background: transparent;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  font-size: 14px;
}

.task-check:hover {
  border-color: #ff7a1a;
}

.task-check--done {
  background: #ff7a1a;
  border-color: #ff7a1a;
}

.task-slot__number {
  width: 44px;
  flex-shrink: 0;
  background: #1e2942;
  color: #6b7590;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-slot__body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Empty slot */
.task-slot--empty { cursor: pointer; }

.task-slot--empty:hover {
  border-color: #ff7a1a;
  background: rgba(255, 122, 26, 0.03);
}

.task-slot--empty:hover .task-slot__number {
  background: #ff7a1a;
  color: #0d1424;
}

.task-slot__empty-text {
  color: #6b7590;
  font-size: 14px;
  display: flex;
  align-items: center;
  height: 100%;
}

.task-slot--empty:hover .task-slot__empty-text {
  color: #ff7a1a;
}

/* Filled slot */
.task-slot--filled .task-slot__number {
  background: #ff7a1a;
  color: #0d1424;
}

.task-slot__title {
  color: #e6ecff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.task-slot__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.task-meta {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.task-meta--category {
  background: rgba(74, 158, 255, 0.12);
  color: #7ab5ff;
}

.task-meta--important {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.task-meta--done {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

/* Completed task */
.task-slot--done { opacity: 0.55; }

.task-slot--done .task-slot__title {
  text-decoration: line-through;
  color: #a7b0c4;
}

/* Hints */
.task-hint {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 122, 26, 0.08);
  border-left: 3px solid #ff7a1a;
  border-radius: 8px;
  color: #e6ecff;
  font-size: 13px;
  line-height: 1.5;
}

.task-hint--success {
  background: rgba(76, 175, 80, 0.1);
  border-left-color: #4caf50;
  color: #4caf50;
}

/* ===== TASK ACTIONS ===== */
.task-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.task-slot:hover .task-actions {
  opacity: 1;
}

.task-action {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 14px;
  line-height: 1;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.task-action:hover {
  background: #1f2a44;
}

.task-action-form {
  margin: 0;
  padding: 0;
  display: inline-block;
}

/* ===== STREAK BADGE ===== */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 122, 26, 0.15);
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #ff7a1a;
  margin-top: 8px;
}

.streak-badge.is-zero {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #8a92a6;
}

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

.streak-value {
  font-size: 16px;
  font-weight: 700;
}

.streak-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.streak-record {
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  color: #8a92a6;
  font-weight: 400;
}

/* ===== MONTH CALENDAR ===== */
.month-calendar-card {
  background: #131c33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.month-calendar-header h3 {
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: #e6ecf3;
}

/* (old month-calendar-grid / calendar-day removed — unified into .cal-grid below) */

/* ===== PROGRESS PAGE ===== */
.progress-page { max-width: 800px; margin: 0 auto; padding: 20px; }
.progress-page h1 { color: #ff7a1a; margin-bottom: 24px; font-size: 24px; }
.progress-page h2 { color: #e0e0e0; margin: 32px 0 16px; font-size: 18px; }

/* Streak hero */
.streak-hero { background: #1a2340; border-radius: 12px; padding: 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.streak-hero .streak-current { font-size: 36px; font-weight: 700; color: #ff7a1a; }
.streak-hero .streak-meta { text-align: right; color: #8892b0; font-size: 14px; }
.streak-hero .streak-meta .record { font-size: 18px; color: #e0e0e0; margin-bottom: 4px; }
.streak-hero .streak-hero-new-record { background: #ff7a1a; color: #0d1424; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 8px; }

/* Month calendar (full version) */
.month-calendar-full { background: #1a2340; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.month-calendar-full .cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.month-calendar-full .cal-nav a, .month-calendar-full .cal-nav .cal-title { color: #e0e0e0; text-decoration: none; }
.month-calendar-full .cal-nav a:hover { color: #ff7a1a; }
.month-calendar-full .cal-nav .disabled { color: #3a4560; pointer-events: none; }
.month-calendar-full .cal-nav .cal-title { font-size: 18px; font-weight: 600; }
.month-calendar-full .cal-nav .cal-today-btn { color: #ff7a1a; font-size: 13px; text-decoration: none; border: 1px solid #ff7a1a; padding: 2px 10px; border-radius: 6px; }
.month-calendar-full .cal-nav .cal-today-btn:hover { background: #ff7a1a; color: #0d1424; }
.month-calendar-full .cal-grid { max-width: 100% !important; gap: 8px; }
.month-calendar-full .cal-day { padding: 15px 5px; font-size: 16px; }
.month-calendar-full .cal-header { font-size: 13px; padding: 6px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 320px; }
.cal-grid .cal-header { text-align: center; color: #5a6480; font-size: 11px; padding: 2px 0; text-transform: uppercase; }
.cal-grid .cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; font-weight: 500; color: #8a92a6; background: rgba(255,255,255,0.04); cursor: default; transition: transform 0.15s; }
.cal-grid .cal-day:hover { transform: scale(1.1); }
.cal-grid .cal-day.all-done { background: #ff7a1a !important; color: #0d1424 !important; font-weight: 700; }
.cal-grid .cal-day.has-tasks { background: rgba(255,122,26,0.3); color: #ffcda3; }
.cal-grid .cal-day.today { outline: 2px solid #ff7a1a; outline-offset: 1px; }
.cal-grid .cal-day.future { background: rgba(255,255,255,0.02); color: rgba(138,146,166,0.35); }
.cal-grid .cal-day.empty { opacity: 0; }

@media (max-width: 600px) {
  .cal-grid { max-width: 100%; gap: 3px; }
  .cal-grid .cal-day { font-size: 11px; }
}

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: #1a2340; border-radius: 10px; padding: 16px; text-align: center; }
.stat-card .stat-icon { font-size: 24px; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #ff7a1a; }
.stat-card .stat-label { font-size: 13px; color: #8892b0; margin-top: 4px; }

/* Category breakdown */
.category-breakdown { background: #1a2340; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.cat-row { display: flex; align-items: center; margin-bottom: 12px; }
.cat-row .cat-name { width: 140px; font-size: 14px; color: #c0c8e0; flex-shrink: 0; }
.cat-row .cat-bar-wrap { flex: 1; height: 24px; background: #1e2a4a; border-radius: 6px; overflow: hidden; margin: 0 12px; }
.cat-row .cat-bar-fill { height: 100%; background: #ff7a1a; border-radius: 6px; transition: width 0.3s ease; min-width: 0; }
.cat-row .cat-stats { font-size: 13px; color: #8892b0; width: 100px; text-align: right; flex-shrink: 0; }
.cat-row .cat-empty { color: #3a4560; }

/* Top days */
.top-days { background: #1a2340; border-radius: 12px; padding: 20px; }
.top-day-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #1e2a4a; }
.top-day-item:last-child { border-bottom: none; }
.top-day-item .top-medal { font-size: 24px; margin-right: 12px; width: 32px; text-align: center; }
.top-day-item .top-date { color: #e0e0e0; font-size: 15px; flex: 1; }
.top-day-item .top-score { color: #ff7a1a; font-weight: 600; font-size: 14px; }

/* Mobile responsive */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .streak-hero { flex-direction: column; text-align: center; gap: 12px; }
  .streak-hero .streak-meta { text-align: center; }
  .cat-row .cat-name { width: 100px; font-size: 12px; }
}

@media (max-width: 480px) {
  .app-main { padding: 24px 16px 48px; }
  .dashboard-greeting h1 { font-size: 26px; }
  .dashboard-calendar-card { width: 100%; }
  .month-calendar-mini .cal-grid { grid-template-columns: repeat(7, 36px); gap: 4px; }
  .month-calendar-mini .cal-header,
  .month-calendar-mini .cal-day { width: 36px; }
  .month-calendar-mini .cal-day { height: 36px; font-size: 12px; }
}

/* ===== PROGRESS LINK (dashboard) ===== */
.progress-link {
    display: inline-block;
    margin-left: 16px;
    color: #8892b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    vertical-align: middle;
}

.progress-link:hover {
    color: #ff7a1a;
}

/* === FOCUS PAGE === */
.focus-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}

.focus-page h1 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 8px;
}

.focus-subtitle {
    color: #8892b0;
    margin-bottom: 24px;
    font-size: 15px;
}

/* Progress bar */
.focus-progress-bar {
    height: 8px;
    background: #1a2340;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.focus-progress-fill {
    height: 100%;
    background: #ff7a1a;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.focus-progress-text {
    color: #8892b0;
    font-size: 13px;
    margin-bottom: 24px;
}

/* Focus blocks */
.focus-block {
    background: #111a2f;
    border: 1px solid #22304f;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.focus-block.completed {
    border-color: #ff7a1a;
    background: rgba(255, 122, 26, 0.08);
}

.focus-block-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}

.focus-block-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.focus-block-header h2 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #ffffff;
}

.focus-block-header p {
    margin: 0;
    font-size: 14px;
    color: #8892b0;
    line-height: 1.4;
}

/* Toggle button */
.focus-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ff7a1a;
    background: transparent;
    color: #ff7a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.focus-btn:hover {
    background: #ff7a1a;
    color: #0d1424;
}

.focus-btn.done {
    background: #ff7a1a;
    color: #0d1424;
    border-color: #ff7a1a;
}

.focus-btn.done:hover {
    background: #e66d15;
}

/* Tip */
.focus-tip {
    background: rgba(255, 122, 26, 0.1);
    border-left: 3px solid #ff7a1a;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-top: 8px;
    color: #c0c8e0;
    font-size: 14px;
}

/* Dashboard focus card (mini) */
.focus-card .focus-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.focus-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.focus-card p {
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 12px;
}

.focus-card-progress-text {
    color: #ff7a1a !important;
    font-weight: 600;
}

.focus-progress-mini {
    height: 6px;
    background: #1a2340;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.focus-progress-fill-mini {
    height: 100%;
    background: #ff7a1a;
    border-radius: 3px;
}

.focus-card-link {
    display: inline-block;
    color: #ff7a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.focus-card-link:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
    .focus-block {
        flex-direction: column;
        align-items: stretch;
    }

    .focus-btn {
        width: 100%;
    }
}

/* Focus Activity Forms */
.focus-activity-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
  overflow: hidden;
}
.focus-activity-input {
  flex: 1;
  min-width: 0;
  background: #1a2340;
  border: 1px solid #22304f;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e6e9f2;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.focus-activity-input:focus {
  border-color: #ff7a1a;
}
.focus-activity-input::placeholder {
  color: #6b7796;
}
.focus-activity-save {
  flex-shrink: 0;
  background: #22304f;
  border: 1px solid #2d3a5c;
  border-radius: 8px;
  padding: 0 14px;
  color: #ff7a1a;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.focus-activity-save:hover {
  background: #2d3a5c;
}

/* ===== Progress: Focus section ===== */
.progress-focus-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #22304f;
}
.progress-focus-section h2 {
  margin: 0 0 20px;
  font-size: 22px;
  color: #e6e9f2;
}
.progress-focus-section h3 {
  margin: 24px 0 12px;
  font-size: 16px;
  color: #b6c0d9;
  font-weight: 600;
}
.focus-streak-hero {
  background: linear-gradient(135deg, #1a2340 0%, #22304f 100%);
  border: 1px solid #2d3a5c;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.focus-streak-hero--empty {
  justify-content: center;
  color: #6b7796;
  font-style: italic;
}
.focus-streak-number {
  font-size: 48px;
  font-weight: 700;
  color: #ff7a1a;
  line-height: 1;
}
.focus-streak-label {
  color: #e6e9f2;
  font-size: 15px;
}
.focus-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 720px) {
  .focus-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.focus-stat-card {
  background: #1a2340;
  border: 1px solid #22304f;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.focus-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #ff7a1a;
  line-height: 1;
  margin-bottom: 6px;
}
.focus-stat-label {
  font-size: 12px;
  color: #b6c0d9;
}
.focus-breakdown {
  background: #1a2340;
  border: 1px solid #22304f;
  border-radius: 10px;
  padding: 16px 20px;
}
.focus-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.focus-bar-row:last-child { margin-bottom: 0; }
.focus-bar-label {
  font-size: 13px;
  color: #b6c0d9;
}
.focus-bar-track {
  background: #0d1424;
  border-radius: 6px;
  height: 12px;
  overflow: hidden;
}
.focus-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s;
}
.focus-bar-fill--learn   { background: #4a9eff; }
.focus-bar-fill--apply   { background: #ff7a1a; }
.focus-bar-fill--finance { background: #4ade80; }
.focus-bar-value {
  font-size: 13px;
  color: #e6e9f2;
  text-align: right;
  font-weight: 600;
}
@media (max-width: 480px) {
  .focus-bar-row { grid-template-columns: 100px 1fr 30px; }
}

/* === STRATEGY === */
.strategy-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}

.strategy-page h1 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 8px;
}

.strategy-subtitle {
    color: #8892b0;
    margin-bottom: 24px;
    font-size: 15px;
}

.strategy-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 999px) {
    .strategy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
    .strategy-grid { grid-template-columns: 1fr; }
}

.strategy-horizon {
    background: #111a2f;
    border: 1px solid #22304f;
    border-radius: 12px;
    padding: 20px;
}

.strategy-horizon__title {
    font-size: 20px;
    font-weight: 700;
    color: #ff7a1a;
    margin-bottom: 16px;
}

.strategy-field {
    margin-bottom: 14px;
}

.strategy-field:last-child {
    margin-bottom: 0;
}

.strategy-field label {
    display: block;
    color: #8892b0;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strategy-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: #0d1424;
    border: 1px solid #1e2942;
    border-radius: 8px;
    color: #e6e9f2;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.strategy-field textarea:focus {
    outline: none;
    border-color: #ff7a1a;
}

.strategy-field textarea::placeholder {
    color: #4a5570;
}

.strategy-save {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .strategy-page { padding: 24px 16px 48px; }
}

/* === Leverage === */
.leverage-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}

.leverage-page h1 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 8px;
}

.leverage-subtitle {
    color: #8892b0;
    margin-bottom: 20px;
    font-size: 15px;
}

.leverage-counter {
    font-size: 22px;
    font-weight: 700;
    color: #8892b0;
    margin-bottom: 24px;
}

.leverage-counter--full {
    color: #ff7a1a;
}

.leverage-form {
    background: #111a2f;
    border: 1px solid #22304f;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.leverage-form__row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.leverage-form__input {
    flex: 1;
    padding: 10px 14px;
    background: #0d1424;
    border: 1px solid #1e2942;
    border-radius: 8px;
    color: #e6e9f2;
    font-size: 15px;
    box-sizing: border-box;
}

.leverage-form__input:focus {
    outline: none;
    border-color: #ff7a1a;
}

.leverage-form__select {
    padding: 10px 14px;
    background: #0d1424;
    border: 1px solid #1e2942;
    border-radius: 8px;
    color: #e6e9f2;
    font-size: 15px;
}

.leverage-form__select:focus {
    outline: none;
    border-color: #ff7a1a;
}

.leverage-form__textarea {
    width: 100%;
    padding: 10px 14px;
    background: #0d1424;
    border: 1px solid #1e2942;
    border-radius: 8px;
    color: #e6e9f2;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.leverage-form__textarea:focus {
    outline: none;
    border-color: #ff7a1a;
}

.leverage-form__btn {
    width: 100%;
}

.leverage-empty {
    background: #111a2f;
    border: 1px solid #22304f;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: #6b7796;
    font-size: 15px;
}

.leverage-group {
    margin-bottom: 24px;
}

.leverage-group__title {
    font-size: 18px;
    font-weight: 700;
    color: #ff7a1a;
    margin-bottom: 12px;
}

.leverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .leverage-grid { grid-template-columns: 1fr; }
    .leverage-form__row { flex-direction: column; gap: 10px; margin-bottom: 10px; }

    .leverage-page { padding: 24px 16px 40px; }
    .leverage-page h1 { font-size: 22px; line-height: 1.25; word-break: normal; overflow-wrap: break-word; margin-bottom: 6px; }
    .leverage-subtitle { font-size: 14px; margin-bottom: 14px; }
    .leverage-counter { font-size: 15px; font-weight: 600; margin-bottom: 18px; }

    .leverage-form { padding: 14px; margin-bottom: 24px; }
    .leverage-form__input,
    .leverage-form__select,
    .leverage-form__textarea { padding: 9px 12px; font-size: 14px; }
    .leverage-form__textarea { min-height: 44px; }

    .leverage-group__title { font-size: 16px; margin-bottom: 8px; }

    .leverage-card { padding: 12px 14px; }
    .leverage-card__header { justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
    .leverage-card__title { font-size: 15px; }
    .leverage-card__desc { font-size: 13px; margin-bottom: 10px; }
    .leverage-card__actions { gap: 6px; }
    .leverage-card__btn { padding: 5px 9px; font-size: 12px; }
}

.leverage-card {
    background: #111a2f;
    border: 1px solid #22304f;
    border-radius: 10px;
    padding: 16px;
}

.leverage-card--inactive {
    opacity: 0.55;
}

.leverage-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.leverage-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #e6e9f2;
}

.leverage-card__desc {
    color: #6b7796;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.leverage-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.leverage-badge--active {
    background: rgba(72, 199, 142, 0.15);
    color: #48c78e;
}

.leverage-badge--paused {
    background: rgba(139, 148, 176, 0.15);
    color: #8b94b0;
}

.leverage-card__actions {
    display: flex;
    gap: 8px;
}

.leverage-card__btn {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #1e2942;
    background: transparent;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.2s;
}

.leverage-card__btn:hover {
    border-color: #ff7a1a;
    color: #fff;
}

.leverage-card__btn--danger:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* === Strategy Card Metrics === */
.strategy-card-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.strategy-card-metric {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.strategy-card-metric__value {
    font-size: 28px;
    font-weight: 700;
    color: #ff7a1a;
}

.strategy-card-metric__label {
    font-size: 13px;
    color: #6b7796;
}

/* === Dashboard Leverage === */
.dashboard-leverage {
    margin-top: 24px;
}

.dashboard-leverage__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard-leverage__title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.dashboard-leverage__subtitle {
    color: #6b7796;
    font-size: 13px;
    margin: 0;
}

.dashboard-leverage__link {
    color: #ff7a1a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-leverage__link:hover {
    text-decoration: underline;
}

.dashboard-leverage__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dashboard-leverage__card {
    background: #111a2f;
    border: 1px solid #22304f;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}

.dashboard-leverage__card:hover {
    border-color: #3a4a6e;
}

.dashboard-leverage__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.dashboard-leverage__card-title {
    font-size: 15px;
    font-weight: 600;
    color: #e6e9f2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.dashboard-leverage__card-badge {
    font-size: 11px;
    color: #6b7796;
    white-space: nowrap;
    flex-shrink: 0;
}

.dashboard-leverage__card-desc {
    color: #6b7796;
    font-size: 13px;
    line-height: 1.4;
}

.dashboard-leverage__empty {
    background: #111a2f;
    border: 1px solid #22304f;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #6b7796;
    font-size: 14px;
}

.dashboard-leverage__empty p {
    margin-bottom: 12px;
}

@media (max-width: 999px) {
    .dashboard-leverage__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
    .dashboard-leverage__grid { grid-template-columns: 1fr; }
}

/* === Attention === */
.attention-page h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.attention-subtitle {
    font-size: 14px;
    color: #6b7796;
    margin: 0 0 24px;
}

/* Stats card */
.attention-stats {
    background: #151d30;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.attention-stats__empty {
    color: #6b7796;
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
}

.attention-stats__row {
    display: flex;
    gap: 32px;
    margin-bottom: 12px;
}

.attention-stats__item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.attention-stats__num {
    font-size: 28px;
    font-weight: 700;
    color: #ff7a1a;
}

.attention-stats__label {
    font-size: 13px;
    color: #6b7796;
}

.attention-stats__quality {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #94a3b8;
}

.attention-stats__q-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Form */
.attention-form {
    background: #151d30;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.attention-form__row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.attention-form__input,
.attention-form__select,
.attention-form__textarea {
    background: #0d1424;
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #ffffff;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.attention-form__input:focus,
.attention-form__select:focus,
.attention-form__textarea:focus {
    border-color: #ff7a1a;
}

.attention-form__input--name {
    flex: 2;
}

.attention-form__input--minutes {
    flex: 1;
}

.attention-form__select {
    flex: 1;
}

.attention-form__textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    margin-bottom: 12px;
}

.attention-form__btn {
    width: 100%;
}

/* Entry list */
.attention-list__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px;
}

.attention-empty {
    background: #151d30;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #6b7796;
    font-size: 14px;
}

.attention-entry {
    background: #151d30;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
}

.attention-entry__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.attention-entry__name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.attention-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #1e293b;
    color: #94a3b8;
}

.attention-badge--family     { background: #1e3a5f; color: #60a5fa; }
.attention-badge--friends    { background: #1e3a2f; color: #4ade80; }
.attention-badge--colleagues { background: #3a2e1e; color: #fbbf24; }
.attention-badge--other      { background: #2d2d3d; color: #a78bfa; }

.attention-badge--phone   { background: #3a1e1e; color: #f87171; }
.attention-badge--present { background: #1e3a2f; color: #4ade80; }
.attention-badge--deep    { background: #1e2e3a; color: #60a5fa; }

.attention-entry__minutes {
    font-size: 13px;
    color: #ff7a1a;
    font-weight: 600;
}

.attention-entry__note {
    font-size: 13px;
    color: #6b7796;
    margin-top: 8px;
}

.attention-entry__actions {
    margin-top: 8px;
}

.attention-entry__delete-form {
    display: inline;
}

.attention-entry__delete-btn {
    background: none;
    border: none;
    color: #6b7796;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
}

.attention-entry__delete-btn:hover {
    color: #f87171;
}

@media (max-width: 768px) {
    .attention-form__row {
        flex-direction: column;
    }
    .attention-stats__row {
        flex-direction: column;
        gap: 12px;
    }
    .attention-stats__quality {
        flex-direction: column;
        gap: 6px;
    }
}

/* === Dashboard Attention === */
.dashboard-attention {
    margin-top: 24px;
}

.dashboard-attention__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard-attention__title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.dashboard-attention__subtitle {
    font-size: 13px;
    color: #6b7796;
    margin: 2px 0 0;
}

.dashboard-attention__link {
    color: #ff7a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.dashboard-attention__link:hover {
    text-decoration: underline;
}

.dashboard-attention__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dashboard-attention__stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dashboard-attention__stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #ff7a1a;
}

.dashboard-attention__stat-label {
    font-size: 13px;
    color: #6b7796;
}

.dashboard-attention__quality {
    display: flex;
    gap: 12px;
}

.dashboard-attention__q-badge {
    font-size: 13px;
    color: #94a3b8;
}

.dashboard-attention__top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dashboard-attention__top-card {
    background: #151d30;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-attention__top-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.dashboard-attention__top-mins {
    font-size: 13px;
    color: #6b7796;
}

.dashboard-attention__empty {
    background: #151d30;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.dashboard-attention__empty p {
    color: #6b7796;
    margin: 0 0 12px;
    font-size: 14px;
}

@media (max-width: 999px) {
    .dashboard-attention__top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
    .dashboard-attention__top { grid-template-columns: 1fr; }
    .dashboard-attention__header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ─── Progress: Attention Section ─── */
.progress-attention-section {
    margin-top: 2rem;
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 16px;
    padding: 1.5rem;
}

.progress-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.progress-section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.progress-section-link {
    font-size: 0.8rem;
    color: #a855f7;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.progress-section-link:hover { opacity: 1; }

.attention-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

.attention-empty-state p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.attention-empty-sub { font-size: 0.85rem !important; }
.attention-empty-state .btn-primary {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: #a855f7;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.attention-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.attention-summary-card {
    background: #0d1424;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.attention-summary-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #a855f7;
}

.attention-summary-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attention-quality-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.attention-quality-pill {
    flex: 1;
    min-width: 100px;
    background: #0d1424;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aq-icon { font-size: 1rem; }

.aq-label {
    flex: 1;
    font-size: 0.8rem;
    color: #94a3b8;
}

.aq-count {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.attention-categories {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.attention-cat-row {
    display: grid;
    grid-template-columns: 130px 1fr 2.5rem;
    align-items: center;
    gap: 0.75rem;
}

.attention-cat-label {
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
}

.attention-cat-bar-wrap {
    height: 6px;
    background: #1e2d45;
    border-radius: 3px;
    overflow: hidden;
}

.attention-cat-bar {
    height: 100%;
    background: #a855f7;
    border-radius: 3px;
    min-width: 2px;
    transition: width 0.4s ease;
}

.attention-cat-count {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
}

.attention-top-title {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.attention-top-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attention-top-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #0d1424;
    border: 1px solid #1e2d45;
    border-radius: 8px;
}

.attention-top-rank {
    width: 1.25rem;
    height: 1.25rem;
    background: #a855f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.attention-top-name {
    flex: 1;
    font-size: 0.88rem;
    color: #e2e8f0;
    font-weight: 500;
}

.attention-top-meta {
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 600px) {
    .attention-summary-cards { gap: 0.5rem; }
    .attention-summary-num { font-size: 1.3rem; }
    .attention-quality-row { gap: 0.5rem; }
    .attention-quality-pill { padding: 0.6rem; }
    .attention-cat-row { grid-template-columns: 110px 1fr 2rem; }
}

/* === Money === */
.money-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
}

.money-hero {
    margin-bottom: 24px;
}

.money-hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.money-hero__sub {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.money-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.money-summary-card {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 16px;
}

.money-summary-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.money-summary-card__emoji {
    font-size: 20px;
}

.money-summary-card__label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.money-summary-card__count {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.money-summary-card__amounts {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
}

.money-create-form {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.money-create-form__title {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 16px;
}

.money-form__row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.money-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.money-form__field label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.money-form__field--wide {
    flex: 1;
    min-width: 200px;
}

.money-form__field--check {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding-top: 18px;
}

.money-form__field--check label {
    font-size: 13px;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.money-form__field--submit {
    padding-top: 18px;
}

.money-form select,
.money-form input[type="text"],
.money-form input[type="number"] {
    background: #0d1424;
    border: 1px solid #1e2d45;
    border-radius: 8px;
    padding: 8px 12px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
}

.money-form select:focus,
.money-form input:focus {
    border-color: #ff7a1a;
}

.money-level-section {
    margin-bottom: 28px;
}

.money-level-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.money-level-header__emoji {
    font-size: 22px;
}

.money-level-header__title {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.money-level-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
}

.money-stack-empty {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #4a5568;
    font-size: 14px;
}

.money-stack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.money-stack-card {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 16px;
}

.money-stack-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.money-stack-title {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

.money-stack-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.money-stack-status--active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.money-stack-status--inactive {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.money-stack-amounts {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.money-progress {
    height: 6px;
    background: #1e2d45;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 14px;
}

.money-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.money-edit-form {
    margin-bottom: 8px;
}

.money-edit-form__row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.money-edit-input {
    background: #0d1424;
    border: 1px solid #1e2d45;
    border-radius: 6px;
    padding: 6px 10px;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
}

.money-edit-input:focus {
    border-color: #ff7a1a;
}

.money-edit-input:not(.money-edit-input--sm) {
    flex: 1;
    min-width: 150px;
}

.money-edit-input--sm {
    width: 100px;
}

.money-edit-check {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.money-delete-form {
    display: flex;
    justify-content: flex-end;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: #ff7a1a;
    color: #ffffff;
}

.btn--primary:hover {
    background: #e66a0e;
}

.btn--small {
    padding: 5px 12px;
    font-size: 12px;
}

.btn--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn--danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

@media (max-width: 600px) {
    .money-summary-grid { grid-template-columns: 1fr; }
    .money-form__row { flex-direction: column; }
    .money-form__field--wide { min-width: auto; }
    .money-form__field--check,
    .money-form__field--submit { padding-top: 0; }
    .money-edit-form__row { flex-direction: column; align-items: stretch; }
    .money-edit-input--sm { width: 100%; }
    .money-transaction-form .money-form__row { flex-direction: column; }
    .money-transaction-form .money-form__field--wide { min-width: auto; }
    .money-transactions-summary { flex-direction: column; gap: 6px; }
}

/* === Money 2.0 === */
.money-scope-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: #131d30;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid #1e2d45;
}
.money-scope-tab {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  color: #8892a4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.money-scope-tab:hover {
  color: #eef1f5;
}
.money-scope-tab--active {
  background: #ff7a1a;
  color: #fff;
}
.money-scope-tab--active:hover {
  color: #fff;
}
.money-stage-card {
  position: relative;
}
.money-stage-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.money-stage-badge {
  display: inline-block;
  background: rgba(255,122,26,0.15);
  color: #ff7a1a;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.money-stage-desc {
  color: #8892a4;
  font-size: 14px;
  margin: 10px 0 16px;
  line-height: 1.5;
}
.money-stage-select {
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  padding: 6px 12px;
  color: #eef1f5;
  font-size: 13px;
  cursor: pointer;
}
.money-stage-select:focus {
  border-color: #ff7a1a;
  outline: none;
}
.money-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.money-progress-bar {
  flex: 1;
  height: 8px;
  background: #1e2d45;
  border-radius: 100px;
  overflow: hidden;
}
.money-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7a1a, #ff9a43);
  border-radius: 100px;
  transition: width 0.3s ease;
}
.money-progress-pct {
  font-size: 13px;
  color: #8892a4;
  min-width: 36px;
  text-align: right;
}
.money-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.money-summary-item {
  text-align: center;
}
.money-summary-label {
  display: block;
  font-size: 12px;
  color: #8892a4;
  margin-bottom: 4px;
}
.money-summary-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.money-summary-value--green { color: #4caf50; }
.money-summary-value--red { color: #ef5350; }
.money-project-income {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1e2d45;
  font-size: 14px;
  color: #8892a4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.money-project-income strong {
  color: #4caf50;
}
.money-link {
  color: #ff7a1a;
  text-decoration: none;
  font-size: 13px;
}
.money-link:hover {
  text-decoration: underline;
}
.money-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #8892a4;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.money-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.money-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  padding: 12px 14px;
  gap: 12px;
}
.money-list-item__body {
  flex: 1;
  min-width: 0;
}
.money-list-item__title {
  font-size: 14px;
  font-weight: 500;
  color: #eef1f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.money-list-item__meta {
  font-size: 12px;
  color: #8892a4;
  margin-top: 2px;
}
.money-list-item__action {
  font-size: 16px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.money-list-item__action:hover {
  opacity: 1;
}
.money-cushion-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1e2d45;
}
.money-entity-card {
  margin-bottom: 12px;
}
.money-entity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.money-entity-title {
  font-size: 15px;
  font-weight: 500;
  color: #eef1f5;
}
.money-entity-sub {
  font-size: 12px;
  color: #8892a4;
  margin-top: 2px;
}
.money-entity-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.money-entity-body {
  margin-top: 10px;
}
.money-entity-meta {
  font-size: 13px;
  color: #8892a4;
  margin-top: 4px;
}
.money-entity-notes {
  font-size: 13px;
  color: #8892a4;
  margin-top: 6px;
  font-style: italic;
}
.money-stage-change-form {
  display: inline;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row .form-group {
  flex: 1;
}
.inline-form {
  display: inline;
}
.form-input--sm {
  padding: 6px 10px;
  font-size: 13px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}
.empty-card {
  text-align: center;
  padding: 30px 20px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty-state__icon {
  font-size: 32px;
}
.empty-state__text {
  color: #8892a4;
  font-size: 14px;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #eef1f5;
  margin: 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Money 2.0 mobile */
@media (max-width: 600px) {
  .money-scope-tabs { flex-direction: row; }
  .money-summary-grid { grid-template-columns: 1fr; gap: 8px; }
  .money-summary-item { text-align: left; display: flex; justify-content: space-between; }
  .money-entity-header { flex-direction: column; }
  .money-entity-actions { width: 100%; }
  .form-row { flex-direction: column; gap: 0; }
  .money-stage-card__header { flex-direction: column; align-items: flex-start; }
}

/* === Transform (Block 18) === */
.tf-period-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: #131d30;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid #1e2d45;
}
.tf-period-tab {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  color: #8892a4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.tf-period-tab:hover { color: #eef1f5; }
.tf-period-tab--active { background: #ff7a1a; color: #fff; }
.tf-period-tab--active:hover { color: #fff; }
.tf-totals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.tf-tile {
  background: #131d30;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.tf-tile__value {
  font-size: 22px;
  font-weight: 700;
  color: #eef1f5;
  line-height: 1.2;
}
.tf-tile__label {
  font-size: 12px;
  color: #8892a4;
  margin-top: 4px;
}
.tf-streak-line {
  text-align: center;
  font-size: 13px;
  color: #ff7a1a;
  margin-bottom: 16px;
}
.tf-streak-line--small {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 12px;
}
.tf-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #8892a4;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tf-stat-row strong { color: #eef1f5; }
.tf-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.tf-stat-item { text-align: center; }
.tf-stat-item__value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #eef1f5;
}
.tf-stat-item__label {
  display: block;
  font-size: 12px;
  color: #8892a4;
  margin-top: 2px;
}
.tf-stat-item__value--green { color: #4caf50; }
.tf-stat-item__value--red { color: #ef5350; }
.tf-stat-item__value--blue { color: #42a5f5; }
.tf-stat-item__value--muted { color: #8892a4; }
.tf-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.tf-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8892a4;
}
.tf-cat__icon { font-size: 14px; }
.tf-cat__label { flex: 1; }
.tf-cat__count { color: #eef1f5; font-weight: 500; }
.tf-top-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.tf-top-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: #eef1f5;
  font-size: 13px;
  transition: border-color 0.2s;
}
.tf-top-item:hover { border-color: #ff7a1a; }
.tf-top-item__title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-top-item__count { color: #8892a4; margin-left: 12px; white-space: nowrap; }
.tf-scope-block {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #1e2d45;
}
.tf-scope-block:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.tf-scope-title {
  font-size: 13px;
  font-weight: 600;
  color: #8892a4;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tf-muted { color: #8892a4; }
.tf-timeline-day { margin-bottom: 16px; }
.tf-timeline-date {
  font-size: 12px;
  font-weight: 600;
  color: #8892a4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #1e2d45;
}
.tf-timeline-event {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  text-decoration: none;
  color: #eef1f5;
  font-size: 13px;
  transition: color 0.2s;
}
.tf-timeline-event:hover { color: #ff7a1a; }
.tf-timeline-icon { font-size: 14px; min-width: 20px; text-align: center; }
.tf-timeline-text { flex: 1; line-height: 1.4; }

/* Transform mobile */
@media (max-width: 600px) {
  .tf-totals { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tf-stat-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tf-stat-item__value { font-size: 16px; }
  .tf-tile__value { font-size: 20px; }
}

/* === Money: Transactions === */
.money-transaction-form {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.money-transaction-form__title {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 16px;
}

.money-transaction-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #4a5568;
}

.money-transactions-section {
    margin-top: 28px;
}

.money-transactions-section__title {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 12px;
}

.money-transactions-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.money-transactions-summary__item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.money-txn-sum-label {
    font-size: 13px;
    color: #94a3b8;
}

.money-txn-sum-value {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.money-transactions-empty {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #4a5568;
    font-size: 14px;
}

.money-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.money-transaction-item {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 14px 16px;
}

.money-transaction-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.money-transaction-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.money-transaction-badge--income {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.money-transaction-badge--deposit {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.money-transaction-badge--withdraw {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.money-transaction-amount {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.money-transaction-meta {
    margin-bottom: 4px;
}

.money-transaction-stack {
    font-size: 13px;
    color: #94a3b8;
}

.money-transaction-stack--none {
    color: #4a5568;
}

.money-transaction-note {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 4px;
}

.money-transaction-date {
    font-size: 12px;
    color: #4a5568;
}

/* === Dashboard Money === */
.dashboard-money {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.dashboard-money__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard-money__title {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.dashboard-money__link {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
}

.dashboard-money__link:hover {
    color: #e2e8f0;
}

.dashboard-money__empty {
    text-align: center;
    padding: 20px;
    color: #64748b;
    background: #0d1424;
    border-radius: 8px;
}

.dashboard-money__empty p {
    margin: 0 0 12px;
}

.dashboard-money__summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-money__card {
    background: #0d1424;
    border: 1px solid #1e2d45;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.dashboard-money__label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.dashboard-money__card strong {
    font-size: 14px;
    color: #e2e8f0;
}

.dashboard-money__focus {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #0d1424;
    border-radius: 6px;
}

.dashboard-money__top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dashboard-money__stack {
    background: #0d1424;
    border: 1px solid #1e2d45;
    border-radius: 8px;
    padding: 12px;
}

.dashboard-money__stack-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.dashboard-money__stack-title {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
}

.dashboard-money__level {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.dashboard-money__level--debt {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.dashboard-money__level--reserve {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.dashboard-money__level--invest {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dashboard-money__stack-meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.dashboard-money__progress {
    height: 5px;
    background: #1e2d45;
    border-radius: 3px;
    overflow: hidden;
}

.dashboard-money__progress-bar {
    height: 100%;
    border-radius: 3px;
}

.dashboard-money__progress-bar--debt {
    background: #ef4444;
}

.dashboard-money__progress-bar--reserve {
    background: #eab308;
}

.dashboard-money__progress-bar--invest {
    background: #22c55e;
}

.dashboard-money__muted {
    font-size: 13px;
    color: #4a5568;
    margin: 0;
}

@media (max-width: 768px) {
    .dashboard-money__summary { grid-template-columns: repeat(2, 1fr); }
    .dashboard-money__top { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   NEW DASHBOARD DESIGN — 4-row hierarchy
   ═══════════════════════════════════════════════ */

/* ─── Row 1: Hero ─── */
.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    max-width: 960px;
    margin: 0 auto;
}

.dash-hero__greeting {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px;
}

.dash-hero__date {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 6px;
}

.dash-hero__streak {
    font-size: 14px;
    color: #e2e8f0;
}

.dash-hero__streak-hint {
    color: #64748b;
}

.dash-hero__streak-record {
    font-size: 12px;
    color: #4a5568;
    margin-left: 8px;
}

.dash-hero__progress-link {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.dash-hero__progress-link:hover {
    color: #ff7a1a;
}

/* ─── Row 2: Main Tasks ─── */
.dash-tasks-main {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 20px;
    max-width: 960px;
    margin: 0 auto 12px;
}

.dash-tasks-main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dash-tasks-main__title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.dash-tasks-main__counter {
    font-size: 18px;
    font-weight: 700;
    color: #ff7a1a;
}

.dash-tasks-main__slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-task-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.dash-task-slot--empty {
    background: rgba(30, 45, 69, 0.4);
    border: 2px dashed #1e2d45;
}

.dash-task-slot--empty:hover {
    background: rgba(30, 45, 69, 0.7);
}

.dash-task-slot--filled {
    background: #0d1424;
    border: 1px solid #1e2d45;
}

.dash-task-slot--done {
    opacity: 0.6;
}

.dash-task-slot__num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.dash-task-slot--empty .dash-task-slot__num {
    background: rgba(30, 45, 69, 0.6);
    color: #4a5568;
}

.dash-task-slot--filled .dash-task-slot__num {
    background: rgba(255, 122, 26, 0.15);
    color: #ff7a1a;
}

.dash-task-slot--done .dash-task-slot__num {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dash-task-check-form {
    flex-shrink: 0;
}

.dash-task-check {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #1e2d45;
    background: transparent;
    color: transparent;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.dash-task-check:hover {
    border-color: #ff7a1a;
}

.dash-task-check--done {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

.dash-task-slot__body {
    flex: 1;
    min-width: 0;
}

.dash-task-slot__title {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-task-slot--done .dash-task-slot__title {
    text-decoration: line-through;
    color: #64748b;
}

.dash-task-slot__empty {
    color: #4a5568;
    font-size: 14px;
}

.dash-task-slot__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-task-meta {
    font-size: 12px;
    color: #64748b;
}

.dash-task-meta--important {
    color: #eab308;
}

.dash-task-meta--done {
    color: #22c55e;
}

.dash-task-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.dash-task-action {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 4px;
}

.dash-task-action:hover {
    background: rgba(30, 45, 69, 0.6);
    color: #e2e8f0;
}

.dash-task-action-form {
    display: inline;
}

.dash-tasks-main__hint {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    padding: 8px 12px;
    background: rgba(30, 45, 69, 0.3);
    border-radius: 6px;
}

.dash-tasks-main__hint--done {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* ─── Row 3: Action Tiles ─── */
.dash-action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 960px;
    margin: 0 auto 10px;
}

.dash-action-tile {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.15s;
    min-height: 110px;
}

.dash-action-tile:hover {
    border-color: #ff7a1a;
}

.dash-action-tile__icon {
    font-size: 22px;
}

.dash-action-tile__label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.dash-action-tile__value {
    font-size: 13px;
    color: #94a3b8;
}

.dash-action-tile__value--done {
    color: #22c55e;
}

.dash-action-tile__value--muted {
    color: #4a5568;
}

.dash-action-tile__cta {
    font-size: 13px;
    color: #ff7a1a;
    margin-top: auto;
}

.dash-action-tile__progress {
    height: 4px;
    background: #1e2d45;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.dash-action-tile__progress-bar {
    height: 100%;
    background: #ff7a1a;
    border-radius: 2px;
}

/* ─── Row 4: Metric Tiles ─── */
.dash-metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 960px;
    margin: 0 auto 20px;
}

.dash-metric-tile {
    background: rgba(19, 29, 48, 0.6);
    border: 1px solid rgba(30, 45, 69, 0.5);
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: border-color 0.15s;
}

.dash-metric-tile:hover {
    border-color: #ff7a1a;
}

.dash-metric-tile__icon {
    font-size: 16px;
}

.dash-metric-tile__text {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.dash-metric-tile__value {
    font-size: 12px;
    color: #64748b;
    flex: 1;
}

.dash-metric-tile__value--muted {
    color: #4a5568;
}

.dash-metric-tile__cta {
    font-size: 12px;
    color: #ff7a1a;
    white-space: nowrap;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .dash-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .dash-hero__greeting { font-size: 18px; }
    .dash-tasks-main__title { font-size: 17px; }
    .dash-task-slot { padding: 12px; gap: 10px; }
    .dash-task-actions { display: none; }
    .dash-action-row { grid-template-columns: 1fr; }
    .dash-action-tile { min-height: auto; }
    .dash-metric-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   ANALYTICS PAGE
   ═══════════════════════════════════════════════ */

.analytics-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.analytics-header {
    margin-bottom: 20px;
}

.analytics-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.analytics-daterange {
    font-size: 14px;
    color: #94a3b8;
}

/* Period tabs */
.analytics-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.analytics-tab {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    background: #131d30;
    border: 1px solid #1e2d45;
    text-decoration: none;
    transition: all 0.2s;
}

.analytics-tab:hover {
    color: #ffffff;
    border-color: #ff7a1a;
}

.analytics-tab--active {
    color: #0d1424;
    background: #ff7a1a;
    border-color: #ff7a1a;
}

.analytics-tab--active:hover {
    color: #0d1424;
}

/* Section */
.analytics-section {
    margin-bottom: 32px;
}

.analytics-section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.analytics-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.analytics-section-sub {
    font-size: 13px;
    color: #64748b;
}

/* Metrics grid */
.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .analytics-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .analytics-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.analytics-metric-card {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 20px;
}

.analytics-metric-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.analytics-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 6px;
}

.analytics-metric-value--muted {
    color: #4a5568;
}

/* Deltas */
.analytics-metric-delta {
    font-size: 13px;
    font-weight: 500;
}

.analytics-metric-delta--up {
    color: #22c55e;
}

.analytics-metric-delta--down {
    color: #ef4444;
}

.analytics-metric-delta--muted {
    color: #64748b;
}

/* Categories */
.analytics-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.analytics-cat-row {
    display: grid;
    grid-template-columns: 140px 1fr 48px;
    align-items: center;
    gap: 12px;
}

@media (max-width: 500px) {
    .analytics-cat-row {
        grid-template-columns: 100px 1fr 36px;
    }
}

.analytics-cat-label {
    font-size: 14px;
    color: #94a3b8;
    white-space: nowrap;
}

.analytics-cat-bar-wrap {
    height: 10px;
    background: #1e2d45;
    border-radius: 5px;
    overflow: hidden;
}

.analytics-cat-bar {
    height: 100%;
    background: #ff7a1a;
    border-radius: 5px;
    transition: width 0.4s ease;
    min-width: 2px;
}

.analytics-cat-count {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
    text-align: right;
}

/* Empty state */
.analytics-empty {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    color: #4a5568;
    font-size: 14px;
}

/* Footnote */
.analytics-footnote {
    margin-top: 32px;
    font-size: 13px;
    color: #4a5568;
    text-align: center;
}

/* Quality breakdown inside metric card */
.analytics-metric-value--quality {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
}

.analytics-quality-line {
    display: block;
    color: #e2e8f0;
    font-size: 14px;
}

/* Money stacks */
.analytics-subheading {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    margin: 16px 0 8px;
}

.analytics-money-stacks {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.analytics-money-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.analytics-money-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.analytics-money-bar-wrap {
    height: 8px;
    background: #1e2d45;
    border-radius: 4px;
    overflow: hidden;
}

.analytics-money-bar {
    height: 100%;
    border-radius: 4px;
}

.analytics-money-bar--debt    { background: #ef6a3a; }
.analytics-money-bar--reserve { background: #ffb547; }
.analytics-money-bar--invest  { background: #22c58a; }

.analytics-money-amounts {
    font-size: 0.82rem;
    color: #e2e8f0;
    text-align: right;
    white-space: nowrap;
}

.analytics-money-count {
    color: #64748b;
    margin-left: 4px;
}

@media (max-width: 600px) {
    .analytics-money-row { grid-template-columns: 1fr; }
    .analytics-money-amounts { text-align: left; }
}

/* Analytics — Insights */
.analytics-insights-section { margin-bottom: 1.5rem; }

.analytics-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.analytics-insight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #131d30;
    border: 1px solid #1e2d45;
    border-left: 4px solid #64748b;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.analytics-insight--good    { border-left-color: #22c58a; }
.analytics-insight--neutral { border-left-color: #ffb547; }
.analytics-insight--warning { border-left-color: #ef6a3a; }

.analytics-insight-icon {
    font-size: 1.1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.analytics-insight-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.analytics-insight-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
}

.analytics-insight-text {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .analytics-insights-grid { grid-template-columns: 1fr; }
}

/* Settings */
.settings-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.settings-header { margin-bottom: 1.5rem; }
.settings-header h1 { margin: 0 0 0.3rem; }
.settings-sub { color: #94a3b8; font-size: 0.9rem; margin: 0; }

.settings-alert {
    margin-bottom: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}
.settings-alert--ok  { background: rgba(34,197,138,0.12); border:1px solid #22c58a; color:#a7f0cf; }
.settings-alert--err { background: rgba(239,106,58,0.12); border:1px solid #ef6a3a; color:#ffcbb2; }

.settings-section {
    background: #131d30;
    border: 1px solid #1e2d45;
    border-radius: 14px;
    padding: 1.25rem 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.settings-section--muted { opacity: 0.7; }

.settings-section-title {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: #e2e8f0;
}

.settings-form { display: flex; flex-direction: column; gap: 0.9rem; }

.settings-field { display: flex; flex-direction: column; gap: 0.35rem; }
.settings-field label { font-size: 0.82rem; color: #94a3b8; }
.settings-field input {
    background: #0d1424;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}
.settings-field input:focus { border-color: #ff7a1a; }

.settings-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #1e2d45;
    font-size: 0.85rem;
    color: #94a3b8;
}
.settings-meta-row { display: flex; justify-content: space-between; }
.settings-meta-row strong { color: #e2e8f0; font-weight: 600; }

.settings-actions { margin-top: 0.5rem; }

.settings-hint {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.settings-todo {
    margin: 0;
    padding-left: 1.2rem;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .settings-page { padding: 1rem 0 2rem; }
}

input[type="time"], input[type="number"] { color-scheme: dark; }

/* Danger zone */
.settings-danger {
    border: 1px solid rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.06);
}
.settings-danger h2,
.settings-danger .settings-section-title { color: #ff6b6b; }
.danger-warning {
    color: #ffb3b8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}
.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-danger:hover { background: #c02333; }

/* ===== Mobile burger menu (CSS-only, checkbox hack) ===== */
.mobile-burger,
.mobile-menu-toggle { display: none; }
.mobile-menu-overlay { display: none; }

@media (max-width: 900px) {
  .app-nav--desktop { display: none !important; }
  .app-user--desktop { display: none !important; }

  .mobile-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    box-sizing: content-box;
  }
  .mobile-burger span {
    display: block;
    height: 3px;
    background: #ff7a1a;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .mobile-menu-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #0d1424;
    z-index: 9999;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu-toggle:checked ~ .mobile-menu-overlay {
    transform: translateX(0);
  }

  .mobile-menu-toggle:checked ~ .mobile-burger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-menu-toggle:checked ~ .mobile-burger span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle:checked ~ .mobile-burger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .mobile-menu-close {
    align-self: flex-end;
    font-size: 36px;
    line-height: 1;
    color: #ff7a1a;
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
  }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    flex: 1;
  }
  .mobile-menu-link {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 12px 16px;
    font-size: 20px;
    color: #e6ecf5;
    text-decoration: none;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .mobile-menu-link:hover,
  .mobile-menu-link.active {
    background: rgba(255, 122, 26, 0.15);
    color: #ff7a1a;
  }

  .mobile-menu-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-menu-user {
    color: #7a8599;
    font-size: 14px;
    padding: 0 12px;
  }
  .mobile-menu-logout {
    display: block;
    text-align: center;
    padding: 12px 18px;
    border: 1.5px solid #d84040;
    color: #d84040;
    background: transparent;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
  }
  .mobile-menu-logout:hover {
    background: rgba(220, 53, 69, 0.1);
  }

  body:has(.mobile-menu-toggle:checked) { overflow: hidden; }
}

/* ===== Progress page mobile fixes (12.2b) ===== */
@media (max-width: 900px) {
  .progress-page { padding: 16px; }
  .progress-page h1 { font-size: 20px; margin-bottom: 16px; }
  .progress-page h2 { font-size: 17px; margin: 24px 0 12px; word-wrap: break-word; }
  .progress-page h3 { font-size: 15px; }

  /* Streak hero */
  .streak-hero { padding: 16px; flex-direction: column; text-align: center; gap: 8px; }
  .streak-hero .streak-current { font-size: 24px; }
  .streak-hero .streak-meta { text-align: center; }
  .streak-hero .streak-meta .record { font-size: 14px; }

  /* Calendar nav — grid layout: title row + buttons row */
  .month-calendar-full { padding: 14px; }
  .month-calendar-full .cal-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
  }
  .month-calendar-full .cal-nav .cal-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 16px;
    margin-bottom: 4px;
  }
  .month-calendar-full .cal-nav > div {
    display: contents;
  }
  .month-calendar-full .cal-nav a,
  .month-calendar-full .cal-nav .disabled {
    font-size: 13px;
    padding: 6px 10px;
  }
  .month-calendar-full .cal-nav > a:first-child,
  .month-calendar-full .cal-nav > span.disabled:first-child {
    text-align: left;
  }
  .month-calendar-full .cal-nav .cal-today-btn {
    text-align: center;
    justify-self: center;
    font-size: 12px;
    padding: 4px 8px;
  }

  /* Calendar grid */
  .month-calendar-full .cal-grid { max-width: 100%; gap: 3px; }
  .month-calendar-full .cal-day { padding: 10px 2px; font-size: 13px; min-width: 0; }
  .month-calendar-full .cal-header { font-size: 11px; }

  /* Stats grid */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 12px 8px; }
  .stat-card .stat-value { font-size: 22px; }
  .stat-card .stat-label { font-size: 12px; }

  /* Category breakdown */
  .category-breakdown { padding: 14px; }
  .cat-row .cat-name { width: 80px; font-size: 12px; }
  .cat-row .cat-stats { width: 70px; font-size: 11px; }

  /* Top days */
  .top-days { padding: 14px; }
  .top-day-item .top-date { font-size: 13px; }
  .top-day-item .top-score { font-size: 12px; }

  /* Attention summary cards */
  .attention-summary-cards { gap: 6px; }
  .attention-summary-card { padding: 10px 6px; }
  .attention-summary-num { font-size: 1.3rem; }
  .attention-summary-label { font-size: 0.65rem; }
  /* Attention quality pills */
  .attention-quality-row { gap: 6px; }
  .attention-quality-pill { min-width: 0; flex: 1; padding: 8px 6px; font-size: 12px; flex-direction: column; text-align: center; }
  .attention-quality-pill .aq-label { min-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .attention-quality-pill .aq-count { font-size: 16px; font-weight: 600; }
  .progress-section-header { flex-wrap: wrap; gap: 4px; }
  .progress-section-link { white-space: nowrap; }
  .attention-categories { overflow: hidden; }
  .attention-cat-row { grid-template-columns: 90px 1fr 2rem; gap: 6px; font-size: 12px; }
  .attention-top-item { flex-wrap: wrap; gap: 4px; }
  .attention-top-meta { font-size: 11px; }
}

/* =============================================
   LANDING PAGE (Block 12.3) — .lp-* classes
   ============================================= */

/* Container */
.lp-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0d1424;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 14px 0;
}
.lp-header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-header__logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.lp-header__logo .accent,
.lp-header__logo span.accent {
    color: #ff7a1a;
}
.lp-header__links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.lp-header__links a {
    color: #aab4c8;
    text-decoration: none;
    font-size: 15px;
    transition: color .2s;
}
.lp-header__links a:hover {
    color: #fff;
}

/* Buttons */
.lp-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    border: none;
}
.lp-btn--primary {
    background: #ff7a1a;
    color: #fff;
}
.lp-btn--primary:hover {
    background: #ff8f3d;
}
.lp-btn--outline {
    background: transparent;
    color: #aab4c8;
    border: 1px solid rgba(255,255,255,.15);
}
.lp-btn--outline:hover {
    border-color: #ff7a1a;
    color: #ff7a1a;
}
.lp-btn--lg {
    font-size: 18px;
    padding: 18px 36px;
}

/* Section 1: Hero */
.lp-hero {
    background: #0d1424;
    padding: 100px 20px 80px;
    text-align: center;
}
.lp-hero .lp-container {
    max-width: 800px;
}
.lp-hero__title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 8px;
}
.lp-hero__title-accent {
    color: #ff7a1a;
}
.lp-hero__subtitle {
    font-size: 20px;
    color: #8892a8;
    line-height: 1.6;
    margin: 32px auto 0;
    max-width: 640px;
}
.lp-hero__cta {
    margin-top: 40px;
}
.lp-hero__note {
    margin-top: 16px;
    font-size: 14px;
    color: #5a6478;
}

/* Section 2: Problem */
.lp-problem {
    background: #111a2e;
    padding: 80px 20px;
}
.lp-problem__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 32px;
}
.lp-problem__text {
    font-size: 19px;
    color: #aab4c8;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Section 3: Solution */
.lp-solution {
    background: #0d1424;
    padding: 80px 20px;
}
.lp-solution__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 48px;
}
.lp-solution__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.lp-solution__card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 32px 28px;
}
.lp-solution__card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
.lp-solution__card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}
.lp-solution__card p {
    font-size: 16px;
    color: #8892a8;
    line-height: 1.6;
    margin: 0;
}

/* Section 4: Screens */
.lp-screens {
    background: #111a2e;
    padding: 80px 20px;
}
.lp-screens__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 8px;
}
.lp-screens__subtitle {
    font-size: 18px;
    color: #5a6478;
    text-align: center;
    margin: 0 0 48px;
}
.lp-screens__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.lp-screens__item {
    text-align: center;
}
.lp-screens__item--full,
.lp-screens__item--wide {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
}
.lp-screens__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.06);
    margin-bottom: 16px;
}
.lp-screens__item {
    min-width: 0;
}
.lp-screens__item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}
.lp-screens__item p {
    font-size: 15px;
    color: #8892a8;
    margin: 0;
}

/* Section 5: Story */
.lp-story {
    background: #0d1424;
    padding: 80px 20px;
}
.lp-story__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 40px;
}
.lp-story__text {
    max-width: 700px;
    margin: 0 auto;
}
.lp-story__text p {
    font-size: 18px;
    color: #aab4c8;
    line-height: 1.7;
    margin: 0 0 20px;
}
.lp-story__signature {
    font-size: 16px;
    color: #ff7a1a;
    font-weight: 600;
    text-align: center;
    margin: 32px 0 0;
}

/* Section 6: Pricing */
.lp-pricing {
    background: #111a2e;
    padding: 80px 20px;
}
.lp-pricing__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 48px;
}
.lp-pricing__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}
.lp-pricing__card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
}
.lp-pricing__card--featured {
    border: 2px solid #ff7a1a;
}
.lp-pricing__badge {
    display: inline-block;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff7a1a;
    color: #fff;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.lp-pricing__card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}
.lp-pricing__card p {
    font-size: 16px;
    color: #8892a8;
    line-height: 1.6;
    margin: 0 0 24px;
}
.lp-pricing__note {
    font-size: 14px;
    color: #5a6478;
    text-align: center;
    margin: 32px auto 0;
    max-width: 600px;
}
.lp-link {
    color: #ff7a1a;
    text-decoration: none;
    font-size: 15px;
}
.lp-link:hover {
    text-decoration: underline;
}

/* Section 7: Final CTA */
.lp-final-cta {
    background: #0d1424;
    padding: 80px 20px;
    text-align: center;
}
.lp-final-cta__title {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.lp-final-cta__text {
    font-size: 18px;
    color: #8892a8;
    margin: 0 0 40px;
}

/* Footer */
.lp-footer {
    background: #090e18;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 24px 20px;
}
.lp-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lp-footer span {
    font-size: 14px;
    color: #5a6478;
}
.lp-footer a {
    font-size: 14px;
    color: #ff7a1a;
    text-decoration: none;
}
.lp-footer a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .lp-container { padding: 0 16px; }
    .lp-header__links { display: none; }
    .lp-hero { padding: 64px 16px 48px; }
    .lp-hero__title { font-size: 34px; }
    .lp-hero__subtitle { font-size: 17px; }
    .lp-btn--lg { font-size: 16px; padding: 16px 28px; }
    .lp-problem { padding: 48px 16px; }
    .lp-problem__title { font-size: 26px; }
    .lp-problem__text { font-size: 16px; }
    .lp-solution { padding: 48px 16px; }
    .lp-solution__title { font-size: 26px; }
    .lp-solution__grid { grid-template-columns: 1fr; }
    .lp-screens { padding: 48px 16px; }
    .lp-screens__title { font-size: 26px; }
    .lp-screens__grid { grid-template-columns: 1fr; }
    .lp-screens__item--full { max-width: 100%; }
    .lp-story { padding: 48px 16px; }
    .lp-story__title { font-size: 26px; }
    .lp-story__text p { font-size: 16px; }
    .lp-pricing { padding: 48px 16px; }
    .lp-pricing__title { font-size: 26px; }
    .lp-pricing__grid { grid-template-columns: 1fr; }
    .lp-final-cta { padding: 48px 16px; }
    .lp-final-cta__title { font-size: 28px; }
    .lp-footer__inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* === FIX 12.3: screens overflow === */
html, body { overflow-x: hidden; }
.lp-screens { overflow: hidden; }

/* === Lightbox для скринов === */
.lp-screens__img {
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-screens__img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
}
.lp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  cursor: zoom-out;
  animation: lpFade .18s ease;
}
.lp-lightbox.is-open { display: flex; }
.lp-lightbox__img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.08);
}
.lp-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-lightbox__close:hover { background: rgba(255,255,255,.16); }
@keyframes lpFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (max-width: 768px) {
  .lp-lightbox { padding: 12px; }
  .lp-lightbox__close { top: 12px; right: 12px; }
}

/* === Fix 12.5: dark selects === */
select.ow-select,
select {
  background-color: #111a2e;
  color: #eef1f5;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 36px 10px 12px;
  font-size: 15px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23aab' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
select.ow-select:focus,
select:focus {
  outline: none;
  border-color: #ff7a1a;
  box-shadow: 0 0 0 3px rgba(255,122,26,.18);
}
select option {
  background: #111a2e;
  color: #eef1f5;
}

/* === Fix 12.5: focus headers mobile === */
@media (max-width: 768px) {
  .focus-block-header {
    gap: 10px;
    align-items: flex-start;
  }
  .focus-block-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 1;
  }
  .focus-block-header h2 {
    font-size: 16px;
    line-height: 1.25;
    min-width: 0;
    word-wrap: break-word;
  }
}

/* === Fix 12.5: mobile menu safe-area === */
@media (max-width: 900px) {
  .mobile-menu-overlay {
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ═══════════════════════════════════════════
   BLOCK 14: Tasks All, Edit Notes, Old Tasks
   ═══════════════════════════════════════════ */

/* --- Open tasks link on dashboard --- */
.dash-tasks-main__open-link {
  margin-top: 12px;
  text-align: center;
}
.dash-tasks-main__open-link a {
  display: inline-block;
  color: var(--color-accent, #ff7a1a);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255,122,26,0.08);
  transition: background .2s;
}
.dash-tasks-main__open-link a:hover {
  background: rgba(255,122,26,0.15);
}

/* --- Forgot to mark block --- */
.dash-old-tasks {
  background: #131d30;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 20px;
  max-width: 960px;
  margin: 0 auto 12px;
}
.dash-old-tasks__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.dash-old-tasks__icon {
  font-size: 24px;
  flex-shrink: 0;
}
.dash-old-tasks__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text, #e0e0e0);
}
.dash-old-tasks__subtitle {
  font-size: 13px;
  color: var(--color-text-secondary, #999);
  margin-top: 2px;
}
.dash-old-tasks__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-old-task {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 10px 12px;
}
.dash-old-task__check-form {
  flex-shrink: 0;
}
.dash-old-task__btn {
  background: rgba(255,122,26,0.12);
  color: #ff7a1a;
  border: 1px solid rgba(255,122,26,0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
}
.dash-old-task__btn:hover {
  background: rgba(255,122,26,0.25);
  border-color: #ff7a1a;
}
.dash-old-task__body {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.dash-old-task__cat {
  flex-shrink: 0;
}
.dash-old-task__title {
  font-size: 14px;
  color: var(--color-text, #e0e0e0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.dash-old-task__date {
  font-size: 12px;
  color: var(--color-text-secondary, #888);
  flex-shrink: 0;
}
.dash-old-tasks__footer {
  margin-top: 12px;
  text-align: center;
}
.dash-old-tasks__all-link {
  font-size: 14px;
  font-weight: 500;
  color: #ff7a1a;
  text-decoration: none;
  transition: opacity .2s;
}
.dash-old-tasks__all-link:hover {
  opacity: 0.8;
}

/* --- Tasks All screen --- */
.tasks-all {
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}
.tasks-all__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tasks-all__back {
  font-size: 14px;
  color: #ff7a1a;
  text-decoration: none;
}
.tasks-all__back:hover {
  opacity: 0.8;
}
.tasks-all__title {
  font-size: 22px;
  font-weight: 700;
  color: #eef1f5;
  flex: 1;
}
.tasks-all__count {
  font-size: 13px;
  color: #ff7a1a;
  background: rgba(255,122,26,0.1);
  padding: 4px 10px;
  border-radius: 20px;
}
.tasks-all__filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tasks-filter {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #8892a4;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.tasks-filter:hover {
  background: rgba(255,255,255,0.08);
  color: #eef1f5;
}
.tasks-filter--active {
  color: #0d1424;
  background: #ff7a1a;
  border-color: #ff7a1a;
}
.tasks-filter--active:hover {
  background: #e66a0f;
  border-color: #e66a0f;
  color: #fff;
}
.tasks-all__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Task item --- */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background .2s;
}
.task-item--old {
  border-color: rgba(255,193,7,0.15);
  background: rgba(255,193,7,0.03);
}
.task-item--today {
  border-color: rgba(255,122,26,0.2);
}
.task-item--done {
  opacity: 0.6;
}
.task-item__check-form {
  flex-shrink: 0;
}
.task-item__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  color: transparent;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-family: inherit;
}
.task-item__check:hover {
  border-color: #ff7a1a;
  color: #ff7a1a;
}
.task-item__check--done {
  background: #ff7a1a;
  border-color: #ff7a1a;
  color: #fff;
  cursor: default;
}
.task-item__body {
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.task-item__top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-item__cat {
  flex-shrink: 0;
}
.task-item__title {
  font-size: 14px;
  font-weight: 500;
  color: #eef1f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-item__title--done {
  text-decoration: line-through;
  opacity: 0.6;
}
.task-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.task-item__date {
  font-size: 12px;
  color: #8892a4;
}
.task-item__badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.task-item__badge--old {
  color: #ffc107;
  background: rgba(255,193,7,0.12);
}
.task-item__badge--today {
  color: #ff7a1a;
  background: rgba(255,122,26,0.12);
}
.task-item__badge--notes {
  color: #4caf50;
  background: rgba(76,175,80,0.12);
}
.task-item__notes-preview {
  font-size: 12px;
  color: #8892a4;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-item__actions {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
}
.task-item__action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  transition: background .2s;
  color: inherit;
}
.task-item__action:hover {
  background: rgba(255,255,255,0.08);
}

/* --- Task form (edit) --- */
.task-form-wrapper {
  padding: 0 16px 32px;
  max-width: 520px;
  margin: 0 auto;
}
.task-form-header {
  margin-bottom: 24px;
}
.task-form-back {
  font-size: 14px;
  color: var(--color-accent, #ff7a1a);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.task-form-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text, #e0e0e0);
}
.task-form-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary, #999);
  margin-top: 4px;
}
.task-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text, #e0e0e0);
}
.form-input,
.form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--color-text, #e0e0e0);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent, #ff7a1a);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
.form-hint {
  font-size: 12px;
  color: var(--color-text-secondary, #888);
}
.slot-picker,
.category-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.slot-option,
.category-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}
.slot-option input,
.category-option input {
  display: none;
}
.slot-option:has(input:checked),
.category-option:has(input:checked) {
  border-color: var(--color-accent, #ff7a1a);
  background: rgba(255,122,26,0.08);
}
.slot-option__number {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent, #ff7a1a);
}
.slot-option__label {
  font-size: 12px;
  color: var(--color-text-secondary, #999);
}
.category-option__icon {
  font-size: 20px;
}
.category-option__label {
  font-size: 14px;
  color: var(--color-text, #e0e0e0);
}
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
}
.checkbox-option input {
  display: none;
}
.checkbox-option__box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all .2s;
}
.checkbox-option input:checked + .checkbox-option__box {
  background: var(--color-accent, #ff7a1a);
  border-color: var(--color-accent, #ff7a1a);
}
.checkbox-option__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checkbox-option__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text, #e0e0e0);
}
.checkbox-option__hint {
  font-size: 12px;
  color: var(--color-text-secondary, #888);
}
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all .2s;
}
.btn--primary {
  background: var(--color-accent, #ff7a1a);
  color: #fff;
}
.btn--primary:hover {
  background: #e66a0f;
}
.btn--secondary {
  background: rgba(255,255,255,0.06);
  color: var(--color-text, #e0e0e0);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
}
.alert-error {
  background: rgba(244,67,54,0.1);
  border: 1px solid rgba(244,67,54,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.alert-error ul {
  margin: 0;
  padding-left: 18px;
}
.alert-error li {
  font-size: 14px;
  color: #f44336;
}

/* --- Tasks All: Responsive --- */
@media (max-width: 600px) {
  .tasks-all__header {
    gap: 8px;
  }
  .tasks-all__title {
    font-size: 18px;
  }
  .tasks-all__filters {
    gap: 6px;
  }
  .tasks-filter {
    padding: 6px 12px;
    font-size: 13px;
  }
  .task-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .task-item__body {
    min-width: 0;
    flex: 1 1 calc(100% - 50px);
  }
  .task-item__actions {
    flex-shrink: 0;
    margin-left: auto;
  }
}

/* ═══ Block 15: Projects ═══ */
.dash-card {
  background: #131d30;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 20px;
}
.dash-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.page-header {
  max-width: 960px;
  margin: 0 auto 20px;
}
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #eef1f5;
  margin: 0 0 4px;
}
.page-subtitle {
  font-size: 14px;
  color: #8892a4;
  margin: 0;
}
.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 14px;
  background: #1a2640;
  border: 1px solid #2a3a54;
  border-radius: 8px;
  color: #eef1f5;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.form-textarea:focus {
  outline: none;
  border-color: #ff7a1a;
}
.form-hint {
  font-size: 12px;
  color: #6b7a90;
  margin-top: 4px;
}
.flash-success {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.flash-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════
   SKILL MODULE (Block 16)
   ══════════════════════════════════════ */

/* Focus badge */
.skill-focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ff7a1a;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-radius: 100px;
  white-space: nowrap;
}
.skill-focus-badge--sm {
  font-size: 11px;
  padding: 2px 8px;
}

/* Status badge */
.skill-status-badge {
  display: inline-flex;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 100px;
  white-space: nowrap;
}

/* Section */
.skill-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #1e2d45;
}
.skill-section__title {
  font-size: 15px;
  font-weight: 600;
  color: #eef1f5;
  margin: 0 0 10px;
}

/* Practice form */
.skill-practice-form__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.skill-practice-form__row .form-input {
  flex: 1;
  min-width: 120px;
}
.skill-practice-form__dur {
  max-width: 80px;
  min-width: 70px !important;
  flex: 0 1 80px !important;
}

/* Practice done */
.skill-practice-done {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 8px;
  font-size: 14px;
  color: #4caf50;
  flex-wrap: wrap;
}
.skill-practice-done__note {
  color: #8892a4;
  font-size: 13px;
}
.skill-practice-done__dur {
  color: #8892a4;
  font-size: 12px;
}

/* Stats */
.skill-stats {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.skill-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1e2d45;
  border-radius: 8px;
}
.skill-stat__value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #eef1f5;
}
.skill-stat__label {
  display: block;
  font-size: 11px;
  color: #8892a4;
  margin-top: 2px;
}

/* Review item */
.skill-review-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1e2d45;
  border-radius: 8px;
}
.skill-review-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.skill-review-btn:hover {
  background: rgba(76, 175, 80, 0.2);
}

/* Item mini (catalog preview) */
.skill-item-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #1e2d45;
}
.skill-item-mini:last-child {
  border-bottom: none;
}

/* Project link */
.skill-project-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #eef1f5;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1e2d45;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.skill-project-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Attach form */
.skill-attach-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.skill-attach-form .form-input {
  flex: 1;
}

/* Actions row */
.skill-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Filter row */
.skill-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.skill-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #8892a4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1e2d45;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
}
.skill-filter-chip:hover {
  color: #eef1f5;
  background: rgba(255, 255, 255, 0.08);
}
.skill-filter-chip--active {
  color: #ff7a1a;
  background: rgba(255, 122, 26, 0.1);
  border-color: rgba(255, 122, 26, 0.3);
}
.skill-filter-chip__cnt {
  font-size: 11px;
  color: #8892a4;
}

/* List card */
.skill-list-card {
  padding: 16px;
}
.skill-list-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: #8892a4;
  flex-wrap: wrap;
}
.skill-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.skill-list-action {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #8892a4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1e2d45;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.skill-list-action:hover {
  color: #eef1f5;
  background: rgba(255, 255, 255, 0.08);
}
.skill-list-action--accent {
  color: #ff7a1a;
  border-color: rgba(255, 122, 26, 0.3);
}
.skill-list-action--accent:hover {
  background: rgba(255, 122, 26, 0.12);
}

/* Item card */
.skill-item-card {
  padding: 14px;
}
.skill-item-card--due {
  border-color: rgba(255, 152, 0, 0.3);
  background: rgba(255, 152, 0, 0.04);
}

/* Dashboard skill tile */
.dash-metric-tile--skill .dash-metric-tile__icon {
  font-size: 24px;
}

/* Mobile */
@media (max-width: 600px) {
  .skill-practice-form__row {
    flex-direction: column;
  }
  .skill-practice-form__dur {
    max-width: 100%;
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }
  .skill-stats {
    flex-direction: column;
  }
  .skill-review-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .skill-review-btn {
    width: 100%;
    text-align: center;
  }
  .skill-list-actions {
    width: 100%;
  }
  .skill-list-action {
    flex: 1;
    text-align: center;
  }
  .skill-attach-form {
    flex-direction: column;
  }
  .skill-attach-form .btn {
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════
   Блок 19: Запись дня + Журнал
   ═══════════════════════════════════════════════ */

/* ─── Карточка «Запись дня» на дашборде ─── */
.dash-day-entry {
  background: #111a2e;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.dash-day-entry--saved {
  border-color: #2a3f5f;
}
.dash-day-entry__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dash-day-entry__icon {
  font-size: 20px;
}
.dash-day-entry__title {
  font-size: 15px;
  font-weight: 600;
  color: #eef1f5;
}
.dash-day-entry__hint {
  font-size: 13px;
  color: #8892a4;
  margin-bottom: 12px;
}
.dash-day-entry__content {
  font-size: 14px;
  color: #c5cdd8;
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.dash-day-entry__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.dash-day-entry__mood {
  font-size: 20px;
}
.dash-day-entry__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dash-tag {
  display: inline-block;
  background: #1e2d45;
  color: #8892a4;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.dash-day-entry__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-day-entry__link {
  font-size: 13px;
  color: #a7b0c4;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.dash-day-entry__link:hover {
  color: #ff7a1a;
}
.dash-day-entry__link--red {
  color: #e74c3c;
}
.dash-day-entry__link--red:hover {
  color: #ff6b5a;
}
.dash-day-entry__delete-form {
  display: inline;
}
.dash-day-entry__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-day-entry__textarea {
  width: 100%;
  min-height: 80px;
  max-height: 200px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 12px;
  resize: vertical;
  box-sizing: border-box;
}
.dash-day-entry__textarea:focus {
  border-color: #ff7a1a;
  outline: none;
}
.dash-day-entry__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.dash-day-entry__mood-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-day-entry__mood-label {
  font-size: 13px;
  color: #8892a4;
  white-space: nowrap;
}
.dash-day-entry__mood-btns {
  display: flex;
  gap: 4px;
}
.dash-mood-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #1e2d45;
  background: #0d1424;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.dash-mood-btn:hover {
  border-color: #ff7a1a;
}
.dash-mood-btn--active {
  border-color: #ff7a1a;
  background: rgba(255,122,26,0.15);
}
.dash-day-entry__tags-input {
  flex: 1;
  min-width: 150px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 13px;
  padding: 6px 10px;
  font-family: inherit;
}
.dash-day-entry__tags-input:focus {
  border-color: #ff7a1a;
  outline: none;
}
.dash-day-entry__form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dash-day-entry__save-btn {
  background: #ff7a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.dash-day-entry__save-btn:hover {
  background: #e66a0e;
}

/* ─── Журнал: список ─── */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.journal-card {
  background: #111a2e;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 16px;
}
.journal-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.journal-card__date-block {
  display: flex;
  flex-direction: column;
}
.journal-card__date {
  font-size: 15px;
  font-weight: 600;
  color: #eef1f5;
}
.journal-card__dow {
  font-size: 12px;
  color: #8892a4;
}
.journal-card__mood {
  font-size: 22px;
}
.journal-card__text {
  font-size: 14px;
  color: #c5cdd8;
  line-height: 1.5;
  margin-bottom: 8px;
}
.journal-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.journal-card__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.journal-card__link {
  font-size: 13px;
  color: #a7b0c4;
  text-decoration: none;
}
.journal-card__link:hover {
  color: #ff7a1a;
}
.journal-card__link--red {
  color: #e74c3c;
}
.journal-card__link--red:hover {
  color: #ff6b5a;
}
.journal-card__delete {
  display: inline;
}

/* ─── Журнал: просмотр ─── */
.journal-view-card {
  background: #111a2e;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 20px;
}
.journal-view-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.journal-view-card__date-info {
  display: flex;
  flex-direction: column;
}
.journal-view-card__date {
  font-size: 18px;
  font-weight: 600;
  color: #eef1f5;
}
.journal-view-card__weekday {
  font-size: 13px;
  color: #8892a4;
}
.journal-view-card__mood {
  font-size: 28px;
}
.journal-view-card__text {
  font-size: 15px;
  color: #c5cdd8;
  line-height: 1.7;
  margin-bottom: 16px;
  white-space: pre-wrap;
}
.journal-view-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.journal-view-card__meta {
  font-size: 12px;
  color: #8892a4;
  margin-bottom: 16px;
}
.journal-view-card__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.journal-view-card__delete {
  display: inline;
}

/* ─── Журнал: редактирование ─── */
.journal-edit-mood {
  display: flex;
  gap: 6px;
}

/* ═══════════════════════════════════════════════
   Блок 20: Стратегия 2.0 + Точки усилий
   ═══════════════════════════════════════════════ */

/* ─── Strategy page ─── */
.strat-page {
  padding: 16px;
}
.strat-header {
  margin-bottom: 20px;
}
.strat-title {
  font-size: 22px;
  font-weight: 700;
  color: #eef1f5;
  margin: 0 0 8px;
}
.strat-subtitle {
  font-size: 14px;
  color: #8892a4;
  line-height: 1.5;
  margin: 0;
}

/* ─── Reminder banner ─── */
.strat-reminder {
  background: rgba(255,122,26,0.08);
  border: 1px solid rgba(255,122,26,0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.strat-reminder__text {
  font-size: 14px;
  color: #eef1f5;
  flex: 1;
  min-width: 200px;
}
.strat-reminder__btn {
  background: #ff7a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.strat-reminder__btn:hover {
  background: #e66a0e;
}

/* ─── Meta line ─── */
.strat-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.strat-meta__item {
  font-size: 13px;
  color: #8892a4;
}

/* ─── Horizon cards ─── */
.strat-horizon {
  background: #111a2e;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.strat-horizon--empty {
  border-style: dashed;
  border-color: #2a3f5f;
}
.strat-horizon__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 12px;
}
.strat-horizon__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.strat-horizon__emoji {
  font-size: 20px;
}
.strat-horizon__label {
  font-size: 16px;
  font-weight: 600;
  color: #eef1f5;
}
.strat-horizon__sub {
  font-size: 12px;
  color: #8892a4;
  width: 100%;
  margin-left: 28px;
}
@media (max-width: 480px) {
  .strat-horizon__header {
    flex-direction: column;
  }
  .strat-horizon__sub {
    margin-left: 0;
  }
}
.strat-horizon__edit {
  font-size: 13px;
  color: #a7b0c4;
  text-decoration: none;
}
.strat-horizon__edit:hover {
  color: #ff7a1a;
}
.strat-horizon__empty {
  text-align: center;
  padding: 16px;
}
.strat-horizon__empty p {
  font-size: 14px;
  color: #8892a4;
  margin: 0 0 8px;
}
.strat-horizon__empty-link {
  font-size: 14px;
  color: #ff7a1a;
  text-decoration: none;
}
.strat-horizon__empty-link:hover {
  text-decoration: underline;
}

/* ─── Strategy fields ─── */
.strat-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.strat-field {
  background: #0d1424;
  border-radius: 8px;
  padding: 10px 12px;
}
.strat-field__label {
  font-size: 12px;
  font-weight: 600;
  color: #ff7a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.strat-field__value {
  font-size: 14px;
  color: #c5cdd8;
  line-height: 1.5;
}

/* ─── Strategy edit form ─── */
.strat-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.strat-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.strat-edit-label {
  font-size: 14px;
  font-weight: 500;
  color: #eef1f5;
}
.strat-edit-hint {
  font-size: 12px;
  color: #8892a4;
  margin: 0;
}
.strat-edit-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 300px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 12px;
  resize: vertical;
  box-sizing: border-box;
}
.strat-edit-textarea:focus {
  border-color: #ff7a1a;
  outline: none;
}
.strat-edit-input {
  width: 100%;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 14px;
  font-family: inherit;
  padding: 8px 12px;
  box-sizing: border-box;
}
.strat-edit-input:focus {
  border-color: #ff7a1a;
  outline: none;
}
.strat-edit-select {
  width: 100%;
  max-width: 300px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 14px;
  font-family: inherit;
  padding: 8px 12px;
  box-sizing: border-box;
}
.strat-edit-select:focus {
  border-color: #ff7a1a;
  outline: none;
}

/* ─── Leverage Points section ─── */
.strat-section {
  margin-top: 24px;
}
.strat-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.strat-section__title {
  font-size: 16px;
  font-weight: 600;
  color: #eef1f5;
  margin: 0 0 4px;
}
.strat-section__sub {
  font-size: 13px;
  color: #8892a4;
  margin: 0;
}
.strat-section__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Buttons ─── */
.strat-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.strat-btn--primary {
  background: #ff7a1a;
  color: #fff;
}
.strat-btn--primary:hover {
  background: #e66a0e;
}
.strat-btn--ghost {
  background: transparent;
  border: 1px solid #1e2d45;
  color: #a7b0c4;
}
.strat-btn--ghost:hover {
  border-color: #ff7a1a;
  color: #ff7a1a;
}
.strat-btn--disabled {
  background: #1e2d45;
  color: #8892a4;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ─── Empty state ─── */
.strat-empty {
  text-align: center;
  padding: 24px;
  color: #8892a4;
  font-size: 14px;
}
.strat-empty p {
  margin: 0;
}
.strat-empty--small {
  padding: 12px;
  font-size: 13px;
}
.strat-empty--small a,
.strat-link {
  color: #ff7a1a;
  text-decoration: none;
}
.strat-empty--small a:hover,
.strat-link:hover {
  text-decoration: underline;
}

/* ─── Point cards (list) ─── */
.strat-points-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.strat-point-card {
  background: #111a2e;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.strat-point-card:hover {
  border-color: #2a3f5f;
}
.strat-point-card--inactive {
  opacity: 0.6;
}
.strat-point-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.strat-point-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #eef1f5;
}
a.strat-point-card__title {
  text-decoration: none;
}
a.strat-point-card__title:hover {
  color: #ff7a1a;
}
.strat-point-card__badges {
  display: flex;
  gap: 6px;
}
.strat-point-card__desc {
  font-size: 13px;
  color: #8892a4;
  line-height: 1.4;
  margin-bottom: 4px;
}
.strat-point-card__meta {
  font-size: 12px;
  color: #8892a4;
  margin-bottom: 6px;
}
.strat-point-card__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.strat-point-card__btn {
  font-size: 12px;
  color: #a7b0c4;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.strat-point-card__btn:hover {
  color: #ff7a1a;
}
.strat-point-card__btn--danger {
  color: #e74c3c;
}
.strat-point-card__btn--danger:hover {
  color: #ff6b5a;
}

/* ─── Projects inside leverage point cards (Block 29) ─── */
.strat-point-card__projects {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #1e2d45;
}

.strat-point-card__projects-label {
  font-size: 13px;
  color: #8892a4;
  margin-bottom: 6px;
  font-weight: 500;
}

.strat-point-card__projects-label a {
  color: #ff7a1a;
  text-decoration: none;
}

.strat-point-card__projects-label a:hover {
  text-decoration: underline;
}

.strat-point-card__projects-label--empty {
  color: #5a6478;
  font-style: italic;
}

.strat-point-card__projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strat-point-card__projects-list li {
  display: flex;
  align-items: center;
}

.strat-point-card__projects-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #c5cdd8;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  transition: background 0.15s, color 0.15s;
  width: 100%;
}

.strat-point-card__projects-list li a:hover {
  background: rgba(255,122,26,0.08);
  color: #ff7a1a;
}

/* Mobile: projects inside cards */
@media (max-width: 767px) {
  .strat-point-card__projects-list li a {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* ─── Priority badges ─── */
.strat-priority {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.strat-priority--high {
  background: rgba(255,122,26,0.15);
  color: #ff7a1a;
}
.strat-priority--normal {
  background: rgba(136,146,164,0.15);
  color: #8892a4;
}
.strat-priority--low {
  background: rgba(30,45,69,0.5);
  color: #5a6578;
}

/* ─── Status badges ─── */
.strat-status-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.strat-status-badge--active {
  background: rgba(46,204,113,0.15);
  color: #2ecc71;
}
.strat-status-badge--paused {
  background: rgba(241,196,15,0.15);
  color: #f1c40f;
}
.strat-status-badge--archived {
  background: rgba(136,146,164,0.1);
  color: #8892a4;
}
.strat-focus-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,122,26,0.15);
  color: #ff7a1a;
}

/* ─── Filter tabs ─── */
.strat-filter {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.strat-filter__link {
  font-size: 13px;
  color: #8892a4;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
}
.strat-filter__link:hover {
  color: #eef1f5;
  background: #1e2d45;
}
.strat-filter__link--active {
  color: #ff7a1a;
  border-color: #ff7a1a;
  background: rgba(255,122,26,0.08);
}

/* ─── Point view ─── */
.strat-point-view {
  margin-bottom: 20px;
}
.strat-point-view__header {
  margin-bottom: 16px;
}
.strat-point-view__badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.strat-point-view__section {
  margin-bottom: 20px;
}
.strat-point-view__label {
  font-size: 12px;
  font-weight: 600;
  color: #ff7a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.strat-point-view__text {
  font-size: 14px;
  color: #c5cdd8;
  line-height: 1.6;
}
.strat-point-view__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ─── Linked tasks ─── */
.strat-linked-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.strat-linked-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1424;
  border-radius: 8px;
  padding: 8px 12px;
  gap: 8px;
}
.strat-linked-task--done {
  opacity: 0.6;
}
.strat-linked-task__info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.strat-linked-task__title {
  font-size: 13px;
  color: #eef1f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strat-linked-task--done .strat-linked-task__title {
  text-decoration: line-through;
}
.strat-linked-task__date {
  font-size: 11px;
  color: #8892a4;
  white-space: nowrap;
}
.strat-linked-task__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.strat-linked-task__btn {
  font-size: 14px;
  color: #a7b0c4;
  text-decoration: none;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  font-family: inherit;
}
.strat-linked-task__btn:hover {
  color: #ff7a1a;
}
.strat-linked-done {
  margin-bottom: 12px;
}
.strat-linked-done__title {
  font-size: 12px;
  color: #8892a4;
  margin-bottom: 6px;
}

/* ─── Quick add task ─── */
.strat-quick-task {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.strat-quick-task__input {
  flex: 1;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 13px;
  padding: 8px 12px;
  font-family: inherit;
}
.strat-quick-task__input:focus {
  border-color: #ff7a1a;
  outline: none;
}
.strat-quick-task__btn {
  background: #ff7a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.strat-quick-task__btn:hover {
  background: #e66a0e;
}

/* ─── Linked skills ─── */
.strat-linked-skill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d1424;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
}
.strat-linked-skill:hover {
  background: #1e2d45;
}
.strat-linked-skill__title {
  font-size: 13px;
  color: #eef1f5;
}

/* ─── More link ─── */
.strat-more-link {
  font-size: 13px;
  color: #ff7a1a;
  text-decoration: none;
  padding: 8px 14px;
  text-align: center;
}
.strat-more-link:hover {
  text-decoration: underline;
}

/* ─── Skill strategy link ─── */
.skill-strategy-link {
  font-size: 13px;
  color: #8892a4;
  margin: 6px 0 0;
}
.skill-strategy-link a {
  color: #ff7a1a;
  text-decoration: none;
}
.skill-strategy-link a:hover {
  text-decoration: underline;
}

/* ─── Dashboard: warning tile ─── */
.dash-metric-tile--warning {
  border-color: rgba(255,122,26,0.3);
}
.dash-metric-tile__alert {
  display: block;
  font-size: 12px;
  color: #ff7a1a;
  font-weight: 500;
  margin-top: 4px;
}

/* ─── Strategy meta update form (hidden, for back-compat) ─── */
/* ─── (no more hidden forms needed) ─── */

/* ─── Horizon grouping (strategy page) ─── */
.strat-horizon-group {
  margin-bottom: 24px;
}
.strat-horizon-group__title {
  font-size: 14px;
  font-weight: 600;
  color: #8892a4;
  margin-bottom: 10px;
  padding-left: 2px;
}

/* ─── Horizon badge (point view) ─── */
.strat-horizon-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(76,175,80,0.15);
  color: #4caf50;
  white-space: nowrap;
}

/* ─── Linked projects (point view) ─── */
.strat-linked-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #111a2e;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  text-decoration: none;
  color: #eef1f5;
  transition: border-color 0.15s;
}
.strat-linked-project:hover {
  border-color: #ff7a1a;
}
.strat-linked-project__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.strat-linked-project__title {
  font-size: 14px;
  font-weight: 500;
}
.strat-linked-project__meta {
  font-size: 12px;
  color: #8892a4;
  display: flex;
  gap: 8px;
}
.strat-linked-project__group {
  text-transform: capitalize;
}
.strat-linked-project__income {
  font-size: 13px;
  color: #4caf50;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   BLOCK 22B — MOBILE UX POLISH
   ═══════════════════════════════════════════════ */

/* --- GROUP 1: Unified submit buttons --- */
.btn-primary,
.btn--primary {
  min-height: 44px;
  padding: 12px 24px;
  font-size: 15px;
}
.btn-danger {
  min-height: 44px;
  padding: 12px 24px;
}
@media (max-width: 480px) {
  .settings-form .btn-primary,
  .task-form .btn--primary,
  .form-actions .btn--primary,
  .form-actions .btn-primary,
  .settings-form .btn-danger {
    width: 100%;
  }
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .form-actions .btn,
  .form-actions .btn--secondary {
    width: 100%;
    text-align: center;
  }
}

/* --- GROUP 3: Burger menu polish --- */
@media (max-width: 900px) {
  .mobile-menu-link {
    padding: 10px 16px;
    min-height: 48px;
    font-size: 18px;
  }
  .mobile-menu-link.active {
    background: transparent;
    color: #ff7a1a;
    font-weight: 600;
    border-left: 3px solid #ff7a1a;
    padding-left: 13px;
  }
  .mobile-menu-link:hover {
    background: rgba(255,122,26,0.08);
  }
  .mobile-menu-logout {
    display: inline-block;
    text-align: left;
    padding: 8px 16px;
    border: none;
    border-left: 3px solid #d84040;
    font-size: 14px;
    min-height: auto;
  }
  .mobile-menu-footer {
    padding-top: 16px;
    gap: 8px;
  }
}

/* --- GROUP 4: Project tabs scrollbar hidden --- */
.tasks-all__filters {
  scrollbar-width: none;
}
.tasks-all__filters::-webkit-scrollbar {
  display: none;
}
.tasks-filter {
  flex-shrink: 0;
}

/* --- GROUP 5: Project groups 2×2 on mobile --- */
@media (max-width: 480px) {
  .category-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* --- GROUP 6: Skill card polish --- */
.page-header {
  position: relative;
}
.skill-focus-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}
@media (max-width: 480px) {
  .skill-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .skill-stat {
    padding: 10px 4px;
  }
  .skill-stat__value {
    font-size: 18px;
  }
  .skill-actions {
    flex-direction: column;
  }
  .skill-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* --- GROUP 7: Strategy horizon group headers --- */
.strat-horizon-group__title {
  font-size: 16px;
  font-weight: 600;
  color: #eef1f5;
  padding: 12px 0 8px;
}
@media (max-width: 480px) {
  .strat-point-card__header {
    flex-wrap: wrap;
  }
}

/* --- GROUP 9: Money stage badge dedup --- */
.money-stage-card__header .money-stage-badge {
  display: none;
}

/* --- GROUP 12: Nav links for desktop/mobile --- */

/* ═══════════════════════════════════════════════
   BLOCK 22C — QUICK TASK INPUT
   ═══════════════════════════════════════════════ */

.dash-task-slot__add-btn {
  background: none;
  border: none;
  color: #8892a4;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  width: 100%;
  text-align: left;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.dash-task-slot__add-btn:hover {
  color: #ff7a1a;
}

.dash-task-slot__quick-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dash-task-slot__quick-input {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.dash-task-slot__quick-input:focus {
  border-color: #ff7a1a;
}
.dash-task-slot__quick-input::placeholder {
  color: #5a6378;
}
.dash-task-slot__quick-btn {
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.dash-task-slot__quick-btn--ok {
  background: #ff7a1a;
  color: #fff;
}
.dash-task-slot__quick-btn--ok:hover {
  background: #e66a0e;
}
.dash-task-slot__quick-btn--cancel {
  background: rgba(255,255,255,0.06);
  color: #8892a4;
}
.dash-task-slot__quick-btn--cancel:hover {
  background: rgba(255,255,255,0.1);
  color: #eef1f5;
}

@media (max-width: 480px) {
  .dash-task-slot__quick-form {
    flex-wrap: wrap;
  }
  .dash-task-slot__quick-input {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ═══ Block 23: Offline indicators ═══ */

.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #e53935;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.offline-banner[hidden] {
  display: none;
}

.offline-banner--flash {
  animation: offline-flash 0.6s ease;
}

@keyframes offline-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.sync-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 10000;
  background: rgba(30, 40, 60, 0.92);
  color: #aab;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sync-badge[hidden] {
  display: none;
}

.sync-badge--synced {
  background: rgba(40, 120, 60, 0.9);
  color: #c8e6c9;
}

.sync-badge--error {
  background: rgba(200, 60, 40, 0.9);
  color: #ffcdd2;
}

.sync-badge--syncing {
  background: rgba(25, 118, 210, 0.9);
  color: #bbdefb;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .sync-badge {
    bottom: 12px;
    right: 12px;
    font-size: 11px;
    padding: 5px 12px;
  }
}

/* ══════════════════════════════════════════════
   Block 28.1: Missing CSS — brain-dump, dashboard brain card, journal edit
   ══════════════════════════════════════════════ */

/* ─── Brain Dump Page ─── */
.bd-page {
  max-width: 680px;
  margin: 0 auto;
}

.bd-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  background: #131d30;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  padding: 12px 16px;
  overflow: hidden;
}

.bd-progress__bar {
  height: 6px;
  background: #ff7a1a;
  border-radius: 3px;
  flex-shrink: 0;
  min-width: 20px;
  transition: width 0.3s;
}

.bd-progress__text {
  color: #8892a4;
  font-size: 13px;
  white-space: nowrap;
}

.bd-card {
  background: #131d30;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 24px;
}

.bd-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #eef1f5;
  margin: 0 0 8px;
}

.bd-card__desc {
  color: #8892a4;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.bd-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bd-form__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.bd-textarea {
  width: 100%;
  min-height: 180px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  color: #eef1f5;
  font-size: 15px;
  font-family: inherit;
  padding: 14px 16px;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.6;
}

.bd-textarea:focus {
  outline: none;
  border-color: #ff7a1a;
}

.bd-textarea::placeholder {
  color: #4a5568;
}

.bd-textarea--sm {
  min-height: 100px;
}

.bd-textarea--tasks {
  min-height: 80px;
}

.bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  min-height: 44px;
}

.bd-btn--primary {
  background: #ff7a1a;
  color: #fff;
}

.bd-btn--primary:hover {
  background: #e86d10;
}

.bd-btn--primary.bd-btn--done {
  background: #22c55e;
}

.bd-btn--ghost {
  background: transparent;
  color: #8892a4;
  border: 1px solid #1e2d45;
}

.bd-btn--ghost:hover {
  color: #eef1f5;
  border-color: #3a4a6a;
}

/* Radio buttons */
.bd-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0d1424;
  border: 2px solid #1e2d45;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.bd-radio:hover {
  border-color: #3a4a6a;
}

.bd-radio--active {
  border-color: #ff7a1a;
  background: rgba(255, 122, 26, 0.08);
}

.bd-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #ff7a1a;
  flex-shrink: 0;
}

/* Priority items */
.bd-prio-group {
  margin-bottom: 16px;
}

.bd-prio-group__header {
  font-size: 14px;
  font-weight: 600;
  color: #8892a4;
  margin-bottom: 8px;
}

.bd-prio-group__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bd-prio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.bd-prio-item:hover {
  border-color: #3a4a6a;
}

.bd-prio-item--active {
  border-color: #ff7a1a;
  background: rgba(255, 122, 26, 0.08);
}

.bd-prio-item__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #1e2d45;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: transparent;
  transition: all 0.15s;
}

.bd-prio-item--active .bd-prio-item__check {
  background: #ff7a1a;
  border-color: #ff7a1a;
  color: #fff;
}

.bd-prio-item__text {
  color: #eef1f5;
  font-size: 14px;
  flex: 1;
}

/* Fields */
.bd-field {
  margin-bottom: 12px;
}

.bd-field--full {
  width: 100%;
}

.bd-field--new-lp,
.bd-field--new-proj {
  margin-top: 8px;
}

.bd-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #8892a4;
  margin-bottom: 6px;
}

.bd-input {
  width: 100%;
  padding: 10px 14px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.bd-input:focus {
  outline: none;
  border-color: #ff7a1a;
}

.bd-select {
  width: 100%;
  padding: 10px 14px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #eef1f5;
  font-size: 14px;
  box-sizing: border-box;
}

.bd-select:focus {
  outline: none;
  border-color: #ff7a1a;
}

/* Hints */
.bd-hint {
  padding: 12px 16px;
  background: rgba(255, 122, 26, 0.06);
  border-left: 3px solid #ff7a1a;
  border-radius: 0 8px 8px 0;
  color: #8892a4;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Thoughts list */
.bd-thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.bd-thought-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
}

.bd-thought-item__text {
  flex: 1;
  color: #eef1f5;
  font-size: 14px;
}

.bd-thought-item__btns {
  display: flex;
  gap: 6px;
}

/* Decomp items */
.bd-decomp-item {
  padding: 12px 14px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  margin-bottom: 8px;
}

.bd-decomp-item__thought {
  color: #eef1f5;
  font-size: 14px;
  margin-bottom: 8px;
}

.bd-decomp-item__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Goal items */
.bd-goal-item {
  padding: 12px 14px;
  background: #0d1424;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  margin-bottom: 8px;
}

.bd-goal-item__thought {
  color: #eef1f5;
  font-size: 14px;
  margin-bottom: 8px;
}

.bd-goal-item__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Empty state */
.bd-empty {
  color: #4a5568;
  font-size: 14px;
  padding: 16px 0;
  text-align: center;
}

/* History */
.bd-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bd-history-item {
  background: #131d30;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  padding: 16px;
}

.bd-history-item__date {
  font-size: 13px;
  color: #8892a4;
  margin-bottom: 8px;
}

.bd-history-item__stats {
  font-size: 14px;
  color: #eef1f5;
}

/* Summary */
.bd-summary {
  max-width: 680px;
  margin: 0 auto;
}

.bd-summary__text {
  color: #8892a4;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.bd-summary-section {
  margin-bottom: 24px;
}

.bd-summary-section--empty {
  opacity: 0.5;
}

.bd-summary-section__title {
  font-size: 16px;
  font-weight: 600;
  color: #eef1f5;
  margin-bottom: 12px;
}

.bd-summary-card {
  background: #131d30;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.bd-summary-card--task {
  border-left: 3px solid #ff7a1a;
}

.bd-summary-card__title {
  color: #eef1f5;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bd-summary-card__why {
  color: #8892a4;
  font-size: 13px;
}

.bd-summary-card__meta {
  color: #4a5568;
  font-size: 12px;
  margin-top: 6px;
}

.bd-summary-card__link {
  color: #ff7a1a;
  font-size: 13px;
  text-decoration: none;
}

.bd-summary-card__link:hover {
  text-decoration: underline;
}

.bd-summary-card__link--disabled {
  color: #4a5568;
  pointer-events: none;
}

/* ─── Dashboard: Brain Dump Card ─── */
.dash-brain-dump {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #131d30;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.dash-brain-dump__icon {
  font-size: 36px;
  flex-shrink: 0;
}

.dash-brain-dump__content {
  flex: 1;
  min-width: 0;
}

.dash-brain-dump__title {
  font-size: 16px;
  font-weight: 700;
  color: #eef1f5;
  margin: 0 0 4px;
}

.dash-brain-dump__desc {
  font-size: 13px;
  color: #8892a4;
  margin: 0 0 12px;
}

.dash-brain-dump__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #ff7a1a;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.dash-brain-dump__btn:hover {
  background: #e86d10;
}

.dash-brain-dump__meta {
  font-size: 12px;
  color: #4a5568;
  margin-top: 10px;
}

.dash-brain-dump__history-link {
  color: #8892a4;
  text-decoration: none;
}

.dash-brain-dump__history-link:hover {
  color: #ff7a1a;
}

.dash-brain-dump__draft {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 122, 26, 0.08);
  border: 1px solid rgba(255, 122, 26, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #eef1f5;
  margin-bottom: 12px;
}

.dash-brain-dump__draft-icon {
  font-size: 16px;
}

.dash-brain-dump__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-brain-dump__btn--ghost {
  background: transparent;
  color: #8892a4;
  border: 1px solid #1e2d45;
}

.dash-brain-dump__btn--ghost:hover {
  color: #eef1f5;
  border-color: #3a4a6a;
}

/* ─── Journal Edit Form ─── */
.task-form-group {
  margin-bottom: 24px;
}

.task-form-label {
  display: block;
  color: #e6ecff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.task-form-textarea {
  width: 100%;
  min-height: 120px;
  background: #0d1424;
  border: 1px solid #1e2942;
  border-radius: 10px;
  color: #eef1f5;
  font-size: 15px;
  font-family: inherit;
  padding: 14px 16px;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.task-form-textarea:focus {
  outline: none;
  border-color: #ff7a1a;
}

.task-form-textarea::placeholder {
  color: #4a5568;
}

.task-form-input {
  width: 100%;
  padding: 12px 16px;
  background: #0d1424;
  border: 1px solid #1e2942;
  border-radius: 10px;
  color: #eef1f5;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.task-form-input:focus {
  outline: none;
  border-color: #ff7a1a;
}

.task-form-input::placeholder {
  color: #4a5568;
}

.task-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.task-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #ff7a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
}

.task-form-submit:hover {
  background: #e86d10;
}

.task-form-submit--red {
  background: #dc2626;
}

.task-form-submit--red:hover {
  background: #b91c1c;
}

/* ── Task delete button ── */
.btn--danger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn--danger:hover {
  background: #b91c1c;
}

.task-form-cancel {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: transparent;
  color: #8892a4;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
}

.task-form-cancel:hover {
  color: #eef1f5;
  border-color: #3a4a6a;
}

/* ══════════════════════════════════════════════
   Confirm Modal
   ══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 36, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.modal-card {
  background: #111a2e;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 28px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.modal-close:hover {
  color: #eef1f5;
  background: rgba(255, 255, 255, 0.05);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #eef1f5;
  margin: 0 0 8px;
}

.modal-text {
  font-size: 14px;
  color: #8892a4;
  margin: 0 0 24px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.modal-btn--cancel {
  background: #1e2d45;
  color: #8892a4;
}

.modal-btn--cancel:hover {
  background: #263652;
  color: #eef1f5;
}

.modal-btn--danger {
  background: #dc2626;
  color: #fff;
}

.modal-btn--danger:hover {
  background: #b91c1c;
}

/* ══════════════════════════════════════════════
   Block 28: Bottom Navigation (mobile)
   ══════════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1424;
  border-top: 1px solid #1e2942;
  z-index: 9990;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 6px;
  min-height: 52px;
  text-decoration: none;
  color: #8892a4;
  font-size: 10px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item--active,
.bottom-nav__item.active {
  color: #ff7a1a;
}

.bottom-nav__icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 2px;
}

.bottom-nav__label {
  font-size: 10px;
  line-height: 1.2;
}

/* Add padding to main content so it doesn't hide behind bottom-nav */
@media (max-width: 767px) {
  .app-main {
    padding-bottom: 72px !important;
  }
  .app-footer {
    display: none;
  }
}

/* Show bottom-nav on mobile only */
@media (min-width: 768px) {
  .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
  }
}

/* ══════════════════════════════════════════════
   Block 28: "Ещё" overlay (mobile sheet)
   ══════════════════════════════════════════════ */
.more-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
}

.more-overlay.open {
  display: block;
}

.more-overlay__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.more-overlay__sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111a2e;
  border-radius: 16px 16px 0 0;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.more-overlay.open .more-overlay__sheet {
  transform: translateY(0);
}

.more-overlay__handle {
  width: 40px;
  height: 4px;
  background: #2a3552;
  border-radius: 2px;
  margin: 0 auto 12px;
}

.more-overlay__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px;
}

.more-overlay__item {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 17px;
  color: #e6ecf5;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s;
}

.more-overlay__item:hover,
.more-overlay__item:active {
  background: rgba(255, 122, 26, 0.15);
  color: #ff7a1a;
}

.more-overlay__item--danger {
  color: #f87171;
}

/* Hide burger on mobile when bottom-nav is active */
@media (max-width: 767px) {
  .mobile-burger {
    display: none !important;
  }
  .mobile-menu-toggle:checked ~ .mobile-menu-overlay {
    /* keep for back-compat but burger is hidden */
  }
}

/* ══════════════════════════════════════════════
   Block 28: Deals page
   ══════════════════════════════════════════════ */
.deals-page {
  max-width: 680px;
  margin: 0 auto;
}

.deals-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #1e2942;
  padding-bottom: 0;
}

.deals-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #8892a4;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  min-height: 44px;
}

.deals-tab:hover {
  color: #e6ecf5;
}

.deals-tab--active {
  color: #ff7a1a;
  border-bottom-color: #ff7a1a;
}

.deals-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255, 122, 26, 0.15);
  color: #ff7a1a;
  font-size: 12px;
  font-weight: 700;
  border-radius: 11px;
}

.deals-tab--active .deals-tab__count {
  background: #ff7a1a;
  color: #0d1424;
}

.deals-content {
  min-height: 200px;
}

.deals-new-btn {
  margin-bottom: 16px;
  display: inline-block;
}

/* Deals: empty state */
.deals-empty {
  text-align: center;
  padding: 48px 20px;
}
.deals-empty__icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.deals-empty__text {
  font-size: 15px;
  color: #8892a4;
  margin-bottom: 12px;
}
.deals-empty__link {
  color: #ff7a1a;
  text-decoration: none;
  font-size: 14px;
}

/* Deals: task list */
.deals-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deals-task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #111a2e;
  border-radius: 10px;
  transition: opacity 0.2s;
}

.deals-task--done {
  opacity: 0.5;
}
.deals-task--old {
  border-left: 3px solid #f87171;
}
.deals-task--today {
  border-left: 3px solid #ff7a1a;
}

.deals-task__check {
  flex-shrink: 0;
  padding-top: 2px;
}
.deals-task__checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #2a3552;
  background: transparent;
  color: #8892a4;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.deals-task__checkbox:hover {
  border-color: #ff7a1a;
  color: #ff7a1a;
}
.deals-task__checkbox--done {
  border-color: #22c55e;
  color: #22c55e;
  cursor: default;
}

.deals-task__body {
  flex: 1;
  min-width: 0;
}
.deals-task__title {
  font-size: 14px;
  color: #e6ecf5;
  margin-bottom: 4px;
  word-break: break-word;
}
.deals-task--done .deals-task__title {
  text-decoration: line-through;
  color: #8892a4;
}
.deals-task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #8892a4;
}
.deals-task__project {
  color: #a78bfa;
}
.deals-task__flag {
  color: #fbbf24;
}
.deals-task__edit {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 16px;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.deals-task__edit:hover {
  opacity: 1;
}

/* Deals: project list */
.deals-project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deals-project {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #111a2e;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.deals-project:hover {
  background: #162035;
}

.deals-project__icon {
  font-size: 24px;
  flex-shrink: 0;
}
.deals-project__body {
  flex: 1;
  min-width: 0;
}
.deals-project__title {
  font-size: 15px;
  font-weight: 600;
  color: #e6ecf5;
  margin-bottom: 4px;
}
.deals-project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #8892a4;
}
.deals-project__lp {
  color: #ff7a1a;
}
.deals-project__arrow {
  color: #8892a4;
  font-size: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   Block 28: Desktop settings icon
   ══════════════════════════════════════════════ */
.app-user__settings {
  color: #8892a4;
  text-decoration: none;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.app-user__settings:hover {
  color: #ff7a1a;
  background: rgba(255, 122, 26, 0.1);
}
