:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --panel: #fffaf2;
  --panel-strong: #ffffff;
  --ink: #27231f;
  --muted: #756e64;
  --line: #ded5c8;
  --line-strong: #c6b9aa;
  --accent: #1f7a72;
  --accent-dark: #155953;
  --accent-soft: #dff1ee;
  --rose: #b45d68;
  --rose-soft: #f4dfe3;
  --gold: #b2771a;
  --gold-soft: #f6ead2;
  --shadow: 0 16px 40px rgba(37, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family:
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 4px;
}

.brand-title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.nav-list,
.utility-list {
  display: grid;
  gap: 8px;
}

.nav-button,
.utility-button,
.primary-button,
.ghost-button,
.icon-button,
.tag-chip,
.mini-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.nav-button,
.utility-button,
.primary-button,
.ghost-button {
  min-height: 42px;
  padding: 0 14px;
}

.nav-button,
.utility-button {
  width: 100%;
  text-align: left;
}

.nav-button.active,
.nav-button:hover,
.utility-button:hover,
.ghost-button:hover,
.mini-button:hover,
.icon-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.primary-button {
  border-color: var(--accent-dark);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 122, 114, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.side-footer {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.main-area {
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 44px) 44px;
}

.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.field,
.select-field,
.textarea-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: none;
}

.field,
.select-field {
  height: 42px;
  padding: 0 12px;
}

.textarea-field {
  min-height: 92px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.field:focus,
.select-field:focus,
.textarea-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 114, 0.14);
}

.gallery {
  columns: 4 220px;
  column-gap: 16px;
}

.image-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 8px 24px rgba(37, 32, 27, 0.08);
  break-inside: avoid;
  text-align: left;
}

.image-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  display: block;
  background: #ede5d8;
}

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

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.card-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chip.primary {
  border-color: rgba(31, 122, 114, 0.32);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.chip.warning {
  border-color: rgba(180, 93, 104, 0.32);
  background: var(--rose-soft);
  color: var(--rose);
}

.chip.gold {
  border-color: rgba(178, 119, 26, 0.28);
  background: var(--gold-soft);
  color: var(--gold);
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.68);
  text-align: center;
  padding: 32px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tag-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

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

.tag-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.tag-card h3 {
  margin: 0;
  font-size: 18px;
}

.tag-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  min-height: 58px;
}

.thumb-strip img,
.thumb-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eee4d6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(39, 35, 31, 0.42);
}

.modal {
  width: min(980px, 100%);
  max-height: min(880px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(12px);
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
}

.modal-body {
  padding: 18px;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.preview-panel {
  display: grid;
  gap: 12px;
}

.preview-panel img,
.detail-image {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee4d6;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 24px;
}

.drop-zone strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.drop-zone span {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label,
.section-label {
  color: var(--muted);
  font-size: 13px;
}

.suggestion-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.suggestion-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
}

.tag-chip.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body:has(.modal-backdrop) .bottom-nav {
  display: none;
}

.app-shell.modal-open .bottom-nav {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.detail-panel {
  display: grid;
  gap: 16px;
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-item {
  display: grid;
  gap: 5px;
}

.meta-item dt {
  color: var(--muted);
  font-size: 13px;
}

.meta-item dd {
  margin: 0;
  line-height: 1.55;
}

.hidden-input {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  color: var(--ink);
}

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

  .side-nav {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .side-footer {
    display: none;
  }

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

  .top-bar,
  .editor-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .top-bar {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .main-area {
    padding: 20px 12px 32px;
  }

  .nav-list,
  .utility-list {
    grid-template-columns: 1fr;
  }

  .gallery {
    columns: 1;
  }

  .modal-backdrop {
    padding: 0;
  }

  .modal {
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }
}

/* Mobile-first polish pass */
:root {
  --bg: #f4f7f3;
  --panel: #fffdfa;
  --panel-strong: #ffffff;
  --ink: #20211f;
  --muted: #69706a;
  --line: #d9ddd5;
  --line-strong: #b8c0b7;
  --accent: #19766b;
  --accent-dark: #0f514a;
  --accent-soft: #e1f1ee;
  --rose: #b24b63;
  --rose-soft: #f8e4e9;
  --gold: #a96d14;
  --gold-soft: #fbefd8;
  --leaf: #7b9a55;
  --paper: #fff8ec;
  --shadow: 0 18px 48px rgba(29, 37, 32, 0.14);
  --soft-shadow: 0 8px 24px rgba(29, 37, 32, 0.09);
}

body {
  background:
    linear-gradient(120deg, rgba(225, 241, 238, 0.72), rgba(255, 248, 236, 0.35) 42%, rgba(248, 228, 233, 0.38)),
    radial-gradient(circle at 18px 18px, rgba(25, 118, 107, 0.08) 1.2px, transparent 1.3px),
    #f4f7f3;
  background-size: auto, 24px 24px, auto;
}

.side-nav {
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(244, 247, 243, 0.92)),
    var(--panel);
}

.brand-title {
  letter-spacing: 0;
}

.brand-subtitle::after {
  content: " · 本地优先";
  color: var(--accent);
}

.nav-button,
.utility-button,
.primary-button,
.ghost-button,
.mini-button,
.icon-button {
  font-weight: 650;
}

.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #2b8671);
}

.nav-button.active {
  box-shadow: inset 4px 0 0 var(--accent);
}

.page-title {
  max-width: 680px;
  font-weight: 760;
}

.page-note {
  max-width: 620px;
}

.toolbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  border: 1px solid rgba(217, 221, 213, 0.82);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--soft-shadow);
  padding: 10px;
}

.field,
.select-field,
.textarea-field {
  background: rgba(255, 255, 255, 0.92);
}

.image-card {
  position: relative;
  border-color: rgba(217, 221, 213, 0.88);
  background: var(--panel-strong);
  box-shadow: var(--soft-shadow);
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.image-card img {
  min-height: 160px;
  object-fit: cover;
}

.card-body {
  background: linear-gradient(180deg, #ffffff, #fffdfa);
}

.card-title {
  font-weight: 720;
}

.chip {
  border-color: transparent;
  background: #f2f5f0;
  color: #596159;
  font-weight: 600;
}

.chip.primary {
  background: var(--accent-soft);
}

.tag-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 236, 0.72)),
    var(--panel-strong);
  box-shadow: var(--soft-shadow);
}

