/* Front responsive polish — industrial command panel + front page details */
:root {
  --fp-line: #B45309;
  --fp-line-dark: #7C2D12;
  --fp-ink: #1C1917;
  --fp-paper: #FFFBF5;
  --fp-soft: #FFF7ED;
  --fp-dark: #292524;
  --fp-muted: #78716C;
  --fp-shadow: 10px 10px 0 rgba(180, 83, 9, .15);
  --fp-radius: 0px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

/* ===== 首页：工业风一行命令面板 ===== */
.industrial-wrapper {
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px !important;
}

.industrial-main-frame {
  overflow: visible;
}

.home-feature-grid {
  --feature-count: 1;
  display: grid !important;
  grid-template-columns: repeat(var(--feature-count), minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border-bottom: 2.5px solid var(--fp-line);
  background: var(--fp-dark);
}

.home-feature-grid.has-collection,
.home-feature-grid.has-bind {
  --feature-count: 2;
}

.home-feature-grid.has-collection.has-bind {
  --feature-count: 3;
}

.single-entry-home-entry,
.homepage-collection-entry,
.homepage-bind-entry {
  min-height: 118px !important;
  box-sizing: border-box;
  align-items: stretch !important;
  justify-content: space-between !important;
  flex-direction: column;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  padding: 15px 16px 14px !important;
  border: 0 !important;
  border-right: 2px solid var(--fp-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .18s ease, transform .18s ease;
}

.home-feature-grid > :last-child {
  border-right: 0 !important;
}

.single-entry-home-entry::before,
.homepage-collection-entry::before,
.homepage-bind-entry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--fp-line);
  z-index: -1;
}

.single-entry-home-entry {
  display: flex;
  background: #292524 !important;
  color: #FFFBF5 !important;
}

.homepage-collection-entry {
  background: #F0FDF4 !important;
  color: #111827 !important;
}

.homepage-bind-entry {
  background: #FFF7ED !important;
  color: #111827 !important;
}

.single-entry-home-entry:hover,
.homepage-collection-entry:hover,
.homepage-bind-entry:hover {
  transform: translateY(-1px);
}

.single-entry-home-main,
.homepage-collection-main,
.homepage-bind-entry-main {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start !important;
  gap: 12px !important;
  min-width: 0;
  flex: 0 1 auto !important;
}

.single-entry-home-icon,
.homepage-collection-icon,
.homepage-bind-entry-icon {
  width: 42px !important;
  height: 42px !important;
  border: 2px solid currentColor !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .12);
  font-size: 17px !important;
}

.single-entry-home-icon {
  background: #FFFBF5 !important;
  color: #B45309 !important;
}

.homepage-collection-icon {
  background: #14532D !important;
  color: #DCFCE7 !important;
}

.homepage-bind-entry-icon {
  background: #111827 !important;
  color: #FBBF24 !important;
}

.single-entry-home-title,
.homepage-collection-title,
.homepage-bind-entry-title {
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  margin-bottom: 5px !important;
}

.single-entry-home-title::before,
.homepage-collection-title::before,
.homepage-bind-entry-title::before {
  display: inline-block;
  margin-right: 8px;
  font: 900 10px/1 "Courier New", monospace;
  letter-spacing: .12em;
  opacity: .68;
}

.single-entry-home-title::before { content: "CMD-01"; }
.homepage-collection-title::before { content: "CMD-02"; }
.homepage-bind-entry-title::before { content: "CMD-03"; }

.single-entry-home-desc,
.homepage-collection-desc,
.homepage-bind-entry-desc {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: inherit !important;
  opacity: .78;
  overflow-wrap: anywhere;
}

.single-entry-home-action,
.homepage-collection-action,
.homepage-bind-entry-action {
  width: 100%;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 12px !important;
  border-radius: 0 !important;
  border: 2px solid currentColor !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.single-entry-home-action {
  background: #B45309 !important;
  color: #fff !important;
}

.homepage-collection-action {
  background: #166534 !important;
  color: #fff !important;
}

.homepage-bind-entry-action {
  background: #111827 !important;
  color: #fff !important;
}

.single-entry-home-action:hover,
.homepage-collection-action:hover,
.homepage-bind-entry-action:hover {
  transform: translateX(1px);
  filter: brightness(.94);
}

.card-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr) !important;
  min-height: 0 !important;
}

.left-column {
  justify-content: flex-start !important;
  padding: clamp(24px, 3vw, 36px) !important;
}

.right-column {
  padding: clamp(22px, 2.8vw, 32px) !important;
  top: 22px !important;
  align-self: start;
}

