@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --ink: #3c1c28;
  --muted: #7b706f;
  --paper: #fff;
  --canvas: #f8f6f0;
  --line: #48213025;
  --lime: #dcebb1;
  --plum: #572335;
  --bs-primary: #572335;
  --bs-body-font-family: "Manrope", "DM Sans", Arial, sans-serif;
  --bs-body-color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
h1,
h2,
h3,
.brand {
  font-family: "Manrope", "DM Sans", Arial, sans-serif;
}
button {
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover {
  transform: translateY(-1px);
}
.site-header {
  height: 85px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  max-width: 1600px;
  margin: auto;
  height: 100%;
  padding: 0 44px;
  display: flex;
  align-items: center;
  gap: 54px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 30px;
  letter-spacing: -1.8px;
  font-weight: 800;
}
.brand img {
  width: 36px;
  height: 42px;
}
.brand sup {
  font-size: 10px;
  align-self: flex-start;
  margin-top: 17px;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  height: 100%;
}
.nav-links a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  color: #7b706f;
  font-size: 13px;
  font-weight: 550;
}
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--ink);
  left: 0;
  right: 0;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.btn-brand {
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.btn-brand:hover {
  background: #481824;
  color: white;
}
.btn-lightline {
  border: 1px solid #48213025;
  background: #fff;
  padding: 11px 17px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.hero {
  background: #f8f6f0;
  border-bottom: 1px solid #48213025;
  overflow: hidden;
}
.hero-inner {
  max-width: 1512px;
  min-height: 315px;
  margin: auto;
  display: flex;
  position: relative;
  padding: 45px 44px 38px;
  align-items: center;
  justify-content: space-between;
}
.hero-copy {
  max-width: 620px;
  z-index: 1;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8d5065;
}
.hero h1 {
  font-size: 49px;
  letter-spacing: -2.4px;
  line-height: 1.16;
  font-weight: 650;
  margin: 0 0 16px;
}
.hero h1 span {
  position: relative;
}
.hero h1 span:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 8px;
  border-top: 2px solid #8d5065;
  border-radius: 50%;
  transform: rotate(-2deg);
}
.hero p {
  color: #7b706f;
  font-size: 13px;
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 22px;
}
.hero-meta {
  display: flex;
  gap: 23px;
  font-size: 10px;
  font-weight: 500;
  color: #7b706f;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-meta .icon {
  width: 14px;
  height: 14px;
}
.hero-art {
  width: 480px;
  height: 240px;
  position: relative;
  margin-right: 25px;
}
.hero-art img {
  position: absolute;
  width: 170px;
  height: 210px;
  object-fit: cover;
  border: 7px solid white;
  border-bottom-width: 22px;
  box-shadow: 0 8px 18px #54223417;
  border-radius: 3px;
}
.hero-art img:nth-child(1) {
  left: 15px;
  top: 20px;
  transform: rotate(-14deg);
}
.hero-art img:nth-child(2) {
  left: 153px;
  top: -4px;
  transform: rotate(7deg);
  z-index: 2;
}
.hero-art img:nth-child(3) {
  left: 295px;
  top: 28px;
  transform: rotate(16deg);
}
.hero-sticker {
  position: absolute;
  left: 120px;
  top: 176px;
  z-index: 3;
  background: var(--lime);
  border: 1px solid #ccdba1;
  border-radius: 50%;
  padding: 18px 12px;
  width: 92px;
  height: 92px;
  transform: rotate(-13deg);
  font-size: 11px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 4px 8px #0001;
}
.spark {
  position: absolute;
  font-size: 38px;
  right: 0;
  top: -20px;
  font-weight: 300;
  color: #8d5065;
}
.workspace {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 223px minmax(0, 1fr);
  padding: 34px 44px 0;
  gap: 32px;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 4px 23px 30px 0;
}
.side-inner {
  position: sticky;
  top: 114px;
}
.side-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #7b706f;
  margin: 0 0 14px;
}
.category-list {
  display: grid;
  gap: 4px;
}
.category-btn {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  border: 0;
  background: none;
  padding: 10px 11px;
  text-align: left;
  border-radius: 7px;
  font-size: 12px;
  color: #7b706f;
}
.category-btn .icon {
  width: 16px;
  height: 16px;
}
.category-btn .count {
  margin-left: auto;
  color: #97878c;
  font-size: 10px;
}
.category-btn.active {
  background: #eddfdf;
  font-weight: 600;
  color: #3c1c28;
}
.category-btn.active .count {
  color: #572335;
}
.side-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 25px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 10px;
  font-size: 12px;
  color: #7b706f;
}
.filter-row small {
  margin-left: auto;
  font-size: 10px;
  color: #97878c;
}
.form-check-input {
  margin-top: 0;
  border-color: #48213025;
  box-shadow: none !important;
  cursor: pointer;
}
.form-check-input:checked {
  background-color: #572335;
  border-color: #572335;
}
.color-filters {
  display: flex;
  gap: 9px;
  margin: 19px 4px;
}
.color-btn {
  width: 20px;
  height: 20px;
  border: 3px solid var(--canvas);
  outline: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
}
.color-btn.active {
  outline-color: #3c1c28;
}
.side-promo {
  background: #eddfdf;
  border: 1px solid #48213025;
  border-radius: 10px;
  padding: 19px 15px;
  margin-top: 26px;
}
.side-promo .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 13px;
}
.side-promo h3 {
  font-size: 13px;
  font-weight: 700;
}
.side-promo p {
  font-size: 11px;
  line-height: 1.7;
  color: #7b706f;
}
.side-promo button {
  font-size: 11px;
  border: 0;
  background: none;
  padding: 0;
  font-weight: 600;
}
.gallery-main {
  min-width: 0;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #48213025;
  border-radius: 9px;
  padding: 0 15px;
  height: 47px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--ink);
  font-size: 12px;
  height: 100%;
}
.search-bar input::placeholder {
  color: #97878c;
}
.search-bar .icon {
  width: 17px;
  color: #97878c;
}
.keycap {
  font-size: 10px;
  color: #97878c;
  border: 1px solid #48213025;
  border-radius: 4px;
  padding: 2px 5px;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 19px;
}
.gallery-heading h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 700;
  margin: 0;
}
.gallery-heading p {
  font-size: 11px;
  margin: 7px 0 0;
  color: #97878c;
}
.sort-group {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #97878c;
}
.sort-group select {
  border: 1px solid #48213025;
  border-radius: 6px;
  padding: 8px 28px 8px 12px;
  font-size: 11px;
  background-color: white;
  color: #3c1c28;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 23px 16px;
}
.art-card {
  min-width: 0;
  position: relative;
  animation: reveal 0.4s ease both;
}
.art-image {
  position: relative;
  aspect-ratio: 1.12;
  overflow: hidden;
  border-radius: 9px;
  background: #eeeae2;
}
.art-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.art-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.art-card:hover .art-image img {
  transform: scale(1.045);
}
.favorite {
  position: absolute;
  right: 9px;
  top: 9px;
  background: #ffffffdf;
  border: 0;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 2px 6px #0001;
}
.favorite .icon {
  width: 14px;
  height: 14px;
}
.art-card:hover .favorite,
.favorite:focus,
.favorite.saved {
  opacity: 1;
}
.favorite.saved {
  color: #572335;
  background: #eddfdf;
}
.favorite.saved .icon {
  fill: currentColor;
}
.type-label {
  position: absolute;
  left: 9px;
  bottom: 9px;
  font-size: 8px;
  font-weight: 600;
  padding: 3px 6px;
  background: #ffffffdd;
  border-radius: 4px;
  color: #3c1c28;
  backdrop-filter: blur(8px);
}
.card-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #97878c;
  margin-top: 5px;
}
.card-meta .icon {
  width: 11px;
  height: 11px;
  margin-right: 3px;
}
.load-section {
  text-align: center;
  padding: 38px 0 45px;
}
.load-section p {
  font-size: 10px;
  color: #97878c;
  margin: 12px 0;
}
.load-section .btn-lightline {
  padding: 12px 25px;
}
.progress-line {
  height: 3px;
  width: 140px;
  margin: 16px auto;
  background: #eeeae2;
  border-radius: 3px;
  overflow: hidden;
}
.progress-line span {
  display: block;
  height: 100%;
  background: #8d5065;
}
.footer {
  max-width: 1512px;
  margin: 0 auto;
  padding: 25px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 30px;
  color: #97878c;
  font-size: 10px;
}
.footer .brand {
  font-size: 22px;
  color: #572335;
}
.footer .brand img {
  width: 25px;
  height: 27px;
}
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 75px 15px;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
  font-size: 22px;
  margin: 16px;
}
.filter-toggle {
  display: none;
}
.breadcrumbs {
  font-size: 11px;
  color: #97878c;
  display: flex;
  gap: 10px;
  margin: 4px 0 24px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(255px, 1fr);
  gap: 32px;
}
.large-preview {
  background: #eeeae2;
  border-radius: 12px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.large-preview img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}
