:root {
    --ink: #020617;
    --lime: #a3e635;
    --white: #fff;
    --sidebar-open: 172px;
    --sidebar-closed: 64px;
    --bg: rgba(2, 6, 23, .045);
    --chrome: #020617;
    --surface: rgba(255, 255, 255, .92);
    --surface-2: rgba(2, 6, 23, .045);
    --surface-3: rgba(163, 230, 53, .12);
    --text: #020617;
    --muted: rgba(2, 6, 23, .62);
    --line: rgba(2, 6, 23, .12);
    --line-strong: rgba(2, 6, 23, .24);
    --accent-line: rgba(163, 230, 53, .55);
    --shadow: 0 18px 44px rgba(2, 6, 23, .10);
    --shadow-soft: 0 8px 20px rgba(2, 6, 23, .06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

label {
    color: var(--ink);
    font-size: .73rem;
    font-weight: 800;
    margin-bottom: .42rem;
    text-transform: uppercase;
}

.form-control,
.form-select {
    min-height: 40px;
    color: var(--ink);
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.form-control-sm,
.form-select-sm { min-height: 34px; }

.form-control:focus,
.form-select:focus {
    color: var(--ink);
    background-color: var(--white);
    border-color: var(--ink);
    box-shadow: 0 0 0 .18rem rgba(163, 230, 53, .32);
}

.form-control::placeholder { color: rgba(2, 6, 23, .42); }
.form-select option { color: var(--ink); background: var(--white); }

.btn {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 800;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-sm {
    min-height: 32px;
    font-size: .82rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    border-color: var(--line-strong);
    color: var(--ink);
    background: var(--white);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover {
    background: rgba(163, 230, 53, .16);
    border-color: var(--lime);
    color: var(--ink);
}

.text-muted { color: var(--muted) !important; }
.text-danger,
.text-primary { color: var(--ink) !important; }

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-hover-bg: rgba(163, 230, 53, .08);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: .95rem .8rem;
    border-bottom-color: rgba(2, 6, 23, .08);
    vertical-align: middle;
}

.table thead th {
    background: rgba(2, 6, 23, .055);
    color: rgba(2, 6, 23, .68);
    font-size: .72rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0;
    border-bottom: 1px solid var(--line);
}

.table tbody tr:hover { background: rgba(163, 230, 53, .08); }
.table td { color: var(--ink); }
.table td a { color: var(--ink); font-weight: 850; }
.table td a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); }
.table small { color: var(--muted); }

.alert {
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.alert-success,
.alert-danger {
    background: rgba(163, 230, 53, .14);
    border-color: rgba(163, 230, 53, .42);
    color: var(--ink);
}

.confirm-modal {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.confirm-modal .modal-header,
.confirm-modal .modal-footer { border-color: var(--line); }

.auth-page {
    background: var(--ink);
    color: var(--ink);
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    background: var(--ink);
}

.login-stage {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-topbar {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.login-topbar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: .84rem;
    font-weight: 850;
}

.login-topbar i { color: var(--ink); }

.login-topbar-badge {
    min-height: 32px;
    padding: 0 10px;
    background: rgba(163, 230, 53, .16);
    border: 1px solid rgba(163, 230, 53, .45);
    border-radius: 999px;
}

.login-panel {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(430px, 100%);
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.login-logo {
    width: 132px;
    height: auto;
    display: block;
    margin: 0 0 20px;
}

.login-card h1 {
    margin: 0 0 22px;
    font-size: 1.45rem;
    font-weight: 860;
    letter-spacing: 0;
}

.login-card label { margin-top: 16px; }

.login-card .btn {
    margin-top: 18px !important;
    min-height: 50px;
    font-size: 1rem;
}

.login-card small {
    display: block;
    margin-top: 14px;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-open);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #020617;
    color: var(--white);
    padding: 12px 10px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    border-right: 1px solid rgba(255, 255, 255, .10);
    transition: width .18s ease;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 42px;
    margin-bottom: 12px;
    padding: 0 9px;
    overflow: hidden;
}

.brand-logo { width: 88px; height: auto; display: block; }
.brand-icon { width: 32px; height: 32px; display: none; }

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: var(--lime);
    color: var(--ink);
    font-weight: 900;
}

.nav-menu {
    display: grid;
    gap: 3px;
    align-items: start;
    overflow: hidden;
}

.nav-menu a,
.sidebar-logout {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    height: 36px;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    color: rgba(255, 255, 255, .74);
    padding: 0 8px;
    border-radius: 7px;
    font-weight: 720;
    font-size: .74rem;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.nav-menu i,
.sidebar-logout i {
    width: 17px;
    flex: 0 0 17px;
    color: rgba(255, 255, 255, .88);
    font-size: .96rem;
    text-align: center;
}

.nav-menu span,
.sidebar-logout span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-badge {
    min-width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--lime);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, .75);
    font-size: .67rem;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 auto;
}

.nav-menu a:hover,
.nav-menu a.is-active,
.sidebar-logout:hover {
    color: var(--white);
    background: rgba(163, 230, 53, .12);
    border-color: rgba(163, 230, 53, .32);
}

.nav-menu a.is-active i,
.nav-menu a:hover i,
.sidebar-logout:hover i { color: var(--lime); }

.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
}

.sidebar-footer form {
    margin: 0;
}

.sidebar-logout {
    appearance: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.sidebar.is-collapsed { width: var(--sidebar-closed); }

.sidebar.is-collapsed .brand {
    justify-content: center;
    padding: 0;
}

.sidebar.is-collapsed .brand-logo,
.sidebar.is-collapsed .nav-menu span,
.sidebar.is-collapsed .sidebar-logout span { display: none; }

.sidebar.is-collapsed .brand-icon { display: block; }

.sidebar.is-collapsed .nav-badge {
    position: absolute;
    top: 5px;
    right: 9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: .62rem;
    border-color: #020617;
}

.sidebar.is-collapsed .nav-menu a,
.sidebar.is-collapsed .sidebar-logout {
    justify-content: center;
    padding: 0;
}

.sidebar.is-collapsed .nav-menu i,
.sidebar.is-collapsed .sidebar-logout i {
    width: auto;
    flex-basis: auto;
    font-size: 1.08rem;
}

html.sidebar-expanded .sidebar { width: var(--sidebar-open); }
html.sidebar-expanded .sidebar .brand { justify-content: flex-start; padding: 0 8px; }
html.sidebar-expanded .sidebar .brand-logo { display: block; }
html.sidebar-expanded .sidebar .brand-icon { display: none; }
html.sidebar-expanded .sidebar .nav-menu span,
html.sidebar-expanded .sidebar .sidebar-logout span { display: inline; }
html.sidebar-expanded .sidebar .nav-badge {
    position: static;
    min-width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0 5px;
    font-size: .67rem;
}
html.sidebar-expanded .sidebar .nav-menu a,
html.sidebar-expanded .sidebar .sidebar-logout { justify-content: flex-start; padding: 0 8px; }
html.sidebar-expanded .sidebar .nav-menu i,
html.sidebar-expanded .sidebar .sidebar-logout i { width: 17px; flex: 0 0 17px; font-size: .96rem; }

html.sidebar-expanded .sidebar + .main {
    margin-left: var(--sidebar-open);
    width: calc(100% - var(--sidebar-open));
}

html.sidebar-collapsed .sidebar { width: var(--sidebar-closed); }

html.sidebar-collapsed .sidebar + .main {
    margin-left: var(--sidebar-closed);
    width: calc(100% - var(--sidebar-closed));
}

.main {
    margin-left: var(--sidebar-open);
    width: calc(100% - var(--sidebar-open));
    min-height: 100vh;
    background: var(--bg);
    transition: margin-left .18s ease, width .18s ease;
}

.sidebar.is-collapsed + .main {
    margin-left: var(--sidebar-closed);
    width: calc(100% - var(--sidebar-closed));
}

.topbar {
    height: 66px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.search-box {
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 6, 23, .055);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    flex: 1;
    max-width: 560px;
    color: var(--muted);
}

.search-box:focus-within {
    background: var(--white);
    border-color: var(--ink);
    box-shadow: 0 0 0 .18rem rgba(163, 230, 53, .25);
}

.search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    color: var(--ink);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 8px;
    color: var(--ink);
    flex: 0 0 auto;
}

.icon-btn:hover {
    border-color: var(--lime);
    color: var(--ink);
    background: rgba(163, 230, 53, .16);
}

.notify-dot {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 900;
    border: 2px solid var(--white);
}

.notification-menu {
    width: min(380px, calc(100vw - 24px));
    padding: 9px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.notification-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 12px;
}

.notification-menu-head a {
    color: var(--ink);
    font-weight: 900;
    font-size: .84rem;
    text-decoration: underline;
    text-decoration-color: var(--lime);
}

.notification-mini {
    display: grid;
    gap: 4px;
    padding: 11px;
    border-radius: 8px;
}

.notification-mini:hover { background: rgba(163, 230, 53, .10); }
.notification-mini span { font-weight: 900; color: var(--ink); }
.notification-mini small,
.notification-empty { color: var(--muted); }
.notification-empty { padding: 14px 8px; }

.profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 5px 12px 5px 5px;
    background: var(--white);
    color: var(--ink);
    font-weight: 800;
}

.profile-chip > span:last-child {
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-chip:hover {
    border-color: var(--lime);
    color: var(--ink);
    background: rgba(163, 230, 53, .12);
}

.avatar {
    width: 32px;
    height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: var(--ink);
    color: var(--white);
    font-size: .86rem;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 auto;
    overflow: hidden;
}

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-lg {
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
}

.content {
    padding: 28px;
    max-width: 1520px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    margin: 0;
    color: var(--ink);
    font-weight: 880;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    letter-spacing: 0;
}

.eyebrow {
    color: var(--ink);
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 900;
    margin: 0 0 6px;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 999px;
    background: var(--lime);
    vertical-align: 1px;
}

.panel,
.metric-card,
.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.panel { padding: 18px; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-head h2 {
    color: var(--ink);
    font-size: 1rem;
    margin: 0;
    font-weight: 860;
}

.panel-head a {
    color: var(--ink);
    font-weight: 850;
    text-decoration: underline;
    text-decoration-color: var(--lime);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.metric-card {
    padding: 18px;
    min-height: 118px;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--lime);
}

.metric-card:nth-child(even) { background: rgba(163, 230, 53, .10); }

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 850;
}

.metric-card strong {
    display: block;
    color: var(--ink);
    font-size: 2rem;
    line-height: 1;
    margin-top: 18px;
    letter-spacing: 0;
}

.badge {
    border-radius: 999px;
    padding: .4rem .62rem;
    font-weight: 850;
    border: 1px solid transparent;
}

.badge-soft-secondary,
.badge-soft-info,
.badge-soft-success,
.badge-soft-warning,
.badge-soft-danger,
.badge-soft-dark {
    background: rgba(2, 6, 23, .055);
    color: var(--ink);
    border-color: rgba(2, 6, 23, .12);
}

.badge-soft-info,
.badge-soft-success {
    background: rgba(163, 230, 53, .18);
    border-color: rgba(163, 230, 53, .44);
}

.badge-soft-warning,
.badge-soft-danger,
.badge-soft-dark {
    background: rgba(2, 6, 23, .08);
    border-color: rgba(2, 6, 23, .18);
}

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

.project-card {
    position: relative;
    padding: 18px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow);
}

.project-card h2 {
    font-size: 1rem;
    font-weight: 860;
    margin: 0 0 8px;
    min-width: 0;
}

.project-card h2 a { color: var(--ink); }
.project-card h2 a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); }
.project-card p { color: var(--muted); min-height: 44px; margin-bottom: 16px; }
.project-color { position: absolute; inset: 0 auto 0 0; width: 5px; }

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    font-size: .88rem;
}

