.eyebrow {
  margin: 0 0 4px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.segment,
.module-tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  font-weight: 800;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.primary-button {
  background: var(--teal);
  color: white;
  box-shadow: 0 8px 20px rgba(20, 125, 114, 0.22);
}

.primary-button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.ghost-button:hover,
.segment:hover,
.module-tab:hover,
.icon-button:hover {
  border-color: rgba(20, 125, 114, 0.35);
  box-shadow: 0 6px 18px rgba(54, 45, 33, 0.08);
}

.danger-button {
  background: var(--coral-soft);
  border-color: rgba(195, 79, 55, 0.28);
  color: #8a2f20;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.module-tab {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.module-tab.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tab-mark {
  width: 12px;
  height: 28px;
  border-radius: 99px;
  flex: 0 0 auto;
}

.tab-mark-tasks {
  background: var(--teal);
}

.tab-mark-values {
  background: var(--amber);
}

.tab-mark-calendar {
  background: var(--green);
}

.tab-mark-skills {
  background: var(--blue);
}

.tab-mark-memos {
  background: var(--coral);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4f1;
  max-width: 100%;
}

.segmented.three {
  grid-template-columns: repeat(3, minmax(86px, 1fr));
}

.segment {
  min-width: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.segment span,
.module-tab span {
  min-width: 0;
}

.segment.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(54, 45, 33, 0.08);
}

.editor-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-grid {
  display: grid;
  gap: 10px;
}

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

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

.task-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.quick-add-form input,
.quick-add-form select {
  min-height: 40px;
  padding: 8px 10px;
}

.quick-add-form .primary-button {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
}

.task-summary .pill {
  min-height: 30px;
  padding-inline: 12px;
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}

.pill-teal {
  background: var(--mint);
  color: var(--teal-dark);
}

.pill-amber {
  background: var(--amber-soft);
  color: #8a530d;
}

.pill-blue {
  background: var(--blue-soft);
  color: #234e72;
}

.pill-green {
  background: var(--green-soft);
  color: #205c33;
}

.task-list {
  display: grid;
  gap: 10px;
  min-height: 180px;
}

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

.task-children {
  display: grid;
  gap: 8px;
  margin-left: 34px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.task-item {
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(54, 45, 33, 0.055);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.task-item:hover {
  border-color: rgba(20, 125, 114, 0.32);
  box-shadow: 0 14px 30px rgba(54, 45, 33, 0.09);
}

.task-item.done {
  border-left-color: var(--green);
}

.task-item.course {
  border-left-color: var(--blue);
}

.task-item.urgent {
  border-left-color: var(--coral);
}

.task-item.normal {
  border-left-color: var(--amber);
}

.task-item.later {
  border-left-color: var(--line-strong);
}

.task-item.dragging {
  opacity: 0.42;
}

.task-item.drop-before {
  box-shadow: inset 0 4px 0 var(--blue);
}

.task-item.drop-after {
  box-shadow: inset 0 -4px 0 var(--blue);
}

.task-item.drop-child {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 125, 114, 0.16);
}

.task-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-height: 78px;
  padding: 14px;
}

.drag-handle {
  width: 28px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: grab;
}

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

.task-status-toggle {
  width: 26px;
  height: 26px;
  margin-top: 4px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  padding: 0;
  color: white;
}

.task-status-toggle.done {
  background: var(--green);
  border-color: var(--green);
}

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

.task-copy h3,
.task-title-button {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.task-title-button {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
}

.task-title-button:hover {
  color: var(--teal-dark);
}

.inline-title-input {
  min-height: 30px;
  padding: 4px 6px;
  font-weight: 850;
}

.task-copy p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.task-schedule-line {
  font-weight: 700;
  color: var(--ink);
}

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

.meta-row {
  margin-top: 8px;
}

.course-fields.hidden {
  display: none;
}

.import-head {
  display: grid;
  gap: 4px;
}

.import-head p,
.import-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.import-hint {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px dashed rgba(20, 125, 114, 0.28);
  border-radius: 8px;
  background: #f7faf8;
}

.item-actions {
  justify-content: flex-end;
}

.calendar-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.calendar-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
}

.rotate-left {
  transform: rotate(90deg);
}

.rotate-right {
  transform: rotate(-90deg);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  border-right: 1px solid var(--line);
}

.weekday,
.calendar-day {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weekday:nth-child(7n),
.calendar-day:nth-child(7n) {
  border-right: 0;
}

.weekday {
  min-height: 36px;
  display: grid;
  place-items: center;
  background: #edf4f1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calendar-day {
  min-height: 118px;
  padding: 8px;
  background: var(--surface);
  transition: background 120ms ease, box-shadow 120ms ease;
}

.calendar-day.muted {
  background: #f0f4f2;
  color: #8a948e;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(20, 125, 114, 0.55);
}

.calendar-day.selected {
  background: var(--mint);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.day-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
  margin-bottom: 6px;
  font-weight: 800;
}

.day-task {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
  border: 0;
  border-radius: 5px;
  padding: 5px 7px;
  background: var(--mint);
  color: var(--teal-dark);
  text-align: left;
  overflow: hidden;
}

.day-task.done {
  background: var(--green-soft);
  color: #205c33;
  text-decoration: line-through;
}

.day-task.course {
  background: rgba(72, 127, 196, 0.12);
  color: #21496e;
}

.day-task.plain-task {
  background: var(--mint);
  color: var(--teal-dark);
}

.day-task-title,
.day-task-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-task-title {
  font-weight: 800;
}

.day-task-time {
  font-size: 12px;
  opacity: 0.8;
}

.calendar-agenda {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 100%;
  padding: 12px;
  background: #f7faf8;
}

.calendar-agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-agenda-list {
  display: grid;
  gap: 8px;
}

.agenda-task {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.agenda-task > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
  line-height: 1.5;
}

.agenda-task.done > span:first-child {
  color: var(--muted);
  text-decoration: line-through;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.memo-grid {
  column-width: 300px;
  column-gap: 12px;
}

.value-card {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(54, 45, 33, 0.055);
  transition:
    box-shadow 120ms ease,
    border-color 120ms ease,
    opacity 120ms ease;
}

.memo-card {
  min-height: 180px;
  max-height: 320px;
  display: inline-grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: 100%;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(54, 45, 33, 0.055);
  overflow: hidden;
  break-inside: avoid;
  vertical-align: top;
}

.memo-card.expanded {
  max-height: none;
}

.memo-card.pinned {
  border-color: rgba(194, 122, 23, 0.38);
  box-shadow:
    inset 0 4px 0 var(--amber),
    0 12px 28px rgba(54, 45, 33, 0.08);
}

.pin-button.active {
  background: var(--amber-soft);
  border-color: rgba(194, 122, 23, 0.38);
  color: #8a530d;
}

.value-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.value-card.dragging {
  opacity: 0.42;
}

.value-card.drop-before {
  box-shadow: inset 4px 0 0 var(--blue);
}

.value-card.drop-after {
  box-shadow: inset -4px 0 0 var(--blue);
}

.memo-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.value-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.memo-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.memo-content {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 12;
  -webkit-box-orient: vertical;
}

.memo-content.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.memo-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.memo-footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.memo-expand-button {
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.memo-expand-button:hover {
  color: var(--teal-dark);
}

.value-amount {
  font-size: 32px;
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.value-unit {
  margin-left: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.empty-inspector,
.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty-inspector {
  min-height: 220px;
}

.empty-inspector p,
.empty-state p {
  margin: 0;
}

.skill-board-wrap {
  position: relative;
  min-width: 0;
  height: min(720px, calc(100vh - 230px));
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(38, 35, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 35, 31, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 24px 24px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  box-shadow: var(--shadow-soft);
}

.long-task-fab {
  display: none !important;
}

.long-task-fab i {
  --progress: 0%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #153f3b 52%, transparent 54%),
    conic-gradient(#7bd7c8 var(--progress), rgba(255, 255, 255, 0.24) 0);
}

.long-task-panel {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 55;
  width: min(430px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 1px solid rgba(214, 222, 217, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(38, 35, 31, 0.22);
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 160ms ease, opacity 160ms ease;
  backdrop-filter: blur(18px);
}

.long-task-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.long-task-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #edf7f4, #fff);
}

.long-task-panel-head h2 {
  font-size: 24px;
}

.long-task-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.long-task-form {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

.long-task-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 14px 16px 16px;
}

.long-task-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.long-task-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(54, 45, 33, 0.07);
}

.long-task-card.collapsed .long-task-body {
  display: none;
}

.long-task-card.collapsed .long-task-collapse .icon {
  transform: rotate(-90deg);
}

.long-task-card-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: start;
}

.long-task-collapse {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #edf4f1;
  color: var(--teal-dark);
}

.long-task-title-wrap {
  min-width: 0;
}

.long-task-title-wrap strong,
.long-subtask span {
  overflow-wrap: anywhere;
}

.long-task-title-wrap p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.long-task-meter {
  --progress: 0%;
  display: grid;
  gap: 7px;
}

.long-task-meter-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.long-task-meter-row strong {
  color: var(--teal-dark);
}

.long-task-meter-track {
  height: 8px;
  border-radius: 999px;
  background: #edf4f1;
  overflow: hidden;
}

.long-task-meter-track span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #4fb8a9);
}

.long-task-body,
.long-subtask-list {
  display: grid;
  gap: 8px;
}

.long-subtask {
  min-height: 40px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px 32px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(214, 222, 217, 0.72);
  border-radius: 8px;
  padding: 6px 7px;
  background: #fbfdfc;
}

.long-subtask.done span {
  color: var(--muted);
  text-decoration: line-through;
}

.long-subtask-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: #fff;
  padding: 0;
}

.long-subtask.done .long-subtask-check {
  border-color: var(--green);
  background: var(--green);
}

.long-subtask .icon-button {
  width: 32px;
  height: 32px;
}

.long-subtask-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.dashboard-stat {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(214, 222, 217, 0.88);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.dashboard-stat strong {
  font-size: 26px;
  line-height: 1;
}

.dashboard-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-task-list,
.long-focus-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
}

.bucket-list {
  min-height: 170px;
  max-height: min(48vh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.bucket-list.drop-target {
  background: rgba(20, 125, 114, 0.06);
  box-shadow: inset 0 0 0 2px rgba(20, 125, 114, 0.22);
}

.compact-task-list.horizontal {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.compact-task-list.horizontal .task-item {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
}

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

.task-item.compact {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border-left-width: 4px;
  padding: 7px 9px;
}

.task-item.compact .task-status-toggle {
  margin-top: 0;
}

.task-item.compact .task-copy h3,
.task-item.compact .task-title-button {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.task-item.compact .task-schedule-line {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.task-item.compact .icon-button {
  width: 30px;
  height: 30px;
}

.task-branch.compact {
  gap: 6px;
}

.task-children.compact {
  gap: 6px;
  margin-left: 18px;
  padding-left: 10px;
}

.focus-long-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(214, 222, 217, 0.86);
  border-radius: 11px;
  padding: 12px;
  background: #fbfdfc;
}

.focus-long-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.focus-long-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.focus-long-progress {
  --progress: 0%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.focus-long-progress span {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--teal), #4fb8a9) 0 / var(--progress) 100% no-repeat,
    #edf4f1;
}

.compact-button {
  min-height: 34px;
  padding-block: 6px;
}

.tool-button {
  min-height: 50px;
  min-width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid rgba(214, 222, 217, 0.92);
  border-radius: 10px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  font-weight: 850;
}

.tool-button.active,
.tool-button:hover {
  border-color: rgba(20, 125, 114, 0.34);
  background: #f7fbfa;
}

.tool-button .tab-mark {
  width: 8px;
  height: 24px;
}

.long-subtask-wrap {
  display: grid;
  gap: 6px;
  margin-left: calc(var(--depth) * 18px);
}

.long-subtask-wrap .long-subtask-wrap {
  margin-top: 2px;
}

.skill-board-wrap.panning {
  cursor: grabbing;
}

.skill-board {
  position: relative;
  width: 1800px;
  height: 1200px;
  transform-origin: 0 0;
}

.skill-board.animating {
  transition: transform 180ms ease;
}

.skill-lines,
.skill-nodes {
  position: absolute;
  inset: 0;
}

.skill-lines {
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.skill-line {
  fill: none;
  stroke: rgba(46, 106, 158, 0.42);
  stroke-width: 2;
}

.skill-node {
  position: absolute;
  width: 170px;
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid rgba(46, 106, 158, 0.32);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(54, 45, 33, 0.11);
  color: var(--ink);
  text-align: left;
  user-select: none;
  touch-action: none;
}

.skill-node:hover {
  border-color: rgba(20, 125, 114, 0.45);
}

.skill-node.selected {
  border-color: var(--teal);
  box-shadow:
    0 0 0 4px rgba(20, 125, 114, 0.16),
    0 12px 28px rgba(54, 45, 33, 0.12);
}

.skill-node.dragging {
  opacity: 0.82;
}

.skill-node-title-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.skill-node-title {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.skill-title-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 5px 7px;
  border-color: var(--teal);
  background: #ffffff;
  font-weight: 850;
  line-height: 1.2;
}

.skill-node-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.node-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 20px;
  min-width: 26px;
  border: 0;
  border-radius: 99px;
  padding: 2px 8px;
  background: var(--blue-soft);
  color: #234e72;
  font-size: 11px;
  font-weight: 800;
}

.collapse-chip {
  cursor: pointer;
}

.collapse-chip.collapsed {
  background: var(--amber-soft);
  color: #8a530d;
}

.skill-view-controls,
.skill-action-bar {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(214, 222, 217, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(54, 45, 33, 0.14);
  backdrop-filter: blur(12px);
}

.skill-view-controls {
  top: 12px;
  right: 12px;
}

.skill-action-bar {
  right: 12px;
  bottom: 12px;
  flex-wrap: nowrap;
  width: auto;
}

.skill-topic-button {
  width: 42px;
  height: 42px;
  color: var(--blue);
  background: var(--surface);
}

.skill-topic-button:hover {
  color: var(--teal-dark);
}

.skill-action-bar button:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.skill-empty {
  position: absolute;
  left: 32px;
  top: 32px;
  width: 260px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  min-height: 44px;
  display: none;
  align-items: center;
  padding: 11px 14px;
  border-radius: 8px;
  background: #26231f;
  color: #fff;
  box-shadow: 0 18px 40px rgba(38, 35, 31, 0.22);
  z-index: 20;
}

.toast.show {
  display: flex;
}

@media (max-width: 720px) {
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 21px;
  }

  .module-tab {
    min-height: 46px;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    font-size: 13px;
  }

  .long-task-panel {
    right: 8px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    max-height: min(76vh, 720px);
  }

  .long-subtask-form {
    grid-template-columns: 1fr;
  }

  .panel-tools,
  .segmented {
    width: 100%;
  }

  .dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-stat {
    min-height: 52px;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 9px;
    text-align: center;
  }

  .dashboard-stat strong {
    font-size: 20px;
  }

  .dashboard-stat span {
    font-size: 11px;
  }

  .dashboard-panel-head,
  .mini-panel-head {
    gap: 6px;
    min-height: 34px;
    padding: 8px 9px 5px;
  }

  .dashboard-panel-head h2,
  .mini-panel-head strong {
    display: none;
  }

  .long-focus-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 7px;
  }

  .focus-long-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 66px;
    gap: 6px;
    padding: 7px;
  }

  .focus-long-card p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.32;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .focus-long-progress {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    font-size: 11px;
  }

  .dashboard-panel-head .compact-button {
    width: auto !important;
    min-width: 68px;
    max-width: 92px;
    flex: 0 0 auto;
    padding-inline: 10px;
  }

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

  .segment {
    min-height: 38px;
    padding: 7px 4px;
    gap: 5px;
    font-size: 13px;
  }

  .tab-mark {
    width: 8px;
    height: 24px;
  }

  .panel-tools {
    gap: 7px;
  }

  .primary-button,
  .ghost-button,
  .danger-button {
    min-height: 38px;
  }

  .tool-button {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px;
    border-radius: 8px;
    box-shadow: none;
    font-size: 12px;
  }

  .tool-button .tab-mark {
    width: 6px;
    height: 21px;
  }

  .bucket-list {
    min-height: 270px;
    max-height: min(58vh, 500px);
    padding: 7px;
  }

  .task-item.compact {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    min-height: 42px;
    padding: 6px 7px;
    border-radius: 8px;
  }

  .task-item.compact .task-status-toggle {
    width: 22px;
    height: 22px;
  }

  .task-item.compact .task-copy h3,
  .task-item.compact .task-title-button {
    font-size: 13px;
  }

  .task-item.compact .task-schedule-line {
    margin-top: 2px;
    font-size: 11px;
  }

  .task-item.compact .icon-button {
    width: 28px;
    height: 28px;
  }

  .drag-handle {
    width: 20px;
    height: 32px;
  }

  .task-card {
    grid-template-columns: 20px 28px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 68px;
    padding: 10px 9px;
  }

  .task-card .item-actions {
    grid-column: auto;
    align-self: start;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .task-children {
    margin-left: 18px;
    padding-left: 10px;
  }

  .calendar-view {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
  }

  .calendar-bar {
    min-height: 52px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 8px;
  }

  .calendar-bar strong {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 18px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 0;
    border-right: 0;
  }

  .weekday {
    min-height: 28px;
    font-size: 11px;
  }

  .calendar-day {
    min-height: 54px;
    aspect-ratio: 1 / 1;
    padding: 4px;
  }

  .day-number {
    min-height: 20px;
    margin-bottom: 3px;
    gap: 2px;
    align-items: flex-start;
    font-size: 12px;
  }

  .day-number .pill {
    min-height: 18px;
    padding: 1px 5px;
    font-size: 10px;
  }

  .day-task {
    display: none;
  }

  .calendar-agenda {
    display: grid;
    gap: 9px;
    grid-column: 1 / -1;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: #f7faf8;
  }

  .calendar-agenda-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .agenda-task {
    min-height: 40px;
    padding: 8px 9px;
  }

  .value-card,
  .memo-card {
    padding: 12px;
  }

  .value-card {
    min-height: 108px;
  }

  .memo-card {
    min-height: 148px;
    max-height: 260px;
  }

  .value-card header,
  .memo-card header {
    gap: 8px;
  }

  .value-amount {
    font-size: 30px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .memo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    column-width: auto;
    column-gap: 0;
  }

  .memo-content {
    -webkit-line-clamp: 8;
  }

  .skill-board-wrap {
    height: calc(100vh - 206px);
    min-height: 520px;
    max-height: none;
  }

  .skill-board {
    width: 1800px;
    height: 1200px;
  }

  .skill-node {
    width: 170px;
  }

  .skill-heading-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .skill-heading-tools .primary-button {
    grid-column: 1 / -1;
  }

  .skill-view-controls {
    top: 8px;
    right: 8px;
    padding: 6px;
  }

  .skill-action-bar {
    bottom: 76px;
    display: grid;
    grid-template-columns: repeat(2, 42px);
    gap: 5px;
    right: 8px;
    width: auto;
    padding: 6px;
  }

  .skill-topic-button {
    min-width: 0;
    min-height: 42px;
    padding: 0;
  }
}

@media (max-width: 430px) {
  .module-tab {
    min-height: 44px;
    font-size: 13px;
  }

  .icon {
    width: 17px;
    height: 17px;
  }

  .task-summary {
    gap: 6px;
  }

  .pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .drag-handle {
    width: 20px;
  }
}

.long-focus .dashboard-panel-head {
  min-height: 34px;
}

.long-focus-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}

.important-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 7px;
}

.important-add-form input,
.important-subtask-form input,
.important-child-inline-form input,
.important-inline-input {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 7px;
}

.important-add-form .primary-button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
}

.important-goal-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(214, 222, 217, 0.9);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdfc;
  box-shadow: 0 8px 20px rgba(54, 45, 33, 0.055);
}

.important-goal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 7px;
  align-items: center;
}

.important-goal-title,
.important-subtask-title {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
  overflow-wrap: anywhere;
}

.important-goal-title {
  font-size: 16px;
}

.important-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.important-progress strong {
  color: var(--teal-dark);
  font-size: 13px;
  text-align: right;
}

.important-progress input[type="range"] {
  width: 100%;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--teal);
}

.important-subtask-list {
  display: grid;
  gap: 5px;
}

.important-subtask-wrap {
  display: grid;
  gap: 5px;
  margin-left: calc(var(--depth) * 12px);
}

.important-subtask {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 28px 28px;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(214, 222, 217, 0.72);
  border-radius: 8px;
  padding: 4px 5px;
  background: #fff;
}

.important-subtask.done .important-subtask-title {
  color: var(--muted);
  text-decoration: line-through;
}

.important-subtask .long-subtask-check {
  width: 20px;
  height: 20px;
}

.important-subtask .small-icon,
.important-goal-head .icon-button {
  width: 28px;
  height: 28px;
}

.important-subtask-form,
.important-child-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 6px;
}

.important-subtask-form .ghost-button,
.important-child-inline-form .ghost-button {
  min-width: 0;
  min-height: 34px;
  padding: 0;
}

.important-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.danger-icon {
  color: #8a2f20;
}

@media (min-width: 900px) {
  .long-focus-list {
    grid-template-columns: minmax(220px, 0.35fr) repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .important-add-form {
    position: sticky;
    top: 88px;
  }
}

@media (max-width: 720px) {
  .long-focus-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    overflow: visible;
    padding: 7px;
  }

  .important-goal-card {
    gap: 7px;
    padding: 8px;
  }

  .important-goal-title {
    font-size: 15px;
  }

  .important-subtask-title {
    font-size: 13px;
  }
}

.panel-title-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.panel-plus-button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(214, 222, 217, 0.9);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--teal-dark);
}

