.google-notice:has(p:empty):has(button[hidden]) {
  display: none;
}
.google-notice {
  margin: 0 30px 16px;
  font-size: 13px;
  color: var(--muted);
}
.google-notice button {
  margin-top: 8px;
}
.access-panel {
  --accent: #237d98;
  width: calc(100% - 32px);
  max-width: 420px;
  margin: 72px auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.access-panel h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.access-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.access-panel form {
  display: grid;
  gap: 16px;
}
#access-options {
  display: grid;
  gap: 16px;
}
#access-options > p {
  margin: 0 0 8px;
}
.access-panel button, .access-panel input {
  min-height: 44px;
}
.access-panel :is(button, input):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.access-panel label, .users article label {
  display: grid;
  gap: 8px;
}
.access-panel input {
  width: 100%;
}
.access-panel #access-message {
  margin: 20px 0 0;
  font-size: 13px;
}
.access-panel #access-message:empty {
  display: none;
}
.signed-out .sidebar,
.signed-out .workspace,
.signed-out .toolbar,
.signed-out #search,
.signed-out #sidebar-show {
  display: none;
}
.signed-out .appbar {
  justify-content: flex-end;
}
.signed-out .appbar h1 {
  margin-right: auto;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
}
#crew-options {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
button:disabled, select:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 800px) {
  .access-panel {
    margin: 32px auto;
    padding: 24px;
  }
  .appbar {
    height: auto !important;
    min-height: 70px;
  }
  .appbar #refresh, .appbar #sign-out {
    font-size: 11px;
    padding: 7px;
  }
  .users article select {
    max-width: 100%;
  }
}
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #263238;
  background: #f5f6f7;
  --surface: #fff;
  --bg: #f5f6f7;
  --line: #e4e8eb;
  --muted: #68767d;
  --ink: #263238;
  --accent: #237d98;
  --columns: 7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
