:root {
  font-family: 'Segoe UI', 'Yu Gothic UI', 'Meiryo', sans-serif;
  color: #efefef;
  background: #1c1c1c;
  font-synthesis: none;
  color-scheme: dark;
  --accent: #929fef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#app {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}
.sidebar {
  width: 288px;
  flex-shrink: 0;
  background: #232323;
  border-right: 1px solid #303030;
  display: flex;
  flex-direction: column;
  padding-top: 26px;
}
.brand {
  font-size: 12px;
  letter-spacing: 2.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  margin-bottom: 24px;
  color: #dedede;
}
.brand > span {
  font-size: 26px;
  color: #8e9dec;
  line-height: 1;
}
.profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 32px 22px 24px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ae674e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.profile strong {
  font-size: 14px;
  font-weight: 500;
}
.profile small {
  display: block;
  font-size: 11px;
  color: #969696;
  margin-top: 5px;
}
.search {
  display: flex;
  align-items: center;
  margin: 0 20px 24px;
  border: 1px solid #454545;
  border-bottom-color: #777;
  border-radius: 6px;
  background: #272727;
}
.search input {
  width: 100%;
  background: none;
  border: 0;
  padding: 10px 12px;
  min-width: 0;
  font-size: 13px;
  color: #eee;
}
.search span {
  font-size: 25px;
  padding-right: 12px;
  color: #bbb;
}
.sidebar nav {
  overflow: auto;
  flex: 1;
  padding: 0 10px;
}
.nav {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 16px;
  min-height: 49px;
  padding: 8px 12px;
  text-align: left;
  border-radius: 5px;
  position: relative;
  font-size: 14px;
  margin: 3px 0;
}
.nav:hover {
  background: #2e2e2e;
}
.nav.active {
  background: #383838;
}
.nav.active:before {
  content: '';
  position: absolute;
  left: 0;
  height: 23px;
  width: 3px;
  border-radius: 3px;
  background: #9ba9f8;
}
.nav-icon {
  font-size: 22px;
  line-height: 1;
  width: 24px;
  color: #909ee9;
}
.nav-icon.sun {
  color: #e4aa80;
}
.nav-icon.star {
  color: #e3a5bd;
}
.nav-icon.calendar {
  color: #8dc7c4;
}
.nav small {
  margin-left: auto;
  font-size: 11px;
  color: #bbb;
  background: #ffffff08;
  padding: 2px 6px;
  border-radius: 10px;
}
.divider {
  height: 1px;
  background: #393939;
  margin: 17px 2px;
}
.list-caption {
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  padding: 0 14px 9px;
}
.new-list {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 24px;
  border-top: 1px solid #3a3a3a;
  font-size: 23px;
}
.new-list span {
  font-size: 14px;
}
.server-tab {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 10px 8px;
  padding: 12px 14px;
  border-radius: 5px;
  text-align: left;
  font-size: 14px;
}
.server-tab:hover,
.server-tab.active {
  background: #383838;
}
.local-status {
  padding: 0 24px 16px;
  font-size: 10px;
  color: #929292;
  display: flex;
  align-items: center;
  gap: 7px;
}
.local-status i {
  height: 5px;
  width: 5px;
  background: #8bbba4;
  border-radius: 50%;
}
main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 52px 48px 20px;
  background: radial-gradient(ellipse at 90% 0%, #23242b 0%, #1c1c1c 52%);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 33px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.4px;
  color: #85858d;
  margin-bottom: 12px;
}
h1 {
  font-size: 31px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
}
header p {
  font-size: 11px;
  color: #929298;
  margin: 10px 0 0;
}
.heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.toolbar select {
  font-size: 11px;
  background: transparent;
  border: 0;
  color: #aaa;
  max-width: 100px;
}
.toolbar > button {
  font-size: 18px;
  letter-spacing: 2px;
  padding: 10px;
}
.menu {
  position: absolute;
  right: 0;
  top: 42px;
  background: #303030;
  border: 1px solid #454545;
  border-radius: 8px;
  z-index: 4;
  width: 190px;
  box-shadow: 0 12px 30px #0005;
  padding: 6px;
}
.menu button {
  display: block;
  padding: 12px;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
.menu button:hover {
  background: #414141;
}
.task-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 14px;
}
.task {
  display: flex;
  align-items: center;
  background: #292929;
  min-height: 65px;
  border-radius: 5px;
  margin-bottom: 5px;
  padding: 0 17px;
  gap: 15px;
  border: 1px solid transparent;
}
.task:hover {
  background: #303030;
}
.task.selected {
  border-color: #737fc0;
}
.check {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid #b5b5b8;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.check:hover {
  border-color: var(--accent);
  background: #929fef22;
}
.check.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #252535;
}
.task-content {
  padding: 17px 0;
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.task-content small {
  display: block;
  color: #92929a;
  font-size: 10px;
  margin-top: 4px;
}
.overdue {
  color: #e49c94;
}
.task.done .task-content > span,
.strike {
  text-decoration: line-through;
  color: #888;
}
.star-button {
  font-size: 26px;
  font-family: Arial;
  color: #aaa;
  padding: 4px;
}
.star-button.on {
  color: var(--accent);
}
footer {
  padding-top: 12px;
}
#add-form {
  display: flex;
  align-items: center;
  background: #292929;
  border: 1px solid #3a3a3c;
  border-radius: 7px;
  padding: 0 16px;
  gap: 13px;
}
#add-form > span {
  font-size: 28px;
  color: var(--accent);
}
#new-task {
  background: none;
  border: 0;
  color: #eee;
  flex: 1;
  min-width: 0;
  height: 60px;
  font-size: 14px;
}
#new-task::placeholder {
  color: var(--accent);
}
#add-form button {
  font-size: 11px;
  border: 1px solid #484851;
  border-radius: 5px;
  padding: 6px 9px;
  color: #bbb;
}
#add-form button span {
  margin-left: 7px;
  color: #777;
}
.footer-hint {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #717175;
  padding: 12px 2px 0;
}
.completed-toggle {
  padding: 20px 0 14px;
  font-size: 12px;
}
.completed-toggle small {
  color: #888;
  margin-left: 8px;
}
.empty {
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #aaa;
}
.empty > span {
  font-size: 42px;
  color: #8b98d5;
  background: #929fef0c;
  border: 1px solid #929fef22;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
}
.empty h2 {
  font-size: 19px;
  font-weight: 500;
  margin-top: 25px;
}
.empty p {
  font-size: 12px;
}
.detail {
  width: 335px;
  background: #242424;
  border-left: 1px solid #353535;
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
  align-items: center;
}
.detail-top button {
  font-size: 19px;
}
.detail textarea {
  resize: vertical;
  background: #2b2b2b;
  border: 1px solid #424242;
  border-radius: 5px;
  padding: 12px;
  width: 100%;
  color: #eee;
  line-height: 1.7;
}
.detail #title {
  font-size: 16px;
  min-height: 90px;
}
.save {
  background: #8998e3;
  color: #161722;
  border-radius: 5px;
  font-size: 11px;
  padding: 8px 12px;
  margin-top: 8px;
}
.detail-action {
  text-align: left;
  background: #2c2c2c;
  border-radius: 5px;
  padding: 16px 10px;
  font-size: 12px;
}
.accent {
  color: var(--accent);
}
.field {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #2c2c2c;
  padding: 12px;
  border-radius: 5px;
}
.field input,
.field select {
  width: 100%;
  background: #242424;
  border: 1px solid #454545;
  padding: 8px;
  border-radius: 4px;
  color: #ddd;
}
#note-form label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}
#note {
  min-height: 130px;
}
.detail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
}
.detail-bottom small {
  color: #888;
  font-size: 10px;
}
.danger {
  color: #e6a19c;
}
.detail-bottom button {
  font-size: 11px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 9px 0;
}
.step span {
  flex: 1;
  overflow-wrap: anywhere;
}
.step input {
  accent-color: #929fef;
}
#step-form {
  display: flex;
  align-items: center;
  color: var(--accent);
}
#step-form input {
  background: none;
  border: 0;
  min-width: 0;
  width: 100%;
  padding: 12px 5px;
  font-size: 12px;
  color: #ddd;
}
dialog {
  border: 1px solid #555;
  border-radius: 10px;
  background: #292929;
  width: min(400px, 90vw);
  padding: 25px;
}
dialog::backdrop {
  background: #0009;
}
dialog h2 {
  font-size: 19px;
  margin-top: 0;
}
dialog input {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #555;
  border-radius: 5px;
}
dialog form > div {
  text-align: right;
  margin-top: 15px;
}
dialog button {
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.mobile-toggle {
  display: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 23px;
  border-radius: 7px;
  background: #454557;
  color: white;
  box-shadow: 0 4px 30px #0005;
  opacity: 0;
  pointer-events: none;
  font-size: 13px;
  z-index: 10;
}
#toast.visible {
  opacity: 1;
}
.loading {
  margin: auto;
  color: #aaa;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 5px;
}
@media (min-width: 1500px) {
  .sidebar {
    width: 320px;
  }
  main {
    padding: 60px 60px 25px;
  }
  .task {
    min-height: 72px;
  }
  .task-content {
    font-size: 16px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 35px 25px 18px;
  }
  .sidebar {
    width: 245px;
  }
  .detail {
    width: 300px;
  }
  .toolbar select {
    width: 80px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    box-shadow: 20px 0 80px #0008;
  }
  .sidebar.mobile-open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
    font-size: 23px;
    color: var(--accent);
  }
  main {
    padding: 28px 18px 16px;
  }
  .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 26px;
  }
  header {
    gap: 4px;
  }
  .toolbar {
    gap: 0;
  }
  .detail {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(360px, 100%);
    z-index: 6;
    box-shadow: -20px 0 80px #0008;
  }
  .task-content {
    font-size: 13px;
  }
  .task {
    padding: 0 12px;
    gap: 12px;
  }
  .footer-hint span {
    display: none;
  }
}
:root {
  --memo-accent: #e2bd70;
  --table-accent: #84c9b3;
}
.mode-task,
.entry-task {
  --entry-color: #929fef;
}
.mode-memo,
.entry-memo {
  --entry-color: var(--memo-accent);
}
.mode-table,
.entry-table {
  --entry-color: var(--table-accent);
}
.mode-switch {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  align-items: center;
}
.mode-switch button {
  font-size: 12px;
  padding: 8px 15px;
  border: 1px solid #414146;
  border-radius: 7px;
  color: #a9a9af;
  display: flex;
  gap: 8px;
  align-items: center;
}
.mode-switch button span {
  color: var(--entry-color);
  font-size: 16px;
}
.mode-switch button[aria-pressed='true'] {
  color: var(--entry-color);
  border-color: var(--entry-color);
  background: color-mix(in srgb, var(--entry-color) 10%, #242424);
}
.mode-switch button:hover {
  background: #343439;
}
.composer #add-form {
  border-color: color-mix(in srgb, var(--entry-color) 45%, #333);
}
.composer #add-form > span,
.composer #new-task::placeholder {
  color: var(--entry-color);
}
.composer #add-form > button {
  flex-shrink: 0;
  color: var(--entry-color);
  border-color: color-mix(in srgb, var(--entry-color) 45%, #333);
}
.composer #add-form > button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.composer #add-form.add-memo {
  align-items: flex-end;
  padding: 12px;
  gap: 10px;
}
.composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 76px;
  max-height: 180px;
  resize: vertical;
  background: transparent;
  border: 0;
  padding: 6px;
  color: #eee;
  font-size: 14px;
  line-height: 1.7;
}
.composer textarea::placeholder {
  color: #c6b48e;
}
.column-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--entry-color);
  font-size: 12px;
}
.column-settings small {
  font-size: 10px;
  color: #999;
}
.column-settings input,
.edit-column-label input {
  width: 65px;
  margin-left: 8px;
  background: #242424;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 5px 7px;
  color: inherit;
}
.composer #add-form.add-table {
  padding: 12px;
  gap: 12px;
}
.cell-inputs {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px 10px;
}
.cell-input {
  flex: 1 0 125px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #98bdaf;
  font-size: 10px;
}
.cell-input input {
  width: 100%;
  background: #212624;
  border: 1px solid #43534d;
  border-radius: 5px;
  padding: 10px;
  color: #eee;
  font-size: 13px;
}
.cell-input input::placeholder {
  color: #747f79;
}
.task.entry-memo {
  background: #302d25;
  border-left: 3px solid var(--memo-accent);
}
.task.entry-table {
  background: #25302c;
  border-left: 3px solid var(--table-accent);
}
.task.entry-memo:hover {
  background: #39352c;
}
.task.entry-table:hover {
  background: #2d3934;
}
.task.entry-memo.selected,
.task.entry-table.selected {
  border-color: var(--entry-color);
}
.entry-symbol {
  font-size: 23px;
  flex-shrink: 0;
  width: 21px;
  color: var(--entry-color);
}
.entry-memo .star-button.on,
.entry-table .star-button.on {
  color: var(--entry-color);
}
.memo-body {
  white-space: pre-wrap;
  display: block;
  overflow-wrap: anywhere;
}
.inline-note {
  display: block;
  white-space: pre-wrap;
  font-size: 12px;
  color: #adaaa3;
  margin-top: 6px;
  line-height: 1.6;
}
.task.done .task-content .inline-note {
  text-decoration: none;
  color: #888;
}
.entry-table .task-content {
  overflow-x: auto;
}
.table-cells {
  display: flex;
  min-width: 100%;
  width: max-content;
}
.table-cell {
  flex: 1 0 135px;
  max-width: 260px;
  padding: 0 16px;
  border-right: 1px solid #475a50;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.table-cell:first-child {
  padding-left: 0;
}
.table-cell:last-child {
  border-right: 0;
}
.task-content .table-cell small {
  color: #8ab8a4;
  margin: 0 0 6px;
  font-size: 9px;
}
.table-cell > span {
  display: block;
}
.edit-column-label {
  font-size: 12px;
  color: #bbb;
}
.edit-cells {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.edit-cells .cell-input {
  flex: none;
}
.detail.entry-memo .save,
.detail.entry-table .save {
  background: var(--entry-color);
}
.detail.entry-memo #note {
  min-height: 210px;
}
@media (max-width: 800px) {
  .mode-switch button {
    padding: 7px 13px;
  }
  .composer #add-form.add-table {
    flex-wrap: wrap;
  }
  .cell-inputs {
    flex-basis: 100%;
  }
  .composer #add-form.add-table > button {
    margin-left: auto;
  }
  .column-settings small {
    font-size: 9px;
  }
  .task.entry-table {
    padding-left: 9px;
    gap: 9px;
  }
  .table-cell {
    flex-basis: 120px;
  }
  .composer textarea {
    min-height: 65px;
  }
}
.cell-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cell-heading label {
  flex: 1;
}
#add-form .remove-column,
.remove-column {
  border: 0;
  background: transparent;
  color: #9bb2a8;
  font-size: 20px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
}
#add-form .remove-column:hover,
.remove-column:hover {
  color: #ffbab3;
  background: #56362f;
}
.remove-column:disabled {
  opacity: 0.25;
  cursor: default;
}
#add-form .add-column,
.add-column {
  flex: 0 0 36px;
  align-self: stretch;
  min-height: 58px;
  border: 1px dashed #5b7c6c;
  border-radius: 6px;
  padding: 5px;
  color: var(--table-accent);
  font-size: 22px;
  background: #25302c;
}
#add-form .add-column:hover,
.add-column:hover {
  background: #344b40;
}
.add-column:disabled {
  opacity: 0.3;
  cursor: default;
}
.edit-cells .add-column {
  min-height: 36px;
  flex-basis: auto;
}
.column-help {
  font-size: 11px;
  color: #9baca4;
  margin: 0 0 10px;
}
.composer #add-form.add-table {
  padding: 6px;
  gap: 0;
}
.cell-inputs {
  gap: 6px;
  padding: 0;
  align-items: center;
}
.cell-input {
  position: relative;
  gap: 0;
  min-width: 0;
}
.cell-heading {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 1;
}
.cell-input input {
  height: 38px;
  padding: 8px 30px 8px 10px;
}
#add-form .remove-column,
.remove-column {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.cell-input input:focus-visible {
  outline-offset: -2px;
}
.edit-cells {
  gap: 6px;
  margin-top: 8px;
}
.task.entry-table {
  min-height: 48px;
  gap: 10px;
  padding: 0 12px;
}
.entry-table .task-content {
  padding: 10px 0;
}
.table-cells {
  width: 100%;
  min-width: 0;
}
.table-cell {
  flex: 1 0 110px;
  max-width: none;
  padding: 0 10px;
}
#add-form .add-column {
  height: 38px;
  min-height: 38px;
  align-self: center;
  flex: 0 0 32px;
  padding: 0;
}
.drag-handle {
  flex: 0 0 18px;
  width: 18px;
  padding: 6px 0;
  color: #7c8782;
  font-size: 20px;
  cursor: grab;
  line-height: 1;
}
.drag-handle:active {
  cursor: grabbing;
}
.drag-handle:disabled {
  opacity: 0.25;
  cursor: default;
}
.task.dragging {
  opacity: 0.35;
}
.task.drop-before {
  box-shadow: inset 0 3px 0 #a0c8ed;
}
.task.drop-after {
  box-shadow: inset 0 -3px 0 #a0c8ed;
}
.empty-drag-image {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.task-list.is-reordering .task:not(.dragging) {
  filter: brightness(0.4);
}
.task-list .task.dragging {
  opacity: 1;
  position: relative;
  z-index: 1;
  min-height: 60px;
  width: 100%;
  background: #394553;
  border: 2px solid #b7d8ff;
  box-shadow:
    inset 5px 0 0 #b7d8ff,
    0 4px 16px #0006;
}
.task-list .task.dragging .task-content {
  color: #fff;
  font-weight: 600;
}
.task-list .task.dragging .inline-note,
.task-list .task.dragging .memo-body {
  color: #eef5ff;
}
.task-list.is-reordering .task.drop-before,
.task-list.is-reordering .task.drop-after {
  filter: brightness(0.75);
}
.task-list.is-reordering .task.drop-before {
  box-shadow: inset 0 4px 0 #c7e1ff;
}
.task-list.is-reordering .task.drop-after {
  box-shadow: inset 0 -4px 0 #c7e1ff;
}
/* Neutral charcoal surfaces, with restrained mode accents. */
:root {
  --canvas: #1e1e1e;
  --sidebar: #242424;
  --surface: #292929;
  --surface-hover: #303030;
  --surface-selected: #383838;
  --border: #3b3b3b;
  --text: #f2f2f2;
  --text-secondary: #b4b4b4;
  --accent: #8293e6;
  --memo-accent: #cbb27b;
  --table-accent: #8bbbad;
  background: var(--canvas);
  color: var(--text);
}
main {
  background: var(--canvas);
}
.sidebar {
  background: var(--sidebar);
  border-right-color: #303030;
}
.detail {
  background: var(--sidebar);
  border-left-color: var(--border);
}
.brand > span,
.nav-icon {
  color: var(--accent);
}
.nav:hover {
  background: #2c2c2c;
}
.nav.active {
  background: var(--surface-selected);
}
.nav.active:before {
  background: #81b7da;
}
.nav small {
  background: #303030;
  color: #e0e0e0;
}
.search {
  background: #242424;
  border-color: #3c3c3c;
  border-bottom-color: #909090;
}
.search input,
.task-content,
.composer textarea,
#new-task {
  color: var(--text);
}
.task {
  background: var(--surface);
}
.task:hover {
  background: var(--surface-hover);
}
.task.selected {
  background: #333333;
  border-color: var(--accent);
}
.check {
  border-color: #c3c3c3;
}
.check.checked {
  color: #202020;
}
.star-button {
  color: #c2c2c2;
}
.mode-task,
.entry-task {
  --entry-color: var(--accent);
}
.task.entry-memo {
  background: #2c2b27;
}
.task.entry-table {
  background: #272c2b;
}
.task.entry-memo:hover {
  background: #34322c;
}
.task.entry-table:hover {
  background: #2f3533;
}
.task.entry-memo.selected {
  background: #37342c;
}
.task.entry-table.selected {
  background: #303934;
}
.mode-switch button {
  background: #252525;
  border-color: var(--border);
  color: var(--text-secondary);
}
.mode-switch button:hover {
  background: #333333;
}
.mode-switch button[aria-pressed='true'] {
  background: color-mix(in srgb, var(--entry-color) 9%, #292929);
  border-color: color-mix(in srgb, var(--entry-color) 65%, #3b3b3b);
}
.composer #add-form {
  background: #333333;
  border-color: #3d3d3d;
}
.composer #add-form:focus-within {
  background: #383838;
  border-color: color-mix(in srgb, var(--entry-color) 55%, #454545);
}
.composer textarea::placeholder,
.cell-input input::placeholder {
  color: #b4b4b4;
}
.cell-input input {
  background: #2a2a2a;
  border-color: #484848;
  color: var(--text);
}
.table-cell {
  border-right-color: #4a4d4b;
}
#add-form .add-column,
.add-column {
  background: #2d2d2d;
  border-color: #5d7169;
  color: var(--table-accent);
}
#add-form .add-column:hover,
.add-column:hover {
  background: #39403d;
}
#add-form .remove-column,
.remove-column {
  color: #babfbc;
}
.detail textarea,
.field,
.detail-action {
  background: #2b2b2b;
  border-color: #454545;
}
.field input,
.field select {
  background: #242424;
  border-color: #484848;
}
.save {
  background: var(--accent);
  color: #191919;
}
.step input {
  accent-color: var(--accent);
}
header p,
.task-content small,
.footer-hint,
.local-status,
.detail-top,
.detail-bottom small,
.list-caption,
.column-help {
  color: #aaa;
}
.inline-note {
  color: #b9b9b9;
}
.toolbar select {
  color: #c2c2c2;
}
.menu,
dialog {
  background: #2b2b2b;
  border-color: #484848;
}
.menu button:hover {
  background: #3a3a3a;
}
#toast {
  background: #3a3a3a;
  border: 1px solid #565656;
  color: var(--text);
}
.task-list .task.dragging {
  background: #414141;
  border-color: #a8b7f0;
  box-shadow:
    inset 5px 0 0 #a8b7f0,
    0 4px 16px #0006;
}
.task-list .task.dragging .inline-note,
.task-list .task.dragging .memo-body {
  color: #f5f5f5;
}
.task-list.is-reordering .task.drop-before {
  box-shadow: inset 0 4px 0 #a8b7f0;
}
.task-list.is-reordering .task.drop-after {
  box-shadow: inset 0 -4px 0 #a8b7f0;
}
.composer .mode-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin: 0 0 8px;
  padding: 0;
  background: #252525;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.composer .mode-divider {
  width: 1px;
  height: 22px;
  background: #5c5c5c;
}
.composer .mode-switch button {
  width: 100%;
  height: 44px;
  padding: 0 8px;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
}
.composer .mode-switch button span {
  width: 16px;
  text-align: center;
  line-height: 1;
}
.login-form {
  width: min(440px, 90vw);
  margin: auto;
  padding: 24px;
}
.login-form label {
  display: block;
  margin: 20px 0;
}
.login-form input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
}
.login-form p {
  line-height: 1.6;
  font-size: 13px;
}
.login-form .demo-hint {
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
}
.demo-banner {
  margin: -16px 24px 16px;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
}
.local-status button {
  margin-left: 8px;
}

