/* ===== main.css : 内容区布局骨架（.app-main / .app-shell / 首页内容区 .home- .wb-）样式 ===== */
.app-shell{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-shell{
  max-width: 1800px;
}
.page-records{
  max-width: none;
}
.page-records .glass-panel{
  width: 100%;
}
.page-records .record-grid{
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
@media (min-width: 1200px){
  .page-records .record-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 992px){
  .page-records.container-fluid,
  .page-admin.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-records .page-hero {
    margin-bottom: 22px;
  }

  .page-records .hero-banner {
    border-radius: 0;
  }

  .page-records .records-layout {
    display: grid;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: auto;
  }

  .page-records .records-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
  }

  .page-records .records-workflow-panel {
    max-height: none;
    overflow: visible;
  }

  .page-records .records-grid-panel {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .page-records .records-grid-panel .record-grid {
    flex: 1;
    align-content: start;
  }

  .page-records .record-grid,
  .page-admin .record-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

.page-records .glass-panel {
  border-radius: 0;
}

.admin-record-focus {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-record-focus > * {
  min-width: 0;
}

.page-records .record-chain {
  padding: 12px;
}

  .page-records .record-chain-header,
  .page-records .record-chain-preview {
    margin-bottom: 10px;
  }

  .page-records .record-version-list {
    gap: 6px;
  }

  .page-records .record-version-item {
    padding: 8px;
  }

  .page-records .record-prompt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-admin .workspace-stack {
    gap: 24px;
  }

  .page-admin .admin-records-panel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    min-height: auto;
    order: -1;
  }

  .page-admin .admin-records-panel .record-grid {
    gap: 12px;
  }

  .page-admin .admin-records-panel .record-chain {
    padding: 12px;
  }

  .page-admin .admin-records-panel .record-chain-header,
  .page-admin .admin-records-panel .record-chain-preview {
    margin-bottom: 10px;
  }

  .page-admin .admin-records-panel .record-version-list {
    gap: 6px;
  }

  .page-admin .admin-records-panel .record-version-item {
    padding: 8px;
  }

  .page-admin .admin-records-panel .record-prompt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-admin .admin-record-focus {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    align-items: start;
  }

  .page-admin .admin-record-focus #admin-record-focus-versions {
    grid-column: 1 / -1;
  }

  .page-admin .admin-record-focus #admin-record-focus-current .record-chain-preview {
    margin-bottom: 0;
  }
}

