:root {
  --hollow-background: #100d0e;
  --hollow-surface: #171112;
  --hollow-surface-raised: #1d1316;
  --hollow-ink: #eee5e2;
  --hollow-muted: #a39796;
  --hollow-border: #482128;
  --hollow-blood-deep: #720014;
  --hollow-accent: #a90020;
  --hollow-accent-bright: #f12645;
  --hollow-title-blood: #d20a2e;
  --accent: var(--hollow-accent);
  --accent-dark: var(--hollow-blood-deep);
}

html {
  scrollbar-color: #543038 #100d0e;
}

body {
  accent-color: var(--hollow-accent);
}

::selection {
  color: #fff4f1;
  background: var(--hollow-blood-deep);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--hollow-accent-bright);
  outline-offset: 3px;
}

.hollow-title-accent {
  color: var(--hollow-title-blood);
  text-shadow: 0 2px 18px rgba(210, 10, 46, .38);
}

.dashboard.is-redesigned .account-card,
.dashboard.is-redesigned .library-card,
.editor-card,
.sidebar-card,
.story-card,
.admin-stat-card,
.admin-card {
  border-color: var(--hollow-border);
  background: linear-gradient(145deg, #1b1214, #100c0d);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 10px 28px rgba(0, 0, 0, .28);
}

.dashboard.is-redesigned .account-card,
.dashboard.is-redesigned .library-card,
.story-card,
.editor-card,
.sidebar-card,
.admin-stat-card,
.admin-card {
  border-radius: 10px;
}

.dashboard.is-redesigned .redesign-nav a:hover,
.dashboard.is-redesigned .redesign-nav a.is-current,
.admin-rail-nav a:hover,
.admin-rail-nav a.is-current {
  border-left-color: var(--hollow-accent-bright);
  background: linear-gradient(90deg, rgba(169, 0, 32, .24), transparent);
}

.dashboard.is-redesigned .profile-link,
.profile-username,
.profile-link:hover,
.profile-header .share-link,
.profile-shell .eyebrow,
.story-card time,
.writer-header .header-eyebrow,
.writer-header .eyebrow,
.compose-intro .eyebrow,
.category-step .eyebrow,
.admin-body .eyebrow,
.dashboard.is-redesigned .hot-flame,
.dashboard.is-redesigned .story-category,
.dashboard.is-redesigned .category-filter button,
.story-original-label,
.story-reader-heading .eyebrow,
.admin-user-role {
  color: var(--hollow-title-blood);
}

.status-dot {
  background: var(--hollow-accent-bright);
  box-shadow: 0 0 0 4px rgba(210, 10, 46, .16);
}

.story-detail-column h3,
.story-more-heading h3 {
  border-left-color: var(--hollow-accent);
}

.dashboard.is-redesigned .create-story-button,
.publish-button,
.story-edit-button,
.profile-header .profile-nav-link,
.profile-header .profile-logout,
.image-control button,
.import-button,
.banner-upload-button,
.admin-card-heading > button,
.admin-user-actions button,
.admin-logout {
  border-color: rgba(210, 10, 46, .62);
  color: #fff0ef;
  background: linear-gradient(135deg, #720014, #350a11);
  box-shadow: 0 6px 20px rgba(91, 0, 18, .2);
}

.dashboard.is-redesigned .create-story-button:hover,
.story-edit-button:hover,
.profile-header .profile-nav-link:hover,
.profile-header .profile-logout:hover,
.image-control button:hover,
.import-button:hover,
.banner-upload-button:hover,
.admin-card-heading > button:hover,
.admin-user-actions button:hover,
.admin-logout:hover {
  border-color: var(--hollow-accent-bright);
  background: linear-gradient(135deg, #99001e, #4b0a15);
}

.dashboard.is-redesigned .create-mark {
  border-color: rgba(255, 232, 230, .32);
  background: rgba(33, 0, 8, .26);
}

.dashboard.is-redesigned .create-story-button small {
  color: #e7d8d6;
}

.category-card:hover,
.category-card.is-selected,
.writer-category-card:hover {
  border-color: var(--hollow-accent-bright);
}

.category-card.is-selected {
  box-shadow: 0 0 0 1px var(--hollow-accent-bright), 0 14px 28px rgba(0, 0, 0, .32);
}

.category-filter button,
.like-story-button,
.home-status,
.profile-error,
.form-message,
.category-back-link,
.selected-category-badge,
.story-feature-button:hover,
.story-byline a:hover,
.back-link:hover {
  color: var(--hollow-accent-bright);
}

.story-read-button,
.submit-button {
  border-color: var(--hollow-accent);
  background: linear-gradient(135deg, #720014, #350a11);
}

.story-read-button:hover,
.submit-button:hover {
  background: linear-gradient(135deg, #99001e, #4b0a15);
}

.story-share-button:hover {
  border-color: var(--hollow-accent-bright);
  background: linear-gradient(135deg, #570012, #291015);
}

.dashboard.is-redesigned .library-tabs {
  border: 1px solid #392025;
  background: #100b0c;
}

.dashboard.is-redesigned .library-tab.is-active {
  background: linear-gradient(135deg, #680013, #351017);
  box-shadow: inset 0 0 0 1px rgba(210, 10, 46, .62);
}

.profile-cover {
  border-color: var(--hollow-border);
}

.profile-facts {
  border-color: var(--hollow-border);
  border-radius: 9px;
  background: linear-gradient(145deg, #1b1214, #100c0d);
}

.profile-fact,
.profile-fact:nth-child(3),
.profile-fact:nth-child(4) {
  border-color: var(--hollow-border);
}

.avatar-frame {
  box-shadow: 0 0 0 1px rgba(210, 10, 46, .28), 0 10px 28px rgba(0, 0, 0, .4);
}

.writer-header .save-status.is-saving,
.writer-header .save-status.is-error,
.writer-layout .tool-message,
.category-step .tool-message,
.metadata-field strong,
.admin-message,
.admin-user-actions button.is-danger {
  color: var(--hollow-accent-bright);
}

.publish-button:hover {
  background: linear-gradient(135deg, #99001e, #4b0a15);
}

.metadata-field input:focus,
.metadata-field textarea:focus,
.settings-field input:focus,
.settings-field textarea:focus {
  border-color: var(--hollow-accent-bright);
  box-shadow: 0 0 0 3px rgba(210, 10, 46, .18);
}

.change-category-button:hover,
.category-back-link:hover,
.draft-list a:hover,
.library-item:hover strong,
.signout-button:hover,
.admin-home-link:hover {
  color: var(--hollow-accent-bright);
}

.selected-category-badge,
.sidebar-icon,
.admin-rail-icon,
.admin-stat-icon {
  border: 1px solid rgba(210, 10, 46, .46);
  color: #ffe8e6;
  background: linear-gradient(145deg, #570012, #291015);
}

.admin-user-row,
.admin-report-row,
.account-settings-grid form {
  border-color: var(--hollow-border);
  border-radius: 9px;
  background: linear-gradient(145deg, #181113, #100c0d);
}

.empty-stories {
  border-color: var(--hollow-border);
  color: var(--hollow-muted);
  background: linear-gradient(145deg, rgba(27, 18, 20, .92), rgba(16, 12, 13, .92));
}

.admin-user-role.is-banned {
  color: var(--hollow-accent-bright);
}

.dashboard.is-redesigned .account-card,
.dashboard.is-redesigned .library-card {
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard.is-redesigned .account-card {
  border-top: 1px solid #241b1e;
}

.dashboard.is-redesigned .library-card {
  border-top: 1px solid #241b1e;
}

.dashboard.is-redesigned .account-topline .icon-button {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border: 0;
  border-radius: 0;
  color: #a39796;
  background: transparent;
}

.dashboard.is-redesigned .account-topline .icon-button:hover {
  color: var(--hollow-accent-bright);
  background: linear-gradient(90deg, rgba(169, 0, 32, .24), transparent);
}

.dashboard.is-redesigned .account-identity {
  margin-top: 6px;
  padding: 5px 8px;
  border-left: 2px solid transparent;
  transition: border-color .16s, background .16s;
}

.dashboard.is-redesigned .account-identity:hover {
  border-left-color: var(--hollow-accent-bright);
  background: linear-gradient(90deg, rgba(169, 0, 32, .18), transparent);
}

.dashboard.is-redesigned .profile-link {
  min-height: 32px;
  margin-top: 3px;
  padding: 0 8px;
  align-items: center;
  border: 0;
  border-left: 2px solid transparent;
  color: #a39796;
  background: transparent;
}

.dashboard.is-redesigned .profile-link:hover {
  border-left-color: var(--hollow-accent-bright);
  color: #f0e5e2;
  background: linear-gradient(90deg, rgba(169, 0, 32, .24), transparent);
}

.dashboard.is-redesigned .create-story-button {
  min-height: 38px;
  padding: 0 9px;
  gap: 9px;
  border: 0;
  border-left: 2px solid var(--hollow-accent-bright);
  border-radius: 0;
  color: #f0e5e2;
  background: linear-gradient(90deg, rgba(169, 0, 32, .24), transparent);
  box-shadow: none;
}

.dashboard.is-redesigned .create-story-button:hover {
  background: linear-gradient(90deg, rgba(169, 0, 32, .34), transparent);
}

.dashboard.is-redesigned .create-mark {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  border: 0;
  color: var(--hollow-accent-bright);
  background: transparent;
  font-size: 17px;
}

.dashboard.is-redesigned .create-story-button strong {
  font-size: 9px;
}

.dashboard.is-redesigned .create-story-button small {
  margin-top: 2px;
  font-size: 7px;
}

.dashboard.is-redesigned .library-tabs {
  padding: 0;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard.is-redesigned .library-tab {
  min-height: 32px;
  padding: 0 7px;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: #938b8d;
  background: transparent;
  text-align: left;
}

.dashboard.is-redesigned .library-tab.is-active {
  border-left-color: var(--hollow-accent-bright);
  color: #f0e5e2;
  background: linear-gradient(90deg, rgba(169, 0, 32, .24), transparent);
  box-shadow: none;
}

.dashboard.is-redesigned .library-card h2 {
  margin: 9px 2px 6px;
  font-size: 9px;
}
