:root {
    --sidebar-width: 260px;
    --canvas: #e7edf4;
    --panel: rgba(255, 255, 255, 0.985);
    --panel-strong: #ffffff;
    --line: #d6e0ea;
    --line-strong: #b9c8d8;
    --ink: #0c1f4d;
    --muted: #617389;
    --accent: #123a78;
    --accent-soft: #e7f0fb;
    --teal: #0fb6d9;
    --teal-soft: #e1f8fc;
    --warm: #ff7a00;
    --warm-soft: #fff1e3;
    --gold-soft: #fff1e3;
    --success: #245a43;
    --shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    --shadow-soft: 0 3px 10px rgba(15, 23, 42, 0.032);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
}

html.sidebar-pref-collapsed {
    --sidebar-width: 104px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(15, 182, 217, 0.08), transparent 22%),
        radial-gradient(circle at bottom right, rgba(255, 122, 0, 0.07), transparent 18%),
        var(--canvas);
    font-family: "Manrope", sans-serif;
    font-size: 14.5px;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
}

body.guest-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(15, 182, 217, 0.12), transparent 22%),
        linear-gradient(180deg, #eef4f9 0%, #f9fbfd 100%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    width: var(--sidebar-width);
    min-width: 0;
    padding: 22px 18px;
    border-right: 1px solid rgba(9, 28, 67, 0.14);
    background:
        radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 28%),
        linear-gradient(180deg, #0d2457 0%, #102f69 56%, #123a78 100%);
    backdrop-filter: blur(14px);
    overflow-x: visible;
    overflow-y: auto;
}

.brand,
.nav-item,
.sidebar-card,
.panel,
.search {
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: var(--shadow);
}

.brand {
    padding: 4px 0 0;
    border-radius: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.brand-head {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.sidebar-toggle {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #edf3f8;
    cursor: pointer;
}

.sidebar-toggle-icon {
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.brand-copy {
    min-width: 0;
}

.brand-copy .overline {
    margin-bottom: 4px;
}

.brand-mark {
    width: 50%;
    max-width: 150px;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.brand-mark-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand h1,
.page-title,
.hero-title,
.section-title,
.metric-value,
.card-title {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-weight: 520;
}

.brand h1 {
    margin-top: 0;
    font-size: 0.96rem;
}

.sidebar .overline,
.sidebar .muted,
.sidebar .nav-meta,
.sidebar .nav-item > .muted {
    color: rgba(226, 232, 240, 0.62);
}

.sidebar .brand h1,
.sidebar .nav-label,
.sidebar .section-title {
    color: #f4f7fb;
}

.sidebar-user-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.sidebar-user-avatar,
.profile-avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
}

.sidebar-user-avatar-image,
.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-user-avatar-fallback,
.profile-avatar-fallback {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sidebar-user-avatar-fallback {
    color: #f4f7fb;
}

.sidebar-user-copy {
    min-width: 0;
}

.sidebar-user-copy .section-title {
    margin: 0;
    line-height: 1.2;
}

.sidebar-user-email {
    margin: -2px 0 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.muted,
.overline,
.table td,
.table th {
    color: var(--muted);
}

.muted {
    font-size: 0.8rem;
    line-height: 1.45;
}

small.muted,
.form-field small,
.card .muted,
.panel .muted,
.surface-card .muted {
    font-size: 0.8rem;
    line-height: 1.45;
}

.overline {
    margin: 0 0 6px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.nav-group {
    display: grid;
    gap: 6px;
}

.nav-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    min-height: 48px;
    padding: 9px 10px 9px 12px;
    border-radius: 12px;
    background: transparent;
    border-color: transparent;
    transition: border-color 120ms ease, background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
    position: relative;
    box-shadow: none;
}

.nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(12, 31, 77, 0.96);
    color: #f8fbff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(12, 31, 77, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 20;
}

.nav-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 122, 0, 0.14);
    color: #ff9a3c;
    font-size: 0.82rem;
    line-height: 1;
    border: 1px solid rgba(255, 154, 60, 0.18);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--teal), var(--warm));
}

.nav-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.045);
}

.nav-item-toggle {
    list-style: none;
    cursor: pointer;
}

.nav-item-toggle::-webkit-details-marker {
    display: none;
}

.nav-submenu {
    display: grid;
    gap: 6px;
}

.nav-submenu[open] .nav-toggle-indicator,
.nav-submenu.is-open .nav-toggle-indicator {
    transform: rotate(180deg);
}

.nav-toggle-indicator {
    transition: transform 120ms ease;
}

.nav-submenu-links {
    display: grid;
    gap: 4px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-subitem {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.86rem;
    color: rgba(237, 243, 248, 0.88);
    transition: background 120ms ease, color 120ms ease;
}

.nav-subitem:hover {
    background: rgba(255, 255, 255, 0.045);
    color: #f4f7fb;
}

.nav-subitem.active {
    background: rgba(255, 255, 255, 0.07);
    color: #f4f7fb;
}

html.sidebar-pref-collapsed .app-shell .nav-submenu-links,
.app-shell.sidebar-collapsed .nav-submenu-links {
    display: none;
}

.nav-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.nav-label {
    font-size: 0.94rem;
    font-weight: 530;
    color: inherit;
}

.nav-meta {
    font-size: 0.76rem;
    line-height: 1.2;
}

.sidebar .nav-pill,
.sidebar .pill.crm,
.sidebar .pill.ops,
.sidebar .pill.warn,
.sidebar .pill.ok {
    background: rgba(255, 255, 255, 0.08);
    color: #edf3f8;
}

.nav-item > .muted,
.nav-item > .nav-pill {
    flex: 0 0 auto;
    font-size: 0.82rem;
    text-align: right;
}

.nav-pill,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 560;
}

.nav-pill,
.pill.crm {
    background: var(--accent-soft);
    color: var(--accent);
}

.pill.ops {
    background: var(--teal-soft);
    color: var(--teal);
}

.pill.warn {
    background: var(--warm-soft);
    color: #a84800;
}

.pill.ok {
    background: linear-gradient(180deg, rgba(15, 182, 217, 0.14), rgba(15, 182, 217, 0.08));
    color: #0b6b7f;
}

.sidebar-card {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    color: #edf2f7;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.main {
    display: block;
    padding: 22px 24px 30px;
    min-width: 0;
}

html.sidebar-pref-collapsed .app-shell .brand-copy,
html.sidebar-pref-collapsed .app-shell .sidebar .overline,
html.sidebar-pref-collapsed .app-shell .nav-copy,
html.sidebar-pref-collapsed .app-shell .nav-item > .muted,
html.sidebar-pref-collapsed .app-shell .nav-item > .nav-pill,
html.sidebar-pref-collapsed .app-shell .sidebar-card,
.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .sidebar .overline,
.app-shell.sidebar-collapsed .nav-copy,
.app-shell.sidebar-collapsed .nav-item > .muted,
.app-shell.sidebar-collapsed .nav-item > .nav-pill,
.app-shell.sidebar-collapsed .sidebar-card {
    display: none;
}

html.sidebar-pref-collapsed .app-shell .sidebar,
.app-shell.sidebar-collapsed .sidebar {
    padding-inline: 12px;
}

html.sidebar-pref-collapsed .app-shell .brand,
.app-shell.sidebar-collapsed .brand {
    padding: 12px 10px;
}

html.sidebar-pref-collapsed .app-shell .brand-head,
.app-shell.sidebar-collapsed .brand-head {
    justify-content: center;
    gap: 0;
}

html.sidebar-pref-collapsed .app-shell .sidebar-toggle,
.app-shell.sidebar-collapsed .sidebar-toggle {
    margin-left: 0;
}

html.sidebar-pref-collapsed .app-shell .brand-actions,
.app-shell.sidebar-collapsed .brand-actions {
    justify-content: center;
    margin-top: 8px;
}

html.sidebar-pref-collapsed .app-shell .brand-mark,
.app-shell.sidebar-collapsed .brand-mark {
    width: 48px;
    height: 48px;
}

html.sidebar-pref-collapsed .app-shell .nav-group,
.app-shell.sidebar-collapsed .nav-group {
    gap: 8px;
}

html.sidebar-pref-collapsed .app-shell .nav-item,
.app-shell.sidebar-collapsed .nav-item {
    min-height: 56px;
    justify-content: center;
    padding: 11px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

html.sidebar-pref-collapsed .app-shell .nav-icon,
.app-shell.sidebar-collapsed .nav-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
    font-size: 0.96rem;
}

