:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --panel: #ffffff;
  --text: #1f2523;
  --muted: #66706b;
  --line: #D0D5CE;
  --green: #6A6B4E;
  --green-light: #A2AE9D;
  --red: #C75F61;
  --red-light: #F0B8B8;
  --accent: var(--green);
  --accent-strong: var(--green);
  --link: var(--green);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: none;
  font-weight: inherit;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

input::placeholder,
textarea::placeholder {
  font-weight: 400;
  opacity: 0.68;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #555d59;
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(31, 37, 35, 0.08);
}

.brand span {
  display: grid;
  gap: 1px;
  line-height: 1.12;
}

.brand strong {
  color: #4e5652;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand small {
  color: #818983;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a.is-active {
  color: var(--green);
  font-weight: 800;
}

.nav-form {
  margin: 0;
}

.nav-form button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--link);
  padding: 0;
  box-shadow: none;
}

.nav-form button:hover {
  text-decoration: underline;
}

.language-toggle-form {
  margin: 0;
}

.language-toggle {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--green);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 750;
}

.language-toggle:hover {
  background: var(--green-light);
  color: var(--text);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

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

.my-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.collection-filter {
  margin: 0;
}

.my-filter-form {
  --filter-control-height: 42px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 10px;
  align-items: center;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.danger-confirm-dialog {
  width: min(440px, calc(100vw - 44px));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0;
  box-shadow: 0 24px 70px rgba(31, 37, 35, 0.34);
  backdrop-filter: blur(18px) saturate(1.08);
}

.danger-confirm-dialog::backdrop {
  background: rgba(31, 37, 35, 0.56);
  backdrop-filter: blur(3px);
}

.danger-confirm-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.danger-confirm-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.danger-confirm-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.danger-confirm-panel p {
  margin: 0;
  color: var(--muted);
}

.danger-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(208, 213, 206, 0.78);
  padding-top: 14px;
}

.danger-confirm-actions .button.secondary,
.danger-confirm-actions button.danger {
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 16px;
}

.danger-confirm-actions .button.secondary {
  border-color: rgba(106, 107, 78, 0.28);
  background: rgba(255, 255, 255, 0.42);
  color: var(--green);
  backdrop-filter: blur(10px);
}

.danger-confirm-actions .button.secondary:hover {
  background: rgba(162, 174, 157, 0.24);
  color: var(--text);
}

.danger-confirm-actions button.danger {
  border: 1px solid rgba(199, 95, 97, 0.34);
  background: rgba(240, 184, 184, 0.28);
  color: var(--red);
  backdrop-filter: blur(10px);
}

.danger-confirm-actions button.danger:hover {
  background: rgba(199, 95, 97, 0.18);
  color: var(--text);
}

.danger-confirm-heading .dialog-close {
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
}

.my-message {
  margin: -4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8f9f6;
  color: var(--text);
  padding: 10px 12px;
}

.collection-menu {
  display: inline-grid;
  grid-template-columns: minmax(180px, 220px) 52px;
  align-items: stretch;
}

.collection-filter select {
  height: var(--filter-control-height, 42px);
  min-height: var(--filter-control-height, 42px);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: white;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}

.collection-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: var(--filter-control-height, 42px);
  min-height: var(--filter-control-height, 42px);
  border: 1px solid var(--line);
  border-radius: 0 6px 6px 0;
  background: white;
  color: var(--green);
  padding: 0;
  line-height: 1;
}

.collection-gear svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.collection-gear:hover {
  background: var(--green-light);
  color: var(--text);
}

h1,
h2 {
  margin: 0 0 14px;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

.customer-header h1 {
  color: #3f3f3f;
}

h2 {
  font-size: 18px;
}

h3 {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button:hover {
  background: var(--green-light);
  color: var(--text);
  text-decoration: none;
}

.button:disabled,
button:disabled {
  border: 1px solid var(--line);
  background: #f4f5f2;
  color: #8a918d;
  cursor: not-allowed;
  opacity: 1;
}

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

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

.voice-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: white;
  color: var(--green);
}

.voice-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.voice-button:hover,
.voice-button.is-reading {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.voice-button:disabled {
  border-color: var(--line);
  background: #f4f5f2;
  color: #8a918d;
}

.read-aloud-content {
  display: grid;
  gap: 24px;
}

button.danger {
  background: var(--red);
}

button.danger:hover {
  background: var(--red-light);
  color: var(--text);
}

.table-wrap,
aside,
.narrow,
.detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.my-dashboard {
  display: grid;
  gap: 22px;
}

.my-list-panel {
  min-width: 0;
}

.management-table {
  min-width: 928px;
  table-layout: fixed;
}

.management-table .order-col {
  width: 28px;
}

.management-table .image-col {
  width: 64px;
}

.management-table .title-col {
  width: 180px;
}

.management-table .artist-col {
  width: 110px;
}

.management-table .year-col {
  width: 72px;
}

.management-table .visibility-col {
  width: 88px;
}

.management-table .tags-col {
  width: 180px;
}

.management-table .actions-col {
  width: 82px;
}

.management-table .collection-col {
  width: 104px;
}

.note-order-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: grab;
}

.note-order-handle:hover {
  background: rgba(162, 174, 157, 0.18);
  color: var(--green);
}

.note-order-handle:active {
  cursor: grabbing;
}

.management-table tr.is-dragging {
  opacity: 0.45;
}

.management-table tr.is-order-saving td {
  background: rgba(162, 174, 157, 0.12);
}

th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.table-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #767a76;
  color: white;
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
}

