.guest-book {
  margin-block: 24px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #dfc5b3;
  border-radius: 16px;
  background: #fcf7f0;
  color: #44251a;
  text-align: start;
}

.guest-book h2 { margin: 0 0 6px; }
.guest-book > p { margin: 0 0 16px; }
.guest-book form p:empty, [data-book-status]:empty { position: absolute; margin: 0; }
.guest-book form button { justify-self: start; }
.guest-book-confirmation { margin: 0; font-weight: 600; }
.guest-book-note { padding: 13px 0; border-top: 1px solid #dfc5b3; }
.guest-book-note time { display: block; font-size: .85rem; }
.guest-book-note strong, .guest-book-note p { overflow-wrap: anywhere; }
.guest-book-note p { margin: 6px 0 0; white-space: pre-wrap; }

.event-option:has(.cloud-usage) > div:first-child { width: 100%; }
.event-option:has(.cloud-usage) > .event-option-actions:empty { display: none; }
.cloud-usage { --usage-color: #2f774a; margin-top: 13px; }
.cloud-usage[data-level="warning"] { --usage-color: #a44b12; }
.cloud-usage[data-level="critical"] { --usage-color: #b12e26; }
.cloud-usage-values { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.cloud-usage-track { height: 10px; margin: 6px 0; overflow: hidden; border-radius: 999px; background: #e9dcd0; }
.cloud-usage-track > span { display: block; height: 100%; border-radius: inherit; background: var(--usage-color); }
.cloud-usage-track > .has-usage { min-width: 4px; }
.event-option .cloud-usage-status { color: var(--usage-color); font-weight: 700; }

.drive-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drive-connected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #abc5ae;
  border-radius: 999px;
  background: #e6efe3;
  color: #265535;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}
.drive-connected svg { width: 16px; height: 16px; flex: none; stroke-width: 2; }

dialog:has(.album-manager) { width: min(740px, calc(100% - 24px)); max-width: none; }
.album-toolbar { margin: 14px 0; }
.album-toolbar:empty, .album-feedback:empty, .album-delete-confirm [role="status"]:empty { display: none; }
.album-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.album-selection label, .album-select-item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 650; }
.album-selection input, .album-select-item input { width: 17px; height: 17px; accent-color: #a23417; }
.album-selection button { min-height: 39px; padding: 8px 12px; }
.album-selection .album-danger { background: #a32923; color: white; }
.album-selection button:disabled { opacity: .55; }
.album-select-item { padding: 8px 10px; font-size: .85rem; }
.album-file-name { display: block; overflow-wrap: anywhere; }

.guest-book-link { margin: 16px 0 4px; }
.guest-book-navigation { margin: 0 0 12px; }
.guest-book-navigation .guest-book-back {
  min-height: 44px;
  gap: 8px;
  border-color: #ad7962;
  background: #fdfaf5;
  color: #442317;
  font-size: .9375rem;
}
.guest-book-navigation .guest-book-back:hover { background: #f2e3d7; }
.guest-book textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #dfc5b3;
  border-radius: 6px;
  background: #fffdf8;
  color: inherit;
  font: inherit;
  resize: vertical;
}
.guest-consent[hidden], .guest-consent-edit[hidden] { display: none; }
.guest-consent-edit { margin: 0 0 12px; font-size: .8rem; }

.form-grid .guest-consent:has(> #host-policy) {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 4px 0;
}
.form-grid #host-policy {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}
.form-grid #host-policy-copy { font-size: .875rem; line-height: 1.45; }
.form-grid #host-policy-copy label,
.form-grid #host-policy-copy a { display: inline; margin: 0; padding: 0; font: inherit; }
