@import url("/brand.css");
:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #222a3c;
  background: #f6f7fb;
  font-size: 16px;
  --accent: #394cda;
  --line: #e3e6ef;
  --muted: #687086;
  --bluebg: #eef1ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8794fc;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.9rem;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 8px;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.6;
}
small,
.small {
  font-size: 0.8125rem;
}
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 650;
}
.sidebar {
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 16px;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #252d43;
  font-weight: 700;
  font-size: 19px;
  padding: 0 10px 31px;
  letter-spacing: -0.5px;
}
.workspace {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 9px;
  margin: 0 7px 30px;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.workspace strong {
  display: block;
  font-size: 0.875rem;
}
.nav-label {
  font-size: 0.6875rem;
  letter-spacing: 1.2px;
  color: #9298a8;
  font-weight: 650;
  margin: 0 14px 12px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #626b7d;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 8px;
}
nav a.active {
  background: var(--bluebg);
  color: var(--accent);
  font-weight: 650;
}
nav a:hover {
  background: #f3f5fb;
}
.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 19px;
}
.badge-count {
  margin-left: auto;
  font-size: 0.75rem;
  border-radius: 5px;
  background: #e6e9fd;
  padding: 2px 7px;
  color: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 12px 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
}
.sidebar-bottom a {
  display: block;
  margin-top: 12px;
}
.main-area {
  margin-left: 226px;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: #c1c6d1;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ece9fb;
  color: #5e478d;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 650;
  flex-shrink: 0;
}
.avatar.a1 {
  background: #e5edf8;
  color: #40618d;
}
.avatar.a2 {
  background: #f7eddf;
  color: #8a5b27;
}
.avatar.a3 {
  background: #e1f0ec;
  color: #347365;
}
.identity small {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
}
.demo-bar {
  padding: 10px 36px;
  background: #edf0ff;
  border-bottom: 1px solid #dce1fa;
  color: #47558c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}
.demo-bar strong {
  font-weight: 650;
  margin-right: 8px;
}
.demo-bar select {
  font-size: 0.8125rem;
  padding: 6px 28px 6px 9px;
  border-color: #cbd2f0;
  background: #fff;
}
.content {
  padding: 32px 36px;
  max-width: 1660px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  background: white;
  border: 1px solid #d8ddea;
  border-radius: 7px;
  padding: 10px 15px;
  font-size: 0.875rem;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #3c455b;
  line-height: 1.4;
}
.btn:hover {
  background: #f5f6fb;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #2a3dc7;
}
.btn.danger {
  color: #b02a3f;
  border-color: #edc7ce;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  padding: 7px 9px;
}
.btn.compact {
  padding: 7px 11px;
  font-size: 0.8125rem;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-heading {
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel-heading h2 {
  margin: 0;
}
.panel-body {
  padding: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8125rem;
}
.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 12px 0 7px;
}
.stat small {
  color: var(--muted);
  font-size: 0.75rem;
}
.toolbar {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.week-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.week-label {
  font-size: 0.9375rem;
  font-weight: 650;
  margin: 0 9px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filters label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}
select,
input,
textarea {
  border: 1px solid #d9dfea;
  background: #fff;
  border-radius: 7px;
  padding: 10px 11px;
  color: #333e56;
  min-width: 0;
}
select {
  max-width: 100%;
}
.filters select {
  font-size: 0.8125rem;
  padding: 8px;
  max-width: 155px;
}
.view-tabs {
  display: flex;
  gap: 3px;
  background: #f2f4f8;
  border-radius: 6px;
  padding: 3px;
}
.view-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8125rem;
}
.view-tabs button.selected {
  background: #fff;
  box-shadow: 0 1px 3px #1b28541c;
  color: #293552;
}
.grid-wrap {
  overflow-x: auto;
}
.week-grid {
  min-width: 930px;
  display: grid;
  grid-template-columns: 170px repeat(7, minmax(102px, 1fr));
}
.grid-head {
  padding: 17px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  text-align: center;
}
.grid-head b {
  display: block;
  font-size: 1.125rem;
  color: #3c465c;
  margin-top: 6px;
  font-weight: 600;
}
.grid-head.today b {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: 2px auto -2px;
}
.grid-person {
  padding: 17px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.grid-person strong {
  font-size: 0.8125rem;
  display: block;
  line-height: 1.5;
}
.grid-person small {
  font-size: 0.6875rem;
  color: var(--muted);
}
.grid-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px;
  min-height: 119px;
  background: #fff;
}
.grid-cell.weekend {
  background: #fafbfe;
}
.shift {
  display: block;
  width: 100%;
  text-align: left;
  background: #edf0ff;
  border: 1px solid #dce2fc;
  border-left: 3px solid #7184e9;
  border-radius: 6px;
  padding: 9px 8px;
  color: #3a4772;
  margin-bottom: 7px;
  font-size: 0.75rem;
  line-height: 1.5;
}
.shift:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 6px #34477b12;
}
.shift strong {
  font-size: 0.8125rem;
  display: block;
  white-space: normal;
  font-weight: 650;
}
.shift .shift-role {
  display: block;
  color: #647198;
  font-size: 0.6875rem;
  margin: 4px 0;
}
.shift.draft {
  background: #fff;
  border: 1px dashed #bcc6e6;
  border-left: 3px solid #bcc6e6;
}
.shift.open {
  background: #fff7e7;
  border-color: #f0dfb8;
  color: #806133;
}
.shift.cancelled {
  opacity: 0.65;
  text-decoration: line-through;
}
.shift-state {
  font-size: 0.625rem;
  font-weight: 550;
}
.cell-add {
  border: 0;
  background: transparent;
  color: #9ca6bc;
  font-size: 21px;
  width: 100%;
  min-height: 27px;
  border-radius: 4px;
}
.cell-add:hover {
  background: #f0f3fc;
  color: var(--accent);
}
.legend {
  padding: 15px 21px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.legend-items {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 0.75rem;
  font-weight: 550;
  white-space: nowrap;
  background: #f0f2f6;
  color: #667085;
}
.status.published,
.status.approved,
.status.synced,
.status.active {
  background: #e9f4ef;
  color: #32674e;
}
.status.draft,
.status.pending {
  background: #eef0ff;
  color: #4a5bac;
}
.status.attention,
.status.rejected {
  background: #fff0ef;
  color: #a44644;
}
.status.cancelled,
.status.inactive {
  background: #f1f2f5;
  color: #747a89;
}
.status.open {
  background: #fff5df;
  color: #91691e;
}
.notice {
  background: #fff9ec;
  border: 1px solid #eee0ba;
  color: #806337;
  padding: 13px 17px;
  border-radius: 8px;
  font-size: 0.8125rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.notice.info {
  background: #eef2ff;
  border-color: #dce3fd;
  color: #485e9d;
}
.notice a {
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row-main {
  display: flex;
  gap: 12px;
  align-items: center;
}
.row strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 4px;
}
.row small {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 0.875rem;
}
th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--muted);
  padding: 13px 20px;
  background: #fbfcfe;
}
td {
  padding: 17px 20px;
  border-top: 1px solid var(--line);
}
.employee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.employee-cell small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.empty strong {
  display: block;
  font-size: 1rem;
  color: #364158;
  margin-bottom: 8px;
}
.list-view {
  display: none;
}
.list-view.force {
  display: block;
}
.list-day {
  padding: 14px 22px;
  background: #fafbfe;
  border-block: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
}
.schedule-list .row {
  padding: 14px 22px;
}
.schedule-list .shift {
  margin: 0;
  max-width: 520px;
}
.calendar-off {
  display: flex;
  gap: 16px;
  align-items: center;
}
.google-mark {
  border: 1px solid var(--line);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 25px;
  font-weight: 700;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 0.875rem;
}
.field label {
  font-weight: 550;
}
.field small {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 17px;
}
.field.full {
  grid-column: 1/-1;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 12px 0 18px;
}
.check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.form-error {
  color: #a62f43;
  background: #fff0f1;
  padding: 12px;
  border-radius: 7px;
  margin: 12px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.form-error:empty {
  display: none;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 0;
  border-radius: 13px;
  padding: 0;
  width: min(610px, calc(100% - 30px));
  max-height: 90vh;
  color: #263046;
  box-shadow: 0 18px 80px #101b4540;
}
dialog::backdrop {
  background: #18233e75;
}
#modal-content {
  padding: 27px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 1.35rem;
  margin: 0 0 7px;
}
.dialog-head p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}
.close {
  border: 0;
  background: #f1f3f8;
  border-radius: 6px;
  font-size: 23px;
  color: #5f6b82;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.review-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 10px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.review-item small {
  display: block;
  color: var(--muted);
}
.next-shift {
  padding: 26px;
  background: var(--bluebg);
  border: 1px solid #d8dffd;
  border-radius: 10px;
  margin-bottom: 24px;
}
.next-shift h2 {
  font-size: 1.65rem;
  margin-bottom: 12px;
  color: #2e419c;
}
.next-shift p {
  margin-bottom: 8px;
  font-size: 0.9375rem;
}
.next-shift .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: #5c6fb2;
  margin-bottom: 18px;
}
.login {
  max-width: 570px;
  margin: 8vh auto;
  padding: 35px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.login .logo {
  margin-bottom: 25px;
}
.login h1 {
  font-size: 1.8rem;
}
.login p {
  color: var(--muted);
}
.login .btn {
  margin: 4px 0;
}
.loading {
  max-width: 600px;
  margin: 14vh auto;
  padding: 30px;
}
.loading .logo {
  margin-bottom: 25px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #233552;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  box-shadow: 0 5px 25px #1d2c4e20;
  font-size: 0.875rem;
  max-width: calc(100% - 30px);
  display: none;
}
#toast.show {
  display: block;
}
.inline-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
}
.private-note {
  padding: 12px;
  background: #f7f8fc;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
  color: #939bad;
  margin-top: 28px;
}
.mobile-title {
  display: none;
}
.sync-list .row {
  align-items: flex-start;
}
.sync-list .row p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 480px;
}
.no-grid {
  display: none;
}
.audit {
  font-size: 0.8125rem;
  line-height: 1.6;
}
.audit .row {
  padding: 12px 20px;
}
.setting-description {
  font-size: 0.8755rem;
  color: var(--muted);
  line-height: 1.7;
}
.button-link {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
  font-size: inherit;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 196px;
  }
  .main-area {
    margin-left: 196px;
  }
  .content {
    padding: 26px 22px;
  }
  .topbar,
  .demo-bar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .filters label {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar {
    gap: 15px;
  }
  .breadcrumb {
    font-size: 0.8125rem;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 0;
    display: block;
    z-index: 4;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand,
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    overflow-x: auto;
    padding: 6px;
  }
  nav a {
    flex-direction: column;
    gap: 4px;
    font-size: 0.6875rem;
    padding: 8px 11px;
    border-radius: 6px;
    white-space: nowrap;
  }
  .nav-icon {
    font-size: 18px;
  }
  .badge-count {
    display: none;
  }
  .main-area {
    margin-left: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-title {
    display: block;
    font-size: 1rem;
    font-weight: 650;
  }
  .identity {
    font-size: 0.8125rem;
  }
  .identity .btn {
    display: none;
  }
  .demo-bar {
    padding: 10px 18px;
    align-items: flex-start;
    font-size: 0.75rem;
  }
  .demo-bar .demo-detail {
    display: none;
  }
  .demo-bar label {
    white-space: nowrap;
  }
  .content {
    padding: 24px 16px;
  }
  h1 {
    font-size: 1.65rem;
  }
  .page-head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  .page-head .actions {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .toolbar {
    padding: 15px 12px;
  }
  .week-picker {
    gap: 4px;
    flex-wrap: wrap;
  }
  .week-label {
    font-size: 0.875rem;
    margin: 0 5px;
  }
  .filters {
    width: 100%;
    gap: 8px;
  }
  .filters label {
    flex: 1;
    min-width: 90px;
  }
  .filters select {
    width: 100%;
    max-width: none;
  }
  .view-tabs {
    display: none;
  }
  .grid-wrap {
    display: none;
  }
  .list-view {
    display: block;
  }
  .legend {
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.6;
  }
  .panel-heading {
    padding: 17px;
  }
  .panel-body {
    padding: 18px;
  }
  .row {
    padding: 16px;
    flex-wrap: wrap;
  }
  .row-main {
    min-width: 0;
  }
  .row .actions {
    margin-left: auto;
  }
  .settings-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .field.full {
    grid-column: auto;
  }
  .split {
    gap: 0;
  }
  .notice {
    font-size: 0.8125rem;
  }
  .list-day {
    padding: 12px 16px;
  }
  .schedule-list .row {
    padding: 13px 16px;
  }
  .schedule-list .shift {
    max-width: none;
    font-size: 0.8125rem;
  }
  .schedule-list .shift strong {
    font-size: 0.9375rem;
  }
  .schedule-list .shift-role {
    font-size: 0.75rem;
  }
  .schedule-list .shift-state {
    font-size: 0.6875rem;
  }
  .footer-note {
    flex-direction: column;
    gap: 9px;
  }
  .login {
    margin: 30px 15px;
    padding: 25px;
  }
  #modal-content {
    padding: 22px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions .btn {
    flex: 1;
  }
  table {
    font-size: 0.8125rem;
  }
  th,
  td {
    padding: 14px;
  }
  .next-shift {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

[hidden] {
  display: none !important;
}
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.shift strong {
  font-size: 0.875rem;
}
.shift-state {
  font-size: 0.75rem;
}
.grid-person strong {
  font-size: 0.875rem;
}
.shift .shift-role {
  font-size: 0.75rem;
}
@media (max-width: 760px) {
  nav {
    padding: 5px 2px;
    justify-content: flex-start;
  }
  nav a {
    padding: 8px 5px;
    flex: 1 0 auto;
    min-width: 54px;
    min-height: 44px;
    font-size: 0.75rem;
  }
  .badge-count {
    display: none;
  }
}

.footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 16px;
}
.shift-conflict {
  display: block;
  color: #a14343;
  font-weight: 600;
  font-size: 0.75rem;
  margin-top: 7px;
}
.form-error p {
  margin: 8px 0;
}
.form-error .actions {
  margin-top: 10px;
}
.panel h2.small {
  margin: 0;
}

:root {
  --primary: var(--wa-ink);
  --primary-dark: #333;
  --accent: var(--wa-accent);
}
.wa-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}
.sidebar .brand {
  font-size: 17px;
  gap: 10px;
}
.btn.primary {
  background: var(--wa-ink);
  border-color: var(--wa-ink);
}
.sidebar nav a.active {
  background: var(--wa-soft);
  color: var(--wa-ink);
}
.brand {
  color: var(--wa-ink);
}
.cms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cms-grid .panel-body {
  min-width: 0;
}
.cms-grid textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font: inherit;
}
.cms-list {
  display: grid;
  gap: 12px;
}
.cms-item {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
form[aria-busy="true"] { cursor: progress; }
.cms-item p {
  margin: 6px 0;
}
.timezone-note {
  font-size: 12px;
  color: #5b6056;
  margin: 8px 0;
}
.brand-logo {
  max-width: 190px;
}
.cms-grid input[type="checkbox"] {
  width: auto;
}
@media (max-width: 850px) {
  .cms-grid {
    grid-template-columns: 1fr;
  }
}
:root {
  font-family: var(--wa-font);
  color: var(--wa-ink);
  background: var(--wa-paper);
  --line: var(--wa-line);
  --muted: #65635a;
  --bluebg: var(--wa-soft);
}

.demo-bar,
.notice.info {
  background: var(--wa-soft);
  color: #59490e;
  border-color: #e2d5af;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.panel-body form {
  max-width: 680px;
}
.panel-body textarea {
  min-height: 90px;
}
.panel-body .actions {
  flex-wrap: wrap;
}

dialog { max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; }
button, .btn { min-height: 44px; }
:focus-visible { outline: 3px solid #97701d; outline-offset: 3px; }
@media(max-width:600px) { input,select,textarea { font-size:16px; } .form-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

.policy-page{max-width:800px;margin:3rem auto;padding:1rem}.policy-page h2{margin-top:2rem}.policy-page p{line-height:1.7} footer{padding:1.5rem;text-align:center}
@media(max-width:380px){.demo-bar{flex-wrap:wrap;gap:8px}.demo-bar label{display:flex;align-items:center;gap:6px;min-width:0;width:100%}.demo-bar select{flex:1;min-width:0;max-width:100%;min-height:44px}}
