@import url("https://fonts.googleapis.com/css2?family=Asimovian&family=Marcellus&family=Space+Grotesk:wght@400;500;600&family=Press+Start+2P&family=Cormorant+Garamond:wght@400;500&family=Kosugi+Maru&family=Creepster&family=Nosifer&family=Underdog&display=swap");

:root {
  --bg: #f3efe6;
  --panel: rgba(255, 252, 246, 0.9);
  --panel-strong: #fffdf7;
  --ink: #1f2d2a;
  --muted: #66736d;
  --accent: #1c3d34;
  --accent-soft: #d9e5dd;
  --warning: #a34b2e;
  --border: rgba(28, 61, 52, 0.14);
  --shadow: 0 20px 50px rgba(35, 40, 34, 0.12);
  --body-font: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --heading-font: "Marcellus", "Playfair Display", serif;
}

html.theme-sunrise,
.user-tile.theme-sunrise {
  --bg: #fff6f0;
  --panel: rgba(255, 243, 235, 0.95);
  --panel-strong: #fff1e9;
  --ink: #3d1f1a;
  --muted: #7a5544;
  --accent: #c4552b;
  --accent-soft: #ffd6b2;
  --border: rgba(196, 85, 43, 0.35);
  --shadow: 0 20px 45px rgba(190, 130, 110, 0.2);
  --heading-font: "Marcellus", "Playfair Display", serif;
}

html.theme-midnight,
.user-tile.theme-midnight {
  --bg: #0f141b;
  --panel: rgba(14, 22, 31, 0.9);
  --panel-strong: rgba(23, 33, 46, 0.95);
  --ink: #f4f6fb;
  --muted: #9aa4b6;
  --accent: #7bc7f5;
  --accent-soft: #1f2f40;
  --border: rgba(123, 199, 245, 0.3);
  --shadow: 0 20px 50px rgba(8, 12, 20, 0.8);
  --heading-font: "Marcellus", "Playfair Display", serif;
}

html.theme-midnight .pill {
  background: rgba(123, 199, 245, 0.2);
  color: #f4f6fb;
}

html.theme-midnight .pill-muted {
  background: rgba(123, 199, 245, 0.1);
}

html.theme-midnight .hero-copy h1,
html.theme-midnight .topbar h1 {
  color: #1c3d34;
}

html.theme-midnight select {
  color: #7bc7f5;
}

html.theme-forest,
.user-tile.theme-forest {
  --bg: #eef4ed;
  --panel: rgba(237, 245, 236, 0.95);
  --panel-strong: #f7faf7;
  --ink: #15291c;
  --muted: #4d6655;
  --accent: #1a5f53;
  --accent-soft: #cfe3db;
  --border: rgba(26, 95, 83, 0.3);
  --shadow: 0 20px 45px rgba(25, 57, 46, 0.15);
  --body-font: "Cormorant Garamond", "Marcellus", serif;
  --heading-font: "Cormorant Garamond", "Marcellus", serif;
  font-size: 1.06rem;
}

html.theme-mario,
.user-tile.theme-mario {
  --bg: #fbe8e4;
  --panel: rgba(251, 232, 228, 0.95);
  --panel-strong: #ffd5c8;
  --ink: #6b0400;
  --muted: #a8472f;
  --accent: #d92c1a;
  --accent-soft: #ffb4a3;
  --border: rgba(217, 44, 26, 0.35);
  --shadow: 0 20px 45px rgba(156, 34, 15, 0.25);
  --body-font: "Press Start 2P", "Space Grotesk", sans-serif;
  --heading-font: "Press Start 2P", "Space Grotesk", sans-serif;
  font-size: 0.85rem;
}

html.theme-luigi,
.user-tile.theme-luigi {
  --bg: #e8f9ec;
  --panel: rgba(232, 249, 236, 0.95);
  --panel-strong: #d5f1dc;
  --ink: #0d4015;
  --muted: #4a7d45;
  --accent: #1c6f2a;
  --accent-soft: #9cdf9c;
  --border: rgba(28, 111, 42, 0.4);
  --shadow: 0 20px 45px rgba(36, 107, 50, 0.2);
  --body-font: "Press Start 2P", "Space Grotesk", sans-serif;
  --heading-font: "Press Start 2P", "Space Grotesk", sans-serif;
  font-size: 0.85rem;
}

html.theme-pokemon,
.user-tile.theme-pokemon {
  --bg: #fdf2ff;
  --panel: rgba(255, 244, 255, 0.95);
  --panel-strong: #fffaf4;
  --ink: #1b1a1b;
  --muted: #7b5a7f;
  --accent: #f1c40f;
  --accent-soft: #ffeaa7;
  --border: rgba(241, 196, 15, 0.35);
  --shadow: 0 20px 45px rgba(212, 172, 232, 0.25);
  --body-font: "Asimovian", "Kosugi Maru", "Space Grotesk", sans-serif;
  --heading-font: "Asimovian", "Kosugi Maru", "Space Grotesk", sans-serif;
}