html.sidebar-pref-collapsed .app-shell .nav-item[data-tooltip]:hover::after,
html.sidebar-pref-collapsed .app-shell .nav-item[data-tooltip]:focus-visible::after,
.app-shell.sidebar-collapsed .nav-item[data-tooltip]:hover::after,
.app-shell.sidebar-collapsed .nav-item[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

html.sidebar-pref-collapsed .app-shell .nav-item.active::before,
.app-shell.sidebar-collapsed .nav-item.active::before {
    left: 6px;
    top: 10px;
    bottom: 10px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 4px 0 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash-message {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.flash-message p {
    margin: 0;
    font-size: 0.94rem;
    color: #334155;
}

.flash-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flash-success {
    border-color: rgba(15, 182, 217, 0.2);
    background: linear-gradient(180deg, rgba(236, 251, 255, 0.96), rgba(247, 252, 255, 0.98));
}

.flash-success .flash-label {
    color: #0b6b7f;
}

.flash-error {
    border-color: rgba(12, 31, 77, 0.16);
    background: linear-gradient(180deg, rgba(255, 248, 243, 0.96), rgba(255, 252, 249, 0.98));
}

.flash-error .flash-label {
    color: #9a4b08;
}

.flash-warning {
    border-color: rgba(255, 122, 0, 0.28);
    background: linear-gradient(180deg, rgba(255, 244, 231, 0.96), rgba(255, 249, 242, 0.98));
}

.flash-warning .flash-label {
    color: #c25500;
}

.flash-info .flash-label {
    color: var(--accent);
}

.notification-card.is-unread {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.04);
}

.notification-type-project_comment,
.notification-type-project_created {
    border-left: 3px solid #123a78;
}

.notification-type-task_overdue,
.notification-type-task_due_today {
    border-left: 3px solid #d97706;
}

.notification-type-task_due_tomorrow,
.notification-type-calendar_upcoming,
.notification-type-calendar_event {
    border-left: 3px solid #2563eb;
}

.notification-type-task_assigned,
.notification-type-task_comment {
    border-left: 3px solid #0f766e;
}

.topbar-notification-button {
    position: relative;
    gap: 8px;
}

.topbar-notification-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.stack-list {
    display: grid;
    gap: 0.8rem;
}

.stacked-card {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
}

.page-title {
    font-size: clamp(1.12rem, 1.56vw, 1.38rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

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

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

.project-list-card {
    position: relative;
    overflow: hidden;
}

.project-list-card.is-completed {
    border-color: rgba(36, 90, 67, 0.3);
    background: #edf7f1;
    box-shadow: inset 4px 0 0 #2f7657, var(--shadow-soft);
}

.project-list-card.is-completed .section-head {
    border-bottom-color: rgba(36, 90, 67, 0.15);
}

.project-completed-marker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 14px;
    color: #245a43;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-completed-marker span {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #2f7657;
    color: #fff;
    font-size: 0.82rem;
}

.pill.completed {
    border: 1px solid rgba(36, 90, 67, 0.2);
    background: #d8eddf;
    color: #1d583e;
    font-weight: 700;
}

.planner-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(180px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.python-week-planner {
    margin-top: 16px;
    border-top: 1px solid rgba(125, 140, 158, 0.16);
}

.python-week-horizontal-scroll {
    overflow-x: auto;
    padding: 12px 2px 8px;
}

.python-week-header-grid,
.python-week-all-day-grid,
.python-week-time-grid {
    display: grid;
    grid-template-columns: 64px repeat(5, minmax(150px, 1fr)) minmax(210px, 1.25fr);
    min-width: 1120px;
}

.python-week-header-grid {
    gap: 0 8px;
}

.python-week-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 64px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid rgba(125, 140, 158, 0.18);
}

.python-week-day-head p,
.python-week-day-head strong {
    margin: 0;
}

.python-week-day-head.is-today {
    border-radius: 12px 12px 0 0;
    background: #eef5ff;
    border-color: rgba(18, 58, 120, 0.2);
}

.python-week-day-head.is-holiday {
    border-radius: 12px 12px 0 0;
    border-color: #adc4df;
    background: #eaf2fb;
}

.python-week-holiday-label {
    display: block;
    margin-top: 4px;
    color: #24517f;
    font-size: 0.62rem;
    font-weight: 750;
    line-height: 1.15;
}

.python-week-weekend-head {
    border-radius: 12px 12px 0 0;
    border-color: #d2c3b5;
    background: #f3ede7;
}

.python-week-all-day-grid {
    gap: 0 8px;
    margin: 8px 0 10px;
}

.python-week-all-day-label {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.05;
    text-transform: uppercase;
}

.python-week-all-day-cell {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 62px;
    padding: 6px;
    border: 1px solid rgba(125, 140, 158, 0.16);
    border-radius: 12px;
    background: #f7f9fc;
}

.python-week-all-day-cell.is-holiday {
    border-color: #adc4df;
    background: #e8f1fb;
}

.python-week-weekend-all-day-summary {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 8px 12px;
    border: 1px solid #d7c9bc;
    border-radius: 12px;
    background: #f5f0eb;
    color: #72563f;
    font-size: 0.68rem;
    font-weight: 700;
}

.python-week-all-day-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    border-left: 4px solid var(--event-color, #5277a5);
    background: var(--event-background, #eaf1fa);
    font-size: 0.7rem;
}

.python-week-all-day-event strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.python-week-time-scroll {
    max-height: calc(var(--python-week-visible-slot-count, 12) * var(--python-week-slot-height));
    overflow-y: auto;
    scrollbar-color: rgba(18, 58, 120, 0.26) transparent;
}

.event-generated-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-color: rgba(47, 101, 176, 0.22);
    background: #f5f8fc;
}

.event-generated-task strong,
.event-generated-task p {
    display: block;
    margin-top: 4px;
}

.python-week-time-grid {
    gap: 0 8px;
}

.python-week-hours,
.python-week-day-slots {
    height: calc(var(--python-week-slot-count) * var(--python-week-slot-height));
}

.python-week-hours {
    display: grid;
    grid-template-rows: repeat(var(--python-week-slot-count), var(--python-week-slot-height));
}

.python-week-hour {
    position: relative;
    border-top: 1px solid rgba(125, 140, 158, 0.18);
}

.python-week-hour span {
    position: absolute;
    top: -9px;
    right: 8px;
    padding: 0 3px;
    background: #fff;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.python-week-day-slots {
    position: relative;
    display: grid;
    grid-template-rows: repeat(var(--python-week-slot-count), var(--python-week-slot-height));
    overflow: hidden;
    border: 1px solid rgba(125, 140, 158, 0.16);
    border-radius: 12px;
    background: #fbfcfe;
}

.python-week-day-slots.is-today {
    background: #f4f8ff;
    border-color: rgba(18, 58, 120, 0.2);
}

.python-week-day-slots.is-holiday {
    border-color: #abc1db;
    background: #edf4fc;
}

.python-week-slot {
    border-bottom: 1px solid rgba(125, 140, 158, 0.16);
    cursor: crosshair;
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.python-week-slot:hover {
    background: rgba(47, 101, 176, 0.08);
    box-shadow: inset 0 0 0 1px rgba(47, 101, 176, 0.18);
}

.python-week-event {
    position: absolute;
    z-index: 2;
    top: var(--event-top);
    left: var(--event-left, 5px);
    right: var(--event-right, 5px);
    width: var(--event-width, auto);
    height: max(36px, var(--event-height));
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--event-color, #5277a5) 36%, white);
    border-radius: 9px;
    background: var(--event-background, #eaf1fa);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.python-week-event.is-overlap {
    z-index: 3;
    border-color: color-mix(in srgb, var(--event-color, #5277a5) 52%, white);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
}

.python-week-event.is-overlap > div {
    padding-inline: 5px;
}

.python-week-event:hover {
    z-index: 5;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.python-week-event[draggable="true"],
.python-week-all-day-event[draggable="true"],
.python-week-weekend-event[draggable="true"],
.calendar-event[draggable="true"] {
    cursor: grab;
}

.python-week-event.is-dragging,
.python-week-all-day-event.is-dragging,
.python-week-weekend-event.is-dragging,
.calendar-event.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.is-planner-dragover {
    background: #dceafd !important;
    box-shadow: inset 0 0 0 2px #2f65b0 !important;
}

body.is-planner-saving {
    cursor: progress;
}

.python-week-weekend-column {
    display: grid;
    grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
    gap: 8px;
    height: calc(var(--python-week-slot-count) * var(--python-week-slot-height));
    min-height: 0;
    padding: 8px;
    border: 1px solid #d6c7ba;
    border-radius: 12px;
    background: #f1ebe5;
}

.python-week-weekend-block {
    min-height: 0;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid #ddcfc2;
    border-radius: 10px;
    background: #fbf8f5;
}

.python-week-weekend-block.is-sunday {
    background: #f7f2ed;
}

.python-week-weekend-block.is-holiday {
    border-color: #9fb9d7;
    background: #e9f2fb;
}

.python-week-weekend-block > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(114, 86, 63, 0.14);
}

.python-week-weekend-block > header div {
    display: grid;
    gap: 2px;
}

.python-week-weekend-block > header strong {
    color: #684a33;
    font-size: 0.78rem;
}

.python-week-weekend-block > header span,
.python-week-weekend-block > header small {
    color: #80654f;
    font-size: 0.66rem;
    font-weight: 650;
}

.python-week-weekend-events {
    display: grid;
    gap: 7px;
    padding-top: 8px;
}

.python-week-weekend-event {
    display: grid;
    gap: 2px;
    padding: 8px 9px;
    border: 1px solid color-mix(in srgb, var(--event-color, #5277a5) 30%, white);
    border-left: 4px solid var(--event-color, #5277a5);
    border-radius: 9px;
    background: var(--event-background, #eaf1fa);
}

.python-week-weekend-event strong {
    font-size: 0.7rem;
    line-height: 1.25;
}

.python-week-weekend-event small {
    color: var(--event-text, var(--muted));
    font-size: 0.64rem;
}

.button.danger {
    border-color: #d8aeb5;
    background: #fff4f5;
    color: #9b3042;
}

[data-open-event-modal] {
    cursor: pointer;
}

[data-open-event-modal]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

.planner-edit-modal .rich-editor-surface {
    min-height: 160px;
}

.python-week-event-line {
    background: var(--event-color, #5277a5);
}

.python-week-event > div {
    display: grid;
    align-content: start;
    gap: 1px;
    min-width: 0;
    padding: 6px 7px;
}

.python-week-event strong,
.python-week-event small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.python-week-event strong {
    font-size: 0.72rem;
}

.python-week-event small,
.python-week-event a {
    color: var(--muted);
    font-size: 0.64rem;
}

.event-type-task,
.calendar-event-task { --event-color: #2f65b0; --event-background: #e7f0fc; --event-text: #173f78; }
.event-type-meeting,
.calendar-event-meeting { --event-color: #0f7a74; --event-background: #def3ef; --event-text: #075a56; }
.event-type-milestone,
.calendar-event-milestone { --event-color: #d06a0d; --event-background: #fff0db; --event-text: #8d4308; }
.event-type-reminder,
.calendar-event-reminder { --event-color: #b94155; --event-background: #fbe6ea; --event-text: #822b3b; }

.planner-type-legend {
    display: flex;
    align-items: center;
    gap: 8px 18px;
    flex-wrap: wrap;
    margin: -4px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(125, 140, 158, 0.14);
}

.planner-navigation {
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    .planner-navigation {
        justify-content: flex-start;
        width: 100%;
    }
}

.planner-type-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.planner-type-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--event-color);
    box-shadow: 0 0 0 3px var(--event-background);
}

.planner-type-legend .type-task { --event-color: #2f65b0; --event-background: #e7f0fc; }
.planner-type-legend .type-meeting { --event-color: #0f7a74; --event-background: #def3ef; }
.planner-type-legend .type-milestone { --event-color: #d06a0d; --event-background: #fff0db; }
.planner-type-legend .type-reminder { --event-color: #b94155; --event-background: #fbe6ea; }

.calendar-event.calendar-event-task,
.calendar-event.calendar-event-meeting,
.calendar-event.calendar-event-milestone,
.calendar-event.calendar-event-reminder {
    border-color: color-mix(in srgb, var(--event-color) 28%, white);
    border-left: 5px solid var(--event-color);
    background: var(--event-background);
    color: var(--event-text);
}

.calendar-event.calendar-event-task .muted,
.calendar-event.calendar-event-meeting .muted,
.calendar-event.calendar-event-milestone .muted,
.calendar-event.calendar-event-reminder .muted {
    color: color-mix(in srgb, var(--event-text) 72%, #64748b);
}

.modal-backdrop.event-type-task .planner-edit-modal,
.modal-backdrop.event-type-meeting .planner-edit-modal,
.modal-backdrop.event-type-milestone .planner-edit-modal,
.modal-backdrop.event-type-reminder .planner-edit-modal {
    border-top: 5px solid var(--event-color);
}

@media (max-width: 760px) {
    .python-week-header-grid,
    .python-week-all-day-grid,
    .python-week-time-grid {
        grid-template-columns: 52px repeat(5, 140px) 190px;
        min-width: 1088px;
    }
}

.project-kanban-panel {
    overflow: hidden;
}

.project-kanban-scroller {
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-color: rgba(18, 58, 120, 0.28) transparent;
}

.project-kanban-board {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 100%;
}

.project-kanban-column {
    flex: 1 0 310px;
    min-width: 310px;
    max-width: 410px;
    padding: 12px;
    border: 1px solid rgba(125, 140, 158, 0.18);
    border-radius: 16px;
    background: #f5f8fc;
}

.project-kanban-column-unassigned {
    background: #fff8ef;
    border-color: rgba(217, 119, 6, 0.18);
}

.project-kanban-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    margin-bottom: 10px;
    padding: 0 2px 10px;
    border-bottom: 1px solid rgba(125, 140, 158, 0.16);
}

.project-kanban-column-head h4,
.project-kanban-column-head p {
    margin: 0;
}

.project-kanban-column-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.project-kanban-add-task {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid rgba(22, 58, 112, 0.22);
    border-radius: 9px;
    background: #ffffff;
    color: #163a70;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(15, 43, 82, 0.05);
}

.project-kanban-add-task:hover,
.project-kanban-add-task:focus-visible {
    border-color: #163a70;
    background: #163a70;
    color: #ffffff;
    outline: none;
}

.project-kanban-cards {
    display: grid;
    gap: 10px;
}

.project-kanban-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
}

.project-kanban-card .section-head {
    align-items: flex-start;
    margin: 0;
    padding: 0;
    border: 0;
}

.project-kanban-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    color: var(--muted);
    font-size: 0.78rem;
}

.project-kanban-assignees {
    margin: 0;
    font-size: 0.78rem;
}

.project-kanban-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
}

.project-kanban-controls .button {
    grid-column: 1 / -1;
}

.project-kanban-controls select {
    min-width: 0;
    min-height: 38px;
    border-color: rgba(91, 119, 157, 0.36);
    border-radius: 9px;
    background-color: #f3f7fc;
    padding-block: 7px;
    font-size: 0.8rem;
}

.project-kanban-controls select:first-child {
    background-color: #eef4fb;
}

.project-kanban-open {
    width: 100%;
}

.project-kanban-empty {
    padding: 20px 14px;
    border: 1px dashed rgba(125, 140, 158, 0.28);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .project-kanban-column {
        flex-basis: min(84vw, 330px);
        min-width: min(84vw, 330px);
    }
}

@media (max-width: 1500px) {
    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .topbar > .actions {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .projecta-project-grid {
        grid-template-columns: 1fr;
    }

    .topbar .search {
        flex-basis: 100%;
        min-width: 0;
    }
}

.search,
.button {
    min-height: 40px;
    border-radius: 10px;
}

.search {
    min-width: 320px;
    flex: 1 1 320px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    background: var(--panel-strong);
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    padding-left: 38px;
    font-size: 0.82rem;
    border-radius: 999px;
    box-shadow: none;
}

.search::before {
    content: "⌕";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--teal);
    font-size: 0.9rem;
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.87rem;
}

.search input::placeholder {
    color: #718096;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 58, 120, 0.18);
    padding: 0 14px;
    font: inherit;
    font-size: 0.81rem;
    font-weight: 560;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(239, 245, 251, 0.97));
    color: #18345f;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(18, 58, 120, 0.08);
}

.button.icon-only,
.icon-button.icon-only {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border-radius: 10px;
}

.button.icon-only svg,
.icon-button.icon-only svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.button.ghost {
    border-color: rgba(18, 58, 120, 0.22);
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(229, 240, 250, 0.98));
    color: #123a78;
}

.button.primary {
    background: linear-gradient(180deg, #123a78 0%, #0d2f63 100%);
    color: #f8fafc;
    border-color: rgba(12, 31, 77, 0.28);
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(18, 58, 120, 0.3);
    box-shadow: 0 10px 20px rgba(18, 58, 120, 0.14);
}

.button.ghost:hover {
    background: linear-gradient(180deg, rgba(229, 240, 250, 1), rgba(218, 233, 246, 1));
    border-color: rgba(18, 58, 120, 0.34);
    color: #0d2f63;
}

.button.primary:hover {
    border-color: rgba(255, 122, 0, 0.36);
    box-shadow: 0 6px 18px rgba(18, 58, 120, 0.18);
}

.button.warn {
    background: linear-gradient(180deg, #ff9f2f 0%, #f57c00 100%);
    color: #fff8f1;
    border-color: rgba(245, 124, 0, 0.28);
}

.button.warn:hover {
    border-color: rgba(12, 31, 77, 0.22);
    box-shadow: 0 6px 18px rgba(245, 124, 0, 0.22);
}

.button:focus-visible {
    outline: none;
    border-color: rgba(255, 122, 0, 0.42);
    box-shadow: 0 0 0 3px rgba(255, 159, 47, 0.16), 0 8px 18px rgba(18, 58, 120, 0.12);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two-columns {
    grid-template-columns: 1.35fr 0.95fr;
}

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

.panel {
    padding: 16px;
    border-radius: var(--radius-xl);
    background: var(--panel);
    min-width: 0;
    box-shadow: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr;
    gap: 12px;
}

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

.dashboard-hero-panel {
    padding: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(15, 182, 217, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 253, 0.98));
}

.dashboard-hero-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.35fr);
    gap: 18px;
    align-items: start;
}

.dashboard-hero-copy {
    max-width: 430px;
    min-width: 0;
}

.dashboard-hero-copy .muted {
    max-width: 34ch;
    color: #53667d;
}

.dashboard-hero-copy .button.primary {
    box-shadow: 0 12px 24px rgba(18, 58, 120, 0.14);
}

.dashboard-hero-summary {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.dashboard-decision-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 159, 47, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 254, 0.96));
}

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

.dashboard-decision-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.92));
}

.dashboard-decision-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.02rem;
    line-height: 1.2;
    color: var(--ink);
}

.dashboard-decision-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.action-button-row {
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-inline-actions {
    flex-wrap: nowrap;
}

.portfolio-inline-actions .button {
    white-space: nowrap;
}

.hero-title {
    font-size: clamp(1.02rem, 1.38vw, 1.22rem);
    line-height: 1.14;
    margin-bottom: 8px;
}

.section-title {
    font-size: 0.86rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

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

@media (max-width: 1440px) {
    .dashboard-hero-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-copy {
        max-width: none;
    }

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

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

@media (max-width: 1280px) {
    .portfolio-inline-actions {
        flex-wrap: wrap;
    }
}

.metric {
    min-width: 0;
    padding: 14px 14px 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(18, 58, 120, 0.09);
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(241, 247, 252, 0.96));
    position: relative;
}

.metric::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--teal), var(--warm));
}

.metric-value {
    display: block;
    margin-top: 8px;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.dashboard-agenda-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.dashboard-agenda-summary {
    padding: 14px 16px;
}

.dashboard-agenda-summary-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 122, 0, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(250, 252, 254, 0.98), rgba(243, 248, 252, 0.98));
}

.dashboard-agenda-summary .section-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.dashboard-agenda-types {
    display: grid;
    gap: 8px;
}

.dashboard-agenda-type strong {
    min-width: 24px;
    text-align: right;
}

.dashboard-agenda-type {
    padding: 6px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

.dashboard-note-panel {
    background: #f4f7fb;
    border-color: #cbd7e7;
    box-shadow: 0 12px 30px rgba(31, 53, 88, 0.06);
}

.dashboard-note-panel .rich-editor {
    border-color: #c7d3e3;
    background: #ffffff;
}

.profile-avatar-layout {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(229, 240, 250, 0.98));
    border-color: rgba(18, 58, 120, 0.14);
}

.profile-avatar-fallback {
    color: #123a78;
    font-size: 1.5rem;
}

.profile-avatar-actions {
    display: grid;
    gap: 12px;
}

.profile-account-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.profile-avatar-preview-small {
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.dashboard-note-panel .rich-editor-toolbar {
    background: #edf2f8;
    border-bottom-color: #d4deeb;
}

.dashboard-note-actions {
    justify-content: space-between;
    align-items: center;
}

.dashboard-note-status {
    font-weight: 600;
}

.dashboard-note-status[data-tone="pending"],
.dashboard-note-status[data-tone="saving"] {
    color: #64748b;
}

.dashboard-note-status[data-tone="success"] {
    color: #166534;
}

.dashboard-note-status[data-tone="error"] {
    color: #b91c1c;
}

.dashboard-note-textarea {
    min-height: 220px;
    resize: vertical;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dashboard-note-textarea::placeholder {
    color: rgba(71, 85, 105, 0.78);
}

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: start;
}

.help-role-badge {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(15, 182, 217, 0.16);
    background: linear-gradient(180deg, rgba(241, 251, 255, 0.98), rgba(248, 252, 255, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.help-role-badge strong {
    font-size: 1.1rem;
}

.help-stack,
.help-role-grid {
    display: grid;
    gap: 12px;
}

.help-layout {
    display: grid;
    gap: 18px;
}

.help-main-grid {
    align-items: start;
}

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

.help-card {
    display: grid;
    gap: 8px;
}

.help-card p {
    margin: 0;
}

.help-role-card {
    display: grid;
    gap: 10px;
}

.help-role-card.is-current {
    border-color: rgba(15, 182, 217, 0.22);
    background: linear-gradient(180deg, rgba(241, 251, 255, 0.98), rgba(234, 247, 253, 0.98));
    box-shadow: 0 14px 30px rgba(12, 31, 77, 0.08);
}

.help-list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    display: grid;
    gap: 6px;
}

.changelog-card {
    position: relative;
    overflow: hidden;
}

.changelog-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--teal), var(--warm));
}

.panel-dark {
    background: linear-gradient(180deg, #182230, #243345);
    color: #edf3f8;
}

.section-head,
.row-between,
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.section-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(12, 31, 77, 0.08);
}

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

.card,
.surface-card,
.project-main-card,
.project-side-card,
.overview-action-card,
.work-sheet-card {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: rgba(250, 252, 254, 0.96);
}

.card.hot {
    background: linear-gradient(180deg, #ffffff, #f4f7fa);
    border-color: rgba(100, 116, 139, 0.24);
}

.card-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
    letter-spacing: -0.015em;
}

.meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.meta-row .pill,
.filters .pill {
    border: 1px solid rgba(148, 163, 184, 0.14);
}

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

.lane {
    padding: 12px;
    min-height: 280px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(245, 248, 251, 0.92);
}

.lane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.lane-count {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(148, 163, 184, 0.18);
    font-size: 0.8rem;
    font-weight: 650;
}

.task-card {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: var(--panel-strong);
}

.task-card strong,
.card strong,
.table strong {
    color: #0b1324;
}

.guest-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 24px;
}

.login-wrap {
    width: min(100%, 520px);
}

.login-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(100, 116, 139, 0.18);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.07);
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 560;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.login-brand-mark {
    display: grid;
    place-items: center;
    width: 92px;
    flex: 0 0 92px;
}

.login-brand-image {
    display: block;
    width: 100%;
    height: auto;
}

.login-copy {
    margin-top: 22px;
    margin-bottom: 22px;
}

.login-copy .hero-title {
    font-size: clamp(1.28rem, 2.2vw, 1.58rem);
    line-height: 1.12;
    margin-bottom: 8px;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 8px;
    font-weight: 520;
    color: #374151;
}

.login-field input {
    height: 56px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0 16px;
    font: inherit;
    color: var(--ink);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.login-field input:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
}

.login-submit {
    width: 100%;
    margin-top: 6px;
    height: 56px;
}

.login-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 560;
}

.login-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-weight: 560;
}

.login-secondary-actions {
    margin-top: 16px;
    text-align: center;
    font-size: 0.88rem;
}

.login-secondary-actions a {
    color: #123a78;
    font-weight: 700;
    text-decoration: none;
}

.login-secondary-actions a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .login-card {
        padding: 24px;
        border-radius: 20px;
    }

    .login-brand {
        align-items: flex-start;
    }

    .login-brand-mark {
        width: 78px;
        flex-basis: 78px;
    }

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

    .dashboard-hero-copy {
        max-width: none;
    }

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

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

    .help-index-grid {
        grid-template-columns: 1fr;
    }

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

.task-card + .task-card {
    margin-top: 10px;
}

.feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feed-item {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.feed-item:last-child {
    border-bottom: 0;
}

.dashboard-agenda-card .card-title {
    margin-bottom: 4px;
}

.dashboard-agenda-card-today {
    border-color: rgba(14, 165, 233, 0.14);
    box-shadow: 0 14px 28px rgba(18, 58, 120, 0.05);
}

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

.dashboard-section-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.dashboard-agenda-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-agenda-group-today {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(14, 165, 233, 0.14);
    background: rgba(244, 249, 253, 0.96);
}

.dashboard-agenda-group + .dashboard-agenda-group {
    margin-top: 8px;
}

.dashboard-agenda-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 0;
}

.dashboard-agenda-type-pill {
    font-weight: 700;
}

.dashboard-project-next-event {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(14, 165, 233, 0.14);
    background: rgba(241, 249, 255, 0.86);
}

.dashboard-project-next-event a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-project-next-event a:hover {
    color: var(--accent);
}

.dashboard-control-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.dashboard-control-card {
    display: grid;
    gap: 8px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(244, 248, 252, 0.95));
}

