/* Local system fonts keep the dashboard fast and private. */
:root {
  color-scheme: light dark;
  --paper: #fafaf9;
  --white: #fff;
  --ink: #303235;
  --muted: #6c7077;
  --accent: #196aff;
  --accent-ink: #1855bf;
  --line: #e5e5e3;
  --pale: #f0f0ee;
  --sidebar: #f3f3f1;
  --active: #e7e7e4;
  --weekend: #f5f5f3;
  --today: #ededeb;
  --today-border: #a6a8ab;
  --label: #ffffff80;
  --story: #eaf1ff;
  --warning: #946a37;
  --warning-bg: #f1e9de;
  --alert-bg: #fbede8;
  --alert-border: #ecd3c9;
  --alert-ink: #95513d;
  --serif: Georgia, 'Times New Roman', serif
}

@media(prefers-color-scheme:dark) {
  :root {
    --paper: #171a1f;
    --white: #242a33;
    --ink: #e7e9ee;
    --muted: #a5adba;
    --accent-ink: #85b2ff;
    --line: #353c47;
    --pale: #2a303a;
    --sidebar: #1d2128;
    --active: #303744;
    --weekend: #1b1f26;
    --today: #2a303a;
    --today-border: #687589;
    --label: #ffffff0d;
    --story: #1b2639;
    --warning: #dbb789;
    --warning-bg: #382f25;
    --alert-bg: #392822;
    --alert-border: #6d4638;
    --alert-ink: #f2b7a2
  }
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'DejaVu Sans', sans-serif
}

a {
  color: inherit;
  text-decoration: none
}

button,
input {
  font: inherit
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent
}

button {
  cursor: pointer
}

button:disabled {
  cursor: not-allowed;
  opacity: .5
}

button,
input {
  border: 0
}

a,
button,
input {
  outline-offset: 4px
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink)
}

svg {
  flex-shrink: 0;
  vertical-align: middle
}

h1,
h2,
h3,
p {
  margin: 0
}

h1 {
  font: normal clamp(32px, 3vw, 46px)/1.13 var(--serif);
  letter-spacing: -1.4px
}

h2 {
  font-size: 15px;
  font-weight: 650
}

small {
  font-size: 11px
}

.accent {
  color: var(--accent-ink)
}

.app-shell {
  display: flex;
  min-height: 100vh
}

.sidebar {
  width: 204px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.5px;
  white-space: nowrap
}

.brand-mark {
  width: 33px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 10px
}

.sidebar nav {
  margin-top: 36px
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px
}

.nav-item.active {
  background: var(--active);
  color: var(--ink);
  font-weight: 650
}

.sidebar-note {
  margin-top: auto;
  padding: 65px 10px 43px
}

.mascot {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0
}

.sidebar-note p {
  font: 21px/1.35 var(--serif);
  margin: 12px 0;
  color: var(--muted)
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 19px
}

.avatar {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--active);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px
}

.account strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis
}

.account small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.account form {
  margin-left: auto
}

.main {
  flex: 1;
  min-width: 0;
  padding: 0 34px 22px
}

.demo-banner {
  margin-top: 16px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.demo-banner a {
  font-weight: 650;
  white-space: nowrap
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 35px 0 33px
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 13px
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 11px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5
}

.primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent)
}

.primary:hover {
  background: #105ce5
}

.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink)
}

.secondary:hover {
  background: var(--pale)
}

.full {
  width: 100%;
  padding: 14px 16px
}

.week-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 27px 0 22px
}

.week-title {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap
}

.week-title h1 {
  font: 600 16px/1.5 system-ui, sans-serif;
  letter-spacing: -.2px
}

.count {
  font-size: 10px;
  background: var(--active);
  color: var(--muted);
  min-width: 20px;
  height: 20px;
  padding: 2px 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  font-weight: 500
}

.week-title>.count {
  margin-left: 4px
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px
}

.search {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted)
}

.search button {
  padding: 0;
  background: none;
  color: inherit
}

.search input {
  width: 145px;
  background: transparent;
  outline-offset: 1px;
  font-size: 12px;
  color: var(--ink)
}

.search input::placeholder {
  color: var(--muted)
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted)
}

.icon-button {
  background: transparent;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 20px
}

.icon-button:hover {
  background: var(--pale)
}

.today-button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px
}

.board-scroll {
  overflow-x: auto;
  padding: 0 1px 8px
}

.scroll-hint {
  display: none;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 12px
}

.board {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 10px;
  min-height: 405px
}

.day-column {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-radius: 9px;
  padding: 11px 8px;
  min-width: 0
}