html.theme-freddie,
.user-tile.theme-freddie {
  --bg: #100c08;
  --panel: rgba(16, 16, 25, 0.95);
  --panel-strong: rgba(25, 17, 8, 0.95);
  --ink: #f6d9ff;
  --muted: #b69bb3;
  --accent: #ff8564;
  --accent-soft: #4d2212;
  --border: rgba(255, 133, 100, 0.4);
  --shadow: 0 25px 70px rgba(12, 6, 3, 0.8);
  --body-font: "Underdog", "Space Grotesk", sans-serif;
  --heading-font: "Nosifer", "Press Start 2P", "Space Grotesk", cursive;
}

html.theme-freddie .pill {
  background: rgba(255, 43, 109, 0.2);
  color: #ffe5ff;
}

html.theme-freddie .pill-muted {
  background: rgba(255, 43, 109, 0.1);
  color: #ffc1e6;
}

html.theme-freddie .hero-copy h1,
html.theme-freddie .topbar h1 {
  color: #000;
}

html.theme-freddie select {
  color: #ffc1e6;
}

html.theme-dragon,
.user-tile.theme-dragon {
  --bg: #fff0ff;
  --panel: rgba(255, 240, 255, 0.95);
  --panel-strong: #ffe7ff;
  --ink: #2b0f1a;
  --muted: #9c6088;
  --accent: #c657ff;
  --accent-soft: #f9d4ff;
  --border: rgba(198, 87, 255, 0.35);
  --shadow: 0 20px 45px rgba(173, 63, 209, 0.25);
  --body-font: "Cormorant Garamond", "Marcellus", serif;
  --heading-font: "Cormorant Garamond", "Marcellus", serif;
  font-size: 1.06rem;
}

html.theme-forest .hero-copy h1,
html.theme-forest .topbar h1,
html.theme-dragon .hero-copy h1,
html.theme-dragon .topbar h1 {
  font-family: "Cormorant Garamond", "Marcellus", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(28, 61, 52, 0.14), transparent 30%),
    linear-gradient(180deg, #f7f3eb 0%, var(--bg) 100%);
}

a {
  color: var(--accent);
}

form,
section,
article,
div,
main,
header {
  min-width: 0;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.hero-card,
.dashboard,
.form-page {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.hero-card {
  min-height: calc(100vh - 3rem);
  align-items: center;
  grid-template-columns: 1.2fr 1fr;
}

.login-panel h2 {
  margin-top: 0;
}

.hero-copy h1,
.topbar h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 0.95;
}

.lede,
.section-heading p,
.date-line,
.empty-state,
.assignment-body p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel,
.stat-card,
.hero-copy {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy,
.panel,
.stat-card {
  padding: 1.5rem;
}

.tile-grid,
.summary-grid,
.assignment-layout {
  display: grid;
  gap: 1rem;
}

.tile-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.login-grid {
  gap: 0.75rem;
}

.user-tile,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: var(--accent);
  color: white;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.user-tile {
  background: var(--accent);
  color: white;
  border: 1px solid var(--border);
  font-family: var(--body-font);
}

.user-tile small {
  display: block;
  opacity: 0.8;
  margin-top: 0.35rem;
}

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
}

.topbar-actions .button-secondary {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.button-danger {
  background: #a34b2e;
  color: white;
}

.button-compact {
  padding-inline: 2.0rem;
  min-width: 0;
}

.topbar,
.topbar-actions,
.filter-form,
.assignment-meta,
.section-heading {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.topbar,
.section-heading {
  justify-content: space-between;
  align-items: end;
}

.topbar-actions {
  align-items: center;
  flex-wrap: wrap;
}

.filters label,
.stack-form label {
  display: grid;
  gap: 0.4rem;
}

.form-actions-top,
.form-actions-bottom {
  display: grid;
  gap: 0.75rem;
}

.form-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-actions-top {
  grid-template-columns: max-content max-content;
  justify-content: start;
}

.form-actions-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.form-actions-top .button,
.form-actions-bottom .button,
.form-actions-bottom form {
  width: 100%;
}

.form-actions-top > .button,
.form-actions-top > a.button {
  width: auto;
}

.danger-zone-panel {
  border-color: rgba(163, 75, 46, 0.22);
}

.danger-zone {
  display: grid;
  gap: 0.85rem;
}

.danger-zone-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--warning);
  font-weight: 700;
  list-style: none;
}

.danger-zone-summary::-webkit-details-marker {
  display: none;
}

.danger-zone-caret {
  transition: transform 160ms ease;
}

.danger-zone[open] .danger-zone-caret {
  transform: rotate(180deg);
}

.danger-zone-content {
  display: grid;
  gap: 0.85rem;
}

.checkbox-label {
  display: inline-flex !important;
  align-items: center;
  flex-direction: row;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.checkbox-label input {
  width: auto;
  margin: 0;
  transform: scale(1.0);
  margin-top: 0;
}

.form-error {
  margin: 0;
  color: var(--warning);
  font-weight: 600;
}

.filter-form {
  flex-wrap: wrap;
  align-items: end;
}

.filter-form label {
  min-width: 180px;
  flex: 1;
}

.filters span,
.stack-form span {
  font-size: 0.9rem;
}

.history-filters-panel {
  display: grid;
  gap: 0.9rem;
}

.history-filter-block {
  display: grid;
  gap: 0.45rem;
}

.history-filter-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.history-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.history-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.history-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.history-list {
  display: grid;
  gap: 0.8rem;
}

.history-entry {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel-strong);
}

.history-entry__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.history-entry__meta-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.6rem;
  min-width: 0;
}