.meta-row b,
.meta-column b { color: var(--ink); }

.meta-column {
    display: grid;
    gap: 9px;
    color: var(--muted);
}

.task-list { display: grid; gap: 10px; }

.task-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.task-row:hover {
    border-color: var(--accent-line);
    background: rgba(163, 230, 53, .10);
}

.task-table th:last-child,
.task-table td:last-child {
    width: 280px;
    white-space: nowrap;
}

.task-table td {
    white-space: nowrap;
}

.task-table td:first-child {
    min-width: 180px;
    max-width: 360px;
}

.task-row-title {
    display: block;
    color: var(--ink);
    font-weight: 850;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-assignee-avatars {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.task-assignee-avatars > span {
    display: inline-flex;
    align-items: center;
}

.task-assignee-avatars > span + span {
    margin-left: -6px;
}

.task-assignee-avatars .avatar {
    border: 2px solid var(--white);
    box-shadow: 0 1px 0 rgba(2, 6, 23, .08);
}

.task-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 7px;
}

.task-table-actions form {
    margin: 0;
}

.task-table-actions .icon-btn {
    width: 34px;
    height: 34px;
}

.status-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
}

.comment-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.comment-list { display: grid; gap: 14px; }

.comment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.comment > div {
    min-width: 0;
}

.comment p { margin: 8px 0 0; }
.comment small,
.feed-item span,
.message-item small {
    color: var(--muted);
    display: block;
}

.attachment-form {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.attachment-list { display: grid; gap: 10px; }

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--surface-2);
}

.attachment-item:hover {
    border-color: var(--accent-line);
    background: rgba(163, 230, 53, .10);
}

.attachment-item i {
    color: var(--ink);
    font-size: 1.2rem;
}

.attachment-item span {
    display: grid;
    font-weight: 800;
    min-width: 0;
}

.attachment-item small {
    color: var(--muted);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.feed-item,
.message-item,
.notification-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    margin-bottom: 11px;
    background: var(--surface-2);
}

.feed-item strong,
.message-item strong,
.notification-row strong { color: var(--ink); }

.is-unread {
    border-color: var(--accent-line);
    background: rgba(163, 230, 53, .12);
}

.message-item p,
.notification-row p {
    margin: 8px 0;
    color: var(--ink);
}

.notification-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.user-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.user-line > div {
    min-width: 0;
}

