:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f0f3f9;
  --overlay: #ffffff;
  --border: #e1e6f0;
  --border-strong: #cbd4e3;
  --brand: #3d5fd9;
  --text: #182033;
  --muted: #6c7689;
  --danger: #d34a4a;
  --idle: #7b879b;
  --success: #2f9b70;
  --warn: #c97a25;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1421;
    --surface: #151d2c;
    --surface-2: #1d2739;
    --overlay: #1b2435;
    --border: #29364a;
    --border-strong: #3b4b64;
    --brand: #8ea2ff;
    --text: #edf1f8;
    --muted: #98a5ba;
    --danger: #f08080;
    --idle: #8b98ac;
    --success: #64c99b;
    --warn: #e6a25c;
  }
}

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

html { min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input, textarea { font-family: inherit; }
::selection { background: color-mix(in srgb, var(--brand) 24%, transparent); }

.dp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.dp-icon {
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

.dp-root {
  --dp-radius: 18px;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  color: var(--text);
  background:
    radial-gradient(1150px 460px at 6% -14%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 62%),
    radial-gradient(900px 420px at 102% -4%, color-mix(in srgb, var(--warn) 7%, transparent), transparent 58%),
    var(--bg);
  font-family: inherit;
}
.dp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.dp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dp-brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 9px 22px -13px color-mix(in srgb, var(--text) 60%, transparent);
}
.dp-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dp-brand-name {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.01em;
}
.dp-brand-tag {
  font-size: 8px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.dp-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.dp-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dp-lang:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}
.dp-lang:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 75%, transparent);
  outline-offset: 2px;
}

.dp-root * { box-sizing: border-box; }
.dp-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 30px 34px 46px;
}
.dp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.dp-hero { min-width: 0; }
.dp-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .11em;
  color: var(--muted);
}
.dp-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent);
  flex: 0 0 auto;
}
.dp-hero h1 {
  margin: 10px 0 11px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 650;
  text-wrap: balance;
}
.dp-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.dp-subtitle b {
  color: var(--text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dp-sep { opacity: .5; }
.dp-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  flex: 0 0 auto;
}
.dp-datebox {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px -22px color-mix(in srgb, var(--text) 50%, transparent);
}
.dp-iconbtn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dp-iconbtn:hover { background: var(--surface-2); color: var(--text); }
.dp-iconbtn:focus-visible,
.dp-today-btn:focus-visible,
.dp-add:focus-visible,
.dp-day:focus-visible,
.dp-filter button:focus-visible,
.dp-chip:focus-visible,
.dp-priority button:focus-visible,
.dp-check:focus-visible,
.dp-focus-check:focus-visible,
.dp-close:focus-visible,
.dp-btn:focus-visible,
.dp-textbtn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 75%, transparent);
  outline-offset: 2px;
}
.dp-today-btn {
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.dp-today-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.dp-today-btn:disabled { opacity: .5; cursor: default; }
.dp-add {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 13%, var(--surface));
  color: var(--brand);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 22px -16px color-mix(in srgb, var(--brand) 85%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.dp-add:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--brand) 19%, var(--surface));
  box-shadow: 0 14px 26px -15px color-mix(in srgb, var(--brand) 90%, transparent);
}
.dp-add:active { transform: translateY(0); }
.dp-week {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 14px 40px -36px color-mix(in srgb, var(--text) 45%, transparent);
}
.dp-week-label {
  flex: 0 0 auto;
  min-width: 104px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 7px;
}
.dp-week-label strong { font-size: 12.5px; font-weight: 650; }
.dp-week-label span { font-size: 10px; color: var(--muted); letter-spacing: .05em; }
.dp-week-days {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.dp-day {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dp-day:hover { background: var(--surface-2); }
.dp-day.is-selected {
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
}
.dp-day-week {
  font-size: 10px;
  color: var(--muted);
  line-height: 1;
  text-transform: capitalize;
}
.dp-day-num {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.dp-day.is-today .dp-day-num { color: var(--brand); }
.dp-day.is-selected .dp-day-num { color: var(--brand); }
.dp-day-dots {
  height: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.dp-day-dots i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand);
  opacity: .7;
}
.dp-day-dots i.is-complete { background: var(--success); }
.dp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}
.dp-card {
  border: 1px solid var(--border);
  border-radius: var(--dp-radius);
  background: var(--surface);
  box-shadow: 0 22px 55px -46px color-mix(in srgb, var(--text) 48%, transparent);
}
.dp-agenda { min-height: 610px; overflow: hidden; }
.dp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.dp-card-head h2 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 650;
}
.dp-card-head p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dp-filter {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  flex: 0 0 auto;
}
.dp-filter button {
  border: 0;
  border-radius: 7px;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dp-filter button:hover { color: var(--text); }
.dp-filter button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 14%, transparent);
}
.dp-timeline-wrap { padding: 18px 20px 22px 18px; }
.dp-timeline { position: relative; min-height: 420px; }
.dp-hour { position: absolute; left: 0; right: 0; height: 0; }
.dp-hour-label {
  position: absolute;
  left: 0;
  top: -7px;
  width: 47px;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  opacity: .82;
}
.dp-hour-line {
  position: absolute;
  left: 60px;
  right: 0;
  top: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}
