.auth-mode .sidebar,
.auth-mode header,
.auth-mode footer {
  display: none;
}
.auth-mode .shell {
  margin-left: 0;
}
.auth-mode main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 75% 10%, #eae3fc 0, transparent 45%), #f6f7f9;
}
.auth-card {
  width: min(460px, 100%);
  background: white;
  border: 1px solid #e8e3f0;
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 20px 65px #24203b0b;
}
.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
  font-size: 23px;
}
.auth-card h1 {
  margin-top: 13px;
}
.auth-card .subtitle {
  line-height: 1.7;
}
.auth-card label {
  font-size: 14px;
  margin-top: 21px;
}
.auth-card form > .button {
  width: 100%;
  margin-top: 22px;
}
.auth-card > p.muted {
  font-size: 12px;
  margin-top: 23px;
}
.form-error {
  color: #ac4155;
  font-size: 13px;
  line-height: 1.6;
}
.form-error:empty {
  display: none;
}
.header-right .button {
  padding: 7px 12px;
}
.workspace-card {
  margin-bottom: 24px;
}
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.campaign-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0 20px;
}
.campaign-figures span,
.campaign-figures small {
  display: block;
  font-size: 12px;
  color: #8c8797;
}
.campaign-figures strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 9px 0;
}
progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: #efebf7;
}
progress::-webkit-progress-bar {
  background: #efebf7;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #9f80e1;
  border-radius: 5px;
}
.filter-card {
  margin-bottom: 24px;
}
.filter-card form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.filter-card label {
  margin: 0;
  flex: 1;
  max-width: 240px;
  font-size: 12px;
}
.filter-card input {
  padding: 9px 12px;
}
.filter-card .button {
  padding: 11px 16px;
}
.csv-card {
  margin-top: 24px;
}
.campaign-ids {
  max-height: 160px;
  overflow: auto;
  overflow-wrap: anywhere;
}
code {
  font-size: 11px;
  background: #f5f2fa;
  padding: 3px 5px;
  border-radius: 4px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #87818f;
}
.summary-row strong {
  font-size: 23px;
  color: #5f4b80;
}
.summary-row:last-of-type {
  margin-bottom: 18px;
}
.table-detail {
  display: block;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
  font-weight: 400;
  color: #98919d;
  font-size: 11px;
}
.table-wrap td {
  max-width: 380px;
  overflow-wrap: anywhere;
}
.render-original-link {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.original-form {
  max-width: 780px;
}
.original-form h2 {
  font-size: 19px;
}
.original-form .button {
  margin-top: 24px;
}
.remote-job {
  margin-top: 20px;
}
.remote-filmstrip {
  display: flex;
  gap: 18px;
  overflow: auto;
  padding: 20px 0;
}
.remote-filmstrip a {
  min-width: 180px;
  max-width: 230px;
}
.remote-filmstrip img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.remote-filmstrip span {
  display: block;
  font-size: 12px;
  color: var(--purple);
  margin-top: 10px;
}
.caption {
  white-space: pre-line;
  color: #8c8396;
  font-size: 13px;
  line-height: 1.7;
}
.tool-access {
  margin-bottom: 24px;
}
.sidebar .settings {
  padding: 9px 12px;
}
.sidebar-bottom .plan {
  display: none;
}
.profile {
  margin-top: 12px;
}
.studio-controls input:disabled {
  background: #f2f2f5;
}
.connection-grid .integration-actions .button {
  margin-top: 0;
}
.module-grid .module {
  min-height: 145px;
}
.metric p.muted {
  font-size: 11px;
}
.empty-projects {
  min-height: 220px;
}
.local-drafts {
  margin-bottom: 24px;
}
@media (max-width: 800px) {
  .auth-mode main {
    padding: 20px;
  }
  .auth-card {
    padding: 28px;
  }
  .campaign-grid {
    grid-template-columns: 1fr;
  }
  .filter-card form {
    flex-wrap: wrap;
    gap: 12px;
  }
  .filter-card label {
    max-width: none;
    min-width: 120px;
  }
  .filter-card .button {
    width: 100%;
  }
  .sidebar-bottom {
    display: flex;
    gap: 3px;
    padding: 0;
    justify-content: flex-start;
  }
  .sidebar-bottom .profile {
    display: none;
  }
  .sidebar-bottom .settings {
    font-size: 11px;
    padding: 7px 10px;
    margin-top: 7px;
  }
  .sidebar-bottom .settings .icon {
    width: 14px;
  }
  .sidebar-bottom .plan {
    display: none;
  }
  .campaign-figures {
    gap: 10px;
  }
  .campaign-figures strong {
    font-size: 23px;
  }
  .remote-filmstrip a {
    min-width: 150px;
  }
  .header-right {
    gap: 8px;
  }
  .workspace {
    max-width: 340px;
  }
  .table-detail {
    max-width: 210px;
  }
}
.account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.account-link strong {
  display: block;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
 .native-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.native-history { margin-top: 22px; }
.native-history .card-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.native-history p { line-height: 1.7; }
#modal-form { max-height: 84vh; overflow-y: auto; padding-right: 8px; }

#dialog:has(.flow-form) { width: min(920px, calc(100vw - 32px)); max-width: none; }
.flow-form { max-height: 85vh; overflow: auto; padding-right: 12px; }
.flow-nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.flow-node.card { margin: 0; background: #fcfbff; padding: 22px; }
.flow-node h3 { margin-top: 0; }
.flow-quick,.flow-branch,.flow-element,.flow-button { border-left: 2px solid #d9caee; padding-left: 12px; margin: 18px 0; }
.flow-check { display: flex; align-items: center; gap: 8px; }
.flow-check input { width: auto; }
.pairing-code {display:block;width:min(320px,100%);height:auto;margin:24px auto;border:1px solid var(--line);border-radius:8px;}