.thumb-placeholder {
  background:
    linear-gradient(135deg, rgba(25, 118, 107, 0.1), rgba(169, 109, 20, 0.12)),
    #eef3ec;
}

.modal {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.suggestion-box {
  background:
    linear-gradient(135deg, rgba(225, 241, 238, 0.72), rgba(251, 239, 216, 0.52)),
    #fff;
}

.bottom-nav,
.floating-upload {
  display: none;
}

@media (max-width: 920px) {
  body {
    background-size: auto, 20px 20px, auto;
  }

  .app-shell {
    padding-bottom: 86px;
  }

  .side-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 14px 12px;
    background: rgba(255, 253, 250, 0.9);
    backdrop-filter: blur(18px);
  }

  .brand-title {
    font-size: 23px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .nav-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-button {
    min-height: 38px;
    text-align: center;
    border-radius: 999px;
  }

  .nav-button.active {
    box-shadow: none;
  }

  .utility-list {
    display: none;
  }

  .main-area {
    padding: 18px 14px 32px;
  }

  .top-bar {
    margin-bottom: 14px;
  }

  .top-bar .primary-button {
    display: none;
  }

  .page-title {
    font-size: clamp(28px, 10vw, 42px);
  }

  .page-note {
    font-size: 14px;
    line-height: 1.6;
  }

  .toolbar {
    top: 96px;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px;
  }

  .field,
  .select-field {
    height: 40px;
  }

  .gallery {
    columns: 2 148px;
    column-gap: 10px;
  }

  .image-card {
    margin-bottom: 10px;
  }

  .image-card img {
    min-height: 128px;
  }

  .card-body {
    gap: 7px;
    padding: 10px;
  }

  .card-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-title {
    font-size: 14px;
  }

  .chip {
    font-size: 11px;
    min-height: 22px;
    padding: 2px 7px;
  }

  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    min-height: 64px;
    border: 1px solid rgba(217, 221, 213, 0.92);
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 34px rgba(29, 37, 32, 0.22);
    padding: 6px;
  }

  .bottom-nav-button {
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
  }

  .bottom-nav-button.active {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  .bottom-icon {
    font-size: 18px;
    line-height: 1;
  }

  .floating-upload {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 31;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), #d07a57);
    color: #fff;
    box-shadow: 0 16px 30px rgba(178, 75, 99, 0.35);
    font-size: 32px;
    line-height: 1;
  }

  .tag-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tag-card {
    padding: 12px;
  }

  .thumb-strip {
    min-height: 64px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 8px 8px 0 0;
  }

  .modal-head {
    padding: 14px;
  }

  .modal-body {
    padding: 14px;
  }

  .editor-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .preview-panel img,
  .detail-image {
    max-height: 44vh;
  }

  .tag-picker {
    max-height: 176px;
    overflow: auto;
    padding-right: 2px;
  }

  .tag-chip {
    min-height: 32px;
    border-radius: 999px;
    font-size: 13px;
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    margin: 12px -14px -14px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 250, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .modal-actions .primary-button,
  .modal-actions .ghost-button {
    flex: 1;
  }

  .toast {
    right: 12px;
    left: 12px;
    bottom: 88px;
  }
}

@media (max-width: 420px) {
  .main-area {
    padding-inline: 10px;
  }

  .side-nav {
    padding-inline: 10px;
  }

  .gallery {
    column-gap: 8px;
  }

  .card-body {
    padding: 9px;
  }

  .card-note {
    display: none;
  }
}

@media (min-width: 1180px) {
  .main-area {
    padding-right: 56px;
  }

  .gallery {
    columns: 5 220px;
  }
}

/* iOS Photos inspired refresh */
:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --ink: #101113;
  --muted: #74777f;
  --line: rgba(60, 60, 67, 0.14);
  --line-strong: rgba(60, 60, 67, 0.24);
  --accent: #007aff;
  --accent-dark: #005ecb;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --rose: #ff375f;
  --rose-soft: rgba(255, 55, 95, 0.12);
  --gold: #ff9f0a;
  --gold-soft: rgba(255, 159, 10, 0.14);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  --soft-shadow: 0 10px 34px rgba(0, 0, 0, 0.1);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 122, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #fbfbfd 0%, #f2f2f7 48%, #f5f5f7 100%);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Microsoft YaHei UI",
    system-ui,
    sans-serif;
}

