* {
  box-sizing:border-box
}

:root {
  color-scheme:light;
  --bg:#f8f8f4;
  --panel:#fff;
  --surface:#fff;
  --fg:#141619;
  --mut:#626566;
  --line:#dcded8;
  --ac:#df510c;
  --accent:#df510c;
  --on:#fff
}

:root[data-theme=dark] {
  color-scheme:dark;
  --bg:#101113;
  --panel:#17191c;
  --surface:#17191c;
  --fg:#f2f2ee;
  --mut:#a2a7ad;
  --line:#303338;
  --ac:#ff7b28;
  --accent:#ff7b28;
  --on:#151515
}

body {
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font:13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

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

button,a,.file {
  touch-action:manipulation
}

button,.file,header a:not(.brand) {
  background:transparent;
  border:1px solid var(--line);
  padding:9px 12px;
  border-radius:6px;
  cursor:pointer;
  text-decoration:none;
  color:var(--fg)
}

button:hover,.file:hover {
  border-color:var(--ac)
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--ac);
  outline-offset:3px
}

.primary {
  background:var(--ac);
  color:var(--on);
  border-color:var(--ac)
}

.danger {
  color:var(--ac)
}

header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:20px 4vw;
  border-bottom:1px solid var(--line);
  background:var(--panel)
}

.brand {
  text-decoration:none;
  color:var(--ac);
  letter-spacing:.21em;
  font-size:17px;
  font-weight:600
}

.brand span {
  display:block;
  color:var(--mut);
  font-size:8px;
  letter-spacing:.18em
}

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

main {
  max-width:1440px;
  margin:auto;
  padding:26px 4vw
}

.heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px
}

.eyebrow {
  color:var(--ac);
  text-transform:uppercase;
  font-size:9px;
  letter-spacing:.16em
}

.heading h1 {
  font-weight:400;
  font-size:clamp(30px,3.8vw,44px);
  letter-spacing:-.04em;
  margin:4px 0
}

.muted {
  color:var(--mut)
}

.notice {
  padding:12px 16px;
  border-left:2px solid var(--ac);
  background:var(--panel);
  color:var(--mut);
  font-size:11px
}

.filters {
  display:flex;
  gap:14px;
  align-items:end;
  flex-wrap:wrap;
  margin:24px 0
}

.filters label:first-child {
  flex:1;
  min-width:160px
}

label {
  display:flex;
  flex-direction:column;
  gap:6px
}

label>span {
  font-size:11px;
  color:var(--mut)
}

input:not([type=range]),select,textarea {
  padding:10px 12px;
  background:var(--bg);
  border:1px solid var(--line);
  width:100%;
  max-width:100%;
  border-radius:5px
}

input[type=range] {
  width:100%;
  accent-color:var(--ac)
}

.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:20px 0
}

.metrics article,.panel {
  padding:20px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:9px;
  min-width:0
}

.metrics article {
  border-top:2px solid var(--line)
}

.metrics article:first-child {
  border-top-color:var(--ac)
}

.metrics small {
  color:var(--mut);
  font-size:11px
}

.metrics b {
  display:block;
  font-size:36px;
  font-weight:400;
  margin:8px 0
}

.metrics span {
  color:var(--mut);
  font-size:10px
}

.two {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:20px 0
}

.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px
}

h2 {
  font-size:14px;
  font-weight:500;
  margin:0 0 12px
}

.section-head h2 {
  margin:0
}

.chart {
  display:flex;
  gap:24px;
  align-items:center;
  flex-wrap:wrap;
  padding:15px 0
}

#donut {
  height:136px;
  width:136px;
  flex-shrink:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--line)
}

#donut>div {
  height:104px;
  width:104px;
  border-radius:50%;
  background:var(--panel);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center
}

#donut strong {
  font-size:28px;
  font-weight:400
}

#donut small {
  font-size:10px;
  color:var(--mut)
}

ul {
  padding:0;
  list-style:none
}

#legend {
  flex:1;
  min-width:120px
}

#legend li {
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0;
  color:var(--mut);
  font-size:11px
}

#legend li b {
  margin-left:auto;
  color:var(--fg)
}

.swatch {
  width:7px;
  height:7px;
  border-radius:50%
}

.deadline {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:11px
}

