:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --panel: #ffffff;
  --panel-soft: #f9faf7;
  --ink: #1d2523;
  --muted: #66736f;
  --line: #dfe5df;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #d9f2ec;
  --accent: #c2410c;
  --blue: #2563eb;
  --gold: #b7791f;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(31, 41, 36, 0.08);
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overscroll-behavior-x: none;
}

.hidden {
  display: none !important;
}

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

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  background: #102522;
  color: #eef8f5;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 管理员端使用冷静的蓝灰体系，与创作员端的森林绿明确区分。 */
.sidebar.admin-app {
  background: #17233a;
  color: #edf3ff;
}

.sidebar.admin-app .brand-mark {
  background: #e8efff;
  color: #1e3a70;
}

.sidebar.admin-app .brand-sub {
  color: #adbbd5;
}

.sidebar.admin-app .nav-item {
  color: #c4d0e5;
}

.sidebar.admin-app .nav-item:hover,
.sidebar.admin-app .nav-item.active {
  color: #fff;
  background: rgba(132, 164, 218, 0.22);
}

.sidebar.admin-app .language-toggle {
  border-color: rgba(197, 214, 244, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #edf3ff;
}

.sidebar.admin-app .sidebar-card {
  border-color: rgba(197, 214, 244, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar.admin-app .sidebar-card .label {
  color: #9fc0ff;
}

.sidebar.admin-app .sidebar-card p {
  color: #d4e1f6;
}

.shell.admin-app {
  --bg: #f4f7fc;
  --panel: #ffffff;
  --panel-soft: #f6f8fd;
  --ink: #18243a;
  --muted: #64718a;
  --line: #d9e1ef;
  --brand: #315da8;
  --brand-dark: #24477f;
  --brand-soft: #e4edff;
  --blue: #315da8;
  --shadow: 0 18px 45px rgba(39, 65, 111, 0.09);
  background: var(--bg);
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(16, 37, 34, 0.78), rgba(16, 37, 34, 0.78)),
    url("https://images.unsplash.com/photo-1542051841857-5f90071e7989?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 18px;
}

.auth-brand .brand-sub {
  color: var(--muted);
}

.auth-tabs {
  width: 100%;
  grid-auto-columns: 1fr;
}

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

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
}

.auth-doc-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: -4px;
}

.auth-doc-links a {
  min-height: auto;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
}

.auth-doc-links a + a {
  position: relative;
}

.auth-doc-links a + a::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 1px;
  height: 12px;
  background: var(--line);
  transform: translateY(-50%);
}

.auth-doc-links a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-doc-links svg {
  width: 14px;
  height: 14px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #f5efe2;
  color: #102522;
  font-weight: 800;
  font-size: 22px;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
}

.brand-sub {
  color: #a9c1bb;
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  color: #cfe2dc;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item svg,
button svg,
.map-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sidebar-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-card p {
  margin: 8px 0 0;
  line-height: 1.55;
  color: #d7e8e3;
  font-size: 13px;
}

.label,
.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-card .label {
  color: #9ed9cf;
}

.shell {
  margin-left: 264px;
  padding: 28px;
  min-height: 100vh;
}

.creator-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px 1fr;
  min-width: 0;
  max-width: 100%;
}

.creator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.creator-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.creator-sidebar {
  background: #102522;
  color: #eef8f5;
  min-height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.creator-sidebar .secondary-button {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.language-toggle {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
}

.auth-card .language-toggle {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.language-toggle svg {
  width: 18px;
  height: 18px;
}

.creator-main {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
  grid-auto-rows: max-content;
  min-width: 0;
}

.creator-view {
  display: none;
  gap: 18px;
  align-content: start;
  grid-auto-rows: max-content;
  min-width: 0;
}

.creator-view.active {
  display: grid;
}

.material-grid,
.material-picker,
.competitor-grid,
.official-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.travel-resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.material-card,
.competitor-card,
.official-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  display: grid;
}

.travel-resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main meta"
    "more more";
  align-items: center;
  gap: 9px 16px;
  min-width: 0;
}

.travel-resource-card.selected {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  border-color: var(--brand);
}

.library-grid .travel-resource-card {
  cursor: pointer;
}

.travel-resource-main h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-resource-main p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.travel-card-tags {
  display: grid;
  gap: 8px;
}

.travel-resource-main {
  grid-area: main;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.travel-resource-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.travel-resource-title-row .building-facts {
  flex: 0 0 auto;
}

.travel-resource-insights {
  grid-area: insights;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.travel-resource-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.travel-tag-group {
  display: grid;
  gap: 5px;
}

.travel-tag-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.travel-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.travel-content-tag {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.travel-content-tag.fact {
  color: #1d4f91;
  background: #e8f1ff;
}

.travel-content-tag.angle {
  color: #087469;
  background: #e0f5ed;
}

.travel-source-images {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 5px;
}

.travel-source-images img {
  width: 100%;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f6;
}

.travel-resource-delete {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff8f8;
  color: #b42318;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
}

.travel-resource-delete svg {
  width: 14px;
  height: 14px;
}

.travel-rights-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b9dfd6;
  border-radius: var(--radius);
  background: #f1fbf8;
  color: var(--ink);
}

.travel-rights-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.travel-rights-check span {
  display: grid;
  gap: 3px;
}

.travel-rights-check small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.travel-import-progress {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #b9dfd6;
  border-radius: var(--radius);
  background: #fbfffe;
}

.travel-import-progress.hidden {
  display: none;
}

.travel-import-progress-head,
.travel-job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.travel-import-progress-head strong {
  color: var(--ink);
  font-size: 14px;
}

.travel-import-progress-head span,
.travel-job-help,
.travel-job-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.travel-job-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.travel-job-card.failed {
  border-color: #f3b6ae;
}

.travel-job-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.travel-job-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  color: #126e64;
  background: #def5ed;
  font-size: 11px;
  font-weight: 800;
}

.travel-job-card.failed .travel-job-status {
  color: #b42318;
  background: #ffe6e3;
}

.travel-job-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.travel-job-step {
  min-width: 0;
  padding-top: 5px;
  border-top: 4px solid #dde6e3;
  color: #8a9996;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.travel-job-step.done {
  border-color: #62ad91;
  color: #28745c;
}

.travel-job-step.active {
  border-color: var(--brand);
  color: var(--brand);
}

.travel-job-step.failed {
  border-color: #df4c3d;
  color: #b42318;
}

.travel-resource-head,
.travel-resource-source {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.travel-resource-source {
  flex: 0 1 170px;
  flex-direction: column;
  padding-top: 2px;
}

.travel-resource-source a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.travel-resource-source small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.travel-resource-card details,
.travel-resource-more {
  grid-area: more;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.travel-resource-card summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.travel-resource-card h4 {
  margin: 12px 0 5px;
  color: var(--ink);
  font-size: 12px;
}

.travel-resource-card ul,
.draft-image-suggestions ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.travel-resource-body {
  max-height: 520px;
  margin-top: 10px;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  background: #f7faf9;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.travel-preview-actions {
  display: flex;
  justify-content: flex-end;
}

.travel-resource-preview {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.travel-preview-copy {
  display: grid;
  gap: 10px;
}

.travel-preview-copy label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#travelResourcePreviewBody {
  min-height: 220px;
  resize: vertical;
  line-height: 1.6;
}

.travel-image-picker-head,
.travel-image-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.travel-image-picker-head h3,
.travel-image-picker-head p {
  margin: 0;
}

.travel-image-picker-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.travel-image-picker-actions {
  justify-content: flex-end;
}

.travel-image-picker-actions .secondary-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.travel-image-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.travel-image-option {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.travel-image-option:has(input:checked) {
  border-color: #f3b6ae;
  background: #fff5f4;
  opacity: 0.62;
}

.travel-image-option img {
  width: 100%;
  height: 96px;
  border-radius: 5px;
  object-fit: cover;
  background: #eef3f1;
}

.travel-image-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-image-exclude {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.travel-image-exclude input {
  width: 16px;
  height: 16px;
  accent-color: #b42318;
}

@media (max-width: 1120px) {
  .travel-resource-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main meta"
      "more more";
  }

  .travel-resource-meta {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .travel-import-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .travel-job-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 9px;
  }
}

.draft-travel-reference,
.draft-image-suggestions {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  padding: 13px;
}

.draft-brand-placement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbf8 0%, #eef8f4 100%);
  padding: 13px 15px;
}

.draft-brand-placement strong {
  color: var(--ink);
  font-size: 14px;
}

.draft-brand-placement p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.draft-brand-placement.force-active {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(135deg, #f1fbf7 0%, #dcf4ea 100%);
}

.switch-control {
  display: flex;
  flex: 0 0 auto;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd4cf;
  padding: 3px;
  transition: background 180ms ease;
}

.switch-track span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(13, 31, 28, 0.22);
  transition: transform 180ms ease;
}

.switch-control input:checked + .switch-track {
  background: var(--brand);
}

.switch-control input:checked + .switch-track span {
  transform: translateX(20px);
}

.switch-control input:focus-visible + .switch-track {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.switch-control input:disabled + .switch-track {
  opacity: 0.5;
}

.switch-control:has(input:disabled) {
  cursor: not-allowed;
  color: var(--muted);
}

.switch-state {
  min-width: 26px;
  font-size: 12px;
  font-weight: 800;
}

.draft-travel-reference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.draft-travel-reference h3,
.draft-image-suggestions h3 {
  margin: 0;
  font-size: 15px;
}

.draft-travel-reference p,
.draft-image-suggestions p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.draft-travel-reference .selected-chips {
  grid-column: 1 / -1;
  min-height: 24px;
}

.draft-image-suggestions {
  display: grid;
  gap: 14px;
}

.draft-image-head,
.draft-image-progress-copy,
.draft-image-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.draft-image-head > div {
  min-width: 0;
}

.draft-image-head .primary-button {
  flex: 0 0 auto;
}

.draft-image-head .primary-button:disabled svg,
.draft-image-loading svg {
  animation: draft-image-spin 1.4s linear infinite;
}

.draft-image-progress {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.07);
}

.draft-image-progress-copy strong {
  font-size: 13px;
}

.draft-image-progress-copy span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.draft-image-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.13);
}

.draft-image-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #67c6af);
  transition: width 320ms ease;
}

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

.draft-image-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.draft-image-empty,
.draft-image-loading,
.draft-image-failed {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.draft-image-card > svg {
  width: 28px;
  height: 28px;
}

.draft-image-card strong {
  color: var(--ink);
  font-size: 13px;
}

.draft-image-card span,
.draft-image-card a {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.draft-image-spinner {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.1);
}

.draft-image-completed img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #eef2ef;
}

.draft-image-completed > div {
  padding: 9px 10px;
}

.draft-image-completed a {
  color: var(--brand);
}

.draft-image-failed {
  border-color: rgba(198, 86, 66, 0.3);
  background: rgba(198, 86, 66, 0.04);
}

@keyframes draft-image-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .draft-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .draft-brand-placement {
    align-items: flex-start;
    flex-direction: column;
  }

  .draft-image-head,
  .draft-image-progress-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .draft-image-head .primary-button {
    width: 100%;
  }

  .draft-image-progress-copy span {
    text-align: left;
  }
}

.material-card img,
.competitor-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9eee9;
}

.material-body,
.competitor-body,
.official-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.material-body p,
.competitor-body p,
.official-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.proof-section {
  border-top-width: 4px;
}

.post-proof-section {
  border-top-color: #315fb3;
}

.comment-proof-section {
  border-top-color: #128171;
}

.like-proof-section {
  border-top-color: #d28a21;
}

.post-proof-section .proof-type-label {
  color: #2853a4;
}

.comment-proof-section .proof-type-label {
  color: #0f766e;
}

.like-proof-section .proof-type-label {
  color: #9a5b08;
}

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

.creator-proof-setup {
  overflow: hidden;
  border-color: rgba(15, 118, 110, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 184, 145, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f2fbf7 100%);
  box-shadow: 0 16px 40px rgba(25, 70, 59, 0.08);
}

.creator-proof-setup-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.13);
}

.creator-proof-setup-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #3eb998);
  box-shadow: 0 11px 24px rgba(15, 118, 110, 0.2);
}

.creator-proof-setup-head h2 {
  margin: 3px 0;
}

.creator-proof-setup-head p {
  margin: 0;
  color: var(--muted);
}

.creator-proof-setup .status-pill.is-ready {
  color: #0d6a56;
  background: #d8f5e9;
}

.creator-proof-setup-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding-top: 18px;
}

.creator-proof-setup-form .primary-button {
  min-height: 48px;
}

.interaction-proof-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.interaction-submit-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(31, 41, 36, 0.07);
}

.interaction-submit-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -86px;
  right: -66px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  pointer-events: none;
}

.comment-submit-card {
  border-color: rgba(15, 118, 110, 0.2);
  background: linear-gradient(145deg, #fff 0%, #f2fbf8 100%);
}

.comment-submit-card::after {
  background: rgba(15, 118, 110, 0.08);
}

.like-record-panel {
  border-color: rgba(210, 138, 33, 0.25);
  background: linear-gradient(145deg, #fff 0%, #fff9ed 100%);
}

.like-record-panel::after {
  background: rgba(210, 138, 33, 0.1);
}

.interaction-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
}

.interaction-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
}

.like-record-panel .interaction-card-icon {
  color: #a56612;
  box-shadow: 0 8px 20px rgba(181, 118, 25, 0.12);
}

.interaction-card-icon svg {
  width: 23px;
  height: 23px;
}

.interaction-card-head .section-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.like-record-panel .section-kicker {
  color: #9a620f;
}

.interaction-card-head h2 {
  margin-bottom: 7px;
  font-size: 20px;
}

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