.list-nav {
  position: relative;
}
.list-nav .nav {
  width: 100%;
  padding-right: 38px;
}
.list-nav .nav > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-options {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #aaa;
  border-radius: 6px;
  padding: 8px 4px;
  cursor: pointer;
}
.list-options:hover,
.list-options:focus-visible {
  background: #444;
  color: white;
}
.menu.list-context-menu {
  position: fixed;
  right: auto;
  width: 224px;
  max-width: calc(100vw - 16px);
  z-index: 1000;
  box-shadow: 0 12px 36px #0008;
}
.list-context-menu button:focus-visible {
  outline: 2px solid #a8b7f0;
  outline-offset: -2px;
}
#list-form .today-list-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
}
.today-list-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
#list-name[readonly] {
  color: #aaa;
}
.appearance-fields {
  display: grid;
  gap: 16px;
}
.appearance-fields label {
  display: grid;
  gap: 8px;
}
.appearance-fields input[type='color'] {
  width: 100%;
  height: 42px;
  background: transparent;
  border: 1px solid #555;
  border-radius: 8px;
  cursor: pointer;
}
.icon-presets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.icon-presets .btn {
  padding: 8px;
  font-size: 20px;
}

/* Shared input language: same height, radius, border, and action placement. */
.control {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  background: #1c1c1c;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.control::placeholder,
.search input::placeholder,
.composer textarea::placeholder,
.composer #new-task::placeholder,
.cell-input input::placeholder {
  color: #9d9d9d;
}
.control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
textarea.control {
  min-height: 112px;
  resize: vertical;
}
.stack-form {
  display: grid;
  gap: 14px;
}
.stack-form > label,
.field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  color: #c8c8c8;
}
.field-label {
  margin: 4px 0 0;
  font-size: 12px;
  color: #c8c8c8;
}
.field-hint,
.composer-hint {
  margin: 8px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #a3a3a3;
}
.field-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.field-actions .save,
.inline-add .save,
.login-form .save,
.composer-submit {
  margin: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  background: #2a2a2a;
  color: var(--text);
  font-size: 13px;
}
.btn:hover {
  background: #343434;
}
.btn-danger {
  color: #f0b2ac;
  border-color: #6a4542;
  background: transparent;
}
.btn-danger:hover {
  background: #3a2b2a;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  color: #d0d0d0;
  line-height: 1;
}
.icon-button:hover {
  background: #3a3a3a;
}
.search {
  gap: 2px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  border: 1px solid #454545;
  border-radius: 10px;
  background: #242424;
}
.search input {
  height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.search .search-icon {
  font-size: 16px;
  padding: 0;
  color: #bdbdbd;
  line-height: 1;
}
.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search input:focus-visible {
  outline: none;
}
.toolbar select.control {
  width: auto;
  min-width: 7.5rem;
  max-width: 9.5rem;
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  font-size: 13px;
  background: #2a2a2a;
}
.composer-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.composer #add-form,
.composer #add-form.add-memo,
.composer #add-form.add-table {
  flex: 1;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  align-items: center;
  padding: 4px;
  gap: 4px;
  border: 1px solid #454545;
  border-radius: 10px;
  background: #2c2c2c;
}
.composer #new-task,
.composer textarea {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  resize: none;
  overflow: auto;
}
.composer #add-form:focus-within {
  border-color: color-mix(in srgb, var(--entry-color) 60%, #454545);
  outline: 2px solid var(--entry-color);
  outline-offset: 2px;
  background: #303030;
}
.composer #add-form input:focus-visible,
.composer #add-form textarea:focus-visible {
  outline: none;
}
.composer-submit {
  flex: 0 0 76px;
  background: var(--entry-color);
  color: #171717;
  font-size: 14px;
}
.composer-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
.composer-hint {
  margin-top: 8px;
}
.composer .cell-inputs {
  align-items: center;
  gap: 6px;
  padding: 0;
}
.composer .cell-input {
  flex: 1 0 132px;
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-width: 0;
  background: #242424;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
}
.composer .cell-input input {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 8px 4px 8px 10px;
  border: 0;
  background: transparent;
  font-size: 16px;
}
.composer .cell-input:focus-within {
  border-color: var(--entry-color);
  outline: 2px solid var(--entry-color);
  outline-offset: 1px;
}
.composer #add-form.add-table:focus-within {
  outline: none;
}
.composer .remove-column,
.edit-cells .remove-column {
  width: 32px;
  height: 32px;
  margin: 0 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8c8c8;
  font-size: 16px;
}
.composer .add-column {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 1px dashed #6d857c;
  border-radius: 8px;
  background: transparent;
  color: var(--table-accent);
  font-size: 20px;
}
.edit-cells {
  gap: 12px;
  margin-top: 0;
}
.edit-cells .cell-input {
  gap: 6px;
}
.edit-cells .cell-heading {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cfcfcf;
  font-size: 12px;
}
.edit-cells .cell-input .control {
  height: auto;
  padding: 9px 12px;
}
.edit-cells .add-column {
  width: 100%;
  height: 40px;
  min-height: 40px;
  flex: none;
  align-self: stretch;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px dashed #6d857c;
  border-radius: 8px;
  background: transparent;
  color: var(--table-accent);
  font-size: 13px;
}
.detail-action {
  min-height: 44px;
  border: 1px solid #454545;
  border-radius: 8px;
  background: #2a2a2a;
}
.detail .field .control,
.detail textarea.control,
#server-form .control,
.login-form .control,
dialog .control,
#step-form .control {
  background: #1c1c1c;
  border: 1px solid #4a4a4a;
  color: var(--text);
}
#step-form.inline-add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: inherit;
}
#step-form .control {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  font-size: 14px;
}
.detail #note.control {
  min-height: 140px;
}
.detail.entry-memo #note.control {
  min-height: 180px;
}
.detail-bottom .btn {
  font-size: 13px;
}
.login-form {
  width: min(420px, calc(100vw - 32px));
  padding: 28px 24px;
  background: #242424;
  border: 1px solid #3b3b3b;
  border-radius: 14px;
}
.login-form h1 {
  font-size: 22px;
  letter-spacing: 0;
}
.login-form label,
.login-form p {
  margin: 0;
}
.login-form .control {
  display: block;
  margin-top: 6px;
}
.login-form .save {
  width: 100%;
  margin-top: 4px;
}
.login-form .field-hint {
  margin: 0;
}
dialog {
  border-radius: 14px;
  padding: 24px;
}
dialog .field-actions {
  justify-content: flex-end;
}
dialog .control {
  margin-top: 0;
}
input[type='date'].control {
  color-scheme: dark;
}
@media (max-width: 1100px) {
  .toolbar select.control {
    width: auto;
    min-width: 7rem;
  }
}
@media (max-width: 800px) {
  header {
    flex-wrap: wrap;
  }
  .toolbar select.control {
    width: 6.5rem;
    min-width: 0;
    max-width: 6.5rem;
  }
  .composer #add-form.add-table {
    flex-wrap: nowrap;
  }
  .composer .cell-inputs {
    flex-basis: auto;
  }
  .composer-submit {
    flex-basis: 64px;
    padding: 0 10px;
  }
  .composer .mode-switch button {
    padding: 0 6px;
    font-size: 16px;
  }
}
.composer .mode-switch button[aria-pressed='true'] {
  color: var(--entry-color);
  background: color-mix(in srgb, var(--entry-color) 16%, #2a2a2a);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--entry-color) 70%, #3b3b3b);
}
.composer .mode-switch button[aria-pressed='false']:hover {
  background: #333;
}
/* Detail panel saves on blur, so fields sit without per-field save buttons. */
.detail #title {
  min-height: 0;
  padding: 10px 12px;
}
#step-form .save {
  white-space: nowrap;
}
.task-content small.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.list-badge {
  color: #c8c8c8;
}
.empty small {
  color: #8a8a8a;
  font-size: 12px;
}
#toast {
  display: flex;
  align-items: center;
  gap: 16px;
}
#toast.visible {
  pointer-events: auto;
}
#toast button {
  color: var(--accent);
  font-weight: 650;
  padding: 2px 4px;
}
.scrim {
  display: none;
}
@media (max-width: 800px) {
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 4;
  }
  .scrim.for-detail {
    z-index: 5;
  }
}
/* Keep the toast clear of the composer so undo never covers the add field. */
#toast {
  bottom: 128px;
  max-width: calc(100vw - 32px);
}
#note-form label {
  margin-bottom: 0;
}
/* Server settings: every panel is heading, description, content, then an action row. */
.server-main {
  overflow: auto;
}
.server-panels {
  display: grid;
  gap: 16px;
  max-width: 680px;
  padding-bottom: 24px;
}
.server-panel {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.panel-head p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #a3a3a3;
}
.server-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #1f1f1f;
}
.server-preview strong {
  font-size: 15px;
  font-weight: 600;
}
.server-preview small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #9a9a9a;
}
.panel-form {
  display: grid;
  gap: 18px;
}
.panel-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #c8c8c8;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 7rem;
  gap: 12px;
}
.field-narrow {
  max-width: 12rem;
}
.input-unit .control {
  width: 8rem;
}
.input-unit > span {
  white-space: nowrap;
}
.input-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8c8c8;
  font-size: 13px;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.server-panel .save {
  margin: 0;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.info-list {
  display: grid;
  margin: 0;
  border-radius: 10px;
  background: #1f1f1f;
}
.info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  font-size: 13px;
}
.info-list > div + div {
  border-top: 1px solid #303030;
}
.info-list dt {
  color: #a3a3a3;
}
.info-list dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.data-row + .data-row {
  padding-top: 18px;
  border-top: 1px solid #303030;
}
.data-row strong {
  font-size: 13px;
  font-weight: 600;
}
.data-row small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: #a3a3a3;
}
.data-row .btn,
.data-row .save {
  flex-shrink: 0;
}
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  cursor: pointer;
}
.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-picker:focus-within .btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.file-picker .btn {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  font-size: 12px;
}
.file-name {
  min-width: 0;
  font-size: 12px;
  color: #a3a3a3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.format-help {
  font-size: 12px;
  color: #a3a3a3;
}
.format-help summary {
  cursor: pointer;
  color: #c8c8c8;
}
.format-help p {
  margin: 8px 0 0;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .server-panel {
    padding: 18px;
  }
  .data-row {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-actions > * {
    flex: 1 1 auto;
  }
}