.day-column.is-today {
  border-color: var(--today-border);
  background: var(--today)
}

.day-column.weekend {
  background: var(--weekend)
}

.day-column.weekend.is-today {
  background: var(--today)
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 4px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px
}

.day-name {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 3px
}

.day-number {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 25px/1.2 var(--serif);
  color: var(--ink)
}

.day-number small {
  font-size: 10px;
  font-family: system-ui, 'DejaVu Sans', sans-serif;
  color: var(--muted);
  letter-spacing: .4px
}

.is-today .day-number {
  color: var(--ink)
}

.is-today .day-number small {
  background: var(--ink);
  padding: 3px 5px;
  border-radius: 3px;
  color: var(--paper);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px
}

.day-tasks {
  display: flex;
  flex-direction: column;
  gap: 9px
}

.task-card {
  --project-color: #b8b9ba;
  padding: 11px 10px 9px;
  background: var(--white);
  background: color-mix(in srgb, var(--project-color) 12%, var(--white));
  border: 1px solid color-mix(in srgb, var(--project-color) 25%, var(--white));
  border-radius: 7px;
  min-width: 0;
  transition: border-color .15s, transform .15s
}

.task-card:has(a):hover {
  border-color: color-mix(in srgb, var(--project-color) 60%, var(--muted));
  transform: translateY(-1px)
}

.task-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px
}

.task-ring {
  width: 11px;
  height: 11px;
  border: 1px solid color-mix(in srgb, var(--project-color) 65%, var(--muted));
  border-radius: 50%;
  flex-shrink: 0
}

.task-project {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.priority {
  color: var(--warning);
  font-size: 13px;
  margin-left: auto;
  line-height: 1
}

.task-title {
  display: block;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.65;
  color: var(--ink);
  overflow-wrap: anywhere
}

.task-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px
}

.task-bottom>span {
  display: flex;
  align-items: center;
  gap: 4px
}

.demo-tag {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted)
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px
}

.labels span {
  background: var(--label);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 8px
}

.empty-day {
  text-align: center;
  padding: 35px 0;
  color: var(--muted);
  font-size: 9px
}

.empty-day>span {
  font: 22px var(--serif);
  color: var(--muted)
}

.empty-day p {
  margin-top: 8px
}

.resting-vicuna {
  display: block;
  width: 90px;
  height: auto;
  margin: 0 auto;
  pointer-events: none
}

.extras {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  margin-top: 30px
}

.extra-section>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px
}

.extra-section h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 550
}

.extra-section>header>span {
  font-size: 9px;
  color: var(--muted)
}

.overdue h2 {
  color: var(--warning)
}

.overdue h2 .count {
  background: var(--warning-bg);
  color: var(--warning)
}

.extra-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px
}

.extra-tasks .task-card {
  padding: 11px 13px
}

.extra-tasks .task-bottom {
  margin-top: 8px
}

.extra-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  font-size: 11px;
  color: var(--muted)
}

.board-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
  padding-top: 25px;
  margin-top: 26px;
  border-top: 1px solid var(--line)
}

.board-footer>span {
  display: flex;
  align-items: center;
  gap: 6px
}

.alert {
  padding: 13px 15px;
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  border-radius: 7px;
  color: var(--alert-ink);
  font-size: 12px;
  margin-bottom: 18px
}

.alert a {
  text-decoration: underline
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* Login and connection screens */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh
}

.login-story {
  background: var(--story);
  padding: 40px 48px;
  display: flex;
  flex-direction: column
}

.story-copy {
  margin: auto 0;
  padding: 70px 0
}

.story-copy h1 {
  font-size: clamp(42px, 4.5vw, 68px);
  letter-spacing: -2px;
  color: var(--accent-ink)
}

.story-copy>p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 24px
}

.story-foot {
  font: italic 18px var(--serif);
  color: var(--muted)
}

.story-bottom {
  font-size: 10px;
  color: var(--muted)
}

.week-illustration {
  display: flex;
  gap: 8px;
  margin: 47px 0 29px;
  transform: rotate(-3deg);
  max-width: 490px
}

.mini-day {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 8px;
  width: 14%;
  height: 130px;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 8px 16px #00000008
}

.mini-day span {
  font-size: 8px;
  letter-spacing: 1px
}

.mini-day i {
  display: block;
  height: 20px;
  background: var(--active);
  border-radius: 3px;
  margin-top: 12px
}

.mini-day i+i {
  height: 15px;
  margin-top: 6px;
  width: 80%
}

.mini-day.mini-active {
  transform: translateY(-9px);
  border-color: var(--accent-ink);
  background: var(--white)
}

