﻿:root {
    --bg: #f4efe7;
    --bg-strong: #efe6db;
    --surface: rgba(255, 252, 247, 0.88);
    --surface-soft: rgba(255, 248, 240, 0.7);
    --surface-strong: #fffdf8;
    --surface-dark: #16211e;
    --text: #18201d;
    --text-muted: #5d655f;
    --line: rgba(24, 32, 29, 0.08);
    --shadow: 0 24px 60px rgba(38, 35, 30, 0.12);
    --shadow-soft: 0 12px 30px rgba(38, 35, 30, 0.08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --accent: #1e3a8a;
    --accent-strong: #172554;
    --accent-soft: rgba(30, 58, 138, 0.12);
    --gold: #38bdf8;
    --gold-soft: rgba(56, 189, 248, 0.16);
    --blue: #2563eb;
    --rose: #db2777;
    --violet: #7c3aed;
    --danger: #c2410c;
    --success: #2563eb;
    --status-new: #475569;
    --status-working: #1e3a8a;
    --status-review: #38bdf8;
    --status-done: #2563eb;
    --priority-low: #64748b;
    --priority-medium: #2563eb;
    --priority-high: #38bdf8;
    --priority-critical: #c2410c;
    --font-main: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(30, 58, 138, 0.16), transparent 26%),
        linear-gradient(180deg, #faf6f0 0%, var(--bg) 50%, #f8f1e6 100%);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.auth-body,
.app-body {
    position: relative;
    overflow-x: hidden;
}

.auth-body::before,
.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(30, 58, 138, 0.12), transparent 24%),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.12), transparent 18%),
        radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.08), transparent 24%);
}

.auth-body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(42vw, 540px);
    aspect-ratio: 1 / 1;
    background: url("masar.png") center / contain no-repeat;
    transform: translate(-50%, -50%);
    filter: blur(12px);
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
    animation: auth-logo-float 8s ease-in-out infinite;
    will-change: transform;
}

.surface {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    position: relative;
}

.surface--soft {
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.surface--hero {
    overflow: hidden;
}

.surface--hero::after,
.surface--primary::after,
.auth-surface::after {
    content: "";
    position: absolute;
    inset-inline-end: -100px;
    inset-block-start: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.16), transparent 65%);
    pointer-events: none;
}

.surface__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 460px);
    gap: 28px;
    min-height: 100vh;
    padding: 32px;
    align-items: stretch;
}

.app-credit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.app-credit__copy {
    font-weight: 600;
}

.app-credit__author {
    color: var(--accent-strong);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.app-credit--auth {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-inline: 48px;
}

.app-credit--app {
    margin-top: 2px;
    padding: 18px 10px 0;
    border-top: 1px solid rgba(24, 32, 29, 0.08);
}

.auth-hero,
.auth-panel {
    position: relative;
    z-index: 1;
}

.auth-hero {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.brand-mark--small {
    font-size: 23px;
}

.brand-mark--image {
    gap: 0;
}

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

.brand-logo--auth {
    width: min(230px, 44vw);
}

.brand-logo--sidebar {
    width: 172px;
}

.brand-mark__spark {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.32);
    transform: rotate(18deg);
}

.auth-badge {
    display: inline-flex;
    width: fit-content;
    margin: 28px 0 20px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 14px;
}

.auth-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 4vw, 66px);
    line-height: 1.05;
    max-width: 10ch;
}

