:root {
  color-scheme: light;
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-muted: #f8faf9;
  --text: #18221f;
  --muted: #68736f;
  --border: #d8dfdc;
  --accent: #167a55;
  --accent-hover: #106443;
  --accent-soft: #e5f4ed;
  --info: #226f8c;
  --info-soft: #e7f2f6;
  --warning: #a86213;
  --warning-soft: #fff1da;
  --danger: #b83b3b;
  --danger-soft: #fdeaea;
  --charcoal: #202a27;
  --shadow: 0 12px 32px rgba(25, 42, 36, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
textarea,
select,
fieldset {
  font: inherit;
  letter-spacing: 0;
}

button,
a.button-link {
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--text);
  background: var(--surface);
  outline: 0;
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--text);
  background: var(--surface);
  outline: 0;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 122, 85, 0.13);
}

button svg,
.button-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke-width: 2;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.icon-button:hover {
  border-color: #9daaa5;
  background: var(--surface-muted);
}

.small-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

label {
  color: #394440;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.primary-button {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.primary-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.secondary-button {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.secondary-button:hover {
  border-color: #9daaa5;
  background: var(--surface-muted);
}

.danger-button {
  color: var(--danger);
  background: var(--surface);
  border-color: #e2b8b8;
}

.danger-button:hover {
  background: var(--danger-soft);
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #edf2f0;
}

.login-shell {
  width: min(420px, 100%);
}

.login-panel {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 18px 0 24px;
  font-size: 24px;
  line-height: 1.25;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 13px;
}

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

.stack-form button {
  margin-top: 8px;
}

.form-error {
  margin: 2px 0 0;
  color: var(--danger);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #ffffff;
  background: var(--charcoal);
  border-bottom: 1px solid #37443f;
}

