/* Olive Hue Financial App — Editorial Mediterranean refinement */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500&family=Inter+Tight:wght@400;450;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
    /* Palette — sharpened olive + warm bone */
    --ink:          #1B1A17;
    --ink-2:        #2C2A26;
    --ink-3:        #56524B;
    --ink-4:        #8A8478;
    --ink-5:        #B7B0A2;

    --bone:         #F7F3EC;
    --bone-2:       #F1ECE2;
    --bone-3:       #E9E3D6;
    --paper:        #FBF8F2;
    --canvas:       #F4EFE6;

    --olive:        #5C6B4A;
    --olive-deep:   #3F4A33;
    --olive-soft:   #E4E5D3;
    --olive-mist:   #EEEFE0;

    --terracotta:   #B5613A;
    --terracotta-soft: #F1DCCB;

    /* Legacy aliases — preserved so existing templates keep working */
    --taupe:        #8A8478;
    --taupe-light:  #C8C0AE;
    --taupe-dark:   #56524B;
    --olive-dark:   var(--olive-deep);
    --olive-light:  var(--olive-mist);
    --cream:        var(--paper);
    --white:        #FFFFFF;
    --text:         var(--ink);
    --text-light:   var(--ink-3);
    --text-muted:   var(--ink-4);
    --border:       #E2DCCD;
    --border-light: #EFEADC;
    --hairline:     rgba(27, 26, 23, 0.08);

    --success:      #4A6B45;
    --warning:      #B58231;
    --danger:       #A44339;
    --info:         #3B5C7A;

    --sidebar-width: 296px;

    /* Tighter, more refined radii — no puffy shapes */
    --radius-xs:    4px;
    --radius:       8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-pill:  999px;

    /* Quiet shadows — subtle depth, never theatrical */
    --shadow-xs: 0 1px 0 rgba(27, 26, 23, 0.02), 0 1px 2px rgba(27, 26, 23, 0.04);
    --shadow-sm: 0 1px 2px rgba(27, 26, 23, 0.04), 0 2px 6px rgba(27, 26, 23, 0.04);
    --shadow-md: 0 4px 14px rgba(27, 26, 23, 0.06), 0 1px 3px rgba(27, 26, 23, 0.04);
    --shadow-lg: 0 18px 40px rgba(27, 26, 23, 0.08), 0 4px 12px rgba(27, 26, 23, 0.04);

    --transition: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition-slow: 420ms cubic-bezier(0.22, 0.61, 0.36, 1);

    /* Typography — Fraunces (display serif) + Inter Tight (UI) + JetBrains Mono (figures) */
    --font-display: "Fraunces", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body:    "Inter Tight", "Inter", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
    --font-mono:    "JetBrains Mono", "SF Mono", ui-monospace, "Menlo", monospace;

    /* CRM aliases preserved */
    --crm-heading:  var(--font-display);
    --crm-body:     var(--font-body);
}

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

html { -webkit-text-size-adjust: 100%; font-size: 22px; }

body {
    font-family: var(--font-body);
    font-feature-settings: "ss01", "cv11", "calt";
    font-size: 20px;
    line-height: 1.55;
    background: var(--canvas);
    color: var(--ink);
    display: flex;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Display typography — refined, optical-size aware */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.022em;
    line-height: 1.08;
    font-variation-settings: "opsz" 96;
}

h1 { font-size: 3rem; font-weight: 400; }
h2 { font-size: 1.45rem; font-weight: 500; line-height: 1.18; }
h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }

p { line-height: 1.6; }

/* Tabular figures everywhere finance numbers live */
.stat-value,
.yearly-metric-value,
.col-amount,
.data-table .col-amount,
td.col-amount,
.workspace-switch-metrics strong,
.metric-row strong:last-child {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum", "ss01";
}

.skip-link {
    left: 16px;
    opacity: 0;
    padding: 10px 14px;
    position: fixed;
    text-decoration: none;
    top: 14px;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 1200;
}

.skip-link:focus {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    color: var(--text);
    opacity: 1;
    transform: translateY(0);
}

