:root {
    --of-bg: #f5efe3;
    --of-bg-deep: #e8decc;
    --of-surface: rgba(255, 252, 245, 0.88);
    --of-surface-strong: #fffdf8;
    --of-ink: #1f1a17;
    --of-muted: #695f53;
    --of-line: rgba(79, 61, 38, 0.14);
    --of-brand: #1d5660;
    --of-brand-strong: #123942;
    --of-accent: #df7a2f;
    --of-accent-soft: #f6d8bd;
    --of-star: #f4cf78;
    --of-success: #2f6d59;
    --of-danger: #a13f35;
    --of-shadow-sm: 0 16px 34px rgba(23, 18, 10, 0.08);
    --of-shadow-lg: 0 28px 70px rgba(23, 18, 10, 0.14);
    --of-radius-sm: 14px;
    --of-radius-md: 22px;
    --of-radius-lg: 34px;
    --of-space-1: 0.35rem;
    --of-space-2: 0.65rem;
    --of-space-3: 1rem;
    --of-space-4: 1.5rem;
    --of-space-5: 2rem;
    --of-space-6: 3rem;
    --of-blink: #2f6d95;
    --of-goals: #a96a1c;
    --of-projects: #367b58;
    --of-business: #8a4d37;
    --of-finance: #2c7b7b;
    --of-files: #4265a8;
    --of-microsites: #6a5a9a;
    --of-rag: #b26a2c;
    --of-sticky-offset: 7.75rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--of-sticky-offset);
}

body.of-site-body {
    min-height: 100vh;
    margin: 0;
    color: var(--of-ink);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 225, 190, 0.65), transparent 30%),
        radial-gradient(circle at right 12% top 10%, rgba(29, 86, 96, 0.16), transparent 28%),
    linear-gradient(180deg, var(--of-site-bg-override, #f8f3ea) 0%, #f4ede0 55%, #ede5d7 100%);
}

body.of-site-body::before,
body.of-site-body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(10px);
    z-index: -1;
}

body.of-site-body::before {
    top: 6rem;
    right: 3rem;
    width: 16rem;
    height: 16rem;
    background: rgba(223, 122, 47, 0.14);
}

body.of-site-body::after {
    bottom: 3rem;
    left: 1.5rem;
    width: 18rem;
    height: 18rem;
    background: rgba(29, 86, 96, 0.12);
}

a {
    color: inherit;
}

.of-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    padding: 1rem 0 0;
}

.of-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: color-mix(in srgb, var(--of-top-navbar-bg-override, #fffbf4) 82%, transparent);
    box-shadow: var(--of-shadow-sm);
    backdrop-filter: blur(18px);
}

.of-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.of-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: transparent;
    color: #fffaf2;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.of-brand-mark-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.of-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.of-brand-name,
.of-home-title,
.of-section-heading,
.of-auth-title,
.of-auth-aside-title,
.of-footer-brand {
    font-family: "Fraunces", Georgia, serif;
}

.of-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.of-brand-tag {
    color: var(--of-muted);
    font-size: 0.85rem;
}

.of-nav-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.of-nav-links,
.of-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.of-nav-chip {
    min-height: 2.85rem;
}

.of-nav-link,
.of-mobile-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: var(--of-muted);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(29, 86, 96, 0.08);
    background: rgba(255, 255, 255, 0.52);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.of-nav-link:hover,
.of-nav-link.active,
.of-mobile-nav-link:hover,
.of-mobile-nav-link.active {
    background: rgba(29, 86, 96, 0.1);
    color: var(--of-brand-strong);
    transform: translateY(-1px);
}

.of-quiet-link {
    color: var(--of-brand-strong);
    text-decoration: none;
    font-weight: 600;
}

.of-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.of-button:hover {
    transform: translateY(-1px);
}

.of-button-primary {
    background: linear-gradient(135deg, var(--of-accent), #f1a55c);
    color: #22160d;
    box-shadow: 0 16px 28px rgba(223, 122, 47, 0.2);
}

.of-button-primary:hover {
    color: #22160d;
}

.of-button-secondary {
    border-color: rgba(29, 86, 96, 0.2);
    background: rgba(255, 255, 255, 0.6);
    color: var(--of-brand-strong);
}

.of-button-secondary:hover {
    color: var(--of-brand-strong);
}

.of-nav-chip-emphasis {
    box-shadow: 0 18px 32px rgba(223, 122, 47, 0.24);
}

.of-nav-toggle {
    border: 1px solid rgba(29, 86, 96, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--of-brand-strong);
    font-weight: 700;
    padding: 0.65rem 1rem;
}

.of-user-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.85rem;
    border: 1px solid rgba(29, 86, 96, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.3rem 0.7rem 0.3rem 0.35rem;
    color: var(--of-ink);
    box-shadow: 0 10px 20px rgba(18, 57, 66, 0.08);
}

.of-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--of-brand), var(--of-brand-strong));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.of-avatar-image {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(29, 86, 96, 0.2);
}

.of-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.of-user-name {
    font-weight: 700;
}

.of-user-role {
    color: var(--of-muted);
    font-size: 0.75rem;
}

.of-back-link {
    font-weight: 700;
    border-color: rgba(29, 86, 96, 0.26);
    background: rgba(255, 255, 255, 0.88);
}

.of-copy-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(29, 86, 96, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--of-brand-strong);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.of-copy-icon-button:hover,
.of-copy-icon-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(29, 86, 96, 0.08);
    border-color: rgba(29, 86, 96, 0.3);
    outline: none;
}

.dropdown-menu.of-dropdown-menu,
.offcanvas.of-nav-drawer {
    border: 1px solid rgba(29, 86, 96, 0.12);
    border-radius: 1.25rem;
    background: rgba(255, 251, 244, 0.96);
    box-shadow: var(--of-shadow-lg);
}

.dropdown-menu.of-dropdown-menu {
    padding: 0.6rem;
    min-width: 15rem;
}

.of-dropdown-menu .dropdown-item {
    border-radius: 0.85rem;
    padding: 0.65rem 0.8rem;
}

.of-dropdown-label {
    color: var(--of-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 0.8rem;
}

.of-nav-drawer {
    color: var(--of-ink);
}

.of-nav-drawer .offcanvas-header {
    border-bottom: 1px solid var(--of-line);
}

.of-mobile-nav {
    display: grid;
    gap: 0.6rem;
}

.of-mobile-section {
    padding-top: 1rem;
    border-top: 1px solid var(--of-line);
}

.of-mobile-label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--of-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.of-mobile-nav-link {
    justify-content: flex-start;
    width: 100%;
    border: 1px solid rgba(29, 86, 96, 0.1);
    background: rgba(255, 255, 255, 0.56);
}

.of-message-stack {
    margin-top: 1rem;
}

.of-alert {
    border: 0;
    border-radius: var(--of-radius-sm);
    box-shadow: var(--of-shadow-sm);
}

.of-main {
    padding: 1.4rem 0 3rem;
}

.of-page-shell {
    min-height: 60vh;
}

.of-footer {
    padding: 0 0 2.5rem;
}

.of-footer-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.6rem;
    background: rgba(255, 251, 244, 0.78);
    box-shadow: var(--of-shadow-sm);
}

.of-footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
}

.of-footer-copy {
    color: var(--of-muted);
    font-size: 0.92rem;
}

.of-footer-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.of-footer-links a {
    color: var(--of-brand-strong);
    text-decoration: none;
    font-weight: 600;
}

.of-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    padding: 0.8rem 1rem;
    border-radius: 0.95rem;
    background: rgba(18, 57, 66, 0.94);
    color: #fff;
    box-shadow: var(--of-shadow-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.of-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.of-home-shell {
    display: grid;
    gap: 1.8rem;
}

@keyframes of-twinkle {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes of-orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes of-orbit-spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes of-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.45rem);
    }
}

