:root {
    color-scheme: light;
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-surface-soft: #f4f4f5;
    --color-surface-raised: rgb(255 255 255 / 0.96);
    --color-text: oklch(14.7% 0.004 49.3);
    --color-text-soft: oklch(36.7% 0.016 35.7);
    --color-text-muted: oklch(54.7% 0.021 43.1);
    --color-text-faint: oklch(71.4% 0.014 41.2);
    --color-border: #e4e4e7;
    --color-border-strong: #d4d4d8;
    --color-accent: #059669;
    --color-accent-deep: #047857;
    --color-accent-soft: #ecfdf5;
    --color-accent-soft-strong: #d1fae5;
    --color-cyan: #06b6d4;
    --color-cyan-deep: #0891b2;
    --color-cyan-soft: #ecfeff;
    --color-cyan-soft-strong: #cffafe;
    --color-focus: rgba(5, 150, 105, 0.22);
    --color-badge-bg: #e0f2fe;
    --color-badge-text: #0369a1;
    --font-title: "Gabarito", "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius-card: 14px;
    --shadow-card: 0 1px 2px oklch(14.7% 0.004 49.3 / 0.04);
    --shadow-control: 0 1px 2px oklch(14.7% 0.004 49.3 / 0.05);
}

* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    min-width: 0;
}

[hidden] {
    display: none !important;
}