.dashboard-control-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.42rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.dashboard-control-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.dashboard-control-queue {
    display: grid;
    gap: 10px;
}

.dashboard-control-queue-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(18, 58, 120, 0.08);
}

.dashboard-control-queue-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.dashboard-control-queue-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.dashboard-control-queue-item .muted {
    margin: 0;
}

.feed-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-soft);
    flex: 0 0 auto;
}

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

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
}

.highlight {
    color: var(--ink);
    font-weight: 560;
}

.text-link {
    color: #1f3a5f;
    font-weight: 560;
}

.project-detail-meta strong,
.project-attachment-chip strong,
.project-activity-body strong,
.phase-column .card strong,
.task-card-compact strong,
.work-sheet-card strong {
    font-weight: 540;
}

.work-sheet-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.text-link:hover {
    color: #0f172a;
}

.phase-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 300px;
}

.phase-kpi {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #f8fafc;
}

.phase-kpi strong {
    display: block;
    margin-top: 8px;
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    font-weight: 520;
}

.form-panel {
    max-width: 980px;
}

.admin-users-form-panel {
    max-width: none;
}

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

.project-worksheets-block {
    gap: 14px;
}

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

.form-grid-align-start {
    align-items: start;
}

.form-grid-align-start > .form-field {
    align-self: start;
}

.form-field {
    display: grid;
    gap: 6px;
    color: #334155;
    font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(125, 140, 158, 0.32);
    border-radius: 9px;
    background: #ffffff;
    padding: 9px 11px;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #6f8094;
    box-shadow: 0 0 0 3px rgba(141, 156, 174, 0.16);
}

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

.form-field span {
    font-size: 0.8rem;
    color: #617083;
}

select {
    width: 100%;
    min-height: 42px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(119, 139, 166, 0.42);
    border-radius: 10px;
    background-color: #f8fbff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23173468' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding: 9px 40px 9px 12px;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(20, 45, 85, 0.04);
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

select:hover {
    border-color: rgba(35, 73, 126, 0.58);
    background-color: #ffffff;
}

select:focus {
    outline: none;
    border-color: #315c98;
    box-shadow: 0 0 0 3px rgba(49, 92, 152, 0.14);
}

select:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    background-color: #edf2f8;
}

select[multiple] {
    min-height: 112px;
    padding: 8px;
    background-image: none;
}

select[multiple] option {
    padding: 8px 10px;
    border-radius: 7px;
}

/* Workflow-first interface: compact navigation, scannable boards and contextual detail. */
@media (min-width: 1101px) {
    :root {
        --sidebar-width: 232px;
    }
}

.sidebar {
    padding: 16px 12px;
}

.brand-mark {
    width: 104px;
}

.brand-actions {
    margin-top: 4px;
}

.nav {
    margin-top: 10px;
}

.nav-group {
    gap: 3px;
}

.nav-item {
    min-height: 42px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    column-gap: 9px;
    padding: 6px 8px;
    border-radius: 9px;
}

.nav-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 8px;
}

.nav-label {
    font-size: 0.86rem;
}

.nav-meta {
    display: none;
}

.nav-submenu-links {
    margin-left: 13px;
    padding-left: 13px;
}

.nav-subitem {
    padding: 6px 9px;
    font-size: 0.79rem;
}

.sidebar-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
}

.sidebar-user-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 7px;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.sidebar-account-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 650;
    color: rgba(244, 247, 251, 0.86);
}

.sidebar-account-actions form {
    margin: 0;
}

.sidebar-account-actions button {
    padding: 0;
    border: 0;
    color: inherit;
    font: inherit;
    background: transparent;
    cursor: pointer;
}

.main {
    padding: 18px 20px 26px;
}

.topbar {
    margin-bottom: 14px;
    padding: 0 0 12px;
}

.topbar-actions {
    flex: 1 1 auto;
}

.topbar .search {
    max-width: 620px;
    margin-left: auto;
}

.topbar-inbox {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(18, 58, 120, 0.18);
    border-radius: 10px;
    background: #f8fbff;
    color: var(--accent);
    font-size: 1.15rem;
}

.topbar-inbox .topbar-notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: var(--warm);
    color: #ffffff;
    font-size: 0.64rem;
}

.panel {
    border-radius: 14px;
}

.project-tabs {
    gap: 20px;
    padding-top: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.project-tab {
    position: relative;
    min-height: 38px;
    padding: 0 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    white-space: nowrap;
    box-shadow: none;
}

.project-tab:hover {
    border: 0;
    background: transparent;
    color: var(--accent);
}

.project-tab.active {
    border: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

.project-tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--accent);
}

.project-kanban-scroller {
    padding: 2px 0 8px;
}

.project-kanban-board {
    gap: 10px;
}

.project-kanban-column {
    flex-basis: 280px;
    min-width: 280px;
    max-width: 340px;
    padding: 8px;
    border-radius: 11px;
    background: #f3f6fa;
}

.project-kanban-column-head {
    min-height: 46px;
    margin-bottom: 8px;
    padding: 2px 4px 8px;
}

.project-kanban-cards {
    gap: 8px;
}

.project-kanban-card {
    gap: 8px;
    padding: 11px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
}

.project-kanban-card:hover {
    border-color: rgba(18, 58, 120, 0.2);
    box-shadow: 0 6px 16px rgba(18, 58, 120, 0.07);
}

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

.project-kanban-card.is-dragging {
    cursor: grabbing;
    opacity: 0.48;
    transform: rotate(1deg) scale(0.985);
}

.project-kanban-card.is-saving {
    opacity: 0.68;
    pointer-events: none;
}

.project-kanban-column {
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.project-kanban-column.is-drop-target {
    border-color: rgba(18, 58, 120, 0.55);
    background: #e8f0fb;
    box-shadow: inset 0 0 0 2px rgba(18, 58, 120, 0.1);
}

.project-kanban-column.is-drop-target .project-kanban-empty {
    border-color: rgba(18, 58, 120, 0.42);
    color: var(--accent);
}

.kanban-feedback {
    min-height: 20px;
    margin: -4px 0 8px;
    color: #245a43;
    font-size: 0.76rem;
    font-weight: 600;
}

.kanban-feedback:empty {
    min-height: 0;
    margin-bottom: 0;
}

.kanban-feedback.is-error {
    color: #a84800;
}

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

.project-kanban-title {
    min-width: 0;
    color: var(--ink);
    font-family: "Sora", sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.35;
}

.project-kanban-title:hover {
    color: var(--accent);
}

.project-kanban-card-head .pill {
    flex: 0 0 auto;
}

.project-priority {
    position: relative;
    padding-left: 10px;
}

.project-priority::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #8ba0b8;
}

.project-priority-high::before,
.project-priority-urgent::before {
    background: var(--warm);
}

.project-kanban-quick {
    border-top: 1px solid rgba(125, 140, 158, 0.14);
    padding-top: 7px;
}

.project-kanban-quick summary {
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

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

.project-kanban-quick summary::after {
    content: "+";
    float: right;
}

.project-kanban-quick[open] summary::after {
    content: "−";
}

.project-kanban-controls {
    margin-top: 8px;
}

.task-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    background: rgba(10, 24, 50, 0.28);
    backdrop-filter: blur(2px);
}

.task-drawer-backdrop.is-hidden {
    display: none;
}

.task-drawer-panel {
    width: min(720px, 76vw);
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: #f5f8fc;
    border-left: 1px solid rgba(18, 58, 120, 0.16);
    box-shadow: -18px 0 42px rgba(12, 31, 77, 0.14);
    animation: task-drawer-enter 180ms ease-out both;
}

.task-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(18, 58, 120, 0.12);
    background: #ffffff;
}

.task-drawer-head .overline {
    margin-bottom: 2px;
}

.task-drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(18, 58, 120, 0.16);
    border-radius: 9px;
    background: #f5f8fc;
    color: var(--ink);
    font-size: 1.4rem;
    cursor: pointer;
}

.task-drawer-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f5f8fc;
}

body.has-task-drawer-open {
    overflow: hidden;
}

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

.main-compact {
    padding: 14px;
}

.workspace-compact .task-detail-page {
    border: 0;
    box-shadow: none;
}

.workspace-compact .grid.two-columns {
    grid-template-columns: 1fr;
}

@keyframes task-drawer-enter {
    from { transform: translateX(28px); opacity: 0.7; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 760px) {
    .task-drawer-panel {
        width: 100vw;
    }

    .project-tabs {
        gap: 16px;
    }
}

.checkbox-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid rgba(125, 140, 158, 0.3);
    border-radius: 9px;
    background: #ffffff;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.subsection-block {
    display: grid;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(126, 139, 157, 0.16);
}

.inline-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.settings-grid {
    display: grid;
    gap: 18px;
}

.settings-card-grid {
    display: grid;
    gap: 12px;
}

.settings-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(12, 31, 77, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    box-shadow: 0 12px 30px rgba(12, 31, 77, 0.06);
}

.settings-card-copy {
    display: grid;
    gap: 6px;
}

.settings-card-copy p {
    margin: 0;
}

.settings-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.backup-runtime-grid,
.backup-support-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

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

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

.backup-runtime-card,
.backup-support-card {
    display: grid;
    gap: 8px;
}

.backup-runtime-card p,
.backup-support-card p {
    margin: 0;
}

.backup-run-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.backup-run-banner p {
    margin: 4px 0 0;
}

.backup-run-table {
    display: grid;
    gap: 10px;
}

.backup-run-table-head,
.backup-run-row {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr 0.95fr 0.7fr 0.8fr 1.5fr;
    gap: 12px;
    align-items: start;
}

.backup-run-table-head {
    padding: 0 6px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.backup-run-row {
    padding: 14px 16px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.backup-run-row > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.backup-run-row strong,
.backup-run-table-head span {
    word-break: break-word;
}

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

.form-actions-between {
    justify-content: space-between;
    align-items: center;
}

.modal-event-actions {
    margin-top: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-event-actions form {
    margin: 0;
}

.calendar-planner-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-actions-left {
    justify-content: flex-start;
}

.compact-form {
    gap: 14px;
}

.upload-dropzone {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 24px;
    border: 1px dashed rgba(125, 140, 158, 0.42);
    border-radius: 14px;
    background: #fbfcfe;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.upload-dropzone strong {
    font-size: 0.92rem;
}

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

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone.is-dragover {
    border-color: rgba(89, 110, 136, 0.52);
    background: #f1f5f9;
    box-shadow: var(--shadow-soft);
}

.upload-dropzone-compact {
    min-height: 88px;
    padding: 16px;
    border-radius: 14px;
}

.rich-editor {
    display: grid;
    gap: 0;
    border: 1px solid rgba(125, 140, 158, 0.26);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.rich-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px;
    border-bottom: 1px solid rgba(125, 140, 158, 0.18);
    background: #f7f9fc;
    scrollbar-width: thin;
    scrollbar-color: rgba(49, 92, 152, 0.24) transparent;
}

.rich-editor-toolbar::-webkit-scrollbar {
    height: 5px;
}

.rich-editor-toolbar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(49, 92, 152, 0.24);
}

.rich-editor-toolbar .button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.8rem;
}

.rich-editor-surface {
    min-height: 220px;
    padding: 14px;
    outline: none;
    line-height: 1.6;
    color: var(--ink);
    font-size: 0.89rem;
}

.rich-editor-surface:empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
}

.dashboard-note-panel .rich-editor-surface {
    min-height: 360px;
    background: #ffffff;
}

.shared-notes-panel {
    position: relative;
    overflow: hidden;
}

.shared-notes-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #315b88;
}

.project-shared-notes-panel .rich-editor-surface {
    min-height: 240px;
}

.dashboard-note-panel .rich-editor-surface:empty::before {
    content: "Scrivi qui appunti veloci, promemoria personali o cose da non perdere oggi.";
}

.project-shared-notes-panel .rich-editor-surface:empty::before {
    content: "Annota decisioni, riferimenti e informazioni utili al team.";
}

.editor-underline {
    text-decoration: underline;
}

.rich-editor-toolbar .button[aria-label="Allinea a destra"] {
    transform: scaleX(-1);
}

.rich-editor-surface h2,
.rich-content h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.rich-editor-surface h3,
.rich-content h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.rich-editor-compact .rich-editor-toolbar {
    gap: 3px;
    padding: 3px;
}

.rich-editor-compact .rich-editor-toolbar .button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.78rem;
}

.rich-editor-compact .rich-editor-surface {
    min-height: 152px;
    padding: 14px;
}

.rich-editor-surface p,
.rich-content p {
    margin: 0 0 12px;
}

.rich-editor-surface ul,
.rich-editor-surface ol,
.rich-content ul,
.rich-content ol {
    margin: 0 0 12px 18px;
}

.rich-editor-surface blockquote,
.rich-content blockquote {
    margin: 0 0 12px;
    padding-left: 14px;
    border-left: 3px solid rgba(100, 116, 139, 0.28);
    color: #475569;
}

.rich-content {
    line-height: 1.7;
}

.project-phases-builder {
    padding: 18px;
}

.project-phase-list {
    display: grid;
    gap: 12px;
}

.phase-row-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phase-drag-handle {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    cursor: grab;
    font: 800 1rem/1 Manrope, sans-serif;
    letter-spacing: -3px;
}

.phase-drag-handle:active {
    cursor: grabbing;
}

.project-phase-row.is-dragging {
    opacity: 0.5;
    border-color: #2563eb;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
}

.external-guest-list {
    grid-column: 1 / -1;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.7);
}

.external-guest-list small {
    color: #64748b;
    font-size: 0.78rem;
}

.member-access-picker {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #d8e2ee;
    border-radius: 16px;
    background: #f8fafc;
}

.member-access-project {
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fff;
}

.member-access-project summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

.member-access-project summary label,
.member-access-tasks label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-access-project summary span {
    color: #64748b;
    font-size: 0.78rem;
}

.member-access-tasks {
    display: grid;
    gap: 8px;
    padding: 2px 14px 14px 42px;
}

.member-access-tasks label {
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 0.86rem;
}

.member-access-tasks label:hover {
    background: #f1f5f9;
}

.notification-reminder-modal.is-compact-reminder {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    background: transparent;
    pointer-events: none;
}

.notification-reminder-banner {
    width: min(560px, calc(100vw - 32px));
    pointer-events: auto;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
}

.phase-suggestion-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.phase-suggestion-chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.project-phase-row {
    gap: 14px;
}

.project-phase-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

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

.project-phases-builder {
    margin-top: 18px;
}

.phase-closing-field {
    margin-top: 12px;
}

.table-toolbar {
    padding-bottom: 2px;
}

.search,
.button,
.login-field input {
    box-shadow: none;
}

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

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

.calendar-overview-shell {
    align-items: stretch;
}

.calendar-summary {
    display: grid;
    gap: 6px;
    align-content: start;
}

.calendar-summary strong {
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-weight: 600;
}

.calendar-view-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-workspace-hero {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.94));
    box-shadow: 0 20px 44px rgba(18, 58, 120, 0.06);
}

.project-workspace-hero .row-between {
    align-items: flex-start;
    gap: 18px;
}

.project-hero-copy {
    display: grid;
    gap: 10px;
    max-width: 820px;
}

