:root {
  color-scheme: light;
  --table-zoom: 1;
  --navy: #0f3151;
  --navy-2: #123858;
  --navy-3: #1f6fb5;
  --line: #dbe3eb;
  --line-strong: #c9d4df;
  --panel: #f8fafc;
  --paper: #ffffff;
  --row-alt: #fcfdff;
  --row-hover: #f3f8fd;
  --yellow: #ffe39a;
  --yellow-text: #2f2f16;
  --sky: #d7eaff;
  --sky-text: #0c5aa8;
  --late: #ffe9e9;
  --soon: #e6f7e8;
  --done: #dff4e4;
  --simona: #dcecff;
  --pina: #ffe7d8;
  --lorenzo: #ffe7d8;
  --renato: #e8ebee;
  --paolo: #eadff4;
  --ink: #10243b;
  --muted: #7b8ca1;
  --focus: #2f75b5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #f7fafc;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #edf2f6;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--navy);
}

.login-card {
  width: min(430px, 100%);
  border: 1px solid #d2dce6;
  border-radius: 8px;
  background: #ffffff;
  padding: 34px 38px 38px;
  box-shadow: 0 18px 50px rgba(15, 49, 81, 0.12);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-brand__mark {
  width: 6px;
  height: 30px;
  border-radius: 4px;
  background: #1768b3;
}

.login-heading {
  margin: 30px 0 27px;
}

.login-heading p {
  margin: 0 0 7px;
  color: #587087;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-heading span {
  display: block;
  margin-top: 10px;
  color: #64788c;
  font-size: 14px;
}

.login-pending {
  min-height: 47px;
  padding: 14px 15px;
  border: 1px solid #d8e2eb;
  border-radius: 6px;
  background: #f7fafc;
  color: #526b82;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

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

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

.login-form label > span {
  color: #304a62;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid #bac8d5;
  border-radius: 6px;
  background: #ffffff;
  color: #10243b;
  padding: 0 13px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 117, 181, 0.14);
}

.login-error {
  min-height: 18px;
  margin: -4px 0 -3px;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.login-submit {
  height: 46px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.login-submit:hover,
.login-submit:focus {
  background: #16466f;
  border-color: #16466f;
  outline: none;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

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

.sheet-app {
  min-height: 100vh;
  padding: 4px;
}

.sheet-shell {
  min-height: calc(100vh - 8px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(15, 49, 81, 0.08);
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 26px 0 30px;
  background: #ffffff;
}

.titlebar h1 {
  margin: 0;
  color: var(--navy);
  font-size: 29px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.titlebar__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.titlebar__brand::before {
  content: "";
  width: 7px;
  height: 40px;
  margin-right: 18px;
  border-radius: 6px;
  background: #1768b3;
}

.titlebar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.titlebar__status,
.titlebar__updated,
.titlebar__count,
.logout-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #ffffff;
  color: #0e2b47;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 36, 59, 0.03);
}

.logout-button {
  border-color: #cbd6e0;
  color: #36536c;
  font-weight: 800;
  cursor: pointer;
}

.logout-button:hover,
.logout-button:focus {
  border-color: #a9bac9;
  background: #f2f6f9;
  color: #173c5d;
  outline: none;
}

.titlebar__updated {
  background: #f8fbfe;
  color: #38536c;
  font-weight: 800;
}

.titlebar__status::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: #00a95c;
}

.titlebar__status.is-offline {
  color: #9c2b2b;
}

.titlebar__status.is-offline::before {
  background: #d64545;
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 26px;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #dbe3eb;
  background: #ffffff;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  color: #536b82;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.view-tab:hover,
.view-tab:focus {
  color: var(--navy);
  background: #f6f9fc;
  outline: none;
}

.view-tab.is-active {
  border-bottom-color: #1768b3;
  color: #0f4f86;
}

.view-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eaf2fa;
  color: #164f80;
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 108px;
  margin: 0 26px 18px;
  padding: 19px 24px;
  background: #fbfcfe;
  border: 1px solid #d5dee8;
  border-radius: 6px;
}

.toolbar label {
  display: grid;
  gap: 10px;
  min-width: min(500px, 100%);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.toolbar input {
  height: 46px;
  border: 1px solid #c5d1dc;
  border-radius: 5px;
  background: #ffffff;
  color: #142940;
  padding: 0 15px 0 46px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 36, 59, 0.03);
}

.search {
  position: relative;
}

.search::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 14px;
  width: 13px;
  height: 13px;
  border: 2px solid #637890;
  border-radius: 50%;
}

.search::before {
  content: "";
  position: absolute;
  left: 29px;
  bottom: 11px;
  width: 8px;
  height: 2px;
  background: #637890;
  transform: rotate(45deg);
}

.toolbar__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 5px;
}

.clear-button,
.settings-button {
  height: 45px;
  border-radius: 5px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.zoom-controls {
  display: inline-flex;
  align-items: center;
  height: 45px;
  overflow: hidden;
  border: 1px solid #c5d1dc;
  border-radius: 5px;
  background: #ffffff;
}

.zoom-button {
  width: 42px;
  height: 43px;
  border: 0;
  background: #ffffff;
  color: #17324e;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.zoom-button:hover,
.zoom-button:focus {
  background: #f3f8fd;
  outline: none;
}

.zoom-button:disabled {
  color: #a5b4c3;
  cursor: not-allowed;
}

.zoom-value {
  min-width: 56px;
  color: #17324e;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  border-left: 1px solid #e0e7ee;
  border-right: 1px solid #e0e7ee;
}

.clear-button {
  border: 1px solid #c5d1dc;
  background: #ffffff;
  color: #17324e;
}

.settings-button {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 49, 81, 0.16);
}

.clear-button:hover,
.clear-button:focus,
.settings-button:hover,
.settings-button:focus {
  border-color: var(--focus);
  outline: none;
}

.settings-button:hover,
.settings-button:focus {
  background: #09243d;
}

.grid-wrap {
  width: calc(100% - 52px);
  margin: 0 26px;
  overflow: auto;
  max-height: calc(100vh - 262px);
  background: #ffffff;
  border: 1px solid #d7e0e8;
  border-radius: 4px;
  box-shadow: 0 7px 18px rgba(15, 49, 81, 0.06);
}

.grid-wrap--archive {
  width: 100%;
  margin: 0;
  max-height: 300px;
  box-shadow: none;
}

.grid-wrap--archive-page {
  min-height: 280px;
  margin-bottom: 26px;
}

.jobs-grid {
  width: 100%;
  min-width: calc(1900px * var(--table-zoom));
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: calc(14px * var(--table-zoom));
}

.jobs-grid th,
.jobs-grid td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.jobs-grid thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 8;
  height: calc(51px * var(--table-zoom));
  padding: calc(8px * var(--table-zoom)) calc(9px * var(--table-zoom));
  background: linear-gradient(#123a5d, #0e2f4e);
  color: #ffffff;
  font-size: calc(13px * var(--table-zoom));
  line-height: 1.08;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.jobs-grid thead tr:first-child th:first-child {
  border-top-left-radius: 4px;
}

.jobs-grid thead tr:first-child th:last-child {
  border-top-right-radius: 4px;
}

.jobs-grid th > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.jobs-grid th.person {
  --person-color: transparent;
  box-shadow: inset 0 4px 0 var(--person-color);
}

.jobs-grid thead tr.filter-row th {
  position: sticky;
  top: calc(51px * var(--table-zoom));
  z-index: 7;
  height: calc(56px * var(--table-zoom));
  padding: calc(7px * var(--table-zoom));
  background: #f7fafc;
}

.jobs-grid thead th .column-filter,
.jobs-grid thead th .column-filter:focus {
  width: 100%;
  height: calc(39px * var(--table-zoom));
  min-height: calc(39px * var(--table-zoom));
  border: 1px solid #cdd8e3;
  border-radius: 4px;
  background: #ffffff;
  color: #253b52;
  padding: 0 calc(10px * var(--table-zoom));
  font-size: calc(14px * var(--table-zoom));
  font-weight: 700;
  text-align: left;
  text-align-last: left;
  outline: none;
}

.jobs-grid thead th select.column-filter,
.jobs-grid thead th select.column-filter:focus {
  text-align: center;
  text-align-last: center;
}

.jobs-grid thead th .column-filter::placeholder {
  color: #8798aa;
  opacity: 1;
}

.jobs-grid thead th .column-filter:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(47, 117, 181, 0.14);
}

.jobs-grid tr:nth-child(even) td {
  background: var(--row-alt);
}

.jobs-grid tbody tr:hover td {
  background: var(--row-hover);
}

.jobs-grid tbody tr.section-row td {
  height: 42px;
  padding: 0 16px;
  background: #eef4fa;
  color: var(--navy);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  border-top: 2px solid #b9cfe4;
}

.section-row span {
  margin-right: 10px;
}

.section-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font-size: 12px;
}

.is-completed-row td {
  background: #fbfdfb;
}

.is-archived-completed-row td {
  background: #f8fbf8;
}

.jobs-grid td {
  height: calc(55px * var(--table-zoom));
  padding: 0;
  background: #ffffff;
  color: #10243b;
}

.jobs-grid input,
.jobs-grid select,
.jobs-grid textarea {
  width: 100%;
  min-height: calc(54px * var(--table-zoom));
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
}

.jobs-grid input,
.jobs-grid textarea {
  text-align: left;
}

.jobs-grid select,
.jobs-grid .days {
  text-align: center;
  text-align-last: center;
}

.jobs-grid textarea {
  display: block;
  resize: vertical;
  min-height: calc(54px * var(--table-zoom));
  padding: calc(10px * var(--table-zoom)) calc(13px * var(--table-zoom));
  line-height: 1.25;
  overflow: hidden;
}

.jobs-grid input {
  padding: 0 calc(13px * var(--table-zoom));
  font-weight: 600;
}

.jobs-grid input[type="date"] {
  text-align: center;
  font-weight: 700;
}

.jobs-grid input:focus,
.jobs-grid select:focus,
.jobs-grid textarea:focus {
  box-shadow: inset 0 0 0 2px var(--focus);
  background: rgba(255, 255, 255, 0.95);
}

.col-client {
  width: calc(185px * var(--table-zoom));
}

.col-work {
  width: calc(215px * var(--table-zoom));
}

.col-notes {
  width: calc(305px * var(--table-zoom));
}

.col-date {
  width: calc(150px * var(--table-zoom));
}

.col-days {
  width: calc(127px * var(--table-zoom));
}

.col-state {
  width: calc(132px * var(--table-zoom));
}

.col-person {
  width: calc(125px * var(--table-zoom));
}

.col-delivery {
  width: calc(125px * var(--table-zoom));
}

.col-actions {
  width: calc(58px * var(--table-zoom));
}

.days-cell {
  text-align: center;
}

.days {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: calc(40px * var(--table-zoom));
  height: calc(30px * var(--table-zoom));
  min-height: calc(30px * var(--table-zoom));
  margin: 0 auto;
  border-radius: 8px;
  font-weight: 800;
}

.days.is-late,
.days.is-today {
  background: var(--late) !important;
  color: #e1261c;
  border: 1px solid #ffc5c5;
}

.days.is-warning {
  background: #fff1df !important;
  color: #e15310;
  border: 1px solid #ffd8b8;
}

.days.is-soon {
  background: var(--soon) !important;
  color: #14783b;
  border: 1px solid #c8efce;
}

.days.is-empty {
  color: #8fa0b2;
  background: transparent !important;
  border: 0;
}

.days.is-on-time {
  min-width: calc(78px * var(--table-zoom));
  background: #dff4e4 !important;
  color: #137a38;
  border: 1px solid #bee8c8;
}

.days.is-delivered-late {
  min-width: calc(108px * var(--table-zoom));
  background: #ffe9e9 !important;
  color: #d22b22;
  border: 1px solid #ffc5c5;
}

.days.is-complete-no-date {
  min-width: calc(86px * var(--table-zoom));
  background: #edf2f7 !important;
  color: #526579;
  border: 1px solid #d8e1ea;
}

.status,
.assign {
  text-align: center;
}

.status select,
.assign select {
  display: inline-flex;
  width: auto;
  min-width: calc(96px * var(--table-zoom));
  max-width: calc(100% - 16px);
  height: calc(30px * var(--table-zoom));
  min-height: calc(30px * var(--table-zoom));
  margin: 0 auto;
  border-radius: 6px;
  padding: 0 calc(12px * var(--table-zoom));
  background: #f0f3f6;
  font-size: calc(12px * var(--table-zoom));
  font-weight: 800;
  text-align: center;
  text-align-last: center;
}

.status.is-progress select {
  background: var(--yellow) !important;
  color: var(--yellow-text) !important;
}

.status.is-todo select {
  background: var(--sky) !important;
  color: var(--sky-text) !important;
}

.status.is-done select {
  background: var(--done) !important;
  color: #137a38 !important;
}

.assign select {
  color: #8fa0b2;
}

.assign.is-assigned.simona select,
.assign.is-assigned.pina select,
.assign.is-assigned.lorenzo select,
.assign.is-assigned.renato select,
.assign.is-assigned.paolo select,
.assign.is-complete select {
  color: inherit;
}

.delivery select {
  min-height: calc(54px * var(--table-zoom));
  padding: 0 8px;
  font-size: calc(12px * var(--table-zoom));
  font-weight: 800;
  text-align: center;
  text-align-last: center;
}

.delete-button {
  width: 100%;
  min-height: calc(54px * var(--table-zoom));
  border: 0;
  background: transparent;
  color: #ff1200;
  font-size: calc(24px * var(--table-zoom));
  line-height: 1;
  cursor: pointer;
}

.delete-button:hover,
.delete-button:focus {
  background: #fff1f1;
  outline: none;
}

.empty-state {
  height: 60px;
  background: #f7fafc !important;
  color: var(--muted);
  font-weight: 800;
}

.add-row td {
  height: 78px;
  background: #ffffff;
  border: 0;
}

.add-row-button {
  width: calc(100% - 2px);
  height: 52px;
  border: 1px dashed #9cb4cb;
  border-radius: 5px;
  background: #ffffff;
  color: #075eb1;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.add-row-button:hover,
.add-row-button:focus {
  background: #f4f9ff;
  border-color: var(--focus);
  outline: none;
}

.completed-archive {
  margin: 18px 26px 26px;
  padding-top: 4px;
}

.completed-archive[hidden] {
  display: none;
}

.completed-archive__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.completed-archive__header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.completed-archive__header span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #f8fbfe;
  color: #38536c;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(8, 22, 34, 0.38);
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  width: min(520px, 100vw);
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--line-strong);
  box-shadow: -18px 0 44px rgba(21, 58, 93, 0.2);
}

.settings-panel[hidden],
.settings-backdrop[hidden] {
  display: none;
}

.settings-panel form {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.job-toast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 13px 16px;
  border: 1px solid #cbd8e3;
  border-left: 5px solid #1768b3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 49, 81, 0.16);
  pointer-events: auto;
}

.job-toast--date {
  border-left-color: #e15310;
}

.job-toast--completed {
  border-left-color: #16a34a;
}

.job-toast__content {
  display: grid;
  gap: 4px;
}

.job-toast__content strong {
  color: var(--navy);
  font-size: 14px;
}

.job-toast__content span {
  color: #41596f;
  font-size: 13px;
  font-weight: 700;
}

.job-toast__close {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #d22b22;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.job-toast__close:hover,
.job-toast__close:focus {
  background: #fff1f1;
  border-radius: 4px;
  outline: none;
}

.settings-panel__header,
.settings-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
}

.settings-panel__footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.settings-panel__header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}