.app-shell {
  display: block;
  min-height: 100vh;
  padding-bottom: 104px;
}

.main-area {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 112px clamp(14px, 3vw, 30px) 28px;
}

.side-nav,
.floating-upload {
  display: none;
}

.top-island {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 50;
  width: min(680px, calc(100vw - 22px));
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(248, 248, 252, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  padding: 8px;
}

.brand-pill,
.top-island-action,
.quick-category {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.08);
}

.brand-pill {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 14px 6px 6px;
  text-align: left;
}

.brand-pill strong,
.brand-pill small {
  display: block;
}

.brand-pill strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-pill small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.quick-category {
  width: min(188px, 42vw);
  height: 44px;
  padding: 0 40px 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  outline: none;
  appearance: none;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.22), transparent 28%),
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    0 0,
    calc(100% - 22px) 19px,
    calc(100% - 15px) 19px;
  background-size:
    100% 100%,
    7px 7px,
    7px 7px;
  background-repeat: no-repeat;
}

.top-island-action {
  min-width: 78px;
  height: 46px;
  padding: 0 16px;
  font-weight: 760;
}

.hero-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin: 6px 2px 16px;
}

.page-title {
  font-size: clamp(36px, 9vw, 64px);
  font-weight: 820;
  letter-spacing: 0;
}

.page-note {
  max-width: 520px;
  color: rgba(16, 17, 19, 0.58);
  font-size: 15px;
}

.gallery-search {
  position: sticky;
  top: 88px;
  z-index: 20;
  margin: 0 0 14px;
}

.gallery-search .field {
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.06);
  padding: 0 18px;
}

.gallery {
  columns: 5 188px;
  column-gap: 7px;
}

.image-card {
  margin: 0 0 7px;
  border: 0;
  border-radius: 6px;
  background: #e7e7ec;
  box-shadow: none;
  transform: translateZ(0);
}

.image-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.image-card::before {
  display: none;
}

.image-card img {
  min-height: 168px;
  object-fit: cover;
}

.card-body {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  gap: 5px;
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.48);
  color: #fff;
  backdrop-filter: blur(14px) saturate(160%);
  padding: 8px;
}

.card-title {
  color: #fff;
  font-size: 13px;
}

.card-note {
  display: none;
}

.chip-row {
  gap: 4px;
}

.chip {
  min-height: 20px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
}

