:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --paper-soft: #f8f4ec;
  --ink: #23332f;
  --muted: #78827c;
  --line: rgba(35, 51, 47, 0.12);
  --green: #294c43;
  --green-deep: #1f4038;
  --sage: #9eb9aa;
  --sage-light: #dfeae2;
  --orange: #d6764b;
  --yellow: #e8b856;
  --lavender: #9a93ba;
  --shadow: 0 18px 45px rgba(49, 71, 65, 0.12);
  --shadow-soft: 0 8px 25px rgba(49, 71, 65, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
}

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

button {
  cursor: pointer;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  background: var(--green);
  color: #eef3ee;
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  padding: 26px 18px 18px;
  position: fixed;
  top: 0;
  width: 238px;
  z-index: 10;
}

.brand,
.mobile-brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--yellow);
  border-radius: 50%;
  color: var(--green-deep);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand small {
  color: rgba(238, 243, 238, 0.62);
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-top: 4px;
  text-transform: uppercase;
}

.main-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin: 35px 0 23px;
  padding-bottom: 21px;
}

.nav-item,
.list-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: rgba(238, 243, 238, 0.74);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 11px;
  padding: 10px 11px;
  text-align: left;
  transition: 180ms ease;
  width: 100%;
}

.nav-item:hover,
.list-link:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.nav-icon {
  font-size: 17px;
  opacity: 0.9;
  width: 17px;
}

.sidebar-label {
  color: rgba(238, 243, 238, 0.46);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 10px 9px;
  text-transform: uppercase;
}

.list-link {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 10px;
}

.list-link.is-active {
  color: #fff;
}

.list-link b {
  color: rgba(238, 243, 238, 0.5);
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
}

.status-dot {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.dot-all {
  background: #e6eadf;
}

.dot-watching {
  background: #a8d8bc;
}

.dot-watched {
  background: #e8b856;
}

.dot-planned {
  background: #d99475;
}

.dot-hold {
  background: #aaa5c8;
}

.sidebar-footer {
  margin-top: auto;
}

.storage-note {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  padding: 11px;
}

.storage-note span {
  color: var(--yellow);
}

.storage-note strong,
.storage-note small {
  display: block;
}

.storage-note strong {
  font-size: 11px;
}

.storage-note small {
  color: rgba(238, 243, 238, 0.56);
  font-size: 10px;
  line-height: 1.45;
  margin-top: 4px;
}

.data-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.data-actions button,
.data-actions label {
  background: transparent;
  border: 0;
  color: rgba(238, 243, 238, 0.58);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0;
  text-transform: uppercase;
}

.data-actions button:hover,
.data-actions label:hover {
  color: #fff;
}

.data-actions input {
  display: none;
}

.main-content {
  margin-left: 238px;
  min-height: 100vh;
}

.mobile-bottom-nav,
.mobile-status-scroll {
  display: none;
}

.topbar {
  align-items: center;
  background: rgba(244, 241, 234, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 11px;
  height: 74px;
  padding: 13px 46px;
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.search-box {
  align-items: center;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  flex: 1;
  gap: 9px;
  max-width: 560px;
  padding: 0 13px;
}

.search-box input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  font-size: 13px;
  height: 42px;
  outline: 0;
}

.search-box kbd {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #a0aaa4;
  font-size: 10px;
  padding: 1px 5px;
}

.outline-button,
.backup-button,
.primary-button,
.light-button,
.text-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  letter-spacing: 0.015em;
  padding: 12px 15px;
  transition: 180ms ease;
}

.outline-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--green);
}

.outline-button:hover {
  background: var(--paper);
}

.backup-button {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
}

.backup-button:hover {
  background: var(--sage-light);
}

.primary-button {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
}

.primary-button:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.light-button {
  background: #fff;
  border: 0;
  color: var(--green);
  margin-top: 19px;
  padding: 12px 16px;
}

.light-button:hover {
  transform: translateX(3px);
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
}

.text-button:hover {
  color: var(--green);
}

.text-button.danger {
  color: #b45a4b;
}

.content-wrap {
  margin: auto;
  max-width: 1470px;
  padding: 32px 46px 60px;
}