body.workspace-hub-shell {
    background:
        radial-gradient(ellipse 80% 60% at 12% -10%, rgba(92, 107, 74, 0.08), transparent 60%),
        radial-gradient(ellipse 70% 50% at 105% 0%, rgba(181, 97, 58, 0.05), transparent 60%),
        linear-gradient(180deg, #F7F3EC 0%, #F4EFE6 100%);
}

body.workspace-hub-shell .content {
    max-width: none;
}

body.site-shell {
    --olive: #485843;
    --olive-deep: #2C3826;
    --olive-soft: #E0E2D0;
    --olive-mist: #ECEFE3;
    --paper: #FBF8F2;
    --canvas: #F4EFE6;
    --bone: #F7F3EC;
    --bone-2: #F1ECE2;
    --bone-3: #E9E3D6;
    --olive-dark: var(--olive-deep);
    --olive-light: var(--olive-mist);
    --cream: var(--paper);
    --white: #FFFFFF;
    --text: var(--ink);
    --text-light: var(--ink-3);
    --text-muted: var(--ink-4);
    --border: #E2DCCD;
    --border-light: #EFEADC;
    --taupe: #B5A793;
    --taupe-dark: #8A7E6A;
    --taupe-light: #D6CCB8;
    background:
        radial-gradient(ellipse 70% 50% at 8% -8%, rgba(72, 88, 67, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 40% at 102% 0%, rgba(181, 97, 58, 0.04), transparent 55%),
        linear-gradient(180deg, #F7F3EC 0%, #F4EFE6 60%, #F9F5EC 100%);
    font-family: var(--font-body);
}

body.site-shell .content {
    max-width: none;
}

/* Display fonts cascade naturally everywhere via the global h1/h2/h3 rules */
body.site-shell .page-eyebrow,
body.site-shell .stat-value {
    font-family: var(--font-display);
    font-feature-settings: "ss01", "tnum";
}

.mobile-nav {
    display: none;
}

/* ────────────────────────────────────── Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--paper);
    border-right: 1px solid var(--hairline);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(27, 26, 23, 0.08); border-radius: 999px; }

.sidebar-logo {
    padding: 28px 24px 22px;
    border-bottom: 1px solid var(--hairline);
    color: inherit;
    display: block;
    text-decoration: none;
}

.logo-olive {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: var(--ink);
    text-transform: uppercase;
}

.logo-hue {
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
    color: var(--olive);
    margin-left: 4px;
    letter-spacing: -0.02em;
    line-height: 0.9;
    vertical-align: -2px;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-top: 10px;
}

.nav-links {
    list-style: none;
    padding: 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.workspace-rail {
    display: flex;
    gap: 4px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--hairline);
}

.workspace-rail a {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: var(--ink-3);
    display: inline-flex;
    flex: 1;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    text-decoration: none;
    transition: all var(--transition);
}

.workspace-rail a:hover {
    color: var(--ink);
    background: var(--bone-2);
}

.workspace-rail a.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    color: var(--ink-3);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.nav-links li a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--olive);
    border-radius: 999px;
    transform: translateY(-50%);
    transition: height var(--transition);
}

.nav-links li a:hover {
    background: var(--bone-2);
    color: var(--ink);
}

.nav-links li a.active {
    background: var(--bone-3);
    color: var(--ink);
    font-weight: 600;
}

.nav-links li a.active::before {
    height: 18px;
}

.nav-links li a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.55;
    stroke-width: 1.6;
    transition: opacity var(--transition);
}

.nav-links li a.active svg,
.nav-links li a:hover svg {
    opacity: 1;
}

.nav-divider {
    height: 1px;
    background: var(--hairline);
    margin: 12px 14px;
}

.nav-secondary a {
    color: var(--ink-4) !important;
    font-size: 12px !important;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--terracotta);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    line-height: 1;
    letter-spacing: 0.02em;
}

/* ────────────────────────────────────── Main Content */
.content {
    margin-left: var(--sidebar-width);
    padding: 36px 44px 56px;
    flex: 1;
    max-width: none;
    min-height: 100vh;
    animation: pageEnter var(--transition-slow) cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.workspace-switcher {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 22px;
    padding: 4px;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    width: fit-content;
}

.workspace-switcher a {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: var(--ink-3);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    gap: 6px;
    min-height: 32px;
    padding: 0 14px;
    text-decoration: none;
    transition: all var(--transition);
}

.workspace-switcher a:hover {
    color: var(--ink);
}

.workspace-switcher a.active {
    background: var(--ink);
    color: var(--paper);
}

.project-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    overflow: visible;
    padding-bottom: 6px;
}

.project-nav a {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    color: var(--ink-3);
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.005em;
    padding: 8px 14px;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.project-nav a:hover {
    color: var(--ink);
    border-color: rgba(27, 26, 23, 0.18);
}

.project-nav a.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.project-nav-more {
    position: relative;
}

.project-nav-more > summary {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    color: var(--ink-3);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    list-style: none;
    padding: 8px 14px;
    transition: all var(--transition);
}

.project-nav-more > summary::-webkit-details-marker {
    display: none;
}

.project-nav-more[open] > summary,
.project-nav-more.is-active > summary {
    background: var(--olive-light);
    border-color: rgba(122, 139, 111, 0.35);
    color: var(--olive-dark);
}

.project-nav-menu {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 6px;
    margin-top: 8px;
    min-width: 180px;
    padding: 10px;
    position: absolute;
    right: 0;
    z-index: 30;
}

.project-nav-menu a {
    border-radius: 12px;
    color: var(--text);
    padding: 10px 12px;
    text-decoration: none;
}

.project-nav-menu a:hover {
    background: var(--cream);
}

.workspace-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 24px;
}

.workspace-link-card {
    color: inherit;
    display: block;
    text-decoration: none;
}

.quick-links-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.workspace-command-center {
    display: grid;
    gap: 24px;
}

.command-actions {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.command-action-card {
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 138px;
    padding: 22px;
    text-align: left;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.command-action-card:hover {
    border-color: rgba(27, 26, 23, 0.20);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.command-action-card strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.018em;
    color: var(--ink);
    line-height: 1.25;
}

.command-action-card span {
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.55;
    margin-top: 2px;
}

.command-action-card-review {
    background:
        linear-gradient(145deg, rgba(181, 97, 58, 0.06), transparent 60%),
        var(--paper);
    border-color: rgba(181, 97, 58, 0.18);
}

.command-panel-shell {
    margin-top: 16px;
}

.quiet-panel {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.quiet-panel > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: var(--ink);
    justify-content: space-between;
    list-style: none;
    padding: 18px 22px;
}

.quiet-panel > summary::-webkit-details-marker {
    display: none;
}

.quiet-panel > summary::after {
    color: var(--text-muted);
    content: '+';
    font-size: 18px;
    line-height: 1;
}

.quiet-panel[open] > summary::after {
    content: '-';
}

.quiet-panel-body {
    border-top: 1px solid var(--border-light);
    padding: 18px;
}

.quiet-panel-embedded {
    margin-top: 18px;
}

.form-card-embedded {
    box-shadow: none;
    max-width: none;
    padding: 0;
}

.workspace-feed {
    display: grid;
    gap: 18px;
}

.quick-link-card {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 130px;
    padding: 20px 22px;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.quick-link-card:hover {
    border-color: rgba(27, 26, 23, 0.20);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quick-link-card strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.012em;
}

.quick-link-card span {
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.55;
}

.workspace-hub-hero {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.workspace-hub-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 0.96;
    max-width: 12ch;
    color: var(--ink);
    font-variation-settings: "opsz" 144;
}

.workspace-hub-user {
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
    padding: 18px 20px;
}

.workspace-hub-user strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.012em;
}

.workspace-hub-user-label,
.workspace-switch-kicker {
    align-items: center;
    color: var(--ink-4);
    display: inline-flex;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.workspace-switch-kicker::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
}

.workspace-hub-user span:last-child {
    color: var(--ink-3);
    font-size: 13px;
}

.workspace-switch-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 32px;
}

.workspace-switch-card {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 340px;
    padding: 32px;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.workspace-switch-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(92, 107, 74, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.workspace-switch-card:hover {
    border-color: rgba(27, 26, 23, 0.20);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.workspace-switch-card:hover::before { opacity: 1; }

.workspace-switch-card-finance {
    background: var(--paper);
}

.workspace-switch-card-crm {
    background: var(--paper);
}

.workspace-switch-card-crm::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(72, 88, 67, 0.10), transparent 70%);
    pointer-events: none;
}

.workspace-switch-card-finance::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(181, 97, 58, 0.10), transparent 70%);
    pointer-events: none;
}

.workspace-switch-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.022em;
    line-height: 1.08;
    max-width: 18ch;
    color: var(--ink);
    font-variation-settings: "opsz" 96;
}

.workspace-switch-card p {
    color: var(--ink-3);
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 46ch;
}

.workspace-switch-metrics {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: auto;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
}

.workspace-switch-metrics div {
    background: var(--paper);
    border: 0;
    border-radius: 0;
    min-height: 88px;
    padding: 14px 16px;
}

.workspace-switch-metrics span {
    color: var(--ink-4);
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.workspace-switch-metrics strong {
    color: var(--ink);
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.022em;
    line-height: 1.1;
    font-variation-settings: "opsz" 144;
    font-feature-settings: "tnum", "ss01";
}

.workspace-switch-cta {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: gap var(--transition);
}

.workspace-switch-cta::after {
    content: "→";
    transition: transform var(--transition);
}

.workspace-switch-card:hover .workspace-switch-cta::after {
    transform: translateX(4px);
}

.workspace-hub-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ────────────────────────────────────── Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-variation-settings: "opsz" 144;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ────────────────────────────────────── Workspace Hero */
.workspace-hero {
    align-items: flex-start;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 4px 0 26px;
    box-shadow: none;
    flex-wrap: wrap;
}

body.site-shell .workspace-hero {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    box-shadow: none;
    padding: 4px 0 26px;
}

.page-eyebrow {
    align-items: center;
    color: var(--ink-4);
    display: inline-flex;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.22em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.page-eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--olive);
    display: inline-block;
}

.page-eyebrow a {
    color: inherit;
    text-decoration: none;
}

.page-eyebrow a:hover {
    color: var(--ink);
}

.workspace-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.028em;
    line-height: 1.02;
    color: var(--ink);
    max-width: 18ch;
    font-variation-settings: "opsz" 144;
}

.page-intro {
    color: var(--ink-3);
    font-size: 15px;
    line-height: 1.65;
    margin-top: 14px;
    max-width: 64ch;
}

body.site-shell .page-intro {
    font-size: 15.5px;
    max-width: 70ch;
}

.workspace-note {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-left: 2px solid var(--olive);
    border-radius: var(--radius-xs);
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 14px 18px;
}

/* ────────────────────────────────────── Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    margin-bottom: 32px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stat-card {
    background: var(--paper);
    border: 0;
    border-radius: 0;
    padding: 22px 24px;
    box-shadow: none;
    transition: background var(--transition);
    position: relative;
}

.stat-card:hover {
    background: var(--bone);
    box-shadow: none;
}

.stat-card.stat-warning::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--warning);
}

.stat-card.stat-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.stat-card.stat-link:hover {
    background: var(--bone);
}

.stat-card.stat-disabled {
    opacity: 0.45;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-4);
    margin-bottom: 12px;
    font-weight: 700;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum", "ss01";
    font-variation-settings: "opsz" 144;
}

.stat-sub {
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 8px;
    line-height: 1.5;
    letter-spacing: -0.005em;
}

.stat-value-sm {
    font-size: 1.3rem;
}

/* ────────────────────────────────────── Insight Grid (dashboard top) */
.insight-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 36px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.insight-card {
    background: var(--paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 26px;
    transition: background var(--transition);
}

body.site-shell .insight-card,
body.site-shell .detail-card,
body.site-shell .quick-link-card,
body.site-shell .queue-card,
body.site-shell .form-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

body.site-shell .insight-card {
    border-radius: 0;
}

body.site-shell .quick-link-card:hover,
body.site-shell .queue-card:hover {
    box-shadow: var(--shadow-md);
}

.insight-card:hover {
    background: var(--bone);
    box-shadow: none;
    transform: none;
}

.insight-card-alert {
    background: linear-gradient(180deg, rgba(241, 220, 203, 0.55), var(--paper));
    position: relative;
}

.insight-card-alert::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--terracotta);
}