@keyframes of-rise-in {
    from {
        opacity: 0;
        transform: translateY(0.8rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.of-home-hero,
.of-home-section,
.of-home-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: var(--of-radius-lg);
    background: linear-gradient(160deg, rgba(255, 252, 246, 0.95), rgba(245, 236, 222, 0.88));
    box-shadow: var(--of-shadow-lg);
}

.of-home-hero::after,
.of-home-cta::after {
    content: "";
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    right: -4rem;
    top: -5rem;
    background: rgba(223, 122, 47, 0.14);
}

.of-home-cosmos {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.of-home-star,
.of-about-node {
    position: absolute;
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 250, 235, 0.98) 0%, var(--of-star) 58%, rgba(244, 207, 120, 0.12) 100%);
    box-shadow: 0 0 18px rgba(244, 207, 120, 0.56);
    animation: of-twinkle 2.9s ease-in-out infinite;
}

.of-home-star-1 {
    top: 1.5rem;
    left: 42%;
}

.of-home-star-2 {
    top: 5.1rem;
    right: 10%;
    animation-delay: 0.7s;
}

.of-home-star-3 {
    bottom: 2.4rem;
    left: 11%;
    animation-delay: 1.4s;
}

.of-home-copy {
    position: relative;
    z-index: 1;
}

.of-home-section-lead {
    max-width: 48rem;
    color: var(--of-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.of-home-eyebrow,
.of-auth-eyebrow,
.of-auth-chip,
.of-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.1);
    color: var(--of-brand-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.of-home-title {
    max-width: 13ch;
    margin: 1rem 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.95;
}

.of-home-lead,
.of-home-subcopy,
.of-auth-copy,
.of-auth-aside-copy {
    color: var(--of-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.of-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.of-home-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.of-metric-card,
.of-feature-card,
.of-step-card {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: var(--of-radius-md);
    background: rgba(255, 255, 255, 0.66);
}

.of-metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
}

.of-metric-label,
.of-feature-copy,
.of-step-copy {
    color: var(--of-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.of-preview-panel {
    position: relative;
    padding: 1.2rem;
    border: 1px solid rgba(29, 86, 96, 0.12);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(20, 49, 56, 0.95), rgba(15, 32, 36, 0.96));
    color: #f6eee1;
    box-shadow: 0 26px 54px rgba(15, 32, 36, 0.26);
}

.of-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(246, 238, 225, 0.72);
    font-size: 0.92rem;
}

.of-preview-header span:last-child {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(223, 122, 47, 0.22);
    color: #ffd9bd;
}

.of-orbit-board {
    position: relative;
    min-height: 22rem;
    margin-bottom: 1rem;
    border-radius: 1.7rem;
    background:
        radial-gradient(circle, rgba(223, 122, 47, 0.1) 0%, rgba(223, 122, 47, 0) 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.of-orbit-board::before,
.of-orbit-board::after {
    content: "";
    position: absolute;
    inset: 15% 18%;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    transform-origin: center;
    animation: of-orbit-spin 26s linear infinite;
}

.of-orbit-board::after {
    inset: 6% 8%;
    animation: of-orbit-spin-reverse 32s linear infinite;
}

.of-orbit-center,
.of-orbit-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1rem;
    border-radius: 1.15rem;
    font-weight: 700;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.18);
}

.of-orbit-center {
    top: 50%;
    left: 50%;
    min-width: 8rem;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffd29e, #df7a2f);
    color: #2b170a;
}

.of-orbit-node {
    background: rgba(255, 255, 255, 0.08);
    color: #fff7ea;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: of-float 6.5s ease-in-out infinite;
}

.of-orbit-node.node-1 { top: 8%; left: 18%; }
.of-orbit-node.node-2 {
    top: 18%;
    right: 10%;
    animation-delay: 0.8s;
}

.of-orbit-node.node-3 {
    right: 12%;
    bottom: 18%;
    animation-delay: 1.4s;
}

.of-orbit-node.node-4 {
    bottom: 10%;
    left: 12%;
    animation-delay: 2.1s;
}

.of-preview-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.of-preview-step {
    padding: 0.8rem 0.7rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.of-preview-step strong {
    display: block;
    color: #ffd9bd;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.of-preview-step span {
    display: block;
    margin-top: 0.25rem;
    font-weight: 600;
}

.of-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.of-concept-grid,
.of-story-grid,
.of-about-definition-grid,
.of-about-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.of-concept-card,
.of-story-card,
.of-about-definition-card {
    position: relative;
    padding: 1.15rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: var(--of-radius-md);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 30px rgba(23, 18, 10, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    animation: of-rise-in 0.55s ease both;
}

.of-concept-card:hover,
.of-story-card:hover,
.of-about-definition-card:hover {
    transform: translateY(-0.22rem);
    border-color: rgba(29, 86, 96, 0.18);
    box-shadow: 0 18px 34px rgba(23, 18, 10, 0.1);
}

.of-concept-card:nth-child(2),
.of-story-card:nth-child(2),
.of-about-definition-card:nth-child(2) {
    animation-delay: 0.06s;
}

.of-concept-card:nth-child(3),
.of-story-card:nth-child(3),
.of-about-definition-card:nth-child(3) {
    animation-delay: 0.12s;
}

.of-concept-card:nth-child(4),
.of-story-card:nth-child(4) {
    animation-delay: 0.18s;
}

.of-concept-card:nth-child(5) {
    animation-delay: 0.24s;
}

.of-concept-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: rgba(223, 122, 47, 0.14);
    color: var(--of-accent);
    font-size: 0.95rem;
    font-weight: 700;
}

.of-concept-label,
.of-story-kicker {
    display: inline-flex;
    margin-bottom: 0.65rem;
    color: var(--of-brand-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.of-phrase-card {
    height: 100%;
    padding: clamp(1.3rem, 3vw, 2rem);
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: var(--of-radius-md);
    background: linear-gradient(150deg, rgba(255, 253, 249, 0.92), rgba(246, 236, 222, 0.88));
    box-shadow: 0 20px 40px rgba(23, 18, 10, 0.08);
}

.of-blink-phrase-section .of-story-grid {
    height: 100%;
    align-content: start;
}

.of-feature-title,
.of-step-title,
.of-section-heading {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.of-workflow-strip {
    display: grid;
    gap: 1rem;
}

.of-workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.of-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.12);
    color: var(--of-brand-strong);
    font-weight: 700;
}

.of-home-cta-copy {
    max-width: 42rem;
}

.of-module-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.of-module-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--of-brand-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.of-about-shell {
    display: grid;
    gap: 1.8rem;
}

.of-about-hero,
.of-about-section {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: var(--of-radius-lg);
    background: linear-gradient(160deg, rgba(255, 252, 246, 0.95), rgba(244, 236, 224, 0.9));
    box-shadow: var(--of-shadow-lg);
}

.of-about-orbits-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.of-about-orbit-ring {
    position: absolute;
    border: 1px solid rgba(29, 86, 96, 0.12);
    border-radius: 999px;
}

.of-about-orbit-ring--inner {
    top: 8%;
    right: 12%;
    width: 14rem;
    height: 14rem;
    animation: of-orbit-spin 24s linear infinite;
}

.of-about-orbit-ring--outer {
    top: -6%;
    right: 3%;
    width: 22rem;
    height: 22rem;
    animation: of-orbit-spin-reverse 36s linear infinite;
}

.of-about-node--goal {
    top: 20%;
    right: 17%;
}

.of-about-node--blink {
    top: 44%;
    right: 7%;
    animation-delay: 0.8s;
}

.of-about-node--task {
    bottom: 18%;
    right: 20%;
    animation-delay: 1.3s;
}

.of-about-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--of-muted);
    line-height: 1.8;
}

.of-about-list li + li {
    margin-top: 0.3rem;
}

.of-auth-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 16rem);
}

.of-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: 1.3rem;
    width: min(100%, 72rem);
}

.of-auth-card,
.of-auth-aside {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--of-radius-lg);
    box-shadow: var(--of-shadow-lg);
}

.of-auth-card {
    background: rgba(255, 253, 249, 0.92);
}

.of-auth-aside {
    background: linear-gradient(160deg, rgba(20, 49, 56, 0.96), rgba(35, 74, 82, 0.92));
    color: #fff5e8;
}

.of-auth-title {
    margin: 1rem 0 0.7rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.of-auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.6rem;
}

.of-field-group {
    display: grid;
    gap: 0.45rem;
}

.of-field-label {
    font-weight: 700;
}