.user-line small {
    display: block;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-panel {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-panel h2 {
    color: var(--ink);
    margin: 0 0 4px;
    font-weight: 860;
}

.profile-panel p {
    color: var(--muted);
    margin-bottom: 12px;
}

.kanban-board {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 72vh;
    padding: 14px 14px 18px;
    border: 1px solid rgba(2, 6, 23, .12);
    border-radius: 10px;
    background:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px),
        #fff;
    background-size: 32px 32px;
}

.kanban-column {
    background: rgba(2, 6, 23, .045);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    min-height: calc(72vh - 32px);
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: background .15s ease, border-color .15s ease, flex .18s ease, opacity .15s ease;
}

.kanban-column.is-over {
    background: rgba(163, 230, 53, .12);
    background: color-mix(in srgb, var(--kanban-status-color, var(--lime)) 10%, #fff);
    border-color: var(--kanban-status-color, var(--lime));
}

.kanban-column[data-drop-allowed="0"] { opacity: .78; }

.kanban-column header {
    margin-bottom: 14px;
}

.kanban-column-toggle {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 9px;
    padding: 7px 8px;
    overflow: hidden;
    text-align: left;
}

.kanban-column-toggle:hover,
.kanban-column-toggle:focus {
    border-color: var(--kanban-status-color, var(--lime));
    outline: none;
}

.kanban-column-title,
.kanban-column-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.kanban-column-title {
    flex: 1 1 auto;
    font-size: .95rem;
    font-weight: 860;
    overflow: hidden;
}

.kanban-column-title > span:last-child {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-column-actions {
    flex: 0 0 auto;
}

.kanban-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 999px;
    background: var(--kanban-status-color, var(--lime));
    box-shadow: 0 0 0 3px rgba(163, 230, 53, .16);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kanban-status-color, var(--lime)) 18%, transparent);
}

.kanban-count {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--white);
    display: grid;
    place-items: center;
    font-weight: 860;
    border: 1px solid var(--line);
    color: var(--ink);
}

.kanban-column-actions i {
    flex: 0 0 auto;
    color: var(--muted);
    line-height: 1;
    transition: transform .15s ease;
}

.kanban-column-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: calc(72vh - 104px);
}

.kanban-column.is-collapsed {
    flex: .42 1 0;
    min-height: calc(72vh - 32px);
    padding: 8px;
}

.kanban-column.is-collapsed .kanban-column-body {
    display: none;
}

.kanban-column.is-collapsed header {
    display: flex;
    flex: 1 1 auto;
    margin-bottom: 0;
}

.kanban-column.is-collapsed .kanban-column-toggle {
    min-height: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 7px;
}

.kanban-column.is-collapsed .kanban-column-title {
    flex: 0 1 auto;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    max-height: 190px;
}

.kanban-column.is-collapsed .kanban-column-title > span:last-child {
    white-space: nowrap;
}

.kanban-column.is-collapsed .kanban-column-actions {
    flex-direction: column-reverse;
}

.kanban-column.is-collapsed .kanban-column-actions i {
    transform: rotate(-90deg);
}

.kanban-card {
    background: var(--white);
    border: 1px solid var(--line);
    border: 1px solid color-mix(in srgb, var(--kanban-card-color, var(--line)) 58%, var(--line));
    border-left: 4px solid var(--kanban-card-color, var(--line));
    border-radius: 9px;
    padding: 13px;
    margin-bottom: 12px;
    min-width: 0;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: border-color .15s ease, transform .15s ease, opacity .15s ease;
}

.kanban-card.is-dragging {
    opacity: .55;
    transform: rotate(1deg);
}

.kanban-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.kanban-card-head a {
    color: var(--ink);
    font-weight: 860;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kanban-card-head a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--lime);
}

.kanban-card p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    min-width: 0;
    overflow-wrap: anywhere;
}

.kanban-card p span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.kanban-card .badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.kanban-card .meta-row {
    min-width: 0;
}

.kanban-card .meta-row small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kanban-card .form-select {
    width: 100%;
    min-width: 0;
}

.kanban-empty {
    border: 1px dashed rgba(2, 6, 23, .18);
    border-radius: 9px;
    padding: 13px;
    text-align: center;
    background: rgba(255, 255, 255, .62);
}

.kanban-column[data-kanban-status],
.kanban-card[data-kanban-card-status] {
    --kanban-status-color: #a3e635;
    --kanban-card-color: #a3e635;
}

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .sidebar { width: var(--sidebar-closed); }
    .sidebar .brand-logo,
    .sidebar .nav-menu span,
    .sidebar .sidebar-logout span { display: none; }
    .sidebar .brand { justify-content: center; padding: 0; }
    .sidebar .brand-icon { display: block; }
    .sidebar .nav-badge {
        position: absolute;
        top: 5px;
        right: 9px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: .62rem;
        border-color: #020617;
    }
    .sidebar .nav-menu a,
    .sidebar .sidebar-logout { justify-content: center; padding: 0; }
    .sidebar .nav-menu i,
    .sidebar .sidebar-logout i { width: auto; flex-basis: auto; font-size: 1.08rem; }
    .sidebar:not(.is-collapsed) { width: var(--sidebar-open); }
    .sidebar:not(.is-collapsed) .brand { justify-content: flex-start; padding: 0 8px; }
    .sidebar:not(.is-collapsed) .brand-logo { display: block; }
    .sidebar:not(.is-collapsed) .brand-icon { display: none; }
    .sidebar:not(.is-collapsed) .nav-menu span,
    .sidebar:not(.is-collapsed) .sidebar-logout span { display: inline; }
    .sidebar:not(.is-collapsed) .nav-badge {
        position: static;
        min-width: 18px;
        height: 18px;
        margin-left: auto;
        padding: 0 5px;
        font-size: .67rem;
    }
    .sidebar:not(.is-collapsed) .nav-menu a,
    .sidebar:not(.is-collapsed) .sidebar-logout { justify-content: flex-start; padding: 0 8px; }
    .sidebar:not(.is-collapsed) .nav-menu i,
    .sidebar:not(.is-collapsed) .sidebar-logout i { width: 17px; flex: 0 0 17px; font-size: .96rem; }
}

@media (max-width: 720px) {
    html.sidebar-expanded .sidebar + .main,
    html.sidebar-collapsed .sidebar + .main,
    .sidebar.is-collapsed + .main,
    .main {
        margin-left: var(--sidebar-closed);
        width: calc(100% - var(--sidebar-closed));
    }

    .content { padding: 20px 14px; }
    .topbar { padding-left: 14px; padding-right: 14px; }
    .search-box { display: none; }
    .topbar-actions { gap: 8px; }
    .sidebar { padding: 12px 8px; }
    .sidebar:not(.is-collapsed) { width: min(var(--sidebar-open), 82vw); }
    .sidebar:not(.is-collapsed) + .main {
        margin-left: min(var(--sidebar-open), 82vw);
        width: calc(100% - min(var(--sidebar-open), 82vw));
    }
    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .metric-grid,
    .card-grid { grid-template-columns: 1fr; }
    .task-row { grid-template-columns: 1fr; }
    .task-table-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .status-form,
    .notification-row,
    .profile-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .login-stage {
        width: 100%;
        min-height: 100vh;
    }
    .login-topbar {
        min-height: 54px;
        padding: 0 14px;
    }
    .login-panel {
        place-items: start center;
        padding: 20px 14px;
    }
    .login-card { padding: 24px; }
}

/* Modern UI refresh.
   Brand palette is locked to #a3e635, #020617 and white. */