.panel-plus-button .icon {
  width: 14px;
  height: 14px;
}

.task-item.done .task-title-button,
.task-item.done .task-copy {
  color: var(--muted);
  text-decoration: line-through;
}

.important-add-form,
.important-subtask-form,
.important-child-inline-form {
  display: none !important;
}

.important-empty-panel {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
}

.important-goal-head {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
}

.important-subtask {
  grid-template-columns: 22px minmax(0, 1fr);
}

.reminder-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: #fff;
}

.reminder-check.done {
  border-color: var(--green);
  background: var(--green);
}

.important-goal-card.done .important-goal-title,
.important-subtask.done .important-subtask-title {
  color: var(--muted);
  text-decoration: line-through;
}

.important-goal-card.done {
  opacity: 0.72;
}

@media (max-width: 720px) {
  .long-focus-list {
    height: 286px;
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px;
    scroll-snap-type: x proximity;
  }

  .important-goal-card {
    flex: 0 0 min(310px, 82vw);
    max-height: 100%;
    overflow: auto;
    scroll-snap-align: start;
  }

  .important-empty-panel {
    flex: 0 0 min(310px, 82vw);
  }
}

.long-focus-list {
  height: clamp(260px, 31vh, 340px);
  display: flex !important;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 7px;
  scroll-snap-type: x proximity;
}

