:root {
    --bg: #f6f8ff;
    --bg-soft: #eef3ff;
    --surface: #ffffff;
    --surface-soft: #f8faff;
    --sidebar: #ffffff;
    --topbar: #03133f;
    --topbar-soft: #0a1d59;
    --text: #142a63;
    --muted: #7e90b8;
    --line: #dbe5f6;
    --primary: #4b6bff;
    --primary-dark: #3557f5;
    --success: #22c55e;
    --warning: #facc15;
    --danger: #fb7a45;
    --sky: #14b7ff;
    --navy: #03133f;
    --green: #22c55e;
    --yellow: #facc15;
    --orange: #fb7a45;
    --shadow: 0 14px 36px rgba(3, 19, 63, 0.08);
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Manrope", sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.app-body {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.theme-night {
    --bg: #08153f;
    --bg-soft: #0c1d57;
    --surface: #0d215e;
    --surface-soft: #102667;
    --sidebar: #08184a;
    --text: #ebf2ff;
    --muted: #98acd8;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 16px 40px rgba(2, 10, 36, 0.24);
}

body.theme-night .page-title,
body.theme-night .content-head-trail strong,
body.theme-night .section-header h2,
body.theme-night .section-header h3,
body.theme-night .project-card h3,
body.theme-night .board-column h3,
body.theme-night .dashboard-list-row strong,
body.theme-night .activity-content strong,
body.theme-night .project-card strong,
body.theme-night .ubold-card h4,
body.theme-night .project-show h2,
body.theme-night .checklist-header strong,
body.theme-night .form-label,
body.theme-night .custom-table th,
body.theme-night .custom-table td,
body.theme-night .card-modal-header .modal-title,
body.theme-night .card-modal-section-head h3,
body.theme-night .card-comment-item strong,
body.theme-night .card-attachment-item strong {
    color: #f3f7ff;
}

body.theme-night .sidebar-nav a,
body.theme-night .project-card-description,
body.theme-night .section-text,
body.theme-night .page-subtitle,
body.theme-night .content-head-trail,
body.theme-night .dashboard-list-row small,
body.theme-night .activity-content p,
body.theme-night .project-show p,
body.theme-night .card-comment-item p,
body.theme-night .card-modal-section-head p,
body.theme-night .ubold-card-copy,
body.theme-night .ubold-card-person span,
body.theme-night .ubold-card-meta,
body.theme-night .card-date {
    color: #a9b8dc;
}

body.theme-night .topbar-search,
body.theme-night .topbar-toggle,
body.theme-night .topbar-icon,
body.theme-night .topbar-brandmark {
    background: rgba(255, 255, 255, 0.1);
}

body.theme-night .project-stats div,
body.theme-night .card-modal-context span,
body.theme-night .board-chip,
body.theme-night .checklist-block,
body.theme-night .dashboard-list-row,
body.theme-night .dashboard-day-form .form-control,
body.theme-night .list-item-card,
body.theme-night .comment-item,
body.theme-night .attachment-item,
body.theme-night .custom-table tbody tr:hover,
body.theme-night .card-comment-item,
body.theme-night .card-attachment-item {
    background: rgba(255, 255, 255, 0.04);
}

body.theme-night .topbar-user-button,
body.theme-night .topbar-user-button strong {
    color: #fff;
}

.app-shell {
    flex: 1;
    min-height: 0;
    display: flex;
}

.sidebar {
    width: 248px;
    background:
        linear-gradient(180deg, rgba(63, 92, 255, 0.03), rgba(9, 199, 93, 0.015)),
        var(--sidebar);
    border-right: 1px solid var(--line);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
    transition: width 0.22s ease, padding 0.22s ease, transform 0.24s ease;
}

.sidebar-brand,
.project-card-header,
.list-item-title,
.attachment-item,
.topbar-left,
.topbar-right,
.topbar-user,
.auth-brand,
.ubold-card-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark,
.user-avatar,
.mini-user {
    display: grid;
    place-items: center;
    border-radius: 999px;
    overflow: hidden;
    font-weight: 800;
    color: #fff;
}

.user-avatar {
    font-size: 0.88rem;
    letter-spacing: 0.03em;
}

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

.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.brand-logo-sidebar-full {
    width: 188px;
}

.brand-logo-sidebar-compact {
    display: none;
    width: 42px;
}

.brand-logo-auth {
    width: min(240px, 100%);
}

.brand-logo-auth-login {
    width: 100%;
    max-width: none;
}

.brand-logo-showcase {
    width: min(360px, 100%);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.18));
}

.brand-logo-landing {
    width: min(210px, 100%);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.18));
}

.brand-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--green));
    box-shadow: 0 14px 30px rgba(63, 92, 255, 0.24);
}

.sidebar-brand strong,
.auth-brand h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0;
}

.sidebar-brand small,
.topbar-user small,
.page-subtitle,
.section-text,
.project-card-header p,
.dashboard-list-row small,
.activity-content p,
.footer-bar,
.auth-brand p,
.auth-showcase-copy p,
.project-card-description,
.board-card p {
    color: var(--muted);
}

.sidebar-brand {
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-direction: column;
    min-height: 86px;
    padding: 6px 8px 2px;
}

.sidebar-group {
    display: grid;
    gap: 10px;
}

.sidebar-label {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 0 8px;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    color: #64748b;
    font-weight: 500;
    transition: 0.18s ease;
}

.sidebar-nav a i {
    font-size: 1rem;
    flex: 0 0 auto;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--primary);
    background: rgba(63, 92, 255, 0.1);
    box-shadow: inset 3px 0 0 rgba(63, 92, 255, 0.95);
}

body.sidebar-collapsed .sidebar {
    width: 88px;
    padding-inline: 12px;
}

body.sidebar-collapsed .sidebar-brand {
    min-height: 74px;
    padding-top: 4px;
}

body.sidebar-collapsed .brand-logo-sidebar-full,
body.sidebar-collapsed .sidebar-label {
    display: none;
}

body.sidebar-collapsed .brand-logo-sidebar-compact {
    display: block;
}

body.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
    font-size: 0;
    box-shadow: none;
}

body.sidebar-collapsed .sidebar-nav a i {
    font-size: 1.15rem;
}

body.sidebar-collapsed .sidebar-nav a:hover,
body.sidebar-collapsed .sidebar-nav a.active {
    box-shadow: none;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        var(--topbar);
    min-height: 70px;
    padding: 12px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.topbar-toggle,
.topbar-icon {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.topbar-toggle:hover,
.topbar-icon:hover,
.topbar-user-button:hover,
.topbar-brandmark:hover {
    background: rgba(255, 255, 255, 0.14);
}

.topbar-brandmark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.topbar-brandmark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.topbar-search {
    width: min(360px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
}

.topbar-search input {
    background: transparent;
    border: 0;
    color: #fff;
    min-height: 42px;
    padding: 0;
}

.topbar-search input::placeholder {
    color: #94a3b8;
}

.topbar-search input:focus,
.toolbar-search input:focus,
.board-toolbar-search input:focus,
.auth-input input:focus {
    box-shadow: none;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.topbar-icon-alert {
    position: relative;
}

.topbar-icon-alert span {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 0.68rem;
    display: grid;
    place-items: center;
}

.btn-topbar {
    border-radius: 10px;
    min-height: 40px;
}

.topbar-user {
    padding-left: 8px;
}

.user-avatar,
.mini-user {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--green));
}

.topbar-user-button {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 0 0 8px;
    cursor: pointer;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.topbar-panel-group {
    position: relative;
}

.topbar-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 320px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(7, 26, 85, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 42px rgba(2, 10, 36, 0.32);
    z-index: 50;
    max-width: calc(100vw - 32px);
}

.topbar-panel[hidden] {
    display: none !important;
}

.topbar-panel-head {
    display: grid;
    gap: 2px;
    margin-bottom: 12px;
}

.topbar-panel-head strong {
    color: #fff;
    font-size: 0.96rem;
}

.topbar-panel-head small {
    color: rgba(226, 232, 240, 0.72);
}

.topbar-shortcuts-grid,
.topbar-user-links,
.topbar-notification-list {
    display: grid;
    gap: 8px;
}

.topbar-shortcut-link,
.topbar-user-links a,
.topbar-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #e2e8f0;
    transition: 0.16s ease;
}

.topbar-shortcut-link:hover,
.topbar-user-links a:hover,
.topbar-notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.topbar-shortcut-link i,
.topbar-user-links a i {
    color: #9ec0ff;
    margin-top: 1px;
}

.topbar-user-links a {
    align-items: center;
}

.topbar-notification-item strong {
    display: block;
    color: #fff;
    font-size: 0.88rem;
}

.topbar-notification-item p,
.topbar-notification-item small {
    margin: 0;
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.4;
}

.topbar-notification-bullet {
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--green));
    flex: 0 0 auto;
}