.interaction-requirement {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.interaction-requirement.optional {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.interaction-requirement.required {
  color: #925a09;
  background: #ffedc7;
}

.interaction-card-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  align-items: end;
}

.interaction-link-field,
.proof-methods,
.interaction-submit-button {
  grid-column: 1 / -1;
}

.proof-methods {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.proof-methods-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.proof-methods-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.proof-method-divider {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  align-self: stretch;
  color: #87938f;
  font-size: 11px;
  font-weight: 800;
}

.proof-method-divider::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: var(--line);
}

.proof-method-divider::after {
  position: absolute;
  z-index: -1;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  background: #fff;
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #8a9692;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-icon input {
  min-height: 44px;
  padding-left: 38px;
}

.proof-upload-control {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.proof-upload-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 82px;
  padding: 14px;
  border: 1.5px dashed #aebdb7;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.proof-upload-control:hover .proof-upload-drop,
.proof-upload-control:focus-within .proof-upload-drop,
.proof-upload-control.drop-active .proof-upload-drop {
  border-color: var(--brand);
  background: #fff;
  transform: translateY(-1px);
}

.like-record-panel .proof-upload-control:hover .proof-upload-drop,
.like-record-panel .proof-upload-control:focus-within .proof-upload-drop,
.like-record-panel .proof-upload-control.drop-active .proof-upload-drop {
  border-color: #c17d17;
}

.proof-upload-control.has-file .proof-upload-drop {
  border-style: solid;
  border-color: var(--brand);
  background: #edfaf6;
}

.like-record-panel .proof-upload-control.has-file .proof-upload-drop {
  border-color: #c17d17;
  background: #fff5df;
}

.proof-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
}

.like-record-panel .proof-upload-icon {
  color: #a56612;
  background: #ffedc7;
}

.proof-upload-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.proof-upload-copy strong,
.proof-upload-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-upload-copy strong {
  color: var(--ink);
  font-size: 13px;
}

.proof-upload-copy small {
  color: var(--muted);
  font-size: 11px;
}

.proof-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.proof-upload-control .proof-file-input {
  min-height: 0;
  padding: 0;
}

.direct-capture-button {
  width: 100%;
  min-height: 82px;
  padding: 13px 15px;
  justify-content: flex-start;
  gap: 12px;
  border: 1.5px dashed #96aaa3;
  border-radius: 13px;
  color: var(--brand-dark);
  background: #f4fbf8;
  text-align: left;
}

.direct-capture-button:hover {
  border-color: var(--brand);
  background: #eaf8f3;
  transform: translateY(-1px);
}

.direct-capture-button.has-capture {
  border-style: solid;
  border-color: var(--brand);
  background: #e6f8f1;
}

.direct-capture-button > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.direct-capture-button strong {
  font-size: 13px;
}

.direct-capture-button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-capture-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
}

.like-capture-button {
  color: #8d570d;
  border-color: #d8ae6a;
  background: #fff9ee;
}

.like-capture-button:hover {
  border-color: #b87413;
  background: #fff3da;
}

.like-capture-button.has-capture {
  border-color: #b87413;
  background: #ffefce;
}

.like-capture-button .direct-capture-icon {
  background: #a96b12;
}

.interaction-submit-button {
  min-height: 48px;
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(15, 118, 110, 0.15);
}

.like-submit-button {
  background: #a96b12;
  box-shadow: 0 9px 20px rgba(169, 107, 18, 0.16);
}

.like-submit-button:hover {
  background: #8d570d;
}

@media (max-width: 1180px) {
  .interaction-submit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .creator-proof-setup-head,
  .review-assigned-building {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .creator-proof-setup-head .status-pill,
  .review-assigned-building .secondary-button {
    grid-column: 2;
    justify-self: start;
  }

  .creator-proof-setup-form,
  .interaction-proof-meta {
    grid-template-columns: 1fr;
  }

  .interaction-submit-card {
    padding: 17px;
    border-radius: 15px;
  }

  .interaction-card-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .interaction-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .interaction-requirement {
    grid-column: 2;
    justify-self: start;
  }

  .interaction-card-form {
    grid-template-columns: 1fr;
  }

  .proof-methods-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proof-method-divider {
    min-height: 24px;
  }

  .proof-method-divider::before {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
  }

  .proof-upload-control,
  .direct-capture-button,
  .interaction-submit-button,
  .interaction-link-field,
  .proof-methods {
    grid-column: 1;
  }
}

.proof-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  display: grid;
  min-width: 0;
}

.proof-thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  background: #f1f4f7;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f1f4f7;
}

.proof-thumb.empty {
  border-bottom: 1px dashed var(--line);
}

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

.proof-type-label {
  position: absolute;
  top: 7px;
  left: 7px;
  max-width: calc(100% - 14px);
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #2853a4;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-mini-meta {
  min-width: 0;
  padding: 8px 9px 9px;
  display: grid;
  gap: 3px;
}

.proof-mini-meta strong,
.proof-mini-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-mini-meta strong {
  color: var(--ink);
  font-size: 12px;
}

.proof-mini-meta small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.competitor-card.selected,
.official-card.selected {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  border-color: var(--brand);
}

.competitor-body a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
}

.library-grid {
  max-height: min(68vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

.creator-scoreboard {
  display: grid;
  gap: 16px;
}

.score-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #083c36 0%, #0f766e 48%, #f2c94c 140%);
  color: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.score-hero::after {
  content: "";
  position: absolute;
  inset: auto -20px -80px 35%;
  height: 150px;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-7deg);
}

.score-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.76;
}

.score-hero h2 {
  margin: 6px 0;
  font-size: 58px;
  line-height: 0.95;
}

.score-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.score-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: conic-gradient(#fff var(--score-progress), rgba(255, 255, 255, 0.22) 0);
  z-index: 1;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #0f766e;
}

.score-ring strong,
.score-ring span {
  position: relative;
  z-index: 1;
}

.score-ring strong {
  font-size: 24px;
}

.score-ring span {
  font-size: 12px;
  opacity: 0.82;
}

.score-progress {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  z-index: 1;
}

.score-progress div {
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.creator-guide {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #083c36 0%, #0f766e 52%, #f2c94c 145%);
  color: #fff;
  padding: 14px 18px;
  height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.creator-guide::after {
  content: "";
  position: absolute;
  inset: auto -20px -82px 32%;
  height: 150px;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(-7deg);
}

.creator-guide > * {
  position: relative;
  z-index: 1;
}

.creator-guide h2 {
  margin: 4px 0 6px;
  font-size: 20px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.creator-guide p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  line-height: 1.5;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.score-source-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.score-source-card svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.score-source-card span {
  color: var(--muted);
  font-weight: 800;
}

.score-source-card strong {
  font-size: 30px;
  line-height: 1;
}

.score-source-card small {
  color: var(--muted);
}

.score-feed-list {
  display: grid;
  gap: 10px;
}

.score-feed-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.score-feed-item span {
  color: var(--muted);
  font-weight: 700;
}

.score-feed-item strong {
  color: var(--brand);
  font-size: 18px;
}

.ai-points-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f0fbf7 100%);
}

.ai-points-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.ai-points-row > div {
  display: grid;
  gap: 4px;
}

.ai-points-row strong {
  color: var(--brand);
  font-size: 42px;
  line-height: 1;
}

.ai-points-row small {
  color: var(--muted);
  font-weight: 700;
}

.ai-level-note {
  align-self: stretch;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.ai-level-note strong {
  font-size: 19px;
  line-height: 1.25;
}

.image-job-section {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

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

.image-job-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.image-job-card strong,
.image-job-card p,
.image-job-card small {
  display: block;
}

.image-job-card p,
.image-job-card small {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.image-job-running {
  border-color: rgba(37, 99, 235, 0.28);
}

.image-job-failed {
  border-color: #fecdca;
  background: #fff7f5;
}

.material-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 16px;
  align-items: start;
}

.studio-controls {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 14px;
}

.studio-tabs {
  justify-content: flex-start;
}

.studio-style-section {
  display: grid;
  gap: 10px;
}

.studio-style-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.studio-style-heading small {
  color: #87928d;
  font-weight: 600;
}

.studio-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.studio-style-card {
  min-height: 102px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  row-gap: 3px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.studio-style-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  transform: translateY(-1px);
}

.studio-style-card.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #e7f6f1, #f6fbf8);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
}

.studio-style-card svg {
  grid-row: 1 / span 2;
  width: 21px;
  height: 21px;
  color: var(--brand);
}

.studio-style-card strong {
  font-size: 14px;
  line-height: 1.3;
}

.studio-style-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.studio-style-card.custom {
  border-style: dashed;
}

.studio-custom-prompt {
  margin-top: 2px;
}

.studio-brand-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 11px;
  border: 1px dashed rgba(15, 118, 110, 0.3);
  border-radius: 8px;
  background: #f7fbfa;
}

.studio-brand-assets legend {
  padding: 0 5px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.studio-brand-assets .check-row {
  min-height: 46px;
  padding: 6px 7px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 6px;
  background: #fff;
}

.studio-brand-assets .check-row span {
  display: grid;
  gap: 2px;
}

.studio-brand-assets .check-row strong {
  font-size: 13px;
}

.studio-brand-assets .check-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.studio-brand-assets .check-row.unavailable {
  cursor: not-allowed;
  opacity: 0.55;
}

.company-assets-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe5f6;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 54%, #f5f8ff 100%);
}

.registration-security-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dce6e2;
  border-radius: 16px;
  background: #f8fbfa;
}
.registration-security-control strong { display: block; margin-top: 3px; }
.registration-security-control p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .registration-security-control { grid-template-columns: 1fr; align-items: start; }
  .registration-security-control .status-pill { justify-self: start; }
}

.company-assets-heading {
  display: grid;
  gap: 3px;
  grid-column: 1 / -1;
}

.company-assets-heading strong {
  color: var(--ink);
  font-size: 15px;
}

.company-assets-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.company-asset-group {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dce6f6;
  border-radius: 8px;
  background: #ffffff;
}

.company-asset-group-head,
.company-asset-group-head > div,
.company-assets-actions {
  display: flex;
  align-items: center;
}

.company-asset-group-head {
  justify-content: space-between;
  gap: 10px;
}

.company-asset-group-head > div {
  gap: 7px;
  color: #1f3f76;
}

.company-asset-group-head svg {
  width: 17px;
  height: 17px;
  color: #3566b5;
}

.company-asset-group-head strong {
  font-size: 14px;
}

.company-asset-dropzone {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  row-gap: 1px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px dashed #9bb6e4;
  border-radius: 7px;
  color: #365583;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.company-asset-dropzone:hover,
.company-asset-dropzone.drop-active {
  border-color: #3566b5;
  background: #f4f8ff;
}

.company-asset-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.company-asset-dropzone > svg {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  color: #3566b5;
}

.company-asset-dropzone span {
  font-size: 13px;
  font-weight: 800;
}

.company-asset-dropzone small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.company-asset-dropzone .inline-upload-summary {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #3566b5;
  font-size: 11px;
}

.company-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 82px;
}

.company-asset-empty {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  min-height: 82px;
  border: 1px dashed #d7e0ee;
  border-radius: 6px;
  color: #8190a6;
  font-size: 12px;
  font-weight: 600;
}

.company-asset-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #d9e2f0;
  border-radius: 6px;
  background: #f5f7fb;
}

.company-asset-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / .76;
  object-fit: contain;
  background: #f3f6fb;
}

.company-asset-card.light-preview-card {
  background: #fff;
}

.company-asset-card img.preview-lightened {
  filter: invert(1);
  background: #fff;
}

.company-asset-card span {
  display: block;
  overflow: hidden;
  padding: 5px 6px;
  color: #50617b;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-asset-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 45, 72, .82);
  color: #fff;
  cursor: pointer;
}

.company-asset-remove svg {
  width: 14px;
  height: 14px;
}

.company-assets-actions {
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 12px;
}

.company-assets-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.studio-landmark-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #f5fbf8;
}

.studio-landmark-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.studio-landmark-heading svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex: 0 0 auto;
}

.studio-landmark-heading strong,
.studio-landmark-heading small {
  display: block;
}

.studio-landmark-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.studio-landmark-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.studio-landmark-building-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landmark-analysis {
  padding: 10px 11px;
  border: 1px dashed rgba(15, 118, 110, 0.28);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.studio-landmark-manual {
  color: var(--brand-dark);
}

.material-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.studio-material-card,
.generated-image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.studio-material-card {
  display: grid;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.studio-material-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16, 24, 20, 0.08);
}

.studio-material-card.selected {
  border-color: var(--brand);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.studio-material-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #eef3ef;
}

.studio-material-card > div {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.studio-material-card span,
.studio-material-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.generated-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.image-job-section {
  grid-column: 1 / -1;
}

.production-group-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(18, 89, 79, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(21, 63, 56, 0.07);
}

.production-group-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
}

.production-group-card-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.production-count-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e1f5ef;
  color: #0b6f62;
  font-size: 12px;
  font-weight: 800;
}

.production-group-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  min-height: 180px;
  background: #e8efec;
}

.production-group-thumbs a {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #eef3ef;
}

.production-group-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.production-group-thumbs a:hover img {
  transform: scale(1.035);
}

.production-group-thumbs a > span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 42, 37, 0.74);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.production-group-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.production-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.production-copy-preview {
  display: -webkit-box;
  min-height: calc(1.65em * 3);
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.production-group-actions {
  display: flex;
  gap: 10px;
}

.production-group-actions .primary-button,
.production-group-actions .secondary-button {
  min-height: 42px;
}

.creator-history-panel {
  overflow: hidden;
  padding: 0;
}

.creator-history-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border-bottom: 1px solid rgba(14, 116, 102, 0.12);
  background:
    radial-gradient(circle at 92% 15%, rgba(72, 190, 151, 0.16), transparent 28%),
    linear-gradient(135deg, #f6fffc 0%, #ecfaf5 100%);
}

.creator-history-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #0d7467, #35ad8e);
  box-shadow: 0 12px 26px rgba(13, 116, 103, 0.2);
}

.creator-history-icon svg {
  width: 27px;
  height: 27px;
}

.creator-history-hero h2 {
  margin: 3px 0 5px;
}

.creator-history-hero p {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.creator-history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.creator-history-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #176e61;
  font-size: 13px;
  font-weight: 800;
}

.creator-history-summary svg {
  width: 17px;
  height: 17px;
}

.creator-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-history-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.creator-history-filters button.active {
  border-color: rgba(13, 116, 103, 0.3);
  color: #0b6d60;
  background: #e4f7f1;
}

.creator-history-list {
  display: grid;
  gap: 14px;
  padding: 22px 28px 28px;
  background: #f7faf8;
}

.creator-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
  overflow: hidden;
  border: 1px solid rgba(18, 89, 79, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(21, 63, 56, 0.055);
}

.creator-history-card-main {
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 0;
  padding: 20px 22px;
}

.creator-history-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.creator-history-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.creator-history-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #64716d;
  background: #eef2f0;
  font-size: 12px;
  font-weight: 800;
}

.creator-history-status.green {
  color: #08715f;
  background: #ddf6ec;
}

.creator-history-status.blue {
  color: #275da3;
  background: #e4efff;
}

.creator-history-status.orange {
  color: #a35c08;
  background: #fff0d6;
}

.creator-history-status svg {
  width: 14px;
  height: 14px;
}

.creator-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-history-actions .primary-button,
.creator-history-actions .secondary-button {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 13px;
}

.creator-history-visuals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  min-height: 210px;
  background: #e7efeb;
}