.auth-hero h1.auth-headline {
    display: grid;
    gap: 0.24em;
    max-width: 14ch;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.auth-headline__line {
    display: block;
    padding-inline: 0.02em;
}

.auth-headline__line--accent {
    max-width: 8.5ch;
    color: var(--accent-strong);
}

.auth-hero p {
    margin: 0;
    max-width: 640px;
    font-size: 19px;
    line-height: 1.9;
    color: var(--text-muted);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.hero-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    animation: float-in 0.8s ease both;
}

.hero-card:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-card:nth-child(3) {
    animation-delay: 0.2s;
}

.hero-card span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.hero-card strong {
    font-size: 18px;
    line-height: 1.6;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-surface {
    width: 100%;
    max-width: 460px;
    padding: 32px;
}

.auth-surface h2 {
    margin: 0 0 8px;
    font-size: 34px;
}

.auth-text {
    margin: 0 0 24px;
    color: var(--text-muted);
    line-height: 1.85;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 10px;
}

.field span {
    font-weight: 700;
    color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(24, 32, 29, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(30, 58, 138, 0.45);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
    transform: translateY(-1px);
}

.button {
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.button--block {
    width: 100%;
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    box-shadow: 0 18px 30px rgba(30, 58, 138, 0.22);
}

.button--secondary {
    color: var(--text);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(56, 189, 248, 0.16);
}

.button--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(24, 32, 29, 0.08);
}

.button--danger {
    color: #fff;
    background: linear-gradient(135deg, #c2410c, #9a3412);
}

.button--small {
    padding: 11px 15px;
    font-size: 14px;
}

.demo-box,
.alert {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(24, 32, 29, 0.06);
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 5px;
}

.demo-box strong {
    font-size: 15px;
}

.demo-box span {
    color: var(--text-muted);
}

.alert--error {
    background: rgba(194, 65, 12, 0.08);
    border-color: rgba(194, 65, 12, 0.18);
    color: #7c2d12;
}

.app-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
    gap: 24px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.sidebar {
    padding: 24px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(24, 33, 30, 0.96) 0%, rgba(14, 20, 18, 0.98) 100%);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 56px rgba(10, 14, 13, 0.28);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar__brand p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.8;
}

.sidebar__nav {
    display: grid;
    gap: 10px;
}

.nav-item {
    border: none;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 18px;
    border-radius: 18px;
    text-align: right;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-item:hover,
.nav-item.is-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(30, 58, 138, 0.25));
    color: #fff;
    transform: translateX(-2px);
}

.sidebar__cta {
    margin-top: auto;
    padding: 18px;
    border-radius: 22px;
}

.sidebar__cta strong {
    display: block;
    margin-bottom: 4px;
}

.sidebar__cta p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.68);
}

.app-main {
    display: grid;
    gap: 20px;
}

.topbar {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
}

.topbar p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.topbar__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 20px;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 20px;
    align-items: start;
}

#heroSection,
#quickStats,
#primaryView,
#sidePanel {
    padding: 26px;
}

.hero-panel {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.hero-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-panel__header h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.15;
}

.hero-panel__header p {
    margin: 0;
    max-width: 700px;
    color: var(--text-muted);
    line-height: 1.9;
}

.hero-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.kpi-card span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 14px;
}

.kpi-card strong {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
}

.kpi-card small {
    color: var(--text-muted);
    font-size: 13px;
}

.board-pills,
.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.board-pill,
.chip {
    border: 1px solid rgba(24, 32, 29, 0.08);
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.board-pill:hover,
.chip:hover,
.board-pill.is-active,
.chip.is-active {
    transform: translateY(-1px);
    border-color: rgba(30, 58, 138, 0.26);
    background: rgba(30, 58, 138, 0.12);
}

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

.metric-tile {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 32, 29, 0.06);
    display: grid;
    gap: 10px;
}

.metric-tile strong {
    font-size: 32px;
}

.metric-tile span,
.metric-tile small {
    color: var(--text-muted);
}

.completion-ring {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    position: relative;
}

.completion-ring::after {
    content: "";
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 251, 245, 0.95);
    box-shadow: inset 0 0 0 1px rgba(24, 32, 29, 0.05);
}

.completion-ring__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    z-index: 1;
}

.completion-ring__label strong {
    font-size: 34px;
    line-height: 1;
}

.completion-ring__label span {
    color: var(--text-muted);
    font-size: 13px;
}

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

.section-header h3 {
    margin: 0 0 6px;
    font-size: 26px;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.board-cards,
.timeline-list,
.team-grid,
.my-tasks-list,
.activity-list,
.comments-list,
.agenda-list,
.workload-list {
    display: grid;
    gap: 14px;
}

.board-card,
.timeline-card,
.team-card,
.task-row,
.activity-item,
.comment-item,
.agenda-card,
.workload-card,
.focus-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 32, 29, 0.06);
    box-shadow: var(--shadow-soft);
}

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

.board-card__head,
.task-row__head,
.timeline-card__head,
.team-card__head,
.focus-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.board-card h4,
.timeline-card h4,
.team-card h4,
.focus-card h4 {
    margin: 0;
    font-size: 20px;
}