.table-thumb:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.table-thumb img,
.table-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visibility-shortcut {
  margin: 0;
}

.status-toggle {
  min-height: 34px;
  width: 76px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
}

.action-status-toggle {
  width: auto;
  min-height: 40px;
  height: 40px;
  border-radius: 6px;
  padding: 0 14px;
  font-size: inherit;
  font-weight: 650;
}

.status-toggle.is-public {
  background: white;
  color: var(--accent-strong);
}

.status-toggle.is-public:hover {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--text);
}

.status-toggle.is-hidden {
  background: white;
  color: var(--red);
}

.status-toggle.is-hidden:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--text);
}

.form-visibility-toggle {
  display: inline-flex;
  align-items: center;
}

.inline-visibility-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.inline-visibility-field .status-toggle {
  min-height: 46px;
  width: 128px;
}

.section-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.section-heading-actions .status-toggle {
  min-height: 34px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

.my-tag-editor {
  display: grid;
  gap: 8px;
}

.tag-pill-editor {
  display: grid;
  gap: 6px;
}

.my-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.my-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--accent-strong);
  padding: 4px 7px 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: grab;
  user-select: none;
}

.my-tag-chip:active {
  cursor: grabbing;
}

.my-tag-chip.is-dragging {
  opacity: 0.48;
}

.my-tag-row.is-order-saving {
  opacity: 0.68;
}

.my-tag-chip form {
  margin: 0;
}

.my-tag-chip button {
  width: 18px;
  height: 18px;
  min-height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: white;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.my-tag-chip button:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--text);
}

.add-tag-form {
  position: relative;
  display: inline-block;
  margin: 0;
  width: 112px;
  max-width: 100%;
}

.tag-pill-add {
  width: 138px;
  height: 28px;
}

.tag-edit-row .tag-pill-add {
  flex: 0 0 138px;
}

.add-tag-form input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 32px 7px 10px;
  font: inherit;
  font-size: 13px;
}

.tag-pill-editor .add-tag-form input {
  height: 28px;
  min-height: 28px;
  padding: 2px 26px 2px 10px;
  font-size: 12px;
  line-height: 1;
}

.tag-editor-message {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.tag-editor-message.is-error {
  color: var(--red);
}

.add-tag-form button,
.table-button {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.add-tag-form button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: white;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.add-tag-form button:hover {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--text);
}

.tag-pill-editor .add-tag-form button {
  width: 16px;
  height: 16px;
  min-height: 16px;
  right: 4px;
  padding: 0;
  font-size: 13px;
}

.management-table .table-actions {
  display: grid;
  gap: 7px;
  align-items: stretch;
}

.management-table .table-actions .table-button {
  width: 64px;
}

.mini-empty {
  font-size: 12px;
}

.collection-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--collection-color, var(--accent));
  color: white;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(31, 37, 35, 0.22);
  white-space: nowrap;
}

.collection-pill:hover {
  filter: brightness(0.94);
}

.collection-pill.is-unfiled {
  background: #D0D5CE;
  color: #454c48;
  text-shadow: none;
}