.creator-history-visuals > a {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.creator-history-visuals img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.creator-history-visuals a:hover img {
  transform: scale(1.035);
}

.creator-history-visuals a > span {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 42, 37, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.creator-history-visuals.is-empty {
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 75% 20%, rgba(64, 185, 147, 0.13), transparent 32%),
    #eff7f4;
}

.creator-history-empty-visual,
.creator-history-empty-state,
.production-detail-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.creator-history-empty-visual svg,
.production-detail-empty svg {
  width: 30px;
  height: 30px;
  color: #2c9a83;
}

.creator-history-empty-visual span {
  max-width: 260px;
  font-size: 12px;
  line-height: 1.55;
}

.creator-history-empty-state {
  min-height: 300px;
  padding: 48px 20px;
  border: 1px dashed rgba(13, 116, 103, 0.22);
  border-radius: 18px;
  background: #fff;
}

.creator-history-empty-state svg {
  width: 40px;
  height: 40px;
  color: #42a78f;
}

.creator-history-empty-state h3,
.creator-history-empty-state p {
  margin: 0;
}

.production-detail-empty {
  grid-column: 1 / -1;
  min-height: 190px;
  border: 1px dashed rgba(13, 116, 103, 0.25);
  border-radius: 14px;
  background: #f2faf7;
}

.production-group-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 28px));
  overflow: auto;
  padding: 26px;
}

.production-group-dialog-head {
  position: sticky;
  top: -26px;
  z-index: 5;
  margin: -26px -26px 0;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.production-group-dialog-head h2,
.production-detail-copy h3 {
  margin: 4px 0;
}

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

.production-detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.production-detail-image > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #edf2ef;
}

.production-detail-image > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.production-detail-image span {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.production-detail-image a,
.production-detail-image button {
  border: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.production-detail-copy {
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fffc, #f1f8f5);
}

#productionGroupCopy {
  margin-top: 16px;
  color: var(--ink);
  line-height: 1.8;
  white-space: pre-wrap;
}

.draft-output {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  padding: 16px;
  white-space: pre-wrap;
  line-height: 1.65;
  color: var(--ink);
}

.compact-head {
  margin-top: 4px;
}

.selected-materials {
  min-height: 48px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.selected-materials img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.selected-material-strip {
  grid-column: 1 / -1;
  column-span: all;
  break-inside: avoid;
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px dashed rgba(15, 118, 110, 0.3);
  border-radius: var(--radius);
  background: rgba(217, 242, 236, 0.38);
}

.selected-material-strip strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.selected-material-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.selected-material-strip img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 5px 14px rgba(16, 24, 20, 0.12);
}

.selected-material-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e5f5ef;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.material-dialog {
  width: min(1040px, calc(100vw - 28px));
}

.material-masonry {
  column-count: 4;
  column-gap: 12px;
  max-height: min(68vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

.masonry-item {
  break-inside: avoid;
  display: grid;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.masonry-item.selected {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  border-color: var(--brand);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  background: #e9eee9;
}

.masonry-caption {
  padding: 9px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.material-pagination {
  grid-column: 1 / -1;
  column-span: all;
  break-inside: avoid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.material-pagination span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.material-pagination > div {
  display: flex;
  gap: 8px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  margin-bottom: 0;
}

h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.top-actions,
.panel-head,
menu,
.question-toolbar,
.building-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-panel-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.view-mode-toggle .icon-button {
  width: 32px;
  min-height: 32px;
  border: 0;
  background: transparent;
}

.view-mode-toggle .icon-button.active {
  color: #fff;
  background: var(--brand);
  box-shadow: none;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  border: 0;
  border-radius: var(--radius);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.manual-link {
  text-decoration: none;
}

.text-button {
  background: transparent;
  color: var(--brand);
  padding: 0 6px;
}

.icon-button {
  width: 38px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
}

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

.metric,
.panel,
.question-card,
.task-card,
.channel-card,
.building-card,
.leader-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  margin: 10px 0 4px;
}

.server-metrics-grid .metric strong {
  font-size: 30px;
}

.server-disk-list {
  display: grid;
  gap: 12px;
}

.server-disk-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 2fr) auto;
  align-items: center;
  gap: 18px;
  background: var(--panel);
}

.server-disk-row strong,
.server-disk-row small {
  display: block;
}

.server-disk-row small {
  color: var(--muted);
  margin-top: 4px;
}

.server-disk-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebe6;
}

.server-disk-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease;
}

.server-disk-track.warning span {
  background: #c68b1c;
}

.server-disk-track.danger span {
  background: #c85252;
}

.server-disk-percent {
  min-width: 56px;
  text-align: right;
  font-weight: 800;
  color: var(--ink);
}

.panel {
  padding: 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.topic-list,
.funnel,
.leaderboard {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.topic-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

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

.status-pill,
.tag,
.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.tag.orange {
  background: #ffedd5;
  color: #9a3412;
}

.tag.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.tag.gold {
  background: #fef3c7;
  color: #92400e;
}

.tag.green {
  background: #dcfce7;
  color: #166534;
}

.tag.pink {
  background: #fce7f3;
  color: #9d174d;
}

.tag.purple {
  background: #ede9fe;
  color: #6d28d9;
}

.funnel-row {
  display: grid;
  grid-template-columns: 82px 1fr 34px;
  gap: 10px;
  align-items: center;
}

.bar-track {
  height: 10px;
  background: #e9eee9;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--brand);
}

.geo-map {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: center;
}

.map-card {
  min-height: 128px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fbf7);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.map-card svg {
  color: var(--brand);
}

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

.map-line {
  height: 2px;
  background: var(--line);
}

.generator {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 18px;
  align-items: end;
}

.question-automation-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(22, 105, 92, 0.18);
  border-radius: 14px;
  background: rgba(225, 244, 238, 0.52);
}

.question-automation-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.8);
}

.question-automation-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}

.question-automation-card span {
  color: var(--brand);
  font-size: 12px;
}

.review-generator {
  grid-template-columns: 1fr;
  align-items: start;
  overflow: hidden;
  border-color: rgba(15, 118, 110, 0.17);
  background:
    radial-gradient(circle at 96% 0%, rgba(74, 189, 155, 0.12), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
}

.review-generator-intro {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 4px 2px 18px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}

.review-generator-intro h2 {
  margin: 3px 0 0;
}

.review-generator-intro p {
  max-width: 900px;
  margin-top: 5px;
}

.review-generator-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #3eb898);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.2);
}

.review-generator-icon svg {
  width: 27px;
  height: 27px;
}

.review-generator-badge {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #def5ed;
  font-size: 12px;
  font-weight: 800;
}

.review-generator .form-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 6px;
}

.review-assigned-building {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 15px;
  background: linear-gradient(135deg, #f1fbf7, #fff);
}

.review-assigned-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
}

.review-assigned-building > div {
  display: grid;
  gap: 3px;
}

.review-assigned-building small,
.review-assigned-building p {
  color: var(--muted);
  font-size: 12px;
}

.review-assigned-building strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.review-assigned-building p {
  margin: 0;
}

.review-generator .top-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.review-generator .review-generator-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  background: rgba(230, 247, 241, 0.55);
}

.review-generator-actions > div {
  display: grid;
  gap: 3px;
}

.review-generator-actions > div span {
  color: var(--muted);
  font-size: 12px;
}

.language-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.creator-self-task-panel {
  order: 3;
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
}

#creator-claim > .metric-grid {
  order: 1;
}

.creator-today-panel {
  position: relative;
  order: 2;
  overflow: hidden;
  padding: 0;
  border-color: rgba(15, 118, 110, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 180, 145, 0.13), transparent 24%),
    #fff;
  box-shadow: 0 18px 44px rgba(24, 70, 61, 0.08);
}

.creator-today-panel-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: linear-gradient(120deg, rgba(235, 250, 245, 0.95), rgba(255, 255, 255, 0.88));
}

.creator-today-panel-head h2 {
  margin: 3px 0 2px;
  font-size: 22px;
}

.creator-today-panel-head p {
  margin: 0;
}

.creator-today-panel-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #3ab18f);
  box-shadow: 0 11px 24px rgba(15, 118, 110, 0.2);
}

.creator-today-panel-icon svg {
  width: 25px;
  height: 25px;
}

.creator-today-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.creator-bulk-complete {
  min-height: 40px;
  white-space: nowrap;
}

.creator-bulk-complete:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.creator-today-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #dcf5eb;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.creator-today-live svg {
  width: 14px;
  height: 14px;
}

.creator-today-language-tabs {
  align-items: center;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.creator-today-language-tabs > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.creator-today-panel .claim-list {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 20px 22px;
}

.today-task-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 0;
}

.today-task-group-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.today-task-group-head strong {
  color: var(--ink);
  font-size: 16px;
}

.today-task-group-head span {
  color: var(--muted);
  font-size: 12px;
}

.today-task-group-head.self-task-group-head {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px dashed rgba(15, 118, 110, 0.25);
}

.today-task-group-count {
  min-width: 48px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark) !important;
  background: #e1f5ee;
  font-weight: 850;
  text-align: center;
}

.creator-today-task.is-self-task {
  border-color: rgba(67, 124, 204, 0.22);
  background: linear-gradient(155deg, #fff 0%, #f7fbff 100%);
}

.self-task-tag {
  color: #315f9f;
  background: #e6f0ff;
}

.self-task-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(15, 118, 110, 0.22);
  border-radius: 14px;
  text-align: center;
}

