#page-ghost:not(.hidden) {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#ghost-page-root {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.ghost-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}

.ghost-header,
.ghost-workspace {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.ghost-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
}

.ghost-header .arrow-back-button {
  width: 2.5rem;
  height: 2.5rem;
}

.ghost-header-copy {
  min-width: 0;
}

.ghost-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 800;
}

.ghost-intro {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.ghost-workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ghost-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.65rem 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.ghost-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0.7rem 0.7rem 0 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ghost-tab:hover {
  background: #f1f5f9;
  color: #002147;
}

.ghost-tab.is-active {
  border-bottom-color: #002147;
  background: #f1f5f9;
  color: #002147;
}

.ghost-tab-count {
  display: grid;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  place-items: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.7rem;
  line-height: 1;
}

.ghost-content-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 1.1rem 1.25rem;
}

.ghost-content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e2e8f0;
}

.ghost-content-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.ghost-content-heading p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.ghost-content-count {
  display: grid;
  flex: 0 0 auto;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  place-items: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
}

.ghost-total-missed-value {
  flex: 0 0 auto;
  color: #b42318;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.ghost-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(9rem, 13rem) minmax(9rem, 13rem);
  align-items: end;
  gap: 0.7rem;
  padding: 0.9rem 0 0.25rem;
}

.ghost-search,
.ghost-dropdown {
  display: flex;
  min-width: 0;
  min-height: 2.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
  color: #64748b;
}

.ghost-search {
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.75rem;
}

.ghost-dropdown {
  position: relative;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.65rem 0 0.75rem;
}

.ghost-dropdown-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
}

.ghost-dropdown-trigger {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.ghost-dropdown-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-dropdown-trigger i {
  flex: 0 0 auto;
  font-size: 0.7rem;
}

.ghost-dropdown-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  display: grid;
  gap: 0.15rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #dbe4ee;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.ghost-dropdown-menu[hidden] { display: none; }

.ghost-dropdown-option {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
}

.ghost-dropdown-option:hover,
.ghost-dropdown-option.is-selected {
  background: #e2e8f0;
  color: #002147;
}

.ghost-search i {
  flex: 0 0 auto;
  font-size: 0.85rem;
}

.ghost-search input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.82rem;
}

.ghost-search input::placeholder { color: #94a3b8; }

#ghost-tab-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.ghost-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0.9rem 0 0;
  list-style: none;
}

.ghost-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #f8fafc;
}

.ghost-subject-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid color-mix(in srgb, var(--ghost-subject-color) 24%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ghost-subject-color) 12%, white);
  color: var(--ghost-subject-color);
}

.ghost-subject-icon i { font-size: 1rem; }

.ghost-mark-identity,
.ghost-item-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.ghost-item-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.ghost-item-copy strong {
  overflow: hidden;
  color: #1e293b;
  font-size: 0.84rem;
  text-overflow: ellipsis;
}

.ghost-item-copy small {
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-item-score,
.ghost-item-missed,
.ghost-item-category,
.ghost-item-due {
  font-size: 0.76rem;
  font-weight: 800;
}

.ghost-item-score {
  color: #475569;
  text-align: right;
  white-space: nowrap;
}

.ghost-item-missed {
  min-width: 7.5rem;
  color: #b42318;
  text-align: right;
  white-space: nowrap;
}

.ghost-assignment-button {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ghost-assignment-button:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  transform: translateY(-1px);
}

.ghost-assignment-button.is-due-soon {
  overflow: hidden;
  border-color: #fda4af;
  background: #fff1f2;
}

.ghost-assignment-button.is-due-soon::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3rem;
  background: #e11d48;
  content: '';
}

.ghost-assignment-button.is-due-soon .ghost-item-copy strong { color: #be123c; }

.ghost-assignment-button.is-due-soon:hover {
  border-color: #e11d48;
  background: #ffe4e6;
}

.ghost-item-category {
  min-width: 8rem;
  color: #475569;
  text-align: center;
}

.ghost-item-due {
  width: 9rem;
  color: #b42318;
  text-align: center;
  white-space: nowrap;
}

.ghost-mark-row .ghost-item-missed {
  grid-column: auto;
}

.ghost-mark-row {
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.6fr) 5rem 8rem;
  border-color: color-mix(in srgb, var(--ghost-subject-color) 30%, white);
  background: color-mix(in srgb, var(--ghost-subject-color) 10%, white);
}

.ghost-mark-identity { grid-column: 1; }