.collection-dialog {
  width: min(980px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  overflow: visible;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(31, 37, 35, 0.24);
}

.collection-dialog::backdrop {
  background: rgba(31, 37, 35, 0.36);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: white;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.dialog-confirm {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: var(--accent);
  color: white;
  font-size: 17px;
  font-weight: 800;
}

.dialog-confirm:hover {
  background: var(--green-light);
  color: var(--text);
}

.dialog-close:hover {
  background: var(--green-light);
}

.collection-editor-list {
  display: grid;
  gap: 8px;
  max-height: 58vh;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.collection-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.collection-new-row {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.collection-row-form {
  display: grid;
  grid-template-columns: 44px minmax(160px, 0.7fr) minmax(240px, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.collection-row-form input {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.collection-color-picker {
  position: relative;
  display: inline-grid;
  justify-items: start;
  z-index: 1;
}

.color-picker-trigger {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: var(--choice-color);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.color-picker-trigger:hover {
  border-color: var(--green);
  filter: brightness(0.98);
}

.collection-color-palette {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
  box-shadow: 0 18px 42px rgba(31, 37, 35, 0.18);
}

.collection-color-palette[hidden] {
  display: none;
}

.color-group {
  display: inline-grid;
  grid-template-columns: repeat(3, 22px);
  gap: 4px;
}

.color-choice {
  display: inline-grid;
  gap: 0;
  place-items: center;
  cursor: pointer;
}

.color-choice input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.color-choice span {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--choice-color);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.color-choice input:checked + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.collection-save,
.collection-add-button,
.collection-delete-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.collection-add-button {
  font-size: 22px;
  line-height: 1;
}

.collection-delete-form {
  margin: 0;
}

.collection-delete-button {
  border: 1px solid var(--red-light);
  background: white;
  color: var(--red);
  font-size: 13px;
}

.collection-delete-button:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--text);
}

.collection-save.is-saved {
  background: var(--accent-strong);
}

.item-collection-dialog {
  width: min(420px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 20px;
  box-shadow: 0 24px 70px rgba(31, 37, 35, 0.24);
}

.item-collection-dialog::backdrop {
  background: rgba(31, 37, 35, 0.36);
}

.dialog-subtitle {
  margin: -6px 0 14px;
  color: var(--muted);
}

.item-collection-form {
  display: grid;
  gap: 10px;
}

.item-collection-options {
  display: grid;
  gap: 8px;
}

.item-collection-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 7px 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.item-collection-option input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.collection-option-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--collection-color);
}

.item-collection-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-light);
}


aside,
.narrow,
.detail {
  padding: 20px;
}

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

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

.form-actions,
.record-actions,
.table-actions,
.detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-actions-top {
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.section-save-row {
  display: flex;
  justify-content: flex-end;
}

.section-save,
button.section-save,
.add-reference-row,
.delete-reference-row {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 650;
}

.section-save:hover,
button.section-save:hover,
.add-reference-row:hover,
.delete-reference-row:hover {
  background: var(--green-light);
  color: var(--text);
}

.delete-reference-row {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-color: var(--line);
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.delete-reference-row:hover {
  background: var(--red-light);
  border-color: var(--line);
  color: var(--text);
}

.reference-editor > .add-reference-row {
  justify-self: stretch;
  min-height: 42px;
  border-color: var(--green);
  border-radius: 8px;
  padding: 0 18px;
  background: white;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  width: 100%;
}

.reference-editor > .add-reference-row:hover {
  border-color: var(--green-light);
  background: var(--green-light);
  color: var(--text);
}

.detail-header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.record-actions form,
.table-actions form {
  margin: 0;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.field-label {
  display: block;
}

.item-editor {
  gap: 18px;
}

.item-editor label,
.item-editor .form-field {
  gap: 8px;
  color: var(--text);
  font-size: 16px;
}

.item-editor input,
.item-editor textarea,
.item-editor select {
  min-height: 46px;
  padding: 12px 13px;
  font-size: 17px;
  line-height: 1.45;
}

.item-editor textarea {
  min-height: 128px;
}

.visibility-control {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.visibility-control > span {
  color: var(--muted);
  font-size: 13px;
}

.visibility-control label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.visibility-control input {
  width: auto;
  min-height: auto;
}

.reference-editor {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.reference-editor-heading,
.reference-editor-footer,
.section-editor-footer,
.section-editor-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: -14px -14px 4px;
  border-radius: 8px 8px 0 0;
  background: var(--green);
  color: white;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
}

.reference-editor-footer {
  justify-content: flex-end;
  margin: 4px -14px -14px;
  border-radius: 0 0 8px 8px;
}

.section-editor-footer {
  justify-content: flex-end;
  margin: 4px -14px -14px;
  border-radius: 0 0 8px 8px;
}

.reference-editor-footer[hidden],
.section-editor-footer[hidden] {
  display: none;
}

form[data-hide-section-footers] .reference-editor-footer,
form[data-hide-section-footers] .section-editor-footer {
  display: none;
}

.reference-editor-heading span:nth-child(2),
.reference-editor-footer span:nth-child(2) {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
}

.section-editor {
  display: grid;
  gap: 10px;
}

.section-editor.full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.section-editor > textarea {
  grid-column: 1 / -1;
}

.reference-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 14px 112px 14px 12px;
  cursor: default;
}

.reference-row.is-dragging {
  opacity: 0.46;
}

.reference-row.is-pinned-reference {
  cursor: default;
}

.reference-row:nth-of-type(odd) {
  background: #fffefe;
}

.reference-row:nth-of-type(even) {
  background: #eef2ec;
}

.reference-priority {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding-top: 18px;
}

.reference-drag-handle {
  width: 28px;
  height: 24px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  background: white;
  color: var(--muted);
  cursor: grab;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.reference-drag-handle:hover {
  background: var(--panel);
  color: var(--accent-strong);
}

.reference-drag-handle:active {
  cursor: grabbing;
}

.reference-drag-handle:disabled {
  cursor: default;
  opacity: 0.42;
}

.reference-visibility-toggle {
  width: 58px;
  min-height: 28px;
  padding: 0 7px;
  font-size: 11px;
}

.reference-row-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.reference-order-controls {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.reference-order-controls button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: white;
  color: var(--green);
  font-size: 14px;
  line-height: 1;
}

.reference-order-controls button:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green-light);
}

.reference-order-controls button:disabled {
  opacity: 0.28;
  cursor: default;
}

.reference-main-fields,
.reference-quality-fields,
.reference-support-fields {
  grid-column: 2;
  display: grid;
  gap: 10px;
}

.reference-main-fields {
  grid-template-columns: 1fr;
}

.reference-title-field,
.reference-url-field,
.reference-notes-field {
  grid-column: 1 / -1;
}

.reference-quality-fields {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.reference-support-fields {
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
}

.pin-toggle,
.star-toggle {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pin-toggle input,
.star-toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.pin-toggle span,
.star-toggle span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: #9ca39c;
  font-size: 15px;
  line-height: 1;
}

.pin-toggle span {
  width: 28px;
  border-radius: 50%;
  border-color: var(--line);
  background:
    url("/static/pin-button-reverse.png?v=original") center / cover no-repeat,
    white;
  color: transparent;
}

.star-toggle span {
  background: white;
  color: var(--red);
}

.pin-toggle input:checked + span {
  border-color: var(--line);
  background:
    url("/static/pin-button.png?v=original") center / cover no-repeat,
    var(--red);
  box-shadow: 0 0 0 2px var(--red-light);
}

.star-toggle input:checked + span {
  border-color: var(--line);
  background: var(--red);
  color: white;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.plain-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.plain-list li {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.plain-list span,
.empty {
  color: var(--muted);
}

.detail dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 18px;
}

.detail dt {
  color: var(--muted);
  font-weight: 700;
}

.detail dd {
  margin: 0;
}

.customer-shell {
  display: grid;
  gap: 22px;
}

.customer-header,
.record-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.eyebrow,
.object-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 10px;
}

.customer-stats div {
  display: grid;
  gap: 2px;
  min-height: 70px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.customer-stats strong {
  font-size: 22px;
  line-height: 1;
}

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

.browse-bar {
  --filter-control-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.search-box {
  position: relative;
  min-width: 0;
}

.search-box input {
  width: 100%;
  height: var(--filter-control-height, 42px);
  min-height: var(--filter-control-height, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 9px 50px 9px 14px;
  font: inherit;
  line-height: 1.25;
}

.search-box-button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--green);
  padding: 0;
}

.search-box-button:hover {
  background: var(--green-light);
  color: var(--text);
}

.search-box-button svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.browse-bar select {
  height: var(--filter-control-height, 42px);
  min-height: var(--filter-control-height, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}

.favorite-filter {
  display: inline-grid;
  width: 34px;
  height: var(--filter-control-height, 42px);
  min-height: var(--filter-control-height, 42px);
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--green);
  line-height: 1;
}

.favorite-filter:hover,
.favorite-filter.is-active {
  color: var(--red);
  text-decoration: none;
}

.gallery-create-cta {
  height: var(--filter-control-height, 42px);
  min-height: var(--filter-control-height, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.heart-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.favorite-filter.is-active .heart-icon,
.favorite-button.is-favorite .heart-icon {
  fill: currentColor;
  stroke: transparent;
}

.favorite-save-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.favorite-save-panel[hidden] {
  display: none;
}

.object-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.object-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.favorite-button {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--green);
  line-height: 1;
  text-shadow: none;
  box-shadow: none;
}

.favorite-button .heart-icon {
  width: 22px;
  height: 22px;
}

.favorite-button:hover,
.favorite-button.is-favorite {
  background: transparent;
  color: var(--red);
}

.object-card-link {
  display: grid;
  min-height: 100%;
  color: inherit;
}

.object-card-link:hover {
  text-decoration: none;
}

.object-thumb {
  display: grid;
  min-height: 118px;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      rgba(58, 60, 58, 0.92),
      rgba(105, 108, 105, 0.84),
      rgba(138, 140, 136, 0.72),
      rgba(72, 74, 72, 0.88)
    ),
    #5f615f;
  background-size: 240% 240%;
  animation: objectHeaderFlow 12s ease-in-out infinite;
}

@keyframes objectHeaderFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.object-thumb span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(31, 37, 35, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 800;
}

.object-thumb img,
.object-thumb video {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.object-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.object-card h2 {
  margin: 0;
  font-size: 18px;
}

.object-card dl {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 5px 10px;
  margin: 0;
  font-size: 14px;
}

.object-card dt {
  color: var(--muted);
  font-weight: 700;
}

.object-card dd {
  min-width: 0;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.table-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-detail {
  display: grid;
  gap: 24px;
}

.back-link {
  justify-self: start;
}

.record-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.record-header h1 {
  max-width: 820px;
  font-size: 34px;
}

.record-facts {
  position: relative;
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.detail-card-voice {
  position: absolute;
  top: 12px;
  right: 12px;
}

.record-facts:has(.detail-card-voice) dl {
  padding-right: 44px;
}

.collector-contact {
  width: 100%;
  margin-top: 16px;
}

.icon-text-button {
  gap: 8px;
}

.icon-text-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.share-control {
  position: relative;
  margin-top: 10px;
}

.detail-utility-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.detail-utility-row .share-control {
  flex: 1;
  margin-top: 0;
}

.share-button {
  width: 100%;
}

.share-feedback {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 28px 18px;
  background: rgba(19, 22, 20, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(0.96);
  backdrop-filter: blur(12px) saturate(0.96);
}

.share-modal[hidden] {
  display: none;
}

.share-panel {
  position: relative;
  width: min(620px, calc(100vw - 36px));
  max-height: min(86vh, 780px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(245, 245, 245, 0.36), rgba(215, 215, 215, 0.24)),
    rgba(150, 150, 150, 0.2);
  padding: 20px 22px 22px;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  backdrop-filter: blur(14px) saturate(1.04);
  transform: translateY(8px) scale(0.992);
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0.98;
}

.share-modal.is-open .share-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.share-modal-close {
  float: right;
  margin: 0;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(31, 37, 35, 0.24);
  border-radius: 50%;
  padding: 0;
}

.share-modal-close,
.share-channel-nav {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  border-color: rgba(31, 37, 35, 0.24);
  background: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 8px 18px rgba(31, 37, 35, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.58),
    inset 0 -7px 14px rgba(0, 0, 0, 0.1);
  line-height: 1;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.share-modal-close {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.share-modal-close svg,
.share-channel-nav svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-modal-close::after,
.share-channel-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.12) 40%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0.24) 52%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
}

.share-panel-header {
  margin: 4px 46px 16px;
  text-align: center;
}

.share-panel-header h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 24px;
}

.share-channel-shell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  margin-top: 16px;
  gap: 8px;
}

.share-channel-nav {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(31, 37, 35, 0.24);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  padding: 0;
  line-height: 1;
}

.share-channel-nav:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.46);
  color: white;
  box-shadow:
    0 12px 24px rgba(31, 37, 35, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    inset 0 -7px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px) scale(1.05);
}

.share-modal-close:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.46);
  color: white;
  box-shadow:
    0 12px 24px rgba(31, 37, 35, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    inset 0 -7px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px) scale(1.05);
}

.share-channel-nav:disabled {
  opacity: 0.42;
  transform: none;
}

.share-icon-grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.share-icon-grid::-webkit-scrollbar {
  display: none;
}

.share-option {
  flex: 0 0 58px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  width: auto;
  min-height: 76px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  padding: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: none;
  transition: transform 150ms ease;
}

.share-option:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.share-option-circle {
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(31, 37, 35, 0.24);
  border-radius: 14px;
  background: white;
  color: var(--green);
  box-shadow:
    0 10px 18px rgba(31, 37, 35, 0.2),
    0 2px 4px rgba(255, 255, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.58),
    inset 0 -8px 18px rgba(0, 0, 0, 0.1);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease,
    transform 150ms ease;
}

.share-option-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.12) 38%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.32) 48%, rgba(255, 255, 255, 0.32) 52%, transparent 100%);
  opacity: 0.68;
  pointer-events: none;
  mix-blend-mode: screen;
}