.topbar-inner {
  display: flex;
  width: min(1240px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-row,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-row h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.topbar .secondary-button {
  color: #ffffff;
  background: transparent;
  border-color: #56645f;
}

.topbar .secondary-button:hover {
  background: #303d38;
}

.workspace {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 48px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.section-band {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.section-band:last-child {
  border-bottom: 0;
}

.section-heading {
  display: flex;
  min-height: 42px;
  margin-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 1px 0 0;
  font-size: 19px;
  line-height: 1.3;
}

.section-heading h3,
.compose-history-heading h3 {
  margin: 1px 0 0;
  font-size: 17px;
  line-height: 1.3;
}

.compact-heading {
  min-height: 38px;
  margin-bottom: 16px;
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.account-summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.account-summary strong,
.account-summary span {
  overflow-wrap: anywhere;
}

.login-flow,
.inline-form {
  width: 100%;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(240px, 520px) auto;
  align-items: end;
  gap: 12px;
}

.compose-create-form {
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 240px) auto;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.align-end {
  align-self: end;
}

.export-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 18px 22px;
}

.span-2 {
  grid-column: 1 / -1;
}

.mode-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mode-field legend {
  margin-bottom: 7px;
  color: #394440;
  font-weight: 600;
}

.max-users-field {
  width: min(260px, 100%);
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
}

.segmented-option {
  position: relative;
  min-width: 0;
}

.segmented-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-option span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.segmented-option input:checked + span {
  color: #ffffff;
  background: var(--accent);
}

.segmented-option input:focus-visible + span {
  outline: 3px solid rgba(22, 122, 85, 0.2);
  outline-offset: 1px;
}

.workspace-tabs {
  display: flex;
  min-height: 54px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.workspace-tab,
.sticker-mode-tab {
  display: inline-flex;
  min-width: 190px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.workspace-tab:hover,
.sticker-mode-tab:hover {
  color: var(--text);
  background: #eef3f1;
}

.workspace-tab.active,
.sticker-mode-tab.active {
  color: var(--accent);
  background: var(--surface);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.sticker-mode-tabs {
  display: flex;
  min-height: 50px;
  border-bottom: 1px solid var(--border);
  background: #f0f5f8;
}

.sticker-mode-tab {
  min-height: 50px;
}

.workspace-panel > .section-band:last-child,
.sticker-mode-panel > .section-band:last-child {
  border-bottom: 0;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.status-detail {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sticker-clone-form,
.compose-collect-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.inspect-result {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 13px 14px;
  border-left: 3px solid var(--info);
  background: var(--info-soft);
}

.inspect-result span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.inspect-result strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.sticker-jobs-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sticker-jobs-table th,
.sticker-jobs-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.sticker-jobs-table th {
  color: #4b5753;
  background: var(--surface-muted);
  font-size: 12px;
}

.sticker-jobs-table tr:last-child td {
  border-bottom: 0;
}

.sticker-jobs-table th:nth-child(1) { width: 25%; }
.sticker-jobs-table th:nth-child(2) { width: 11%; }
.sticker-jobs-table th:nth-child(3) { width: 12%; }
.sticker-jobs-table th:nth-child(4) { width: 19%; }
.sticker-jobs-table th:nth-child(5) { width: 18%; }
.sticker-jobs-table th:nth-child(6) { width: 15%; }

.compose-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  min-height: 560px;
}

.compose-main {
  min-width: 0;
}

.compose-history {
  min-width: 0;
  border-left: 1px solid var(--border);
  background: var(--surface-muted);
}

.compose-history-heading {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.collections-list {
  display: grid;
}

.collection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.collection-row.active {
  box-shadow: inset 3px 0 0 var(--accent);
  background: var(--accent-soft);
}

.collection-open {
  min-width: 0;
  min-height: 66px;
  border: 0;
  border-radius: 0;
  padding: 11px 13px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.collection-open strong,
.collection-open span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-open span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.collection-delete {
  align-self: center;
  color: var(--danger);
  background: transparent;
}

.collection-summary {
  display: grid;
  gap: 12px;
}

.collection-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collection-title-row strong {
  min-width: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.collection-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
}

.collection-metric {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--border);
  background: var(--surface-muted);
}

.collection-metric:last-child {
  border-right: 0;
}

.collection-metric span,
.collection-metric strong {
  display: block;
}

.collection-metric span {
  color: var(--muted);
  font-size: 11px;
}

.collection-metric strong {
  margin-top: 1px;
  font-size: 17px;
}

.channel-choices,
.channel-bindings,
.source-messages,
.compose-items,
.compose-results {
  display: grid;
  gap: 9px;
}

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

.channel-choice {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.channel-choice.active {
  border-color: #93c9b4;
  background: var(--accent-soft);
}

.channel-choice.disabled {
  opacity: 0.66;
}

.channel-choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.channel-choice strong,
.channel-choice small,
.binding-identity strong,
.binding-identity small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-choice small,
.binding-identity small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.channel-bindings {
  margin-top: 12px;
}

.channel-binding {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.7fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.channel-binding:first-child {
  border-top: 0;
}

.binding-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.channel-save-actions {
  margin-top: 14px;
  gap: 8px;
}

.source-messages {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.source-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--info);
  background: var(--info-soft);
}

.source-message strong,
.source-message span,
.source-message pre {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-message span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.source-message pre {
  max-height: 180px;
  margin: 8px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  font: 12px/1.5 Consolas, monospace;
}

.library-heading {
  align-items: center;
}

.compact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.material-filter {
  margin-bottom: 14px;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
}

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

.filter-button.active {
  color: #ffffff;
  background: var(--accent);
}

.compose-group {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-width: 0;
  align-items: stretch;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.compose-group.selected {
  border-color: #93c9b4;
  background: #f5fbf8;
}

.compose-group.dragging {
  opacity: 0.55;
}

.compose-drag-handle {
  display: grid;
  width: 34px;
  min-height: 54px;
  place-items: center;
  color: var(--muted);
  cursor: grab;
}

.compose-group-body {
  min-width: 0;
}

.compose-group-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.compose-group-head input,
.compose-member input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.compose-group-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emoji-sequence {
  display: flex;
  min-width: 0;
  min-height: 44px;
  margin-top: 7px;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
}

.emoji-glyph {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
  font-size: 24px;
  line-height: 1;
  overflow: hidden;
}

.compose-members {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.compose-member {
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 0;
  border-top: 1px solid #e7ecea;
}

.compose-member:first-child {
  border-top: 0;
}

.compose-member .emoji-glyph {
  width: 32px;
  min-width: 32px;
  height: 32px;
  font-size: 19px;
}

.compose-member-meta {
  min-width: 0;
}

.compose-member-meta strong,
.compose-member-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compose-member-meta small {
  color: var(--muted);
  font-size: 11px;
}

.compose-order-actions,
.member-order-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.compose-order-actions .icon-button,
.member-order-actions .icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.compose-results {
  margin-top: 14px;
}

.compose-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.compose-result strong,
.compose-result span {
  display: block;
  overflow-wrap: anywhere;
}

.compose-result span {
  color: var(--muted);
  font-size: 12px;
}

.result-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 0;
}

.check-option {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.check-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

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

.status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.success {
  color: #0d6846;
  background: #dff3ea;
}

.status-badge.info {
  color: #145c76;
  background: var(--info-soft);
}

.status-badge.warning {
  color: #7e4808;
  background: var(--warning-soft);
}

.status-badge.danger {
  color: #9b2e2e;
  background: var(--danger-soft);
}

.status-badge.neutral {
  color: #4e5a56;
  background: #e8edeb;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.jobs-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
  table-layout: fixed;
}

.jobs-table th,
.jobs-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.jobs-table th {
  color: #4b5753;
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 700;
}

.jobs-table tr:last-child td {
  border-bottom: 0;
}

.jobs-table th:nth-child(1) { width: 22%; }
.jobs-table th:nth-child(2) { width: 8%; }
.jobs-table th:nth-child(3) { width: 10%; }
.jobs-table th:nth-child(4) { width: 19%; }
.jobs-table th:nth-child(5) { width: 12%; }
.jobs-table th:nth-child(6) { width: 15%; }
.jobs-table th:nth-child(7) { width: 14%; }

.cell-title {
  display: block;
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-subtitle {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  width: 100%;
  height: 6px;
  margin-top: 6px;
  overflow: hidden;
  background: #e7ecea;
}

.progress-value {
  width: 0;
  height: 100%;
  background: var(--info);
}

.actions-cell {
  text-align: right !important;
}

.action-group {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.table-action {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.empty-state {
  padding: 34px !important;
  color: var(--muted);
  text-align: center !important;
}

.jobs-pagination {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.pagination-summary {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pagination-actions {
  display: flex;
  gap: 8px;
}

.pagination-actions button {
  min-width: 78px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100% - 44px));
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.toast.error {
  border-left-color: var(--danger);
}

@media (max-width: 760px) {
  .topbar-inner,
  .workspace {
    width: min(100% - 20px, 1240px);
  }

  .topbar-inner {
    min-height: 72px;
  }

  .brand-row h1 {
    max-width: 190px;
    font-size: 14px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .topbar-actions .status-badge {
    display: none;
  }

  .workspace {
    margin-top: 12px;
  }

  .section-band {
    padding: 18px 15px;
  }

  .inline-form,
  .export-form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .inline-form button,
  .form-actions button {
    width: 100%;
  }

  .section-heading {
    align-items: center;
  }

  .option-row {
    display: grid;
  }

  .segmented-control {
    width: 100%;
  }

  .login-panel {
    padding: 28px 22px;
  }

  .jobs-pagination {
    align-items: stretch;
    flex-direction: column;
  }

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

  .pagination-actions button {
    width: 100%;
  }

  .workspace-tab,
  .sticker-mode-tab {
    min-width: 50%;
    padding: 8px 10px;
  }

  .workspace-tab span,
  .sticker-mode-tab span {
    white-space: nowrap;
  }

  .sticker-clone-form,
  .compose-collect-form,
  .channel-choices,
  .inspect-result {
    grid-template-columns: 1fr;
  }

  .compose-workspace {
    grid-template-columns: 1fr;
  }

  .compose-history {
    order: -1;
    border-bottom: 1px solid var(--border);
    border-left: 0;
  }

  .collections-list {
    max-height: 224px;
    overflow-y: auto;
  }

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

  .collection-metric:nth-child(2) {
    border-right: 0;
  }

  .collection-metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .channel-binding,
  .source-message,
  .compose-result {
    grid-template-columns: 1fr;
  }

  .channel-binding .action-group {
    justify-content: flex-start;
  }

  .channel-save-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-save-actions button {
    width: 100%;
  }

  .library-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-actions {
    width: 100%;
  }

  .compact-actions .small-button {
    flex: 1;
  }

  .material-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .compose-group {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .compose-drag-handle {
    width: 28px;
  }

  .compose-order-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 7px;
  }

  .compose-member {
    grid-template-columns: 18px 32px minmax(0, 1fr);
  }

  .member-order-actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }
}
