.hw-brand {
  display: inline-flex;
  align-items: center;
  color: var(--hw-pine);
  text-decoration: none;
}

.hw-brand img,
.hw-brand svg {
  width: auto;
  max-width: 100%;
  height: var(--hw-brand-height, 4rem);
}

.hw-brand--seal img,
.hw-brand--seal svg {
  aspect-ratio: 187 / 191;
  height: var(--hw-brand-height, 3rem);
}

.hw-brand--compact img,
.hw-brand--compact svg {
  height: var(--hw-brand-height, 2.5rem);
}

.hw-site-header {
  position: relative;
  z-index: 10;
  border-block-end: 1px solid var(--hw-border-soft);
  background: rgb(244 240 230 / 0.94);
}

@supports (backdrop-filter: blur(12px)) {
  .hw-site-header {
    backdrop-filter: blur(12px);
  }
}

.hw-site-header__inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--hw-space-4);
}

.hw-site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hw-space-2) var(--hw-space-5);
}

.hw-site-nav a {
  font-size: var(--hw-text-sm);
  font-weight: 700;
  text-decoration: none;
}

.hw-site-nav > a[aria-current="page"],
.hw-account-menu__panel [aria-current="page"] {
  color: var(--hw-pine);
  text-decoration: underline;
  text-decoration-thickness: 0.16rem;
  text-underline-offset: 0.35rem;
}

.hw-account-menu {
  position: relative;
}

.hw-account-menu__trigger {
  border: 0;
  background: transparent;
  color: var(--hw-pine);
  cursor: pointer;
  font: inherit;
  font-size: var(--hw-text-sm);
  font-weight: 700;
}

.hw-account-menu__trigger::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-start: var(--hw-space-2);
  border-inline-end: 0.12rem solid currentColor;
  border-block-end: 0.12rem solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.hw-account-menu__trigger[aria-expanded="true"]::after {
  transform: translateY(0.12rem) rotate(225deg);
}

.hw-account-menu__trigger:focus-visible,
.hw-account-menu__panel a:focus-visible,
.hw-account-menu__panel button:focus-visible {
  outline: 0.18rem solid var(--hw-pine);
  outline-offset: 0.2rem;
}

.hw-account-menu__panel {
  position: absolute;
  inset-block-start: calc(100% + var(--hw-space-3));
  inset-inline-end: 0;
  z-index: 20;
  display: grid;
  min-width: 10rem;
  padding: var(--hw-space-2);
  border: 1px solid var(--hw-border-soft);
  border-radius: var(--hw-radius-md);
  background: var(--hw-surface);
  box-shadow: var(--hw-shadow-md);
}

.hw-account-menu__panel[hidden] {
  display: none;
}

.hw-account-menu__panel a,
.hw-account-menu__panel button {
  width: 100%;
  padding: var(--hw-space-3);
  border: 0;
  border-radius: var(--hw-radius-sm);
  background: transparent;
  color: var(--hw-pine);
  cursor: pointer;
  font: inherit;
  font-size: var(--hw-text-sm);
  font-weight: 700;
  text-align: start;
  text-decoration: none;
}

.hw-account-menu__panel a:hover,
.hw-account-menu__panel button:hover {
  background: var(--hw-mist);
}

@media (max-width: 36rem) {
  .hw-account-menu__panel {
    position: fixed;
    inset-block-start: calc(4.75rem + env(safe-area-inset-top));
    inset-inline: var(--hw-space-4);
    width: auto;
  }
}

.hw-site-footer {
  margin-block-start: auto;
  padding-block: var(--hw-space-8);
  border-block-start: 1px solid var(--hw-border-soft);
  color: var(--hw-text-muted);
  font-size: var(--hw-text-sm);
}

.hw-surface,
.hw-card,
.hw-panel {
  border: 1px solid var(--hw-border-soft);
  border-radius: var(--hw-radius-lg);
  background: var(--hw-surface);
  box-shadow: var(--hw-shadow-sm);
}

.hw-surface,
.hw-panel {
  padding: clamp(var(--hw-space-5), 3vw, var(--hw-space-8));
}

.hw-card {
  padding: var(--hw-space-6);
}

.hw-card--soft,
.hw-panel--soft {
  background: var(--hw-surface-soft);
}

.hw-card--quiet {
  box-shadow: none;
}

