:root {
  color: #17231f;
  background: #f3f5f4;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: #146247; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, input, select, textarea {
  min-width: 0;
  border: 1px solid #aeb9b3;
  border-radius: 4px;
  background: #fff;
  padding: 8px 10px;
}
button {
  min-height: 36px;
  cursor: pointer;
  border-color: #176b50;
  background: #176b50;
  color: #fff;
  font-weight: 600;
}
button:hover { background: #115b42; }
button:disabled { cursor: not-allowed; border-color: #aab3ae; background: #aab3ae; }
textarea { resize: vertical; }
label { display: grid; gap: 5px; color: #34453e; font-size: 13px; }
h1 { margin: 4px 0 0; font-size: 26px; line-height: 1.25; }
h2 { margin: 0; font-size: 18px; }
h3 { margin: 0; font-size: 15px; }
p { line-height: 1.55; }

.app-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 14px;
  background: #123d32;
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 16px; font-weight: 700; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; background: #d9eee3; color: #123d32; }
.app-sidebar nav { display: grid; gap: 6px; }
.app-sidebar nav a { display: flex; min-height: 40px; align-items: center; gap: 10px; padding: 0 12px; border-radius: 5px; color: #dce9e4; text-decoration: none; }
.app-sidebar nav a:hover, .app-sidebar nav a.active { background: #24584b; color: #fff; }
.nav-icon { width: 18px; color: #9bc6b7; text-align: center; }
.sidebar-meta { display: grid; gap: 3px; margin-top: auto; padding: 12px; border-top: 1px solid #39645a; color: #c5d8d1; }
.sidebar-meta b { color: #fff; font-size: 12px; }.sidebar-meta span { font-size: 11px; }
.sidebar-user { display: grid; gap: 8px; margin-top: auto; border-top: 1px solid #39645a; padding: 14px 10px 0; }.sidebar-user > div:first-child { display: grid; gap: 2px; }.sidebar-user span { color: #b9d0c8; font-size: 11px; }.sidebar-user-actions { display: flex; align-items: center; gap: 10px; }.sidebar-user-actions a { color: #dce9e4; font-size: 11px; }.sidebar-user-actions form { margin: 0; }.sidebar-user-actions button { min-height: 26px; border-color: #66877e; padding: 2px 7px; background: transparent; font-size: 11px; }.sidebar-user + .sidebar-meta { margin-top: 0; }
.app-main { width: 100%; max-width: 1480px; min-width: 0; margin: 0 auto; padding: 28px 32px 56px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; }.page-head p { margin: 5px 0 0; color: #66766f; font-size: 13px; }.page-head > span { color: #66766f; font-size: 13px; }

.workspace-head, .detail-head, .section-heading, .queue-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.detail-head { align-items: center; padding-bottom: 18px; }
.detail-head p, .workspace-head p, .section-heading p, .queue-heading p { margin: 5px 0 0; color: #66766f; font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 6px; color: #53655d; font-size: 13px; text-decoration: none; }
.back-link:hover { color: #146247; }
.project-status, .section-count { padding: 5px 9px; border-radius: 4px; background: #e0eee7; color: #175d46; font-size: 12px; }
.project-status[data-state="queued"], .project-status[data-state="running"], .project-status[data-state="review"] { background: #fff1c7; color: #765500; }
.project-status[data-state="failed"] { background: #f5dfdc; color: #8a2c23; }
.eyebrow { margin: 0; color: #176b50; font-size: 12px; font-weight: 700; }

.project-sticky-head {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #f3f5f4;
  box-shadow: 0 1px 0 #d5dcd8;
}
.project-sticky-head .detail-head { padding-top: 4px; }
.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 4px;
  margin: 0 -4px 12px;
  padding: 8px 4px;
  list-style: none;
  background: #f3f5f4;
}
.workflow li { border-bottom: 2px solid #bcc6c1; }
.workflow li a { display: flex; min-height: 46px; align-items: center; gap: 8px; padding: 0 8px; color: #68766f; text-decoration: none; }
.workflow li.active { border-color: #3f8b72; }.workflow li.active a { color: #1c5442; }
.workflow li.current { border-color: #176b50; background: #e7f0eb; }
.workflow b { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: #dce4e0; color: #53655d; font-size: 11px; }
.workflow .active b { background: #176b50; color: #fff; }.workflow span { font-size: 13px; white-space: nowrap; }

.project-form-section, .project-list-section, .settings-section, .work-section { scroll-margin-top: 206px; border-top: 1px solid #d5dcd8; padding: 22px 0; }
.project-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.project-form .wide { grid-column: 1 / -1; }
.project-form button { grid-column: 1 / -1; width: fit-content; justify-self: end; }
.project-list { overflow: hidden; margin-top: 14px; border: 1px solid #d5dcd8; border-radius: 6px; background: #d5dcd8; }
.project-row { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #d5dcd8; background: #fff; color: inherit; text-decoration: none; }
.project-row:last-child { border-bottom: 0; }.project-row:hover { background: #f7faf8; }
.project-index-section { border-top: 1px solid #d5dcd8; padding: 22px 0; }.project-filter-form { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(170px, 1fr) auto auto; gap: 10px; align-items: end; }.project-index-table-wrap { margin-top: 18px; }.project-index-table td:first-child { min-width: 260px; max-width: 420px; }.project-index-table td:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.project-index-table td:nth-child(2) { min-width: 160px; }.project-index-table td:nth-child(3), .project-index-table td:nth-child(4), .project-index-table td:nth-child(5) { min-width: 130px; }.button-link.compact { min-height: 30px; padding: 4px 9px; }.pagination { display: grid; grid-template-columns: 100px 1fr 100px; align-items: center; gap: 12px; margin-top: 18px; text-align: center; }.pagination a:last-child { grid-column: 3; }
.upload-form { display: flex; gap: 10px; align-items: center; margin: 14px 0; }.asset-list { display: grid; gap: 7px; padding: 0; list-style: none; }.asset-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e2e7e4; padding: 7px 0; }.asset-list li > div { display: grid; min-width: 0; }.asset-list strong { overflow-wrap: anywhere; }.asset-list span { color: #66766f; font-size: 13px; }.asset-list form { margin: 0; }.asset-list button.compact { min-height: 30px; padding: 4px 9px; }
.copy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.copy-candidate { min-width: 0; border: 1px solid #d5dcd8; border-radius: 6px; padding: 14px; background: #fff; }
.copy-candidate.selected { border-color: #3f8b72; box-shadow: inset 3px 0 #176b50; }
.copy-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.copy-candidate p { margin: 9px 0; }.copy-hook { color: #40534b; font-weight: 600; }
.copy-candidate form { display: grid; gap: 8px; margin-top: 10px; }.copy-editor { margin-top: 10px; border-top: 1px solid #e1e6e3; padding-top: 10px; }
.copy-editor summary { cursor: pointer; color: #176b50; font-size: 13px; }
.image-text-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.image-text-summary article { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; border: 1px solid #d5dcd8; border-radius: 6px; padding: 10px; background: #fff; }
.image-text-summary img { width: 100px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.image-text-summary article div { display: grid; align-content: center; gap: 6px; min-width: 0; }
.image-text-summary span { color: #66766f; font-size: 12px; }
.content-library { display: grid; min-width: 0; gap: 18px; margin-top: 18px; }
.content-batch-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }.content-batch-bar span { color: #66766f; font-size: 12px; }
.content-item { min-width: 0; border-top: 1px solid #d5dcd8; padding-top: 20px; }
.content-item > header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 18px; }
.content-title-row { display: flex; min-width: 0; align-items: flex-start; gap: 10px; }.content-title-row > input { width: 17px; height: 17px; margin-top: 4px; accent-color: #176b50; }
.content-item header h2 { margin-top: 7px; font-size: 20px; }
.content-item header p { margin: 4px 0 0; color: #66766f; font-size: 12px; }
.content-actions { display: flex; align-items: center; gap: 10px; }
.content-images { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.content-images figure { min-width: 0; margin: 0; }
.content-images img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid #d5dcd8; border-radius: 4px; background: #e7ece9; }
.content-images figcaption { margin-top: 5px; color: #66766f; font-size: 12px; text-align: center; }
.variant-panel { margin-top: 12px; border-top: 1px solid #e2e7e4; padding-top: 10px; }
.variant-panel summary { cursor: pointer; color: #176b50; font-weight: 600; }
.variant-table { margin-top: 10px; }.variant-table td { max-width: 320px; white-space: pre-line; }.variant-table code { font-size: 11px; overflow-wrap: anywhere; }
.content-filter-section { border-top: 1px solid #d5dcd8; padding: 18px 0; }
.content-filter-form { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.content-filter-actions { display: flex; gap: 8px; }.content-filter-actions > * { flex: 1; }
.content-index-table-wrap { margin-top: 14px; }
.content-index-table td { min-width: 108px; }.content-index-table td:nth-child(2) { min-width: 320px; max-width: 440px; }.content-index-table td:nth-child(3) { min-width: 190px; }.content-index-table td:nth-child(6) { min-width: 170px; }
.content-list-primary { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.content-list-primary img { display: block; width: 58px; height: 74px; object-fit: cover; border: 1px solid #d5dcd8; border-radius: 3px; background: #e7ece9; }
.content-list-primary span { display: grid; min-width: 0; gap: 5px; }.content-list-primary strong, .content-list-primary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.content-list-primary small { color: #66766f; font-size: 12px; }
.platform-mini-list { display: flex; flex-wrap: wrap; gap: 4px; }.platform-mini-list span { margin: 0 !important; border: 1px solid #cdd8d2; border-radius: 3px; padding: 2px 5px; color: #53655d !important; font-size: 10px !important; }
.badge.draft { background: #f6e8bd; color: #765500 !important; }.badge.approved { background: #dcecdf; color: #175d46 !important; }.badge.archived { background: #e4e8e6; color: #53605a !important; }
.content-detail-head { border-bottom: 1px solid #d5dcd8; }
.content-detail-toolbar { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 22px; border-bottom: 1px solid #d5dcd8; padding: 16px 0; }
.content-detail-toolbar > div:not(.content-detail-actions) { display: grid; gap: 4px; }.content-detail-toolbar span, .content-detail-copy span { color: #66766f; font-size: 12px; }
.content-detail-actions { display: flex; align-items: center; gap: 8px; }.content-detail-actions form { margin: 0; }
.content-detail-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-bottom: 1px solid #d5dcd8; padding: 18px 0; }.content-detail-copy p { margin: 6px 0 0; }
.content-detail-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 22px 0; }
.content-detail-images figure { min-width: 0; margin: 0; }.content-detail-images img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid #d5dcd8; border-radius: 4px; background: #e7ece9; }.content-detail-images figcaption { margin-top: 6px; color: #66766f; font-size: 12px; text-align: center; }
.material-ingest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 14px; }
.material-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; border-top: 3px solid #176b50; padding-top: 14px; }.material-form h3 { grid-column: 1 / -1; }.material-form label:nth-of-type(4) { grid-column: 1 / -1; }.material-form button { width: fit-content; }
.material-filter-form { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(5, minmax(120px, 1fr)) auto; gap: 10px; align-items: end; margin-top: 14px; }
.material-table-wrap { margin-top: 16px; }.material-table td:nth-child(2) { min-width: 250px; max-width: 380px; }.material-table td:nth-child(3) { min-width: 150px; }.material-table td:nth-child(4) { min-width: 180px; }.material-table td:nth-child(5) { min-width: 220px; }
.material-preview { width: 88px; min-width: 88px !important; }.material-preview img, .material-preview video { display: block; width: 72px; height: 72px; object-fit: cover; border: 1px solid #d5dcd8; border-radius: 4px; background: #e7ece9; }.material-web-mark { display: grid !important; width: 72px; height: 72px; place-items: center; border: 1px solid #cbd7d1; background: #edf4f0; color: #176b50 !important; font-weight: 700; }
.material-review-form, .material-link-form { display: grid; gap: 6px; margin: 0; }.material-review-form button, .material-link-form button { width: fit-content; }.material-table td > a { display: inline-block; margin-top: 5px; color: #176b50; font-size: 12px; }
.job-status { min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #53655d; }.job-status progress { width: 180px; height: 10px; }.job-status span { font-size: 13px; }.job-status button { margin-left: auto; }
.errors { margin: 12px 0; border: 1px solid #c95c50; border-radius: 4px; padding: 10px 12px; background: #fff5f3; color: #7a2119; }.errors p { margin: 0; }
.empty-state { color: #66766f; }

.video-grid { display: grid; gap: 14px; margin-top: 16px; }.video-result { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 16px; align-items: start; }
.video-result video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #101513; }.video-result div { display: grid; gap: 8px; }.video-result span { color: #66766f; }.video-result a { width: fit-content; }
.video-generate-controls { display: flex; align-items: end; gap: 10px; }.video-generate-controls label { min-width: 240px; }
.export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }.export-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #d5dcd8; border-radius: 6px; padding: 12px 14px; background: #fff; }.export-result div { display: grid; gap: 4px; }.export-result span { color: #66766f; font-size: 13px; }

.batch-panel { margin-top: 16px; border: 1px solid #d5dcd8; border-radius: 6px; background: #fff; }
.batch-toolbar, .queue-tools { display: flex; align-items: end; gap: 10px; padding: 12px; }
.batch-toolbar { border-bottom: 1px solid #d5dcd8; background: #f7f9f8; }.batch-toolbar label:not(.check-control) { min-width: 190px; }
.batch-toolbar button { margin-left: auto; }.check-control { display: flex; grid-template-columns: none; align-items: center; gap: 7px; white-space: nowrap; }
.check-control input, .select-cell input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #176b50; }
.selection-count { min-width: 62px; color: #66766f; font-size: 12px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.ops-table { width: 100%; border-collapse: collapse; background: #fff; }
.ops-table th { padding: 9px 10px; border-bottom: 1px solid #d5dcd8; background: #f7f9f8; color: #53655d; font-size: 12px; text-align: left; white-space: nowrap; }
.ops-table td { padding: 10px; border-bottom: 1px solid #e2e7e4; vertical-align: middle; }
.ops-table tbody tr:last-child td { border-bottom: 0; }.ops-table tbody tr:hover { background: #fbfcfb; }
.ops-table td > strong, .ops-table td > span { display: block; }.ops-table td > span { margin-top: 3px; color: #66766f; font-size: 12px; }
.ops-table input, .ops-table textarea { width: 100%; }.ops-table textarea { min-height: 58px; }
.select-cell { width: 54px; text-align: center !important; }.export-batch-table td:nth-child(2) { min-width: 150px; }.export-batch-table td:nth-child(3) { min-width: 180px; }.export-batch-table td:nth-child(4) { min-width: 320px; }.export-batch-table td:last-child { min-width: 90px; }
.queue-heading { align-items: center; margin-top: 24px; }.queue-tools { flex-wrap: wrap; justify-content: flex-end; padding: 0; }.queue-tools label:first-of-type { min-width: 120px; }
.queue-table td { max-width: 260px; }.queue-table td:nth-child(2), .queue-table td:nth-child(3) { min-width: 150px; }.queue-note span { overflow-wrap: anywhere; }
.row-actions { display: flex; align-items: center; gap: 6px; }.row-actions form { display: flex; align-items: center; gap: 6px; margin: 0; }.row-actions button { min-height: 30px; padding: 5px 8px; font-size: 12px; }
.row-warning { display: flex; grid-template-columns: none; align-items: center; gap: 4px; white-space: nowrap; font-size: 11px; }.row-warning input { width: 14px; height: 14px; margin: 0; padding: 0; accent-color: #176b50; }
.secondary { border-color: #91a19a; background: #fff; color: #175d46; }.secondary:hover { background: #edf4f0; }
.danger { border-color: #b94a42; background: #fff; color: #9a2e27; }.danger:hover { background: #faecea; }
.badge { display: inline-block !important; width: fit-content; padding: 3px 7px; border-radius: 3px; background: #e4e8e6; color: #53605a !important; font-size: 12px; }
.badge.active, .badge.connected, .badge.pass { background: #dcecdf; color: #175d46 !important; }.badge.failed, .badge.block { background: #f5dfdc; color: #8a2c23 !important; }.badge.warn, .badge.attention { background: #f6e8bd; color: #765500 !important; }.badge.disconnected, .badge.disabled { background: #e4e8e6; color: #53605a !important; }.badge.unsupported { background: #dfe8ee; color: #31566d !important; }
.preflight-block { color: #8a2c23 !important; }.preflight-warn { color: #765500 !important; }
.state-text { font-weight: 600; }.state-text.succeeded { color: #175d46 !important; }.state-text.needs_review { color: #765500 !important; }.state-text.failed, .state-text.blocked, .state-text.rejected { color: #8a2c23 !important; }

.settings-summary, .settings-section .section-heading p { margin: 0; color: #66766f; font-size: 13px; }.new-provider-form { display: grid; grid-template-columns: 1fr 1fr 2fr 1.2fr 1.2fr auto; gap: 12px; align-items: end; margin-top: 14px; }.provider-list { display: grid; gap: 12px; margin-top: 14px; }.provider-row { border: 1px solid #d5dcd8; border-radius: 6px; padding: 16px; background: #fff; }.provider-row.active { border-left: 4px solid #175d46; }.provider-row-head, .provider-actions, .provider-badges { display: flex; align-items: center; gap: 10px; }.provider-row-head { justify-content: space-between; }.provider-row-head p, .test-message { margin: 3px 0 0; color: #66766f; font-size: 13px; overflow-wrap: anywhere; }.saved-provider-form { display: grid; grid-template-columns: 1fr 2fr 1fr 1.4fr auto; gap: 10px; align-items: end; margin-top: 14px; }.provider-actions { justify-content: flex-end; margin-top: 12px; }.provider-actions form { margin: 0; }.notice { margin: 14px 0; border-left: 4px solid #175d46; background: #e8f0eb; padding: 10px 12px; }.video-provider-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 14px; }
.image-provider-form { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 14px; }.image-provider-form.saved { grid-template-columns: 1fr 2fr 1fr 1fr auto; }
.account-boundary { padding-top: 14px; }.button-link { display: inline-grid; min-height: 36px; place-items: center; border: 1px solid #176b50; border-radius: 4px; padding: 7px 12px; color: #fff; background: #176b50; font-weight: 600; text-decoration: none; }.button-link.secondary { color: #175d46; background: #fff; }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }.capability-grid article { min-width: 0; border: 1px solid #d5dcd8; border-radius: 6px; padding: 14px; background: #fff; }.capability-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.capability-grid p { min-height: 42px; margin: 10px 0; color: #66766f; font-size: 12px; line-height: 1.5; }.capability-grid a { color: #176b50; font-size: 12px; font-weight: 600; }.oauth-app-form { display: grid; grid-template-columns: 1fr 1.2fr 2fr 1.2fr auto; gap: 12px; align-items: end; margin-top: 14px; }.oauth-app-form small { display: block; margin-top: 5px; color: #66766f; font-size: 11px; }.oauth-trial-note { margin-top: 12px; border-left: 3px solid #c28b18; padding: 8px 12px; background: #fff9e9; }.oauth-trial-note p { margin: 4px 0; color: #5d5748; font-size: 12px; }.oauth-trial-note a { color: #176b50; font-size: 12px; font-weight: 600; }.account-create-form { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1fr 2fr auto; gap: 12px; align-items: end; margin-top: 14px; }.account-table-wrap { margin-top: 14px; overflow-x: auto; }.account-table td { min-width: 130px; }.account-table td:nth-child(5) { min-width: 180px; }.account-table td:last-child { min-width: 250px; }.account-status-message { display: block; margin-top: 5px; color: #66766f; font-size: 11px; overflow-wrap: anywhere; }.account-actions { display: flex !important; flex-wrap: wrap; gap: 6px; }.account-actions form { margin: 0; }.account-actions button { min-height: 32px; padding: 5px 9px; }

.auth-body { min-height: 100vh; background: #edf1ef; }.auth-main { display: grid; min-height: 100vh; place-items: center; padding: 24px; }.login-panel { width: min(100%, 420px); border: 1px solid #cfd8d3; border-radius: 6px; padding: 28px; background: #fff; box-shadow: 0 12px 34px rgba(24, 52, 43, .10); }.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }.login-brand > div { display: grid; gap: 2px; }.login-brand span:last-child { color: #66766f; font-size: 11px; }.login-panel h1 { font-size: 24px; }.login-panel > div:nth-child(2) p { margin: 5px 0 18px; color: #66766f; }.login-form, .password-form { display: grid; gap: 14px; }.login-form button { width: 100%; margin-top: 4px; }.compact-section { max-width: 620px; }.password-form { max-width: 480px; margin-top: 16px; }.password-form small { color: #66766f; font-size: 11px; }
.user-create-form { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr 1fr auto; gap: 12px; align-items: end; margin-top: 14px; }.user-table-wrap { margin-top: 14px; }.user-table td:first-child { min-width: 190px; }.user-table td:nth-child(2), .user-table td:nth-child(3) { min-width: 130px; }.user-table td:last-child { min-width: 340px; }.user-actions { display: flex !important; flex-wrap: wrap; gap: 7px; }.user-actions form { display: flex; gap: 6px; margin: 0; }.user-actions input { min-width: 150px; }.user-actions button { white-space: nowrap; }.permission-table th, .permission-table td { text-align: center; }.permission-table th:first-child, .permission-table td:first-child { text-align: left; }.audit-filter-section { border-top: 1px solid #d5dcd8; padding-top: 22px; }.audit-filter-form { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(150px, 1fr) auto auto; gap: 10px; align-items: end; margin-bottom: 16px; }.audit-table td:nth-child(3) { min-width: 300px; }.audit-table td:last-child { max-width: 280px; }.truncate-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.badge.success { background: #dcecdf; color: #175d46 !important; }.badge.denied { background: #f6e8bd; color: #765500 !important; }.badge.failed { background: #f5dfdc; color: #8a2c23 !important; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d5dcd8; padding-bottom: 22px; }.review-header p:not(.eyebrow) { max-width: 760px; margin: 7px 0 0; color: #66766f; }.review-band { border-bottom: 1px solid #d5dcd8; padding: 24px 0; }.review-band:last-child { border-bottom: 0; }.status-chip { display: inline-flex; width: fit-content; align-items: center; min-height: 26px; border-radius: 3px; padding: 3px 8px; background: #e4e8e6; color: #53605a; font-size: 12px; font-weight: 600; white-space: nowrap; }.status-chip.success { background: #dcecdf; color: #175d46; }.status-chip.warning { background: #f6e8bd; color: #765500; }
.review-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }.review-flow li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; min-width: 0; border-top: 3px solid #cbd4cf; padding: 14px 12px 12px 0; }.review-flow li > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #dfe5e2; color: #53605a; font-weight: 700; }.review-flow li div { display: grid; min-width: 0; gap: 4px; }.review-flow li strong, .review-flow li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.review-flow li small { color: #66766f; }.review-flow li > b { grid-column: 2; color: #7b8781; font-size: 12px; }.review-flow li.is-ready { border-color: #176b50; }.review-flow li.is-ready > span { background: #176b50; color: #fff; }.review-flow li.is-ready > b { color: #176b50; }
.review-counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 16px; border: 1px solid #d5dcd8; background: #fff; }.review-counts span { display: grid; gap: 3px; border-right: 1px solid #e2e7e4; padding: 12px 14px; color: #66766f; font-size: 12px; }.review-counts span:last-child { border-right: 0; }.review-counts b { color: #17231f; font-size: 20px; }
.review-definition { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0; border-top: 1px solid #d5dcd8; }.review-definition > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid #e2e7e4; padding: 12px 0; }.review-definition > div:nth-child(odd) { padding-right: 24px; }.review-definition dt { color: #66766f; }.review-definition dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }.review-definition code { font-size: 12px; }.review-account-table td { min-width: 140px; }.review-account-table td:last-child { min-width: 260px; }.review-boundaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 16px; }.review-boundaries div { border-top: 3px solid #176b50; padding-top: 12px; }.review-boundaries p { margin: 6px 0 0; color: #66766f; }

.geo-brand-form, .geo-content-row form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.geo-brand-form .wide, .geo-content-row form .wide { grid-column: 1 / -1; }
.geo-brand-form textarea { min-height: 78px; }
.geo-content-list { display: grid; gap: 14px; margin-top: 16px; }
.geo-content-row { border: 1px solid #d5dcd8; border-radius: 6px; padding: 16px; background: #fff; }
.geo-content-row > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.geo-content-row > header div { display: grid; gap: 3px; }
.geo-content-row > header .geo-status { display: flex; align-items: center; gap: 8px; }
.geo-content-row > header span:not(.badge) { color: #66766f; font-size: 12px; }
.geo-score { color: #175d46 !important; font-size: 16px !important; font-weight: 700; }
.geo-gate-note, .geo-gate-warning, .geo-gate-error { margin: 10px 0 0; font-size: 12px; }
.geo-gate-note { color: #66766f; }.geo-gate-warning { color: #765500; }.geo-gate-error { color: #8a2c23; }
.geo-content-row textarea { min-height: 68px; }
.geo-row-actions, .geo-published-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.geo-row-actions { grid-column: 1 / -1; }
.geo-published-actions { margin-top: 10px; border-top: 1px solid #e2e7e4; padding-top: 10px; }
.geo-published-actions form { display: block; margin: 0; }
.geo-published-actions .geo-distribution-create { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.geo-distribution-create label { min-width: 132px; }
.distribution-list { display: grid; gap: 8px; margin-top: 16px; }
.distribution-row { display: grid; grid-template-columns: minmax(260px, 1.5fr) minmax(120px, .45fr) minmax(170px, .65fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #dfe5e1; }
.distribution-main, .distribution-meta { display: grid; gap: 4px; min-width: 0; }
.distribution-main a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.distribution-row small { display: block; color: #66766f; }
.distribution-actions { display: flex; justify-content: flex-end; gap: 8px; }
.distribution-actions form { margin: 0; }
.topic-brief-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 14px 0 0; border: 1px solid #d5dcd8; background: #d5dcd8; }
.topic-brief-bar div { display: grid; gap: 4px; min-width: 0; padding: 10px 12px; background: #fff; }
.topic-brief-bar span { color: #66766f; font-size: 11px; }
.topic-brief-bar strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .copy-grid, .image-text-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-brief-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid { grid-template-columns: 1fr 1fr; }.project-filter-form, .new-provider-form, .saved-provider-form, .video-provider-form, .image-provider-form, .account-create-form, .oauth-app-form, .user-create-form { grid-template-columns: 1fr 1fr; }
  .material-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }.material-search { grid-column: span 2; }
  .content-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }.content-search-field { grid-column: span 2; }
  .review-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }.review-counts span:nth-child(3) { border-right: 0; }.review-counts span:nth-child(-n+3) { border-bottom: 1px solid #e2e7e4; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-sidebar { position: sticky; z-index: 20; width: 100%; height: auto; flex-direction: row; align-items: center; gap: 14px; padding: 10px 16px; }
  .app-sidebar nav { display: flex; overflow-x: auto; margin-left: auto; scrollbar-width: none; }.app-sidebar nav::-webkit-scrollbar { display: none; }.app-sidebar nav a { min-height: 36px; flex: 0 0 auto; padding-left: 9px; padding-right: 9px; white-space: nowrap; }.sidebar-meta, .sidebar-user { display: none; }
  .brand-mark { width: 28px; height: 28px; }.app-main { padding: 22px 20px 48px; }
  .project-sticky-head { top: 56px; }
  .work-section { scroll-margin-top: 250px; }
  .workflow { overflow-x: auto; grid-template-columns: repeat(5, minmax(130px, 1fr)); }
  .project-form { grid-template-columns: 1fr 1fr; }
  .batch-toolbar { flex-wrap: wrap; }.batch-toolbar button { margin-left: 0; }
  .queue-heading { align-items: stretch; flex-direction: column; }.queue-tools { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .app-sidebar { min-width: 0; align-items: flex-start; flex-wrap: wrap; }.app-sidebar nav { width: 100%; min-width: 0; max-width: 100%; margin: 0; }.app-sidebar nav a { flex: 0 0 auto; justify-content: center; }
  .app-main { padding: 18px 14px 42px; }.detail-head, .section-heading, .provider-row-head { align-items: flex-start; flex-direction: column; }
  .project-sticky-head { top: 96px; }
  .work-section { scroll-margin-top: 320px; }
  .project-sticky-head .detail-head { padding-top: 2px; padding-bottom: 10px; }
  .project-sticky-head .detail-head h1 { font-size: 21px; }
  .workflow { overflow-x: visible; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin-left: -14px; margin-right: -14px; padding-left: 10px; padding-right: 10px; }
  .workflow li a { min-height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 2px; text-align: center; }
  .workflow span { font-size: 11px; line-height: 1.2; white-space: normal; }
  .capability-grid, .copy-grid, .image-text-summary, .project-form, .project-filter-form, .new-provider-form, .saved-provider-form, .video-provider-form, .image-provider-form, .account-create-form, .oauth-app-form, .user-create-form, .audit-filter-form, .export-grid, .material-ingest-grid, .material-filter-form, .geo-brand-form, .geo-content-row form { grid-template-columns: 1fr; }
  .geo-brand-form .wide, .geo-content-row form .wide, .geo-row-actions { grid-column: auto; }
  .geo-published-actions, .geo-published-actions .geo-distribution-create { align-items: stretch; flex-direction: column; }
  .geo-published-actions .geo-distribution-create { width: 100%; }
  .distribution-row { grid-template-columns: 1fr; align-items: stretch; }
  .distribution-actions { justify-content: flex-start; flex-wrap: wrap; }
  .project-form .wide, .project-form button { grid-column: auto; width: 100%; }
  .topic-brief-bar { grid-template-columns: 1fr; }
  .material-search { grid-column: auto; }.material-form { grid-template-columns: 1fr; }.material-form h3, .material-form label:nth-of-type(4) { grid-column: auto; }
  .content-filter-form, .content-detail-copy { grid-template-columns: 1fr; }.content-search-field { grid-column: auto; }.content-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .content-detail-toolbar { grid-template-columns: 1fr; }.content-detail-actions { align-items: stretch; flex-direction: column; }.content-detail-actions > *, .content-detail-actions form, .content-detail-actions button { width: 100%; }
  .content-detail-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-item > header { flex-direction: column; }.content-actions { width: 100%; justify-content: space-between; }.content-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-filter-form button, .project-filter-form .button-link { width: 100%; }
  .upload-form, .video-generate-controls { align-items: stretch; flex-direction: column; }.video-generate-controls label { min-width: 0; }.upload-form button, .video-generate-controls button { width: 100%; }
  .video-result { grid-template-columns: 1fr; }.video-result video { max-width: 300px; }.export-result { align-items: flex-start; flex-direction: column; }
  .batch-toolbar, .queue-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }.batch-toolbar label:not(.check-control), .queue-tools label:first-of-type { min-width: 0; }.batch-toolbar button, .queue-tools button { grid-column: 1 / -1; width: 100%; }
  .ops-table, .ops-table tbody { display: block; }.ops-table thead { display: none; }.ops-table tr { display: grid; gap: 0; margin: 10px; border: 1px solid #d5dcd8; border-radius: 6px; background: #fff; }
  .ops-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; max-width: none; border-bottom: 1px solid #e2e7e4; padding: 9px 10px; }
  .ops-table td::before { content: attr(data-label); color: #66766f; font-size: 12px; font-weight: 600; }.ops-table td:last-child { border-bottom: 0; }.select-cell { width: auto; text-align: left !important; }
  .row-actions { display: flex !important; }.row-actions::before { flex: 0 0 82px; }.queue-table td, .export-batch-table td:nth-child(n), .account-table td:nth-child(n) { min-width: 0; }
  .account-actions::before { flex: 0 0 82px; }
  .project-row { grid-template-columns: 1fr; }.provider-actions { justify-content: stretch; }.provider-actions form, .provider-actions button { width: 100%; }
  .review-header { flex-direction: column; }.review-flow { grid-template-columns: 1fr; }.review-flow li { grid-template-columns: 30px minmax(0, 1fr) auto; border-top: 0; border-left: 3px solid #cbd4cf; padding: 9px 0 9px 12px; }.review-flow li.is-ready { border-left-color: #176b50; }.review-flow li > b { grid-column: 3; grid-row: 1; align-self: center; }.review-counts { grid-template-columns: 1fr 1fr; }.review-counts span:nth-child(n) { border-right: 1px solid #e2e7e4; border-bottom: 1px solid #e2e7e4; }.review-counts span:nth-child(even) { border-right: 0; }.review-definition, .review-boundaries { grid-template-columns: 1fr; }.review-definition > div:nth-child(n) { padding-right: 0; }.review-definition > div { grid-template-columns: 92px minmax(0, 1fr); }
}