.board-card p,
.timeline-card p,
.team-card p,
.focus-card p,
.task-row p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.board-card__meta,
.task-card__meta,
.task-row__meta,
.timeline-card__meta,
.team-card__meta,
.comment-item__meta,
.activity-item__meta {
    display: flex;
    column-gap: 10px;
    row-gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
}

.meta-badge,
.status-badge,
.priority-badge,
.access-badge,
.tiny-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.8);
}

.status-badge[data-status="new"] {
    background: rgba(71, 85, 105, 0.14);
    color: var(--status-new);
}

.status-badge[data-status="working"] {
    background: rgba(30, 58, 138, 0.14);
    color: var(--status-working);
}

.status-badge[data-status="review"] {
    background: rgba(56, 189, 248, 0.16);
    color: var(--status-review);
}

.status-badge[data-status="done"] {
    background: rgba(5, 150, 105, 0.14);
    color: var(--status-done);
}

.priority-badge[data-priority="low"] {
    background: rgba(100, 116, 139, 0.15);
    color: var(--priority-low);
}

.priority-badge[data-priority="medium"] {
    background: rgba(37, 99, 235, 0.15);
    color: var(--priority-medium);
}

.priority-badge[data-priority="high"] {
    background: rgba(56, 189, 248, 0.16);
    color: var(--priority-high);
}

.priority-badge[data-priority="critical"] {
    background: rgba(194, 65, 12, 0.14);
    color: var(--priority-critical);
}

.access-badge[data-access="admin"] {
    background: rgba(30, 58, 138, 0.14);
    color: var(--accent-strong);
}

.access-badge[data-access="member"] {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.progress-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(24, 32, 29, 0.08);
    overflow: hidden;
}

.progress-bar span {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.kanban-column {
    display: grid;
    gap: 14px;
    min-height: 560px;
    align-content: start;
    padding: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px dashed rgba(24, 32, 29, 0.1);
}

.kanban-column.is-dropping {
    border-color: rgba(30, 58, 138, 0.42);
    background: rgba(30, 58, 138, 0.08);
}

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

.kanban-column__header h4 {
    margin: 0;
    font-size: 18px;
}

.kanban-column__count {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.task-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 32, 29, 0.06);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(38, 35, 30, 0.12);
}

.task-card[draggable="true"] {
    cursor: grab;
}

.task-card__title {
    font-size: 18px;
    font-weight: 800;
}

.task-card__description {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 14px;
}

.task-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-card,
.agenda-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

.agenda-card__footer {
    display: grid;
    gap: 14px;
    padding-top: 4px;
    align-content: start;
}

.agenda-card__meta {
    row-gap: 14px;
}

.labels-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.label-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(24, 32, 29, 0.06);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.avatar,
.avatar-stack__item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff !important;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
    box-shadow: 0 10px 22px rgba(24, 32, 29, 0.18);
}

.avatar--small {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.avatar-stack {
    display: inline-flex;
    align-items: center;
}

.avatar-stack__item {
    margin-inline-start: -8px;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.empty-state {
    padding: 34px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(24, 32, 29, 0.12);
    text-align: center;
    color: var(--text-muted);
}

.side-panel {
    display: grid;
    gap: 18px;
}

.focus-card__body,
.task-details,
.panel-group {
    display: grid;
    gap: 16px;
}

.task-details__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.4;
}

.task-details__description {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.9;
}

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

.detail-card {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 32, 29, 0.06);
}

.detail-card span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.detail-card strong {
    display: block;
    font-size: 16px;
}

.checklist {
    display: grid;
    gap: 10px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 32, 29, 0.06);
}

.checklist-item.is-done {
    opacity: 0.72;
}

.checklist-item__mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(30, 58, 138, 0.12);
    color: var(--accent);
    font-weight: 800;
    flex-shrink: 0;
}

.checklist-item.is-done .checklist-item__mark {
    background: rgba(5, 150, 105, 0.16);
    color: var(--success);
}

.comment-item,
.activity-item {
    display: grid;
    gap: 10px;
}

.comment-item__meta,
.activity-item__meta {
    align-items: center;
}