.hw-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--hw-space-3) var(--hw-space-6);
  margin-block-end: var(--hw-space-6);
}

.hw-button {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  gap: var(--hw-space-2);
  padding: 0.7rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--hw-radius-pill);
  background: var(--hw-action);
  color: var(--hw-action-text);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--hw-duration-standard) var(--hw-ease-standard),
    border-color var(--hw-duration-standard) var(--hw-ease-standard),
    color var(--hw-duration-standard) var(--hw-ease-standard),
    transform var(--hw-duration-fast) var(--hw-ease-standard);
}

.hw-button:hover:not(:disabled, [aria-disabled="true"]) {
  background: var(--hw-action-hover);
}

.hw-button:active:not(:disabled, [aria-disabled="true"]) {
  transform: translateY(1px);
}

.hw-button--secondary {
  border-color: var(--hw-pine);
  background: transparent;
  color: var(--hw-pine);
}

.hw-button--secondary:hover:not(:disabled, [aria-disabled="true"]) {
  background: var(--hw-mist);
}

.hw-button--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--hw-pine);
}

.hw-button--quiet:hover:not(:disabled, [aria-disabled="true"]) {
  background: var(--hw-mist);
}

.hw-button--danger {
  background: var(--hw-error);
  color: var(--hw-paper);
}

.hw-button--block {
  width: 100%;
}

.hw-button--small {
  min-height: 2.5rem;
  padding-block: 0.5rem;
  font-size: var(--hw-text-sm);
}

.hw-button:disabled,
.hw-button[aria-disabled="true"] {
  opacity: 0.52;
}

.hw-button[aria-busy="true"] {
  cursor: progress;
}

.hw-icon-button {
  display: inline-grid;
  width: 2.875rem;
  min-width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--hw-border);
  border-radius: 50%;
  background: var(--hw-surface);
  color: var(--hw-pine);
}

.hw-field {
  display: grid;
  gap: var(--hw-space-2);
}

.hw-field > label,
.hw-field__label,
.hw-legend {
  color: var(--hw-text-brand);
  font-size: var(--hw-text-sm);
  font-weight: 700;
}

.hw-input,
.hw-select,
.hw-textarea,
.hw-field :is(input, select, textarea) {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-sm);
  background: var(--hw-paper);
  color: var(--hw-ink);
  line-height: 1.35;
  transition:
    border-color var(--hw-duration-fast) var(--hw-ease-standard),
    box-shadow var(--hw-duration-fast) var(--hw-ease-standard);
}

.hw-textarea,
.hw-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.hw-input::placeholder,
.hw-textarea::placeholder,
.hw-field :is(input, textarea)::placeholder {
  color: #65786a;
  opacity: 1;
}

.hw-input:focus-visible,
.hw-select:focus-visible,
.hw-textarea:focus-visible,
.hw-field :is(input, select, textarea):focus-visible {
  border-color: var(--hw-pine);
  box-shadow: var(--hw-shadow-focus);
}

.hw-field__hint,
.hw-field__error {
  margin: 0;
  font-size: var(--hw-text-sm);
}

.hw-field__hint {
  color: var(--hw-text-muted);
}

.hw-field__error,
[aria-invalid="true"] + .hw-field__error {
  color: var(--hw-error);
}

[aria-invalid="true"] {
  border-color: var(--hw-error) !important;
}

.hw-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--hw-space-3);
}

.hw-choice {
  position: relative;
  display: grid;
  min-height: 3.25rem;
  align-content: center;
  gap: var(--hw-space-1);
  padding: var(--hw-space-4);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-md);
  background: var(--hw-surface);
  color: var(--hw-text);
  transition:
    border-color var(--hw-duration-fast) var(--hw-ease-standard),
    background-color var(--hw-duration-fast) var(--hw-ease-standard);
}

.hw-choice:has(input:checked),
.hw-choice[aria-pressed="true"],
.hw-choice.is-selected {
  border-color: var(--hw-pine);
  background: var(--hw-mist);
  box-shadow: inset 0 0 0 1px var(--hw-pine);
}

.hw-choice input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--hw-pine);
}

.hw-chip {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-pill);
  background: var(--hw-surface);
  color: var(--hw-pine);
  font-size: var(--hw-text-sm);
  font-weight: 700;
}