/* ────────────────────────────────────── Yearly Summary */
.yearly-block {
    margin-bottom: 40px;
}

.yearly-year-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
    letter-spacing: -0.022em;
    font-variation-settings: "opsz" 144;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.yearly-year-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--hairline);
    margin-left: 6px;
}

.yearly-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.yearly-card {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.yearly-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 26, 23, 0.16);
}

.yearly-card-success {
    border-left: 3px solid var(--olive);
}

.yearly-card-warning {
    border-left: 3px solid #c4943a;
}

.yearly-card-accent {
    background: linear-gradient(180deg, rgba(139, 152, 99, 0.06), var(--white));
    border-left: 3px solid var(--olive);
}

.yearly-card-title {
    align-items: center;
    color: var(--ink-4);
    display: inline-flex;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.16em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.yearly-card-title::before {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--olive);
}

.yearly-metrics {
    width: 100%;
    border-collapse: collapse;
}

.yearly-metrics td {
    padding: 5px 0;
    font-size: 14px;
}

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

.yearly-metric-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text);
}

.yearly-metric-total td {
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    font-weight: 700;
    font-size: 15px;
}

.yearly-metric-total .yearly-metric-value {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: -0.012em;
}

.yearly-card-footnote {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.yearly-metrics thead th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.yearly-section-head td {
    padding-top: 16px;
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--olive-dark);
    letter-spacing: 0.2px;
}

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

.section h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 14px;
    color: var(--ink);
    letter-spacing: -0.018em;
    line-height: 1.18;
    font-variation-settings: "opsz" 96;
}

.section h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.012em;
    color: var(--ink);
}

/* ────────────────────────────────────── Tables */
.data-table-wrap {
    width: 100%;
    overflow-x: auto;
}
@media (max-width: 768px) {
    .data-table .col-secondary {
        display: none;
    }
    .drawings-table {
        table-layout: fixed;
        width: 100%;
    }
    .drawings-table th:nth-child(1),
    .drawings-table td:nth-child(1) { width: 70%; }
    .drawings-table th:nth-child(5),
    .drawings-table td:nth-child(5) { width: 30%; text-align: center; }
    .drawings-table th,
    .drawings-table td {
        padding: 10px 8px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .drawings-table td strong {
        font-weight: 600;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .drawings-table th:nth-child(5),
    .drawings-table td:nth-child(5),
    .drawings-table th:nth-child(6),
    .drawings-table td:nth-child(6) {
        display: none;
    }
    .drawings-table th:nth-child(1),
    .drawings-table td:nth-child(1) { width: 100%; }
}
.data-table {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: none;
}

.data-table th {
    background: var(--bone);
    padding: 12px 18px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-4);
    font-weight: 700;
    border-bottom: 1px solid var(--hairline);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--hairline);
    font-size: 13.5px;
    vertical-align: middle;
    color: var(--ink-2);
}

.data-table td strong {
    color: var(--ink);
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover td {
    background: var(--bone);
}

.data-table .actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
    align-items: center;
}

.data-table .col-amount,
.data-table td.col-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum", "ss01";
    font-weight: 500;
}

.data-table th.col-amount {
    text-align: right;
}

/* ────────────────────────────────────── Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    line-height: 1.5;
}

.badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-draft       { background: rgba(27, 26, 23, 0.04); color: var(--ink-3); border-color: var(--hairline); }
.badge-draft::before { background: var(--ink-4); }

.badge-sent        { background: rgba(59, 92, 122, 0.08); color: var(--info); border-color: rgba(59, 92, 122, 0.18); }
.badge-sent::before { background: var(--info); }

.badge-pending     { background: rgba(181, 130, 49, 0.10); color: var(--warning); border-color: rgba(181, 130, 49, 0.22); }
.badge-pending::before { background: var(--warning); }

.badge-paid, .badge-confirmed, .badge-completed { background: rgba(74, 107, 69, 0.10); color: var(--olive-deep); border-color: rgba(74, 107, 69, 0.22); }
.badge-paid::before, .badge-confirmed::before, .badge-completed::before { background: var(--olive); }

.badge-overdue, .badge-rejected, .badge-cancelled { background: rgba(164, 67, 57, 0.08); color: var(--danger); border-color: rgba(164, 67, 57, 0.22); }
.badge-overdue::before, .badge-rejected::before, .badge-cancelled::before { background: var(--danger); }

.badge-active      { background: var(--olive-mist); color: var(--olive-deep); border-color: rgba(74, 107, 69, 0.22); }
.badge-active::before { background: var(--olive); }

.badge-on_hold     { background: rgba(181, 130, 49, 0.10); color: var(--warning); border-color: rgba(181, 130, 49, 0.22); }
.badge-on_hold::before { background: var(--warning); }

.badge-individual  { background: rgba(59, 92, 122, 0.08); color: var(--info); border-color: rgba(59, 92, 122, 0.18); }
.badge-individual::before { background: var(--info); }

.badge-company     { background: var(--olive-mist); color: var(--olive-deep); border-color: rgba(74, 107, 69, 0.22); }
.badge-company::before { background: var(--olive); }

.badge-plain       { padding-left: 10px; }
.badge-plain::before { display: none; }

/* ────────────────────────────────────── Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid rgba(27, 26, 23, 0.14);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.005em;
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
    background: var(--paper);
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    line-height: 1.4;
    min-height: 34px;
}

body.site-shell .btn {
    border-radius: var(--radius-pill);
    font-weight: 600;
    padding: 8px 16px;
}

body.site-shell .btn-primary {
    background: var(--olive);
    border-color: var(--olive);
    color: #FFFFFF;
}

body.site-shell .btn-primary:hover {
    background: var(--olive-deep);
    border-color: var(--olive-deep);
    box-shadow: 0 6px 18px rgba(72, 88, 67, 0.22);
}

.btn:hover {
    border-color: rgba(27, 26, 23, 0.32);
    background: var(--bone);
    box-shadow: var(--shadow-xs);
}

.btn:active {
    transform: translateY(0.5px);
}

.btn:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--ink-2);
    border-color: var(--ink-2);
    color: var(--paper);
    box-shadow: 0 6px 16px rgba(27, 26, 23, 0.18);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.btn-success:hover {
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.3);
}

.btn-danger {
    color: var(--danger);
    border-color: rgba(184, 74, 74, 0.3);
}

.btn-danger:hover {
    background: #FCEAEA;
    border-color: var(--danger);
}
.btn-xs {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px;
}
.btn-icon {
    width: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
}

.btn-ghost {
    border: none;
    color: var(--text-light);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--cream);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* ────────────────────────────────────── Forms */