.chip.primary {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.chip.warning {
  background: rgba(255, 55, 95, 0.88);
  color: #fff;
}

.chip.gold {
  background: rgba(255, 159, 10, 0.9);
  color: #111;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  width: min(520px, calc(100vw - 22px));
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(248, 248, 252, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  padding: 7px;
}

.bottom-nav-button {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(16, 17, 19, 0.56);
  font-size: 12px;
  font-weight: 760;
}

.bottom-nav-button.active {
  background: #111;
  color: #fff;
}

.bottom-nav-button.upload-tab {
  color: var(--accent);
}

.bottom-nav-button.upload-tab .bottom-icon {
  font-size: 22px;
}

.bottom-icon {
  font-size: 17px;
  line-height: 1;
}

.tag-overview {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tag-card,
.edit-row,
.manage-actions {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--soft-shadow);
}

.tag-card {
  border-radius: 18px;
  width: 100%;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.tag-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow:
    var(--soft-shadow),
    0 0 28px rgba(0, 229, 255, 0.16);
}

.thumb-strip img,
.thumb-placeholder {
  border: 0;
  border-radius: 12px;
}

.manage-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: 22px;
  margin-bottom: 14px;
  padding: 8px;
}

.manage-actions .primary-button,
.manage-actions .ghost-button {
  border-radius: 16px;
}

.edit-list {
  display: grid;
  gap: 8px;
}

.category-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 2px 14px;
}

.category-gallery {
  margin-top: 4px;
}

.detail-media {
  position: relative;
}

.detail-edit-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 42px;
  border: 1px solid rgba(182, 255, 0, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(182, 255, 0, 0.28), rgba(0, 229, 255, 0.16)),
    rgba(8, 8, 12, 0.72);
  color: #e8ff87;
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 0 28px rgba(182, 255, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  padding: 0 16px;
  font-weight: 800;
}

.detail-edit-button:hover {
  border-color: rgba(0, 229, 255, 0.58);
  color: #8ff6ff;
}

.edit-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 8px;
}

.edit-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: #e7e7ec;
}

.edit-row strong,
.edit-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-row strong {
  font-size: 15px;
}

.edit-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mini-button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
  padding: 0 14px;
  font-weight: 760;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.modal {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(250, 250, 252, 0.9);
  backdrop-filter: blur(24px) saturate(160%);
}

.modal-head {
  background: rgba(250, 250, 252, 0.72);
}

.toast {
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.82);
  color: #fff;
  backdrop-filter: blur(18px);
}