.topbar-notification-empty {
    min-height: 72px;
    display: grid;
    place-items: center;
    gap: 6px;
    color: rgba(226, 232, 240, 0.76);
    text-align: center;
}

.topbar-shortcuts-panel {
    width: 300px;
}

.topbar-user-panel {
    width: 260px;
}

.topbar-user-button strong {
    font-size: 1rem;
    line-height: 1.1;
}

.app-content {
    padding: 26px;
}

.content-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--navy);
}

.content-head-trail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.content-head-trail strong {
    color: #58709e;
    font-weight: 500;
}

.surface-card,
.project-card,
.stat-card,
.auth-panel,
.error-card,
.board-toolbar,
.board-column,
.ubold-card,
.comment-item,
.attachment-item,
.label-admin-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.surface-card,
.board-toolbar {
    padding: 22px;
}

.toolbar,
.board-toolbar,
.project-actions,
.dashboard-panels,
.dashboard-list-row,
.activity-row,
.ubold-card-meta,
.auth-meta,
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.toolbar,
.board-toolbar,
.project-actions,
.dashboard-list-row,
.activity-row,
.ubold-card-meta,
.auth-meta,
.form-actions {
    align-items: center;
    justify-content: space-between;
}

.toolbar-search,
.board-toolbar-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 14px;
    min-height: 46px;
}

.toolbar-search input,
.board-toolbar-search input {
    border: 0;
    padding: 0;
}

.toolbar-listing {
    gap: 18px;
}

.toolbar-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(75, 107, 255, 0.16);
    flex: 0 0 auto;
}

.toolbar-primary-action i {
    margin: 0;
    line-height: 1;
}

.toolbar-secondary-action {
    box-shadow: none;
}

.projects-page-actions-group,
.import-inline-callout,
.import-panel-head,
.import-example-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.import-inline-callout {
    padding: 18px 22px;
}

.import-inline-callout strong {
    display: block;
    margin-bottom: 4px;
}

.import-inline-callout p {
    color: var(--muted);
}

.import-layout,
.import-example-grid {
    display: grid;
    gap: 20px;
}

.import-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.import-panel {
    padding: 24px;
}

.import-panel-head {
    margin-bottom: 20px;
    align-items: flex-start;
}

.import-panel-head h2 {
    margin: 6px 0 8px;
    font-size: 1.4rem;
    color: var(--navy);
}

.import-panel-head p,
.import-side-note,
.import-example-card ul,
.import-example-card li {
    color: var(--muted);
}

.import-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.1);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.import-textarea {
    min-height: 320px;
    padding: 16px 18px;
    border-radius: 14px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    background: #fbfcff;
}

.import-textarea-compact {
    min-height: 180px;
}

.import-side-note,
.import-example-card {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.import-side-note strong,
.import-example-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--navy);
}

.import-side-note ul,
.import-example-card ul {
    padding-left: 18px;
}

.toolbar-search-quiet {
    flex: 0 1 420px;
    margin-left: auto;
    min-height: 42px;
    padding-inline: 12px;
    background: rgba(248, 250, 255, 0.9);
    border-color: rgba(3, 19, 63, 0.08);
    color: #8a9abc;
    box-shadow: none;
}

.toolbar-search-quiet input {
    min-height: 40px;
    font-size: 0.94rem;
    color: var(--navy);
}

.toolbar-search-quiet input::placeholder {
    color: #8fa0bf;
}

.btn,
.form-control,
.form-select {
    border-radius: 10px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(63, 92, 255, 0.18);
}

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

.dashboard-stats,
.dashboard-panels,
.project-grid,
.label-admin-grid {
    display: grid;
    gap: 20px;
}

.dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.dashboard-panels {
    grid-template-columns: 1fr 1fr;
}

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

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

.stat-card {
    min-height: 110px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.28rem;
}

.soft-violet {
    background: rgba(63, 92, 255, 0.14);
    color: var(--primary);
}

.soft-mint {
    background: rgba(16, 196, 105, 0.14);
    color: var(--success);
}

.soft-sky {
    background: rgba(57, 175, 209, 0.14);
    color: var(--sky);
}

.soft-amber {
    background: rgba(249, 188, 11, 0.16);
    color: #d18d00;
}

.stat-copy strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-copy span {
    color: var(--muted);
}

.section-header h2,
.section-header h3,
.project-card h3,
.board-column h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-header-form {
    align-items: flex-end;
}

.dashboard-day-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-day-form .form-control {
    width: 170px;
}

.dashboard-list,
.activity-table,
.stack-list,
.comment-list,
.attachment-list,
.checklist-items,
.label-selector {
    display: grid;
    gap: 12px;
}

.dashboard-list-row,
.list-item-card,
.comment-item,
.attachment-item {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
}

.dashboard-day-row {
    align-items: stretch;
}

.dashboard-day-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-day-tags {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.deadline-chip {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 196, 27, 0.18);
    color: #cc9700;
    font-size: 0.82rem;
    font-weight: 600;
}

.activity-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

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

.activity-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(63, 92, 255, 0.14);
    color: var(--primary);
    font-weight: 700;
    overflow: hidden;
}

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

.activity-content {
    flex: 1;
}

.activity-content strong,
.dashboard-list-row strong,
.project-card strong {
    display: block;
}

.dashboard-clean-shell {
    display: grid;
    gap: 22px;
}

.dashboard-clean-header {
    margin-bottom: 20px;
}

.dashboard-clients-surface,
.dashboard-agenda-surface {
    position: relative;
    overflow: hidden;
}

.dashboard-clients-surface {
    background:
        radial-gradient(circle at top left, rgba(75, 107, 255, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 18%),
        var(--surface);
}

.dashboard-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 16px;
}

.dashboard-client-tile,
.dashboard-empty-card {
    min-height: 166px;
    padding: 18px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(248, 250, 255, 0.9);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-client-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(75, 107, 255, 0.28);
    box-shadow: 0 18px 36px rgba(3, 19, 63, 0.08);
}

.dashboard-client-logo {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(75, 107, 255, 0.16), rgba(34, 197, 94, 0.1));
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dashboard-client-logo.has-image {
    background: #fff;
    padding: 12px;
}

.dashboard-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dashboard-client-tile strong,
.dashboard-empty-card strong {
    font-size: 0.98rem;
    line-height: 1.3;
}

.dashboard-client-tile small,
.dashboard-empty-card p {
    margin: 0;
    color: var(--muted);
}

.dashboard-empty-card {
    justify-items: start;
    text-align: left;
}

.dashboard-agenda-surface {
    min-height: 50vh;
    background:
        linear-gradient(180deg, rgba(3, 19, 63, 0.015), rgba(255, 255, 255, 0)),
        var(--surface);
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dashboard-agenda-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-agenda-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-summary-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(75, 107, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(75, 107, 255, 0.06), rgba(255, 255, 255, 0.96));
}

.dashboard-summary-card strong {
    font-size: 1.3rem;
    color: var(--navy);
}

.dashboard-summary-card span {
    color: var(--muted);
    font-size: 0.88rem;
}

.dashboard-total-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(3, 19, 63, 0.05);
    border: 1px solid rgba(3, 19, 63, 0.06);
    color: var(--navy);
    font-weight: 700;
}