.important-goal-card {
  flex: 0 0 clamp(290px, 34vw, 360px);
  max-height: 100%;
  overflow: auto;
  scroll-snap-align: start;
}

.important-empty-panel {
  flex: 0 0 clamp(290px, 34vw, 360px);
}

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

.calendar-marker-add {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(214, 222, 217, 0.9);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.calendar-marker-add .icon {
  width: 13px;
  height: 13px;
}

.day-task.marker,
.task-item.marker {
  border-left-color: var(--green);
}

.day-task.marker {
  color: var(--teal-dark);
  background: rgba(57, 132, 88, 0.1);
}

.time-orb {
  position: fixed;
  right: 16px;
  bottom: calc(98px + env(safe-area-inset-bottom));
  z-index: 55;
  touch-action: none;
}

.time-orb-button {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(214, 222, 217, 0.92);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(43, 53, 48, 0.16);
  backdrop-filter: blur(16px);
  transition: width 180ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.time-orb.expanded .time-orb-button {
  width: min(320px, calc(100vw - 28px));
}

.time-orb.dragging .time-orb-button {
  transform: scale(1.02);
  box-shadow: 0 18px 42px rgba(43, 53, 48, 0.22);
}

.time-orb-dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(20, 125, 114, 0.12);
}

.time-orb-copy {
  min-width: 0;
  width: 0;
  display: grid;
  gap: 1px;
  opacity: 0;
  transform: translateX(-6px);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, width 180ms ease;
}

.time-orb.expanded .time-orb-copy {
  width: 248px;
  opacity: 1;
  transform: translateX(0);
}

.time-orb-copy strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.time-orb-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .long-focus-list {
    height: 286px;
  }

  .important-goal-card,
  .important-empty-panel {
    flex-basis: min(310px, 82vw);
  }

  .time-orb {
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

.long-focus-list {
  height: clamp(210px, 24vh, 260px);
}

.important-goal-card,
.important-empty-panel {
  animation: layered-card-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes layered-card-in {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.time-orb {
  --orb-expanded-width: min(320px, calc(100vw - 28px));
}

.time-orb.expanded .time-orb-button {
  width: var(--orb-expanded-width);
  height: auto;
  min-height: 52px;
  max-height: min(246px, calc(100vh - 26px));
  align-items: flex-start;
  padding: 10px 14px;
}

.time-orb.expand-left.expanded .time-orb-button {
  flex-direction: row-reverse;
}

.time-orb.expand-left.expanded .time-orb-copy {
  text-align: right;
}

.time-orb.expanded .time-orb-copy {
  width: calc(var(--orb-expanded-width) - 58px);
  max-height: 218px;
  align-content: start;
}

.time-orb-copy > strong {
  color: var(--teal-dark);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.time-orb-copy .time-orb-events {
  display: grid;
  gap: 6px;
  max-height: 178px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 1px 2px 1px 0;
}

.time-orb-event {
  min-width: 0;
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 6px 7px;
  background: rgba(20, 125, 114, 0.08);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: orb-event-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 58ms);
}

.time-orb-event.empty {
  background: rgba(214, 222, 217, 0.42);
}

.time-orb-event strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.08;
  text-overflow: ellipsis;
}

.time-orb-event small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
}

@keyframes orb-event-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .long-focus-list {
    height: 226px;
  }

  .time-orb.expanded .time-orb-button {
    max-height: min(232px, calc(100vh - 26px));
  }

  .time-orb-events {
    max-height: 164px;
  }
}

.long-focus-list {
  height: clamp(190px, 22vh, 230px);
  gap: 0;
  padding: 7px 28px 7px 7px;
  scroll-padding-inline: 7px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 42px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 42px), transparent 100%);
}