@media (max-width: 920px) {
  .app-shell {
    padding-bottom: 104px;
  }

  .main-area {
    padding: 104px 10px 22px;
  }

  .top-island {
    width: calc(100vw - 18px);
    min-height: 58px;
    padding: 7px;
  }

  .brand-pill {
    min-height: 42px;
    padding-right: 10px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-pill strong {
    font-size: 14px;
  }

  .brand-pill small {
    font-size: 11px;
  }

  .quick-category {
    width: min(168px, 41vw);
    height: 42px;
    font-size: 13px;
  }

  .hero-strip {
    margin: 0 4px 12px;
  }

  .page-title {
    font-size: 42px;
  }

  .page-note {
    margin-top: 4px;
    font-size: 13px;
  }

  .gallery-search {
    top: 78px;
    margin: 0 0 10px;
  }

  .gallery {
    columns: 2 150px;
    column-gap: 4px;
  }

  .image-card {
    margin-bottom: 4px;
    border-radius: 4px;
  }

  .image-card img {
    min-height: 146px;
  }

  .card-body {
    left: 4px;
    right: 4px;
    bottom: 4px;
    padding: 7px;
  }

  .card-title-row {
    flex-direction: row;
    align-items: center;
  }

  .card-title {
    font-size: 12px;
  }

  .chip-row .chip:not(.primary) {
    display: none;
  }

  .bottom-nav {
    width: calc(100vw - 18px);
    min-height: 66px;
  }

  .tag-overview {
    grid-template-columns: 1fr;
  }

  .manage-actions {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .edit-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    border-radius: 16px;
  }

  .edit-row img {
    width: 58px;
    height: 58px;
  }

  .modal {
    border-radius: 28px 28px 0 0;
  }
}

@media (max-width: 420px) {
  .brand-pill small {
    display: none;
  }

  .quick-category {
    width: 150px;
  }

  .page-title {
    font-size: 38px;
  }
}

/* Black + neon theme */
:root {
  --bg: #050507;
  --panel: rgba(18, 18, 24, 0.72);
  --panel-strong: rgba(24, 24, 32, 0.94);
  --ink: #f6f7ff;
  --muted: #9a9aaa;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #00e5ff;
  --accent-dark: #00a6ff;
  --accent-soft: rgba(0, 229, 255, 0.14);
  --rose: #ff2bd6;
  --rose-soft: rgba(255, 43, 214, 0.16);
  --gold: #b6ff00;
  --gold-soft: rgba(182, 255, 0, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
  --soft-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
}

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(255, 43, 214, 0.28), transparent 32%),
    radial-gradient(circle at 82% 2%, rgba(0, 229, 255, 0.24), transparent 34%),
    radial-gradient(circle at 50% 106%, rgba(182, 255, 0, 0.14), transparent 30%),
    linear-gradient(180deg, #08080d 0%, #020203 58%, #050507 100%);
  color: var(--ink);
}

.top-island,
.bottom-nav {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(8, 8, 12, 0.72);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.52),
    0 0 34px rgba(0, 229, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-pill,
.top-island-action,
.quick-category {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 18px rgba(0, 229, 255, 0.08);
}

.brand-pill small,
.page-note,
.edit-row span,
.meta-item dt,
.tag-card p,
.form-row label,
.section-label,
.card-note {
  color: var(--muted);
}

.brand-mark {
  background:
    linear-gradient(135deg, #00e5ff, #ff2bd6 58%, #b6ff00);
  color: #050507;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}

.quick-category {
  border: 1px solid rgba(0, 229, 255, 0.34);
  background-color: rgba(8, 9, 16, 0.72);
  color: #8ff6ff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -10px 22px rgba(0, 229, 255, 0.06),
    0 0 22px rgba(0, 229, 255, 0.16);
}

.quick-category:hover,
.quick-category:focus {
  border-color: rgba(182, 255, 0, 0.48);
  color: #d9ff66;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 26px rgba(182, 255, 0, 0.18),
    0 0 22px rgba(0, 229, 255, 0.12);
}

.quick-category option {
  background: #0b0b10;
  color: #f6f7ff;
}

.page-title {
  color: #fff;
  text-shadow:
    0 0 22px rgba(0, 229, 255, 0.2),
    0 0 44px rgba(255, 43, 214, 0.12);
}

.gallery-search .field,
.field,
.select-field,
.textarea-field {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.select-field {
  background-color: rgba(12, 12, 18, 0.9);
  color: #f6f7ff;
}

.select-field option {
  background: #0b0b10;
  color: #f6f7ff;
}

.gallery-search .field::placeholder,
.field::placeholder,
.textarea-field::placeholder {
  color: rgba(246, 247, 255, 0.48);
}

.field:focus,
.select-field:focus,
.textarea-field:focus {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(0, 229, 255, 0.12),
    0 0 26px rgba(0, 229, 255, 0.16);
}

.image-card {
  background: #14141a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.image-card:hover {
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.52),
    0 0 28px rgba(0, 229, 255, 0.18);
}

.card-body {
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(255, 43, 214, 0.14)),
    rgba(0, 0, 0, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.chip {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(246, 247, 255, 0.9);
}

.chip.primary {
  background: rgba(0, 229, 255, 0.18);
  color: #7ff3ff;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.28);
}

.chip.warning {
  background: rgba(255, 43, 214, 0.22);
  color: #ff8eea;
}

.chip.gold {
  background: rgba(182, 255, 0, 0.18);
  color: #d9ff66;
}

.bottom-nav-button {
  color: rgba(246, 247, 255, 0.58);
}

.bottom-nav-button.active {
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.95), rgba(255, 43, 214, 0.86));
  color: #050507;
  box-shadow:
    0 0 24px rgba(0, 229, 255, 0.34),
    0 0 18px rgba(255, 43, 214, 0.22);
}

.bottom-nav-button.upload-tab {
  color: #b6ff00;
}

.bottom-nav-button.upload-tab:active {
  background: rgba(182, 255, 0, 0.18);
}

.tag-card,
.edit-row,
.manage-actions,
.suggestion-box {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(12, 12, 18, 0.78);
  box-shadow:
    var(--soft-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.thumb-placeholder {
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(255, 43, 214, 0.16)),
    #111118;
}

.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, #00e5ff, #007aff);
  color: #050507;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.24);
}

.ghost-button,
.mini-button,
.tag-chip,
.utility-button,
.nav-button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.ghost-button:hover,
.mini-button:hover,
.tag-chip:hover,
.tag-chip.selected {
  border-color: rgba(182, 255, 0, 0.46);
  background: rgba(182, 255, 0, 0.13);
  color: #d9ff66;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.modal,
.modal-head,
.modal-actions {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(10, 10, 16, 0.9);
  color: var(--ink);
}

.preview-panel img,
.detail-image,
.edit-row img,
.thumb-strip img {
  background: #15151c;
}

.empty-state {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(255, 43, 214, 0.08)),
    rgba(255, 255, 255, 0.04);
}

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

.toast {
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 43, 214, 0.18)),
    rgba(10, 10, 16, 0.86);
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.16);
}