.project-hero-copy .overline {
    margin: 0;
}

.project-workspace-hero .hero-title {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.project-hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: rgba(246, 249, 252, 0.92);
    color: #516178;
    font-size: 0.8rem;
    font-weight: 520;
}

.project-hero-badges {
    margin-top: 0;
    align-self: start;
    justify-content: flex-end;
    gap: 8px;
}

.project-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.project-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid transparent;
    color: #526173;
    font-size: 0.86rem;
    font-weight: 540;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.project-tab:hover {
    background: rgba(244, 247, 251, 0.98);
    border-color: rgba(18, 58, 120, 0.08);
}

.project-tab.active {
    background: #273446;
    color: #f8fafc;
    border-color: rgba(39, 52, 70, 0.96);
    box-shadow: 0 10px 24px rgba(18, 58, 120, 0.14);
}

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

.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.project-summary-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(250, 252, 254, 0.98), rgba(245, 248, 252, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.project-summary-label {
    font-size: 0.74rem;
    color: #7b8aa1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-summary-item strong {
    font-size: 0.94rem;
    font-weight: 560;
    color: var(--ink);
}

.project-detail-section {
    display: grid;
    gap: 14px;
}

.project-overview-actions {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.project-overview-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 312px;
    gap: 18px;
    align-items: start;
}

.project-phase-card {
    gap: 10px;
}

.project-side-rail {
    display: grid;
    gap: 14px;
    align-content: start;
}

.project-main-card,
.project-side-card {
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(18, 58, 120, 0.05);
}

.project-main-card .section-head,
.project-side-card .section-head {
    margin-bottom: 2px;
}

.project-workspace-hero .muted,
.project-detail-sheet .muted,
.project-discussion-summary-card p,
.project-discussion-composer small,
.project-discussion-empty p {
    font-size: 0.8rem;
    line-height: 1.45;
}

.project-detail-sheet small.muted {
    display: block;
    margin-top: 6px;
}

.storage-status-card {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(12, 31, 77, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.storage-status-card strong {
    font-size: 0.88rem;
    font-weight: 520;
}

.project-attachment-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.project-attachment-strip.is-compact {
    display: grid;
    gap: 8px;
}

.project-attachment-chip {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.92);
}

.project-attachment-chip strong {
    font-size: 0.86rem;
    font-weight: 520;
}

.project-attachment-chip span {
    color: var(--muted);
    font-size: 0.82rem;
}

.project-activity-feed {
    display: grid;
    gap: 6px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.project-attention-grid {
    display: grid;
    gap: 12px;
}

.project-attention-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
}

.project-attention-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.project-attention-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.project-next-actions {
    display: grid;
    gap: 10px;
}

.project-next-action {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
    text-decoration: none;
    color: inherit;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.project-next-action:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, 0.24);
    box-shadow: 0 14px 28px rgba(18, 58, 120, 0.08);
}

.project-next-action p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.project-activity-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.project-activity-item:last-child {
    border-bottom: 0;
}

.project-activity-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: #c2ccd9;
}

.project-activity-body {
    display: grid;
    gap: 4px;
}

.project-activity-body p {
    margin: 0;
}

.task-import-context {
    margin-top: 18px;
    overflow: hidden;
}

.task-import-context-head {
    margin-bottom: 16px;
}

.task-import-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}

.task-import-block {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #f8fafc;
}

.task-import-block-head,
.task-import-history-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.task-import-block-head {
    margin-bottom: 12px;
}

.task-import-block-head h4 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 0.92rem;
}

.task-import-block-head span,
.task-import-history-meta span,
.task-import-history-item small,
.task-import-empty {
    color: var(--muted);
    font-size: 0.78rem;
}

.task-import-empty {
    margin: 0;
}

.task-custom-field-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.task-custom-field-item {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.task-custom-field-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.task-custom-field-item dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.task-custom-field-item dd {
    min-width: 0;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

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

.task-attachments-section {
    margin-top: 18px;
}

.task-attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.task-attachment-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.task-attachment-preview {
    position: relative;
    width: 100%;
    height: 142px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #eef3f9;
    cursor: zoom-in;
}

.task-attachment-preview img,
.task-attachment-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.task-attachment-preview iframe {
    background: #fff;
}

.task-attachment-preview:hover img,
.task-attachment-preview:hover iframe {
    transform: scale(1.025);
}

.task-attachment-preview img,
.task-attachment-preview iframe {
    transition: transform 160ms ease;
}

.task-attachment-pdf-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #b4232f;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.task-attachment-file-icon {
    color: var(--accent);
    font-family: "Sora", sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
}

.task-attachment-card-body {
    display: grid;
    gap: 7px;
    padding: 11px 12px;
}

.task-attachment-card-body strong {
    overflow: hidden;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-attachment-card-body > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.task-attachment-card-body span,
.task-attachment-card-body a {
    font-size: 0.72rem;
}

.task-attachment-card-body span {
    color: var(--muted);
}

.attachment-preview-modal {
    z-index: 1100;
}

.attachment-preview-panel {
    width: min(1100px, calc(100vw - 32px));
    height: min(88vh, 900px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.attachment-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.attachment-preview-head h3 {
    max-width: min(680px, 62vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-preview-stage {
    min-height: 0;
    display: grid;
    place-items: center;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 12px;
    background: #e9eef5;
}

.attachment-preview-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.attachment-preview-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.attachment-preview-unavailable {
    padding: 32px;
    text-align: center;
}

@media (max-width: 640px) {
    .task-attachment-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .attachment-preview-head { align-items: flex-start; flex-direction: column; }
    .attachment-preview-head h3 { max-width: 80vw; }
}

.task-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.task-attachment-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.task-attachment-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.task-attachment-copy strong {
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.task-attachment-copy span {
    color: var(--muted);
    font-size: 0.76rem;
}

.task-import-history {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.task-import-history summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.task-import-history summary::-webkit-details-marker {
    display: none;
}

.task-import-history summary > span:first-child {
    display: grid;
    gap: 2px;
}

.task-import-history summary strong {
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
}

.task-import-history summary small {
    color: var(--muted);
    font-size: 0.76rem;
}

.task-import-history-action {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 750;
}

.task-import-history[open] .task-import-history-action {
    font-size: 0;
}

.task-import-history[open] .task-import-history-action::after {
    content: "Nascondi cronologia";
    font-size: 0.78rem;
}

.task-import-history-list {
    max-height: 560px;
    overflow: auto;
    padding: 0 16px 12px;
    border-top: 1px solid var(--line);
}

.task-import-history-item {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.task-import-history-item:last-child {
    border-bottom: 0;
}

.task-import-history-marker {
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.task-import-history-item p {
    margin: 6px 0 4px;
    color: #33445b;
    font-size: 0.82rem;
    line-height: 1.5;
}

.project-discussion-feed {
    gap: 10px;
    max-height: none;
    padding-right: 0;
}

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

.project-discussion-summary-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.project-discussion-summary-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--ink);
}

.project-discussion-summary-card p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
}

.project-discussion-intro-card {
    border: 1px solid rgba(59, 130, 246, 0.14);
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.project-discussion-composer {
    padding: 18px 20px;
    border: 1px solid rgba(18, 58, 120, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 140px;
}

.project-discussion-item {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
}

.project-discussion-dot {
    width: 12px;
    height: 12px;
    margin-top: 8px;
    border: 2px solid rgba(18, 58, 120, 0.12);
    background: rgba(148, 163, 184, 0.42);
}

.project-discussion-item.type-update .project-discussion-dot {
    background: rgba(16, 185, 129, 0.85);
}

.project-discussion-item.type-request .project-discussion-dot {
    background: rgba(14, 165, 233, 0.92);
}

.project-discussion-item.type-blocker .project-discussion-dot {
    background: rgba(245, 158, 11, 0.95);
}

.project-discussion-item.type-decision .project-discussion-dot {
    background: rgba(31, 65, 134, 0.9);
}

.project-discussion-body {
    gap: 8px;
}

.project-discussion-body strong {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--ink);
}

.project-discussion-body p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(45, 59, 89, 0.92);
}

.project-discussion-empty {
    padding: 16px 18px;
}

@media (max-width: 1080px) {
    .project-discussion-summary {
        grid-template-columns: 1fr;
    }
}

.work-sheet-item {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.work-sheet-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

.work-sheet-summary::-webkit-details-marker {
    display: none;
}

.work-sheet-summary > div {
    display: grid;
    gap: 4px;
}

.work-sheet-summary strong {
    font-size: 0.9rem;
    font-weight: 520;
}

.work-sheet-item[open] .work-sheet-summary {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.work-sheet-item[open] .work-sheet-card {
    border-radius: 0 0 14px 14px;
    border: 0;
    background: rgba(250, 252, 254, 0.92);
}

.work-sheet-composer .work-sheet-summary {
    padding: 12px 14px;
}

.work-sheet-composer .work-sheet-card {
    padding-top: 14px;
}

.phase-quick-form {
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
}

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

.phase-inline-select {
    gap: 0;
}

.phase-inline-form .button {
    min-width: 112px;
}

.inline-form {
    margin: 0;
}

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

.destructive-inline-form {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.phase-quick-actions {
    margin-top: 2px;
}

.phase-quick-actions .button {
    width: 100%;
}

.upload-dropzone {
    padding: 16px;
    border-radius: 14px;
    min-height: 112px;
    align-content: center;
}

.upload-dropzone strong {
    font-size: 0.9rem;
}

.upload-dropzone span {
    font-size: 0.82rem;
}

.phase-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 340px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.phase-column {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(244, 247, 250, 0.96);
}

.project-kanban-board {
    padding-bottom: 2px;
}

.project-kanban-column {
    display: flex;
    flex-direction: column;
    height: clamp(860px, 82vh, 960px);
    min-height: 0;
}

.project-kanban-column-head {
    flex: 0 0 auto;
}

.project-kanban-cards {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(49, 92, 152, 0.3) transparent;
}

.project-kanban-cards::-webkit-scrollbar {
    width: 7px;
}

.project-kanban-cards::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(49, 92, 152, 0.3);
}

.project-kanban-cards::-webkit-scrollbar-track {
    background: transparent;
}

.project-kanban-card {
    gap: 12px;
    padding: 14px;
}

@media (max-width: 640px) {
    .project-kanban-column {
        height: clamp(620px, 76vh, 760px);
    }
}

.project-kanban-title {
    font-family: "Sora", sans-serif;
    font-size: 0.92rem;
    font-weight: 520;
    line-height: 1.25;
}

.project-kanban-meta {
    display: grid;
    gap: 7px;
    margin-top: 1px;
}

.project-kanban-deadline {
    display: grid;
    gap: 3px;
    font-size: 0.8rem;
    color: var(--muted);
}

.project-kanban-deadline strong {
    font-size: 0.94rem;
    font-weight: 520;
    color: var(--ink);
}

.project-kanban-cta {
    width: 100%;
    margin-top: 4px;
}

.project-kanban-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-kanban-next-event {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: rgba(14, 165, 233, 0.08);
    text-decoration: none;
    color: inherit;
}

.project-kanban-next-event strong {
    font-size: 0.84rem;
    color: var(--ink);
}

.project-kanban-next-event span {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
}

.project-view-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-portfolio-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.project-portfolio-summary-card {
    display: grid;
    gap: 10px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.06);
}

.project-portfolio-summary-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.72rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.project-portfolio-summary-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.project-portfolio-focus-list {
    display: grid;
    gap: 14px;
}

.project-portfolio-focus-card {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.94));
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.06);
}

.project-portfolio-focus-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-timeline-legend {
    display: flex;
    gap: 12px 16px;
    flex-wrap: wrap;
    align-items: center;
    margin: 10px 0 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: rgba(248, 251, 254, 0.82);
}

.project-timeline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 12px;
}

.project-timeline-meta-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 14px;
}

.project-timeline-meta-cards .project-portfolio-summary-card {
    gap: 8px;
    padding: 14px 16px 12px;
    border-radius: 18px;
}

.project-timeline-meta-cards .project-portfolio-summary-card strong {
    font-size: 1.18rem;
}

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

.portfolio-control-page {
    gap: 18px;
}

.portfolio-control-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 18px;
}

.portfolio-top-panel,
.portfolio-focus-panel,
.portfolio-owner-panel,
.portfolio-agenda-panel {
    padding: 18px 20px;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.05);
}

.portfolio-top-summary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 254, 0.96));
}

.portfolio-top-executive {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99), rgba(243, 248, 253, 0.95));
}

.portfolio-decision-panel {
    grid-column: 1 / -1;
    background:
        radial-gradient(circle at top right, rgba(255, 159, 47, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 254, 0.96));
}

.portfolio-control-charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.portfolio-chart-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 100%;
    padding: 18px 20px;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.05);
}

.portfolio-chart-note {
    margin: -2px 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

.portfolio-control-summary-card,
.portfolio-control-project-card {
    display: grid;
    gap: 10px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.06);
}

.portfolio-control-summary-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.54rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.portfolio-control-summary-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.portfolio-chart-card {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.portfolio-donut {
    position: relative;
    width: min(100%, 220px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.portfolio-donut svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.portfolio-donut-base,
.portfolio-donut-segment {
    fill: none;
    stroke-width: 12;
    stroke-linecap: butt;
}

.portfolio-donut-base {
    stroke: rgba(18, 58, 120, 0.09);
}

.portfolio-donut-segment {
    transition: stroke-dasharray 180ms ease, stroke-dashoffset 180ms ease;
}

.portfolio-donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 4px;
    text-align: center;
    pointer-events: none;
}

.portfolio-donut-center strong {
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.portfolio-donut-center span {
    font-size: 0.82rem;
    color: var(--muted);
}

.portfolio-donut-legend {
    display: grid;
    gap: 12px;
}

.portfolio-donut-legend-item {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: rgba(248, 251, 254, 0.82);
}

.portfolio-donut-legend-item strong {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    line-height: 1;
    color: var(--ink);
}

.portfolio-health-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(18, 58, 120, 0.12);
}

.portfolio-health-dot.health-on-track {
    background: #14b8a6;
}

.portfolio-health-dot.health-watch {
    background: #0ea5e9;
}

.portfolio-health-dot.health-late {
    background: #ff9f2f;
}

.portfolio-control-list,
.portfolio-control-owner-list,
.portfolio-control-agenda {
    display: grid;
    gap: 12px;
}

.portfolio-workload-chart {
    display: grid;
    gap: 10px;
    align-content: start;
}

.portfolio-workload-row {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.94), rgba(255, 255, 255, 0.98));
}

.portfolio-workload-bar {
    position: relative;
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(18, 58, 120, 0.08);
}

.portfolio-workload-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9 0%, #123a78 58%, #ff9f2f 100%);
    box-shadow: 0 8px 16px rgba(18, 58, 120, 0.16);
}

.portfolio-control-agenda-card {
    border-color: rgba(18, 58, 120, 0.08);
    box-shadow: 0 12px 26px rgba(18, 58, 120, 0.04);
}

.portfolio-agenda-actions {
    margin-top: 6px;
}

.portfolio-team-horizon {
    display: grid;
    gap: 12px;
}

.portfolio-capacity-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.portfolio-capacity-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(18, 58, 120, 0.04);
}

.portfolio-capacity-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.portfolio-capacity-card .form-actions {
    margin-top: 2px;
}

.portfolio-control-bottom,
.portfolio-control-side-stack {
    gap: 18px;
}

.portfolio-inline-actions {
    margin-top: 4px;
}

.portfolio-team-horizon-head,
.portfolio-team-horizon-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.portfolio-team-horizon-user-head {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.portfolio-team-horizon-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.portfolio-team-horizon-day-head {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 8px 6px;
    border-radius: 12px;
    background: rgba(248, 251, 254, 0.86);
    border: 1px solid rgba(18, 58, 120, 0.08);
    font-size: 0.78rem;
    color: var(--muted);
}

.portfolio-team-horizon-day-head strong {
    font-size: 0.7rem;
    line-height: 1;
    color: var(--ink);
}

.portfolio-team-horizon-body {
    display: grid;
    gap: 10px;
}

.portfolio-team-horizon-row {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.92));
}

.portfolio-team-horizon-user {
    display: grid;
    gap: 4px;
}

.portfolio-team-horizon-user p {
    margin: 0;
    font-size: 0.8rem;
}

.portfolio-team-horizon-cell {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    font-weight: 700;
    color: var(--ink);
    background: rgba(248, 251, 254, 0.82);
}

.portfolio-team-horizon-cell.is-light {
    background: rgba(193, 233, 246, 0.62);
    border-color: rgba(14, 165, 233, 0.18);
}

.portfolio-team-horizon-cell.is-medium {
    background: rgba(18, 58, 120, 0.12);
    border-color: rgba(18, 58, 120, 0.2);
}