:root {
    --ink: #020617;
    --lime: #a3e635;
    --accent: #a3e635;
    --accent-2: #a3e635;
    --danger: #020617;
    --warning: #020617;
    --white: #fff;
    --sidebar-open: 172px;
    --sidebar-closed: 64px;
    --bg: rgba(2, 6, 23, .045);
    --chrome: #020617;
    --surface: rgba(255, 255, 255, .96);
    --surface-2: rgba(2, 6, 23, .035);
    --surface-3: rgba(163, 230, 53, .12);
    --text: #020617;
    --muted: rgba(2, 6, 23, .62);
    --line: rgba(15, 23, 42, .10);
    --line-strong: rgba(15, 23, 42, .18);
    --accent-line: rgba(163, 230, 53, .50);
    --ring: rgba(163, 230, 53, .30);
    --shadow: 0 18px 50px rgba(15, 23, 42, .12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, .07);
    --radius: 8px;
}

html {
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background:
        radial-gradient(circle at top left, rgba(163, 230, 53, .12), transparent 30rem),
        linear-gradient(180deg, #fff 0%, rgba(2, 6, 23, .045) 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 450;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-head h1,
.panel-head h2,
.project-card h2,
.kanban-column h2,
.login-card h1 {
    font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 0;
}

a,
.table td a,
.project-card h2 a,
.kanban-card-head a {
    color: var(--ink);
    text-decoration: none;
}

a:hover,
.table td a:hover,
.project-card h2 a:hover,
.kanban-card-head a:hover {
    color: var(--ink);
    text-decoration: none;
}

label {
    color: rgba(2, 6, 23, .66);
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.form-control,
.form-select {
    min-height: 42px;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    font-weight: 500;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.form-control-sm,
.form-select-sm {
    min-height: 34px;
    font-size: .84rem;
}

.form-control:focus,
.form-select:focus,
.search-box:focus-within {
    color: var(--ink);
    background-color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem var(--ring);
}

.form-control::placeholder {
    color: rgba(2, 6, 23, .38);
}

.btn {
    min-height: 40px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 750;
    letter-spacing: 0;
    box-shadow: none;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #020617;
    border-color: #020617;
    color: #fff;
    box-shadow: 0 10px 22px rgba(2, 6, 23, .18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #a3e635;
    border-color: #a3e635;
    color: #020617;
    box-shadow: 0 14px 28px rgba(163, 230, 53, .26);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    background: #fff;
    border-color: var(--line);
    color: #020617;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: rgba(163, 230, 53, .16);
    border-color: rgba(163, 230, 53, .55);
    color: #020617;
}

.btn-outline-danger:hover {
    background: rgba(2, 6, 23, .06);
    border-color: rgba(2, 6, 23, .22);
    color: #020617;
}

.text-danger {
    color: var(--danger) !important;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-hover-bg: rgba(163, 230, 53, .08);
    border-collapse: separate;
    border-spacing: 0;
}

.table > :not(caption) > * > * {
    padding: .92rem .86rem;
    border-bottom-color: rgba(15, 23, 42, .075);
}

.table thead th {
    background: rgba(2, 6, 23, .035);
    color: rgba(2, 6, 23, .64);
    font-size: .72rem;
    font-weight: 800;
    text-transform: none;
    border-bottom: 1px solid var(--line);
}

.table tbody tr {
    transition: background .14s ease;
}

.table tbody tr:hover {
    background: rgba(163, 230, 53, .08);
}

.table td a {
    font-weight: 750;
}

.table small,
.text-muted {
    color: var(--muted) !important;
}

.alert {
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
}

.flash-toast-stack {
    position: fixed;
    right: 26px;
    bottom: 24px;
    z-index: 1080;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.flash-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(2, 6, 23, .16);
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: auto;
}

.flash-toast.fade {
    opacity: 0;
    transform: translateY(8px);
}

.flash-toast i {
    flex: 0 0 auto;
    margin-top: 2px;
}

.alert-success {
    background: rgba(163, 230, 53, .16);
    border-color: rgba(163, 230, 53, .45);
    color: #020617;
}

.alert-danger {
    background: #fff;
    border-color: rgba(2, 6, 23, .22);
    color: #020617;
}

.app-shell {
    background: transparent;
}

.sidebar {
    background: #020617;
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 14px 0 32px rgba(15, 23, 42, .12);
}

.brand {
    height: 42px;
    margin-bottom: 12px;
}

.nav-menu {
    gap: 3px;
}

.nav-menu a,
.sidebar-logout {
    height: 36px;
    color: rgba(255, 255, 255, .68);
    border-radius: var(--radius);
    font-size: .74rem;
    font-weight: 650;
}

.nav-menu i,
.sidebar-logout i {
    color: rgba(255, 255, 255, .72);
}

.nav-menu a:hover,
.nav-menu a.is-active,
.sidebar-logout:hover {
    color: #fff;
    background: rgba(255, 255, 255, .095);
    border-color: rgba(255, 255, 255, .12);
}

.nav-menu a.is-active {
    box-shadow: inset 3px 0 0 var(--accent-2);
}

.nav-menu a.is-active i,
.nav-menu a:hover i,
.sidebar-logout:hover i {
    color: #a3e635;
}

.main {
    background: transparent;
}

.topbar {
    height: 68px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    backdrop-filter: blur(16px);
}

.search-box {
    height: 42px;
    background: rgba(255, 255, 255, .82);
    border-color: rgba(15, 23, 42, .09);
    color: var(--muted);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.search-box input {
    font-weight: 550;
}

.icon-btn {
    width: 39px;
    height: 39px;
    background: rgba(255, 255, 255, .92);
    border-color: var(--line);
    border-radius: var(--radius);
    color: #020617;
    transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(163, 230, 53, .55);
    color: #020617;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.notify-dot {
    background: #a3e635;
    color: #020617;
    border-color: #fff;
}

.notification-menu,
.confirm-modal {
    border-radius: 12px;
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.notification-menu-head a,
.panel-head a {
    color: #020617;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: #a3e635;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.notification-mini:hover {
    background: rgba(163, 230, 53, .10);
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 42px;
    padding: 5px 12px 5px 5px;
    border-radius: 12px;
    border-color: var(--line);
    background: rgba(255, 255, 255, .92);
    color: #020617;
    font-weight: 700;
}

.profile-chip > span:last-child {
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-chip:hover {
    border-color: rgba(163, 230, 53, .55);
    color: #020617;
    background: #fff;
}

.avatar {
    width: 32px;
    height: 32px;
    aspect-ratio: 1 / 1;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: #020617;
    color: #fff;
    border-radius: 8px;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
}

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: .78rem;
}

.avatar-xs {
    width: 22px;
    height: 22px;
    font-size: .68rem;
    border-radius: 6px;
}

.avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    font-size: 1.55rem;
}

.content {
    padding: 30px;
    max-width: 1560px;
}

.page-head {
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.page-head h1 {
    color: var(--ink);
    font-size: clamp(1.75rem, 2vw, 2.2rem);
    font-weight: 850;
}

.eyebrow {
    color: rgba(2, 6, 23, .62);
    font-size: .79rem;
    font-weight: 750;
    text-transform: none;
}

.eyebrow::before {
    width: 7px;
    height: 7px;
    background: var(--accent-2);
}

.panel,
.metric-card,
.project-card {
    background: var(--surface);
    border-color: rgba(15, 23, 42, .085);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.panel {
    padding: 20px;
}

.panel-head h2 {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.metric-grid {
    gap: 16px;
}

.metric-card {
    min-height: 124px;
    padding: 20px;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.metric-card::before {
    width: 0;
}

.metric-card::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(163, 230, 53, .18);
}

.metric-card:nth-child(even) {
    background: var(--surface);
}

.metric-card:nth-child(2)::after {
    background: rgba(163, 230, 53, .18);
}

.metric-card:nth-child(3)::after {
    background: rgba(163, 230, 53, .18);
}

.metric-card:nth-child(4)::after {
    background: rgba(163, 230, 53, .18);
}

.metric-card:nth-child(5)::after {
    background: rgba(163, 230, 53, .18);
}

.metric-card:hover,
.project-card:hover,
.kanban-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow);
}

.metric-card span {
    color: rgba(2, 6, 23, .62);
    font-size: .84rem;
    font-weight: 700;
}

.metric-card strong {
    color: #020617;
    font-size: 2.15rem;
    font-weight: 850;
}

.badge {
    border-radius: 999px;
    padding: .36rem .62rem;
    font-size: .76rem;
    font-weight: 750;
}

.badge-soft-secondary {
    background: rgba(2, 6, 23, .055);
    color: #020617;
    border-color: rgba(2, 6, 23, .10);
}

.badge-soft-info {
    background: rgba(163, 230, 53, .18);
    color: #020617;
    border-color: rgba(163, 230, 53, .45);
}

.badge-soft-success {
    background: rgba(163, 230, 53, .18);
    color: #020617;
    border-color: rgba(163, 230, 53, .45);
}

.badge-soft-warning {
    background: rgba(2, 6, 23, .07);
    color: #020617;
    border-color: rgba(2, 6, 23, .14);
}

.badge-soft-danger {
    background: rgba(2, 6, 23, .07);
    color: #020617;
    border-color: rgba(2, 6, 23, .14);
}

.badge-soft-dark {
    background: #020617;
    color: #fff;
    border-color: #020617;
}

.project-card {
    padding: 20px;
}

.project-card h2 {
    font-size: 1.05rem;
    font-weight: 800;
}

.project-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-card-head h2 {
    flex: 1 1 auto;
}

.project-card-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.project-card p {
    color: var(--muted);
}

.project-color {
    width: 4px;
}

.meta-row,
.meta-column {
    color: var(--muted);
}

.task-row,
.comment,
.attachment-item,
.feed-item,
.message-item,
.notification-row {
    background: rgba(2, 6, 23, .035);
    border-color: rgba(15, 23, 42, .08);
    border-radius: var(--radius);
}

.task-row:hover,
.attachment-item:hover,
.notification-mini.is-unread,
.feed-item.is-unread,
.notification-row.is-unread,
.is-unread {
    background: rgba(163, 230, 53, .12);
    border-color: rgba(163, 230, 53, .45);
}

.assignee-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.assignee-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.assignee-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    padding: 5px 10px 5px 6px;
    color: #020617;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
    text-transform: none;
    transition: border-color .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
}

.assignee-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.assignee-option:has(input:checked) {
    color: #020617;
    background: rgba(163, 230, 53, .16);
    border-color: rgba(163, 230, 53, .55);
    box-shadow: 0 0 0 .16rem rgba(163, 230, 53, .16);
}

.avatar-upload-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.avatar-upload-cell .form-control {
    min-width: 0;
}

.assignee-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #020617;
    font-weight: 750;
    white-space: nowrap;
}

.assignee-pill-compact {
    gap: 6px;
    font-size: .82rem;
}

.approval-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: rgba(14, 165, 233, .08);
    border: 1px solid rgba(14, 165, 233, .2);
    border-radius: var(--radius);
}

.approval-box small {
    display: block;
    color: var(--muted);
}

.approval-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.approval-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-weight: 700;
}

.approval-item.is-approved {
    color: #14532d;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .3);
}

.approval-item small {
    font-weight: 800;
}

.task-show-page {
    max-width: 1320px;
}

.task-show-head {
    align-items: center;
}

.task-show-head h1 {
    overflow-wrap: anywhere;
}

.task-head-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.task-show-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 14px;
    align-items: start;
}

.task-show-main,
.task-show-sidebar {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.task-show-sidebar {
    position: sticky;
    top: 76px;
}

.task-description-panel {
    min-height: 190px;
}

.task-description-copy {
    color: #020617;
    font-size: .94rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.task-status-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    margin-bottom: 10px;
    padding: 9px 10px;
    background: rgba(2, 6, 23, .035);
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: var(--radius);
}

.task-status-current small,
.task-permission-note {
    color: var(--muted);
    font-weight: 700;
}

.task-status-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    max-width: none;
}

.task-permission-note {
    margin: 8px 0 0;
    font-size: .78rem;
}

.task-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.task-facts div {
    min-width: 0;
    padding: 9px 10px;
    background: rgba(2, 6, 23, .035);
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: var(--radius);
}

.task-facts dt {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.task-facts dd {
    margin: 3px 0 0;
    color: #020617;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.task-assignee-list {
    display: grid;
    gap: 7px;
}

.task-assignee-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    background: rgba(2, 6, 23, .035);
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: var(--radius);
    font-weight: 800;
}

.task-assignee-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.task-approval-panel .approval-box {
    margin-bottom: 10px;
    background: rgba(163, 230, 53, .12);
    border-color: rgba(163, 230, 53, .38);
}

.task-approval-panel .approval-box form,
.task-approval-panel .approval-box .btn {
    width: 100%;
}

.task-approval-panel .approval-list {
    gap: 7px;
}

.task-comments-panel .comment-form .btn {
    justify-self: start;
}

.task-history-panel .feed-item:last-child {
    margin-bottom: 0;
}

.task-attachments-panel .attachment-item span {
    overflow-wrap: anywhere;
}

.kanban-board {
    gap: 18px;
}

.kanban-column {
    background: rgba(2, 6, 23, .045);
    border-color: rgba(15, 23, 42, .08);
    border-radius: 12px;
    padding: 14px;
}

.kanban-column.is-over {
    background: rgba(163, 230, 53, .12);
    border-color: rgba(163, 230, 53, .55);
}

.kanban-column header {
    gap: 10px;
}

.kanban-column h2 {
    font-weight: 800;
}

.kanban-column header span {
    background: #fff;
    color: #020617;
    border-color: var(--line);
}

.kanban-column-toggle {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: rgba(2, 6, 23, .62);
}

.kanban-column-toggle:hover {
    color: #020617;
    border-color: rgba(163, 230, 53, .55);
}

.kanban-column.is-collapsed {
    grid-auto-rows: min-content;
    min-height: 0;
}

.kanban-column.is-collapsed .kanban-column-body {
    display: none;
}

.kanban-card {
    border-radius: 10px;
    border-color: rgba(15, 23, 42, .08);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.kanban-card p {
    color: var(--muted);
}

.kanban-empty {
    color: var(--muted);
    font-size: .9rem;
    padding: 18px 10px;
    text-align: center;
}

.kanban-column[data-kanban-status],
.kanban-card[data-kanban-card-status] {
    --kanban-status-color: #64748b;
    --kanban-card-color: #64748b;
}

.kanban-column[data-kanban-status="pendiente"],
.kanban-card[data-kanban-card-status="pendiente"] {
    --kanban-status-color: #64748b;
    --kanban-card-color: #64748b;
}

.kanban-column[data-kanban-status="en_progreso"],
.kanban-card[data-kanban-card-status="en_progreso"] {
    --kanban-status-color: #2563eb;
    --kanban-card-color: #2563eb;
}

.kanban-column[data-kanban-status="a_revision"],
.kanban-card[data-kanban-card-status="a_revision"] {
    --kanban-status-color: #d97706;
    --kanban-card-color: #d97706;
}

.kanban-column[data-kanban-status="finalizada"],
.kanban-card[data-kanban-card-status="finalizada"] {
    --kanban-status-color: #16a34a;
    --kanban-card-color: #16a34a;
}

.kanban-column[data-kanban-status="con_correcciones"],
.kanban-card[data-kanban-card-status="con_correcciones"] {
    --kanban-status-color: #ea580c;
    --kanban-card-color: #ea580c;
}

.kanban-column[data-kanban-status="pausada"],
.kanban-card[data-kanban-card-status="pausada"] {
    --kanban-status-color: #7c3aed;
    --kanban-card-color: #7c3aed;
}

.kanban-column[data-kanban-status="cancelada"],
.kanban-card[data-kanban-card-status="cancelada"] {
    --kanban-status-color: #dc2626;
    --kanban-card-color: #dc2626;
}

.kanban-column[data-kanban-status] {
    border-top: 3px solid var(--kanban-status-color);
}

.kanban-column[data-kanban-status].is-over {
    background: color-mix(in srgb, var(--kanban-status-color) 12%, #fff);
    border-color: var(--kanban-status-color);
}

.kanban-column[data-kanban-status] .kanban-column-toggle:hover,
.kanban-column[data-kanban-status] .kanban-column-toggle:focus {
    border-color: var(--kanban-status-color);
}

.kanban-column[data-kanban-status] .kanban-status-dot {
    background: var(--kanban-status-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kanban-status-color) 18%, transparent);
}

.kanban-card[data-kanban-card-status] {
    background: color-mix(in srgb, var(--kanban-card-color) 7%, #fff);
    border-color: color-mix(in srgb, var(--kanban-card-color) 36%, rgba(15, 23, 42, .1));
    border-left-color: var(--kanban-card-color);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--kanban-card-color) 12%, rgba(15, 23, 42, .06));
}

.kanban-card[data-kanban-card-status]:hover {
    border-color: color-mix(in srgb, var(--kanban-card-color) 54%, rgba(15, 23, 42, .12));
    border-left-color: var(--kanban-card-color);
}

.kanban-page-head {
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.kanban-page-head .eyebrow {
    display: none;
}

.kanban-page-head h1 {
    font-size: 1.55rem;
}

.kanban-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.kanban-total {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #020617;
    background: rgba(163, 230, 53, .16);
    border: 1px solid rgba(163, 230, 53, .45);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 800;
}

.kanban-filter-panel {
    padding: 0;
    overflow: hidden;
}

.kanban-filter-panel summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: #020617;
    cursor: pointer;
    list-style: none;
}

.kanban-filter-panel summary::-webkit-details-marker {
    display: none;
}

.kanban-filter-panel summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 850;
}

.kanban-filter-panel summary small {
    color: var(--muted);
    font-weight: 650;
}

.kanban-filter-panel[open] summary {
    border-bottom: 1px solid var(--line);
}

.kanban-filter-panel form {
    padding: 14px;
}

.kanban-board {
    min-height: calc(100vh - 235px);
    overflow-x: hidden;
    overflow-y: visible;
    align-items: flex-start;
    scroll-padding-left: 14px;
}

.kanban-column {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: calc(100vh - 270px);
}

.kanban-column.is-collapsed {
    flex: 0 0 76px;
    min-width: 76px;
    max-width: 76px;
}

.kanban-column-toggle {
    width: 100%;
    height: auto;
    min-height: 40px;
    display: flex;
}

.kanban-column.is-collapsed .kanban-column-toggle {
    min-height: calc(100vh - 310px);
}

@media (max-width: 720px) {
    .content {
        padding: 22px 14px;
    }

    .flash-toast-stack {
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
    }

    .topbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-head {
        align-items: flex-start;
    }

    .page-head h1 {
        font-size: 1.55rem;
    }

    .panel,
    .project-card,
    .metric-card {
        border-radius: 10px;
    }

    .assignee-picker {
        display: grid;
        grid-template-columns: 1fr;
    }

    .assignee-option {
        width: 100%;
    }
}

/* Content-first page rhythm shared across the app. */
.content {
    padding-top: 22px;
}

.page-head {
    align-items: center;
    min-height: 44px;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.page-head .eyebrow {
    display: none;
}

.page-head h1 {
    font-size: clamp(1.45rem, 1.6vw, 1.75rem);
    line-height: 1.15;
}

.page-head > div:first-child {
    min-width: 0;
}

.page-head > div:first-child h1 {
    overflow-wrap: anywhere;
}

.page-head .btn {
    min-height: 36px;
}

.panel {
    padding: 16px;
}

.panel.mb-4,
.metric-grid {
    margin-bottom: 14px !important;
}

.panel-head {
    margin-bottom: 12px;
}

.panel-head h2 {
    font-size: .98rem;
}

.filter-panel,
.kanban-filter-panel {
    padding: 0;
    overflow: hidden;
}

.filter-panel summary,
.kanban-filter-panel summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: #020617;
    cursor: pointer;
    list-style: none;
}

.filter-panel summary::-webkit-details-marker,
.kanban-filter-panel summary::-webkit-details-marker {
    display: none;
}

.filter-panel summary span,
.kanban-filter-panel summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 850;
}