.comment-item p,
.activity-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.inline-form,
.modal-form {
    display: grid;
    gap: 16px;
}

.inline-form textarea {
    min-height: 90px;
}

.mini-chart {
    display: grid;
    gap: 12px;
}

.mini-chart__bar {
    display: grid;
    gap: 8px;
}

.mini-chart__bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.mini-chart__track {
    height: 11px;
    border-radius: 999px;
    background: rgba(24, 32, 29, 0.08);
    overflow: hidden;
}

.mini-chart__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.task-row {
    display: grid;
    gap: 14px;
}

.task-row__head strong {
    font-size: 18px;
}

.task-row__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.agenda-card.is-overdue {
    border-color: rgba(194, 65, 12, 0.16);
    background: rgba(194, 65, 12, 0.06);
}

.timeline-card__meta,
.detail-card strong,
.metric-tile strong,
.kpi-card strong,
.split-stat strong,
.completion-ring__label strong,
.meta-badge,
.status-badge,
.priority-badge,
.access-badge {
    font-variant-numeric: tabular-nums lining-nums;
}

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

.team-card {
    display: grid;
    gap: 16px;
}

.team-card__profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-card__profile strong {
    display: block;
    font-size: 18px;
}

.team-card__profile span {
    color: var(--text-muted);
    font-size: 14px;
}

.workload-meter {
    display: grid;
    gap: 8px;
}

.workload-meter__track {
    height: 12px;
    border-radius: 999px;
    background: rgba(24, 32, 29, 0.08);
    overflow: hidden;
}

.workload-meter__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--accent));
}

#modalRoot:empty,
.modal-root:empty {
    display: none;
    pointer-events: none;
}

.modal-root,
#modalRoot {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 23, 0.42);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-card {
    width: min(860px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 40px 80px rgba(10, 14, 13, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.modal-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.modal-card__head h3 {
    margin: 0 0 6px;
    font-size: 30px;
}

.modal-card__head p {
    margin: 0;
    color: var(--text-muted);
}

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

.modal-grid .field--full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form-actions__group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.range-output {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--accent);
    font-weight: 800;
}

.helper-text {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.toast-root {
    position: fixed;
    inset-inline-start: 24px;
    inset-block-end: 24px;
    z-index: 80;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: 240px;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 24px 40px rgba(10, 14, 13, 0.24);
    animation: toast-in 0.25s ease;
}

.toast--success {
    background: linear-gradient(135deg, var(--success), var(--accent));
}

.toast--error {
    background: linear-gradient(135deg, var(--danger), #9a3412);
}

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

.split-stat {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 32, 29, 0.06);
}

.split-stat span {
    color: var(--text-muted);
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.split-stat strong {
    font-size: 28px;
}

.surface-note {
    color: var(--text-muted);
    line-height: 1.85;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-logo-float {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -53%) scale(1.035);
    }
}

@media (max-width: 1320px) {
    .hero-kpis,
    .split-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-grid,
    .timeline-grid,
    .workspace-grid,
    .main-grid {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        grid-template-columns: repeat(4, minmax(260px, 1fr));
    }
}

@media (max-width: 1120px) {
    .auth-layout,
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-metrics,
    .hero-kpis,
    .filter-bar,
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .auth-layout,
    .app-shell {
        padding: 16px;
    }

    .auth-hero,
    .auth-surface,
    .sidebar,
    #heroSection,
    #quickStats,
    #primaryView,
    #sidePanel,
    .topbar {
        padding: 20px;
    }

    .auth-hero h1 {
        font-size: 38px;
        max-width: none;
    }

    .auth-hero h1.auth-headline {
        gap: 0.2em;
        line-height: 1.08;
    }

    .auth-body::after {
        width: min(78vw, 360px);
        opacity: 0.12;
        filter: blur(10px);
    }

    .app-credit {
        justify-content: flex-start;
    }

    .app-credit--auth,
    .app-credit--app {
        padding-inline: 0;
    }

    .auth-headline__line--accent {
        max-width: none;
    }

    .stats-grid,
    .details-grid,
    .split-stats {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        grid-template-columns: repeat(4, minmax(240px, 1fr));
    }

    .toast-root {
        inset-inline: 16px;
    }

    .toast {
        max-width: none;
    }
}