.dashboard-agenda-table {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-soft);
    overflow: hidden;
}

.dashboard-agenda-head,
.dashboard-agenda-row {
    display: grid;
    grid-template-columns: 72px minmax(240px, 1.75fr) minmax(170px, 1fr) minmax(160px, 0.95fr) 130px 126px;
    gap: 14px;
    align-items: center;
}

.dashboard-agenda-head {
    padding: 16px 18px;
    background: rgba(3, 19, 63, 0.04);
    border-bottom: 1px solid var(--line);
    color: #607495;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-agenda-body {
    min-height: 50vh;
    max-height: 50vh;
    overflow: auto;
}

.dashboard-agenda-row {
    position: relative;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-agenda-row::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--dashboard-row-accent, var(--primary));
}

.dashboard-agenda-row.is-done-row::before {
    opacity: 0.48;
}

.dashboard-agenda-row:last-child {
    border-bottom: 0;
}

.dashboard-status-cell,
.dashboard-action-cell,
.dashboard-owner-cell,
.dashboard-task-client,
.dashboard-task-title-group,
.dashboard-tag-cell,
.dashboard-date-cell,
.dashboard-owner-copy {
    display: flex;
}

.dashboard-status-cell,
.dashboard-action-cell {
    justify-content: center;
}

.dashboard-task-toggle,
.dashboard-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: #62748d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.dashboard-task-toggle:hover,
.dashboard-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(75, 107, 255, 0.35);
    color: var(--primary);
}

.dashboard-task-toggle.is-done {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: var(--success);
}

.dashboard-task-cell,
.dashboard-owner-copy,
.dashboard-date-cell {
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.dashboard-task-title-group {
    gap: 8px;
}

.dashboard-task-title-group strong,
.dashboard-owner-copy strong,
.dashboard-date-cell strong {
    color: var(--navy);
}

.dashboard-task-title-group small,
.dashboard-task-client span,
.dashboard-owner-copy small,
.dashboard-date-cell small {
    color: var(--muted);
}

.dashboard-task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-task-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 107, 255, 0.12);
    background: rgba(75, 107, 255, 0.08);
    color: var(--dashboard-chip-accent, var(--primary));
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-task-meta-chip.is-neutral {
    border-color: rgba(3, 19, 63, 0.08);
    background: rgba(3, 19, 63, 0.06);
    color: #5d6f8a;
}

.dashboard-task-description {
    margin: 0;
    color: #5d6f8a;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-task-client,
.dashboard-owner-cell,
.dashboard-action-cell,
.dashboard-tag-cell {
    align-items: center;
    gap: 10px;
}

.dashboard-task-client-logo,
.dashboard-owner-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(75, 107, 255, 0.12);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
}

.dashboard-task-client-logo.has-image {
    background: #fff;
    border: 1px solid rgba(3, 19, 63, 0.08);
    padding: 5px;
}

.dashboard-task-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dashboard-owner-avatar {
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(75, 107, 255, 0.18), rgba(34, 197, 94, 0.14));
    color: var(--navy);
    flex: 0 0 auto;
}

.dashboard-owner-avatar.has-image {
    background: #fff;
    border: 1px solid rgba(3, 19, 63, 0.08);
}

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

.dashboard-tag-cell {
    flex-wrap: wrap;
}

.dashboard-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-tag-priority.priority-urgente {
    background: rgba(251, 122, 69, 0.14);
    color: var(--danger);
}

.dashboard-tag-priority.priority-alta {
    background: rgba(250, 204, 21, 0.18);
    color: #b98700;
}

.dashboard-tag-priority.priority-media {
    background: rgba(75, 107, 255, 0.12);
    color: var(--primary);
}

.dashboard-tag-priority.priority-baixa {
    background: rgba(20, 183, 255, 0.12);
    color: var(--sky);
}

.dashboard-tag-status.status-open {
    background: rgba(3, 19, 63, 0.08);
    color: #5e708a;
}

.dashboard-tag-status.status-done {
    background: rgba(34, 197, 94, 0.14);
    color: var(--success);
}

.dashboard-action-cell {
    gap: 8px;
}

.dashboard-action-cell form {
    margin: 0;
}

.dashboard-action-btn.is-danger:hover {
    color: var(--danger);
    border-color: rgba(251, 122, 69, 0.28);
}

.dashboard-actions-column {
    text-align: center;
}

.dashboard-empty-agenda {
    min-height: 50vh;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 28px;
    text-align: center;
}

.dashboard-empty-agenda strong {
    color: var(--navy);
}

.dashboard-empty-agenda p {
    margin: 0;
    max-width: 420px;
    color: var(--muted);
}

.dashboard-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: rgba(75, 107, 255, 0.12);
    color: var(--primary);
    font-size: 1.6rem;
}

.project-card {
    padding: 22px;
    display: grid;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.project-card-meta,
.label-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card-description {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.project-card-body {
    display: grid;
    gap: 14px;
}

.project-board-card {
    padding: 0;
    overflow: hidden;
}

.project-card-cover {
    height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    opacity: 0.96;
}

.project-board-card .project-card-body {
    padding: 18px 18px 18px;
}

.project-card-create {
    min-height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(63, 92, 255, 0.06), rgba(9, 199, 93, 0.02)),
        var(--surface);
}

.project-card-create div {
    max-width: 220px;
    display: grid;
    gap: 10px;
}

.project-card-create i {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(63, 92, 255, 0.12);
    color: var(--primary);
    font-size: 1.2rem;
}

.project-card-create span {
    color: var(--muted);
    font-size: 0.92rem;
}

.projects-page-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.projects-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(3, 19, 63, 0.08);
    background:
        radial-gradient(circle at top left, rgba(75, 107, 255, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f5f8ff 52%, #eef4ff 100%);
    box-shadow: 0 24px 60px rgba(3, 19, 63, 0.08);
}

.projects-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.46) 46%, transparent 100%);
    pointer-events: none;
}

.projects-hero-copy,
.projects-hero-metrics {
    position: relative;
    z-index: 1;
}

.projects-hero-copy {
    display: grid;
    align-content: center;
    gap: 16px;
}

.projects-hero-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.1);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.projects-hero-copy h2 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--navy);
}

.projects-hero-copy p {
    margin: 0;
    max-width: 620px;
    color: rgba(3, 19, 63, 0.68);
    font-size: 1rem;
    line-height: 1.75;
}

.projects-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.projects-hero-inline-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(3, 19, 63, 0.08);
    color: #49628f;
    font-weight: 600;
    box-shadow: 0 14px 36px rgba(3, 19, 63, 0.06);
}

.projects-hero-inline-note i {
    color: var(--primary);
}

.projects-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.projects-metric-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(3, 19, 63, 0.08);
    box-shadow: 0 18px 44px rgba(3, 19, 63, 0.06);
    backdrop-filter: blur(10px);
}

.projects-metric-card span,
.projects-metric-card small {
    color: #7283a7;
}

.projects-metric-card span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.projects-metric-card strong {
    font-size: 2rem;
    line-height: 1;
    color: var(--navy);
}

.projects-metric-card small {
    line-height: 1.5;
}

.projects-toolbar-shell {
    padding: 18px 20px;
    border-radius: 22px;
}

.projects-toolbar {
    margin-top: 0;
    gap: 18px;
}

.projects-toolbar-copy {
    display: grid;
    gap: 4px;
}

.projects-toolbar-copy strong {
    color: var(--navy);
    font-size: 1rem;
}

.projects-toolbar-copy span {
    color: var(--muted);
    line-height: 1.6;
}

.projects-search-form {
    position: relative;
}

.projects-search-reset {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(3, 19, 63, 0.06);
    color: #64748b;
    flex: 0 0 auto;
}

.projects-search-reset:hover {
    background: rgba(75, 107, 255, 0.14);
    color: var(--primary);
}

.project-grid-immersive {
    gap: 24px;
}

.project-card-immersive {
    padding: 0;
    position: relative;
    overflow: visible;
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(3, 19, 63, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card-immersive:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(3, 19, 63, 0.12);
}

.project-card-deadline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: #5f7297;
    font-size: 0.82rem;
    font-weight: 700;
}

