/* Page compositions. Feature CSS owns geometry; these use the common primitives. */
.automation-shell .auto-pill.is-danger {
  color:var(--ui-danger);
  background:var(--ui-danger-bg);
}
.automation-shell .auto-pill.is-pending {
  color:var(--ui-brand);
  background:var(--ui-brand-soft);
}
.quick-download-row input:focus-visible + .quick-download-switch {
  outline:3px solid var(--ui-brand);
  outline-offset:3px;
}
.publish-shell .publish-history-empty {
  min-width:0;
  white-space:normal
}
.publish-history-table-wrap:has(.publish-history-empty) .publish-history-table-head {
  display:none
}
.automation-shell .auto-price small {
  color:var(--ui-muted)
}
:root[lang=en] .job-list:empty:before {
  content:'No activity yet. Start with a media link.'
}
:root[lang=en] .target-status-list:empty:before {
  content:'After publishing, each destination status appears here.'
}
.home-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:32px;
  align-items:center;
  padding:36px;
  background:var(--ui-surface);
  border:1px solid var(--ui-line);
  border-radius:20px;
  position:relative;
  overflow:hidden
}
.home-hero:before {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--ui-brand-soft),transparent 20%),transparent 65%)
}
.home-hero-copy,.home-hero-art {
  position:relative;
  min-width:0
}
.home-hero-kicker {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--ui-brand);
  font-size:11px;
  font-weight:700;
  margin-bottom:14px
}
.home-hero-kicker:before {
  content:'';
  width:6px;
  height:6px;
  background:var(--ui-brand);
  border-radius:50%
}
.home-hero h1 {
  font-size:clamp(24px,2.6vw,36px);
  line-height:1.65;
  margin-bottom:12px;
  max-width:660px
}
.home-hero-copy>p {
  color:var(--ui-muted);
  font-size:13px;
  margin-bottom:24px
}
.home-url-form {
  margin-top:20px
}
.home-url-row.downloader-url-row {
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:12px;
  padding:6px;
  background:var(--ui-surface);
  border:1px solid var(--ui-line);
  box-shadow:0 3px 12px #18243b06
}
.home-url-row .downloader-link-icon {
  margin-inline-start:10px;
  color:var(--ui-muted)
}
.home-url-row #url-input {
  flex:1;
  min-width:0;
  border:0;
  outline-offset:-2px;
  box-shadow:none;
  background:transparent;
  font-size:12px;
  padding-inline:4px
}
.home-url-row .button {
  min-height:44px;
  white-space:nowrap
}
.home-hero-art {
  display:grid;
  place-items:center;
  min-height:215px
}
.ui-media-orbit {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:16px;
  align-items:center;
  width:100%;
  direction:ltr
}
.ui-orbit-column {
  display:grid;
  gap:18px
}
.ui-orbit-node {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px;
  border-radius:12px;
  background:var(--ui-surface);
  border:1px solid var(--ui-line);
  font:500 10px/1.5 var(--ui-font);
  color:var(--ui-muted);
  box-shadow:var(--ui-shadow)
}
.ui-orbit-node img {
  width:25px;
  height:25px;
  padding:3px;
  border-radius:7px;
  background:#fff
}
.ui-orbit-core {
  width:76px;
  height:76px;
  display:grid;
  place-items:center;
  border:1px solid var(--ui-line);
  border-radius:22px;
  background:var(--ui-surface);
  box-shadow:0 0 0 12px var(--ui-brand-soft),var(--ui-shadow)
}
.ui-orbit-core img {
  width:58px;
  height:58px
}
.ui-art-caption {
  position:absolute;
  bottom:-4px;
  left:0;
  right:0;
  text-align:center;
  font:500 10px/1.5 Arial,sans-serif;
  color:var(--ui-muted);
  letter-spacing:2px
}
.home-task-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.home-task-card {
  display:flex;
  align-items:flex-start;
  gap:15px;
  padding:22px;
  border:1px solid var(--ui-line);
  background:var(--ui-surface);
  border-radius:14px;
  color:var(--ui-text);
  text-decoration:none;
  transition:border-color var(--ui-fast),transform var(--ui-fast)
}
.home-task-card:hover {
  border-color:var(--ui-brand);
  transform:translateY(-2px);
  text-decoration:none
}
.home-task-icon {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:none;
  border-radius:12px;
  background:var(--ui-brand-soft);
  color:var(--ui-brand)
}
.home-task-card.task-publish .home-task-icon {
  background:var(--ui-success-bg);
  color:var(--ui-success)
}
.home-task-card.task-transfer .home-task-icon {
  background:var(--ui-warning-bg);
  color:var(--ui-warning)
}
.home-task-copy {
  display:grid;
  gap:6px
}
.home-task-copy strong {
  font-size:15px
}
.home-task-copy small {
  color:var(--ui-muted);
  font-size:11px;
  line-height:1.9
}
.home-task-link {
  color:var(--ui-brand);
  font-size:11px;
  margin-top:6px
}
.home-trial-banner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:15px 22px;
  border:1px solid color-mix(in srgb,var(--ui-brand),transparent 75%);
  border-radius:12px;
  background:var(--ui-brand-soft)
}
.home-trial-copy strong {
  font-size:13px;
  color:var(--ui-text)
}
.home-trial-copy p {
  font-size:11px;
  color:var(--ui-muted);
  margin:4px 0 0
}
.home-trial-actions {
  display:flex;
  gap:14px;
  align-items:center;
  flex:none
}
.home-trial-actions form {
  margin:0
}
.home-trial-actions .button {
  font-size:11px;
  min-height:36px;
  padding:8px 12px
}
.home-trial-details {
  font-size:11px
}
.ui-onboarding {
  border:1px solid var(--ui-line);
  border-radius:14px;
  padding:18px 22px;
  background:var(--ui-surface);
  display:grid;
  grid-template-columns:minmax(140px,.7fr) minmax(0,2fr) 32px;
  gap:24px;
  align-items:center
}
.ui-onboarding h2 {
  font-size:14px;
  margin:0 0 3px
}
.ui-onboarding p {
  font-size:11px;
  color:var(--ui-muted);
  margin:0
}
.ui-onboarding-links {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px
}
.ui-onboarding-links a {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--ui-text)
}
.ui-onboarding-links span {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border:1px solid var(--ui-line);
  border-radius:8px;
  color:var(--ui-brand);
  font-size:11px;
  flex:none
}
.home-section-heading,.downloader-card-heading>div,.transfer-card-heading>div {
  display:flex;
  gap:10px;
  align-items:center
}
.home-section-heading {
  justify-content:space-between;
  align-items:start;
  margin-bottom:18px
}
.home-section-heading h2 {
  font-size:16px;
  margin-bottom:4px
}
.home-section-heading p {
  font-size:11px;
  color:var(--ui-muted);
  margin:0
}
.home-platform-panel .home-platform-grid {
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:10px
}
.home-platform-grid .platform-logo-link {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 8px;
  min-height:78px;
  border:1px solid transparent;
  border-radius:10px;
  color:var(--ui-muted);
  background:var(--ui-soft);
  font-size:10px;
  text-decoration:none
}
.home-platform-grid .platform-logo-link:hover {
  border-color:var(--ui-brand);
  color:var(--ui-brand)
}
.home-platform-grid .platform-logo-link img {
  width:27px;
  height:27px;
  padding:3px;
  border-radius:7px;
  background:#fff;
  object-fit:contain
}
.home-platform-grid:not(.is-expanded) .platform-logo-link:nth-child(n+9) {
  display:none
}
.platforms-toggle {
  display:flex;
  margin:14px auto 0;
  font-size:11px;
  color:var(--ui-muted);
  min-height:34px;
  padding-block:6px;
  border-color:var(--ui-line)
}
.home-shell .downloader-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px
}
.home-shell .downloader-options-panel,.home-shell .downloader-preview-panel,.home-shell .downloader-history-panel {
  padding:24px;
  border-radius:16px
}
.downloader-card-heading {
  margin-bottom:18px
}
.downloader-card-heading h2 {
  margin:0;
  font-size:16px
}
.downloader-card-icon {
  width:20px;
  height:20px;
  color:var(--ui-muted)
}
.media-card {
  overflow:hidden;
  min-width:0
}
.media-card>img,.media-card img.media-thumbnail {
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  border-radius:12px
}
.media-card h2,.media-card h3 {
  margin-block:12px 5px
}
.media-card .meta {
  color:var(--ui-muted);
  font-size:12px
}
.preview-placeholder {
  padding:40px;
  text-align:center;
  background:var(--ui-soft);
  color:var(--ui-muted);
  border-radius:12px
}
.format-list {
  display:grid;
  gap:8px;
  margin-top:14px
}
.format-list label {
  border:1px solid var(--ui-line);
  border-radius:10px;
  padding:12px;
  cursor:pointer;
  background:var(--ui-surface)
}
.format-list label:has(input:checked) {
  border-color:var(--ui-brand);
  background:var(--ui-brand-soft)
}
.format-list input {
  margin:0
}
.gallery-picker {
  display:grid;
  gap:14px
}
.gallery-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.gallery-toolbar-actions {
  display:flex;
  gap:12px
}
.gallery-slide-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px
}
.gallery-slide-card {
  display:grid;
  gap:8px;
  min-width:0
}
.gallery-slide-card img {
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:8px
}
.gallery-text-button {
  background:none;
  border:0;
  color:var(--ui-brand);
  font-size:12px
}
.download-mode-tabs,.download-quality-chips,.history-filters {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.download-mode-tabs button,.download-quality-chips button,.history-filters button {
  min-height:36px;
  padding:7px 12px;
  border:1px solid var(--ui-line);
  background:var(--ui-surface);
  color:var(--ui-muted);
  border-radius:9px;
  font-size:12px
}
.download-mode-tabs button.is-selected,.download-quality-chips button.is-selected,.history-filters button.is-selected {
  background:var(--ui-brand-soft);
  border-color:var(--ui-brand);
  color:var(--ui-brand)
}
.history-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px
}
.history-search {
  max-width:330px;
  flex:1
}
.downloads-panel-actions {
  margin-bottom:20px
}
.job-list {
  display:grid;
  gap:12px;
  min-width:0
}
.job-list:empty:before {
  content:'هنوز عملیاتی ثبت نشده است. با یک لینک رسانه شروع کنید.';
  display:block;
  padding:28px;
  text-align:center;
  font-size:13px;
  color:var(--ui-muted);
  border:1px dashed var(--ui-line);
  border-radius:10px
}
.job-list article {
  min-width:0
}
.job-list h3 {
  margin:0;
  font-size:12px
}
.job-list p {
  font-size:11px;
  color:var(--ui-muted);
  margin:4px 0
}
.job-list button,.job-list a {
  font:600 11px/1.5 var(--ui-font);
  padding:8px 10px;
  min-height:34px;
  border:1px solid var(--ui-line);
  border-radius:9px;
  background:var(--ui-surface);
  color:var(--ui-brand)
}
.job-list progress {
  width:100%;
  height:6px;
  accent-color:var(--ui-brand)
}
.downloader-history-table-head,.downloader-history-list>article {
  font-size:12px
}
.downloader-history-table-head {
  font-size:11px;
  min-height:42px
}
.downloader-history-list>article {
  padding-block:15px
}
.ui-next-action {
  display:inline-flex;
  gap:6px;
  align-items:center;
  font-size:12px;
  color:var(--ui-brand);
  margin-top:10px
}
.publish-shell .publisher-grid {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(290px,.75fr);
  gap:24px;
  align-items:start
}
.publisher-main,.publisher-side {
  display:grid;
  gap:20px;
  min-width:0
}
.publish-shell .publisher-side {
  position:sticky;
  top:24px
}
.publish-shell .publish-composer-card,.publish-shell .publish-side-card,.publish-shell .publish-history-panel {
  padding:24px;
  border-radius:16px
}
.publish-shell .composer-section {
  margin-top:24px;
  padding-top:24px
}
.composer-section-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  align-items:start
}
.publish-shell .composer-section-head h3 {
  font-size:14px
}
.publish-shell .composer-section-head p {
  font-size:11px;
  color:var(--ui-muted);
  margin:4px 0 0
}
.publish-shell .field-block>span {
  font-size:12px;
  font-weight:600
}
.publish-shell .field-block>input,.publish-shell .field-block>textarea {
  background:var(--ui-surface)
}
.publish-shell #publish-text {
  min-height:180px
}
.publish-shell .selection-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.publish-shell .selection-card {
  min-height:78px;
  padding:12px;
  background:var(--ui-surface)
}
.publish-shell .selection-copy strong {
  font-size:12px
}
.publish-shell .selection-copy small,.publish-shell .connection-inline {
  font-size:10px
}
.publish-shell .selection-grid-media {
  max-height:300px;
  overflow:auto
}
.publish-mode-choice input {
  position:absolute;
  opacity:0
}
.publish-mode-choice>span {
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ui-line);
  border-radius:9px;
  padding:10px
}
.publish-mode-choice:has(input:focus-visible) {
  outline:2px solid var(--ui-brand);
  outline-offset:3px
}
.publish-shell .publish-mode-choice span {
  font-size:12px;
  min-height:44px
}
.publish-upload-zone {
  border:1px dashed var(--ui-line);
  background:var(--ui-soft);
  border-radius:12px
}
.composer-actions {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  border-top:1px solid var(--ui-line);
  padding-top:20px;
  margin-top:24px
}
.composer-actions .button {
  min-width:150px
}
.social-preview {
  border:1px solid var(--ui-line);
  background:var(--ui-soft);
  border-radius:12px;
  overflow:hidden
}
.preview-header {
  display:flex;
  gap:10px;
  align-items:center;
  padding:16px
}
.preview-header>div {
  display:grid
}
.preview-header small {
  color:var(--ui-muted);
  font-size:11px
}
.preview-media {
  min-height:150px;
  display:grid;
  place-items:center;
  background:var(--ui-bg);
  color:var(--ui-muted);
  font-size:12px
}
.social-preview #preview-text {
  padding:16px;
  white-space:pre-wrap;
  font-size:13px;
  line-height:2;
  margin:0
}
.target-status-list {
  display:grid;
  gap:10px
}
.target-status-list:empty:before {
  content:'پس از انتشار، وضعیت هر مقصد را اینجا می‌بینید.';
  font-size:12px;
  color:var(--ui-muted);
  line-height:2
}
.publish-shell .publish-card-heading h2,.publish-shell .publish-history-heading h2 {
  font-size:16px
}
.transfer-shell .transfer-resolver,.transfer-shell .transfer-preview-panel,.transfer-shell .transfer-config-panel,.transfer-shell .transfer-status-panel {
  padding:24px;
  border-radius:16px
}
.transfer-shell .transfer-workspace {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px
}
.transfer-shell .transfer-url-row {
  background:var(--ui-surface);
  border:1px solid var(--ui-line);
  border-radius:12px;
  padding:6px
}
.transfer-shell .transfer-url-form>label {
  font-size:12px
}
.transfer-shell .transfer-resolver-hint {
  font-size:12px;
  margin-top:14px
}
.transfer-shell .transfer-destinations {
  gap:10px
}
.transfer-shell .transfer-destination {
  padding:14px;
  background:var(--ui-surface);
  min-height:80px
}
.transfer-shell .transfer-destination-copy strong {
  font-size:12px
}
.transfer-shell .transfer-destination-copy small {
  font-size:10px
}
.transfer-mode-tabs {
  display:flex;
  gap:8px
}
.transfer-mode-button {
  border:1px solid var(--ui-line);
  background:var(--ui-surface);
  border-radius:9px;
  padding:9px 16px;
  color:var(--ui-muted)
}
.transfer-mode-button.is-selected {
  border-color:var(--ui-brand);
  color:var(--ui-brand);
  background:var(--ui-brand-soft)
}
.transfer-switch {
  display:none
}
.transfer-source-toggle input {
  position:static;
  opacity:1;
  pointer-events:auto
}
.transfer-source-toggle {
  display:flex;
  gap:10px;
  align-items:center;
  margin-block:14px
}
.transfer-source-toggle small {
  display:block;
  color:var(--ui-muted)
}
.transfer-shell .transfer-card-heading h2,.transfer-shell .transfer-status-heading h2 {
  font-size:16px
}
.transfer-shell .transfer-confirm-button {
  min-height:46px
}
.transfer-shell .transfer-media-preview img {
  max-height:400px;
  object-fit:contain
}
.ui-connection-intro {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:18px 22px;
  border:1px solid var(--ui-line);
  border-radius:14px;
  background:var(--ui-surface)
}
.ui-connection-intro strong {
  font-size:13px
}
.ui-connection-intro p {
  margin:4px 0 0;
  font-size:12px;
  color:var(--ui-muted)
}
.connected-platform-tabs {
  position:relative;
  top:auto;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:6px;
  border-radius:12px;
  padding:6px;
  box-shadow:none;
  background:var(--ui-surface);
  margin:0
}
.connected-platform-tab {
  min-width:0;
  font-size:12px;
  font-weight:600;
  padding:10px 8px;
  min-height:46px;
  border-radius:9px
}
.connected-platform-tab.is-active {
  background:var(--ui-brand-soft);
  color:var(--ui-brand);
  border-color:transparent
}
.connected-platform-tab img {
  width:24px;
  height:24px
}
.connected-account-panel,.connected-destinations-panel {
  padding:24px;
  border-radius:16px
}
.connected-account-heading {
  margin-bottom:22px
}
.connected-account-identity h2 {
  font-size:20px
}
.connected-account-identity p {
  font-size:12px
}
.connected-destination-row {
  padding:16px;
  background:var(--ui-surface);
  border-radius:12px
}
.connected-destination-row strong {
  font-size:13px
}
.connected-account-qr svg,.connected-account-qr img,.telegram-qr-code {
  max-width:230px
}
.connected-destination-list {
  display:grid;
  gap:10px
}
.connected-destination-row .button {
  font-size:12px
}
.connected-destination-filters button {
  border-radius:9px
}
.channels-page-shell .service-bots-panel,.channels-page-shell .channels-list-panel {
  padding:24px;
  border-radius:16px
}
.channel-stats,.team-stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.channel-stat-card,.team-stat-card {
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px
}
.channel-stat-card>div,.team-stat-card>div {
  display:grid;
  gap:4px
}
.channel-stat-card strong,.team-stat-card strong {
  font-size:21px
}
.channel-stat-card span,.team-stat-card span {
  font-size:12px;
  color:var(--ui-muted)
}
.channels-page-shell .service-bot-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}
.channels-page-shell .service-bot-card {
  padding:16px;
  background:var(--ui-soft);
  border-color:var(--ui-line);
  border-radius:12px
}
.channels-page-shell .service-bots-help {
  font-size:12px;
  color:var(--ui-muted);
  line-height:2.1
}
.channels-page-shell .channels-card {
  background:var(--ui-surface)
}
.channels-page-shell .channels-list-heading h2 {
  font-size:16px
}
.channel-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px
}
.channels-page-shell .channels-dialog {
  padding:24px
}
.team-management-grid,.settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.team-inline-form {
  display:flex;
  align-items:end;
  gap:12px
}
.team-inline-form label {
  flex:1
}
.team-card,.settings-panel {
  padding:24px
}
.team-card-heading,.settings-card-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:16px
}
.team-card-heading>div,.settings-card-heading>div {
  display:flex;
  align-items:center;
  gap:10px
}
.team-card-heading h2,.settings-card-heading h2 {
  font-size:16px;
  margin:0
}
.team-card-icon,.settings-card-icon,.channel-stat-icon .ui-icon,.team-stat-icon .ui-icon {
  width:20px;
  height:20px;
  color:var(--ui-brand)
}
.team-member {
  border-bottom:1px solid var(--ui-line);
  padding-block:14px;
  display:flex;
  align-items:center;
  gap:12px
}
.team-workspace-summary {
  padding:16px;
  background:var(--ui-soft);
  border-radius:10px;
  margin-bottom:18px
}
.team-card-hint,.settings-card-hint {
  font-size:11px;
  color:var(--ui-muted)
}
.settings-account-card {
  display:flex;
  align-items:center;
  justify-content:space-between
}
.settings-account-main {
  display:flex;
  align-items:center;
  gap:18px
}
.settings-account-copy {
  display:grid;
  gap:3px
}
.settings-profile-avatar {
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:16px;
  background:var(--ui-brand-soft);
  color:var(--ui-brand);
  font-size:24px
}
.settings-account-copy span,.settings-account-copy small {
  font-size:12px;
  color:var(--ui-muted)
}
.settings-preference-options,.settings-language-options {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px
}
.settings-language-options {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.preference-choice {
  border:1px solid var(--ui-line);
  background:var(--ui-surface);
  border-radius:12px;
  padding:14px;
  display:flex;
  flex-direction:column;
  align-items:start;
  gap:14px;
  text-align:start;
  min-height:100px
}
.preference-choice strong {
  display:block;
  font-size:12px
}
.preference-choice small {
  display:block;
  font-size:10px;
  color:var(--ui-muted);
  margin-top:3px
}
.preference-choice.is-selected {
  border-color:var(--ui-brand);
  background:var(--ui-brand-soft)
}
.settings-card-description,.settings-session-copy p {
  font-size:12px;
  color:var(--ui-muted);
  line-height:2
}
.settings-session-card {
  grid-column:1/-1
}
.settings-preference-icon {
  font-size:22px;
  color:var(--ui-brand)
}
.billing-shell .billing-stats {
  grid-template-columns:1fr
}
.billing-shell .billing-heading h1,.automation-shell .auto-heading h1 {
  font-size:28px
}
.billing-shell .billing-heading p {
  font-size:12px
}
.billing-shell .billing-card {
  background:var(--ui-surface);
  padding:24px
}
.billing-shell .billing-number {
  font-size:30px
}
.billing-shell .billing-stats>.billing-card {
  background:linear-gradient(125deg,var(--ui-surface),var(--ui-brand-soft));
  border-color:var(--ui-line)
}
.billing-shell .billing-stats>.billing-card p {
  font-size:12px;
  color:var(--ui-muted);
  max-width:600px
}
.billing-shell .billing-table {
  font-size:12px;
  text-align:start
}
.billing-shell .billing-table th,.billing-shell .billing-table td {
  text-align:start;
  padding:14px 12px
}
.billing-table-wrap {
  overflow:auto
}
.billing-form label {
  font-size:12px
}
.billing-form p {
  gap:8px
}
.billing-form button {
  width:auto
}
.billing-search {
  padding:18px;
  border:1px solid var(--ui-line);
  border-radius:12px;
  background:var(--ui-surface)
}
.automation-shell .panel {
  border-color:var(--ui-line);
  border-radius:16px;
  padding:24px
}
.automation-shell .auto-route {
  position:relative
}
.automation-shell .auto-flow {
  padding:20px 0;
  border-block:1px solid var(--ui-line);
  margin:22px 0
}
.automation-shell .auto-route footer {
  padding-top:4px
}
.automation-shell .auto-pill {
  border-radius:7px;
  background:var(--ui-success-bg);
  color:var(--ui-success)
}
.automation-shell .auto-pill.is-muted {
  background:var(--ui-soft);
  color:var(--ui-muted)
}
.automation-shell .auto-tip {
  background:var(--ui-brand-soft);
  color:var(--ui-muted);
  border:1px solid var(--ui-line)
}
.automation-shell .auto-sticky {
  position:relative;
  bottom:auto;
  box-shadow:none;
  border-color:var(--ui-line);
  background:var(--ui-surface);
  padding:16px
}
.automation-shell .auto-plan {
  display:flex;
  flex-direction:column;
  gap:12px
}
.automation-shell .auto-plan h2 {
  font-size:19px
}
.automation-shell .auto-plan ul {
  margin:0 0 8px;
  flex:1;
  font-size:13px;
  color:var(--ui-muted);
  line-height:2.6
}
.automation-shell .auto-plan form {
  margin-top:auto
}
/* A single available tariff should not become a mostly empty full-width card. */
@media(min-width:1100px) {
  .billing-shell .auto-plan-grid:has(> .auto-plan:only-child) .auto-plan {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);
    grid-template-areas:"title purchase" "price purchase" "features purchase";
    column-gap:clamp(22px,4vw,64px);
    row-gap:8px;
    align-items:start
  }
  .billing-shell .auto-plan-grid:has(> .auto-plan:only-child) .auto-plan h2 {
    grid-area:title;
    margin:0
  }
  .billing-shell .auto-plan-grid:has(> .auto-plan:only-child) .auto-plan .auto-price {
    grid-area:price
  }
  .billing-shell .auto-plan-grid:has(> .auto-plan:only-child) .auto-plan ul {
    grid-area:features;
    margin:0
  }
  .billing-shell .auto-plan-grid:has(> .auto-plan:only-child) .auto-plan form {
    grid-area:purchase;
    align-self:center;
    margin:0;
    padding:22px;
    border:1px solid var(--ui-line);
    border-radius:14px;
    background:var(--ui-soft)
  }
}

