:root {
  --ink: #384437;
  --muted: #61674f;
  --paper: #f8f4eb;
  --line: #dbd1bf;
  --accent: #805c48;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top left, #eee1cc, transparent 60%), var(--paper);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 25px;
  padding: 11px 21px;
  cursor: pointer;
}
button.secondary {
  background: #fffaf0;
  color: var(--ink);
  border-color: var(--line);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #897244;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #b9b8a3;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
label {
  display: block;
  margin: 17px 0 6px;
  font-weight: 600;
}
label span,
.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
}
h1 {
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 16px;
}
h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
h3 {
  font-size: 27px;
  margin-bottom: 12px;
}
.admin-header {
  padding: 22px max(22px, calc((100vw - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  color: var(--muted);
}
main {
  max-width: 1168px;
  padding: 40px 24px 80px;
  margin: auto;
}
.panel {
  background: #fffcf5;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 30px;
}
.login-panel {
  max-width: 470px;
  margin: 45px auto 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
form > button {
  margin-top: 25px;
}
#notice {
  white-space: pre-line;
  max-width: 900px;
  margin: 20px auto;
  color: #793e2c;
}
.workspace-heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}
.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 25px 0 35px;
}
.filter {
  margin: 0;
  font-size: 12px;
  min-width: 200px;
}
.filter select {
  margin-top: 5px;
}
.request-list {
  display: grid;
  gap: 15px;
}
.request-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr 220px;
  gap: 25px;
  align-items: center;
  overflow-wrap: anywhere;
}
.request-card p {
  margin-bottom: 5px;
}
.request-card time,
.event-card .meta {
  font-size: 12px;
  color: var(--muted);
}
.request-card label {
  margin-top: 0;
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.empty {
  padding: 30px;
  background: #ebeade;
  border-radius: 20px;
  color: var(--muted);
}
.events-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 25px;
  align-items: start;
}
.event-card {
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.event-card button {
  margin-top: 10px;
}
.event-editor {
  position: sticky;
  top: 20px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
@media (max-width: 800px) {
  .request-card {
    grid-template-columns: 1fr 1fr;
  }
  .request-card > div:last-child {
    grid-column: 1 / -1;
  }
  .events-layout {
    grid-template-columns: 1fr;
  }
  .event-editor {
    position: static;
  }
}
@media (max-width: 500px) {
  main {
    padding: 25px 17px 60px;
  }
  .panel {
    padding: 22px;
  }
  .login-panel {
    margin-top: 15px;
  }
  .workspace-heading,
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .request-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .filter {
    width: 100%;
  }
  .two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.connection-panel {
  margin-block: 24px;
}
.connection-panel ul {
  padding-left: 20px;
}
.warning {
  color: #844e21;
  font-weight: 600;
}
#appointment-filter {
  max-width: 320px;
  margin-bottom: 20px;
}
#appointment-editor {
  max-width: 760px;
  margin-top: 28px;
  scroll-margin-top: 20px;
}
#video-dialog {
  width: min(1100px, 96vw);
  border: 1px solid #d7d5c7;
  border-radius: 24px;
  padding: 20px;
  color: inherit;
  background: #fbf7ef;
}
#video-dialog::backdrop {
  background: #18201999;
}
#video-frame iframe {
  display: block;
  width: 100%;
  height: min(70vh, 740px);
  border: 0;
  border-radius: 16px;
}
.tabs {
  flex-wrap: wrap;
}