.file-upload-area {
  min-height: 220px;
}

.upload-actions {
  width: 100%;
}

.btn-primary-action,
.btn-secondary-action,
.validation-records-btn {
  min-width: 0;
}

.articles-section,
.instructions,
.ind-qq-banner,
.announcement-bar {
  overflow-wrap: anywhere;
}

.article-card {
  min-width: 0;
}

.article-card-title,
.article-card-excerpt {
  overflow-wrap: anywhere;
}

/* ===== 单条填写与班级收集页 ===== */
.single-entry-wrapper,
.cf-shell {
  width: min(1120px, calc(100% - 32px)) !important;
}

.single-entry-frame,
.cf-header,
.cf-panel {
  box-shadow: var(--fp-shadow) !important;
}

.single-entry-titlebar {
  grid-template-columns: 150px minmax(0, 1fr) 132px !important;
}

.single-entry-heading h1,
.cf-title {
  overflow-wrap: anywhere;
}

.single-entry-fields,
.cf-form-grid,
.cf-default-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

.single-entry-field.full,
.cf-field-full {
  grid-column: 1 / -1 !important;
}

.single-entry-field input,
.single-entry-field select,
.single-entry-field textarea,
.cf-field input,
.cf-field select,
.cf-field textarea {
  max-width: 100%;
  min-width: 0;
}

.single-entry-actions,
.cf-actions {
  align-items: stretch;
}

.single-entry-submit,
.single-entry-secondary,
.cf-btn {
  min-width: 128px;
}

.cf-card {
  overflow-wrap: anywhere;
}

