.sl-template-hub {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.sl-template-head,
.sl-template-recent,
.sl-template-premium,
.sl-template-workspace > * {
  border: 1px solid #dbe5f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 39, 70, 0.06);
}

.sl-template-head,
.sl-template-recent,
.sl-template-premium {
  padding: 18px;
}

.sl-template-eyebrow {
  margin: 0 0 4px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sl-template-head h2,
.sl-template-recent h3,
.sl-template-premium h3,
.sl-template-form h3,
.sl-template-preview h3 {
  margin: 0 0 6px;
  color: #14213d;
}

.sl-template-head p,
.sl-template-recent span,
.sl-template-premium p,
.sl-template-form p,
.sl-template-list span,
.sl-template-status,
.sl-template-empty,
.sl-template-photo-idea {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.sl-template-recent div,
.sl-template-folders,
.sl-template-promotion-menu,
.sl-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sl-template-recent button,
.sl-template-folders button,
.sl-template-promotion-menu button,
.sl-template-list button,
.sl-template-actions button {
  border: 1px solid #d3def0;
  border-radius: 14px;
  background: #fff;
  color: #243a5a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.trBrandSystem .sl-template-recent button,
body.trBrandSystem .sl-template-folders button,
body.trBrandSystem .sl-template-promotion-menu button,
body.trBrandSystem .sl-template-list button {
  background: #fff !important;
  color: #243a5a !important;
}

body.trBrandSystem .sl-template-folders button b,
body.trBrandSystem .sl-template-promotion-menu button b,
body.trBrandSystem .sl-template-list button b {
  color: #14213d !important;
}

body.trBrandSystem .sl-template-folders button span,
body.trBrandSystem .sl-template-promotion-menu button span,
body.trBrandSystem .sl-template-list button span {
  color: #64748b !important;
}

body.trBrandSystem .sl-template-hub .sl-template-folders button:not(.secondary):not(.ghost):not(.trMenuSettingBtn):not(.trDashWelcomeGear):not(.trTopUserGear):not(.slAdminSideItem),
body.trBrandSystem .sl-template-hub .sl-template-promotion-menu button:not(.secondary):not(.ghost):not(.trMenuSettingBtn):not(.trDashWelcomeGear):not(.trTopUserGear):not(.slAdminSideItem),
body.trBrandSystem .sl-template-hub .sl-template-list button:not(.secondary):not(.ghost):not(.trMenuSettingBtn):not(.trDashWelcomeGear):not(.trTopUserGear):not(.slAdminSideItem) {
  background: #fff !important;
  color: #243a5a !important;
}

.sl-template-recent button,
.sl-template-actions button {
  min-height: 44px;
  padding: 0 12px;
}

.sl-template-folders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sl-template-folders button,
.sl-template-promotion-menu button,
.sl-template-list button {
  display: grid;
  gap: 4px;
  padding: 14px;
  position: relative;
  text-align: left;
}

.sl-template-recent button:hover,
.sl-template-folders button:hover,
.sl-template-promotion-menu button:hover,
.sl-template-list button:hover,
.sl-template-actions button:hover {
  border-color: #93c5fd;
  background: #f5f8ff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.10);
  transform: translateY(-1px);
}

.sl-template-recent button:focus-visible,
.sl-template-folders button:focus-visible,
.sl-template-promotion-menu button:focus-visible,
.sl-template-list button:focus-visible,
.sl-template-actions button:focus-visible {
  outline: 3px solid #bfdbfe;
  outline-offset: 2px;
}

.sl-template-folders button.active,
.sl-template-promotion-menu button.active,
.sl-template-list button.active {
  border-color: #2563eb;
  background: #f5f8ff;
  color: #1554d1;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

body.trBrandSystem .sl-template-folders button.active,
body.trBrandSystem .sl-template-promotion-menu button.active,
body.trBrandSystem .sl-template-list button.active {
  background: #f5f8ff !important;
  color: #1554d1 !important;
}

body.trBrandSystem .sl-template-hub .sl-template-folders button.active:not(.secondary):not(.ghost):not(.trMenuSettingBtn):not(.trDashWelcomeGear):not(.trTopUserGear):not(.slAdminSideItem),
body.trBrandSystem .sl-template-hub .sl-template-promotion-menu button.active:not(.secondary):not(.ghost):not(.trMenuSettingBtn):not(.trDashWelcomeGear):not(.trTopUserGear):not(.slAdminSideItem),
body.trBrandSystem .sl-template-hub .sl-template-list button.active:not(.secondary):not(.ghost):not(.trMenuSettingBtn):not(.trDashWelcomeGear):not(.trTopUserGear):not(.slAdminSideItem) {
  background: #f5f8ff !important;
  color: #1554d1 !important;
}

.sl-template-folders button.active::before,
.sl-template-promotion-menu button.active::before,
.sl-template-list button.active::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 999px;
  background: #2563eb;
}

.sl-template-workspace {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.sl-template-list,
.sl-template-form,
.sl-template-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.sl-template-list {
  max-height: min(620px, calc(100vh - 220px));
  overflow: auto;
}

.sl-template-form,
.sl-template-preview {
  max-height: min(720px, calc(100vh - 180px));
  overflow: auto;
}

.sl-template-form label,
.sl-template-result-card label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 800;
}

.sl-template-main-memo small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.sl-template-scenario-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
  border: 1px solid #dbe5f5;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.sl-template-scenario-picker small {
  grid-column: 1 / -1;
  color: #64748b;
  font-weight: 800;
}

.sl-template-scenario-picker button {
  min-height: 40px;
}

.sl-template-selected-scenario {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe5f5;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.sl-template-selected-scenario span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.sl-template-selected-scenario b {
  color: #0f172a;
}

.sl-template-selected-scenario small {
  color: #64748b;
  font-weight: 700;
}

.sl-template-form input,
.sl-template-form select,
.sl-template-form textarea,
.sl-template-result-card input,
.sl-template-result-card textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
}

.sl-template-form input,
.sl-template-form select,
.sl-template-result-card input {
  min-height: 40px;
  padding: 0 11px;
}

.sl-template-form textarea,
.sl-template-result-card textarea {
  min-height: 96px;
  padding: 11px;
  resize: vertical;
}

.sl-template-main-memo textarea {
  min-height: 220px;
}

.sl-template-details {
  border: 1px solid #dbe5f5;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.sl-template-details summary {
  cursor: pointer;
  color: #1554d1;
  font-weight: 900;
}

.sl-template-details div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sl-template-channel-options {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.sl-template-channel-options b {
  color: #334155;
}

.sl-template-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: #334155;
}

.sl-template-check input {
  width: auto;
}

.sl-template-form select[multiple] {
  min-height: 132px;
  padding: 8px;
}

.sl-template-result-card {
  display: grid;
  gap: 10px;
}

.sl-template-result-card h4 {
  margin: 0;
  color: #14213d;
}

.sl-template-single-article {
  display: grid;
  gap: 16px;
}

.sl-template-single-article .sl-template-output-title {
  font-size: 20px;
  font-weight: 750;
}

.sl-template-rewrite-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #dbe3ee;
}

.sl-template-rewrite-tools b {
  flex: 0 0 100%;
  font-size: 14px;
}

.sl-template-rewrite-tools button,
.sl-template-actions .primary {
  min-height: 44px;
}

.sl-template-actions .primary {
  color: #fff;
  border-color: #1769e0;
  background: #1769e0;
}

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

.sl-template-channel-card,
.sl-template-auto-summary {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe5f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.sl-template-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sl-template-channel-head b,
.sl-template-auto-summary b {
  color: #1554d1;
}

.sl-template-channel-head small,
.sl-template-auto-summary small,
.sl-template-auto-summary span {
  color: #64748b;
  font-weight: 800;
}

.sl-template-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sl-template-result-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 900;
}

.sl-template-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.sl-template-photo-idea {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.sl-template-photo-idea b {
  display: block;
  color: #17243d;
}

.sl-writing-mode,
.sl-quick-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #dbe5f5;
  background: #fff;
}

.sl-writing-mode button,
.sl-quick-groups button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #bfd0e7;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 850;
}

.sl-writing-mode button.active,
.sl-quick-groups button.active {
  border-color: #1769e0;
  background: #1769e0;
  color: #fff;
}

.sl-ai-center-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #dbe5f5;
  background: #fff;
}
.sl-ai-center-sections button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
  color: #263247;
  font-weight: 800;
}
.sl-ai-center-sections button.active { border-color: #1769e0; background: #eef5ff; color: #0f5fce; }
.sl-academy-profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: calc(100% - 32px);
  min-width: 0;
  min-height: 68px;
  margin: 22px 16px 14px;
  padding: 12px 16px;
  border: 1px solid #dbe5f5;
  border-radius: 8px;
  box-sizing: border-box;
  background: #f8fbff;
}
.sl-academy-profile-toggle-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
.sl-academy-profile-toggle-copy strong { color: #1e293b; font-size: 15px; font-weight: 850; }
.sl-academy-profile-toggle-copy span { color: #64748b; font-size: 12px; }
.sl-switch-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
.sl-switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.sl-switch-track {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #94a3b8;
  transition: background-color .18s ease;
}
.sl-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.24);
  transition: transform .18s ease;
}
.sl-switch-control input:checked + .sl-switch-track { background: #1769e0; }
.sl-switch-control input:checked + .sl-switch-track .sl-switch-thumb { transform: translateX(22px); }
.sl-switch-control input:focus-visible + .sl-switch-track { outline: 3px solid rgba(23,105,224,.24); outline-offset: 2px; }
.sl-switch-state { min-width: 28px; color: #334155; font-size: 12px; font-weight: 900; text-align: right; }
.sl-phase3-panel { margin: 14px; padding: 22px; border: 1px solid #dfe5ef; border-radius: 8px; background: #fff; }
.sl-phase3-panel header { margin-bottom: 18px; }
.sl-phase3-panel h2 { margin: 4px 0 6px; }
.sl-phase3-panel p { color: #627089; }
.sl-phase3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sl-phase3-grid label { display: grid; gap: 7px; min-width: 0; }
.sl-phase3-grid label > span { color: #4b5870; font-size: 13px; font-weight: 800; }
.sl-phase3-grid input,
.sl-phase3-grid select,
.sl-phase3-grid textarea,
.sl-student-context-search { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ccd5e2; border-radius: 6px; box-sizing: border-box; background: #fff; }
.sl-phase3-grid textarea { min-height: 92px; resize: vertical; }
.sl-phase3-options { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.sl-phase3-options label,
.sl-phase3-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-weight: 800; }
.sl-student-context-search { margin-bottom: 14px; }
.sl-student-context-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 480px; overflow: auto; }
.sl-student-context-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid #dfe5ef; border-radius: 8px; background: #fff; }
.sl-student-context-card > span { display: grid; gap: 4px; min-width: 0; }
.sl-student-context-card small { color: #647188; overflow-wrap: anywhere; }
.sl-phase3-empty { grid-column: 1 / -1; padding: 28px; text-align: center; }
.sl-education-recommendations { padding: 14px 16px; border-bottom: 1px solid #dbe5f5; background: #f8fbff; }
.sl-education-recommendations header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sl-education-recommendations h3,
.sl-education-recommendations p { margin: 0; }
.sl-education-recommendations > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sl-education-recommendations article { display: grid; gap: 7px; padding: 12px; border: 1px solid #dbe5f5; border-radius: 8px; background: #fff; }
.sl-education-recommendations span { color: #647188; font-size: 13px; }
.sl-education-recommendations button { min-height: 44px; }

.sl-quick-workspace {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(300px, 1.15fr) minmax(320px, 1.3fr);
  gap: 14px;
  padding: 14px;
  min-width: 0;
}

.sl-quick-form,
.sl-quick-fields,
.sl-favorite-style,
.sl-favorite-style-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.sl-quick-form,
.sl-favorite-style {
  padding: 14px;
  border: 1px solid #dbe5f5;
  border-radius: 12px;
  background: #fff;
}

.sl-quick-fields,
.sl-favorite-style-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sl-memo-fields {
  grid-template-columns: 1fr;
}

.sl-memo-core textarea {
  min-height: 240px;
  line-height: 1.65;
}

.sl-quick-form label,
.sl-favorite-style label {
  min-width: 0;
}

.sl-quick-form input,
.sl-quick-form select,
.sl-quick-form textarea,
.sl-favorite-style input,
.sl-favorite-style select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
}

.sl-quick-form textarea {
  resize: vertical;
}

.sl-review-fields > label:has(textarea),
.sl-review-keywords {
  grid-column: 1 / -1;
}
.sl-review-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dbe5f5;
  border-radius: 8px;
}
.sl-review-keywords legend { padding: 0 4px; color: #475569; font-size: 13px; font-weight: 800; }
.sl-review-keywords label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.sl-quick-form .sl-review-keywords input { width: 16px; min-height: 16px; margin: 0; padding: 0; }
.sl-review-keywords label:has(input:checked) { border-color: #1769e0; background: #eef5ff; color: #0f5fce; }

.sl-favorite-style-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sl-favorite-style-head h3 {
  margin: 0;
  font-size: 16px;
}

.sl-favorite-style-head select {
  width: min(220px, 60%);
}

.sl-favorite-closing {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .sl-template-workspace {
    grid-template-columns: 1fr;
  }

  .sl-template-list,
  .sl-template-form,
  .sl-template-preview {
    max-height: none;
    overflow: visible;
  }

  .sl-template-details div {
    grid-template-columns: 1fr;
  }

  .sl-template-scenario-picker {
    grid-template-columns: 1fr;
  }

  .sl-template-result-grid {
    grid-template-columns: 1fr;
  }

  .sl-quick-workspace {
    grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr);
  }

  .sl-quick-workspace .sl-template-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .sl-template-folders {
    grid-template-columns: 1fr;
  }

  .sl-template-head,
  .sl-template-recent,
  .sl-template-premium,
  .sl-template-list,
  .sl-template-form,
  .sl-template-preview {
    padding: 12px;
  }

  .sl-template-actions button {
    width: 100%;
  }

  .sl-writing-mode,
  .sl-quick-groups {
    padding: 10px;
  }

  .sl-writing-mode button,
  .sl-quick-groups button {
    flex: 1 1 calc(50% - 8px);
  }

  .sl-ai-center-sections,
  .sl-phase3-grid,
  .sl-student-context-list,
  .sl-education-recommendations > div { grid-template-columns: 1fr; }
  .sl-ai-center-sections { padding: 10px; gap: 8px; }
  .sl-ai-center-sections button { min-height: 44px; }
  .sl-academy-profile-toggle-row {
    gap: 8px;
    width: calc(100% - 20px);
    min-height: 64px;
    margin: 20px 10px 12px;
    padding: 10px 12px;
  }
  .sl-academy-profile-toggle-copy { gap: 3px; }
  .sl-academy-profile-toggle-copy strong { font-size: 13px; }
  .sl-academy-profile-toggle-copy span { font-size: 10px; }
  .sl-switch-control { gap: 5px; }
  .sl-switch-track { width: 44px; height: 26px; }
  .sl-switch-thumb { width: 18px; height: 18px; }
  .sl-switch-control input:checked + .sl-switch-track .sl-switch-thumb { transform: translateX(18px); }
  .sl-switch-state { min-width: 24px; font-size: 11px; }
  .sl-phase3-panel { margin: 10px; padding: 16px; }

  .sl-quick-workspace,
  .sl-quick-fields,
  .sl-favorite-style-grid {
    grid-template-columns: 1fr;
  }

  .sl-quick-workspace {
    padding: 10px;
  }

  .sl-quick-workspace .sl-template-preview,
  .sl-favorite-closing {
    grid-column: auto;
  }

  .sl-favorite-style-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sl-favorite-style-head select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sl-academy-profile-toggle-row { gap: 6px; padding-inline: 8px; }
  .sl-academy-profile-toggle-copy strong { font-size: 12px; }
  .sl-academy-profile-toggle-copy span { font-size: 8px; }
  .sl-switch-track { width: 40px; }
  .sl-switch-control input:checked + .sl-switch-track .sl-switch-thumb { transform: translateX(14px); }
  .sl-switch-state { min-width: 20px; font-size: 10px; }
}
.sl-review-variation-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f7f9fc;
}
.sl-review-variation-controls label { min-width: 0; }
.sl-review-variation-controls label span { display: block; margin-bottom: 6px; font-weight: 700; }
.sl-review-variation-controls select { width: 100%; min-height: 44px; }
.sl-review-variation-controls p { grid-column: 1 / -1; margin: 0; color: #58667a; font-size: 13px; }

.sl-ai-assistant-shell {
  margin: 20px;
  padding: 24px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}
.sl-ai-assistant-head { margin-bottom: 24px; }
.sl-ai-assistant-head h2 { margin: 4px 0 8px; font-size: 28px; }
.sl-ai-assistant-head p:last-child { margin: 0; color: #5d6978; }
.sl-ai-assistant-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.sl-ai-assistant-section-head h3 { margin: 0; font-size: 20px; }
.sl-ai-assistant-section-head span { color: #687586; font-size: 13px; }
.sl-ai-assistant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sl-ai-operation-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce3eb;
  border-top: 4px solid #78909c;
  border-radius: 8px;
  background: #fff;
}
.sl-ai-operation-card.priority-high { border-top-color: #c73e45; }
.sl-ai-operation-card.priority-medium { border-top-color: #d18b13; }
.sl-ai-operation-card.priority-low { border-top-color: #258566; }
.sl-ai-assistant-card-head { display: flex; align-items: center; gap: 8px; }
.sl-ai-operation-card h4 { margin: 0; font-size: 17px; }
.sl-ai-priority { padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.sl-ai-priority.high { color: #9d252d; background: #fff0f1; }
.sl-ai-priority.medium { color: #855600; background: #fff7df; }
.sl-ai-priority.low { color: #126348; background: #eaf8f2; }
.sl-ai-assistant-count { display: flex; align-items: baseline; gap: 4px; font-size: 34px; }
.sl-ai-assistant-count small { color: #657284; font-size: 14px; }
.sl-ai-operation-card > p { overflow: hidden; margin: 0; color: #657284; text-overflow: ellipsis; white-space: nowrap; }
.sl-ai-assistant-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.sl-ai-assistant-actions button,
.sl-ai-assistant-actions a { display: grid; min-width: 0; min-height: 40px; place-items: center; padding: 9px 8px; border: 1px solid #b8c5d3; border-radius: 6px; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.sl-ai-assistant-actions button { color: #fff; border-color: #1769e0; background: #1769e0; }
.sl-ai-assistant-actions a { color: #233044; background: #fff; }
.sl-ai-assistant-result { display: grid; gap: 14px; margin-top: 20px; padding: 20px; border: 1px solid #cdd8e4; border-radius: 8px; background: #f7f9fc; }
.sl-ai-assistant-result h3 { margin: 4px 0 0; }
.sl-ai-assistant-result textarea { width: 100%; resize: vertical; }

@media (max-width: 1199px) {
  .sl-ai-assistant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .sl-ai-assistant-shell { margin: 10px; padding: 16px; }
  .sl-ai-assistant-head h2 { font-size: 23px; }
  .sl-ai-assistant-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sl-ai-assistant-grid { grid-template-columns: 1fr; }
  .sl-ai-operation-card { min-height: 0; }
  .sl-ai-assistant-actions button,
  .sl-ai-assistant-actions a { min-height: 44px; }
}
@media (max-width: 520px) {
  .sl-review-variation-controls { grid-template-columns: 1fr; }
  .sl-review-variation-controls p { grid-column: 1; }
}