.creator-today-panel .creator-today-task {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "task-top task-actions"
    "task-copy task-actions";
  align-items: center;
  gap: 7px 18px;
  min-height: 124px;
  padding: 14px 16px;
  border-color: rgba(15, 118, 110, 0.16);
  border-radius: 16px;
  background: linear-gradient(155deg, #fff 0%, #fbfefd 100%);
  box-shadow: 0 8px 26px rgba(18, 64, 55, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.creator-today-panel .creator-today-task:hover {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 16px 34px rgba(18, 64, 55, 0.09);
  transform: translateY(-2px);
}

.creator-today-panel .creator-today-task.is-retained {
  border-color: rgba(15, 118, 110, 0.42);
  background:
    linear-gradient(90deg, rgba(216, 246, 235, 0.72), transparent 12%),
    linear-gradient(155deg, #fff 0%, #f5fcf9 100%);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.1);
}

.today-task-card-top {
  grid-area: task-top;
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-complete-selector {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
}

.creator-complete-selector input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.creator-complete-selector span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 7px;
  color: transparent;
  background: #f8fafc;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.creator-complete-selector span svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.creator-complete-selector.is-enabled {
  cursor: pointer;
}

.creator-complete-selector.is-enabled:hover span {
  border-color: var(--brand);
}

.creator-complete-selector input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.creator-complete-selector input:checked + span {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.creator-complete-selector input:disabled + span {
  opacity: 0.42;
}

.today-task-card-top .building-facts {
  flex: 1 1 auto;
  margin: 0;
}

.today-task-ready {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9a6a0d;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.today-task-ready.is-retained {
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0b6c58;
  background: #dcf6ec;
  font-size: 12px;
  white-space: nowrap;
}

.today-task-ready.is-retained svg {
  width: 14px;
  height: 14px;
}

.today-task-ready svg {
  width: 14px;
  height: 14px;
}

.creator-today-panel .today-task-number {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
  font-size: 13px;
}

.creator-today-panel .today-task-copy h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.creator-today-panel .today-task-copy {
  grid-area: task-copy;
}

.creator-today-panel .today-task-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.creator-today-panel .today-task-actions {
  grid-area: task-actions;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  justify-content: stretch;
  min-width: 310px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.creator-today-panel .today-task-actions button {
  width: 100%;
  min-height: 42px;
}

.creator-today-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 22px 20px;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--brand-dark);
  background: rgba(225, 245, 238, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.creator-today-footnote svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.self-task-form {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  margin-top: 14px;
}

.self-task-form .primary-button {
  min-width: 168px;
}

.self-task-suggestions {
  margin-top: 16px;
}

.self-task-suggestion-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.self-task-send-button {
  min-width: 230px;
}

.self-task-suggestion-head h3 {
  margin: 0 0 3px;
}

.self-task-suggestion-list {
  display: grid;
  gap: 8px;
}

.self-task-suggestion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.self-task-suggestion strong,
.self-task-suggestion small {
  display: block;
}

.self-task-suggestion strong {
  font-size: 15px;
  line-height: 1.4;
}

.self-task-suggestion small {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

.self-task-selector {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 12px;
  color: var(--brand-dark);
  background: #e6f7f1;
  cursor: pointer;
  font-weight: 850;
}

.self-task-selector input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.self-task-selector:has(input:checked) {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.2);
}

.self-task-points {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #a86508;
  font-size: 12px;
  font-weight: 800;
}

.self-task-points svg {
  width: 14px;
  height: 14px;
}

.language-tab {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.language-tab.active {
  border-color: rgba(15, 118, 110, 0.42);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.claim-list {
  display: grid;
  gap: 10px;
}

.claim-row-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.claim-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.claim-row-main h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.creator-today-task {
  min-height: 116px;
  padding: 16px;
}

.creator-today-task .claim-row-main {
  align-items: flex-start;
}

.today-task-number {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.today-task-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.today-task-copy .building-facts {
  margin: 0;
}

.today-task-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.today-task-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.today-task-actions button {
  white-space: nowrap;
}

.creator-style-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: #bcded4;
  background:
    radial-gradient(circle at 94% 0%, rgba(89, 189, 159, 0.18), transparent 28%),
    linear-gradient(145deg, #f8fffc 0%, #f2faf7 52%, #fff 100%);
  box-shadow: 0 16px 38px rgba(24, 82, 68, 0.09);
}

.creator-style-panel::after {
  position: absolute;
  z-index: 0;
  right: -70px;
  bottom: -115px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 32px rgba(15, 118, 110, 0.025),
    0 0 0 68px rgba(15, 118, 110, 0.02);
  pointer-events: none;
}

.creator-style-panel > * {
  position: relative;
  z-index: 1;
}

.creator-style-panel.is-complete {
  border-color: #6fc3a8;
  background:
    radial-gradient(circle at 94% 0%, rgba(65, 190, 145, 0.25), transparent 30%),
    linear-gradient(145deg, #f4fff9 0%, #eafaf3 58%, #fff 100%);
}

.creator-style-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.creator-style-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #0f766e, #35aa89);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22);
}

.creator-style-icon svg {
  width: 28px;
  height: 28px;
}

.creator-style-hero h2 {
  margin: 3px 0 5px;
  font-size: 22px;
}

.creator-style-hero p {
  max-width: 820px;
  margin: 0;
  color: #5f716b;
  font-size: 13px;
  line-height: 1.65;
}

.creator-style-progress {
  display: grid;
  gap: 2px;
  min-width: 100px;
  padding: 11px 15px;
  border: 1px solid rgba(15, 118, 110, 0.17);
  border-radius: 16px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.creator-style-progress strong {
  font-size: 21px;
  line-height: 1.1;
}

.creator-style-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.creator-style-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.creator-style-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #d1e7df;
  border-radius: 999px;
  color: #45635a;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.creator-style-benefits svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.creator-style-progress-track {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfece7;
}

.creator-style-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #54c89d);
  transition: width 220ms ease;
}

.creator-style-missing {
  margin: 8px 0 0;
  color: #6d7d78;
  font-size: 12px;
  font-weight: 700;
}

.style-form {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 11px;
  margin-top: 17px;
}

.style-form label {
  gap: 7px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #dce8e4;
  border-radius: 13px;
  color: #5a6e67;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.style-form label:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09);
}

.style-form label.is-filled {
  border-color: #9cd3c1;
  color: #275f50;
  background: #f5fffa;
}

.style-form select {
  min-height: 43px;
  border-color: transparent;
  background-color: #f5f8f7;
  font-weight: 750;
}

.style-form label.is-filled select {
  color: #174f42;
  background-color: #eaf8f2;
}

.creator-style-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding: 14px 15px;
  border: 1px solid #d6e8e1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.creator-style-save-row > div {
  display: grid;
  gap: 3px;
}

.creator-style-save-row strong {
  color: var(--ink);
  font-size: 13px;
}

.creator-style-save-row small {
  color: var(--muted);
  font-size: 11px;
}

.creator-style-save-row .primary-button {
  min-width: 190px;
  min-height: 46px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.17);
}

.creator-ai-locked {
  opacity: 0.72;
  filter: saturate(0.48);
  box-shadow: none !important;
}

.status-pill.style-required-badge {
  color: #8a5809;
  background: #fff0c8;
}

.choice-group {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.choice-group legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.choice-chip {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.choice-chip:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.52);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.choice-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.generator p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.material-upload-panel {
  grid-template-columns: minmax(220px, 360px) 1fr;
  align-items: center;
  padding: 18px 22px;
}

.material-upload-panel > div:first-child p {
  max-width: 360px;
}

.material-upload-form {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.material-upload-form .wide {
  grid-column: span 3;
}

.material-drop-label {
  gap: 8px;
}

.file-dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1.5px dashed rgba(15, 118, 110, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(217, 242, 236, 0.58), rgba(255, 255, 255, 0.9));
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.file-dropzone.drop-active {
  border-color: var(--brand);
  background: rgba(217, 242, 236, 0.9);
  transform: translateY(-1px);
}

.file-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-copy {
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  color: var(--brand-dark);
  pointer-events: none;
}

.dropzone-copy svg {
  width: 28px;
  height: 28px;
}

.dropzone-copy strong {
  font-size: 17px;
}

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

.upload-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.upload-file-list span,
.upload-file-list small {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.upload-progress {
  display: grid;
  gap: 5px;
  pointer-events: none;
}

.upload-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.15);
}

.upload-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.18s ease;
}

.upload-progress small,
.inline-upload-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inline-file-dropzone {
  border: 1px dashed transparent;
  border-radius: var(--radius);
  padding: 4px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.inline-file-dropzone.drop-active {
  border-color: rgba(15, 118, 110, 0.55);
  background: rgba(217, 242, 236, 0.42);
}

.material-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  gap: 12px;
  align-items: end;
  margin: 2px 0 14px;
}

.building-browser-panel {
  padding: 14px 16px;
  margin-bottom: 14px;
}

.building-browser-filters {
  grid-template-columns: repeat(2, minmax(180px, 260px)) minmax(120px, 1fr) auto;
  margin: 0;
}

.building-browser-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.account-directory {
  display: grid;
  gap: 8px;
}

.account-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.account-row .avatar {
  width: 34px;
  height: 34px;
  margin: 0;
  font-size: 14px;
}

.account-row-main {
  min-width: 0;
}

.account-row-main strong,
.account-row-main span {
  display: block;
}

.account-row-main span,
.account-row-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.account-maintain-button {
  min-height: 34px;
}

.building-filter-count {
  justify-self: end;
  align-self: end;
  margin-bottom: 10px;
}

.studio-filter-bar {
  grid-template-columns: repeat(2, minmax(160px, 220px));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.form-grid .primary-button {
  align-self: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.check-row input {
  width: 18px;
  height: 18px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: 0;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius);
  background: #e9eee9;
}

.segmented button {
  border: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.question-grid,
.channel-grid,
.building-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.question-grid.list-mode,
.building-grid.list-mode {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.question-card,
.channel-card,
.task-card,
.building-card,
.leader-card {
  padding: 16px;
}

.question-card,
.building-card {
  display: grid;
  gap: 12px;
}

.question-list-row,
.building-list-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.question-list-row .check,
.building-list-row .check {
  margin: 0;
}

.question-list-body,
.building-list-body {
  min-width: 0;
}

.question-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.question-list-row h3,
.building-list-row h3 {
  margin: 0;
  line-height: 1.35;
}

.question-list-row p,
.building-list-row p {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-list-side {
  align-self: center;
}

.building-list-row .building-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.creator-work-grid {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  align-items: stretch;
}

.creator-work-card {
  min-height: 260px;
  grid-template-rows: auto 1fr auto auto;
  border-color: #dbe5df;
  box-shadow: 0 10px 28px rgba(16, 24, 20, 0.04);
}

.creator-work-card h3 {
  font-size: 18px;
  line-height: 1.28;
}

.creator-work-card .task-meta {
  margin-top: 0;
}

.creator-work-card .building-actions {
  margin-top: auto;
}

.creator-work-table {
  min-width: 0 !important;
  table-layout: fixed;
}

.creator-work-row td {
  vertical-align: middle;
}

.creator-work-task {
  min-width: 0;
  overflow-wrap: anywhere;
}

.creator-work-task > strong,
.creator-work-task > small {
  display: block;
}

.creator-work-task > strong {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.45;
}

.creator-work-task > small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
}

.creator-work-task .task-translation {
  margin-top: 8px;
}

.creator-work-actions {
  flex-wrap: nowrap;
}

.creator-work-actions .primary-button,
.creator-work-actions .secondary-button {
  width: auto;
  min-height: 38px;
  white-space: nowrap;
}

.creator-work-card .primary-button,
.creator-work-card .secondary-button {
  min-height: 40px;
}

.empty-card {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 700;
}

.question-card.selected,
.building-card.selected {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  border-color: var(--brand);
}

.question-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
}
.question-page-summary { color: var(--muted); font-size: 13px; }
.question-page-controls { display: flex; gap: 7px; align-items: center; justify-content: center; }
.question-page-button,
.question-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  color: #536660;
  border: 1px solid #d9e3df;
  border-radius: 11px;
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}
.question-page-nav { gap: 5px; min-width: 88px; }
.question-page-nav svg { width: 16px; height: 16px; }
.question-page-button:hover,
.question-page-nav:hover:not(:disabled) { color: #08796d; border-color: #8fcabd; background: #f0faf7; }
.question-page-button.active { color: white; border-color: #08796d; background: #08796d; box-shadow: 0 6px 16px rgba(8,121,109,.18); }
.question-page-nav:disabled { opacity: .42; cursor: not-allowed; }
.question-page-ellipsis { color: var(--muted); }
.question-page-current { justify-self: end; color: #08796d; font-size: 13px; }

@media (max-width: 760px) {
  .question-pagination { grid-template-columns: 1fr; justify-items: center; padding: 13px; }
  .question-page-current { justify-self: center; }
  .question-page-controls { max-width: 100%; flex-wrap: wrap; }
}

.question-card p,
.task-card p,
.channel-card p,
.building-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.building-address {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.building-facts,
.link-grid,
.building-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.link-button {
  min-height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.link-button.disabled {
  color: var(--muted);
  background: #f3f5f2;
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-draft-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.review-results-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 2px;
}

.review-results-head h3 {
  margin: 3px 0;
  font-size: 20px;
}

.review-results-head p {
  margin: 0;
  font-size: 13px;
}

.review-results-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.review-draft-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.17);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.review-draft-card:hover {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.review-draft-card.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #ffffff 0%, #f6fffb 100%);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1), 0 18px 42px rgba(15, 78, 67, 0.1);
}

.review-draft-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.review-variant-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 14px;
  font-weight: 900;
}

.review-draft-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.35;
}

.review-draft-head p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-selected-mark {
  display: none;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.review-selected-mark svg {
  width: 15px;
  height: 15px;
}

.review-draft-card.active .review-selected-mark {
  display: flex;
}

.review-draft-text {
  position: relative;
  display: -webkit-box;
  max-height: calc(1.72em * 9);
  overflow: hidden;
  color: var(--ink);
  line-height: 1.72;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
}

.review-draft-card.expanded .review-draft-text {
  display: block;
  max-height: none;
  -webkit-line-clamp: unset;
}

.review-draft-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.review-draft-footer > span {
  color: var(--muted);
  font-size: 11px;
}

.review-draft-footer > div {
  display: flex;
  gap: 7px;
}

.review-draft-footer .mini-button {
  min-height: 34px;
}

.review-copy-button {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.review-safety-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #e6dfc5;
  border-radius: 12px;
  color: #766328;
  background: #fffaf0;
  font-size: 12px;
  line-height: 1.5;
}

.review-safety-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.check {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.kanban-column {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 520px;
}

.column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 800;
}

.task-stack {
  display: grid;
  gap: 10px;
}

.review-metrics {
  margin-bottom: 16px;
}

.panel-note {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  color: var(--muted);
  font-size: 0.82rem;
}

.creator-submitted-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-color: rgba(15, 118, 110, 0.16);
}

.creator-submitted-panel::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), #7db46e);
}

.creator-submitted-head {
  position: relative;
  z-index: 1;
  padding: 24px 26px 20px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.11);
  background:
    radial-gradient(circle at 88% 8%, rgba(93, 180, 150, 0.12), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f7fcfa 100%);
}

.creator-submitted-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.creator-submitted-heading-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-dark), #2da889);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.creator-submitted-heading-icon svg {
  width: 23px;
  height: 23px;
}

.creator-submitted-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.creator-submitted-head h2 {
  font-size: 21px;
}

.creator-submitted-head .panel-note {
  margin-bottom: 0;
  font-size: 13px;
}

.creator-submitted-count {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  background: rgba(230, 248, 241, 0.88);
  box-shadow: 0 5px 16px rgba(15, 118, 110, 0.08);
}

.creator-submitted-panel .table-wrap {
  position: relative;
  z-index: 1;
  padding: 8px 26px 20px;
  background: #fff;
}

.creator-submitted-table {
  table-layout: fixed;
}

.creator-submitted-table th:nth-child(1) {
  width: 43%;
}

.creator-submitted-table th:nth-child(2) {
  width: 12%;
}

.creator-submitted-table th:nth-child(3) {
  width: 12%;
}

.creator-submitted-table th:nth-child(4) {
  width: 8%;
}

.creator-submitted-table th:nth-child(5) {
  width: 7%;
}

.creator-submitted-table th:nth-child(6) {
  width: 18%;
}

.creator-submitted-table th {
  padding-top: 14px;
  padding-bottom: 11px;
  color: #77847f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.creator-submitted-table .creator-submitted-row {
  transition: background 160ms ease, box-shadow 160ms ease;
}

.creator-submitted-table .creator-submitted-row:hover {
  background: linear-gradient(90deg, rgba(236, 250, 245, 0.72), rgba(255, 255, 255, 0));
  box-shadow: inset 3px 0 0 var(--brand);
}

.creator-submitted-table .creator-submitted-row td {
  padding-top: 17px;
  padding-bottom: 17px;
  vertical-align: middle;
}

.creator-submitted-task-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.creator-submitted-task-top strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-submitted-task > small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.creator-submitted-type,
.creator-platform-pill,
.creator-recorded-status,
.creator-points-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.creator-submitted-type {
  flex: 0 0 auto;
  padding: 0 9px;
  color: #275f91;
  background: #e7f2ff;
}

.creator-submitted-type.is-comment {
  color: #187450;
  background: #e4f8ed;
}

.creator-submitted-type svg,
.creator-recorded-status svg {
  width: 13px;
  height: 13px;
}

.creator-platform-pill {
  max-width: 100%;
  padding: 0 10px;
  overflow: hidden;
  color: #31413c;
  background: #f1f5f3;
  text-overflow: ellipsis;
}

.creator-submitted-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.creator-proof-link {
  min-height: 32px;
  padding: 0 9px;
  border-color: rgba(15, 118, 110, 0.18);
  border-radius: 9px;
  background: #fbfffd;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.creator-proof-link:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.creator-proof-link svg {
  width: 14px;
  height: 14px;
}

.creator-proof-missing {
  color: var(--muted);
  font-size: 11px;
}

.creator-recorded-status {
  padding: 0 9px;
  color: #147246;
  background: #dcfce7;
}

.creator-points-pill {
  min-width: 52px;
  padding: 0 8px;
  color: #80520d;
  background: #fff5d9;
}

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

.creator-submitted-time {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-style: normal;
  white-space: nowrap;
}

.creator-submitted-time strong {
  font-size: 11.5px;
}

.creator-submitted-time small {
  color: var(--muted);
  font-size: 10.5px;
}

.creator-submitted-empty-row td {
  border-bottom: 0;
}

.creator-submitted-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 170px;
  color: var(--muted);
}

.creator-submitted-empty > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--brand-soft);
}

.creator-submitted-empty svg {
  width: 21px;
  height: 21px;
}

.creator-submitted-empty strong,
.creator-submitted-empty small {
  display: block;
}

.creator-submitted-empty strong {
  margin-bottom: 3px;
  color: var(--ink);
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.task-translation {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius);
  background: rgba(220, 252, 231, 0.38);
}

.task-translation h3 {
  margin: 0;
}

.task-translation p {
  margin: 0;
  color: var(--muted);
}

.claim-task-list {
  display: grid;
  gap: 12px;
}

.claim-task-card {
  display: grid;
  gap: 12px;
}

.claim-users {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.claim-users > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
}

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.danger-button {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}

.channel-card {
  display: grid;
  gap: 12px;
  min-height: 180px;
}

.channel-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.monitor-table-wrap {
  margin-top: 16px;
  overflow: auto;
}

.monitor-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.monitor-table th,
.monitor-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.monitor-table th {
  color: var(--muted);
  font-size: 12px;
}

.leader-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
}

.leader-card.clickable {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.leader-card.clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.12);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.avatar-button {
  border: 0;
  padding: 0;
}

.leader-card small {
  color: var(--muted);
}

.work-progress-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.work-progress-summary > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.work-progress-summary span,
.work-person span,
.weekly-score small,
.weekly-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.work-progress-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.work-progress-list {
  display: grid;
  gap: 10px;
}

.work-progress-row {
  display: grid;
  grid-template-columns: 42px minmax(160px, 1fr) 98px minmax(260px, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.work-person {
  min-width: 0;
}

.work-person strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-person strong small {
  color: var(--muted);
  font-weight: 600;
}

.weekly-score {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
}

.weekly-score strong {
  font-size: 22px;
  line-height: 1.1;
}

.weekly-score-below,
.weekly-chip-below {
  color: #b42318;
  background: #fff4f2;
  border-color: #fecdca;
}

.weekly-score-high,
.weekly-chip-high {
  color: #087443;
  background: #ecfdf3;
  border-color: #abefc6;
}

.weekly-score-met,
.weekly-chip-met {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: rgba(15, 118, 110, 0.22);
}

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

.weekly-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.weekly-chip strong {
  font-size: 17px;
  line-height: 1.1;
}

.work-progress-panel {
  margin-top: 14px;
}

.weekly-history-panel {
  margin-top: 4px;
}

dialog {
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

dialog::backdrop {
  background: rgba(13, 31, 28, 0.45);
}

.dialog-card {
  width: min(560px, calc(100vw - 28px));
  padding: 20px;
  display: grid;
  gap: 16px;
  background: #fff;
}

.submission-dialog-card {
  width: min(760px, calc(100vw - 28px));
  gap: 20px;
  padding: 24px;
  border-top: 4px solid var(--brand);
}

.submission-dialog-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.submission-dialog-head h2 {
  margin: 2px 0 4px;
  font-size: 22px;
}

.submission-dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.submission-dialog-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #2c9d87);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.submission-dialog-icon svg {
  width: 23px;
  height: 23px;
}

.submission-dialog-head .icon-button {
  align-self: start;
}

.submission-field-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.6fr);
  gap: 13px;
}

.submission-field-grid label {
  min-width: 0;
}

.submission-field-grid input {
  min-height: 48px;
}

.submission-proof-methods {
  padding: 16px;
  border: 1px solid #d9e4e0;
  border-radius: 16px;
  background: #f8fbfa;
}

.submission-proof-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -6px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #48615a;
  background: #eef8f4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.submission-proof-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--brand);
}

