:root {
    color-scheme: light;
    --ink: #17202f;
    --muted: #667085;
    --soft: #98a2b3;
    --line: #e6e9ef;
    --surface: #ffffff;
    --canvas: #f7f8fb;
    --primary: #5260df;
    --primary-dark: #3f49bd;
    --primary-soft: #eef0ff;
    --green: #1f9d6c;
    --amber: #d97706;
    --red: #dc4c64;
    --cyan: #168ba3;
    --shadow: 0 8px 30px rgba(26, 38, 66, 0.08);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
#upcoming, #initiatives { scroll-margin-top: 94px; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    min-width: 320px;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 26px 18px 18px;
    position: fixed;
    top: 0;
    width: 252px;
    z-index: 30;
}

.brand { align-items: center; display: flex; gap: 12px; margin: 0 10px 36px; }
.brand-mark { align-items: center; background: var(--primary); border-radius: 11px; color: #fff; display: flex; font-size: 1rem; font-weight: 800; height: 39px; justify-content: center; letter-spacing: -1px; width: 39px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 1.25rem; letter-spacing: -.5px; }
.brand-copy small { color: var(--soft); font-size: .7rem; letter-spacing: 1.5px; margin-top: 5px; text-transform: uppercase; }
.primary-nav { flex: 1; min-height: 0; overflow-y: auto; padding-right: 2px; }
.nav-label { color: #a0a7b4; font-size: .7rem; font-weight: 700; letter-spacing: .08em; margin: 0 12px 10px; text-transform: uppercase; }
.nav-label-spaced { margin-top: 28px; }
.nav-link { align-items: center; border-radius: 9px; color: #60697a; display: flex; font-size: .875rem; font-weight: 570; gap: 12px; margin: 3px 0; padding: 10px 12px; transition: .15s ease; }
.nav-link:hover { background: #f5f6fa; color: var(--ink); }
.nav-link.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.nav-icon { align-items: center; display: inline-flex; font-size: 1.15rem; height: 22px; justify-content: center; width: 22px; }
.nav-count { background: #edf0f5; border-radius: 999px; color: #7e8797; font-size: .7rem; margin-left: auto; padding: 2px 7px; }
.nav-accordion summary { cursor: pointer; list-style: none; }.nav-accordion summary::-webkit-details-marker { display: none; }.nav-chevron { color: var(--soft); font-size: .72rem; margin-left: -5px; transition: transform .16s ease; }.nav-accordion[open] .nav-chevron { transform: rotate(180deg); }
.nav-board-list { background: #f7f8fb; border: 1px solid #eceef3; border-radius: 9px; display: flex; flex-direction: column; gap: 3px; margin: 4px 0 9px; max-height: 300px; overflow-y: auto; padding: 6px; }
.nav-board-all { align-items: center; border-bottom: 1px solid #e8eaf0; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 2px; padding: 7px 8px 9px; }.nav-board-all span { font-size: .67rem; font-weight: 750; }.nav-board-all small { color: var(--primary); font-size: .52rem; }.nav-board-all.is-active span { color: var(--primary); }
.nav-board-item { align-items: center; border-radius: 7px; display: grid; gap: 8px; grid-template-columns: 4px minmax(0, 1fr) 16px; min-height: 42px; padding: 6px 7px; }.nav-board-item:hover { background: #fff; }.nav-board-item.is-active { background: #fff; box-shadow: 0 1px 4px rgba(28,37,58,.08); }.nav-board-item > i { background: var(--board-color); border-radius: 999px; height: 25px; }.nav-board-item > span { display: flex; flex-direction: column; min-width: 0; }.nav-board-item strong { color: #414a5b; font-size: .65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.nav-board-item small { color: var(--soft); font-size: .51rem; margin-top: 2px; }.nav-board-item > b { color: #9299a8; font-size: .57rem; text-align: center; }
.sidebar-footer { border-top: 1px solid var(--line); padding-top: 16px; }
.workspace-card { align-items: center; display: flex; gap: 10px; padding: 6px; }
.workspace-avatar { align-items: center; background: #162032; border-radius: 9px; color: #fff; display: flex; font-size: .72rem; font-weight: 800; height: 35px; justify-content: center; width: 35px; }
.workspace-card > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.workspace-card strong { font-size: .78rem; }
.workspace-card small { color: var(--soft); font-size: .68rem; }
.workspace-menu { color: var(--soft); font-size: .72rem; }

.app-shell { margin-left: 252px; min-height: 100vh; }
.topbar { align-items: center; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); display: flex; height: 72px; justify-content: space-between; padding: 0 36px; position: sticky; top: 0; z-index: 20; }
.mobile-menu { background: transparent; border: 0; display: none; font-size: 1.4rem; }
.search-box { align-items: center; background: #f6f7fa; border: 1px solid transparent; border-radius: 9px; color: var(--soft); display: flex; gap: 10px; max-width: 430px; padding: 9px 12px; width: 40%; }
.search-box:focus-within { background: #fff; border-color: #cdd2fc; box-shadow: 0 0 0 3px var(--primary-soft); }
.search-box input { background: transparent; border: 0; color: var(--ink); font-size: .8rem; min-width: 0; outline: none; width: 100%; }
.search-box kbd { background: #fff; border: 1px solid #e3e6ec; border-radius: 5px; color: #8a93a2; font-family: inherit; font-size: .65rem; padding: 2px 6px; white-space: nowrap; }
.topbar-actions { align-items: center; display: flex; gap: 8px; }
.icon-button { background: transparent; border: 0; border-radius: 8px; color: #687185; cursor: pointer; font-weight: 700; height: 36px; position: relative; width: 36px; }
.icon-button:hover { background: #f4f5f8; }
.notification-button span { background: #e64e65; border: 2px solid #fff; border-radius: 50%; height: 7px; position: absolute; right: 8px; top: 8px; width: 7px; }
.topbar-divider { background: var(--line); height: 30px; margin: 0 8px; width: 1px; }
.user-menu { position: relative; }
.user-menu summary { align-items: center; border-radius: 9px; cursor: pointer; display: flex; gap: 9px; list-style: none; padding: 5px 7px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover,.user-menu[open] summary { background: #f5f6f9; }
.user-copy { display: flex; flex-direction: column; gap: 2px; }
.user-copy strong { font-size: .74rem; }
.user-copy small { color: var(--soft); font-size: .64rem; }
.chevron { color: var(--soft); font-size: .8rem; margin-left: 4px; }
.user-menu[open] .chevron { transform: rotate(180deg); }
.user-dropdown { background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 14px 35px rgba(28,37,58,.16); min-width: 230px; padding: 7px; position: absolute; right: 0; top: calc(100% + 9px); z-index: 50; }
.user-dropdown-identity { border-bottom: 1px solid var(--line); display: flex; flex-direction: column; margin: 0 5px 5px; padding: 8px 7px 12px; }.user-dropdown-identity strong { font-size: .76rem; }.user-dropdown-identity span { color: var(--soft); font-size: .64rem; margin-top: 3px; }
.user-dropdown a,.user-dropdown button { align-items: center; background: transparent; border: 0; border-radius: 7px; color: #4f596b; cursor: pointer; display: flex; font-size: .7rem; gap: 9px; padding: 9px 10px; text-align: left; width: 100%; }.user-dropdown a:hover,.user-dropdown button:hover { background: #f5f6fa; color: var(--ink); }.user-dropdown a span,.user-dropdown button span { color: var(--primary); width: 16px; }

.avatar { align-items: center; background: var(--avatar-color, #6673e8); border: 2px solid #fff; border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 auto; font-size: .67rem; font-weight: 750; height: 34px; justify-content: center; width: 34px; }
.avatar-violet { background: #7160d7; }
.avatar-small { font-size: .58rem; height: 27px; width: 27px; }
.avatar-tiny { border-width: 1px; font-size: .5rem; height: 21px; width: 21px; }
.avatar-more { background: #eef0f5; color: #71798a; }
.mini-avatars { align-items: center; display: flex; }
.mini-avatars .avatar + .avatar { margin-left: -7px; }

.page-content { margin: 0 auto; max-width: 1560px; padding: 34px 36px 54px; }
.page-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 28px; }
.page-heading h1 { font-size: 1.65rem; letter-spacing: -.045em; margin: 5px 0 7px; }
.page-heading p { color: var(--muted); font-size: .84rem; margin: 0; }
.eyebrow { color: var(--primary) !important; font-size: .7rem !important; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.compact-heading { align-items: center; }
.compact-heading h1 { font-size: 1.75rem; }
.breadcrumb { align-items: center; color: var(--soft); display: flex; font-size: .7rem; gap: 8px; margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--primary); }
.heading-actions { align-items: center; display: flex; gap: 10px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 8px; cursor: pointer; display: inline-flex; font-size: .76rem; font-weight: 700; gap: 7px; justify-content: center; min-height: 38px; padding: 9px 14px; transition: .15s ease; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(82,96,223,.2); }
.button-secondary { background: #fff; border-color: #dfe3ea; color: #424b5c; }
.button-secondary:hover { background: #f8f9fb; border-color: #ccd1db; }

.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.stat-card { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; min-height: 112px; padding: 20px; position: relative; }
.stat-icon { align-items: center; background: var(--primary-soft); border-radius: 10px; color: var(--primary); display: flex; font-size: 1rem; height: 42px; justify-content: center; margin-right: 14px; width: 42px; }
.icon-amber { background: #fff4e5 !important; color: #d97706 !important; }
.icon-cyan { background: #e9f7f9 !important; color: #168ba3 !important; }
.icon-green { background: #eaf8f2 !important; color: var(--green) !important; }
.stat-card > div:nth-child(2) { display: flex; flex-direction: column; }
.stat-card span { color: var(--muted); font-size: .7rem; }
.stat-card strong { font-size: 1.55rem; letter-spacing: -.04em; line-height: 1.25; }
.stat-card small { color: var(--soft); font-size: .62rem; }
.stat-card small b { color: var(--green); }
.stat-chip { border-radius: 999px; font-size: .59rem; margin-left: auto; padding: 5px 8px; }
.chip-amber { background: #fff4e5; color: #c86b00; }
.card-link { color: var(--primary); font-size: .65rem; font-weight: 700; margin-left: auto; }
.sparkline { align-items: end; display: flex; gap: 2px; height: 35px; margin-left: auto; }
.sparkline i { background: #cbd0fa; border-radius: 2px 2px 0 0; display: block; height: 30%; width: 3px; }
.sparkline i:nth-child(2) { height: 48%; }.sparkline i:nth-child(3) { height: 40%; }.sparkline i:nth-child(4) { height: 70%; }.sparkline i:nth-child(5) { height: 58%; }.sparkline i:nth-child(6) { height: 88%; }.sparkline i:nth-child(7) { background: var(--primary); height: 100%; }

.dashboard-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); margin-bottom: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.panel-header { align-items: center; border-bottom: 1px solid #eef0f4; display: flex; justify-content: space-between; min-height: 72px; padding: 15px 20px; }
.panel-header h2, .section-title h2 { font-size: .9rem; margin: 0 0 4px; }
.panel-header p, .section-title p { color: var(--soft); font-size: .66rem; margin: 0; }
.panel-header > a { color: var(--primary); font-size: .67rem; font-weight: 700; }
.plain-button { background: transparent; border: 0; color: var(--soft); cursor: pointer; }
.task-list { padding: 4px 20px 10px; }
.task-row { align-items: center; border-bottom: 1px solid #f0f2f5; display: grid; gap: 12px; grid-template-columns: 22px minmax(180px, 1fr) 58px 64px 42px 20px; min-height: 66px; }
.task-row:last-child { border-bottom: 0; }
.task-check input { display: none; }
.task-check span { border: 1.5px solid #cbd1db; border-radius: 50%; display: block; height: 17px; width: 17px; }
.task-check input:checked + span { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.task-row-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.task-row-main strong { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row-main span { align-items: center; color: var(--soft); display: flex; font-size: .58rem; gap: 5px; }
.task-row-main i { border-radius: 2px; height: 6px; width: 6px; }
.priority { border-radius: 4px; display: inline-block; font-size: .55rem; font-weight: 700; padding: 4px 7px; text-align: center; width: fit-content; }
.priority-urgent { background: #ffedf0; color: #c83b51; }.priority-high { background: #fff1e7; color: #c56219; }.priority-medium { background: #eef0ff; color: #5562d4; }.priority-low { background: #edf6f8; color: #388496; }
.due-date { color: var(--muted); font-size: .62rem; }
.due-date.is-today { color: var(--red); font-weight: 700; }
.row-menu { color: var(--soft); font-size: .65rem; }
.activity-list { padding: 14px 20px; }
.activity-item { display: flex; gap: 10px; padding: 9px 0 14px; position: relative; }
.activity-item:not(:last-child)::after { background: #e8eaf0; bottom: -1px; content: ""; left: 13px; position: absolute; top: 37px; width: 1px; }
.activity-item > div { min-width: 0; }
.activity-item p { color: var(--muted); font-size: .65rem; line-height: 1.4; margin: 0 0 3px; }
.activity-item p strong { color: var(--ink); }
.activity-item a { display: block; font-size: .64rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item time { color: var(--soft); font-size: .56rem; }
.initiatives-panel { padding-bottom: 20px; }
.initiative-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); padding: 18px 20px 0; }
.initiative-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.initiative-top, .coordination-card-top { align-items: center; display: flex; gap: 8px; }
.initiative-top .plain-button, .coordination-card-top .plain-button { margin-left: auto; }
.initiative-symbol { align-items: center; background: var(--primary-soft); border-radius: 7px; color: var(--primary); display: inline-flex; height: 29px; justify-content: center; width: 29px; }
.status-badge { background: #eaf8f2; border-radius: 999px; color: var(--green); font-size: .55rem; font-weight: 700; padding: 4px 7px; }
.initiative-card h3, .coordination-card h3 { font-size: .8rem; margin: 13px 0 5px; }
.initiative-card > p, .coordination-card > p { color: var(--muted); font-size: .64rem; line-height: 1.45; margin: 0 0 14px; }
.progress-label { color: var(--muted); display: flex; font-size: .58rem; justify-content: space-between; margin: 8px 0 6px; }
.progress-label strong { color: var(--ink); }
.progress-track { background: #eceef3; border-radius: 999px; height: 5px; overflow: hidden; }
.progress-track i { background: var(--primary); border-radius: inherit; display: block; height: 100%; }
.initiative-card footer { color: var(--soft); display: flex; font-size: .57rem; gap: 13px; margin-top: 13px; }
.initiative-card footer time { margin-left: auto; }

.board-members { margin-right: 4px; }
.board-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin: 0 -36px 20px; padding: 0 36px; }
.view-tabs { display: flex; }
.view-tabs a,.view-tabs > span { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: .68rem; font-weight: 650; padding: 14px 13px; }
.view-tabs a { cursor: pointer; }.view-tabs a:hover { color: var(--ink); }.view-tabs a.is-active { border-bottom-color: var(--primary); color: var(--primary); }
.view-tabs .is-disabled { color: #a7adba; cursor: not-allowed; }.view-tabs .is-disabled small { background: #eef0f4; border-radius: 999px; font-size: .48rem; margin-left: 4px; padding: 2px 5px; }
.toolbar-actions { align-items: center; display: flex; gap: 2px; }
.toolbar-actions button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: .64rem; padding: 8px; }
.toolbar-actions > span { background: var(--line); height: 22px; margin: 0 5px; width: 1px; }
.kanban { align-items: flex-start; display: grid; gap: 14px; grid-auto-columns: minmax(260px, 1fr); grid-auto-flow: column; min-height: calc(100vh - 245px); overflow-x: auto; padding-bottom: 16px; }
.kanban-column { background: #f0f2f6; border: 1px solid #e5e7ed; border-radius: 10px; padding: 11px; }
.column-header { align-items: center; display: flex; justify-content: space-between; padding: 2px 3px 11px; }
.column-header[draggable="true"] { cursor: grab; }
.column-header > div { align-items: center; display: flex; gap: 8px; }
.column-header i { border-radius: 50%; height: 7px; width: 7px; }
.column-header h2 { font-size: .72rem; margin: 0; }
.column-header span { background: #dfe2e9; border-radius: 999px; color: #71798a; font-size: .56rem; padding: 2px 6px; }
.column-header button, .task-card-top button { background: transparent; border: 0; color: var(--soft); cursor: pointer; font-size: .64rem; }
.task-cards { min-height: 40px; }
.task-cards.is-drag-over { background: #e5e7fc; border-radius: 8px; outline: 1px dashed #8d96eb; }
.task-card { background: #fff; border: 1px solid #e3e6ec; border-radius: 9px; box-shadow: 0 1px 2px rgba(24,35,57,.04); cursor: pointer; margin-bottom: 9px; padding: 13px; transition: .15s ease; }
.task-card:hover { border-color: #cbd0dd; box-shadow: 0 5px 16px rgba(24,35,57,.07); transform: translateY(-1px); }
.task-card.is-dragging { opacity: .45; transform: rotate(1deg); }
.drag-handle { color: var(--soft); cursor: grab; font-size: .9rem; line-height: 1; user-select: none; }
.is-dragging-column { opacity: .55; transform: rotate(.3deg); }
.task-card-top { align-items: center; display: flex; justify-content: space-between; }
.task-card h3 { font-size: .73rem; line-height: 1.38; margin: 10px 0 5px; }
.task-card > p { color: var(--muted); font-size: .61rem; line-height: 1.45; margin: 0 0 9px; }
.task-initiative { background: #f2f3fa; border-radius: 4px; color: #5f6880; display: inline-block; font-size: .54rem; margin: 2px 0 10px; max-width: 100%; overflow: hidden; padding: 4px 6px; text-overflow: ellipsis; white-space: nowrap; }
.task-card footer { align-items: center; border-top: 1px solid #f1f2f5; display: flex; justify-content: space-between; margin-top: 4px; padding-top: 10px; }
.task-meta { align-items: center; color: var(--soft); display: flex; font-size: .54rem; gap: 7px; }
.task-meta time.is-overdue { color: var(--red); font-weight: 700; }
.add-task-button { background: transparent; border: 0; border-radius: 7px; color: #727a89; cursor: pointer; font-size: .64rem; padding: 9px; text-align: left; width: 100%; }
.add-task-button:hover { background: #e6e8ed; color: var(--ink); }

.dialog { background: #fff; border: 0; border-radius: 14px; box-shadow: 0 24px 80px rgba(20,29,48,.28); max-height: calc(100vh - 40px); max-width: 620px; overflow-y: auto; padding: 25px; width: calc(100% - 32px); }
.dialog::backdrop { background: rgba(17,24,39,.45); backdrop-filter: blur(2px); }
.dialog-wide { max-width: 1020px; }
.dialog-close-form { float: right; margin: -12px -10px 0 0; }
.dialog-close-form button { background: #f3f4f7; border: 0; border-radius: 50%; color: #70798a; cursor: pointer; font-size: 1.1rem; height: 30px; width: 30px; }
.dialog-header { align-items: flex-start; display: flex; gap: 12px; margin-bottom: 20px; }
.dialog-header h2 { font-size: 1.1rem; margin: 2px 0 4px; }
.dialog-header p { color: var(--muted); font-size: .68rem; margin: 0; }
.dialog-icon { align-items: center; background: var(--primary-soft); border-radius: 9px; color: var(--primary); display: flex; flex: 0 0 auto; font-weight: 700; height: 38px; justify-content: center; width: 38px; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form label, .inline-form label { color: #4b5565; display: flex; flex: 1; flex-direction: column; font-size: .66rem; font-weight: 650; gap: 6px; }
.stack-form input, .stack-form select, .stack-form textarea, .inline-form input, .notes-section textarea { background: #fff; border: 1px solid #dfe3ea; border-radius: 7px; color: var(--ink); outline: none; padding: 9px 10px; width: 100%; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .inline-form input:focus, .notes-section textarea:focus { border-color: #9aa3ef; box-shadow: 0 0 0 3px var(--primary-soft); }
.stack-form textarea, .notes-section textarea { line-height: 1.5; resize: vertical; }
.form-row { display: flex; gap: 12px; }
.checkbox-field { border: 0; margin: 0; padding: 0; }
.checkbox-field legend { color: #4b5565; font-size: .66rem; font-weight: 650; margin-bottom: 7px; }
.people-checks { border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); max-height: 150px; overflow-y: auto; }
.people-checks label { align-items: center; border-bottom: 1px solid #f0f1f4; cursor: pointer; flex-direction: row; font-size: .64rem; gap: 7px; padding: 8px; }
.people-checks input { accent-color: var(--primary); width: auto; }
.people-checks.compact { max-height: 115px; }
.dialog-actions { align-items: center; border-top: 1px solid #eef0f4; display: flex; gap: 8px; justify-content: flex-end; margin-top: 5px; padding-top: 16px; }
.task-dialog-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); }
.task-dialog-side { border-left: 1px solid var(--line); padding-left: 22px; padding-top: 12px; }
.task-dialog-side section + section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.task-dialog-side h3 { font-size: .72rem; margin: 0 0 10px; }
.task-dialog-side h3 span { color: var(--soft); font-weight: 500; }
.inline-form { align-items: stretch; display: flex; gap: 6px; }
.inline-form input { font-size: .64rem; min-width: 0; padding: 7px; }
.inline-form button { background: var(--primary-soft); border: 0; border-radius: 6px; color: var(--primary); cursor: pointer; font-size: .6rem; font-weight: 700; padding: 7px; }
.reminder-row { color: var(--muted); font-size: .6rem; margin: 8px 0 0; }
.notes-section form > .button { margin-top: 7px; }
.notes-section textarea { font-size: .66rem; }
.note-list { margin-top: 15px; }
.note-list article { display: flex; gap: 8px; margin: 12px 0; }
.note-list article > div { flex: 1; }
.note-list strong { font-size: .62rem; }
.note-list time { color: var(--soft); font-size: .54rem; margin-left: 6px; }
.note-list p { background: #f6f7f9; border-radius: 7px; color: var(--muted); font-size: .62rem; line-height: 1.45; margin: 4px 0 0; padding: 8px; }

.ownership-summary { background: #1c2638; border-radius: 12px; color: #fff; display: flex; margin-bottom: 22px; min-height: 96px; padding: 18px 22px; }
.ownership-summary > div { align-items: center; border-right: 1px solid rgba(255,255,255,.11); display: flex; gap: 12px; min-width: 210px; padding-right: 26px; }
.ownership-summary > div + div { margin-left: 26px; }
.ownership-summary > .summary-note { border-right: 0; display: block; margin-left: auto; max-width: 440px; min-width: 0; padding: 3px 0 0 26px; }
.summary-icon { align-items: center; background: rgba(116,127,244,.2); border-radius: 9px; color: #a8afff; display: flex; height: 40px; justify-content: center; width: 40px; }
.ownership-summary > div > div { display: flex; flex-direction: column; }
.ownership-summary strong { font-size: 1.25rem; }
.ownership-summary span { color: #acb4c2; font-size: .64rem; }
.summary-note > span { color: #aab2c0; font-size: .6rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.summary-note p { color: #e3e6ec; font-size: .66rem; line-height: 1.45; margin: 5px 0; }
.department-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.department-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.department-card > header { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; min-height: 84px; padding: 16px 18px; }
.department-icon { align-items: center; background: color-mix(in srgb, var(--department-color) 14%, white); border-radius: 9px; color: var(--department-color); display: flex; font-size: .8rem; font-weight: 800; height: 40px; justify-content: center; width: 40px; }
.department-card header > div:nth-child(2) { flex: 1; }
.department-card h2 { font-size: .84rem; margin: 0 0 4px; }
.department-card header p { color: var(--soft); font-size: .6rem; margin: 0; }
.department-card header > span { background: #f1f2f6; border-radius: 999px; color: var(--muted); font-size: .58rem; padding: 3px 8px; }
.responsibility-list { min-height: 150px; padding: 5px 18px; }
.responsibility-list > article { border-bottom: 1px solid #f0f2f5; padding: 13px 0; }
.responsibility-title { align-items: center; display: flex; gap: 8px; }
.responsibility-title > span { background: var(--green); border-radius: 50%; height: 6px; width: 6px; }
.responsibility-title strong { flex: 1; font-size: .7rem; }
.responsibility-title button { background: none; border: 0; color: var(--soft); }
.responsibility-list article > p { color: var(--muted); font-size: .6rem; line-height: 1.4; margin: 6px 0 9px 14px; }
.responsibility-list footer { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin-left: 14px; }
.owner-pill, .context-pill, .scope-pill { align-items: center; background: #f4f5f8; border-radius: 999px; color: #667085; display: inline-flex; font-size: .53rem; gap: 4px; padding: 3px 7px; }
.context-pill { background: var(--primary-soft); color: var(--primary); }
.scope-pill { margin-left: auto; }
.department-add { background: #fafbfc; border: 0; border-top: 1px solid var(--line); color: var(--primary); cursor: pointer; font-size: .62rem; font-weight: 700; padding: 12px 18px; text-align: left; width: 100%; }
.empty-small { align-items: center; color: var(--soft); display: flex; flex-direction: column; font-size: .63rem; justify-content: center; min-height: 140px; }
.empty-small span { color: var(--primary); font-size: 1rem; }

.coordination-layout { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); }
.view-filter { background: #f1f3f6; border-radius: 7px; display: flex; padding: 3px; }
.view-filter button { background: transparent; border: 0; border-radius: 5px; color: var(--muted); font-size: .57rem; padding: 5px 9px; }
.view-filter button.is-active { background: #fff; box-shadow: 0 1px 3px rgba(30,40,60,.1); color: var(--ink); }
.agreement-list { padding: 5px 20px 15px; }
.agreement-card { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 14px; padding: 18px 0; }
.agreement-card:last-child { border-bottom: 0; }
.agreement-line { align-items: center; display: flex; flex: 0 0 75px; margin-top: 2px; }
.area-node { align-items: center; background: color-mix(in srgb, var(--area-color) 15%, white); border: 1px solid color-mix(in srgb, var(--area-color) 30%, white); border-radius: 7px; color: var(--area-color); display: flex; font-size: .62rem; font-weight: 800; height: 28px; justify-content: center; width: 28px; }
.connector { border-top: 1px dashed #bcc2cd; flex: 1; }
.agreement-body { flex: 1; min-width: 0; }
.agreement-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 5px; }
.agreement-meta span { color: var(--muted); font-size: .56rem; font-weight: 700; }
.agreement-meta i { color: var(--soft); font-size: .52rem; }
.agreement-meta b { background: var(--primary-soft); border-radius: 4px; color: var(--primary); font-size: .51rem; margin-left: 4px; padding: 3px 5px; }
.agreement-card h3 { font-size: .75rem; margin: 7px 0 5px; }
.agreement-card p { color: var(--muted); font-size: .62rem; line-height: 1.45; margin: 0; }
.agreement-card footer { align-items: center; color: var(--soft); display: flex; font-size: .53rem; gap: 10px; margin-top: 9px; }
.initiatives-column { display: flex; flex-direction: column; gap: 12px; }
.section-title { align-items: center; display: flex; justify-content: space-between; padding: 3px 2px 5px; }
.section-title > span { background: #e9ebf1; border-radius: 999px; color: var(--muted); font-size: .6rem; padding: 3px 8px; }
.coordination-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.area-tags span { align-items: center; background: #f5f6f8; border-radius: 999px; color: var(--muted); display: flex; font-size: .53rem; gap: 4px; padding: 4px 7px; }
.area-tags i { background: var(--area-color); border-radius: 50%; height: 5px; width: 5px; }
.coordination-card footer { align-items: center; color: var(--soft); display: flex; font-size: .55rem; justify-content: space-between; margin-top: 13px; }
.coordination-card footer a { color: var(--primary); font-weight: 700; }

.toast, .validation-banner { animation: slide-in .25s ease; background: #17362c; border-radius: 8px; box-shadow: var(--shadow); color: #fff; font-size: .7rem; padding: 11px 16px; position: fixed; right: 24px; top: 86px; z-index: 100; }
.validation-banner { background: #782b39; display: flex; flex-direction: column; gap: 3px; }
.is-filtered-out { display: none !important; }
.empty-state { align-items: center; color: var(--soft); display: flex; flex-direction: column; padding: 38px; text-align: center; }
.empty-state span { color: var(--green); font-size: 1.2rem; }
.empty-state strong { color: var(--ink); font-size: .75rem; margin-top: 6px; }
.empty-state p { font-size: .62rem; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

/* Authentication, board directory, access controls, and workspace maintainers. */
.guest-body { align-items: center; background: radial-gradient(circle at top left, #edf0ff, #f8f9fc 55%); display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.guest-shell { width: min(430px, 100%); }
.login-brand { align-items: center; display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.login-brand strong { color: var(--ink); font-size: 1.15rem; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 30px; }
.login-card h1 { font-size: 1.25rem; margin: 0 0 7px; }.login-card > p { color: var(--muted); margin: 0 0 22px; }
.login-help { color: var(--soft); font-size: .62rem; margin-top: 18px; text-align: center; }
.board-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.board-list-heading,.board-list-row { align-items: center; display: grid; gap: 14px; grid-template-columns: minmax(260px, 2fr) minmax(110px, .75fr) minmax(90px, .6fr) minmax(110px, .7fr) minmax(100px, .65fr); }
.board-list-heading { background: #f7f8fa; border-bottom: 1px solid var(--line); color: var(--soft); font-size: .58rem; font-weight: 750; letter-spacing: .04em; padding: 11px 16px; text-transform: uppercase; }
.board-list-group > header { align-items: center; background: #fbfbfd; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 10px 16px; }.board-list-group:first-of-type > header { border-top: 0; }.board-list-group > header > div { align-items: center; display: flex; gap: 7px; }.board-list-group > header i { border-radius: 50%; height: 7px; width: 7px; }.board-list-group > header h2 { font-size: .7rem; margin: 0; }.board-list-group > header span { background: #e8eaf0; border-radius: 999px; color: var(--muted); font-size: .52rem; padding: 2px 6px; }.board-list-group > header button { background: transparent; border: 0; color: var(--primary); cursor: pointer; font-size: .6rem; font-weight: 700; }
.board-list-row { border-bottom: 1px solid #eef0f4; min-height: 62px; padding: 8px 16px; }.board-list-row:last-child { border-bottom: 0; }.board-list-row > span,.board-list-row > time { color: var(--muted); font-size: .62rem; }.list-task-title { align-items: center; background: transparent; border: 0; cursor: pointer; display: flex; gap: 10px; min-width: 0; padding: 0; text-align: left; }.list-task-title > span:last-child { display: flex; flex-direction: column; min-width: 0; }.list-task-title strong { font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.list-task-title small { color: var(--soft); font-size: .56rem; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.list-check { align-items: center; border: 1px solid #cfd4df; border-radius: 50%; color: var(--green); display: flex; flex: 0 0 19px; font-size: .55rem; height: 19px; justify-content: center; }.list-status { align-items: center; display: flex; gap: 6px; }.list-status i { border-radius: 50%; height: 6px; width: 6px; }.board-list-empty { color: var(--soft); font-size: .62rem; padding: 14px 45px; }
.visibility-badge,.readonly-badge,.admin-badge,.role-badge,.state-badge { border-radius: 999px; font-size: .56rem; font-weight: 750; padding: 5px 8px; white-space: nowrap; }
.visibility-workspace { background: #e7f6ee; color: #267253; }.visibility-restricted { background: #fff3d6; color: #8b6511; }.visibility-private { background: #eeeafd; color: #5e49a5; }
.readonly-badge { background: #eef0f4; color: var(--muted); }.admin-badge { background: var(--primary-soft); color: var(--primary); }
.board-directory { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-directory-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px rgba(25,35,55,.04); color: inherit; display: flex; flex-direction: column; min-height: 190px; padding: 20px; text-decoration: none; }
.board-directory-card header { align-items: center; display: flex; justify-content: space-between; }.board-directory-card h2 { font-size: .9rem; margin: 18px 0 6px; }.board-directory-card p { color: var(--muted); flex: 1; font-size: .65rem; line-height: 1.55; }.board-directory-card footer { color: var(--soft); display: flex; font-size: .57rem; justify-content: space-between; }
.access-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }.access-legend > span { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); display: flex; font-size: .58rem; gap: 5px; padding: 7px 9px; }.access-legend i { align-items: center; border-radius: 50%; display: flex; font-style: normal; height: 19px; justify-content: center; width: 19px; }.access-legend strong { color: var(--ink); }
.board-color-bar { background: var(--board-color); border-radius: 12px 12px 0 0; height: 4px; left: -20px; position: relative; top: -20px; width: calc(100% + 40px); }.board-directory-meta { color: var(--soft); display: flex; flex-wrap: wrap; font-size: .55rem; gap: 5px 10px; margin: 8px 0 13px; }.board-directory-meta span:last-child { flex-basis: 100%; }.board-directory-card footer { align-items: center; gap: 7px; }.board-directory-card footer .mini-avatars { margin-right: auto; }.board-directory-card footer .button { padding: 7px 10px; }
.readonly-task-detail { background: #f8f9fb; border-radius: 9px; padding: 18px; }.readonly-task-detail h3 { font-size: .7rem; }.readonly-task-detail p,.readonly-task-detail dd { color: var(--muted); font-size: .64rem; }.readonly-task-detail dl { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }.readonly-task-detail dt { color: var(--soft); font-size: .52rem; text-transform: uppercase; }.readonly-task-detail dd { margin: 3px 0 0; }
.settings-tabs { background: #fff; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 2px; margin-bottom: 18px; overflow-x: auto; padding: 5px; position: sticky; top: 76px; z-index: 5; }.settings-tabs a { border-radius: 7px; color: var(--muted); font-size: .62rem; font-weight: 700; padding: 9px 12px; text-decoration: none; white-space: nowrap; }.settings-tabs a:hover { background: #f3f4f8; color: var(--ink); }.settings-tabs span { background: #e8eaf0; border-radius: 999px; font-size: .5rem; margin-left: 3px; padding: 2px 5px; }
.settings-section { margin-bottom: 18px; scroll-margin-top: 135px; }.settings-split { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }.admin-table-wrap { overflow-x: auto; }.admin-table { border-collapse: collapse; width: 100%; }.admin-table th { color: var(--soft); font-size: .52rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }.admin-table td,.admin-table th { border-bottom: 1px solid var(--line); padding: 11px 8px; }.admin-table td { color: var(--muted); font-size: .6rem; }.person-cell { align-items: center; display: flex; gap: 9px; }.person-cell span:last-child { display: flex; flex-direction: column; }.person-cell strong { color: var(--ink); font-size: .64rem; }.person-cell small { color: var(--soft); margin-top: 2px; }.compact-tags { display: flex; flex-wrap: wrap; gap: 3px; }.compact-tags span { background: #f0f1f5; border-radius: 4px; font-size: .52rem; padding: 3px 5px; }.role-admin { background: #ece9ff; color: #5842ad; }.role-member { background: #edf0f4; color: #536071; }.state-active { background: #e6f5ed; color: #257050; }.state-inactive { background: #f4e9eb; color: #8a4652; }.plain-button { background: none; border: 0; color: var(--primary); cursor: pointer; font-size: .58rem; font-weight: 700; padding: 4px; }
.settings-card-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }.settings-card { border: 1px solid var(--line); border-radius: 10px; padding: 15px; }.settings-card > header { align-items: flex-start; display: flex; gap: 9px; }.settings-card h3 { font-size: .72rem; margin: 0 0 3px; }.settings-card p { color: var(--muted); font-size: .58rem; margin: 0; }.settings-card .plain-button { margin-left: auto; }.team-color { border-radius: 4px; flex: 0 0 9px; height: 32px; }.team-members { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }.team-members > span { align-items: center; color: var(--muted); display: flex; font-size: .55rem; gap: 5px; }.team-members b { background: var(--primary-soft); border-radius: 3px; color: var(--primary); font-size: .45rem; padding: 2px 4px; }
.simple-maintainer-list article,.board-access-list article { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 10px; padding: 11px 2px; }.simple-maintainer-list article:last-child,.board-access-list article:last-child { border-bottom: 0; }.simple-maintainer-list i { border-radius: 50%; height: 8px; width: 8px; }.simple-maintainer-list div,.board-access-list div { display: flex; flex: 1; flex-direction: column; }.simple-maintainer-list strong,.board-access-list strong { font-size: .64rem; }.simple-maintainer-list span,.board-access-list small,.board-access-list > article > span { color: var(--muted); font-size: .54rem; }.board-access-list a { color: var(--primary); font-size: .57rem; font-weight: 700; }.initiative-dot { background: var(--green) !important; }
.data-maintainer { background: #171b2d; border-radius: 13px; color: #fff; padding: 22px; }.data-heading { align-items: center; display: flex; justify-content: space-between; }.data-heading h2 { margin: 3px 0 5px; }.data-heading > div > p:last-child { color: #aeb4c7; font-size: .62rem; margin: 0; }.demo-loaded,.demo-empty { border-radius: 999px; font-size: .55rem; padding: 6px 9px; }.demo-loaded { background: #183c31; color: #89ddbb; }.demo-empty { background: #292e43; color: #bfc4d3; }.data-actions-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }.data-actions-grid article { background: #22273a; border: 1px solid #343a52; border-radius: 10px; display: flex; flex-direction: column; padding: 15px; }.data-actions-grid h3 { font-size: .68rem; margin: 10px 0 5px; }.data-actions-grid p { color: #aeb4c7; font-size: .56rem; line-height: 1.5; }.data-actions-grid form,.data-actions-grid article > button { margin-top: auto; }.data-icon { align-items: center; background: #632b38; border-radius: 7px; display: flex; font-weight: 800; height: 30px; justify-content: center; width: 30px; }.icon-indigo { background: #39448b; }.icon-amber { background: #765d28; }.danger-card { border-color: #733c48 !important; }.button-danger { background: #a33c52; color: #fff; }.empty-small { color: var(--soft); font-size: .62rem; padding: 20px; text-align: center; }

@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .kanban { grid-auto-columns: 280px; }
    .user-copy { display: none; }
    .coordination-layout { grid-template-columns: 1fr; }
    .initiatives-column { display: grid; grid-template-columns: repeat(2, 1fr); }
    .initiatives-column .section-title { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .sidebar { box-shadow: 10px 0 35px rgba(20,28,45,.15); transform: translateX(-105%); transition: transform .2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .app-shell { margin-left: 0; }
    .mobile-menu { display: block; }
    .topbar { padding: 0 20px; }
    .search-box { width: 55%; }
    .page-content { padding: 28px 20px 44px; }
    .board-toolbar { margin-left: -20px; margin-right: -20px; padding: 0 20px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .department-grid { grid-template-columns: 1fr; }
    .task-dialog-grid { grid-template-columns: 1fr; }
    .task-dialog-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
    .board-directory { grid-template-columns: repeat(2, 1fr); }.settings-split,.data-actions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    .heading-actions { flex-wrap: wrap; width: 100%; }
    .heading-actions .button { flex: 1; }
    .stat-grid, .initiative-grid, .initiatives-column { grid-template-columns: 1fr; }
    .task-row { grid-template-columns: 20px 1fr 58px; }
    .task-row .priority, .task-row .mini-avatars, .row-menu { display: none; }
    .ownership-summary { flex-wrap: wrap; gap: 16px; }
    .ownership-summary > div, .ownership-summary > div + div { border-right: 0; margin: 0; min-width: calc(50% - 8px); padding: 0; }
    .ownership-summary > .summary-note { border-top: 1px solid rgba(255,255,255,.1); margin: 0; max-width: none; padding: 14px 0 0; width: 100%; }
    .form-row { flex-direction: column; }
    .people-checks { grid-template-columns: 1fr; }
    .agreement-line { display: none; }
    .search-box kbd, .topbar-divider, .topbar-actions .icon-button:first-child { display: none; }
    .search-box { width: 58%; }
    .toolbar-actions button:not(:last-child) { display: none; }
    .view-tabs a,.view-tabs > span { padding-left: 8px; padding-right: 8px; }.view-tabs .is-disabled small { display: none; }.board-list { overflow-x: auto; }.board-list-heading,.board-list-group { min-width: 780px; }
    .board-directory,.settings-card-grid { grid-template-columns: 1fr; }.data-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.readonly-task-detail dl { grid-template-columns: 1fr; }
}