button, input, textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--ink);
}
button:hover {
  filter: brightness(0.96);
}
button:focus-visible, a:focus-visible {
  outline: 3px solid #48a8c5;
  outline-offset: 2px;
}
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: #252d32;
  color: #dbe2e6;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.brand {
  font: bold 43px Georgia, serif;
  color: white;
  text-decoration: none;
  letter-spacing: -3px;
}
.brand span {
  display: block;
  font: 600 9px system-ui;
  letter-spacing: 2.4px;
  margin-top: 6px;
  color: #b2bec5;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  border: 0;
  background: transparent;
  color: #c6d0d6;
  padding: 12px;
}
nav button.active {
  background: #3a464e;
  color: white;
}
h1, h2, p {
  margin: 0;
}
h1 {
  font-size: 24px;
  font-weight: 600;
}
h2 {
  font-size: 16px;
}
.mini-head {
  margin-bottom: -18px;
  font-size: 13px;
}
#mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
#mini button {
  border: 0;
  padding: 7px 0;
  background: transparent;
  color: #d5dfe5;
  font-size: 11px;
}
#mini button.other {
  color: #7c8a94;
}
#mini button.selected {
  background: #298aa6;
  color: white;
  border-radius: 50%;
}
.queue h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9eafb9;
  margin-bottom: 12px;
}
.queue button {
  display: block;
  width: 100%;
  text-align: left;
  background: #303a41;
  color: #e3eaee;
  border: 0;
  border-left: 3px solid #ba965b;
  margin: 8px 0;
  font-size: 12px;
}
.queue small {
  display: block;
  color: #acbbc5;
  margin-top: 5px;
}
footer {
  margin-top: auto;
  color: #9dabb4;
  font-size: 10px;
  line-height: 1.6;
}
main {
  flex: 1;
  min-width: 0;
}
.appbar {
  height: 88px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.appbar h1 {
  margin-right: auto;
}
input, textarea {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
}
#search {
  width: 210px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #e0ecee;
  color: #32687a;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
}
.toolbar {
  padding: 23px 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.date-nav, .actions, .switch {
  display: flex;
  gap: 8px;
  align-items: center;
}
.date-nav h2 {
  margin: 0 12px;
  font-size: 20px;
  white-space: nowrap;
}
.date-nav button {
  font-size: 11px;
}
.switch {
  gap: 0;
}
.switch button {
  border-radius: 0;
}
.switch button:first-child {
  border-radius: 6px 0 0 6px;
}
.switch button:last-child {
  border-radius: 0 6px 6px 0;
}
.switch .active {
  background: #e5eff2;
  color: #19627b;
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.workspace {
  display: flex;
  margin: 0 30px 30px;
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  overflow: hidden;
}
#schedule {
  flex: 1;
  min-width: 0;
}
.details {
  width: 280px;
  border-left: 1px solid var(--line);
  padding: 24px;
  background: var(--surface);
}
.details h2 {
  font-size: 19px;
  margin-bottom: 7px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--muted);
  margin: 25px 0 12px;
}
.agenda-card {
  display: block;
  width: 100%;
  text-align: left;
  margin: 10px 0;
  border-left: 3px solid var(--job);
  padding: 12px;
}
.agenda-card strong {
  display: block;
  font-size: 13px;
}
.agenda-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.job-detail {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.job-detail h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.job-detail p {
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0;
}
.job-detail button {
  width: 100%;
  margin-top: 12px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
}
.day {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  padding: 18px 5px;
  background: transparent;
  font-size: 10px;
  color: var(--muted);
}
.day strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
}
.day.selected strong {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin: 5px auto 0;
}
.spans {
  position: relative;
  min-height: 292px;
  padding: 18px 10px;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(14.2857% - 1px),
    var(--line) calc(14.2857% - 1px),
    var(--line) 14.2857%
  );
}
.span-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 12px;
  gap: 3px;
}
.job-bar {
  background: var(--tint);
  border: 1px solid var(--edge);
  border-left: 3px solid var(--job);
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  overflow: hidden;
  min-height: 58px;
}
.job-bar strong {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-bar small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.appointments {
  border-top: 1px solid var(--line);
  padding: 22px 18px;
}
.appointments h3 {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 18px;
}
.appointment-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.appointment-grid button {
  padding: 10px 8px;
  min-height: 74px;
}
.appointment-grid strong {
  font-size: 11px;
  white-space: normal;
}
.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.month-cell {
  min-height: 112px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px;
}
.month-cell.other {
  background: var(--bg);
}
.month-date {
  border: 0;
  padding: 4px 7px;
  font-size: 12px;
}
.month-cell.selected .month-date {
  background: var(--accent);
  color: white;
}
.month-cell .job-bar {
  padding: 5px 6px;
  min-height: 0;
  width: 100%;
  margin: 3px 0;
}
.month-cell .job-bar strong {
  font-size: 10px;
}
.month-cell .job-bar small {
  display: none;
}
.job-list {
  padding: 20px;
}
.job-list .agenda-card {
  padding: 18px;
}
.empty {
  padding: 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: 440px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 25px 100px #0003;
}
dialog::backdrop {
  background: #12212b66;
}
form header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
form label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  font-size: 12px;
  font-weight: 600;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check {
  display: flex;
  align-items: center;
}
.check input {
  width: 16px;
  height: 16px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  margin: 15px 0;
}
.save-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 24px 0 12px;
}
#error {
  font-size: 12px;
  color: #b33b32;
  margin-bottom: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #263c45;
  color: white;
  padding: 12px 20px;
  border-radius: 7px;
  display: none;
  font-size: 13px;
}
body.dark {
  --surface: #222c33;
  --bg: #1b242a;
  --line: #3b4851;
  --ink: #e4ebef;
  --muted: #aebcc6;
  --accent: #3189a4;
  background: var(--bg);
  color: var(--ink);
}
body.dark .job-bar {
  background: #30434c;
  border-color: #4d6570;
}
body.dark .switch .active {
  background: #365664;
  color: #eaf6fa;
}
@media (min-width: 1500px) {
  .workspace {
    min-height: 760px;
  }
  .spans {
    min-height: 360px;
  }
}
[hidden] {
  display: none !important;
}
.days, .span-row, .appointment-grid, .month {
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
}
.spans {
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / var(--columns) - 1px),
    var(--line) calc(100% / var(--columns) - 1px),
    var(--line) calc(100% / var(--columns))
  );
}
.job-bar, body.dark .job-bar {
  background: var(--job);
  color: var(--bar-ink, #fff);
  border-color: transparent;
}
.job-bar small {
  color: inherit;
  opacity: 0.88;
}
.office-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 30px 18px;
  font-size: 12px;
  flex-wrap: wrap;
}
.office-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.office-filters input {
  width: auto;
}
.worker-preview {
  margin: 0 30px 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.month-timeline {
  min-width: 0;
}
.month-weekdays, .month-dates, .month-lanes {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
}
.month-weekdays {
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  padding: 14px 0;
}
.month-week {
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / var(--columns) - 1px),
    var(--line) calc(100% / var(--columns) - 1px),
    var(--line) calc(100% / var(--columns))
  );
  padding-bottom: 8px;
}
.month-dates button {
  border: 0;
  background: transparent;
  justify-self: end;
  margin: 5px 5px 3px;
  padding: 6px;
  width: 31px;
  height: 31px;
  font-size: 12px;
  border-radius: 50%;
}
.month-dates .selected {
  background: var(--accent);
  color: white;
}
.month-dates .other {
  color: var(--muted);
  opacity: 0.55;
}
.month-lanes {
  gap: 4px 3px;
  padding: 0 5px;
}
.month-span {
  min-height: 30px;
  padding: 7px 9px;
  border-radius: 5px;
  align-self: stretch;
}
.month-span strong {
  font-size: 11px;
  line-height: 18px;
}
.continues-before {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 3px solid currentColor;
}
.continues-after {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 3px solid currentColor;
}
.more-week {
  margin: 5px 8px 0;
  padding: 4px 8px;
  font-size: 11px;
  border: 0;
  color: var(--accent);
}
.draft-stage {
  border: 2px dashed var(--muted) !important;
}
.context-stage {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1px dashed var(--job) !important;
}
#editor {
  width: 660px;
  max-height: calc(100dvh - 32px);
}
#job-form > header {
  position: sticky;
  top: -28px;
  background: var(--surface);
  z-index: 2;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