.project-card-deadline.is-overdue {
    background: rgba(251, 122, 69, 0.1);
    border-color: rgba(251, 122, 69, 0.22);
    color: #da5f30;
}

.project-card-deadline.is-scheduled {
    color: var(--navy);
}

.project-card-deadline.is-unscheduled {
    color: var(--muted);
}

.project-card-body-immersive {
    gap: 18px;
    padding: 20px;
}

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

.project-card-heading-side {
    position: relative;
    display: grid;
    justify-items: end;
    gap: 10px;
    flex: 0 0 auto;
}

.surface-menu-wrap {
    position: relative;
}

.project-card-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.project-card-menu {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(75, 107, 255, 0.12);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(75, 107, 255, 0.08);
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.project-card-menu:hover,
.project-card-menu.show {
    transform: translateY(-1px);
    background: rgba(75, 107, 255, 0.14);
}

.project-card-menu i {
    line-height: 1;
}

.project-card-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 24;
    background: var(--surface);
    min-width: 192px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(3, 19, 63, 0.12);
}

.project-card-dropdown[hidden] {
    display: none !important;
}

.project-card-dropdown form {
    margin: 0;
}

.project-card-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #526581;
    font-weight: 600;
    text-align: left;
}

.project-card-dropdown-item i {
    color: var(--primary);
}

.project-card-dropdown-item:hover,
.project-card-dropdown-item:focus {
    background: rgba(75, 107, 255, 0.08);
    color: var(--navy);
}

.project-card-dropdown-item.is-danger {
    color: #d85d32;
}

.project-card-dropdown-item.is-danger i {
    color: #d85d32;
}

.project-card-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(75, 107, 255, 0.08);
    border: 1px solid rgba(75, 107, 255, 0.12);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease;
}

.project-card-open:hover {
    transform: translateY(-1px);
    background: rgba(75, 107, 255, 0.14);
    color: var(--primary-dark);
}

.client-card-logo-fallback {
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.client-card-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.client-card-status-chip i {
    font-size: 1rem;
    line-height: 1;
}

.client-card-status-chip.is-active {
    color: #0b9d4d;
    background: rgba(9, 199, 93, 0.12);
    border-color: rgba(9, 199, 93, 0.18);
}

.client-card-status-chip.is-inactive {
    color: #64748b;
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.2);
}

.client-card-contact {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(75, 107, 255, 0.06), rgba(75, 107, 255, 0.02)),
        #f8faff;
    border: 1px solid rgba(75, 107, 255, 0.1);
}

.client-card-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(3, 19, 63, 0.08);
}

.client-card-contact-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.client-card-contact-row strong {
    color: var(--navy);
    font-size: 0.92rem;
}

.client-card-contact-row span {
    color: #5f7297;
    text-align: right;
    line-height: 1.5;
}

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

.client-card-stat {
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.client-card-stat strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
}

.client-card-stat span {
    color: var(--muted);
    font-size: 0.84rem;
}

.project-card-client-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(75, 107, 255, 0.12), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(75, 107, 255, 0.12);
    box-shadow: 0 14px 28px rgba(3, 19, 63, 0.06);
    flex: 0 0 auto;
}

.project-card-client-logo.has-image {
    background: #fff;
    padding: 8px;
}

.project-card-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card-client-logo .project-dot {
    box-shadow: none;
}

.project-card-description-immersive {
    min-height: 66px;
    color: #60718f;
    line-height: 1.7;
}

.badge-project-alert {
    background: rgba(251, 122, 69, 0.14);
    color: #da5f30;
}

.project-progress-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(75, 107, 255, 0.06), rgba(75, 107, 255, 0.02)),
        #f8faff;
    border: 1px solid rgba(75, 107, 255, 0.1);
}

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

.project-progress-head strong {
    color: var(--navy);
    font-size: 0.96rem;
}

.project-progress-head span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.project-progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(3, 19, 63, 0.08);
}

.project-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 10px 20px rgba(3, 19, 63, 0.16);
}

.project-progress-card small {
    color: var(--muted);
    line-height: 1.5;
}

.project-stats-immersive div {
    background: #fff;
}

.empty-card-projects {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 320px;
    align-content: center;
    padding: 36px;
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(75, 107, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff, #f8fbff);
}

.empty-card-projects strong {
    color: var(--navy);
    font-size: 1.1rem;
}

.empty-card-projects p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.empty-card-projects-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(75, 107, 255, 0.08);
    color: var(--primary);
    font-size: 1.8rem;
}

.project-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

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

.project-stats div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fbfcfe;
    border: 1px solid var(--line);
}

.project-stats strong {
    font-size: 1rem;
}

.project-stats span {
    color: var(--muted);
    font-size: 0.84rem;
}