.history-entry__headline {
  min-width: 0;
}

.history-entry__meta .eyebrow {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.history-entry__summary {
  color: var(--ink);
  font-weight: 400;
}

.history-pill-row {
  margin-top: 0;
  justify-content: flex-start;
}

.history-entry__filter-link {
  white-space: nowrap;
  margin-top: 0.15rem;
}

.history-entry__detail {
  margin: 0;
  color: var(--muted);
}

.history-entry__body .date-line {
  margin-bottom: 0;
}

.history-entry__body h3 {
  margin-top: 0;
  padding-top: 0.3rem;
  margin-bottom: 0.3rem;
  overflow-wrap: anywhere;
}

.history-entry__notes,
.history-entry__link,
.history-entry__meta-detail {
  margin: 0.35rem 0 0;
}

.history-entry__meta-detail {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: var(--panel-strong);
}

select {
  height: 2.5rem;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card strong {
  display: block;
  font-size: 2rem;
}

.assignment-layout {
  grid-template-columns: 1.35fr 1fr;
}

.assignment-list {
  display: grid;
  gap: 0.9rem;
}

.overdue-banner-wrap {
  display: flex;
  justify-content: center;
}

.overdue-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(163, 75, 46, 0.1);
  border: 1px solid rgba(163, 75, 46, 0.28);
  color: var(--warning);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.week-groups {
  display: grid;
  gap: 1rem;
}

.overdue-list {
  margin-bottom: 1rem;
}

.assignment-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.assignment-actions-upcoming {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.assignment-actions-upcoming form,
.assignment-actions-upcoming a {
  width: auto;
}

.assignment-pill-row {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.history-entry .assignment-pill-row {
  margin-top: 0;
}


.assignment-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem;
  background: var(--panel-strong);
  min-width: 0;
}

.assignment-card.overdue {
  border-color: rgba(163, 75, 46, 0.35);
}

.assignment-card.due-today {
  background: #eef5f0;
}

.assignment-card.complete {
  opacity: 0.88;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #edf2ee;
  font-size: 0.78rem;
}

.pill-muted {
  background: #efe7db;
  font-size: 0.75rem;
}

.pill-asap {
  background: #ffb4c1;
  color: #761526;
}

.pill-aband {
  background: #333;
  color: #f7f7f7;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.assignment-body h3 {
  margin-top: 0;
  padding-top: 0.3rem;
  margin-bottom: 0.3rem;
  overflow-wrap: anywhere;
}

.assignment-notes {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

.assignment-body {
  margin-bottom: 0.7rem;
}

.relative-date {
  margin-left: 0.35rem;
  font-size: 0.9em;
  color: var(--accent);
}

.theme-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem 1.25rem;
  background: var(--panel);
  border-radius: 22px;
}

.theme-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-start;
}

.theme-footer__choices button {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.theme-footer__choices button:hover {
  background: var(--accent-soft);
}

.theme-footer__choices button.active {
  background: var(--accent);
  color: white;
}

.date-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.abandon-form {
  margin-top: 0.6rem;
}

@media (max-width: 800px) {
  .hero-card,
  .assignment-layout,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-actions,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .page-shell {
    width: min(100% - 1rem, 1100px);
  }

  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    width: calc(100% - 0.6rem);
    padding: 0.3rem 0 0.8rem;
  }

  .dashboard,
  .form-page {
    gap: 0.55rem;
  }

  .login-card {
    gap: 0.6rem;
    align-items: start;
  }

  .hero-copy,
  .panel,
  .stat-card {
    padding: 0.8rem;
    border-radius: 18px;
  }

  .compact-panel {
    padding: 0.7rem;
  }

  .dashboard-topbar {
    gap: 0.45rem;
    align-items: stretch;
  }

  .login-copy {
    padding: 0.8rem 0.85rem;
  }

  .login-copy h1 {
    font-size: 1.7rem;
    line-height: 0.98;
  }

  .login-lede {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
  }

  .login-panel {
    padding: 0.75rem;
  }

  .login-heading {
    margin-bottom: 0.55rem;
    font-size: 1rem;
  }

  .login-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .login-grid .user-tile {
    justify-content: flex-start;
    min-height: 3rem;
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
  }

  .eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
  }

  .topbar h1 {
    font-size: 1.55rem;
    line-height: 1;
  }

  .topbar-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: 100%;
  }

  .topbar-actions form,
  .topbar-actions a {
    width: auto;
  }

  .topbar-actions > a {
    flex: 2 1 auto;
  }

  .topbar-actions > form {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
  }

  .dashboard-topbar .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto auto;
    align-items: center;
    justify-content: end;
  }

  .dashboard-topbar .topbar-actions > a,
  .dashboard-topbar .topbar-actions > button,
  .dashboard-topbar .topbar-actions > form {
    width: auto;
    flex: initial;
  }

  .dashboard-topbar .topbar-actions > a {
    width: 100%;
  }

  .form-actions-top,
  .form-actions-bottom {
    gap: 0.45rem;
  }

  .form-two-col {
    gap: 0.45rem;
  }

  .form-actions-top {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .form-actions-top .button,
  .form-actions-bottom .button,
  .form-actions-bottom form {
    width: 100%;
  }

  .form-actions-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-actions-bottom .inline-form {
    margin-left: 0;
  }

  .assignment-actions form,
  .assignment-actions a {
    width: 100%;
  }

  .button,
  .user-tile {
    min-height: 2.5rem;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  .filters {
    position: sticky;
    top: 0.35rem;
    z-index: 5;
    backdrop-filter: blur(10px);
  }

  .filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.45rem;
    align-items: end;
  }

  .filter-form label {
    min-width: 0;
  }

  .filters span,
  .stack-form span {
    font-size: 0.78rem;
  }

  select,
  input,
  textarea {
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
  }

  .section-heading {
    align-items: center;
    margin-bottom: 0.15rem;
  }

  .history-entry {
    padding: 0.75rem;
    border-radius: 16px;
  }

  .history-entry__meta {
    flex-direction: column;
    gap: 0.45rem;
  }

  .history-entry__headline {
    width: 100%;
  }

  .history-entry__meta-actions {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
  }

  .history-chip-row {
    gap: 0.4rem;
  }

  .history-chip {
    min-height: 2rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.85rem;
  }

  .section-heading h2 {
    margin: 0;
    font-size: 1.02rem;
  }

  .section-heading p {
    display: none;
  }

  .assignment-list {
    gap: 0.55rem;
  }

  .week-groups {
    gap: 0.7rem;
  }

  .assignment-card {
    padding: 0.75rem;
    border-radius: 16px;
  }

  .assignment-meta {
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
  }

  .pill {
    padding: 0.22rem 0.5rem;
    font-size: 0.72rem;
  }

  .assignment-body h3 {
    margin-bottom: 0.15rem;
    font-size: 1rem;
    line-height: 1.1;
  }

  .assignment-body p,
  .date-line,
  .empty-state {
    font-size: 0.86rem;
  }

  .assignment-notes {
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .assignment-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    margin-top: 0.55rem;
  }

  .assignment-actions-upcoming {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .assignment-actions-upcoming > form,
  .assignment-actions-upcoming > a {
    width: auto;
    min-width: 0;
  }

  .assignment-actions-upcoming > form > .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .assignment-actions-upcoming > a.button-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    padding-inline: 1.0rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .assignment-actions-overdue {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    align-items: stretch;
  }

  .assignment-actions-overdue > form,
  .assignment-actions-overdue > a {
    width: auto;
    min-width: 0;
  }

  .assignment-actions-overdue > form:first-child > .button {
    width: 100%;
    height: 100%;
    min-width: 0;
    white-space: nowrap;
  }

  .assignment-actions-overdue > form:nth-child(2) > .button {
    width: auto;
    height: 100%;
    white-space: nowrap;
  }

  .assignment-actions-overdue > a.button-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    padding-inline: 1.0rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .stack-form {
    gap: 0.7rem;
  }
}
.inline-form {
  margin-left: 0.35rem;
}

.button-link {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.abandon-note {
  font-size: 0.85rem;
  color: var(--muted);
}