.portfolio-team-horizon-cell.is-heavy {
    background: rgba(255, 159, 47, 0.18);
    border-color: rgba(255, 159, 47, 0.28);
    color: #9a4c00;
}

.project-timeline-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted);
}

.project-timeline-legend-swatch {
    width: 18px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.project-timeline-legend-swatch.risk-basso {
    background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
}

.project-timeline-legend-swatch.risk-medio {
    background: linear-gradient(180deg, #123a78 0%, #0d2f63 100%);
}

.project-timeline-legend-swatch.risk-alto {
    background: linear-gradient(180deg, #ff9f2f 0%, #f57c00 100%);
}

.project-timeline-legend-swatch.overdue {
    background: rgba(255, 159, 47, 0.18);
    border: 1px solid rgba(255, 122, 0, 0.34);
}

.project-timeline-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(18, 58, 120, 0.12);
}

.project-timeline-legend-dot.type-task {
    background: #123a78;
}

.project-timeline-legend-dot.type-meeting {
    background: #0ea5e9;
}

.project-timeline-legend-dot.type-milestone {
    background: #ff9f2f;
}

.project-timeline-legend-dot.type-reminder {
    background: #14b8a6;
}

.project-timeline-shell {
    display: grid;
    gap: 14px;
    overflow-x: auto;
}

.project-timeline-head,
.project-timeline-row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(620px, 1fr);
    gap: 18px;
    align-items: center;
}

.project-timeline-meta-head {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-timeline-scale,
.project-timeline-track {
    position: relative;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background:
        repeating-linear-gradient(
            90deg,
            rgba(18, 58, 120, 0.03) 0,
            rgba(18, 58, 120, 0.03) 1px,
            transparent 1px,
            transparent calc(100% / 12)
        ),
        linear-gradient(180deg, #fbfcfe, #f6f9fc);
    overflow: hidden;
}

.project-timeline-scale {
    display: flex;
    align-items: stretch;
    min-height: 44px;
}

.project-timeline-month {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(18, 58, 120, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    color: #51627f;
    white-space: nowrap;
}

.project-timeline-list {
    display: grid;
    gap: 12px;
}

.project-timeline-meta {
    display: grid;
    gap: 6px;
}

.project-timeline-title {
    font-weight: 700;
    color: var(--ink-strong);
    text-decoration: none;
}

.project-timeline-title:hover {
    color: var(--teal);
}

.project-timeline-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
}

.project-timeline-next-event {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

.project-timeline-next-event:hover {
    color: var(--accent);
}

.project-timeline-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.project-timeline-status-overdue {
    color: #a54800;
    background: rgba(255, 159, 47, 0.14);
    border: 1px solid rgba(255, 159, 47, 0.24);
}

.project-timeline-track {
    min-height: 64px;
}

.project-timeline-track-events {
    min-height: 110px;
    overflow: visible;
    padding-top: 34px;
}

.project-timeline-today {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 122, 0, 0.78);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.08);
    z-index: 1;
}

.project-timeline-bar {
    position: absolute;
    top: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    min-width: 48px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(18, 58, 120, 0.16);
    z-index: 2;
    overflow: hidden;
}

.project-timeline-track-events .project-timeline-bar {
    top: 44px;
    bottom: 12px;
}

.project-timeline-bar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-timeline-bar.risk-basso {
    background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
}

.project-timeline-bar.risk-medio {
    background: linear-gradient(180deg, #123a78 0%, #0d2f63 100%);
}

.project-timeline-bar.risk-alto {
    background: linear-gradient(180deg, #ff9f2f 0%, #f57c00 100%);
}

.project-timeline-bar.is-overdue {
    box-shadow:
        0 0 0 2px rgba(255, 122, 0, 0.32),
        0 10px 24px rgba(18, 58, 120, 0.16);
}

.project-timeline-event-pin {
    position: absolute;
    top: calc(40px - (var(--lane, 0) * 22px));
    width: 12px;
    height: 12px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    border: 2px solid #ffffff;
    box-shadow: 0 6px 16px rgba(18, 58, 120, 0.18);
    z-index: 3;
    text-decoration: none;
}

.project-timeline-event-pin::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    width: 2px;
    height: calc(38px + (var(--lane, 0) * 22px));
    transform: translateX(-50%);
    background: rgba(18, 58, 120, 0.16);
}

.project-timeline-event-pin-label {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: grid;
    gap: 2px;
    min-width: 88px;
    max-width: 128px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 58, 120, 0.08);
    box-shadow: 0 10px 24px rgba(18, 58, 120, 0.1);
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--ink);
    text-align: center;
    white-space: normal;
}

.project-timeline-event-pin-label small {
    font-size: 0.68rem;
    color: var(--muted);
}

.project-timeline-event-pin:hover {
    z-index: 4;
}

.project-timeline-event-pin:hover .project-timeline-event-pin-label {
    border-color: rgba(14, 165, 233, 0.22);
    box-shadow: 0 14px 30px rgba(18, 58, 120, 0.14);
}

.project-timeline-event-pin.type-task {
    background: #123a78;
}

.project-timeline-event-pin.type-meeting {
    background: #0ea5e9;
}

.project-timeline-event-pin.type-milestone {
    background: #ff9f2f;
}

.project-timeline-event-pin.type-reminder {
    background: #14b8a6;
}

.project-timeline-undated {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.project-timeline-shell-compact .project-timeline-head,
.project-timeline-shell-compact .project-timeline-row {
    grid-template-columns: minmax(180px, 220px) minmax(420px, 1fr);
}

.project-timeline-events-track {
    min-height: 108px;
    padding: 16px 10px;
}

.project-roadmap-event-marker {
    position: absolute;
    top: 18px;
    transform: translateX(-50%);
    display: grid;
    gap: 2px;
    min-width: 110px;
    max-width: 180px;
    padding: 8px 10px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(18, 58, 120, 0.12);
    border: 1px solid rgba(18, 58, 120, 0.08);
    z-index: 2;
}

.project-roadmap-event-marker span {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink-strong);
}

.project-roadmap-event-marker small {
    font-size: 0.72rem;
    color: var(--muted);
}

.project-roadmap-event-marker.type-task {
    background: rgba(18, 58, 120, 0.08);
}

.project-roadmap-task-marker {
    background: rgba(18, 58, 120, 0.1);
}

.project-roadmap-task-marker.is-priority {
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(14, 165, 233, 0.24);
}

.project-roadmap-task-marker.is-overdue {
    background: rgba(255, 159, 47, 0.16);
    border-color: rgba(255, 159, 47, 0.3);
}

.project-board-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    align-items: stretch;
}

.project-board-summary-card {
    display: grid;
    gap: 10px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.06);
}

.project-board-summary-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.project-board-summary-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.project-board-intro-card {
    margin-bottom: 18px;
}

.project-board-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.project-board-quick-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
}

.project-board-quick-card p {
    margin: 0;
}

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

.project-calendar-summary-card {
    display: grid;
    gap: 10px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.06);
}

.project-calendar-summary-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.project-calendar-summary-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.project-calendar-intro-card {
    margin-bottom: 18px;
}

.project-calendar-card {
    border-radius: 22px;
}

.project-calendar-card.is-past {
    opacity: 0.84;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9));
}

.project-calendar-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-content: start;
}

.project-calendar-notes {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.5;
}

.project-files-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.project-files-summary-card {
    display: grid;
    gap: 10px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.06);
}

.project-files-summary-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.project-files-summary-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.project-files-intro-card {
    margin-bottom: 18px;
}

.project-file-card {
    border-radius: 22px;
}

.project-worksheets-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.project-worksheets-summary-card {
    display: grid;
    gap: 10px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
    box-shadow: 0 18px 40px rgba(18, 58, 120, 0.06);
}