.dp-hour.is-last .dp-hour-line { border-top-color: var(--border); }
.dp-lanes { position: absolute; left: 60px; right: 0; top: 0; bottom: 0; }
.dp-task {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px 6px;
  padding-right: 27px;
  border: 1px solid color-mix(in srgb, var(--dp-accent) 25%, var(--border));
  border-left: 3px solid var(--dp-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--dp-accent) 5%, var(--surface));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dp-task:hover {
  border-color: color-mix(in srgb, var(--dp-accent) 44%, var(--border));
  box-shadow: 0 10px 24px -17px color-mix(in srgb, var(--dp-accent) 60%, transparent);
  transform: translateY(-1px);
}
.dp-task:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 75%, transparent);
  outline-offset: 2px;
}
.dp-task.is-done {
  opacity: .62;
  background: var(--surface-2);
}
.dp-task.is-done .dp-task-title { text-decoration: line-through; text-decoration-thickness: 1px; }
.dp-task.is-compact {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding-top: 0;
  padding-bottom: 0;
}
.dp-task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-right: 2px;
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--muted);
}
.dp-task-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-task-cat {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .9;
}
.dp-task-flag { color: var(--warn); flex: 0 0 auto; margin-left: auto; }
.dp-task-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dp-task.is-compact .dp-task-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11.5px;
}
.dp-task-note {
  margin: 1px 0 0;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-check {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--dp-accent) 48%, var(--border-strong));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--bg);
  cursor: pointer;
}
.dp-check:hover { border-color: var(--dp-accent); }
.dp-check.is-done {
  background: color-mix(in srgb, var(--dp-accent) 16%, var(--surface));
  border-color: var(--dp-accent);
  color: var(--dp-accent);
}
.dp-task.is-compact .dp-check {
  position: static;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  align-self: center;
}
.dp-task.is-compact { padding-right: 8px; }
.dp-task.is-compact .dp-task-time { color: var(--muted); font-size: 9px; }
.dp-task.is-compact .dp-task-flag { margin-left: 0; }
.dp-now {
  position: absolute;
  left: 54px;
  right: 0;
  z-index: 3;
  border-top: 1.5px solid var(--brand);
  pointer-events: none;
}
.dp-now::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.dp-now-label {
  position: absolute;
  right: 0;
  top: -9px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--brand);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .02em;
}
.dp-empty {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  text-align: center;
}
.dp-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface-2));
  color: var(--brand);
}
.dp-empty h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.dp-empty p {
  max-width: 330px;
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.dp-empty .dp-add { height: 38px; }
.dp-side {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dp-side-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--dp-radius);
  background: var(--surface);
  box-shadow: 0 18px 45px -42px color-mix(in srgb, var(--text) 50%, transparent);
}
.dp-overview-top {
  display: flex;
  align-items: center;
  gap: 15px;
}
.dp-ring {
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}
.dp-ring-in {
  width: 66px;
  height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}
