:root {
  color-scheme: light;
  --ink: #153d36;
  --muted: #56675e;
  --paper: #f7f6ef;
  --line: #dce2d7;
  --orange: #ad5420;
  --white: #fffef8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
button:hover,
a:hover {
  text-decoration: underline;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
.top,
.tabs,
main {
  max-width: 1120px;
  margin: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  width: 96px;
  height: 48px;
  object-fit: contain;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.tabs > a,
.tabs > details > summary {
  display: block;
  padding: 12px 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.tabs [aria-current],
.tabs .current {
  border-bottom-color: var(--orange);
  font-weight: 700;
}
.tabs details > div {
  position: absolute;
  z-index: 4;
  right: 28px;
  top: 100%;
  background: var(--white);
  box-shadow: 0 8px 24px #153d3620;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-width: 200px;
}
.tabs details a {
  display: block;
  padding: 10px;
}
main {
  padding-top: 24px;
  padding-bottom: 24px;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 24px 0 12px;
}
h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}
.page-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.page-heading p {
  margin: 0;
}
.muted,
.meta {
  font-size: 13px;
  color: var(--muted);
}
#freshness {
  margin: 8px 0 20px;
}
#freshness a {
  margin-left: 8px;
}
#notice:empty {
  display: none;
}
#notice {
  padding: 12px 16px;
  margin: 12px 0;
  background: #e7efe4;
  border-radius: 8px;
}
#notice a {
  margin-left: 12px;
}
#error,
.conflict,
.warning-box {
  padding: 12px 16px;
  background: #fff0d3;
  border-radius: 8px;
  margin: 12px 0;
}
#error {
  background: #f9e0d9;
}
.task,
.event-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 16px 18px;
  margin: 10px 0;
}
.row-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}
.row-main {
  min-width: 0;
  flex: 1;
}
.task-title {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}
.row-meta {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 9px;
  background: #e7efe4;
  color: #315140;
  font-size: 12px;
  font-weight: 600;
}
.bad {
  background: #f9e0d9;
  color: #8a3022;
}
.warning {
  background: #fff0d3;
  color: #80550e;
}
.task details > summary,
.event-card details > summary {
  cursor: pointer;
  min-height: 36px;
  padding-top: 8px;
  font-size: 14px;
}
.detail {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0;
}
.detail a {
  display: inline-block;
  margin: 6px 18px 6px 0;
}
.detail p,
.completion-details {
  overflow-wrap: anywhere;
}
.completion-details {
  white-space: pre-wrap;
}
blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  background: #f2f1e8;
  border-left: 3px solid var(--orange);
}
.editor {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin: 16px 0;
}
.editor > label {
  flex: 1;
  min-width: min(180px, 100%);
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #a8b5a9;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: 10px;
  max-width: 100%;
  width: 100%;
  min-height: 44px;
}
textarea {
  min-height: 130px;
}
.editor .actions,
.editor-status,
.editor .conflict,
.editor .advanced {
  width: 100%;
  margin: 0;
}
.editor-status {
  font-size: 13px;
  min-height: 20px;
}
.editor > label:has(textarea) {
  flex-basis: 100%;
}
.advanced {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.advanced label {
  margin-top: 12px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.filters > label {
  flex: 1;
  min-width: min(180px, 100%);
}
.filter-scope {
  font-size: 13px;
  color: var(--muted);
}
.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
}
.empty p {
  margin: 0 0 8px;
}
.bill-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.bill-summary button {
  font-size: 13px;
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.bill-summary button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.bill-total {
  font-size: 14px;
}
.event-card > summary {
  cursor: pointer;
}
.event-card ul {
  padding-left: 20px;
}
.event-card li {
  margin: 8px 0;
}
.connection {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
}
.connection p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.activity-entry {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.activity-entry p {
  margin: 6px 0;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.status-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
dl {
  margin: 8px 0;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.login {
  max-width: 600px;
  padding-top: 12vh;
}
.login h1 {
  font-size: 44px;
}
.login .button {
  display: inline-block;
  margin: 20px 0;
}
.private,
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-more {
  font-size: 13px;
}
.local-status {
  font-size: 13px;
  margin: 8px 0;
}
.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;
}
@media (max-width: 600px) {
  .top,
  .tabs,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top {
    height: 68px;
  }
  .top button {
    padding: 8px 10px;
    font-size: 13px;
  }
  .tabs {
    gap: 16px;
  }
  .tabs > a,
  .tabs > details > summary {
    font-size: 13px;
  }
  .tabs details > div {
    right: 16px;
  }
  .page-heading {
    gap: 4px;
    display: block;
  }
  .page-heading p {
    margin-top: 4px;
  }
  main {
    padding-top: 18px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    margin-top: 20px;
  }
  .task,
  .event-card {
    padding: 12px;
  }
  .row-head {
    gap: 10px;
  }
  .row-head > button {
    font-size: 13px;
    padding: 8px 10px;
  }
  .task-title {
    font-size: 15px;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
  }
  .filters {
    gap: 8px;
  }
  .filters > label {
    min-width: 130px;
  }
  .filters > label:first-child {
    flex-basis: 100%;
  }
}
@media (max-width: 359px) {
  .tabs {
    gap: 10px;
  }
  .tabs > a,
  .tabs > details > summary {
    font-size: 12px;
  }
  .top .logo {
    width: 80px;
  }
  .row-head {
    flex-wrap: wrap;
  }
  .row-head .row-main {
    flex-basis: 100%;
  }
}