.of-field-required {
    color: var(--of-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.of-auth-form input,
.of-auth-form select,
.of-auth-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(29, 86, 96, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--of-ink);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.of-auth-form input:focus,
.of-auth-form select:focus,
.of-auth-form textarea:focus {
    outline: none;
    border-color: rgba(29, 86, 96, 0.42);
    box-shadow: 0 0 0 4px rgba(29, 86, 96, 0.12);
}

.of-field-group.has-errors input,
.of-field-group.has-errors select,
.of-field-group.has-errors textarea {
    border-color: rgba(161, 63, 53, 0.5);
    box-shadow: 0 0 0 4px rgba(161, 63, 53, 0.08);
}

.of-field-help,
.of-field-help ul,
.of-auth-meta,
.of-auth-form .helptext {
    color: var(--of-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.of-field-help ul,
.of-form-errors ul {
    margin: 0;
    padding-left: 1.15rem;
}

.of-field-error,
.of-form-errors {
    color: var(--of-danger);
    font-size: 0.92rem;
    line-height: 1.5;
}

.of-form-errors {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(161, 63, 53, 0.2);
    border-radius: 1rem;
    background: rgba(255, 240, 237, 0.9);
}

.of-auth-submit {
    margin-top: 0.4rem;
}

.of-auth-meta a {
    color: var(--of-brand-strong);
    font-weight: 700;
    text-decoration: none;
}

.of-auth-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #ffe0c2;
}

.of-auth-aside-title {
    margin: 1rem 0 0.7rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
}

.of-auth-checklist {
    display: grid;
    gap: 0.8rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.of-auth-checklist li {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.of-auth-checklist strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #ffe0c2;
}

.of-dashboard-shell {
    display: grid;
    grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

body[data-show-side-navbar="false"] .of-dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
}

body[data-show-side-navbar="false"] .of-dashboard-shell > :first-child {
    display: none;
}

.of-dashboard-main,
.of-dashboard-stack {
    display: grid;
    gap: 1.2rem;
}

.of-panel,
.of-shell-panel,
.of-hub-hero,
.of-blink-hero,
.of-blink-entry,
.of-blink-panel {
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: var(--of-radius-lg);
    background: linear-gradient(160deg, rgba(255, 252, 246, 0.94), rgba(245, 236, 222, 0.88));
    box-shadow: var(--of-shadow-sm);
}

.of-panel,
.of-shell-panel,
.of-hub-hero,
.of-blink-hero,
.of-blink-entry,
.of-blink-panel {
    padding: 1.25rem;
}

.of-panel-title,
.of-hub-title,
.of-blink-title,
.of-blink-panel-title,
.of-app-menu-title,
.of-recent-title {
    font-family: "Fraunces", Georgia, serif;
}

.of-panel-kicker,
.of-app-menu-kicker,
.of-hub-kicker,
.of-blink-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.1);
    color: var(--of-brand-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.of-app-menu-card {
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: var(--of-radius-lg);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 236, 225, 0.92));
    box-shadow: var(--of-shadow-sm);
    overflow: hidden;
}

.of-app-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.15rem 0.95rem;
}

.of-app-menu-title {
    margin: 0.4rem 0 0;
    font-size: 1.5rem;
}

.of-app-menu-copy {
    margin: 0.55rem 0 0;
    color: var(--of-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.of-app-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    min-height: 2.8rem;
    padding: 0;
    border: 1px solid rgba(29, 86, 96, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--of-brand-strong);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1;
}

.of-app-menu-body {
    padding: 0 1rem 1rem;
}

.of-app-menu-links {
    display: grid;
    gap: 0.8rem;
}

.of-app-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(29, 86, 96, 0.1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.of-app-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(23, 18, 10, 0.08);
    border-color: rgba(29, 86, 96, 0.2);
}

.of-app-link.is-active {
    border-color: color-mix(in srgb, var(--of-module-color, var(--of-brand)) 30%, white);
    background: color-mix(in srgb, var(--of-module-color, var(--of-brand)) 10%, white);
    box-shadow: 0 18px 32px rgba(23, 18, 10, 0.09);
}

.of-app-link.mod-hub { --of-module-color: var(--of-brand); }
.of-app-link.mod-blink { --of-module-color: var(--of-blink); }
.of-app-link.mod-goals { --of-module-color: var(--of-goals); }
.of-app-link.mod-projects { --of-module-color: var(--of-projects); }
.of-app-link.mod-business { --of-module-color: var(--of-business); }
.of-app-link.mod-finance { --of-module-color: var(--of-finance); }
.of-app-link.mod-files { --of-module-color: var(--of-files); }
.of-app-link.mod-microsites { --of-module-color: var(--of-microsites); }
.of-app-link.mod-rag { --of-module-color: var(--of-rag); }
.of-app-link.mod-admin { --of-module-color: #617086; }

.of-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--of-module-color, var(--of-brand)) 14%, white);
    color: var(--of-module-color, var(--of-brand));
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.of-app-copy {
    min-width: 0;
}

.of-app-name {
    display: block;
    color: var(--of-ink);
    font-weight: 700;
}

.of-app-detail {
    display: block;
    color: var(--of-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.of-app-state {
    color: var(--of-module-color, var(--of-brand));
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.of-app-menu-divider {
    margin: 1rem 0 0.85rem;
    color: var(--of-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.of-hub-hero {
    position: relative;
    overflow: hidden;
}

.of-hub-hero::after,
.of-blink-hero::after,
.of-blink-entry::after {
    content: "";
    position: absolute;
    width: 14rem;
    height: 14rem;
    right: -4rem;
    top: -4rem;
    border-radius: 999px;
    background: rgba(223, 122, 47, 0.12);
    pointer-events: none;
}

.of-hub-copy,
.of-blink-copy {
    position: relative;
    z-index: 1;
}

.of-hub-title,
.of-blink-title {
    margin: 0.8rem 0 0.6rem;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 0.98;
}

.of-hub-lead,
.of-blink-lead,
.of-panel-copy,
.of-panel-note,
.of-recent-item-copy,
.of-recent-empty {
    color: var(--of-muted);
    line-height: 1.65;
}

.of-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.of-summary-grid,
.of-blink-summary-grid,
.of-recent-grid {
    display: grid;
    gap: 1rem;
}

.of-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.of-kanban-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.of-blink-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.of-summary-card,
.of-blink-summary-card,
.of-recent-panel,
.of-mini-panel {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: var(--of-radius-md);
    background: rgba(255, 255, 255, 0.7);
}

.of-recent-panel,
.of-mini-panel {
    min-width: 0;
}

.of-summary-card-value,
.of-blink-summary-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.of-summary-card-label,
.of-blink-summary-label {
    display: block;
    margin-top: 0.35rem;
    font-weight: 700;
}

.of-summary-card-note,
.of-blink-summary-note {
    display: block;
    margin-top: 0.35rem;
    color: var(--of-muted);
    font-size: 0.87rem;
    line-height: 1.5;
}

.of-summary-card.mod-blink,
.of-blink-summary-card.mod-blink { color: var(--of-blink); }
.of-summary-card.mod-goals,
.of-blink-summary-card.mod-goals { color: var(--of-goals); }
.of-summary-card.mod-projects,
.of-blink-summary-card.mod-projects { color: var(--of-projects); }
.of-summary-card.mod-business,
.of-blink-summary-card.mod-business { color: var(--of-business); }
.of-summary-card.mod-files,
.of-blink-summary-card.mod-files { color: var(--of-files); }

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

.of-hub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(19rem, 0.95fr);
    gap: 1rem;
    align-items: start;
}

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

.of-hub-overview-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: var(--of-radius-md);
    background: rgba(255, 255, 255, 0.72);
    min-width: 0;
}

.of-hub-list,
.of-hub-side-stack {
    display: grid;
    gap: 0.9rem;
}

.of-recent-panel-head,
.of-blink-panel-head,
.of-blink-list-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.of-recent-title,
.of-blink-panel-title {
    margin: 0;
    font-size: 1.45rem;
}

.of-recent-subtitle,
.of-blink-panel-subtitle {
    color: var(--of-muted);
    font-size: 0.9rem;
}

.of-recent-list {
    display: grid;
    gap: 0.8rem;
}

.of-recent-item,
.of-blink-recent-item,
.of-hub-file-item {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.of-recent-item-top,
.of-hub-file-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    min-width: 0;
}

.of-code-pill,
.of-mini-pill,
.of-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.08);
    color: var(--of-brand-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.of-recent-item-title,
.of-hub-file-title,
.of-blink-item-title {
    display: block;
    max-width: 100%;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.of-kanban-limit-note {
    color: var(--of-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.of-ui-summary-shell {
    display: grid;
    gap: 0.9rem;
}

.of-ui-summary-toggle {
    white-space: nowrap;
}

.of-calendar-prefill-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(47, 109, 149, 0.12);
    color: var(--of-blink);
    font-size: 0.84rem;
    font-weight: 700;
}

.of-calendar-month-panel,
.of-calendar-day-panel {
    display: grid;
    gap: 1rem;
}

.of-calendar-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.of-calendar-toolbar-actions {
    display: grid;
    gap: 0.8rem;
    justify-items: end;
}

.of-calendar-view-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.of-calendar-view-switch .of-button {
    justify-content: center;
    min-width: 6.4rem;
}

.of-calendar-timezone-form {
    display: grid;
    gap: 0.35rem;
    width: min(100%, 24rem);
}

.of-calendar-timezone-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.of-calendar-timezone-controls .form-select {
    flex: 1 1 14rem;
    min-width: 12rem;
}

.of-calendar-timezone-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    color: var(--of-muted);
    font-size: 0.9rem;
}

.of-calendar-list-view {
    display: grid;
    gap: 0.7rem;
}

.of-calendar-list-day {
    display: grid;
    grid-template-columns: minmax(7rem, 8.5rem) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.of-calendar-list-day.is-today {
    border-color: rgba(47, 109, 149, 0.2);
    box-shadow: inset 0 0 0 1px rgba(47, 109, 149, 0.12);
}

.of-calendar-list-date-link {
    display: grid;
    gap: 0.15rem;
    color: var(--of-brand-strong);
    text-decoration: none;
}

.of-calendar-list-date-link span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--of-muted);
}

.of-calendar-list-date-link strong {
    font-size: 1.05rem;
}

.of-calendar-list-items {
    display: grid;
    gap: 0.45rem;
}

.of-calendar-list-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 0.85rem;
    background: rgba(250, 246, 239, 0.7);
    color: inherit;
    text-decoration: none;
}

.of-calendar-list-item-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.of-calendar-list-item-meta {
    color: var(--of-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.of-calendar-list-indicator {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.24);
}

.of-calendar-list-indicator.mod-task {
    background: var(--of-blink);
}

.of-calendar-list-indicator.mod-reminder {
    background: var(--of-accent);
}

.of-calendar-list-indicator.mod-event {
    background: var(--of-success);
}

.of-calendar-list-indicator.mod-both {
    background: var(--of-brand);
}

.of-calendar-year-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.of-calendar-year-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.74);
}

.of-calendar-year-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.of-calendar-year-card-title {
    margin: 0;
    font-size: 1.05rem;
}

.of-calendar-year-card-title a {
    color: var(--of-brand-strong);
    text-decoration: none;
}

.of-calendar-year-weekdays,
.of-calendar-year-mini-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
}

.of-calendar-year-weekdays {
    color: var(--of-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.of-calendar-year-mini-grid {
    display: grid;
    gap: 0.3rem;
}

.of-calendar-year-day-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border: 1px solid rgba(29, 86, 96, 0.06);
    border-radius: 0.75rem;
    background: rgba(250, 246, 239, 0.7);
    font-size: 0.82rem;
    color: var(--of-brand-strong);
}

.of-calendar-year-day-cell.is-outside-month {
    color: rgba(31, 26, 23, 0.38);
    background: rgba(250, 246, 239, 0.4);
}

.of-calendar-year-day-cell.has-events {
    background: rgba(47, 109, 149, 0.12);
    border-color: rgba(47, 109, 149, 0.18);
}

.of-calendar-year-day-cell.is-today {
    border-color: rgba(223, 122, 47, 0.3);
    box-shadow: inset 0 0 0 1px rgba(223, 122, 47, 0.16);
}

.of-calendar-nav,
.of-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.of-calendar-legend-item,
.of-calendar-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.of-calendar-legend-item.mod-task,
.of-calendar-event-badge.mod-task {
    background: rgba(47, 109, 149, 0.12);
    color: var(--of-blink);
}

.of-calendar-legend-item.mod-reminder,
.of-calendar-event-badge.mod-reminder {
    background: rgba(223, 122, 47, 0.14);
    color: var(--of-accent);
}

.of-calendar-legend-item.mod-event,
.of-calendar-event-badge.mod-event {
    background: rgba(52, 143, 89, 0.14);
    color: var(--of-success);
}

.of-calendar-legend-item.mod-today {
    background: rgba(47, 109, 149, 0.08);
    color: var(--of-brand-strong);
    border: 1px solid rgba(47, 109, 149, 0.18);
}

.of-calendar-grid-shell {
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.of-calendar-weekdays,
.of-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(7.4rem, 1fr));
    gap: 0.55rem;
    min-width: 54rem;
}

.of-calendar-weekdays {
    margin-bottom: 0.55rem;
}

.of-calendar-grid {
    display: grid;
    gap: 0.55rem;
}

.of-calendar-weekday {
    padding: 0.7rem 0.8rem;
    border-radius: 1rem;
    background: rgba(29, 86, 96, 0.08);
    color: var(--of-brand-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.of-calendar-day {
    position: relative;
    display: grid;
    gap: 0.5rem;
    min-height: 7.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(29, 86, 96, 0.1);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 28px rgba(18, 57, 66, 0.06);
    overflow: hidden;
}

.of-calendar-day > * {
    position: relative;
    z-index: 1;
}

.of-calendar-day:hover {
    border-color: rgba(29, 86, 96, 0.2);
    box-shadow: 0 18px 32px rgba(18, 57, 66, 0.1);
}

.of-calendar-day.is-outside-month {
    background: rgba(250, 246, 239, 0.72);
    color: rgba(31, 26, 23, 0.62);
}

.of-calendar-day.is-today {
    border-color: rgba(47, 109, 149, 0.28);
    box-shadow: inset 0 0 0 1px rgba(47, 109, 149, 0.14), 0 18px 32px rgba(18, 57, 66, 0.08);
}

.of-calendar-day.is-today::after {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 100%;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--of-blink), color-mix(in srgb, var(--of-accent) 60%, white));
}

.of-calendar-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}

.of-calendar-day-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.of-calendar-day-number-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.08);
    color: var(--of-brand-strong);
    font-weight: 700;
    text-decoration: none;
}

.of-calendar-day-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(29, 86, 96, 0.12);
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.08);
    color: var(--of-brand-strong);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(18, 57, 66, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.of-calendar-day-action.mod-add {
    background: rgba(47, 109, 149, 0.12);
    border-color: rgba(47, 109, 149, 0.18);
    color: var(--of-blink);
}

.of-calendar-day-action:hover,
.of-calendar-event-icon:hover,
.of-calendar-more-link:hover {
    transform: translateY(-1px);
}

.of-calendar-day-link,
.of-calendar-more-link {
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
}

.of-calendar-events {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-content: flex-start;
}

.of-calendar-day-list {
    display: grid;
    gap: 0.55rem;
}

.of-calendar-event-icon,
.of-calendar-day-item {
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(18, 57, 66, 0.05);
}

.of-calendar-event-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.of-calendar-event-icon::before {
    content: "";
    width: 0.58rem;
    height: 0.58rem;
    background: currentColor;
    border-radius: 0.18rem;
}

.of-calendar-event-icon.mod-task {
    border-color: rgba(47, 109, 149, 0.22);
    background: rgba(47, 109, 149, 0.12);
    color: var(--of-blink);
}

.of-calendar-event-icon.mod-reminder {
    border-color: rgba(223, 122, 47, 0.24);
    background: rgba(223, 122, 47, 0.14);
    color: var(--of-accent);
}

.of-calendar-event-icon.mod-reminder::before {
    border-radius: 999px;
}

.of-calendar-event-icon.mod-event {
    border-color: rgba(52, 143, 89, 0.22);
    background: rgba(52, 143, 89, 0.12);
    color: var(--of-success);
}

.of-calendar-event-icon.mod-event::before {
    width: 0.72rem;
    height: 0.38rem;
    border-radius: 999px;
}

.of-calendar-event-icon.mod-both {
    border-color: rgba(29, 86, 96, 0.18);
    background: rgba(29, 86, 96, 0.1);
    color: var(--of-brand);
}

.of-calendar-event-icon.mod-both::before {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 0.12rem;
    transform: rotate(45deg);
}

.of-calendar-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.42rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.08);
    color: var(--of-brand-strong);
    font-size: 0.76rem;
    line-height: 1;
}

