.mythos-global-nav {
  display: flex;
  gap: 0.5rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}
.mythos-global-nav[hidden],
#mythos-hub[hidden] {
  display: none;
}
.mythos-global-nav a {
  padding: 0.65rem 1rem;
  color: var(--text, #effaf8);
  text-decoration: none;
  border-radius: 0.5rem;
}
.mythos-global-nav a[aria-current] {
  background: #224f49;
  outline: 1px solid #70c8b6;
}
#mythos-hub {
  max-width: 1280px;
  padding: 1rem;
  margin-inline: auto;
  color: var(--text, #e6f0ee);
}
#mythos-hub h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-block: 0.35rem 1rem;
}
#mythos-hub h2 {
  margin-top: 1.6rem;
}
#mythos-hub fieldset {
  border: 0;
  min-width: 0;
  padding: 0;
  margin-block: 1rem;
}
#mythos-hub .atlas-card {
  min-width: 0;
  overflow-wrap: anywhere;
  background: #10221f;
  border: 1px solid #38544b;
  border-radius: 0.7rem;
  padding: 1rem;
}
#mythos-hub .atlas-card h3 {
  margin-top: 0;
}
#mythos-hub .mythos-welcome-card {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
#mythos-hub .mythos-welcome-card > h1,
#mythos-hub .mythos-welcome-card > p {
  margin: 0;
}
#mythos-hub .mythos-welcome-card > .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  text-align: center;
}
#mythos-hub .mythos-active-turn {
  border-color: #67d6da;
  box-shadow: inset 4px 0 #67d6da;
}
#mythos-hub label {
  display: grid;
  gap: 0.4rem;
}
#mythos-hub input,
#mythos-hub select,
#mythos-hub textarea {
  max-width: 100%;
  min-width: 0;
  padding: 0.65rem;
  background: #112320;
  color: #effaf8;
  border: 1px solid #58716a;
  border-radius: 0.4rem;
}
#mythos-hub button {
  min-height: 44px;
  cursor: pointer;
}
#mythos-hub button:disabled {
  cursor: wait;
  opacity: 0.65;
}
#mythos-hub :focus-visible,
.mythos-global-nav :focus-visible {
  outline: 3px solid #b3e6d9;
  outline-offset: 3px;
}
#mythos-hub .hint {
  color: #b2c9c2;
}
.mythos-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.mythos-card-grid .atlas-card {
  text-align: left;
  color: inherit;
  text-decoration: none;
  padding: 1.2rem;
}
.mythos-create-form,
.mythos-search {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  margin-block: 1rem;
}
.mythos-create-form label:first-child,
.mythos-search label:first-child {
  flex: 1;
  min-width: 180px;
}
.mythos-builder-fields {
  border: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.mythos-ability-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  padding-block: 1rem;
}
.mythos-ability-grid > div {
  display: grid;
  text-align: center;
  gap: 0.3rem;
  padding: 1rem 0.4rem;
  background: #183630;
  border-radius: 0.5rem;
}
.mythos-vitals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}
.mythos-vitals dd {
  font-size: 1.6rem;
  margin: 0.3rem 0;
}
.mythos-skill-grid {
  columns: 3 180px;
}
.mythos-choice {
  padding: 1rem;
  border: 1px solid #425d55;
  border-radius: 0.5rem;
}
.mythos-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
}
.mythos-action-row input {
  width: 7rem;
}
.mythos-choice label {
  margin-block: 0.5rem;
}
.mythos-library-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 1.5rem;
}
.mythos-result-list,
.mythos-item-list {
  list-style: none;
  padding: 0;
}
.mythos-result-list button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  background: #132e29;
  color: inherit;
  border: 0;
  border-bottom: 1px solid #38544b;
}
.mythos-result-list span {
  color: #b2c9c2;
}
.mythos-rule-source {
  display: block;
  font-size: 0.7rem;
  max-width: 12rem;
}
.mythos-homebrew .mythos-result-list > li {
  margin-block: 1rem;
}
.mythos-homebrew .mythos-result-list > li > span {
  display: block;
  margin-block: 0.4rem;
}
.mythos-homebrew details,
.mythos-homebrew label {
  margin-block: 0.7rem;
}
.mythos-item-list li {
  border-bottom: 1px solid #38544b;
  padding: 0.7rem 0;
}
.mythos-note-block {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid #38544b;
  border-radius: 0.5rem;
}
#mythos-hub .mythos-check {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
}
.mythos-note-list {
  padding-left: 1.3rem;
}
.mythos-note-list li {
  margin-block: 1rem;
}
.mythos-action-row a {
  padding: 0.7rem;
}
.mythos-rule-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  margin-block: 1rem;
}
.mythos-picker {
  background: #152c26;
  color: #effaf8;
  max-width: min(660px, 90vw);
  max-height: 85vh;
  border: 1px solid #6eafa0;
  border-radius: 0.8rem;
  padding: 1.5rem;
}
.mythos-picker::backdrop {
  background: #000a;
}
.mythos-picker-options {
  max-height: 55vh;
  overflow: auto;
  padding: 0.4rem;
}
.mythos-picker-options label {
  display: flex !important;
  align-items: center;
  min-height: 44px;
  gap: 0.7rem;
}
@media (max-width: 650px) {
  .mythos-global-nav {
    justify-content: center;
    gap: 0;
  }
  .mythos-global-nav a {
    padding-inline: 0.8rem;
  }
  .mythos-ability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mythos-vitals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mythos-library-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .mythos-create-form > *,
  .mythos-search > * {
    width: 100%;
  }
}
@media print {
  body.atlas-page {
    background: white !important;
    color: black !important;
  }
  .site-header,
  .cookie-banner,
  .skip-link,
  .mythos-global-nav,
  .mythos-no-print,
  #atlas-app,
  #atlas-dialog,
  #atlas-toast {
    display: none !important;
  }
  #mythos-hub,
  #mythos-hub * {
    color: black !important;
    background: white !important;
    box-shadow: none !important;
  }
  #mythos-hub {
    max-width: none;
    padding: 0;
  }
  .mythos-sheet section,
  .mythos-vitals {
    break-inside: avoid;
  }
  .mythos-sheet details > * {
    display: block !important;
  }
}
.mythos-combatant-editor .mythos-action-row label {
  flex: 1 1 7rem;
  min-width: 0;
}
.mythos-combatant-editor .mythos-action-row input {
  width: 100%;
  box-sizing: border-box;
}
.mythos-encounter-order {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.mythos-active-turn {
  border: 2px solid var(--atlas-accent, #67d6da);
}
.mythos-packet-tools button {
  margin-block: 0.6rem;
}
.mythos-packet-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  padding-inline-start: 1.3rem;
}
.mythos-packet-document {
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.mythos-packet-document h3,
.mythos-packet-document h4 {
  margin-block: 1.2rem 0.4rem;
  break-after: avoid;
}
#mythos-packet-print {
  display: none;
}
@media print {
  body.mythos-print-packet > :not(#mythos-packet-print) {
    display: none !important;
  }
  body.mythos-print-packet #mythos-packet-print {
    display: block !important;
    color: black;
    background: white;
    font:
      11pt/1.5 Georgia,
      serif;
  }
  #mythos-packet-print * {
    color: black !important;
    background: white !important;
    box-shadow: none !important;
  }
  #mythos-packet-print p {
    margin-block: 0.6rem 1rem;
  }
}