#job-form > button[type="submit"] {
  position: sticky;
  bottom: -28px;
  width: 100%;
  box-shadow: 0 -8px 16px var(--surface);
  z-index: 2;
}
.editor-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 5px;
}
.editor-section summary {
  font-size: 14px;
  font-weight: 600;
}
.editor-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  background: var(--bg);
}
.row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.row-head button {
  font-size: 11px;
  padding: 5px 8px;
}
.editor-row input, .editor-row textarea, .editor-row select {
  width: 100%;
}
.editor-row input[type="checkbox"] {
  width: 16px;
}
.selected-viewers {
  display: none;
}
.editor-row:has([data-field="audience"] option[value="selected"]:checked)
  .selected-viewers {
  display: block;
}
.colour-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.colour-control input {
  width: 48px;
  height: 42px;
  padding: 3px;
  flex-shrink: 0;
}
.colour-swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.colour-swatches button {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid #0003;
  border-radius: 50%;
}
.workspace-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 600px;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  padding: 0;
}
.workspace-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 12px;
}
.workspace-header h2 {
  font-size: 25px;
  margin-top: 5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.job-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 28px 20px;
  font-size: 12px;
  color: var(--muted);
}
.job-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 28px 20px;
}
.job-actions button {
  font-size: 12px;
}
.job-tabs {
  display: flex;
  gap: 0;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.job-tabs button {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 16px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.job-tabs .active {
  background: var(--surface);
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}
.workspace-pane {
  padding: 24px 28px 40px;
  font-size: 14px;
  line-height: 1.6;
}
.workspace-pane h3, .settings-panel h3 {
  font-size: 14px;
  margin: 22px 0 12px;
}
.workspace-pane p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.site-note, .note-card, .stage-card {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.site-note {
  background: var(--bg);
}
.site-note h3 {
  margin: 0 0 8px;
}
.stage-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.stage-card span, .stage-card p, .note-card small {
  font-size: 12px;
  color: var(--muted);
}
.directions {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
}
.review-notice {
  padding: 16px;
  margin: 0 28px 20px;
  border: 1px solid #a8752d;
  border-radius: 8px;
  font-size: 12px;
}
.workspace-pane .review-notice {
  margin: 18px 0;
}
.review-notice p {
  line-height: 1.6;
  margin: 8px 0;
}
.file-button {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
}
.photo-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.photo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.photo-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg);
  display: grid;
  place-items: center;
  border-radius: 7px;
  overflow: hidden;
  font-size: 11px;
}
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card p {
  font-size: 13px;
  margin-top: 8px;
}
.photo-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.photo-card button {
  font-size: 11px;
  margin-top: 8px;
}
.hidden-photo {
  opacity: 0.65;
}
.upload-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
}
.upload-row strong {
  display: block;
  overflow-wrap: anywhere;
}
.upload-row label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  margin-top: 10px;
}
.upload-row p {
  font-size: 12px;
  margin: 10px 0;
}
.settings-panel {
  padding: 28px;
  max-width: 820px;
}
.settings-panel h2 {
  font-size: 21px;
  margin-bottom: 20px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.settings-panel textarea {
  width: 100%;
  margin: 12px 0;
}
.template-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.template-row span {
  flex: 1;
}
.template-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.template-row button {
  font-size: 12px;
}
.compact .job-bar {
  min-height: 34px;
  padding: 7px 9px;
}
.compact .span-row {
  margin-bottom: 6px;
}
.compact .timeline-label {
  padding: 10px;
}
.compact .agenda-card {
  padding: 8px;
}
@media (max-width: 800px) {
  .office-filters, .worker-preview {
    margin: 0 16px 12px;
    gap: 10px;
  }
  .office-filters label:last-child {
    font-size: 11px;
  }
  .office-filters select {
    max-width: 135px;
  }
  .workspace-header {
    padding: 22px 20px 12px;
  }
  .workspace-pane {
    padding: 20px;
  }
  .job-meta, .job-actions {
    padding-left: 20px;
    padding-right: 20px;
  }
  .job-tabs {
    padding: 0 8px;
  }
  .job-tabs button {
    padding: 14px 10px;
  }
  .month-span strong {
    font-size: 10px;
  }
  .month-span {
    padding: 5px;
    min-height: 30px;
  }
  .month-weekdays {
    font-size: 10px;
  }
  .month-lanes {
    gap: 3px 2px;
    padding: 0 3px;
  }
  .settings-panel {
    padding: 20px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .template-row {
    flex-wrap: wrap;
  }
  .workspace-dialog {
    width: 100%;
  }
  .month-dates button {
    width: 26px;
    height: 26px;
    padding: 3px;
    margin: 4px 2px;
  }
  .photo-gallery {
    gap: 10px;
  }
  .colour-control {
    align-items: flex-start;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
select {
  font: inherit;
  padding: 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.preview-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 30px 15px;
  font-size: 11px;
  color: var(--muted);
}
.preview-role select {
  padding: 5px 8px;
  font-size: 11px;
}
.sidebar {
  overflow: hidden;
  transition: width 240ms ease, padding 240ms ease;
  position: relative;
}
.sidebar > * {
  min-width: 180px;
}
.sidebar #sidebar-hide {
  min-width: 0;
  align-self: flex-end;
  background: transparent;
  border-color: #54636b;
  color: #d9e4eb;
  font-size: 10px;
  margin-bottom: -20px;
}
.sidebar-closed .sidebar {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  visibility: hidden;
}
.sidebar-closed main {
  min-width: 0;
}
#sidebar-show {
  font-size: 11px;
}
.timeline-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  min-height: 480px;
}
.timeline {
  display: grid;
  grid-template-columns: 165px minmax(var(--axis), 1fr);
  width: 100%;
  min-width: calc(165px + var(--axis));
  align-items: stretch;
}
.timeline-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  text-align: left;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  font-size: 12px;
}
.timeline-label strong, .timeline-label small {
  display: block;
}
.timeline-label small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.timeline-label.heading {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 24px;
}
.timeline-axis, .timeline-track {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.timeline-axis button {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  border-right: 1px solid var(--line);
  height: 64px;
}
.timeline-axis small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 5px;
}
.timeline-axis .selected {
  background: #dfedf1;
  color: #1b6278;
}
.timeline-track {
  padding: 12px 0;
  gap: 0;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / var(--days) - 1px),
    var(--line) calc(100% / var(--days) - 1px),
    var(--line) calc(100% / var(--days))
  );
}
.timeline-track .job-bar {
  margin: 0 3px;
  min-height: 42px;
}
.timeline-track small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-list {
  padding: 22px;
}
.agenda-list section + section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.agenda-date {
  font-size: 14px;
  font-weight: 600;
  border: 0;
  padding: 0;
  background: none;
}
.users {
  padding: 30px;
}
.users header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.users h2 {
  margin-bottom: 8px;
}
.users article {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}
.users article small {
  color: var(--muted);
}
body.dark .timeline-axis .selected {
  background: #355c6b;
  color: white;
}
.workspace {
  animation: appear 180ms ease;
}
@keyframes appear {
  from {
    opacity: 0.65;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sidebar {
  transition: none;
}
.sidebar-motion .sidebar {
  transition: width 240ms ease, padding 240ms ease;
}
@media (max-width: 800px) {
  .sidebar > * {
    min-width: 0;
  }
  .sidebar #sidebar-hide {
    margin: 0;
    padding: 6px;
    order: 2;
  }
  .sidebar footer {
    display: none;
  }
  .sidebar-closed .sidebar {
    padding-top: 0;
    padding-bottom: 0;
    height: 0;
  }
  .appbar {
    flex-wrap: wrap;
    height: auto;
    gap: 8px;
  }
  .appbar h1 {
    margin-right: auto;
  }
  #search {
    width: 118px;
  }
  .toolbar .actions {
    gap: 6px;
    flex-wrap: wrap;
  }
  .toolbar select {
    font-size: 11px;
  }
  .toolbar .primary {
    padding: 9px 11px;
    font-size: 12px;
  }
  .preview-role {
    margin: 0 16px 12px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .timeline {
    grid-template-columns: 120px minmax(var(--axis), 1fr);
    min-width: calc(120px + var(--axis));
  }
  .timeline-label {
    padding: 10px;
    font-size: 11px;
  }
  .timeline-scroll {
    min-height: 280px;
  }
  .users {
    padding: 18px;
  }
  .users article {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding: 25px 16px;
  }
  .details {
    width: 235px;
    padding: 18px;
  }
  .appbar, .toolbar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .workspace {
    margin-left: 20px;
    margin-right: 20px;
  }
  .date-nav h2 {
    font-size: 16px;
    margin: 0 4px;
  }
  .date-nav button {
    padding: 8px;
  }
  #search {
    width: 150px;
  }
  .job-bar {
    padding: 9px 7px;
  }
}
@media (max-width: 800px) {
  body {
    display: block;
  }
  .sidebar {
    width: 100%;
    padding: 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .sidebar .brand, .mini-head, #mini, .queue {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
  }
  .sidebar nav button {
    padding: 7px 10px;
    font-size: 11px;
  }
  .sidebar footer {
    margin: 0;
    max-width: 130px;
    text-align: right;
  }
  .appbar {
    height: 70px;
    padding: 16px;
  }
  .appbar h1 {
    font-size: 20px;
  }
  #search {
    width: 130px;
  }
  #theme {
    font-size: 10px;
    padding: 8px;
  }
  .avatar {
    display: none;
  }
  .toolbar {
    padding: 16px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .date-nav {
    width: 100%;
    justify-content: space-between;
  }
  .date-nav h2 {
    font-size: 16px;
  }
  .actions {
    width: 100%;
    justify-content: space-between;
  }
  .workspace {
    display: block;
    margin: 0 16px 16px;
    min-height: 0;
  }
  .details {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px;
  }
  .spans, .appointments {
    display: none;
  }
  .days .day {
    padding: 12px 3px;
  }
  .days .day strong {
    font-size: 16px;
  }
  .month-cell {
    min-height: 68px;
    padding: 3px;
  }
  .month-cell .job-bar {
    height: 6px;
    min-height: 6px;
    padding: 0;
    border: 0;
    border-radius: 3px;
  }
  .month-cell .job-bar strong {
    display: none;
  }
  .month-date {
    font-size: 11px;
  }
  .job-detail {
    margin-top: 18px;
    padding-top: 18px;
  }
  .section-label {
    margin-top: 18px;
  }
}