.share-option:hover .share-option-circle {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 15px 28px rgba(31, 37, 35, 0.28),
    0 4px 8px rgba(255, 255, 255, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.78),
    inset 0 -8px 18px rgba(0, 0, 0, 0.12);
  filter: brightness(1.08) saturate(1.06);
  transform: scale(1.04);
}

.share-option svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0;
}

.share-option-circle img {
  display: block;
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.share-brand-email .share-option-circle,
.share-brand-message .share-option-circle {
  background: linear-gradient(180deg, #59c4ff, #147efb);
  box-shadow:
    0 10px 18px rgba(31, 37, 35, 0.2),
    0 2px 4px rgba(255, 255, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.58),
    inset 0 -8px 18px rgba(0, 0, 0, 0.1);
}

.share-brand-message .share-option-circle {
  background: linear-gradient(180deg, #67e96d, #20c956);
}

.share-brand-email .share-option-circle img,
.share-brand-message .share-option-circle img {
  width: 44px;
  height: 44px;
  border-radius: 0;
}

.share-brand-copy svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  width: 36px;
  height: 36px;
}

.share-option-label {
  display: block;
  width: 64px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.share-brand-copy,
.share-brand-email,
.share-brand-message {
  color: var(--green);
}

.share-brand-copy .share-option-circle {
  background: rgba(248, 248, 246, 0.96);
  border-color: rgba(31, 37, 35, 0.24);
}

.share-brand-wechat .share-option-circle {
  background: #07c160;
  color: white;
}

.share-brand-rednote .share-option-circle {
  background: #ff2442;
  color: white;
}

.share-brand-whatsapp .share-option-circle {
  background: #25d366;
  color: white;
}

.share-brand-youtube .share-option-circle {
  background: white;
  color: #ff0000;
}

.share-brand-messenger .share-option-circle {
  background: white;
  color: #006aff;
}

.share-brand-facebook .share-option-circle {
  background: white;
  color: #1877f2;
}

.share-brand-youtube .share-option-circle img,
.share-brand-messenger .share-option-circle img,
.share-brand-facebook .share-option-circle img {
  display: none;
}

.share-brand-youtube .share-option-circle::before,
.share-brand-messenger .share-option-circle::before,
.share-brand-facebook .share-option-circle::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.share-brand-youtube .share-option-circle::before {
  -webkit-mask-image: url("/static/share-icons/youtube.svg");
  mask-image: url("/static/share-icons/youtube.svg");
}

.share-brand-messenger .share-option-circle::before {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #00b2ff, #006aff 52%, #a033ff);
  -webkit-mask-image: url("/static/share-icons/messenger.svg");
  mask-image: url("/static/share-icons/messenger.svg");
}

.share-brand-facebook .share-option-circle::before {
  -webkit-mask-image: url("/static/share-icons/facebook.svg");
  mask-image: url("/static/share-icons/facebook.svg");
}

.share-brand-x .share-option-circle {
  background: #111111;
  color: white;
}

.share-brand-pinterest .share-option-circle {
  background: #e60023;
  color: white;
}

.share-brand-reddit .share-option-circle {
  background: #ff4500;
  color: white;
}

.share-message-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 520px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.share-message-card > img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f5f2;
}

.share-message-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.share-message-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #6f7772;
  font-size: 13px;
  font-weight: 750;
}

.share-message-brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.share-modal-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 10px auto 0;
  max-width: 520px;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 520px) {
  .share-panel {
    padding: 18px;
  }

  .share-message-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 14px;
  }

  .share-message-card > img {
    width: 64px;
    height: 64px;
  }
}