/* Enhancement pass */
.top-island {
  width: min(820px, calc(100vw - 22px));
}

.quick-filter-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(520px, 58vw);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.quick-filter-rail::-webkit-scrollbar {
  display: none;
}

.quick-filter {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(246, 247, 255, 0.72);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.quick-filter.active {
  border-color: rgba(0, 229, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(255, 43, 214, 0.14)),
    rgba(255, 255, 255, 0.08);
  color: #8ff6ff;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.18);
}

.quick-filter.warning.active {
  border-color: rgba(255, 43, 214, 0.5);
  color: #ff9aed;
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.18);
}

.image-card .card-body {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.image-card:hover .card-body,
.image-card:focus-visible .card-body {
  opacity: 1;
  transform: translateY(0);
}

.image-status-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2bd6;
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.8);
}

.image-card.just-saved {
  outline: 2px solid rgba(182, 255, 0, 0.9);
  outline-offset: 2px;
  box-shadow:
    0 0 34px rgba(182, 255, 0, 0.26),
    0 0 22px rgba(0, 229, 255, 0.18);
}

.tag-card {
  overflow: hidden;
  padding: 0;
}

.tag-cover {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, 92px);
  gap: 3px;
  padding: 3px;
}

.tag-cover img,
.tag-cover .thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 14px;
}

.tag-cover :first-child {
  grid-row: span 2;
}

.tag-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.detail-page {
  min-height: calc(100vh - 150px);
}

.detail-back-button {
  position: fixed;
  left: max(14px, calc((100vw - 1220px) / 2 + 14px));
  top: 92px;
  z-index: 24;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.72);
  color: var(--ink);
  backdrop-filter: blur(18px);
  padding: 0 14px;
  font-weight: 800;
}

.detail-layout.immersive {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 168px);
  place-items: center;
}

.detail-layout.immersive .detail-media {
  width: 100%;
  display: grid;
  place-items: center;
}

.detail-layout.immersive .detail-image {
  width: min(100%, 980px);
  max-height: calc(100vh - 200px);
  border-radius: 22px;
  object-fit: contain;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.54),
    0 0 40px rgba(0, 229, 255, 0.1);
}

.immersive-panel {
  position: fixed;
  left: 50%;
  bottom: 98px;
  z-index: 25;
  width: min(760px, calc(100vw - 24px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 43, 214, 0.08)),
    rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow);
  padding: 14px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-title-row h2,
.detail-title-row p {
  margin: 0;
}

.detail-title-row h2 {
  font-size: 20px;
}

.detail-title-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.immersive-panel .meta-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-focus,
.extra-fields {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.editor-focus p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.extra-fields {
  display: grid;
  gap: 12px;
}

.extra-fields summary {
  cursor: pointer;
  color: #8ff6ff;
  font-weight: 800;
}

.manage-actions {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 920px) {
  .top-island {
    align-items: stretch;
    flex-direction: column;
    border-radius: 28px;
    padding: 8px;
  }

  .brand-pill {
    width: 100%;
  }

  .quick-filter-rail {
    max-width: 100%;
    width: 100%;
  }

  .quick-filter {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .main-area {
    padding-top: 146px;
  }

  .image-card .card-body {
    display: none;
  }

  .tag-cover {
    grid-template-rows: repeat(2, 78px);
  }

  .manage-actions {
    grid-template-columns: 1fr 1fr;
  }

  .detail-back-button {
    top: 138px;
  }

  .detail-layout.immersive {
    min-height: calc(100vh - 238px);
  }

  .detail-layout.immersive .detail-image {
    max-height: calc(100vh - 300px);
    border-radius: 18px;
  }

  .immersive-panel {
    bottom: 86px;
    max-height: 42vh;
    overflow: auto;
    border-radius: 22px;
  }

  .immersive-panel .meta-list {
    grid-template-columns: 1fr;
  }

  .detail-title-row {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .manage-actions {
    grid-template-columns: 1fr;
  }

  .detail-layout.immersive .detail-image {
    max-height: calc(100vh - 330px);
  }
}