.of-calendar-event-badges,
.of-calendar-day-meta,
.of-calendar-day-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.of-calendar-empty,
.of-calendar-day-empty {
    color: var(--of-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.of-calendar-day-empty {
    padding: 1rem;
    border: 1px dashed rgba(29, 86, 96, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.56);
}

.of-calendar-day-item-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.of-calendar-day-item {
    display: grid;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
}

.of-calendar-day-timestamps {
    color: var(--of-muted);
    font-size: 0.88rem;
}

.of-kanban-board-shell {
    display: grid;
    grid-template-columns: repeat(5, minmax(15rem, 1fr));
    gap: 0.85rem;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.of-kanban-column {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(29, 86, 96, 0.12);
    border-top-width: 4px;
    border-radius: var(--of-radius-md);
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(246, 239, 227, 0.92));
    box-shadow: var(--of-shadow-sm);
}

.of-kanban-column.mod-backlog {
    border-top-color: #87745a;
}

.of-kanban-column.mod-next {
    border-top-color: var(--of-accent);
}

.of-kanban-column.mod-in-progress {
    border-top-color: var(--of-brand);
}

.of-kanban-column.mod-waiting {
    border-top-color: #8a4d37;
}

.of-kanban-column.mod-done {
    border-top-color: var(--of-success);
}

.of-kanban-column-head {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: flex-start;
}

.of-kanban-column-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.08);
    color: var(--of-brand-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.of-kanban-column-title {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.28rem;
}

.of-kanban-column-copy {
    margin: 0.4rem 0 0;
    color: var(--of-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.of-kanban-lane {
    display: grid;
    gap: 0.6rem;
    min-height: 18rem;
    max-height: min(68vh, 44rem);
    overflow-y: auto;
    padding: 0.1rem;
    border-radius: 1rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.of-kanban-lane.is-drag-over {
    background: rgba(29, 86, 96, 0.06);
    box-shadow: inset 0 0 0 1px rgba(29, 86, 96, 0.12);
}

.of-kanban-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.78rem 0.82rem;
    border: 1px solid rgba(29, 86, 96, 0.1);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 20px rgba(18, 57, 66, 0.08);
    cursor: grab;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.of-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(18, 57, 66, 0.12);
}

.of-kanban-card.is-dragging {
    opacity: 0.55;
    transform: rotate(1.2deg);
}

.of-kanban-card.is-saving {
    opacity: 0.72;
}

.of-kanban-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.55rem;
    align-items: center;
}

.of-kanban-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.6rem;
    min-width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.28);
    color: transparent;
    font-size: 0;
}

.of-kanban-card-icon.mod-backlog {
    color: #6f5a42;
}

.of-kanban-card-icon.mod-next {
    color: var(--of-accent);
}

.of-kanban-card-icon.mod-in-progress {
    color: var(--of-brand);
}

.of-kanban-card-icon.mod-waiting {
    color: #8a4d37;
}

.of-kanban-card-icon.mod-done {
    color: var(--of-success);
}

.of-kanban-card-main {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.of-kanban-card-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.of-kanban-card-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.of-kanban-card-copy,
.of-kanban-card-due {
    margin: 0;
    color: var(--of-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.of-kanban-card-meta,
.of-kanban-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.of-kanban-card-actions .btn {
    padding: 0.3rem 0.6rem;
}

.of-kanban-empty {
    padding: 1rem;
    border: 1px dashed rgba(29, 86, 96, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.46);
    color: var(--of-muted);
    text-align: center;
    line-height: 1.6;
}

.of-min-w-0 {
    min-width: 0;
}

.of-blink-item-title-text,
.of-blink-grid-title,
.of-blink-detail-title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-orient: vertical;
}

.of-blink-item-title-text,
.of-blink-grid-title {
    -webkit-line-clamp: 2;
}

.of-blink-detail-title {
    -webkit-line-clamp: 3;
}

.of-recent-item-meta,
.of-hub-file-meta,
.of-blink-item-meta {
    color: var(--of-muted);
    font-size: 0.84rem;
}

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

.of-mini-panel-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.of-profile-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.of-profile-avatar-image,
.of-profile-avatar-fallback {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
}

.of-profile-avatar-image {
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 32px rgba(29, 86, 96, 0.18);
}

.of-profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 184, 76, 0.22), rgba(29, 86, 96, 0.18));
    color: var(--of-brand-strong);
    font-size: 2.1rem;
    font-weight: 700;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 32px rgba(29, 86, 96, 0.18);
}

.of-blink-hero,
.of-blink-entry,
.of-blink-panel {
    position: relative;
    overflow: hidden;
}

.of-blink-header-row,
.of-blink-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.of-blink-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.of-inline-link {
    color: var(--of-brand-strong);
    font-weight: 700;
    text-decoration: none;
}

.of-view-switch {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid rgba(29, 86, 96, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
}

.of-view-switch .btn {
    border-radius: 999px;
    border: 0;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.of-view-switch .btn.active {
    background: var(--of-brand-strong);
    color: #fff9f0;
}

.of-blink-panel .card-header,
.of-blink-entry .card-header {
    padding: 0;
    background: transparent;
    border: 0;
}

.of-blink-collapse-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(29, 86, 96, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--of-brand-strong);
    font-weight: 700;
    min-width: 2.8rem;
    min-height: 2.8rem;
    padding: 0;
    font-size: 1.45rem;
    line-height: 1;
}

.of-blink-entry .card-body,
.of-blink-panel .card-body {
    padding: 0;
    background: transparent;
}

.of-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, auto);
    gap: 0.8rem;
    align-items: end;
}

.of-toolbar-field {
    display: grid;
    gap: 0.35rem;
}

.of-toolbar-label {
    color: var(--of-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.of-blink-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.of-blink-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.08);
    color: var(--of-brand-strong);
    font-size: 0.76rem;
    font-weight: 700;
    vertical-align: middle;
}

.of-blink-badge.mod-task { background: rgba(47, 109, 149, 0.12); color: var(--of-blink); }
.of-blink-badge.mod-reminder { background: rgba(223, 122, 47, 0.14); color: #9a541d; }
.of-blink-badge.mod-finance { background: rgba(44, 123, 123, 0.12); color: var(--of-finance); }

.of-blink-list {
    display: grid;
    gap: 0.85rem;
}

.of-blink-list .list-group-item,
.of-blink-compact-list .list-group-item {
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.74);
    padding: 1rem;
}

.of-blink-grid .card {
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.76);
}

.of-blink-actions {
    display: inline-flex;
    gap: 0.45rem;
}

.of-blink-actions .btn {
    border-radius: 999px;
}

.of-blink-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.of-pagination .page-link {
    border-radius: 999px;
    border-color: rgba(29, 86, 96, 0.12);
    color: var(--of-brand-strong);
    background: rgba(255, 255, 255, 0.72);
}

.of-pagination .page-item.disabled .page-link {
    color: var(--of-muted);
    background: rgba(255, 255, 255, 0.52);
}

.of-blink-section-anchor,
.of-blink-entry {
    scroll-margin-top: 7rem;
}

.of-link-reset {
    color: inherit;
    text-decoration: none;
}

.of-ops-page {
    display: grid;
    gap: 1.25rem;
}

.of-ops-shell {
    display: grid;
    grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.of-ops-main {
    display: grid;
    gap: 1rem;
}

.of-ops-hero,
.of-ops-toolbar,
.of-rag-hero,
.of-rag-step-panel,
.of-rag-stage-panel,
.of-rag-page-hero {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: var(--of-radius-lg);
    background: linear-gradient(160deg, rgba(255, 252, 246, 0.95), rgba(244, 236, 225, 0.9));
    box-shadow: var(--of-shadow-sm);
}

.of-ops-hero::after,
.of-rag-hero::after,
.of-rag-page-hero::after {
    content: "";
    position: absolute;
    width: 14rem;
    height: 14rem;
    right: -4rem;
    top: -4rem;
    border-radius: 999px;
    background: rgba(223, 122, 47, 0.12);
    pointer-events: none;
}

.of-ops-title,
.of-rag-title,
.of-rag-page-title {
    margin: 0.8rem 0 0.6rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.95rem, 4vw, 3rem);
    line-height: 0.98;
}

.of-ops-lead,
.of-rag-lead,
.of-rag-page-lead {
    max-width: 44rem;
    color: var(--of-muted);
    line-height: 1.7;
}

.of-ops-toolbar {
    display: grid;
    gap: 1rem;
}

.of-ops-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.of-ops-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(29, 86, 96, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--of-brand-strong);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.of-ops-tab:hover {
    transform: translateY(-1px);
    color: var(--of-brand-strong);
    box-shadow: 0 14px 24px rgba(23, 18, 10, 0.08);
}

.of-ops-tab.is-active {
    color: #fff9f0;
}

.of-ops-tab.mod-blink.is-active {
    border-color: var(--of-blink);
    background: linear-gradient(135deg, color-mix(in srgb, var(--of-blink) 86%, white), var(--of-blink));
}

.of-ops-tab.mod-folders.is-active {
    border-color: var(--of-projects);
    background: linear-gradient(135deg, color-mix(in srgb, var(--of-projects) 82%, white), var(--of-projects));
}

.of-ops-tab.mod-all.is-active {
    border-color: #617086;
    background: linear-gradient(135deg, color-mix(in srgb, #617086 82%, white), #617086);
}

.of-ops-toolbar-grid {
    display: grid;
    gap: 0.85rem;
}

.of-ops-toolbar-grid form,
.of-ops-toolbar form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.of-ops-toolbar .form-label,
.of-rag-page .form-label {
    color: var(--of-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.of-ops-toolbar .form-control,
.of-ops-toolbar .form-select,
.of-rag-page .form-control,
.of-rag-page .form-select {
    border-radius: 1rem;
    border-color: rgba(29, 86, 96, 0.14);
    background: rgba(255, 255, 255, 0.84);
}

.of-ops-toolbar .btn,
.of-file-pagination .btn,
.of-rag-page .btn-group .btn {
    border-radius: 999px;
}

.of-file-table-wrap,
.of-folder-sidebar,
.of-folder-address,
.of-folder-actions,
.of-folder-workspace,
.of-file-gallery-shell,
.of-rag-stage-grid {
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--of-radius-md);
    background: rgba(255, 252, 246, 0.82);
    box-shadow: var(--of-shadow-sm);
}

.of-file-table-wrap,
.of-file-gallery-shell,
.of-folder-address,
.of-folder-actions,
.of-folder-workspace {
    padding: 1rem;
}

.of-file-table {
    margin-bottom: 0;
}

.of-file-table thead th {
    border-bottom-color: rgba(29, 86, 96, 0.14);
    color: var(--of-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.of-file-table tbody tr {
    transition: background-color 0.18s ease;
}

.of-file-table tbody tr:hover {
    background: rgba(29, 86, 96, 0.05);
}

.of-file-table a,
.of-file-list a,
.of-folder-sidebar a,
.of-folder-address a,
.of-rag-step-link {
    text-decoration: none;
}

.of-file-list {
    display: grid;
    gap: 0.8rem;
}

.of-file-list .list-group-item {
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.74);
    padding: 0.9rem 1rem;
}

.of-file-gallery-grid .card,
.of-file-gallery-grid .img-fluid,
.fm-tile {
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
}

.of-file-gallery-grid .card {
    overflow: hidden;
}

.of-file-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--of-radius-md);
    background: rgba(255, 252, 246, 0.82);
    box-shadow: var(--of-shadow-sm);
    flex-wrap: wrap;
}

.fm-tile {
    box-shadow: 0 12px 24px rgba(23, 18, 10, 0.06);
}

.fm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    min-height: 2.6rem;
    border-radius: 0.9rem;
    background: rgba(29, 86, 96, 0.1);
}

.layout-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    min-height: 1.6rem;
    border-radius: 999px;
    background: rgba(29, 86, 96, 0.1);
    color: var(--of-brand-strong);
    font-size: 0.74rem;
    font-weight: 700;
}

