* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: #171c1a;
  color: #f1f2ec;
  font: 16px/1.4 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
button:focus { outline: 2px solid #c2dbb1; outline-offset: 3px; }
button:focus:not(:focus-visible) { outline: none; }
.muted { color: #b2beb4; }

.dashboard {
  max-width: 1660px;
  min-height: 100vh;
  padding: 24px 32px 30px;
  margin: 0 auto;
}

.top-bar {
  position: relative;
  height: 42px;
  margin-bottom: 20px;
}

.brand {
  display: inline-block;
  font-size: 21px;
  font-weight: 650;
  line-height: 42px;
}

.brand-icon {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 11px;
  border-radius: 9px;
  background: #c7dbb5;
  color: #263328;
  vertical-align: middle;
}

.brand-icon::before,
.brand-icon::after {
  content: '';
  position: absolute;
  left: 10px;
  width: 12px;
  border: 2px solid;
  box-sizing: border-box;
}

.brand-icon::before { top: 13px; height: 10px; border-top: 0; border-radius: 0 0 2px 2px; }
.brand-icon::after { top: 9px; height: 12px; border-right: 0; border-bottom: 0; transform: rotate(45deg); }

.top-actions { float: right; }
.sample-badge { margin-right: 11px; color: #b2beb4; font-size: 14px; }

.control {
  height: 42px;
  min-width: 42px;
  padding: 0 13px;
  border: 1px solid #424d44;
  border-radius: 9px;
  background: #29312c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  vertical-align: top;
}

.control:hover, .control:active { background: #36443a; }

.display-panel {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 50px;
  width: 241px;
  padding: 15px;
  border: 1px solid #566357;
  border-radius: 12px;
  background: #252e28;
  box-shadow: 0 12px 28px #101410;
}

.display-panel p { margin: 6px 0; color: #c5d0c5; font-size: 14px; }
.display-panel .control { margin-top: 7px; }

.card { border: 1px solid #3b453e; border-radius: 15px; background: #222924; }

.at-a-glance {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin-bottom: 20px;
}

.glance-cell { display: table-cell; padding-right: 14px; vertical-align: top; }
.clock-cell { width: 43%; }
.weather-cell { width: 26%; }
.tasks-cell { padding-right: 0; }

.glance-card {
  height: 146px;
  padding: 0 20px;
  white-space: nowrap;
  line-height: 144px;
}

.clock-block { background: #242f28; border-color: #47594a; }
.clock, .clock-date, .weather-icon, .weather-text { display: inline-block; vertical-align: middle; }

.clock {
  color: #d4e6c6;
  font-size: 77px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.065em;
}

.clock-date { margin-left: 19px; color: #c8d4c9; font-size: 17px; line-height: 1.4; }
.weekday { color: #f1f2ec; font-size: 23px; font-weight: 650; }
.weather-text { font-size: 15px; line-height: 1.55; }
.weather h2, .tasks h2 { font-size: 18px; font-weight: 650; }
.weather-location { color: #e1e7df; }

.weather-icon { position: relative; width: 51px; height: 47px; margin-right: 10px; color: #ccddb9; }
.weather-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 21px;
  height: 21px;
  border: 2px solid;
  border-radius: 50%;
}

.weather-icon span {
  position: absolute;
  bottom: 7px;
  left: 1px;
  width: 43px;
  height: 21px;
  border: 2px solid;
  border-radius: 18px;
  background: #222924;
}

.weather-icon span::before {
  content: '';
  position: absolute;
  left: 8px;
  top: -11px;
  width: 17px;
  height: 17px;
  border: 2px solid;
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  background: #222924;
  transform: rotate(45deg);
}

.tasks {
  display: flex;
  flex-direction: column;
  padding-top: 13px;
  padding-bottom: 8px;
  line-height: 1.35;
}

.tasks-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 15px;
  margin: 0 10px 0 2px;
  border: 2px solid #c7dbb5;
  border-radius: 3px;
  vertical-align: -2px;
}

.tasks-icon::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 6px;
  border-right: 1px solid #c7dbb5;
  border-bottom: 1px solid #c7dbb5;
  transform: rotate(42deg);
}

.task-list { min-height: 0; margin-top: 5px; overflow-y: auto; }
.task-row { display: table; width: 100%; padding: 5px 0; font-size: 15px; }
.task-row + .task-row { border-top: 1px solid #3b453e; }
.task-name, .task-date { display: table-cell; }
.task-name { padding-right: 8px; font-weight: 600; white-space: normal; }
.task-date { text-align: right; color: #c4cec4; }
.task-soon .task-date { color: #d4e6c6; font-weight: 700; }

.week-bar {
  display: table;
  width: 100%;
  height: 75px;
  padding: 10px 19px;
  border-bottom: 1px solid #414b42;
}

.week-heading-group, .week-controls { display: table-cell; vertical-align: middle; }
.week-bar h2 { display: inline-block; margin-right: 13px; font-size: 26px; font-weight: 650; }
.week-range { display: inline-block; color: #bbc8bd; font-size: 16px; }
.week-controls { text-align: right; white-space: nowrap; }
.week-controls .control { margin-left: 4px; }
.arrow::after {
  display: inline-block;
  width: 8px;
  height: 8px;
  content: '';
  border-top: 2px solid;
  border-right: 2px solid;
  transform: translateX(-2px) rotate(45deg);
}
.arrow-left::after { transform: translateX(2px) rotate(-135deg); }

.weeks-viewport {
  border-radius: 0 0 14px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.weeks-viewport::-webkit-scrollbar { display: none; }

.week-slide {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  white-space: normal;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.week-days {
  display: table;
  width: 100%;
  height: 314px;
  height: calc(100vh - 361px);
  min-height: 249px;
  table-layout: fixed;
}

.day-column {
  display: table-cell;
  padding: 0 11px 12px;
  border-right: 1px solid #3b453e;
  background: #202622;
  vertical-align: top;
}

.day-column:last-child { border-right: 0; }
.day-column.weekend { background: #242b26; }
.day-column.today { background: #2a372e; }

.day-heading {
  position: relative;
  display: block;
  padding: 16px 3px 13px;
}

.day-name {
  display: block;
  color: #bfcbbf;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.day-number {
  display: inline-block;
  margin-top: 3px;
  color: #edf0e8;
  font-size: 40px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.today .day-name, .today .day-number { color: #d6e9c7; }
.today-marker { display: inline-block; margin-left: 6px; color: #d6e9c7; font-size: 12px; font-weight: 700; }

.all-day-lane {
  min-height: 65px;
  padding: 5px 11px 8px;
  margin: 0 -11px 13px;
  border-top: 1px solid #414b42;
  border-bottom: 1px solid #414b42;
  background: #272f29;
}

.today .all-day-lane { border-color: #59705d; background: #334137; }
.all-day-label {
  display: block;
  margin: 0 0 5px 3px;
  color: #c2cebf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  visibility: hidden;
}
.day-column:first-child .all-day-label { visibility: visible; }

.event {
  min-height: 61px;
  padding: 8px 7px 8px 9px;
  border-left: 3px solid;
  border-radius: 7px;
  font-size: 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.event + .event { margin-top: 8px; }
.all-day-events .event { min-height: 0; padding: 5px 7px 5px 9px; font-size: 14px; line-height: 1.25; }
.all-day-events .event + .event { margin-top: 4px; }
.event-title { font-weight: 680; }
.event-time { display: block; margin-top: 2px; font-size: 13px; }
.event.day { background: #393629; color: #f2de9e; border-left-color: #e3c879; }
.event.night { background: #3d3028; color: #ffd4b5; border-left-color: #e9a577; }
.event.jess { background: #343144; color: #e5d9ff; border-left-color: #c1a8ed; }
.event.family { background: #2c3b33; color: #d5eadb; border-left-color: #a7cdb1; }
.no-plans { margin: 0 3px; color: #b2beb4; font-size: 14px; }

@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    .week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; }
    .day-column { display: grid; grid-row: 1 / span 3; grid-template-rows: subgrid; min-width: 0; }
  }
}

@media (max-width: 1120px) {
  .dashboard { padding-right: 22px; padding-left: 22px; }
  .glance-cell { padding-right: 11px; }
  .tasks-cell { padding-right: 0; }
  .glance-card { padding-right: 14px; padding-left: 14px; }
  .clock { font-size: 63px; }
  .clock-date { margin-left: 11px; font-size: 15px; }
  .weekday { font-size: 20px; }
  .weather-icon { margin-right: 3px; transform: scale(0.86); }
  .weather-text, .task-row { font-size: 14px; }
  .day-column { padding-right: 8px; padding-left: 8px; }
  .all-day-lane { padding-right: 8px; padding-left: 8px; margin-right: -8px; margin-left: -8px; }
  .event { padding-left: 6px; font-size: 15px; }
  .event-time { font-size: 12px; }
}

@media (max-width: 980px) {
  .clock { font-size: 55px; }
  .weekday { font-size: 18px; }
  .weather-icon { width: 43px; margin-left: -4px; transform: scale(0.75); }
  .today-marker { font-size: 11px; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .dashboard { padding-top: 17px; padding-bottom: 19px; }
  .top-bar { margin-bottom: 14px; }
  .at-a-glance { margin-bottom: 14px; }
  .glance-card { height: 121px; line-height: 119px; }
  .tasks { padding-top: 9px; padding-bottom: 5px; line-height: 1.28; }
  .task-list { margin-top: 3px; }
  .task-row { padding-top: 3px; padding-bottom: 3px; font-size: 14px; line-height: 1.25; }
  .week-bar { height: 64px; }
  .week-days { height: 308px; height: calc(100vh - 297px); min-height: 219px; }
  .day-heading { padding-top: 11px; padding-bottom: 10px; }
  .day-number { font-size: 35px; }
  .event { min-height: 52px; padding-top: 5px; padding-bottom: 5px; }
  .event + .event { margin-top: 6px; }
  .all-day-lane { min-height: 55px; margin-bottom: 8px; }
}

@media (max-height: 590px) and (min-width: 761px) {
  .dashboard { padding-top: 12px; padding-bottom: 13px; }
  .top-bar, .at-a-glance { margin-bottom: 10px; }
  .glance-card { height: 104px; line-height: 102px; }
  .clock { font-size: 54px; }
  .tasks { padding-top: 7px; }
  .task-row { padding-top: 2px; padding-bottom: 2px; }
  .week-bar { height: 58px; padding-top: 5px; padding-bottom: 5px; }
  .week-days { height: 271px; height: calc(100vh - 255px); min-height: 179px; }
  .day-column { padding-bottom: 8px; }
  .day-heading { padding-top: 8px; padding-bottom: 7px; }
  .day-number { font-size: 31px; }
  .event { min-height: 42px; }
  .all-day-lane { min-height: 47px; padding-top: 3px; padding-bottom: 5px; margin-bottom: 6px; }
  .all-day-label { margin-bottom: 3px; }
  .all-day-events .event { padding-top: 4px; padding-bottom: 4px; }
}

@media (max-height: 520px) and (min-width: 761px) {
  .day-column { padding-right: 5px; padding-left: 5px; }
  .day-heading { padding-top: 6px; padding-bottom: 6px; }
  .day-number { font-size: 29px; }
  .all-day-lane { margin-right: -5px; margin-left: -5px; padding-right: 5px; padding-left: 5px; }
  .event { padding-right: 5px; font-size: 14px; line-height: 1.22; }
  .event-time { margin-top: 1px; }
}

@media (max-width: 760px) {
  .dashboard { padding: 13px; }
  .top-bar { margin-bottom: 12px; }
  .brand { font-size: 17px; }
  .brand-icon { width: 29px; margin-right: 6px; }
  .brand-icon::before, .brand-icon::after { left: 9px; }
  .sample-badge { margin-right: 5px; font-size: 12px; }
  .top-actions .control { padding: 0 8px; }
  .at-a-glance, .glance-cell { display: block; width: 100%; padding: 0; }
  .glance-cell + .glance-cell { margin-top: 8px; }
  .glance-card { height: 94px; line-height: 92px; }
  .tasks { height: auto; padding-top: 10px; padding-bottom: 8px; line-height: 1.4; }
  .week-bar { height: 65px; padding: 7px 9px; }
  .week-bar h2 { display: block; margin: 0; font-size: 20px; }
  .week-range { font-size: 13px; }
  .week-controls .control { margin-left: 1px; }
  .week-days { display: block; height: auto; }
  .day-column { position: relative; display: block; min-height: 80px; padding: 9px 9px 9px 26%; border-right: 0; }
  .day-column + .day-column { border-top: 1px solid #3b453e; }
  .day-heading { position: absolute; top: 9px; left: 10px; width: 24%; padding: 0 5px 0 1px; }
  .day-number { font-size: 30px; }
  .all-day-lane { display: none; }
  .all-day-lane.has-all-day { display: block; min-height: 0; margin: 0 0 8px; padding: 0; border: 0; background: transparent; }
  .all-day-label { visibility: visible; }
  .event { min-height: 0; }
  .no-plans { padding-top: 11px; }
}
