dialog.koleda-host {
  color-scheme: light;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  padding: 0;
  margin: auto;
  width: min(30rem, calc(100% - 2rem));
  max-width: 100%;
  max-height: min(90dvh, 45rem);
  overflow: auto;
  border: 1px solid #c8a76e;
  border-radius: 1rem;
  background: #fbf6e9;
  color: #243e34;
  box-shadow: 0 1.5rem 6rem #1e151563;
  font: 1rem/1.5 system-ui, sans-serif;
}
dialog.koleda-host::backdrop { background: #241518a8; }
.koleda-host *, .koleda-host *::before, .koleda-host *::after { box-sizing: border-box; }
.koleda-host [hidden] { display: none !important; }
.kh-shell { padding: clamp(1.35rem, 5vw, 2.4rem); border-top: .35rem solid #782b3d; }
.kh-kicker { display: flex; align-items: center; gap: .55rem; margin: 0 2rem .6rem 0; font-size: .875rem; font-weight: 650; color: #714f24; }
.kh-kicker span { color: #a27331; }
.koleda-host h2 { max-width: 95%; padding: 0; margin: 0 0 1.3rem; font: 500 clamp(1.8rem,5vw,2.45rem)/1.08 Georgia,serif; letter-spacing: -.035em; }
.koleda-host button { cursor: pointer; }
.koleda-host button, .koleda-host input, .koleda-host select { font-family: inherit; }
.kh-close { position: absolute; top: .8rem; right: .7rem; width: 2.75rem; height: 2.75rem; background: transparent; color: #294236; border: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.kh-close:hover { background: #eee6d4; }
.kh-modes { display: grid; gap: .4rem; padding: 0; margin: 0 0 1rem; border: none; }
.kh-modes legend, .kh-field { font-size: .94rem; font-weight: 650; }
.kh-modes legend { padding: 0 0 .45rem; }
.kh-modes label { display: flex; align-items: center; gap: .55rem; border: 1px solid #d5c9b5; border-radius: .5rem; padding: .65rem .8rem; background: #fffaf0; cursor: pointer; }
.kh-modes label:has(:checked) { border-color: #466450; background: #edf0e7; }
.kh-modes input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: #234c3d; }
.kh-field { display: grid; gap: .4rem; }
.kh-field select, .kh-field input { width: 100%; min-width: 0; height: 2.85rem; padding: 0 .75rem; border: 1px solid #ac9e88; border-radius: .45rem; color: #20382c; background-color: #fffdf7; font-size: 1rem; font-weight: 400; }
.kh-field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%232b4437' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; }
.kh-summary, .kh-notice { margin: 0 0 1rem; line-height: 1.55; }
.kh-error { margin: .6rem 0 0; color: #8e1733; font-size: .94rem; }
.kh-error:empty { margin: 0; }
.kh-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.kh-primary, .kh-secondary { min-height: 2.75rem; padding: .58rem 1.05rem; border: 1px solid #b6a68a; border-radius: .45rem; font-size: .94rem; font-weight: 650; }
.kh-primary { border-color: #773143; background: #773143; color: #fffaf0; }
.kh-primary:hover { background: #602237; }
.kh-secondary { color: #294638; background: transparent; }
.kh-secondary:hover { background: #eee6d4; }
.koleda-host :focus-visible { outline: 2px solid #386957; outline-offset: 3px; }
.koleda-host button:disabled { opacity: .65; cursor: wait; }
