:root {
  --ink: #0d1210;
  --acid: #c9a441;
  --paper: #eef0ec;
  --line: #dfe3de;
  --muted: #747d77;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 34px 28px;
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
}

.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 30px;
  height: 25px;
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
}

.brand-mark i {
  width: 7px;
  height: 15px;
  background: white;
  transform: skewX(-24deg);
}

.brand-mark i:nth-child(2) {
  height: 22px;
}

.brand-mark i:nth-child(3) {
  height: 11px;
  background: var(--acid);
}

.sidebar nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
}

.sidebar nav a {
  min-height: 54px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: white;
}

.sidebar nav span {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.sidebar-user {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-user small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
}

.sidebar-user strong {
  font-size: 12px;
}

.sidebar-user a {
  margin-top: 6px;
  color: var(--acid);
  font-size: 10px;
}

.main {
  min-width: 0;
  padding: 55px clamp(26px, 5vw, 80px) 90px;
}

.page-header {
  margin-bottom: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.page-header h1 {
  margin: 12px 0 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 570;
  letter-spacing: -0.06em;
}

.live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66705f;
  font-size: 10px;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #92ad00;
  box-shadow: 0 0 0 5px rgba(146, 173, 0, 0.1);
}

.panel {
  margin-bottom: 24px;
  padding: clamp(25px, 4vw, 52px);
  border: 1px solid rgba(13, 18, 16, 0.09);
  background: white;
}

.panel-heading {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.panel-heading span {
  color: #7a8c00;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.panel-heading h2 {
  margin: 9px 0 0;
  font-size: 26px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-action-button {
  min-height: 42px;
  padding: 0 15px;
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 650;
}

.panel-heading .header-action-button span {
  color: var(--acid);
  font-size: 17px;
  letter-spacing: 0;
}

.product-form-panel {
  max-width: 1200px;
}

.content-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.content-form label,
.category-row label,
.stack-form label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.content-form label > span,
.category-row label > span,
.stack-form label > span {
  color: #68706b;
  font-size: 10px;
}

.content-form label > small {
  color: #858c87;
  font-size: 9px;
  line-height: 1.55;
}

.content-form input,
.content-form select,
.content-form textarea,
.category-row input,
.stack-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d7dcd7;
  border-radius: 0;
  outline: none;
  background: #fafbf9;
  color: var(--ink);
  resize: vertical;
  font-size: 12px;
}

.content-form input:focus,
.content-form select:focus,
.content-form textarea:focus,
.category-row input:focus,
.stack-form input:focus {
  border-color: #99ad10;
  box-shadow: 0 0 0 3px rgba(153, 173, 16, 0.09);
}

.wide {
  grid-column: 1 / -1;
}

.upload {
  padding: 17px;
  border: 1px dashed #bdc5bd;
  background: #f7f8f5;
}

.upload input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.upload small {
  color: #858c87;
  font-size: 9px;
}

.rich-editor-field {
  min-width: 0;
}

.rich-editor-label {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rich-editor-label > span {
  color: #68706b;
  font-size: 10px;
}

.rich-editor-label > small {
  color: #969d98;
  font-size: 9px;
}

.rich-editor-toolbar {
  min-height: 44px;
  padding: 6px;
  border: 1px solid #d7dcd7;
  border-bottom: 0;
  background: #f1f3ef;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.rich-editor-toolbar button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  background: white;
  color: #515a54;
  cursor: pointer;
  font-size: 10px;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button:focus-visible {
  border-color: #99ad10;
  color: #657600;
  outline: none;
}

.rich-editor-toolbar button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.rich-editor-color-control {
  min-height: 30px;
  padding: 3px 7px 3px 9px;
  border: 1px solid transparent;
  background: white;
  color: #515a54;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.rich-editor-color-control:hover,
.rich-editor-color-control:focus-within {
  border-color: #99ad10;
  color: #657600;
}

.rich-editor-color-control > span {
  font-size: 10px;
  white-space: nowrap;
}

.rich-editor-color-control input[type="color"] {
  width: 24px;
  height: 22px;
  padding: 2px;
  border: 1px solid #d7dcd7;
  background: white;
  cursor: pointer;
}

.rich-editor-status {
  min-height: 22px;
  padding: 5px 9px;
  border-right: 1px solid #d7dcd7;
  border-left: 1px solid #d7dcd7;
  background: #fafbf9;
  color: #788078;
  display: block;
  font-size: 8px;
}

.rich-editor-status:empty {
  min-height: 0;
  padding: 0;
  border: 0;
}

.rich-editor-surface {
  min-height: 280px;
  max-height: 620px;
  padding: 22px;
  border: 1px solid #d7dcd7;
  outline: none;
  background: #fff;
  color: #242a26;
  overflow: auto;
  font-size: 13px;
  line-height: 1.75;
}

.rich-editor-surface:focus {
  border-color: #99ad10;
  box-shadow: 0 0 0 3px rgba(153, 173, 16, 0.09);
}

.rich-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: #a0a6a2;
  pointer-events: none;
}

.rich-editor-surface h2 {
  margin: 24px 0 12px;
  font-size: 23px;
}

.rich-editor-surface h3 {
  margin: 20px 0 10px;
  font-size: 18px;
}

.rich-editor-surface p {
  margin: 0 0 12px;
}

.rich-editor-surface table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

.rich-editor-surface th,
.rich-editor-surface td {
  padding: 10px 12px;
  border: 1px solid #d7dcd7;
  text-align: left;
}

.rich-editor-surface th {
  background: #f1f3ef;
}

.rich-editor-surface blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid #99ad10;
  background: #f7f8f5;
}

.rich-editor-surface img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border: 1px solid #e0e4df;
}

.content-form .visibility-toggle {
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid #dfe3de;
  background: #f7f8f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 13px;
}

.content-form .visibility-toggle > input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
}

.visibility-switch {
  width: 42px;
  height: 23px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 20px;
  background: #b7beb8;
  display: flex;
  align-items: center;
  transition: background 160ms ease;
}

.visibility-switch i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(13, 18, 16, 0.2);
  transition: transform 160ms ease;
}

