/* Ananda Website Studio — scoped, locally bundled admin styles. */
:root {
  --studio-forest: #173f35;
  --studio-deep: #102f29;
  --studio-gold: #c5aa71;
  --studio-paper: #f5f6f4;
  --studio-line: #e4e8e4;
  --studio-muted: #69776f;
  --studio-ink: #233c32;
  --studio-sidebar: 258px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--studio-paper);
  color: var(--studio-ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: var(--studio-forest);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c4a461;
  outline-offset: 3px;
}
.muted {
  color: var(--studio-muted);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 2000;
  background: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.btn {
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 7px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
  padding: 9px 16px;
}
.btn-sm {
  min-height: 38px;
  padding: 6px 12px;
}
.btn-primary {
  --bs-btn-bg: #173f35;
  --bs-btn-border-color: #173f35;
  --bs-btn-hover-bg: #102f29;
  --bs-btn-hover-border-color: #102f29;
  --bs-btn-active-bg: #102f29;
  --bs-btn-active-border-color: #102f29;
  --bs-btn-disabled-bg: #173f35;
  --bs-btn-disabled-border-color: #173f35;
}
.btn-outline-secondary {
  --bs-btn-color: #35483e;
  --bs-btn-border-color: #d3dcd5;
  --bs-btn-hover-bg: #eaf0ea;
  --bs-btn-hover-color: #173f35;
  --bs-btn-hover-border-color: #bccabf;
  background: #fff;
}
.btn-danger {
  background: #a23f39;
  border-color: #a23f39;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--studio-line);
  border-radius: 7px;
  background: #fff;
  color: #355447;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eef4ed;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: #234d3d;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  min-height: 32px;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--studio-sidebar);
  background: var(--studio-deep);
  color: #dce8df;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 16px;
  z-index: 1040;
  overflow-y: auto;
}
.admin-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #fff;
  padding: 0 12px 22px;
  text-decoration: none !important;
}
.admin-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #f7f7ed;
  padding: 4px;
}
.admin-brand > span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}
.admin-brand > span > span {
  font-family: "DM Sans", sans-serif;
  display: block;
  color: #c3cdb6;
  letter-spacing: 2px;
  font-size: 0.65rem;
  margin-top: 10px;
}
.workspace-label {
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #2f4b41;
  border-bottom: 1px solid #2f4b41;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.workspace-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #648173;
  border-radius: 6px;
  color: #dccba5;
  font-family: Georgia, serif;
}
.workspace-label small {
  display: block;
  font-size: 0.75rem;
  color: #a3b4a7;
}
.workspace-label > i {
  margin-left: auto;
  color: #9eb09f;
}
.nav-group-title {
  font-size: 0.7rem;
  letter-spacing: 1.7px;
  color: #95ad9d;
  margin: 23px 12px 10px;
  font-weight: 600;
}
.nav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #c4d3c8;
  font-size: 0.875rem;
  border-radius: 6px;
  margin: 3px 0;
  min-height: 42px;
  text-decoration: none !important;
}
.nav-item-link > i {
  font-size: 1.05rem;
  opacity: 0.85;
}
.nav-item-link:hover {
  color: #fff;
  background: #21463b;
}
.nav-item-link.active {
  background: #315749;
  color: #fff;
  box-shadow: inset 3px 0 var(--studio-gold);
}
.nav-count {
  margin-left: auto;
  color: #b9d0bd;
  font-size: 0.75rem;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.language-mark {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  align-items: center;
  border-top: 1px solid #2f4b41;
  padding: 16px 10px;
}
.language-mark small {
  display: block;
  font-size: 0.75rem;
  color: #8fa99b;
  margin-top: 2px;
}
.language-mark i {
  font-size: 1.1rem;
  color: var(--studio-gold);
}
.sidebar-bottom > a {
  font-size: 0.875rem;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  color: #d9dfd3;
}
.admin-shell {
  margin-left: var(--studio-sidebar);
  min-height: 100vh;
}
.admin-topbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--studio-line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.topbar-breadcrumb {
  display: flex;
  gap: 15px;
  font-size: 0.875rem;
  color: var(--studio-muted);
  align-items: center;
}
.topbar-breadcrumb i {
  font-size: 0.6rem;
}
.topbar-breadcrumb strong {
  font-weight: 500;
  color: #2b4438;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.demo-badge {
  font-size: 0.75rem;
  color: #69776f;
  display: flex;
  gap: 6px;
  align-items: center;
}
.owner-avatar {
  width: 36px;
  height: 36px;
  background: #edf0e8;
  border: 1px solid #e0e7dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.admin-main {
  padding: 35px 36px 0;
  max-width: 1680px;
  margin: auto;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 0.69rem;
  color: #788476;
  font-weight: 600;
  letter-spacing: 1.7px;
  margin-bottom: 5px;
}
h1 {
  font-size: 2.125rem;
  letter-spacing: -1.2px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
}
.page-heading p {
  font-size: 0.875rem;
  color: var(--studio-muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.preview-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #edf1e8;
  border: 1px solid #dce5d5;
  color: #50644a;
  border-radius: 7px;
  padding: 10px 15px;
  font-size: 0.8125rem;
  margin-bottom: 24px;
}
.preview-note > i {
  font-size: 1rem;
  flex-shrink: 0;
}
.preview-note strong {
  font-weight: 600;
}
.preview-note .text-button {
  margin-left: auto;
  white-space: nowrap;
  color: #436038;
  font-size: 0.8125rem;
}
.studio-card {
  background: #fff;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  overflow: hidden;
}
.card-header-studio {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 21px 23px;
  border-bottom: 1px solid #eef0ed;
}
.card-header-studio h2 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}
.card-header-studio p {
  font-size: 0.875rem;
  margin: 3px 0 0;
  color: var(--studio-muted);
}
.card-header-studio a {
  font-size: 0.875rem;
  font-weight: 500;
}
.studio-card-body {
  padding: 23px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.metric-card {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.metric-label {
  font-size: 0.875rem;
  color: var(--studio-muted);
}
.metric-value {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.3;
  margin: 9px 0 5px;
}
.metric-detail {
  font-size: 0.75rem;
  color: #748074;
}
.metric-icon {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf3ec;
  color: #3b6144;
  border-radius: 9px;
  font-size: 1.2rem;
}
.metric-icon.gold {
  background: #f8f3e7;
  color: #a3833c;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.home-summary {
  display: flex;
  gap: 18px;
  align-items: center;
}
.home-summary img {
  width: 110px;
  height: 125px;
  object-fit: cover;
  border-radius: 7px;
}
.home-summary h3 {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 9px;
}
.home-summary p {
  font-size: 0.875rem;
  color: var(--studio-muted);
  margin: 8px 0;
}
.content-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.875rem;
}
.progress-thin {
  height: 5px;
  background: #edf1e9;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 22px;
}
.progress-thin > span {
  display: block;
  background: #719169;
  height: 100%;
}
.content-check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 0.875rem;
  padding: 10px 0;
  color: #4d6053;
}
.content-check i {
  color: #658359;
}
.content-check small {
  display: block;
  color: var(--studio-muted);
  font-size: 0.75rem;
  margin-top: 3px;
}
.quiet-card {
  background: #f8f9f4;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.quick-link {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  font-size: 0.875rem;
}
.quick-link i {
  font-size: 1.2rem;
  color: #4d6c53;
}
.quick-link small {
  display: block;
  font-size: 0.75rem;
  color: var(--studio-muted);
  margin-top: 3px;
}
.recent-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 23px;
  border-bottom: 1px solid #eef0ed;
}
.recent-row:last-child {
  border-bottom: 0;
}
.recent-row img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 7px;
}
.recent-row h3 {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}
.recent-row small {
  font-size: 0.75rem;
  color: var(--studio-muted);
}
.recent-row .status-pill {
  margin-left: auto;
}
.recent-row .icon-button {
  border: 0;
  width: 34px;
  height: 34px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
  background: #eaf1e6;
  color: #47683d;
}
.status-pill.draft {
  background: #f3eee3;
  color: #8a6a33;
}
.status-pill.archived {
  background: #eef0f2;
  color: #6f7680;
}
.status-pill.local {
  background: #e9f0f2;
  color: #4c727e;
}
.table-tools {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--studio-line);
}
.search-field {
  position: relative;
  min-width: 220px;
  flex: 1;
  max-width: 360px;
}
.search-field > i {
  position: absolute;
  left: 13px;
  top: 11px;
  color: #869285;
  font-size: 0.9rem;
}
.search-field input {
  padding-left: 37px;
}
.form-control,
.form-select {
  font-size: 0.875rem;
  border-color: #dce3db;
  border-radius: 6px;
  min-height: 42px;
  color: #304a3b;
}
.form-control:focus,
.form-select:focus {
  border-color: #769774;
  box-shadow: 0 0 0 3px #66915e1a;
}
.form-control::placeholder {
  color: #879386;
}
.table-tools > .form-select {
  width: auto;
  min-width: 150px;
}
.table-tools .table-total {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--studio-muted);
}
.table-wrap {
  padding: 0 22px 16px;
  overflow-x: auto;
  max-width: 100%;
}
.studio-table {
  font-size: 0.875rem;
  min-width: 720px;
  width: 100% !important;
  --bs-table-bg: transparent;
  --bs-table-color: #364d3e;
}
.studio-table thead th {
  color: #778573;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  padding-top: 17px !important;
  padding-bottom: 17px !important;
  border-bottom: 1px solid #e6ebe3 !important;
  white-space: nowrap;
}
.studio-table tbody td {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  vertical-align: middle;
  border-bottom: 1px solid #edf0e9 !important;
  white-space: normal;
}
.studio-table tbody tr:hover {
  background: #fafbf8;
}
.studio-table td:first-child {
  min-width: 245px;
}
.record-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.record-name img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 7px;
}
.record-name .record-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #e4eadf;
  border-radius: 7px;
  background: #f6f8f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f875e;
  flex-shrink: 0;
}
.record-name strong {
  font-weight: 500;
  color: #293f32;
  font-size: 0.875rem;
  display: block;
  max-width: 310px;
  overflow-wrap: anywhere;
}
.record-name small {
  font-size: 0.75rem;
  color: #87917f;
  display: block;
  margin-top: 3px;
}
.language-pill {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 2px 5px;
  border: 1px solid #dce5d7;
  border-radius: 4px;
  color: #62765b;
  margin: 0 3px 0 0;
}
.language-pill.missing {
  border-color: #e4d7be;
  color: #9a7b4b;
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.row-actions .icon-button {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  border-color: transparent;
}
.row-actions .danger:hover {
  background: #fff0ec;
  color: #a85040;
}
.dt-container {
  font-size: 0.8125rem;
  color: #6d7f66;
}
.dt-container .dt-layout-row {
  margin-top: 16px;
}
.dt-container .pagination {
  gap: 5px;
}
.page-link {
  border-radius: 5px !important;
  border-color: #e1e6dc;
  background: #fff;
  color: #607552;
  font-size: 0.8125rem;
  min-width: 32px;
  text-align: center;
}
.active > .page-link {
  background: #173f35;
  border-color: #173f35;
}
.dt-length label {
  font-size: 0.8125rem;
  margin-left: 9px;
}
.dt-length select {
  min-height: 32px;
}
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--studio-muted);
}
.empty-state i {
  font-size: 2.4rem;
  color: #879b78;
  display: block;
  margin-bottom: 12px;
}
.empty-state h2 {
  font-size: 1.15rem;
  color: #354c3c;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.section-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section-card .section-icon {
  background: #eef3e9;
  padding: 9px;
  border-radius: 8px;
  font-size: 1.3rem;
  color: #648051;
  margin-bottom: 15px;
}
.section-card h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 500;
}
.section-card p {
  font-size: 0.875rem;
  color: var(--studio-muted);
  margin-bottom: 18px;
}
.section-card .text-button {
  margin-top: auto;
}
.slide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.slide-card {
  background: #fff;
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  overflow: hidden;
}
.slide-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.slide-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fffffff0;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
}
.slide-card-body {
  padding: 18px;
}
.slide-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  color: #243f2b;
  line-height: 1.2;
  margin: 10px 0;
}
.slide-card p {
  font-size: 0.875rem;
  color: var(--studio-muted);
}
.slide-card-footer {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 15px;
}
.order-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 22px;
  border-bottom: 1px solid #edf0e9;
}
.order-grip {
  color: #bcc5b6;
  font-size: 1.1rem;
}
.order-index {
  width: 26px;
  color: #91a083;
  font-size: 0.875rem;
}
.order-row strong {
  font-weight: 500;
  font-size: 0.875rem;
}
.order-row small {
  display: block;
  color: var(--studio-muted);
  font-size: 0.75rem;
}
.order-controls {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.order-controls .icon-button {
  width: 36px;
  height: 36px;
}
.order-controls button:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.menu-toolbar {
  display: flex;
  gap: 10px;
  padding: 18px 22px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.media-card {
  background: #fff;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.media-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f4f5ee;
}
.media-card-body {
  padding: 12px;
}
.media-card strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  margin-bottom: 3px;
}
.media-card small {
  font-size: 0.75rem;
  color: var(--studio-muted);
}
.media-card .row-actions {
  margin-top: 8px;
}
.media-picker-button {
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.media-picker-button img {
  height: 130px;
  width: 100%;
  object-fit: cover;
}
.media-picker-button span {
  display: block;
  padding: 10px;
  font-size: 0.8125rem;
}
.gallery-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.gallery-toolbar .form-select {
  width: 180px;
}
.gallery-toolbar .table-total {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--studio-muted);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}
.album-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
}
.album-card img {
  width: 58px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
}
.album-card h2 {
  font-size: 1rem;
  margin: 0 0 4px;
}
.album-card span {
  font-size: 0.75rem;
  color: var(--studio-muted);
}
.album-card .icon-button {
  margin-left: auto;
  border: 0;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.settings-section {
  margin-bottom: 20px;
}
.settings-section .studio-card-body {
  padding: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  min-width: 0;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: #3b5140;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.form-hint {
  font-size: 0.75rem;
  color: #7f8c77;
  margin-top: 6px;
}
.settings-note {
  background: #eff3e9;
  border: 1px solid #dce6d3;
  padding: 22px;
  border-radius: 9px;
  font-size: 0.875rem;
  color: #56694c;
  align-self: start;
}
.settings-note h2 {
  font-size: 1rem;
  color: #324c34;
  margin-bottom: 14px;
}
.settings-note p {
  margin: 9px 0;
  line-height: 1.65;
}
.settings-savebar {
  position: sticky;
  bottom: 0;
  border: 1px solid #dce4d7;
  border-radius: 8px;
  background: #ffffffed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  margin-top: 24px;
  z-index: 5;
}
.color-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.color-input-row input[type="color"] {
  width: 48px;
  height: 42px;
  border: 1px solid #d8e2d2;
  background: #fff;
  border-radius: 5px;
  padding: 4px;
}
.appearance-preview {
  background: #173f35;
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-position: right bottom;
  background-size: 120px;
  background-repeat: no-repeat;
  margin-bottom: 17px;
}
.appearance-preview small {
  font-size: 0.6875rem;
  letter-spacing: 2px;
  color: #d6c794;
}
.appearance-preview h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  max-width: 230px;
  margin: 12px 0;
}
.appearance-preview .appearance-cta {
  padding: 8px 13px;
  border-radius: 4px;
  background: #c5aa71;
  color: #173f35;
  align-self: flex-start;
  font-size: 0.8125rem;
}
.admin-footer {
  padding: 28px 0 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8d9986;
  gap: 14px;
}
.admin-footer .muted {
  padding: 0 7px;
}
.editor-panel {
  width: 820px !important;
  max-width: 100vw;
  background: #fff;
  --bs-offcanvas-padding-x: 25px;
  --bs-offcanvas-padding-y: 23px;
}
.editor-panel h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #2d462e;
  overflow-wrap: anywhere;
}
.editor-panel .offcanvas-header {
  border-bottom: 1px solid var(--studio-line);
  gap: 12px;
}
.editor-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--studio-line);
  padding: 0 24px;
  gap: 26px;
}
.editor-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--studio-muted);
  padding: 16px 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.editor-tabs button.active {
  border-bottom-color: var(--studio-forest);
  color: var(--studio-forest);
}
.editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}
.editor-pane[hidden] {
  display: none;
}
.editor-pane h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 22px 0 16px;
  border-bottom: 1px solid #eef1e9;
  padding-bottom: 10px;
}
.editor-pane h3:first-child {
  margin-top: 0;
}
.language-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.language-column > h4 {
  font-size: 0.875rem;
  border-bottom: 1px solid #e4ecdb;
  padding-bottom: 12px;
  margin: 0 0 17px;
}
.language-column h4 span {
  font-size: 0.6875rem;
  font-weight: 500;
  background: #edf2e6;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 7px;
  color: #678157;
}
.language-column .form-field {
  margin-bottom: 18px;
}
.editor-footer {
  padding: 17px 25px;
  border-top: 1px solid var(--studio-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fbfcf8;
}
.editor-footer > div:first-child {
  font-size: 0.75rem;
  color: var(--studio-muted);
}
.editor-footer > div:last-child {
  display: flex;
  gap: 8px;
}
.editor-image {
  display: flex;
  gap: 15px;
  align-items: center;
}
.editor-image img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #e3eada;
}
.editor-image p {
  font-size: 0.8125rem;
  color: var(--studio-muted);
  margin: 8px 0 0;
}
.copy-block {
  padding: 15px;
  background: #f8faf4;
  border: 1px solid #e5ecde;
  border-radius: 7px;
  margin-bottom: 15px;
}
.copy-block summary {
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 32px;
  overflow-wrap: anywhere;
}
.copy-block .language-editor {
  margin-top: 15px;
}
.copy-block .form-field {
  margin: 0;
}
.editor-pane textarea {
  line-height: 1.65;
  resize: vertical;
}
.search-preview {
  border: 1px solid #e1e7db;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  background: #fcfdf8;
  overflow-wrap: anywhere;
}
.search-preview small {
  font-size: 0.75rem;
  color: #678450;
}
.search-preview h4 {
  color: #235baa;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 8px 0;
}
.search-preview p {
  font-size: 0.875rem;
  color: #65725a;
  margin: 0;
}
.counter {
  font-size: 0.75rem;
  font-weight: 400;
  color: #8c967f;
}
.counter.over {
  color: #a46b39;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e9eee2;
  padding: 16px 0;
  font-size: 0.875rem;
}
.switch-row small {
  display: block;
  font-size: 0.75rem;
  color: var(--studio-muted);
  margin-top: 3px;
}
.form-switch .form-check-input {
  width: 2.5em;
  height: 1.3em;
  margin: 0;
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--studio-forest);
  border-color: var(--studio-forest);
}
.schema-preview {
  padding: 18px;
  background: #f7f9f2;
  border: 1px solid #e2e9dc;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #587044;
  max-height: 310px;
  white-space: pre-wrap;
  overflow: auto;
  overflow-wrap: anywhere;
}
.toast-region {
  position: fixed;
  right: 25px;
  bottom: 24px;
  max-width: min(440px, calc(100vw - 32px));
  z-index: 2000;
  pointer-events: none;
}
.studio-toast {
  border: 1px solid #c8d6bf;
  border-radius: 8px;
  padding: 15px 18px;
  background: #173f35;
  color: #fff;
  box-shadow: 0 7px 30px #173f3529;
  margin-top: 10px;
  font-size: 0.875rem;
  display: flex;
  gap: 10px;
}
.studio-toast.error {
  background: #823f32;
  border-color: #823f32;
}
.noscript-note {
  background: #fff0df;
  padding: 25px;
  position: fixed;
  bottom: 0;
  z-index: 3000;
  width: 100%;
}
.storage-warning {
  padding: 12px;
  background: #fff2df;
  border: 1px solid #f2d7ae;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.mobile-menu,
.sidebar-shade {
  display: none;
}
@media (min-width: 1500px) {
  .admin-main {
    padding-top: 42px;
  }
  .metrics-grid {
    gap: 22px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
@media (max-width: 1199px) {
  :root {
    --studio-sidebar: 234px;
  }
  .admin-main {
    padding: 28px 25px 0;
  }
  .admin-topbar {
    padding: 0 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
  .metric-card {
    padding: 18px;
  }
  .metric-icon {
    width: 34px;
    height: 34px;
  }
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}
@media (max-width: 991px) {
  :root {
    --studio-sidebar: 228px;
  }
  .admin-main {
    padding: 25px 20px 0;
  }
  .dashboard-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .dashboard-aside > .studio-card {
    margin: 0 !important;
  }
  .section-grid,
  .slide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-note {
    order: 1;
  }
  .topbar-actions {
    gap: 12px;
  }
  .demo-badge {
    display: none;
  }
  .album-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 767px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: 258px;
  }
  .admin-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .sidebar-open .admin-sidebar {
    transform: translateX(0);
  }
  .sidebar-open .sidebar-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #11291ac4;
    z-index: 1039;
  }
  .sidebar-open {
    overflow: hidden;
  }
  .admin-topbar {
    height: 65px;
    padding: 0 17px;
    gap: 10px;
  }
  .topbar-breadcrumb {
    gap: 8px;
    margin-right: auto;
  }
  .topbar-breadcrumb > span,
  .topbar-breadcrumb > i {
    display: none;
  }
  .topbar-preview {
    display: none;
  }
  .owner-avatar {
    width: 32px;
    height: 32px;
  }
  .admin-main {
    padding: 25px 17px 0;
  }
  .page-heading {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 1.85rem;
    letter-spacing: -0.8px;
  }
  .heading-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .preview-note {
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    padding: 12px;
  }
  .preview-note > span {
    flex: 1;
  }
  .preview-note .text-button {
    margin-left: 24px;
  }
  .metrics-grid {
    gap: 12px;
    margin-bottom: 18px;
  }
  .metric-card {
    padding: 16px 14px;
    gap: 5px;
  }
  .metric-value {
    font-size: 1.9rem;
  }
  .metric-label {
    font-size: 0.8125rem;
  }
  .metric-icon {
    width: 29px;
    height: 29px;
    font-size: 1rem;
  }
  .metric-detail {
    font-size: 0.75rem;
  }
  .dashboard-aside {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .card-header-studio {
    padding: 18px;
  }
  .studio-card-body {
    padding: 18px;
  }
  .recent-row {
    padding: 14px 18px;
    gap: 10px;
  }
  .recent-row .status-pill {
    display: none;
  }
  .recent-row .icon-button {
    margin-left: auto;
  }
  .quick-link {
    padding: 13px;
    gap: 9px;
  }
  .quick-link small {
    font-size: 0.6875rem;
  }
  .section-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .section-card {
    padding: 16px;
  }
  .section-card h2 {
    font-size: 1rem;
  }
  .section-card p {
    font-size: 0.8125rem;
  }
  .slide-grid {
    grid-template-columns: 1fr;
  }
  .table-tools {
    padding: 15px;
    gap: 10px;
  }
  .table-tools .search-field {
    max-width: none;
    flex-basis: 100%;
    min-width: 0;
  }
  .table-tools > .form-select {
    flex: 1;
    min-width: 0;
  }
  .table-total {
    display: none;
  }
  .table-wrap {
    padding: 0 15px 14px;
  }
  .studio-table {
    min-width: 680px;
  }
  .dt-container > .row {
    gap: 12px;
  }
  .dt-container .dt-info {
    text-align: left !important;
  }
  .dt-container .dt-paging {
    overflow: auto;
  }
  .media-grid {
    gap: 12px;
  }
  .media-card-image {
    height: 135px;
  }
  .media-card-body {
    padding: 10px;
  }
  .gallery-toolbar .search-field {
    min-width: 0;
    max-width: none;
    flex-basis: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .settings-section .studio-card-body {
    padding: 18px;
  }
  .settings-savebar {
    padding: 13px 15px;
  }
  .settings-savebar > span {
    max-width: 140px;
    font-size: 0.75rem;
  }
  .order-row {
    padding: 13px 14px;
    gap: 10px;
  }
  .order-grip {
    display: none;
  }
  .order-row strong {
    font-size: 0.8125rem;
  }
  .order-controls {
    gap: 1px;
  }
  .order-controls .icon-button {
    width: 33px;
    height: 36px;
  }
  .order-index {
    width: 18px;
  }
  .admin-footer {
    flex-direction: column;
    gap: 4px;
    font-size: 0.6875rem;
  }
  .language-editor {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .editor-body {
    padding: 20px;
  }
  .editor-tabs {
    padding: 0 20px;
    gap: 22px;
  }
  .editor-footer {
    padding: 14px 18px;
    align-items: flex-end;
  }
  .editor-footer > div:first-child {
    max-width: 110px;
  }
  .editor-footer .btn {
    font-size: 0.8125rem;
    padding: 8px 11px;
  }
  .editor-panel .offcanvas-header {
    padding: 20px;
  }
  .editor-panel h2 {
    font-size: 1.2rem;
  }
  .home-summary img {
    width: 90px;
    height: 110px;
  }
  .toast-region {
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