.page-home{
  max-width: none;
}
.page-ecommerce{
  max-width: none;
}
.page-ecommerce .ecommerce-stage{
  min-height: auto;
}
.page-admin{
  max-width: none;
}
.page-admin .glass-panel{
  width: 100%;
}
.home-shell{
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.home-sidebar{
  position: sticky;
  top: 106px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 19, 35, 0.98), rgba(6, 11, 22, 0.98));
}
.home-sidebar-brand{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(123, 148, 201, 0.12);
}
.home-brand{
  font-size: 17px;
}
.home-rail-nav{
  display: grid;
  gap: 10px;
}
.home-rail-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(123, 148, 201, 0.14);
  background: rgba(12, 19, 34, 0.8);
  color: #dce8ff;
  font-size: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.home-rail-link:hover{
  transform: translateY(-1px);
  border-color: rgba(20, 191, 234, 0.38);
  background: rgba(18, 29, 49, 0.92);
}
.home-rail-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(20, 191, 234, 0.08);
  flex: 0 0 auto;
}
.home-sidebar-card,
.home-input-card{
  border-radius: 18px;
  border: 1px solid rgba(123, 148, 201, 0.16);
  background: rgba(10, 17, 31, 0.88);
}
.home-sidebar-card{
  padding: 16px;
}
.home-stat-value{
  font-size: 22px;
  font-weight: 800;
  color: #f4f8ff;
}
.home-workbench{
  display: grid;
  gap: 18px;
  min-width: 0;
}
.home-hero{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  background:
    radial-gradient(circle at top right, rgba(93, 168, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(16, 24, 42, 0.98), rgba(8, 13, 26, 0.98));
}
.home-title{
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  color: #f6f9ff;
}
.home-subtitle{
  margin: 12px 0 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.home-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.home-workbench-grid{
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(520px, 1.06fr);
  gap: 18px;
  align-items: start;
}
.home-editor-panel,
.home-preview-panel,
.home-insight-panel,
.home-history-panel{
  padding: 22px;
  min-width: 0;
}
.home-preview-column{
  display: grid;
  gap: 18px;
  min-width: 0;
}
.home-preview-panel{
  min-height: 520px;
}
.home-input-card + .home-input-card{
  margin-top: 14px;
}
.home-input-card{
  padding: 18px;
}
.home-submit-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.home-submit-row .btn{
  min-height: 52px;
}
.home-preview-panel .result-gallery{
  min-height: 360px;
}
.home-preview-panel .empty-state{
  min-height: 300px;
  display: grid;
  place-items: center;
}
.home-history-panel .record-version-list{
  gap: 10px;
}
.home-history-panel .record-version-item{
  align-items: stretch;
}
.home-workflow-panel,
.records-workflow-panel{
  padding: 22px;
}
.home-workflow-panel .record-chain-header,
.records-workflow-panel .record-chain-header{
  margin-bottom: 14px;
}
.home-workflow-panel .record-chain-preview,
.records-workflow-panel .record-chain-preview{
  margin-bottom: 14px;
}
.home-workflow-panel .record-version-list,
.records-workflow-panel .record-version-list{
  gap: 10px;
}
.page-hero{
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 1200px){
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-left,
  .topbar-right,
  .topbar-nav {
    justify-content: flex-start;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shell,
  .home-workbench-grid,
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: static;
    top: auto;
  }

  .home-hero-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 768px){
  .page-shell {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .topbar {
    margin: 12px 12px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-banner,
  .kpi-card,
  .info-card,
  .feature-card,
  .mini-card,
  .panel-card,
  .home-sidebar,
  .home-editor-panel,
  .home-preview-panel,
  .home-insight-panel,
  .home-history-panel,
  .home-workflow-panel {
    border-radius: 18px;
  }

  .home-editor-panel,
  .home-preview-panel,
  .home-insight-panel,
  .home-history-panel,
  .home-workflow-panel,
  .home-sidebar {
    padding: 16px;
  }

  .home-hero {
    padding: 18px;
  }

  .records-layout {
    grid-template-columns: 1fr;
  }

  .records-sidebar {
    position: static;
  }

  .page-records .records-workflow-panel {
    max-height: none;
    overflow: visible;
  }
}
.page-home{
  max-width: none;
  padding: 14px 14px 20px !important;
}
.studio-controls-panel,
.studio-preview-panel,
.studio-insight-panel,
.home-history-panel,
.home-workflow-panel{
  padding: 20px;
}
.home-generation-card{
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(123, 148, 201, 0.22);
  background:
    radial-gradient(circle at 96% 6%, rgba(136, 88, 255, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(9, 21, 43, 0.96), rgba(7, 14, 30, 0.98));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.home-generation-card summary{
  list-style: none;
}
.home-generation-card summary::-webkit-details-marker{
  display: none;
}
.home-generation-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  cursor: pointer;
  user-select: none;
}
.home-generation-head-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.home-generation-icon{
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(208, 220, 255, 0.18);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(85, 114, 255, 0.92), rgba(91, 52, 255, 0.78));
  box-shadow: 0 0 0 5px rgba(87, 113, 255, 0.08);
}
.home-generation-icon-mark{
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.92);
}
.home-generation-icon-mark::before{
  content: "";
  position: absolute;
  left: -4px;
  top: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #14bfea;
  box-shadow: 0 0 0 3px rgba(20, 191, 234, 0.18);
}
.home-generation-head-copy{
  display: grid;
  gap: 4px;
  min-width: 0;
}
.home-generation-title-row{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.home-generation-title{
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.home-generation-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14bfea, #ff7a26);
  color: #fff4e6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.home-generation-chevron{
  flex: 0 0 auto;
  color: rgba(230, 238, 255, 0.92);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.home-generation-card:not([open]) .home-generation-chevron{
  transform: rotate(-90deg);
}
.home-generation-menu{
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}
.home-generation-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px 14px 13px 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a7cf;
  font-size: 15px;
  line-height: 1.1;
  text-align: left;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.home-generation-item:hover{
  transform: translateY(-1px);
  background: rgba(17, 27, 48, 0.72);
  color: #f4f8ff;
}
.home-generation-item.is-active{
  background: linear-gradient(180deg, rgba(24, 37, 68, 0.98), rgba(14, 22, 42, 0.98));
  border-color: rgba(178, 192, 236, 0.20);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.22);
}
.home-generation-label{
  min-width: 0;
}
.home-generation-arrow{
  flex: 0 0 auto;
  color: rgba(195, 208, 241, 0.70);
  font-size: 22px;
  line-height: 1;
}
.home-generation-item.is-active .home-generation-arrow{
  color: #ffffff;
}
@media (max-width: 768px){
  .page-home {
    padding: 10px !important;
  }

  .studio-header {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .studio-header-actions {
    justify-content: flex-start;
  }

  .studio-rail-stack {
    display: grid;
    grid-template-columns: 1fr;
  }

  .studio-workbench {
    grid-template-columns: 1fr;
  }

  .studio-bottom-grid {
    grid-template-columns: 1fr;
  }

  .studio-controls-panel,
  .studio-preview-panel,
  .studio-insight-panel,
  .home-history-panel,
  .home-workflow-panel {
    padding: 16px;
  }
}
.app-main{
  margin-left: 248px;
  min-height: 100vh;
  padding: 76px 18px 18px 18px;
}
.home-dashboard{
  display: grid;
  gap: 16px;
}
.home-hero{
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(112, 84, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(9, 15, 31, 0.98), rgba(6, 11, 24, 0.98));
}
.home-hero-copy{
  min-width: 0;
}
.home-hero-kicker{
  color: #4f84ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.home-hero-title{
  margin: 6px 0 0;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.04;
  font-weight: 900;
  color: #f6f9ff;
}
.home-hero-subtitle{
  margin: 10px 0 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.home-hero-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.home-workbench-grid{
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(540px, 1.1fr);
  gap: 16px;
  align-items: start;
}
.home-preview-column{
  display: grid;
  gap: 16px;
  min-width: 0;
}
.home-editor-panel,
.home-preview-panel,
.home-history-panel,
.home-workflow-panel{
  padding: 20px;
  min-width: 0;
}
.home-preview-panel{
  min-height: 720px;
}
.home-preview-panel .result-gallery{
  min-height: 560px;
}
.home-submit-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.home-submit-row .btn{
  min-height: 52px;
}
.home-history-panel .record-version-list,
.home-workflow-panel .record-version-list{
  gap: 10px;
}
.page-shell{
  max-width: none;
  padding-top: 0 !important;
}
.home-page-shell{
  display: grid;
  gap: 18px;
}
.home-workbench-grid{
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}
.home-editor-panel{
  padding: 20px;
  min-width: 0;
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: none;
  overflow: visible;
  background:
    radial-gradient(circle at 100% 0%, rgba(10, 99, 216, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(9, 15, 31, 0.98), rgba(6, 11, 24, 0.98));
}
.home-editor-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.home-editor-copy{
  min-width: 0;
}
.home-kicker{
  color: #5c86ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.home-stage-title{
  margin: 6px 0 0;
  color: #f7faff;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.home-editor-badges{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.home-input-card{
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(123, 148, 201, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 18, 34, 0.96), rgba(8, 14, 27, 0.92));
}
.home-input-card + .home-input-card{
  margin-top: 14px;
}
.home-upload-dropzone{
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(123, 148, 201, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(93, 168, 255, 0.10), transparent 32%),
    rgba(8, 14, 27, 0.92);
  cursor: pointer;
}
.home-upload-dropzone:hover{
  border-color: rgba(20, 191, 234, 0.42);
  background:
    radial-gradient(circle at 0% 0%, rgba(93, 168, 255, 0.16), transparent 32%),
    rgba(10, 16, 31, 0.98);
}
.home-drop-icon{
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(27, 34, 59, 0.96);
  border: 1px solid rgba(123, 148, 201, 0.16);
  color: #dbe7ff;
  font-size: 26px;
  font-weight: 300;
  flex: 0 0 auto;
}
.home-drop-copy{
  display: grid;
  gap: 4px;
  min-width: 0;
}
.home-category-select{
  min-height: 46px;
}
.home-category-detail{
  min-height: 80px;
}
.home-preview-column{
  display: grid;
  gap: 18px;
  min-width: 0;
}
.home-preview-panel{
  padding: 24px;
  min-height: 760px;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 15% 18%, rgba(112, 84, 255, 0.16), transparent 25%),
    radial-gradient(circle at 86% 14%, rgba(42, 89, 255, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(8, 14, 27, 0.98), rgba(5, 9, 18, 0.98));
}
.home-stage-header{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  text-align: center;
  align-items: center;
}
.home-stage-copy{
  max-width: 700px;
}
.home-stage-copy .home-kicker{
  color: #4378ff;
}
.home-stage-subtitle{
  margin: 12px auto 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.home-stage-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.home-result-grid{
  width: min(100%, 1024px);
  margin-inline: auto;
}
.home-result-empty{
  min-height: 560px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px dashed rgba(123, 148, 201, 0.18);
  background:
    radial-gradient(circle at 50% 40%, rgba(93, 168, 255, 0.08), transparent 24%),
    rgba(7, 12, 24, 0.92);
}
.home-result-board{
  display: grid;
  gap: 14px;
}
.home-result-board-multi{
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.82fr);
}
.home-result-board-single{
  grid-template-columns: minmax(0, 1fr);
}
.home-result-card{
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(123, 148, 201, 0.16);
  background:
    linear-gradient(180deg, rgba(22, 28, 48, 0.96), rgba(10, 15, 30, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.home-result-card:hover{
  border-color: rgba(20, 191, 234, 0.42);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(20, 191, 234, 0.12);
}
.home-result-card-main{
  min-height: 560px;
}
.home-result-card-thumb{
  min-height: 0;
  aspect-ratio: 1 / 1;
}
.home-result-thumb-rail{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-result-image{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a1020;
}
.home-result-label,
.home-result-caption{
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(9, 15, 31, 0.72);
  border: 1px solid rgba(123, 148, 201, 0.20);
  color: #eaf1ff;
  font-size: 12px;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}
.home-result-label{
  left: 12px;
  top: 12px;
}
.home-result-caption{
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: left;
  color: #cfdcff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-lower-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-history-panel,
.home-workflow-panel{
  padding: 20px;
  min-width: 0;
}
.home-history-panel .record-version-list,
.home-workflow-panel .record-version-list{
  gap: 10px;
}
.home-history-panel .record-version-item,
.home-workflow-panel .record-version-item{
  align-items: stretch;
}
.home-history-panel .record-chain-preview{
  margin-bottom: 12px;
}
.home-workflow-panel .record-chain-preview{
  margin-bottom: 12px;
}
.home-workflow-panel .record-chain-header,
.home-history-panel .record-chain-header{
  margin-bottom: 12px;
}
.home-workbench-grid .mini-card{
  padding: 14px;
}
.home-workbench-grid .prompt-box{
  min-height: 56px;
}
.home-workbench-grid .field-label{
  margin-bottom: 8px;
}
.home-submit-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.home-submit-row .btn{
  min-height: 52px;
}
@media (max-width: 1280px){
  .home-workbench-grid {
    grid-template-columns: 1fr;
  }

  .home-editor-panel {
    position: static;
    top: auto;
    max-height: none;
  }

  .home-lower-grid {
    grid-template-columns: 1fr;
  }

  .home-result-board-multi {
    grid-template-columns: 1fr;
  }

  .home-result-card-main {
    min-height: 500px;
  }
}
@media (max-width: 768px){
  .home-editor-panel,
  .home-preview-panel,
  .home-history-panel,
  .home-workflow-panel {
    padding: 16px;
  }

  .home-editor-head,
  .home-stage-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .home-stage-actions,
  .home-editor-badges {
    justify-content: flex-start;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .home-result-card-main {
    min-height: 380px;
  }

  .home-result-thumb-rail {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px){
  .home-agent-config {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1200px){
  .home-composer-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .home-send-btn {
    justify-self: end;
  }

  .home-case-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-case-card-featured {
    grid-column: span 2;
  }

  .home-archive-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px){
  .home-hero-panel,
  .home-case-panel,
  .home-archive {
    padding: 18px;
    border-radius: 22px;
  }

  .home-composer-card {
    grid-template-columns: 1fr;
  }

  .home-composer-icon {
    display: none;
  }

  .home-case-board {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .home-session-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .home-session-chip,
  .home-session-empty-chip {
    width: 100%;
  }

  .home-session-turn-head,
  .home-session-tail {
    align-items: flex-start;
  }

  .home-case-card-featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .home-hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }
}
@media (max-width: 1200px){
  .home-workbench-grid {
    grid-template-columns: 1fr;
  }

  .home-editor-panel {
    position: static;
    top: auto;
    max-height: none;
  }

  .home-editor-toolbar,
  .home-context-grid,
  .home-context-grid-wide {
    grid-template-columns: 1fr;
  }

  .home-result-card-main {
    min-height: 460px;
  }
}
@media (max-width: 768px){
  .home-hero-panel,
  .home-editor-panel,
  .home-preview-panel,
  .home-session-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .home-composer-card {
    grid-template-columns: 1fr;
  }

  .home-composer-icon {
    display: none;
  }

  .home-mode-row,
  .home-hero-actions,
  .home-session-tail {
    justify-content: flex-start;
  }

  .home-result-card-main {
    min-height: 380px;
  }

  .home-preview-head,
  .home-session-head,
  .home-editor-head {
    flex-direction: column;
  }
}
.page-home{
  max-width: none;
  padding: 0 !important;
}
@media (max-width: 768px){
  .workbuddy-home-shell {
    min-height: auto;
    justify-content: flex-start;
    padding: 32px 12px 18px;
  }

  .wb-stage-tools {
    position: static;
    align-self: flex-start;
  }

  .wb-bot-mark {
    width: 86px;
    height: 86px;
  }

  .home-hero-title {
    font-size: 24px;
  }

  .wb-mode-row {
    flex-wrap: wrap;
  }

  .wb-composer-bottom {
    align-items: flex-start;
  }

  .wb-left-tools {
    flex: 1 1 100%;
  }

  .wb-right-tools {
    margin-left: auto;
  }
}
.home-brand-lockup{
  margin-bottom: 6px;
}
@media (max-width: 1100px){
  .wb-left-tools {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .wb-param-control {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .wb-param-category {
    min-width: 260px;
  }
}
