@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
    --nexo-brand-navy: #123c5d;
    --nexo-nav-top: #143d60;
    --nexo-nav-mid: #0d3150;
    --nexo-nav-bottom: #061d36;
    --nexo-accent-blue: #4b9fd1;
    --nexo-accent-yellow: #e8cf4c;
    --nexo-brand-sage: #9fbfbb;
    --nexo-brand-red: #b44444;
    --nexo-canvas: #f5f9fc;
    --nexo-surface: #ffffff;
    --nexo-border: #dce8f0;
    --nexo-title: #123654;
    --nexo-text: #29465d;
    --nexo-muted: #536f86;
    --nexo-primary: #0d375b;
    --nexo-primary-hover: #15537b;
    --nexo-outline-focus: #2e94d1;
    --nexo-radius-input: 10px;
    --nexo-radius-card: 14px;
    --nexo-radius-table: 16px;
    --nexo-radius-btn: 9px;

    --navy-950: #061d36;
    --navy-900: #123c5d;
    --navy-800: #0d375b;
    --navy-700: #15537b;
    --blue: #4b9fd1;
    --blue-soft: #eaf5fb;
    --cyan: #78c3e3;
    --gold: #e8cf4c;
    --gold-soft: #fbf7dc;
    --sage: #9fbfbb;
    --sage-soft: #edf5f3;
    --coral: #b44444;
    --coral-soft: #faeded;
    --state-open: #b44444;
    --state-open-soft: #faeded;
    --state-open-border: #e5bebe;
    --state-closed: #116f54;
    --state-closed-soft: #e3f6ee;
    --state-closed-border: #add8c8;
    --ink: #29465d;
    --muted: #536f86;
    --line: #dce8f0;
    --canvas: #f5f9fc;
    --surface: #ffffff;
    --surface-soft: #f6fafd;
    --shadow: 0 20px 60px rgba(5, 33, 60, 0.24);
    --shadow-soft: 0 4px 18px rgba(12, 47, 73, 0.045);
    --radius: 14px;
    --radius-sm: 10px;
    --sidebar-width: 260px;
    --topbar-height: 78px;
    --font-heading: "Manrope", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}

h1,
h2,
h3,
.nav-link,
.button,
.eyebrow,
.quick-heading h2,
.panel-head h2,
.metric-card strong {
    font-family: var(--font-heading);
}