body.theme-night .projects-hero {
    background:
        radial-gradient(circle at top left, rgba(75, 107, 255, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(13, 33, 94, 0.98) 0%, rgba(8, 21, 63, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .projects-hero-copy h2,
body.theme-night .projects-metric-card strong,
body.theme-night .projects-toolbar-copy strong {
    color: #f3f7ff;
}

body.theme-night .projects-hero-copy p,
body.theme-night .projects-metric-card span,
body.theme-night .projects-metric-card small,
body.theme-night .projects-toolbar-copy span,
body.theme-night .project-card-description-immersive,
body.theme-night .project-progress-card small {
    color: #a9b8dc;
}

body.theme-night .projects-hero-inline-note,
body.theme-night .projects-metric-card,
body.theme-night .project-progress-card,
body.theme-night .project-stats-immersive div,
body.theme-night .project-card-client-logo,
body.theme-night .project-card-menu,
body.theme-night .project-card-open,
body.theme-night .projects-search-reset {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .card-finish-toggle-ui {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d7e4ff;
}

body.theme-night .card-finish-toggle-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-night .project-card-dropdown {
    background: #0d215e;
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .dashboard-summary-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .dashboard-task-meta-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-night .dashboard-task-meta-chip.is-neutral,
body.theme-night .dashboard-owner-avatar.has-image {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-night .project-card-dropdown-item {
    color: #d7e4ff;
}

body.theme-night .project-card-dropdown-item:hover,
body.theme-night .project-card-dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.theme-night .client-card-logo-fallback,
body.theme-night .client-card-contact-row strong,
body.theme-night .client-card-stat strong {
    color: #f3f7ff;
}

body.theme-night .client-card-contact,
body.theme-night .client-card-stat {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .client-card-contact-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .client-card-contact-row span,
body.theme-night .client-card-stat span {
    color: #a9b8dc;
}

body.theme-night .project-progress-track {
    background: rgba(255, 255, 255, 0.12);
}

body.theme-night .empty-card-projects {
    background:
        radial-gradient(circle at top, rgba(75, 107, 255, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(13, 33, 94, 0.98), rgba(8, 21, 63, 0.98));
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .empty-card-projects strong {
    color: #f3f7ff;
}

.badge,
.badge-soft,
.label-pill {
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.76rem;
    font-weight: 700;
}

.label-pill {
    color: #fff;
}

.badge-soft.success {
    background: rgba(9, 199, 93, 0.14);
    color: #0b9d4d;
}

.badge-soft.secondary {
    background: rgba(148, 163, 184, 0.18);
    color: #64748b;
}

.status-planejamento { background: rgba(63, 92, 255, 0.14); color: #2946f3; }
.status-andamento { background: rgba(9, 199, 93, 0.14); color: #0b9d4d; }
.status-aguardando_cliente { background: rgba(255, 196, 27, 0.18); color: #cc9700; }
.status-pausado { background: rgba(148, 163, 184, 0.18); color: #64748b; }
.status-finalizado { background: rgba(9, 199, 93, 0.14); color: #0b9d4d; }
.status-cancelado { background: rgba(255, 106, 33, 0.14); color: #e35a17; }

.priority-baixa { background: rgba(148, 163, 184, 0.18); color: #64748b; }
.priority-media { background: rgba(63, 92, 255, 0.14); color: #2946f3; }
.priority-alta { background: rgba(255, 196, 27, 0.18); color: #cc9700; }
.priority-urgente { background: rgba(255, 106, 33, 0.14); color: #e35a17; }

.board-toolbar {
    margin-bottom: 18px;
}

.board-project-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 22px;
    border-radius: 24px;
    border: 1px solid rgba(3, 19, 63, 0.08);
    background:
        linear-gradient(135deg, rgba(75, 107, 255, 0.05), rgba(250, 204, 21, 0.06)),
        #ffffff;
    box-shadow: 0 18px 40px rgba(3, 19, 63, 0.06);
}

.board-project-hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
}

.board-project-hero-logo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #6f87ff);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.board-project-hero-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.board-project-hero-logo-image {
    background: #fff;
    border: 1px solid rgba(3, 19, 63, 0.08);
    padding: 10px;
}

.board-project-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.board-project-hero-copy {
    min-width: 0;
}

.board-project-kicker {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: #7c8eb5;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.board-project-hero-copy strong {
    display: block;
    color: #51627f;
    font-size: 1rem;
    font-weight: 700;
}

.board-project-hero-copy h1 {
    margin: 0.2rem 0 0;
    color: var(--navy);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
}

.board-project-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    white-space: nowrap;
}

.board-chip-action {
    justify-content: center;
    width: 40px;
    min-width: 40px;
    padding: 0;
    color: var(--navy);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.board-chip-action:hover {
    background: rgba(75, 107, 255, 0.1);
    border-color: rgba(75, 107, 255, 0.18);
    color: var(--primary);
    transform: translateY(-1px);
}

.board-toolbar-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.board-toolbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.board-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.board-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

.board-shell {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 14px;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: rgba(75, 107, 255, 0.42) rgba(219, 229, 246, 0.9);
}

.board-shell::-webkit-scrollbar {
    height: 14px;
}

.board-shell::-webkit-scrollbar-track {
    background: rgba(219, 229, 246, 0.9);
    border-radius: 999px;
}

.board-shell::-webkit-scrollbar-thumb {
    background: rgba(75, 107, 255, 0.42);
    border-radius: 999px;
    border: 3px solid rgba(219, 229, 246, 0.9);
}

.board-shell-ubold {
    padding-bottom: 12px;
}

.board-columns {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    min-width: max-content;
}

.board-column {
    flex: 0 0 280px;
    width: 280px;
    padding: 15px 0 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76)), var(--list-accent, #f8fafc);
    transition: width 0.2s ease, flex-basis 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ubold-column-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 18px 14px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
}

.column-title-wrap {
    min-width: 0;
}

.ubold-column-head > div:first-child,
.column-title-wrap {
    padding-top: 4px;
    padding-right: 124px;
}

.column-title-wrap h3 {
    margin: 0;
    word-break: break-word;
}

.column-actions {
    position: absolute;
    top: 0;
    right: 10px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.column-collapse,
.column-plus {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(3, 19, 63, 0.07);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    color: #8d99b3;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.column-collapse i,
.column-plus i {
    font-size: 1rem;
    line-height: 1;
}

.column-collapse i {
    transform: rotate(90deg);
}

.column-collapse:hover,
.column-plus:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    filter: none;
    border-color: rgba(75, 107, 255, 0.14);
    color: var(--primary);
}

.topbar-mini-user {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(75, 107, 255, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.topbar-mini-user img,
.mini-user img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}

.topbar-mini-user span {
    line-height: 1;
}

.user-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-inline-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(75, 107, 255, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.user-inline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}

.user-inline-avatar span {
    line-height: 1;
}

.user-inline-sm {
    margin-bottom: 4px;
}

.column-menu-wrap {
    position: relative;
}

.column-menu {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(3, 19, 63, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #6d7b95;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.column-menu i {
    font-size: 0.95rem;
}

.column-menu:hover {
    background: #fff;
    color: var(--navy);
    border-color: rgba(75, 107, 255, 0.14);
    transform: translateY(-1px);
}

.column-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(3, 19, 63, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    z-index: 7;
}

.column-dropdown-item {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.18s ease, color 0.18s ease;
}

.column-dropdown-item:hover {
    background: rgba(75, 107, 255, 0.08);
}

.column-dropdown-item.is-danger {
    color: #dc4b63;
}

.column-dropdown-item.is-danger:hover {
    background: rgba(220, 75, 99, 0.08);
}

.board-card-list {
    display: grid;
    gap: 10px;
    min-height: 120px;
    max-height: calc(100vh - 250px);
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(3, 19, 63, 0.18) transparent;
}

.board-card-list::-webkit-scrollbar {
    width: 10px;
}

.board-card-list::-webkit-scrollbar-thumb {
    background: rgba(3, 19, 63, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.board-list-empty {
    min-height: 92px;
    border: 1px dashed rgba(100, 116, 139, 0.28);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #7c8aa5;
    background: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 18px 12px;
}

.board-list-empty i {
    font-size: 1.1rem;
    color: var(--primary);
}

.board-column-create {
    width: 280px;
    min-height: 184px;
    border: 1px dashed rgba(75, 107, 255, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--navy);
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.board-column-create:hover {
    border-color: rgba(75, 107, 255, 0.36);
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
}

.board-column-create-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #6d85ff);
    color: #fff;
    box-shadow: 0 14px 26px rgba(63, 92, 255, 0.18);
    font-size: 1.15rem;
}

.board-column-create strong {
    font-size: 1rem;
    font-weight: 700;
}

.board-column.is-collapsed {
    flex-basis: 68px;
    width: 68px;
    min-height: 520px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)), var(--list-accent, #f8fafc);
}

.board-column.is-collapsed .ubold-column-head {
    min-height: 520px;
    justify-content: flex-start;
    padding: 14px 8px 16px;
    border-bottom: 0;
}

.board-column.is-collapsed .column-title-wrap,
.board-column.is-collapsed .ubold-column-head > div:first-child {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 56px 0 8px;
}

.board-column.is-collapsed .column-title-wrap h3 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    white-space: normal;
    font-size: 0.98rem;
    line-height: 1.2;
}

.board-column.is-collapsed .column-actions {
    top: 8px;
    right: 50%;
    transform: translateX(50%);
}

.board-column.is-collapsed .column-plus,
.board-column.is-collapsed .column-menu-wrap,
.board-column.is-collapsed .board-card-list {
    display: none;
}

.board-column.is-collapsed .column-collapse {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.swal-board-list-popup {
    width: min(92vw, 500px);
    padding: 1.6rem 1.6rem 1.25rem;
    border-radius: 24px;
}

.swal-board-list-popup .swal2-title {
    color: var(--navy);
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.swal-board-list-html {
    margin: 0;
}

.swal-list-form {
    display: grid;
    gap: 1rem;
    text-align: left;
    padding-top: 0.5rem;
}

.swal-list-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.swal-list-form-field {
    display: grid;
    gap: 0.45rem;
}

.swal-list-form-field > span,
.swal-list-form-check span {
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 700;
}

.swal-list-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(3, 19, 63, 0.12);
    border-radius: 14px;
    background: #fff;
    color: var(--navy);
    padding: 0 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.swal-list-input:focus {
    border-color: rgba(75, 107, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(75, 107, 255, 0.12);
}

.swal-list-color-wrap {
    min-height: 52px;
    border: 1px solid rgba(3, 19, 63, 0.12);
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}

.swal-list-color {
    width: 46px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.swal-list-color-wrap strong {
    color: #6c7b96;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.swal-list-form-check {
    min-height: 52px;
    border: 1px solid rgba(3, 19, 63, 0.08);
    border-radius: 14px;
    background: rgba(248, 250, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.swal-list-form-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin: 0;
}

.swal-board-list-actions {
    width: 100%;
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.swal-board-list-confirm,
.swal-board-list-cancel {
    min-width: 158px;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 700;
}

.ubold-card {
    position: relative;
    padding: 14px 14px 12px;
    border-radius: 12px;
    border-color: #e9eef6;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ubold-card:hover {
    transform: translateY(-1px);
    border-color: #dfe7f1;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.ubold-card.is-overdue {
    border-color: rgba(250, 92, 124, 0.24);
    background: linear-gradient(180deg, rgba(250, 92, 124, 0.02), #fff);
}

.ubold-card.is-done {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), #ffffff);
    border-color: rgba(34, 197, 94, 0.18);
}

.ubold-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ubold-card-topline-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.card-accent {
    width: 42px;
    height: 7px;
    border-radius: 999px;
    display: inline-block;
}

.ubold-card-menu {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: transparent;
    padding: 0;
    color: var(--muted);
    line-height: 1;
    font-size: 0.95rem;
    display: inline-grid;
    place-items: center;
    transition: background 0.18s ease, color 0.18s ease;
}

.ubold-card-menu:hover {
    background: rgba(75, 107, 255, 0.08);
    color: var(--navy);
}

.ubold-card-menu-wrap {
    position: relative;
}

.ubold-card-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 152px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(3, 19, 63, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    z-index: 6;
}

.ubold-card-dropdown-item {
    width: 100%;
    min-height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.18s ease, color 0.18s ease;
}

.ubold-card-dropdown-item:hover {
    background: rgba(75, 107, 255, 0.08);
}

.ubold-card-dropdown-item.is-danger {
    color: #dc4b63;
}

.ubold-card-dropdown-item.is-danger:hover {
    background: rgba(220, 75, 99, 0.08);
}

.ubold-card h4 {
    margin: 0 22px 6px 0;
    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--navy);
}

.ubold-card-copy {
    margin: 0 0 12px;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #8a97ab;
}

.ubold-card-person {
    margin-bottom: 10px;
    gap: 9px;
}

.mini-user {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.74rem;
}

.ubold-card-person span {
    color: #8290a7;
    font-size: 0.88rem;
    font-weight: 600;
}

.ubold-card-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.ubold-card-meta span,
.ubold-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ubold-card-footer {
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.card-finish-toggle {
    display: inline-flex;
    cursor: pointer;
    user-select: none;
}

.card-finish-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.card-finish-toggle-ui {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 10px 0 6px;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.08);
    border: 1px solid rgba(75, 107, 255, 0.12);
    color: #4c5d77;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.card-finish-toggle-box {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(75, 107, 255, 0.16);
    color: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.card-finish-toggle-box i {
    font-size: 0.85rem;
    line-height: 1;
}

.card-finish-toggle:hover .card-finish-toggle-ui {
    transform: translateY(-1px);
    background: rgba(75, 107, 255, 0.12);
}

.card-finish-toggle input:checked + .card-finish-toggle-ui {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.2);
    color: #0b9d4d;
}

.card-finish-toggle input:checked + .card-finish-toggle-ui .card-finish-toggle-box {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
    transform: scale(1.02);
}

.ubold-card.is-done h4,
.ubold-card.is-done .ubold-card-copy {
    opacity: 0.76;
}

.ubold-card.is-done h4 {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.ubold-card.is-done .card-finish-toggle-ui,
.ubold-card.is-done .card-date {
    color: #0b9d4d;
}

.card-date.is-done {
    color: #0b9d4d;
}

.card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4c5d77;
    font-size: 0.84rem;
    font-weight: 700;
}

.card-date-label {
    opacity: 0.72;
    font-weight: 600;
}

.card-date-value {
    font-weight: 700;
}

.card-date.is-overdue {
    color: #e35a17;
}

.label-row-compact {
    align-items: center;
}

.label-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95);
}

.label-count {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
}

.mini-progress {
    width: 100%;
    height: 5px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}

.mini-progress div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--sky));
}

.add-card-link {
    margin: 0 16px 16px;
    color: #64748b;
}

.form-surface,
.surface-subcard {
    padding: 22px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 20px;
}

.project-show {
    display: grid;
    gap: 18px;
}

.project-show h2 {
    margin: 10px 0 8px;
    font-size: 1.45rem;
    font-weight: 800;
}

.project-show p {
    margin: 0;
    color: var(--muted);
}

.project-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-show-meta span {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.custom-table th {
    color: #475569;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-color: var(--line);
}

.custom-table td {
    vertical-align: middle;
    border-color: var(--line);
    padding-block: 16px;
}

.custom-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.9);
}

.label-admin-card {
    padding: 18px;
    gap: 12px;
    display: grid;
}

.label-admin-preview {
    display: flex;
}

.label-admin-toolbar {
    display: grid;
    gap: 16px;
}

.label-create-form {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 72px 160px auto;
    gap: 12px;
    align-items: center;
}

.label-admin-grid-compact {
    grid-template-columns: 1fr;
}

.label-admin-card-compact {
    padding: 16px;
    gap: 14px;
}

.label-admin-form-compact {
    display: grid;
    gap: 12px;
}

.label-admin-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.label-admin-fields {
    display: grid;
    gap: 10px;
}

.label-admin-inline {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.label-admin-actions {
    display: flex;
    justify-content: flex-start;
}

.label-color-input {
    min-width: 0;
    padding: 4px;
    height: 40px;
}

.label-admin-card-inline {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.label-admin-form-inline {
    flex: 1;
    display: grid;
    grid-template-columns: 120px minmax(0, 1.6fr) 58px 140px auto;
    gap: 10px;
    align-items: center;
}

.label-admin-actions-inline {
    display: flex;
    justify-content: flex-start;
}

.btn-icon-only {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
}

.btn-icon-only i {
    margin: 0;
}

.modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.card-modal-body {
    background: #f7f9fc;
    padding: 22px;
}

.card-modal-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 72px 18px 24px;
    background:
        radial-gradient(circle at top right, rgba(63, 92, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff, #fbfcfe);
    border-bottom: 1px solid var(--line);
}

.card-modal-header-copy {
    display: grid;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.card-modal-kicker {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-modal-header .modal-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--navy);
}

.card-modal-context {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-modal-context span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.card-modal-header-side {
    min-width: 470px;
    display: grid;
    gap: 12px;
}

.card-modal-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.card-modal-close {
    position: absolute;
    top: 22px;
    right: 24px;
    margin: 0;
}

.card-modal-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.card-modal-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.card-modal-section-head h3 {
    margin: 0 0 4px;
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--navy);
}

.card-modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.card-modal-section-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(63, 92, 255, 0.1);
    color: var(--primary);
    flex: 0 0 auto;
}

.card-modal-section-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.87rem;
}

.card-modal-actions {
    margin-top: 18px;
}

.card-modal-actions-top {
    margin-top: 0;
    flex: 0 0 auto;
}

.card-modal-quick-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcfe, #f8fafc);
}

.card-modal-quick-meta-header {
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.card-modal-meta-field {
    display: grid;
    gap: 8px;
}

.card-modal-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-modal-inline-label i {
    color: var(--primary);
    font-size: 0.92rem;
}

.activity-timeline {
    display: grid;
    gap: 14px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-bullet {
    width: 11px;
    height: 11px;
    margin-top: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--sky));
    box-shadow: 0 0 0 6px rgba(63, 92, 255, 0.08);
    flex: 0 0 auto;
}

.checklist-block {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.checklist-header {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.checklist-header strong {
    color: var(--navy);
}

.checklist-header small {
    color: #94a3b8;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checklist-item label,
.label-selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-item label span {
    color: #475569;
}

.label-selector-stack {
    gap: 4px;
}

.label-selector-pill {
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 0;
    min-height: 34px;
}

.card-modal-panel .label-selector {
    margin-top: -2px;
}

.card-modal-panel .label-selector-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
}

.card-modal-panel .label-selector-pill .label-pill {
    padding: 5px 10px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0;
}

.card-modal-panel .label-selector-pill:hover .label-pill {
    filter: brightness(0.98);
}

.card-comment-item,
.card-attachment-item {
    background: #fbfcfe;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.card-comment-item p {
    margin: 12px 0 0;
    color: #475569;
    line-height: 1.55;
}

.card-comment-item strong,
.card-comment-item small,
.card-attachment-item strong,
.card-attachment-item small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-attachment-item strong,
.card-comment-item strong {
    color: var(--navy);
}

.card-attachment-item small,
.card-comment-item small {
    color: #94a3b8;
}

.card-modal-panel .btn i {
    margin-right: 6px;
}

.flatpickr-calendar {
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    font-family: "Manrope", sans-serif;
}

.flatpickr-months {
    padding: 8px 8px 0;
}

.flatpickr-current-month {
    padding-top: 6px;
    font-size: 1rem;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 800;
    color: var(--navy);
}

.flatpickr-weekdays {
    background: transparent;
}

span.flatpickr-weekday {
    color: #64748b;
    font-weight: 700;
    font-size: 0.78rem;
}

.flatpickr-day {
    border-radius: 10px;
    color: var(--navy);
}

.flatpickr-day:hover {
    background: #eef2ff;
    border-color: #eef2ff;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(63, 92, 255, 0.22);
}

.flatpickr-day.today {
    border-color: rgba(63, 92, 255, 0.34);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 8px;
    padding: 6px;
    color: #64748b;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--primary);
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
    display: none;
}

.compact {
    max-height: 340px;
    overflow-y: auto;
}

.auth-body {
    background: #0f172a;
    padding: 0;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #0f172a;
}

.auth-panel {
    border-radius: 0;
    box-shadow: none;
    border: 0;
    display: grid;
    align-items: center;
    padding: 48px clamp(24px, 5vw, 72px);
}

.auth-panel-inner {
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 32px 0;
}

.auth-brand-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.auth-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
}

.auth-input .form-control {
    border: 0;
    padding: 0;
    min-height: 46px;
}

.auth-submit {
    min-height: 46px;
    margin-top: 10px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-hint {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background:
        linear-gradient(0deg, rgba(4, 17, 54, 0.18), rgba(4, 17, 54, 0.18)),
        linear-gradient(135deg, rgba(7, 26, 85, 0.24), rgba(4, 17, 54, 0.24));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.1) 45%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(3,19,63,0.14)),
        radial-gradient(circle at 20% 20%, rgba(52, 211, 153, 0.08), transparent 18%),
        radial-gradient(circle at 80% 30%, rgba(96, 165, 250, 0.08), transparent 18%);
}

.auth-showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 0 0 auto;
    padding: clamp(40px, 5vw, 72px);
    color: #fff;
    display: grid;
    gap: 14px;
    align-content: end;
    min-height: 100%;
}

.auth-showcase-copy > * {
    width: fit-content;
    max-width: 100%;
}

.auth-showcase-copy .eyebrow,
.auth-showcase-copy h2,
.auth-showcase-copy p,
.auth-showcase-copy .brand-logo-showcase {
    padding-inline: 0.9rem;
    padding-block: 0.4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(3, 19, 63, 0.1);
}

.auth-showcase-copy h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 18px 40px rgba(3, 19, 63, 0.24);
}

.auth-showcase-copy p {
    margin: 0;
    max-width: 480px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 14px 32px rgba(3, 19, 63, 0.22);
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.error-card {
    max-width: 520px;
    padding: 34px;
    text-align: center;
}

.error-code {
    display: block;
    margin-bottom: 12px;
    font-size: 4rem;
    color: var(--primary);
    font-weight: 800;
}

.empty-state,
.empty-card {
    color: var(--muted);
}

.empty-card {
    padding: 40px;
    text-align: center;
}

.btn-light {
    background: #f8fafc;
    border-color: var(--line);
    color: #475569;
}

.btn-light:hover,
.btn-light:focus {
    background: #eef2f7;
    border-color: #d7deeb;
    color: var(--navy);
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #dbe4f0;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(63, 92, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(63, 92, 255, 0.12);
}

textarea.form-control {
    min-height: 120px;
}

.form-label {
    font-weight: 700;
    color: var(--navy);
}

.footer-bar {
    width: 100%;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.1), transparent 18%),
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff, #f7faff);
    display: flex;
    align-items: center;
    min-height: 144px;
    padding: 24px 30px;
    color: rgba(3, 19, 63, 0.72);
    border-top: 1px solid rgba(3, 19, 63, 0.06);
}

.footer-bar-inner {
    width: 100%;
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.footer-brand-stack {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.footer-brand-logo {
    width: min(190px, 100%);
    display: block;
}

.footer-brand-copy {
    margin: 0;
    max-width: 420px;
    font-size: 0.96rem;
    color: rgba(3, 19, 63, 0.62);
}

.footer-meta {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.footer-meta-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.08);
    border: 1px solid rgba(75, 107, 255, 0.1);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.footer-meta-copy {
    font-size: 0.88rem;
    color: rgba(3, 19, 63, 0.64);
}

@media (max-width: 991.98px) {
    .board-project-hero-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 1200px) {
    .projects-hero {
        grid-template-columns: 1fr;
    }

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

    .dashboard-agenda-head,
    .dashboard-agenda-row {
        grid-template-columns: 72px minmax(220px, 1.6fr) minmax(170px, 1fr) minmax(150px, 0.9fr) 120px 118px;
    }

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

    .dashboard-stats,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }

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

    .label-admin-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .sidebar {
        width: 248px;
        padding: 22px 18px;
        position: fixed;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
    }

    body.sidebar-collapsed .sidebar {
        width: 248px;
        padding: 22px 18px;
    }

    body.sidebar-collapsed .sidebar-label,
    body.sidebar-collapsed .brand-logo-sidebar-full {
        display: block;
    }

    body.sidebar-collapsed .brand-logo-sidebar-compact {
        display: none;
    }

    body.sidebar-collapsed .sidebar-nav a {
        justify-content: flex-start;
        gap: 12px;
        padding-inline: 12px;
        font-size: 1rem;
    }

    body.sidebar-collapsed .sidebar-nav a i {
        font-size: 1rem;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .topbar {
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .topbar-left,
    .topbar-right,
    .content-head,
    .toolbar,
    .board-toolbar,
    .projects-toolbar,
    .board-project-hero,
    .board-project-hero-brand,
    .board-toolbar-main,
    .project-actions,
    .form-actions {
        flex-wrap: wrap;
    }

    .projects-hero {
        padding: 22px;
    }

    .projects-toolbar-copy,
    .projects-search-form {
        width: 100%;
    }

    .topbar-search {
        width: 100%;
    }

    .topbar-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .topbar-panel {
        right: 0;
        left: auto;
    }

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

    .auth-showcase {
        min-height: 280px;
    }

    .auth-showcase-copy {
        padding: 48px 24px;
    }

    .dashboard-agenda-head {
        display: none;
    }

    .dashboard-agenda-body {
        min-height: auto;
        max-height: none;
    }

    .dashboard-agenda-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .dashboard-status-cell,
    .dashboard-action-cell {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .app-content,
    .footer-bar {
        padding-inline: 16px;
    }

    .footer-bar {
        min-height: 132px;
        padding: 22px 16px;
    }

    .footer-bar-inner {
        gap: 14px;
    }

    .dashboard-stats,
    .project-grid,
    .label-admin-grid {
        grid-template-columns: 1fr;
    }

    .projects-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .projects-hero-copy h2 {
        font-size: 2rem;
    }

    .projects-hero-metrics {
        grid-template-columns: 1fr;
    }

    .projects-page-actions {
        justify-content: stretch;
    }

    .projects-page-actions-group,
    .import-inline-callout,
    .import-panel-head,
    .import-example-head {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-page-actions .toolbar-primary-action {
        width: 100%;
    }

    .label-create-form,
    .label-admin-inline {
        grid-template-columns: 1fr;
    }

    .label-admin-grid-compact {
        grid-template-columns: 1fr;
    }

    .label-admin-card-inline {
        align-items: stretch;
    }

    .label-admin-form-inline {
        grid-template-columns: 1fr;
    }

    .content-head {
        flex-direction: column;
    }

    .dashboard-agenda-tools,
    .section-header-form,
    .dashboard-day-main,
    .dashboard-day-form {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-day-form .form-control {
        width: 100%;
    }

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

    .dashboard-agenda-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-client-tile,
    .dashboard-empty-card {
        min-height: 152px;
    }

    .dashboard-agenda-surface {
        min-height: auto;
    }

    .dashboard-owner-cell,
    .dashboard-task-client,
    .dashboard-tag-cell,
    .dashboard-action-cell {
        flex-wrap: wrap;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .project-card-heading {
        flex-direction: column;
    }

    .project-card-deadline {
        max-width: 100%;
    }

    .project-card-heading-side {
        width: 100%;
        justify-items: start;
    }

    .project-card-top-actions {
        justify-content: space-between;
    }

    .client-card-contact-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-card-contact-row span {
        text-align: left;
    }

    .client-card-stat-grid {
        grid-template-columns: 1fr;
    }

    .board-toolbar-main {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-right {
        justify-content: space-between;
    }

    .topbar-panel-group:last-child {
        width: 100%;
    }

    .topbar-user-button {
        width: 100%;
        justify-content: flex-start;
    }

    .topbar-panel,
    .topbar-shortcuts-panel,
    .topbar-user-panel {
        width: min(100vw - 32px, 340px);
    }

    .card-modal-header {
        flex-direction: column;
        padding-right: 56px;
    }

    .card-modal-header-side {
        min-width: 0;
        width: 100%;
    }

    .card-modal-header-actions {
        justify-content: flex-end;
    }

    .card-modal-quick-meta {
        grid-template-columns: 1fr;
    }

    .board-column {
        width: 290px;
    }
}

.client-form-shell {
    padding: 1.5rem;
}

.profile-form-shell .client-logo-preview,
.profile-avatar-preview {
    width: 156px;
    height: 156px;
    border-radius: 999px;
    overflow: hidden;
}

.profile-avatar-preview.client-logo-preview-image {
    padding: 0;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.profile-brand-panel,
.profile-form-main {
    min-height: 100%;
}

.profile-password-note {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
}

.client-brand-panel,
.client-form-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-brand-panel {
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(75, 107, 255, 0.12);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top left, rgba(75, 107, 255, 0.12), transparent 48%),
        linear-gradient(180deg, rgba(3, 19, 63, 0.02), rgba(3, 19, 63, 0.01));
}

.client-brand-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.client-brand-header h2,
.client-form-head h2 {
    margin: 0.3rem 0 0;
    font-size: 1.15rem;
    color: var(--navy);
}

.client-brand-header p,
.client-form-head p {
    margin: 0.4rem 0 0;
    color: rgba(3, 19, 63, 0.62);
    line-height: 1.6;
}

.client-logo-preview-card {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.client-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 168px;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(75, 107, 255, 0.16), rgba(3, 19, 63, 0.08));
    border: 1px solid rgba(75, 107, 255, 0.14);
    color: var(--navy);
    box-shadow: 0 24px 50px rgba(3, 19, 63, 0.08);
}

.client-logo-preview span {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.client-logo-preview-image {
    padding: 0.75rem;
    background: #ffffff;
}

.client-logo-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
}

.client-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 132px;
    padding: 1.2rem;
    border: 1.5px dashed rgba(75, 107, 255, 0.35);
    border-radius: 1.15rem;
    background: rgba(75, 107, 255, 0.04);
    color: rgba(3, 19, 63, 0.76);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.client-dropzone strong {
    color: var(--navy);
}

.client-dropzone.is-dragover,
.client-dropzone:hover {
    border-color: rgba(75, 107, 255, 0.66);
    background: rgba(75, 107, 255, 0.08);
    transform: translateY(-1px);
}

.client-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.14);
    color: var(--primary);
    font-size: 1.25rem;
}

.client-crop-stage {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(3, 19, 63, 0.08);
    background: #f7f9ff;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-crop-stage img {
    display: block;
    max-width: 100%;
    width: 100%;
}

.client-crop-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.client-crop-stage .cropper-container {
    width: 100% !important;
    height: 320px !important;
}

.cropper-inline-tools,
.cropper-inline-submit {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.client-form-main {
    min-height: 100%;
    padding: 1.35rem 1.45rem;
    border: 1px solid rgba(3, 19, 63, 0.06);
    border-radius: 1.25rem;
    background: #ffffff;
}

.client-form-main .form-control,
.client-form-main .form-select {
    min-height: 3rem;
}

.client-form-main .form-control-lg {
    min-height: 3.5rem;
}

.client-table-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.client-table-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(75, 107, 255, 0.16), rgba(34, 197, 94, 0.1));
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    overflow: hidden;
}

.client-table-logo.has-image {
    background: #ffffff;
    border: 1px solid rgba(3, 19, 63, 0.08);
}

.client-table-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .client-brand-panel,
    .client-form-main {
        padding: 1.1rem;
    }

    .client-crop-actions {
        flex-direction: column;
    }
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.auth-secondary-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-secondary-link a,
.auth-meta a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-secondary-link a:hover,
.auth-meta a:hover {
    color: var(--navy);
}

.auth-notice-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(75, 107, 255, 0.12);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(75, 107, 255, 0.05), rgba(255, 255, 255, 0.96));
}

.auth-notice-card h1 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--navy);
}

.auth-notice-card p,
.auth-notice-card small {
    margin: 0;
    color: rgba(3, 19, 63, 0.7);
    line-height: 1.6;
}

.auth-notice-card code {
    color: var(--navy);
}

.auth-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.12);
    color: var(--primary);
    font-size: 1.3rem;
}

.landing-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(75, 107, 255, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 18%),
        linear-gradient(180deg, #f7f9ff 0%, #ffffff 48%, #f7faff 100%);
    color: var(--navy);
}

.landing-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.landing-topbar,
.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-nav,
.landing-actions,
.landing-footer-actions,
.landing-cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.landing-nav a,
.landing-footer-actions a {
    color: rgba(3, 19, 63, 0.76);
    text-decoration: none;
    font-weight: 600;
}

.landing-nav a:hover,
.landing-footer-actions a:hover {
    color: var(--primary);
}

.landing-main {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(75, 107, 255, 0.1);
    box-shadow: 0 28px 60px rgba(3, 19, 63, 0.08);
    backdrop-filter: blur(14px);
}

.landing-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-copy h1 {
    margin: 1rem 0 0.8rem;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.landing-copy p {
    margin: 0;
    max-width: 620px;
    color: rgba(3, 19, 63, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
}

.landing-cta {
    margin-top: 1.4rem;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.landing-metrics div,
.landing-step,
.landing-feature {
    padding: 1.15rem 1.2rem;
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(3, 19, 63, 0.06);
}

.landing-metrics strong,
.landing-step strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.landing-metrics span,
.landing-step p,
.landing-feature p,
.landing-flow-copy p,
.landing-footer span {
    color: rgba(3, 19, 63, 0.68);
    line-height: 1.7;
}

.landing-visual-card {
    padding: 1rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 255, 0.96));
    box-shadow: 0 30px 70px rgba(75, 107, 255, 0.12);
}

.landing-visual-card img {
    display: block;
    width: 100%;
    border-radius: 1.5rem;
}

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

.landing-feature h2,
.landing-step h3,
.landing-flow-copy h2 {
    margin: 0.75rem 0 0.45rem;
}

.landing-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(75, 107, 255, 0.14), rgba(34, 197, 94, 0.12));
    color: var(--primary);
    font-size: 1.2rem;
}

.landing-flow {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.25rem;
    align-items: start;
}

.landing-flow-steps {
    display: grid;
    gap: 1rem;
}

.landing-footer {
    padding: 1.4rem 0 0;
}

@media (max-width: 1100px) {
    .landing-hero,
    .landing-flow,
    .landing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 18px;
    }

    .landing-topbar,
    .landing-footer,
    .landing-nav,
    .landing-actions,
    .landing-footer-actions,
    .landing-cta,
    .auth-meta,
    .auth-secondary-link {
        flex-wrap: wrap;
    }

    .landing-hero {
        padding: 1.25rem;
    }

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