.record-facts dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.record-facts dt {
  color: var(--muted);
  font-weight: 700;
}

.record-facts dd {
  margin: 0;
}

.fact-list {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0 0 22px;
}

.fact-list dt {
  color: var(--muted);
  font-weight: 700;
}

.fact-list dd {
  margin: 0;
}

.fact-with-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.record-main {
  display: grid;
  gap: 18px;
}

.record-panel,
.record-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
}

.panel-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.panel-edit {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.panel-edit:hover {
  background: var(--green-light);
  color: var(--text);
  text-decoration: none;
}

.media-record-panel {
  margin-bottom: 22px;
}

.section-dialog {
  width: min(980px, calc(100vw - 36px));
  max-height: min(86vh, 920px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  overflow: auto;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(31, 37, 35, 0.28);
}

.section-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(31, 37, 35, 0.5);
  padding: 28px 18px;
  backdrop-filter: blur(7px) saturate(1.08);
}

.section-modal[hidden] {
  display: none;
}

.section-modal > form {
  position: relative;
  width: min(980px, calc(100vw - 36px));
  max-height: min(86vh, 920px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 251, 248, 0.9)),
    rgba(255, 255, 255, 0.86);
  padding: 20px;
  box-shadow:
    0 26px 76px rgba(31, 37, 35, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transform: translateY(8px) scale(0.992);
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0.98;
}

.section-modal-close {
  position: static;
  grid-column: 1 / -1;
  justify-self: end;
  margin: 0 0 -2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(31, 37, 35, 0.12);
}

.section-modal.is-open > form {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.has-section-modal {
  overflow: hidden;
}

.section-dialog::backdrop {
  background: rgba(31, 37, 35, 0.48);
  backdrop-filter: blur(1px);
}

.section-dialog-form {
  gap: 16px;
}

.section-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-dialog-heading h2 {
  margin: 0;
}

.record-layout p {
  margin-top: 0;
}

.record-layout p a,
.source-list a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.record-layout p a:hover,
.source-list a:hover {
  color: var(--accent-strong);
}

.source-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.source-list li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.source-list li.is-hidden-reference {
  border-color: var(--red-light);
  opacity: 0.86;
}

.my-reference-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.reference-list-visibility {
  margin: 0;
}

.inline-detail-shortcut {
  flex: 0 0 auto;
}

.panel-visibility-toggle {
  flex: 0 0 auto;
  width: auto;
  min-height: 32px;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 650;
}

.reference-read-toggle,
.detail-shortcut-toggle {
  width: auto;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
}

.source-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.source-list .reference-quality {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.source-list .reference-star {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 13px;
  line-height: 1;
  vertical-align: text-bottom;
}

.source-list .reference-pin {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    url("/static/pin-button.png?v=original") center / cover no-repeat,
    var(--red);
  color: transparent;
  overflow: hidden;
  line-height: 1;
  vertical-align: text-bottom;
}

#object-facts,
#notes,
#references {
  scroll-margin-top: 88px;
}

.media-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.media-carousel.has-overflow {
  grid-template-columns: 36px minmax(0, 1fr) 36px;
}

.media-carousel-track {
  display: flex;
  grid-column: 1;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.media-carousel.has-overflow .media-carousel-track {
  grid-column: 2;
}

.media-carousel-track::-webkit-scrollbar {
  display: none;
}

.media-carousel .media-tile {
  flex: 0 0 clamp(100px, calc((100% - 50px) / 6), 180px);
  min-width: 0;
  scroll-snap-align: start;
}

.media-carousel-arrow {
  display: none;
  width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0 0 3px;
  background: white;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.media-carousel.has-overflow .media-carousel-arrow {
  display: grid;
}

.media-carousel-arrow:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green-light);
}

.media-carousel-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.media-carousel-previous {
  grid-column: 1;
}

.media-carousel-next {
  grid-column: 3;
}

.media-tile,
.existing-media > div,
.queued-media-item {
  display: grid;
  grid-template-rows: minmax(0, auto) 34px;
  gap: 0;
  align-content: start;
  min-width: 0;
}

.existing-media-item,
.queued-media-item,
.media-add-item {
  position: relative;
}

.existing-media-item,
.queued-media-item {
  cursor: grab;
}

.existing-media-item:active,
.queued-media-item:active {
  cursor: grabbing;
}

.existing-media-item.is-dragging,
.queued-media-item.is-dragging {
  opacity: 0.42;
}

.existing-media {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 24px;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.media-add-item {
  align-content: start;
}

.media-add-item::after {
  content: "";
  display: block;
  height: 34px;
}

.media-add-tile {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  box-sizing: border-box;
  border-radius: 7px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: auto;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.media-add-tile em {
  max-width: 78%;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.media-add-item.is-drag-over .media-add-tile {
  background: rgba(162, 174, 157, 0.18);
  box-shadow: inset 0 0 0 2px var(--green);
}

.media-add-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-add-tile span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 3px;
}

.media-add-tile:hover {
  background: rgba(162, 174, 157, 0.12);
}

.media-note-field {
  display: block;
  gap: 0;
  font-size: 12px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.item-editor .media-note-field {
  gap: 0;
}

.media-note-field input {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  margin-top: 0;
  padding: 8px 10px;
  font-size: 13px;
}

.media-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  line-height: 0;
  overflow: visible;
  z-index: 1;
}

.remove-existing-media,
.remove-queued-media {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 6;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 1px solid var(--red-light);
  border-radius: 50%;
  padding: 0;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.remove-existing-media:hover,
.remove-queued-media:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--text);
}

.media-thumb img,
.media-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  box-sizing: border-box;
  border-radius: 7px;
  object-fit: cover;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.media-thumb:hover {
  z-index: 5;
}

.media-thumb:hover img,
.media-thumb:hover video {
  box-shadow: 0 16px 34px rgba(31, 37, 35, 0.22);
  transform: scale(1.9);
}

.media-carousel .media-thumb:hover img,
.media-carousel .media-thumb:hover video {
  box-shadow: none;
  transform: none;
}

.media-hover-preview {
  position: fixed;
  z-index: 1000;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(31, 37, 35, 0.22);
  overflow: hidden;
  animation: mediaPreviewIn 160ms ease;
}

.media-hover-preview img,
.media-hover-preview video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

@keyframes mediaPreviewIn {
  from {
    opacity: 0.65;
    transform: scale(0.526);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.media-thumb span {
  position: absolute;
  inset-inline: 6px;
  bottom: 6px;
  border-radius: 5px;
  background: rgba(31, 37, 35, 0.72);
  color: white;
  font-size: 11px;
  padding: 3px 5px;
}

.download-link {
  justify-self: start;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.media-viewer {
  display: grid;
  gap: 20px;
}

.media-viewer-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.media-stage {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10120f;
  padding: 18px;
}

.media-stage img,
.media-stage video {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 6px;
  object-fit: contain;
}

.media-stage figcaption {
  color: white;
}

.media-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.media-lightbox-open {
  overflow: hidden;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: block;
  padding: 30px;
  background:
    radial-gradient(circle at 20% 12%, rgba(162, 174, 157, 0.16), transparent 34%),
    rgba(25, 28, 26, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox-toolbar {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 6;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-width: min(420px, calc(100vw - 80px));
  max-width: min(760px, calc(100vw - 80px));
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(25, 28, 26, 0.36);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.94);
  padding: 8px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.media-lightbox-toolbar p {
  margin: 0;
  max-width: min(34vw, 360px);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-lightbox-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.media-lightbox-icon,
.media-lightbox-nav,
.media-lightbox-zoom button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.media-lightbox-icon:hover,
.media-lightbox-nav:hover,
.media-lightbox-zoom button:hover {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  text-decoration: none;
}

.media-lightbox-icon svg,
.media-lightbox-nav svg,
.media-lightbox-zoom svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.media-lightbox-stage {
  position: absolute;
  inset: 30px;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  border-radius: 8px;
  padding: 62px 58px 76px;
}

.media-lightbox-stage img,
.media-lightbox-stage video {
  display: block;
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 184px);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  object-fit: contain;
  transform-origin: center center;
  transition: transform 140ms ease;
}

.media-lightbox-stage.is-image-stage img {
  cursor: zoom-in;
}

.media-lightbox-stage.is-image-stage.can-pan img {
  cursor: grab;
  touch-action: none;
}

.media-lightbox-stage.is-image-stage.can-pan img:active {
  cursor: grabbing;
}

.media-lightbox-stage.is-zoomed img,
.media-lightbox-stage.is-zoomed video {
  border-radius: 8px;
}

.media-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(25, 28, 26, 0.36);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  color: white;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.media-lightbox-nav:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(25, 28, 26, 0.46);
  transform: translateY(-50%);
}

.media-lightbox-nav svg {
  width: 25px;
  height: 25px;
}

.media-lightbox-nav:disabled {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(25, 28, 26, 0.36);
  color: white;
  cursor: default;
  opacity: 0.25;
  transform: translateY(-50%);
}

.media-lightbox-prev {
  left: clamp(10px, 2vw, 28px);
}

.media-lightbox-next {
  right: clamp(10px, 2vw, 28px);
}

.media-lightbox-stage.is-image-stage::after {
  content: "⌕";
  position: absolute;
  right: clamp(74px, 7vw, 118px);
  bottom: 86px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(25, 28, 26, 0.38);
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.media-lightbox-stage.is-image-stage:has(img:hover)::after {
  opacity: 1;
  transform: translateY(0);
}

.media-lightbox-zoom {
  position: absolute;
  right: 50%;
  bottom: 22px;
  z-index: 5;
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(25, 28, 26, 0.36);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  transform: translateX(50%);
}

.media-lightbox-zoom button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  box-shadow: none;
}

.print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
}

.text-extraction-result {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.text-extraction-result h2 {
  color: white;
}

.text-extraction-result p,
.text-extraction-result pre {
  margin: 0;
  color: white;
}

.text-extraction-result pre {
  overflow-x: auto;
  white-space: pre-wrap;
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.login-panel {
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 30px;
  box-shadow: 0 22px 60px rgba(31, 37, 35, 0.08);
}

.login-panel h1 {
  color: #4b534f;
}

.login-copy,
.login-note {
  color: var(--muted);
}

.login-error {
  border: 1px solid var(--red-light);
  border-radius: 6px;
  background: rgba(240, 184, 184, 0.28);
  color: var(--red);
  padding: 10px 12px;
}

.social-login-stack {
  display: grid;
  gap: 10px;
  margin: 22px 0 14px;
}

.social-login-stack form {
  margin: 0;
}

.local-login-form {
  margin: 0 0 14px;
}

.social-login-button {
  width: 100%;
  min-height: 46px;
}

.social-login-button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
}

.wechat-login-button {
  border-color: var(--green-light);
  color: var(--green);
}

.wechat-login-button:hover {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--text);
}

.developer-shell {
  display: grid;
  gap: 18px;
}

.developer-docs-frame {
  width: 100%;
  min-height: calc(100vh - 190px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.export-overlay {
  z-index: 1000;
  cursor: default;
}

.export-overlay[hidden] {
  display: none;
}

.export-status {
  display: grid;
  place-items: center;
  gap: 16px;
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(31, 37, 35, 0.3);
  padding: 30px 34px;
  color: white;
  text-align: center;
  box-shadow: 0 22px 64px rgba(31, 37, 35, 0.36);
  backdrop-filter: blur(12px) saturate(1.08);
  transition: transform 160ms ease, padding 160ms ease, min-width 160ms ease;
}

.export-status p {
  margin: 0;
  color: white;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.export-spinner {
  position: relative;
  width: 74px;
  height: 74px;
  border: 0;
  animation: none;
}

.export-spinner span {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 8px;
  height: 20px;
  margin-left: -4px;
  border-radius: 999px;
  background: white;
  opacity: 0.18;
  transform-origin: 4px 33px;
  animation: export-spinner-fade 1s linear infinite;
}

.export-spinner span:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -0.916s;
}

.export-spinner span:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -0.833s;
}

.export-spinner span:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.75s;
}

.export-spinner span:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.666s;
}

.export-spinner span:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.583s;
}

.export-spinner span:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.5s;
}

.export-spinner span:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.416s;
}

.export-spinner span:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.333s;
}

.export-spinner span:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.25s;
}

