:root {
  color-scheme: light;
  --bg: #f3f1e7;
  --surface: #fffdf7;
  --surface-2: #f8f6ee;
  --ink: #2b2a24;
  --ink-soft: #5c594e;
  --muted: #928e80;
  --line: #e4e0d1;
  --accent: #4a7c59;
  --accent-ink: #ffffff;
  --accent-soft: #e6efe4;
  --danger: #a4493d;
  --danger-soft: #f7e3df;
  --ring: rgba(74, 124, 89, 0.22);
  --shadow: 0 1px 2px rgba(43, 42, 36, 0.05), 0 6px 20px rgba(43, 42, 36, 0.05);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.auth-pending .app-shell,
.auth-anonymous .app-shell {
  display: none;
}

.auth-authenticated .login-screen {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-panel {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-mark {
  display: block;
  margin-bottom: 18px;
}

.login-panel h1 {
  margin-bottom: 22px;
  font-size: 38px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form .primary-button {
  margin-top: 4px;
  width: 100%;
}

.login-status {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 44px);
  background: rgba(243, 241, 231, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--accent);
  flex: 0 0 auto;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.view-switch {
  display: flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.tab-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 8px 15px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.tab-button.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.user-chip {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.logout-button {
  min-height: 36px;
  padding: 0 12px;
}

.icon-button,
.primary-button,
.secondary-button {
  border-radius: var(--radius);
  min-height: 40px;
  cursor: pointer;
  font-weight: 650;
}

.icon-button {
  width: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.button-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 15px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 0 14px;
}

.icon-button:hover,
.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.primary-button:hover {
  filter: brightness(1.06);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.workspace {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.page-title {
  margin-bottom: 12px;
}

.page-title h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.status-strip {
  min-height: 0;
  margin-bottom: 14px;
}

.status-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}

.status-message.error {
  border-color: rgba(164, 73, 61, 0.34);
  background: var(--danger-soft);
  color: var(--danger);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: clip;
}

.panel.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.panel-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.toolbar-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 40px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.search-field {
  position: relative;
  display: block;
}

.search-field input {
  padding-left: 42px;
}

.search-field.compact {
  margin-bottom: 10px;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.sort-row {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.sort-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.task-list {
  display: grid;
}

.task-row {
  --status-border: var(--line);
  --status-bg: var(--surface);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(178px, auto);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--status-border);
  background: var(--status-bg);
}

.task-row.is-status-todo {
  --status-border: #b8852f;
  --status-bg: #fff9ed;
}

.task-row.is-status-in-progress {
  --status-border: #4d8295;
  --status-bg: #eef7fa;
}

.task-row.is-status-done {
  --status-border: #5f8b65;
  --status-bg: rgba(248, 246, 238, 0.58);
}

.task-row:last-child {
  border-bottom: 0;
}

.task-date {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
  padding-top: 3px;
}

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

.task-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.task-description strong {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
}

.task-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.duration-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
}

.due-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.due-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.due-pill.is-late {
  border-color: rgba(164, 73, 61, 0.34);
  background: var(--danger-soft);
  color: var(--danger);
}

.task-people {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.member-stack {
  display: flex;
  align-items: center;
  min-width: 0;
}

.avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--avatar-bg);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-left: -7px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar.more {
  background: var(--ink-soft);
}

.task-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.lifecycle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.lifecycle-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 0 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.lifecycle-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lifecycle-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.row-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}

.row-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.row-actions button[data-action="delete"]:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.empty-state {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
}

.stats-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.stats-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px;
}

.stats-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stats-chip strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.stats-list {
  display: grid;
  padding: 8px 18px 18px;
}

.stats-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stats-row:last-child {
  border-bottom: 0;
}

.stats-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stats-person strong,
.stats-person span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-person span {
  color: var(--muted);
  font-size: 12px;
}

.bar {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.stats-hours {
  text-align: right;
  color: var(--ink-soft);
  font-weight: 760;
}

.task-dialog {
  width: min(720px, calc(100% - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(43, 42, 36, 0.24);
}

.task-dialog::backdrop {
  background: rgba(35, 34, 29, 0.34);
  backdrop-filter: blur(2px);
}

.task-form {
  display: grid;
  max-height: min(86vh, 840px);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}

.dialog-header {
  border-bottom: 1px solid var(--line);
}

.dialog-actions {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  overflow: auto;
}

.span-2 {
  grid-column: 1 / -1;
}

.duration-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.duration-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: end;
}

.duration-adjust {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.duration-adjust:hover {
  border-color: var(--accent);
}

.duration-number {
  min-width: 0;
}

.duration-number input {
  min-height: 48px;
  text-align: center;
  font-size: 22px;
  font-weight: 760;
}

.duration-minutes {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

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

.minute-options button,
.member-picker button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.minute-options button {
  min-height: 48px;
  color: var(--ink-soft);
  font-weight: 700;
}

.minute-options button.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.field-block {
  display: grid;
  gap: 10px;
}

.field-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.field-heading small {
  color: var(--muted);
  font-size: 12px;
}

.member-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding-right: 2px;
}

.member-picker button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 9px;
  text-align: left;
}

.member-picker button.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.member-picker strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.check {
  color: var(--accent);
  font-weight: 900;
}

.add-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

@media (max-width: 900px) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  .view-switch {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .tab-button {
    flex: 1;
  }

  .panel-toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-row {
    grid-template-columns: 96px minmax(0, 1fr) 160px;
    align-items: start;
  }

  .task-actions {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
  }

  .brand small {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .view-switch {
    width: 100%;
    padding: 3px;
    box-shadow: none;
  }

  .tab-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .header-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .primary-button {
    padding: 0 11px;
  }

  .user-chip {
    display: none;
  }

  .logout-button {
    width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0;
  }

  .logout-button::before {
    content: "↩";
    font-size: 16px;
    line-height: 1;
  }

  #reload-button,
  #print-button {
    width: 38px;
    min-height: 38px;
  }

  #print-button {
    display: none;
  }

  #add-task-button {
    min-height: 38px;
    padding: 0 10px;
  }

  #add-task-button span[aria-hidden="true"] {
    font-size: 17px;
    line-height: 1;
  }

  .workspace {
    width: min(100% - 16px, 1180px);
    padding: 10px 0 34px;
  }

  .page-title {
    display: none;
  }

  h1 {
    font-size: 28px;
  }

  .panel {
    border-radius: 7px;
  }

  .panel-toolbar {
    gap: 10px;
    padding: 10px;
  }

  .search-field input {
    min-height: 40px;
    font-size: 14px;
  }

  .form-grid,
  .member-picker {
    grid-template-columns: 1fr;
  }

  .toolbar-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .toolbar-controls label {
    gap: 4px;
    min-width: 0;
  }

  .toolbar-controls label span {
    font-size: 11px;
  }

  .toolbar-controls select {
    min-height: 38px;
    padding: 0 9px;
    font-size: 13px;
  }

  .sort-row {
    gap: 6px;
    padding: 8px 10px;
  }

  .sort-row button {
    min-height: 34px;
    padding: 0 11px;
  }

  .task-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .task-date,
  .task-description,
  .task-actions {
    grid-column: 1;
  }

  .task-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 0;
    font-size: 12px;
  }

  .task-title-line {
    display: grid;
    gap: 6px;
  }

  .task-description strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .task-note {
    margin-top: 4px;
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .task-meta {
    gap: 6px;
    margin-top: 7px;
  }

  .due-pill,
  .duration-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .avatar {
    width: 26px;
    height: 26px;
    font-size: 9px;
    margin-left: -6px;
  }

  .task-people {
    max-width: 100%;
    font-size: 11px;
  }

  .task-people > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .task-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 7px;
  }

  .lifecycle-actions {
    display: grid;
    flex: 1 1 150px;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    justify-content: stretch;
    min-width: min(100%, 150px);
    overflow: visible;
  }

  .lifecycle-button {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
  }

  .row-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .row-actions button {
    width: 36px;
    height: 36px;
  }

  .stats-toolbar {
    gap: 8px;
  }

  .stats-toolbar .eyebrow {
    display: none;
  }

  .stats-toolbar h2 {
    font-size: 17px;
  }

  .stats-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .stats-chip {
    min-width: 0;
    padding: 10px;
  }

  .stats-chip span,
  .stats-chip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stats-chip span {
    font-size: 10px;
  }

  .stats-chip strong {
    margin-top: 3px;
    font-size: 16px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .stats-hours {
    text-align: left;
  }

  .dialog-header,
  .dialog-actions,
  .form-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .task-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
  }

  .task-form {
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(92dvh, 760px);
  }

  .dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--surface);
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-top: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .form-grid {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  input,
  select {
    min-height: 38px;
  }

  textarea {
    padding: 9px 10px;
  }

  .duration-card {
    padding: 10px;
    gap: 10px;
  }

  .duration-stepper {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .duration-adjust,
  .duration-number input,
  .minute-options button {
    min-height: 46px;
  }

  .minute-options button {
    font-size: 12px;
  }

  .member-picker {
    max-height: 190px;
  }

  .member-picker button {
    min-height: 42px;
  }

  .add-member-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .brand strong,
  .brand small {
    max-width: 118px;
  }

  #add-task-button {
    width: 38px;
    padding: 0;
  }

  #add-task-button span:last-child {
    display: none;
  }
}

@media print {
  .app-header,
  .panel-toolbar,
  .sort-row,
  .task-actions,
  .row-actions,
  .task-dialog {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .workspace {
    width: 100%;
    padding: 0;
  }

  .panel {
    box-shadow: none;
  }
}