.project-worksheets-summary-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.project-worksheets-summary-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.project-worksheets-intro-card {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .portfolio-control-top {
        grid-template-columns: 1fr;
    }

    .dashboard-section-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

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

    .dashboard-control-queue-item {
        flex-direction: column;
        align-items: stretch;
    }

    .project-view-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

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

    .project-timeline-meta-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-team-horizon-head,
    .portfolio-team-horizon-row {
        grid-template-columns: 1fr;
    }

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

    .portfolio-control-charts {
        grid-template-columns: 1fr;
    }

    .portfolio-capacity-highlights {
        grid-template-columns: 1fr;
    }

    .portfolio-chart-card {
        grid-template-columns: 1fr;
    }

    .portfolio-donut {
        width: min(100%, 200px);
    }

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

    .project-board-quick-actions {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 640px) {
    .project-portfolio-overview {
        grid-template-columns: 1fr;
    }

    .project-timeline-meta-cards {
        grid-template-columns: 1fr;
    }

    .portfolio-control-summary {
        grid-template-columns: 1fr;
    }

    .portfolio-control-charts {
        grid-template-columns: 1fr;
    }

    .portfolio-capacity-highlights {
        grid-template-columns: 1fr;
    }

    .portfolio-donut-legend-item {
        grid-template-columns: auto auto 1fr;
        padding: 10px 12px;
    }

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

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

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

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

.project-roadmap-event-marker.type-meeting {
    background: rgba(15, 182, 217, 0.12);
}

.project-roadmap-event-marker.type-milestone {
    background: rgba(255, 159, 47, 0.16);
}

.project-roadmap-event-marker.type-reminder {
    background: rgba(125, 140, 158, 0.14);
}

.calendar-summary {
    padding: 16px 16px 15px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(15, 182, 217, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(252, 253, 254, 0.99), rgba(244, 249, 253, 0.98));
}

.calendar-summary .muted:last-child {
    font-size: 0.8rem;
}

.calendar-planner-shell {
    display: grid;
    gap: 14px;
    overflow: visible;
}

.calendar-planner-head {
    display: grid;
    gap: 4px;
}

.weekly-planner {
    min-width: 0;
}

.weekly-planner-scroll {
    width: 100%;
    max-height: calc((13 * var(--calendar-slot-height, 68px)) + 182px);
    overflow-x: auto;
    overflow-y: auto;
    padding-right: 6px;
}

.weekly-planner-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.weekly-planner-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.weekly-planner-grid {
    display: grid;
    grid-template-columns: 88px repeat(5, minmax(140px, 1fr)) minmax(220px, 1.2fr);
    gap: 10px 8px;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.weekly-planner-corner {
    min-height: 58px;
}

.weekly-planner-day-head {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px 10px;
    background: linear-gradient(180deg, var(--panel-strong) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.weekly-planner-day-head.is-holiday {
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, rgba(236, 244, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
    border: 1px solid rgba(43, 92, 160, 0.18);
    border-bottom-color: rgba(43, 92, 160, 0.18);
}

.weekly-planner-day-head.has-all-day {
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 14px 14px 0 0;
    background:
        linear-gradient(180deg, rgba(225, 235, 248, 0.98) 0%, rgba(239, 245, 252, 0.98) 100%);
    border: 1px solid rgba(18, 58, 120, 0.22);
    border-bottom-color: rgba(18, 58, 120, 0.22);
}

.weekly-planner-weekend-head {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px 10px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, var(--panel-strong) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.weekly-planner-all-day-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    min-height: 88px;
    padding: 0 10px 0 2px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #506276;
    line-height: 1.1;
}

.weekly-planner-all-day-cell {
    display: grid;
    gap: 8px;
    min-height: 88px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(153, 166, 187, 0.2);
    background: linear-gradient(180deg, #edf3fb 0%, #e6eef8 100%);
    align-content: start;
}

.weekly-planner-all-day-cell.has-all-day {
    border-color: rgba(18, 58, 120, 0.22);
    background:
        linear-gradient(180deg, rgba(229, 238, 250, 0.98) 0%, rgba(219, 231, 246, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.weekly-planner-all-day-cell.is-holiday {
    border-color: rgba(43, 92, 160, 0.18);
    background:
        linear-gradient(180deg, rgba(238, 246, 255, 0.98) 0%, rgba(228, 239, 252, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.weekly-planner-all-day-cell.is-empty {
    background: linear-gradient(180deg, rgba(237, 243, 251, 0.58), rgba(230, 238, 248, 0.44));
}

.weekly-planner-weekend-all-day,
.weekly-planner-weekend-timeline {
    display: grid;
    gap: 8px;
}

.weekly-planner-weekend-all-day {
    min-height: 88px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(153, 166, 187, 0.2);
    background: linear-gradient(180deg, #edf3fb 0%, #e6eef8 100%);
    align-content: start;
}

.weekly-planner-weekend-all-day.is-empty {
    background: linear-gradient(180deg, rgba(237, 243, 251, 0.58), rgba(230, 238, 248, 0.44));
}

.weekly-planner-weekend-timeline {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(144, 159, 180, 0.18);
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
    align-content: stretch;
    grid-template-rows: minmax(0, 6fr) minmax(0, 4fr);
    min-height: calc(var(--calendar-slot-count, 16) * var(--calendar-slot-height, 68px));
}

.weekly-planner-weekend-day-block {
    display: grid;
    gap: 6px;
    align-content: start;
    min-height: 0;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(153, 166, 187, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 252, 0.92));
    overflow: hidden;
}

.weekly-planner-weekend-day-block + .weekly-planner-weekend-day-block {
    padding-top: 10px;
}

.weekly-planner-weekend-day-label {
    display: grid;
    gap: 2px;
}

.weekly-planner-weekend-day-label strong {
    font-size: 0.8rem;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    color: #924300;
}

.weekly-planner-weekend-day-label .muted {
    font-size: 0.78rem;
}

.weekly-planner-weekend-day-content {
    display: grid;
    gap: 6px;
    min-height: 0;
}

.weekly-planner-weekend-event {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 11px;
    border-left: 4px solid var(--event-line, #7590a8);
    border: 1px solid color-mix(in srgb, var(--event-line, #7590a8) 40%, white);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--event-soft, #e8eef4) 92%, white), color-mix(in srgb, var(--event-soft, #e8eef4) 86%, white)),
        var(--event-soft, #e8eef4);
    color: var(--event-text, #243f58);
    text-decoration: none;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--event-line, #7590a8) 20%, white),
        0 8px 16px rgba(18, 58, 120, 0.06);
}

.weekly-planner-weekend-event.is-critical {
    box-shadow:
        inset 0 0 0 1px rgba(120, 90, 30, 0.26),
        0 6px 14px rgba(120, 90, 30, 0.08);
}

.weekly-planner-weekend-event-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--event-line, #7590a8) 24%, white);
    background: color-mix(in srgb, var(--event-soft, #e8eef4) 72%, white);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--event-text, #5a697b) 84%, #475569);
}

.weekly-planner-weekend-timeline.is-empty,
.weekly-planner-weekend-all-day.is-empty {
    opacity: 0.82;
}


.weekly-planner-weekend-head {
    opacity: 0.92;
}

.weekly-planner-weekend-head .card-title {
    font-size: 0.86rem;
}

.weekly-planner-weekend-all-day .calendar-all-day-chip {
    padding: 10px 11px;
}

.weekly-planner-weekend-all-day .calendar-all-day-label {
    min-height: 22px;
    padding: 0 9px;
    font-size: 0.66rem;
}

.weekly-planner-hours {
    display: grid;
    grid-template-rows: repeat(var(--calendar-slot-count, 17), var(--calendar-slot-height, 52px));
}

.weekly-planner-hour-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.weekly-planner-hour-row:first-child {
    border-top: 0;
}

.weekly-planner-hour {
    position: relative;
    top: -0.6rem;
    display: inline-block;
    padding-right: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #4e6480;
    background: var(--canvas);
}

.weekly-planner-day {
    display: grid;
    min-width: 0;
}

.weekly-planner-slots {
    position: relative;
    display: grid;
    grid-template-rows: repeat(var(--calendar-slot-count, 17), var(--calendar-slot-height, 52px));
    min-height: calc(var(--calendar-slot-count, 17) * var(--calendar-slot-height, 52px));
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(252, 253, 254, 0.99), rgba(245, 249, 252, 0.97));
}

.weekly-planner-slots.has-all-day {
    border-color: rgba(18, 58, 120, 0.2);
    background:
        linear-gradient(180deg, rgba(243, 248, 254, 0.99), rgba(230, 239, 249, 0.98));
}

.weekly-planner-slots.is-holiday {
    border-color: rgba(43, 92, 160, 0.18);
    background:
        linear-gradient(180deg, rgba(240, 247, 255, 0.99), rgba(230, 241, 253, 0.97));
}

.weekly-planner-slot {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.weekly-planner-slots.has-all-day .weekly-planner-slot {
    border-bottom-color: rgba(18, 58, 120, 0.12);
}

.weekly-planner-slots.is-holiday .weekly-planner-slot {
    border-bottom-color: rgba(43, 92, 160, 0.12);
}

.weekly-planner-slot:last-child {
    border-bottom: 0;
}

.calendar-week-shell {
    display: grid;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.calendar-week-scroll {
    display: grid;
    gap: 10px;
    width: 100%;
    max-height: 620px;
    overflow: auto;
    padding-right: 6px;
}

.calendar-week-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.calendar-week-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.calendar-week-grid {
    display: grid;
    grid-template-columns: 56px repeat(7, minmax(110px, 1fr));
    gap: 10px 8px;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.calendar-week-corner {
    min-height: 58px;
}

.calendar-week-header-card {
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px 10px;
    background: linear-gradient(180deg, var(--panel-strong) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.calendar-week-hours {
    display: grid;
    grid-template-rows: repeat(var(--calendar-slot-count, 16), var(--calendar-slot-height, 52px));
    grid-column: 1;
}

.calendar-week-hour-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.calendar-week-hour-row:first-child {
    border-top: 0;
}

.calendar-week-hour {
    position: relative;
    top: -0.6rem;
    display: inline-block;
    padding-right: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #516071;
    background: var(--canvas);
}

.calendar-week-day-column {
    display: grid;
    gap: 10px;
    min-width: 0;
    width: auto;
    align-self: stretch;
    justify-self: stretch;
}

.calendar-week-slots {
    position: relative;
    display: grid;
    grid-template-rows: repeat(var(--calendar-slot-count, 16), var(--calendar-slot-height, 52px));
    min-height: calc(var(--calendar-slot-count, 16) * var(--calendar-slot-height, 52px));
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(252, 253, 254, 0.98), rgba(246, 249, 252, 0.96));
    width: 100%;
}

.calendar-week-slot {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.calendar-week-slot:last-child {
    border-bottom: 0;
}

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

.phase-column-body {
    display: grid;
    gap: 10px;
}

.task-card-compact {
    gap: 8px;
}

.task-card-compact strong {
    font-size: 0.92rem;
    font-weight: 520;
}

.task-card-compact p {
    margin: 6px 0 0;
}

.task-card-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 2px;
}

.task-workflow-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: end;
    margin-top: 0.35rem;
}

.task-workflow-form .form-field {
    gap: 0.18rem;
}

.task-workflow-form .button {
    min-width: 92px;
}

.board-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr)) auto;
    gap: 0.65rem;
    align-items: end;
    margin: 0 0 1rem;
}

.board-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.project-filter-bar {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
}

.notifications-filter-bar {
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) auto;
    margin-bottom: 1rem;
}

.notifications-hero {
    display: grid;
    gap: 18px;
}

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

.notifications-overview-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.notifications-overview-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.52rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.notifications-overview-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--muted);
}

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

.notification-card {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(247, 250, 255, 0.96));
}

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

.notification-card-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.notification-card-copy p {
    margin: 0;
    line-height: 1.6;
}

.notification-card-meta {
    margin-top: 0;
}

.notification-state-pill {
    white-space: nowrap;
}

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

@media (max-width: 720px) {
    .notifications-overview {
        grid-template-columns: 1fr;
    }

    .notification-card-head {
        flex-direction: column;
    }
}

.calendar-filter-bar {
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr)) auto;
    margin-bottom: 1rem;
}

.task-card-compact.is-empty {
    background: rgba(255, 255, 255, 0.86);
}

.phase-column-add {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    color: #475569;
    font-weight: 520;
    background: rgba(255, 255, 255, 0.64);
}

.phase-column-add:hover {
    border-color: rgba(100, 116, 139, 0.36);
    background: rgba(255, 255, 255, 0.9);
}

.calendar-timeline {
    display: grid;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.calendar-timeline-frame {
    display: flex;
    gap: 10px;
    align-items: start;
    min-width: calc(56px + (7 * 156px) + (6 * 8px));
    width: max-content;
}

.calendar-timeline-hours-vertical {
    display: grid;
    gap: 10px;
    flex: 0 0 56px;
    width: 56px;
}

.calendar-timeline-side-head {
    min-height: 56px;
}

.calendar-timeline-hours-column {
    display: grid;
    grid-template-rows: repeat(24, 52px);
    min-height: 1248px;
}

.calendar-timeline-hour-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.calendar-timeline-hour-row:first-child {
    border-top: 0;
}

.calendar-timeline-hour {
    position: relative;
    top: -0.6rem;
    display: inline-block;
    padding-right: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #516071;
    background: var(--canvas);
}

.calendar-timeline-grid {
    display: grid;
    grid-template-columns: repeat(7, 156px);
    align-items: flex-start;
    gap: 8px;
    min-width: calc((7 * 156px) + (6 * 8px));
    width: max-content;
}

.calendar-timeline-scroll {
    display: block;
    max-height: 620px;
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    padding-right: 6px;
}

.calendar-timeline-scroll::-webkit-scrollbar {
    width: 10px;
}

.calendar-timeline-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.calendar-timeline-day {
    display: grid;
    gap: 10px;
    min-width: 156px;
    width: 156px;
    padding: 0 2px;
}

.calendar-timeline-day-head {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px 10px;
    background: linear-gradient(180deg, var(--panel-strong) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.calendar-all-day-strip {
    display: grid;
    gap: 8px;
    padding: 0 2px 4px;
    min-height: 76px;
    align-content: start;
}

.calendar-all-day-strip.is-empty {
    visibility: hidden;
}

.calendar-all-day-chip {
    display: grid;
    gap: 8px;
    padding: 13px 13px 12px;
    border-radius: 14px;
    border-left: 4px solid var(--event-line, #7590a8);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--event-soft, #e8eef4) 90%, white), color-mix(in srgb, var(--event-soft, #e8eef4) 84%, white)),
        rgba(255, 255, 255, 0.98);
    color: var(--event-text, #243f58);
    text-decoration: none;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--event-line, #7590a8) 38%, white),
        0 10px 20px rgba(18, 58, 120, 0.08);
}

.calendar-all-day-chip.is-critical {
    box-shadow:
        inset 0 0 0 1px rgba(120, 90, 30, 0.26),
        0 6px 14px rgba(120, 90, 30, 0.08);
}

.calendar-all-day-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid color-mix(in srgb, var(--event-line, #7590a8) 30%, white);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--event-text, #5a697b) 82%, #475569);
    box-shadow: 0 4px 10px rgba(18, 58, 120, 0.06);
}

.calendar-all-day-label::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--event-line, #7590a8);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-line, #7590a8) 22%, white);
}

.calendar-all-day-chip strong {
    font-size: 0.92rem;
    line-height: 1.3;
    color: var(--event-text, var(--ink));
}

.weekly-planner-all-day-cell .calendar-all-day-chip,
.weekly-planner-weekend-all-day .calendar-all-day-chip {
    position: relative;
}

.weekly-planner-all-day-cell .calendar-all-day-chip::after,
.weekly-planner-weekend-all-day .calendar-all-day-chip::after {
    content: "";
    position: absolute;
    inset: auto 12px 0 12px;
    height: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--event-line, #7590a8) 64%, white);
    opacity: 0.9;
}

.calendar-month-event[data-all-day="1"] {
    background: linear-gradient(180deg, color-mix(in srgb, var(--event-soft, #e8eef4) 88%, white), var(--event-soft, #e8eef4));
    border-left-width: 4px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--event-line, #7590a8) 18%, white);
}

.calendar-month-event[data-all-day="1"] span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calendar-month-event[data-all-day="1"] span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--event-line, #7590a8);
    flex: 0 0 8px;
}

.calendar-agenda-all-day-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    margin-top: 8px;
    border-radius: 999px;
    background: #e8eef7;
    border: 1px solid rgba(117, 144, 168, 0.22);
    color: #35506a;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-type-guide {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.event-type-guide-card {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 12px;
    border-left: 4px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(18, 58, 120, 0.08);
}

.event-type-guide-card p {
    margin: 0;
}

.event-type-guide-card.type-task {
    border-left-color: #7590a8;
}

.event-type-guide-card.type-meeting {
    border-left-color: #7ea4d6;
}

.event-type-guide-card.type-milestone {
    border-left-color: #c39b58;
}

.event-type-guide-card.type-reminder {
    border-left-color: #cf8377;
}

.calendar-timeline-slots {
    position: relative;
    display: grid;
    grid-template-rows: repeat(24, 52px);
    min-height: 1248px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(252, 253, 254, 0.98), rgba(246, 249, 252, 0.96));
}

.calendar-timeline-slot {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.calendar-timeline-slot:last-child {
    border-bottom: 0;
}

.calendar-block {
    position: absolute;
    left: calc(8px + ((100% - 16px) * var(--event-left-ratio, 0)));
    width: calc(((100% - 16px) * var(--event-width-ratio, 1)) - 4px);
    z-index: 2;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--event-line, rgba(36, 52, 71, 0.16)) 68%, white);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--event-soft, rgba(228, 235, 243, 0.96)) 94%, white), color-mix(in srgb, var(--event-soft, rgba(228, 235, 243, 0.96)) 86%, white)),
        var(--event-soft, rgba(228, 235, 243, 0.96));
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.calendar-block.is-overlap {
    border-radius: 11px;
}

.calendar-block.is-critical {
    border-color: rgba(120, 90, 30, 0.22);
}

.calendar-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(18, 58, 120, 0.1);
}

.calendar-block-project-line {
    background: var(--project-line, #7aa2cf);
}

.calendar-block-inner {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 8px 9px;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--event-line, #7590a8) 14%, white);
}

.calendar-block.is-overlap .calendar-block-inner {
    gap: 3px;
    padding: 7px 8px;
}

.calendar-block.is-tight .calendar-block-inner {
    padding: 7px 7px 6px;
}

.calendar-block strong,
.calendar-block span,
.calendar-block-time {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-block strong {
    font-size: 0.82rem;
    color: var(--event-text, var(--ink));
}

.calendar-block.is-overlap strong {
    font-size: 0.78rem;
}

.calendar-block span {
    font-size: 0.76rem;
    color: color-mix(in srgb, var(--event-text, #415062) 82%, #475569);
}

.calendar-block.is-overlap span {
    font-size: 0.72rem;
}

.calendar-block.is-tight span:last-child {
    display: none;
}

.calendar-block-time {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--event-line, #7590a8) 24%, white);
    background: color-mix(in srgb, var(--event-soft, rgba(228, 235, 243, 0.96)) 72%, white);
    font-size: 0.66rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--event-text, #5a697b) 84%, #475569);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-block.is-overlap .calendar-block-time {
    font-size: 0.64rem;
    letter-spacing: 0.03em;
}

.calendar-offhours {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.62);
}

.calendar-offhours-list {
    display: grid;
    gap: 6px;
}

.calendar-offhours-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    font-size: 0.84rem;
}

.calendar-offhours-item strong {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: #516071;
}

.calendar-offhours-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-month {
    display: grid;
    gap: 12px;
}

.calendar-month-head,
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.calendar-month-weekday {
    padding: 8px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #4e6480;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calendar-month-day {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 148px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, #fbfcfe, #f6f9fc);
}

.calendar-month-day.is-holiday {
    border-color: rgba(18, 58, 120, 0.14);
    background: linear-gradient(180deg, rgba(245, 249, 254, 0.99), rgba(237, 243, 251, 0.98));
}

.calendar-month-day.is-weekend {
    border-color: #d8c9bc;
    background: #f5f0eb;
}

.calendar-month-day.is-weekend.is-holiday {
    border-color: #9fb8d4;
    background: #e9f2fb;
}

.calendar-month-day.is-muted {
    opacity: 0.55;
}

.calendar-month-day.is-today {
    border-color: rgba(15, 182, 217, 0.32);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, rgba(244, 252, 255, 0.98), rgba(237, 249, 254, 0.98));
}

.calendar-month-day-head strong {
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
}

.calendar-month-day-head {
    display: grid;
    gap: 6px;
}

.calendar-holiday-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(18, 58, 120, 0.16);
    border: 1px solid rgba(18, 58, 120, 0.2);
    color: #123a78;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(18, 58, 120, 0.08);
}

.calendar-month-day-events {
    display: grid;
    gap: 6px;
}

.calendar-month-event,
.calendar-month-more {
    display: grid;
    gap: 2px;
    padding: 7px 8px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--event-soft, rgba(255, 255, 255, 0.82)) 88%, white);
    border: 1px solid color-mix(in srgb, var(--event-line, rgba(148, 163, 184, 0.12)) 42%, white);
    border-left: 4px solid var(--event-line, rgba(148, 163, 184, 0.32));
    text-decoration: none;
}

.calendar-month-event.is-critical {
    background: #fcfaf5;
    border-color: rgba(120, 90, 30, 0.2);
}

.calendar-month-event span,
.calendar-month-more {
    font-size: 0.7rem;
    font-weight: 800;
    color: #5a697b;
}

.calendar-month-event strong {
    font-size: 0.78rem;
    line-height: 1.25;
    color: var(--event-text, var(--ink));
}

.calendar-day {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 320px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: linear-gradient(180deg, #fbfcfe, #f6f9fc);
}

.calendar-day-head,
.calendar-day-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.calendar-day-head {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.calendar-day-foot {
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 0.84rem;
}

.calendar-day-events {
    display: grid;
    gap: 8px;
}

.calendar-day-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.calendar-event {
    display: grid;
    gap: 8px;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    background: #ffffff;
}

.calendar-event.is-critical {
    border-color: rgba(120, 90, 30, 0.24);
    background: #fcfaf5;
}

.calendar-event-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.calendar-event-time {
    font-size: 0.8rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calendar-event-copy strong {
    display: block;
    margin-bottom: 4px;
}

.calendar-event-copy p,
.calendar-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.calendar-event-meta {
    display: block;
    margin-top: 8px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
}

.calendar-agenda {
    gap: 12px;
}

.calendar-agenda-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.calendar-agenda-time {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.72);
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.calendar-agenda-body {
    min-width: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(11, 18, 32, 0.28);
    backdrop-filter: blur(3px);
}

.modal-backdrop.is-hidden {
    display: none;
}

body.has-modal-open {
    overflow: hidden;
}

.modal-panel {
    width: min(880px, 100%);
    max-height: min(88vh, 920px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    font-size: 0.94rem;
}

.modal-panel-event {
    width: min(920px, calc(100vw - 32px));
}

.modal-backdrop-alert {
    background: rgba(15, 23, 42, 0.42);
}

.modal-panel-alert {
    width: min(720px, calc(100vw - 32px));
    padding: 24px 24px 20px;
    border: 1px solid rgba(18, 58, 120, 0.12);
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.995) 28%),
        rgba(255, 255, 255, 0.995);
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.22);
    position: relative;
}

.modal-panel-alert::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 42%, #123a78 100%);
}

.modal-backdrop-alert.type-task .modal-panel-alert::before,
.runtime-alert-banner.type-task::before {
    background: linear-gradient(180deg, #123a78 0%, #2a5a96 100%);
}

.modal-backdrop-alert.type-meeting .modal-panel-alert::before,
.runtime-alert-banner.type-meeting::before {
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
}

.modal-backdrop-alert.type-milestone .modal-panel-alert::before,
.runtime-alert-banner.type-milestone::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.modal-backdrop-alert.type-reminder .modal-panel-alert::before,
.runtime-alert-banner.type-reminder::before {
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
}

.runtime-event-alert-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(18, 58, 120, 0.08);
}

.runtime-event-alert-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-family: "Sora", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #c2410c;
}

.modal-backdrop-alert.type-task .runtime-event-alert-kicker,
.runtime-alert-banner.type-task .runtime-alert-banner-kicker,
.runtime-alert-stack-item.type-task .runtime-alert-banner-kicker {
    color: #123a78;
}

.modal-backdrop-alert.type-meeting .runtime-event-alert-kicker,
.runtime-alert-banner.type-meeting .runtime-alert-banner-kicker,
.runtime-alert-stack-item.type-meeting .runtime-alert-banner-kicker {
    color: #0369a1;
}

.modal-backdrop-alert.type-milestone .runtime-event-alert-kicker,
.runtime-alert-banner.type-milestone .runtime-alert-banner-kicker,
.runtime-alert-stack-item.type-milestone .runtime-alert-banner-kicker {
    color: #b45309;
}

.modal-backdrop-alert.type-reminder .runtime-event-alert-kicker,
.runtime-alert-banner.type-reminder .runtime-alert-banner-kicker,
.runtime-alert-stack-item.type-reminder .runtime-alert-banner-kicker {
    color: #c2410c;
}

.runtime-event-alert-title {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.28rem, 2.2vw, 1.7rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #14213d;
}

.runtime-event-alert-subtitle {
    margin: 10px 0 0;
    color: #51627f;
    font-size: 0.82rem;
    font-weight: 600;
}

.runtime-event-alert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.runtime-event-alert-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(18, 58, 120, 0.12);
    background: rgba(243, 247, 253, 0.92);
    color: #32425f;
    font-size: 0.72rem;
    font-weight: 700;
}

.runtime-event-alert-badge-type {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(255, 247, 237, 0.96);
    color: #c2410c;
}

.modal-backdrop-alert.type-task .runtime-event-alert-badge-type {
    border-color: rgba(18, 58, 120, 0.18);
    background: rgba(231, 238, 249, 0.96);
    color: #123a78;
}

.modal-backdrop-alert.type-meeting .runtime-event-alert-badge-type {
    border-color: rgba(14, 165, 233, 0.22);
    background: rgba(228, 245, 251, 0.96);
    color: #0369a1;
}

.modal-backdrop-alert.type-milestone .runtime-event-alert-badge-type {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(255, 241, 216, 0.96);
    color: #b45309;
}

.modal-backdrop-alert.type-reminder .runtime-event-alert-badge-type {
    border-color: rgba(249, 115, 22, 0.24);
    background: rgba(255, 231, 220, 0.96);
    color: #c2410c;
}

.runtime-event-alert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.runtime-event-alert-meta-item {
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(18, 58, 120, 0.1);
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.runtime-event-alert-meta-item span {
    display: block;
    margin-bottom: 6px;
    color: #a85b18;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.runtime-event-alert-meta-item strong {
    display: block;
    color: #1e2b49;
    font-size: 0.88rem;
    line-height: 1.35;
}

.runtime-event-alert-notes {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(18, 58, 120, 0.1);
    background: rgba(247, 250, 254, 0.94);
}

.runtime-event-alert-notes strong {
    display: block;
    margin-bottom: 10px;
    color: #a85b18;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.runtime-event-alert-notes div {
    color: #465976;
    line-height: 1.58;
    font-size: 0.84rem;
}

.runtime-event-alert-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(18, 58, 120, 0.08);
}

.runtime-alert-tray {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 54;
    display: grid;
    gap: 12px;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
}

.runtime-alert-stack {
    display: grid;
    gap: 8px;
}

.runtime-alert-stack.is-hidden {
    display: none;
}

.runtime-alert-stack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(18, 58, 120, 0.12);
    background: rgba(248, 251, 255, 0.96);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    color: #51627f;
    font-size: 0.72rem;
    font-weight: 700;
}

.runtime-alert-stack-head span {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.runtime-alert-stack-head strong {
    color: #123a78;
}

.runtime-alert-stack-list {
    display: grid;
    gap: 10px;
}

.runtime-alert-stack-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 14px 14px 18px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(18, 58, 120, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}

.runtime-alert-stack-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -1;
    width: 4px;
    background: #123a78;
}

.runtime-alert-stack-item.type-meeting::before {
    background: #0284c7;
}

.runtime-alert-stack-item.type-milestone::before {
    background: #d97706;
}

.runtime-alert-stack-item.type-reminder::before {
    background: #ea580c;
}

.runtime-alert-stack-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.runtime-alert-stack-copy strong {
    overflow: hidden;
    color: #14213d;
    font-size: 0.92rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.runtime-alert-stack-copy > span:last-child {
    overflow: hidden;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.runtime-alert-stack-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.runtime-alert-stack-actions .button {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 0.74rem;
}

.runtime-alert-stack-actions .button.icon-only,
.runtime-alert-banner-actions .button.icon-only {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
}

.runtime-alert-stack-close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(18, 58, 120, 0.12);
    border-radius: 10px;
    background: #f8fafc;
    color: #51627f;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.runtime-alert-stack-close:hover {
    border-color: rgba(18, 58, 120, 0.24);
    background: #eef4fb;
    color: #123a78;
}

.runtime-alert-banner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(18, 58, 120, 0.12);
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.995) 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    isolation: isolate;
}

.runtime-alert-banner.type-task {
    border-color: rgba(18, 58, 120, 0.14);
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(255, 255, 255, 0.995) 100%);
}

.runtime-alert-banner.type-meeting {
    border-color: rgba(14, 165, 233, 0.18);
    background: linear-gradient(180deg, rgba(240, 250, 255, 0.98) 0%, rgba(255, 255, 255, 0.995) 100%);
}

.runtime-alert-banner.type-milestone {
    border-color: rgba(245, 158, 11, 0.18);
    background: linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 255, 255, 0.995) 100%);
}

.runtime-alert-banner.type-reminder {
    border-color: rgba(249, 115, 22, 0.18);
    background: linear-gradient(180deg, rgba(255, 244, 238, 0.98) 0%, rgba(255, 255, 255, 0.995) 100%);
}

.runtime-alert-banner::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b 0%, #ea580c 55%, #123a78 100%);
    z-index: -1;
}

.runtime-alert-banner.is-hidden,
.runtime-alert-pending-badge.is-hidden {
    display: none;
}

.runtime-alert-banner-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.runtime-alert-banner-kicker {
    color: #c2410c;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.runtime-alert-banner-copy strong {
    color: #14213d;
    font-size: 0.98rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.runtime-alert-banner-copy span:last-child {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
}

.runtime-alert-banner-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid rgba(18, 58, 120, 0.08);
}

.runtime-alert-pending-badge {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 47;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: #fff7ed;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    color: #9a3412;
    font-weight: 700;
}

.runtime-alert-history-card {
    border-color: rgba(245, 158, 11, 0.14);
    background: rgba(255, 251, 235, 0.56);
}

.calendar-empty {
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.6);
}

.schema-sql {
    margin-top: 14px;
    padding: 13px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.schema-command-head {
    align-items: flex-start;
}

.schema-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
}

.schema-summary-card {
    background: #f7f9fc;
    border: 1px solid #dce4ef;
    border-radius: 16px;
    display: grid;
    gap: 5px;
    padding: 18px;
}

.schema-summary-card span,
.schema-summary-card small,
.schema-runtime-note span,
.schema-runtime-note small {
    color: #65758d;
}

.schema-summary-card strong {
    color: #102653;
    font-family: "Sora", sans-serif;
    font-size: 1.55rem;
}

.schema-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr);
    margin-top: 18px;
}