.dp-ring-value {
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.dp-ring-label {
  font-size: 9px;
  color: var(--muted);
}
.dp-overview-copy { min-width: 0; flex: 1; }
.dp-overview-copy h2 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.dp-overview-copy p {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dp-metrics { display: flex; gap: 16px; }
.dp-metrics > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dp-metrics strong {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dp-metrics span {
  font-size: 9px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}
.dp-side-divider {
  height: 1px;
  margin: 16px 0 13px;
  background: color-mix(in srgb, var(--border) 80%, transparent);
}
.dp-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.dp-focus-head h3 {
  margin: 0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dp-focus-head span { font-size: 9.5px; color: var(--muted); opacity: .8; }
.dp-focus-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}
.dp-focus-item:first-of-type { border-top: 0; }
.dp-focus-check {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0;
  margin-top: 1px;
  border: 1.5px solid color-mix(in srgb, var(--border-strong) 80%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--bg);
  cursor: pointer;
}
.dp-focus-check:hover { border-color: var(--brand); }
.dp-focus-main { min-width: 0; flex: 1; }
.dp-focus-title {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.dp-focus-title:hover { color: var(--brand); }
.dp-focus-time {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dp-focus-time .dp-priority-flag { color: var(--warn); display: inline-flex; }
.dp-focus-empty {
  margin: 2px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}
.dp-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dp-card-title-row h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.005em;
}
.dp-card-title-row span {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dp-dist-bar {
  display: flex;
  gap: 2px;
  height: 9px;
  padding: 1px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.dp-dist-seg {
  flex: 1 1 0;
  min-width: 3px;
  height: 100%;
  border-radius: 3px;
  background: var(--dp-accent);
}
.dp-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}
.dp-legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--muted);
}
.dp-legend-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: var(--dp-accent);
}
.dp-legend-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-legend-value {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.dp-dist-empty {
  margin: 2px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}
.dp-data-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 4px 0;
}
.dp-storage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--muted);
}
.dp-storage::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 999px;
  background: var(--success);
}
.dp-storage.is-error { color: var(--danger); }
.dp-storage.is-error::before { background: var(--danger); }
.dp-tool-btns { display: flex; gap: 2px; }
.dp-textbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9.5px;
  cursor: pointer;
}
.dp-textbtn:hover { background: var(--surface-2); color: var(--text); }
.dp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  backdrop-filter: blur(9px) saturate(.92);
  animation: dp-fade .16s ease-out;
}
.dp-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 34px 90px -36px color-mix(in srgb, var(--text) 55%, transparent);
  animation: dp-rise .2s ease-out;
}
.dp-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 21px 15px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: var(--surface);
}
.dp-modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
}
.dp-modal-head p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.dp-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: -3px -4px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.dp-close:hover { background: var(--surface-2); color: var(--text); }
.dp-form { display: flex; flex-direction: column; gap: 13px; padding: 17px 21px 19px; }
.dp-form-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
  color: var(--danger);
  font-size: 11px;
  line-height: 1.4;
}
.dp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dp-field > span {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .03em;
  color: var(--muted);
}
.dp-field input,
.dp-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.dp-field input::placeholder,
.dp-field textarea::placeholder { color: var(--muted); opacity: .66; }
.dp-field input:hover,
.dp-field textarea:hover { border-color: var(--border-strong); }
.dp-field input:focus,
.dp-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}
.dp-field textarea { min-height: 74px; resize: vertical; }
.dp-form-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 9px; }
.dp-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 10.5px;
  font-weight: 550;
  cursor: pointer;
}
.dp-chip:hover { border-color: var(--border-strong); color: var(--text); }
.dp-chip.is-active {
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  color: var(--text);
}
.dp-cat-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--dp-accent); }
.dp-priority {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.dp-priority button {
  border: 0;
  border-radius: 6px;
  padding: 6px 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.dp-priority button:hover { color: var(--text); }
.dp-priority button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 13%, transparent);
}
.dp-modal-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 21px 16px;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: var(--surface);
}
.dp-foot-right { display: flex; align-items: center; gap: 8px; }
.dp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.dp-btn:hover { background: var(--surface-2); }
.dp-btn-primary {
  border-color: color-mix(in srgb, var(--brand) 38%, transparent);
  background: color-mix(in srgb, var(--brand) 13%, var(--surface));
  color: var(--brand);
}
.dp-btn-primary:hover {
  background: color-mix(in srgb, var(--brand) 19%, var(--surface));
}
.dp-btn-danger {
  border-color: transparent;
  background: transparent;
  color: var(--danger);
  padding-left: 4px;
}
.dp-btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 9%, transparent);
}
.dp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--overlay);
  color: var(--text);
  box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--text) 55%, transparent);
  font-size: 11.5px;
  transform: translateX(-50%);
  animation: dp-toast-in .2s ease-out;
}
.dp-toast > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-toast button {
  border: 0;
  border-radius: 5px;
  padding: 3px 5px;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.dp-toast button:hover { background: var(--surface-2); }
.dp-toast .dp-toast-close {
  display: grid;
  place-items: center;
  padding: 3px;
  color: var(--muted);
}
@keyframes dp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dp-rise { from { opacity: 0; transform: translateY(8px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dp-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dp-cat-deep { --dp-accent: var(--brand); }
.dp-cat-meeting { --dp-accent: var(--warn); }
.dp-cat-admin { --dp-accent: var(--idle); }
.dp-cat-personal { --dp-accent: var(--success); }
@media (max-width: 1120px) {
  .dp-grid { grid-template-columns: minmax(0, 1fr); }
  .dp-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .dp-data-tools { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .dp-shell { padding: 24px 20px 36px; }
  .dp-top { flex-direction: column; gap: 14px; }
  .dp-actions { width: 100%; justify-content: flex-start; padding-top: 0; }
  .dp-week { flex-direction: column; align-items: stretch; gap: 7px; }
  .dp-week-label { flex-direction: row; align-items: baseline; gap: 7px; padding-left: 4px; }
  .dp-card-head { flex-direction: column; gap: 10px; }
  .dp-filter { align-self: flex-start; }
  .dp-form-grid { grid-template-columns: 1fr 1fr; }
  .dp-field-date { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dp-shell { padding: 20px 13px 30px; }
  .dp-hero h1 { font-size: 26px; }
  .dp-actions { gap: 7px; }
  .dp-datebox { order: 1; }
  .dp-add { order: 2; margin-left: auto; }
  .dp-week { padding: 9px 8px; }
  .dp-week-days { gap: 2px; }
  .dp-day { padding: 7px 1px 6px; border-radius: 9px; }
  .dp-day-week { font-size: 9px; }
  .dp-day-num { font-size: 14px; }
  .dp-timeline-wrap { padding: 16px 12px 20px 11px; }
  .dp-lanes { left: 47px; }
  .dp-hour-line { left: 47px; }
  .dp-hour-label { width: 37px; font-size: 9px; }
  .dp-now { left: 41px; }
  .dp-task { padding-left: 7px; padding-right: 22px; }
  .dp-side { grid-template-columns: minmax(0, 1fr); }
  .dp-data-tools { grid-column: auto; }
  .dp-overlay { padding: 12px; }
  .dp-modal { max-height: calc(100vh - 24px); border-radius: 15px; }
  .dp-modal-head, .dp-form, .dp-modal-foot { padding-left: 16px; padding-right: 16px; }
  .dp-form-grid { grid-template-columns: 1fr; }
  .dp-field-date { grid-column: auto; }
  .dp-modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .dp-foot-right { display: grid; grid-template-columns: 1fr 1fr; }
  .dp-btn-danger { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-root *, .dp-root *::before, .dp-root *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media (max-width: 640px) {
  .dp-topbar { margin-bottom: 16px; }
  .dp-brand-mark { width: 29px; height: 29px; border-radius: 9px; }
  .dp-brand-tag { display: none; }
  .dp-lang { height: 28px; padding: 0 9px; }
}

/* ------------------------------------------------------------------ */
/* Team workspace                                                     */
/* ------------------------------------------------------------------ */

.dp-shell { max-width: 1320px; }

.dp-company {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--warn) 24%, var(--border));
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--warn) 7%, var(--surface)), var(--surface) 45%);
  box-shadow: 0 22px 55px -48px color-mix(in srgb, var(--text) 48%, transparent);
}
.dp-company-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}
.dp-company-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--warn) 13%, var(--surface));
  color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 18%, transparent);
}
.dp-company-title { min-width: 0; flex: 1; }
.dp-company-title h2 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.01em;
}
.dp-company-title p {
  margin: 2px 0 0;
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--muted);
}
.dp-company-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.dp-company-body {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 14px;
  scrollbar-width: thin;
}
.dp-company-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 1px 0 3px;
  font-size: 10.5px;
  color: var(--muted);
}
.dp-company-item {
  flex: 0 0 235px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--warn) 18%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--warn) 4%, var(--surface));
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dp-company-item:hover {
  border-color: color-mix(in srgb, var(--warn) 40%, var(--border));
  background: color-mix(in srgb, var(--warn) 8%, var(--surface));
  transform: translateY(-1px);
}
.dp-company-item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--warn) 65%, transparent);
  outline-offset: 2px;
}
.dp-company-item-top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 9.5px;
  font-weight: 650;
  color: var(--warn);
  font-variant-numeric: tabular-nums;
}
.dp-company-tag {
  margin-left: auto;
  color: var(--warn);
  font-size: 8px;
  line-height: 1.4;
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--warn) 7%, transparent);
  white-space: nowrap;
}
.dp-company-item-title {
  margin: 2px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dp-company-item-note {
  margin: 1px 0 0;
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-company-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn) 8%, var(--surface));
  color: var(--warn);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.dp-company-add:hover { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); }
