/* Owner schedule view (demo of the connected calendar) */
.owner {
  background: var(--cream);
  min-height: 100vh;
}
.o-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--white);
}
.o-head .brand svg {
  width: 30px;
  height: 30px;
}
.o-head .brand-name {
  font-size: 24px;
}
.o-sync {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}
.o-sync strong {
  color: var(--white);
  font-weight: 500;
}
.o-sync .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(196, 216, 75, 0.22);
}
.o-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 32px 64px;
}
.o-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.o-title {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  margin: 0 0 8px;
}
.o-sub {
  margin: 0;
  color: var(--ink-soft);
}
.o-ctrls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.o-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.o-week {
  display: grid;
  grid-template-columns: 92px repeat(6, minmax(0, 1fr));
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
}
.o-cell {
  border-right: 1px solid #eceadf;
  border-bottom: 1px solid #eceadf;
  padding: 10px;
  min-width: 0;
}
.o-cell:nth-child(7n) {
  border-right: 0;
}
.o-dayhead {
  padding: 14px 12px;
  background: #fbfaf5;
}
.o-dayhead .dow {
  font-size: 13px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.o-dayhead .dnum {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.o-dayhead.today .dnum {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime);
}
.o-corner {
  background: #fbfaf5;
}
.o-win {
  font-size: 14px;
  color: var(--ink-mute);
  padding-top: 14px;
}
.o-win strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}
.o-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: start;
  min-height: 236px;
}
.o-cap {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.o-cap.full {
  color: #9a5a10;
}
.ev {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
  background: var(--sage);
  color: #173a26;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
}
.ev strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev span {
  display: block;
  overflow-wrap: anywhere;
}
.ev:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 23, 0.12);
}
.ev.web {
  background: var(--ink);
  color: var(--white);
}
.ev.web .tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
}
.ev.fresh {
  animation: landed 1.6s var(--ease-out);
}
@keyframes landed {
  0% {
    transform: translateY(-14px) scale(0.96);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(196, 216, 75, 0.9);
  }
  40% {
    transform: none;
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(196, 216, 75, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 216, 75, 0);
  }
}
.ev[aria-pressed='true'] {
  outline: 2px solid var(--forest-2);
  outline-offset: 2px;
}
.o-slot.closed {
  background: repeating-linear-gradient(135deg, #fbfaf5 0 10px, #f3f1e6 10px 20px);
}
.o-closed {
  font-size: 13px;
  color: var(--ink-mute);
}
.o-side {
  display: grid;
  gap: 16px;
}
.o-detail,
.o-requests {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 24px;
}
.o-detail h2,
.o-requests h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
}
.o-detail dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.o-detail dt {
  font-size: 13px;
  color: var(--ink-mute);
}
.o-detail dd {
  margin: 2px 0 0;
  font-size: 15px;
}
.o-empty {
  margin: 0;
  color: var(--ink-soft);
}
.o-requests ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.o-requests li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f6ef;
}
.o-requests li.fresh {
  animation: landed 1.6s var(--ease-out);
  outline: 2px solid var(--lime);
}
.o-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.o-thumbs button {
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  width: 60px;
  height: 60px;
}
.o-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.o-photo {
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  max-width: min(92vw, 900px);
  cursor: zoom-out;
}
.o-photo::backdrop {
  background: rgba(26, 26, 23, 0.8);
}
.o-photo img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
}
.o-reset {
  justify-self: start;
  color: var(--ink-mute);
}
@media (max-width: 1100px) {
  .o-layout {
    grid-template-columns: 1fr;
  }
  .o-week {
    overflow-x: auto;
    grid-template-columns: 80px repeat(6, minmax(140px, 1fr));
  }
}
@media (max-width: 720px) {
  .o-head {
    flex-wrap: wrap;
    padding: 14px 18px;
  }
  .o-sync {
    order: 3;
    width: 100%;
  }
  .o-main {
    padding: 24px 12px 48px;
  }
  .o-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .o-title {
    font-size: 34px;
  }
}
.o-thumbs figure {
  margin: 0;
}
.o-thumbs figcaption {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
}