.detail-info {
  padding: 14px 0;
}
.detail-info h1 {
  font-size: 33px;
  letter-spacing: -1.3px;
  line-height: 1.2;
  margin: 16px 0;
}
.detail-info p {
  line-height: 1.9;
  color: #7b706f;
  font-size: 13px;
  margin: 22px 0;
}
.pill {
  display: inline-block;
  font-size: 10px;
  border: 1px solid #48213025;
  border-radius: 5px;
  padding: 5px 9px;
  margin: 0 5px 5px 0;
  color: #572335;
  background: #eddfdf;
}
.creator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #7b706f;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: #572335;
  font-weight: bold;
}
.download-btn {
  width: 100%;
  padding: 15px;
}
.tip-btn {
  width: 100%;
  margin-top: 10px;
  background: var(--lime);
  border-color: #ccdba1;
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  gap: 15px;
  font-size: 11px;
  color: #7b706f;
}
.detail-facts b {
  display: block;
  color: #3c1c28;
  margin-top: 5px;
  font-weight: 500;
}
.detail-bottom {
  padding: 24px 0;
  color: #97878c;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.related-heading {
  font-size: 18px;
  margin: 32px 0 18px;
  font-weight: 650;
}
.notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: #3c1c28;
  color: white;
  border-radius: 9px;
  padding: 13px 22px;
  z-index: 100;
  font-size: 12px;
  box-shadow: 0 5px 30px #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  max-width: 90vw;
}
.notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid #48213025;
  border-radius: 16px;
  padding: 30px;
  max-width: 470px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 25px 100px #54223430;
}
dialog::backdrop {
  background: #3c1c2866;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
dialog p {
  color: #7b706f;
  line-height: 1.8;
  font-size: 13px;
}
.dialog-close {
  float: right;
  border: 0;
  background: #eddfdf;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
}
.tip-options {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.tip-options button {
  flex: 1;
  border: 1px solid #48213025;
  border-radius: 8px;
  padding: 15px;
  background: #f8f6f0;
}
.tip-options button.active {
  background: var(--lime);
  border-color: #ccdba1;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 10px;
  background: var(--lime);
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.admin-wrap {
  max-width: 1320px;
  margin: auto;
  padding: 42px;
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-top h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
}
.admin-top p {
  color: #7b706f;
  font-size: 12px;
}
.admin-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.demo-note {
  border: 1px solid #ccdba1;
  background: #eef2e1;
  padding: 14px 18px;
  border-radius: 9px;
  font-size: 12px;
  color: #7b706f;
  margin-bottom: 25px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-box {
  background: white;
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 10px;
}
.stat-box span {
  font-size: 12px;
  color: #97878c;
}
.stat-box strong {
  display: block;
  font-family: Manrope, Arial;
  font-size: 30px;
  margin-top: 10px;
  font-weight: 600;
}
.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.admin-panel-head {
  padding: 20px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.admin-panel-head .search-bar {
  width: 340px;
}
.table {
  font-size: 12px;
  margin: 0;
  --bs-table-bg: transparent;
  vertical-align: middle;
}
.table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #97878c;
  font-weight: 500;
  background: #f8f6f0;
  padding: 14px 20px;
}
.table td {
  padding: 13px 20px;
  border-color: #eeeae2;
}
.table-art {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.table-art img {
  width: 54px;
  height: 44px;
  object-fit: cover;
  border-radius: 5px;
}
.table-art small {
  display: block;
  color: #97878c;
  font-size: 10px;
  margin-top: 3px;
}
.status-badge {
  font-size: 10px;
  background: #eef2e1;
  color: #6b7948;
  padding: 5px 9px;
  border-radius: 20px;
}
.status-badge.draft {
  background: #f3f0e8;
  color: #9e8d69;
}
.table-actions {
  display: flex;
  gap: 6px;
}
.table-actions button,
.table-actions a {
  border: 1px solid #48213025;
  background: white;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 10px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 25px;
}
.editor-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
}
.editor-section h2 {
  font-size: 17px;
  margin-bottom: 23px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-control,
.form-select {
  font-size: 13px;
  border-color: #48213025;
  border-radius: 7px;
  padding: 11px 12px;
}
.form-control:focus,
.form-select:focus {
  border-color: #8d5065;
  box-shadow: 0 0 0 3px #54223422;
}
.field-help {
  font-size: 10px;
  color: #97878c;
  margin-top: 7px;
}
.upload-zone {
  padding: 23px;
  background: #f8f6f0;
  border: 1px dashed #48213025;
  border-radius: 9px;
  margin-bottom: 20px;
}
.upload-zone .icon {
  margin-bottom: 10px;
  width: 24px;
  height: 24px;
  color: #8d5065;
}
.upload-zone label {
  display: block;
}
.upload-zone input {
  max-width: 100%;
  font-size: 11px;
}
.format-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.editor-preview img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 20px;
}
.editor-preview h3 {
  font-size: 20px;
}
.editor-preview p {
  font-size: 12px;
  color: #7b706f;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.editor-preview {
  position: sticky;
  top: 110px;
}
.admin-bottom {
  padding: 20px;
  font-size: 11px;
  color: #97878c;
}
.mobile-menu {
  display: none;
}
.collection-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
}
.collection-tabs button {
  border: 1px solid var(--line);
  background: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
}
.collection-tabs .active {
  background: var(--ink);
  color: white;
}
.hero-art img,
.hero-copy {
  animation: reveal 0.7s ease both;
}
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1600px) {
  .art-image {
    aspect-ratio: 1.17;
  }
}
@media (max-width: 1200px) {
  .header-inner {
    gap: 35px;
    padding: 0 28px;
  }
  .workspace {
    padding: 28px 28px 0;
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }
  .sidebar {
    padding-right: 16px;
  }
  .hero-inner {
    padding-left: 30px;
    padding-right: 30px;
  }
  .hero-art {
    transform: scale(0.8);
    transform-origin: right center;
    margin-left: -90px;
    margin-right: 0;
  }
  .hero h1 {
    font-size: 43px;
  }
  .gallery-grid {
    gap: 20px 12px;
  }
  .card-title {
    font-size: 10px;
  }
}
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-art {
    width: 390px;
    transform: scale(0.7);
    margin-left: -130px;
    margin-right: 20px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-copy {
    max-width: 440px;
  }
  .header-actions {
    gap: 15px;
  }
  .nav-links {
    gap: 20px;
  }
  .header-inner {
    gap: 30px;
  }
  .header-actions .admin-link {
    display: none;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .large-preview {
    min-height: 280px;
  }
  .detail-info {
    padding: 0;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-preview {
    position: static;
  }
  .admin-top {
    gap: 20px;
    align-items: flex-start;
  }
  .admin-toolbar {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .table th,
  .table td {
    padding: 12px;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: 70px;
  }
  .header-inner {
    padding: 0 20px;
    gap: 20px;
  }
  .brand {
    font-size: 26px;
  }
  .brand img {
    width: 30px;
  }
  .header-actions .btn-brand {
    padding: 10px;
    font-size: 11px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    height: auto;
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: none;
    padding: 3px;
  }
  .header-actions {
    gap: 12px;
  }
  .hero-inner {
    min-height: 360px;
    padding: 32px 23px;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1.7px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero p {
    font-size: 12px;
    max-width: 310px;
    margin-bottom: 18px;
  }
  .hero-meta {
    gap: 14px;
    font-size: 9px;
  }
  .hero-art {
    position: absolute;
    right: 8px;
    bottom: -65px;
    transform: scale(0.42);
    transform-origin: bottom right;
    height: 245px;
    width: 480px;
    margin: 0;
  }
  .hero-sticker {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
    padding: 24px 20px 0;
    gap: 0;
  }
  .sidebar {
    display: none;
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  .sidebar.open {
    display: block;
  }
  .side-inner {
    position: static;
  }
  .side-promo {
    display: none;
  }
  .filter-toggle {
    display: inline-flex;
    margin-bottom: 14px;
  }
  .gallery-heading {
    margin: 24px 0 19px;
  }
  .gallery-heading h2 {
    font-size: 18px;
  }
  .sort-group > span {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .card-title {
    font-size: 11px;
  }
  .favorite {
    opacity: 1;
  }
  .footer {
    padding: 23px 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer-links {
    margin-left: 0;
    width: 100%;
    gap: 24px;
  }
  .footer > span {
    margin-left: auto;
    font-size: 9px;
  }
  .keycap {
    display: none;
  }
  .admin-wrap {
    padding: 25px 18px;
  }
  .admin-top {
    flex-direction: column;
  }
  .admin-toolbar {
    justify-content: flex-start;
  }
  .stat-grid {
    gap: 8px;
  }
  .stat-box {
    padding: 15px;
  }
  .stat-box span {
    font-size: 10px;
  }
  .stat-box strong {
    font-size: 25px;
  }
  .admin-panel-head {
    flex-direction: column;
  }
  .admin-panel-head .search-bar {
    width: 100%;
  }
  .editor-section {
    padding: 20px;
  }
  .detail-info h1 {
    font-size: 29px;
  }
  .hero-art .spark {
    display: none;
  }
  .large-preview {
    min-height: 200px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
  }
  .admin-toolbar .btn-lightline {
    padding: 10px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
html {
  scroll-behavior: smooth;
}
.plain-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  text-align: left;
}
.plain-link:hover {
  text-decoration: underline;
}
.about-panel {
  max-width: 850px;
  margin: 50px auto;
  padding: 45px;
  background: #eddfdf;
  border-radius: 14px;
}
.about-panel h1 {
  font-size: 45px;
  letter-spacing: -2px;
}
.about-panel p {
  line-height: 1.9;
  color: #7b706f;
}
.about-panel img {
  width: 95px;
  margin-bottom: 30px;
}

.site-header.scrolled {
  box-shadow: 0 4px 22px #35202b08;
}
.art-card.await-reveal {
  opacity: 0;
  translate: 0 14px;
  animation: none;
}
.art-card.in-view {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.45s,
    translate 0.45s;
}
@media (max-width: 380px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .header-actions .btn-brand {
    font-size: 0;
    padding: 10px;
    gap: 0;
  }
  .header-actions .btn-brand .icon {
    width: 19px;
    height: 19px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-meta {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

/* Brand values verified from getoonion.com's live .oonion stylesheet. */
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
.site-header {
  background: #f8f6f0f2;
}
.brand {
  flex-shrink: 0;
}
.brand img {
  width: 146px;
  height: auto;
  display: block;
}
.nav-links {
  height: auto;
  padding: 5px 9px;
  gap: 0;
  background: #ffffffb8;
  border: 1px solid #fff;
  border-radius: 50px;
  box-shadow: 0 4px 22px #35202b05;
}
.nav-links a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 24px;
  font-size: 11px;
}
.nav-links a.active,
.nav-links a:hover {
  background: #eeeae4;
  color: var(--ink);
}
.nav-links a.active:after {
  display: none;
}
.btn-brand {
  background: var(--plum);
  border-color: var(--plum);
  border-radius: 30px;
}
.btn-lightline {
  border-radius: 30px;
}
.hero h1 {
  font-weight: 500;
  letter-spacing: -0.065em;
}
.hero h1 span {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--plum);
  letter-spacing: -0.045em;
}
.hero h1 span:after {
  display: none;
}
.tip-btn {
  color: var(--ink);
}
.footer {
  background: var(--ink);
  color: #f8f6f0b3;
  max-width: none;
}
.footer .brand img {
  width: 130px;
  height: auto;
}
.footer .brand {
  color: var(--paper);
}
.footer a:hover,
.footer button:hover {
  color: var(--lime);
}
.about-panel img {
  width: 210px;
  height: auto;
}
.editor-preview img[src="/assets/icons/oonion-logo.png"] {
  object-fit: contain;
  padding: 24px;
  background: var(--canvas);
}
@media (max-width: 991px) {
  .brand img {
    width: 134px;
  }
  .header-inner {
    gap: 22px;
  }
  .nav-links a {
    padding-inline: 10px;
  }
}
@media (max-width: 700px) {
  .brand img {
    width: 116px;
  }
  .nav-links {
    top: 76px;
    left: 16px;
    right: 16px;
    border-radius: 22px;
    padding: 12px;
    background: #f8f6f0fa;
    border: 1px solid var(--line);
    box-shadow: 0 15px 35px #35202b15;
  }
  .nav-links.open {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links a {
    font-size: 14px;
    padding: 12px 16px;
  }
  .footer .brand img {
    width: 116px;
  }
}
/* Brand-green creator support actions. */
.btn-brand[data-action="tip"],
.btn-lightline[data-action="tip"],
#confirm-tip {
  background: var(--lime);
  color: var(--ink);
  border-color: #cbdba0;
}
.btn-brand[data-action="tip"]:hover,
.btn-lightline[data-action="tip"]:hover,
#confirm-tip:hover {
  background: #cddf9c;
  border-color: #b8cd83;
  color: var(--ink);
}
/* Dedicated creator workspace */
.studio-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  background: #f6f5f1;
}
.studio-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 20px 18px;
  background: #fffdf9;
  border-right: 1px solid #e9e5df;
  display: flex;
  flex-direction: column;
}
.studio-logo {
  display: block;
  padding: 0 14px;
  margin-bottom: 36px;
}
.studio-logo img {
  width: 154px;
  height: auto;
}
.studio-label {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #9c9090;
  padding: 0 12px;
  margin-bottom: 17px;
  line-height: 2;
}
.studio-label span {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
}
.studio-nav nav {
  display: grid;
  gap: 6px;
}
.studio-nav nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 9px;
  color: #84767a;
  font-size: 12px;
  font-weight: 500;
}
.studio-nav nav a:hover {
  background: #f3f0eb;
  color: var(--ink);
}
.studio-nav nav a.active {
  color: var(--plum);
  background: #eee7e9;
  font-weight: 700;
}
.studio-nav nav a .icon {
  width: 17px;
  height: 17px;
}
.studio-nav nav small {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  background: #ffffffa6;
  font-size: 9px;
}
.studio-nav-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.studio-help {
  background: #f0f3e5;
  padding: 19px 15px;
  border: 1px solid #e7ebd9;
  border-radius: 12px;
  margin-bottom: 22px;
}
.studio-help > .icon {
  color: #7d9056;
  margin-bottom: 14px;
  width: 23px;
  height: 23px;
}
.studio-help h3 {
  font-size: 12px;
  font-weight: 700;
}
.studio-help p {
  font-size: 10px;
  line-height: 1.8;
  color: #91957f;
  margin: 10px 0 14px;
}
.studio-help a {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 650;
}
.studio-account {
  border-top: 1px solid #eee8e3;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio-account strong {
  font-size: 10px;
  display: block;
  max-width: 106px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-account small {
  font-size: 8px;
  color: #a09594;
  display: block;
  margin-top: 3px;
}
.studio-account > .icon {
  margin-left: auto;
  width: 15px;
  color: #a09594;
}
.studio-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ece0e4;
  color: var(--plum);
  font-size: 11px;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #eee5e7;
}
.studio-avatar.large {
  width: 64px;
  height: 64px;
  font-size: 21px;
  border-width: 4px;
}
.studio-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.studio-topbar {
  padding: 19px 36px;
  height: 80px;
  background: #fffdf9;
  border-bottom: 1px solid #e9e5df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.studio-topbar strong {
  font-size: 11px;
  font-weight: 600;
}
.studio-breadcrumb {
  font-size: 11px;
  color: #aaa0a0;
}
.studio-breadcrumb span {
  margin: 0 12px;
  color: #d0c6c6;
}
.studio-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.studio-top-actions .btn-lightline {
  font-size: 10px;
  padding: 8px 13px;
  border-radius: 7px;
  background: transparent;
}
.local-indicator {
  font-size: 9px;
  color: #9a9990;
  display: flex;
  align-items: center;
  gap: 6px;
}
.local-indicator:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8da55f;
}
.studio-main {
  padding: 34px 36px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.studio-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.studio-page-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
  color: #a19594;
}
.studio-page-heading .eyebrow:before {
  display: none;
}
.studio-page-heading h1 {
  font-size: 29px;
  letter-spacing: -1.1px;
  font-weight: 650;
  margin-bottom: 8px;
}
.studio-page-heading p {
  color: #9b9090;
  font-size: 11px;
  margin: 0;
}
.studio-shell .btn-brand {
  border-radius: 8px;
  font-size: 11px;
  padding: 12px 17px;
}
.studio-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.studio-stat {
  padding: 19px 20px;
  border: 1px solid #ebe6e1;
  border-radius: 11px;
  background: #fffdfb;
}
.studio-stat > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.studio-stat > div > span {
  font-size: 10px;
  color: #8d7d82;
  font-weight: 500;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #f1e6eb;
  color: #8c5870;
}
.stat-icon .icon {
  width: 15px;
  height: 15px;
}
.stat-icon.tone-1 {
  background: #edf1e3;
  color: #899c5c;
}
.stat-icon.tone-2 {
  background: #f6eedf;
  color: #c4a168;
}
.stat-icon.tone-3 {
  background: #eee8f3;
  color: #a18db9;
}
.studio-stat > strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 6px 0 10px;
  line-height: 1.2;
}
.studio-stat > small {
  display: block;
  color: #aaa09c;
  font-size: 8px;
}
.studio-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  gap: 23px;
  margin-bottom: 25px;
}
.studio-welcome {
  position: relative;
  overflow: hidden;
  background: #ede9e5;
  border: 1px solid #e5dfe0;
  border-radius: 12px;
  padding: 28px;
  min-height: 300px;
}
.studio-mini-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #a28f96;
  position: relative;
  z-index: 1;
}
.studio-welcome h2 {
  position: relative;
  z-index: 1;
  font-size: 27px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  font-weight: 550;
  margin: 24px 0 14px;
  max-width: 270px;
}
.studio-welcome h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--plum);
  font-size: 1.2em;
  font-weight: 400;
}
.studio-welcome p {
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: #9d8f92;
  line-height: 1.8;
}
.studio-welcome .btn-brand {
  position: relative;
  z-index: 1;
  background: var(--lime);
  color: var(--ink);
  border-color: #cfdcae;
  font-size: 10px;
}
.welcome-art {
  position: absolute;
  right: -10px;
  top: 58px;
  width: 170px;
  height: 215px;
}
.welcome-art img {
  position: absolute;
  width: 125px;
  height: 160px;
  object-fit: cover;
  border: 5px solid #fffaf6;
  border-bottom-width: 16px;
  border-radius: 4px;
  box-shadow: 0 10px 20px #57233517;
}
.welcome-art img:first-child {
  top: 0;
  left: -25px;
  rotate: -15deg;
}
.welcome-art img:nth-child(2) {
  top: 58px;
  right: -10px;
  rotate: 12deg;
}
.welcome-art span {
  position: absolute;
  left: -32px;
  bottom: -6px;
  color: #8b4860;
  font-size: 55px;
}
.studio-distribution {
  background: #fffdfb;
  border: 1px solid #ebe6e1;
  border-radius: 12px;
  padding: 22px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.section-title h2 {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
}
.section-title > span {
  font-size: 8px;
  color: #a39698;
}
.studio-distribution > p {
  margin: 6px 0 18px;
  font-size: 9px;
  color: #ab9fa0;
}
.mix-row {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 9px;
  gap: 4px 10px;
  margin-top: 10px;
}
.mix-row > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8a7b80;
}
.mix-row > span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mix);
}
.mix-row > b {
  color: #89767e;
  font-weight: 500;
}
.mix-row > div {
  grid-column: 1/-1;
  height: 3px;
  background: #f2eeea;
  border-radius: 3px;
}
.mix-row > div i {
  display: block;
  background: var(--mix);
  height: 100%;
  border-radius: 3px;
  min-width: 0;
}
.studio-shell .admin-panel {
  border-color: #ebe6e1;
  background: #fffdfb;
}
.studio-shell .admin-panel-head {
  align-items: center;
  padding: 21px 22px;
}
.admin-panel-head h2 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
}
.admin-panel-head p {
  font-size: 9px;
  color: #ab9fa0;
  margin: 0;
}
.admin-panel-head > a {
  font-size: 9px;
  font-weight: 600;
}
.library-controls {
  display: flex;
  gap: 15px;
  padding: 16px 22px;
  border-bottom: 1px solid #eee9e3;
}
.library-controls .search-bar {
  flex: 1;
  height: 40px;
  max-width: 380px;
}
.library-controls select {
  max-width: 155px;
  font-size: 11px;
  margin-left: auto;
}
.studio-shell .table {
  font-size: 10px;
}
.studio-shell .table th {
  font-size: 8px;
  padding: 13px 20px;
  color: #a5969c;
  background: #f9f7f4;
  letter-spacing: 0.8px;
}
.studio-shell .table td {
  padding: 13px 20px;
  border-color: #f0ece7;
}
.studio-shell .table-art img {
  width: 45px;
  height: 42px;
}
.studio-shell .table-art small {
  font-size: 8px;
}
.studio-shell .table-actions {
  gap: 4px;
}
.studio-shell .table-actions button,
.studio-shell .table-actions a {
  padding: 6px;
  font-size: 8px;
  background: transparent;
  border-color: #eee8e5;
}
.feature-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 9px;
  color: #b2a7aa;
  white-space: nowrap;
}
.feature-toggle .icon {
  width: 12px;
  height: 12px;
}
.feature-toggle.featured {
  color: #8e6579;
}
.feature-toggle.featured .icon {
  fill: #eedee6;
}
.studio-foot {
  margin-top: auto;
  padding: 18px 36px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  color: #afa4a3;
}
.studio-shell .admin-wrap {
  margin: 0;
  max-width: none;
  padding: 34px 36px;
}
.studio-shell .editor-preview {
  top: 25px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr);
  gap: 24px;
}
.studio-shell .editor-section {
  background: #fffdfb;
  border-color: #ebe6e1;
}
.settings-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.settings-section-heading h2 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 650;
}
.settings-section-heading p {
  margin: 0;
  font-size: 10px;
  color: #a29397;
}
.settings-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #8d5065;
  background: #f2e9ed;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee8e3;
  padding-bottom: 25px;
}
.profile-identity strong {
  display: block;
  font-size: 14px;
}
.profile-identity div span {
  display: block;
  font-size: 10px;
  color: #a29397;
  margin-top: 5px;
}
.preference-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.preference-switch strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.preference-switch small {
  display: block;
  font-size: 10px;
  color: #a29397;
  margin-top: 6px;
}
.preference-switch input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.settings-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #f0f3e7;
  border: 1px solid #e5ead8;
  border-radius: 10px;
  padding: 20px;
}
.settings-note > .icon {
  color: #85945e;
}
.settings-note strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.settings-note p {
  font-size: 10px;
  color: #92967f;
  line-height: 1.8;
  margin: 0;
}
.settings-savebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #e6e0db;
}
.settings-savebar > span {
  font-size: 11px;
  color: #a29397;
}
.settings-savebar > div {
  display: flex;
  gap: 10px;
}
.settings-savebar .btn-lightline {
  border-radius: 8px;
  font-size: 11px;
}
.storage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.storage-symbol {
  width: 52px;
  height: 52px;
  background: #efe4e9;
  color: #996c82;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 25px;
}
.storage-symbol .icon {
  width: 24px;
  height: 24px;
}
.storage-symbol.lime {
  background: #eaf0dd;
  color: #8da05d;
}
.storage-card h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 13px;
}
.storage-card > p {
  font-size: 12px;
  line-height: 1.8;
  color: #9a8b91;
}
.storage-tree {
  padding: 20px;
  background: #f7f4f0;
  border: 1px solid #eee7e2;
  border-radius: 9px;
  margin: 24px 0;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #9b7c8a;
}
.export-count {
  margin: 24px 0;
  padding: 29px;
  background: #f2f5e9;
  border-radius: 9px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.export-count strong {
  font-size: 42px;
  font-weight: 500;
  color: #72844b;
}
.export-count span {
  font-size: 12px;
  color: #97a17f;
}
.storage-card .field-help {
  font-size: 9px;
  margin: 15px 0 0;
}
@media (min-width: 1500px) {
  .studio-main {
    padding: 40px 46px;
  }
  .studio-welcome h2 {
    font-size: 34px;
  }
  .welcome-art {
    right: 20px;
    width: 210px;
  }
  .welcome-art img {
    width: 150px;
    height: 185px;
  }
}
@media (max-width: 1200px) {
  .studio-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .studio-nav {
    padding: 26px 14px 18px;
  }
  .studio-logo img {
    width: 145px;
  }
  .studio-main {
    padding: 28px 24px;
  }
  .studio-topbar {
    padding-inline: 24px;
  }
  .studio-stats {
    gap: 12px;
  }
  .studio-stat {
    padding: 15px;
  }
  .studio-stat > small {
    font-size: 7px;
  }
  .studio-overview-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 1fr);
    gap: 18px;
  }
  .welcome-art {
    opacity: 0.38;
    right: -50px;
  }
  .studio-welcome {
    padding: 25px;
  }
  .studio-shell .table td,
  .studio-shell .table th {
    padding-inline: 12px;
  }
}
@media (max-width: 991px) {
  .studio-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .studio-nav {
    padding: 24px 10px 16px;
  }
  .studio-logo {
    padding: 0 10px;
  }
  .studio-logo img {
    width: 130px;
  }
  .studio-nav nav a {
    font-size: 10px;
    gap: 9px;
    padding-inline: 10px;
  }
  .studio-label {
    font-size: 7px;
  }
  .studio-help {
    padding: 14px 10px;
  }
  .studio-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-stat > small {
    font-size: 9px;
  }
  .studio-overview-grid,
  .settings-layout,
  .storage-grid {
    grid-template-columns: 1fr;
  }
  .welcome-art {
    opacity: 1;
    right: 16px;
  }
  .studio-welcome {
    min-height: 300px;
  }
  .studio-top-actions {
    gap: 12px;
  }
  .local-indicator {
    display: none;
  }
  .studio-page-heading h1 {
    font-size: 25px;
  }
  .studio-page-heading > .btn-brand {
    white-space: nowrap;
    font-size: 10px;
    padding: 10px 12px;
  }
}
@media (max-width: 700px) {
  .studio-shell {
    display: block;
  }
  .studio-nav {
    position: static;
    height: auto;
    padding: 17px 18px 12px;
    border-right: 0;
    border-bottom: 1px solid #e9e5df;
  }
  .studio-logo {
    margin-bottom: 18px;
    padding: 0;
  }
  .studio-logo img {
    width: 130px;
  }
  .studio-label,
  .studio-nav-bottom {
    display: none;
  }
  .studio-nav nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
  }
  .studio-nav nav a {
    white-space: nowrap;
    padding: 10px;
    gap: 6px;
    font-size: 10px;
  }
  .studio-nav nav a .icon {
    width: 14px;
  }
  .studio-nav nav small {
    display: none;
  }
  .studio-topbar {
    height: 63px;
    padding: 12px 18px;
    gap: 10px;
  }
  .studio-breadcrumb {
    display: none;
  }
  .studio-top-actions .btn-lightline {
    font-size: 9px;
    padding: 7px 10px;
  }
  .studio-main {
    padding: 26px 18px;
  }
  .studio-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .studio-page-heading h1 {
    font-size: 27px;
  }
  .studio-page-heading p {
    line-height: 1.8;
  }
  .studio-stat {
    padding: 14px;
  }
  .studio-stat > small {
    font-size: 8px;
    line-height: 1.6;
  }
  .studio-stat > strong {
    font-size: 27px;
  }
  .studio-stat > div > span {
    font-size: 9px;
  }
  .stat-icon {
    width: 26px;
    height: 26px;
  }
  .studio-overview-grid {
    gap: 18px;
  }
  .welcome-art {
    opacity: 0.35;
    right: -40px;
  }
  .studio-shell .admin-panel-head {
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
  }
  .library-controls {
    padding: 14px;
    gap: 10px;
    flex-direction: column;
  }
  .library-controls select {
    max-width: none;
  }
  .settings-savebar {
    align-items: flex-start;
    flex-direction: column;
  }
  .studio-shell .admin-wrap {
    padding: 25px 18px;
  }
  .studio-foot {
    padding: 18px;
    flex-wrap: wrap;
    font-size: 8px;
  }
}
/* Keep dense workspace labels readable on everyday laptop displays. */
.studio-stat > small { font-size: 10px; line-height: 1.6; }
.studio-shell .table { font-size: 11px; }
.studio-shell .table th { font-size: 9px; }
.studio-shell .table-art small { font-size: 9px; }
.studio-shell .table-actions button, .studio-shell .table-actions a { font-size: 10px; }
.studio-distribution > p, .mix-row, .admin-panel-head p { font-size: 10px; }