.dp-company-add:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--warn) 65%, transparent);
  outline-offset: 2px;
}

.dp-main-grid {
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}
.dp-team {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  scrollbar-width: thin;
}
.dp-team-card { overflow: hidden; }
.dp-team-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 14px 7px;
}
.dp-team-head-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 17%, transparent);
}
.dp-team-title { min-width: 0; flex: 1; }
.dp-team-title h2 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.dp-team-title p {
  margin: 2px 0 0;
  font-size: 9px;
  color: var(--muted);
}
.dp-team-add-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}
.dp-team-add-icon:hover { color: var(--text); border-color: var(--border-strong); }
.dp-team-hint {
  padding: 0 14px 8px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}
.dp-team-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 6px 6px;
}
.dp-member {
  --member-color: var(--brand);
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 9px 9px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dp-member:hover { background: var(--surface-2); }
.dp-member.is-selected {
  background: color-mix(in srgb, var(--member-color) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--member-color) 28%, transparent);
}
.dp-member:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--member-color) 65%, transparent);
  outline-offset: 1px;
}
.dp-member-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dp-member-avatar {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--member-color) 20%, transparent);
  background: color-mix(in srgb, var(--member-color) 12%, var(--surface));
  color: var(--member-color);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.dp-member-identity { min-width: 0; flex: 1; }
.dp-member-name {
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-member-role {
  margin-top: 1px;
  font-size: 8.5px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-member-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.dp-member-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--warn);
  transition: width .25s ease;
}
.dp-member.is-complete .dp-member-progress span { background: var(--success); }
.dp-member-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  line-height: 1.2;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dp-member-next {
  font-size: 8.8px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-member-next b { color: var(--text); font-weight: 550; }
.dp-team-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px 12px;
  border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.dp-team-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9.5px;
  color: var(--muted);
}
.dp-team-foot-row strong {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dp-team-foot-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.dp-team-foot-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}
.dp-member-identity { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.dp-side-status-member { font-size: 9px; color: var(--muted); white-space: nowrap; }
.dp-btn-danger.is-armed {
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.dp-team-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: calc(100% - 20px);
  height: 30px;
  margin: 0 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 550;
  cursor: pointer;
}
.dp-team-add:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 4%, transparent);
}
.dp-company-body::-webkit-scrollbar,
.dp-team-list::-webkit-scrollbar { height: 4px; }
.dp-company-body::-webkit-scrollbar-thumb,
.dp-team-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--border-strong);
}
.dp-company-body::-webkit-scrollbar-track,
.dp-team-list::-webkit-scrollbar-track { background: transparent; }
.dp-target-btn:focus-visible,
.dp-member-edit:focus-visible,
.dp-team-add:focus-visible,
.dp-company-add:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent);
  outline-offset: 2px;
}