.schema-table-wrap {
    border: 1px solid #dce4ef;
    border-radius: 16px;
    max-height: 640px;
    overflow: auto;
}

.schema-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.schema-table th,
.schema-table td {
    border-bottom: 1px solid #e5eaf1;
    padding: 12px 14px;
    text-align: left;
}

.schema-table th {
    background: #f3f6fa;
    color: #607089;
    font-size: .74rem;
    letter-spacing: .06em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.schema-table code {
    color: #163b77;
    font-size: .82rem;
    font-weight: 700;
}

.schema-migration-list {
    display: grid;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
}

.schema-migration-list article {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #e0e7f0;
    border-radius: 13px;
    display: grid;
    gap: 10px;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 11px 12px;
}

.schema-migration-list strong,
.schema-migration-list small {
    display: block;
    overflow-wrap: anywhere;
}

.schema-migration-list strong {
    font-size: .78rem;
}

.schema-migration-list small {
    color: #718096;
    margin-top: 3px;
}

.schema-migration-icon {
    align-items: center;
    background: #e6f5ec;
    border-radius: 50%;
    color: #1f7a4d;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.schema-runtime-note {
    border-top: 1px solid #e1e7ef;
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 16px;
}

@media (max-width: 1100px) {
    .schema-layout {
        grid-template-columns: 1fr;
    }
}

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

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

    .metrics,
    .board,
    .calendar-week,
    .calendar-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-timeline-frame {
        min-width: calc(56px + (7 * 148px) + (6 * 8px));
        width: max-content;
    }

    .calendar-month-head,
    .calendar-month-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .app-shell.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .nav {
        margin-top: 18px;
    }

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

    .sidebar-card {
        margin-top: 18px;
    }

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

    .actions {
        justify-content: stretch;
        width: 100%;
    }

    .runtime-event-alert-head {
        flex-direction: column;
        align-items: stretch;
    }

    .runtime-event-alert-grid {
        grid-template-columns: 1fr;
    }

    .runtime-alert-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .runtime-alert-tray {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .runtime-alert-stack-item {
        grid-template-columns: 1fr;
    }

    .runtime-alert-stack-actions {
        flex-wrap: wrap;
    }

    .runtime-alert-banner-actions {
        margin-left: 0;
    }

    .runtime-alert-pending-badge {
        right: 16px;
        bottom: 16px;
    }
}

.python-mobile-settings {
    display: none;
}

@media (max-width: 760px) {
    .app-shell .sidebar {
        width: 100% !important;
        padding: 10px 14px;
    }

    .sidebar .brand {
        min-height: 72px;
        padding: 0;
    }

    .sidebar .brand-mark,
    .sidebar .brand-mark-image {
        width: 70px;
        height: 70px;
    }

    .sidebar .nav {
        margin-top: 8px;
    }

    .sidebar .nav-group {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .sidebar .nav-group > .overline,
    .sidebar .nav-submenu,
    .sidebar .sidebar-card {
        display: none;
    }

    .sidebar .nav-item {
        flex: 0 0 132px;
        min-height: 54px;
        padding: 9px 10px;
    }

    .sidebar .nav-item .nav-meta {
        display: none;
    }

    .sidebar .python-mobile-settings {
        display: flex;
    }

    .main {
        padding: 16px;
    }
}

@media (max-width: 820px) {
    .main,
    .sidebar {
        padding: 18px;
    }

    .page-title {
        font-size: clamp(1.35rem, 4vw, 1.7rem);
        line-height: 1.1;
    }

    .search {
        min-width: 0;
        width: 100%;
    }

    .actions .button {
        flex: 1 1 calc(50% - 6px);
    }

    .metrics,
    .board,
    .calendar-week,
    .calendar-overview,
    .grid.split,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .calendar-timeline-frame {
        display: flex;
        min-width: calc(7 * 148px + (6 * 8px));
        width: max-content;
    }

    .calendar-timeline-grid {
        display: grid;
        grid-template-columns: repeat(7, 148px);
        min-width: calc((7 * 148px) + (6 * 8px));
        width: max-content;
    }

    .calendar-timeline-day {
        min-width: 148px;
        width: 148px;
    }

    .calendar-week-grid {
        grid-template-columns: 56px repeat(7, 140px);
        min-width: calc(56px + (7 * 140px) + (7 * 8px));
        width: max-content;
    }

    .weekly-planner-grid {
        grid-template-columns: 88px repeat(5, 140px) 220px;
        min-width: calc(88px + (5 * 140px) + 220px + (6 * 8px));
        width: max-content;
    }

    .weekly-planner-all-day-cell {
        min-height: 76px;
    }

    .phase-kpis {
        min-width: 0;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calendar-agenda-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calendar-agenda-time {
        justify-content: flex-start;
        min-height: 0;
        padding: 10px 12px;
    }

    .calendar-timeline-hours-vertical {
        display: none;
    }

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

    .section-head,
    .row-between,
    .table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-view-switch {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .brand,
    .panel,
    .sidebar-card,
    .login-card {
        border-radius: 20px;
    }

    .nav-group {
        grid-template-columns: 1fr;
    }

    .nav-item {
        min-height: 50px;
    }

    .topbar {
        margin-bottom: 18px;
    }

    .actions {
        gap: 10px;
    }

    .actions .button,
    .actions .search {
        flex: 1 1 100%;
        width: 100%;
    }

    .phase-kpis {
        grid-template-columns: 1fr;
    }

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

    .calendar-day-badges {
        width: 100%;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .calendar-month-head,
    .calendar-month-grid {
        grid-template-columns: 1fr;
    }

    .table th,
    .table td {
        padding: 12px 10px;
    }

    .calendar-day {
        min-height: 0;
    }

    .login-card {
        padding: 22px;
    }
}

@media (max-width: 1180px) {
    .grid.two-columns,
    .hero,
    .grid.split,
    .board,
    .calendar-week {
        grid-template-columns: 1fr;
    }

    .project-overview-actions,
    .project-overview-main {
        grid-template-columns: 1fr;
    }

    .project-summary-strip {
        flex-direction: column;
    }

    .phase-kpis {
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
    }

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

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

    .actions {
        flex-wrap: wrap;
    }

    .search {
        min-width: 0;
        width: 100%;
    }

    .backup-runtime-grid,
    .backup-support-grid,
    .backup-run-table-head,
    .backup-run-row {
        grid-template-columns: 1fr 1fr;
    }

    .backup-run-banner {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .sidebar,
    .main {
        padding: 18px;
    }

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

    .board-filter-bar {
        grid-template-columns: 1fr;
    }

    .board-filter-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .board-filter-actions .button {
        width: 100%;
    }

    .backup-runtime-grid,
    .backup-support-grid,
    .backup-run-table-head,
    .backup-run-row {
        grid-template-columns: 1fr;
    }

    .profile-avatar-layout,
    .profile-account-head {
        grid-template-columns: 1fr;
    }
}

/* Final cascade for the Python workspace navigation. */
nav.project-tabs {
    gap: 20px;
    padding: 8px 0 0;
    overflow-x: auto;
    flex-wrap: nowrap;
}

nav.project-tabs a.project-tab {
    position: relative;
    min-height: 38px;
    padding: 0 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    white-space: nowrap;
    box-shadow: none;
}

nav.project-tabs a.project-tab:hover {
    border: 0;
    background: transparent;
    color: var(--accent);
}

nav.project-tabs a.project-tab.active {
    border: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

nav.project-tabs a.project-tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--accent);
}

/* Decision-oriented dashboard, portfolio and notifications. */
.dashboard-command-panel {
    display: grid;
    gap: 16px;
}

.dashboard-command-head,
.portfolio-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-command-head p,
.portfolio-command p {
    margin-bottom: 0;
}

.dashboard-kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    border-radius: 10px;
    background: #f7f9fc;
}

.dashboard-kpi strong {
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
    color: var(--ink);
}

.dashboard-kpi .pill {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.dashboard-work-panel {
    min-height: 100%;
}

.dashboard-note-workspace {
    grid-column: 1 / -1;
}

.text-action {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

.text-action:hover {
    text-decoration: underline;
}

.dashboard-row-list {
    display: grid;
}

.dashboard-work-row,
.dashboard-agenda-row {
    display: grid;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(18, 58, 120, 0.08);
}

.dashboard-work-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

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

.dashboard-work-row:hover {
    background: rgba(231, 240, 251, 0.38);
}

.dashboard-row-check {
    width: 17px;
    height: 17px;
    border: 1.5px solid #92a3b7;
    border-radius: 50%;
}

.dashboard-row-check.is-blocked {
    border-color: var(--warm);
    background: var(--warm-soft);
}

.dashboard-row-check.is-assigned {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 4px #fff;
}

.dashboard-row-check.is-assigned.is-blocked {
    border-color: var(--warm);
    background: var(--warm);
}

.dashboard-row-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.dashboard-row-copy strong,
.dashboard-row-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-row-copy strong {
    font-size: 0.82rem;
}

.dashboard-row-copy small,
.dashboard-row-meta small {
    color: var(--muted);
    font-size: 0.72rem;
}

.dashboard-row-meta {
    display: grid;
    justify-items: end;
    gap: 3px;
}

.dashboard-agenda-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
}

.dashboard-agenda-row time {
    display: grid;
    justify-items: center;
    padding: 5px 3px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    line-height: 1;
}

.dashboard-agenda-row time strong {
    font-size: 0.9rem;
}

.dashboard-agenda-row time span {
    margin-top: 3px;
    font-size: 0.62rem;
    text-transform: uppercase;
}

.empty-state-compact {
    padding: 20px 4px;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.portfolio-command {
    margin-bottom: 12px;
}

.portfolio-kpi-strip {
    margin-bottom: 12px;
}

.portfolio-equal-charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.portfolio-equal-charts .portfolio-chart-panel {
    min-height: 330px;
    padding: 14px;
    border-radius: 14px;
    box-shadow: none;
}

.portfolio-bars {
    display: grid;
    gap: 13px;
}

.portfolio-bar-row {
    display: grid;
    gap: 6px;
}

.portfolio-bar-row > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.76rem;
}

.portfolio-bar-row small {
    color: var(--muted);
    font-size: 0.68rem;
}

.portfolio-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(18, 58, 120, 0.08);
}

.portfolio-bar-track i {
    display: block;
    width: var(--bar-width);
    min-width: 3px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--accent));
}

.portfolio-bar-row.tone-high .portfolio-bar-track i {
    background: var(--warm);
}

.portfolio-bar-row.tone-medium .portfolio-bar-track i {
    background: var(--accent);
}

.portfolio-operational-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 12px;
    margin-top: 12px;
}

.portfolio-project-list {
    display: grid;
}

.portfolio-project-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(18, 58, 120, 0.08);
}