.download-formats { border: 0; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.download-formats legend { float: none; width: 100%; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.download-option { display: flex; align-items: center; gap: 9px; border: 1px solid #48213025; border-radius: 12px; padding: 12px 16px; cursor: pointer; font-size: 13px; }
.download-option:has(input:checked) { background: #dcebb1; border-color: #572335; }
.download-option input { accent-color: #572335; width: 16px; height: 16px; }
.download-option small { margin-left: 5px; opacity: .65; }
.download-option:focus-within { outline: 2px solid #572335; outline-offset: 3px; }

.large-preview { position: relative; }
.preview-download-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(248,246,240,.6));
  color: #3c1c28;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 6px 24px rgba(60,28,40,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.preview-download-badge svg { width: 16px; height: 16px; }
.download-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.download-history { margin-top: 24px; }
@media (max-width: 600px) { .preview-download-badge { top: 10px; right: 10px; font-size: 11px; padding: 8px 11px; } }

.category-btn.subcategory-btn { padding-left: 26px; font-size: 11px; }
.category-btn.subcategory-btn svg { width: 14px; height: 14px; opacity: .65; }
.admin-subcategory { display: block; margin-top: 4px; color: #7b706f; font-size: 11px; }

/* Library navigation */
.category-list { gap: 7px; }
.category-list > .category-btn {
  min-height: 52px; gap: 9px; padding: 9px 10px;
  border: 1px solid transparent; border-radius: 14px;
  color: #75686b; font-weight: 550;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
}
.category-icon {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center; border-radius: 9px;
  background: rgba(87,35,53,.045);
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.category-label { white-space: nowrap; }
.category-btn .count {
  padding: 3px 7px; min-width: 28px; text-align: center;
  border-radius: 7px; font-size: 10px; font-weight: 600;
  font-variant-numeric: tabular-nums; background: rgba(87,35,53,.045);
}
.category-list > .category-btn.active {
  color: #572335; background: linear-gradient(120deg, #f0e2e5, #f5ebeb);
  border-color: rgba(87,35,53,.08);
  box-shadow: 0 3px 9px rgba(60,28,40,.035), inset 0 1px 0 #fff9;
}
.category-btn.active .category-icon { background: #572335; color: #fff; }
.category-btn.active .count { background: #fff9; color: #572335; }
.category-chevron {
  display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px;
  border-radius: 6px; color: #8d757e; background: rgba(87,35,53,.04);
  transition: transform .38s cubic-bezier(.22,1,.36,1), background .2s ease;
}
.category-chevron svg { width: 13px; height: 13px; }
.category-btn[aria-expanded="true"] .category-chevron { transform: rotate(90deg); background: #eadddf; color: #572335; }
#illustration-subcategories {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .4s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
#illustration-subcategories.is-expanded { grid-template-rows: 1fr; opacity: 1; }
.subcategory-clip { min-height: 0; overflow: hidden; }
.subcategory-items {
  margin: 2px 0 6px 24px; padding: 3px 0 3px 10px;
  border-left: 1px solid #57233520;
  transform: translateY(-8px);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.is-expanded .subcategory-items { transform: translateY(0); }
.category-btn.subcategory-btn {
  min-height: 38px; padding: 8px; gap: 8px; margin: 2px 0;
  border-radius: 9px; font-size: 11px; line-height: 1.45;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.subcategory-dot { width: 4px; height: 4px; border-radius: 50%; background: #b6a2aa; flex: 0 0 4px; }
.subcategory-btn.active .subcategory-dot { background: #572335; box-shadow: 0 0 0 3px #57233512; }
.subcategory-btn .count { background: transparent; padding: 2px 3px; }
.category-btn:focus-visible { outline: 2px solid #8d5065; outline-offset: 3px; }
@media (hover: hover) {
  .category-list > .category-btn:hover { background: #eee5e580; border-color: #57233512; color: #572335; }
  .category-list > .category-btn:hover .category-icon { transform: translateY(-1px); }
  .category-btn.subcategory-btn:hover { background: #eee5e580; color: #572335; transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .category-list *, #illustration-subcategories { transition: none !important; }
}
@media (min-width: 701px) and (max-width: 1200px) {
  .category-list > .category-btn { gap: 6px; padding: 8px 6px; font-size: 11px; }
  .category-icon { width: 24px; height: 28px; flex-basis: 24px; }
  .category-btn .count { padding: 3px 4px; min-width: 22px; font-size: 9px; }
  .category-chevron { width: 16px; height: 18px; flex-basis: 16px; }
}

.format-count {
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(87,35,53,.045);
  color: #97878c;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.filter-row:has(input:checked) .format-count { background: #eddfdf; color: #572335; }