.hero-card {
  background: var(--green);
  border-radius: 25px;
  color: #f8fbf5;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.72fr;
  min-height: 260px;
  overflow: hidden;
  padding: 31px 34px;
  position: relative;
}

.eyebrow {
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.hero-card .eyebrow {
  color: #e9ba61;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  font-size: clamp(37px, 4vw, 54px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 16px;
}

h1 em,
h2 em {
  color: var(--yellow);
  font-weight: inherit;
}

.hero-text {
  color: rgba(246, 251, 247, 0.7);
  font-size: 13px;
  line-height: 1.7;
  max-width: 390px;
}

.hero-orb {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
}

.orb-ring {
  border: 1px solid rgba(248, 251, 245, 0.12);
  border-radius: 50%;
  position: absolute;
}

.ring-one {
  height: 260px;
  width: 260px;
}

.ring-two {
  height: 175px;
  width: 175px;
}

.orb-core {
  align-items: center;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 17px rgba(232, 184, 86, 0.08);
  color: var(--green);
  display: flex;
  font-family: Georgia, serif;
  font-size: 22px;
  height: 94px;
  justify-content: center;
  letter-spacing: 0.12em;
  width: 94px;
}

.hero-stats {
  align-self: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 18px;
  padding-left: 28px;
}

.hero-stats strong,
.insight-card > strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.hero-stats span,
.insight-card > span {
  color: rgba(246, 251, 247, 0.57);
  display: block;
  font-size: 10px;
  letter-spacing: 0.11em;
  margin-top: 5px;
  text-transform: uppercase;
}

.section-heading,
.directory-toolbar {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 36px 0 18px;
}

.section-heading h2,
.directory-toolbar h2,
.insight-card h2 {
  font-size: 27px;
  line-height: 1;
  margin: 0;
}

.select-wrap select,
.form-grid select,
.form-grid input,
.full-field input,
.full-field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 12px;
  outline: none;
  padding: 10px 11px;
}

.select-wrap select:focus,
.form-grid select:focus,
.form-grid input:focus,
.full-field input:focus,
.full-field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(158, 185, 170, 0.2);
}

.anime-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
}

.anime-card {
  animation: card-enter 380ms ease both;
  background: var(--paper);
  border: 1px solid rgba(35, 51, 47, 0.08);
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(49, 71, 65, 0.04);
  min-width: 0;
  overflow: hidden;
  transition: 200ms ease;
}

.anime-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-poster {
  aspect-ratio: 0.7;
  background: #e1e7df;
  overflow: hidden;
  position: relative;
}

.card-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
  width: 100%;
}

.anime-card:hover .card-poster img {
  transform: scale(1.045);
}