.visibility-toggle > input:checked + .visibility-switch {
  background: #829600;
}

.visibility-toggle > input:checked + .visibility-switch i {
  transform: translateX(19px);
}

.visibility-toggle > input:focus-visible + .visibility-switch {
  outline: 3px solid rgba(153, 173, 16, 0.2);
  outline-offset: 2px;
}

.content-form .visibility-copy {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visibility-copy strong {
  font-size: 11px;
}

.visibility-copy small {
  color: #7b837e;
  font-size: 9px;
}

.primary-button,
.stack-form button {
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  background: var(--ink);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 650;
  font-size: 12px;
}

.primary-button span,
.stack-form button span {
  color: var(--acid);
  font-size: 17px;
}

.flash {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 3px solid #809400;
  background: #f4f8dc;
  color: #566300;
  font-size: 12px;
}

.flash.error {
  border-color: #aa4338;
  background: #fff1ef;
  color: #8d3128;
}

.catalog-filter {
  margin: -8px 0 24px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: #f7f8f5;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.catalog-filter label {
  min-width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.catalog-filter label span {
  color: #68706b;
  font-size: 9px;
}

.catalog-filter select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid #d7dcd7;
  background: white;
  color: var(--ink);
  outline: none;
  font-size: 11px;
}

.catalog-filter select:focus {
  border-color: #99ad10;
  box-shadow: 0 0 0 3px rgba(153, 173, 16, 0.09);
}

.catalog-filter button,
.catalog-filter a {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 9px;
}

.catalog-filter a {
  border-color: #d4d9d4;
  background: white;
  color: #626a65;
}

.product-category-divider {
  min-height: 64px;
  margin-top: 28px;
  padding: 15px 0 13px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.product-category-divider:first-child {
  margin-top: 0;
}

.product-category-divider > div {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.product-category-divider span {
  color: #7a8c00;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-category-divider strong {
  font-size: 13px;
}

.product-category-divider small {
  color: #7b837e;
  font-size: 8px;
  letter-spacing: 0;
}

.product-list article {
  min-height: 100px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
}

.product-thumb {
  position: relative;
  height: 70px;
  overflow: hidden;
  background: #e9ece7;
  color: #727b75;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.product-thumb-button {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}

.product-thumb-button::after {
  content: "预览";
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 4px 6px;
  background: rgba(13, 18, 16, 0.8);
  color: white;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  font-size: 8px;
}

.product-thumb-button:hover::after,
.product-thumb-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.product-thumb-button:focus-visible {
  outline: 3px solid rgba(153, 173, 16, 0.35);
  outline-offset: 2px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list small {
  color: #839500;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.product-list h3 {
  margin: 6px 0 4px;
  font-size: 14px;
}

.product-list p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.media-badges {
  display: flex;
  gap: 8px;
}

.media-badges span,
.media-badge-button {
  padding: 7px 9px;
  border: 0;
  background: #f0f2ee;
  color: #717a74;
  font-size: 8px;
}

.media-badge-button {
  cursor: pointer;
}

.media-badge-button:hover,
.media-badge-button:focus-visible {
  background: #e8edcf;
  color: #657600;
  outline: none;
}

.media-badges .home-status.active {
  background: #f0f5d8;
  color: #667600;
}

.delete-button,
.edit-button,
.category-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d4d9d4;
  background: white;
  color: #606963;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.delete-button,
.category-actions .danger {
  color: #a33e36;
}

.edit-button {
  border-color: #b9c77a;
  color: #657600;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.inquiry-toolbar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.inquiry-status-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
}

.inquiry-status-tab {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: white;
  color: #626a65;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}

.inquiry-status-tab strong {
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 12px;
  background: #eef1ee;
  color: #69716c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.inquiry-status-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.inquiry-status-tab.active strong {
  background: #869900;
  color: white;
}

.inquiry-page-size label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7c847f;
  font-size: 9px;
}

.inquiry-page-size select {
  min-height: 38px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 10px;
}

.inquiry-list-summary {
  margin-bottom: 14px;
  padding: 11px 13px;
  background: #f5f7f4;
  color: #727a75;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
}

.inquiry-list {
  display: grid;
  gap: 16px;
}

.inquiry-record {
  border: 1px solid var(--line);
  background: #fafbf9;
}

.inquiry-record.processed {
  border-color: #dfe3df;
  background: #f6f7f5;
}

.inquiry-record > header {
  min-height: 78px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.inquiry-record > header > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inquiry-record > header span {
  color: #7a8c00;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.inquiry-record > header h3 {
  margin: 0;
  font-size: 16px;
}

.inquiry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inquiry-meta .language-badge {
  padding: 6px 8px;
  background: #eef3d2;
  color: #647500;
}

.inquiry-record > header .inquiry-status-badge {
  padding: 6px 8px;
  font-family: inherit;
  font-size: 9px;
}

.inquiry-record > header .inquiry-status-badge.unprocessed {
  background: #fff0dd;
  color: #a45e19;
}

.inquiry-record > header .inquiry-status-badge.processed {
  background: #e4f2e7;
  color: #397348;
}

.inquiry-meta time {
  color: #7b837e;
  font-size: 9px;
}

.inquiry-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inquiry-contact-grid > div {
  min-width: 0;
  min-height: 82px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inquiry-contact-grid > div:last-child {
  border-right: 0;
}

.inquiry-contact-grid span,
.inquiry-message > span {
  color: #858d88;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.inquiry-contact-grid strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.inquiry-message {
  padding: 19px 20px 22px;
  border-top: 1px solid var(--line);
}

.inquiry-message p {
  margin: 11px 0 0;
  color: #515a54;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.75;
}

.inquiry-actions {
  min-height: 62px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.inquiry-actions > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #858d88;
  font-size: 9px;
}

.inquiry-actions time {
  color: #65706a;
}

.inquiry-actions button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
}

.inquiry-actions button.primary {
  background: var(--ink);
  color: white;
}

.inquiry-actions button.secondary {
  border-color: #cbd1cc;
  background: white;
  color: #606963;
}

.inquiry-actions button:hover,
.inquiry-actions button:focus-visible {
  border-color: #819400;
  outline: 0;
}

.media-preview-dialog {
  width: min(980px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  overflow: visible;
}

.media-preview-dialog::backdrop {
  background: rgba(5, 9, 7, 0.82);
  backdrop-filter: blur(8px);
}

.media-preview-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d1210;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.media-preview-card > header {
  min-height: 76px;
  padding: 16px 18px 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.media-preview-card > header span {
  color: var(--acid);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.media-preview-card > header h2 {
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.media-preview-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.media-preview-close:hover,
.media-preview-close:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  outline: none;
}

.media-preview-stage {
  min-height: min(640px, 72vh);
  max-height: calc(100vh - 118px);
  padding: 20px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    #070a08;
  background-size: 28px 28px;
  display: grid;
  place-items: center;
  overflow: auto;
}

.media-preview-stage img,
.media-preview-stage video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 158px);
  object-fit: contain;
}

.media-preview-stage video {
  width: 100%;
  background: black;
}

.edit-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-manager {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fafbf9;
}

.gallery-manager > header {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gallery-manager > header span {
  color: #68706b;
  font-size: 10px;
}

.gallery-manager > header small {
  color: #8a918d;
  font-size: 9px;
}

.gallery-edit-grid {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.content-form .gallery-edit-item {
  position: relative;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e0e4df;
  background: white;
  display: block;
  cursor: pointer;
}

.gallery-edit-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.gallery-edit-item input {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: #a33e36;
}

.gallery-edit-item span {
  display: block;
  padding-top: 8px;
  color: #963e36;
  font-size: 9px;
}

.current-media {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fafbf9;
  display: grid;
  gap: 14px;
}

.current-media > span {
  color: #68706b;
  font-size: 10px;
}

.current-media > img,
.current-media > video,
.media-placeholder {
  width: 100%;
  height: 230px;
  border: 1px solid #e0e4df;
  background: #eef0ec;
}

.current-media > img,
.current-media > video {
  object-fit: contain;
}

.media-placeholder {
  color: #8a918d;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.content-form .remove-media {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #ead4d1;
  background: #fff7f6;
  color: #963e36;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  font-size: 9px;
}

.content-form .remove-media input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.content-form .remove-media span {
  color: inherit;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-actions .primary-button,
.secondary-button {
  min-height: 52px;
  padding: 0 22px;
}

.form-actions .primary-button {
  min-width: 220px;
}

.upload-progress {
  padding: 18px 20px;
  border: 1px solid #d7dcd7;
  background: #f7f8f5;
}

.upload-progress[hidden] {
  display: none;
}

.upload-result {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-left: 4px solid #849700;
  background: #f1f7d5;
  outline: none;
}

.upload-result[hidden] {
  display: none;
}

.upload-result strong,
.upload-result span {
  display: block;
}

.upload-result strong {
  margin-bottom: 5px;
  color: #536100;
  font-size: 13px;
}

.upload-result span {
  color: #657000;
  font-size: 11px;
  line-height: 1.65;
}

.upload-result.is-error {
  border-color: #c34e45;
  background: #fff0ee;
}

.upload-result.is-error strong,
.upload-result.is-error span {
  color: #96372f;
}

.upload-progress-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.upload-progress-heading span {
  color: #4f5852;
  font-size: 11px;
  font-weight: 650;
}

.upload-progress-heading strong {
  color: #8a6d1d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.upload-progress-track {
  height: 10px;
  border: 1px solid #d5d8cf;
  background: #e8eae4;
  overflow: hidden;
}

.upload-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  transition: width 180ms ease;
}

.upload-progress > small {
  display: block;
  margin-top: 10px;
  color: #858c87;
  font-size: 9px;
  line-height: 1.55;
}

.upload-progress.is-processing .upload-progress-track i {
  background:
    linear-gradient(
      100deg,
      var(--acid) 0 42%,
      #e1c56f 50%,
      var(--acid) 58% 100%
    );
  background-size: 220% 100%;
  animation: uploadProgressProcessing 1.2s linear infinite;
}

.upload-progress.is-error {
  border-color: #e5b8b4;
  background: #fff5f4;
}

.upload-progress.is-error .upload-progress-heading span,
.upload-progress.is-error .upload-progress-heading strong {
  color: #a64038;
}

.upload-progress.is-error .upload-progress-track i {
  background: #c95147;
}

.upload-progress.is-success {
  border-color: #bfce68;
  background: #f6f9e7;
}

.upload-progress.is-success .upload-progress-heading span,
.upload-progress.is-success .upload-progress-heading strong {
  color: #657500;
}

.upload-progress.is-success .upload-progress-track i {
  background: #91a500;
}

.content-form[aria-busy="true"] .form-actions {
  opacity: 0.72;
}

.content-form[aria-busy="true"] .primary-button {
  cursor: wait;
}

@keyframes uploadProgressProcessing {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.secondary-button {
  border: 1px solid #d4d9d4;
  background: white;
  color: #626a65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.empty-state {
  min-height: 180px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.empty-state strong {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 400;
}

.category-create {
  max-width: 820px;
}

.account-panel {
  max-width: 900px;
}

.seo-panel {
  max-width: 1200px;
}

.seo-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.seo-language-card {
  padding: 28px;
  border: 1px solid #dfe3de;
  background: #f8f9f6;
  display: grid;
  gap: 22px;
}

.seo-language-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid #dfe3de;
}

.seo-language-heading span {
  color: #819300;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.seo-language-heading h3 {
  margin: 8px 0 0;
  font-size: 19px;
}

.account-form {
  max-width: 700px;
}

.password-divider {
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--line);
  color: #7a827d;
  font-size: 10px;
}

.category-list {
  border-top: 1px solid var(--line);
}

.category-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.65fr 1fr 1fr 90px auto;
  gap: 12px;
  align-items: end;
}

.category-row input:disabled {
  color: #8a918d;
}

.category-actions {
  min-height: 46px;
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.login-page {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 20%, rgba(201, 164, 65, 0.12), transparent 30%),
    var(--ink);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(460px, 100%);
  padding: clamp(30px, 5vw, 54px);
  background: white;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
}

.login-card .brand-mark i {
  background: var(--ink);
}

.login-card .brand-mark i:nth-child(3) {
  background: #9ab400;
}

.login-card > p {
  margin: 54px 0 0;
  color: #7a8c00;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.login-card h1 {
  margin: 10px 0 30px;
  font-size: 38px;
  letter-spacing: -0.05em;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.stack-form button {
  margin-top: 8px;
}

.local-hint {
  margin-top: 20px;
  padding: 11px 12px;
  background: #f1f3ef;
  color: #6e766f;
  display: block;
  font-size: 10px;
}

.file-toolbar-panel,
.file-browser-panel,
.file-account-create-panel {
  max-width: 1280px;
}

.file-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.file-action-form {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: #f7f8f5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.file-action-form label,
.file-account-edit-form label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-action-form label > span,
.file-account-edit-form label > span {
  color: #68706b;
  font-size: 9px;
}

.file-action-form input,
.file-account-edit-form input {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #d7dcd7;
  background: white;
  color: var(--ink);
  outline: none;
  font-size: 11px;
}

.file-action-form input:focus,
.file-account-edit-form input:focus {
  border-color: #99ad10;
  box-shadow: 0 0 0 3px rgba(153, 173, 16, 0.09);
}

.file-action-form .primary-button {
  min-width: 150px;
}

.file-action-form .upload-progress {
  grid-column: 1 / -1;
}

.file-action-form[aria-busy="true"] .primary-button {
  cursor: wait;
  opacity: 0.72;
}

.file-upload-control small {
  color: #858c87;
  font-size: 8px;
}

.file-upload-control input[type="file"] {
  min-height: 46px;
  padding: 10px;
}

.file-browser-heading {
  margin-bottom: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.file-browser-heading p {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  font-size: 9px;
}

.file-breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.file-breadcrumbs a {
  color: #59625c;
  font-size: 11px;
  font-weight: 650;
}

.file-breadcrumbs a:last-child {
  color: #718300;
}

.file-breadcrumbs span {
  color: #a2a9a4;
  font-size: 15px;
}

.file-list {
  border: 1px solid var(--line);
}

.file-list-header,
.file-row {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.8fr)
    minmax(120px, 0.75fr)
    minmax(90px, 0.6fr)
    minmax(145px, 0.8fr)
    auto;
  align-items: center;
  gap: 14px;
}

.file-list-header {
  min-height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f1f3ef;
  color: #7d857f;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.file-row {
  min-height: 76px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row:hover {
  background: #fafbf9;
}

.file-name-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.file-kind-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #dbe0da;
  background: #f4f6f1;
  color: #6b756e;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.file-kind-icon.folder {
  border-color: #d9e389;
  background: #f6f9db;
  color: #728300;
}

.file-name-cell > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-name-cell a,
.file-name-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.file-name-cell a:hover {
  color: #718300;
}

.file-name-cell small,
.file-meta,
.file-row time {
  color: #7d857f;
  overflow-wrap: anywhere;
  font-size: 9px;
}

.file-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.file-row-actions a,
.file-row-actions button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #d5dad5;
  background: white;
  color: #59615c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
}

.file-row-actions button {
  border-color: #ead4d1;
  color: #963e36;
}

.file-row-actions a:hover {
  border-color: #9bab2c;
  color: #718300;
}

.file-empty-state {
  min-height: 240px;
}

.file-account-create-button {
  min-height: 46px;
  align-self: end;
}

.file-account-list {
  display: grid;
  gap: 14px;
}

.file-account-card {
  border: 1px solid var(--line);
  background: #fafbf9;
}

.file-account-summary {
  min-height: 66px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-account-summary strong {
  font-size: 13px;
}

.file-account-summary small {
  margin-left: auto;
  color: #7d857f;
  font-size: 9px;
}

.account-status {
  padding: 5px 7px;
  background: #ecefed;
  color: #777f7a;
  font-size: 8px;
}

.account-status.active {
  background: #eef3d2;
  color: #647500;
}

.file-account-edit-form {
  padding: 18px;
  display: grid;
  grid-template-columns:
    minmax(150px, 0.8fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    minmax(145px, auto)
    auto;
  align-items: end;
  gap: 12px;
}

.file-account-edit-form .account-active-toggle {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d7dcd7;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.file-account-edit-form .account-active-toggle input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.file-account-edit-form .account-active-toggle span {
  color: #59615c;
  white-space: nowrap;
}

.file-account-edit-form .primary-button {
  min-height: 46px;
}

.file-account-delete-form {
  padding: 0 18px 18px;
  display: flex;
  justify-content: flex-end;
}

.file-account-delete-form button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #ead4d1;
  background: #fff7f6;
  color: #963e36;
  cursor: pointer;
  font-size: 9px;
}

.file-log-panel {
  max-width: 1440px;
}

.file-log-filter {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #f7f8f5;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.file-log-filter label {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.file-log-filter label:nth-child(3) {
  min-width: 190px;
}

.file-log-filter label:nth-child(4) {
  min-width: 110px;
}

.file-log-filter label span {
  color: #68706b;
  font-size: 9px;
}

.file-log-filter select,
.file-log-filter input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #d7dcd7;
  background: white;
  color: var(--ink);
  outline: none;
  font-size: 10px;
}

.file-log-filter select:focus,
.file-log-filter input:focus {
  border-color: #99ad10;
  box-shadow: 0 0 0 3px rgba(153, 173, 16, 0.09);
}

.file-log-filter button,
.file-log-filter a {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 9px;
}

.file-log-filter a {
  border-color: #d6dbd6;
  background: white;
  color: #69716c;
}

.file-log-summary {
  margin-bottom: 10px;
  color: #79817c;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}

.file-log-table {
  border: 1px solid var(--line);
}

.file-log-header,
.file-log-row {
  display: grid;
  grid-template-columns:
    minmax(145px, 0.8fr)
    minmax(105px, 0.65fr)
    minmax(95px, 0.55fr)
    minmax(170px, 1.1fr)
    minmax(170px, 1.2fr)
    minmax(110px, 0.65fr);
  align-items: center;
  gap: 14px;
}

.file-log-header {
  min-height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f1f3ef;
  color: #7d857f;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.file-log-row {
  min-height: 80px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.file-log-row:last-child {
  border-bottom: 0;
}

.file-log-row:hover {
  background: #fafbf9;
}

.file-log-row > time {
  color: #747d77;
  font-size: 9px;
}

.file-log-actor,
.file-log-target {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-log-actor strong,
.file-log-target strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.file-log-actor small,
.file-log-target small {
  color: #808883;
  font-size: 8px;
}

.file-log-action {
  width: fit-content;
  padding: 6px 8px;
  background: #edf0ed;
  color: #626a65;
  white-space: nowrap;
  font-size: 8px;
}

.file-log-action.file_upload,
.file-log-action.folder_create,
.file-log-action.account_create {
  background: #eef3d2;
  color: #647500;
}

.file-log-action.file_delete,
.file-log-action.folder_delete,
.file-log-action.account_delete {
  background: #fff0ee;
  color: #963e36;
}

.file-log-action.file_download {
  background: #eaf2f8;
  color: #34677f;
}

.file-log-action.auth_login,
.file-log-action.auth_logout {
  background: #f0edf7;
  color: #675681;
}

.file-log-action.account_update,
.file-log-action.admin_account_update {
  background: #fff6dc;
  color: #7c651c;
}

.file-log-details {
  min-width: 0;
  color: #68706b;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 8px;
}

.file-log-details span {
  overflow-wrap: anywhere;
}

.file-log-source {
  min-width: 0;
  color: #6d756f;
  font-size: 8px;
}

.file-log-source summary {
  cursor: pointer;
  color: #718300;
  font-weight: 650;
}

.file-log-source p {
  max-width: 220px;
  margin: 7px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-log-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-log-pagination > a,
.file-log-pagination > span {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d7dcd7;
  color: #68706b;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
}

.file-log-pagination > span {
  opacity: 0.45;
}

.file-log-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.file-log-page-numbers a,
.file-log-page-numbers strong {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #d7dcd7;
  color: #626a65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.file-log-page-numbers strong {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.file-log-page-numbers i {
  padding: 0 4px;
  color: #8a918d;
  font-style: normal;
  font-size: 10px;
}

.inquiry-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inquiry-pagination > a,
.inquiry-pagination > span {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d7dcd7;
  color: #68706b;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
}

.inquiry-pagination > span {
  opacity: 0.45;
}

.inquiry-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.inquiry-page-numbers a,
.inquiry-page-numbers strong {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #d7dcd7;
  color: #626a65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.inquiry-page-numbers strong {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.inquiry-page-numbers i {
  padding: 0 4px;
  color: #8a918d;
  font-style: normal;
  font-size: 10px;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar nav {
    margin: 0;
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar nav a {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
  }

  .sidebar-user {
    display: none;
  }

  .main {
    padding: 38px 18px 70px;
  }

  .category-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-language-grid {
    grid-template-columns: 1fr;
  }

  .edit-media-grid {
    grid-template-columns: 1fr;
  }

  .gallery-edit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inquiry-contact-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-contact-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inquiry-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inquiry-status-tabs {
    overflow-x: auto;
  }

  .inquiry-page-size {
    align-self: flex-end;
  }

  .file-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .file-list {
    overflow-x: auto;
  }

  .file-list-header,
  .file-row {
    min-width: 820px;
  }

  .file-account-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-log-table {
    overflow-x: auto;
  }

  .file-log-header,
  .file-log-row {
    min-width: 1000px;
  }
}

@media (max-width: 640px) {
  .sidebar nav a span {
    display: none;
  }

  .sidebar nav a {
    padding: 0 7px;
    font-size: 10px;
  }

  .page-header {
    margin-bottom: 28px;
  }

  .live {
    display: none;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .panel-heading-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .header-action-button {
    width: 100%;
    justify-content: space-between;
  }

  .content-form,
  .category-row {
    grid-template-columns: 1fr;
  }

  .file-action-form,
  .file-account-edit-form {
    grid-template-columns: 1fr;
  }

  .file-action-form .primary-button {
    min-width: 0;
  }

  .file-browser-heading,
  .file-account-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-account-summary small {
    margin-left: 0;
  }

  .file-log-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .file-log-filter label,
  .file-log-filter label:nth-child(3),
  .file-log-filter label:nth-child(4) {
    min-width: 0;
  }

  .file-log-filter button,
  .file-log-filter a {
    justify-content: center;
  }

  .file-log-pagination {
    flex-wrap: wrap;
  }

  .file-log-page-numbers {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .inquiry-list-summary,
  .inquiry-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .inquiry-actions form,
  .inquiry-actions button {
    width: 100%;
  }

  .inquiry-pagination {
    flex-wrap: wrap;
  }

  .inquiry-page-numbers {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .seo-language-card {
    padding: 20px;
  }

  .catalog-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-filter label {
    min-width: 0;
  }

  .wide {
    grid-column: 1;
  }

  .product-list article {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .media-badges {
    grid-column: 2 / 4;
    grid-row: 2;
    flex-wrap: wrap;
  }

  .product-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .primary-button {
    min-width: 0;
  }

  .media-preview-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .media-preview-stage {
    min-height: 280px;
    max-height: calc(100vh - 104px);
    padding: 10px;
  }

  .media-preview-stage img,
  .media-preview-stage video {
    max-height: calc(100vh - 124px);
  }

  .gallery-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rich-editor-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .inquiry-record > header {
    align-items: flex-start;
    flex-direction: column;
  }
}