.deadline p {
  margin:0
}

.deadline small {
  color:var(--mut)
}

.late {
  color:var(--ac)
}

.table-wrap {
  overflow:auto
}

table {
  width:100%;
  border-collapse:collapse;
  min-width:730px;
  text-align:left
}

th {
  font-size:10px;
  color:var(--mut);
  font-weight:500
}

th button {
  border:0;
  padding-left:0;
  font-size:10px;
  color:var(--mut)
}

th,td {
  padding:14px 10px;
  border-bottom:1px solid var(--line)
}

td {
  font-size:11px
}

td:first-child {
  padding-left:0;
  max-width:230px
}

td small {
  display:block;
  color:var(--mut)
}

.pill {
  display:inline-block;
  border:1px solid var(--line);
  padding:3px 7px;
  border-radius:99px;
  font-size:10px;
  white-space:nowrap
}

.pill.active {
  color:var(--ac);
  border-color:var(--ac)
}

.meter {
  height:3px;
  background:var(--line);
  min-width:90px;
  margin-top:5px;
  overflow:hidden
}

.meter i {
  height:100%;
  display:block;
  background:var(--ac);
  transition:width .25s ease
}

td .actions {
  flex-wrap:nowrap
}

td button {
  font-size:10px;
  padding:6px 7px
}

#board {
  display:grid;
  grid-template-columns:repeat(4,minmax(170px,1fr));
  gap:12px;
  overflow:auto;
  padding-bottom:8px
}

.column {
  padding:12px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:7px
}

.column h3 {
  font-size:11px;
  font-weight:500;
  color:var(--mut);
  margin:2px 0 14px
}

.project {
  background:var(--panel);
  padding:14px;
  margin-bottom:12px;
  border:1px solid var(--line);
  border-radius:7px
}

.project p {
  margin:5px 0
}

.project small {
  color:var(--mut)
}

.project select {
  font-size:10px;
  margin-top:12px;
  padding:6px
}

.project button {
  font-size:10px;
  margin-top:10px
}

.empty {
  padding:26px;
  text-align:center;
  color:var(--mut)
}

.tools {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:20px
}

.file {
  display:inline-block;
  font-size:13px
}

.file input {
  display:none
}

#activity li {
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:11px
}

#activity small {
  display:block;
  color:var(--mut)
}

footer {
  display:flex;
  gap:18px;
  justify-content:space-between;
  color:var(--mut);
  font-size:10px;
  margin:30px 0 5px;
  flex-wrap:wrap
}

dialog:not(.consent-dialog) {
  position:fixed;
  top:12px;
  bottom:auto;
  margin:0 auto;
  background:var(--panel);
  color:var(--fg);
  border:1px solid var(--line);
  border-radius:10px;
  width:min(580px,calc(100% - 28px));
  max-height:calc(var(--frame-viewport,100dvh) - 24px);
  padding:26px
}

dialog::backdrop {
  background:#000b
}

dialog label {
  margin:14px 0
}

dialog .actions {
  justify-content:flex-end
}

#confirm-detail {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

#toast {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  opacity:0;
  padding:12px 20px;
  background:var(--fg);
  color:var(--bg);
  pointer-events:none;
  max-width:90%;
  z-index:20
}

#toast.show {
  opacity:1
}

[hidden] {
  display:none!important
}

button[aria-pressed=true] {
  border-color:var(--ac);
  color:var(--ac)
}

@media(max-width:800px) {
  .two {
    grid-template-columns:1fr
  }

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

  header {
    align-items:flex-start
  }

  .brand {
    font-size:14px
  }

  header .actions {
    justify-content:flex-end;
    font-size:10px
  }

  .heading {
    align-items:flex-start
  }

}

@media(max-width:450px) {
  main {
    padding:22px 14px
  }

  .heading {
    flex-direction:column
  }

  .filters label {
    width:100%
  }

  .metrics {
    gap:10px
  }

  .metrics article,.panel {
    padding:16px
  }

  .metrics b {
    font-size:32px
  }

  header {
    padding:16px 14px;
    flex-wrap:wrap
  }

  .chart {
    gap:16px
  }

}

@media(prefers-reduced-motion:reduce) {
  .meter i {
    transition:none
  }

}