.submission-dialog-actions {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.submission-dialog-actions button {
  min-height: 46px;
  padding-inline: 20px;
}

.screen-capture-dialog {
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
}

.screen-capture-head {
  align-items: center;
}

.screen-capture-guide {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid #cce0d9;
  border-radius: 12px;
  color: #38514a;
  background: #f1faf7;
}

.screen-capture-guide svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--brand);
}

.screen-capture-guide p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.screen-capture-stage {
  display: grid;
  place-items: center;
  min-height: 260px;
  max-height: calc(100dvh - 300px);
  overflow: auto;
  border: 1px solid #26342f;
  border-radius: 14px;
  background:
    linear-gradient(45deg, #15201c 25%, transparent 25%),
    linear-gradient(-45deg, #15201c 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #15201c 75%),
    linear-gradient(-45deg, transparent 75%, #15201c 75%),
    #1d2a25;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

#screenCaptureCanvas {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 304px);
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.screen-capture-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.creator-detail-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  overflow: auto;
}

.compact-score-hero {
  min-height: 128px;
  margin-bottom: 14px;
}

.compact-source-grid {
  margin-bottom: 14px;
}

.detail-section {
  margin-top: 14px;
}

.building-dialog {
  width: min(860px, calc(100vw - 28px));
}

.draft-dialog-card {
  width: min(980px, calc(100vw - 28px));
  max-height: min(900px, calc(100dvh - 28px));
  gap: 16px;
  padding: 0 24px 24px;
  overflow: auto;
  border-top: 4px solid var(--brand);
  background:
    radial-gradient(circle at 100% 0%, rgba(69, 181, 148, 0.09), transparent 25%),
    #f8fbfa;
}

.draft-dialog-head {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  margin: 0 -24px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(25, 61, 51, 0.05);
  backdrop-filter: blur(14px);
}

.draft-dialog-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-dark), #33ae8d);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.23);
}

.draft-dialog-icon svg {
  width: 25px;
  height: 25px;
}

.draft-dialog-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.draft-dialog-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.draft-dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.draft-dialog-head .icon-button {
  align-self: start;
  border-color: rgba(15, 118, 110, 0.14);
  background: #f8fbfa;
}

.draft-task-locked {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(230, 248, 241, 0.9), rgba(249, 253, 251, 0.94));
}

.draft-task-locked::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 18px solid rgba(15, 118, 110, 0.05);
  border-radius: 50%;
  content: "";
}

.draft-task-locked-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.draft-task-locked-label > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.draft-task-locked-label svg {
  width: 14px;
  height: 14px;
}

.draft-task-locked-label small {
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 750;
}

.draft-task-title {
  position: relative;
  z-index: 1;
  padding-right: 76px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.draft-settings {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #dde8e4;
  border-radius: 16px;
  background: #fff;
}

.draft-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draft-section-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.draft-section-icon svg {
  width: 17px;
  height: 17px;
}

.draft-section-heading h3 {
  margin: 0;
  font-size: 14px;
}

.draft-section-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

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

.draft-control-card {
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e9e5;
  border-radius: 13px;
  color: var(--ink);
  background: #fafcfb;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.draft-control-card:focus-within {
  border-color: rgba(15, 118, 110, 0.5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.draft-control-card > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #66756f;
  font-size: 11px;
  font-weight: 850;
}

.draft-control-card > span svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.draft-control-card select {
  min-height: 42px;
  padding: 8px 34px 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background-color: #f0f6f3;
  font-size: 13px;
  font-weight: 800;
}

.draft-brand-placement {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 16px;
  border-color: #d8e6e1;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f1faf6 100%);
}

.draft-brand-icon,
.draft-travel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-soft);
}

.draft-brand-icon svg,
.draft-travel-icon svg {
  width: 20px;
  height: 20px;
}

.draft-brand-copy {
  min-width: 0;
}

.draft-brand-copy > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-mode-badge {
  padding: 3px 8px;
  border-radius: 999px;
  color: #397060;
  background: #e5f5ef;
  font-size: 9.5px;
  font-weight: 850;
}

.draft-brand-placement.force-active .draft-mode-badge {
  color: #fff;
  background: var(--brand);
}

.draft-brand-placement.force-active {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}

.draft-travel-reference {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 16px;
  border-color: #dfe8e4;
  border-radius: 16px;
  background: #fff;
}

.draft-travel-copy {
  min-width: 0;
}

.draft-travel-copy h3 {
  font-size: 14px;
}

.draft-travel-reference .selected-chips {
  grid-column: 2 / -1;
  padding-top: 9px;
  border-top: 1px dashed #dce6e2;
}

.draft-reference-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  min-height: 21px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 10px;
}

.draft-reference-count[hidden] {
  display: none;
}

.draft-action-bar {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #dbe7e2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 61, 51, 0.05);
}

.draft-action-bar > div {
  display: grid;
  gap: 2px;
}

.draft-action-bar > div strong {
  font-size: 12px;
}

.draft-action-bar > div small {
  color: var(--muted);
  font-size: 10.5px;
}

.draft-action-bar button {
  min-height: 42px;
}

.draft-action-bar .primary-button {
  min-width: 150px;
  box-shadow: 0 9px 22px rgba(15, 118, 110, 0.18);
}

.draft-action-bar.is-generating {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(110deg, #fff 0%, #f2fbf8 48%, #fff 100%);
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.12);
}

.draft-action-bar.is-generating::after {
  position: absolute;
  right: 100%;
  bottom: 0;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #35b99d, transparent);
  content: "";
  animation: draft-ai-progress 2.2s ease-in-out infinite;
}

#generateDraft.is-generating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #0f766e;
  background: linear-gradient(135deg, #0f766e, #169b86);
  animation: draft-ai-button-breathe 1.7s ease-in-out infinite;
}

.draft-ai-loader {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  animation: draft-ai-orb-breathe 1.35s ease-in-out infinite;
}

.draft-ai-loader svg {
  width: 17px;
  height: 17px;
  animation: draft-image-spin 1.05s linear infinite;
}

.draft-ai-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.draft-ai-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: draft-ai-dot 1.1s ease-in-out infinite;
}

.draft-ai-dots i:nth-child(2) { animation-delay: 0.15s; }
.draft-ai-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes draft-ai-button-breathe {
  0%, 100% { box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2), 0 0 0 0 rgba(22, 155, 134, 0.28); }
  50% { box-shadow: 0 12px 28px rgba(15, 118, 110, 0.3), 0 0 0 8px rgba(22, 155, 134, 0); }
}