.of-rag-page {
    display: grid;
    gap: 1.25rem;
}

.of-rag-hero-grid,
.of-rag-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    gap: 1rem;
}

.of-rag-stage-grid {
    padding: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.of-rag-step-panel {
    display: grid;
    gap: 0.8rem;
}

.of-rag-step-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(29, 86, 96, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--of-ink);
}

.of-rag-step-link.is-active {
    border-color: var(--of-rag);
    background: color-mix(in srgb, var(--of-rag) 10%, white);
    box-shadow: 0 16px 26px rgba(23, 18, 10, 0.08);
}

.of-rag-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(178, 106, 44, 0.12);
    color: var(--of-rag);
    font-size: 0.78rem;
    font-weight: 700;
}

.of-rag-step-name {
    display: block;
    font-weight: 700;
}

.of-rag-step-copy {
    display: block;
    margin-top: 0.2rem;
    color: var(--of-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.of-rag-stat {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.76);
}

.of-rag-stat-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
}

.of-rag-stat-label {
    display: block;
    color: var(--of-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.of-rag-stage-card {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.76);
}

.of-rag-stage-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}

.of-rag-stage-card p {
    margin: 0;
    color: var(--of-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.of-rag-page .card,
.of-rag-page .accordion-item {
    border: 1px solid rgba(29, 86, 96, 0.08);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--of-shadow-sm);
}

.of-rag-page .card-body,
.of-rag-page .accordion-body {
    padding: 1rem;
}

.of-rag-page .list-group-item {
    border-color: rgba(29, 86, 96, 0.08);
}

@media (max-width: 991.98px) {
    :root {
        --of-sticky-offset: 7.25rem;
    }

    .of-header {
        padding-top: 0.8rem;
    }

    .of-navbar {
        border-radius: 1.4rem;
    }

    .of-home-metrics,
    .of-home-grid,
    .of-concept-grid,
    .of-story-grid,
    .of-about-definition-grid,
    .of-about-module-grid,
    .of-workflow-steps,
    .of-preview-timeline,
    .of-auth-shell {
        grid-template-columns: 1fr;
    }

    .of-calendar-toolbar,
    .of-calendar-toolbar-actions {
        justify-items: start;
    }

    .of-calendar-view-switch {
        justify-content: flex-start;
    }

    .of-home-title {
        max-width: none;
    }

    .of-kanban-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .of-kanban-board-shell {
        grid-template-columns: repeat(5, minmax(15rem, 1fr));
    }

    .of-calendar-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .of-footer-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .of-dashboard-shell,
    .of-ops-shell,
    .of-summary-grid,
    .of-hub-layout,
    .of-hub-overview-grid,
    .of-recent-grid,
    .of-mini-grid,
    .of-blink-summary-grid,
    .of-toolbar-grid,
    .of-rag-hero-grid,
    .of-rag-stage-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    :root {
        --of-sticky-offset: 6.75rem;
    }

    .of-main {
        padding-top: 1rem;
    }

    .of-home-hero,
    .of-home-section,
    .of-home-cta,
    .of-about-hero,
    .of-about-section,
    .of-auth-card,
    .of-auth-aside {
        padding: 1.3rem;
        border-radius: 1.6rem;
    }

    .of-home-actions,
    .of-module-pills,
    .of-calendar-nav,
    .of-calendar-legend,
    .of-calendar-view-switch {
        flex-direction: column;
        align-items: stretch;
    }

    .of-home-actions .of-button,
    .of-home-actions .of-quiet-link,
    .of-auth-submit {
        justify-content: center;
        text-align: center;
    }

    /* Footer links stay on one row on mobile */
    .of-footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }
    .of-footer { padding-bottom: 1rem; }
    .of-footer-panel { padding: 0.65rem 1rem; gap: 0.4rem; }

    .of-home-metrics {
        grid-template-columns: 1fr;
    }

    .of-preview-panel {
        padding: 1rem;
    }

    .of-calendar-weekdays,
    .of-calendar-week {
        min-width: 49rem;
    }

    .of-calendar-day {
        min-height: 6.9rem;
    }

    .of-orbit-board {
        min-height: 19rem;
    }

    .of-home-star-1 {
        left: auto;
        right: 20%;
    }

    .of-home-star-2 {
        top: 4rem;
    }

    .of-about-orbit-ring--inner,
    .of-about-orbit-ring--outer {
        right: -18%;
    }

    .of-orbit-center,
    .of-orbit-node {
        padding: 0.75rem 0.85rem;
        font-size: 0.88rem;
    }

    .of-kanban-summary-grid {
        grid-template-columns: 1fr;
    }

    .of-kanban-board-shell {
        grid-template-columns: repeat(5, minmax(13.5rem, 1fr));
    }

    .of-calendar-list-day {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .of-calendar-year-grid {
        grid-template-columns: 1fr;
    }

    .of-calendar-year-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .of-action-row,
    .of-file-pagination,
    .of-blink-list-toolbar,
    .of-blink-header-row,
    .of-blink-entry-head,
    .of-recent-panel-head,
    .of-hub-file-top,
    .of-recent-item-top,
    .of-blink-footer-row,
    .of-ops-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .of-view-switch,
    .of-blink-actions,
    .of-summary-grid,
    .of-hub-layout,
    .of-hub-overview-grid,
    .of-recent-grid,
    .of-blink-summary-grid,
    .of-mini-grid,
    .of-rag-stage-grid {
        width: 100%;
    }

    .of-view-switch {
        justify-content: space-between;
    }

    .of-app-menu-card,
    .of-blink-entry,
    .of-blink-panel,
    .of-blink-hero {
        border-radius: 1.6rem;
    }

    .of-app-menu-header {
        padding: 1rem 1rem 0.85rem;
        align-items: center;
    }

    .of-app-menu-title {
        font-size: 1.15rem;
    }

    .of-app-menu-copy,
    .of-app-detail,
    .of-app-state {
        display: none;
    }

    .of-app-menu-body {
        padding: 0 0.85rem 0.85rem;
    }

    .of-app-menu-links {
        gap: 0.55rem;
    }

    .of-app-link {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.7rem;
        padding: 0.72rem 0.8rem;
        border-radius: 1rem;
    }

    .of-app-icon {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 0.85rem;
    }

    .of-app-name {
        font-size: 0.96rem;
    }

    .of-app-menu-toggle,
    .of-blink-collapse-toggle {
        min-width: 3.2rem;
        min-height: 3.2rem;
        font-size: 1.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .of-home-star,
    .of-about-node,
    .of-about-orbit-ring,
    .of-orbit-board::before,
    .of-orbit-board::after,
    .of-orbit-node,
    .of-concept-card,
    .of-story-card,
    .of-about-definition-card {
        animation: none !important;
    }
}

/* ==========================================================================
   GLOBAL TOP-RIGHT CONTROLS
   Help icon, 9-dot app launcher, compact avatar
   ========================================================================== */

/* Container that holds the three icons in a row */
.of-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Base style for all three icon buttons */
.of-global-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--of-ink);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    padding: 0;
}
.of-global-btn::after {
    display: none !important;
}
.of-global-btn:hover,
.of-global-btn:focus-visible {
    background: rgba(29, 86, 96, 0.1);
    color: var(--of-brand-strong);
    outline: none;
}

/* Avatar inside the button */
.of-avatar-btn .of-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--of-brand), var(--of-brand-strong));
    color: #fffaf2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.03em;
}

/* Help dropdown label */
.of-help-menu .of-dropdown-label {
    font-size: 0.78rem;
}

/* Help button — slightly larger, blue "i" */
.of-help-btn {
    width: 2.8rem;
    height: 2.8rem;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
}

/* ==========================================================================
   9-DOT APP LAUNCHER PANEL
   ========================================================================== */

.of-launcher-wrap {
    position: relative;
}

.of-launcher-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 1080;
    width: fit-content;
    max-width: calc(100vw - 2rem);
    max-height: min(72vh, 480px);
    overflow-y: auto;
    background: var(--of-launcher-panel-bg-override, var(--of-surface-strong));
    border: 1px solid var(--of-line);
    border-radius: var(--of-radius-md);
    box-shadow: var(--of-shadow-lg);
    padding: 1rem;
    animation: ofLauncherIn 0.14s ease;
}

@keyframes ofLauncherIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.of-launcher-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0.5rem;
}

/* Row-based layout (active when admin has set grid positions) */
.of-launcher-grid-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.of-launcher-row { display: flex; flex-wrap: nowrap; gap: 0.5rem; }
.of-launcher-row--left   { justify-content: flex-start; }
.of-launcher-row--center { justify-content: center; }
.of-launcher-row--right  { justify-content: flex-end; }

.of-launcher-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--of-radius-sm);
    border: 1px solid transparent;
    background: var(--of-launcher-card-bg-override, transparent);
    color: var(--of-ink);
    text-decoration: none;
    text-align: center;
    transition: background 0.16s, border-color 0.16s;
    cursor: pointer;
    position: relative;
    min-width: 0;
    width: 5rem;
}
.of-launcher-app:hover,
.of-launcher-app:focus-visible {
    background: rgba(29, 86, 96, 0.07);
    border-color: rgba(29, 86, 96, 0.12);
    color: var(--of-brand-strong);
    outline: none;
    text-decoration: none;
}

.of-launcher-acronym {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--of-brand), var(--of-brand-strong));
    color: #fffaf2;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.16s;
}

.of-launcher-acronym-image-wrap {
    overflow: hidden;
}

.of-launcher-acronym-image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}
.of-launcher-app:hover .of-launcher-acronym {
    transform: scale(1.07);
}