.ghost-mark-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.ghost-mark-title,
.ghost-mark-subject,
.ghost-mark-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-mark-title { color: #1e293b; font-size: 0.84rem; }
.ghost-mark-subject,
.ghost-mark-type { color: #64748b; font-size: 0.76rem; }

.ghost-assignment-card.is-overdue {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  border-color: #fda4af;
  background: #fff1f2;
}

.ghost-assignment-card.is-overdue::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3rem;
  background: #e11d48;
  content: '';
}

.ghost-assignment-open {
  display: grid;
  grid-column: 1 / 4;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, auto) 9rem;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ghost-assignment-card.is-overdue .ghost-item-copy strong { color: #be123c; }

.ghost-overdue-appeal {
  min-height: 2.15rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e11d48;
  border-radius: 0.65rem;
  background: #e11d48;
  color: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.ghost-overdue-appeal:hover { border-color: #be123c; background: #be123c; }

.ghost-request-actions,
.ghost-appeal-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.ghost-request-cancel,
.ghost-request-submit {
  min-height: 2.15rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.ghost-request-cancel:hover { background: #f1f5f9; }

.ghost-request-submit {
  border-color: #002147;
  background: #002147;
  color: #fff;
}

.ghost-request-submit:hover { background: #123b65; }

.ghost-appeals-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0 0.5rem;
}

.ghost-appeals-toolbar p {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.ghost-appeal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.25rem 0 0.75rem;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  background: #fff;
}

.ghost-appeal-form h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 800;
}

.ghost-appeal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ghost-appeal-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}

.ghost-appeal-field > span { color: #64748b; }
.ghost-appeal-title,
.ghost-appeal-body { grid-column: 1 / -1; }

.ghost-appeal-field input,
.ghost-appeal-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.8rem;
}

.ghost-appeal-field textarea { resize: vertical; }

.ghost-appeal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.ghost-appeal-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  overflow-y: auto;
  padding-top: 0.5rem;
}

.ghost-appeal-card {
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 0.85rem;
  background: #eff6ff;
}

.ghost-appeal-card.is-pending { border-color: #bfdbfe; border-left-color: #2563eb; background: #eff6ff; }
.ghost-appeal-card.is-declined { border-color: #fecaca; border-left-color: #dc2626; background: #fef2f2; }
.ghost-appeal-card.is-accepted { border-color: #bbf7d0; border-left-color: #16a34a; background: #f0fdf4; }

.ghost-appeal-card-main {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) 7rem auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
}

.ghost-appeal-card-copy {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(6rem, 0.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ghost-appeal-card-copy strong,
.ghost-appeal-card-copy span {
  overflow: hidden;
  color: #1e293b;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-appeal-card-copy span { color: #64748b; }

.ghost-appeal-status {
  justify-self: center;
  min-width: 5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: capitalize;
}

.is-pending .ghost-appeal-status { background: #dbeafe; color: #1d4ed8; }
.is-declined .ghost-appeal-status { background: #fee2e2; color: #b91c1c; }
.is-accepted .ghost-appeal-status { background: #dcfce7; color: #15803d; }

.ghost-appeal-view,
.ghost-appeal-delete {
  min-height: 2rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
}

.ghost-appeal-delete { color: #b42318; }
.ghost-appeal-detail { padding: 0 0.9rem 0.8rem; }
.ghost-appeal-detail p { margin: 0; color: #334155; font-size: 0.82rem; white-space: pre-wrap; }
.ghost-appeal-detail small { display: block; margin-top: 0.5rem; color: #64748b; font-size: 0.7rem; }

.ghost-storage-note,
.ghost-empty {
  margin: 0;
  padding: 1rem 0.2rem 0.4rem;
  color: #64748b;
  font-size: 0.8rem;
}

#ghost-tab-content > .ghost-empty {
  flex: 1 1 auto;
}

.ghost-storage-note { font-size: 0.72rem; }

body[data-color-theme]:not([data-color-theme="default"]) .ghost-header,
body[data-color-theme]:not([data-color-theme="default"]) .ghost-workspace {
  border-color: var(--portal-accent-border);
  background: var(--portal-light-surface);
}

body[data-color-theme]:not([data-color-theme="default"]) .ghost-tab-count,
body[data-color-theme]:not([data-color-theme="default"]) .ghost-content-count {
  background: var(--portal-accent-soft);
  color: var(--portal-accent-ink);
}

body[data-color-theme]:not([data-color-theme="default"]) .ghost-tab.is-active {
  border-bottom-color: var(--portal-accent);
  color: var(--portal-accent-ink);
}

body[data-color-theme]:not([data-color-theme="default"]) .ghost-request-submit {
  border-color: var(--portal-accent);
  background: var(--portal-accent);
}

body[data-color-theme]:not([data-color-theme="default"]) .ghost-dropdown-option:hover,
body[data-color-theme]:not([data-color-theme="default"]) .ghost-dropdown-option.is-selected {
  background: var(--portal-accent-soft);
  color: var(--portal-accent-ink);
}

body.app-dark .ghost-header,
body.app-dark .ghost-workspace {
  border-color: #123b65;
  background: #001a38;
}

body.app-dark .ghost-header h1,
body.app-dark .ghost-content-heading h2,
body.app-dark .ghost-mark-title,
body.app-dark .ghost-appeal-form h3,
body.app-dark .ghost-appeal-card-copy strong {
  color: #f1f5f9;
}

body.app-dark .ghost-intro,
body.app-dark .ghost-content-heading p,
body.app-dark .ghost-item-score,
body.app-dark .ghost-mark-subject,
body.app-dark .ghost-mark-type,
body.app-dark .ghost-appeal-card-copy span,
body.app-dark .ghost-empty,
body.app-dark .ghost-storage-note {
  color: #a8b6c8;
}

body.app-dark .ghost-tabs,
body.app-dark .ghost-content-heading { border-color: #123b65; }
body.app-dark .ghost-search,
body.app-dark .ghost-dropdown { border-color: #31516f; background: #001a38; color: #a8b6c8; }
body.app-dark .ghost-search input,
body.app-dark .ghost-dropdown-trigger { color: #f1f5f9; }
body.app-dark .ghost-search input::placeholder { color: #8295aa; }
body.app-dark .ghost-dropdown-menu { border-color: #31516f; background: #001a38; }
body.app-dark .ghost-dropdown-option { color: #e2e8f0; }
body.app-dark .ghost-dropdown-option:hover,
body.app-dark .ghost-dropdown-option.is-selected { background: #123b65; color: #fff; }
body.app-dark .ghost-tab { color: #cbd5e1; }
body.app-dark .ghost-tab:hover,
body.app-dark .ghost-tab.is-active { background: #002147; color: #fff; }
body.app-dark .ghost-tab.is-active { border-bottom-color: #93c5fd; }
body.app-dark .ghost-tab-count,
body.app-dark .ghost-content-count { background: #123b65; color: #e2e8f0; }
body.app-dark .ghost-total-missed-value { color: #fda4af; }
body.app-dark .ghost-list-item { border-color: #123b65; background: #002147; }
body.app-dark .ghost-mark-row {
  border-color: color-mix(in srgb, var(--ghost-subject-color) 36%, #123b65);
  background: color-mix(in srgb, var(--ghost-subject-color) 20%, #002147);
}
body.app-dark .ghost-assignment-button:hover { border-color: #4777a8; background: #0b3158; }
body.app-dark .ghost-item-category { color: #cbd5e1; }
body.app-dark .ghost-item-due,
body.app-dark .ghost-item-missed { color: #fda4af; }
body.app-dark .ghost-subject-icon {
  border-color: color-mix(in srgb, var(--ghost-subject-color) 40%, #123b65);
  background: color-mix(in srgb, var(--ghost-subject-color) 20%, #001a38);
}
body.app-dark .ghost-assignment-button.is-due-soon {
  border-color: #8f3b54;
  background: #3b222e;
}
body.app-dark .ghost-assignment-button.is-due-soon .ghost-item-copy strong { color: #fecdd3; }
body.app-dark .ghost-assignment-button.is-due-soon:hover {
  border-color: #fb7185;
  background: #4a2938;
}
body.app-dark .ghost-assignment-card.is-overdue {
  border-color: #8f3b54;
  background: #3b222e;
}
body.app-dark .ghost-assignment-card.is-overdue .ghost-item-copy strong { color: #fecdd3; }
body.app-dark .ghost-overdue-appeal {
  border-color: #fb7185;
  background: #e11d48;
}
body.app-dark .ghost-overdue-appeal:hover { border-color: #fda4af; background: #be123c; }
body.app-dark .ghost-request-cancel,
body.app-dark .ghost-appeal-view,
body.app-dark .ghost-appeal-delete { border-color: #31516f; background: #001a38; color: #e2e8f0; }
body.app-dark .ghost-appeal-delete { color: #fda4af; }
body.app-dark .ghost-appeal-view:hover,
body.app-dark .ghost-appeal-delete:hover,
body.app-dark .ghost-request-cancel:hover { background: #123b65; }
body.app-dark .ghost-request-submit { border-color: #2563eb; background: #2563eb; color: #fff; }
body.app-dark .ghost-appeal-form { border-color: #123b65; background: #001a38; }
body.app-dark .ghost-appeal-field,
body.app-dark .ghost-appeal-field > span { color: #cbd5e1; }
body.app-dark .ghost-appeal-field input,
body.app-dark .ghost-appeal-field textarea { border-color: #31516f; background: #0b0f14; color: #f1f5f9; }
body.app-dark .ghost-appeal-card.is-pending { border-color: #315a89; border-left-color: #60a5fa; background: #102946; }
body.app-dark .ghost-appeal-card.is-declined { border-color: #753943; border-left-color: #f87171; background: #281720; }
body.app-dark .ghost-appeal-card.is-accepted { border-color: #276749; border-left-color: #4ade80; background: #102b21; }
body.app-dark .is-pending .ghost-appeal-status { background: #1e3a5f; color: #93c5fd; }
body.app-dark .is-declined .ghost-appeal-status { background: #4c1d24; color: #fda4af; }
body.app-dark .is-accepted .ghost-appeal-status { background: #14532d; color: #86efac; }
body.app-dark .ghost-appeal-detail p { color: #e2e8f0; }
body.app-dark .ghost-appeal-detail small { color: #a8b6c8; }
body.app-dark .ghost-appeal-card.is-pending .ghost-appeal-card-copy strong,
body.app-dark .ghost-appeal-card.is-declined .ghost-appeal-card-copy strong,
body.app-dark .ghost-appeal-card.is-accepted .ghost-appeal-card-copy strong { color: #f1f5f9; }

body.app-dark[data-color-theme]:not([data-color-theme="default"]) .ghost-header,
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .ghost-workspace {
  border-color: var(--portal-accent-border);
  background: var(--portal-dark-surface);
}

body.app-dark[data-color-theme]:not([data-color-theme="default"]) .ghost-tab-count,
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .ghost-content-count {
  background: var(--portal-accent-soft);
  color: var(--portal-accent-ink);
}

body.app-dark[data-color-theme]:not([data-color-theme="default"]) .ghost-tab.is-active {
  border-bottom-color: var(--portal-accent);
  color: var(--portal-accent-ink);
}

body.app-dark[data-color-theme]:not([data-color-theme="default"]) .ghost-request-submit {
  border-color: var(--portal-accent);
  background: var(--portal-accent);
  color: #fff;
}

body.app-dark[data-color-theme]:not([data-color-theme="default"]) .ghost-dropdown-option:hover,
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .ghost-dropdown-option.is-selected {
  background: var(--portal-accent-soft);
  color: var(--portal-accent-ink);
}

.sidebar-btn#nav-ghost { color: #002147; }
.sidebar-btn#nav-ghost.active { color: #fff; }
body.app-dark .sidebar-btn#nav-ghost:not(.active) { color: #cbd5e1; }
.sidebar-btn#nav-ghost .fa-ghost { font-size: 1.5rem; }

@media (max-width: 720px) {
  #page-ghost { padding: 1rem; }
  .ghost-header { padding: 0.75rem; }
  .ghost-tabs { padding-right: 0.35rem; padding-left: 0.35rem; }
  .ghost-tab { gap: 0.35rem; padding-right: 0.6rem; padding-left: 0.6rem; font-size: 0.74rem; }
  .ghost-content-panel { padding: 0.9rem 0.75rem; }
  .ghost-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ghost-search { grid-column: 1 / -1; }
  .ghost-list-item { gap: 0.4rem; padding: 0.65rem 0.55rem; }
  .ghost-assignment-button { grid-template-columns: minmax(0, 1fr) 6.5rem 7rem; }
  .ghost-item-category { min-width: 0; font-size: 0.7rem; }
  .ghost-item-due { width: auto; font-size: 0.7rem; }
  .ghost-item-missed { min-width: 5.8rem; font-size: 0.68rem; }
  .ghost-mark-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ghost-mark-identity { grid-column: 1 / -1; }
  .ghost-mark-type { grid-column: auto; }
  .ghost-mark-row .ghost-item-missed { grid-column: 1 / -1; text-align: left; }
  .ghost-assignment-card.is-overdue { grid-template-columns: minmax(0, 1fr) auto; }
  .ghost-assignment-open {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
  }
  .ghost-assignment-open .ghost-item-identity { grid-column: 1 / -1; }
  .ghost-assignment-open .ghost-item-category { grid-column: 1; }
  .ghost-assignment-open .ghost-item-due { grid-column: 2; width: auto; }
  .ghost-overdue-appeal { grid-column: 2; grid-row: 2; }
  .ghost-appeal-fields { grid-template-columns: minmax(0, 1fr); }
  .ghost-appeal-title,
  .ghost-appeal-body { grid-column: auto; }
  .ghost-appeal-card-main { grid-template-columns: 2.35rem minmax(0, 1fr) auto; gap: 0.55rem; }
  .ghost-appeal-card-copy { grid-column: 2 / -1; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .ghost-appeal-status { grid-column: 2; justify-self: start; }
  .ghost-appeal-card-actions { grid-column: 3; justify-content: flex-end; }
}