.automation-shell .auto-price {
  font-size:30px;
  color:var(--ui-text)
}
.automation-shell .auto-price small {
  font-size:11px
}
.automation-shell .auto-plan.auto-gold {
  background:var(--ui-surface);
  border-color:var(--ui-brand);
  box-shadow:0 0 0 3px var(--ui-brand-soft)
}
.automation-shell .auto-periods {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.automation-shell .auto-periods>div {
  border-color:var(--ui-line);
  background:var(--ui-surface);
  padding:18px
}
.automation-shell .auto-periods strong {
  font-size:16px
}
.automation-shell .auto-periods span {
  font-size:11px;
  color:var(--ui-muted)
}
.automation-shell .auto-match-field {
  margin-top:16px
}
.automation-shell .auto-steps {
  justify-content:flex-start;
  padding:4px 0 10px;
  gap:18px
}
.automation-shell .auto-steps button {
  font-size:12px
}
.automation-shell .auto-entry-label,.automation-shell .auto-replacement-row label {
  font-size:12px
}
:root[data-theme=dark] .auto-section-mark,:root[data-theme=dark] .auto-filter-include .auto-section-mark,:root[data-theme=dark] .auto-filter-exclude .auto-section-mark {
  background:var(--ui-soft);
  color:var(--ui-text)
}
:root[data-theme=dark] .auto-notice,:root[data-theme=dark] .auto-preview {
  background:var(--ui-brand-soft);
  color:var(--ui-text)
}
@media(max-width:1280px) {
  .home-hero {
    grid-template-columns:minmax(0,1fr) 240px;
    padding:28px;
    gap:24px
  }
  .ui-orbit-node {
    padding:8px
  }
  .home-task-card {
    padding:18px
  }
  .home-task-icon {
    width:36px;
    height:36px
  }
  .home-platform-panel .home-platform-grid {
    grid-template-columns:repeat(6,minmax(0,1fr))
  }
  .home-platform-grid:not(.is-expanded) .platform-logo-link:nth-child(n+7) {
    display:none
  }
  .home-platform-grid.is-expanded .platform-logo-link {
    display:flex
  }
  .ui-onboarding {
    grid-template-columns:1fr 32px;
    gap:16px
  }
  .ui-onboarding-links {
    grid-column:1/-1;
    grid-row:2
  }
  .ui-onboarding>[data-dismiss-onboarding] {
    grid-column:2;
    grid-row:1
  }
  .publish-shell .publisher-grid {
    grid-template-columns:minmax(0,1.3fr) minmax(250px,.7fr)
  }
  .publish-shell .selection-grid {
    grid-template-columns:1fr
  }
}
@media(max-width:1024px) {
  .home-hero {
    grid-template-columns:1fr
  }
  .home-hero-art {
    display:none
  }
  .home-task-grid {
    gap:10px
  }
  .home-task-card {
    flex-direction:column
  }
  .publish-shell .publisher-grid {
    grid-template-columns:1fr
  }
  .publish-shell .publisher-side {
    position:relative;
    top:auto;
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .home-shell .downloader-workspace,.transfer-shell .transfer-workspace {
    grid-template-columns:1fr
  }
  .channels-page-shell .service-bot-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .connected-platform-tabs {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .team-management-grid,.settings-grid {
    grid-template-columns:1fr
  }
  .automation-shell .auto-limit-fields {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:760px) {
  .home-hero {
    padding:24px 18px;
    border-radius:16px;
    gap:0
  }
  .home-hero h1 {
    font-size:27px;
    margin-bottom:12px
  }
  .home-hero-copy>p {
    font-size:12px;
    margin-bottom:18px
  }
  .home-url-row.downloader-url-row {
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:6px;
    padding:6px
  }
  .home-url-row .button {
    grid-column:1/-1;
    width:100%
  }
  .home-url-row #url-input {
    min-height:44px
  }
  .home-trial-banner {
    padding:14px;
    gap:10px;
    align-items:flex-start;
    flex-direction:column
  }
  .home-trial-copy p {
    font-size:10px
  }
  .home-trial-actions {
    width:100%;
    justify-content:space-between
  }
  .home-task-grid {
    grid-template-columns:1fr;
    gap:10px
  }
  .home-task-card {
    flex-direction:row;
    align-items:center;
    padding:16px;
    gap:14px
  }
  .home-task-copy {
    gap:2px
  }
  .home-task-copy strong {
    font-size:14px
  }
  .home-task-copy small {
    font-size:11px
  }
  .home-task-link {
    margin-top:3px
  }
  .home-platform-panel .home-platform-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px
  }
  .home-platform-grid:not(.is-expanded) .platform-logo-link:nth-child(n+9) {
    display:none
  }
  .home-platform-grid:not(.is-expanded) .platform-logo-link:nth-child(-n+8) {
    display:flex
  }
  .home-platform-grid .platform-logo-link {
    min-height:72px;
    font-size:9px;
    padding:10px 5px
  }
  .home-platform-grid .platform-logo-link img {
    width:24px;
    height:24px
  }
  .home-section-heading {
    gap:12px
  }
  .home-section-heading p {
    font-size:10px
  }
  .ui-onboarding {
    padding:16px;
    gap:14px
  }
  .ui-onboarding-links {
    grid-template-columns:1fr;
    gap:12px
  }
  .ui-onboarding h2 {
    font-size:13px
  }
  .ui-page-heading .ui-kicker {
    font-size:10px
  }
  .home-shell .downloader-options-panel,.home-shell .downloader-preview-panel,.home-shell .downloader-history-panel {
    padding:18px
  }
  .publish-shell .publish-composer-card,.publish-shell .publish-side-card,.publish-shell .publish-history-panel {
    padding:18px
  }
  .publish-shell .publisher-side {
    grid-template-columns:1fr
  }
  .publish-shell .selection-grid {
    grid-template-columns:1fr
  }
  .composer-actions {
    flex-direction:column;
    align-items:stretch
  }
  .composer-actions .button {
    width:100%
  }
  .composer-section-head {
    flex-wrap:wrap
  }
  .publish-shell .composer-section-head p {
    font-size:11px
  }
  .gallery-slide-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .history-tools {
    flex-direction:column;
    align-items:stretch
  }
  .history-search {
    max-width:none
  }
  .history-filters button {
    flex:1;
    font-size:11px
  }
  .ui-connection-intro {
    grid-template-columns:1fr;
    padding:16px
  }
  .connected-account-panel,.connected-destinations-panel {
    padding:18px
  }
  .connected-destination-row {
    align-items:flex-start;
    flex-wrap:wrap;
    padding:14px
  }
  .connected-destination-row .button {
    min-height:40px
  }
  .connected-account-heading {
    flex-wrap:wrap;
    gap:12px
  }
  .channel-stats,.team-stats {
    gap:8px
  }
  .channel-stat-card,.team-stat-card {
    padding:12px;
    flex-direction:column;
    align-items:flex-start;
    gap:8px
  }
  .channel-stat-card strong,.team-stat-card strong {
    font-size:17px
  }
  .channel-stat-card span,.team-stat-card span {
    font-size:10px
  }
  .channels-page-shell .service-bots-panel,.channels-page-shell .channels-list-panel {
    padding:18px
  }
  .channels-page-shell .service-bot-grid {
    grid-template-columns:1fr
  }
  .channels-list-heading {
    flex-wrap:wrap
  }
  .team-inline-form {
    flex-direction:column;
    align-items:stretch
  }
  .team-card,.settings-panel {
    padding:18px
  }
  .team-inline-form label {
    width:100%
  }
  .settings-preference-options {
    grid-template-columns:1fr
  }
  .settings-preference-choice {
    min-height:76px;
    flex-direction:row;
    align-items:center
  }
  .settings-language-options {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .settings-account-main {
    gap:12px
  }
  .billing-shell .billing-heading h1,.automation-shell .auto-heading h1 {
    font-size:24px
  }
  .billing-shell .billing-number {
    font-size:26px
  }
  .billing-shell .billing-columns,.billing-shell .billing-plan-grid {
    grid-template-columns:1fr
  }
  .automation-shell .panel {
    padding:18px
  }
  .automation-shell .auto-periods {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .automation-shell .auto-price {
    font-size:27px
  }
  .automation-shell .auto-steps {
    gap:4px;
    justify-content:space-between
  }
  .automation-shell .auto-steps button {
    font-size:11px;
    padding:8px 4px
  }
  .automation-shell .auto-steps span {
    font-size:10px
  }
  .automation-shell .auto-two-column {
    grid-template-columns:1fr
  }
  .automation-shell .auto-limit-fields {
    grid-template-columns:1fr
  }
  .automation-shell .auto-sticky {
    padding:12px
  }
  .ui-flow-steps {
    gap:8px;
    flex-wrap:wrap
  }
  .ui-flow-steps li {
    flex:auto
  }
  .ui-flow-steps li span {
    font-size:10px
  }
}