.export-spinner span:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.166s;
}

.export-spinner span:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.083s;
}

.export-spinner span:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

.export-check {
  display: none;
  width: 74px;
  height: 74px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  color: white;
  font-size: 42px;
  font-weight: 800;
  line-height: 68px;
  text-align: center;
}

.export-status.is-complete .export-spinner {
  display: none;
}

.export-status.is-complete .export-check {
  display: block;
}

.export-overlay.is-minimized {
  inset: 18px 18px auto auto;
  display: block;
  overflow: visible;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.export-overlay.is-minimized .export-status {
  min-width: 132px;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-color: rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18)),
    rgba(31, 37, 35, 0.42);
  pointer-events: auto;
  cursor: pointer;
}

.export-overlay.is-minimized .export-spinner,
.export-overlay.is-minimized .export-check {
  width: 30px;
  height: 30px;
}

.export-overlay.is-minimized .export-spinner span {
  top: 2px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  transform-origin: 2px 13px;
}

.export-overlay.is-minimized .export-status p {
  max-width: 92px;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.export-overlay.is-minimized .export-check {
  border-width: 2px;
  font-size: 19px;
  line-height: 26px;
}

.page-subtitle {
  margin: -8px 0 0;
  color: var(--muted);
}


@keyframes export-spinner-fade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.18;
  }
}