.filter-panel summary small,
.kanban-filter-panel summary small {
    color: var(--muted);
    font-weight: 650;
}

.filter-panel[open] summary,
.kanban-filter-panel[open] summary {
    border-bottom: 1px solid var(--line);
}

.filter-panel form,
.kanban-filter-panel form {
    padding: 14px;
}

.compose-panel textarea {
    min-height: 96px;
}

.metric-grid {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 12px;
}

.metric-card {
    min-height: 92px;
    padding: 14px 16px;
}

.metric-card::after {
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
}

.metric-card strong {
    margin-top: 10px;
    font-size: 1.75rem;
}

.status-metric {
    --metric-color: #64748b;
    background: #fff;
    border-color: color-mix(in srgb, var(--metric-color) 38%, rgba(15, 23, 42, .1));
    box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
}

.status-metric::before {
    width: 4px;
    background: var(--metric-color);
}

.status-metric::after {
    display: none;
}

.status-metric span {
    color: #020617;
}

.status-metric strong {
    color: #020617;
}

.status-metric[data-metric-status="pendiente"] {
    --metric-color: #64748b;
}

.status-metric[data-metric-status="en_progreso"] {
    --metric-color: #2563eb;
}

.status-metric[data-metric-status="a_revision"] {
    --metric-color: #d97706;
}

