:root {
  --ink: #121926;
  --muted: #667085;
  --soft: #f3f6fb;
  --line: #d8e0eb;
  --surface: #ffffff;
  --blue: #155eef;
  --blue-dark: #0f3fb5;
  --green: #11a36a;
  --pink: #d9436e;
  --orange: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f6f8fb;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

[hidden] {
  display: none !important;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.workbench-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(216, 224, 235, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 212px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

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

.brand strong {
  font-size: 16px;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #344054;
  font-size: 14px;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-link-button:hover {
  color: var(--blue);
}

.nav-link-button {
  border: 0;
  padding: 0;
  color: #344054;
  background: transparent;
  font-size: 14px;
}

.header-actions,
.workbench-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-link {
  color: #344054;
  font-size: 14px;
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  color: #344054;
  background: #fff;
  font-weight: 700;
}

.header-login:hover {
  color: var(--blue);
  border-color: #b8c7e6;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 700;
}

.header-cta,
.btn-primary {
  color: #fff;
  background: var(--blue);
}

.header-cta:hover,
.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.wide {
  width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 54px 0 40px;
}

.hero-copy h1,
.section-heading h2,
.plugin-copy h2,
.contact-section h2,
.workflow-section h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(38px, 5vw, 64px);
}

.hero-lede {
  max-width: 700px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.hero-facts strong {
  display: block;
  font-size: 22px;
}

.hero-facts span {
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  min-width: 0;
}

.browser-frame {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d0d5dd;
}

.browser-bar span:first-child {
  background: #f04438;
}

.browser-bar span:nth-child(2) {
  background: #f59e0b;
}

.browser-bar span:nth-child(3) {
  background: #12b76a;
}

.browser-bar b {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
}

.browser-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 430px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #101828;
  color: #fff;
}

.preview-sidebar strong {
  margin-bottom: 8px;
}

.preview-sidebar span {
  border-radius: 7px;
  padding: 9px 10px;
  color: #cbd5e1;
  font-size: 13px;
}

.preview-sidebar .active {
  color: #fff;
  background: rgba(21, 94, 239, 0.85);
}

.preview-main {
  padding: 20px;
  min-width: 0;
  background: #eef3f8;
}

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

.preview-heading small {
  color: var(--blue);
  font-weight: 800;
}

.preview-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.software-section {
  padding: 74px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.plugin-copy h2,
.contact-section h2,
.workflow-section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.plugin-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 16px;
}

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

.software-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.software-card.featured {
  grid-column: span 2;
}

.software-visual {
  height: 190px;
  padding: 12px;
  background: #edf3f8;
  border-bottom: 1px solid var(--line);
}

.software-card.featured .software-visual {
  height: 248px;
}

.software-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-radius: 7px;
}

.software-content {
  padding: 18px;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--blue);
  background: #eaf1ff;
  font-size: 12px;
  font-weight: 800;
}

.software-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.software-content p {
  min-height: 70px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.software-tags,
.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.software-tags span,
.module-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--blue);
  font-weight: 800;
}

.plugin-overview {
  padding: 76px 0;
  color: #fff;
  background: #111827;
}

.plugin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.plugin-copy p {
  color: #cbd5e1;
}

.plugin-copy .module-list span {
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.plugin-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header span {
  color: var(--muted);
  font-size: 13px;
}

.panel-layout {
  display: grid;
  grid-template-columns: 138px 1fr;
  min-height: 320px;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.panel-nav span {
  border-radius: 7px;
  padding: 9px 10px;
  color: #475467;
  font-size: 13px;
}

.panel-nav .active {
  color: #fff;
  background: var(--blue);
}

.panel-content {
  padding: 18px;
}

.upload-mini {
  display: grid;
  place-items: center;
  min-height: 100px;
  border: 1px dashed #9aa8bb;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fafc;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}

.setting-row span {
  color: var(--muted);
}

.setting-row b {
  border-radius: 6px;
  padding: 5px 9px;
  background: #edf3ff;
  color: var(--blue);
  font-size: 13px;
}

.result-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-strip img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.workflow-section {
  padding: 72px 0;
}

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

.workflow-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.workflow-card strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
}

.workflow-card h3 {
  margin: 16px 0 8px;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.contact-section div {
  max-width: 760px;
}

.workbench-page {
  background: #eef2f7;
}

.workbench-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.module-rail {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #101828;
  color: #fff;
}

.rail-section {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.rail-section p {
  margin: 0 0 4px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
}

.module-button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px;
  text-align: left;
  color: #d0d5dd;
  background: rgba(255, 255, 255, 0.04);
}

.module-button span,
.module-button small {
  display: block;
}

.module-button span {
  color: #fff;
  font-weight: 800;
}

.module-button small {
  color: #98a2b3;
  font-size: 12px;
}

.module-button.active {
  border-color: rgba(21, 94, 239, 0.9);
  background: var(--blue);
}

.module-button.active small {
  color: #dbe8ff;
}

.workbench-main {
  padding: 28px;
}

.workbench-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.workbench-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.workbench-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.credit-card {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.credit-card span,
.credit-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.credit-card strong {
  display: block;
  font-size: 32px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.tool-panel,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.panel-title h2 {
  margin: 0;
  font-size: 20px;
}

.panel-title span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.upload-zone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 138px;
  margin-bottom: 16px;
  border: 1px dashed #98a2b3;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fafc;
  cursor: pointer;
}

.upload-zone input {
  display: none;
}

.upload-zone span {
  color: var(--ink);
  font-weight: 800;
}

.upload-zone small {
  max-width: 280px;
  text-align: center;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  color: #344054;
  font-weight: 800;
}

.field textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: #fff;
}

.settings-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.setting-group {
  display: grid;
  gap: 8px;
}

.setting-group strong {
  font-size: 14px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: #475467;
  background: #f8fafc;
  font-size: 13px;
}

.choice-pill.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.image-preview {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.image-preview img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: left top;
}

.empty-preview {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  color: var(--muted);
  background: #f8fafc;
}

.image-preview.is-empty .empty-preview {
  display: grid;
}

.image-preview.is-empty img {
  visibility: hidden;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.result-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.result-grid img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.result-grid span {
  display: block;
  padding: 9px 10px;
  color: #475467;
  font-size: 13px;
}

.history-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.history-toolbar h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.history-toolbar p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.history-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.history-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: #f8fafc;
}

.history-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  object-position: left top;
  background: #fff;
}

.history-card-body {
  padding: 0 14px;
}

.history-card-body span {
  display: inline-flex;
  margin-bottom: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--blue);
  background: #eaf1ff;
  font-size: 12px;
  font-weight: 800;
}

.history-card-body h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.history-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.history-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px 14px;
}

