@font-face {
  font-family:App;
  src:local('Avenir Next')
}
.pressure-section {
  padding-bottom: 24px;
  border-bottom: 1px solid #d8ddd2;
}
.pressure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}
.pressure-summary strong {
  font-size: 38px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pressure-summary p {
  font-size: 12px;
  color: #687566;
}
#pressure-chart {
  display: block;
  width: 100%;
  height: 260px;
}
.pressure-selection {
  min-height: 32px;
  font-size: 12px;
  line-height: 1.6;
  color: #687566;
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:#f5f3ec;
  color:#253e32;
  font-family:App,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif
}
main {
  max-width:1120px;
  margin:auto;
  padding:38px 44px
}
header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:30px;
  border-bottom:1px solid #d8ddd2
}
.brand {
  font-size:36px;
  font-weight:800;
  letter-spacing:-2px;
  color:inherit;
  text-decoration:none
}
.brand span {
  display:block;
  font-size:9px;
  letter-spacing:2px;
  font-weight:500;
  margin-top:5px
}
.connection {
  font-size:12px;
  background:#e4e9df;
  padding:9px 13px;
  border-radius:30px
}
.connection.offline {
  background:#f4e3c7;
  color:#715022
}
.hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:66px 0 50px;
  overflow:hidden
}
.hero-copy {
  width:65%;
  position:relative;
  z-index:1
}
.eyebrow {
  display:block;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.8px
}
h1 {
  font-size:58px;
  line-height:1.09;
  letter-spacing:-2.7px;
  font-weight:600;
  margin:22px 0
}
.dot {
  color:#b76b45
}
.explanation {
  font-size:14px;
  color:#667465;
  line-height:1.6
}
.time-line {
  display:flex;
  align-items:center;
  margin-top:40px
}
.time-line strong {
  font-size:68px;
  line-height:1;
  font-weight:500;
  letter-spacing:-3px;
  font-variant-numeric:tabular-nums
}
.time-line span {
  max-width:150px;
  border-left:1px solid #cbd2c5;
  margin-left:22px;
  padding-left:22px;
  font-size:14px;
  line-height:1.6
}
.elapsed {
  font-size:18px;
  margin:20px 0 0;
  color:#617251
}
.details {
  display:flex;
  border-top:1px solid #d8ddd2;
  border-bottom:1px solid #d8ddd2;
  padding:26px 0
}
.details>div {
  width:50%;
  padding-right:20px
}
.details strong {
  display:block;
  font-size:19px;
  font-weight:500;
  margin:12px 0 7px
}
.details small {
  font-size:11px;
  color:#687566
}
.text-button {
  border:0;
  padding:0;
  background:transparent;
  color:#45634e;
  font-size:12px;
  text-decoration:underline;
  cursor:pointer
}
.section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:38px
}
.section-title h2 {
  font-size:22px;
  font-weight:500
}
.section-title span {
  font-size:11px;
  color:#687566
}
ol {
  list-style:none;
  padding:0;
  margin:0
}
li {
  display:flex;
  align-items:center;
  padding:18px 0;
  border-bottom:1px solid #e0e2d8
}
li .history-dot {
  height:9px;
  width:9px;
  display:block;
  border-radius:50%;
  background:#aab79e;
  margin-right:20px
}
li strong {
  font-size:14px;
  font-weight:500
}
li small {
  display:block;
  color:#687566;
  font-size:11px;
  margin-top:4px
}
li time {
  margin-left:auto;
  font-size:20px;
  font-variant-numeric:tabular-nums
}
footer {
  display:flex;
  justify-content:space-between;
  color:#7a8475;
  font-size:10px;
  margin:26px 0
}
.notice {
  padding:15px 18px;
  background:#f2e3c8;
  border-radius:8px;
  color:#73552d;
  font-size:13px;
  line-height:1.6;
  margin-bottom:24px
}
.login {
  max-width:500px;
  padding:60px 0
}
.login label {
  display:block;
  font-size:13px;
  margin:30px 0 8px
}
.login input {
  width:100%;
  padding:15px;
  border:1px solid #c2cbbd;
  border-radius:6px;
  background:white;
  font-size:18px
}
.login button {
  margin-top:14px;
  width:100%;
  background:#284b3a;
  color:white;
  padding:16px;
  border:0;
  border-radius:6px;
  font-size:15px;
  cursor:pointer
}
.login button span {
  float:right
}
#login-error {
  color:#9a432b
}
.dog {
  width:290px;
  height:345px;
  position:relative;
  flex-shrink:0;
  transform:rotate(-6deg);
  margin-top:20px
}
.sun {
  position:absolute;
  width:275px;
  height:275px;
  border-radius:50%;
  background:#e5e7d5;
  left:0;
  top:16px
}
.face {
  position:absolute;
  top:70px;
  left:53px;
  width:180px;
  height:180px;
  background:#ba7c4a;
  border-radius:46% 46% 43% 43%;
  box-shadow:inset -16px -8px 0 #ac7043
}
.ear {
  position:absolute;
  top:55px;
  width:70px;
  height:157px;
  background:#654730;
  border-radius:65% 30% 60% 50%
}
.ear-left {
  left:18px;
  transform:rotate(19deg)
}
.ear-right {
  right:15px;
  transform:rotate(-19deg) scaleX(-1)
}
.eye {
  position:absolute;
  top:65px;
  width:12px;
  height:16px;
  background:#29332b;
  border-radius:50%
}
.eye-left {
  left:40px
}
.eye-right {
  right:40px
}
.muzzle {
  position:absolute;
  bottom:15px;
  left:43px;
  width:95px;
  height:66px;
  background:#e7c597;
  border-radius:48%
}
.nose {
  position:absolute;
  top:8px;
  left:30px;
  width:36px;
  height:24px;
  background:#303b31;
  border-radius:45% 45% 60% 60%
}
.mouth {
  position:absolute;
  top:31px;
  left:46px;
  width:2px;
  height:18px;
  background:#654730
}
.collar {
  position:absolute;
  top:241px;
  left:74px;
  width:142px;
  height:19px;
  background:#4f6a48;
  border-radius:7px
}
.tag {
  position:absolute;
  top:253px;
  left:133px;
  width:29px;
  height:29px;
  border-radius:50%;
  background:#d5ae59;
  color:#66522d;
  text-align:center;
  padding-top:2px;
  font-size:19px
}
.dog-caption {
  position:absolute;
  bottom:0;
  width:100%;
  text-align:center;
  font-size:9px;
  letter-spacing:2px;
  transform:rotate(6deg)
}
[hidden] {
  display:none!important
}
button:disabled {
  opacity:.5
}
button:focus,input:focus,a:focus {
  outline:2px solid #a37242;
  outline-offset:4px
}
@media(max-width:700px) {
  main {
    padding:24px
  }
  .hero {
    padding-top:42px
  }
  h1 {
    font-size:42px
  }
  .hero-copy {
    width:100%
  }
  .dog {
    width:140px;
    transform:scale(.6) rotate(-6deg);
    transform-origin:left center;
    margin-right:-110px;
    margin-left:-40px;
    opacity:.45
  }
  .time-line strong {
    font-size:60px
  }
  .section-title {
    align-items:flex-start
  }
  .section-title span {
    max-width:100px;
    text-align:right;
    padding-top:20px
  }
  .details .eyebrow {
    font-size:8px;
    line-height:1.6
  }
  .details strong {
    font-size:15px
  }
  footer {
    line-height:1.6
  }
  footer span {
    max-width:46%
  }
}
@media(min-width:701px) and (max-width:900px) {
  h1 {
    font-size:48px
  }
  .dog {
    transform:scale(.82) rotate(-6deg);
    margin-right:-30px
  }
}
@media(prefers-reduced-motion:no-preference) {
  .hero {
    animation:appear .6s ease-out
  }
  @keyframes appear {
    from {
      opacity:0;
      transform:translateY(8px)
    }
    to {
      opacity:1;
      transform:translateY(0)
    }
  }
}