.of-launcher-name {
    font-size: 0.74rem;
    font-weight: 500;
    color: inherit;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* App status banner — shown at top of page when app has a badge set */
.of-status-banner {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
    font-size: .88rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.of-status-banner__icon { font-size: 1rem; flex-shrink: 0; }
.of-status-banner--beta  { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.of-status-banner--dev   { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.of-status-banner--soon  { background: #f8fafc; border-color: #cbd5e1; color: #475569; }

/* App status badges (Beta / In Dev / Coming Soon) */
.of-app-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 1px 5px;
    border-radius: 20px;
    text-transform: uppercase;
    line-height: 1.6;
    pointer-events: none;
}
.of-app-badge--beta { background: #3b82f6; color: #fff; }
.of-app-badge--dev  { background: #f59e0b; color: #fff; }
.of-app-badge--soon { background: #64748b; color: #fff; }

/* ==========================================================================
   SIMPLIFIED HOMEPAGE
   ========================================================================== */

.of-home-simple {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 4rem 1rem 6rem;
}

.of-home-simple-inner {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    width: 100%;
}

.of-home-simple-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--of-ink);
    line-height: 1.05;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.of-home-simple-sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--of-muted);
    margin: 0 0 2.5rem;
    line-height: 1.5;
}
.of-home-ship-hint {
    font-size: .78rem;
    color: var(--of-muted);
    opacity: .65;
    margin: 0;
    padding-top: .25rem;
    letter-spacing: .01em;
}

.of-home-simple-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.of-home-simple-cta {
    font-size: 1.05rem;
    padding: 0.85rem 2.4rem;
    border-radius: 999px;
    min-width: 14rem;
}

.of-home-simple-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--of-muted);
}
.of-home-simple-hint a {
    color: var(--of-brand);
    font-weight: 500;
}
.of-home-simple-helper {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: var(--of-muted);
    text-align: center;
}

.of-home-simple-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.of-home-simple-links a {
    font-size: 0.9rem;
    color: var(--of-muted);
    text-decoration: none;
    transition: color 0.16s;
}
.of-home-simple-links a:hover {
    color: var(--of-brand);
}

/* ==========================================================================
   PUBLIC CONTENT PAGES (Our Philosophy, How It Works, FAQ, Help, Careers)
   ========================================================================== */

.of-public-shell {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem 0 4rem;
    display: grid;
    gap: 0;
}

.of-public-hero {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--of-line);
    margin-bottom: 2rem;
}

.of-public-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--of-line);
}
.of-public-section:last-of-type {
    border-bottom: none;
}

.of-public-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--of-ink);
    margin: 0 0 0.75rem;
}

.of-public-section p,
.of-public-section ol,
.of-public-section ul {
    color: var(--of-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}
.of-public-section p:last-child,
.of-public-section ol:last-child,
.of-public-section ul:last-child {
    margin-bottom: 0;
}

.of-public-section a {
    color: var(--of-brand);
    font-weight: 500;
}

.of-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 2rem;
}

/* FAQ accordion items */
.of-faq-list {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.of-faq-item {
    border: 1px solid var(--of-line);
    border-radius: var(--of-radius-sm);
    background: var(--of-surface-strong);
    padding: 0 1rem;
    overflow: hidden;
}

.of-faq-q {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--of-ink);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}
.of-faq-q::-webkit-details-marker { display: none; }
.of-faq-q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--of-muted);
    transition: transform 0.18s;
}
details[open] .of-faq-q::after {
    content: '\2212';
}

.of-faq-a {
    padding: 0 0 1rem;
    color: var(--of-muted);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES — new global nav + homepage
   ========================================================================== */

/* Homepage: break out of container horizontal padding so it feels full-width */
.of-page-home .of-main {
    padding-top: 0;
    padding-bottom: 0;
}
.of-page-home .of-main > .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.of-page-home .of-page-shell {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}

/* Launcher panel: keep inside viewport on all screens */
.of-launcher-panel {
    right: 0;
    left: auto;
}

/* --- Tablet (≤991px): nav controls still visible above mobile breakpoint --- */
@media (max-width: 991.98px) {
    .of-nav-actions {
        gap: 0.2rem;
    }
    .of-global-btn {
        width: 2.1rem;
        height: 2.1rem;
    }
    .of-launcher-panel {
        width: 18rem;
    }
}

/* --- Mobile (≤767px) --- */
@media (max-width: 767.98px) {
    .of-brand-tag {
        display: none;
    }

    .of-brand-name {
        font-size: 1rem;
    }

    .of-nav-desktop {
        margin-left: 0.45rem;
    }

    .of-nav-actions {
        gap: 0.2rem;
    }

    .of-quiet-link,
    .of-nav-actions .of-button {
        min-height: 2.15rem;
        padding: 0.45rem 0.7rem;
        font-size: 0.82rem;
    }

    /* Launcher panel: fit-content handles width automatically */
    .of-launcher-panel {
        max-height: min(70vh, 31rem);
        overflow-y: auto;
        right: 0;
        left: auto;
        padding: 0.7rem;
    }
    .of-launcher-grid {
        grid-template-columns: repeat(3, auto);
        gap: 0.28rem;
    }
    .of-launcher-row { gap: 0.28rem; }
    .of-launcher-app { width: 4.75rem; }
    .of-launcher-app {
        gap: 0.35rem;
        padding: 0.55rem 0.25rem;
        border-radius: 0.7rem;
    }
    .of-launcher-acronym {
        width: 2rem;
        height: 2rem;
        font-size: 0.64rem;
        border-radius: 0.6rem;
    }
    .of-launcher-name {
        font-size: 0.64rem;
        line-height: 1.2;
    }

    /* Homepage: more vertical breathing room */
    .of-home-simple {
        min-height: 80vh;
        padding: 3rem 1.25rem 5rem;
    }
    .of-home-simple-cta {
        min-width: 0;
        width: 100%;
        max-width: 20rem;
    }
    .of-home-simple-links {
        gap: 1rem;
    }

    /* Public pages: add horizontal padding */
    .of-public-shell {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* --- Small mobile (≤479px) --- */
@media (max-width: 479.98px) {
    .of-home-simple-title {
        font-size: clamp(2.4rem, 13vw, 3.6rem);
    }
    .of-home-simple-sub {
        font-size: 1rem;
    }
    .of-launcher-grid {
        grid-template-columns: repeat(2, auto);
    }
    .of-launcher-panel {
        padding: 0.6rem;
        max-width: calc(100vw - 0.75rem);
    }
    .of-launcher-app {
        width: 4.25rem;
        padding: 0.5rem 0.2rem;
    }
    .of-launcher-row { gap: 0.2rem; }
    .of-launcher-acronym {
        width: 1.8rem;
        height: 1.8rem;
    }
    .of-launcher-name {
        font-size: 0.6rem;
    }
}

/* ================================================================
   FILE MANAGEMENT — Phase 2 (of-fm-* design system, polished)
   Google Drive–style two-pane layout, fully responsive
   ================================================================ */

/* ── Tokens (scoped to FM) ────────────────────────────────────── */
.of-fm-page {
    --fm-bg:        #f6f8fb;
    --fm-surface:   #ffffff;
    --fm-line:      #e5e8ed;
    --fm-line-soft: #eef1f5;
    --fm-ink:       #1f2937;
    --fm-ink-soft:  #4b5563;
    --fm-muted:     #6b7280;
    --fm-muted-2:   #9ca3af;
    --fm-brand:     var(--of-files, #4265a8);
    --fm-brand-2:   #3557a0;
    --fm-brand-50:  #eaf0fb;
    --fm-brand-100: #d8e3f7;
    --fm-danger:    #dc2626;
    --fm-danger-50: #fef2f2;
    --fm-success:   #15803d;
    --fm-radius:    10px;
    --fm-radius-sm: 6px;
    --fm-radius-lg: 14px;
    --fm-shadow-1:  0 1px 2px rgba(15, 23, 42, .05);
    --fm-shadow-2:  0 6px 18px rgba(15, 23, 42, .08);
    --fm-shadow-3:  0 12px 28px rgba(15, 23, 42, .12);
    --fm-sidebar-w: 248px;
    --fm-topbar-h:  56px;

    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    background: var(--fm-bg);
    color: var(--fm-ink);
    font-feature-settings: "ss01", "cv11";
}

/* ── Top bar ──────────────────────────────────────────────────── */
.of-fm-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: var(--fm-topbar-h);
    padding: 0 1.25rem;
    background: var(--fm-surface);
    border-bottom: 1px solid var(--fm-line);
    box-shadow: var(--fm-shadow-1);
    flex-shrink: 0;
}
.of-fm-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.of-fm-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}
.of-fm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--fm-muted);
    text-decoration: none;
    padding: 0.32rem 0.6rem;
    border-radius: var(--fm-radius-sm);
    transition: background 0.15s, color 0.15s;
}
.of-fm-back-link:hover { background: var(--fm-brand-50); color: var(--fm-brand); }
.of-fm-topbar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fm-ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.of-fm-topbar-icon { font-size: 1.15rem; }
.of-fm-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius-sm);
    color: var(--fm-ink-soft);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.of-fm-sidebar-toggle:hover { background: var(--fm-brand-50); border-color: var(--fm-brand-100); color: var(--fm-brand); }

