:root {
  color-scheme: light;
  --bg: #eef3f1;
  --surface: #ffffff;
  --ink: #14201b;
  --muted: #66736e;
  --line: #dfe7e3;
  --green: #15946d;
  --green-dark: #0c6f52;
  --green-soft: #dff4ec;
  --orange: #e8872e;
  --orange-soft: #fff1df;
  --red: #c84a3d;
  --blue: #4174d9;
  --shadow: 0 18px 50px rgba(23, 42, 35, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(21, 148, 109, 0.16), transparent 34rem),
    linear-gradient(145deg, #f8fbfa 0%, var(--bg) 54%, #e7efeb 100%);
  color: var(--ink);
}

button {
  min-height: 44px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f8fbfa;
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  height: 64px;
  padding: 10px 16px;
  background: rgba(248, 251, 250, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 231, 227, 0.78);
}

.brand {
  justify-self: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  color: var(--green);
}

.icon-button {
  width: 44px;
  border-radius: 999px;
  background: #edf5f1;
  color: var(--ink);
  font-weight: 800;
}

.notification {
  position: relative;
}

.notification::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #edf5f1;
}

.screen {
  display: none;
  min-height: calc(100vh - 64px);
  padding: 18px 18px 104px;
}

.screen.active {
  display: block;
}

.status-pill,
.counter,
.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-pill {
  background: var(--orange-soft);
  color: #8d4b0c;
}

.status-pill.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.condo-hero {
  padding: 28px 0 20px;
  text-align: center;
}

.building-mark {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 5px;
  place-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--green-soft);
}

.building-mark span {
  height: 34px;
  border-radius: 5px;
  background: var(--green);
}

.building-mark span:nth-child(2) {
  height: 48px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.45rem;
}

.shift-card,
.quick-grid article,
.delivery-row,
.route-suggestion,
.check-row,
.route-item,
.info-card,
.summary-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.shift-card {
  padding: 20px;
}

.shift-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 700;
}

.shift-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 2.1rem;
  letter-spacing: 0;
}

.shift-card strong span {
  color: var(--green);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  width: 100%;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.primary-button {
  background: var(--green);
  color: white;
}

.primary-button:active {
  background: var(--green-dark);
}

.secondary-button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger-button {
  background: #fff3f1;
  color: var(--red);
}

.ghost-button {
  width: auto;
  padding: 0 14px;
  background: #eef5f2;
  color: var(--green-dark);
}

.quick-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quick-grid article,
.summary-grid article {
  min-height: 106px;
  padding: 16px;
}

.quick-grid p,
.summary-grid span {
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.quick-grid strong,
.summary-grid strong {
  font-size: 1.7rem;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 900;
}

.green {
  background: var(--green-soft);
  color: var(--green);
}

.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.route-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  text-align: left;
}

.route-suggestion small {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-weight: 900;
}

.route-suggestion strong {
  font-size: 1rem;
}

.chevron {
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.delivery-list,
.checklist,
.route-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.delivery-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
}

.priority-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.priority-high {
  background: var(--red);
}

.priority-mid {
  background: var(--orange);
}

.priority-low {
  background: #9ca6a2;
}

.delivery-row strong,
.check-row strong {
  display: block;
  margin-bottom: 3px;
}

.delivery-row small,
.check-row small {
  color: var(--muted);
  font-weight: 750;
}

.time-chip {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f3f6f5;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.check-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.check-box {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.storage-code {
  padding: 7px 9px;
  border-radius: 8px;
  background: #eef5f2;
  color: var(--green-dark);
  font-weight: 900;
}

.fixed-action {
  position: sticky;
  bottom: 90px;
  margin-top: 18px;
}

.route-list {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  border-left: 3px solid var(--green);
}

.route-item {
  position: relative;
  margin-left: 16px;
  padding: 14px;
}

.route-item::before {
  content: attr(data-step);
  position: absolute;
  left: -35px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}

.route-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.route-item p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 750;
}

.route-item button {
  width: 100%;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.delivery-detail {
  display: grid;
  gap: 14px;
}

.type-badge {
  justify-self: start;
}

.type-badge.food {
  background: var(--orange-soft);
  color: #92500e;
}

.info-card {
  padding: 16px;
}

.info-card p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.info-card p:last-child {
  border-bottom: 0;
}

.info-card span {
  color: var(--muted);
  font-weight: 750;
}

.info-card strong {
  color: var(--green-dark);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 58px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.bottom-nav button span {
  font-size: 1.05rem;
}

.bottom-nav button.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.problem-modal,
.entry-modal {
  width: min(92vw, 390px);
  border: 0;
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.problem-modal::backdrop,
.entry-modal::backdrop {
  background: rgba(20, 32, 27, 0.38);
}

.problem-modal h2 {
  margin-bottom: 14px;
}

.problem-options {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.problem-options button {
  border-radius: 8px;
  background: #f5f8f7;
  color: var(--ink);
  font-weight: 850;
}


.modal-heading {
  margin-bottom: 16px;
}

.entry-modal form {
  display: grid;
  gap: 12px;
}

.entry-modal label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.entry-modal input,
.entry-modal select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fbfa;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.entry-modal input:focus,
.entry-modal select:focus {
  outline: 3px solid rgba(21, 148, 109, 0.18);
  border-color: var(--green);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
@media (min-width: 760px) {
  body {
    display: grid;
    place-items: center;
    padding: 28px;
  }

  .app-shell {
    min-height: 820px;
    border-radius: 28px;
  }

  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 28px 28px;
  }
}




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

.login-shell {
  display: grid;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 20px;
  background: #f8fbfa;
  box-shadow: var(--shadow);
}

.login-content {
  display: grid;
  align-content: center;
  width: 100%;
  max-width: 350px;
  margin: auto;
}

.login-brand {
  margin-bottom: 42px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

.login-brand strong {
  color: var(--green);
}

.login-building {
  display: grid;
  grid-template-columns: repeat(3, 14px);
  gap: 6px;
  place-content: center;
  width: 94px;
  height: 94px;
  margin: 0 auto 24px;
  border-radius: 8px;
  background: var(--green-soft);
}

.login-building span {
  height: 42px;
  border-radius: 4px;
  background: var(--green);
}

.login-building span:nth-child(2) {
  height: 58px;
}

.login-shell h1 {
  margin-bottom: 8px;
  text-align: center;
}

.login-shell .eyebrow {
  text-align: center;
}

.login-copy {
  margin: 0 0 28px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

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

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.login-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.login-form input:focus {
  outline: 3px solid rgba(21, 148, 109, 0.18);
  border-color: var(--green);
}

.login-error {
  margin: -4px 0 0;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 750;
}

.logout-button {
  width: 48px;
  min-height: 36px;
  border-radius: 8px;
  background: #edf5f1;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

@media (min-width: 760px) {
  .login-shell {
    min-height: 820px;
    border-radius: 28px;
  }
}