.important-goal-card,
.important-empty-panel {
  animation: none !important;
  opacity: var(--scroll-opacity, 1);
  transform: translateX(var(--scroll-x, 0)) scale(var(--scroll-scale, 1));
  transition: opacity 120ms linear, transform 120ms linear;
  will-change: opacity, transform;
}

.important-goal-card + .important-goal-card,
.important-goal-card + .important-empty-panel,
.important-empty-panel + .important-goal-card {
  margin-left: -42px;
}

.time-orb.expanded .time-orb-button {
  max-height: 142px;
}

.time-orb.expanded .time-orb-copy {
  max-height: 116px;
}

.time-orb-copy .time-orb-events {
  max-height: 84px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

.time-orb-event {
  min-height: 38px;
  animation: none !important;
  opacity: var(--scroll-opacity, 1);
  transform: translateY(var(--scroll-y, 0)) scale(var(--scroll-scale, 1));
  transition: opacity 110ms linear, transform 110ms linear;
  will-change: opacity, transform;
}

.time-orb-event + .time-orb-event {
  margin-top: -4px;
}

@media (max-width: 720px) {
  .long-focus-list {
    height: 204px;
  }

  .important-goal-card,
  .important-empty-panel {
    flex-basis: min(300px, 80vw);
  }

  .time-orb-copy .time-orb-events {
    max-height: 84px;
  }
}

.long-focus-list {
  height: clamp(178px, 20vh, 210px);
}

.important-goal-card {
  overflow: hidden;
}

.important-subtask-list {
  gap: 0;
  max-height: 86px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 1px 4px 1px 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13px, #000 calc(100% - 13px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 13px, #000 calc(100% - 13px), transparent 100%);
}

.important-subtask-list::-webkit-scrollbar {
  display: none;
}

.important-subtask-wrap {
  opacity: var(--subtask-opacity, 1);
  transform: translateY(var(--subtask-y, 0)) scale(var(--subtask-scale, 1));
  transition: opacity 110ms linear, transform 110ms linear;
  will-change: opacity, transform;
}

.important-subtask-wrap + .important-subtask-wrap {
  margin-top: -3px;
}

.time-orb {
  --orb-expanded-width: min(184px, calc(100vw - 28px));
}

.time-orb.expanded .time-orb-button {
  width: var(--orb-expanded-width) !important;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
}

.time-orb-dot {
  align-self: center;
}

.time-orb.expanded .time-orb-copy {
  width: calc(var(--orb-expanded-width) - 56px);
  height: 52px;
  max-height: 52px;
  align-content: center;
  justify-content: center;
  pointer-events: auto;
}

.time-orb-copy > strong:empty {
  display: none;
}

.time-orb-copy .time-orb-events {
  display: block;
  max-height: none;
  overflow: visible;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.time-orb-event {
  min-height: 0;
  display: grid;
  align-content: center;
  height: 40px;
  padding: 3px 7px;
  cursor: pointer;
  opacity: 1;
  transform: none;
  animation: none !important;
  transition: none;
  will-change: auto;
}

.time-orb-event + .time-orb-event {
  margin-top: 0;
}

@media (max-width: 720px) {
  .long-focus-list {
    height: 188px;
  }

  .important-subtask-list {
    max-height: 76px;
  }
}

.later-bucket {
  overflow: hidden;
}

.later-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.later-count {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(214, 222, 217, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.panel-collapse-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(214, 222, 217, 0.9);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--muted);
}

.panel-collapse-button .icon {
  transition: transform 140ms ease;
}

.later-bucket.collapsed .panel-collapse-button .icon {
  transform: rotate(-90deg);
}

.later-list {
  min-height: 92px;
  max-height: min(30vh, 260px);
}

.later-bucket.collapsed .later-list {
  display: none;
}

@media (max-width: 720px) {
  .later-list {
    min-height: 82px;
    max-height: min(24vh, 190px);
  }
}