/* Tablet dashboard: all primary information fits the landscape home-screen view. */
main { max-width: 1200px; padding: 20px 28px; }
header { padding-bottom: 14px; }
.brand { font-size: 30px; }
#dashboard { display: grid; grid-template-columns: 34% minmax(0, 1fr); grid-column-gap: 28px; align-items: start; }
.hero { padding: 34px 0 20px; min-width: 0; }
.hero-copy { width: 100%; }
.hero h1 { font-size: 32px; letter-spacing: -1px; margin: 16px 0 28px; }
.time-line { display: block; margin-top: 0; }
.time-line strong { font-size: 78px; }
.time-line span { display: block; max-width: none; border: 0; margin: 14px 0 0; padding: 0; }
.elapsed { font-size: 19px; margin-top: 18px; }
.pressure-section { min-width: 0; padding-bottom: 8px; border: 0; }
.section-title { margin-top: 18px; }
.section-title h2 { font-size: 20px; margin: 8px 0; }
.pressure-summary { margin: 6px 0; }
.pressure-summary strong { font-size: 32px; }
.pressure-summary p { margin: 6px 0; }
#pressure-chart { height: 220px; }
.pressure-selection { margin: 8px 0 0; min-height: 32px; font-size: 11px; }
.history-section { grid-column: 1 / -1; border-top: 1px solid #d8ddd2; }
.history-section .section-title { margin-top: 8px; }
#history { display: flex; }
#history li { flex: 1 1 0; min-width: 0; padding: 12px 18px; margin-right: 12px; border: 1px solid #d5ddcf; border-radius: 28px; background: #e9eee3; }
#history li:first-child { background: #dce7d5; border-color: #bfceb6; }
#history li:last-child { margin-right: 0; }
li .history-dot { margin-right: 10px; flex-shrink: 0; }
li strong { font-size: 12px; }
li time { font-size: 22px; padding-left: 8px; }
li small { display: none; }
footer { grid-column: 1 / -1; margin: 16px 0 0; align-items: center; }
#notice { grid-column: 1 / -1; margin: 8px 0; padding: 8px 12px; }
.pressure-section .notice { margin: 6px 0; padding: 6px 10px; }
.text-button { min-height: 44px; padding: 8px 12px; }
@media (min-width: 701px) and (max-height: 650px) {
  main { padding: 10px 24px; }
  header { padding-bottom: 8px; }
  .hero { padding-top: 22px; }
  #pressure-chart { height: 170px; }
  footer { margin-top: 4px; }
}
@media (max-width: 700px) {
  main { padding: 16px; }
  #dashboard { display: block; }
  .hero { padding: 20px 0; }
  .hero h1 { margin: 10px 0; }
  .time-line strong { font-size: 60px; }
  .section-title { align-items: center; }
  .section-title span { padding-top: 0; }
  #history { display: block; }
  #history li { width: 100%; margin: 0 0 8px; }
}

.dog-mood { display: inline-flex; align-items: center; margin-top: 10px; padding: 2px 14px 2px 4px; border-radius: 20px; background: #e4e9df; }
.dog-mood svg { margin-right: 6px; }
.dog-mood.overdue { color: white; background: #ad3333; }

.walk-summary > strong { display:block; font-size:36px; line-height:1.12; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.walk-summary p { margin:12px 0 4px; color:#506354; font-size:14px; }
.walk-summary b { font-size:22px; margin-right:6px; }

.header-status, #doors { display:flex; align-items:center; }
.door { display:inline-flex; flex-direction:column; align-items:center; margin-right:12px; color:#425d4a; }
.door small { font-size:10px; }
.door svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linejoin:round; }
.door.open { color:#d61525; }
.door.open svg { color:#ff142d; stroke-width:2.5; }
@media (prefers-reduced-motion: no-preference) {
  .door.open svg { animation:door-pulse 2s ease-in-out infinite; }
  @keyframes door-pulse {
    0%, 100% { transform:scale(1); }
    50% { transform:scale(1.09); }
  }
}
.door.unknown { color:#71756c; }
@media(max-width:620px){header{flex-wrap:wrap}.header-status{flex-wrap:wrap}.door{margin-right:7px}}

.chip-duration { font-size: 0.65em; white-space: nowrap; }

#history li {padding:0}
#history button {display:flex;align-items:center;width:100%;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;padding:12px 18px;cursor:pointer}
.week-overlay {position:fixed;z-index:20;inset:0;top:0;right:0;bottom:0;left:0;background:rgba(30,48,38,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.week-dialog {width:100%;max-width:760px;max-height:95vh;overflow:auto;background:#f5f3ec;border-radius:20px;padding:20px;color:#253e32}
.week-head {display:flex;align-items:center;justify-content:space-between}
.week-head h2 {font-size:20px;margin:0}
.week-head button {border:1px solid #bccbb5;border-radius:16px;padding:12px;color:inherit;background:#e4ebdf;cursor:pointer}
#week-chart {display:block;width:100%;height:auto;margin-top:10px}
#week-chart text {font-size:13px;fill:#45634e}
#week-caption {margin:0;font-size:14px}

#week-chart .walk-minutes { fill:white; font-size:12px; font-weight:600; pointer-events:none; }

.week-plot { position:relative; }
.walk-tip { position:absolute; pointer-events:none; white-space:pre-line; padding:8px 12px; border-radius:10px; background:#253e32; color:white; font-size:14px; line-height:1.4; }

.pointer-focus #history button:focus, .pointer-focus #week-close:focus { outline: none; }

.hero h1 #last-date { font: inherit; letter-spacing: inherit; color: inherit; white-space: nowrap; }

button.door { background:transparent; border:0; padding:4px; font:inherit; cursor:pointer; }
#pressure-selection:empty { display:none; }

.day-legend { display:flex; margin:12px 0 0; font-size:13px; }
.day-legend span { margin-right:18px; }
.day-legend span::before { content:''; display:inline-block; width:10px; height:10px; border-radius:50%; background:#ce252d; margin-right:5px; }
.day-legend span + span::before { background:#45674b; }

#day-chart { display:block; }
