.button {
  min-height: var(--button-height);
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.55rem 1rem;
  border: 1px solid #78909f;
  border-radius: var(--button-radius);
  background: var(--white);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button:hover:not(:disabled) { border-color: var(--navy); background: #eaf6ec; text-decoration: none; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.button--navy:hover:not(:disabled) { background: #173f61; color: var(--white); }
.button--danger { border-color: #a63838; background: #fff4f4; color: #8d2525; }
.button--danger:hover:not(:disabled) { border-color: #8d2525; background: #f8dcdc; color: #741b1b; }
.button--warning { border-color: #bd8123; background: #fff8e8; color: #704800; }
.button--warning:hover:not(:disabled) { border-color: #8a5a0d; background: #fff0c7; }
.button--compact { min-height: var(--button-height-compact); padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.button--icon { width: var(--button-height); min-width: var(--button-height); padding: 0; }
.button > [aria-hidden="true"] { flex: none; line-height: 1; }
.button--navy:focus-visible, .site-header :focus-visible, .floating-window__titlebar :focus-visible {
  outline-color: var(--white);
}
.button:disabled {
  cursor: not-allowed;
  background: var(--white);
  color: var(--black);
  border-style: dashed;
  transform: none;
  text-decoration: none;
}
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--button-gap); }
.card {
  background: var(--white);
  color: var(--black);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.card__eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.card h3 { margin: var(--space-2) 0 var(--space-3); font-size: 1.3rem; }
.card p { line-height: 1.55; }
.card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.status-label { font-size: 0.82rem; font-weight: 750; }

.window-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.floating-window {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: min(280px, 100vw);
  min-height: 210px;
  background: var(--white);
  color: var(--black);
  border: 3px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--navy);
  pointer-events: auto;
  overflow: hidden;
}
.floating-window--maximized { border-radius: 0; box-shadow: none; }
.floating-window__titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 4px 6px 4px var(--space-3);
  background: var(--navy);
  color: var(--white);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.floating-window__titlebar:active { cursor: grabbing; }
.floating-window__title { flex: 1; min-width: 0; padding-right: calc(var(--button-height) * 2 + 12px); font-size: 0.95rem; font-weight: 750; }
.floating-window__controls { position: absolute; top: 4px; right: 6px; display: flex; flex: 0 0 auto; gap: 4px; }
.floating-window__control {
  width: var(--button-height);
  height: var(--button-height);
  padding: 0;
  border: 2px solid var(--white);
  border-radius: var(--button-radius);
  background: var(--navy);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.floating-window__control:hover { text-decoration: underline; }
.floating-window__content { flex: 1; min-height: 0; overflow: auto; padding: var(--space-4); line-height: 1.55; container-type: inline-size; }
.floating-window__content h3 { margin: 0 0 var(--space-2); }
.floating-window__resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-top: 3px solid var(--green);
  border-left: 3px solid var(--green);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  cursor: nwse-resize;
  touch-action: none;
  font-size: 1.2rem;
}
.floating-window__resize:disabled { display: none; }
@media (max-width: 600px) {
  .floating-window__content { padding: var(--space-3); }
  .floating-window__titlebar { padding-left: var(--space-2); }
}
