@font-face {
  font-family: "Pretendard Variable";
  src: url("/fonts/pretendard-variable-v1.3.9.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #211c37;
  --muted: #625e75;
  --line: #e4e0ee;
  --canvas: #f6f5fa;
  --nav: #fff;
  --nav-line: #ece8f4;
  --nav-hover: #f5f2fb;
  --nav-active: #efebff;
  --nav-text: #46415b;
  --nav-muted: #6c6580;
  --nav-accent: #6550cc;
  --accent: #5745cb;
  --accent-dark: #4332a6;
  --accent-soft: #efebff;
  --row: 48px;
  --list-width: 342px;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #6754cf;
  outline-offset: 2px;
}
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#app { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.loading { grid-column: 1 / -1; padding: 4rem 1rem; text-align: center; }
.loading p { margin-bottom: 1rem; }

.icon { --size: 16px; position: relative; width: var(--size); height: var(--size); display: inline-block; flex: 0 0 var(--size); vertical-align: middle; }
.icon::before, .icon::after { content: ''; position: absolute; }
.i-left::before, .i-right::before, .i-down::before { top: 5px; left: 5px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(135deg); }
.i-right::before { transform: rotate(-45deg); left: 4px; }
.i-down::before { transform: rotate(45deg); top: 4px; }
.i-plus::before, .i-close::before, .i-close::after, .i-plus::after { top: 7px; left: 3px; width: 10px; height: 1.5px; background: currentColor; border-radius: 2px; }
.i-plus::after { transform: rotate(90deg); }
.i-check::before { top: 3px; left: 5px; width: 5px; height: 9px; border: solid currentColor; border-width: 0 1.7px 1.7px 0; transform: rotate(42deg); }
.i-close::before { transform: rotate(45deg); }
.i-close::after { transform: rotate(-45deg); }
.i-calendar::before { inset: 3px 1px 1px; border: 1.4px solid currentColor; border-radius: 2px; }
.i-calendar::after { inset: 1px 4px auto; height: 7px; border: solid currentColor; border-width: 0 1.4px 1.3px; }
.i-clock::before { inset: 1px; border: 1.5px solid currentColor; border-radius: 50%; }
.i-clock::after { top: 4px; left: 7px; width: 4px; height: 5px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; }
.i-board::before { inset: 2px 1px; border: 1.35px solid currentColor; border-radius: 2px; }
.i-board::after { inset: 4px 5px; border: solid currentColor; border-width: 0 1.2px; }
.i-table::before { inset: 2px 1px; border: 1.35px solid currentColor; border-radius: 2px; }
.i-table::after { inset: 6px 2px; border: solid currentColor; border-width: 1.35px 0; }
.i-dashboard::before { top: 1px; left: 1px; width: 6px; height: 6px; border-radius: 1.5px; background: currentColor; box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor; }
.i-archive::before { inset: 2px 1px 9px; border: 1.4px solid currentColor; border-radius: 2px; }
.i-archive::after { inset: 7px 3px 1px; border: solid currentColor; border-width: 0 1.4px 1.4px; border-radius: 0 0 2px 2px; }
.i-search::before { inset: 2px 5px 5px 2px; border: 1.5px solid currentColor; border-radius: 50%; }
.i-search::after { top: 10px; left: 10px; width: 5px; height: 1.5px; background: currentColor; transform: rotate(45deg); transform-origin: left; }
.i-timeline::before { width: 8px; height: 2px; top: 3px; left: 1px; background: currentColor; border-radius: 3px; box-shadow: 4px 4px 0 currentColor, 6px 8px 0 currentColor; }
.i-people::before { left: 5px; top: 1px; width: 6px; height: 6px; border: 1.3px solid currentColor; border-radius: 50%; }
.i-people::after { left: 2px; right: 2px; top: 9px; height: 5px; border: solid currentColor; border-width: 1.3px 1.3px 0; border-radius: 5px 5px 0 0; }
.i-download::before { left: 2px; right: 2px; bottom: 1px; height: 4px; border: solid currentColor; border-width: 0 1.3px 1.3px; border-radius: 2px; }
.i-download::after { left: 5px; top: 3px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.i-menu::before { width: 12px; height: 1.5px; top: 4px; left: 2px; background: currentColor; box-shadow: 0 3.5px 0 currentColor, 0 7px 0 currentColor; }
.i-grip::before { width: 2.5px; height: 2.5px; top: 2.75px; left: 4.5px; border-radius: 50%; background: currentColor; box-shadow: 0 4px currentColor, 0 8px currentColor, 5px 0 currentColor, 5px 4px currentColor, 5px 8px currentColor; }
.i-gear::before { inset: 2px; border: 1.7px dotted currentColor; border-radius: 50%; }
.i-gear::after { inset: 5px; border: 1.4px solid currentColor; border-radius: 50%; }
.i-layers::before { inset: 1px 2px 4px; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(-33deg) skewX(20deg); }
.i-layers::after { inset: 5px 2px 0; border: solid currentColor; border-width: 0 0 1.5px 1.5px; border-radius: 1px; transform: rotate(-33deg) skewX(20deg); }

.sidebar { min-height: 100vh; height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; background: var(--nav); color: var(--ink); border-right: 1px solid var(--nav-line); z-index: 12; }
.sidebar :focus-visible { outline-color: var(--nav-accent); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 0 18px; font-size: 18px; font-weight: 750; letter-spacing: -.025em; border-bottom: 1px solid var(--nav-line); }
.brand:focus-visible { outline-offset: -3px; }
.brand-logo { flex: 0 0 35px; width: 35px; height: 35px; border-radius: 10px; background: linear-gradient(135deg, #8270e8, #4d3db7); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; }
.brand-logo i { width: 15px; height: 2.5px; background: #fff; border-radius: 100px; margin-right: 4px; }
.brand-logo i:nth-child(2) { background: #ddd4ff; margin-right: -3px; }
.brand-logo i:nth-child(3) { width: 11px; margin-right: 7px; }
.side-content { padding: 19px 12px; overflow: auto; }
.side-title { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 7px 10px; color: var(--nav-muted); font-size: 13px; font-weight: 650; }
.side-title .icon-button { height: 25px; width: 27px; border-color: transparent; }
.project-list { display: grid; gap: 3px; }
.project-nav-item, .view-nav-item { position: relative; min-width: 0; }
.project-nav-item .project-link, .view-nav-item a { user-select: none; }
.order-handle { position: absolute; z-index: 1; top: 50%; right: 3px; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; user-select: none; }
.order-handle:hover, .order-handle:focus-visible { background: var(--accent-soft); color: var(--accent-dark); }
.order-handle:active, .ordering .order-handle { cursor: grabbing; }
.ordering { opacity: .55; }
[data-order-drop]::after { content: ''; position: absolute; z-index: 2; pointer-events: none; border-radius: 2px; background: var(--accent); }
.project-nav-item[data-order-drop]::after { height: 3px; inset-inline: 1px; background: var(--nav-accent); }
.project-nav-item[data-order-drop="before"]::after { top: 0; }
.project-nav-item[data-order-drop="after"]::after { bottom: 0; }
.view-nav-item[data-order-drop]::after { width: 3px; inset-block: 3px; }
.view-nav-item[data-order-drop="before"]::after { left: 0; }
.view-nav-item[data-order-drop="after"]::after { right: 0; }
.project-link, .side-tool {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--nav-text); text-align: left; font-size: 14px;
}
.project-nav-item:has(.order-handle) .project-link { padding-right: 35px; }
.project-nav-item .order-handle { color: var(--nav-muted); }
.project-nav-item .order-handle:hover, .project-nav-item .order-handle:focus-visible { background: var(--nav-hover); color: var(--nav-accent); }
.project-link span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-link:hover, .side-tool:hover { background: var(--nav-hover); color: var(--accent-dark); }
.project-link.selected { color: var(--accent-dark); background: var(--nav-active); box-shadow: inset 3px 0 var(--nav-accent); font-weight: 700; }
.dashboard-link { font-weight: 700; }
.archive-link { margin: 3px 0 13px; }
.dashboard-link.selected, .archive-link.selected { color: var(--accent-dark); background: var(--nav-active); box-shadow: inset 3px 0 var(--nav-accent); }
.color-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.project-label { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--muted); font-size: 11px; line-height: 1.25; }
.project-label .color-dot { flex-basis: 6px; width: 6px; height: 6px; }
.project-label > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assigned-resources { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; max-width: 100%; }
.resource-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; padding: 2px 5px; border-radius: 6px; background: #f0edf8; color: #4a3f68; font-size: 12px; font-weight: 600; line-height: 1.3; }
.resource-chip .color-dot { flex-basis: 6px; width: 6px; height: 6px; }
.resource-chip-name { min-width: 0; overflow-wrap: anywhere; }
.tone-surface { --pale: color-mix(in srgb, var(--tone) 12%, white); }
.side-divider { height: 1px; background: var(--nav-line); margin: 16px 9px 9px; }
.side-bottom { margin-top: auto; padding: 14px 13px; }
.side-bottom .install { margin-bottom: 13px; }
.account { border-top: 1px solid var(--nav-line); padding: 14px 9px 2px; display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--nav-active); color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.account strong, .account small { display: block; }
.account strong { font-size: 13px; }
.account small { margin-top: 2px; color: var(--nav-muted); font-size: 12px; }
.account small i { display: inline-block; height: 6px; width: 6px; margin-right: 5px; border-radius: 50%; background: var(--nav-accent); }

.main { min-width: 0; }
.topbar { height: 56px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumbs, .top-date { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.breadcrumbs strong { color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.top-date { margin-left: 16px; font-variant-numeric: tabular-nums; }
.mobile-brand { display: none; }
.mobile-menu, .mobile-overlay { display: none !important; }
.workspace { max-width: 1800px; margin: auto; padding: 28px 32px 36px; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.project-heading-main { min-width: 0; display: flex; align-items: center; gap: 14px; }
.project-emblem { display: grid; flex: 0 0 47px; place-items: center; height: 47px; border: 1px solid color-mix(in srgb, var(--tone) 18%, white); border-radius: 12px; background: var(--pale); color: var(--tone); }
.project-emblem .icon { transform: scale(1.28); }
.project-heading h1 { font-size: clamp(26px, 2.3vw + 1px, 35px); line-height: 1.18; letter-spacing: -.04em; overflow-wrap: anywhere; }
.project-heading p { margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }
.heading-actions { display: flex; align-items: center; flex-shrink: 0; gap: 9px; }
.dashboard-heading { position: relative; isolation: isolate; overflow: hidden; padding: 23px 26px; border-radius: 17px; background: linear-gradient(112deg, #302653, #5946a0); color: white; }
.dashboard-heading::after { content: ''; position: absolute; z-index: -1; width: 310px; height: 310px; right: -108px; top: -145px; border: 1px solid #fff3; border-radius: 50%; box-shadow: 0 0 0 30px #fff1, 0 0 0 62px #fff1; pointer-events: none; }
.dashboard-heading .project-emblem { display: grid; background: #ffffff24; border-color: #ffffff36; color: #fff; }
.dashboard-heading p { color: #eae3ff; }
.dashboard-heading .heading-actions { gap: 16px; }
.dashboard-heading .button.primary { color: #403087; background: #fff; border-color: #fff; }
.dashboard-heading .button.primary:hover { background: #efebff; border-color: #efebff; }
.dashboard-heading button:focus-visible { outline-color: #dfd2ff; }
.dashboard-completion { display: inline-flex; align-items: center; gap: 8px; color: #f6f1ff; font-size: 12px; font-weight: 650; white-space: nowrap; }
.dashboard-ring { display: grid; place-items: center; width: 54px; height: 54px; padding: 4px; border-radius: 50%; background: conic-gradient(#e1d7ff var(--completion), #ffffff33 0); }
.dashboard-ring span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #47367c; color: white; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.dashboard-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.metric { --metric-bg: #efebff; --metric-text: #5945af; display: grid; gap: 5px; min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.metric-check { --metric-bg: #e6f6ee; --metric-text: #216748; }
.metric-clock { --metric-bg: #fff0ec; --metric-text: #994a3a; }
.metric-people { --metric-bg: #eaf2ff; --metric-text: #315eaa; }
.dashboard-summary dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.metric-icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 7px; background: var(--metric-bg); color: var(--metric-text); }
.dashboard-summary dd { margin: 0; line-height: 1.17; font-size: 25px; font-weight: 750; font-variant-numeric: tabular-nums; }
.dashboard-summary + .workspace-nav { margin-top: 13px; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-weight: 650; white-space: nowrap; }
.button:hover, .icon-button:hover { background: var(--accent-soft); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; min-height: 37px; }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.small { min-height: 31px; font-size: 13px; padding: 0 10px; }
.button.danger { color: #9e283c; }
.button.confirm-delete { background: #a12b3e; color: white; border-color: #a12b3e; }
.icon-button { height: 34px; width: 34px; min-height: 0; padding: 0; color: var(--muted); }
.side-title .icon-button { color: inherit; background: transparent; }
.side-title .icon-button:hover { color: var(--accent-dark); background: var(--nav-hover); }

.workspace-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 33px 0 12px; border-radius: 5px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.tabs a:hover { color: var(--accent); }
.tabs a:focus-visible { outline-offset: -3px; }
.tabs a.active { background: var(--accent-soft); color: var(--accent-dark); }
.project-progress { display: flex; gap: 9px; align-items: center; flex-shrink: 0; padding: 0 8px; color: var(--muted); font-size: 13px; }
.project-progress strong { color: var(--ink); }
.progress-rail { display: block; width: 65px; height: 5px; border-radius: 10px; background: #eae5f6; overflow: hidden; }
.progress-rail i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: #7360d5; }

.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.dashboard-content { display: grid; gap: 14px; align-items: start; }
.dashboard-task-view { min-width: 0; container: dashboard-tasks / inline-size; }
.dashboard-agenda { --agenda-divider: #efecf5; }
.agenda-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--agenda-divider); }
.agenda-header h2 { font-size: 16px; letter-spacing: -.02em; }
.agenda-header p { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.agenda-header a { color: var(--accent-dark); font-size: 12px; }
.agenda-list { margin: 0; padding: 5px 11px; list-style: none; }
.agenda-list li + li { border-top: 1px solid var(--agenda-divider); }
.agenda-entry { display: grid; grid-template-columns: 45px minmax(0, 1fr) 16px; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 3px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.agenda-entry:hover { background: #f6f3fc; }
.agenda-day { display: grid; place-items: center; align-content: center; min-height: 40px; border-radius: 7px; background: var(--entry-bg); color: var(--entry-text); font-size: 11px; line-height: 1.2; }
.agenda-day time { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.agenda-entry-detail { display: grid; min-width: 0; }
.agenda-entry-detail strong, .agenda-entry-detail small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-entry-detail strong { font-size: 13px; }
.agenda-entry-detail small, .agenda-entry > .icon { color: var(--muted); }
.agenda-empty { padding: 17px 14px; color: var(--muted); font-size: 13px; }
@media (min-width: 1220px) {
  .dashboard-content { grid-template-columns: minmax(0, 1fr) minmax(250px, 26%); }
  .dashboard-agenda { grid-column: 2; grid-row: 1; }
  .dashboard-task-view { grid-column: 1; grid-row: 1; }
}
.panel-toolbar, .panel-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 11px 15px; }
.panel-toolbar { min-height: 57px; border-bottom: 1px solid var(--line); }
.panel-footer { border-top: 1px solid var(--line); color: var(--muted); min-height: 43px; font-size: 13px; }
.range-tools, .arrow-group, .modes, .legend { display: flex; align-items: center; gap: 8px; }
.range-tools { flex-wrap: wrap; }
.jump-date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.jump-date input { height: 31px; min-width: 0; border: 1px solid var(--line); border-radius: 5px; background: white; padding: 0 6px; color: var(--ink); }
.arrow-group, .modes { gap: 0; }
.arrow-group .icon-button { width: 31px; height: 31px; border-radius: 6px 0 0 6px; }
.arrow-group .icon-button + .icon-button { border-left: 0; border-radius: 0 6px 6px 0; }
.date-range { font-size: 14px; color: var(--ink); margin: 0 6px 0 3px; font-variant-numeric: tabular-nums; }
.modes { border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); padding: 2px; }
.modes button { background: transparent; border: 1px solid transparent; border-radius: 5px; min-height: 26px; padding: 0 9px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.modes button.current { background: #fff; border-color: #dfe6f2; color: var(--accent); font-weight: 700; }
.legend { gap: 13px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i, .status i, .board-column h2 i, .calendar-entry i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--state, var(--entry)); }

.status-todo, .bar-todo { --state: #7760c2; --state-text: #503b97; --state-bg: #f0ebfb; --state-fill: #d9cdf5; }
.status-doing, .bar-doing { --state: #4976dc; --state-text: #2853ad; --state-bg: #eaf0ff; --state-fill: #aec4f6; }
.status-review, .bar-review { --state: #a46925; --state-text: #854c0c; --state-bg: #fff2dd; --state-fill: #f3d7a3; }
.status-done, .bar-done { --state: #248b73; --state-text: #126050; --state-bg: #e5f5ef; --state-fill: #b6e5d6; }
.status { display: inline-flex; align-items: center; width: max-content; gap: 5px; border-radius: 4px; background: var(--state-bg); color: var(--state-text); font-size: 12px; font-weight: 700; line-height: 1.1; padding: 5px 6px; white-space: nowrap; }

.timeline-scroll, .scheduler-scroll, .calendar-scroll { overflow: auto; }
.gantt-grid { position: relative; display: grid; grid-template-columns: var(--list-width) minmax(var(--timeline-min, var(--timeline-width)), 1fr); min-width: max-content; }
.table-head, .task-info { position: sticky; left: 0; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) 65px 53px; gap: 7px; align-items: center; padding: 0 12px; border-right: 1px solid #ded7ed; }
.table-head { min-height: 61px; z-index: 5; background: #f5f2fa; color: var(--muted); font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); }
.table-head span:last-child, .task-percent { text-align: right; }
.task-info, .timeline-row { min-height: var(--row); background: #fff; border-bottom: 1px solid #e7e2f0; }
.timeline-row { position: relative; }
:is(.task-info, .timeline-row).lane-alt { background: #faf8fd; }
:is(.task-info, .timeline-row).summary-row { background: color-mix(in srgb, var(--tone) 11%, white); }
:is(.task-info, .timeline-row).lane-start { border-top: 1px solid color-mix(in srgb, var(--tone) 38%, white); }
.task-info:is(.summary-row, .lane-start) { box-shadow: inset 4px 0 var(--tone); }
.task-info:is(:hover, :focus-within) + .timeline-row,
.task-info:has(+ .timeline-row:is(:hover, :focus-within)),
:is(.task-info, .timeline-row):is(:hover, :focus-within) {
  background: color-mix(in srgb, var(--tone) 16%, white);
}
.task-name { display: flex; align-items: center; min-width: 0; padding-left: min(calc(var(--depth) * 14px), 30%); }
.task-name .icon-button { width: 23px; height: 25px; flex: 0 0 23px; border-color: transparent; background: transparent; }
.task-name .icon-button:hover { background: #ffffff8c; }
.task-indent { position: relative; flex: 0 0 23px; }
.task-child .task-indent::before { content: ''; position: absolute; top: -5px; left: 4px; width: 8px; height: 7px; border: solid color-mix(in srgb, var(--tone) 42%, white); border-width: 0 0 1px 1px; border-bottom-left-radius: 3px; }
.gantt-task-detail { min-width: 0; padding-block: 5px; }
.gantt-task-detail .project-label { margin-bottom: 3px; }
.task-link { display: block; max-width: 100%; padding: 3px 0; border: 0; border-radius: 3px; background: transparent; text-align: left; font-size: 14px; line-height: 1.3; }
.gantt-task-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; word-break: keep-all; }
.task-link:hover { color: var(--accent); }
.summary-row .task-link { font-weight: 750; }
.task-percent { color: #4b5b73; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13px; }
.timeline-head { display: grid; grid-template-rows: 25px 36px; background: #f8f6fc; border-bottom: 1px solid var(--line); }
.month-strip { position: relative; overflow: hidden; border-bottom: 1px solid #e9e3f3; }
.month-strip span { position: absolute; left: calc(var(--offset) + 7px); top: 4px; font-weight: 700; color: #4c5d75; font-size: 11px; }
.day-strip, .grid-lines { display: grid; grid-template-columns: var(--timeline-columns); }
.day-strip div { display: grid; justify-items: center; align-content: center; border-right: 1px solid #e9e3f3; line-height: 1.1; color: #68788f; font-size: 10px; }
.day-strip time { margin-top: 4px; font-weight: 700; font-size: 12px; color: #374961; }
.gantt-grouped .day-strip time { max-width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-strip .weekend, .grid-lines .weekend { background: #a28db617; }
.day-strip .is-today { background: var(--accent-soft); color: var(--accent-dark); }
.day-strip .is-today time { color: var(--accent-dark); }
.grid-lines { position: absolute; inset: 0; pointer-events: none; }
.grid-lines div { border-right: 1px solid #ded6e780; }
.grid-lines .today-column { border-left: 1px solid #9e88df; background: #b9a4f23b; }
.gantt-today-line .grid-lines::after { content: ''; position: absolute; inset: 0 auto 0 var(--today-offset); width: 1px; background: #9e88df; }
.task-bar { display: flex; align-items: stretch; position: absolute; top: 50%; transform: translateY(-50%); left: min(calc(var(--offset) + 3px), calc(100% - 9px)); width: max(9px, calc(var(--span) - 7px)); height: 26px; min-width: 0; z-index: 2; border: 1px solid color-mix(in srgb, var(--state) 51%, white); border-radius: 6px; background: linear-gradient(90deg, var(--state-fill) var(--progress), var(--state-bg) var(--progress)); color: var(--state-text); box-shadow: inset 2px 0 var(--state), 0 1px 2px #38205216; }
.task-bar.group-bar { height: 20px; border-width: 0 0 2px 0; border-radius: 5px 5px 3px 3px; }
.bar-body { width: 100%; min-width: 0; border: 0; background: transparent; text-align: left; font-size: 12px; font-weight: 680; padding: 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: grab; }
.bar-body:hover { background: #fff4; }
.bar-body:focus-visible { outline-offset: -2px; }
.resize-handle { position: absolute; right: 0; top: 2px; bottom: 2px; width: 6px; cursor: ew-resize; border-right: 1px solid color-mix(in srgb, var(--state) 35%, transparent); }
.dependencies { position: absolute; z-index: 3; pointer-events: none; }
.dropping { outline: 2px solid #6a96ef; outline-offset: -2px; }
.empty { padding: 38px 14px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 10px; }

.task-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.task-search, .task-filter { display: flex; align-items: center; gap: 7px; min-height: 38px; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); }
.task-search { flex: 0 1 235px; }
.task-search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.task-search input { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.task-search input::placeholder { color: var(--muted); }
.task-filter { font-size: 13px; }
.task-filter select { min-height: 34px; padding: 0 2px; border: 0; background: transparent; color: var(--ink); font-weight: 650; cursor: pointer; }
.task-result-count { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.gantt-range-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 15px; border-bottom: 1px solid var(--line); background: #faf8fd; }
.gantt-range-actions, .gantt-date-fields { display: flex; align-items: center; gap: 8px; }
.gantt-range-actions strong { font-size: 13px; }
.gantt-range-actions .icon-button { font-size: 19px; font-weight: 650; }
.gantt-range-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-table-frame { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.task-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.task-table thead th { padding: 11px 14px; background: #f3f0fa; color: var(--muted); font-size: 13px; font-weight: 700; }
.task-table thead th:nth-child(2) { width: 115px; }
.task-table thead .task-resource-col { width: 23%; }
.task-table thead .task-date-col { width: 20%; }
.task-table thead .task-progress-col { width: 112px; }
.task-table thead th:last-child { width: 54px; }
.task-unassigned { color: var(--muted); font-size: 13px; }
.task-group th { padding: 0 12px; border-top: 1px solid color-mix(in srgb, var(--tone) 28%, white); background: color-mix(in srgb, var(--tone) 10%, white); box-shadow: inset 3px 0 var(--tone); }
.task-group button, .task-group-name { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; max-width: 100%; padding: 0 6px; border: 0; background: none; color: #493b75; font-size: 14px; font-weight: 750; text-align: left; overflow-wrap: anywhere; }
.task-group button:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-group-count { margin-left: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.task-data-row > * { padding: 7px 14px; border-top: 1px solid var(--line); }
.task-data-row:nth-child(even) > * { background: #fcfaff; }
.task-data-row:is(:hover, :focus-within) > * { background: color-mix(in srgb, var(--tone) 8%, white); }
.task-table-title { padding-left: calc(var(--depth) * 14px); }
.task-table-title button { display: block; width: 100%; min-height: 34px; padding: 3px 0; border: 0; background: transparent; text-align: left; overflow-wrap: anywhere; font-weight: 650; }
.task-table-title button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.task-status { width: 100%; min-height: 32px; padding: 0 6px; border: 1px solid transparent; border-left: 3px solid var(--state); border-radius: 5px; background: var(--state-bg); color: var(--state-text); font-size: 13px; font-weight: 700; cursor: pointer; }
.task-status option { background: #fff; color: var(--ink); }
.task-data-row .task-date-col, .task-table-progress { font-size: 13px; font-variant-numeric: tabular-nums; }
.task-table-progress { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.task-table-progress .progress-rail { flex: 1; min-width: 20px; }
.task-date-col small { display: block; font-size: 12px; }
.task-overdue { color: #923c27; }
.task-data-row .task-jump { padding: 5px; text-align: center; }
.task-jump .icon-button { width: 31px; height: 31px; }
.task-group-add td { padding: 0 13px; border-top: 1px solid var(--line); }
.task-group-add button { display: inline-flex; align-items: center; gap: 4px; min-height: 33px; padding: 0 5px; border: 0; background: none; color: var(--accent-dark); font-size: 13px; font-weight: 650; }
.task-group-add button:hover { text-decoration: underline; }
.task-mobile-meta { display: none; }

.board-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 13px; overflow: auto; padding: 3px; }
.board-column { min-height: 380px; min-width: 0; background: color-mix(in srgb, var(--state-bg) 64%, #f7f6fb); border: 1px solid color-mix(in srgb, var(--state) 18%, var(--line)); border-radius: 12px; }
.board-column header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-bottom: 2px solid var(--state); border-radius: 11px 11px 0 0; background: #fff; color: var(--state-text); }
.board-column h2 { font-size: 15px; display: flex; align-items: center; gap: 7px; }
.count { background: var(--state-bg); border-radius: 12px; padding: 0 7px; font-size: 11px; color: var(--state-text); font-weight: 700; }
.board-cards { display: grid; align-content: start; gap: 10px; padding: 10px; }
.board-card { display: flex; flex-direction: column; gap: 7px; text-align: left; min-width: 0; border: 1px solid var(--line); border-inline-start: 3px solid var(--state); border-radius: 10px; padding: 12px; background: #fff; box-shadow: 0 2px 3px #2b1d5910; cursor: grab; }
.board-card:hover { border-color: var(--state); box-shadow: 0 4px 11px #39276b1a; }
.board-card > strong, .board-card > small { overflow-wrap: anywhere; }
.board-card > strong { line-height: 1.35; }
.board-card > small { color: var(--muted); font-size: 12px; }
.board-card > .project-label { padding: 3px 6px; border: 1px solid #eae3f5; border-radius: 6px; background: #f8f5fc; font-size: 11px; }
.board-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 2px; color: var(--muted); font-size: 12px; }
.board-card-meta .icon { transform: scale(.8); }
.board-card .progress-rail { width: 100%; height: 5px; }
.board-card .progress-rail i { background: var(--state); }
.board-empty { color: var(--muted); padding: 14px 4px; text-align: center; font-size: 12px; }
.board-add { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 3px 6px; border: 1px dashed color-mix(in srgb, var(--state) 48%, white); border-radius: 8px; background: #fff9; color: var(--state-text); font-size: 13px; font-weight: 680; }
.board-add:hover { border-style: solid; background: white; }

.schedule-scope { display: flex; align-items: center; gap: 7px; padding: 8px 15px; border-bottom: 1px solid var(--line); background: #f5f8f4; color: var(--accent-dark); font-size: 13px; }
.schedule-scope span:last-child { margin-left: auto; color: var(--muted); }
.schedule-grid { display: grid; grid-template-columns: 165px minmax(calc(var(--slots) * 108px), 1fr); min-width: max-content; }
.schedule-grid.schedule-day { grid-template-columns: 165px minmax(calc(var(--slots) * 66px), 1fr); }
.schedule-lane { position: relative; display: grid; grid-template-columns: repeat(var(--slots), minmax(0, 1fr)); min-width: 0; }
.schedule-day .schedule-lane > .booking-chip { position: absolute; top: 12px; left: calc(var(--offset) + 2px); width: max(12px, calc(var(--span) - 3px)); min-height: 34px; overflow: hidden; z-index: 1; }
.schedule-header { min-height: 57px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; background: #f8fafd; border: solid var(--line); border-width: 0 1px 1px 0; color: var(--muted); font-size: 12px; }
.schedule-header strong { font-size: 13px; color: var(--ink); }
.schedule-resource { position: sticky; left: 0; z-index: 2; min-width: 0; min-height: 76px; padding: 0 10px; display: flex; gap: 9px; align-items: center; justify-content: flex-start; text-align: left; background: #f8fafd; border: solid var(--line); border-width: 0 1px 1px 0; }
.schedule-resource.schedule-header { justify-content: space-between; flex-direction: row; min-height: 57px; font-weight: 700; }
.schedule-resource .icon-button { width: 25px; height: 25px; }
.schedule-resource small { color: var(--muted); display: block; font-size: 11px; }
.schedule-slot { padding: 5px; min-height: 76px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; border: solid #edf0f6; border-width: 0 1px 1px 0; }
.schedule-slot.highlight, .schedule-header.highlight { background: #edf4ff; }
.booking-chip { min-width: 0; display: block; border: 1px solid color-mix(in srgb, var(--tone) 31%, white); border-left: 3px solid var(--tone); border-radius: 5px; background: var(--pale); padding: 4px; color: #253757; text-align: left; cursor: grab; }
.booking-chip strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-chip small { display: block; font-size: 11px; white-space: nowrap; }
.booking-chip .project-label { display: flex; }
.booking-chip .outside { color: #953f24; }
.slot-add { margin-top: auto; border: 0; background: transparent; color: #5572b4; min-height: 19px; border-radius: 4px; opacity: 0; }
.schedule-slot:hover .slot-add, .slot-add:focus-visible { opacity: 1; }
.slot-add:hover { background: #dce8fb; }

.calendar-month { display: grid; grid-template-columns: repeat(7, minmax(101px, 1fr)); min-width: 715px; }
.calendar-weekday { padding: 9px; background: #f8fafd; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 700; text-align: center; }
.calendar-cell { min-height: 97px; min-width: 0; padding: 4px 6px; border: solid #e8edf5; border-width: 0 1px 1px 0; }
.calendar-cell.muted { background: #f8fafd; color: #68788f; }
.calendar-cell-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.calendar-date { display: grid; place-items: center; background: transparent; border: 0; border-radius: 50%; width: 27px; height: 27px; font-size: 12px; font-weight: 700; }
.calendar-date:hover { background: #e5edff; }
.calendar-today { background: #f4efff; }
.calendar-today .calendar-date { background: var(--accent); color: #fff; }
.calendar-cell-head .icon-button { border-color: transparent; background: transparent; width: 23px; height: 23px; opacity: 0; }
.calendar-cell:hover .icon-button, .calendar-cell-head .icon-button:focus-visible { opacity: 1; }
.calendar-entry { min-width: 0; width: 100%; display: flex; align-items: center; gap: 4px; margin: 0 0 3px; padding: 3px 4px; border: 0; border-radius: 3px; background: var(--entry-bg); color: var(--entry-text); text-align: left; font-size: 12px; line-height: 1.25; }
.calendar-entry:hover { box-shadow: inset 0 0 0 1px var(--entry); }
.calendar-entry span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-entry .project-label { color: var(--entry-text); }
.entry-task { --entry: #4873d6; --entry-bg: #e8efff; --entry-text: #2e4e97; }
.entry-booking { --entry: #248977; --entry-bg: #e4f3ef; --entry-text: #14594e; }
.entry-event { --entry: #815abc; --entry-bg: #f0e9fa; --entry-text: #5e388e; }
.calendar-time-scroll { max-height: min(610px, 68vh); }
.calendar-time-grid { --hour: 43px; display: grid; grid-template-columns: 68px repeat(var(--days), minmax(0, 1fr)); }
.calendar-time-grid.calendar-time-week { min-width: 770px; }
.calendar-time-heading, .calendar-clock-heading { position: sticky; top: 0; z-index: 3; padding: 8px; background: #f8fafd; border: solid var(--line); border-width: 0 1px 1px 0; }
.calendar-time-heading.calendar-today { background: #edf4ff; }
.calendar-clock-heading { left: 0; z-index: 4; color: var(--muted); font-size: 11px; }
.calendar-time-heading h2 { display: flex; justify-content: space-between; align-items: center; min-height: 30px; font-size: 13px; }
.calendar-time-heading h2 .icon-button { width: 25px; height: 25px; }
.calendar-time-heading .calendar-entry { max-width: 500px; }
.calendar-clock { position: sticky; left: 0; z-index: 2; background: #f8fafd; border-right: 1px solid var(--line); }
.calendar-hour { height: var(--hour); padding: 4px 8px; border-bottom: 1px solid #e8edf5; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.calendar-time-lane { height: calc(24 * var(--hour)); min-width: 0; position: relative; border-right: 1px solid #e8edf5; }
.calendar-time-lane::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hour) - 1px), #e8edf5 calc(var(--hour) - 1px) var(--hour)); }
.calendar-time-lane .calendar-entry { position: absolute; top: var(--entry-top); left: calc(var(--entry-left) + 3px); width: calc(var(--entry-width) - 6px); height: max(17px, var(--entry-height)); margin: 0; border-left: 3px solid var(--entry); padding-left: 5px; }
.calendar-time-lane .calendar-entry:focus-visible { z-index: 1; }

dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid #dce5f4; border-radius: 12px; color: var(--ink); box-shadow: 0 20px 90px #14243c45; }
dialog::backdrop { background: #10203975; }
.dialog-header, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 14px 17px; }
.dialog-header { border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 19px; }
.dialog-footer { border-top: 1px solid var(--line); }
.dialog-footer > div { margin-left: auto; display: flex; gap: 7px; }
.dialog-body { display: grid; gap: 11px; padding: 16px 17px; }
.field, .field-row { display: grid; gap: 5px; min-width: 0; }
.field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.field span, .field > label { color: #4a5e77; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 37px; min-width: 0; padding: 5px 8px; background: #fff; color: var(--ink); border: 1px solid #d6e0ee; border-radius: 6px; }
.field textarea { resize: vertical; }
.task-memo { display: grid; gap: 12px; min-width: 0; padding-top: 11px; border-top: 1px solid var(--line); }
.task-memo h3 { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.task-replies { display: grid; gap: 7px; }
.task-replies .button { justify-self: start; }
.reply-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.reply-list:empty { display: none; }
.reply-list li { min-width: 0; padding: 8px 10px; border-left: 2px solid #c4b7f0; border-radius: 5px; background: #f8f5fc; }
.reply-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-bottom: 3px; font-size: 12px; }
.reply-meta time { color: var(--muted); font-size: 11px; }
.memo-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-footer:has([name="archive"]), .dialog-footer:has([name="archive"]) > div { flex-wrap: wrap; }
.dialog-footer [name="archive"]:not(:disabled) { color: var(--accent-dark); border-color: #c9b9ef; background: var(--accent-soft); }
.dialog-footer [name="archive"]:disabled { cursor: not-allowed; }
.archive-view { margin-top: 17px; }
.archive-list { display: grid; margin: 0; padding: 5px 12px; list-style: none; }
.archive-list li + li { border-top: 1px solid var(--line); }
.archive-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 16px; gap: 8px 14px; align-items: center; width: 100%; min-height: 58px; padding: 9px 7px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.archive-item:hover { background: #f7f3fd; }
.archive-item-name { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.archive-item-period, .archive-item-date, .archived-task-period { color: var(--muted); font-size: 12px; }
.archived-task-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.archived-task-heading h3 { margin: 0; overflow-wrap: anywhere; }
.archived-task-period { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.color-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.color-picker legend { padding: 0 0 6px; color: #4a5e77; font-size: 13px; font-weight: 700; }
.color-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.color-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.color-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.color-swatch { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 44px; padding: 4px 1px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #405169; font-size: 11px; font-weight: 650; text-align: center; white-space: nowrap; }
.color-swatch i { width: 17px; height: 17px; border: 1px solid #14243c23; border-radius: 50%; background: var(--swatch); }
.color-option:hover .color-swatch { background: #f4f7fc; }
.color-option input:checked + .color-swatch { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #eef3ff; color: #244fae; }
.color-option input:focus-visible + .color-swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
.assignment-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.assignment-picker legend { padding: 0 0 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.assignment-picker p { color: var(--muted); font-size: 13px; }
.assignment-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 37px; padding: 6px 9px; border: 1px solid #d6e0ee; border-radius: 6px; background: #fff; color: var(--muted); cursor: pointer; list-style: none; }
.assignment-trigger::-webkit-details-marker { display: none; }
.assignment-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.assignment-value { min-width: 0; }
.assignment-placeholder { font-size: 13px; }
.assignment-dropdown[open] .assignment-trigger { border-radius: 6px 6px 0 0; }
.assignment-dropdown[open] .assignment-trigger > .icon { transform: rotate(180deg); }
.assignment-options { display: grid; gap: 3px; max-height: 180px; overflow: auto; padding: 4px; border: 1px solid #d6e0ee; border-top: 0; border-radius: 0 0 6px 6px; background: #fff; }
.assignment-option { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 40px; padding: 5px 8px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; cursor: pointer; }
.assignment-option:hover { background: var(--accent-soft); }
.assignment-option > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.assignment-option small { display: block; color: var(--muted); }
.assignment-option input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.assignment-option:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.assignment-option:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-error, .reply-error { padding: 8px 10px; background: #fcecf0; border-radius: 5px; color: #91253d; font-size: 13px; }
.resource-entry { display: grid; grid-template-columns: 10px 1fr auto 16px; gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafd; text-align: left; }
.project-choice { grid-template-columns: 10px minmax(0, 1fr) 16px; overflow-wrap: anywhere; }
.resource-entry span { color: var(--muted); }
.install-help { line-height: 1.7; }
.notice { position: fixed; z-index: 14; right: 20px; bottom: 20px; max-width: calc(100% - 40px); width: max-content; padding: 11px 15px; border: 1px solid #4e6d78; border-radius: 7px; background: #203b4d; color: white; box-shadow: 0 7px 20px #18253829; }
.notice.error { background: #8a2d44; border-color: #a6475e; }

@media (max-width: 1080px) {
  #app { grid-template-columns: 185px minmax(0, 1fr); }
  .topbar, .workspace { padding-left: 20px; padding-right: 20px; }
  :root { --list-width: 285px; }
  .table-head, .task-info { grid-template-columns: minmax(0, 1fr) 65px 38px; gap: 4px; padding: 0 8px; }
}
@media (max-width: 940px) {
  .task-table { table-layout: auto; }
  .task-table .task-resource-col, .task-table .task-date-col, .task-table .task-progress-col { display: none; }
  .task-mobile-meta { display: block; padding-bottom: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
  .task-mobile-meta.task-overdue { color: #923c27; }
}
@container dashboard-tasks (max-width: 720px) {
  .task-table { table-layout: auto; }
  .task-table .task-resource-col, .task-table .task-date-col, .task-table .task-progress-col { display: none; }
  .task-mobile-meta { display: block; padding-bottom: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
  .task-mobile-meta.task-overdue { color: #923c27; }
}
@media (max-width: 720px) {
  #app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; position: fixed; top: 0; bottom: 0; left: 0; width: 220px; }
  .sidebar.sidebar-open { display: flex; }
  .mobile-overlay { display: block !important; position: fixed; z-index: 10; inset: 0; background: #2b214970; border: 0; }
  .mobile-menu { display: inline-flex !important; width: 34px; height: 34px; }
  .mobile-brand { display: inline; font-weight: 750; color: var(--ink); }
  .breadcrumbs .breadcrumb-root, .breadcrumbs .breadcrumb-divider, .breadcrumbs strong { display: none; }
  .topbar { height: 50px; }
  .topbar, .workspace { padding-left: 12px; padding-right: 12px; }
  .workspace { padding-top: 20px; }
  .project-heading { align-items: flex-start; }
  .project-heading-main { align-items: flex-start; gap: 8px; }
  .project-emblem { height: 33px; flex-basis: 33px; border-radius: 8px; }
  .project-emblem .icon { transform: none; }
  .project-heading h1 { font-size: 23px; }
  .project-heading p { font-size: 13px; margin-top: 4px; }
  .dashboard-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 15px 16px; border-radius: 13px; }
  .dashboard-heading .heading-actions { justify-content: space-between; }
  .dashboard-ring { width: 42px; height: 42px; padding: 3px; }
  .dashboard-ring span { font-size: 13px; }
  .dashboard-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .dashboard-summary .metric { grid-column: span 2; gap: 4px; padding: 7px; border-radius: 9px; }
  .dashboard-summary .metric:nth-child(n+4) { grid-column: span 3; }
  .metric-icon { flex-basis: 21px; width: 21px; height: 21px; }
  .metric-icon .icon { transform: scale(.84); }
  .dashboard-summary dt { gap: 4px; font-size: 12px; }
  .dashboard-summary dd { font-size: 20px; }
  .agenda-list li:nth-child(n+4) { display: none; }
  .heading-actions { gap: 4px; }
  .heading-actions .button { padding: 0 7px; min-height: 33px; font-size: 13px; }
  .heading-actions .icon-button { width: 30px; height: 32px; }
  .workspace-nav { flex-wrap: wrap; gap: 2px; margin: 15px 0 12px; }
  .tabs a { padding: 0 31px 0 7px; min-height: 36px; font-size: 13px; gap: 3px; }
  .tabs .icon { transform: scale(.8); }
  .project-progress { margin-left: auto; min-height: 26px; }
  .task-table thead th:nth-child(2) { width: 101px; }
  .task-table thead th:last-child { width: 38px; }
  .task-table thead th, .task-data-row > * { padding-left: 7px; padding-right: 7px; }
  .task-table-title { padding-left: calc(var(--depth) * 7px); }
  .task-status { min-height: 38px; padding: 0 2px; }
  .task-search { flex: 1 1 100%; }
  .task-search input { font-size: 16px; }
  .task-filter { padding: 0 5px; gap: 3px; }
  .task-result-count { font-size: 12px; }
  .archive-item { grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 9px; }
  .archive-item > .icon { grid-area: 1 / 2; }
  .archive-item-period, .archive-item-date { grid-column: 1 / -1; }
  .gantt-range-toolbar { padding: 8px; }
  .gantt-range-actions { flex-wrap: wrap; }
  .gantt-date-fields { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .gantt-date-fields .jump-date { display: grid; min-width: 0; gap: 3px; }
  .gantt-date-fields input { width: 100%; }
  .task-jump .icon-button { width: 29px; }
  .panel-toolbar, .panel-footer { padding: 8px; }
  .panel-toolbar { min-height: 46px; }
  .range-tools { gap: 5px; }
  .date-range { font-size: 12px; }
  :root { --list-width: 154px; }
  .gantt-custom { --timeline-min: min(var(--timeline-width), 460px); }
  .table-head, .task-info { grid-template-columns: minmax(0, 1fr) 31px; padding: 0 3px; gap: 2px; }
  .table-head span:nth-child(2) { display: none; }
  .table-head span:last-child { white-space: nowrap; font-size: 10px; }
  .task-info { padding-block: 4px; }
  .task-info .task-name { grid-column: 1; grid-row: 1; }
  .task-info .status { grid-column: 1; grid-row: 2; margin-left: min(calc(15px + var(--depth) * 7px), 40px); padding: 3px 5px; font-size: 11px; }
  .task-info .task-percent { grid-column: 2; grid-row: 1; }
  .gantt-task-detail { padding-block: 2px; }
  .task-name { padding-left: min(calc(var(--depth) * 7px), 30%); }
  .task-name .icon-button, .task-indent { flex-basis: 15px; width: 15px; }
  .task-link { font-size: 12px; }
  .task-percent { font-size: 11px; }
  .board-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 8px; }
  .calendar-cell-head .icon-button, .slot-add { opacity: 1; }
  .schedule-grid { grid-template-columns: 112px minmax(calc(var(--slots) * 105px), 1fr); }
  .schedule-grid.schedule-day { grid-template-columns: 112px minmax(calc(var(--slots) * 60px), 1fr); }
  .schedule-resource { padding: 0 5px; gap: 5px; font-size: 13px; }
}
@media (max-width: 420px) {
  .color-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .top-date { font-size: 12px; margin-left: 5px; }
  .top-date .icon { display: none; }
  .project-emblem { display: none; }
  .heading-actions .button { font-size: 12px; }
}

.i-trash::before { inset: 5px 4px 1px; border: 1.35px solid currentColor; border-radius: 1px 1px 2px 2px; }
.i-trash::after { top: 3px; left: 3px; width: 10px; height: 1.5px; border-radius: 2px; background: currentColor; }
.i-logout::before { inset: 2px 7px 2px 1px; border: 1.4px solid currentColor; border-right: 0; border-radius: 2px 0 0 2px; }
.i-logout::after { top: 5px; right: 2px; width: 6px; height: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.side-tool.project-clear { color: #96364d; margin-top: 7px; }
.side-tool.project-clear:hover { color: #81283e; background: #fcf0f3; }
.account-label { flex: 1; min-width: 0; }
.account-label strong, .account-label small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account .avatar { flex: 0 0 32px; }
.account .icon-button { width: 29px; height: 29px; color: var(--nav-text); border-color: transparent; background: transparent; }
.account .icon-button:hover { color: var(--accent-dark); background: var(--nav-hover); }

.sign-in { grid-column: 1 / -1; display: grid; place-items: center; min-height: 100dvh; padding: 24px 13px; }
.auth-panel { width: min(100%, 410px); padding: clamp(23px, 6vw, 36px); border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 10px 42px #26395712; }
.auth-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; font-weight: 700; color: #43556f; }
.auth-panel h1 { font-size: 27px; letter-spacing: -.035em; }
.auth-panel > p { margin-top: 6px; color: var(--muted); }
.auth-panel form { display: grid; gap: 12px; margin-top: 20px; }
.auth-panel form .field input { min-height: 43px; font-size: 16px; }
.auth-panel form > small { color: var(--muted); margin-top: -5px; }
.auth-panel form .button { min-height: 42px; margin-top: 3px; }