.status-metric[data-metric-status="finalizada"] {
    --metric-color: #16a34a;
}

.status-metric[data-metric-status="vencidas"] {
    --metric-color: #dc2626;
}

.card-grid {
    gap: 14px;
}

.project-card {
    padding: 16px;
}

.project-card p {
    min-height: 32px;
    margin-bottom: 12px;
}

.table > :not(caption) > * > * {
    padding: .72rem .76rem;
}

.task-row,
.message-item,
.notification-row,
.feed-item,
.comment,
.attachment-item {
    padding: 11px;
    margin-bottom: 9px;
}

.message-item p,
.notification-row p {
    margin: 6px 0;
}

.profile-panel {
    padding: 16px;
}

.kanban-page-head {
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.kanban-board {
    min-height: calc(100vh - 225px);
}

@media (max-width: 991px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .content {
        padding-top: 18px;
    }

    .page-head {
        align-items: stretch;
        gap: 10px;
    }

    .page-head h1 {
        font-size: 1.35rem;
    }

    .page-head .btn,
    .page-head form,
    .page-head > a {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel summary,
    .kanban-filter-panel summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .kanban-board {
        flex-direction: column;
        gap: 12px;
        overflow-x: hidden;
    }

    .kanban-column,
    .kanban-column.is-collapsed {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: auto;
    }

    .kanban-column.is-collapsed header {
        display: block;
    }

    .kanban-column.is-collapsed .kanban-column-toggle {
        min-height: 40px;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
    }

    .kanban-column.is-collapsed .kanban-column-title {
        writing-mode: horizontal-tb;
        transform: none;
        max-height: none;
    }

    .kanban-column.is-collapsed .kanban-column-actions {
        flex-direction: row;
    }

    .kanban-column.is-collapsed .kanban-column-actions i {
        transform: rotate(-90deg);
    }
}

.general-note-modal {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.general-note-modal .modal-header,
.general-note-modal .modal-footer {
    border-color: var(--line);
}

.general-note-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(2, 6, 23, .035);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}

.note-tool {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
}

.note-tool:hover,
.note-tool:focus {
    border-color: rgba(163, 230, 53, .55);
    background: rgba(163, 230, 53, .14);
    color: var(--ink);
}

.note-tool-separator {
    width: 1px;
    height: 24px;
    flex: 0 0 auto;
    background: var(--line);
    margin: 0 2px;
}

.general-note-editor {
    min-height: 300px;
    max-height: min(58vh, 560px);
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    outline: 0;
    line-height: 1.55;
}

.general-note-editor:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 .18rem rgba(163, 230, 53, .25);
}

.general-note-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(2, 6, 23, .42);
}