.dp-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 19px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}
.dp-status::before {
  content: '';
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 999px;
  background: currentColor;
}
.dp-status.is-complete {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, transparent);
  border-color: color-mix(in srgb, var(--success) 22%, transparent);
}
.dp-status.is-incomplete {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border-color: color-mix(in srgb, var(--warn) 22%, transparent);
}

.dp-workspace { min-width: 0; display: flex; flex-direction: column; }
.dp-member-head {
  --member-color: var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--member-color) 7%, var(--surface)), var(--surface) 45%);
  box-shadow: 0 22px 55px -48px color-mix(in srgb, var(--text) 48%, transparent);
}
.dp-member-head-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--member-color) 22%, transparent);
  background: color-mix(in srgb, var(--member-color) 13%, var(--surface));
  color: var(--member-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.dp-member-head-copy { min-width: 0; flex: 1; }
.dp-current-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dp-current-label::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--member-color);
}
.dp-member-head-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}
.dp-member-head-name {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.035em;
}
.dp-member-head-role { font-size: 9.5px; color: var(--muted); }
.dp-member-edit {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.dp-member-edit:hover { background: var(--surface-2); color: var(--text); }
.dp-member-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-left: auto;
}
.dp-member-head-actions .dp-add { height: 34px; font-size: 11.5px; padding: 0 12px; }
.dp-member-head-status { display: flex; align-items: center; gap: 6px; }
.dp-target-control { display: flex; flex-direction: column; gap: 3px; }
.dp-target-label {
  font-size: 8px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.dp-target-box {
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.dp-target-btn {
  width: 25px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.dp-target-btn:hover { background: var(--surface); color: var(--text); }
.dp-target-input {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.dp-target-input::-webkit-inner-spin-button,
.dp-target-input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.dp-target-input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand); border-radius: 5px; }
.dp-target-suffix {
  padding-right: 7px;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.dp-workspace .dp-grid { margin-top: 14px; }
.dp-side-status-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}
.dp-status-note {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}
.dp-metrics.is-four {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.dp-metrics.is-four > div { min-width: 0; }
.dp-metrics.is-four strong { font-size: 14px; }
.dp-metrics.is-four span { white-space: normal; line-height: 1.25; }
.dp-progress-block { display: flex; flex-direction: column; gap: 5px; margin-top: 11px; }
.dp-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  line-height: 1.3;
  color: var(--muted);
}
.dp-progress-row strong {
  color: var(--text);
  font-size: 9.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dp-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.dp-progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width .25s ease;
}
.dp-progress-track span.is-success { background: var(--success); }
.dp-progress-track span.is-warn { background: var(--warn); }
.dp-modal-context {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}
.dp-modal-context strong { color: var(--text); font-weight: 650; }
.dp-color-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 0; }
.dp-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--member-color);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent);
}
.dp-swatch.is-active {
  border-color: var(--surface);
  box-shadow: 0 0 0 2px var(--member-color);
}
.dp-swatch:focus-visible {
  outline: 2px solid var(--member-color);
  outline-offset: 2px;
}
.dp-member-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.dp-btn:disabled { opacity: .45; cursor: default; }