.portfolio-project-row:last-child {
    border-bottom: 0;
}

.portfolio-project-row > span:nth-child(2) {
    display: grid;
    gap: 2px;
}

.portfolio-project-row small {
    color: var(--muted);
    font-size: 0.7rem;
}

.portfolio-risk-marker {
    width: 8px;
    height: 30px;
    border-radius: 999px;
    background: var(--teal);
}

.portfolio-risk-marker.risk-medium {
    background: var(--accent);
}

.portfolio-risk-marker.risk-high {
    background: var(--warm);
}

.portfolio-project-signals {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portfolio-project-signals span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f2f5f9;
    color: var(--muted);
    font-size: 0.68rem;
}

.portfolio-project-signals span.is-alert {
    background: var(--warm-soft);
    color: #a84800;
}

.portfolio-horizon-panel {
    margin-top: 12px;
}

.portfolio-horizon-legend {
    display: flex;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--muted);
}

.portfolio-horizon-legend span {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(193, 233, 246, 0.62);
}

.portfolio-horizon-legend span:nth-child(2) {
    background: rgba(18, 58, 120, 0.12);
}

.portfolio-horizon-legend span:nth-child(3) {
    background: rgba(255, 159, 47, 0.18);
}

.notifications-command {
    margin-bottom: 12px;
}

.notifications-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.notifications-overview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(18, 58, 120, 0.08);
    border-radius: 10px;
    background: #f7f9fc;
}

.notifications-overview-card strong {
    font-size: 1.15rem;
}

.notifications-main {
    padding-top: 12px;
}

.notifications-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(18, 58, 120, 0.08);
}

.notification-filter-tabs {
    display: flex;
    gap: 16px;
}

.notification-filter-tabs a {
    padding: 8px 1px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.notification-filter-tabs a.active {
    border-color: var(--accent);
    color: var(--ink);
}

.notifications-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.75fr) auto;
    gap: 7px;
    width: min(100%, 640px);
}

.notifications-filter-form input,
.notifications-filter-form select {
    min-height: 38px;
}

.notification-card {
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
}

.notification-card.is-unread {
    background: #f5f9ff;
}

.notification-card-copy h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 0.85rem;
}

.notification-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--warm);
}

.notification-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-row-actions form {
    margin: 0;
}

.icon-button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(18, 58, 120, 0.14);
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 1.15rem;
    cursor: pointer;
}

.icon-button:hover {
    border-color: rgba(255, 122, 0, 0.3);
    color: #a84800;
}

/* Tutti i comandi applicativi condividono la stessa impronta visiva e accessibile. */
.button.icon-only,
.icon-button.icon-only,
.button.compact.icon-only,
.rich-editor-toolbar .button.icon-only,
.rich-editor-compact .rich-editor-toolbar .button.icon-only {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    flex: 0 0 40px;
    border-radius: 10px;
}

.button.icon-only svg,
.icon-button.icon-only svg,
.rich-editor-toolbar .button.icon-only svg {
    width: 19px;
    height: 19px;
}

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

    .portfolio-equal-charts {
        grid-template-columns: 1fr;
    }

    .portfolio-equal-charts .portfolio-chart-panel {
        min-height: 0;
    }

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

    .dashboard-agenda-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .dashboard-work-grid,
    .portfolio-operational-grid {
        grid-template-columns: 1fr;
    }

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

    .notifications-filter-form {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .dashboard-command-head,
    .portfolio-command {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-kpi-strip,
    .notifications-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-work-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-row-meta {
        grid-column: 2;
        justify-items: start;
    }

    .portfolio-project-row {
        grid-template-columns: 8px minmax(0, 1fr);
    }

    .portfolio-project-signals {
        grid-column: 2;
        justify-content: flex-start;
    }

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

    .notification-card-head {
        flex-direction: column;
    }

    .notification-row-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

.ssl-settings-panel {
    margin-top: 20px;
}

.ssl-settings-head {
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 18px;
}

.ssl-status-badge {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 750;
    padding: 8px 13px;
}

.ssl-status-healthy {
    background: #e8f7ef;
    border-color: #b7e5cb;
    color: #176b45;
}

.ssl-status-warning {
    background: #fff5df;
    border-color: #f4d18b;
    color: #8a5700;
}

.ssl-status-critical,
.ssl-status-expired,
.ssl-status-unavailable {
    background: #fff0f0;
    border-color: #efb6b6;
    color: #a12626;
}

.ssl-status-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
}

.ssl-status-card {
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    display: grid;
    gap: 7px;
    min-height: 118px;
    padding: 18px;
}

.ssl-status-card span,
.ssl-certificate-serial {
    color: #6b7b93;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ssl-status-card strong {
    color: #102451;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.ssl-status-card small {
    color: #718096;
    font-size: 13px;
}

.ssl-expiry-card {
    background: #edf4ff;
    border-color: #c9daf4;
}

.ssl-renewal-row {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
    margin-top: 14px;
    padding: 18px;
}

.ssl-renewal-copy {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.ssl-renewal-copy p {
    margin: 5px 0 0;
}

.ssl-renewal-dot {
    background: #24a36b;
    border: 4px solid #dff5e9;
    border-radius: 50%;
    flex: 0 0 auto;
    height: 16px;
    margin-top: 2px;
    width: 16px;
}

.ssl-alert-form,
.ssl-alert-form .form-field {
    margin: 0;
}

.ssl-alert-control {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 82px auto auto;
}

.ssl-alert-control input {
    min-width: 0;
}

.ssl-certificate-serial {
    margin: 14px 2px 0;
    text-transform: none;
}

.ssl-certificate-serial code {
    color: #42526a;
    overflow-wrap: anywhere;
}

.ssl-status-error {
    background: #fff4f4;
    border: 1px solid #efc2c2;
    border-radius: 14px;
    color: #8c2626;
    margin-top: 18px;
    padding: 18px;
}

.firewall-command-panel,
.firewall-rules-panel,
.firewall-management-grid,
.firewall-log-panel {
    margin-bottom: 20px;
}

.firewall-current-ip {
    background: #edf4ff;
    border: 1px solid #c9daf4;
    border-radius: 12px;
    display: grid;
    gap: 4px;
    min-width: 210px;
    padding: 12px 15px;
}

.firewall-current-ip span,
.firewall-summary-grid span {
    color: #687892;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.firewall-current-ip strong,
.firewall-table code {
    color: #17366c;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.firewall-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
}

.firewall-summary-grid article {
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 13px;
    display: grid;
    gap: 7px;
    padding: 16px;
}

.firewall-summary-grid strong {
    color: #102451;
    font-size: 25px;
}

.firewall-rule-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.firewall-rule-card {
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    padding: 18px;
}

.firewall-rule-head {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.firewall-rule-head p,
.firewall-list p {
    color: #718096;
    font-size: 13px;
    margin: 5px 0 0;
}

.switch {
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
}

.switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.switch span {
    background: #cbd5e1;
    border-radius: 999px;
    display: block;
    height: 26px;
    position: relative;
    transition: background .18s ease;
    width: 46px;
}

.switch span::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(15, 35, 70, .24);
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .18s ease;
    width: 20px;
}

.switch input:checked + span {
    background: #17417f;
}

.switch input:checked + span::after {
    transform: translateX(20px);
}

.switch input:focus-visible + span {
    outline: 3px solid rgba(40, 111, 198, .25);
    outline-offset: 2px;
}

.firewall-global-controls {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(180px, .35fr) minmax(420px, 1fr) auto;
    margin-top: 16px;
}

.firewall-inline-field {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 100px auto;
}

.firewall-allowlist-toggle {
    align-items: center;
    background: #edf4ff;
    border: 1px solid #c9daf4;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 13px 15px;
}

.firewall-allowlist-toggle p {
    margin: 4px 0 0;
}

.firewall-allowlist-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) auto;
    margin: 16px 0;
}

.firewall-list {
    display: grid;
    gap: 9px;
}

.firewall-list article {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 13px 14px;
}

.firewall-list article > div {
    display: grid;
    gap: 4px;
}

.firewall-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.firewall-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.firewall-table th,
.firewall-table td {
    border-bottom: 1px solid #e5ebf2;
    font-size: 13px;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.firewall-table th {
    color: #67758c;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.firewall-table tbody tr.firewall-owner-attempt {
    background: #fff8ed;
}

.firewall-owner-attempt td:first-child {
    box-shadow: inset 3px 0 0 #e88a1a;
}

.activity-log-command,
.activity-log-panel {
    border: 1px solid #dce5ef;
}

.activity-log-summary {
    margin-top: 18px;
}

.activity-log-filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(145px, .8fr)) repeat(2, minmax(135px, .7fr)) auto;
}

.activity-log-filter-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 1px;
}

.activity-log-list {
    border-top: 1px solid #e2e9f1;
    display: grid;
    margin-top: 22px;
}

.activity-log-row {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    padding: 16px 4px;
}

.activity-log-row + .activity-log-row {
    border-top: 1px solid #edf1f6;
}

.activity-log-marker {
    background: #7d8ba1;
    border-radius: 999px;
    height: 10px;
    margin-top: 6px;
    width: 10px;
}

.activity-category-auth .activity-log-marker { background: #e78319; }
.activity-category-crm .activity-log-marker { background: #2e70bd; }
.activity-category-tasking .activity-log-marker { background: #198f87; }
.activity-category-user_management .activity-log-marker { background: #8257b5; }
.activity-category-settings .activity-log-marker { background: #304a73; }

.activity-log-copy {
    min-width: 0;
}

.activity-log-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.activity-log-copy p {
    color: #5f6f86;
    font-size: 13px;
    line-height: 1.55;
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

.activity-log-meta {
    align-items: center;
    color: #77859a;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 6px 14px;
    margin-top: 8px;
}

.activity-log-meta code {
    background: #edf3fa;
    border-radius: 6px;
    color: #183a6d;
    padding: 3px 6px;
}

.activity-log-outcome {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 7px;
    text-transform: uppercase;
}

.activity-log-outcome.is-success {
    background: #e6f5ed;
    color: #176a47;
}

.activity-log-outcome.is-failure {
    background: #fff0e3;
    color: #9c4d11;
}

.activity-log-time {
    color: #75839a;
    display: grid;
    font-size: 12px;
    gap: 5px;
    justify-items: end;
    min-width: 145px;
    text-align: right;
}

.activity-log-time span {
    color: #284775;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.activity-log-limit {
    margin-top: 14px;
    text-align: center;
}

@media (max-width: 1280px) {
    .activity-log-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .activity-log-filters {
        grid-template-columns: 1fr;
    }

    .activity-log-row {
        grid-template-columns: 8px minmax(0, 1fr);
    }

    .activity-log-time {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }
}

.firewall-outcome {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 750;
    padding: 5px 8px;
    white-space: nowrap;
}

.firewall-outcome-success {
    background: #e5f7ed;
    color: #176b45;
}

.firewall-outcome-invalid {
    background: #fff4df;
    color: #925700;
}

.firewall-outcome-blocked_ip,
.firewall-outcome-blocked_identifier,
.firewall-outcome-not_allowed_ip {
    background: #ffeded;
    color: #a12626;
}

@media (max-width: 1100px) {
    .firewall-global-controls {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .firewall-management-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .firewall-summary-grid,
    .firewall-rule-grid {
        grid-template-columns: 1fr;
    }

    .firewall-allowlist-form {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .firewall-current-ip {
        width: 100%;
    }
}

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

    .ssl-renewal-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .ssl-settings-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ssl-status-grid {
        grid-template-columns: 1fr;
    }

    .ssl-alert-control {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
}

.help-search-field { display:block; margin-top:22px; }
.help-search-field input { background:#f7f9fc; border:1px solid #cfdae8; border-radius:14px; color:#102653; font-size:.95rem; padding:14px 16px; width:100%; }
.help-search-status { font-size:.78rem; margin:8px 2px 0; }
.help-manual-layout { align-items:start; display:grid; gap:18px; grid-template-columns:245px minmax(0,1fr); margin-top:18px; }
.help-manual-index { position:sticky; top:18px; }
.help-manual-index nav { display:grid; gap:3px; margin-top:10px; }
.help-manual-index nav a { border-radius:9px; color:#30496e; font-size:.78rem; font-weight:650; padding:7px 9px; text-decoration:none; }
.help-manual-index nav a:hover,.help-manual-index nav a:focus-visible { background:#eaf1fb; color:#123b78; }
.help-index-note { background:#f1f5fa; border-radius:12px; margin-top:16px; padding:12px; }
.help-index-note strong { color:#183865; font-size:.78rem; }
.help-index-note p { color:#64748b; font-size:.72rem; line-height:1.55; margin:5px 0 0; }
.help-manual-content { display:grid; gap:18px; min-width:0; }
.help-manual-section { scroll-margin-top:18px; }
.help-manual-section>header { align-items:flex-start; border-bottom:1px solid #e3e9f1; display:grid; gap:14px; grid-template-columns:42px minmax(0,1fr); margin-bottom:18px; padding-bottom:16px; }
.help-manual-section>header h2 { color:#102653; font-family:"Sora",sans-serif; font-size:1.25rem; margin:2px 0 6px; }
.help-manual-section>header p:last-child { color:#65758d; font-size:.86rem; margin:0; }
.help-section-number { align-items:center; background:#e6eef9; border-radius:12px; color:#174584; display:inline-flex; font-family:"Sora",sans-serif; font-size:.75rem; font-weight:800; height:42px; justify-content:center; width:42px; }
.help-procedure-grid,.help-definition-list { display:grid; gap:14px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.help-procedure-grid>section,.help-definition-list>div { background:#f8fafc; border:1px solid #e0e7f0; border-radius:14px; padding:16px; }
.help-procedure-grid h3,.help-definition-list strong { color:#172f58; font-size:.88rem; }
.help-definition-list p { color:#5f718a; font-size:.8rem; line-height:1.58; margin:6px 0 0; }
.help-steps,.help-list { color:#344762; font-size:.82rem; line-height:1.65; margin:10px 0 0; padding-left:1.3rem; }
.help-steps li,.help-list li { margin-bottom:7px; }
.help-manual-section details { background:#fbfcfe; border:1px solid #e0e7f0; border-radius:13px; margin-top:9px; overflow:hidden; }
.help-manual-section details summary { color:#18345f; cursor:pointer; font-size:.86rem; font-weight:750; list-style:none; padding:14px 16px; }
.help-manual-section details summary::-webkit-details-marker { display:none; }
.help-manual-section details summary::after { color:#35609b; content:"+"; float:right; font-size:1rem; }
.help-manual-section details[open] summary::after { content:"−"; }
.help-detail-body { border-top:1px solid #e5eaf1; color:#43546d; font-size:.82rem; line-height:1.65; padding:2px 16px 15px; }
.help-detail-body p { margin:12px 0 0; }
.help-callout { background:#edf4fc; border-left:4px solid #2e68aa; border-radius:10px; color:#294665; margin-top:16px; padding:13px 15px; }
.help-callout.warn { background:#fff7e8; border-left-color:#e48a18; }
.help-callout strong { display:block; font-size:.84rem; }
.help-callout p { font-size:.8rem; line-height:1.55; margin:5px 0 0; }
.help-table-wrap { border:1px solid #dfe6ef; border-radius:14px; overflow-x:auto; }
.help-role-table { border-collapse:collapse; min-width:680px; width:100%; }
.help-role-table th,.help-role-table td { border-bottom:1px solid #e5eaf1; font-size:.78rem; line-height:1.5; padding:13px 14px; text-align:left; vertical-align:top; }
.help-role-table th { background:#f3f6fa; color:#5e7089; text-transform:uppercase; }
.help-practice-list { display:grid; gap:10px; list-style:none; margin:0; padding:0; }
.help-practice-list li { align-items:start; background:#f8fafc; border:1px solid #e1e7ef; border-radius:13px; display:grid; gap:4px; padding:13px 15px; }
.help-practice-list strong { color:#18345f; font-size:.84rem; }
.help-practice-list span { color:#62738a; font-size:.78rem; }
.help-admin-links { margin-bottom:24px; }
.help-no-results { text-align:center; }
@media (max-width:1050px) { .help-manual-layout { grid-template-columns:1fr; } .help-manual-index { position:static; } .help-manual-index nav { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:700px) { .help-procedure-grid,.help-definition-list,.help-manual-index nav { grid-template-columns:1fr; } .help-manual-section>header { grid-template-columns:36px minmax(0,1fr); } .help-section-number { height:36px; width:36px; } }