@keyframes draft-ai-orb-breathe {
  0%, 100% { transform: scale(0.86); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes draft-ai-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes draft-ai-progress {
  0% { right: 100%; }
  100% { right: -42%; }
}

.draft-output-shell {
  overflow: hidden;
  border: 1px solid #dce7e3;
  border-radius: 16px;
  background: #fff;
}

.draft-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #e4ece8;
  background: linear-gradient(135deg, #f4fbf8, #fbfefd);
}

.draft-output-head > div:first-child > span {
  display: block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.draft-output-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.draft-output-count {
  padding: 5px 9px;
  border-radius: 999px;
  color: #566a63;
  background: #edf3f0;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.draft-output-count.is-near-limit {
  color: #8a590b;
  background: #fff1ce;
}

.draft-output-count.is-over-limit {
  color: #a43232;
  background: #fde2e2;
}

.draft-output-head h3 {
  margin: 0;
  font-size: 14px;
}

.draft-output-ready {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #28745c;
  background: #e5f7ef;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.draft-output-ready svg {
  width: 13px;
  height: 13px;
}

.draft-output-shell .draft-output {
  min-height: 220px;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 18px;
}

.draft-dialog-card > .draft-image-suggestions {
  border-radius: 16px;
  background: #fff;
}

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

.dialog-grid .wide {
  grid-column: 1 / -1;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

menu {
  margin: 0;
  padding: 0;
  justify-content: end;
}

@media (max-width: 1080px) {
  .creator-today-panel .today-task-actions {
    grid-template-columns: 1fr;
    min-width: 160px;
  }

  .metric-grid,
  .question-grid,
  .building-grid,
  .material-grid,
  .material-studio-grid,
  .generated-image-grid,
  .material-picker,
  .competitor-grid,
  .official-grid,
  .score-source-grid,
  .channel-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .generator,
  .material-upload-panel,
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .server-disk-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .server-disk-percent {
    text-align: left;
  }

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

  .material-upload-form .wide {
    grid-column: 1 / -1;
  }

  .studio-controls {
    position: static;
  }

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

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

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

  .review-generator-actions > div {
    grid-column: 1 / -1;
  }

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

  .ai-points-row {
    grid-template-columns: 1fr;
  }

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

  .geo-map {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .map-line {
    width: 2px;
    height: 22px;
    justify-self: center;
  }

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

@media (max-width: 760px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .creator-today-panel-head {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 17px;
  }

  .creator-today-panel-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .creator-today-head-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .creator-today-head-actions .secondary-button {
    width: auto;
  }

  .creator-today-language-tabs {
    padding: 12px 16px;
  }

  .creator-today-panel .claim-list {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .creator-today-panel .creator-today-task {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "task-top"
      "task-copy"
      "task-actions";
    min-height: 0;
    padding: 16px;
  }

  .creator-today-panel .today-task-copy p {
    -webkit-line-clamp: 2;
  }

  .creator-today-panel .today-task-actions {
    min-width: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .creator-today-footnote {
    margin: 0 16px 16px;
  }

  .review-generator-intro {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .review-generator-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .review-generator-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .review-draft-grid,
  .review-generator .review-generator-actions {
    grid-template-columns: 1fr;
  }

  .review-draft-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .review-selected-mark {
    grid-column: 2;
  }

  .review-draft-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .review-draft-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body {
    min-height: 100dvh;
  }

  .auth-view {
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      max(16px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    align-items: center;
  }

  .auth-card {
    padding: 20px;
    gap: 15px;
  }

  .creator-app,
  .shell {
    min-height: 100dvh;
  }

  input,
  select,
  textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: auto;
    min-height: auto;
    padding:
      max(10px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      12px
      max(12px, env(safe-area-inset-left));
    gap: 10px;
    overflow: hidden;
  }

  .sidebar .brand {
    display: none;
  }

  .sidebar .nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar .nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar .nav-item {
    width: 74px;
    min-width: 74px;
    min-height: 54px;
    justify-content: center;
    padding: 7px 4px;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
  }

  .sidebar .nav-item span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .sidebar .language-toggle {
    min-height: 36px;
  }

  .sidebar .sidebar-card {
    display: none;
  }

  .creator-app {
    display: block;
    min-height: auto;
    overflow-x: clip;
  }

  .creator-sidebar {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 10px 12px 12px;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: hidden;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .creator-sidebar .brand {
    display: none;
  }

  .creator-sidebar .nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .creator-sidebar .nav::-webkit-scrollbar {
    display: none;
  }

  .creator-sidebar .nav-item {
    width: 74px;
    min-width: 74px;
    min-height: 54px;
    justify-content: center;
    padding: 7px 4px;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    line-height: 1.15;
  }

  .creator-sidebar .nav-item span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }

  .creator-sidebar .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .creator-sidebar .secondary-button {
    display: none;
  }

  .creator-sidebar .language-toggle {
    min-height: 36px;
  }

  .creator-main {
    padding:
      14px
      max(16px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    gap: 14px;
  }

  .creator-main,
  .creator-view,
  .creator-view > .panel {
    min-width: 0;
    max-width: 100%;
  }

  .creator-header {
    align-items: flex-start;
    gap: 8px;
  }

  .creator-header h1 {
    font-size: 26px;
    line-height: 1.05;
  }

  .creator-header .status-pill {
    flex: 0 0 auto;
  }

  .creator-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .shell {
    margin-left: 0;
    padding:
      16px
      max(16px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .topbar,
  .question-toolbar,
  .building-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .view-mode-toggle .icon-button {
    width: 32px;
    min-height: 32px;
    height: 32px;
  }

  .question-list-row,
  .building-list-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .question-list-side,
  .building-list-row .building-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .building-browser-actions {
    justify-content: flex-start;
  }

  .account-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-row .status-pill,
  .account-row .account-maintain-button,
  .account-row .account-row-note {
    grid-column: 2;
    justify-self: start;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 46px;
  }

  .icon-button {
    width: 46px;
    height: 46px;
  }

  .metric-grid,
  .question-grid,
  .building-grid,
  .material-grid,
  .material-studio-grid,
  .generated-image-grid,
  .material-picker,
  .competitor-grid,
  .official-grid,
  .score-source-grid,
  .channel-grid,
  .form-grid,
  .kanban,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .creator-work-table,
  .creator-work-table tbody,
  .creator-work-table tr,
  .creator-work-table td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .creator-work-table thead {
    display: none;
  }

  .creator-work-table tbody {
    display: grid;
    gap: 10px;
  }

  .creator-work-table .creator-work-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
  }

  .creator-work-row .creator-work-task {
    grid-column: 1 / -1;
  }

  .creator-work-row td {
    padding: 0;
    border: 0;
  }

  .creator-work-row td:nth-child(2) {
    align-self: center;
  }

  .creator-work-row td:last-child {
    justify-self: end;
  }

  .creator-work-actions {
    display: grid;
    gap: 7px;
  }

  .creator-work-actions .primary-button,
  .creator-work-actions .secondary-button {
    width: auto;
    min-height: 40px;
  }

  .creator-work-table .task-translation {
    overflow-wrap: anywhere;
  }

  .creator-submitted-table,
  .creator-submitted-table tbody,
  .creator-submitted-table tr,
  .creator-submitted-table td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .creator-submitted-table {
    table-layout: auto;
  }

  .creator-submitted-table thead {
    display: none;
  }

  .creator-submitted-table tbody {
    display: grid;
    gap: 10px;
  }

  .creator-submitted-table .creator-submitted-row {
    display: grid;
    gap: 8px;
    padding: 15px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f8fcfa);
    box-shadow: 0 6px 18px rgba(28, 58, 49, 0.05);
  }

  .creator-submitted-table td {
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .creator-submitted-table .creator-submitted-task {
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
  }

  .creator-submitted-panel .table-wrap {
    padding: 12px 14px 16px;
  }

  .creator-submitted-head {
    align-items: flex-start;
    padding: 20px 16px 17px;
  }

  .creator-submitted-heading {
    align-items: flex-start;
    gap: 11px;
  }

  .creator-submitted-heading-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .creator-submitted-heading-icon svg {
    width: 20px;
    height: 20px;
  }

  .creator-submitted-head h2 {
    font-size: 19px;
  }

  .creator-submitted-head .panel-note {
    font-size: 12px;
  }

  .creator-submitted-count {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .creator-submitted-task-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .creator-submitted-task-top strong {
    width: 100%;
    white-space: normal;
  }

  .creator-submitted-table td:not(.creator-submitted-task) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .creator-submitted-table td:not(.creator-submitted-task)::before {
    content: attr(data-label);
    flex: 0 0 72px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
  }

  .creator-submitted-table td[data-label="成果"] {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .creator-submitted-table td[data-label="成果"] .link-button {
    min-height: 36px;
  }

  .creator-submitted-time {
    justify-items: end;
  }

  .creator-view .table-wrap {
    overflow: visible;
  }

  .work-progress-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-progress-row {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .work-progress-row .weekly-score,
  .work-progress-row .weekly-history {
    grid-column: 2;
  }

  .weekly-history {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .review-generator .form-grid {
    grid-template-columns: 1fr;
  }

  .material-upload-form,
  .material-filter-bar,
  .studio-filter-bar {
    grid-template-columns: 1fr;
  }

  .studio-style-grid {
    grid-template-columns: 1fr;
  }

  .travel-resource-grid {
    grid-template-columns: 1fr;
  }

  .travel-resource-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "meta"
      "more";
    padding: 14px;
  }

  .travel-resource-meta {
    justify-content: flex-start;
    align-items: start;
    flex-wrap: wrap;
  }

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

  .travel-resource-main h3 {
    white-space: normal;
  }

  .travel-image-picker-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .travel-image-picker-actions {
    width: 100%;
  }

  .draft-travel-reference {
    grid-template-columns: 1fr;
  }

  .draft-travel-reference .secondary-button {
    width: 100%;
  }

  .studio-brand-assets {
    grid-template-columns: 1fr;
  }

  .company-assets-form {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .company-assets-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .company-assets-actions small {
    text-align: center;
  }

  .studio-landmark-building-grid {
    grid-template-columns: 1fr;
  }

  .building-filter-count {
    justify-self: start;
    margin-bottom: 0;
  }

  .style-form {
    grid-template-columns: 1fr;
  }

  .self-task-form {
    grid-template-columns: 1fr;
  }

  .self-task-suggestion {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .self-task-points {
    grid-column: 1 / -1;
    width: 100%;
  }

  .self-task-suggestion-head {
    align-items: stretch;
    flex-direction: column;
  }

  .self-task-send-button {
    width: 100%;
  }

  .claim-row-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .claim-row-main {
    align-items: flex-start;
  }

  .today-task-actions {
    justify-content: stretch;
  }

  .today-task-actions button {
    flex: 1 1 150px;
  }

  .segmented {
    grid-auto-flow: row;
  }

  .auth-tabs {
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 16px;
  }

  .metric {
    padding: 14px;
  }

  .metric strong {
    font-size: 28px;
  }

  .question-card,
  .building-card,
  .task-card,
  .channel-card,
  .leader-card {
    padding: 14px;
  }

  .material-card img {
    max-height: 260px;
  }

  .creator-guide {
    grid-template-columns: 1fr;
    padding: 12px 14px;
    height: 96px;
  }

  .creator-guide h2 {
    font-size: 17px;
    margin: 2px 0 4px;
  }

  .creator-guide p {
    font-size: 12px;
    line-height: 1.4;
  }

  .score-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 16px;
    gap: 10px;
  }

  .score-hero h2 {
    font-size: 42px;
  }

  .score-hero p {
    font-size: 12px;
    line-height: 1.4;
  }

  .score-ring {
    width: 74px;
    height: 74px;
  }

  .score-ring::before {
    inset: 8px;
  }

  .score-ring strong {
    font-size: 20px;
  }

  .score-ring span {
    font-size: 11px;
  }

  .score-progress {
    display: none;
  }

  .dialog-card,
  .building-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .submission-field-grid {
    grid-template-columns: 1fr;
  }

  .submission-dialog-card {
    gap: 16px;
    padding: 18px;
  }

  .submission-dialog-head {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .submission-dialog-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .submission-dialog-head h2 {
    font-size: 19px;
  }

  .submission-dialog-head p {
    display: none;
  }

  .submission-proof-methods {
    padding: 12px;
  }

  .submission-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
  }

  .submission-dialog-actions button {
    width: 100%;
  }

  .screen-capture-stage {
    min-height: 190px;
    max-height: calc(100dvh - 335px);
  }

  #screenCaptureCanvas {
    max-height: calc(100dvh - 339px);
  }

  .material-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .material-masonry {
    column-count: 2;
    max-height: 70vh;
  }

  input[type="file"] {
    min-height: 48px;
    padding: 12px;
  }

  .table-wrap,
  .monitor-table-wrap,
  .library-grid {
    -webkit-overflow-scrolling: touch;
  }

  h1 {
    font-size: 25px;
  }
}

@media (max-width: 640px) {
  .production-group-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-group-thumbs img {
    min-height: 150px;
  }

  .production-group-actions,
  .production-detail-image > div {
    align-items: stretch;
    flex-direction: column;
  }

  .production-detail-images {
    grid-template-columns: 1fr;
  }

  .production-detail-image span {
    justify-content: flex-start;
  }

  .production-group-dialog {
    padding: 18px;
  }

  .production-group-dialog-head {
    top: -18px;
    margin: -18px -18px 0;
    padding: 18px;
  }

  .creator-style-panel {
    padding: 16px;
  }

  .creator-style-hero {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
  }

  .creator-style-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .creator-style-icon svg {
    width: 23px;
    height: 23px;
  }

  .creator-style-hero h2 {
    font-size: 19px;
  }

  .creator-style-hero p {
    font-size: 12px;
  }

  .creator-style-progress {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
    min-width: 0;
    text-align: left;
  }

  .creator-style-benefits {
    display: grid;
    grid-template-columns: 1fr;
  }

  .creator-style-save-row {
    display: grid;
  }

  .creator-style-save-row .primary-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .draft-dialog-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    gap: 13px;
    padding: 0 14px 18px;
  }

  .draft-dialog-head {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 11px;
    margin: 0 -14px;
    padding: 15px 14px 14px;
  }

  .draft-dialog-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .draft-dialog-icon svg {
    width: 21px;
    height: 21px;
  }

  .draft-dialog-head h2 {
    font-size: 18px;
  }

  .draft-dialog-head p {
    display: none;
  }

  .draft-dialog-head .icon-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .draft-task-locked {
    padding: 14px;
  }

  .draft-task-title {
    padding-right: 0;
    font-size: 16px;
  }

  .draft-task-locked-label {
    align-items: flex-start;
  }

  .draft-control-grid {
    grid-template-columns: 1fr;
  }

  .draft-settings {
    padding: 14px;
  }

  .draft-brand-placement {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .draft-brand-placement .switch-control {
    grid-column: 2;
    justify-self: start;
    min-height: 34px;
  }

  .draft-travel-reference {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .draft-travel-reference .secondary-button,
  .draft-travel-reference .selected-chips {
    grid-column: 1 / -1;
  }

  .draft-action-bar {
    grid-template-columns: 1fr 1fr;
    padding: 13px;
  }

  .draft-action-bar > div {
    grid-column: 1 / -1;
  }

  .draft-action-bar button {
    width: 100%;
    min-width: 0;
  }

  .draft-output-head {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .draft-output-meta {
    justify-content: flex-end;
  }

  .draft-output-ready {
    max-width: 132px;
    white-space: normal;
  }

  .draft-output-shell .draft-output {
    min-height: 180px;
    padding: 15px;
  }
}

/* Controlled admin assistant */
.admin-assistant-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px 30px;
  overflow: hidden;
  color: #f7fffc;
  border: 0;
  background: linear-gradient(120deg, #073d37 0%, #0c7568 58%, #78aa76 100%);
}
.admin-assistant-hero-copy { display: flex; gap: 18px; align-items: center; }
.admin-assistant-hero h2 { margin: 3px 0 7px; font-size: clamp(25px, 2.4vw, 38px); }
.admin-assistant-hero p { max-width: 820px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.65; }
.admin-assistant-hero .section-kicker { color: #a8ead9; }
.admin-assistant-mark { display: grid; place-items: center; flex: 0 0 auto; width: 68px; height: 68px; border-radius: 21px; color: white; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.admin-assistant-mark svg { width: 32px; height: 32px; }
.admin-assistant-guard { display: flex; gap: 11px; align-items: center; flex: 0 0 auto; padding: 13px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(0,32,28,.24); font-size: 13px; font-weight: 750; line-height: 1.45; }
.admin-assistant-guard svg { color: #b6f2df; }
.admin-assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.admin-assistant-chat { position: relative; min-height: 680px; padding: 0; overflow: hidden; }
.admin-assistant-chat-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.admin-assistant-chat-head > div { display: flex; gap: 9px; align-items: center; }
.admin-assistant-chat-head small { color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2eb895; box-shadow: 0 0 0 5px #ddf6ee; }
.admin-assistant-messages { display: grid; gap: 20px; align-content: start; height: 480px; padding: 24px; overflow-y: auto; background: linear-gradient(#fff, #f8fbfa); }
.assistant-message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; max-width: 88%; }
.assistant-message.is-user { grid-template-columns: minmax(0, 1fr) 38px; justify-self: end; }
.assistant-message.is-user > .assistant-avatar { grid-column: 2; }
.assistant-message.is-user > div { grid-column: 1; grid-row: 1; background: #0c8173; color: white; }
.assistant-message > div { padding: 13px 15px; border: 1px solid #dfe9e6; border-radius: 5px 17px 17px; background: white; box-shadow: 0 7px 22px rgba(11,64,57,.06); }
.assistant-message.is-user > div { border-radius: 17px 5px 17px 17px; border-color: #0c8173; }
.assistant-message p { margin: 4px 0 0; line-height: 1.65; }
.assistant-message-attachment { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 5px 8px; color: #33776e; border-radius: 999px; background: #e5f6f1; font-size: 11px; font-weight: 750; }
.assistant-message-attachment svg { width: 14px; height: 14px; }
.assistant-message.is-user .assistant-message-attachment { color: #e9fffa; background: rgba(255,255,255,.14); }
.assistant-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #08796d; background: #dcf4ed; }
.assistant-message.is-user .assistant-avatar { color: white; background: #173f3a; }
.assistant-message.is-thinking > div { min-width: 250px; }
.assistant-thinking-content { display: flex; gap: 10px; align-items: center; color: #54716b; }
.assistant-thinking-content p { margin: 0; font-size: 13px; font-weight: 750; }
.assistant-thinking-orb { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: #18a88f; box-shadow: 0 0 0 0 rgba(24,168,143,.3); animation: admin-assistant-breathe 1.55s ease-in-out infinite; }
.assistant-thinking-dots { display: inline-flex; gap: 4px; align-items: center; margin-left: 2px; }
.assistant-thinking-dots i { width: 5px; height: 5px; border-radius: 50%; background: #67a99d; animation: admin-assistant-dot 1.2s ease-in-out infinite; }
.assistant-thinking-dots i:nth-child(2) { animation-delay: .16s; }
.assistant-thinking-dots i:nth-child(3) { animation-delay: .32s; }
#sendAdminAssistantMessage:disabled svg { animation: admin-assistant-spin 1s linear infinite; }
@keyframes admin-assistant-breathe { 0%,100% { transform: scale(.82); box-shadow: 0 0 0 0 rgba(24,168,143,.3); opacity: .68; } 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(24,168,143,0); opacity: 1; } }
@keyframes admin-assistant-dot { 0%,60%,100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes admin-assistant-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .assistant-thinking-orb,
  .assistant-thinking-dots i,
  #sendAdminAssistantMessage:disabled svg,
  .draft-action-bar.is-generating::after,
  #generateDraft.is-generating,
  .draft-ai-loader,
  .draft-ai-loader svg,
  .draft-ai-dots i {
    animation: none;
  }
}
.admin-assistant-composer { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: white; }
.admin-assistant-composer textarea { width: 100%; min-height: 92px; padding: 15px 16px; resize: vertical; border: 1px solid #cbdcd7; border-radius: 16px; background: #fbfdfc; font: inherit; line-height: 1.55; }
.admin-assistant-composer textarea:focus { outline: 3px solid rgba(16,143,124,.12); border-color: #15957f; background: white; }
.admin-assistant-composer-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.admin-assistant-composer-actions > span { margin-right: auto; color: var(--muted); font-size: 12px; }
.admin-assistant-folder-button { cursor: pointer; }
.admin-assistant-folder-button input { display: none; }
.admin-assistant-attachments { padding: 12px 20px 0; background: white; }
.assistant-attachment-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #bfe4da; border-radius: 14px; background: #effaf7; }
.assistant-attachment-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #08796d; background: white; }
.assistant-attachment-summary div { display: grid; gap: 2px; min-width: 0; }
.assistant-attachment-summary span, .assistant-attachment-summary small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-assistant-drop-overlay { position: absolute; inset: 0; z-index: 8; display: none; place-content: center; justify-items: center; gap: 8px; color: #08796d; border: 3px dashed #32ac94; background: rgba(234,250,245,.94); text-align: center; }
.admin-assistant-drop-overlay svg { width: 46px; height: 46px; }
.admin-assistant-drop-overlay strong { font-size: 22px; }
.admin-assistant-drop-overlay span { color: var(--muted); }
.admin-assistant-chat.is-dragging .admin-assistant-drop-overlay { display: grid; }
.admin-assistant-side { display: grid; gap: 20px; }
.assistant-safety-card, .assistant-audit-card { padding: 20px; }
.assistant-side-title { display: flex; gap: 12px; align-items: center; }
.assistant-side-title > svg { width: 22px; color: #08796d; }
.assistant-side-title > div { display: grid; gap: 2px; }
.assistant-side-title span { color: var(--muted); font-size: 12px; }
.assistant-safety-card ul { display: grid; gap: 11px; margin: 18px 0 0; padding: 0; list-style: none; }
.assistant-safety-card li { display: flex; gap: 9px; align-items: flex-start; color: #45655f; font-size: 13px; line-height: 1.5; }
.assistant-safety-card li svg { flex: 0 0 auto; width: 16px; color: #1ca186; }
.assistant-audit-list { display: grid; gap: 10px; margin-top: 16px; }
.assistant-audit-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 11px; border-radius: 12px; background: #f5f9f8; }
.assistant-audit-item > svg { width: 18px; color: #15957f; }
.assistant-audit-item > div { display: grid; gap: 2px; }
.assistant-audit-item span, .assistant-audit-item small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.assistant-audit-item.is-failed > svg, .assistant-audit-item.is-blocked > svg { color: #d06448; }
.assistant-audit-item.is-planned > svg { color: #bd7a28; }
.assistant-action-card { margin-top: 13px; padding: 15px; color: var(--ink); border: 1px solid #b9ded5; border-radius: 15px; background: #f7fcfa; }
.assistant-action-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.assistant-action-card-head span { display: flex; gap: 7px; align-items: center; color: #08796d; font-weight: 800; }
.assistant-action-card-head svg { width: 17px; }
.assistant-action-card-head em { padding: 4px 8px; color: #08796d; border-radius: 999px; background: #dff4ee; font-size: 11px; font-style: normal; font-weight: 800; }
.assistant-action-card h4 { margin: 12px 0; font-size: 16px; }
.assistant-action-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.assistant-action-details > div { display: grid; gap: 3px; padding: 9px 10px; border-radius: 10px; background: white; }
.assistant-action-details span { color: var(--muted); font-size: 11px; }
.assistant-action-details strong { overflow-wrap: anywhere; font-size: 13px; }
.assistant-action-warning { display: flex; gap: 7px; align-items: center; margin-top: 11px; color: #8a652c; font-size: 11px; }
.assistant-action-warning svg { width: 15px; }
.assistant-action-buttons { display: flex; justify-content: flex-end; gap: 9px; margin-top: 13px; }
.assistant-upload-progress { position: relative; height: 30px; margin-top: 12px; overflow: hidden; border-radius: 9px; background: #e5efec; }
.assistant-upload-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: #9ce0cf; transition: width .2s ease; }
.assistant-upload-progress strong { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; font-size: 11px; }

@media (max-width: 1050px) {
  .admin-assistant-layout { grid-template-columns: 1fr; }
  .admin-assistant-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .admin-assistant-hero { align-items: flex-start; padding: 20px; }
  .admin-assistant-mark { width: 52px; height: 52px; border-radius: 16px; }
  .admin-assistant-guard { display: none; }
  .admin-assistant-layout, .admin-assistant-side { grid-template-columns: 1fr; }
  .admin-assistant-chat { min-height: 620px; }
  .admin-assistant-chat-head { padding: 14px 15px; }
  .admin-assistant-messages { height: 405px; padding: 16px 12px; }
  .assistant-message { max-width: 96%; }
  .admin-assistant-composer { padding: 13px; }
  .admin-assistant-composer-actions { flex-wrap: wrap; }
  .admin-assistant-composer-actions > span { order: 3; width: 100%; }
  .admin-assistant-composer-actions #sendAdminAssistantMessage { margin-left: auto; }
  .assistant-action-details { grid-template-columns: 1fr; }
  .assistant-attachment-summary { grid-template-columns: auto 1fr; }
  .assistant-attachment-summary .text-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 980px) {
  .creator-history-card {
    grid-template-columns: 1fr;
  }

  .creator-history-visuals,
  .creator-history-visuals img {
    min-height: 170px;
  }
}

@media (max-width: 640px) {
  .creator-history-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px 18px;
  }

  .creator-history-hero > .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .creator-history-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .creator-history-list {
    padding: 14px;
  }

  .creator-history-card-main {
    padding: 18px;
  }

  .creator-history-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-history-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .creator-history-visuals,
  .creator-history-visuals img {
    min-height: 150px;
  }
}
/* Hotspot traffic workspace */
.hotspot-admin-hero {
  overflow: hidden;
  border-color: rgba(224, 115, 45, 0.22);
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 189, 122, 0.2), transparent 26%),
    linear-gradient(135deg, #fff 0%, #fffaf4 100%);
}

.hotspot-admin-heading,
.creator-hotspot-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.hotspot-admin-heading h2,
.creator-hotspot-head h2 {
  margin: 3px 0 5px;
  font-size: clamp(24px, 2.3vw, 34px);
}

.hotspot-admin-heading p,
.creator-hotspot-head p {
  margin: 0;
  color: var(--muted);
}

.hotspot-admin-icon,
.creator-hotspot-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff;
  border-radius: 19px;
  background: linear-gradient(145deg, #ef8645, #d9582b);
  box-shadow: 0 13px 28px rgba(207, 80, 34, 0.2);
}

.hotspot-admin-icon svg,
.creator-hotspot-icon svg { width: 29px; height: 29px; }

.hotspot-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  color: #a94a14;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid #f4ca9a;
  border-radius: 999px;
  background: #fff0d8;
}

.hotspot-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding: 20px;
  border: 1px solid #f1dfcd;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.hotspot-form label {
  display: grid;
  gap: 8px;
  color: #5d675f;
  font-size: 13px;
  font-weight: 750;
}

.hotspot-form input,
.hotspot-form select,
.hotspot-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.hotspot-form-wide { grid-column: span 2; }
.hotspot-save-button { align-self: end; min-height: 48px; }
.hotspot-admin-list { display: grid; gap: 16px; }

.hotspot-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  border-left: 5px solid #e06c32;
}

.hotspot-admin-card.is-preheating { border-left-color: #e2a53d; }
.hotspot-admin-card.is-ended { border-left-color: #b9c3bd; opacity: 0.82; }
.hotspot-admin-card.is-card-collapsed { gap: 0; padding: 0; overflow: hidden; }
.hotspot-admin-card.is-card-collapsed > .hotspot-card-main,
.hotspot-admin-card.is-card-collapsed > .hotspot-card-side,
.hotspot-admin-card.is-card-collapsed > .hotspot-admin-task-section { display: none; }
.hotspot-ended-summary { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; width: 100%; padding: 17px 20px; color: inherit; border: 0; background: #fafcfb; text-align: left; cursor: pointer; }
.hotspot-ended-summary:hover { background: #f4f8f6; }
.hotspot-ended-summary:focus-visible { outline: 3px solid rgba(44,139,119,.2); outline-offset: -3px; }
.hotspot-admin-card.is-card-expanded .hotspot-ended-summary { margin: -24px -24px 0; width: calc(100% + 48px); border-bottom: 1px solid #e1e9e5; }
.hotspot-ended-summary-copy { display: grid; gap: 3px; min-width: 0; }
.hotspot-ended-summary-copy strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.hotspot-ended-summary-copy small { color: var(--muted); font-size: 12px; }
.hotspot-ended-summary-stats { color: #68756f; font-size: 13px; white-space: nowrap; }
.hotspot-ended-summary-stats b { color: #35433d; }
.hotspot-ended-summary-toggle { display: inline-flex; gap: 5px; align-items: center; color: #60736b; font-size: 12px; font-weight: 800; }
.hotspot-ended-summary-toggle svg { width: 17px; height: 17px; transition: transform .2s ease; }
.hotspot-admin-card.is-card-expanded .hotspot-ended-summary-toggle svg { transform: rotate(180deg); }
.hotspot-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hotspot-type-tag { color: #a84716 !important; background: #ffead3 !important; }
.hotspot-period-state { color: #a45a22; font-size: 13px; font-weight: 800; }
.hotspot-card-main h3 { margin: 12px 0 8px; font-size: 23px; }
.hotspot-card-main > p { max-width: 980px; margin: 0; color: var(--muted); line-height: 1.7; }
.hotspot-card-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.hotspot-card-facts span,
.hotspot-card-facts a { display: inline-flex; align-items: center; gap: 6px; color: #5d6963; font-size: 13px; font-weight: 650; }
.hotspot-card-facts svg { width: 16px; height: 16px; color: #d96d32; }

.hotspot-card-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  align-content: center;
  gap: 10px;
  min-width: 275px;
}

.hotspot-task-stat { padding: 12px; text-align: center; border: 1px solid #f1dfcd; border-radius: 14px; background: #fffaf3; }
.hotspot-task-stat strong { display: block; color: #a94a14; font-size: 24px; }
.hotspot-task-stat span { color: var(--muted); font-size: 12px; }
.hotspot-card-side .primary-button,
.hotspot-card-side .hotspot-edit-button,
.hotspot-card-side .hotspot-delete-button { grid-column: 1 / -1; justify-content: center; }
.hotspot-edit-button { border-color: #efcda9; color: #9a4b1d; background: #fffaf4; }
.hotspot-delete-button { color: #a54831; }

.hotspot-edit-dialog {
  width: min(860px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  overflow: auto;
  padding: 0;
  gap: 0;
  border-top: 5px solid #e67836;
}

.hotspot-edit-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #f0e2d5;
  background: linear-gradient(135deg, #fffdf9, #fff5e9);
}

.hotspot-edit-head h2 { margin: 2px 0 3px; font-size: 24px; }
.hotspot-edit-head p { margin: 0; color: var(--muted); font-size: 13px; }
.hotspot-edit-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(145deg, #ef7b3b, #c95420);
  box-shadow: 0 10px 24px rgba(201, 84, 32, 0.2);
}
.hotspot-edit-icon svg { width: 27px; height: 27px; }

.hotspot-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 22px 24px;
}
.hotspot-edit-grid label { display: grid; gap: 8px; color: #59645e; font-size: 13px; font-weight: 750; }
.hotspot-edit-grid label.wide { grid-column: 1 / -1; }
.hotspot-edit-grid input,
.hotspot-edit-grid select,
.hotspot-edit-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfc; }
.hotspot-edit-grid textarea { resize: vertical; line-height: 1.6; }
.hotspot-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 16px 24px 22px;
  border-top: 1px solid #edf1ee;
  background: #fbfcfb;
}

@media (max-width: 680px) {
  .hotspot-edit-head { grid-template-columns: 46px minmax(0, 1fr) auto; padding: 17px; }
  .hotspot-edit-icon { width: 46px; height: 46px; border-radius: 14px; }
  .hotspot-edit-head h2 { font-size: 20px; }
  .hotspot-edit-head p { display: none; }
  .hotspot-edit-grid { grid-template-columns: 1fr; padding: 17px; }
  .hotspot-edit-grid label.wide { grid-column: auto; }
  .hotspot-edit-actions { padding: 14px 17px 18px; }
  .hotspot-edit-actions button { flex: 1; }
}
.hotspot-admin-task-section {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid #eee2d6;
  border-radius: 17px;
  background: #fff;
}
.hotspot-admin-task-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid #eee6df;
  background: #fffaf4;
}
.hotspot-admin-task-head:hover { background: #fff4e7; }
.hotspot-admin-task-head:focus-visible { outline: 3px solid rgba(219, 113, 50, .2); outline-offset: -3px; }
.hotspot-admin-task-head div { display: grid; gap: 2px; }
.hotspot-admin-task-head strong { font-size: 15px; }
.hotspot-admin-task-head div span { color: var(--muted); font-size: 12px; }
.hotspot-admin-task-head > span { display: inline-flex; gap: 9px; align-items: center; color: #a94a14; font-size: 13px; font-weight: 850; }
.hotspot-admin-task-head > span b { white-space: nowrap; }
.hotspot-admin-task-head > span svg { width: 18px; height: 18px; transition: transform .2s ease; }
.hotspot-admin-task-section.is-expanded .hotspot-admin-task-head > span svg { transform: rotate(180deg); }
.hotspot-admin-task-section.is-collapsed .hotspot-admin-task-head { border-bottom: 0; }
.hotspot-admin-task-list { display: grid; }
.hotspot-admin-task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-top: 1px solid #f0ebe6;
}
.hotspot-admin-task-item:first-child { border-top: 0; }
.hotspot-admin-task-item:hover { background: #fffcf8; }
.hotspot-admin-task-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #a94a14;
  font-size: 12px;
  font-weight: 900;
  border-radius: 11px;
  background: #ffead3;
}
.hotspot-admin-task-copy h4 { margin: 7px 0 4px; font-size: 15px; line-height: 1.45; }
.hotspot-admin-task-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.hotspot-task-delete { color: #bd4d32; border-color: #f0d2ca; background: #fff8f6; }
.hotspot-admin-task-empty { padding: 24px; color: var(--muted); text-align: center; }
.hotspot-empty { padding: 46px 24px; text-align: center; color: var(--muted); }
.hotspot-empty > svg { width: 34px; height: 34px; color: #e06c32; }
.hotspot-empty h3 { margin: 12px 0 5px; color: var(--ink); }

.creator-nav-badge {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 7px;
  color: #853d10;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  border-radius: 999px;
  background: #ffd9a8;
}

.creator-hotspot-panel {
  background:
    radial-gradient(circle at 95% 3%, rgba(255, 187, 112, 0.2), transparent 24%),
    #fff;
}

.creator-hotspot-list { display: grid; gap: 18px; }
.creator-hotspot-group { overflow: hidden; border: 1px solid #eadfd3; border-radius: 20px; background: #fffdf9; }
.creator-hotspot-group.is-preheating { background: #fffcf6; }
.creator-hotspot-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid #f0e3d7;
}
.creator-hotspot-group-head h3 { margin: 10px 0 6px; font-size: 22px; }
.creator-hotspot-group-head p { max-width: 1000px; margin: 0; color: var(--muted); line-height: 1.65; }
.creator-hotspot-period { display: flex; align-items: center; gap: 9px; padding: 12px 14px; color: #8f4a20; border-radius: 14px; background: #ffeed9; }
.creator-hotspot-period svg { width: 18px; }
.creator-hotspot-period span { display: flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 800; }
.creator-hotspot-period b { color: #bc8b68; font-size: 11px; }
.creator-hotspot-task-list { display: grid; }
.creator-hotspot-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid #f2e9df;
}
.creator-hotspot-task:first-child { border-top: 0; }
.creator-hotspot-task:hover { background: #fff9f1; }
.creator-hotspot-task.is-retained { background: #fff6e7; }
.creator-hotspot-task.is-preview-hidden { display: none; }
.creator-hotspot-task-list.is-expanded .creator-hotspot-task.is-preview-hidden,
.creator-hotspot-task.is-preview-hidden.is-revealed { display: grid; }
.creator-hotspot-task-number { display: grid; width: 40px; height: 40px; place-items: center; color: #a84d18; font-weight: 900; border-radius: 13px; background: #ffe5c7; }
.creator-hotspot-task-copy h4 { margin: 9px 0 5px; font-size: 17px; line-height: 1.45; }
.creator-hotspot-task-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.creator-hotspot-task-actions { display: flex; gap: 9px; }
.creator-hotspot-task-actions button { white-space: nowrap; }
.creator-hotspot-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  color: #9b4c1e;
  font: inherit;
  font-weight: 800;
  border: 0;
  border-top: 1px solid #f0e2d4;
  background: linear-gradient(180deg, #fffdf9, #fff5e9);
  cursor: pointer;
}
.creator-hotspot-more:hover { background: #ffeedc; }
.creator-hotspot-more svg { width: 18px; height: 18px; transition: transform 160ms ease; }
.creator-hotspot-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.hotspot-upcoming-note { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 25px; color: #9a6a3d; font-weight: 750; }
.hotspot-upcoming-note svg { width: 19px; }

@media (max-width: 1100px) {
  .hotspot-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-hotspot-task { grid-template-columns: auto minmax(0, 1fr); }
  .creator-hotspot-task-actions { grid-column: 2; }
}

@media (max-width: 720px) {
  .hotspot-admin-heading,
  .creator-hotspot-head { grid-template-columns: auto 1fr; }
  .hotspot-score-badge { grid-column: 1 / -1; justify-self: start; }
  .hotspot-form { grid-template-columns: 1fr; padding: 15px; }
  .hotspot-form-wide { grid-column: auto; }
  .hotspot-admin-card { grid-template-columns: 1fr; }
  .hotspot-ended-summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hotspot-ended-summary-stats { display: none; }
  .hotspot-card-side { min-width: 0; }
  .creator-hotspot-group-head { grid-template-columns: 1fr; padding: 18px; }
  .creator-hotspot-period { justify-self: start; }
  .creator-hotspot-task { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .creator-hotspot-task-actions { grid-column: 1 / -1; }
  .creator-hotspot-task-actions button { flex: 1; }
  .hotspot-admin-task-item { grid-template-columns: auto minmax(0, 1fr) auto; padding: 13px; }
}
.knowledge-admin-hero {
  overflow: hidden;
  border-color: #cfe6df;
  background: linear-gradient(135deg, #f8fffc 0%, #eefaf6 58%, #f7fbff 100%);
}

.knowledge-admin-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.knowledge-admin-heading h2 { margin: 2px 0 5px; font-size: 30px; }
.knowledge-admin-heading p { margin: 0; color: var(--muted); }
.knowledge-admin-icon, .knowledge-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, #08796d, #37b99a);
  box-shadow: 0 12px 26px rgba(8, 121, 109, .18);
}
.knowledge-admin-icon svg { width: 28px; height: 28px; }
.knowledge-auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid #b8ded4;
  border-radius: 999px;
  color: #08796d;
  background: rgba(255,255,255,.82);
  font-weight: 700;
}
.knowledge-import-form { padding: 18px; border: 1px solid #d4e8e2; border-radius: 18px; background: rgba(255,255,255,.82); }
.knowledge-import-form label { display: grid; gap: 9px; font-weight: 700; }
.knowledge-url-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.knowledge-url-row input { min-height: 50px; }
.knowledge-import-form small { display: flex; gap: 7px; align-items: center; margin-top: 10px; color: var(--muted); }
.knowledge-preview { border-color: #8fd4c3; box-shadow: 0 18px 44px rgba(8, 121, 109, .10); }
.knowledge-preview-head { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; }
.knowledge-preview-head h3 { margin: 3px 0 8px; font-size: 25px; }
.knowledge-preview-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.knowledge-source-audit { display: grid; gap: 11px; margin-top: 18px; padding: 16px; border: 1px solid #d8e5e1; border-radius: 16px; background: #f8fbfa; }
.knowledge-source-audit.is-deep { border-color: #a9decf; background: #f0fbf7; }
.knowledge-source-audit-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.knowledge-source-audit-head span { display: inline-flex; gap: 7px; align-items: center; color: #137969; font-weight: 850; }
.knowledge-source-audit-head svg { width: 18px; height: 18px; }
.knowledge-source-audit-head b { color: #63736d; font-size: 12px; }
.knowledge-source-audit > p, .knowledge-official-candidates > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.knowledge-source-pages { display: grid; gap: 7px; }
.knowledge-source-pages a { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 9px 11px; color: #335e57; border: 1px solid #dce9e5; border-radius: 10px; background: white; text-decoration: none; }
.knowledge-source-pages a:hover { border-color: #69b9a6; }
.knowledge-source-pages a b { display: grid; place-items: center; width: 22px; height: 22px; color: #08796d; border-radius: 7px; background: #e1f5ef; font-size: 11px; }
.knowledge-source-pages a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-source-pages a svg { width: 15px; height: 15px; }
.knowledge-official-candidates { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid #dce9e5; }
.knowledge-official-candidates strong, .knowledge-official-candidates p { width: 100%; }
.knowledge-fact-source { display: inline-flex; gap: 5px; align-items: center; margin-top: 8px; color: #168473; font-size: 11px; font-weight: 800; text-decoration: none; }
.knowledge-fact-source svg { width: 13px; height: 13px; }
.knowledge-scope { display: flex; gap: 12px; margin: 18px 0 12px; padding: 14px 16px; border-radius: 14px; background: #eef9f5; }
.knowledge-scope strong { flex: 0 0 auto; color: #08796d; }
.knowledge-keywords { display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-keywords span { padding: 6px 10px; border-radius: 999px; color: #176b60; background: #e0f4ee; font-size: 13px; font-weight: 700; }
.knowledge-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.knowledge-preview-grid > div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; }
.knowledge-preview-grid h4 { margin: 0 0 12px; }
.knowledge-preview-grid article { padding: 12px 0; border-top: 1px solid var(--line); }
.knowledge-preview-grid article p { margin: 5px 0; line-height: 1.65; }
.knowledge-preview-grid article small { color: #a15c1b; }
.knowledge-step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.knowledge-step b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #08796d; background: #dff5ee; }
.knowledge-cautions { display: grid; gap: 8px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; color: #8b551f; background: #fff8eb; }
.knowledge-cautions span { display: flex; gap: 8px; align-items: flex-start; }
.knowledge-source-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 15px; color: #08796d; font-weight: 700; }
.knowledge-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.knowledge-category-badge svg { width: 14px; height: 14px; }
.knowledge-category-badge.is-travel { color: #a34d12; background: #fff0dd; }
.knowledge-category-badge.is-transport { color: #1d5d9c; background: #e8f2ff; }
.knowledge-category-badge.is-guide { color: #7350a5; background: #f2eaff; }
.knowledge-preview-head .knowledge-category-badge { margin: 0 0 0 9px; vertical-align: middle; }
.knowledge-filters { padding: 19px 21px; }
.knowledge-filter-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 15px; }
.knowledge-filter-heading h3 { margin: 2px 0 0; font-size: 19px; }
.knowledge-filter-heading > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.knowledge-filter-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.knowledge-filter-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid #dfe8e5;
  border-radius: 14px;
  color: #52635e;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.knowledge-filter-tab:hover { transform: translateY(-1px); border-color: #9ccfc3; }
.knowledge-filter-tab svg { width: 19px; height: 19px; }
.knowledge-filter-tab b { display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 7px; border-radius: 999px; background: #eef3f1; font-size: 12px; }
.knowledge-filter-tab.active { color: #08796d; border-color: #79c5b5; background: #ecf9f5; box-shadow: 0 7px 18px rgba(8,121,109,.09); }
.knowledge-filter-tab.is-travel.active { color: #9b4a12; border-color: #efbd82; background: #fff7ec; }
.knowledge-filter-tab.is-transport.active { color: #17588f; border-color: #9dc6ef; background: #f0f7ff; }
.knowledge-filter-tab.is-guide.active { color: #684394; border-color: #cbb2e9; background: #f8f2ff; }
.knowledge-admin-list { display: grid; gap: 14px; }
.knowledge-card { padding: 22px; }
.knowledge-card-top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.knowledge-card-icon { width: 46px; height: 46px; border-radius: 14px; }
.knowledge-card-icon.is-travel { background: linear-gradient(145deg, #e7782e, #f3aa55); }
.knowledge-card-icon.is-transport { background: linear-gradient(145deg, #236db0, #53a2df); }
.knowledge-card-icon.is-guide { background: linear-gradient(145deg, #7651a5, #a87bd1); }
.knowledge-card-top h3 { margin: 4px 0 7px; font-size: 21px; }
.knowledge-card-top p { margin: 0; color: var(--muted); line-height: 1.6; }
.knowledge-card-meta { display: flex; gap: 8px; color: #08796d; font-size: 12px; font-weight: 700; }
.knowledge-card-meta > span { padding: 4px 8px; border-radius: 999px; background: #e7f6f1; }
.knowledge-card-scope { margin: 14px 0 10px; padding: 11px 13px; border-left: 3px solid #2eaa91; background: #f6fbf9; }
.knowledge-card-stats { display: flex; gap: 18px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
.knowledge-card-stats b { color: var(--ink); }
.knowledge-card-stats a { margin-left: auto; color: #08796d; font-weight: 700; }
.knowledge-detail-button { margin-left: auto; min-height: 38px; padding: 8px 13px; color: #08796d; }
.knowledge-empty { text-align: center; color: var(--muted); }
.knowledge-empty > svg { width: 38px; height: 38px; color: #1b9d86; }
.draft-knowledge-matches { display: flex; gap: 10px; align-items: flex-start; margin: 14px 18px 0; padding: 12px 14px; border: 1px solid #bce4d9; border-radius: 13px; color: #12695f; background: #edf9f5; }
.draft-knowledge-matches svg { flex: 0 0 auto; margin-top: 2px; }
.draft-knowledge-matches div { display: grid; gap: 3px; }
.draft-knowledge-matches span { color: #3e726c; font-size: 13px; }

.knowledge-detail-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(900px, calc(100vh - 36px));
  padding: 0;
  overflow: auto;
  border-top: 4px solid #15957f;
}
.knowledge-detail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #dce9e5;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.knowledge-detail-head h2 { margin: 3px 0 6px; font-size: 25px; }
.knowledge-detail-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.knowledge-detail-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: white; background: linear-gradient(145deg, #08796d, #38b99a); }
#knowledgeDetailBody { display: grid; gap: 16px; padding: 22px 26px; background: #f7faf9; }
.knowledge-detail-scope { display: grid; gap: 6px; padding: 15px 17px; border: 1px solid #bfe1d8; border-radius: 15px; background: #eaf8f4; }
.knowledge-detail-scope span { color: #34766d; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.knowledge-detail-scope strong { font-size: 16px; line-height: 1.55; }
.knowledge-detail-section { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.knowledge-detail-section-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 8px; }
.knowledge-detail-section-head > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #08796d; background: #e3f5f0; }
.knowledge-detail-section-head h3 { margin: 0; font-size: 18px; }
.knowledge-detail-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.knowledge-detail-section-head > b { padding: 6px 10px; border-radius: 999px; color: #08796d; background: #e8f7f3; font-size: 12px; }
.knowledge-detail-facts article { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.knowledge-detail-facts article > span { color: #50a997; font-weight: 800; }
.knowledge-detail-facts h4 { margin: 0 0 5px; }
.knowledge-detail-facts p, .knowledge-detail-steps p { margin: 0; line-height: 1.7; }
.knowledge-detail-facts small { display: flex; gap: 6px; align-items: flex-start; margin-top: 7px; color: #9a5b20; line-height: 1.5; }
.knowledge-detail-facts small svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; }
.knowledge-detail-steps { display: grid; gap: 10px; margin-top: 13px; }
.knowledge-detail-steps article { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 13px; border-radius: 13px; background: #f4faf8; }
.knowledge-detail-steps article > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: #158b78; font-weight: 800; }
.knowledge-detail-cautions { padding: 17px; border: 1px solid #efd3a6; border-radius: 16px; background: #fff8eb; }
.knowledge-detail-cautions h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; color: #9a5b20; font-size: 17px; }
.knowledge-detail-cautions p { margin: 7px 0; color: #77522e; line-height: 1.6; }
.knowledge-detail-keywords { display: grid; gap: 10px; padding: 5px 2px; }
.knowledge-detail-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 16px 26px; border-top: 1px solid #dce9e5; background: rgba(255,255,255,.97); }

@media (max-width: 760px) {
  .knowledge-admin-heading { grid-template-columns: auto 1fr; }
  .knowledge-auto-badge { grid-column: 1 / -1; justify-self: start; }
  .knowledge-url-row, .knowledge-preview-grid { grid-template-columns: 1fr; }
  .knowledge-filter-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-preview-head { display: grid; }
  .knowledge-card-top { grid-template-columns: auto 1fr; }
  .knowledge-card-top > .icon-button { grid-column: 2; justify-self: end; }
  .knowledge-card-stats { flex-wrap: wrap; }
  .knowledge-detail-button { width: 100%; margin-left: 0; }
  .knowledge-detail-head { grid-template-columns: auto 1fr; padding: 18px; }
  .knowledge-detail-head > .icon-button { position: absolute; right: 12px; top: 12px; }
  #knowledgeDetailBody { padding: 14px; }
  .knowledge-detail-actions { padding: 13px 14px; }
}

@media (max-width: 460px) {
  .knowledge-filter-heading { align-items: start; }
  .knowledge-filter-tabs { grid-template-columns: 1fr; }
}
/* Real server stages, not a simulated percentage. */
.app-inline-notice { display: flex; align-items: center; gap: 14px; padding: 12px 18px; margin: 12px; border: 1px solid #c8dedb; border-radius: 12px; background: #f1f8f7; color: #244f49; overflow-wrap: anywhere; }
.app-inline-notice[hidden] { display: none; }
.app-inline-notice button { margin-left: auto; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.draft-generation-progress, .draft-research-feedback { padding: 18px 24px; border-bottom: 1px solid #d8e8e5; background: #f3faf8; overflow-wrap: anywhere; }
.draft-generation-progress { display: grid; gap: 10px; }
.draft-generation-progress.hidden, .draft-research-feedback.hidden { display: none; }
.draft-generation-progress progress { width: 100%; height: 12px; accent-color: #0d8178; }
.draft-generation-progress small, .draft-generation-progress span { color: #526b68; }
.draft-generation-progress summary, .draft-research-feedback summary { cursor: pointer; font-weight: 600; }
.draft-generation-progress li, .draft-research-feedback li { margin: 8px 0; line-height: 1.6; }
.draft-research-feedback a { color: #056b64; text-decoration: underline; }
.draft-review-warning { padding: 12px; margin-bottom: 12px; background: #fff4dd; border-radius: 10px; color: #7c4c00; }