.poster-fallback {
  align-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 184, 86, 0.55), transparent 34%),
    linear-gradient(145deg, #426a5f, #24433b);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  font-family: "Fraunces", Georgia, serif;
  font-size: 42px;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.status-pill {
  backdrop-filter: blur(9px);
  background: rgba(31, 64, 56, 0.9);
  border-radius: 999px;
  bottom: 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  left: 8px;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  position: absolute;
  text-transform: uppercase;
}

.status-pill.watched {
  background: rgba(177, 123, 30, 0.92);
}

.status-pill.planned {
  background: rgba(190, 93, 63, 0.92);
}

.status-pill.hold {
  background: rgba(99, 92, 143, 0.92);
}

.edit-chip {
  align-items: center;
  background: rgba(255, 253, 248, 0.92);
  border: 0;
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 16px;
  height: 29px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 8px;
  transition: 160ms ease;
  width: 29px;
}

.edit-chip:hover {
  background: #fff;
  transform: scale(1.08);
}

.card-content {
  padding: 11px 11px 12px;
}

.card-title {
  display: -webkit-box;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  min-height: 33px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.card-genres,
.progress-meta {
  color: var(--muted);
  font-size: 10px;
}

.card-meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 8px;
}

.card-score {
  color: #b67b27;
  font-weight: 700;
}

.card-genres {
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer {
  border-top: 1px solid var(--line);
  margin-top: 9px;
  padding-top: 9px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.progress-track {
  background: #ebeee9;
  border-radius: 99px;
  height: 4px;
  overflow: hidden;
}

.progress-track span {
  background: var(--sage);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.add-button {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
  padding: 8px;
  transition: 160ms ease;
  width: 100%;
}

.add-button:hover {
  background: var(--green);
  color: #fff;
}

.in-library-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  margin-top: 10px;
}

.empty-state,
.loading-state {
  align-items: center;
  background: rgba(255, 253, 248, 0.64);
  border: 1px dashed rgba(35, 51, 47, 0.18);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 34px;
  text-align: center;
}

.empty-state.compact {
  min-height: 200px;
}

.empty-symbol {
  align-items: center;
  background: var(--sage-light);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  height: 54px;
  justify-content: center;
  margin-bottom: 15px;
  width: 54px;
}

.empty-state h3 {
  font-size: 24px;
  margin: 0 0 6px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 15px;
  max-width: 420px;
}

.loading-state {
  flex-direction: row;
  gap: 7px;
}

.loading-state span {
  animation: loading-pulse 1.1s infinite alternate;
  background: var(--sage);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.loading-state span:nth-child(2) {
  animation-delay: 180ms;
}

.loading-state span:nth-child(3) {
  animation-delay: 360ms;
}

.loading-state p {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 0 4px;
}

@keyframes loading-pulse {
  to {
    opacity: 0.35;
    transform: translateY(-5px);
  }
}

.directory-intro,
.insights-header {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 31px 34px;
}

.directory-intro h1,
.insights-header h1 {
  color: var(--green);
  font-size: 48px;
}

.directory-intro h1 em,
.insights-header h1 em {
  color: var(--orange);
}

.directory-intro p:not(.eyebrow),
.insights-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 560px;
}

.directory-stamp {
  align-items: center;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 150px;
  justify-content: center;
  min-width: 150px;
}

.directory-stamp span {
  color: var(--green);
  font-family: "Fraunces", Georgia, serif;
  font-size: 45px;
  line-height: 0.7;
}

.directory-stamp strong {
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-top: 10px;
  text-transform: uppercase;
}

.directory-stamp small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.pagination {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 30px;
}

.pagination button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 13px;
}

.pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

.pagination span {
  color: var(--muted);
  font-size: 12px;
}

.insights-header {
  display: block;
}

.insight-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.3fr 0.7fr;
  margin-top: 18px;
}

.insight-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 180px;
  padding: 24px;
}

.insight-card.accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.insight-card > strong {
  color: var(--green);
  font-size: 56px;
  margin-top: 35px;
}

.insight-card.accent > strong {
  color: #fff;
}

.insight-card > span {
  color: var(--muted);
}

.insight-card.accent > span {
  color: rgba(255, 255, 255, 0.68);
}

.status-bars {
  display: grid;
  gap: 14px;
  margin-top: 27px;
}

.bar-header {
  color: var(--muted);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bar-track {
  background: #edf0eb;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.bar-track span {
  background: var(--sage);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.genre-cloud span {
  background: var(--sage-light);
  border-radius: 99px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
}

.modal {
  background: var(--paper);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-height: calc(100vh - 32px);
  max-width: 820px;
  overflow: auto;
  padding: 0;
  width: calc(100% - 32px);
}

.modal::backdrop {
  background: rgba(23, 39, 35, 0.54);
  backdrop-filter: blur(4px);
}

.editor-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
}

.editor-poster-wrap {
  background: var(--green);
  min-height: 490px;
  padding: 19px;
}

.editor-poster {
  aspect-ratio: 0.7;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
}

.poster-upload {
  border: 1px dashed rgba(255, 255, 255, 0.27);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 14px;
  padding: 10px;
  text-align: center;
}

.poster-upload input {
  display: none;
}

.editor-content {
  padding: 31px 30px 22px;
}

.editor-content h2,
.small-modal h2 {
  font-size: 32px;
  line-height: 1.02;
  margin: 0 30px 6px 0;
}

.editor-meta,
.modal-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  padding: 5px;
  position: absolute;
  right: 13px;
  top: 10px;
}

.form-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, 1fr);
}

.form-grid label,
.full-field {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
}

.full-field {
  margin-top: 13px;
}