.form-card {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 28px 30px;
    max-width: 720px;
    box-shadow: var(--shadow-xs);
}

.form-card-wide {
    max-width: 1080px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.form-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.input,
input[type="text"]:not(.btn),
input[type="email"]:not(.btn),
input[type="password"]:not(.btn),
input[type="number"]:not(.btn),
input[type="date"]:not(.btn),
input[type="search"]:not(.btn),
input[type="tel"]:not(.btn),
input[type="url"]:not(.btn),
select:not(.btn),
textarea:not(.btn) {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(27, 26, 23, 0.16);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    background: #FFFFFF;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    line-height: 1.5;
}

.input:hover,
input:not(.btn):hover,
select:not(.btn):hover,
textarea:not(.btn):hover {
    border-color: rgba(27, 26, 23, 0.28);
}

.input:focus,
input:not(.btn):focus,
select:not(.btn):focus,
textarea:not(.btn):focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 4px rgba(92, 107, 74, 0.12);
    background: #FFFFFF;
}

.input::placeholder { color: var(--ink-5); }

.textarea {
    min-height: 96px;
    resize: vertical;
}

.input-sm { max-width: 160px; }
.input-xs { max-width: 88px; }

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--ink-2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--hairline);
}

.voice-recorder,
.camera-capture {
    background: rgba(250, 248, 245, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    padding: 18px;
}

.voice-recorder-header,
.camera-capture-header {
    margin-bottom: 14px;
}

.voice-recorder-controls,
.camera-capture-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.voice-recorder-status,
.camera-capture-status {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 10px;
}

.voice-recorder-preview,
.camera-capture-preview,
.camera-capture-live video {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 12px;
    max-width: 100%;
    width: 100%;
}

.camera-capture-live {
    margin-top: 12px;
}

.camera-capture-compact {
    margin-bottom: 0;
    padding: 16px;
}

.attachment-capture-shell {
    border-top: 1px solid var(--border-light);
    margin-top: 18px;
    padding-top: 18px;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.attachment-chip {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.attachment-chip:hover {
    border-color: rgba(102, 117, 122, 0.45);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.attachment-chip span {
    color: var(--text-light);
    font-weight: 500;
}

.voice-recorder-fallback,
.camera-capture-fallback {
    margin-top: 14px;
}

.voice-recorder-fallback summary,
.camera-capture-fallback summary {
    color: var(--olive-dark);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.voice-recorder-fallback .input,
.camera-capture-fallback .input {
    margin-top: 12px;
}

.site-photo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-photo-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.site-photo-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.site-photo-image {
    aspect-ratio: 4 / 3;
    background: #f3f0ea;
    display: block;
    object-fit: cover;
    width: 100%;
}

.site-photo-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.site-photo-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.site-photo-header strong {
    font-size: 14px;
    line-height: 1.4;
}

.site-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inbox-photo-preview {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: block;
    margin-bottom: 10px;
    max-width: 220px;
    object-fit: cover;
    width: 100%;
}

.notification-row-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.notification-row-link .metric-row:hover {
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(122, 139, 111, 0.18);
}

/* ────────────────────────────────────── Filters */
.filters {
    margin-bottom: 20px;
}

.filters-card {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    padding: 18px 22px;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form .input {
    max-width: 250px;
}

.scope-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    overflow: visible;
    padding-bottom: 4px;
}

.scope-pills a {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-light);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    padding: 9px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.scope-pills a span {
    background: rgba(122, 139, 111, 0.1);
    border-radius: 999px;
    color: var(--olive-dark);
    font-size: 11px;
    min-width: 22px;
    padding: 2px 7px;
    text-align: center;
}

.scope-pills a.active {
    background: var(--olive-light);
    border-color: rgba(122, 139, 111, 0.35);
    color: var(--olive-dark);
}

.task-board,
.note-stack {
    display: grid;
    gap: 16px;
}

.task-board {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.task-board-focus {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.task-board-history {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.task-status-column {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.task-status-header,
.note-card-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.task-status-header h3 {
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.task-stack {
    display: grid;
    gap: 12px;
}

.task-shell-card,
.note-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(31, 39, 41, 0.05);
    display: grid;
    gap: 10px;
    padding: 18px;
}

.task-shell-card strong,
.note-card strong {
    font-size: 15px;
}

.task-shell-card a,
.note-card a {
    color: inherit;
    text-decoration: none;
}

.task-shell-card a:hover,
.note-card a:hover {
    text-decoration: underline;
}

.task-inline-update {
    border-top: 1px solid var(--border-light);
    display: grid;
    gap: 8px;
    padding-top: 10px;
}

.task-inline-update-row {
    align-items: flex-end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.task-inline-update label,
.task-note-field {
    display: grid;
    gap: 4px;
}

.task-inline-update label span,
.task-note-field span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.task-note-field textarea {
    min-height: 68px;
    resize: vertical;
}

.task-update-feedback {
    color: var(--olive-dark);
    font-size: 12px;
    min-height: 18px;
}

.task-update-feedback.is-error {
    color: #8a3a3a;
}

.task-history-action {
    margin-top: 16px;
}

.task-shell-meta,
.note-card-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-shell-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.55;
}

.section-header-inline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.section-anchor-target {
    scroll-margin-top: 90px;
}

/* ────────────────────────────────────── Report Navigation */
.report-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.report-nav-link {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text-light);
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 14px;
    text-decoration: none;
    transition: all var(--transition);
}

.report-nav-link.active,
.report-nav-link:hover {
    background: var(--olive-light);
    border-color: var(--olive);
    color: var(--olive-dark);
}

/* ── Table scroll wrapper ────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* ────────────────────────────────────── Report Grid & Metric Rows */
.report-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.metric-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
}

.metric-row strong {
    color: var(--ink);
    font-weight: 600;
}

.metric-row strong:last-child {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 96;
}

.metric-row .table-subtext {
    margin-top: 2px;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row-block {
    align-items: flex-start;
    padding: 12px 0;
}

.metric-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ────────────────────────────────────── Action Queue */
.queue-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 8px;
}

.queue-card {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 124px;
    padding: 22px 22px 20px;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

body.site-shell .queue-card {
    border-radius: var(--radius-md);
}

.queue-card::after {
    content: "→";
    position: absolute;
    top: 22px;
    right: 22px;
    color: var(--ink-4);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--transition), transform var(--transition);
}

.queue-card:hover {
    border-color: rgba(27, 26, 23, 0.20);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.queue-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.queue-card strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.012em;
    line-height: 1.3;
    margin-top: 4px;
}

.queue-card span {
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.5;
}

.queue-kicker {
    align-items: center;
    color: var(--ink-4);
    display: inline-flex;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.queue-kicker::before {
    content: "";
    width: 12px;
    height: 1px;
    background: var(--olive);
}

/* Project pin layout */
.queue-card-with-pin {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    min-height: unset;
    flex-direction: row;
}
.queue-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    min-height: 80px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
}
.pin-form { display: flex; align-self: stretch; }
.pin-btn {
    background: none;
    border: none;
    border-left: 1px solid var(--border-light);
    color: var(--border);
    cursor: pointer;
    font-size: 18px;
    padding: 0 14px;
    transition: color 0.15s;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.pin-btn:hover { color: #d97706; }
.pin-btn-active { color: #d97706; }

/* Excel-style task table on /site/tasks */
.task-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--cream, #f5f1ea);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.task-filter-menu {
    position: relative;
}
.task-filter-button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 8px);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.task-filter-button:hover,
.task-filter-button.is-active {
    border-color: var(--olive);
    color: var(--olive-dark);
}
.task-filter-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 30;
    min-width: 190px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.task-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: var(--radius-sm, 8px);
    font-size: 13px;
    cursor: pointer;
}
.task-filter-option:hover {
    background: var(--cream, #faf7f1);
}
.task-filter-option input {
    accent-color: var(--olive);
}
.task-filter-empty {
    display: block;
    padding: 7px 8px;
    color: var(--text-muted);
    font-size: 13px;
}
.task-filter-clear {
    min-height: 34px;
}
.task-form-row {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(170px, 220px) minmax(170px, 220px) minmax(150px, 190px);
    align-items: flex-start;
    gap: 18px;
}
.task-form-description {
    min-width: 0;
}
.task-form-project,
.task-form-date,
.task-form-person {
    min-width: 0;
}
.task-project-list {
    display: grid;
    gap: 18px;
}
.project-task-group {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}
.task-project-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
}
.task-project-heading h2 {
    margin: 0;
    font-size: 1.45rem;
}
.task-subpanels {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.task-project-panel {
    margin: 0;
}
.task-project-panel > summary {
    cursor: pointer;
}
.task-project-panel .quiet-panel-body {
    padding-top: 12px;
}
.task-active-list {
    margin-top: 12px;
}
.task-table-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}
.task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.task-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: var(--cream, #f5f1ea);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1;
}
.task-table-section td {
    background: var(--olive-light, #e8e2d4);
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--olive-dark);
    font-size: 12px;
    letter-spacing: 0.05em;
}
.task-table-row td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light, #ece7df);
    vertical-align: top;
}
.task-table-row:hover td {
    background: var(--cream, #faf7f1);
}
.task-detail-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.task-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.task-table-row:hover .task-row-actions,
.task-table-row:focus-within .task-row-actions {
    opacity: 1;
}
.task-col-resp { width: 118px; }
.task-col-due { width: 110px; white-space: nowrap; }
.task-col-stage { width: 130px; }
.task-col-details { min-width: 360px; width: 46%; }
.task-col-status { width: 132px; white-space: nowrap; }
.task-col-details a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.task-col-details a:hover { text-decoration: underline; }
.task-status-select {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
}
/* F3 status row tints — explicit per spec (no inherited backgrounds). */
.task-row-new td {
    background: #ffffff;
}
.task-row-for_review td {
    background: #fff1d6;
}
.task-row-for_review td:first-child {
    border-left: 3px solid var(--olive, #4a6b45);
}
.task-status-completed .task-col-details a,
.task-row-completed td {
    color: var(--text-muted);
}
.task-status-select.task-status-new {
    background: #ffffff;
    color: var(--ink, #1b1a17);
}
.task-status-select.task-status-for_review {
    background: #fff1d6;
    color: #8a5a14;
}
.task-status-select.task-status-completed {
    background: #e9efe2;
    color: var(--olive-dark, #3d5a3a);
}
/* F3 status badges (rendered as `badge-{{ status }}`). */
.badge-new          { background: rgba(27, 26, 23, 0.04); color: var(--ink-3); border-color: var(--hairline); }
.badge-new::before  { background: var(--ink-4); }
.badge-for_review   { background: #fff1d6; color: #8a5a14; border-color: rgba(138, 90, 20, 0.25); }
.badge-for_review::before { background: #c98a14; }
.task-edit-modal[hidden] {
    display: none;
}
.task-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 24px;
}
.task-edit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 26, 23, 0.34);
}
.task-edit-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100vw - 72px));
    max-height: min(760px, calc(100vh - 48px));
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg);
    padding: 18px;
}
.task-edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.task-edit-header h2 {
    margin: 0;
}
.task-feedback {
    margin-right: auto;
    color: var(--text-muted);
    font-size: 13px;
}
.task-feedback.is-error {
    color: var(--danger);
}
@media (max-width: 1500px) {
    .task-form-row {
        grid-template-columns: minmax(320px, 1fr) minmax(170px, 220px);
    }
    .task-form-description {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .task-col-resp,
    .task-col-stage,
    .task-col-handle,
    .task-col-due { display: none; }
    .task-col-status { width: 100px; white-space: normal; }
    .task-col-details {
        min-width: 0;
        width: auto;
    }
    .task-table thead th,
    .task-table-row td { padding: 8px 8px; }
    .task-detail-line {
        display: grid;
        gap: 8px;
    }
    .task-row-actions {
        display: flex;
        opacity: 1;
        flex-wrap: wrap;
        gap: 6px;
    }
    .task-row-actions form.inline {
        display: inline-flex;
    }
    .task-row-actions .btn-xs {
        flex: 0 0 auto;
    }
    .task-filter-row {
        gap: 6px;
        padding: 8px;
    }
    .task-filter-button {
        flex: 1 1 auto;
        min-width: 0;
        padding: 7px 10px;
        font-size: 11px;
    }
    .task-edit-modal {
        align-items: end;
        padding: 0;
    }
    .task-edit-dialog {
        width: 100%;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
    }
    .task-form-row {
        grid-template-columns: 1fr;
    }
    .task-form-description {
        grid-column: auto;
    }
}

/* Project picker grid (R7 CRM home) */
.project-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.project-picker-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.project-picker-card:hover {
    border-color: var(--olive);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.project-picker-link {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}
.project-picker-link strong {
    font-size: 16px;
}
.project-picker-meta {
    color: var(--text-muted);
    font-size: 12px;
}
.section-subhead {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 18px 0 8px;
}
@media (max-width: 768px) {
    .project-picker-grid { grid-template-columns: 1fr; }
}

.studio-link-form {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.studio-link-form .input-sm {
    font-size: 12px;
    padding: 4px 8px;
    max-width: 180px;
}

.queue-card strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
}

.queue-card span {
    color: var(--text-light);
    font-size: 12.5px;
    line-height: 1.5;
}

.qr-card {
    align-items: center;
    text-align: center;
}

.qr-card-image {
    height: 180px;
    image-rendering: pixelated;
    width: 180px;
}

.qr-card-url {
    font-size: 11px;
    word-break: break-all;
}

.qr-hero-card {
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 240, 0.9));
    border-radius: 28px;
    display: grid;
    gap: 24px;
    grid-template-columns: 260px minmax(0, 1fr);
}

.qr-hero-image {
    image-rendering: pixelated;
    width: 100%;
}

.qr-hero-copy h3 {
    font-size: 28px;
    margin: 10px 0 10px;
}

.qr-url-card {
    margin-top: 18px;
}

.queue-kicker {
    color: var(--olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* ────────────────────────────────────── Detail Info & Cards */
.detail-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 24px;
}

.subcontractor-link-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 24px;
}

.copy-link-control {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.subcontractor-note-edit-form {
    display: grid;
    gap: 12px;
}

.qr-link-list {
    display: grid;
    gap: 12px;
}

.qr-link-row {
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    padding: 20px 22px;
}

.qr-link-row-project {
    border-color: rgba(122, 139, 111, 0.35);
    background: linear-gradient(180deg, rgba(250, 248, 241, 0.92), var(--paper));
}

.qr-link-main {
    display: grid;
    gap: 8px;
    align-content: start;
}

.qr-link-main h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.qr-contact-line {
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
}

.qr-contact-line a {
    color: inherit;
}

.qr-link-actions {
    display: grid;
    gap: 10px;
}

.qr-link-field {
    align-items: center;
    background: rgba(250, 248, 241, 0.74);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 10px;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.qr-link-field span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qr-link-field a {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.qr-link-field a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .qr-link-row {
        grid-template-columns: 1fr;
    }

    .qr-link-field {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .qr-link-field .btn {
        justify-self: start;
    }
}

.detail-card {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    box-shadow: var(--shadow-xs);
}

.detail-card-compact {
    margin-bottom: 16px;
    padding: 18px 22px;
}

.detail-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: -0.018em;
    color: var(--ink);
    font-variation-settings: "opsz" 96;
}

.team-account-actions {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-row {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
    display: inline-block;
    min-width: 100px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding-top: 1px;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

.detail-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.table-subtext {
    color: var(--ink-4);
    display: block;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 3px;
    letter-spacing: -0.005em;
}

.summary-shell {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
    margin-bottom: 24px;
}

.dashboard-shell {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    margin-bottom: 24px;
}

.dashboard-aside {
    display: grid;
    gap: 18px;
}

.dashboard-user-card {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-primary-card {
    min-height: 100%;
}

.dashboard-filter {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.dashboard-filter .input {
    margin-bottom: 0;
    max-width: 280px;
    min-width: 220px;
}

.dashboard-feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-feed-item {
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 244, 239, 0.82));
    border: 1px solid var(--border);
    border-radius: 22px;
    color: inherit;
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.dashboard-feed-item:hover {
    border-color: rgba(102, 117, 122, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.dashboard-feed-main {
    min-width: 0;
}

.dashboard-feed-top {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.dashboard-feed-excerpt {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0 8px;
}

.summary-card {
    min-height: 100%;
}

.summary-highlight {
    background: linear-gradient(160deg, rgba(122, 139, 111, 0.11), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(122, 139, 111, 0.12);
    border-radius: 22px;
    padding: 20px;
}

.summary-highlight p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.summary-audio {
    margin-top: 16px;
}

.summary-context {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
    white-space: pre-wrap;
}

/* ────────────────────────────────────── Invoice Form - Line Items */
.line-items {
    margin: 12px 0;
}

.line-item-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.line-item-row .input:first-child {
    flex: 2;
}

.totals-section {
    margin-top: 20px;
    padding: 16px;
    background: #F8F6F3;
    border-radius: var(--radius);
    text-align: right;
}

.section-block {
    border-top: 1px solid var(--border);
    margin-top: 28px;
    padding-top: 24px;
}

.section-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline);
}

.section-focus {
    border: 1px solid rgba(72, 88, 67, 0.20);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 4px rgba(72, 88, 67, 0.08);
    padding: 26px;
    scroll-margin-top: 96px;
}

.section-heading h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.018em;
    color: var(--ink);
}

.helper-text {
    color: var(--ink-4);
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: -0.005em;
}

.template-library {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.item-card {
    background: #F8F6F3;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 16px;
}

.item-card-compact {
    background: var(--white);
}

.item-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.item-card-header h4 {
    font-size: 15px;
    font-weight: 600;
}

.checkbox-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.checkbox-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    display: block;
    padding: 14px;
    transition: border-color var(--transition);
}

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

.checkbox-row {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.checkbox-card strong {
    color: var(--text);
    display: block;
    font-size: 14px;
}

.checkbox-card p {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 6px;
}

.payment-summary {
    margin-top: 10px;
}

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.term-preview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 14px;
}

.term-preview-card {
    background: #F8F6F1;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

.summary-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.totals-section-compact {
    margin-top: 18px;
}

.line-item-row-wide {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(100px, 0.7fr)) auto;
}

.line-item-row-wide .input:first-child {
    flex: initial;
}

.total-row {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 4px 0;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.total-row span:first-child { color: var(--text-light); }
.total-final { font-weight: 700; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }

/* ────────────────────────────────────── Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 12px 16px 12px 18px;
    border-radius: var(--radius);
    font-size: 13.5px;
    margin-bottom: 10px;
    font-weight: 500;
    border-left-width: 3px;
    border-left-style: solid;
    line-height: 1.5;
    background: var(--paper);
    border-top: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.flash-success { background: rgba(74, 107, 69, 0.06); color: var(--olive-deep); border-left-color: var(--olive); }
.flash-error   { background: rgba(164, 67, 57, 0.06);  color: var(--danger);     border-left-color: var(--danger); }
.flash-info    { background: rgba(59, 92, 122, 0.06);  color: var(--info);       border-left-color: var(--info); }
.flash-warning { background: rgba(181, 130, 49, 0.06); color: var(--warning);    border-left-color: var(--warning); }

/* ────────────────────────────────────── Empty State */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--ink-4);
    font-size: 14px;
    line-height: 1.65;
    font-style: italic;
    font-family: var(--font-display);
    font-weight: 300;
}

.empty-state a {
    color: var(--olive);
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.empty-state-compact {
    padding: 28px 16px;
    font-size: 13px;
}

.empty-state-compact {
    padding: 14px 0 0;
    text-align: left;
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 400;
}

/* ────────────────────────────────────── Utilities */
.inline { display: inline; }
.inline-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; }
.font-tabular { font-variant-numeric: tabular-nums; }

/* ────────────────────────────────────── Multi-select list */
.multi-select-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    padding: 4px;
}
.multi-select-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 0.82rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--transition);
}
.multi-select-item:hover { background: var(--olive-light); }
.multi-select-item input[type="checkbox"] { flex-shrink: 0; }
.form-actions-inline { display: flex; gap: 6px; align-items: center; }
[x-cloak] { display: none !important; }

/* Expense inline edit */
.inline-edit-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-edit-form .input { min-width: 100px; }

/* ────────────────────────────────────── Responsive */
@media (max-width: 768px) {
    body.mobile-nav-open {
        overflow: hidden;
    }
    body {
        display: block;
    }
    .mobile-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 300;
        background: rgba(250, 248, 245, 0.96);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }
    .mobile-nav[open] {
        bottom: 0;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
    }
    .mobile-nav > summary {
        align-items: center;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 14px 16px;
    }
    .mobile-nav > summary::-webkit-details-marker {
        display: none;
    }
    .mobile-nav-brand {
        align-items: baseline;
        color: inherit;
        display: inline-flex;
        gap: 2px;
        text-decoration: none;
    }
    .mobile-nav-label {
        color: var(--olive-dark);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .mobile-nav-panel {
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        height: calc(100dvh - 64px);
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px 16px calc(120px + env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
    }
    .mobile-nav-group + .mobile-nav-group {
        margin-top: 16px;
    }
    .mobile-nav-title {
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        margin-bottom: 8px;
        text-transform: uppercase;
    }
    .mobile-nav-group a {
        align-items: center;
        background: var(--cream);
        border: 1px solid var(--border);
        border-radius: 12px;
        color: var(--text);
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        min-height: 46px;
        padding: 10px 12px;
        text-decoration: none;
    }
    .mobile-nav-group a.active {
        background: var(--olive-light);
        border-color: rgba(122, 139, 111, 0.35);
        color: var(--olive-dark);
        font-weight: 600;
    }
    .mobile-nav-signout {
        margin-top: 18px;
    }
    .sidebar { display: none; }
    .content { margin-left: 0; padding: 16px; }
    .project-nav {
        margin-bottom: 16px;
        padding-bottom: 2px;
    }
    .project-nav-menu {
        margin-top: 10px;
        min-width: 0;
        position: static;
    }
    .workspace-rail,
    .workspace-switcher,
    .workspace-switch-grid,
    .workspace-hub-grid,
    .workspace-hub-hero,
    .workspace-switch-metrics,
    .scope-pills,
    .command-actions {
        display: flex;
        flex-direction: column;
    }
    .workspace-switch-card,
    .task-status-column,
    .note-card,
    .task-shell-card {
        border-radius: 22px;
    }
    .workspace-grid,
    .quick-links-grid,
    .data-table {
        display: block;
    }
    .summary-shell,
    .dashboard-shell {
        grid-template-columns: 1fr;
    }
    .team-account-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .quick-link-card {
        min-height: unset;
    }
    .data-table {
        overflow-x: auto;
        white-space: nowrap;
    }
    .form-row { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .section-heading { flex-direction: column; }
    .line-item-row { flex-direction: column; align-items: stretch; }
    .workspace-hero { flex-direction: column; padding: 20px; }
    .dashboard-feed-item {
        flex-direction: column;
    }
    .qr-hero-card {
        grid-template-columns: 1fr;
    }
    .workspace-hub-hero h1,
    .workspace-switch-card h2 {
        max-width: none;
    }
    .voice-recorder-controls,
    .camera-capture-controls {
        flex-direction: column;
    }
    .insight-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .insight-card { padding: 12px; }
    .stat-value { font-size: 22px; }
    .stat-sub { font-size: 11px; }
    .queue-grid { grid-template-columns: 1fr; }

    /* Dashboard — hide desktop-only controls on mobile */
    .dashboard-show-all-btn { display: block; }  /* already visible on mobile */
    .dashboard-owner-toggle { display: block; }  /* already visible on mobile */
    .report-grid { grid-template-columns: 1fr; }

    /* ── Issue 9: Finance table mobile ─────────────────────────── */
    .col-hide-mobile { display: none; }
    .data-table { -webkit-overflow-scrolling: touch; }

    /* ── Issue 7: Workspace hub mobile compaction ─────────────── */
    /* Remove snapshot cards — metrics already visible in the switch cards */
    .workspace-hub-grid { display: none; }
    /* Re-apply 3-col grid (overrides the shared flex-column rule above) */
    .workspace-switch-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .workspace-switch-metrics div { min-height: unset; padding: 10px 12px; }
    .workspace-switch-metrics strong { font-size: 1.1rem; }
    /* Compact card body */
    .workspace-switch-card { gap: 12px; min-height: unset; padding: 20px; }
    .workspace-switch-card h2 { font-size: 1.3rem; line-height: 1.2; }
    .workspace-switch-card p { display: none; }
    /* Compact hero */
    .workspace-hub-hero h1 { font-size: 2rem; letter-spacing: -0.03em; }
}

/* ── Notes — FAB + modal sheet + overflow menu ──────────────────── */
.fab { display: none; } /* hidden on desktop */

@media (max-width: 768px) {
    .fab {
        display: flex;
        position: fixed;
        bottom: 28px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--olive);
        color: var(--white);
        font-size: 26px;
        align-items: center;
        justify-content: center;
        border: none;
        box-shadow: 0 4px 16px rgba(30, 40, 42, 0.20);
        cursor: pointer;
        z-index: 250;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s, background 0.15s;
        text-decoration: none;
        font-weight: 300;
        line-height: 1;
    }
    .fab:active { transform: scale(0.93); background: var(--olive-dark); }

    /* Hide desktop new-note details panel on mobile */
    #new-note { display: none; }

    /* Note overflow menu */
    .note-overflow { position: relative; }
    .note-overflow-toggle {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-muted);
        font-size: 18px;
        padding: 4px 8px;
        border-radius: 6px;
        line-height: 1;
        -webkit-tap-highlight-color: transparent;
    }
    .note-overflow-toggle:active { background: var(--border-light); }
    .note-overflow-menu {
        position: absolute;
        right: 0; top: 100%;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        z-index: 50;
        min-width: 100px;
        overflow: hidden;
    }
    .note-overflow-menu button {
        display: block;
        width: 100%;
        padding: 10px 14px;
        text-align: left;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 14px;
        color: var(--danger);
    }
    .note-overflow-menu button:active { background: var(--border-light); }
}

/* Note modal sheet — hidden by default; .is-active class (toggled by Alpine :class) makes it visible on mobile */
.note-modal-overlay { display: none; }
@media (max-width: 768px) {
    .note-modal-overlay.is-active {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 400;
        background: rgba(30, 40, 42, 0.5);
        align-items: flex-end;
    }
    .note-modal-sheet {
        background: var(--white);
        border-radius: 20px 20px 0 0;
        padding: 0 20px calc(28px + env(safe-area-inset-bottom));
        max-height: 90vh;
        overflow-y: auto;
        width: 100%;
        box-shadow: 0 -8px 32px rgba(30, 40, 42, 0.18);
    }
    .note-modal-sheet::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: 14px auto 20px;
    }
    .note-modal-sheet h3 { margin-bottom: 16px; font-family: var(--crm-heading); }
}

/* ── Task Cards — mobile simplification ────────────────────────── */
@media (max-width: 768px) {
    /* Hide room + priority badges — keep type + status only */
    .badge-room,
    .badge-priority { display: none; }

    /* Stretched-link: full card is tappable */
    .task-shell-card { position: relative; }
    .task-shell-card .task-card-link::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
    }
    .task-shell-meta { position: relative; z-index: 2; }

    /* Hide verbose section subtitle text under headings */
    .section-heading .helper-text,
    .task-status-header + .helper-text { display: none; }

    /* Compact card spacing */
    .task-shell-card { padding: 10px 12px; gap: 6px; }
    .task-shell-meta { gap: 4px; margin-bottom: 4px; }
    .queue-card { padding: 12px 14px; }
}

/* ── Dashboard — show-all / owner-visibility toggles ───────────── */
.dashboard-show-all-btn,
.dashboard-owner-toggle { display: none; } /* hidden on desktop */

/* ── Project Workspace — Mobile Action Bar + Modal Sheets ──────── */

.mobile-action-bar { display: none; } /* desktop: hidden */

@media (max-width: 768px) {
    /* Hide desktop quick-action cards — replaced by bottom bar */
    .command-actions { display: none; }

    /* Transform command-panel-shell into a modal overlay when open */
    .command-panel-shell.is-open {
        position: fixed;
        inset: 0;
        z-index: 400;
        background: rgba(30, 40, 42, 0.5);
        display: flex;
        align-items: flex-end;
    }
    .command-panel-shell.is-open .form-card {
        max-height: 90vh;
        overflow-y: auto;
        width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
        padding: 0 20px calc(28px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 32px rgba(30, 40, 42, 0.18);
    }
    .command-panel-shell.is-open .form-card::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: 14px auto 20px;
    }

    /* Sticky mobile action bar */
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 300;
        background: var(--white);
        border-top: 1px solid var(--border);
        padding: 0 4px env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -2px 16px rgba(30, 40, 42, 0.07);
        justify-content: space-around;
    }
    .mob-action-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 10px 2px;
        min-height: 56px;
        border: none;
        background: transparent;
        cursor: pointer;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.3px;
        text-decoration: none;
        text-transform: uppercase;
        -webkit-tap-highlight-color: transparent;
        border-radius: 8px;
        transition: color 0.15s, background 0.15s;
        font-family: var(--crm-body);
    }
    .mob-action-btn svg {
        width: 22px; height: 22px;
        flex-shrink: 0;
    }
    .mob-action-btn:active { color: var(--olive-dark); background: var(--olive-light); }
    .mob-action-btn.mob-active { color: var(--olive-dark); background: var(--olive-light); }

    /* Bottom padding so content doesn't hide behind the bar */
    .workspace-command-center { padding-bottom: 72px; }
}

/* ── Login Page ─────────────────────────────────────────────────── */

body.login-page {
    display: block;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 60% 50% at 8% 12%, rgba(72, 88, 67, 0.10), transparent 55%),
        radial-gradient(ellipse 50% 40% at 96% 88%, rgba(181, 97, 58, 0.06), transparent 55%),
        linear-gradient(165deg, #F7F3EC 0%, #F1ECE2 50%, #EAE2D2 100%);
}

.login-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    width: 100%;
    min-height: 100dvh;
    max-width: none;
    padding: 0;
    animation: none;
}

.login-aside {
    align-items: stretch;
    background:
        linear-gradient(180deg, rgba(27, 26, 23, 0.04) 0%, rgba(27, 26, 23, 0) 40%),
        linear-gradient(165deg, #2C3826 0%, #1B1A17 100%);
    color: var(--paper);
    display: flex;
    overflow: hidden;
    padding: 56px 64px;
    position: relative;
}

.login-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(247, 243, 236, 0.10), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(181, 97, 58, 0.18), transparent 55%);
    pointer-events: none;
}

.login-aside::after {
    content: "";
    position: absolute;
    inset: 32px;
    border: 1px solid rgba(247, 243, 236, 0.10);
    pointer-events: none;
}

.login-aside-inner {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: space-between;
    position: relative;
    width: 100%;
    z-index: 1;
    animation: loginAsideRise 720ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

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

.login-aside-mark {
    align-items: baseline;
    display: flex;
    gap: 4px;
}

.login-aside-mark .logo-olive {
    color: var(--paper);
    font-size: 13px;
    letter-spacing: 0.36em;
}

.login-aside-mark .logo-hue {
    color: var(--paper);
    font-size: 26px;
}

.login-aside-eyebrow {
    color: rgba(247, 243, 236, 0.55);
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.login-aside-title {
    color: var(--paper);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.4vw, 3.4rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.05;
    max-width: 16ch;
    font-variation-settings: "opsz" 144;
    margin-top: auto;
}

.login-aside-body {
    color: rgba(247, 243, 236, 0.70);
    font-size: 15px;
    line-height: 1.7;
    max-width: 42ch;
}

.login-aside-meta {
    color: rgba(247, 243, 236, 0.45);
    display: flex;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    justify-content: space-between;
    letter-spacing: 0.16em;
    margin-top: 12px;
    text-transform: uppercase;
}

.login-panel {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 56px 48px;
    position: relative;
}

.login-flash {
    margin-bottom: 18px;
    max-width: 420px;
    width: 100%;
}

.login-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 420px;
    animation: loginPanelRise 720ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms both;
}

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

.login-brand {
    text-align: left;
    margin-bottom: 44px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--hairline);
}

.login-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 14px;
}

