:root {
  --green: #2f5d48;
  --red: #a62e23;
  --bg: #f8f4ee;
  --paper: #fffdfa;
  --ink: #22211f;
  --muted: #67645e;
  --line: #ddd6cc;
  --pale: #e7efe9;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--ink);
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #eee9e1;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #244b39;
}
button.danger {
  color: var(--red);
}
button.subtle {
  background: transparent;
  border-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b9935b;
  outline-offset: 2px;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}
input[type="color"] {
  padding: 3px;
  height: 41px;
}
textarea {
  min-height: 80px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
label.check {
  display: flex;
  align-items: center;
  font-weight: 400;
  padding: 5px 0;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 7px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 750;
  margin-bottom: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}
.brand {
  padding: 0 13px 25px;
}
.brand img {
  display: block;
  width: 142px;
  height: 74px;
  object-fit: cover;
  object-position: 50% 49%;
  mix-blend-mode: multiply;
}
.brand .wordmark {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 31px;
  color: var(--green);
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  text-align: left;
  border-color: transparent;
  font-weight: 500;
  padding: 12px 15px;
  background: transparent;
}
.nav button.active {
  background: var(--pale);
  color: var(--green);
  font-weight: 700;
}
.nav span {
  display: inline-block;
  width: 27px;
}
.sidebottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 30px;
  border-bottom: 1px solid var(--line);
  background: #fffdfa99;
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
}
main {
  padding: 29px 30px 45px;
  max-width: 1800px;
  margin: auto;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.actions,
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions select {
  width: auto;
  max-width: 260px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 23px;
}
.card,
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 11px;
  padding: 19px;
}
.card .value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 7px 0;
}
.card small {
  font-size: 12px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px 11px 0 0;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 11px 11px;
  overflow: hidden;
  min-height: 430px;
}
.day {
  padding: 0 8px 15px;
  border-right: 1px solid #e9e4dc;
  min-width: 0;
}
.day:last-child {
  border: 0;
}
.dayhead {
  padding: 17px 2px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.dayhead strong {
  font-size: 20px;
  display: block;
  margin-top: 3px;
}
.day.weekend {
  background: #f5f2ec77;
}
.dayhead button {
  padding: 3px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.shift {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e0e3dd;
  border-left: 3px solid var(--job);
  background: color-mix(in srgb, var(--job) 7%, white);
  margin-bottom: 9px;
  border-radius: 7px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 400;
  min-height: 91px;
}
.shift:hover {
  background: color-mix(in srgb, var(--job) 14%, white);
}
.shift strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 9px;
}
.shift .job {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--job);
  font-weight: 750;
}
.shift .person {
  display: block;
  margin: 5px 0;
  font-weight: 600;
}
.shift.empty {
  border-style: dashed;
  background: #fff9f4;
  color: #934b2b;
}
.shift .meta {
  font-size: 10px;
  color: var(--muted);
}
.day.dragover {
  background: #e7efe9;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--pale);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.badge.warn {
  background: #fff0d5;
  color: #8b5718;
}
.badge.bad {
  background: #f7e1dd;
  color: var(--red);
}
.flow {
  display: flex;
  gap: 0;
  margin: 12px 0 24px;
}
.step {
  flex: 1;
  font-size: 10px;
  color: #999;
  padding: 11px 8px;
  border-bottom: 2px solid var(--line);
}
.step.current {
  color: var(--green);
  border-color: var(--green);
  font-weight: 750;
}
.step.done {
  color: var(--green);
  border-color: #a0b8a8;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  margin-top: 20px;
}
.panel h3 {
  margin-bottom: 15px;
}
.meter {
  height: 6px;
  border-radius: 9px;
  background: #e5e4dc;
  overflow: hidden;
  margin: 6px 0;
}
.meter i {
  height: 100%;
  display: block;
  background: var(--green);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  padding: 13px 12px;
  background: #f8f6f1;
}
td {
  padding: 13px 12px;
  border-top: 1px solid #ebe5db;
}
td .muted {
  font-size: 11px;
}
.tablewrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.empty-state {
  padding: 45px 25px;
  text-align: center;
  color: var(--muted);
}
.banner {
  padding: 15px 18px;
  border: 1px solid #d5e1d8;
  background: var(--pale);
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 13px;
}
.banner.warn {
  background: #fff3df;
  border-color: #e7d0a9;
}
.list {
  display: grid;
  gap: 10px;
}
.listrow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eee7dd;
}
.listrow:last-child {
  border: 0;
}
.drawerback {
  position: fixed;
  inset: 0;
  background: #101b1633;
  z-index: 20;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(460px, 100%);
  background: var(--paper);
  z-index: 21;
  box-shadow: -12px 0 50px #0001;
  display: flex;
  flex-direction: column;
}
.drawerhead {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawerhead h2 {
  margin: 0;
}
.drawerbody {
  padding: 23px 25px;
  overflow: auto;
  display: grid;
  gap: 16px;
}
.drawerfoot {
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.fields2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.error {
  color: var(--red);
  background: #f9e8e3;
  border-radius: 7px;
  padding: 12px;
  font-size: 13px;
}
.hidden {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  z-index: 40;
  max-width: 90%;
  display: none;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--green);
  color: var(--bg);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art h1 {
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: -2px;
}
.login-art p {
  max-width: 380px;
  color: #cedbd0;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-box {
  width: min(360px, 100%);
}
.login-box form {
  display: grid;
  gap: 17px;
}
.login-box h1 {
  margin-bottom: 12px;
}
.login-box .muted {
  margin-bottom: 30px;
}
.resultgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
details {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 13px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.availability-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.availability-actions button {
  font-size: 11px;
  padding: 7px;
}
.availability-actions button.selected {
  background: var(--green);
  color: white;
}
.formstack {
  display: grid;
  gap: 18px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mobile-title {
  display: none;
}
.loading {
  padding: 50px;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .shift {
    padding: 13px;
  }
  .shift strong {
    font-size: 14px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  main {
    padding: 22px 18px;
  }
  .topbar {
    padding: 16px 18px;
  }
  .calendar {
    grid-template-columns: repeat(7, minmax(105px, 1fr));
    overflow-x: auto;
  }
  .calwrap {
    overflow-x: auto;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .cards {
    gap: 9px;
  }
  .card {
    padding: 14px;
  }
  .sidebar {
    padding: 16px 8px;
  }
  .brand {
    padding: 0 10px 25px;
  }
  .shift {
    padding: 9px 6px;
  }
  .pagehead {
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    height: auto;
    padding: 8px 10px;
    z-index: 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand,
  .sidebottom {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 1px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }
  .nav span {
    width: 20px;
  }
  .topbar {
    padding: 12px 18px;
  }
  .topbar .muted {
    display: none;
  }
  main {
    padding: 22px 14px 40px;
  }
  h1 {
    font-size: 26px;
  }
  .pagehead {
    display: block;
  }
  .pagehead .actions {
    margin-top: 15px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .card .value {
    font-size: 25px;
  }
  .calendar {
    display: block;
    overflow: visible;
  }
  .day {
    padding: 0 12px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dayhead {
    padding: 14px 0 10px;
  }
  .dayhead strong {
    display: inline-block;
    margin-left: 7px;
    font-size: 17px;
  }
  .shift {
    min-height: 78px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 10px;
  }
  .shift strong {
    margin: 0;
  }
  .shift .person {
    grid-column: 2;
    grid-row: 1;
  }
  .shift .job {
    grid-column: 1;
  }
  .shift .meta {
    grid-column: 2;
  }
  .flow {
    overflow: auto;
  }
  .step {
    min-width: 70px;
  }
  .toolbar {
    padding: 12px;
    gap: 13px;
  }
  .legend {
    gap: 9px;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 25px;
  }
  .login-art h1 {
    font-size: 35px;
    margin: 0;
  }
  .login-art p,
  .login-art > small {
    display: none;
  }
  .login-main {
    padding: 35px 22px;
  }
  .settings-grid,
  .resultgrid {
    grid-template-columns: 1fr;
  }
  .drawerbody {
    padding: 18px;
  }
  .drawerhead {
    padding: 17px 18px;
  }
  .drawerfoot {
    padding: 15px 18px;
  }
  .panel {
    padding: 15px;
  }
}

.brand-logo {
  width: 156px;
  height: 56px;
  overflow: hidden;
  position: relative;
}
.brand .brand-logo img {
  position: absolute;
  width: 270px;
  height: auto;
  max-width: none;
  left: -57px;
  top: -78px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
