:root {
  color-scheme: light;
  --ink: #39445e;
  --muted: #6d778c;
  --canvas: #f3f5f7;
  --card: #ffffff;
  --line: #e3e7ee;
  --olive: #618034;
  --olive-deep: #4e6929;
  --water: #3d8b96;
  --water-soft: #e7f3f5;
  --slate: #39445e;
  --sand: #8a6232;
  --priority: #9a3412;
  --danger: #9b3b3b;
  --shadow: 0 1px 2px rgba(57, 68, 94, 0.06), 0 8px 24px rgba(57, 68, 94, 0.04);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
}
button, input { font: inherit; }
button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}
button:hover { border-color: #c5ccd6; }
button:disabled { opacity: 0.45; cursor: default; }
button.primary {
  background: var(--olive);
  border-color: var(--olive);
  color: white;
}
button.primary:hover { background: var(--olive-deep); }
button.danger {
  color: var(--danger);
  background: transparent;
}
button.on {
  background: var(--olive);
  color: white;
  border-color: var(--olive);
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.7rem 1.4rem;
  background: white;
  border-bottom: 3px solid var(--olive);
}
.appbar.planning {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding-bottom: 0.7rem;
}
.appbar-row { display: flex; align-items: center; gap: 1.1rem; width: 100%; flex-wrap: wrap; }
.day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; width: 100%; }
.day-strip { display: flex; gap: 0.35rem; flex: 1; min-width: 280px; }
.day-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  min-width: 0;
  padding: 0.35rem 0.2rem 0.4rem;
  border-radius: 12px;
}
.day-chip .day-rel { font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.day-chip .day-name { font-size: 0.84rem; font-weight: 650; }
.day-chip .day-count { font-size: 0.66rem; color: var(--olive-deep); }
.day-chip.weekend { background: #f4f1ea; color: #7c7368; border-color: #e4ddd0; }
.day-chip.weekend .day-rel, .day-chip.weekend .day-count { color: #8d8378; }
.day-chip.on { background: var(--olive); border-color: var(--olive); color: white; }
.day-chip.on .day-rel, .day-chip.on .day-name, .day-chip.on .day-count { color: white; }
.day-chip.weekend.on { background: #8d7b62; border-color: #8d7b62; }
.week-note {
  width: 100%;
  margin: 0.15rem 0 0;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: #fff1e6;
  color: #9a3412;
  font-weight: 650;
}
.logo { height: 42px; width: auto; display: block; }
.logo-link { display: block; line-height: 0; }
main.home, main.past {
  display: block;
  max-width: 920px;
}
.home-feature, .home-secondary {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.home-feature {
  border-top: 4px solid var(--olive);
  padding: 1.7rem 1.6rem 1.45rem;
  min-height: 190px;
}
.home-feature + .home-feature { margin-top: 0.9rem; }
.home-feature.done { border-top-color: var(--water); }
.home-feature:hover, .home-secondary:hover { border-color: #c5d3b4; }
.home-kicker {
  color: var(--olive-deep);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-feature h2 { margin: 0.25rem 0 0.35rem; font-size: 2rem; letter-spacing: -0.03em; }
.home-feature p, .home-secondary p { margin: 0; color: var(--muted); }
.home-meta { display: inline-block; margin-top: 1rem; color: var(--ink); font-size: 0.92rem; }
.home-other { margin-top: 1.8rem; }
.home-other h2 {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-secondary { padding: 1rem 1.1rem 0.95rem; max-width: 360px; }
.home-secondary h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.home-secondary .home-meta { margin-top: 0.7rem; color: var(--muted); font-size: 0.85rem; }
.past-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
  margin-bottom: 0.8rem;
}
.past-tools .year-field {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}
.past-tools #past-year {
  font-size: 1.05rem;
  min-width: 7.5rem;
  padding: 0.6rem 0.85rem;
}
.past-tools #past-search {
  flex: 1;
  width: auto;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
}
.past-year {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem 0.4rem;
  margin-bottom: 0.8rem;
}
.past-year h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.past-job {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.38rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.appbar-title {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}
.planning .appbar-title {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.05rem;
  flex: 1 1 17rem;
  min-width: 17rem;
}
h1 { margin: 0; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.when { margin: 0; color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; gap: 0.4rem; }
.top-actions button { white-space: nowrap; }
.crews-band, main { padding: 1rem 1.4rem 0; }
.crews-band {
  margin: 1rem 1.4rem 0;
  padding: 1rem 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.band-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}
.band-head h2 { margin: 0; font-size: 0.95rem; font-weight: 650; white-space: nowrap; }
.band-head p { margin: 0; color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.title-block { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; min-width: 0; }
.queue .title-block p { white-space: normal; }
.queue #search { flex: 0 0 200px; }
.queue-tools { margin-left: auto; display: flex; gap: 0.45rem; align-items: center; }
.band-head button, .band-head input { margin-left: auto; }
.queue-tools button, .queue-tools input { margin-left: 0; }

.people, .crew-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.people { margin-bottom: 0.75rem; }
.person, .job, .crew {
  background: var(--card);
  border: 1px solid var(--line);
}
.person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px;
  cursor: grab;
}
.person .who { display: flex; flex-direction: column; line-height: 1.15; }
.person small { color: var(--muted); font-size: 0.72rem; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2e6;
  color: var(--olive-deep);
  font-size: 0.72rem;
  font-weight: 700;
}
.person.on-crew { border-color: #c5d4a8; background: #f7faf2; }
.add-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px dashed #c5d0b0;
  background: #fbfcf8;
  color: var(--olive-deep);
  cursor: pointer;
  font-weight: 650;
}
.add-card:hover { border-color: var(--olive); background: #f4f8ee; }
.add-card .plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  flex: none;
}
.people .add-card { border-radius: 999px; padding: 0.35rem 0.9rem 0.35rem 0.35rem; }
.crew-row .add-card {
  width: 180px;
  min-height: 132px;
  border-radius: 14px;
  flex-direction: column;
  justify-content: center;
}
.crew-row .add-card .plus { width: 46px; height: 46px; font-size: 1.8rem; }
.menu {
  position: fixed;
  z-index: 20;
  min-width: 160px;
  padding: 0.3rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.menu[hidden] { display: none; }
.menu button {
  border: none;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  padding: 0.45rem 0.6rem;
}
.menu button:hover { background: #f4f6f8; }
#name-ok { background: var(--olive); border-color: var(--olive); color: white; }
#name-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin: 0.2rem 0 1rem;
  color: var(--ink);
}
#history-dialog { width: min(560px, 94vw); }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.history-head h3 { margin: 0; }
.history-day { margin-top: 1rem; }
.history-day h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.history-day pre {
  margin: 0;
  white-space: pre-wrap;
  background: #f6f8f4;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
}
#history-body { max-height: 60vh; overflow: auto; }

.crew {
  width: 260px;
  min-height: 132px;
  padding: 0.7rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: var(--shadow);
}
.crew.over { outline: 2px solid var(--water); }
.crew header { display: flex; gap: 0.35rem; align-items: center; }
.crew header input {
  border: none;
  background: transparent;
  font-weight: 650;
  width: 100%;
  color: var(--ink);
  padding: 0;
}
.crew header button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
}
.slots { display: flex; gap: 0.4rem; min-height: 44px; }
.slot {
  flex: 1;
  border: 1px dashed #c9d0da;
  border-radius: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  text-align: center;
}
.slot.filled {
  border-style: solid;
  border-color: #d5e0c4;
  background: #f7faf2;
  color: var(--ink);
  font-weight: 600;
  cursor: grab;
}
.crew .meta { color: var(--muted); font-size: 0.78rem; white-space: pre-line; }

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.4rem;
}
.queue, .handoff {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
}
.filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.city-select { position: relative; }
.city-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  width: 240px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
}
.city-menu[hidden] { display: none; }
#city-find {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.35rem;
  background: #f8f9fb;
  color: var(--ink);
}
#city-options { max-height: 260px; overflow: auto; display: flex; flex-direction: column; }
.city-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  padding: 0.38rem 0.4rem;
}
.city-option:hover { background: #f4f6f8; }
.city-option.on { background: #eef2e6; }
.city-option .mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c5ccd6;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: white;
  flex: none;
}
.city-option.on .mark { background: var(--olive); border-color: var(--olive); }
#city-clear {
  width: 100%;
  margin-top: 0.35rem;
  border: none;
  background: transparent;
  color: var(--muted);
}
.column {
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 240px;
  padding: 0.45rem;
  border-top: 3px solid var(--slate);
}
.column h3 {
  margin: 0.25rem 0.4rem 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.column.job { border-top-color: var(--slate); }
.column.tortoise { border-top-color: var(--water); }
.column.lot { border-top-color: var(--olive); }
.column.job h3 { color: var(--slate); }
.column.tortoise h3 { color: var(--water); }
.column.lot h3 { color: var(--olive-deep); }
.column.over { outline: 2px solid var(--olive); }
.list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 64vh; overflow: auto; padding-right: 0.15rem; }

.job {
  padding: 0.55rem 0.6rem 0.55rem 0.7rem;
  cursor: grab;
  border-radius: 12px;
  border-left: 3px solid var(--slate);
}
.job:hover { box-shadow: 0 2px 8px rgba(57, 68, 94, 0.08); }
.job.tortoise { border-left-color: var(--water); }
.job.lot { border-left-color: var(--olive); }
.job.priority { background: #fff8f3; }
.job .title { font-weight: 650; letter-spacing: -0.01em; }
.job .sub, .job .note { color: var(--muted); font-size: 0.78rem; }
.job.static { cursor: default; }
.job-actions { display: flex; gap: 0.35rem; margin-top: 0.4rem; }
.job-actions button { padding: 0.15rem 0.55rem; font-size: 0.72rem; }
#job-dialog { width: min(520px, 94vw); }
#job-dialog label { display: block; margin: 0.7rem 0 0.25rem; font-size: 0.82rem; color: var(--muted); }
#job-dialog input, #job-dialog textarea, #job-dialog select { width: 100%; }
#job-dialog select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: white;
}
.kind-choices { display: flex; gap: 0.4rem; }
.kind-choices button { flex: 1; margin: 0; }
main.completed { display: block; max-width: 1200px; }
.week-bar { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.week-bar h2 { flex: 1; margin: 0; text-align: center; font-size: 1.2rem; }
.week-bar p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.86rem; }
.tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  margin: 0 0.25rem 0.3rem 0;
  background: #eef1f5;
}
.tag.priority { background: #ffedd5; color: var(--priority); }
.tag.this-week { background: #e7f0d8; color: var(--olive-deep); }
.tag.next-week { background: var(--water-soft); color: #24656e; }
.tag.stage { background: var(--water-soft); color: #24656e; }

.handoff { position: sticky; top: 4.4rem; max-height: calc(100vh - 5rem); overflow: auto; }
.plan-title {
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 650;
  color: var(--ink);
  border-radius: 0;
}
.plan-title:hover { color: var(--olive-deep); }
.plan-crew { margin-top: 0.85rem; }
.plan-crew ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.plan-crew li { margin: 0.15rem 0; font-size: 0.88rem; }
#plan-dialog {
  width: min(960px, 94vw);
  max-height: min(88vh, 920px);
  padding: 0;
  flex-direction: column;
  overflow: hidden;
}
#plan-dialog[open] { display: flex; }
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: white;
}
.plan-head h3 { margin: 0; }
.plan-head p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.84rem; }
.plan-body {
  overflow: auto;
  padding: 1rem 1.15rem 1.2rem;
  background: var(--canvas);
}
.plan-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.7rem;
}
.plan-block {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--slate);
  border-radius: 14px;
  padding: 0.7rem 0.8rem 0.45rem;
}
.plan-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.plan-block-head h4 { margin: 0; font-size: 0.95rem; }
.plan-block-head p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.78rem; }
.plan-block-head button { flex: none; padding: 0.28rem 0.7rem; }
.plan-line.labels span:last-child { text-align: right; }
.plan-line {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: baseline;
  padding: 0.32rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.plan-line.labels {
  border-top: none;
  padding-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-num { font-variant-numeric: tabular-nums; color: var(--muted); }
.plan-name { font-weight: 650; }
.plan-city { color: #24656e; text-align: right; }
.plan-detail-label {
  margin: 1.15rem 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-details { display: flex; flex-direction: column; gap: 0.7rem; }
.plan-detail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
}
.plan-detail h4 { margin: 0; font-size: 0.95rem; }
.plan-detail .who { margin: 0.1rem 0 0.55rem; color: var(--muted); font-size: 0.78rem; }
.plan-cards { display: flex; flex-direction: column; gap: 0.45rem; }
#plan-dialog .job.static { cursor: default; }
#plan-dialog .job.static:hover { box-shadow: none; }
#plan-dialog .empty { padding: 0.35rem 0 0.45rem; }
.sheet {
  white-space: pre-wrap;
  background: var(--slate);
  color: #f4f7f2;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  max-height: 240px;
  overflow: auto;
  margin: 0;
}
.crew-sheet { margin-top: 0.85rem; }
.crew-sheet .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
#reload-dialog { width: min(520px, 94vw); }
.reload-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin: 0.55rem 0;
}
.reload-file strong, .reload-file span { display: block; }
.reload-file span { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
#reload-note {
  max-height: 200px;
  overflow: auto;
  background: #f8f4ea;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.8rem;
}
#reload-note p { margin: 0 0 0.4rem; color: var(--ink); }
#reload-note ul { margin: 0 0 0.6rem; padding-left: 1.1rem; }
#reload-note li { margin: 0.15rem 0; font-size: 0.88rem; }
dialog {
  border: none;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  width: min(420px, 92vw);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(57, 68, 94, 0.4); }
dialog h3 { margin: 0 0 0.35rem; }
dialog p { margin: 0 0 1rem; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
#confirm-ok { background: var(--olive); border-color: var(--olive); color: white; }
.signin {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(243, 245, 247, 0.96);
}
.signin[hidden] { display: none; }
.signin form {
  width: min(420px, 92vw);
  background: white;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.signin .logo { height: 46px; width: auto; }
.signin p { color: var(--muted); }
.signin input { width: 100%; margin: 0.2rem 0 0.8rem; }
#signin-note { min-height: 1.2rem; }
.year-field {
  color: var(--muted);
  font-size: 0.85rem;
}
#past-year {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: #f8f9fb;
  color: var(--ink);
}
#search, #past-search {
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #f8f9fb;
  color: var(--ink);
}
.empty { color: var(--muted); font-size: 0.85rem; padding: 0.5rem; }
.reload-status {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 60;
  width: min(320px, calc(100vw - 2rem));
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(57, 68, 94, 0.16);
  overflow: hidden;
  pointer-events: none;
}
.reload-status[hidden] { display: none; }
.reload-bar {
  height: 3px;
  background: rgba(97, 128, 52, 0.18);
  overflow: hidden;
}
.reload-bar span {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--olive), var(--water));
  animation: reload-slide 1s ease-in-out infinite;
}
.reload-status p {
  margin: 0;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-size: 0.9rem;
}
.reload-status p::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
  border: 2px solid var(--olive);
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  animation: reload-spin 0.7s linear infinite;
}
.reload-status.done .reload-bar span {
  width: 100%;
  transform: none;
  animation: none;
}
.reload-status.done p::before {
  content: "";
  width: 0.45rem;
  height: 0.75rem;
  margin-right: 0.55rem;
  border: none;
  border-right: 2px solid var(--olive-deep);
  border-bottom: 2px solid var(--olive-deep);
  border-radius: 0;
  transform: rotate(40deg);
  animation: none;
  vertical-align: 0;
}
@keyframes reload-slide {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(340%); }
}
@keyframes reload-spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--olive);
  color: white;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
