.brand-wordmark { font-family:Inter,system-ui,sans-serif; font-weight:760; letter-spacing:-.055em; }
.new-calendar-button,
.calendar-share {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  min-height: 38px;
  border: 1px solid #1e6a54;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}
.new-calendar-button:hover, .calendar-share:hover { background: #175d49; }
.new-calendar-button > [aria-hidden] { font-size: 1.1rem; line-height: 1; }
.new-short { display: none; }
.hero-info { min-width: 0; }
.hero h1 { overflow-wrap: anywhere; }
.calendar-share-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 12px;
}
.calendar-share { color: #215b47; background: #f7fbf6; border-color: #a8c7b4; }
.calendar-share:hover { background: #fff; border-color: #83ad98; }
.calendar-share svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#calendar-share-feedback, .local-calendar-note { color: #3b6552; font-size: .82rem; }
.local-calendar-note { margin-top: 10px; }
.day-pager { align-items: center; }
#page-label { color: var(--muted); padding: 0 .45rem; font-size: .82rem; font-weight: 650; }
.day-pager button:disabled { opacity: .45; cursor: default; }

#calendar-create-dialog, #calendar-copy-dialog {
  width: min(460px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overscroll-behavior: contain;
  background: var(--paper);
}
#calendar-create-dialog { padding: 0; }
.create-heading { padding: 20px 23px 17px; border-bottom: 1px solid var(--line); }
.create-heading h2 { font-size: 1.25rem; }
.create-fields { display: grid; gap: 18px; padding: 20px 23px 16px; }
.create-fields fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.create-fields legend { font-size: .95rem; font-weight: 720; color: var(--ink); padding: 0; margin-bottom: 5px; }
.create-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.create-field { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-size: .93rem; }
.create-pair .create-field { color: var(--muted); font-size: .84rem; font-weight: 600; }
.create-field input, .create-field select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #c7d6cc;
  border-radius: 8px;
  background: #fcfdfb;
  font: inherit;
  font-size: 1rem;
  font-weight: 480;
  line-height: 1.5;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.create-field input::placeholder { color: #748578; }
.create-select { display: block; position: relative; }
.create-select::after {
  position: absolute; content: ""; pointer-events: none;
  right: 15px; top: calc(50% - 4px);
  width: 7px; height: 7px; border: solid #5e7766;
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.create-field select { appearance: none; padding-right: 30px; }
.create-field select:focus-visible { outline: 3px solid #c47025; outline-offset: 3px; }
.create-field [aria-invalid="true"] { border-color: #b64d3e; }
.create-zone { color: var(--muted); font-size: .81rem; margin-top: 7px; }
.create-error { border-radius: 7px; background: #fff1eb; color: #8a352b; padding: 8px 10px; font-size: .88rem; }
.create-footer { padding: 15px 23px 19px; border-top: 1px solid var(--line); background: #f8faf6; }
.create-footer .save-btn { margin-top: 0; }
.create-footer .create-zone { margin: 0 0 8px; }
.create-footer .save-btn:disabled { cursor: wait; opacity: .65; }
#calendar-copy-dialog .create-field { margin-top: 15px; }
#calendar-copy-dialog .create-field > span { font-weight: 500; }
@media(max-width:600px) {
  .new-full { display: none; }
  .new-short { display: inline; }
  .new-calendar-button { padding: 5px 8px; gap: 2px; min-height: 34px; font-size: .8rem; }
  .create-heading { padding: 16px; }
  .create-fields { gap: 16px; padding: 16px; }
  .create-footer { padding: 13px 16px 16px; }
  .calendar-share-tools { margin-top: 8px; }
  .calendar-share { font-size: .8rem; min-height: 36px; padding: 5px 10px; }
}