.dp-member[data-color="blue"], .dp-member-head[data-color="blue"], .dp-swatch[data-color="blue"] { --member-color: #4e6bff; }
.dp-member[data-color="green"], .dp-member-head[data-color="green"], .dp-swatch[data-color="green"] { --member-color: #2f9b70; }
.dp-member[data-color="amber"], .dp-member-head[data-color="amber"], .dp-swatch[data-color="amber"] { --member-color: #c97a25; }
.dp-member[data-color="rose"], .dp-member-head[data-color="rose"], .dp-swatch[data-color="rose"] { --member-color: #d45772; }
.dp-member[data-color="violet"], .dp-member-head[data-color="violet"], .dp-swatch[data-color="violet"] { --member-color: #7b5ce0; }
@media (prefers-color-scheme: dark) {
  .dp-member[data-color="blue"], .dp-member-head[data-color="blue"], .dp-swatch[data-color="blue"] { --member-color: #8ea2ff; }
  .dp-member[data-color="green"], .dp-member-head[data-color="green"], .dp-swatch[data-color="green"] { --member-color: #64c99b; }
  .dp-member[data-color="amber"], .dp-member-head[data-color="amber"], .dp-swatch[data-color="amber"] { --member-color: #e6a25c; }
  .dp-member[data-color="rose"], .dp-member-head[data-color="rose"], .dp-swatch[data-color="rose"] { --member-color: #f08aa0; }
  .dp-member[data-color="violet"], .dp-member-head[data-color="violet"], .dp-swatch[data-color="violet"] { --member-color: #b3a1ff; }
}

@media (max-width: 1180px) {
  .dp-main-grid { grid-template-columns: minmax(0, 1fr); }
  .dp-team {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .dp-team-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 8px 8px;
    scrollbar-width: thin;
  }
  .dp-member { flex: 0 0 220px; min-width: 220px; }
  .dp-team-foot { display: none; }
  .dp-team-add { width: auto; margin: 0 10px 11px; align-self: flex-start; padding: 0 10px; }
  .dp-team-hint { padding-bottom: 6px; }
}

@media (max-width: 860px) {
  .dp-company-head { flex-wrap: wrap; }
  .dp-company-actions { margin-left: 0; }
  .dp-member-head-actions { margin-left: 0; width: 100%; justify-content: space-between; }
  .dp-target-control { flex: 1; }
  .dp-target-box { width: 100%; }
  .dp-target-input { flex: 1; width: auto; }
}

@media (max-width: 640px) {
  .dp-company { border-radius: 15px; }
  .dp-company-head { padding: 12px 12px 0; }
  .dp-company-body { padding: 8px 12px 12px; }
  .dp-company-item { flex-basis: 215px; }
  .dp-main-grid { gap: 12px; margin-top: 12px; }
  .dp-member { flex-basis: 202px; min-width: 202px; }
  .dp-member-head { padding: 12px; border-radius: 15px; gap: 10px; }
  .dp-member-head-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
  .dp-member-head-name { font-size: 17px; }
  .dp-member-head-actions { gap: 7px; }
  .dp-member-head-actions .dp-add { height: 34px; padding: 0 11px; }
  .dp-target-box { height: 33px; }
  .dp-target-btn { height: 31px; }
  .dp-target-input { height: 31px; }
}
.dp-noscript {
  max-width: 680px;
  margin: 48px auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.dp-root:empty { min-height: 0; }

/* ------------------------------------------------------------------ */
/* Authentication and read-only state                                 */
/* ------------------------------------------------------------------ */

.dp-topbar-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
}
.dp-auth {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.dp-auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
}
.dp-auth-chip.is-admin {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 24%, transparent);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}
.dp-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  color: var(--brand);
  font: inherit;
  font-size: 9.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.dp-auth-btn:hover {
  background: color-mix(in srgb, var(--brand) 13%, var(--surface));
}
.dp-auth-btn:focus-visible,
.dp-login .dp-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent);
  outline-offset: 2px;
}

.dp-target-static {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.dp-task.is-readonly,
.dp-company-item.is-readonly { cursor: default; }
.dp-task.is-readonly:hover {
  transform: none;
  box-shadow: none;
  border-color: color-mix(in srgb, var(--dp-accent) 25%, var(--border));
}
.dp-check.is-static { cursor: default; pointer-events: none; }
.dp-company-item.is-readonly:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--warn) 18%, var(--border));
  background: color-mix(in srgb, var(--warn) 4%, var(--surface));
}
.dp-focus-check.is-readonly { cursor: default; }
.dp-focus-title.is-readonly { cursor: default; }
.dp-focus-title.is-readonly:hover { color: var(--text); }
.dp-storage.is-readonly::before { background: var(--muted); }

.dp-boot {
  max-width: 560px;
  margin: 110px auto;
  padding: 42px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 70px -46px color-mix(in srgb, var(--text) 48%, transparent);
  text-align: center;
}
.dp-boot-mark {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--text) 65%, transparent);
}
.dp-boot h1 {
  max-width: 420px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: -.01em;
}
.dp-boot.is-error h1 { color: var(--muted); font-size: 14px; }
.dp-boot-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: dp-spin .9s linear infinite;
}
@keyframes dp-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .dp-auth-chip { display: none; }
  .dp-auth-btn { height: 28px; }
  .dp-boot { margin: 60px auto; padding: 32px 22px; }
}

/* ------------------------------------------------------------------ */
/* Project data targets and completion                                */
/* ------------------------------------------------------------------ */

.dp-status.is-unset {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--border);
}
.dp-member.is-unset .dp-member-progress span { background: var(--muted); opacity: .4; }