.mini-active i {
  background: color-mix(in srgb, var(--accent) 20%, var(--white))
}

.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px
}

.login-card {
  width: 100%;
  max-width: 380px
}

.login-mascot {
  width: 58px;
  height: 58px;
  margin-bottom: 29px
}

.login-card h2 {
  font: 36px/1.2 var(--serif);
  letter-spacing: -.8px
}

.login-card .subtitle {
  margin: 17px 0 30px;
  font-size: 12px
}

.setup-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--pale);
  padding: 14px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted)
}

.setup-note strong {
  font-weight: 600;
  color: var(--ink)
}

.setup-note p {
  margin-top: 5px;
  line-height: 1.8
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 26px 0
}

.divider:before,
.divider:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1
}

.fine-print {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 33px;
  padding-top: 22px;
  border-top: 1px solid var(--line)
}

.privacy-note svg {
  margin-top: 2px
}

.connection-grid {
  display: grid;
  grid-template-columns: minmax(300px, 580px) minmax(220px, 320px);
  gap: 50px;
  margin-top: 5px;
  align-items: start
}

.connection-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 12px
}

.connection-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 26px
}

.connection-heading .mascot {
  width: 44px;
  height: 44px
}

.connection-heading h2 {
  font-size: 17px
}

.connection-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px
}

.connection-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 22px 0 8px
}

.connection-card input:not([type=hidden]) {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px
}

.connection-card input[readonly] {
  color: var(--muted)
}

.field-help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 6px 0 24px
}

.connection-guide {
  padding-top: 25px
}

.connection-guide h2 {
  font: 27px var(--serif);
  margin: 12px 0 25px
}

.connection-guide ol {
  list-style: none;
  padding: 0;
  counter-reset: steps
}

.connection-guide li {
  position: relative;
  padding-left: 37px;
  margin-bottom: 24px;
  counter-increment: steps
}

.connection-guide li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--accent-ink)
}

.connection-guide strong {
  font-size: 12px;
  font-weight: 550
}

.connection-guide li p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px
}

.disconnect {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

.text-button {
  padding: 0;
  color: var(--warning);
  background: none;
  font-size: 11px;
  text-decoration: underline
}

code {
  font-size: .95em
}

@media(min-width:1650px) {
  .main {
    padding-left: 50px;
    padding-right: 50px
  }

  .board {
    gap: 14px
  }

  .task-card {
    padding: 15px
  }

  .task-title {
    font-size: 13px
  }

  .task-project {
    font-size: 10px
  }

  .task-bottom {
    font-size: 9px
  }

  .board {
    min-height: 450px
  }
}

@media(max-width:1250px) {
  .sidebar {
    width: 190px;
    padding-left: 15px;
    padding-right: 15px
  }

  .main {
    padding-left: 24px;
    padding-right: 24px
  }

  .toolbar-actions {
    gap: 6px
  }

  .search input {
    width: 115px
  }

  .board {
    grid-template-columns: repeat(7, minmax(140px, 1fr))
  }

  .extras {
    gap: 18px
  }

  .scroll-hint {
    display: block
  }
}

@media(max-width:900px) {
  .sidebar {
    width: 72px;
    padding: 26px 12px 15px
  }

  .sidebar .brand>span:last-child,
  .sidebar .nav-text,
  .sidebar-note,
  .account>div,
  .account>.avatar {
    display: none
  }

  .sidebar .brand {
    justify-content: center
  }

  .sidebar nav {
    margin-top: 45px
  }

  .nav-item {
    font-size: 0;
    padding: 13px;
    gap: 0
  }

  .account {
    margin-top: auto;
    justify-content: center
  }

  .account form {
    margin: 0
  }

  .main {
    padding-left: 22px;
    padding-right: 22px
  }

  .toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end
  }

  .week-toolbar {
    align-items: flex-start
  }

  .search {
    margin-bottom: 4px
  }

  .extras {
    grid-template-columns: 1fr
  }

  .connection-grid {
    gap: 25px;
    grid-template-columns: 1fr
  }

  .connection-guide {
    max-width: 500px
  }

  .login-story {
    padding: 30px
  }

  .login-form-area {
    padding: 30px
  }

  .story-copy h1 {
    font-size: 44px
  }
}