.full-field small {
  color: #a5aca7;
  font-weight: 500;
}

.full-field textarea {
  min-height: 94px;
  resize: vertical;
}

.modal-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.modal-actions > div,
.align-right {
  display: flex;
  gap: 7px;
}

.align-right {
  justify-content: flex-end;
}

.small-modal {
  max-width: 510px;
  padding: 30px;
}

.backup-options {
  display: grid;
  gap: 11px;
}

.backup-option {
  align-items: flex-start;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  padding: 15px;
}

.backup-symbol {
  align-items: center;
  background: var(--sage-light);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  height: 37px;
  justify-content: center;
  width: 37px;
}

.backup-option h3 {
  font-size: 18px;
  margin: 1px 0 3px;
}

.backup-option p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 0 0 11px;
}

.backup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.import-button {
  display: inline-flex;
}

.backup-text-field {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
}

.backup-text-field small {
  color: #a5aca7;
  font-weight: 500;
}

.backup-text-field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-family: Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
  max-height: 92px;
  outline: none;
  padding: 9px;
  resize: vertical;
}

.backup-text-field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(158, 185, 170, 0.2);
}

.restore-text-button {
  justify-self: start;
}

.backup-status {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  margin: 13px 0 0;
  min-height: 16px;
}

.upload-field input {
  padding: 8px;
}

.toast {
  background: var(--green);
  border-radius: 10px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  left: 50%;
  opacity: 0;
  padding: 12px 17px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition: 230ms ease;
  z-index: 100;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
  .sidebar {
    width: 215px;
  }

  .main-content {
    margin-left: 215px;
  }

  .topbar,
  .content-wrap {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-card {
    grid-template-columns: 1.35fr 0.65fr;
  }

  .hero-orb {
    display: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 11px 16px;
  }

  .mobile-brand {
    display: flex;
    margin-right: auto;
  }

  .mobile-brand .brand-mark {
    font-size: 14px;
    height: 31px;
    width: 31px;
  }

  .topbar .outline-button {
    display: none;
  }

  .backup-button {
    font-size: 0;
    height: 40px;
    padding: 9px 12px;
  }

  .backup-button span {
    font-size: 18px;
  }

  .primary-button {
    padding: 10px 12px;
  }

  .search-box {
    max-width: none;
    order: 3;
    width: 100%;
  }

  .content-wrap {
    padding: 19px 16px 94px;
  }

  .mobile-bottom-nav {
    background: rgba(41, 76, 67, 0.96);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    padding: 6px 8px 8px;
    position: fixed;
    right: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav .nav-item {
    flex-direction: column;
    font-size: 10px;
    gap: 2px;
    justify-content: center;
    padding: 7px 5px;
  }

  .mobile-bottom-nav .nav-item span {
    font-size: 17px;
  }

  .mobile-status-scroll {
    display: flex;
    gap: 7px;
    margin: 19px -16px -6px;
    overflow-x: auto;
    padding: 0 16px 7px;
    scrollbar-width: none;
  }

  .mobile-status-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-status-scroll button {
    background: rgba(255, 253, 248, 0.68);
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 11px;
  }

  .mobile-status-scroll button.is-active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
  }

  .hero-card {
    display: block;
    min-height: auto;
    padding: 25px;
  }

  .hero-card h1 {
    font-size: 42px;
  }

  .hero-stats {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding: 17px 0 0;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 8px;
  }

  .section-heading,
  .directory-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-top: 27px;
  }

  .anime-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-intro,
  .insights-header {
    padding: 25px;
  }

  .directory-intro h1,
  .insights-header h1 {
    font-size: 39px;
  }

  .directory-stamp {
    display: none;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .editor-layout {
    display: block;
  }

  .editor-poster-wrap {
    align-items: center;
    display: flex;
    gap: 14px;
    min-height: 0;
  }

  .editor-poster {
    max-width: 104px;
  }

  .poster-upload {
    flex: 1;
    margin: 0;
  }

  .editor-content {
    padding: 24px 20px 18px;
  }

  .form-grid {
    gap: 11px;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 6px;
  }

  .modal-actions > div {
    justify-content: flex-end;
  }
}