.dp-data-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.dp-data-summary-label {
  font-size: 8px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dp-data-summary-value {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dp-data-summary-value strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.dp-data-summary-unit { font-size: 9px; }
.dp-data-summary-pct {
  min-width: 34px;
  color: var(--warn);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dp-project-data {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 22px 55px -48px color-mix(in srgb, var(--text) 48%, transparent);
}
.dp-project-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}
.dp-project-head-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  color: var(--brand);
}
.dp-project-head-copy { min-width: 190px; flex: 1; }
.dp-project-head-copy h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.02em;
}
.dp-project-head-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}
.dp-project-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.dp-project-summary-value {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dp-project-summary-value strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}
.dp-project-summary-unit { font-size: 9px; }
.dp-project-summary-bar {
  width: 92px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.dp-project-summary-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.dp-project-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  color: var(--brand);
  font: inherit;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.dp-project-add:hover { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.dp-project-add:focus-visible,
.dp-project-edit:focus-visible,
.dp-project-completed-input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent);
  outline-offset: 2px;
}
.dp-project-body { display: flex; flex-direction: column; }
.dp-project-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.dp-project-row:first-child { border-top: 0; }
.dp-project-row-main { flex: 1; min-width: 220px; }
.dp-project-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.dp-project-name {
  min-width: 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.dp-project-bar {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.dp-project-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--warn);
}
.dp-project-bar span.is-success { background: var(--success); }
.dp-project-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.3;
}
.dp-project-row-side {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.dp-project-completed {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.2;
  font-weight: 650;
}
.dp-project-completed-input {
  width: 96px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.dp-project-completed-value {
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dp-project-pct {
  min-width: 40px;
  padding-bottom: 6px;
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dp-project-row.is-complete .dp-project-pct { color: var(--success); }
.dp-project-edit {
  width: 28px;
  height: 28px;
  margin-bottom: 1px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.dp-project-edit:hover { background: var(--surface-2); color: var(--text); }
.dp-project-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 24px 16px 26px;
  text-align: center;
}
.dp-project-empty-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
}
.dp-project-empty strong { font-size: 11.5px; font-weight: 650; }
.dp-project-empty p {
  max-width: 390px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .dp-project-summary { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .dp-data-summary { flex: 1; }
  .dp-data-summary-label { display: none; }
  .dp-project-head { padding: 11px 13px; }
  .dp-project-row { align-items: stretch; gap: 10px; padding: 11px 13px; }
  .dp-project-row-side {
    width: 100%;
    justify-content: flex-end;
    align-items: center;
  }
  .dp-project-completed { flex-direction: row; align-items: center; gap: 6px; margin-right: auto; }
  .dp-project-completed-input { width: 92px; }
  .dp-project-summary { width: 100%; justify-content: flex-start; }
  .dp-project-add { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* Editable headline, drag scheduling, calendar and leave             */
/* ------------------------------------------------------------------ */

.dp-field select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}
.dp-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}

.dp-hero-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.dp-hero-title-row h1 { flex: 0 1 auto; }
.dp-hero-edit {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.dp-hero-edit:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 28%, var(--border)); }
.dp-hero-edit:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: 2px; }

.dp-agenda-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.dp-copy-day {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.dp-copy-day:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 28%, var(--border)); background: var(--surface-2); }
.dp-copy-day:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: 2px; }

.dp-task[data-action] { cursor: grab; touch-action: none; }
.dp-task.is-dragging {
  cursor: grabbing;
  z-index: 30;
  opacity: .92;
  overflow: visible;
  transform: none;
  box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--text) 62%, transparent);
  transition: none;
}
.dp-task-resize {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 5px;
  display: block;
  opacity: 0;
  z-index: 4;
  cursor: ns-resize;
  border-radius: 3px;
  background: color-mix(in srgb, var(--dp-accent) 42%, transparent);
  transition: opacity .12s ease;
}
.dp-task-resize.is-start { top: 1px; }
.dp-task-resize.is-end { bottom: 1px; }
.dp-task:hover .dp-task-resize,
.dp-task.is-dragging .dp-task-resize { opacity: .65; }
.dp-drag-hint {
  position: absolute;
  right: 5px;
  top: -22px;
  z-index: 8;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--text);
  color: var(--surface);
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
body.is-dragging-task { user-select: none; cursor: ns-resize; }

.dp-week-label .dp-calendar-toggle { margin-top: 4px; }
.dp-calendar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.dp-calendar-toggle button {
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}
.dp-calendar-toggle button:hover { color: var(--text); }
.dp-calendar-toggle button.is-active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--text) 12%, transparent);
}
.dp-calendar-toggle button:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); }