.hw-chip[aria-pressed="true"],
.hw-chip.is-selected {
  border-color: var(--hw-pine);
  background: var(--hw-pine);
  color: var(--hw-parchment);
}

.hw-tabs {
  display: flex;
  gap: var(--hw-space-2);
  padding: var(--hw-space-1);
  overflow-x: auto;
  border: 1px solid var(--hw-border-soft);
  border-radius: var(--hw-radius-pill);
  background: var(--hw-surface-soft);
  scrollbar-width: thin;
}

.hw-tab {
  min-height: 2.75rem;
  flex: 1 0 auto;
  padding-inline: var(--hw-space-4);
  border: 0;
  border-radius: var(--hw-radius-pill);
  background: transparent;
  color: var(--hw-pine);
  font-weight: 700;
}

.hw-tab[aria-selected="true"],
.hw-tab.is-active {
  background: var(--hw-pine);
  color: var(--hw-parchment);
}

.hw-callout,
.hw-status {
  padding: var(--hw-space-4);
  border-inline-start: 0.3rem solid var(--hw-info);
  border-radius: 0 var(--hw-radius-md) var(--hw-radius-md) 0;
  background: var(--hw-mist);
}

.hw-callout > :last-child,
.hw-status > :last-child {
  margin-block-end: 0;
}

.hw-status--success {
  border-color: var(--hw-success);
}

.hw-status--warning {
  border-color: var(--hw-warning);
}

.hw-status--error {
  border-color: var(--hw-error);
}

.hw-progress {
  width: 100%;
  height: 0.6rem;
  overflow: hidden;
  border-radius: var(--hw-radius-pill);
  background: var(--hw-mist);
}

.hw-progress__bar {
  width: var(--hw-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--hw-pine);
  transition: width var(--hw-duration-slow) var(--hw-ease-standard);
}

.hw-dialog {
  width: min(100% - 2rem, 36rem);
  max-height: min(90vh, 52rem);
  max-height: min(90dvh, 52rem);
  padding: clamp(var(--hw-space-5), 4vw, var(--hw-space-8));
  overflow: auto;
  border: 1px solid var(--hw-border-soft);
  border-radius: var(--hw-radius-lg);
  background: var(--hw-surface);
  color: var(--hw-text);
  box-shadow: var(--hw-shadow-md);
}

.hw-dialog::backdrop {
  background: rgb(29 41 34 / 0.7);
}

.hw-app-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
}

.hw-app-main {
  display: grid;
  gap: var(--hw-space-6);
  align-items: start;
  padding-block: var(--hw-space-6) var(--hw-space-12);
}

.hw-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hw-space-3);
}

.hw-action-bar > .hw-button {
  flex: 0 1 auto;
}

@media (min-width: 62rem) {
  .hw-app-main--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  }

  .hw-sticky-panel {
    position: sticky;
    inset-block-start: var(--hw-space-6);
    max-height: calc(100dvh - (2 * var(--hw-space-6)));
    overflow: auto;
  }
}

@media (max-width: 35rem) {
  .hw-site-header__inner {
    min-height: 4rem;
  }

  .hw-card,
  .hw-panel,
  .hw-surface {
    border-radius: var(--hw-radius-md);
  }

  .hw-action-bar > .hw-button {
    flex: 1 1 100%;
  }
}

@media (forced-colors: active) {
  .hw-button,
  .hw-tab,
  .hw-chip,
  .hw-choice {
    border: 2px solid ButtonText;
  }

  .hw-progress__bar {
    background: Highlight;
  }
}
.module-handoff-dialog{width:min(680px,calc(100% - 24px));padding:0;border:0;border-radius:22px;box-shadow:0 24px 80px rgba(35,24,32,.25)}.module-handoff-dialog::backdrop{background:rgba(32,25,30,.58)}.module-handoff-card{padding:28px}.module-handoff-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.module-handoff-heading h2{margin-top:0}.module-handoff-close{width:44px;height:44px;border:0;border-radius:50%;background:var(--hw-surface-muted,#eeeae5);font-size:1.5rem}.module-handoff-summary{margin:18px 0;padding:16px;border-radius:14px;background:var(--hw-surface-muted,#f4f1ec)}.module-handoff-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:20px}@media(max-width:560px){.module-handoff-actions>*{width:100%}}