/* ── 2-pane shell ─────────────────────────────────────────────── */
.of-fm-shell {
    display: grid;
    grid-template-columns: var(--fm-sidebar-w) 1fr;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.of-fm-sidebar {
    background: var(--fm-surface);
    border-right: 1px solid var(--fm-line);
    padding: 0.75rem 0.5rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: sticky;
    top: var(--fm-topbar-h);
    height: calc(100vh - 60px - var(--fm-topbar-h));
    scrollbar-width: thin;
    scrollbar-color: #cdd2da transparent;
}
.of-fm-sidebar::-webkit-scrollbar { width: 6px; }
.of-fm-sidebar::-webkit-scrollbar-thumb { background: #cdd2da; border-radius: 3px; }

.of-fm-sidebar-section {
    padding: 0.4rem 0.25rem 0.6rem;
    border-bottom: 1px solid var(--fm-line-soft);
}
.of-fm-sidebar-section:last-child { border-bottom: none; }
.of-fm-sidebar-heading {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-muted-2);
    padding: 0.2rem 0.6rem 0.5rem;
}

/* Drive row = drive link + settings gear, side by side */
.of-fm-drive-row {
    display: flex;
    align-items: stretch;
    gap: 2px;
    border-radius: var(--fm-radius-sm);
    transition: background 0.15s;
}
.of-fm-drive-row:hover { background: var(--fm-brand-50); }
.of-fm-drive-row.is-active { background: var(--fm-brand-50); }

.of-fm-drive-item,
.of-fm-folder-item,
.of-fm-nav-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.86rem;
    color: var(--fm-ink-soft);
    text-decoration: none;
    border-radius: var(--fm-radius-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.of-fm-drive-item { flex: 1; min-width: 0; }
.of-fm-drive-item:hover,
.of-fm-folder-item:hover,
.of-fm-nav-item:hover { background: var(--fm-brand-50); color: var(--fm-ink); }
.of-fm-drive-item.is-active,
.of-fm-folder-item.is-active,
.of-fm-nav-item.is-active {
    background: var(--fm-brand-100);
    color: var(--fm-brand-2);
    font-weight: 600;
}
.of-fm-drive-row.is-active .of-fm-drive-item { background: transparent; }
.of-fm-drive-icon { font-size: 1.05rem; flex-shrink: 0; line-height: 1; }
.of-fm-drive-name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.of-fm-drive-badge { font-size: 0.78rem; margin-left: auto; opacity: 0.85; }

.of-fm-drive-settings-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    flex-shrink: 0;
    color: var(--fm-muted-2);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: var(--fm-radius-sm);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.of-fm-drive-row:hover .of-fm-drive-settings-link,
.of-fm-drive-row:focus-within .of-fm-drive-settings-link { opacity: 1; }
.of-fm-drive-settings-link:hover { color: var(--fm-brand); background: rgba(255,255,255,.7); }

.of-fm-sidebar-newlink {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fm-brand);
    text-decoration: none;
    border-radius: var(--fm-radius-sm);
    transition: background 0.15s;
}
.of-fm-sidebar-newlink:hover { background: var(--fm-brand-50); }
.of-fm-sidebar-empty { padding: 0.4rem 0.65rem; font-size: 0.78rem; color: var(--fm-muted-2); }
.of-fm-help-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--fm-muted-2, #b0b6bf);
    color: var(--fm-muted-2, #6c757d);
    background: transparent;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    cursor: help;
    flex-shrink: 0;
}
.of-fm-help-pill:hover { background: var(--fm-brand-50, #eef2ff); color: var(--fm-brand, #4338ca); border-color: var(--fm-brand, #4338ca); }

/* Windows-Explorer-style expandable drive tree (Reports #82+#83) */
.of-fm-drive-tree { margin: 0; }
.of-fm-drive-tree > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
}
.of-fm-drive-tree > summary::-webkit-details-marker { display: none; }
.of-fm-drive-caret {
    display: inline-block;
    width: 14px;
    text-align: center;
    color: var(--fm-muted-2, #6c757d);
    font-size: 11px;
    transition: transform 0.12s ease;
    flex-shrink: 0;
    user-select: none;
}
.of-fm-drive-tree[open] > summary > .of-fm-drive-caret { transform: rotate(90deg); }
.of-fm-drive-tree-body { padding: 0.1rem 0 0.2rem 0; }
.of-fm-folder-item-driveroot {
    font-weight: 600;
    padding-left: 1.5rem;
}
.of-fm-folder-item-protected { color: var(--fm-muted, #495057); }
.of-fm-recycle-toplevel {
    margin-top: 0.35rem;
    padding: 0.4rem 0.55rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.of-fm-recycle-toplevel.is-active {
    background: rgba(13,110,253,0.08);
    border-radius: 4px;
}
.of-fm-protected-mark {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 2px;
}
/* Protected (system) folder cards on the main panel (Report #88) */
.of-fm-folder-card-protected {
    position: relative;
    background: linear-gradient(180deg, rgba(13,110,253,0.04), rgba(13,110,253,0.0));
    border: 1px dashed rgba(13,110,253,0.35) !important;
}
.of-fm-folder-card-protected .of-fm-folder-card-icon { filter: hue-rotate(0deg) saturate(1.1); }
.of-fm-folder-card-info {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(13,110,253,0.45);
    color: #0d6efd;
    font-size: 12px;
    cursor: help;
    z-index: 2;
}
.of-fm-folder-card-info:hover { background: #0d6efd; color: #fff; }

/* ── Main content ─────────────────────────────────────────────── */
.of-fm-main {
    padding: 1.25rem 1.5rem 2rem;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.of-fm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
    padding: 0.5rem 0.85rem;
    background: var(--fm-surface);
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-1);
}
.of-fm-breadcrumb-item {
    color: var(--fm-brand);
    text-decoration: none;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: background 0.15s;
}
.of-fm-breadcrumb-item:hover { background: var(--fm-brand-50); text-decoration: none; }
.of-fm-breadcrumb-sep { color: var(--fm-muted-2); user-select: none; }

/* ── Section header ───────────────────────────────────────────── */
.of-fm-section-header { padding: 0.25rem 0 0.1rem; }
.of-fm-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fm-ink);
    margin: 0;
    letter-spacing: -0.015em;
}
.of-fm-section-sub {
    font-size: 0.88rem;
    color: var(--fm-muted);
    margin: 0.25rem 0 0;
}

/* ── Toolbar ──────────────────────────────────────────────────── */
.of-fm-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.4rem 0;
}
.of-fm-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--fm-surface);
    border: 1px solid var(--fm-line);
    border-radius: 999px;
    padding: 0 0.25rem 0 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    flex: 1 1 240px;
    min-width: 0;
    max-width: 360px;
}
.of-fm-search-form:focus-within { border-color: var(--fm-brand); box-shadow: 0 0 0 3px var(--fm-brand-50); }
.of-fm-search-input {
    border: none;
    background: transparent;
    padding: 0.45rem 0.4rem;
    font-size: 0.86rem;
    outline: none;
    flex: 1;
    min-width: 0;
    color: var(--fm-ink);
}
.of-fm-search-input::placeholder { color: var(--fm-muted-2); }
.of-fm-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    color: var(--fm-muted);
    transition: background 0.15s;
}
.of-fm-search-btn:hover { background: var(--fm-brand-50); color: var(--fm-brand); }

/* ── Buttons ──────────────────────────────────────────────────── */
.of-fm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.83rem;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--fm-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
    white-space: nowrap;
}
.of-fm-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--fm-brand-50); }
.of-fm-btn:active { transform: translateY(1px); }
.of-fm-btn-primary {
    background: var(--fm-brand);
    color: #fff;
    border-color: var(--fm-brand);
    box-shadow: var(--fm-shadow-1);
}
.of-fm-btn-primary:hover { background: var(--fm-brand-2); border-color: var(--fm-brand-2); color: #fff; }
.of-fm-btn-secondary {
    background: var(--fm-surface);
    color: var(--fm-ink-soft);
    border-color: var(--fm-line);
}
.of-fm-btn-secondary:hover { background: var(--fm-brand-50); border-color: var(--fm-brand-100); color: var(--fm-brand); }
.of-fm-btn-ghost {
    background: transparent;
    color: var(--fm-ink-soft);
    border-color: transparent;
}
.of-fm-btn-ghost:hover { background: var(--fm-brand-50); color: var(--fm-brand); }
.of-fm-btn-ghost-danger {
    background: transparent;
    color: var(--fm-danger);
    border-color: transparent;
}
.of-fm-btn-ghost-danger:hover { background: var(--fm-danger-50); }
.of-fm-btn-danger {
    background: var(--fm-danger);
    color: #fff;
    border-color: var(--fm-danger);
}
.of-fm-btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.of-fm-btn-xs {
    padding: 0.22rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid var(--fm-line);
    background: var(--fm-surface);
    color: var(--fm-ink-soft);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.of-fm-btn-xs:hover { background: var(--fm-brand-50); border-color: var(--fm-brand-100); color: var(--fm-brand); }
.of-fm-btn-xs.is-active { background: var(--fm-brand); color: #fff; border-color: var(--fm-brand); }
.of-fm-btn-xs.of-fm-btn-danger { color: #fff; background: var(--fm-danger); border-color: var(--fm-danger); }
.of-fm-btn-xs.of-fm-btn-danger:hover { background: #b91c1c; }

/* ── Drive cards (home view) ──────────────────────────────────── */
.of-fm-drive-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 0.25rem;
}
.of-fm-drive-card-wrap {
    position: relative;
    display: flex;
    background: var(--fm-surface);
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius-lg);
    box-shadow: var(--fm-shadow-1);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.of-fm-drive-card-wrap:hover {
    transform: translateY(-2px);
    box-shadow: var(--fm-shadow-2);
    border-color: var(--fm-brand-100);
}
.of-fm-drive-card-wrap::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--fm-brand);
    opacity: 0.85;
}
.of-fm-drive-card-wrap:has(.of-fm-drive-card[href*="drive="]) { /* default styled */ }
.of-fm-drive-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1rem 1.1rem 1.25rem;
    text-decoration: none;
    color: var(--fm-ink);
    min-width: 0;
}
.of-fm-drive-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--fm-brand-50);
    border-radius: 10px;
}
.of-fm-drive-card-body { min-width: 0; flex: 1; }
.of-fm-drive-card-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--fm-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.of-fm-drive-card-meta {
    font-size: 0.78rem;
    color: var(--fm-muted);
    margin-top: 0.2rem;
}
.of-fm-drive-card-desc {
    font-size: 0.78rem;
    color: var(--fm-muted-2);
    margin-top: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.of-fm-drive-card-settings {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--fm-line);
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--fm-muted);
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.of-fm-drive-card-wrap:hover .of-fm-drive-card-settings,
.of-fm-drive-card-wrap:focus-within .of-fm-drive-card-settings { opacity: 1; }
.of-fm-drive-card-settings:hover { background: var(--fm-brand-50); color: var(--fm-brand); border-color: var(--fm-brand-100); }

/* ── Recycle Bin chip on each drive card ──────────────────────── */
.of-fm-drive-card-recycle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--fm-line);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--fm-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
a.of-fm-drive-card-recycle:hover {
    background: #fff5f5;
    color: #b02a37;
    border-color: #f1c0c0;
}

/* ── File Management top search bar ───────────────────────────── */
.of-fm-search-bar { max-width: 800px; }
.of-fm-search-bar .input-group-text { background: #fff; }

/* ── Sidebar nav badge (Recycle Bin count) ────────────────────── */
.of-fm-nav-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.4rem;
    background: #b02a37;
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
}

/* ── Folder grid ──────────────────────────────────────────────── */
.of-fm-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
}
.of-fm-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1.1rem 0.6rem 0.85rem;
    background: var(--fm-surface);
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius);
    text-decoration: none;
    color: var(--fm-ink);
    text-align: center;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.of-fm-folder-card:hover {
    box-shadow: var(--fm-shadow-2);
    border-color: var(--fm-brand-100);
    transform: translateY(-1px);
}
.of-fm-folder-card-icon { font-size: 2.1rem; line-height: 1; }
.of-fm-folder-card-name {
    font-size: 0.83rem;
    font-weight: 600;
    word-break: break-word;
    color: var(--fm-ink);
}
.of-fm-folder-card-meta { font-size: 0.72rem; color: var(--fm-muted-2); }

/* ── Subfolder chips ──────────────────────────────────────────── */
.of-fm-subfolder-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.25rem 0 0.5rem;
}
.of-fm-subfolder-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--fm-surface);
    border: 1px solid var(--fm-line);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    transition: border-color 0.15s, background 0.15s;
}
.of-fm-subfolder-chip:hover { border-color: var(--fm-brand-100); background: var(--fm-brand-50); }
.of-fm-subfolder-link { text-decoration: none; color: var(--fm-ink-soft); }
.of-fm-subfolder-link:hover { color: var(--fm-brand); }

/* ── File grid (icon view) ────────────────────────────────────── */
.of-fm-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0.85rem;
}
.of-fm-file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0.6rem 0.7rem;
    background: var(--fm-surface);
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius);
    position: relative;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.of-fm-file-card:hover { box-shadow: var(--fm-shadow-2); border-color: var(--fm-brand-100); }
