:root {
  color-scheme: light;
  font-family:
    Inter, "Noto Sans Hebrew", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #132033;
  --muted: #64748b;
  --line: #dbe4ef;
  --line-soft: #e8eef6;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --teal: #0f9f8f;
  --amber: #f59e0b;
  --rose: #e11d48;
  --green: #16a34a;
  --sidebar: #111827;
  --sidebar-soft: #1f2937;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(225deg, rgba(15, 159, 143, 0.1), transparent 28%),
    var(--bg);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
}

.brand-block h1 {
  margin: 0 0 12px;
  font-size: 46px;
  letter-spacing: 0;
}

.brand-block p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.auth-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tab.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

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

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 14px;
}

.field-help {
  color: #607086;
  font-size: 12px;
}

.field-status {
  min-height: 18px;
  color: #607086;
  font-size: 12px;
}

.field-status.configured {
  color: #176b37;
}

.field-status.missing {
  color: #8a5b00;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccd7e4;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  background: #ffffff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

aside {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.16), transparent 44%),
    var(--sidebar);
  color: white;
  padding: 22px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

main {
  grid-column: 2;
  grid-row: 1;
}

.brand-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
}

.brand-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.brand-link strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0;
}

.brand-link small {
  color: #93a4ba;
  font-size: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #0f9f8f 72%);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

nav,
.side-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.side-nav a,
.nav-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #dce4ef;
  text-decoration: none;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.side-nav a:hover,
.side-nav a.active,
.nav-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.side-nav a.active {
  box-shadow: inset -3px 0 0 #38bdf8;
}

.nav-action {
  width: 100%;
  justify-content: flex-start;
  color: #fecaca;
}

main {
  padding: 30px 34px 42px;
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 4px 0;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #cfd7e3;
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
  font: inherit;
  transition: transform 120ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #cfd7e3;
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
  font: inherit;
}

button:hover,
.button-link:hover {
  border-color: #8da0ba;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

button:active,
.button-link:active {
  transform: translateY(1px);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: wait;
  opacity: 0.65;
}

.primary {
  background: linear-gradient(135deg, var(--primary), #0f9f8f);
  border-color: transparent;
  color: #ffffff;
  margin-top: 4px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-dark), #0d8d80);
}

.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-color: #cbd5e1;
  background: #ffffff;
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

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

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

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.chart-card,
.workflow-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.chart-card header,
.workflow-card header {
  margin-bottom: 14px;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 132px;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(to top, rgba(100, 116, 139, 0.12) 1px, transparent 1px) 0 0 / 100% 25%,
    #f8fafc;
}

.bar-chart span {
  flex: 1;
  min-width: 22px;
  height: var(--value);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #2563eb, #0f9f8f);
}

.bar-chart span:nth-child(2) {
  background: linear-gradient(180deg, #f59e0b, #e11d48);
}

.bar-chart span:nth-child(3) {
  background: linear-gradient(180deg, #16a34a, #2563eb);
}

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

.workflow-steps span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.site-dashboard {
  display: grid;
  gap: 18px;
}

#site-automation-panel { order: 10; }
#site-urgency-panel { order: 20; }
#site-content-ideas-panel { order: 30; }
#site-connections-panel { order: 40; }
#site-settings-panel { order: 50; }
#site-dashboard-metrics { order: 60; }
#site-keywords-panel { order: 70; }
#site-pages-panel { order: 80; }
#site-tasks-panel { order: 90; }
#site-changes-panel { order: 100; }

.automation-panel {
  padding: 0;
}

.settings-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.settings-panel > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.settings-panel > summary::-webkit-details-marker,
.form-category > summary::-webkit-details-marker {
  display: none;
}

.settings-panel > summary::before,
.form-category > summary::before {
  content: "▾";
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 140ms ease;
}

.settings-panel[open] > summary::before,
.form-category[open] > summary::before {
  transform: rotate(0deg);
}

.settings-panel > summary span,
.form-category > summary {
  font-weight: 700;
}

.settings-panel > summary small {
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.settings-panel-body {
  border-top: 1px solid #e8eef5;
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.content-panel > .list {
  border-top: 1px solid #e8eef5;
  padding: 14px 16px 16px;
}

.panel-actions-row {
  padding-bottom: 0;
}

.content-control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.content-action-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.content-action-step {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.content-action-step-header {
  display: grid;
  gap: 3px;
}

.content-action-step-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.content-action-step h4 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  letter-spacing: 0;
}

.step-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.content-action-step button {
  width: 100%;
  min-width: 0;
}

.compact-step {
  align-content: center;
}

#content-ideas-status {
  margin: 0 16px;
}

.content-action-result {
  margin: 0 16px 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: #f8fafc;
}

.content-action-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.content-action-result-header strong {
  color: #0f172a;
}

.content-action-result-header span,
.result-facts,
.result-idea span {
  color: var(--muted);
  font-size: 13px;
}

.result-facts {
  margin: 0;
  padding-inline-start: 20px;
  line-height: 1.55;
}

.result-ideas {
  display: grid;
  gap: 8px;
}

.result-idea {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e4ebf3;
  border-radius: 8px;
  background: #ffffff;
}

.result-idea strong {
  color: #172033;
  font-size: 14px;
}

.urgency-panel .settings-panel-body {
  background: var(--surface-soft);
}

.settings-panel > .settings-form {
  border: 0;
  border-top: 1px solid #e8eef5;
  border-radius: 0;
  box-shadow: none;
}

.panel-form {
  padding: 16px;
}

.settings-stack {
  display: grid;
  gap: 12px;
}

.form-category {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-soft);
  overflow: hidden;
}

.form-category > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.form-category > .form-grid {
  border-top: 1px solid #edf1f6;
  padding: 12px;
}

.automation-panel .settings-panel-body {
  display: grid;
  gap: 14px;
}

.automation-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.automation-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.automation-group h4 {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
  letter-spacing: 0;
}

.automation-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.automation-action-row strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 14px;
}

.automation-action-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.automation-action-row button {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.featured-action {
  border-color: rgba(37, 99, 235, 0.28);
  background: #f8fbff;
}

.compact-status {
  margin: 0;
  min-height: 22px;
}

article,
.row {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
}

article span {
  color: var(--muted);
  font-size: 14px;
}

article strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.metric-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.metric-card::after {
  content: "";
  position: absolute;
  inset-inline-start: -34px;
  bottom: -44px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  opacity: 0.16;
}

.metric-sites::after {
  background: #2563eb;
}

.metric-approvals::after {
  background: #f59e0b;
}

.metric-tasks::after {
  background: #0f9f8f;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--primary);
}

.metric-icon svg {
  width: 19px;
  height: 19px;
}

.metric-approvals .metric-icon {
  background: #fff7ed;
  color: var(--amber);
}

.metric-tasks .metric-icon {
  background: #ecfdf5;
  color: var(--teal);
}

.sparkline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 5px;
  height: 34px;
  margin-top: 12px;
}

.sparkline i {
  width: 100%;
  max-width: 34px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
}

.sparkline i:nth-child(1) { height: 38%; }
.sparkline i:nth-child(2) { height: 62%; }
.sparkline i:nth-child(3) { height: 48%; }
.sparkline i:nth-child(4) { height: 82%; }
.sparkline i:nth-child(5) { height: 68%; }

section header {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

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

.logs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.logs-panel,
.activity-panel {
  display: grid;
  gap: 12px;
}

.activity-panel h4 {
  margin: 0;
}

.logs-toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.service-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.service-tab {
  min-height: 34px;
  padding: 0 12px;
  border-color: transparent;
  background: transparent;
}

.service-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.tail-control {
  width: 120px;
  gap: 4px;
  font-size: 12px;
}

.tail-control select {
  min-height: 34px;
}

.service-log-output {
  direction: ltr;
  text-align: left;
  margin: 0;
  min-height: 480px;
  max-height: 68vh;
  overflow: auto;
  border: 1px solid #172033;
  border-radius: 8px;
  background: #101725;
  color: #d8e2f1;
  padding: 14px;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.settings-form {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.compact-form {
  margin-bottom: 14px;
}

.form-section-title {
  font-weight: 700;
}

.progress-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

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

.progress-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfe;
}

.progress-item strong {
  font-size: 13px;
}

.progress-item pre {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #536174;
}

.progress-status {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  background: #edf2f7;
  color: #334155;
}

.progress-status.running {
  background: #eef4ff;
  color: #2451a6;
}

.progress-status.done {
  background: #effaf3;
  color: #176b37;
}

.progress-status.warning {
  background: #fff8e5;
  color: #8a5b00;
}

.progress-status.error {
  background: #fff1f1;
  color: #9f1d1d;
}

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

.wide-field {
  grid-column: 1 / -1;
}

.toggle-field {
  display: flex;
  gap: 9px;
  align-items: center;
}

.toggle-field input {
  width: auto;
  min-height: 0;
}

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

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.row {
  display: grid;
  gap: 8px;
}

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

.row-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.row-title {
  font-weight: 700;
}

.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.compact-meta {
  gap: 6px;
  align-items: center;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.compact-url {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #edf2f7;
  color: #334155;
}

.link-badge {
  max-width: 260px;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-badge {
  gap: 5px;
}

.metric-badge strong {
  color: var(--ink);
  font-size: 12px;
}

.mini-button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.danger-button {
  border-color: #fecdd3;
  color: #be123c;
  background: #fff1f2;
}

.danger-button:hover {
  border-color: #fb7185;
  background: #ffe4e6;
}

.task-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.task-row[open] {
  align-items: start;
}

.message {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.message.error {
  background: #fff1f1;
  border: 1px solid #f5b5b5;
  color: #9f1d1d;
}

.message.success {
  background: #effaf3;
  border: 1px solid #b7e1c3;
  color: #176b37;
}

.message.info {
  background: #eef4ff;
  border: 1px solid #bfd3f6;
  color: #2451a6;
}

@media (max-width: 900px) {
  .auth-panel {
    grid-template-columns: 1fr;
  }

  .brand-block h1 {
    font-size: 36px;
  }

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

  aside {
    position: static;
    grid-column: 1;
    height: auto;
    padding: 18px;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  main {
    grid-column: 1;
  }

  nav,
  .side-nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .side-nav a,
  .nav-action {
    text-align: center;
    padding: 10px 6px;
    justify-content: center;
  }

  main {
    padding: 18px;
  }

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

  .dashboard-header {
    flex-direction: column;
  }

  .automation-panel header,
  .compact-row,
  .task-row summary {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .settings-panel > summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .settings-panel > summary small {
    grid-column: 2;
    text-align: right;
  }

  .automation-panel .settings-panel-body {
    align-items: stretch;
  }

  .metrics,
  .grid,
  .dashboard-grid,
  .insight-grid,
  .form-grid,
  .automation-actions,
  .content-control-grid,
  .content-action-steps,
  .logs-layout {
    grid-template-columns: 1fr;
  }

  .automation-action-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .wide-field {
    grid-column: auto;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .progress-item {
    grid-template-columns: 1fr;
  }
}