.settings-close {
  width: 32px;
  height: 32px;
  border: 1px solid #b7c3ce;
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.settings-panel__body {
  overflow: auto;
  padding: 14px 16px 18px;
}

.settings-section {
  padding: 14px 0;
  border-bottom: 1px solid #e1e7ed;
}

.settings-section:first-child {
  padding-top: 0;
}

.settings-section:last-child {
  border-bottom: 0;
}

.settings-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 14px;
}

.settings-grid,
.person-setting {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.settings-grid label,
.person-setting label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.settings-grid span,
.person-setting span {
  color: #43586a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-grid input[type="number"],
.settings-grid input[type="color"],
.person-setting input[type="color"] {
  width: 100%;
  height: 34px;
  border: 1px solid #b7c3ce;
  border-radius: 6px;
  background: #ffffff;
  color: #14202b;
  padding: 3px 6px;
}

.people-settings {
  display: grid;
  gap: 10px;
}

.person-setting {
  grid-template-columns: 90px 1fr 1fr;
  align-items: end;
  padding: 10px;
  background: #f7fafc;
  border: 1px solid #e1e7ed;
  border-radius: 6px;
}

.person-setting strong {
  align-self: center;
  color: var(--navy);
  font-size: 13px;
}

.reset-settings,
.save-settings {
  height: 36px;
  border: 1px solid #b7c3ce;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.reset-settings {
  background: #ffffff;
  color: #8e1f1f;
}

.save-settings {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #ffffff;
}

.reset-settings:hover,
.reset-settings:focus,
.save-settings:hover,
.save-settings:focus,
.settings-close:hover,
.settings-close:focus {
  outline: none;
  border-color: var(--focus);
}

@media (max-width: 760px) {
  .sheet-app {
    padding: 0;
  }

  .sheet-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .titlebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 18px;
  }

  .titlebar h1 {
    font-size: 23px;
  }

  .titlebar__meta {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .login-screen {
    padding: 14px;
  }

  .login-card {
    padding: 27px 22px 28px;
  }

  .login-heading h1 {
    font-size: 25px;
  }

  .view-tabs {
    overflow-x: auto;
    padding: 0 14px;
  }

  .view-tab {
    flex: 0 0 auto;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
    margin: 0 12px 14px;
  }

  .toolbar__actions {
    justify-content: stretch;
  }

  .toolbar__actions button {
    flex: 1;
  }

  .grid-wrap {
    width: calc(100% - 24px);
    margin: 0 12px;
    max-height: calc(100vh - 238px);
  }

  .completed-archive {
    margin: 16px 12px 22px;
  }

  .grid-wrap--archive {
    width: 100%;
    margin: 0;
    max-height: 280px;
  }

  .settings-grid,
  .settings-grid--days,
  .person-setting {
    grid-template-columns: 1fr;
  }
}