.dp-month {
  display: block;
  padding: 12px;
}
.dp-month-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 2px 10px;
}
.dp-month-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 150px;
  flex: 1;
}
.dp-month-title strong { font-size: 13px; font-weight: 650; }
.dp-month-title span { color: var(--muted); font-size: 9.5px; }
.dp-month-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.dp-month-nav .dp-iconbtn { width: 27px; height: 26px; }
.dp-month-nav .dp-today-btn { height: 26px; font-size: 10px; }
.dp-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 0 2px 5px;
}
.dp-month-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}
.dp-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.dp-month-day {
  min-width: 0;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dp-month-day:hover { background: color-mix(in srgb, var(--brand) 7%, var(--surface-2)); }
.dp-month-day.is-outside { opacity: .36; }
.dp-month-day.is-selected {
  border-color: color-mix(in srgb, var(--brand) 48%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}
.dp-month-day.is-today .dp-month-num { color: var(--brand); }
.dp-month-day.is-leave { background: color-mix(in srgb, var(--warn) 8%, var(--surface-2)); }
.dp-month-day-head { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.dp-month-num { font-size: 11px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.dp-month-leave {
  padding: 1px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--warn);
  font-size: 7.5px;
  font-weight: 700;
}
.dp-month-data {
  margin-top: auto;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-month-data.is-complete { color: var(--success); }
.dp-month-data.is-incomplete { color: var(--warn); }
.dp-month-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}
.dp-month-bar span { display: block; height: 100%; border-radius: inherit; background: var(--warn); }
.dp-month-bar span.is-success { background: var(--success); }
.dp-month-day.is-unset .dp-month-bar span { background: var(--muted); opacity: .4; }

.dp-leave-card { padding: 15px; }
.dp-leave-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.dp-leave-head h3 { margin: 0; font-size: 12px; font-weight: 650; }
.dp-leave-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.dp-leave-add {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 25px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--border));
  border-radius: 7px;
  background: color-mix(in srgb, var(--warn) 7%, var(--surface));
  color: var(--warn);
  font: inherit;
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.dp-leave-add:hover { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.dp-leave-list { display: flex; flex-direction: column; gap: 5px; }
.dp-leave-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.dp-leave-item.is-selected {
  border-color: color-mix(in srgb, var(--warn) 30%, var(--border));
  background: color-mix(in srgb, var(--warn) 6%, var(--surface));
}
.dp-leave-item-main { min-width: 0; flex: 1; }
.dp-leave-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.dp-leave-item-head strong { font-size: 10px; font-weight: 650; }
.dp-leave-type {
  padding: 1px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  color: var(--warn);
  font-size: 8px;
  font-weight: 650;
}
.dp-leave-range { color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; }
.dp-leave-note { margin: 3px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.35; overflow-wrap: anywhere; }
.dp-leave-edit {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.dp-leave-edit:hover { color: var(--text); background: var(--surface); }
.dp-leave-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding: 0 6px;
  border: 1px solid color-mix(in srgb, var(--warn) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--warn) 9%, transparent);
  color: var(--warn);
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .dp-week-label { flex-wrap: wrap; }
  .dp-week-label .dp-calendar-toggle { margin-left: auto; }
  .dp-month-day { min-height: 62px; padding: 5px; }
  .dp-month-data { font-size: 8px; }
}
@media (max-width: 640px) {
  .dp-hero-title-row h1 { font-size: 23px; }
  .dp-hero-edit { margin-top: 7px; }
  .dp-agenda-actions { width: 100%; justify-content: space-between; }
  .dp-copy-day span { display: none; }
  .dp-copy-day { width: 31px; padding: 0; justify-content: center; }
  .dp-month { padding: 8px; }
  .dp-month-head { gap: 7px; }
  .dp-month-title { min-width: 100%; }
  .dp-month-nav { flex: 1; justify-content: flex-start; }
  .dp-month-day { min-height: 52px; padding: 4px; gap: 3px; border-radius: 7px; }
  .dp-month-data { display: none; }
  .dp-month-weekdays, .dp-month-grid { gap: 3px; }
  .dp-month-weekdays span { font-size: 8px; }
  .dp-month-num { font-size: 10px; }
  .dp-month-leave { font-size: 6.5px; padding: 0 3px; }
  .dp-leave-card { padding: 13px; }
  .dp-team-sort span { display: none; }
  .dp-team-sort { width: 26px; padding: 0; justify-content: center; }
  .dp-copy-dates { grid-template-columns: minmax(0, 1fr); }
}

.dp-team-sort {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  height: 25px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.dp-team-sort:hover,
.dp-team-sort.is-active {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--border));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.dp-team-sort:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: 2px; }

.dp-copy-range { grid-template-columns: 1fr 1fr !important; }
.dp-copy-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}
.dp-copy-date-head > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .03em;
}
.dp-copy-date-actions { display: flex; gap: 4px; }
.dp-copy-date-actions .dp-textbtn { height: 24px; font-size: 9px; }
.dp-copy-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.dp-copy-date {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 10px;
  cursor: pointer;
}
.dp-copy-date:hover { background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.dp-copy-date input { width: 13px; height: 13px; margin: 0; accent-color: var(--brand); }
.dp-copy-date-summary {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
}

@media (max-width: 640px) {
  .dp-team-sort { width: 26px; padding: 0; justify-content: center; }
  .dp-team-sort span { display: none; }
  .dp-copy-dates { grid-template-columns: minmax(0, 1fr); }
}

.dp-team-priority {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  height: 25px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.dp-team-priority:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--border));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.dp-team-priority:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent);
  outline-offset: 2px;
}

.dp-role-priority-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 330px;
  overflow: auto;
}
.dp-role-priority-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.dp-role-priority-rank {
  width: 24px;
  flex: 0 0 24px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dp-role-priority-name {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.dp-role-priority-actions { display: flex; gap: 3px; }
.dp-role-move {
  width: 26px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.dp-role-move:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.dp-role-move:disabled { opacity: .28; cursor: default; }
.dp-role-move:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: 2px; }

@media (max-width: 640px) {
  .dp-team-priority { width: 26px; padding: 0; justify-content: center; }
  .dp-team-priority span { display: none; }
  body { min-width: 0; }
}

/* Larger baseline UI */
body { zoom: 1.25; }

/* Make task notes readable instead of a faint secondary line */
.dp-task-note {
  margin: 3px 0 0;
  color: var(--text);
  opacity: .9;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.dp-task-note-mark {
  position: absolute;
  right: 5px;
  bottom: 3px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid color-mix(in srgb, var(--dp-accent) 30%, var(--border));
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  opacity: .82;
  cursor: help;
}

.dp-project-unit {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 650;
  white-space: nowrap;
}
.dp-project-unit.is-time {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