.login-logo .logo-olive {
    font-size: 14px;
    letter-spacing: 0.36em;
    color: var(--ink);
}

.login-logo .logo-hue {
    font-size: 32px;
    color: var(--olive);
}

.login-subtitle {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-4);
}

.login-form .form-group {
    margin-bottom: 22px;
}

.login-form .form-group label {
    color: var(--ink-3);
}

.login-footnote {
    color: var(--ink-4);
    font-size: 12px;
    letter-spacing: 0.005em;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--hairline);
    line-height: 1.6;
}

.login-submit svg {
    transition: transform var(--transition);
}

.login-submit:hover svg {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-aside { display: none; }
    .login-panel { padding: 48px 28px; }
}

.login-submit {
    width: 100%;
    margin-top: 14px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    border-radius: var(--radius);
}

@media (max-width: 460px) {
    .login-card { padding: 0; }
    .login-aside { padding: 40px 28px; }
}

/* F6 — task drag-and-drop reorder ---------------------------------------- */
.task-col-handle { width: 32px; padding-right: 0; }
.task-drag-handle {
    cursor: grab;
    opacity: 0.4;
    background: none;
    border: 0;
    padding: 4px 6px;
    color: var(--olive);
    font-size: 14px;
    line-height: 1;
}
.task-drag-handle:hover,
.task-drag-handle:focus-visible { opacity: 1; }
.task-drag-handle:active { cursor: grabbing; opacity: 1; }
.task-row-dragging td { background: var(--cream); opacity: 0.6; }