@media(max-width:600px) {
  .app-shell {
    display: block
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 15px 18px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 12px
  }

  .sidebar .brand>span:last-child {
    display: block
  }

  .sidebar nav {
    margin: 0 0 0 auto;
    display: flex;
    gap: 5px
  }

  .nav-item {
    margin: 0;
    padding: 12px
  }

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

  .account {
    margin: 0;
    padding: 0;
    border: 0
  }

  .main {
    padding: 0 18px 18px
  }

  .demo-banner {
    font-size: 9px;
    display: block;
    line-height: 1.8
  }

  .demo-banner a {
    display: block;
    margin-top: 2px
  }

  .page-header {
    padding: 27px 0;
    align-items: flex-start;
    gap: 10px
  }

  h1 {
    font-size: 35px
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px
  }

  .subtitle {
    font-size: 11px
  }

  .week-toolbar {
    display: block;
    padding: 16px 0
  }

  .toolbar-actions {
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px
  }

  .search input {
    width: 170px;
    font-size: 16px
  }

  .date-nav {
    font-size: 9px;
    gap: 2px
  }

  .board {
    grid-template-columns: repeat(7, 177px);
    gap: 10px;
    min-height: 390px
  }

  .day-column {
    padding: 11px 10px
  }

  .task-title {
    font-size: 12px
  }

  .task-project {
    font-size: 9px
  }

  .task-bottom {
    font-size: 9px
  }

  .extras {
    margin-top: 22px;
    gap: 25px
  }

  .extra-section>header>span {
    font-size: 8px
  }

  .extra-tasks {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr))
  }

  .board-footer {
    font-size: 8px;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px
  }

  .connection-card {
    padding: 20px
  }

  .connection-heading p {
    font-size: 10px
  }

  .connection-heading h2 {
    font-size: 15px
  }

  .login-layout {
    grid-template-columns: 1fr
  }

  .login-story {
    padding: 22px
  }

  .story-copy {
    padding: 40px 0 30px
  }

  .story-copy h1 {
    font-size: 42px
  }

  .story-copy>p:not(.eyebrow) {
    font-size: 12px;
    margin-top: 16px
  }

  .week-illustration {
    display: none
  }

  .story-foot {
    display: none
  }

  .story-bottom {
    font-size: 8px
  }

  .login-form-area {
    padding: 35px 24px 40px
  }

  .login-card {
    max-width: 420px
  }

  .login-card h2 {
    font-size: 30px
  }

  .login-card .subtitle {
    margin: 10px 0 23px
  }

  .privacy-note {
    margin-top: 23px
  }
}

/* Task details and scheduling stay on the board. */
[hidden] {
  display: none !important
}

.task-card {
  cursor: pointer
}

.move-visit {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 24px #0002;
  color: var(--ink);
  font-size: 12px;
  pointer-events: none;
  animation: vicuna-hello .2s ease-out
}

.move-visit img {
  object-fit: contain
}

@keyframes vicuna-hello {
  from { opacity: 0; transform: translateY(8px) }
  to { opacity: 1; transform: translateY(0) }
}

.move-task {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin: -4px -4px -4px auto;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  opacity: 0
}

.task-card:hover .move-task,
.task-card:focus-within .move-task {
  opacity: 1
}

.move-task:hover {
  background: var(--label)
}

.is-dragging,
.is-saving {
  opacity: .5
}

.drop-target {
  outline: 2px dashed var(--ink);
  outline-offset: -3px
}

.extra-section[data-drop-date] {
  border-radius: 9px;
  min-height: 115px
}

dialog {
  color: var(--ink);
  background: var(--paper);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 80px #0003;
  max-width: none;
  max-height: calc(100dvh - 32px)
}

dialog::backdrop {
  background: #20222580
}

body:has(dialog[open]) {
  overflow: hidden
}

.task-dialog {
  width: min(1280px, calc(100vw - 48px));
  height: min(900px, 86dvh)
}

.task-dialog[open] {
  display: flex;
  flex-direction: column
}

.dialog-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0
}

.dialog-header h2 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px
}

.dialog-header .icon-button {
  flex-shrink: 0
}

.task-dialog iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: var(--white)
}

.dialog-note {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0
}

.schedule-dialog {
  width: min(420px, calc(100vw - 32px))
}

#schedule-form {
  padding: 20px
}

.schedule-intro {
  display: flex;
  align-items: center;
  gap: 16px
}

.schedule-intro p {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere
}

.schedule-intro img {
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none
}

#schedule-form label {
  display: block;
  margin: 20px 0 8px;
  font-size: 12px
}

#schedule-date {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px
}

.schedule-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px
}

@media(hover:none) {
  .move-task {
    opacity: 1;
    width: 36px;
    height: 36px
  }
}

@media(max-width:600px) {
  .task-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px)
  }

  .dialog-header {
    padding: 8px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}