.history-actions button {
  flex: 1;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: #344054;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.history-actions button:hover {
  color: var(--blue);
  border-color: #b8c7e6;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
}

.auth-dialog {
  position: relative;
  overflow: auto;
  width: min(380px, 100%);
  max-height: calc(100vh - 48px);
  border: 1px solid rgba(216, 224, 235, 0.95);
  border-radius: 18px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-screen {
  min-height: 0;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475467;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.auth-panel {
  display: none;
  padding: 34px 24px 26px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(21, 94, 239, 0.1), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.auth-panel.active {
  display: block;
}

.auth-panel.wechat-panel {
  color: var(--ink);
  background: #fff;
  text-align: center;
}

.auth-dialog h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form label,
.auth-input {
  display: grid;
  gap: 7px;
}

.auth-input span {
  height: 0;
  overflow: hidden;
}

.auth-input input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #c9d6ea;
  border-radius: 14px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-input input::placeholder {
  color: #8a98ad;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.auth-code-row button {
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.auth-check,
.auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.auth-links {
  justify-content: space-between;
}

.auth-links.centered {
  justify-content: center;
}

.auth-links button {
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
}

.auth-panel .btn-primary {
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--blue), #2e90fa);
}

.wechat-fast {
  color: #fff;
}

.wechat-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.wechat-title h2 {
  margin: 0;
  color: #111827;
}

.wechat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #fff;
  background: #16c65a;
  font-size: 10px;
  font-weight: 800;
}

.wechat-qr {
  display: block;
  width: 172px;
  height: 172px;
  margin: 0 auto 18px;
  border: 10px solid #fff;
  border-radius: 4px;
  background: #fff url("assets/wechat-login-qr.svg") center / 148px 148px no-repeat;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.wechat-qr span {
  display: none;
}

.auth-status {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.admin-page {
  background: #eef3f9;
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.admin-hero,
.admin-layout,
.admin-section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.admin-hero {
  margin-bottom: 22px;
}

.admin-hero h1 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
}

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

.admin-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin-bottom: 22px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.admin-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.admin-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.admin-form-grid > div,
.admin-form-grid .span-2 {
  grid-column: 1 / -1;
}

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

.admin-form-grid label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.admin-form-grid input,
.admin-form-grid textarea {
  width: 100%;
  border: 1px solid #cbd8e7;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.admin-preview {
  position: sticky;
  top: 96px;
}

.admin-preview pre {
  max-height: 520px;
  overflow: auto;
  border-radius: 7px;
  padding: 14px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

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

.config-item {
  border: 1px solid #dbe4f0;
  border-radius: var(--radius);
  padding: 16px;
  background: #f8fbff;
}

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

.config-item-title label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .hero,
  .plugin-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

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

  .software-card.featured {
    grid-column: span 1;
  }

  .workbench-shell {
    grid-template-columns: 1fr;
  }

  .module-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  .workbench-topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .main-nav,
  .header-actions,
  .workbench-actions,
  .hero-actions,
  .auth-actions,
  .contact-section,
  .history-toolbar,
  .workbench-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-facts,
  .software-grid,
  .workflow-grid,
  .result-grid,
  .module-rail {
    grid-template-columns: 1fr;
  }

  .browser-body,
  .panel-layout {
    grid-template-columns: 1fr;
  }

  .preview-sidebar,
  .panel-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .history-filter {
    justify-content: flex-start;
  }

  .history-card img {
    aspect-ratio: 16 / 10;
  }

  .history-actions {
    justify-content: space-between;
  }

}