h1,
.app-main h1,
.login-message h1,
.login-card h2 {
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.app-main h1 {
    margin-bottom: 6px;
    font-size: 36px;
    line-height: 1.17;
}

h2,
.panel-head h2 {
    color: var(--nexo-title);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.eyebrow {
    margin-bottom: 8px;
    color: #226b9c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.view .page-title-row .eyebrow,
.insight-answer-card .eyebrow,
.modal > header .eyebrow {
    display: none;
}

.view .task-page-title .eyebrow {
    display: block;
}

.page-title-row {
    align-items: center;
    margin-bottom: 28px;
}

.page-subtitle {
    max-width: 720px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.app-main {
    background: var(--canvas);
}

.app-main::before {
    display: none;
}

.content {
    max-width: 1655px;
    padding: 34px 38px 65px;
}

/* Navigation */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    min-height: 100vh;
    padding: 0 15px 17px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    background: linear-gradient(166deg, var(--nexo-nav-top) 0%, var(--nexo-nav-mid) 45%, var(--nexo-nav-bottom) 100%);
    box-shadow: none;
    color: #f4faff;
    isolation: isolate;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 240px;
    background: radial-gradient(ellipse 205px 180px at 120% -18%, rgba(91, 168, 218, 0.13), transparent 72%);
    content: "";
    pointer-events: none;
}

.sidebar::after {
    display: none;
}

.sidebar-art {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sidebar-art-arc {
    position: absolute;
    bottom: -79px;
    left: -146px;
    width: 314px;
    height: 314px;
    border: 75px solid rgba(48, 129, 187, 0.18);
    border-radius: 50%;
    transform: rotate(-22deg);
}

.sidebar-art-segment {
    position: absolute;
    bottom: 123px;
    left: -37px;
    width: 133px;
    height: 133px;
    border-radius: 100% 0 0;
    background: linear-gradient(135deg, rgba(52, 133, 190, 0.27), rgba(30, 95, 140, 0.04));
    transform: rotate(33deg);
}

.sidebar-art-triangle {
    position: absolute;
    bottom: 145px;
    left: 113px;
    width: 0;
    height: 0;
    border-right: 64px solid transparent;
    border-bottom: 65px solid rgba(80, 150, 198, 0.1);
    border-left: 64px solid transparent;
    transform: rotate(-16deg);
}

.sidebar-brand {
    min-height: 185px;
    margin: 0;
    padding: 39px 25px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: transparent;
    text-align: left;
}

.sidebar-brand img {
    width: 169px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar-brand .sidebar-nexo-wordmark {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin-left: 50px;
    color: #f5fbff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.34em;
    line-height: 1;
    transform: none;
}

.sidebar-brand .sidebar-nexo-wordmark > span {
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

.sidebar-brand .sidebar-nexo-wordmark > .is-blue {
    color: #6ab9ed;
}

.main-nav {
    gap: 8px;
    margin-top: 0;
}

.sidebar-lower {
    gap: 8px;
    margin-bottom: 12px;
}

.nav-link {
    min-height: 48px;
    gap: 15px;
    padding: 0 19px;
    border-radius: 10px;
    color: #c7dded;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
    background: rgba(89, 165, 215, 0.11);
    color: #fff;
}

.nav-link.is-active {
    background: linear-gradient(90deg, #226792 0%, #194c72 95%);
    box-shadow: inset 3px 0 0 #72c1f1, 0 6px 18px rgba(1, 18, 34, 0.1);
    color: #fff;
    font-weight: 700;
}

.nav-link.is-active::before {
    display: none;
}

.nav-link svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.85;
}

.nav-count {
    min-width: 20px;
    padding: 2px 6px;
    background: var(--gold);
    color: var(--navy-950);
    font-family: var(--font-body);
    font-size: 9px;
}

.sidebar-profile {
    gap: 10px;
    padding: 20px 5px 0;
    border-color: rgba(190, 215, 232, 0.23);
}

.profile-copy strong {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.profile-copy span {
    color: #b4cedd;
    font-size: 11px;
}

/* Header */
.topbar {
    height: var(--topbar-height);
    gap: 20px;
    padding: 0 38px;
    border-color: #ebf0f4;
    background: #fff;
    box-shadow: none;
}

.global-search {
    width: min(460px, 44vw);
    height: 42px;
    border-color: var(--line);
    border-radius: 10px;
    background: #f6fafd;
}

.topbar-breadcrumb {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 10px;
    color: #617f9b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.topbar-breadcrumb i {
    color: #95b0c0;
    font-style: normal;
}

.topbar-breadcrumb strong {
    color: #365d78;
    font-weight: 700;
}

.global-search input {
    font-size: 12.5px;
}

.global-search > svg {
    color: #6d9abb;
}

.profile-text strong {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
}

.profile-text small {
    color: var(--muted);
    font-size: 11px;
}

.avatar {
    background: #2a81b9;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
}

.topbar-mobile-brand {
    display: none;
}

.popover,
.modal {
    border-color: var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

/* Shared surfaces */
.panel,
.metric-card,
.insight-search-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: none;
}

.quick-entry-card {
    border: 1px solid #c7dce6;
    background: #edf5f9;
    box-shadow: none;
}

.panel,
.quick-entry-card {
    border-radius: var(--radius);
}

.quick-entry-card {
    margin-bottom: 16px;
    padding: 18px;
}

.quick-entry-card::before {
    right: 18px;
    left: 18px;
    height: 2px;
    background: var(--blue);
}

.entry-day-lock {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eadb92;
    border-radius: 9px;
    background: #fffaf0;
    color: #6f5a18;
}

.entry-day-lock-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: var(--gold-soft);
    color: #8e7413;
}

.entry-day-lock-icon svg {
    width: 16px;
    height: 16px;
}

.entry-day-lock > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.entry-day-lock strong {
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 700;
}

.entry-day-lock small {
    margin-top: 1px;
    color: #887526;
    font-size: 10.5px;
}

.entry-day-lock .button {
    flex: 0 0 auto;
    border-color: #daca7f;
    color: #6f5a18;
}

.quick-entry-form.is-day-closed .save-entry {
    cursor: not-allowed;
    background: #aab8c2;
    box-shadow: none;
}

.quick-heading {
    margin-bottom: 14px;
}

.quick-heading h2 {
    font-size: 17px;
    font-weight: 700;
}

.quick-heading p {
    color: var(--muted);
    font-size: 11px;
}

.heading-icon {
    width: 30px;
    height: 30px;
    background: var(--blue-soft);
}

.quick-entry-form {
    grid-template-columns: minmax(190px, 1.2fr) minmax(190px, 1.12fr) minmax(205px, 1.2fr) 142px 160px;
    gap: 12px;
}

.form-field {
    gap: 6px;
}

.form-field label,
.field-label {
    color: #3f596b;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.form-field input,
.form-field select,
.input-shell,
.control-shell,
.toolbar-search,
.insight-input-shell {
    min-height: 43px;
    border-color: #d9e1e8;
    border-radius: 9px;
    background: #fff;
}

.suggestion-menu {
    top: calc(100% + 2px);
    right: auto;
    left: 0;
    width: max(100%, 365px);
    max-height: 330px;
    border-color: #cfdbe3;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(18, 60, 93, 0.16);
}

.suggestion-item {
    min-height: 58px;
    gap: 13px;
    padding: 10px 14px;
    border-color: #edf1f4;
}

.suggestion-item .avatar {
    width: 37px;
    height: 37px;
    font-size: 10.5px;
}

.suggestion-item div {
    min-width: 0;
    flex: 1;
    gap: 2px;
}

.suggestion-item strong {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.suggestion-item span {
    color: #5e7484;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
}

.suggestion-empty {
    padding: 16px;
    color: #536b7b;
    font-size: 12.5px;
}

.suggestion-create {
    position: sticky;
    bottom: 0;
    border-top: 1px solid #dbe6ec;
    border-bottom: 0;
    background: #f7fafc;
}

.suggestion-create:hover {
    background: #edf6fa;
}

.suggestion-create-icon {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    border: 1px solid #bcd6e5;
    border-radius: 9px;
    background: #fff;
    color: var(--navy-900);
}

.suggestion-create strong {
    color: var(--navy-900);
    font-weight: 700;
}

.control-shell input::placeholder,
.input-shell input::placeholder,
.form-field input::placeholder {
    color: #718694;
    opacity: 1;
}

.widget-mode .suggestion-item {
    min-height: 64px;
    padding: 12px;
}

.widget-mode .suggestion-menu {
    right: 0;
    left: 0;
    width: 100%;
    min-width: 0;
}

.widget-mode .suggestion-item strong {
    font-size: 14.5px;
    line-height: 1.32;
}

.widget-mode .suggestion-item span {
    font-size: 12px;
    line-height: 1.35;
}

.control-shell input,
.control-shell select,
.input-shell input {
    min-height: 41px;
    font-size: 14px;
    font-weight: 500;
}

.field-hint {
    color: #8a9aa6;
    font-size: 10.5px;
}

.button {
    min-height: 44px;
    border-radius: 9px;
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 700;
}

.button:focus-visible,
.icon-button:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--nexo-outline-focus);
    outline-offset: 2px;
}

.button-primary {
    background: var(--navy-900);
    box-shadow: 0 5px 14px rgba(18, 60, 93, 0.16);
}

.button-primary:hover {
    background: var(--navy-800);
}

.save-entry {
    min-height: 43px;
    margin-top: 18px;
}

.quick-entry-form > .save-entry {
    align-self: start;
}

.text-button {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
}

.more-options {
    font-size: 12.5px;
    font-weight: 650;
}

.metrics-grid {
    gap: 0;
    margin-bottom: 16px;
    padding: 2px 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.metric-card {
    min-height: 86px;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.metric-card + .metric-card {
    border-left: 1px solid var(--line);
}

.metric-icon {
    width: 36px;
    height: 36px;
}

.metric-icon svg {
    width: 18px;
    height: 18px;
}

.metric-card span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 500;
}

.metric-card strong {
    margin: 3px 0 1px;
    font-size: 24px;
    font-weight: 700;
}

.metric-card small {
    color: #8b9ba6;
    font-size: 9.5px;
}

.ring {
    display: none;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
    gap: 14px;
}

.dashboard-grid > .panel {
    padding: 18px;
    border-radius: var(--radius);
}

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

.panel-head p {
    color: var(--muted);
    font-size: 11px;
}

.week-strip {
    gap: 5px;
    margin-bottom: 16px;
}

.week-day {
    min-height: 49px;
    padding: 6px 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.week-day:hover {
    border-color: #c8dce7;
    background: #eef6fa;
    color: var(--navy-800);
}

.week-day:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.week-day.is-today:not(.is-selected) {
    border-color: #bcd6e5;
    background: #eef6fa;
    color: var(--navy-800);
}

.week-day.is-selected,
.week-day.is-selected:hover {
    border-color: var(--navy-800);
    background: var(--navy-800);
    color: #fff;
}

.week-day span {
    font-size: 8.5px;
}

.week-day strong {
    font-size: 10.5px;
}

.week-strip[aria-busy="true"] {
    cursor: progress;
}

.dashboard-day-loading {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

.timeline-item {
    grid-template-columns: 58px 3px 1fr auto;
    min-height: 55px;
    gap: 9px;
    padding: 5px 0 7px;
}

.timeline-time {
    font-size: 9.5px;
}

.timeline-copy strong {
    font-size: 12.5px;
    font-weight: 600;
}

.timeline-copy span {
    font-size: 10.5px;
}

.timeline-duration {
    font-family: var(--font-heading);
    font-size: 10.5px;
}

.activity-chart-block {
    margin-top: 15px;
    padding-top: 14px;
}

.activity-chart-head {
    margin-bottom: 12px;
}

.activity-chart-head span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.activity-chart-head strong {
    font-family: var(--font-heading);
    font-size: 13px;
}

.activity-chart-head small {
    font-size: 10.5px;
}

.activity-bar-track {
    height: 92px;
    border-radius: 6px;
}

.activity-bar-track i {
    border-radius: 6px;
}

.proposal-item {
    min-height: 58px;
    padding: 10px;
    border-radius: 9px;
}

.proposal-source {
    width: 32px;
    height: 32px;
}

.proposal-copy strong {
    font-size: 12px;
    font-weight: 600;
}

.proposal-copy span {
    font-size: 10px;
}

.proposal-action {
    font-family: var(--font-heading);
    font-size: 9px;
}

.proposal-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
}

.proposal-remove-button {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #7a8f9c;
    cursor: pointer;
}

.proposal-remove-button:hover {
    border-color: #e4caca;
    background: #fbf1f1;
    color: var(--coral);
}

.proposal-remove-button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.recent-item {
    padding: 10px 0;
}

.recent-client strong {
    font-size: 12px;
    font-weight: 600;
}

.recent-client span,
.recent-duration {
    font-size: 10px;
}

/* Secondary screens */
.day-layout,
.projects-layout,
.team-layout,
.settings-grid,
.report-grid {
    gap: 14px;
}

.day-layout {
    grid-template-columns: minmax(260px, 0.66fr) minmax(450px, 1.34fr);
}

.day-layout .panel,
.projects-layout > .panel,
.team-layout > .panel,
.settings-grid .panel,
.report-grid .panel {
    padding: 18px;
}

.day-big-total span {
    font-family: var(--font-heading);
    font-size: 42px;
}

.day-big-total small,
.day-date-control span,
.day-date-control strong {
    font-size: 10px;
}

.day-state-card {
    padding: 12px;
    border-radius: 9px;
}

.day-state-card strong {
    font-size: 11px;
}

.day-state-card p,
.day-facts span,
.detail-facts span {
    font-size: 9.5px;
}

.day-facts strong {
    font-size: 16px;
}

.detail-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entry-row {
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 11px;
    border-radius: 9px;
}

.entry-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 8.5px;
}

.entry-copy strong {
    font-size: 11px;
    font-weight: 600;
}

.entry-copy span,
.entry-copy small {
    font-size: 9.5px;
}

.entry-time {
    font-family: var(--font-heading);
    font-size: 11px;
}

.data-table {
    font-size: 12px;
}

.data-table thead {
    background: var(--surface-soft);
}

.data-table th {
    padding: 10px 11px;
    border-bottom: 1px solid var(--line);
    color: #7b8d9a;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
}

.data-table td {
    height: 45px;
    padding: 10px 11px;
    border-color: #edf1f4;
}

.cell-copy small {
    font-size: 9px;
}

.tree-node {
    min-height: 38px;
    border-radius: 7px;
}

.tree-node span,
.tree-node small,
.task-node,
.task-node strong {
    font-size: 10.5px;
}

button.task-node {
    width: 100%;
    color: inherit;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

button.task-node:hover {
    border-color: #bad9ea;
    background: #f6fbfe;
}

button.task-node:focus-visible {
    border-color: #4b9fd1;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(75, 159, 209, 0.14);
}

.task-node-open {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #7f9bb0;
}

.task-node-open svg {
    width: 14px;
    height: 14px;
}

.task-node-scope {
    display: inline-flex;
    min-height: 18px;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
}

.task-node-scope.is-project {
    background: #e6f2fa;
    color: #17618e;
}

.task-node-scope.is-subproject {
    background: #edf5ef;
    color: #38715a;
}

.project-task-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.project-task-time {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e1eaf0;
}

.project-task-time-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.project-task-time-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-task-time-head span {
    color: #647d8e;
    font-size: 10px;
    font-weight: 600;
}

.project-task-time-head strong {
    color: #123c5d;
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.15;
}

.project-task-time-head small {
    max-width: 310px;
    color: #6b8190;
    font-size: 9.5px;
    line-height: 1.4;
    text-align: right;
}

.project-task-people {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 190px;
    overflow-y: auto;
}

.project-task-person {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f3f8fb;
}

.project-task-person .avatar {
    width: 28px;
    height: 28px;
    font-size: 8.5px;
}

.project-task-person > span:nth-child(2) {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.project-task-person strong {
    overflow: hidden;
    color: #24485f;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-task-person small {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e2f2e9;
    color: #2d7559;
    font-size: 8px;
    font-weight: 700;
}

.project-task-person b {
    color: #174f74;
    font-size: 11px;
    font-weight: 700;
}

.project-task-time > p,
.project-task-people > p {
    margin: 0;
    color: #6b8190;
    font-size: 10.5px;
}

.project-detail-head h2 {
    font-size: 23px;
}

.project-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-filters {
    grid-template-columns: 1fr 1fr 1.2fr 1fr auto;
    gap: 10px;
    padding: 13px;
}

.report-grid {
    grid-template-columns: 1.35fr 0.65fr;
}

.settings-row strong {
    font-size: 11px;
}

.settings-row span,
.settings-copy {
    font-size: 10px;
}

/* Inquiries */
.insight-search-panel {
    margin-bottom: 16px;
    padding: 21px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.insight-search-panel::after {
    display: none;
}

.insight-search-head {
    margin-bottom: 14px;
}

.insight-search-head h2 {
    font-size: 20px;
}

.insight-search-head p {
    font-size: 11px;
}

.insight-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.insight-form {
    gap: 9px;
}

.insight-input-shell {
    min-height: 46px;
    border-radius: 9px;
}

.insight-input-shell input {
    font-size: 13.5px;
}

.insight-form .button {
    min-height: 46px;
}

.insight-suggestions {
    gap: 6px;
    margin-top: 10px;
}

.insight-suggestions button {
    padding: 6px 9px;
    font-size: 9.5px;
}

.insight-answer-card {
    gap: 13px;
    margin-bottom: 13px;
    padding: 17px 19px;
    border-radius: 13px;
    background: var(--navy-900);
    box-shadow: var(--shadow-soft);
}

.answer-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.insight-answer-card h2 {
    margin-bottom: 7px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;
}

.insight-interpretation span {
    padding: 4px 7px;
    font-size: 9px;
}

.insight-dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    gap: 14px;
    margin-top: 13px;
}

.insight-dashboard-grid > .panel {
    min-height: 280px;
    padding: 18px;
}

.insight-chart {
    height: 180px;
    gap: 8px;
    padding-top: 18px;
}

.insight-column strong,
.insight-column small {
    font-size: 8.5px;
}

.insight-breakdown-row strong,
.insight-breakdown-row span {
    font-size: 10.5px;
}

.insight-highlights span {
    padding: 6px 9px;
    font-size: 9.5px;
}

/* Auth and overlays */
.login-brand {
    background: #123c5d;
}

.login-message h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 4.8vw, 66px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.03;
}

.login-message h1 em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 500;
}

.login-lead,
.promise-list span,
.login-security {
    font-family: var(--font-body);
}

.login-card h2 {
    font-size: 27px;
}

.modal > header h2 {
    font-size: 20px;
}

.modal-copy {
    font-size: 11.5px;
}

.widget-mode {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    height: 100vh;
    padding: 14px;
    overflow: hidden;
    background: transparent !important;
}

.widget-mode .app-main,
.widget-mode .content {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.widget-mode .app-main {
    height: calc(100vh - 28px);
}

.widget-mode .content {
    width: calc(100% / var(--widget-scale, 1));
    height: calc(100% / var(--widget-scale, 1));
    transform: scale(var(--widget-scale, 1));
    transform-origin: top left;
}

.widget-mode .view.is-active[data-view-panel="home"] {
    height: 100%;
    min-height: 0;
}

::selection {
    background: rgba(75, 159, 209, 0.24);
    color: var(--navy-950);
}

* {
    scrollbar-color: #a8bac6 #eef3f6;
    scrollbar-width: thin;
}

.widget-mode .quick-entry-card {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 13px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow:
        0 16px 38px rgba(2, 24, 40, 0.28),
        0 3px 9px rgba(2, 24, 40, 0.18);
    filter: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.widget-mode .quick-entry-card::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.widget-mode .quick-entry-card::before {
    right: 20px;
    left: 20px;
    height: 3px;
    background: var(--blue);
}

.widget-mode .quick-entry-card::after {
    opacity: 0.6;
}

.widget-mode .form-field label {
    font-size: 12px;
}

.widget-mode .control-shell {
    min-height: 43px;
}

.widget-mode .control-shell input,
.widget-mode .control-shell select {
    min-height: 43px;
    font-size: 14px;
}

.widget-summary {
    background: var(--navy-900);
}

.widget-mode .quick-entry-form .autocomplete-field,
.widget-mode .quick-entry-form .task-field {
    grid-column: 1 / -1;
}

.widget-mode .field-hint {
    font-size: 10.5px;
    line-height: 1.4;
}

.widget-mode .quick-recents {
    display: none !important;
}

.widget-extra-fields {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    margin-top: 2px;
}

.widget-extra-fields .form-field {
    grid-column: 1 / -1;
    margin: 0;
}

.widget-extra-fields .check-row {
    grid-column: 1;
    min-height: 30px;
    align-items: center;
    white-space: nowrap;
}

.widget-mode .widget-header {
    cursor: grab;
    user-select: none;
    -webkit-app-region: drag;
}

.widget-mode .widget-header:active {
    cursor: grabbing;
}

.widget-mode .widget-header img {
    pointer-events: none;
}

.widget-mode .widget-controls,
.widget-mode .widget-controls button {
    -webkit-app-region: no-drag;
}

.widget-resize-handle {
    position: fixed;
    z-index: 20;
    right: 4px;
    bottom: 4px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(18, 60, 93, 0.12);
    border-radius: 7px;
    background: rgba(18, 60, 93, 0.06);
    color: #3e6176;
    cursor: nwse-resize;
    -webkit-app-region: no-drag;
}

.widget-resize-handle:hover {
    background: rgba(18, 60, 93, 0.08);
    color: var(--navy-800);
}

.widget-resize-handle svg {
    width: 14px;
    height: 14px;
    transform: rotate(-45deg);
}

.widget-mode .hour-presets {
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    border-radius: 16px;
}

@media (max-width: 1180px) {
    .sidebar {
        width: 224px;
    }

    .quick-entry-form {
        grid-template-columns: 1fr 1fr 1fr 130px;
    }

    .save-entry {
        grid-column: 4;
    }
}

@media (max-width: 920px) {
    .sidebar {
        width: var(--sidebar-width);
    }

    .content {
        padding: 22px 20px 82px;
    }

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

    .activity-panel {
        grid-column: 1 / -1;
    }

    .quick-entry-form {
        grid-template-columns: 1fr 1fr;
    }

    .save-entry {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .day-layout,
    .projects-layout,
    .team-layout,
    .insight-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
    }

    .app-main h1 {
        font-size: 30px;
    }

    .content {
        padding: 18px 14px 92px;
    }

    .quick-entry-card {
        padding: 16px;
    }

    .quick-entry-form,
    .dashboard-grid,
    .report-grid,
    .report-filters {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .metric-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .metric-card:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .view[data-view-panel="home"] .page-title-row {
        gap: 12px;
    }

    .view[data-view-panel="home"] h1 {
        font-size: 32px;
    }

    .dashboard-grid > *,
    .view,
    .panel {
        min-width: 0;
    }

    .metric-card {
        min-height: 86px;
    }

    .data-table {
        min-width: 680px;
    }

    .insight-form {
        grid-template-columns: 1fr;
    }
}

/* Readability floor for operational metadata and dense data surfaces. */
.nav-link {
    font-size: 13.5px;
}

.panel-head p,
.quick-heading p {
    font-size: 12px;
}

.form-field label,
.field-label {
    font-size: 12.5px;
}

.field-hint {
    font-size: 11.5px;
}

.metric-card span {
    font-size: 11.5px;
}

.metric-card small {
    font-size: 10.5px;
}

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

.team-department-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
}

.team-department-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-department-title > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.team-department-title h3,
.team-department-title p {
    margin: 0;
}

.team-department-title p {
    color: var(--muted);
    font-size: 10.5px;
}

.department-mark {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    background: var(--blue-soft);
    color: var(--navy-700);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
}

.team-department-stats {
    display: flex;
    gap: 15px;
    margin: 14px 0 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.team-department-stats span {
    color: var(--muted);
    font-size: 9.5px;
}

.team-department-stats strong {
    color: var(--navy-800);
    font-family: var(--font-heading);
    font-size: 12px;
}

.department-member-chips,
.department-task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.department-member-chips span,
.department-task-tags span {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #526b7b;
    font-size: 9px;
}

.department-manage-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.department-manage-summary > div {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 8px;
    background: var(--surface-soft);
}

.department-manage-summary span {
    color: var(--muted);
    font-size: 9.5px;
}

.department-manage-summary strong {
    margin-top: 2px;
    font-size: 11px;
}

.department-manage-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.department-manage-members > span {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 7px;
    background: var(--surface-soft);
}

.department-manage-members strong {
    font-size: 10.5px;
}

.department-manage-members small {
    color: var(--muted);
    font-size: 9px;
}

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

.inline-action-form + .department-task-tags {
    margin-top: 10px;
}

.password-reset-field .control-shell {
    padding-right: 6px;
}

.quick-recents {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.quick-recents > span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.quick-recents > div {
    display: flex;
    min-width: 0;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-recents > div::-webkit-scrollbar {
    display: none;
}

.quick-recent-button {
    display: flex;
    min-width: 150px;
    max-width: 230px;
    flex-direction: column;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    text-align: left;
}

.quick-recent-button:hover {
    border-color: #bcd6e5;
    background: var(--blue-soft);
}

.quick-recent-button strong {
    overflow: hidden;
    color: #355466;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-recent-button small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .quick-recents {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .quick-recents > div {
        width: 100%;
    }
}

.password-reset-field .button-small {
    min-height: 31px;
    padding: 0 11px;
    white-space: nowrap;
}

.credential-result {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 16px 0 4px;
    padding: 15px;
    border: 1px solid #cfdee6;
    border-radius: 10px;
    background: var(--surface-soft);
}

.credential-result span {
    color: var(--muted);
    font-size: 11.5px;
}

.credential-result strong {
    color: var(--navy-900);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.03em;
    user-select: all;
}

.department-member-add {
    grid-template-columns: minmax(0, 1fr) 150px auto;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .inline-action-form,
    .department-member-add {
        grid-template-columns: 1fr;
    }
}

.timeline-time,
.proposal-copy span,
.recent-client span,
.recent-duration {
    font-size: 10px;
}

.timeline-copy span,
.entry-copy span,
.entry-copy small,
.cell-copy small {
    font-size: 10.5px;
}

.data-table th {
    font-size: 10px;
}

.status-tag,
.subtle-pill,
.result-count {
    font-size: 10px;
}

.sidebar-brand span,
.positioned-note,
.profile-copy span,
.profile-text small {
    font-size: 10px;
}

.insight-search-head p,
.insight-chart-caption {
    font-size: 12px;
}

.insight-suggestions button,
.insight-interpretation span,
.insight-breakdown-row strong,
.insight-breakdown-row span,
.insight-highlights span {
    font-size: 10.5px;
}

/* Project access: teams and direct people are independent, additive grants. */
.project-access-overview {
    margin: 16px 0;
    padding: 16px 0 2px;
    border-top: 1px solid var(--line);
}

.project-access-overview-head,
.project-access-overview-grid,
.access-manager-head,
.access-selection-row,
.access-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-access-overview-head,
.access-manager-head {
    justify-content: space-between;
}

.project-access-overview-head h3,
.access-manager-head h3 {
    margin: 0;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.project-access-overview-head p,
.access-manager-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.project-access-overview-grid {
    align-items: flex-start;
    margin-top: 14px;
}

.project-access-overview-grid > div {
    flex: 1 1 0;
    min-width: 0;
}

.project-access-overview-grid > div > span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.access-selection-row {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 10px;
}

.access-chip-list {
    display: flex;
    flex: 1 1 280px;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.access-chip-list.compact {
    flex: none;
}

.access-chip {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    padding: 5px 8px 5px 11px;
    border: 1px solid #ccdde6;
    border-radius: 9px;
    background: #f1f7fa;
    color: var(--navy-900);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.access-chip-list.compact .access-chip {
    padding: 5px 10px;
    background: #f6f9fb;
}

.access-chip > span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.access-chip small {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 400;
}

.access-chip button {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #607988;
    cursor: pointer;
}

.access-chip button:hover {
    background: #dceaf0;
    color: var(--navy-900);
}

.access-chip button:focus-visible,
.access-add-button:focus-visible {
    outline: 3px solid rgba(75, 159, 209, 0.32);
    outline-offset: 2px;
}

.access-add-button {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px dashed #abc7d5;
    border-radius: 9px;
    background: #fff;
    color: var(--navy-900);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.access-add-button:hover {
    border-color: var(--blue);
    background: #f4fafc;
}

.access-empty {
    align-self: center;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.access-picker {
    align-items: stretch;
    margin-top: 9px;
    padding: 10px;
    border-radius: 10px;
    background: #f6f9fb;
}

.access-picker select {
    flex: 1 1 280px;
    min-width: 0;
}

.access-picker .button {
    flex: 0 0 auto;
}

.access-form-field .form-hint {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

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

.project-access-copy {
    margin-bottom: 2px;
}

.access-manager-section {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.access-manager-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 700px) {
    .project-access-overview-head,
    .access-manager-head,
    .project-access-overview-grid,
    .access-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .project-access-overview-head .button,
    .access-picker .button {
        align-self: flex-start;
    }

    .project-access-overview-grid {
        gap: 16px;
    }

    .access-chip-list {
        flex-basis: 100%;
    }
}

/* Project navigator: recent activity by default, with client and year alternatives. */
.project-tree-toolbar {
    margin-bottom: 9px;
}

.project-tree-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 2px 12px;
    border-bottom: 1px solid var(--line);
}

.project-tree-controls label {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.project-tree-controls select {
    min-width: 152px;
    height: 34px;
    padding: 0 28px 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.project-tree-controls span {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.project-tree {
    max-height: calc(100vh - 260px);
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-color: #c5d5de transparent;
    scrollbar-width: thin;
}

.project-group {
    display: block;
}

.project-group summary {
    display: flex;
    min-height: 31px;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 7px;
    color: var(--navy-900);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 700;
    list-style: none;
}

.project-group summary::-webkit-details-marker {
    display: none;
}

.project-group summary:hover {
    background: #f2f7f9;
}

.project-group summary:focus-visible {
    outline: 3px solid rgba(75, 159, 209, 0.28);
    outline-offset: 1px;
}

.project-group summary > span {
    flex: 1;
}

.project-group summary small {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 6px;
    background: #edf3f6;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
}

.project-group summary svg {
    width: 14px;
    height: 14px;
    color: #7c929f;
    transition: transform 160ms ease;
}

.project-group[open] summary svg {
    transform: rotate(180deg);
}

.project-group-items {
    display: grid;
    gap: 3px;
    padding: 3px 0 2px;
}

.project-group-items .tree-node {
    min-height: 52px;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 9px;
    font-size: 12.5px;
}

.project-group-items .tree-node > svg {
    flex: 0 0 15px;
    margin-top: 2px;
}

.project-node-copy {
    display: flex !important;
    min-width: 0;
    flex: 1 1 auto !important;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    white-space: normal !important;
}

.project-node-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--navy-800);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-node-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 920px) {
    .project-tree {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 700px) {
    .project-tree-controls {
        flex-wrap: wrap;
    }

    .project-tree-controls span {
        width: 100%;
        margin-left: 0;
    }
}

/* Report drill-down */
.modal.modal-wide {
    width: min(960px, calc(100vw - 44px));
}

.report-detail-trigger {
    display: inline;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy-800);
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: #bdced8;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.report-detail-trigger:hover {
    color: var(--blue);
    text-decoration-color: currentColor;
}

.report-detail-trigger:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.data-table .cell-copy small .report-detail-trigger {
    color: #5b7485;
    font-size: inherit;
    font-weight: 500;
}

.report-detail-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 12px;
}

.report-detail-context strong {
    color: var(--navy-800);
    font-weight: 650;
}

.report-detail-totals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.report-detail-totals > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 14px 15px;
    border-right: 1px solid var(--line);
}

.report-detail-totals > div:last-child {
    border-right: 0;
}

.report-detail-totals span {
    color: var(--muted);
    font-size: 11px;
}

.report-detail-totals strong {
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.report-detail-totals small {
    color: var(--muted);
    font-size: 10.5px;
}

.report-detail-breakdowns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.report-detail-breakdowns h3,
.report-detail-list-head h3 {
    margin: 0;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 15px;
}

.report-detail-breakdown-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f4;
}

.report-detail-breakdown-row > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.report-detail-breakdown-row strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-detail-breakdown-row small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-detail-breakdown-row > span:last-child {
    flex: 0 0 auto;
    color: var(--navy-800);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.report-detail-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.report-detail-list-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11.5px;
}

.report-detail-list {
    display: grid;
    margin-top: 8px;
}

.report-detail-entry {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto 64px;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f4;
}

.report-detail-entry time {
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.report-detail-entry-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.report-detail-entry-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-detail-entry-copy span,
.report-detail-entry-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-detail-entry-duration {
    color: var(--navy-800);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

@media (max-width: 700px) {
    .modal.modal-wide {
        width: 100%;
    }

    .report-detail-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-detail-totals > div:nth-child(2) {
        border-right: 0;
    }

    .report-detail-totals > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .report-detail-breakdowns {
        grid-template-columns: 1fr;
    }

    .report-detail-entry {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .report-detail-entry time {
        grid-column: 1;
    }

    .report-detail-entry-copy {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .report-detail-entry .status-tag {
        grid-column: 1;
        justify-self: start;
    }

    .report-detail-entry-duration {
        grid-column: 2;
    }
}

/* Close-day verification */
.close-review-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.close-review-summary > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 13px 14px;
    border-right: 1px solid var(--line);
}

.close-review-summary > div:last-child {
    border-right: 0;
}

.close-review-summary span {
    color: var(--muted);
    font-size: 11px;
}

.close-review-summary strong {
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.close-review-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.close-review-head h3 {
    margin: 0;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 15px;
}

.close-review-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11.5px;
}

.close-review-head > span {
    color: var(--muted);
    font-size: 11px;
}

.close-review-list {
    max-height: 350px;
    margin-top: 9px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    scrollbar-color: #c5d5de transparent;
    scrollbar-width: thin;
}

.close-review-entry {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 64px;
    align-items: center;
    gap: 11px;
    padding: 10px 2px;
    border-bottom: 1px solid #edf1f4;
}

.close-review-entry:last-child {
    border-bottom: 0;
}

.close-review-entry .entry-icon {
    width: 34px;
    height: 34px;
}

.close-review-entry-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.close-review-entry-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close-review-entry-copy span,
.close-review-entry-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close-review-entry-duration {
    color: var(--navy-800);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.close-review-confirm {
    margin-top: 16px;
    font-size: 12.5px;
}

@media (max-width: 700px) {
    .close-review-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .close-review-summary > div:nth-child(2) {
        border-right: 0;
    }

    .close-review-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .close-review-list {
        max-height: 310px;
    }

    .close-review-entry {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .close-review-entry .status-tag {
        display: none;
    }
}

/* Widget companion: overlays and compact actions */
.widget-mode .modal-backdrop {
    box-sizing: border-box;
    padding: 12px;
    align-items: center;
    background: rgba(5, 31, 49, 0.5);
    backdrop-filter: blur(4px);
}

.widget-mode .modal {
    width: min(100%, 540px);
    max-height: calc(100dvh - 24px);
    border: 1px solid rgba(213, 226, 234, 0.9);
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(2, 24, 40, 0.3);
}

.widget-mode .modal > header {
    padding: 18px 18px 13px;
}

.widget-mode .modal > header h2 {
    font-size: 21px;
}

.widget-mode .modal-body {
    padding: 16px 18px;
}

.widget-mode .widget-entries-modal .close-review-list {
    max-height: 350px;
}

.widget-mode .modal > footer {
    padding: 12px 18px 18px;
}

.widget-mode .modal-form-grid {
    grid-template-columns: 1fr;
}

.widget-mode .modal-form-grid .full {
    grid-column: 1;
}

.widget-mode .widget-header .widget-state > span {
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.widget-mode .widget-state {
    margin-left: auto;
    min-height: 34px;
    flex: 0 0 auto;
    gap: 7px;
    padding: 8px 12px;
    border: 0;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    -webkit-app-region: no-drag;
}

.widget-mode .widget-state i {
    width: 9px;
    height: 9px;
}

.widget-mode .widget-state:not(:disabled):hover {
    background: #e3f0ed;
}

.widget-mode .widget-state:focus-visible {
    outline: 3px solid rgba(75, 159, 209, 0.4);
    outline-offset: 2px;
}

.widget-mode .widget-state.is-closed {
    background: var(--state-closed-soft);
    color: var(--state-closed) !important;
    cursor: default;
}

.widget-mode .widget-state.is-closed i {
    background: var(--state-closed);
}

.widget-mode .widget-state.is-warning {
    background: #fbe9e7;
    color: #9b2f2f !important;
    animation: widget-day-alert 1.35s ease-in-out infinite;
}

.widget-mode .widget-state.is-warning i {
    background: #bd3f3f;
    box-shadow: 0 0 0 4px rgba(189, 63, 63, 0.14);
}

@keyframes widget-day-alert {
    0%,
    100% {
        background: #fbe9e7;
        opacity: 1;
    }

    50% {
        background: #f4ceca;
        opacity: 0.76;
    }
}

.widget-extra-fields .widget-open-app {
    grid-column: 2;
    justify-self: end;
}

.widget-open-app {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid #c9d9e3;
    border-radius: 8px;
    background: #fff;
    color: var(--navy-800);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.widget-open-app:hover {
    border-color: #9dbbcf;
    background: #f4f9fb;
}

.widget-open-app:focus-visible {
    outline: 3px solid rgba(75, 159, 209, 0.32);
    outline-offset: 2px;
}

.widget-open-app svg {
    width: 13px;
    height: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .widget-mode .widget-state.is-warning {
        animation: none;
        box-shadow: inset 0 0 0 2px rgba(189, 63, 63, 0.4);
    }
}

/* Widget readability: slightly larger labels and values without changing the web UI. */
.widget-mode .control-shell input,
.widget-mode .control-shell select,
.widget-mode .suggestion-item strong,
.widget-mode .suggestion-item span {
    letter-spacing: 0;
}

.widget-mode .widget-extra-fields .check-row {
    font-size: 13px;
}

.widget-mode .save-entry {
    font-size: 14px;
}

.widget-mode .widget-summary span {
    font-size: 9.5px;
}

.widget-mode .widget-summary small,
.widget-mode .widget-summary .widget-entry-count,
.widget-mode .widget-summary .widget-proposals {
    font-size: 10.5px;
}

.insight-download {
    margin-top: 12px;
}

.insight-series-legend {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 11px;
}

.insight-series-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.insight-series-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.insight-chart-groups {
    display: flex;
    min-height: 166px;
    align-items: end;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 2px 0;
}

.insight-chart-group {
    display: flex;
    min-width: 38px;
    flex: 1 0 38px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.insight-chart-bars {
    display: flex;
    height: 150px;
    align-items: end;
    gap: 4px;
}

.insight-chart-bars i {
    display: block;
    width: 12px;
    border-radius: 4px 4px 1px 1px;
    background: var(--blue);
}

.insight-chart-bars .series-1,
.insight-series-legend .series-1 {
    background: var(--gold);
}

.insight-chart-group small {
    max-width: 74px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
}

/* DUAL NEXO login */
.nexo-login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 58.5fr) minmax(500px, 41.5fr);
    background: #f4f9fd;
}

.nexo-login-visual {
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: #0a3151;
}

.nexo-login-visual-image {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.nexo-login-form-side {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 48px 56px;
    background: #f4f9fd;
}

.nexo-login-form-side::before,
.nexo-login-form-side::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.nexo-login-form-side::before {
    top: -230px;
    right: -260px;
    width: 620px;
    height: 620px;
    border: 26px solid rgba(158, 208, 244, 0.24);
    background: rgba(235, 246, 255, 0.82);
    transform: rotate(-18deg);
}

.nexo-login-form-side::after {
    right: -130px;
    bottom: -310px;
    width: 560px;
    height: 560px;
    background: rgba(218, 238, 251, 0.68);
}

.nexo-login-card {
    position: relative;
    z-index: 2;
    width: min(540px, 100%);
    padding: 40px 52px 36px;
    border: 1px solid rgba(219, 228, 236, 0.82);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(10, 48, 76, 0.08);
}

.nexo-login-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 24px;
}

.nexo-dual-logo {
    width: 120px;
}

.nexo-wordmark {
    display: flex;
    align-items: baseline;
    color: #0a3556;
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 0.92;
}

.nexo-wordmark .is-blue {
    color: #469bd1;
}

.nexo-login-card h2 {
    margin: 0 0 8px;
    color: #082d49;
    font-family: var(--font-heading);
    font-size: 33px;
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.nexo-login-card .login-subtitle {
    margin: 0;
    color: #4e6472;
    font-size: 17px;
    line-height: 1.45;
}

.nexo-login-card .login-form {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.nexo-login-card .field-label {
    margin-top: 3px;
    color: #12344d;
    font-size: 14.5px;
    font-weight: 700;
}

.nexo-login-card .input-shell {
    min-height: 60px;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #d3e0ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.nexo-login-card .input-shell:focus-within {
    border-color: #3e95c8;
    box-shadow: 0 0 0 3px rgba(75, 159, 209, 0.12);
}

.nexo-login-card .input-shell input:focus-visible {
    outline: none;
}

.nexo-login-card .input-shell > svg {
    width: 20px;
    height: 20px;
    color: #173c58;
}

.nexo-login-card .input-shell input {
    height: 58px;
    color: #173c58;
    font-family: var(--font-body);
    font-size: 16.5px;
}

.nexo-login-card .input-shell input::placeholder {
    color: #6f8393;
    opacity: 1;
}

.nexo-login-card .reveal-password {
    color: #526c7d;
}

.nexo-login-card .field-error:empty {
    display: none;
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 5px 0 4px;
}

.login-options-row .check-row {
    margin: 0;
    color: #395163;
    font-size: 13.5px;
    line-height: 1.35;
}

.login-options-row .check-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.forgot-password-link {
    padding: 0;
    background: transparent;
    color: #2683b8;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.forgot-password-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.forgot-password-link:focus-visible {
    outline: 3px solid rgba(75, 159, 209, 0.22);
    outline-offset: 3px;
}

.forgot-password-message {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #cfe1ec;
    border-radius: 8px;
    background: #f2f8fc;
    color: #456476;
    font-size: 12.5px;
}

.nexo-login-card .login-form > .button {
    min-height: 61px;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    border-radius: 8px;
    background: #0a3153;
    font-family: var(--font-body);
    font-size: 17.5px;
    font-weight: 650;
}

.nexo-login-card .login-form > .button:hover {
    background: #123f66;
}

.nexo-login-card .login-form > .button svg {
    width: 20px;
    height: 20px;
}

.nexo-login-card .login-security {
    align-items: center;
    gap: 13px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e4ebf0;
    color: #667c8b;
}

.login-security-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e8f5ec;
    color: #46936c;
}

.login-security-icon svg {
    width: 21px;
    height: 21px;
}

.nexo-login-card .login-security > span:last-child {
    display: flex;
    flex-direction: column;
}

.nexo-login-card .login-security strong {
    color: #2f4c61;
    font-size: 12.5px;
    font-weight: 650;
}

.nexo-login-card .login-security small {
    margin-top: 2px;
    color: #718491;
    font-size: 11.5px;
}

.login-page-widget .login-options-row {
    display: block;
}

.login-page-widget .forgot-password-link,
.login-page-widget .forgot-password-message {
    display: none;
}

@media (max-width: 1320px) {
    .nexo-login-page {
        grid-template-columns: minmax(0, 55fr) minmax(470px, 45fr);
    }

    .nexo-login-form-side {
        padding: 36px;
    }
}

@media (min-width: 1001px) {
    .nexo-login-card .login-options-row {
        gap: 8px;
    }

    .nexo-login-card .login-options-row .check-row {
        gap: 7px;
        font-size: 13px;
        white-space: nowrap;
    }

    .nexo-login-card .forgot-password-link {
        font-size: 13px;
    }
}

@media (max-width: 1000px) {
    .nexo-login-page {
        display: block;
        min-height: 100svh;
    }

    .nexo-login-visual {
        display: none;
    }

    .nexo-login-form-side {
        min-height: 100svh;
        padding: 34px 22px;
    }

    .nexo-login-form-side::before {
        top: -280px;
        right: -340px;
    }
}

@media (max-width: 600px) {
    .nexo-login-form-side {
        display: flex;
        align-items: center;
        padding: 18px 14px;
    }

    .nexo-login-card {
        padding: 30px 23px 27px;
        border-radius: 22px;
    }

    .nexo-login-lockup {
        margin-bottom: 20px;
    }

    .nexo-dual-logo {
        width: 108px;
    }

    .nexo-wordmark {
        font-size: 44px;
    }

    .nexo-login-card h2 {
        font-size: 29px;
    }

    .nexo-login-card .login-subtitle {
        font-size: 15.5px;
    }

    .login-options-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .nexo-login-card .input-shell,
    .nexo-login-card .input-shell input {
        min-height: 56px;
        height: 56px;
    }
}

/* NEXO Corporate Premium A V3 — canonical tasks workspace.
   Replaces the two legacy task layers that previously lived in app.css. */

.task-page-title {
    align-items: center;
    margin-bottom: 28px;
}

.task-page-title .eyebrow {
    margin-bottom: 8px;
}

.task-page-title h1 {
    margin: 0 0 6px;
    color: var(--nexo-title);
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.17;
}

.task-page-title .page-subtitle {
    color: var(--nexo-muted);
    font-size: 14px;
}

.task-page-title > .button-primary,
#new-work-task-button {
    min-height: 48px;
    padding: 0 21px;
    border-radius: 9px;
    background: var(--nexo-primary);
    box-shadow: 0 4px 10px rgba(10, 47, 77, 0.11);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

#new-work-task-button:hover {
    background: var(--nexo-primary-hover);
}

#new-work-task-button svg {
    width: 18px;
    height: 18px;
}

.task-command-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin: 0 0 22px;
}

.task-command-row .task-board-tabs {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.task-command-row .task-board-tabs button {
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--nexo-border);
    border-radius: 10px;
    background: var(--nexo-surface);
    color: #50728a;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
}

.task-command-row .task-board-tabs button:hover {
    border-color: #bfd9e9;
    color: #154b74;
}

.task-command-row .task-board-tabs button.is-active {
    border-color: #e5f2fa;
    background: #e5f2fa;
    box-shadow: none;
    color: #154b74;
    font-weight: 700;
}

.task-command-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.task-command-actions .task-search {
    display: flex;
    width: 365px;
    max-width: 100%;
    min-height: 48px;
    flex: 0 1 365px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--nexo-border);
    border-radius: 10px;
    background: var(--nexo-surface);
    color: #6d9abb;
}

.task-command-actions .task-search:focus-within {
    border-color: var(--nexo-outline-focus);
    box-shadow: 0 0 0 3px rgba(46, 148, 209, 0.14);
}

.task-command-actions .task-search svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.task-command-actions .task-search input {
    height: 100%;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--nexo-text);
    font-size: 12.5px;
}

.task-command-actions .task-view-switch {
    min-height: 48px;
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid #dbe6ed;
    border-radius: 10px;
    background: var(--nexo-surface);
}

.task-command-actions .task-view-switch button {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    color: #5a7890;
    font-size: 12px;
    font-weight: 600;
}

.task-command-actions .task-view-switch button.is-active {
    background: #edf6fc;
    color: #0e5a90;
}

.task-command-actions .task-view-switch svg {
    width: 16px;
    height: 16px;
}

.task-filter-toggle {
    min-width: 132px;
    min-height: 48px;
    flex: 0 0 auto;
    justify-content: center;
    border: 1px solid var(--nexo-primary);
    border-radius: 9px;
    background: var(--nexo-primary);
    box-shadow: 0 3px 8px rgba(10, 47, 77, 0.11);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.task-filter-toggle:hover,
.task-filter-toggle.is-open,
.task-filter-toggle.has-active-filters {
    border-color: var(--nexo-primary-hover);
    background: var(--nexo-primary-hover);
    color: #fff;
}

.task-filter-toggle svg {
    width: 17px;
    height: 17px;
}

.task-filter-toggle b {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fad276;
    font-size: 10px;
    font-weight: 700;
}

.task-summary-band {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.task-summary-band > button.task-summary-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 88px;
    align-items: center;
    gap: 11px;
    padding: 14px 12px;
    border: 1px solid #e5edf4;
    border-radius: 14px;
    background: var(--nexo-surface);
    box-shadow: 0 4px 18px rgba(12, 47, 73, 0.045);
    color: var(--nexo-text);
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.task-summary-band > button.task-summary-item:hover {
    border-color: #bad8ea;
    background: #fcfeff;
    box-shadow: 0 8px 24px rgba(12, 47, 73, 0.085);
}

.task-summary-band > button.task-summary-item.is-selected {
    border-color: #8cc7e9;
    box-shadow: 0 0 0 2px rgba(46, 148, 209, 0.14), 0 8px 24px rgba(12, 47, 73, 0.07);
}

.task-summary-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e5f3ff;
    color: #1975c1;
}

.task-summary-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
}

.task-summary-icon.pending {
    background: #fff4dd;
    color: #cb8419;
}

.task-summary-icon.progress {
    background: #e5f3ff;
    color: #288cd3;
}

.task-summary-icon.overdue {
    background: #fdecef;
    color: #cc4855;
}

.task-summary-icon.completed {
    background: #e3f6ee;
    color: #168b69;
}

.task-summary-icon.rejected {
    background: #fdecef;
    color: #b44444;
}

.task-summary-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.task-summary-copy strong {
    margin: 0;
    color: #103b60;
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.task-summary-copy small {
    color: var(--nexo-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.task-summary-arrow {
    display: grid;
    margin-left: auto;
    color: #88a8be;
    font-style: normal;
}

.task-summary-arrow svg {
    width: 16px;
    height: 16px;
}

.task-history-hint {
    margin: 0 0 14px;
    color: #5f7789;
    font-size: 12px;
    line-height: 1.45;
}

.task-history-hint[hidden] {
    display: none;
}

.task-filter-panel {
    margin: 0 0 19px;
    padding: 0;
}

.task-filter-panel .task-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 19px;
    border: 1px solid #dfeaf2;
    border-radius: 14px;
    background: var(--nexo-surface);
    box-shadow: 0 4px 18px rgba(12, 47, 73, 0.05);
}

.task-filter-panel .task-status-filter {
    grid-column: span 2;
}

.task-filter-field,
.task-select {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.task-filter-field > span,
.task-select > span,
.task-status-filter legend {
    color: #526f86;
    font-size: 11px;
    font-weight: 600;
}

.task-filter-field input,
.task-filter-field select,
.task-select select {
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid var(--nexo-border);
    border-radius: var(--nexo-radius-input);
    background: #fff;
    color: var(--nexo-text);
    font-size: 12.5px;
}

.task-status-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.task-status-filter legend {
    width: 100%;
    margin-bottom: -1px;
}

.task-status-filter label {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--nexo-border);
    border-radius: 999px;
    background: #fff;
    color: #5f7789;
    font-size: 11px;
    cursor: pointer;
}

.task-status-filter label:has(input:checked) {
    border-color: #b9dced;
    background: #edf7fc;
    color: #154b74;
    font-weight: 700;
}

.task-status-filter input {
    width: 14px;
    height: 14px;
    accent-color: var(--nexo-primary);
}

.task-clear-filters {
    align-self: end;
    justify-self: start;
    min-height: 42px;
}

.task-board-panel {
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfeaf2;
    border-radius: 16px;
    background: var(--nexo-surface);
    box-shadow: 0 4px 18px rgba(12, 47, 73, 0.035);
}

.task-board-panel > #task-board-list {
    display: block;
    padding: 0;
}

.task-group {
    min-width: 0;
}

.task-board-head {
    border: 0;
}

.task-list-heading,
.task-results-bar {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.task-board-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

.task-board-list.is-list {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.task-table-head,
.task-list-row {
    display: grid;
    grid-template-columns:
        minmax(245px, 2.05fr)
        minmax(155px, 1.2fr)
        minmax(175px, 1.12fr)
        minmax(116px, 0.77fr)
        88px
        minmax(207px, 1.42fr);
    column-gap: 16px;
    align-items: center;
    padding-right: 22px;
    padding-left: 22px;
}

.task-table-head {
    min-height: 54px;
    border-bottom: 0;
    background: #f6fafd;
    color: #6b87a0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.task-table-head span:last-child {
    padding-left: 4px;
    text-align: left;
}

.task-list-row {
    min-height: 111px;
    border: 0;
    border-top: 1px solid #e9f0f5;
    border-radius: 0;
    background: #fff;
}

.task-list-row:hover {
    background: #f9fcff;
}

.task-list-row.priority-critica,
.task-list-row.is-overdue {
    border-color: #e9f0f5;
    background: #fff;
}

.task-list-main,
.task-list-client,
.task-list-person,
.task-list-due {
    min-width: 0;
}

.task-list-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.task-list-kicker .status-tag {
    min-height: 21px;
    padding: 0 8px;
    font-size: 9.5px;
}

.task-list-main h3 {
    margin: 5px 0;
    color: #123b60;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.45;
}

.task-list-main p,
.task-list-main .task-completion-comment,
.task-list-main .task-rejection-comment {
    overflow: hidden;
    margin: 0;
    color: #58758d;
    font-size: 11.5px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-list-main .task-completion-comment {
    margin-top: 4px;
    color: #355e6f;
    font-weight: 600;
}

.task-list-main .task-rejection-comment {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: #8f3742;
    font-size: 11.5px;
    font-weight: 600;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}

.task-rejection-comment small {
    margin-left: 6px;
    color: #7a6670;
    font-size: 10.5px;
    font-weight: 500;
}

.task-code {
    color: #56748e;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0;
}

.task-list-client {
    display: flex;
    flex-direction: column;
}

.task-list-client strong,
.task-list-client small {
    line-height: 1.45;
    white-space: normal;
}

.task-list-client strong {
    color: #23465f;
    font-size: 12px;
    font-weight: 600;
}

.task-list-client small {
    margin-top: 4px;
    color: #58758d;
    font-size: 11px;
}

.task-list-person {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
}

.task-list-person > span:last-child,
.task-list-due {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.task-person-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e3f2fb;
    color: #12639b !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0 !important;
}

.task-list-person strong,
.task-list-person small,
.task-list-due strong,
.task-list-due small {
    line-height: 1.45;
}

.task-list-person strong,
.task-list-due strong {
    color: #23465f;
    font-size: 12px;
    font-weight: 600;
}

.task-list-person small,
.task-list-due small {
    margin-top: 4px;
    color: #58758d;
    font-size: 11px;
}

.task-list-row.is-overdue .task-list-due strong,
.task-list-row.is-overdue .task-list-due small {
    color: #cc4855;
}

.task-priority {
    min-height: 28px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.task-priority.normal {
    background: #e8f4fc;
    color: #1876b3;
}

.task-priority.alta {
    background: #fff0ca;
    color: #966000;
}

.task-priority.critica {
    background: #fdecef;
    color: #cc4855;
}

.status-tag {
    min-height: 28px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-tag.closed {
    background: var(--state-closed-soft);
    color: var(--state-closed);
}

.status-tag.open {
    background: var(--state-open-soft);
    color: var(--state-open);
}

.status-tag.internal {
    background: #fff0ca;
    color: #966000;
}

.status-tag.reserved,
.status-tag.en-curso {
    background: #e4f2fa;
    color: #1f78ac;
}

.status-tag.completed {
    background: #e3f6ee;
    color: #168b69;
}

.status-tag.overdue {
    background: #fdecef;
    color: #cc4855;
}

.status-tag.rejected {
    background: #f9e5e8;
    color: #9e303e;
}

.task-list-actions {
    display: flex;
    justify-content: flex-start;
}

.task-list-actions .task-card-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
}

.task-actions .button,
.task-list-actions .button,
.task-card-actions .button {
    min-height: 42px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
}

.task-list-actions .button-primary,
.task-card-actions .button-primary {
    padding: 0 14px;
    border-color: var(--nexo-primary);
    background: var(--nexo-primary);
    color: #fff;
}

.task-list-actions .button-primary:hover,
.task-card-actions .button-primary:hover {
    background: var(--nexo-primary-hover);
}

.task-list-actions .task-finalize-button,
.task-card-actions .task-finalize-button {
    padding: 0 13px;
    border: 1px solid #d8e6ee;
    background: #fff;
    color: #194a71;
}

.task-more-button {
    width: 37px;
    height: 42px;
    flex: 0 0 37px;
    border: 1px solid #d8e6ee;
    border-radius: 9px;
    background: #fff;
    color: #416d8a;
}

.task-more-button:hover {
    border-color: #bad8e9;
    background: #f1f8fc;
    color: #194a71;
}

.task-card {
    display: flex;
    min-width: 0;
    min-height: 215px;
    flex-direction: column;
    gap: 11px;
    padding: 18px;
    border: 1px solid #e5edf4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(12, 47, 73, 0.035);
}

.task-card:hover {
    border-color: #bad8ea;
    box-shadow: 0 8px 24px rgba(12, 47, 73, 0.07);
}

.task-card.priority-alta,
.task-card.priority-critica,
.task-card.is-overdue:not(.is-completed) {
    border-color: #e5edf4;
    box-shadow: 0 4px 18px rgba(12, 47, 73, 0.035);
}

.task-card.is-completed {
    background: #f8fafb;
    opacity: 1;
}

.task-card.is-rejected,
.task-list-row.is-rejected {
    background: #fffafb;
}

.task-card header,
.task-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.task-card h3 {
    margin: 0;
    color: #123b60;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.45;
}

.task-card .task-path {
    margin: 0;
    color: #58758d;
    font-size: 11.5px;
    line-height: 1.4;
}

.task-card .task-completion-comment {
    color: #355e6f;
    font-size: 11.5px;
}

.task-card .task-rejection-comment {
    margin: 9px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff1f3;
    color: #8f3742;
    font-size: 11.5px;
    line-height: 1.45;
}

.task-card .task-rejection-comment small {
    display: block;
    margin-top: 4px;
    color: #7a6670;
    font-size: 10.5px;
}

.button-danger {
    border: 1px solid #a73745;
    background: #a73745;
    color: #fff;
}

.button-danger:hover,
.button-danger:focus-visible {
    border-color: #892b37;
    background: #892b37;
    color: #fff;
}

.rejection-callout {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0;
    padding: 11px 13px;
    border: 1px solid #efd2d7;
    border-radius: 9px;
    background: #fff5f6;
    color: #8f3742;
}

.rejection-callout svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.rejection-callout p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #58758d;
    font-size: 11px;
}

.task-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.task-card-meta svg {
    width: 14px;
    height: 14px;
}

.task-card footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #edf2f6;
}

.task-card-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.task-action-menu {
    position: fixed;
    z-index: 130;
    display: flex;
    width: 218px;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border: 1px solid #dbe5ea;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(5, 33, 60, 0.24);
}

.task-action-menu button {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border-radius: 7px;
    background: transparent;
    color: #29485b;
    font-size: 12px;
    text-align: left;
}

.task-action-menu button:hover,
.task-action-menu button:focus-visible {
    background: #eef6f9;
    color: var(--nexo-primary);
}

.task-action-menu button.task-menu-danger {
    margin-top: 3px;
    border-top: 1px solid #f0dde1;
    border-radius: 0 0 7px 7px;
    color: #a63a48;
}

.task-action-menu button.task-menu-danger:hover,
.task-action-menu button.task-menu-danger:focus-visible {
    background: #fff1f3;
    color: #8f2938;
}

.task-action-menu svg {
    width: 15px;
    height: 15px;
}

.task-table-footer {
    padding: 15px 22px;
    border-top: 1px solid #e9f0f5;
    color: #58758d;
    font-size: 11.5px;
}

.task-group + .task-group {
    margin-top: 18px;
}

.task-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0 2px;
}

.task-group-head h3 {
    margin: 0;
    color: var(--nexo-title);
    font-family: var(--font-heading);
    font-size: 15px;
}

.task-group-head span {
    color: var(--nexo-muted);
    font-size: 11px;
}

.nav-link[data-view="messages"] .nav-count {
    background: #b44444;
    color: #fff;
}

.messages-page-title {
    margin-bottom: 20px;
}

.messages-workspace {
    display: grid;
    min-height: 620px;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    gap: 18px;
}

.messages-inbox-panel,
.message-conversation-panel {
    display: flex;
    min-width: 0;
    min-height: 620px;
    flex-direction: column;
    overflow: hidden;
}

.messages-inbox-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
}

.messages-inbox-head h2,
.message-conversation-head h2 {
    margin: 0;
    color: #123c5d;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.messages-inbox-head p,
.message-conversation-head p {
    margin: 4px 0 0;
    color: #60798b;
    font-size: 11.5px;
    line-height: 1.45;
}

.message-filter-tabs {
    display: flex;
    gap: 5px;
    padding: 0 18px 12px;
    border-bottom: 1px solid #e4ecf2;
}

.message-filter-tabs button {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    background: transparent;
    color: #60798b;
    font-size: 10.5px;
    font-weight: 600;
}

.message-filter-tabs button:hover {
    background: #f0f6fa;
    color: #174d72;
}

.message-filter-tabs button.is-active {
    background: #e6f3fa;
    color: #125886;
}

.message-search {
    display: flex;
    min-height: 41px;
    align-items: center;
    gap: 9px;
    margin: 12px 18px;
    padding: 0 12px;
    border: 1px solid #dfe8ef;
    border-radius: 9px;
    background: #fff;
    color: #6d94ad;
}

.message-search:focus-within {
    border-color: #4b9fd1;
    box-shadow: 0 0 0 3px rgba(75, 159, 209, 0.13);
}

.message-search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.message-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173b56;
    font-size: 12px;
}

.message-thread-list {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    border-top: 1px solid #edf2f5;
}

.message-thread-item {
    display: grid;
    width: 100%;
    min-height: 94px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf2f5;
    border-radius: 0;
    background: #fff;
    color: #173b56;
    text-align: left;
}

.message-thread-item:hover {
    background: #f8fbfd;
}

.message-thread-item.is-active {
    background: #eaf5fb;
    box-shadow: inset 3px 0 0 #328cc3;
}

.message-thread-item.is-unread {
    background: #fffdf7;
}

.message-thread-item.is-unread.is-active {
    background: #eaf5fb;
}

.message-thread-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #e4f0f7;
    color: #21678f;
    font-size: 10px;
    font-weight: 700;
}

.message-thread-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.message-thread-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.message-thread-top strong {
    overflow: hidden;
    color: #173b56;
    font-size: 12.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-thread-top time {
    flex: 0 0 auto;
    color: #7a8f9e;
    font-size: 9.5px;
}

.message-thread-context {
    overflow: hidden;
    color: #357398;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-thread-audience {
    color: #718798;
    font-size: 9.5px;
}

.message-thread-preview {
    display: -webkit-box;
    overflow: hidden;
    color: #60798b;
    font-size: 10.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.message-thread-unread {
    display: grid;
    min-width: 21px;
    height: 21px;
    margin-top: 2px;
    place-items: center;
    border-radius: 999px;
    background: #b44444;
    color: #fff;
    font-size: 9px;
}

.message-conversation-panel {
    min-height: 620px;
    background: #fff;
}

.message-conversation-panel > .empty-state {
    margin: auto;
}

.message-conversation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e4ecf2;
}

.message-context-chip {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef6fa;
    color: #235f83;
    font-size: 9.5px;
    font-weight: 700;
}

.message-context-chip svg {
    width: 13px;
    height: 13px;
}

.message-participant-stack {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.message-participant-stack .avatar,
.message-participant-more {
    display: grid;
    width: 29px;
    height: 29px;
    margin-left: -5px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #dcecf5;
    color: #185b82;
    font-size: 8.5px;
    font-weight: 700;
}

.message-participant-stack .avatar:first-child {
    margin-left: 0;
}

.message-participant-more {
    background: #173f5d;
    color: #fff;
}

.message-participant-line {
    padding: 9px 20px;
    border-bottom: 1px solid #edf2f5;
    color: #647c8d;
    font-size: 10px;
}

.message-participant-line strong {
    color: #45657a;
    font-weight: 700;
}

.thread-message-list {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    overflow-y: auto;
    background: #f8fbfd;
}

.thread-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.thread-message > .avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    font-size: 9px;
}

.thread-message > div {
    max-width: min(76%, 720px);
    padding: 10px 12px;
    border-radius: 4px 12px 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(14, 49, 73, 0.06);
}

.thread-message.is-mine {
    flex-direction: row-reverse;
}

.thread-message.is-mine > div {
    border-radius: 12px 4px 12px 12px;
    background: #e6f3fa;
}

.thread-message header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.thread-message header strong {
    color: #234a63;
    font-size: 10.5px;
    font-weight: 700;
}

.thread-message header time {
    color: #7a8f9e;
    font-size: 9px;
}

.thread-message p {
    margin: 0;
    color: #173b56;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-reply-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px 20px 18px;
    border-top: 1px solid #dde8ef;
    background: #fff;
}

.message-reply-form textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    border: 1px solid #dce7ee;
    border-radius: 10px;
    background: #fbfdfe;
    color: #173b56;
    font-size: 12.5px;
    line-height: 1.5;
}

.message-reply-form textarea:focus,
.message-compose-modal textarea:focus {
    border-color: #4b9fd1;
    box-shadow: 0 0 0 3px rgba(75, 159, 209, 0.13);
    outline: 0;
}

.message-reply-form > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.message-reply-form > div > span {
    color: #738896;
    font-size: 9.5px;
}

.message-recipient-field {
    gap: 8px;
}

.message-recipient-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.message-recipient-toolbar span {
    color: #657e90;
    font-size: 10.5px;
}

.message-recipient-list {
    display: grid;
    max-height: 230px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow-y: auto;
}

.message-recipient-option {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid #dce7ee;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.message-recipient-option:has(input:checked) {
    border-color: #8bc4e3;
    background: #eef8fd;
}

.message-recipient-option input {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    accent-color: var(--nexo-primary);
}

.message-recipient-option .avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    font-size: 8.5px;
}

.message-recipient-option > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.message-recipient-option strong {
    overflow: hidden;
    color: #21465e;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-recipient-option small {
    overflow: hidden;
    color: #6d8494;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 920px) {
    .messages-workspace {
        grid-template-columns: 1fr;
    }

    .messages-inbox-panel,
    .message-conversation-panel {
        min-height: 520px;
    }

    .message-thread-list {
        max-height: 390px;
    }
}

@media (max-width: 700px) {
    .messages-page-title {
        align-items: center;
    }

    #new-message-button {
        width: 44px;
        min-width: 44px;
        padding: 0;
        overflow: hidden;
        font-size: 0;
    }

    .messages-workspace {
        gap: 12px;
    }

    .messages-inbox-panel,
    .message-conversation-panel {
        min-height: 0;
    }

    .message-filter-tabs {
        overflow-x: auto;
    }

    .message-filter-tabs button {
        flex: 0 0 auto;
    }

    .message-recipient-list {
        grid-template-columns: 1fr;
    }

    .thread-message > div {
        max-width: 88%;
    }

    .message-conversation-head {
        flex-direction: column;
    }
}

@media (max-width: 1500px) {
    :root {
        --sidebar-width: 235px;
    }

    .sidebar {
        width: 235px;
    }

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

    .content {
        padding-right: 30px;
        padding-left: 30px;
    }

    .task-command-row {
        gap: 14px;
    }

    .task-command-actions {
        gap: 9px;
    }

    .task-command-actions .task-search {
        flex-basis: 320px;
    }

    .task-table-head,
    .task-list-row {
        grid-template-columns:
            minmax(215px, 2fr)
            minmax(135px, 1.2fr)
            minmax(160px, 1.13fr)
            minmax(110px, 0.85fr)
            75px
            minmax(199px, 1.53fr);
        column-gap: 10px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .task-list-main h3 {
        font-size: 13px;
    }

    .task-summary-band > button.task-summary-item {
        padding: 13px 11px;
        gap: 10px;
    }

    .task-summary-icon {
        width: 43px;
        height: 43px;
    }

    .task-summary-arrow {
        display: none;
    }
}

@media (max-width: 1360px) {
    .task-table-head,
    .task-list-row {
        grid-template-columns:
            minmax(215px, 2fr)
            minmax(155px, 1.2fr)
            minmax(113px, 0.83fr)
            74px
            minmax(200px, 1.52fr);
    }

    .task-table-head > span:nth-child(2),
    .task-list-client {
        display: none;
    }

    .task-command-actions {
        width: 100%;
    }
}

@media (max-width: 1120px) {
    .topbar-breadcrumb {
        display: none;
    }

    :root {
        --sidebar-width: 204px;
    }

    .sidebar {
        width: 204px;
    }

    .sidebar-brand {
        padding-right: 16px;
        padding-left: 16px;
    }

    .sidebar-brand img {
        width: 157px;
    }

    .sidebar-brand .sidebar-nexo-wordmark {
        margin-left: 42px;
    }

    .nav-link {
        gap: 11px;
        padding: 0 12px;
        font-size: 13px;
    }

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

    .content {
        padding: 27px 23px 55px;
    }

    .task-command-actions {
        flex-wrap: wrap;
    }

    .task-command-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .task-command-actions .task-search {
        order: -1;
        flex-basis: 100%;
        width: 100%;
    }

    .task-command-actions .task-view-switch {
        flex: 1 1 auto;
    }

    .task-filter-toggle {
        min-width: 125px;
    }

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

    .task-filter-panel .task-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-filter-panel .task-status-filter {
        grid-column: 1 / -1;
    }

    .task-table-head,
    .task-list-row {
        grid-template-columns:
            minmax(180px, 1.7fr)
            minmax(120px, 1fr)
            minmax(110px, 0.8fr)
            74px
            minmax(196px, 1.5fr);
        column-gap: 8px;
    }
}

@media (max-width: 920px) {
    :root {
        --topbar-height: 65px;
    }

    .topbar-mobile-brand {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 9px;
    }

    .topbar-mobile-brand img {
        width: 67px;
        height: auto;
    }

    .topbar-mobile-brand span {
        color: #103957;
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.12em;
    }

    .topbar {
        height: 65px;
    }

    .global-search {
        width: min(360px, 42vw);
    }

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

    .task-filter-panel .task-filter-grid {
        grid-template-columns: 1fr;
    }

    .task-filter-panel .task-status-filter {
        grid-column: auto;
    }
}

@media (max-height: 850px) and (min-width: 761px) {
    .sidebar-brand {
        min-height: 150px;
        padding-top: 24px;
    }

    .sidebar-brand img {
        width: 146px;
    }

    .main-nav,
    .sidebar-lower {
        gap: 4px;
    }

    .nav-link {
        min-height: 44px;
    }

    .sidebar-profile {
        padding-top: 13px;
    }
}

@media (max-width: 760px) {
    .sidebar {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100% !important;
        height: var(--mobile-nav-height, 72px);
        min-height: 0;
        padding: 0;
        overflow: visible;
        background: #0b2946;
        transform: none;
        box-shadow: 0 -8px 26px rgba(3, 27, 48, 0.16);
    }

    .sidebar::before,
    .sidebar-art,
    .sidebar-brand,
    .sidebar-lower,
    .sidebar-profile {
        display: none !important;
    }

    .main-nav {
        display: grid;
        height: 100%;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        padding: 0 8px;
    }

    .main-nav .nav-link:nth-child(n + 6) {
        display: none;
    }

    .nav-link {
        min-height: 62px;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 5px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 500;
    }

    .nav-link.is-active {
        background: linear-gradient(180deg, #226792, #194c72);
        box-shadow: inset 0 3px 0 #72c1f1;
    }

    .nav-link svg {
        width: 21px;
        height: 21px;
    }

    .nav-count {
        position: absolute;
        top: 4px;
        right: 10px;
        min-width: 17px;
        padding: 1px 4px;
        font-size: 8px;
    }

    .topbar {
        height: 64px;
        padding: 0 17px;
        gap: 10px;
    }

    .mobile-menu {
        display: none;
    }

    .global-search,
    .profile-text,
    .topbar-actions > .profile-button > svg {
        display: none;
    }

    .mode-switch-button {
        display: inline-grid;
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        place-items: center;
    }

    .mode-switch-button span {
        display: none;
    }

    .topbar-actions {
        margin-left: auto;
        gap: 8px;
    }

    .mobile-nav {
        position: fixed;
        z-index: 70;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        width: 100%;
        height: var(--mobile-nav-height, 72px);
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: stretch;
        padding: 5px 8px max(5px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        background: #0b2946;
        box-shadow: 0 -8px 26px rgba(3, 27, 48, 0.16);
        backdrop-filter: none;
    }

    .mobile-nav button {
        display: flex;
        min-width: 0;
        height: 62px;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px;
        border-radius: 10px;
        background: transparent;
        color: #c7dded;
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 500;
    }

    .mobile-nav button.is-active {
        background: linear-gradient(180deg, #226792, #194c72);
        box-shadow: inset 0 3px 0 #72c1f1;
        color: #fff;
        font-weight: 700;
    }

    .mobile-nav svg {
        width: 21px;
        height: 21px;
    }

    .mobile-nav .mobile-primary {
        width: auto;
        height: 62px;
        margin: 0;
        border-radius: 10px;
        background: transparent;
        box-shadow: none;
        color: #c7dded;
    }

    .mobile-nav .mobile-primary.is-active {
        background: linear-gradient(180deg, #226792, #194c72);
        box-shadow: inset 0 3px 0 #72c1f1;
        color: #fff;
    }

    .mobile-nav .mobile-primary svg {
        width: 21px;
        height: 21px;
    }

    .topbar-mobile-brand {
        display: flex;
    }

    .content {
        padding: 22px 15px calc(var(--mobile-nav-height, 72px) + 28px);
    }

    .task-page-title {
        align-items: center;
        margin-bottom: 20px;
    }

    .task-page-title h1 {
        font-size: 29px;
    }

    .task-page-title .page-subtitle {
        max-width: 245px;
        font-size: 12px;
    }

    #new-work-task-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        overflow: hidden;
        font-size: 0;
    }

    #new-work-task-button svg {
        width: 20px;
        height: 20px;
    }

    .task-command-row {
        gap: 12px;
        margin-bottom: 14px;
    }

    .task-command-row .task-board-tabs {
        width: 100%;
    }

    .task-command-row .task-board-tabs button {
        min-height: 43px;
        flex: 1;
        padding: 0 12px;
    }

    .task-command-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px;
    }

    .task-command-actions .task-search {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 47px;
    }

    .task-command-actions .task-view-switch {
        width: 100%;
    }

    .task-command-actions .task-view-switch button {
        flex: 1;
        justify-content: center;
    }

    .task-filter-toggle {
        min-width: 105px;
        min-height: 47px;
    }

    .task-summary-band {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px;
    }

    .task-summary-band > button.task-summary-item {
        min-height: 76px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 11px 10px;
    }

    .task-summary-icon,
    .task-summary-arrow {
        display: none;
    }

    .task-summary-copy strong {
        font-size: 25px;
    }

    .task-summary-copy small {
        font-size: 10.5px;
        line-height: 1.2;
        white-space: normal;
    }

    .task-filter-panel .task-filter-grid {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .task-clear-filters {
        width: 100%;
        justify-self: stretch;
    }

    .task-board-panel {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .task-board-list,
    .task-board-list.is-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 0;
        background: transparent;
    }

    .task-table-head {
        display: none;
    }

    .task-list-row {
        display: grid;
        min-height: 0;
        grid-template-columns: 1fr 1fr;
        gap: 12px 10px;
        padding: 17px;
        border: 1px solid var(--nexo-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 18px rgba(12, 47, 73, 0.035);
    }

    .task-list-main {
        grid-column: 1 / -1;
    }

    .task-list-client {
        display: none;
    }

    .task-list-person {
        grid-column: 1;
    }

    .task-list-due {
        grid-column: 2;
        align-items: flex-end;
        text-align: right;
    }

    .task-priority {
        grid-column: 1;
        justify-self: start;
    }

    .task-list-actions {
        grid-column: 1 / -1;
        padding-top: 11px;
        border-top: 1px solid #e8eff4;
    }

    .task-list-actions .task-card-actions {
        width: 100%;
        gap: 6px;
    }

    .task-list-actions .button {
        flex: 1;
    }

    .task-list-actions .task-more-button {
        flex: 0 0 40px;
    }

    .task-list-main h3,
    .task-card h3 {
        font-size: 14px;
    }

    .task-board-list:not(.is-list) {
        grid-template-columns: 1fr;
    }

    .task-card {
        min-height: 0;
    }

    .task-card footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-card-actions {
        width: 100%;
    }

    .task-table-footer {
        padding: 12px 2px;
    }

    .toast-region {
        bottom: calc(var(--mobile-nav-height, 72px) + 14px);
    }
}