.general-note-editor a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--lime);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.general-note-editor p,
.general-note-editor ul,
.general-note-editor ol {
    margin: 0 0 10px;
}

.general-note-editor p:last-child,
.general-note-editor ul:last-child,
.general-note-editor ol:last-child {
    margin-bottom: 0;
}

.general-note-meta {
    min-height: 22px;
    margin-top: 10px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
}

@media (max-width: 720px) {
    .general-note-modal .modal-body {
        padding: 14px;
    }

    .general-note-editor {
        min-height: 260px;
        max-height: 56vh;
    }
}

.public-share-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.excalidraw-body .content {
    max-width: none;
    padding: 0;
}

.excalidraw-page {
    min-height: calc(100vh - 66px);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.public-page .excalidraw-page {
    min-height: 100vh;
}

.bare-page .excalidraw-page {
    min-height: 100vh;
}

.excalidraw-topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 12;
}

.excalidraw-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.excalidraw-title img {
    width: 104px;
    height: auto;
    display: block;
}

.excalidraw-title p {
    margin: 0;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.excalidraw-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.excalidraw-sync {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.excalidraw-assign-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.excalidraw-assign-form .form-select {
    width: min(260px, 34vw);
    min-width: 170px;
}

.excalidraw-workspace {
    position: relative;
    flex: 1 1 auto;
    height: calc(100vh - 124px);
    min-height: 520px;
    width: 100%;
}

.public-page .excalidraw-workspace {
    height: calc(100vh - 58px);
    min-height: 520px;
}

.bare-page .excalidraw-workspace {
    height: calc(100vh - 58px);
    min-height: 520px;
}

.excalidraw-root-host,
.excalidraw-workspace .excalidraw {
    height: 100%;
    width: 100%;
}

.excalidraw-workspace[data-pan-cursor="1"] canvas {
    cursor: grab !important;
}

.excalidraw-workspace[data-pan-cursor="1"].is-panning canvas {
    cursor: grabbing !important;
}

.excalidraw-workspace .layer-ui__sidebar,
.excalidraw-workspace [data-testid="library-menu"] {
    display: none !important;
}

.excalidraw-workspace .App-menu_top__left,
.excalidraw-workspace .main-menu-trigger,
.excalidraw-workspace .sidebar-trigger,
.excalidraw-workspace .sidebar-trigger__label-element {
    visibility: hidden !important;
    pointer-events: none !important;
}

.excalidraw-workspace .help-icon,
.excalidraw-workspace .disable-zen-mode,
.excalidraw-workspace .mobile-misc-tools-container,
.excalidraw-workspace .scroll-back-to-content {
    display: none !important;
}

.excalidraw-loading,
.excalidraw-error {
    min-height: inherit;
    display: grid;
    place-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.excalidraw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 720px) {
    .excalidraw-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .excalidraw-sync,
    .excalidraw-assign-form {
        width: 100%;
    }

    .excalidraw-assign-form .form-select {
        width: 100%;
        min-width: 0;
    }
}

.public-page {
    background: rgba(2, 6, 23, .045);
}

.public-board-shell {
    min-height: 100vh;
}

.public-board-topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.public-board-brand img {
    width: 112px;
    height: auto;
    display: block;
}

.public-board-mode {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: #020617;
    background: rgba(163, 230, 53, .16);
    border: 1px solid rgba(163, 230, 53, .45);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 800;
    white-space: nowrap;
}

.public-board-main {
    padding: 24px;
}

.public-board-head .eyebrow {
    display: block;
}

.public-board-description {
    max-width: 920px;
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 650;
}

.public-kanban-board {
    min-height: calc(100vh - 172px);
}

.public-kanban-board .kanban-column[data-drop-allowed="0"] {
    opacity: 1;
}

.public-kanban-card {
    cursor: default;
}

.public-kanban-card:hover {
    transform: none;
}

.public-kanban-card .kanban-card-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #020617;
    font-weight: 850;
    line-height: 1.25;
}

.public-task-description {
    display: -webkit-box;
    margin-bottom: 10px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media (max-width: 720px) {
    .public-share-box {
        grid-template-columns: 1fr;
    }

    .public-board-topbar,
    .public-board-main {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.project-show-page .project-show-head {
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.project-show-page .project-show-head h1 {
    font-size: 1.45rem;
    line-height: 1.12;
}

.project-show-page .eyebrow {
    margin-bottom: 3px;
    font-size: .68rem;
}

.project-show-page .panel {
    padding: 12px;
}

.project-show-page .panel-head {
    margin-bottom: 8px;
}

.project-show-page .panel-head h2 {
    font-size: .9rem;
}

.project-show-page .btn {
    min-height: 32px;
    padding-top: .28rem;
    padding-bottom: .28rem;
}

.project-show-page .form-control,
.project-show-page .form-select {
    min-height: 34px;
    padding-top: .34rem;
    padding-bottom: .34rem;
    font-size: .84rem;
}

.project-task-head {
    align-items: center;
}

.project-task-count {
    min-width: 26px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(2, 6, 23, .12);
    border-radius: 999px;
    color: #020617;
    background: rgba(163, 230, 53, .2);
    font-size: .78rem;
    font-weight: 900;
}

.project-show-page .task-list {
    gap: 7px;
}

.project-show-page .project-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 10px;
}

.project-task-main {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.project-task-main strong {
    min-width: 0;
    color: #020617;
    font-size: .94rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.project-task-main small,
.project-task-meta small {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}

.project-task-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
}

.project-show-page .badge {
    padding: .26rem .48rem;
    font-size: .72rem;
}

.compact-share-panel {
    padding: 0 !important;
    overflow: hidden;
}

.compact-share-panel summary {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
}

.compact-share-panel summary::-webkit-details-marker {
    display: none;
}

.compact-share-panel summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #020617;
    font-size: .86rem;
    font-weight: 850;
}

.compact-share-panel summary small {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
}

.compact-share-panel[open] summary {
    border-bottom: 1px solid var(--line);
}

.compact-share-body {
    padding: 10px 12px 12px;
}

.project-show-page .comment-form {
    gap: 8px;
    margin-bottom: 10px;
}

.project-show-page .message-item,
.project-show-page .feed-item {
    padding: 8px 10px;
    margin-bottom: 7px;
}

.project-show-page .message-item p {
    display: -webkit-box;
    margin: 4px 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-show-page .meta-column {
    gap: 5px;
    font-size: .84rem;
}

.project-show-page .project-side-column .panel > p {
    margin-bottom: 8px;
    font-size: .84rem;
}

.project-show-page .user-line {
    gap: 8px;
    padding: 6px 0;
}

.project-show-page .user-line .avatar {
    width: 30px;
    height: 30px;
}

.project-show-page .user-line strong,
.project-show-page .message-item strong,
.project-show-page .feed-item strong {
    font-size: .84rem;
}

.project-show-page .user-line small,
.project-show-page .message-item small,
.project-show-page .feed-item span {
    font-size: .74rem;
}

@media (max-width: 991px) {
    .project-show-page .project-task-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-task-meta {
        justify-content: flex-start;
    }
}

/* Compact density for the authenticated app screens. */
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) {
    font-size: 13.5px;
    line-height: 1.38;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .content {
    padding: 18px 22px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .topbar {
    min-height: 54px;
    padding-inline: 18px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .search-box {
    height: 36px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .profile-chip {
    min-height: 34px;
    padding: 4px 10px 4px 4px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .page-head {
    align-items: center;
    min-height: 0;
    margin-bottom: 12px;
    padding-bottom: 10px;
    gap: 12px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .page-head h1 {
    font-size: clamp(1.28rem, 1.45vw, 1.62rem);
    line-height: 1.12;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .eyebrow {
    margin-bottom: 3px;
    font-size: .67rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) label {
    margin-bottom: .25rem;
    font-size: .68rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .btn {
    min-height: 34px;
    padding: .34rem .68rem;
    border-radius: 7px;
    font-size: .84rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .btn-sm {
    min-height: 29px;
    padding: .22rem .52rem;
    font-size: .76rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .form-control,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .form-select {
    min-height: 34px;
    padding-top: .34rem;
    padding-bottom: .34rem;
    border-radius: 7px;
    font-size: .84rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) textarea.form-control {
    min-height: 72px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .form-control-sm,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .form-select-sm {
    min-height: 30px;
    font-size: .78rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .panel,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .metric-card,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .project-card {
    border-radius: 8px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .panel {
    padding: 12px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .panel.mb-4,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .panel.mb-3,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .metric-grid {
    margin-bottom: 10px !important;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .panel.mt-4 {
    margin-top: 10px !important;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .panel-head {
    margin-bottom: 8px;
    gap: 10px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .panel-head h2 {
    font-size: .9rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .content > .row,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .content .row.g-4,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .content .row.g-3 {
    --bs-gutter-x: .85rem;
    --bs-gutter-y: .85rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .filter-panel,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-filter-panel {
    padding: 0;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .filter-panel summary,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-filter-panel summary {
    min-height: 36px;
    padding: 7px 11px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .filter-panel form,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-filter-panel form {
    padding: 10px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .table > :not(caption) > * > * {
    padding: .52rem .6rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .table thead th {
    font-size: .66rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .badge {
    padding: .25rem .46rem;
    font-size: .7rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .metric-grid {
    gap: 10px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .metric-card {
    min-height: 78px;
    padding: 12px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .metric-card strong {
    margin-top: 7px;
    font-size: 1.45rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .card-grid {
    gap: 10px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .project-card {
    padding: 12px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .project-card h2 {
    margin-bottom: 5px;
    font-size: .94rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .project-card p {
    min-height: 24px;
    margin-bottom: 8px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .meta-row {
    gap: 6px 10px;
    font-size: .8rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .task-list,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .comment-list,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .attachment-list {
    gap: 7px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .task-row,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .comment,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .attachment-item,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .feed-item,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .message-item,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .notification-row {
    padding: 8px 10px;
    margin-bottom: 7px;
    border-radius: 7px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .comment-form {
    gap: 8px;
    margin-bottom: 10px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .message-item p,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .notification-row p {
    margin: 4px 0;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .user-line {
    gap: 8px;
    padding: 6px 0;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .assignee-option {
    min-height: 32px;
    padding: 4px 9px 4px 5px;
    font-size: .8rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .avatar {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .avatar-xs {
    width: 20px;
    height: 20px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .avatar-lg {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    font-size: 1.25rem;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-page-head {
    margin-bottom: 8px;
    padding-bottom: 8px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-board {
    gap: 10px;
    min-height: calc(100vh - 205px);
    padding: 10px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-column {
    min-height: calc(100vh - 235px);
    padding: 10px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-column header {
    margin-bottom: 8px;
    gap: 8px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-column-toggle {
    min-height: 34px;
    padding: 5px 7px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-card {
    padding: 9px;
    margin-bottom: 8px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-card-head {
    margin-bottom: 7px;
    gap: 8px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .kanban-card p {
    margin-bottom: 7px;
    gap: 6px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .modal-header,
body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .modal-footer {
    padding: 10px 14px;
}

body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .modal-body {
    padding: 14px;
}

@media (max-width: 720px) {
    body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .content {
        padding: 14px 12px;
    }

    body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .page-head {
        gap: 8px;
        margin-bottom: 10px;
    }

    body:not(.auth-page):not(.public-page):not(.bare-page):not(.excalidraw-body) .page-head h1 {
        font-size: 1.28rem;
    }
}

@media (max-width: 991px) {
    .task-show-page {
        max-width: none;
    }

    .task-show-layout {
        grid-template-columns: 1fr;
    }

    .task-show-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .task-show-head {
        align-items: stretch;
    }

    .task-head-actions,
    .task-head-actions .btn {
        width: 100%;
    }

    .task-head-actions {
        justify-content: stretch;
    }

    .task-head-actions .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        width: 100%;
    }

    .task-status-form,
    .task-facts {
        grid-template-columns: 1fr;
    }

    .task-comments-panel .comment-form .btn {
        width: 100%;
    }
}