.of-fm-file-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--fm-bg);
    border: 1px solid var(--fm-line-soft);
    text-decoration: none;
}
.of-fm-thumb-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.of-fm-file-icon { font-size: 2rem; }
.of-fm-file-info { text-align: center; width: 100%; min-width: 0; }
.of-fm-file-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fm-ink);
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}
.of-fm-file-size { font-size: 0.7rem; color: var(--fm-muted-2); margin-top: 0.15rem; }
.of-fm-file-actions {
    display: none;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.of-fm-file-card:hover .of-fm-file-actions,
.of-fm-file-card:focus-within .of-fm-file-actions { display: flex; }
.of-fm-check-file {
    position: absolute;
    top: 8px;
    left: 8px;
    display: none;
    width: 18px;
    height: 18px;
    accent-color: var(--fm-brand);
    cursor: pointer;
}
.fm-selection-mode .of-fm-check-file,
.fm-selection-mode .of-fm-check { display: inline-block !important; }

/* ── Gallery ──────────────────────────────────────────────────── */
.of-fm-gallery-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
}
.of-fm-gallery-modes { display: flex; gap: 0.3rem; }
.of-fm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}
.of-fm-gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--fm-radius);
    display: block;
    border: 1px solid var(--fm-line-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}
.of-fm-gallery-img:hover { transform: scale(1.02); box-shadow: var(--fm-shadow-2); }

/* ── Details table ────────────────────────────────────────────── */
.of-fm-details-table {
    background: var(--fm-surface);
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius);
    overflow: hidden;
}
.of-fm-details-table th {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fm-muted);
    background: var(--fm-bg);
    border-bottom: 1px solid var(--fm-line);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.6rem 0.75rem;
}
.of-fm-details-table td {
    font-size: 0.86rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--fm-line-soft);
}
.of-fm-details-table tr:last-child td { border-bottom: none; }
.of-fm-details-table tr:hover td { background: var(--fm-brand-50); }

/* ── Actions bar ──────────────────────────────────────────────── */
.of-fm-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.55rem 0.75rem;
    background: var(--fm-surface);
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-1);
}
.of-fm-actions-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* ── View toggle ──────────────────────────────────────────────── */
.of-fm-view-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--fm-bg);
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius-sm);
    padding: 2px;
    gap: 2px;
}
.of-fm-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--fm-ink-soft);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.of-fm-view-btn:hover { background: var(--fm-surface); color: var(--fm-brand); }
.of-fm-view-btn.is-active { background: var(--fm-brand); color: #fff; }

/* ── Pagination ───────────────────────────────────────────────── */
.of-fm-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.of-fm-page-info { font-size: 0.82rem; color: var(--fm-muted); }
.of-fm-empty-msg {
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--fm-muted);
    background: var(--fm-surface);
    border: 1px dashed var(--fm-line);
    border-radius: var(--fm-radius);
    grid-column: 1 / -1;
}

/* ── Responsive: tablet ───────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .of-fm-page { --fm-sidebar-w: 220px; }
    .of-fm-main { padding: 1rem 1.1rem 1.5rem; }
}

/* ── Responsive: small tablet ─────────────────────────────────── */
@media (max-width: 991.98px) {
    .of-fm-page { --fm-sidebar-w: 200px; }
    .of-fm-section-title { font-size: 1.2rem; }
}

/* ── Responsive: mobile (drawer sidebar) ──────────────────────── */
@media (max-width: 767.98px) {
    .of-fm-page { --fm-topbar-h: 52px; }
    .of-fm-topbar { padding: 0 0.75rem; gap: 0.4rem; }
    .of-fm-topbar-text { display: none; }
    .of-fm-sidebar-toggle { display: inline-flex; }
    .of-fm-back-link { padding: 0.32rem 0.45rem; }

    .of-fm-shell { grid-template-columns: 1fr; }

    .of-fm-sidebar {
        position: fixed;
        top: var(--fm-topbar-h);
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        height: auto;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--fm-shadow-3);
        border-right: 1px solid var(--fm-line);
    }
    .of-fm-sidebar.is-open { transform: translateX(0); }

    body.of-fm-sidebar-open::after {
        content: "";
        position: fixed;
        top: var(--fm-topbar-h);
        left: 0; right: 0; bottom: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 35;
    }

    .of-fm-main { padding: 0.85rem 0.85rem 1.5rem; gap: 0.75rem; }
    .of-fm-section-title { font-size: 1.1rem; }
    .of-fm-section-sub { font-size: 0.8rem; }
    .of-fm-search-form { max-width: none; flex: 1 1 100%; }

    .of-fm-drive-cards { grid-template-columns: 1fr; gap: 0.75rem; }
    .of-fm-folder-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; }
    .of-fm-file-grid   { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
    .of-fm-gallery-grid{ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .of-fm-gallery-img { height: 140px; }

    .of-fm-folder-card { padding: 0.85rem 0.4rem 0.7rem; }
    .of-fm-file-card   { padding: 0.7rem 0.45rem 0.6rem; }
    .of-fm-file-thumb, .of-fm-thumb-img { width: 60px; height: 60px; }

    /* On mobile, settings gear always visible (no hover state) */
    .of-fm-drive-card-settings,
    .of-fm-drive-settings-link { opacity: 1; }
    .of-fm-file-actions { display: flex; }

    .of-fm-breadcrumb { padding: 0.45rem 0.6rem; font-size: 0.8rem; }
    .of-fm-actions-bar { padding: 0.5rem 0.55rem; }
}

/* ── Responsive: very small phones ────────────────────────────── */
@media (max-width: 419.98px) {
    .of-fm-back-link { display: none; }
    .of-fm-topbar-icon { font-size: 1.05rem; }
    .of-fm-folder-grid { grid-template-columns: repeat(2, 1fr); }
    .of-fm-file-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ── Print ────────────────────────────────────────────────────── */
@media print {
    .of-fm-topbar, .of-fm-sidebar, .of-fm-actions-bar, .of-fm-toolbar,
    .of-fm-file-actions, .of-fm-drive-card-settings, .of-fm-drive-settings-link { display: none !important; }
    .of-fm-shell { grid-template-columns: 1fr; }
    .of-fm-main { padding: 0; }
}

/* ── Storage usage strip (drives section) ────────────────────── */
.of-fm-storage-strip {
    background: var(--fm-surface, #fff);
    border: 1px solid var(--fm-border, #e7e9ec);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin: 0.25rem 0 1rem;
}
.of-fm-storage-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}
.of-fm-storage-meta strong { font-size: 0.92rem; color: var(--fm-fg, #1f2330); }

/* ── Toolbar chips (Linked Files filters) ────────────────────── */
.of-fm-toolbar-chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}
.of-fm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    border-radius: 999px;
    border: 1px solid var(--fm-border, #e1e4e9);
    background: #fff;
    color: var(--fm-fg, #2b2f3a);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.of-fm-chip:hover { background: #f6f7f9; }
.of-fm-chip.is-active {
    background: var(--fm-accent, #2563eb);
    border-color: var(--fm-accent, #2563eb);
    color: #fff;
}
.of-fm-chip.is-active .text-muted { color: rgba(255, 255, 255, 0.85) !important; }

/* ================================================================
   ADMIN MANUAL — staff-only manual blocks (of-am-*)
   ================================================================ */
.of-am-block {
    margin: 2rem 0 1rem;
    padding: 1rem 1.1rem 0.85rem;
    background: linear-gradient(180deg, #fffaf2 0%, #fff7eb 100%);
    border: 1px dashed #d8a866;
    border-left: 4px solid #b56a16;
    border-radius: 12px;
    color: #3d2c14;
    box-shadow: 0 1px 3px rgba(120, 80, 20, 0.08);
}
.of-am-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.of-am-block-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    min-width: 0;
}
.of-am-block-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: #b56a16;
    color: #fff;
    border-radius: 999px;
    text-transform: uppercase;
}
.of-am-block-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #3d2c14;
    letter-spacing: -0.01em;
}
.of-am-block-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.of-am-block-key {
    font-size: 0.72rem;
    background: rgba(181, 106, 22, 0.1);
    color: #6b3e0a;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.of-am-block-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    background: #b56a16;
    color: #fff;
    border: 1px solid #b56a16;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.of-am-block-btn:hover { background: #8f5310; color: #fff; }
.of-am-block-btn-ghost {
    background: transparent;
    color: #6b3e0a;
    border-color: rgba(181, 106, 22, 0.4);
}
.of-am-block-btn-ghost:hover { background: rgba(181, 106, 22, 0.12); color: #3d2c14; }
.of-am-block-body {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #3d2c14;
}
.of-am-block-body :first-child { margin-top: 0; }
.of-am-block-body :last-child { margin-bottom: 0; }
.of-am-block-body h1, .of-am-block-body h2, .of-am-block-body h3, .of-am-block-body h4 {
    color: #3d2c14;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}
.of-am-block-body h2 { font-size: 1rem; font-weight: 700; }
.of-am-block-body h3 { font-size: 0.92rem; font-weight: 700; }
.of-am-block-body code {
    background: rgba(181, 106, 22, 0.1);
    color: #6b3e0a;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    font-size: 0.82em;
}
.of-am-block-body pre {
    background: #2b2014;
    color: #f3e8d4;
    padding: 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.78rem;
}
.of-am-block-body pre code { background: transparent; color: inherit; padding: 0; }
.of-am-block-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    font-size: 0.82rem;
}
.of-am-block-body th, .of-am-block-body td {
    border: 1px solid rgba(181, 106, 22, 0.25);
    padding: 0.4rem 0.55rem;
    text-align: left;
}
.of-am-block-body th { background: rgba(181, 106, 22, 0.08); font-weight: 600; }
.of-am-block-body ul, .of-am-block-body ol { padding-left: 1.4rem; }
.of-am-empty { color: #8a6a3a; margin: 0; }
.of-am-block-foot {
    margin-top: 0.7rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(181, 106, 22, 0.3);
    font-size: 0.72rem;
    color: #8a6a3a;
}
@media (max-width: 575.98px) {
    .of-am-block { padding: 0.8rem 0.85rem; margin: 1.5rem 0 0.75rem; }
    .of-am-block-title { font-size: 0.95rem; }
}
@media print {
    .of-am-block { display: none !important; }
}

/* Admin-only quick-access cluster in the top navbar (manual toggle, issue reports, �). */
.of-admin-quick {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    padding-right: 8px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.of-admin-quick form { margin: 0; }
.of-admin-quick-btn { position: relative; }
/* Left-side variant: sits next to the brand, divider on the RIGHT instead of the right edge. */
.of-admin-quick.of-admin-quick-left {
    margin-right: 0;
    margin-left: 8px;
    padding-right: 8px;
    padding-left: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.of-admin-quick-btn.is-on {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.10);
    border-radius: 8px;
}
.of-admin-quick-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #198754;
    box-shadow: 0 0 0 2px var(--of-top-navbar-bg-override, #fffbf4);
}