html {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    max-width: 100%;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    font-family: inherit;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.app-page-main {
    flex: 1 0 auto;
    min-height: 72vh;
    min-width: 0;
}

.turbo-progress-bar {
    background: linear-gradient(90deg, var(--color-badge-text), var(--color-cyan));
    height: 4px;
}

.auth-entry-main {
    background: var(--color-surface);
}

button,
input,
select,
textarea {
    font: inherit;
    max-width: 100%;
}

a {
    color: inherit;
}

img,
picture,
video,
canvas {
    display: block;
    max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
blockquote,
figcaption,
.app-main,
.feed-title-link,
.feed-summary-link,
.feed-source,
.post-detail-source,
.post-detail-title,
.post-body,
.activity-item strong,
.activity-item span,
.profile-course-item strong,
.learning-path-card h2,
.learning-path-card p,
.learning-lesson-content h2,
.learning-lesson-content p,
.learning-card-visual-label,
.resource-video-card h2,
.about-copy h2,
.about-copy p,
.about-faq-item h3,
.about-faq-item p,
.legal-page {
    overflow-wrap: anywhere;
}

strong,
b {
    font-weight: 600;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

button,
input[type="submit"] {
    -webkit-tap-highlight-color: transparent;
}

.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

.mw-400 {
    max-width: 400px !important;
}

.app-icon {
    display: inline-block;
    flex: 0 0 auto;
    height: 1em;
    vertical-align: -0.125em;
    width: 1em;
}

.app-logo {
    display: block;
    height: auto;
    width: 4.25rem;
}

.app-logo-navbar {
    height: 2.2rem;
    object-fit: contain;
    width: auto;
}

.app-logo-mark {
    display: block;
    height: auto;
    width: 4.5rem;
}

.app-header-link,
.feed-title-link,
.feed-summary-link {
    text-decoration: none;
}

.app-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: var(--shadow-control);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    max-width: 100%;
    padding: 0.68rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.12s ease;
    white-space: normal;
}

.app-button:active {
    transform: translateY(1px);
}

.app-button:focus-visible,
.app-control:focus-visible,
.vote-button:focus-visible,
.feed-action-link:focus-visible,
.activity-item:focus-visible,
.app-header-link:focus-visible,
.app-header-brand:focus-visible {
    box-shadow: 0 0 0 4px var(--color-focus);
    outline: 0;
}

.app-button-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.app-button-primary:hover {
    background: var(--color-accent-deep);
    border-color: var(--color-accent-deep);
    color: white;
}

.app-button-secondary {
    background: var(--color-surface-raised);
    border-color: var(--color-border);
    color: var(--color-text-soft);
}

.app-button-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

.app-button-small {
    font-size: 0.82rem;
    min-height: 34px;
    padding: 0.42rem 0.75rem;
}

.app-button-full {
    width: 100%;
}

.app-alert {
    align-items: center;
    border: 1px solid;
    border-radius: var(--radius-card);
    display: flex;
    font-size: 0.9rem;
    gap: 0.85rem;
    justify-content: space-between;
    line-height: 1.45;
    min-width: 0;
    padding: 0.85rem 0.95rem;
}

.app-alert-notice {
    background: var(--color-accent-soft);
    border-color: var(--color-accent-soft-strong);
    color: #065f46;
}

.app-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.flash-wrap {
    margin-bottom: 1rem;
    margin-top: 1rem;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.flash-wrap.is-hiding {
    opacity: 0;
    transform: translateY(-4px);
}

.flash-dismiss {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: currentColor;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
    height: 28px;
    justify-content: center;
    line-height: 1;
    opacity: 0.72;
    padding: 0;
    width: 28px;
}

.flash-dismiss:hover,
.flash-dismiss:focus-visible {
    background: rgb(255 255 255 / 0.52);
    opacity: 1;
}

.flash-dismiss:focus-visible {
    box-shadow: 0 0 0 3px var(--color-focus);
    outline: 0;
}

.empty-state {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.app-label {
    color: var(--color-text-soft);
    display: inline-block;
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.app-control {
    appearance: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-control);
    color: var(--color-text);
    display: block;
    line-height: 1.5;
    min-height: 44px;
    padding: 0.68rem 0.78rem;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}

.app-control::placeholder {
    color: var(--color-text-faint);
}

.app-control:focus {
    background: var(--color-surface);
    border-color: rgba(5, 150, 105, 0.56);
    box-shadow: 0 0 0 4px var(--color-focus);
    outline: 0;
}

.form-field {
    margin-bottom: 1.05rem;
}

.form-field-tight {
    margin-bottom: 0.75rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1.35rem;
}

.form-alert {
    margin-bottom: 1rem;
    margin-top: 0;
}

.form-alert-heading {
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.form-alert-list {
    margin: 0;
    padding-left: 1.25rem;
}

.post-form {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    margin-top: 0.35rem;
    min-width: 0;
    padding: 1.2rem;
}

.app-header {
    background: var(--color-bg);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    padding: 0.62rem 0 0.72rem;
    position: sticky;
    top: 0;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    z-index: 20;
}

.app-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 0 oklch(14.7% 0.004 49.3 / 0.03);
}

.app-header-bar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
}

.app-header-brand {
    align-items: center;
    color: var(--color-text);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
}

.app-header-menu-button {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    display: none;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    padding: 0;
    width: 36px;
}

.app-header-menu-button span {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.app-header-menu-button:hover {
    background: var(--color-surface-soft);
}

.app-header-menu-button:focus-visible {
    box-shadow: 0 0 0 4px var(--color-focus);
    outline: 0;
}

.app-header-search {
    flex: 1 1 auto;
    max-width: 520px;
    min-width: 180px;
}

.app-header-search-control {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-muted);
    display: flex;
    gap: 0.5rem;
    min-height: 34px;
    padding: 0 0.72rem;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.app-header-search-control:focus-within {
    background: var(--color-surface);
    border-color: rgba(5, 150, 105, 0.56);
    box-shadow: 0 0 0 4px var(--color-focus);
}

.app-header-search-input {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--color-text);
    font-size: 0.86rem;
    line-height: 1.4;
    min-height: 32px;
    min-width: 0;
    outline: 0;
    padding: 0;
    width: 100%;
}

.app-header-search-input::placeholder {
    color: var(--color-text-muted);
}

.app-header-nav {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex: 0 0 auto;
    font-size: 0.84rem;
    font-weight: 600;
    gap: 0.85rem;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.app-header-nav::-webkit-scrollbar {
    display: none;
}

.app-header-link {
    color: var(--color-text-soft);
    flex: 0 0 auto;
    padding: 0.2rem 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.22em;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.app-header-link:hover,
.app-header-link.is-active {
    color: var(--color-cyan-deep);
    text-decoration-color: currentColor;
}

.app-header-sign-in {
    border-radius: 999px;
    flex: 0 0 auto;
    min-height: 34px;
    padding-inline: 0.85rem;
}

.app-header-avatar-link {
    align-items: center;
    border-radius: 999px;
    color: white;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    text-decoration: none;
}

.app-header-avatar-link:focus-visible {
    box-shadow: 0 0 0 4px var(--color-focus);
    outline: 0;
}

.app-header-avatar {
    align-items: center;
    background: linear-gradient(135deg, oklch(14.7% 0.004 49.3), #059669);
    border-radius: 999px;
    display: flex;
    font-size: 0.86rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    line-height: 1;
    min-width: 34px;
    width: 34px;
}

.app-header-profile-label {
    display: none;
}

.page-heading-wrap {
    margin-top: 1.1rem;
}

.page-eyebrow {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 0.26rem;
}

.page-heading {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: clamp(1.7rem, 5vw, 2.55rem);
    font-weight: 700;
    line-height: 1.04;
    margin: 0;
    max-width: 18ch;
}

.app-shell {
    display: block;
    margin-top: 1.05rem;
    min-width: 0;
    padding-bottom: 1.5rem;
}

.app-main {
    min-width: 0;
}

.legal-shell {
    margin-top: 1.05rem;
    padding-bottom: 1.5rem;
}

.legal-main {
    max-width: 860px;
    margin: 0 auto;
}

.legal-title {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: clamp(1.9rem, 5vw, 2.7rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 1.15rem;
    text-align: center;
}

.desktop-sidebar {
    display: none;
}

.sidebar-panel {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 0.92rem;
}

.sidebar-panel+.sidebar-panel {
    margin-top: 0.72rem;
}

.sidebar-panel-brand {
    background:
        radial-gradient(circle at 86% 8%, rgba(110, 231, 183, 0.22), transparent 7rem),
        linear-gradient(145deg, #011f17 0%, #064e3b 48%, #047857 100%);
    border-color: rgba(5, 150, 105, 0.48);
    box-shadow: var(--shadow-card);
    color: white;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

.sidebar-logo-wrap {
    align-items: center;
    display: flex;
    min-height: 38px;
}

.sidebar-logo {
    display: block;
    color: white;
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.sidebar-panel h2 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-panel p {
    color: var(--color-text-soft);
    font-size: 0.84rem;
    line-height: 1.52;
    margin: 0.68rem 0 0;
}

.sidebar-panel.sidebar-panel-brand p {
    color: rgba(236, 253, 245, 0.84);
}

.sidebar-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-card-header a {
    color: var(--color-cyan-deep);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-empty,
.sidebar-copy {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.sidebar-utility {
    display: grid;
    gap: 0.62rem;
    justify-items: start;
    margin-top: 0.9rem;
    padding: 0.9rem 0.15rem 0;
    position: relative;
}

.sidebar-utility::before {
    background: var(--color-border);
    content: "";
    height: 1px;
    left: 0.15rem;
    opacity: 0.82;
    position: absolute;
    right: 0.15rem;
    top: 0;
}

.sidebar-app-store {
    max-width: 100%;
    width: max-content;
}

.sidebar-app-store-badge {
    display: block;
    height: 46px;
    object-fit: contain;
    width: auto;
}

.social-profile-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.social-profile-links-icons .social-profile-link {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    transition: background-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
    width: 32px;
}

.social-profile-links-icons .social-profile-link:hover,
.social-profile-links-icons .social-profile-link:focus-visible {
    opacity: 0.78;
    transform: translateY(-1px);
}

.social-profile-icon {
    display: block;
    height: 20px;
    object-fit: contain;
    width: 20px;
}

.sidebar-follow {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    min-height: 32px;
}

.sidebar-follow-label {
    color: var(--color-text-muted);
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 700;
}

.sidebar-social-links {
    gap: 0.42rem;
    justify-content: center;
    padding: 0;
}

.sidebar-social-links .social-profile-link {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    height: 30px;
    width: 30px;
}

.sidebar-social-links .social-profile-link:hover,
.sidebar-social-links .social-profile-link:focus-visible {
    background: var(--color-surface-soft);
    border-color: var(--color-border-strong);
    opacity: 1;
}

.sidebar-social-links .social-profile-icon {
    height: 17px;
    width: 17px;
}

.sidebar-footer {
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.82rem;
    padding: 0.85rem 0.15rem 0;
}

.sidebar-footer a {
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration-color: transparent;
    text-underline-offset: 0.22em;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.sidebar-footer a:hover {
    color: var(--color-cyan-deep);
    text-decoration-color: currentColor;
}

.feed-list {
    display: grid;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.feed-page {
    display: block;
}

.feed-page[complete] {
    display: contents;
}

.feed-page-loading {
    align-items: center;
    display: flex;
    height: 2.5rem;
    justify-content: center;
}

.feed-page-loading-spinner {
    animation: feed-page-loading-spin 0.8s linear infinite;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    border-top-color: var(--color-cyan-deep);
    height: 1.25rem;
    width: 1.25rem;
}

@keyframes feed-page-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.feed-toolbar {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    min-width: 0;
}

.feed-mode-tabs {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    display: flex;
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    gap: 0.2rem;
    overflow-x: auto;
    padding: 0.22rem;
    scrollbar-width: none;
    width: max-content;
}

.feed-mode-tabs::-webkit-scrollbar {
    display: none;
}

.feed-mode-tab {
    border-radius: 999px;
    color: var(--color-text-soft);
    flex: 0 0 auto;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    min-height: 34px;
    padding: 0.6rem 0.82rem;
    text-decoration: none;
    transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.feed-mode-tab:hover {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

.feed-mode-tab.is-active {
    background: var(--color-surface-soft);
    box-shadow: var(--shadow-control);
    color: var(--color-text);
}

.feed-category-tabs {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    gap: 1rem;
    padding: 0;
}

.feed-category-tabs .feed-mode-tab {
    border-radius: 0;
    min-height: 36px;
    padding: 0.55rem 0.08rem 0.7rem;
    position: relative;
}

.feed-category-tabs .feed-mode-tab:hover {
    background: transparent;
    color: var(--color-text);
}

.feed-category-tabs .feed-mode-tab.is-active {
    background: transparent;
    box-shadow: none;
    color: var(--color-text);
}

.feed-category-tabs .feed-mode-tab.is-active::after {
    background: var(--color-accent);
    border-radius: 999px;
    bottom: -1px;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
}

.mobile-discovery {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mobile-chip-row {
    display: flex;
    gap: 0.45rem;
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    overflow-x: auto;
    padding: 0 0.85rem 0.1rem;
    scrollbar-width: none;
}

.mobile-chip-row::-webkit-scrollbar {
    display: none;
}

.mobile-chip {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
    color: var(--color-text-soft);
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.5rem 0.65rem;
    text-decoration: none;
}

.mobile-chip:hover,
.mobile-chip.is-active {
    background: var(--color-cyan-soft);
    border-color: var(--color-cyan-soft-strong);
    color: var(--color-cyan-deep);
}

.feed-filter {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    color: var(--color-text-muted);
    display: flex;
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.8rem;
}

.feed-filter strong {
    color: var(--color-text);
}

.feed-filter a {
    color: var(--color-cyan-deep);
    font-weight: 700;
    text-decoration: none;
}

.feed-filter a:hover {
    text-decoration: underline;
}

.search-page {
    margin-top: 0;
}

.search-summary {
    margin-bottom: 0.8rem;
}

.search-summary h1 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0;
    max-width: 100%;
}

.search-summary h1 span {
    color: var(--color-cyan-deep);
}

.search-filter-toolbar .feed-mode-tab {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
}

.search-results-list {
    padding-bottom: 0;
}

.search-results-groups {
    display: grid;
    gap: 1rem;
}

.search-result-group {
    display: grid;
    gap: 0.7rem;
}

.search-result-group h2 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.search-highlight {
    background: #fef08a;
    border-radius: 0.18em;
    color: inherit;
    padding: 0 0.08em;
}

.search-ebook-result .resource-image-title {
    margin-top: 0.62rem;
}

.search-resource-list {
    display: grid;
    gap: 0.65rem;
}

.search-result-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    color: var(--color-text-muted);
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    overflow: hidden;
    padding: 0.9rem 1rem;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-result-card:hover {
    border-color: #a1a1aa;
    cursor: pointer;
}

.search-result-type {
    color: var(--color-cyan-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.search-result-card strong {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1rem;
    line-height: 1.2;
}

.search-result-card span:not(.search-result-type) {
    font-size: 0.9rem;
    line-height: 1.42;
}

.search-landing {
    max-width: 620px;
    padding-top: 0.35rem;
}

.search-landing h1 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: clamp(1.45rem, 4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 0.35rem;
}

.search-landing-description {
    color: var(--color-text-muted);
    font-size: 0.94rem;
    line-height: 1.45;
    margin: 0 0 1rem;
}

.search-empty-form {
    align-items: stretch;
    display: flex;
    gap: 0.65rem;
    margin: 0 auto;
    max-width: 620px;
}

.search-results-form {
    margin: 0 0 1rem;
}

.search-landing-form {
    margin: 0;
}

.search-empty-control {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: var(--shadow-control);
    color: var(--color-text-muted);
    display: flex;
    flex: 1 1 auto;
    gap: 0.55rem;
    min-height: 46px;
    min-width: 0;
    padding: 0 0.9rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-landing-form .search-empty-control {
    min-height: 50px;
    padding-right: 0.3rem;
}

.search-empty-control:focus-within {
    border-color: rgba(5, 150, 105, 0.56);
    box-shadow: 0 0 0 4px var(--color-focus);
}

.search-empty-input {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--color-text);
    font-size: 0.96rem;
    line-height: 1.4;
    min-height: 42px;
    min-width: 0;
    outline: 0;
    padding: 0;
    width: 100%;
}

.search-empty-input::placeholder {
    color: var(--color-text-muted);
}

.search-inline-submit {
    align-items: center;
    appearance: none;
    background: var(--color-accent);
    border: 0;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    padding: 0;
    transition: background-color 0.16s ease;
    width: 42px;
}

.search-inline-submit:hover {
    background: var(--color-accent-deep);
}

.search-inline-submit:focus-visible {
    box-shadow: 0 0 0 4px var(--color-focus);
    outline: 0;
}

.feed-item,
.post-detail-card,
.comments-card,
.auth-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    min-width: 0;
    overflow: hidden;
}

.feed-item {
    margin: 0;
    padding: 0;
}

.feed-card {
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.feed-card:hover {
    border-color: #a1a1aa;
    cursor: pointer;
}

.feed-item-body {
    min-width: 0;
    padding: 0;
}

.feed-card-content {
    min-width: 0;
    padding: 1.05rem 1.1rem 1rem;
}

.absorb-feed-card .feed-card-content {
    padding-top: 1.45rem;
}

.absorb-feed-card .feed-item-body {
    display: block;
}

.absorb-flashcard-copy {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.absorb-flashcard-copy .feed-meta {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.absorb-flashcard-copy .feed-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin-bottom: 0.7rem;
    text-align: center;
    width: 100%;
}

.absorb-flashcard-copy .feed-title-link,
.absorb-flashcard-copy .feed-summary-link {
    display: block;
    text-align: center;
    width: 100%;
}

.absorb-flashcard-copy .feed-summary {
    margin-left: auto;
    margin-right: auto;
    max-width: 38rem;
    text-align: center;
    width: 100%;
}

.absorb-difficulty {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
}

.feed-source.absorb-difficulty-beginner {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.feed-source.absorb-difficulty-intermediate {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.feed-source.absorb-difficulty-advanced {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.post-image-placeholder,
.post-detail-hero {
    align-items: flex-start;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.42), transparent 9rem),
        linear-gradient(135deg, oklch(14.7% 0.004 49.3) 0%, oklch(36.7% 0.016 35.7) 52%, oklch(71.4% 0.014 41.2) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.post-image-placeholder {
    aspect-ratio: 16 / 3.2;
    border: 0;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    margin-bottom: 0;
    min-height: 96px;
    padding: 0.72rem 0.9rem;
    text-decoration: none;
}

.post-image-placeholder.has-thumbnail,
.post-detail-hero.has-thumbnail {
    background: #111827;
}

.post-image-placeholder.has-thumbnail::before,
.post-image-placeholder.has-thumbnail::after,
.post-detail-hero.has-thumbnail::before,
.post-detail-hero.has-thumbnail::after {
    content: none;
}

.post-thumbnail-image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.post-image-placeholder.has-thumbnail .post-image-source,
.post-detail-hero.has-thumbnail .post-image-source,
.post-detail-hero.has-thumbnail .post-image-time {
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    color: white;
    padding: 0.32rem 0.52rem;
}

.post-detail-hero {
    aspect-ratio: 16 / 6.2;
    padding: 1.15rem;
}

.post-image-placeholder::before,
.post-image-placeholder::after,
.post-detail-hero::before,
.post-detail-hero::after {
    content: "";
    position: absolute;
}

.post-image-placeholder::before,
.post-detail-hero::before {
    background: rgba(255, 255, 255, 0.13);
    height: 1px;
    inset: 36% 0 auto;
    box-shadow: 0 42px 0 rgba(255, 255, 255, 0.1), 0 84px 0 rgba(255, 255, 255, 0.08);
}

.post-image-placeholder::after,
.post-detail-hero::after {
    background: rgba(255, 255, 255, 0.12);
    bottom: 0;
    left: 27%;
    top: 0;
    width: 1px;
    box-shadow: 76px 0 0 rgba(255, 255, 255, 0.09), 152px 0 0 rgba(255, 255, 255, 0.07), 228px 0 0 rgba(255, 255, 255, 0.06);
}

.post-image-placeholder-1 {
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.35), transparent 9rem),
        linear-gradient(135deg, #064e3b 0%, #059669 54%, #a7f3d0 100%);
}

.post-image-placeholder-2 {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.34), transparent 9rem),
        linear-gradient(135deg, oklch(21.4% 0.009 43.1) 0%, oklch(43.8% 0.017 39.3) 55%, oklch(86.8% 0.007 39.5) 100%);
}

.post-image-placeholder-3 {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.34), transparent 9rem),
        linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #ccfbf1 100%);
}

.post-image-placeholder-4 {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.34), transparent 9rem),
        linear-gradient(135deg, #164e63 0%, #0891b2 53%, #cffafe 100%);
}

.post-image-topline {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.post-image-time,
.post-image-source,
.post-image-chart,
.post-detail-chart {
    position: relative;
    z-index: 1;
}

.post-image-time {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.75rem;
    font-weight: 500;
}

.post-image-source {
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 500;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.post-image-chart,
.post-detail-chart {
    align-self: stretch;
    margin: auto 0;
}

.post-image-chart {
    height: 34px;
}

.post-detail-chart {
    height: 78px;
}

.post-image-chart::before,
.post-detail-chart::before {
    background:
        linear-gradient(145deg, transparent 0 15%, rgba(255, 255, 255, 0.95) 15% 18%, transparent 18% 39%, rgba(255, 255, 255, 0.86) 39% 42%, transparent 42% 66%, rgba(255, 255, 255, 0.9) 66% 69%, transparent 69%),
        linear-gradient(to top, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0));
    clip-path: polygon(0 80%, 18% 58%, 34% 65%, 52% 31%, 68% 40%, 86% 16%, 100% 22%, 100% 100%, 0 100%);
    content: "";
    display: block;
    height: 100%;
    width: 100%;
}

.vote-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--color-text-muted);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
    width: 34px;
}

.vote-button.is-active,
.vote-button:hover {
    background: var(--color-cyan-soft);
    color: var(--color-cyan-deep);
}

.vote-button:active {
    transform: translateY(-1px) scale(0.96);
}

.vote-button-signin {
    color: var(--color-text-faint);
}

.vote-button-disabled,
.vote-button-disabled:hover {
    background: transparent;
    color: var(--color-text-faint);
    cursor: not-allowed;
    opacity: 0.75;
}

.vote-count {
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 1ch;
    text-align: center;
    transition: color 0.16s ease, transform 0.16s ease;
}

.vote-count.is-active {
    color: var(--color-cyan-deep);
    transform: translateY(-1px);
}

.feed-meta {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    gap: 0.38rem;
    line-height: 1.35;
    margin-bottom: 0.68rem;
    min-width: 0;
}

.feed-meta>*+*::before {
    color: var(--color-text-faint);
    content: "•";
    margin-right: 0.42rem;
}

.feed-source {
    color: var(--color-text-faint);
    font-weight: 600;
    min-width: 0;
}

.feed-title {
    font-family: var(--font-title);
    font-size: clamp(1.08rem, 1.9vw, 1.24rem);
    font-weight: 600;
    line-height: 1.24;
    margin: 0 0 0.58rem;
}

.feed-summary {
    color: var(--color-text-soft);
    display: -webkit-box;
    font-size: 0.94rem;
    line-height: 1.58;
    margin-bottom: 1.05rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.feed-title-link {
    color: var(--color-text);
    display: inline;
    transition: color 0.16s ease;
}

.feed-summary-link {
    color: inherit;
    display: inline;
}

.feed-actions {
    border-top: 1px solid oklch(92.2% 0.005 34.3 / 0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.78rem;
    min-width: 0;
}

.post-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.78rem;
    min-width: 0;
}

.feed-actions {
    align-items: center;
    padding-top: 0.85rem;
}

.post-detail-actions {
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.55rem;
}

.feed-vote-control {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.12rem;
    min-height: 34px;
    padding: 0;
}

.feed-vote-control .button_to {
    line-height: 0;
}

.button_to {
    max-width: 100%;
}

.feed-vote-control .vote-button {
    height: 28px;
    width: 28px;
}

.feed-action-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--color-text-muted);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 0.35rem;
    min-height: 34px;
    min-width: 0;
    padding: 0.3rem 0.15rem;
    text-decoration: none;
    transition: color 0.16s ease;
    overflow-wrap: anywhere;
}

.feed-action-link .app-icon {
    flex: 0 0 auto;
}

.feed-action-link.is-active {
    color: var(--color-text);
}

.feed-action-link:hover {
    background: transparent;
    color: var(--color-cyan-deep);
}

.post-share-actions {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 0.8rem;
    padding-top: 0;
}

.post-share-label {
    font-size: 0.76rem;
    font-weight: 700;
}

.post-share-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    min-width: 0;
}

.post-share-link {
    align-items: center;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-soft);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    width: 32px;
}

.post-share-link:hover {
    background: var(--color-surface);
    border-color: var(--color-border-strong);
    color: var(--color-cyan-deep);
}

.social-icon {
    display: block;
    height: 18px;
    width: 18px;
}

.empty-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    color: var(--color-text-muted);
    padding: 1.05rem;
}

.empty-card strong {
    color: var(--color-text);
    display: block;
    font-weight: 700;
}

.empty-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0.28rem 0 0.9rem;
}

.empty-card-compact {
    margin-top: 0.8rem;
}

.learning-page {
    margin-top: 0;
}

.resources-page {
    margin-top: 0;
}

.resources-shell {
    margin-top: 1.05rem;
    min-width: 0;
    padding-bottom: 1.5rem;
}

.learning-shell {
    margin-top: 1.05rem;
    min-width: 0;
    padding-bottom: 1.5rem;
}

.learning-intro {
    color: var(--color-text-soft);
    font-size: 1rem;
    margin-bottom: 1.15rem;
    min-width: 0;
}

.resources-grid {
    display: grid;
    column-gap: 1.15rem;
    row-gap: 2.1rem;
}

.resources-section+.resources-section {
    margin-top: 2.25rem;
}

.resources-section-title {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.85rem;
}

.resource-video-card {
    color: var(--color-text);
    min-width: 0;
}

.resource-video-frame {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(8, 145, 178, 0.7)),
        var(--color-surface);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.resource-video-frame iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.resource-video-content {
    min-width: 0;
    padding: 0.65rem 0.1rem 0;
}

.resource-video-card h3,
.resource-image-title {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.resources-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.resources-ebook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 48rem;
    row-gap: 1.15rem;
    width: 100%;
}

.resource-ebook-link {
    display: block;
    min-width: 0;
}

.resource-ebook-cover {
    aspect-ratio: 4 / 5;
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.resource-ebook-fallback {
    align-items: center;
    background: var(--color-accent-soft);
    border-radius: 8px;
    color: var(--color-accent);
    display: flex;
    aspect-ratio: 4 / 5;
    height: auto;
    justify-content: center;
    width: 100%;
}

.resource-ebook-fallback .app-icon {
    height: 1.35rem;
    width: 1.35rem;
}

.resource-image-card {
    color: var(--color-text);
    display: block;
    min-width: 0;
    text-decoration: none;
}

.resource-image-frame {
    align-items: center;
    aspect-ratio: 4 / 5;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.resource-image-frame img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.resource-image-content {
    display: block;
    min-width: 0;
    padding: 0.62rem 0.1rem 0;
}

.resource-image-title {
    display: block;
    font-size: 0.96rem;
}

.resource-lightbox-open {
    overflow: hidden;
}

.resource-lightbox {
    background: #000;
    box-sizing: border-box;
    color: #fff;
    height: 100vh;
    height: 100dvh;
    inset: 0;
    padding:
        max(0.75rem, env(safe-area-inset-top))
        max(0.75rem, env(safe-area-inset-right))
        max(0.75rem, env(safe-area-inset-bottom))
        max(0.75rem, env(safe-area-inset-left));
    position: fixed;
    width: 100vw;
    z-index: 1000;
}

.resource-lightbox[hidden] {
    display: none;
}

.resource-lightbox-panel {
    display: grid;
    gap: 0.75rem;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    margin: 0 auto;
    max-width: min(1100px, 100%);
    overflow: hidden;
    width: 100%;
}

.resource-lightbox-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-width: 0;
}

.resource-lightbox-header h2 {
    color: #fff;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.resource-lightbox-close {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.45rem;
    font-weight: 400;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 2.25rem;
}

.resource-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.42);
}

.resource-lightbox-frame {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.resource-lightbox-frame img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.learning-intro p {
    margin: 0;
}

.learning-intro-eyebrow {
    color: var(--color-badge-text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.32rem !important;
}

.learning-intro h1 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.28rem;
    line-height: 1.18;
    margin: 0 0 0.45rem;
}

.learning-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.learning-grid {
    display: grid;
    gap: 1.15rem;
}

.learning-path-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.learning-path-card:hover {
    border-color: #a1a1aa;
    cursor: pointer;
}

.learning-path-card.is-started {
    border-color: var(--color-border-strong);
}

.learning-path-card.is-complete {
    border-color: #e9d5ff;
}

.learning-path-card:focus-visible {
    box-shadow: 0 0 0 4px var(--color-focus);
    outline: 0;
}

.learning-card-visual {
    align-items: flex-start;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.38), transparent 9rem),
        linear-gradient(135deg, oklch(14.7% 0.004 49.3) 0%, oklch(36.7% 0.016 35.7) 52%, oklch(71.4% 0.014 41.2) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    overflow: hidden;
    padding: 0.95rem 1rem;
    position: relative;
}

.learning-card-visual.has-course-image {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    justify-content: center;
    min-height: 190px;
    padding: 0.75rem;
}

.learning-card-visual.has-course-image::before,
.learning-card-visual.has-course-image::after {
    content: none;
}

.learning-card-image {
    display: block;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.learning-card-visual::before,
.learning-card-visual::after {
    content: "";
    position: absolute;
}

.learning-card-visual::before {
    background: rgba(255, 255, 255, 0.13);
    height: 1px;
    inset: 36% 0 auto;
    box-shadow: 0 42px 0 rgba(255, 255, 255, 0.1), 0 84px 0 rgba(255, 255, 255, 0.08);
}

.learning-card-visual::after {
    background: rgba(255, 255, 255, 0.12);
    bottom: 0;
    left: 27%;
    top: 0;
    width: 1px;
    box-shadow: 76px 0 0 rgba(255, 255, 255, 0.09), 152px 0 0 rgba(255, 255, 255, 0.07), 228px 0 0 rgba(255, 255, 255, 0.06);
}

.learning-card-visual-1 {
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.35), transparent 9rem),
        linear-gradient(135deg, #064e3b 0%, #059669 54%, #a7f3d0 100%);
}

.learning-card-visual-2 {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.34), transparent 9rem),
        linear-gradient(135deg, oklch(21.4% 0.009 43.1) 0%, oklch(43.8% 0.017 39.3) 55%, oklch(86.8% 0.007 39.5) 100%);
}

.learning-card-visual-3 {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.34), transparent 9rem),
        linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #ccfbf1 100%);
}

.learning-card-visual-4 {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.34), transparent 9rem),
        linear-gradient(135deg, #164e63 0%, #0891b2 53%, #cffafe 100%);
}

.learning-card-chart,
.learning-card-visual-label {
    position: relative;
    z-index: 1;
}

.learning-card-chart {
    align-self: stretch;
    height: 42px;
    margin: auto 0;
}

.learning-card-chart::before {
    background:
        linear-gradient(145deg, transparent 0 15%, rgba(255, 255, 255, 0.95) 15% 18%, transparent 18% 39%, rgba(255, 255, 255, 0.86) 39% 42%, transparent 42% 66%, rgba(255, 255, 255, 0.9) 66% 69%, transparent 69%),
        linear-gradient(to top, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0));
    clip-path: polygon(0 80%, 18% 58%, 34% 65%, 52% 31%, 68% 40%, 86% 16%, 100% 22%, 100% 100%, 0 100%);
    content: "";
    display: block;
    height: 100%;
    width: 100%;
}

.learning-card-visual-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
}

.learning-card-topline {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.65rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    min-width: 0;
    padding: 1.15rem 1.15rem 0;
}

.learning-count,
.learning-duration {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1rem;
}

.learning-path-card h2,
.learning-lesson-content h2 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.45rem;
}

.learning-lesson-heading h2 {
    margin: 0;
    min-width: 0;
}

.learning-path-card h2 {
    padding: 0 1.15rem;
}

.learning-path-card p,
.learning-lesson-content p {
    color: var(--color-text-soft);
    font-size: 0.94rem;
    line-height: 1.58;
    margin: 0;
}

.learning-lesson-content p {
    max-width: 58ch;
}

.learning-path-card p {
    padding: 0 1.15rem;
}

.learning-card-action {
    align-items: center;
    color: var(--color-accent-deep);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 0.25rem;
    margin: auto 1.15rem 1.15rem;
    padding-top: 1.15rem;
}

.learning-progress {
    color: var(--color-text-muted);
    display: grid;
    font-size: 0.82rem;
    gap: 0.5rem;
    grid-template-columns: 1fr auto;
    margin: auto 1.15rem 1.15rem;
    min-width: 0;
    padding-top: 1.15rem;
}

.learning-progress strong {
    color: var(--color-text);
}

.learning-progress-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.learning-progress-copy span {
    color: var(--color-text);
    font-weight: 700;
    min-width: 0;
}

.learning-progress-copy small {
    color: var(--color-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.learning-progress-track {
    background: #e5e7eb;
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
}

.learning-progress-fill {
    background: linear-gradient(90deg, var(--color-accent), var(--color-cyan));
    border-radius: inherit;
    height: 100%;
    min-width: 0;
    transition: width 0.2s ease;
}

.learning-path-hero {
    align-items: stretch;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 0;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    min-width: 0;
    overflow: hidden;
    padding: 0;
}

.learning-path-hero>div {
    min-width: 0;
}

.learning-path-hero>div:not(.learning-path-hero-art) {
    padding: 1.2rem;
}

.learning-path-hero-art {
    align-items: center;
    align-self: stretch;
    background: #fff;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex: 0 0 220px;
    justify-content: center;
    min-height: 100%;
    overflow: hidden;
    padding: 0.75rem;
}

.learning-path-hero-image {
    display: block;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.learning-path-hero-progress {
    display: block;
    margin: 0.9rem 0 0;
    max-width: 420px;
    padding: 0;
}

.learning-path-hero-progress .learning-progress-track {
    display: block;
}

.learning-path-hero p {
    color: var(--color-text-soft);
    font-size: 1rem;
    line-height: 1.62;
    margin: 0;
}

.learning-path-hero h1 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.35rem;
    line-height: 1.16;
    margin: 0.65rem 0 0.45rem;
}

.learning-path-meta {
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.learning-path-meta span {
    align-items: center;
    color: var(--color-text-muted);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
}

.learning-path-meta span+span::before {
    color: var(--color-text-faint);
    content: "•";
    margin-right: 0.55rem;
}

.learning-lessons {
    display: grid;
    gap: 1.15rem;
}

.learning-lesson-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: grid;
    min-width: 0;
    overflow: hidden;
}

.learning-lesson-card.is-complete {
    background: var(--color-surface-raised);
    border-color: #e9d5ff;
}

.learning-video-frame,
.learning-video-placeholder {
    align-items: center;
    aspect-ratio: 16 / 9;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.learning-video-placeholder {
    background:
        radial-gradient(circle at 78% 20%, rgba(6, 182, 212, 0.2), transparent 8rem),
        linear-gradient(135deg, #052e2b, #083344 58%, #111827);
    min-height: 180px;
    padding: 1rem;
}

.learning-video-frame {
    align-self: start;
    background: #050f14;
    padding: 0;
    width: 100%;
}

.learning-video-player {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.learning-lesson-card.is-complete .learning-video-frame,
.learning-lesson-card.is-complete .learning-video-placeholder {
    box-shadow: inset 0 0 0 999px rgb(5 150 105 / 0.08);
}

.learning-video-badge {
    gap: 0.25rem;
    left: 0.8rem;
    position: absolute;
    top: 0.8rem;
}

.learning-video-placeholder>span:not(.learning-video-badge) {
    color: rgb(255 255 255 / 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.learning-video-play {
    align-items: center;
    background: rgb(255 255 255 / 0.94);
    border-radius: 999px;
    color: var(--color-accent-deep);
    display: flex;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.learning-video-play .app-icon {
    height: 22px;
    margin-left: 2px;
    width: 22px;
}

.learning-lesson-content {
    align-content: start;
    display: grid;
    min-width: 0;
    padding: 1.15rem;
}

.learning-lesson-content form {
    margin-top: 1.1rem;
}

.learning-watched-button {
    gap: 0.35rem;
}

.learning-lesson-heading {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    min-width: 0;
}

.learning-lesson-heading .learning-duration {
    flex: 0 0 auto;
    white-space: nowrap;
}

.learning-lesson-meta {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.65rem;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.learning-complete-label {
    gap: 0.25rem;
}

.feed-action-link-push {
    margin-left: auto;
}

.breadcrumbs {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    min-width: 0;
}

.breadcrumb-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-compact {
    align-items: center;
    display: none;
    gap: 0.5rem;
    min-width: 0;
}

.breadcrumb-item {
    align-items: center;
    display: inline-flex;
    min-width: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--color-text-faint);
    content: "/";
    margin-right: 0.35rem;
}

.breadcrumb-link {
    color: var(--color-text-soft);
    text-decoration: none;
}

.breadcrumb-link:hover,
.breadcrumb-back-link:hover {
    color: var(--color-text);
}

.breadcrumb-current,
.breadcrumb-compact-current {
    color: var(--color-text-muted);
    display: inline-block;
    max-width: min(100%, 34rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-back-link {
    color: var(--color-text-soft);
    flex: 0 0 auto;
    text-decoration: none;
}

.breadcrumb-compact-current {
    border-left: 1px solid var(--color-border);
    flex: 1 1 auto;
    max-width: 100%;
    padding-left: 0.5rem;
}

.post-detail {
    margin-top: 1.05rem;
    padding-bottom: 1.5rem;
}

.reading-progress {
    background: #06b6d4;
    height: 4px;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    z-index: 30;
}

.post-detail-content {
    min-width: 0;
    padding: 1.25rem;
}

.post-detail-meta {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    min-width: 0;
}

.post-detail-source,
.post-detail-date {
    font-weight: 500;
}

.post-detail-title {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: clamp(1.75rem, 4.4vw, 2.55rem);
    font-weight: 700;
    line-height: 1.04;
    margin: 0 0 1.05rem;
}

.post-body {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.65;
}

.post-detail-body {
    border-bottom: 1px solid oklch(92.2% 0.005 34.3 / 0.58);
    color: var(--color-text-soft);
    font-size: 1.04rem;
    line-height: 1.72;
    padding-bottom: 1.1rem;
}

.post-detail-body p {
    margin: 0 0 1rem;
}

.post-detail-body p:last-child {
    margin-bottom: 0;
}

.post-detail-body [class^="absorb-"]+ [class^="absorb-"] {
    margin-top: 1.6rem;
}

.post-detail-body [class^="absorb-"] h3 {
    color: var(--color-text);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.post-detail-comment-count {
    color: var(--color-text-muted);
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    gap: 0.28rem;
    min-height: 28px;
    padding: 0;
    pointer-events: none;
}

.post-detail-comment-count.is-active {
    color: var(--color-text);
}

.comments-section,
.profile-section {
    margin-top: 1.45rem;
}

.comments-empty-state {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    margin-top: 1.2rem;
    padding: 1.2rem 0;
    text-align: center;
}

.comments-empty-state strong {
    color: var(--color-text);
    display: block;
    font-weight: 700;
    line-height: 1.2;
}

.comments-empty-state p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0.32rem 0 0;
    max-width: 28rem;
}

.empty-card.comments-empty-state {
    margin-top: 0.8rem;
    padding: 1.45rem 1.05rem;
}

.comments-empty-icon {
    align-items: center;
    background: var(--color-surface-soft);
    border-radius: 999px;
    color: var(--color-text-faint);
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    margin-top: 0.9rem;
    width: 3rem;
}

.comments-empty-icon .app-icon {
    height: 1.2rem;
    width: 1.2rem;
}

.profile-learning-section {
    margin-bottom: 1.45rem;
}

.profile-course-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.profile-course-item {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-width: 0;
    padding: 0.78rem 0.85rem;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.profile-course-item.is-complete {
    background: var(--color-accent-soft);
    border-color: var(--color-accent-soft-strong);
    color: var(--color-text);
}

.profile-course-item:hover {
    border-color: #a1a1aa;
    color: var(--color-text);
    cursor: pointer;
}

.profile-course-item strong,
.profile-course-item span {
    display: block;
    min-width: 0;
}

.profile-course-item strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-course-item span,
.profile-course-item small {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.learning-level,
.learning-complete-label,
.learning-video-badge {
    align-items: center;
    background: var(--color-badge-bg);
    border: 0;
    border-radius: 999px;
    color: var(--color-badge-text);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0.25rem 0.5rem;
    text-overflow: ellipsis;
}

.profile-section-header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.profile-section-header span {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.comments-card {
    min-width: 0;
    padding: 1rem 1.1rem;
}

.related-articles {
    margin-top: 1.45rem;
}

.related-articles-header {
    margin-bottom: 0.75rem;
}

.related-articles-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-article-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    min-width: 0;
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.related-article-card:hover {
    border-color: #a1a1aa;
    cursor: pointer;
}

.related-article-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.related-article-card .related-article-image {
    aspect-ratio: 16 / 7;
    height: auto;
    min-height: 0;
    padding: 0.65rem 0.8rem;
}

.related-article-content {
    padding: 0.9rem 1rem 1rem;
}

.related-article-content .feed-meta {
    margin-bottom: 0.5rem;
}

.related-article-title {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.absorb-related-card .related-article-content {
    align-content: center;
    display: grid;
    justify-items: center;
    min-height: 11rem;
    padding: 1.25rem;
    text-align: center;
}

.absorb-related-card .feed-meta {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.absorb-related-card .related-article-title {
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
}

.related-article-summary {
    color: var(--color-text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0.6rem 0 0;
    overflow-wrap: anywhere;
    text-align: center;
    width: 100%;
}

.comments-header {
    align-items: center;
    border-bottom: 1px solid oklch(92.2% 0.005 34.3 / 0.8);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.comment-modal-trigger {
    flex: 0 0 auto;
}

.section-heading {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0;
}

.auth-title {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.12;
    margin: 1.35rem 0 0;
    text-align: center;
}

.auth-entry-copy {
    color: var(--color-text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0.55rem auto 0;
    max-width: 23rem;
    text-align: center;
}

.auth-entry-page {
    align-items: center;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100dvh;
    min-width: 0;
    padding: clamp(2rem, 8vh, 4.75rem) 1rem 2.5rem;
}

.auth-entry-header,
.auth-entry-form {
    max-width: 24rem;
    min-width: 0;
    width: 100%;
}

.auth-entry-header {
    text-align: center;
}

.auth-entry-brand {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.auth-entry-form {
    margin-top: 1.75rem;
}

.auth-form,
.auth-field {
    display: grid;
}

.auth-form {
    gap: 1rem;
}

.auth-field {
    gap: 0.44rem;
}

.auth-field-label-row {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.auth-field-label {
    color: var(--color-text);
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.auth-field-link {
    flex: 0 0 auto;
    font-size: 0.86rem;
    line-height: 1.35;
}

.auth-entry-switch {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 1.45rem 0 0;
    text-align: center;
}

.text-taupe-900 {
    color: var(--color-text);
}

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

.text-emerald-600,
.hover\:text-emerald-500:hover {
    color: var(--color-accent-deep);
}

.comment-form {
    background: #fcfcfd;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: 0 1px 2px oklch(14.7% 0.004 49.3 / 0.03);
    margin-bottom: 1rem;
    min-width: 0;
    padding: 0.9rem;
}

.comment-modal {
    background: transparent;
    border: 0;
    color: inherit;
    margin: auto;
    max-height: min(80vh, 36rem);
    max-width: min(92vw, 32rem);
    overflow: visible;
    padding: 0;
    width: 100%;
}

.comment-modal::backdrop {
    background: rgb(17 24 39 / 0.42);
}

.comment-modal-panel {
    background: var(--color-surface);
    border: 1px solid oklch(92.2% 0.005 34.3 / 0.9);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 60px rgb(17 24 39 / 0.18);
    max-height: min(80vh, 36rem);
    overflow: auto;
    padding: 1rem;
}

.comment-modal-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.comment-modal-header h3 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.12rem 0 0;
}

.comment-modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.45rem;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background-color 0.16s ease, color 0.16s ease;
    width: 2rem;
}

.comment-modal-close:hover,
.comment-modal-close:focus-visible {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

.quiz-modal {
    background: transparent;
    border: 0;
    color: inherit;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    padding: 1rem;
    width: min(100%, 500px);
}

.quiz-modal::backdrop {
    background: rgb(15 23 42 / 0.68);
    backdrop-filter: blur(3px);
}

.quiz-modal-panel {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 70px rgb(15 23 42 / 0.3);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.75rem;
}

.quiz-modal-header h2,
.quiz-result-status h2 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 0;
}

.quiz-question {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
    margin: 1.25rem 0 1rem;
}

.quiz-options {
    display: grid;
    gap: 0.65rem;
}

.quiz-option {
    align-items: center;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 0.75rem;
    padding: 0.75rem;
    text-align: left;
    width: 100%;
}

.quiz-option span {
    align-items: center;
    background: #ecfdf5;
    border-radius: 999px;
    color: #047857;
    display: flex;
    flex: 0 0 28px;
    font-size: 0.76rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
}

.quiz-option:hover,
.quiz-option:focus-visible {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgb(16 185 129 / 0.12);
}

.quiz-dismiss {
    background: transparent;
    border: 0;
    color: var(--color-text-muted);
    cursor: pointer;
    display: block;
    font: inherit;
    margin: 1rem auto 0;
    padding: 0.4rem;
}

.quiz-result-status {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--color-border);
}

.quiz-result-status > span {
    align-items: center;
    border-radius: 999px;
    color: white;
    display: flex;
    flex: 0 0 42px;
    font-size: 1.15rem;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.quiz-result-status.is-correct > span { background: #059669; }
.quiz-result-status.is-incorrect > span { background: #d97706; }

.quiz-result-answer {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #065f46;
    padding: 0.9rem 1rem;
}

.quiz-result-answer small,
.quiz-result-answer strong { display: block; }
.quiz-result-answer small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.quiz-result-answer-choice {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.quiz-result-answer-letter {
    align-items: center;
    background: #d1fae5;
    border-radius: 999px;
    color: #047857;
    display: flex;
    flex: 0 0 28px;
    font-size: 0.76rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
}

.quiz-result-answer strong {
    min-width: 0;
    font-size: 0.94rem;
    line-height: 1.45;
}

.quiz-result .quiz-question {
    font-size: 1.05rem;
    line-height: 1.42;
    margin: 1.15rem 0 1rem;
}

.quiz-explanation {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0.85rem 0 0;
}

.quiz-points {
    color: #047857;
    font-size: 0.9rem;
    font-weight: 750;
    background: color-mix(in srgb, #10b981 9%, transparent);
    border-radius: 999px;
    margin: 1.25rem auto 1rem;
    padding: 0.42rem 0.75rem;
    text-align: center;
    width: max-content;
}

.quiz-continue { width: 100%; }

@media (max-width: 520px) {
    .quiz-modal {
        padding: 0.75rem;
    }

    .quiz-modal-panel {
        padding: 1.25rem;
    }

    .quiz-result-status {
        padding-bottom: 1rem;
    }

    .quiz-result-status h2 {
        font-size: 1.2rem;
    }

    .quiz-result .quiz-question {
        font-size: 0.98rem;
    }
}

.comment-modal-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.comment-modal-form .comment-form-header strong {
    color: var(--color-text-soft);
    font-weight: 600;
}

@media (max-width: 700px) {
    .comment-modal {
        align-self: end;
        margin: auto 0 max(4.75rem, env(safe-area-inset-bottom));
        max-height: calc(86dvh - max(4.75rem, env(safe-area-inset-bottom)));
        max-width: calc(100vw - 1rem);
        width: calc(100vw - 1rem);
    }

    .comment-modal-panel {
        border-inline: 0;
        max-height: calc(86dvh - max(4.75rem, env(safe-area-inset-bottom)));
        padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    }

    .comments-header {
        align-items: flex-start;
    }
}

.comment-reply-form {
    background: var(--color-surface);
    box-sizing: border-box;
    margin: 0.7rem 0 0;
    padding: 0.78rem;
    width: 100%;
}

.comment-form-header {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    min-width: 0;
}

.comment-form-header strong,
.comment-form-header span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.comment-form-header strong {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.comment-form-header span {
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-control {
    line-height: 1.55;
    min-height: 112px;
    resize: vertical;
}

.comment-submit {
    margin-top: 0.72rem;
    min-height: 44px;
    width: 100%;
}

.comment-reply-form:not(.comment-modal-form) .comment-control {
    min-height: 84px;
}

.comment-reply-form:not(.comment-modal-form) .comment-submit {
    min-height: 38px;
    width: auto;
}

.comment {
    border-top: 1px solid oklch(92.2% 0.005 34.3 / 0.72);
    display: grid;
    gap: 0.82rem;
    grid-template-columns: 36px 1fr;
    padding: 1.05rem 0;
}

.comment:first-child {
    border-top: 0;
}

.comment-meta {
    color: var(--color-text-muted);
    font-size: 0.84rem;
    min-width: 0;
}

.comment-meta strong,
.comment-meta span {
    display: inline-block;
}

.comment-author-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
}

.comment-meta strong {
    color: var(--color-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.comment-avatar,
.profile-avatar,
.auth-mark {
    align-items: center;
    display: flex;
    justify-content: center;
}

.comment-avatar {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-soft);
    font-size: 0.86rem;
    font-weight: 700;
    height: 36px;
    margin-top: 0.05rem;
    min-width: 36px;
    width: 36px;
}

.comment-avatar,
.comment-author-link {
    text-decoration: none;
}

.comment-avatar:hover,
.comment-author-link:hover {
    color: var(--color-accent-deep);
}

.comment-body {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.62;
    margin-top: 0.35rem;
    max-width: 72ch;
    overflow-wrap: anywhere;
}

.comment-body p:last-child {
    margin-bottom: 0;
}

.comment-body-link {
    color: #059669;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.comment-body-link:hover {
    color: #10b981;
}

.comment-body-link:focus-visible {
    border-radius: 3px;
    box-shadow: 0 0 0 3px var(--color-focus);
    outline: 0;
}

.comment-actions {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    margin-top: 0.55rem;
    min-width: 0;
}

.comment-vote-control {
    flex: 0 0 auto;
    min-height: 28px;
}

.comment-vote-control .vote-button {
    height: 26px;
    width: 26px;
}

.comment-reply-modal-wrapper {
    align-items: center;
    display: inline-flex;
    min-height: 28px;
}

.comment-reply-link,
.comment-delete-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    box-sizing: border-box;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 1;
    min-height: 28px;
    padding: 0;
    text-decoration: none;
    vertical-align: top;
}

.comment-delete-button {
    color: var(--color-text-faint);
}

.comment-reply-link:hover,
.comment-delete-button:hover {
    color: var(--color-accent-deep);
}

.comment-replies {
    border-left: 2px solid oklch(92.2% 0.005 34.3 / 0.8);
    margin-top: 0.75rem;
    padding-left: clamp(0.7rem, 2vw, 1rem);
}

.comment-replies .comment:last-child {
    padding-bottom: 0;
}

.comment-depth-5 .comment-replies {
    margin-left: -0.35rem;
    padding-left: 0;
}

.comment-depth-limit-note {
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.78rem;
}

.sign-in-prompt {
    align-items: center;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.sign-in-prompt>div {
    min-width: 0;
}

.sign-in-prompt strong {
    color: var(--color-text);
    font-weight: 600;
}

.sign-in-prompt p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0.15rem 0 0;
}

.profile-page,
.auth-page,
.legal-page {
    margin-top: 0;
}

.legal-page {
    color: var(--color-text-soft);
    font-size: 1rem;
    line-height: 1.7;
    padding: 0.4rem 0 1.25rem;
}

.legal-page p {
    margin: 0 0 1rem;
}

.legal-page p:last-child {
    margin-bottom: 0;
}

.legal-page h2 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.6rem 0 0.55rem;
}

.legal-page h3 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0 0.35rem;
}

.legal-page ul {
    list-style: disc outside;
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.legal-page li::marker {
    color: var(--color-text-soft);
}

.legal-page li + li {
    margin-top: 0.2rem;
}

.legal-page address {
    font-style: normal;
}

.legal-updated {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem !important;
}

.legal-lead {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.18;
}

.auth-page {
    max-width: 520px;
    min-width: 0;
}

.auth-card {
    padding: 1.25rem;
}

.auth-card-header {
    align-items: flex-start;
    border-bottom: 1px solid oklch(92.2% 0.005 34.3 / 0.82);
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.05rem;
    padding-bottom: 1.05rem;
}

.auth-card-header h2 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.22;
    margin: 0;
}

.auth-eyebrow {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 0.26rem;
}

.auth-mark {
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent-soft-strong);
    border-radius: 8px;
    color: var(--color-accent-deep);
    flex: 0 0 44px;
    font-size: 1.2rem;
    height: 44px;
}

.auth-control {
    min-height: 48px;
}

.auth-field-control {
    appearance: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    display: block;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 46px;
    min-width: 0;
    outline: 0;
    padding: 0 0.9rem;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}

.auth-field-control::placeholder {
    color: var(--color-text-faint);
}

.auth-field-control:focus {
    background: var(--color-surface);
    border-color: rgba(5, 150, 105, 0.56);
    box-shadow: 0 0 0 4px var(--color-focus);
}

.auth-submit-button {
    align-items: center;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    box-shadow: var(--shadow-control);
    color: white;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    max-width: 100%;
    padding: 0 1rem;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}

.auth-submit-button:hover {
    background: var(--color-accent-deep);
    border-color: var(--color-accent-deep);
}

.auth-submit-button:focus-visible {
    box-shadow: 0 0 0 4px var(--color-focus);
    outline: 0;
}

.auth-inline-action {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.auth-inline-action a,
.auth-switch a {
    color: var(--color-accent-deep);
    font-weight: 600;
    text-decoration: none;
}

.auth-inline-action a:hover,
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-submit {
    min-height: 48px;
}

.auth-switch {
    border-top: 1px solid oklch(92.2% 0.005 34.3 / 0.82);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 1.1rem 0 0;
    padding-top: 1.05rem;
    text-align: center;
}

.profile-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    min-width: 0;
    padding: 0.1rem 0 0;
}

.profile-header-content {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 0.75rem;
    min-width: 0;
}

.app-button.profile-admin-link {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.profile-header h2 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    overflow-wrap: anywhere;
}

.profile-avatar {
    align-items: center;
    background: linear-gradient(135deg, oklch(14.7% 0.004 49.3), #059669);
    border-radius: 999px;
    color: white;
    display: flex;
    flex: 0 0 44px;
    font-size: 1.05rem;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    min-width: 44px;
}

.profile-stats {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.4rem;
    min-width: 0;
    overflow: hidden;
}

.profile-contributions {
    margin-bottom: 1.4rem;
}

.contribution-heading-group {
    align-items: center;
    display: flex;
    gap: 0.35rem;
}

.contribution-help {
    display: inline-flex;
    position: relative;
}

.contribution-help-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--color-text-muted);
    cursor: help;
    display: inline-flex;
    height: 1.6rem;
    justify-content: center;
    padding: 0;
    width: 1.6rem;
}

.contribution-help-trigger .app-icon {
    height: 16px;
    width: 16px;
}

.contribution-help-trigger:hover,
.contribution-help-trigger:focus-visible {
    background: var(--color-surface-soft);
    color: #047857;
    outline: none;
}

.contribution-help-tooltip {
    background: #111827;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgb(15 23 42 / 0.22);
    color: #f9fafb;
    display: grid;
    font-size: 0.76rem;
    font-weight: 400;
    gap: 0.5rem;
    left: 50%;
    line-height: 1.4;
    opacity: 0;
    padding: 0.8rem;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    transform: translateX(-50%) translateY(-3px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    visibility: hidden;
    width: min(280px, calc(100vw - 2rem));
    z-index: 20;
}

.contribution-help-tooltip::before {
    border-bottom: 6px solid #111827;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    content: "";
    left: 50%;
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
}

.contribution-help-tooltip strong {
    color: white;
    font-size: 0.8rem;
}

.contribution-help-tooltip > span {
    color: #d1d5db;
    font-size: 0.76rem;
    font-weight: 400;
}

.contribution-help-rules {
    border-top: 1px solid rgb(255 255 255 / 0.14);
    display: grid;
    gap: 0.25rem;
    padding-top: 0.5rem;
}

.contribution-help-rules span {
    color: #f3f4f6;
    display: block;
    font-size: 0.74rem;
    font-weight: 400;
}

.contribution-help-rules b {
    color: #6ee7b7;
    display: inline-block;
    font-weight: 750;
    width: 1.7rem;
}

.contribution-help:hover .contribution-help-tooltip,
.contribution-help:focus-within .contribution-help-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

.contribution-scroll {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow-x: auto;
    padding: 1rem;
}

@media (max-width: 520px) {
    .contribution-help-tooltip {
        left: -4.25rem;
        transform: translateY(-3px);
    }

    .contribution-help-tooltip::before {
        left: 4.95rem;
    }

    .contribution-help:hover .contribution-help-tooltip,
    .contribution-help:focus-within .contribution-help-tooltip {
        transform: translateY(0);
    }
}

.contribution-chart {
    display: grid;
    gap: 0.35rem 0.55rem;
    grid-template-columns: 2rem max-content;
    grid-template-rows: 1rem auto;
    min-width: max-content;
}

.contribution-months {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(53, 11px);
    column-gap: 3px;
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.contribution-months span { white-space: nowrap; }

.contribution-weekdays {
    display: grid;
    font-size: 0.62rem;
    color: var(--color-text-muted);
    grid-column: 1;
    grid-row: 2;
    grid-template-rows: repeat(7, 11px);
    row-gap: 3px;
}

.contribution-weekdays span { align-self: center; }

.contribution-grid {
    display: flex;
    gap: 3px;
    grid-column: 2;
    grid-row: 2;
}

.contribution-week {
    display: grid;
    gap: 3px;
    grid-template-rows: repeat(7, 11px);
}

.contribution-cell {
    background: var(--color-surface-subtle, #f3f4f6);
    border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
    border-radius: 2px;
    box-sizing: border-box;
    display: block;
    height: 11px;
    width: 11px;
}

.contribution-level-1 { background: #a7f3d0; border-color: #a7f3d0; }
.contribution-level-2 { background: #34d399; border-color: #34d399; }
.contribution-level-3 { background: #059669; border-color: #059669; }
.contribution-level-4 { background: #065f46; border-color: #065f46; }
.contribution-cell.is-future { opacity: 0.42; }

.contribution-legend {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    font-size: 0.7rem;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 0.55rem;
}

.profile-bottom-actions {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.4rem;
}

.notification-preferences-form {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.notification-permission-row {
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
}

.notification-permission-indicator {
    align-items: center;
    background: var(--color-surface-soft);
    border-radius: 999px;
    color: var(--color-text-faint);
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.9rem;
    justify-content: center;
    width: 1.9rem;
}

.notification-permission-indicator .app-icon {
    opacity: 0;
}

.notification-permission-row[data-permission-state="authorized"] .notification-permission-indicator {
    background: var(--color-accent-soft);
    color: var(--color-accent-deep);
}

.notification-permission-row[data-permission-state="authorized"] .notification-permission-indicator .app-icon {
    opacity: 1;
}

.notification-permission-row[data-permission-state="denied"] .notification-permission-indicator {
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.notification-permission-copy {
    flex: 1 1 auto;
}

.notification-permission-copy strong,
.notification-permission-copy small {
    display: block;
}

.notification-permission-copy small {
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.notification-permission-action {
    flex: 0 0 auto;
}

.notification-preference-options {
    display: grid;
    gap: 0.75rem;
}

.notification-preference-options label {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.notification-preference-options label span,
.notification-preference-options label small { display: block; }
.notification-preference-options label small { color: var(--color-text-muted); margin-top: 0.15rem; }
.notification-preferences-form input[type="checkbox"] { height: 1.15rem; width: 1.15rem; }

@media (max-width: 520px) {
    .notification-permission-row {
        align-items: stretch;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notification-permission-action {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.profile-bottom-actions form {
    margin: 0;
    width: 100%;
}

.profile-sign-out-button {
    width: 100%;
}

.profile-delete-account-link,
.account-delete-button {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    text-decoration: none;
    width: 100%;
}

.profile-delete-account-link:hover,
.account-delete-button:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

.account-deletion-page {
    max-width: 560px;
    padding-bottom: 2rem;
}

.account-deletion-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
}

.account-deletion-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.account-deletion-header h1 {
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0;
}

.account-deletion-header>p:last-child {
    color: var(--color-text-muted);
    margin: 0.55rem 0 0;
}

.account-deletion-details {
    color: var(--color-text-soft);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.account-deletion-details strong {
    color: var(--color-text);
}

.account-deletion-details ul {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
}

.account-deletion-details li {
    align-items: flex-start;
    display: flex;
    gap: 0.55rem;
}

.account-deletion-check {
    align-items: center;
    background: #fee2e2;
    border-radius: 999px;
    color: #b91c1c;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.25rem;
    justify-content: center;
    margin-top: 0.05rem;
    width: 1.25rem;
}

.account-deletion-check .app-icon {
    height: 0.75rem;
    width: 0.75rem;
}

.account-deletion-form {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.account-deletion-actions {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    margin-top: 1rem;
}

@media (max-width: 520px) {
    .profile-bottom-actions,
    .account-deletion-actions {
        grid-template-columns: 1fr;
    }

    .account-deletion-actions .account-delete-button {
        grid-row: 1;
    }
}

.profile-stats>div {
    min-width: 0;
    padding: 1.05rem;
    text-align: center;
}

.profile-stats>div:not(:nth-child(3n+1)) {
    border-left: 1px solid var(--color-border);
}

.profile-stats>div:nth-child(n+4) {
    border-top: 1px solid var(--color-border);
}

.profile-stats strong,
.profile-stats span {
    display: block;
}

.profile-stats strong {
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.profile-stats .profile-stat-label {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
    min-width: 0;
}

.profile-stats .profile-stat-label-word {
    display: inline;
}

.activity-list {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    min-width: 0;
    overflow: hidden;
}

.activity-item {
    color: var(--color-text);
    display: block;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.activity-item {
    border-bottom: 1px solid oklch(92.2% 0.005 34.3 / 0.75);
    min-width: 0;
    padding: 0.95rem 1rem;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-item:hover {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

.activity-item strong,
.activity-item span,
.activity-item small {
    display: block;
}

.activity-item strong {
    font-weight: 600;
}

.activity-item span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.activity-item small {
    color: var(--color-text-faint);
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 0.45rem;
}

.action-row {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.about-page {
    background: #fff;
    color: var(--color-text-soft);
    margin-top: 0;
}

.about-body .app-page-main {
    background: #fff;
}

.about-section-inner {
    margin: 0 auto;
    max-width: 1040px;
    min-width: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.about-welcome {
    background: linear-gradient(180deg, #edf7f2 0%, #d8ede2 100%);
}

.about-welcome-inner {
    min-height: 360px;
    padding-bottom: 4.6rem;
    padding-top: 4.9rem;
    text-align: center;
}

.about-welcome h1 {
    color: #244f38;
    font-family: var(--font-title);
    font-size: clamp(2.55rem, 6vw, 4.25rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.96;
    margin: 0;
}

.about-welcome p {
    color: #2d5f43;
    font-size: clamp(1.06rem, 2vw, 1.38rem);
    font-weight: 500;
    line-height: 1.42;
    margin: 1.35rem auto 0;
    max-width: 780px;
}

.about-story {
    background: #fff;
}

.about-story-inner {
    align-items: center;
    display: grid;
    gap: clamp(2.25rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 480px;
    padding-bottom: 4.4rem;
    padding-top: 4.4rem;
}

.about-copy h2 {
    color: #202221;
    font-family: var(--font-title);
    font-size: clamp(2rem, 4.1vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
}

.about-copy p {
    color: #5b625e;
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
    font-weight: 500;
    line-height: 1.6;
    margin: 1.35rem 0 0;
}

.about-visual {
    align-items: center;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    max-width: min(100%, 430px);
    min-width: 0;
    width: 100%;
}

.about-visual-image {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.about-course-cta {
    background:
        linear-gradient(120deg, rgb(255 255 255 / 0.035) 12%, transparent 12% 28%, rgb(255 255 255 / 0.035) 28% 38%, transparent 38%),
        #173b29;
    color: white;
    text-align: center;
}

.about-course-cta .about-section-inner {
    min-height: 330px;
    padding-bottom: 4.4rem;
    padding-top: 4.4rem;
}

.about-course-cta h2 {
    color: white;
    font-family: var(--font-title);
    font-size: clamp(2.15rem, 4.8vw, 3.65rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 auto;
    max-width: 800px;
}

.about-course-cta p {
    color: rgb(255 255 255 / 0.82);
    font-size: clamp(1rem, 1.65vw, 1.18rem);
    font-weight: 500;
    line-height: 1.55;
    margin: 1.2rem auto 0;
    max-width: 680px;
}

.about-course-button {
    align-items: center;
    border: 2px solid rgb(255 255 255 / 0.82);
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    margin-top: 2.25rem;
    max-width: 100%;
    min-height: 50px;
    padding: 0 2rem;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.about-course-button:hover,
.about-course-button:focus-visible {
    background: white;
    color: #173b29;
}

.about-faq {
    background: #fff;
}

.about-faq .about-section-inner {
    padding-bottom: 4.6rem;
    padding-top: 4.6rem;
}

.about-faq-heading {
    align-items: end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.about-faq-heading h2 {
    color: #202221;
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.about-faq-heading p {
    color: #5b625e;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
}

.about-faq-list {
    border-top: 1px solid rgb(15 23 42 / 0.12);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-faq-item {
    border-bottom: 1px solid rgb(15 23 42 / 0.12);
    padding: 1.35rem 1.35rem 1.35rem 0;
}

.about-faq-item:nth-child(2n) {
    border-left: 1px solid rgb(15 23 42 / 0.12);
    padding-left: 1.35rem;
}

.about-faq-item h3 {
    color: #202221;
    font-family: var(--font-title);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.18;
    margin: 0;
}

.about-faq-item p {
    color: #5b625e;
    font-size: 0.98rem;
    line-height: 1.58;
    margin: 0.62rem 0 0;
}

.app-footer {
    background: #020617;
    color: white;
    margin-top: 0;
    padding: 4.2rem 0;
}

.app-footer-inner {
    align-items: flex-end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    min-width: 0;
}

.app-footer-inner>div {
    min-width: 0;
}

.app-footer-wordmark {
    color: white;
    font-family: var(--font-title);
    font-size: clamp(3rem, 10vw, 6.4rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.85;
    margin: 0;
}

.app-footer-copy {
    color: rgb(244 244 245 / 0.72);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.85rem 0 0;
}

.app-footer-sections {
    display: grid;
    gap: 1.35rem;
    grid-template-columns: repeat(4, max-content);
    justify-content: end;
    min-width: 0;
}

.app-footer-section {
    min-width: 86px;
}

.app-footer-section-title {
    color: rgb(244 244 245 / 0.42);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    margin: 0;
}

.app-footer-section-links {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.72rem;
}

.app-footer-section-links a {
    color: rgb(244 244 245 / 0.78);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.16s ease;
}

.app-footer-section-links a:hover,
.app-footer-section-links a:focus-visible {
    color: white;
}

@media (min-width: 760px) {

    .app-button.profile-admin-link {
        display: inline-flex;
    }

    .learning-grid,
    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learning-lesson-card {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .learning-video-placeholder {
        aspect-ratio: auto;
        min-height: 100%;
    }

    .feed-item-body {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        padding: 0;
    }

    .post-image-placeholder {
        aspect-ratio: auto;
        height: 100%;
        margin-bottom: 0;
        min-height: 190px;
    }

    .feed-card-content {
        display: flex;
        flex-direction: column;
        padding: 1.12rem 1.25rem 1.05rem;
    }

    .feed-actions {
        margin-top: auto;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1180px;
    }

    .app-header {
        padding-bottom: 0.72rem;
    }

    .app-header .container {
        max-width: 1180px;
    }

    .app-header-bar {
        min-height: 36px;
    }

    .app-shell {
        align-items: start;
        display: grid;
        gap: 1.1rem;
        grid-template-columns: minmax(0, 1fr) 304px;
    }

    .app-main {
        min-width: 0;
    }

    .desktop-sidebar {
        display: block;
        position: sticky;
        top: 4.8rem;
    }

    .feed-list {
        gap: 1rem;
    }

    .resources-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .learning-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feed-item-body {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .mobile-discovery {
        display: none;
    }

    .post-image-placeholder {
        aspect-ratio: auto;
        min-height: 200px;
    }

    .post-detail-hero {
        aspect-ratio: 16 / 5.1;
    }

    .post-detail-content {
        padding: 1.25rem 1.35rem;
    }

    .comments-card {
        padding: 1.15rem 1.35rem;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1240px;
    }

    .app-header .container {
        max-width: 1240px;
    }

    .app-shell {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .feed-item-body {
        grid-template-columns: 270px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .app-footer {
        padding: 3.4rem 0;
    }

    .app-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-footer-sections {
        gap: 1.35rem 2rem;
        grid-template-columns: repeat(2, minmax(110px, 1fr));
        justify-content: start;
        width: 100%;
    }
}

@media (max-width: 759px) {

    .app-button,
    .auth-submit-button {
        white-space: normal;
    }

    .app-button-small {
        min-height: 40px;
    }

    .app-shell,
    .learning-shell,
    .resources-shell,
    .legal-shell {
        margin-top: 0.85rem;
    }

    .feed-list,
    .learning-grid,
    .learning-lessons,
    .resources-grid {
        gap: 0.85rem;
    }

    .resources-grid {
        row-gap: 1.65rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .post-image-placeholder {
        aspect-ratio: 16 / 7.4;
        min-height: 132px;
    }

    .learning-card-visual {
        min-height: 168px;
    }

    .learning-lesson-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    .learning-lesson-heading .learning-duration {
        white-space: normal;
    }

    .learning-video-placeholder {
        min-height: 168px;
    }

    .breadcrumb-list {
        display: none;
    }

    .breadcrumb-compact {
        display: flex;
    }

    .breadcrumbs {
        font-size: 0.76rem;
        margin-bottom: 0.62rem;
        max-width: 100%;
        overflow: hidden;
    }

    .post-detail-meta {
        align-items: flex-start;
        gap: 0.42rem 0.5rem;
    }

    .profile-stats>div {
        padding: 0.9rem 0.75rem;
    }

    .about-story-inner,
    .about-story-inner-reverse {
        gap: 2.4rem;
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 3.6rem;
        padding-top: 3.6rem;
    }

    .about-story-inner-reverse .about-copy {
        order: 2;
    }

    .about-story-inner-reverse .about-visual {
        order: 1;
    }

    .about-faq-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .about-faq-list {
        grid-template-columns: 1fr;
    }

    .about-faq-item,
    .about-faq-item:nth-child(2n) {
        border-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .app-header {
        padding-bottom: 0.72rem;
        padding-top: 0.65rem;
    }

    .app-header-bar {
        flex-wrap: wrap;
        gap: 0.5rem 0.85rem;
    }

    .app-header-brand {
        max-width: 5rem;
    }

    .app-header-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .app-header-search {
        flex-basis: 100%;
        max-width: none;
        min-width: 0;
        order: 3;
    }

    .app-header-nav {
        font-size: 0.8rem;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-card);
        flex-basis: 100%;
        flex-direction: column;
        gap: 0.15rem;
        margin-left: 0;
        max-width: none;
        order: 4;
        overflow: visible;
        padding: 0.35rem;
        white-space: normal;
        width: 100%;
    }

    .app-header.has-mobile-menu .app-header-nav {
        display: none;
    }

    .app-header.has-mobile-menu.is-menu-open .app-header-nav {
        display: flex;
    }

    .app-header-link {
        border-radius: 0.45rem;
        display: flex;
        padding: 0.68rem 0.72rem;
        text-decoration: none;
        width: 100%;
    }

    .app-header-link:hover,
    .app-header-link.is-active {
        background: var(--color-cyan-soft);
    }

    .app-header-sign-in {
        justify-content: center;
        margin-top: 0.2rem;
        width: 100%;
    }

    .app-header-avatar-link {
        align-items: center;
        border-radius: 0.45rem;
        color: var(--color-text-soft);
        display: flex;
        font-size: 0.8rem;
        font-weight: 600;
        justify-content: flex-start;
        padding: 0.68rem 0.72rem;
        text-decoration: none;
        width: 100%;
    }

    .app-header-avatar-link:hover,
    .app-header-avatar-link.is-active {
        background: var(--color-cyan-soft);
        color: var(--color-cyan-deep);
    }

    .app-header-avatar-link .app-header-avatar {
        display: none;
    }

    .app-header-profile-label {
        display: inline;
    }

    .page-heading-wrap {
        margin-top: 1.15rem;
    }

    .post-detail-content,
    .comments-card,
    .auth-card,
    .post-form {
        padding: 0.95rem;
    }

    .feed-card-content {
        padding: 0.95rem;
    }

    .feed-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .feed-mode-tabs {
        overflow-x: auto;
        width: 100%;
    }

    .feed-mode-tab {
        flex: 1 1 0;
        text-align: center;
    }

    .feed-actions {
        align-items: stretch;
        gap: 0.42rem 0.6rem;
    }

    .feed-actions .feed-vote-control {
        flex: 0 0 auto;
    }

    .feed-actions .feed-action-link {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .feed-actions .feed-action-link-push {
        flex-basis: 100%;
    }

    .post-detail-hero {
        aspect-ratio: 16 / 9;
    }

    .post-detail-title {
        font-size: 1.55rem;
        line-height: 1.08;
    }

    .post-detail-actions {
        align-items: center;
        flex-direction: row;
        gap: 0.36rem;
    }

    .post-detail-actions .feed-vote-control {
        flex: 0 0 auto;
    }

    .post-detail-actions .feed-action-link {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .post-detail-actions .post-detail-comment-count {
        flex: 0 0 auto;
    }

    .post-detail-actions .feed-action-link-push {
        flex-basis: 100%;
    }

    .feed-action-link-push {
        margin-left: 0;
    }

    .post-share-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
        justify-content: flex-start;
    }

    .sign-in-prompt {
        align-items: stretch;
        flex-direction: column;
    }

    .sign-in-prompt .app-button {
        width: 100%;
    }

    .search-empty-form {
        flex-direction: column;
    }

    .search-empty-form .app-button {
        width: 100%;
    }

    .profile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-stats>div:nth-child(1) .profile-stat-label,
    .profile-stats>div:nth-child(5) .profile-stat-label,
    .profile-stats>div:nth-child(6) .profile-stat-label {
        white-space: nowrap;
    }

    .profile-stats>div:nth-child(1) .profile-stat-label-word,
    .profile-stats>div:nth-child(5) .profile-stat-label-word,
    .profile-stats>div:nth-child(6) .profile-stat-label-word {
        display: block;
    }

    .profile-course-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .learning-path-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .learning-path-hero-art {
        border-bottom: 1px solid var(--color-border);
        border-right: 0;
        flex-basis: auto;
        min-height: 180px;
        width: 100%;
    }

    .learning-intro-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .learning-intro-actions .app-button {
        width: 100%;
    }

    .form-actions .app-button,
    .action-row-button {
        width: 100%;
    }

    .action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .comment {
        gap: 0.62rem;
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .comment-avatar {
        font-size: 0.8rem;
        height: 32px;
        min-width: 32px;
        width: 32px;
    }

    .comment-replies {
        margin-left: -0.35rem;
        padding-left: 0.65rem;
    }

    .comment-reply-form .comment-submit {
        width: 100%;
    }

    .app-footer {
        padding: 3rem 0;
    }

    .app-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-footer-sections {
        gap: 1.4rem 2.2rem;
        grid-template-columns: repeat(2, minmax(110px, 1fr));
        justify-content: start;
        width: 100%;
    }

    .about-welcome-inner {
        min-height: 300px;
        padding-bottom: 3.2rem;
        padding-top: 3.5rem;
    }

    .about-story-inner,
    .about-story-inner-reverse {
        gap: 2rem;
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 3.2rem;
        padding-top: 3.2rem;
    }

    .about-story-inner-reverse .about-copy {
        order: 2;
    }

    .about-story-inner-reverse .about-visual {
        order: 1;
    }

    .about-visual {
        max-width: min(100%, 360px);
        justify-self: center;
    }

    .about-course-cta .about-section-inner {
        min-height: 280px;
        padding-bottom: 3.2rem;
        padding-top: 3.2rem;
    }

    .about-faq .about-section-inner {
        padding-bottom: 3.2rem;
        padding-top: 3.2rem;
    }

    .about-faq-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .about-faq-list {
        grid-template-columns: 1fr;
    }

    .about-faq-item,
    .about-faq-item:nth-child(2n) {
        border-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 390px) {

    .container,
    .about-section-inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .app-logo-navbar {
        height: 2rem;
    }

    .app-header-nav {
        gap: 0.58rem;
        max-width: calc(100% - 4.8rem);
    }

    .app-header-link {
        font-size: 0.78rem;
    }

    .app-header-sign-in {
        padding-inline: 0.7rem;
    }

    .app-header-search-control {
        min-height: 38px;
    }

    .feed-mode-tabs {
        width: 100%;
    }

    .feed-mode-tab {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }

    .feed-card-content,
    .post-detail-content,
    .comments-card,
    .auth-card,
    .post-form,
    .learning-path-hero,
    .learning-lesson-content {
        padding: 0.85rem;
    }

    .post-image-placeholder {
        min-height: 116px;
    }

    .post-image-source,
    .feed-source,
    .post-detail-source {
        max-width: 100%;
    }

    .feed-title {
        font-size: 1.02rem;
    }

    .feed-summary {
        font-size: 0.9rem;
        line-height: 1.52;
    }

    .comment-form {
        padding: 0.78rem;
    }

    .comment-form-header {
        gap: 0.55rem;
    }

    .comment-body {
        font-size: 0.9rem;
        line-height: 1.58;
    }

    .comment-replies {
        border-left-width: 1px;
        margin-left: -0.45rem;
        padding-left: 0.5rem;
    }

    .learning-card-visual,
    .learning-video-placeholder {
        min-height: 148px;
    }

    .learning-card-topline,
    .learning-path-meta,
    .learning-lesson-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.38rem;
    }

    .learning-path-meta span+span::before {
        content: none;
        margin-right: 0;
    }

    .learning-progress {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        flex-basis: 40px;
        font-size: 0.95rem;
        height: 40px;
        min-width: 40px;
    }

    .profile-stats strong {
        font-size: 1.1rem;
    }

    .profile-stats .profile-stat-label {
        font-size: 0.76rem;
    }

    .profile-stats>div {
        padding: 0.78rem 0.55rem;
    }

    .about-welcome-inner {
        min-height: 260px;
        padding-bottom: 2.8rem;
        padding-top: 3rem;
    }

    .about-story-inner,
    .about-story-inner-reverse,
    .about-course-cta .about-section-inner,
    .about-faq .about-section-inner {
        padding-bottom: 2.8rem;
        padding-top: 2.8rem;
    }

    .about-visual {
        max-width: min(100%, 315px);
    }

    .app-footer-wordmark {
        font-size: 2.8rem;
    }

    .app-footer-sections {
        gap: 1.25rem;
    }
}

@media (max-width: 340px) {
    .app-header-bar {
        gap: 0.45rem 0.6rem;
    }

    .app-header-nav {
        gap: 0.12rem;
    }

    .app-header-link {
        font-size: 0.75rem;
        padding-inline: 0.62rem;
    }

    .app-header-sign-in {
        font-size: 0.76rem;
        padding-inline: 0.6rem;
    }

    .feed-actions {
        gap: 0.38rem 0.62rem;
    }

    .feed-action-link {
        font-size: 0.78rem;
    }

    .feed-actions .feed-action-link:not(.feed-action-link-push) {
        flex-basis: 100%;
    }

    .post-detail-title {
        font-size: 1.42rem;
    }

    .post-detail-body {
        font-size: 0.96rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-stats>div:not(:nth-child(3n+1)) {
        border-left: 0;
    }

    .profile-stats>div+div {
        border-top: 1px solid var(--color-border);
    }

    .about-visual {
        max-width: min(100%, 285px);
    }

    .app-footer-sections {
        grid-template-columns: 1fr;
    }
}
.notifications-page {
  max-width: 760px;
  padding-bottom: 3rem;
  padding-top: 1.5rem;
}

.notifications-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.notifications-heading h1 {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  margin: 0;
}

.notifications-heading form { margin: 0; }

.notification-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.notification-item {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem;
  text-decoration: none;
}

.notification-item + .notification-item { border-top: 1px solid var(--color-border); }
.notification-item:hover { background: var(--color-surface-soft); }

.notification-item-content,
.notification-item-content strong,
.notification-item-content span,
.notification-item-content small { display: block; }

.notification-item-content strong { font-size: 0.98rem; }
.notification-item-content span { color: var(--color-text-muted); margin-top: 0.2rem; }
.notification-item-content small { color: var(--color-text-faint); margin-top: 0.35rem; }

.notification-unread-dot {
  background: #dc2626;
  border-radius: 999px;
  height: 0.55rem;
  width: 0.55rem;
}

.notifications-pagination { display: flex; justify-content: space-between; margin-top: 1rem; }
.notifications-pagination a:last-child { margin-left: auto; }
.notifications-empty { margin-top: 1rem; text-align: center; }

@media (max-width: 540px) {
  .notifications-heading { align-items: flex-start; }
  .notification-item { gap: 0.7rem; }
}