@media (max-width: 800px) {
  .topbar,
  .section-title,
  .customer-header,
  .record-header,
  .detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .split,
  .grid-form,
  .my-filter-form,
  .browse-bar,
  .object-grid,
  .record-layout {
    grid-template-columns: 1fr;
  }

  .customer-header,
  .record-header {
    display: flex;
  }

  .customer-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .media-carousel.has-overflow {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .media-carousel-arrow {
    width: 32px;
    height: 32px;
    min-height: 32px;
    font-size: 26px;
  }

  .media-carousel .media-tile {
    flex-basis: clamp(96px, calc((100% - 20px) / 3), 150px);
  }

  .reference-row {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 54px 12px 12px;
  }

  .reference-main-fields,
  .reference-quality-fields,
  .reference-support-fields,
  .section-editor.full {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .reference-priority {
    display: flex;
    padding-top: 0;
  }

  .media-thumb:hover img,
  .media-thumb:hover video {
    transform: scale(1.25);
  }

  .media-lightbox {
    padding: 24px;
  }

  .media-lightbox-toolbar {
    top: 12px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    min-width: min(360px, calc(100vw - 44px));
    max-width: calc(100vw - 44px);
  }

  .media-lightbox-toolbar p {
    font-size: 15px;
  }

  .media-lightbox-icon {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .media-lightbox-stage {
    inset: 24px;
    border-radius: 8px;
    padding: 58px 42px 70px;
  }

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

  .media-lightbox-nav {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .media-lightbox-nav svg {
    width: 22px;
    height: 22px;
  }

  .media-lightbox-stage.is-image-stage::after {
    right: 52px;
    bottom: 82px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }
}