/* ===== 结果页 ===== */
.printer-wrapper {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.top-action-zone {
  grid-template-columns: minmax(190px, .8fr) minmax(240px, 1fr) minmax(240px, auto) !important;
}

.action-block {
  min-width: 0;
}

.action-block .btn-outline,
.action-block .btn-heavy,
.action-block .btn-success-heavy,
.submit-group button {
  min-height: 42px;
}

.file-header,
.error-section-title,
.ai-item-header {
  min-width: 0;
}

.error-name,
.ai-item,
.tip-content-html {
  overflow-wrap: anywhere;
}

.tip-content-html {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tip-content-html table {
  min-width: 620px;
}

.submission-code-dialog {
  width: min(520px, calc(100vw - 28px)) !important;
}

/* ===== 文章页 ===== */
.article-container {
  width: min(840px, calc(100% - 36px)) !important;
  max-width: 840px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.article-title {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.article-meta {
  flex-wrap: wrap !important;
  gap: 10px 18px !important;
}

.article-content {
  overflow-wrap: anywhere;
}

.article-content pre,
.article-content table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.featured-image:hover {
  transform: none !important;
}

.action-buttons {
  flex-wrap: wrap;
}

/* ===== 简化上传、确认、权限、错误等前台页细节 ===== */
.simple-container,
.main-container,
.submit-shell,
.permission-shell,
.error-shell,
.submitting-container {
  max-width: calc(100vw - 32px) !important;
}

.modal-content,
.login-modal-content,
.submission-metadata-card {
  max-width: calc(100vw - 28px) !important;
}

@media (max-width: 1024px) {
  .industrial-wrapper,
  .printer-wrapper,
  .single-entry-wrapper,
  .cf-shell {
    width: min(100% - 24px, 960px) !important;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .left-column {
    border-right: 0 !important;
    border-bottom: 2px solid var(--fp-line) !important;
  }

  .right-column {
    position: static !important;
  }

  .top-action-zone {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 16px;
  }

  body {
    min-width: 0;
  }

  .industrial-wrapper,
  .printer-wrapper,
  .single-entry-wrapper,
  .cf-shell {
    width: 100% !important;
    margin: 0 !important;
  }

  .industrial-main-frame,
  .main-frame,
  .single-entry-frame,
  .cf-header,
  .cf-panel {
    box-shadow: none !important;
  }

  .industrial-printer-slot,
  .industrial-status-bar,
  .printer-slot,
  .printer-status-bar,
  .single-entry-slot {
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .home-feature-grid {
    --feature-count: 1 !important;
    grid-template-columns: 1fr !important;
    border-bottom-width: 2px;
  }

  .single-entry-home-entry,
  .homepage-collection-entry,
  .homepage-bind-entry {
    min-height: 106px !important;
    border-right: 0 !important;
    border-bottom: 2px solid var(--fp-line) !important;
    padding: 14px !important;
  }

  .single-entry-home-main,
  .homepage-collection-main,
  .homepage-bind-entry-main {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .single-entry-home-icon,
  .homepage-collection-icon,
  .homepage-bind-entry-icon {
    width: 38px !important;
    height: 38px !important;
    box-shadow: none;
  }

  .single-entry-home-title,
  .homepage-collection-title,
  .homepage-bind-entry-title {
    font-size: 15px !important;
  }

  .single-entry-home-title::before,
  .homepage-collection-title::before,
  .homepage-bind-entry-title::before {
    display: block;
    margin: 0 0 4px;
  }

  .ind-title-zone {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .ind-title-center {
    min-width: 0;
    padding: 12px 14px !important;
  }

  .ind-title-center h1 {
    max-width: 100%;
    font-size: 16px !important;
    line-height: 1.28 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .ind-title-right {
    padding: 9px 10px !important;
  }

  .ind-status-indicator {
    display: none !important;
  }

  .ind-user-name {
    display: none;
  }

  .version-tag {
    display: none !important;
  }

  .left-column,
  .right-column {
    padding: 18px 14px !important;
  }

  .file-upload-area {
    min-height: 156px !important;
    padding: 22px 14px !important;
  }

  .upload-actions,
  .submit-group,
  .action-block,
  .cf-actions,
  .single-entry-actions,
  .action-buttons,
  .modal-buttons,
  .login-action-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .btn,
  .btn-primary-action,
  .btn-secondary-action,
  .validation-records-btn,
  .single-entry-submit,
  .single-entry-secondary,
  .cf-btn,
  .action-btn,
  .modal-btn,
  .btn-outline,
  .btn-heavy,
  .btn-success-heavy,
  .submission-code-btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .single-entry-titlebar,
  .single-entry-fields,
  .cf-form-grid,
  .cf-default-grid {
    grid-template-columns: 1fr !important;
  }

  .single-entry-heading,
  .single-entry-panel,
  .cf-header,
  .cf-panel {
    padding: 16px !important;
  }

  .single-entry-back,
  .single-entry-status {
    min-height: auto !important;
    padding: 12px 16px !important;
  }

  .single-entry-panel-head,
  .page-head,
  .status-row,
  .permission-top,
  .error-section-title,
  .ai-item-header,
  .file-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .single-entry-template-badge,
  .new-file-pill {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  .cf-shell {
    padding: 0 0 24px !important;
  }

  body.collection-body {
    background-size: 22px 22px;
  }

  .cf-header,
  .cf-panel {
    border-left: 0 !important;
    border-right: 0 !important;
    margin-bottom: 12px !important;
  }

  .top-action-zone > * {
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .stat-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-box {
    border-right: 0 !important;
  }

  .error-section,
  .ai-section,
  .tips-section {
    padding: 16px !important;
  }

  .tip-content-html table {
    min-width: 520px;
  }

  .back-btn-industrial,
  .feedback-btn-industrial,
  .music-control-btn,
  .back-to-top {
    transform: scale(.9);
  }

  .feedback-btn-industrial {
    left: 12px !important;
    bottom: 12px !important;
  }

  .back-btn-industrial,
  .back-to-top {
    right: 12px !important;
    bottom: 12px !important;
  }

  .article-container {
    width: min(100% - 28px, 840px) !important;
    padding-top: 32px !important;
    padding-bottom: 56px !important;
  }

  .article-title {
    font-size: clamp(1.7rem, 8vw, 2.05rem) !important;
    line-height: 1.25 !important;
  }

  .article-content {
    font-size: 1rem !important;
    line-height: 1.82 !important;
  }

  .article-content p {
    text-align: left !important;
  }

  .featured-image {
    border-radius: 10px !important;
    margin: 1.25rem 0 2rem !important;
  }

  .interaction-section {
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
  }

  .submit-shell,
  .permission-shell,
  .error-shell {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .single-entry-home-action,
  .homepage-collection-action,
  .homepage-bind-entry-action {
    justify-content: center !important;
  }

  .ind-login-btn {
    padding: 7px 10px !important;
  }

  .article-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-entry-home-entry,
  .homepage-collection-entry,
  .homepage-bind-entry,
  .single-entry-home-action,
  .homepage-collection-action,
  .homepage-bind-entry-action,
  .featured-image {
    transition: none !important;
    transform: none !important;
  }
}

/* visible-last border correction for the dynamic homepage command panel */
.home-feature-grid:not(.has-collection):not(.has-bind) .single-entry-home-entry,
.home-feature-grid.has-collection:not(.has-bind) .homepage-collection-entry,
.home-feature-grid.has-bind:not(.has-collection) .homepage-bind-entry,
.home-feature-grid.has-collection.has-bind .homepage-bind-entry {
  border-right: 0 !important;
}

.cf-btn-danger {
  border-color: #B91C1C !important;
  background: #FEF2F2 !important;
  color: #991B1B !important;
}

#submissions table {
  min-width: 760px;
}

#submissions th,
#submissions td {
  padding: 10px 12px;
  border: 1.5px solid #D6A35C;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

#submissions th {
  background: #FFF7ED;
  color: #7C2D12;
  font-size: 13px;
  font-weight: 900;
}

#submissions td {
  font-size: 13px;
  line-height: 1.5;
}

/* ============================================================
   2026-06-22 visual repair pass
   Fixes: heavy homepage command panel, my-collections action overflow,
   and narrow/mobile front detail spacing.
   ============================================================ */

/* 首页不再做“粗边框表格感”，改成轻量工业命令台 */
.industrial-wrapper {
  width: min(1080px, calc(100% - 36px)) !important;
  max-width: 1080px !important;
  margin-top: clamp(12px, 2vw, 22px) !important;
}

.industrial-printer-slot {
  min-height: 36px !important;
  padding: 8px 16px !important;
  gap: 12px !important;
  border-width: 1.5px !important;
  border-color: #8B4A1C !important;
  background: #242321 !important;
  border-radius: 3px 3px 0 0 !important;
}

.industrial-printer-led {
  width: 7px !important;
  height: 7px !important;
}

.industrial-printer-slot-inner {
  height: 3px !important;
  opacity: .55;
}

.industrial-printer-slot-label {
  font-size: 9px !important;
  letter-spacing: .24em !important;
  opacity: .42;
}

.industrial-main-frame {
  border-width: 1.5px !important;
  border-color: #9A5524 !important;
  box-shadow: 8px 8px 0 rgba(120, 53, 15, .10) !important;
}

.ind-title-zone {
  grid-template-columns: 132px minmax(0, 1fr) minmax(190px, auto) !important;
  min-height: 78px !important;
  border-bottom-width: 1.5px !important;
  border-color: #9A5524 !important;
}

.ind-title-logo {
  padding: 14px 18px !important;
  border-right-width: 1.5px !important;
  border-color: #9A5524 !important;
}

.ind-title-logo i {
  font-size: 18px !important;
}

.ind-title-logo-text {
  font-size: 9px !important;
  letter-spacing: .16em !important;
  color: #8a8176 !important;
}

.ind-title-center {
  padding: 12px clamp(18px, 3vw, 28px) !important;
  min-width: 0;
}

.ind-title-center h1 {
  font-size: clamp(22px, 3.2vw, 32px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.02em !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.version-tag {
  padding: 3px 9px !important;
  font-size: .52em !important;
  vertical-align: middle;
}

.ind-title-right {
  padding: 12px 18px !important;
  gap: 12px !important;
  border-left-width: 1.5px !important;
  border-color: #9A5524 !important;
}

.ind-login-btn,
.ind-user-info {
  border-width: 1.5px !important;
}

/* 首页三入口：从三张大卡片改成同一套命令栏，减少压迫感 */
.home-feature-grid {
  background: #F7F1E8 !important;
  border-bottom: 1.5px solid #9A5524 !important;
  border-top: 0 !important;
  gap: 0 !important;
}

.single-entry-home-entry,
.homepage-collection-entry,
.homepage-bind-entry {
  min-height: 86px !important;
  padding: 13px 14px !important;
  background: #FFFBF5 !important;
  color: #1F2937 !important;
  border-right: 1.5px solid #D2B48C !important;
}

.single-entry-home-entry::before,
.homepage-collection-entry::before,
.homepage-bind-entry::before {
  height: 0 !important;
  display: none !important;
}

.single-entry-home-entry:hover,
.homepage-collection-entry:hover,
.homepage-bind-entry:hover {
  background: #FFF7ED !important;
  transform: none !important;
}

.single-entry-home-main,
.homepage-collection-main,
.homepage-bind-entry-main {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
}

.single-entry-home-icon,
.homepage-collection-icon,
.homepage-bind-entry-icon {
  width: 34px !important;
  height: 34px !important;
  border: 1.5px solid #A65F2B !important;
  box-shadow: none !important;
  background: #FFF7ED !important;
  color: #9A5524 !important;
  font-size: 14px !important;
}

.homepage-collection-icon {
  border-color: #2F6B3B !important;
  background: #EEF8EF !important;
  color: #2F6B3B !important;
}

.homepage-bind-entry-icon {
  border-color: #111827 !important;
  background: #F8FAFC !important;
  color: #111827 !important;
}

.single-entry-home-title,
.homepage-collection-title,
.homepage-bind-entry-title {
  font-size: 15px !important;
  line-height: 1.25 !important;
  margin-bottom: 2px !important;
  color: #111827 !important;
}

.single-entry-home-title::before,
.homepage-collection-title::before,
.homepage-bind-entry-title::before {
  display: inline-block !important;
  margin-right: 7px !important;
  color: #9A5524 !important;
  opacity: .72 !important;
}

.homepage-collection-title::before { color: #2F6B3B !important; }
.homepage-bind-entry-title::before { color: #111827 !important; }

.single-entry-home-desc,
.homepage-collection-desc,
.homepage-bind-entry-desc {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #6B7280 !important;
  opacity: 1 !important;
}

.single-entry-home-action,
.homepage-collection-action,
.homepage-bind-entry-action {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border: 1.5px solid currentColor !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
}

.single-entry-home-action {
  background: #9A5524 !important;
  color: #fff !important;
}

.homepage-collection-action {
  background: #2F6B3B !important;
  color: #fff !important;
}

.homepage-bind-entry-action {
  background: #111827 !important;
  color: #fff !important;
}

/* 班级负责人“发布收集”页按钮溢出修复 + 布局更像操作区 */
.cf-panel,
.cf-header,
.cf-card,
.cf-field,
.cf-actions,
.cf-btn {
  box-sizing: border-box !important;
}

.cf-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(120px, .72fr) minmax(140px, .85fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.cf-actions .cf-btn {
  width: 100% !important;
  min-width: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  white-space: nowrap;
}

#submit-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#code-panel .cf-actions {
  grid-template-columns: minmax(0, 220px) !important;
  justify-content: start !important;
}

.cf-card .cf-actions {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
}

@media (max-width: 900px) {
  .ind-title-zone {
    grid-template-columns: 112px minmax(0, 1fr) auto !important;
  }
  .ind-title-logo { padding: 12px 14px !important; }
  .ind-title-right { padding: 10px 12px !important; }
}

@media (max-width: 760px) {
  .industrial-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .industrial-printer-slot {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
  }

  .industrial-main-frame {
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }

  .ind-title-zone {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 64px !important;
  }

  .ind-title-logo { display: none !important; }

  .home-feature-grid {
    grid-template-columns: 1fr !important;
  }

  .single-entry-home-entry,
  .homepage-collection-entry,
  .homepage-bind-entry {
    min-height: 82px !important;
    padding: 12px 14px !important;
    border-right: 0 !important;
    border-bottom: 1.5px solid #D2B48C !important;
  }

  .single-entry-home-main,
  .homepage-collection-main,
  .homepage-bind-entry-main {
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }

  .single-entry-home-icon,
  .homepage-collection-icon,
  .homepage-bind-entry-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .single-entry-home-title::before,
  .homepage-collection-title::before,
  .homepage-bind-entry-title::before {
    display: inline-block !important;
    margin: 0 7px 0 0 !important;
  }

  .single-entry-home-action,
  .homepage-collection-action,
  .homepage-bind-entry-action {
    height: 34px !important;
  }

  .cf-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cf-actions .cf-btn:first-child,
  #submit-actions .cf-btn,
  #code-panel .cf-actions .cf-btn {
    grid-column: 1 / -1 !important;
  }

  #submit-actions,
  #code-panel .cf-actions {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .cf-actions {
    grid-template-columns: 1fr !important;
  }
  .cf-actions .cf-btn {
    grid-column: auto !important;
  }
}

/* ============================================================
   2026-06-22 v3 homepage single-entry repair
   Only one command visible: action becomes a normal right-side button.
   ============================================================ */
.home-feature-grid:not(.has-collection):not(.has-bind) {
  grid-template-columns: 1fr !important;
}

.home-feature-grid:not(.has-collection):not(.has-bind) .single-entry-home-entry {
  min-height: 74px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 15px 18px !important;
  border-right: 0 !important;
  flex-direction: initial !important;
  justify-content: initial !important;
  overflow: visible !important;
}

.home-feature-grid:not(.has-collection):not(.has-bind) .single-entry-home-main {
  min-width: 0 !important;
}

.home-feature-grid:not(.has-collection):not(.has-bind) .single-entry-home-action {
  width: auto !important;
  min-width: 108px !important;
  max-width: 160px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  justify-self: end !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

@media (max-width: 640px) {
  .home-feature-grid:not(.has-collection):not(.has-bind) .single-entry-home-entry {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .home-feature-grid:not(.has-collection):not(.has-bind) .single-entry-home-action {
    justify-self: start !important;
  }
}
