/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/rmu316rnx/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/rmu316rnx/inter-cyrillic-wght-normal-DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/rmu316rnx/inter-greek-ext-wght-normal-DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/rmu316rnx/inter-greek-wght-normal-CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/rmu316rnx/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/rmu316rnx/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/rmu316rnx/inter-latin-wght-normal-Dx4kXJAl.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --radius-sm: .25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .row-1 {
    grid-row: 1;
  }

  .row-2 {
    grid-row: 2;
  }

  .row-3 {
    grid-row: 3;
  }

  .row-15 {
    grid-row: 15;
  }

  .row-18 {
    grid-row: 18;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .italic {
    font-style: italic;
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

:root {
  letter-spacing: -.01em;
  color: #161823;
  font-synthesis: none;
  --bg: #f5f5f5;
  --surface: #fff;
  --surface-soft: #fafafa;
  --surface-hover: #f1f1f2;
  --text: #161823;
  --muted: #6b6b73;
  --border: #e6e6e9;
  --accent: #161823;
  --accent-strong: #000;
  --accent-soft: #f1f1f2;
  --accent-contrast: #fff;
  --filter-active: #0089ff;
  --danger: #d9485f;
  --danger-soft: #fff0f2;
  --success: #21845a;
  --success-soft: #eaf8f1;
  --warning: #a76511;
  --warning-soft: #fff6e6;
  --info: #2b67c8;
  --info-soft: #edf4ff;
  --shadow: 0 12px 35px #16182314;
  background: #f5f5f5;
  font-family: Inter Variable, Inter, -apple-system, BlinkMacSystemFont, SF Pro Text, SF Pro Display, Segoe UI, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.business-location-dialog {
  flex-direction: column;
  width: min(1180px, 100vw - 32px);
  height: min(92vh, 860px);
  max-height: min(92vh, 860px);
  display: flex;
  overflow: hidden;
}

.bank-account-binding-dialog {
  height: min(60vh, 560px);
  max-height: min(60vh, 560px);
}

.business-location-layout {
  flex: 1;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  display: grid;
}

.business-location-settings {
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.business-location-settings .button {
  margin-top: auto;
}

.business-location-accounts, .business-location-table-wrap {
  min-width: 0;
  min-height: 0;
}

.business-location-accounts {
  flex-direction: column;
  display: flex;
}

.business-location-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  flex: 1;
  width: 100%;
  overflow: auto;
}

.business-location-table {
  border-collapse: collapse;
  width: 100%;
}

.business-location-table th, .business-location-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
}

.business-location-table th {
  z-index: 1;
  background: var(--surface);
  position: sticky;
  top: 0;
}

.business-location-table td:nth-child(2) {
  white-space: pre-wrap;
  word-break: break-word;
  width: 56%;
}

.business-location-table small {
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

.bank-account-payment-link {
  align-items: center;
  gap: 6px;
  max-width: 100%;
  display: flex;
}

.bank-account-payment-link input {
  width: min(260px, 100%);
  min-width: 100px;
  height: 34px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.bank-account-confirmation-hint {
  margin: 0;
  font-weight: 700;
}

.bank-account-confirmation-row {
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  min-height: 42px;
  margin-bottom: 10px;
  display: flex;
}

.bank-account-external-cdp-settings {
  flex: none;
  align-items: end;
  gap: 8px;
  display: flex;
}

.bank-account-external-cdp-settings .compact-field {
  gap: 3px;
}

.bank-account-external-cdp-settings .compact-field span {
  color: var(--muted);
  font-size: 11px;
}

.bank-account-external-cdp-settings input {
  width: 108px;
  height: 34px;
}

.bank-account-binding-dialog .business-location-settings .button {
  margin-top: 0;
}

.bank-account-delete-card-option {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  cursor: pointer;
  border-radius: 9px;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: grid;
}

.bank-account-delete-card-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.business-location-table tr.bank-account-binding-row-success > td {
  background: #22c55e;
}

@supports (color: color-mix(in lab, red, red)) {
  .business-location-table tr.bank-account-binding-row-success > td {
    background: color-mix(in srgb, #22c55e 9%, var(--surface));
  }
}

.business-location-table tr.bank-account-binding-row-error > td {
  background: #ef4444;
}

@supports (color: color-mix(in lab, red, red)) {
  .business-location-table tr.bank-account-binding-row-error > td {
    background: color-mix(in srgb, #ef4444 8%, var(--surface));
  }
}

.business-location-table tr.bank-account-binding-row-success:hover > td {
  background: #22c55e;
}

@supports (color: color-mix(in lab, red, red)) {
  .business-location-table tr.bank-account-binding-row-success:hover > td {
    background: color-mix(in srgb, #22c55e 13%, var(--surface));
  }
}

.business-location-table tr.bank-account-binding-row-error:hover > td {
  background: #ef4444;
}

@supports (color: color-mix(in lab, red, red)) {
  .business-location-table tr.bank-account-binding-row-error:hover > td {
    background: color-mix(in srgb, #ef4444 12%, var(--surface));
  }
}

.launch-preview-total {
  border: 1px solid var(--border);
  background: var(--surface);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 10px 12px;
  font-weight: 700;
}

.launch-preview-total + .launch-preview-table {
  border-radius: 0 0 10px 10px;
}

@media (max-width: 800px) {
  .business-location-layout {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f10;
  --surface: #18181a;
  --surface-soft: #202023;
  --surface-hover: #2a2a2e;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --border: #303036;
  --accent: #fff;
  --accent-strong: #e7e7e9;
  --accent-soft: #2a2a2e;
  --accent-contrast: #161823;
  --danger: #ff7084;
  --danger-soft: #40242a;
  --success: #65d49e;
  --success-soft: #1b392c;
  --warning: #eab665;
  --warning-soft: #3b3220;
  --info: #79a8ff;
  --info-soft: #1d304f;
  --shadow: 0 14px 38px #0000004d;
}

:root[data-theme="macos"] {
  color-scheme: light;
  color: #1d1d1f;
  --bg: #f2f2f7;
  --surface: #ffffffe0;
  --surface-soft: #76768014;
  --surface-hover: #7676801f;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #3c3c4329;
  --accent: #007aff;
  --accent-strong: #0064d1;
  --accent-soft: #007aff1f;
  --accent-contrast: #fff;
  --danger: #ff3b30;
  --danger-soft: #ff3b301a;
  --success: #248a3d;
  --success-soft: #34c7591f;
  --warning: #b25000;
  --warning-soft: #ff9f0a21;
  --info: #007aff;
  --info-soft: #007aff1a;
  --shadow: 0 18px 48px #28304024;
  background: #f2f2f7;
  font-family: -apple-system, BlinkMacSystemFont, SF Pro Text, SF Pro Display, Inter Variable, Inter, sans-serif;
}

:root[data-theme="macos"] body {
  background: radial-gradient(circle at 82% 0%, #5ac8fa29, transparent 34rem), radial-gradient(circle at 15% 100%, #af52de14, transparent 32rem), var(--bg);
}

:root[data-theme="macos"] .sidebar {
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  background: #f6f6f8c7;
  border-right-color: #3c3c431f;
  box-shadow: 1px 0 18px #2830400a;
}

:root[data-theme="macos"] .sidebar nav a, :root[data-theme="macos"] .sidebar-utilities button {
  border-radius: 10px;
}

:root[data-theme="macos"] .sidebar nav a.nav-active {
  color: #006edc;
  background: #007aff21;
}

:root[data-theme="macos"] .panel, :root[data-theme="macos"] .dialog-content {
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-color: #3c3c431f;
  border-radius: 16px;
  box-shadow: 0 10px 32px #28304014;
}

:root[data-theme="macos"] .button, :root[data-theme="macos"] .field input, :root[data-theme="macos"] .field select, :root[data-theme="macos"] .field textarea, :root[data-theme="macos"] .toolbar input, :root[data-theme="macos"] .toolbar select, :root[data-theme="macos"] .searchable-select-trigger {
  border-radius: 10px;
}

:root[data-theme="macos"] .button-primary {
  border-color: #005dc757;
  box-shadow: inset 0 1px #ffffff38, 0 1px 2px #004ba029;
}

:root[data-theme="macos"] .segmented {
  background: #7676801a;
  border: 1px solid #3c3c4314;
  border-radius: 11px;
}

:root[data-theme="macos"] .segmented button {
  border-radius: 8px;
}

:root[data-theme="macos"] .segmented button.active {
  color: var(--text);
  box-shadow: 0 1px 4px #28304029;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-optical-sizing: auto;
  font-feature-settings: "cv02" 1, "cv03" 1, "cv04" 1, "cv11" 1;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-recovery-screen {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  text-align: center;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  display: grid;
}

.app-recovery-screen strong {
  font-size: 18px;
}

.app-recovery-screen span {
  color: var(--muted);
}

.app-recovery-screen button {
  color: #fff;
  cursor: pointer;
  background: #0089ff;
  border: 1px solid #0089ff;
  border-radius: 8px;
  min-height: 36px;
  margin-top: 4px;
  padding: 7px 14px;
}

button, input, select, textarea {
  font: inherit;
}

button {
  color: inherit;
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

.data-grid .ag-checkbox-input-wrapper {
  width: 21px;
  height: 21px;
  font-size: 21px;
  line-height: 21px;
}

.data-grid .ag-selection-checkbox, .data-grid .ag-header-select-all {
  justify-content: center;
  align-items: center;
  min-width: 28px;
  min-height: 28px;
}

:root[data-theme="dark"] input[type="checkbox"] {
  appearance: none;
  background: var(--surface-soft);
  cursor: pointer;
  border: 1px solid #55555f;
  border-radius: 4px;
  flex: none;
  place-content: center;
  width: 15px;
  height: 15px;
  margin: 0;
  display: inline-grid;
}

:root[data-theme="dark"] input[type="checkbox"]:before {
  content: "";
  opacity: 0;
  border: 0 solid #fff;
  border-width: 0 0 2px 2px;
  width: 7px;
  height: 4px;
  transform: translateY(-1px) rotate(-45deg);
}

:root[data-theme="dark"] input[type="checkbox"]:checked {
  background: #0089ff;
  border-color: #0089ff;
}

:root[data-theme="dark"] input[type="checkbox"]:checked:before {
  opacity: 1;
}

:root[data-theme="dark"] input[type="checkbox"]:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #0089ff99;
}

:root[data-theme="dark"] input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: .5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3, strong {
  font-weight: 630;
}

.button {
  letter-spacing: -.006em;
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 550;
  transition: background .12s, border-color .12s;
  display: inline-flex;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

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

.button-primary:hover:not(:disabled) {
  background: var(--accent-strong);
}

:root[data-theme="dark"] .button-primary {
  color: var(--text);
  background: #29292e;
  border-color: #45454d;
  box-shadow: inset 0 1px #ffffff0a;
}

:root[data-theme="dark"] .button-primary:hover:not(:disabled) {
  background: #34343a;
  border-color: #5a5a64;
}

.add-profiles-button {
  color: var(--text);
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .add-profiles-button {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
  }
}

.add-profiles-button {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .add-profiles-button {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  }
}

.add-profiles-button {
  box-shadow: none;
}

.add-profiles-button:hover:not(:disabled) {
  color: var(--text);
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .add-profiles-button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
  }
}

.add-profiles-button:hover:not(:disabled) {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .add-profiles-button:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  }
}

.button-blue {
  color: #fff;
  background: #1677ff;
  border-color: #1677ff;
}

.button-blue:hover:not(:disabled) {
  background: #0f67e5;
  border-color: #0f67e5;
}

.button-success {
  color: #fff;
  background: #22a447;
  border-color: #22a447;
}

.button-success:hover:not(:disabled) {
  background: #1b8c3c;
  border-color: #1b8c3c;
}

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

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

.button.white-action-button:hover:not(:disabled) {
  background: var(--surface-hover);
}

.button-ghost {
  color: var(--muted);
  background: none;
}

.button-ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-hover);
}

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

@supports (color: color-mix(in lab, red, red)) {
  .button-danger {
    border-color: color-mix(in srgb, var(--danger) 25%, transparent);
  }
}

.table-refresh-button {
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}

.secret-input {
  -webkit-text-security: disc;
}

.secret-input-visible {
  -webkit-text-security: none;
}

.secret-reveal-control {
  display: flex;
  position: relative;
}

.secret-reveal-control input {
  padding-right: 42px;
}

.secret-reveal-button {
  width: 31px;
  height: 31px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  place-items: center;
  padding: 0;
  display: inline-grid;
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
}

.secret-reveal-button:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.toggle-switch {
  cursor: pointer;
  background: #c8cbd1;
  border: 0;
  border-radius: 999px;
  flex: 0 0 28px;
  justify-content: flex-start;
  align-items: center;
  width: 28px;
  height: 16px;
  padding: 2px;
  line-height: 0;
  transition: background .15s;
  display: inline-flex;
  position: relative;
}

.toggle-switch > span {
  background: #fff;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  transition: transform .15s;
  position: relative;
  transform: translateX(0);
  box-shadow: 0 1px 4px #00000038;
}

.toggle-switch-on {
  background: #1677ff;
}

.toggle-switch-on > span {
  transform: translateX(12px);
}

.toggle-switch:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #25f4ee;
}

.toggle-switch:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.toggle-switch-loading:disabled {
  opacity: .9;
}

.toggle-switch-loading > span:after {
  content: "";
  border: 1.5px solid #16182333;
  border-top-color: #161823;
  border-radius: 50%;
  animation: .6s linear infinite spin;
  position: absolute;
  inset: 2px;
}

[data-theme="dark"] .toggle-switch {
  background: #4a4d55;
}

[data-theme="dark"] .toggle-switch-on {
  background: #1677ff;
}

.table-toggle-cell .ag-cell-wrapper, .table-toggle-cell .ag-cell-value {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.table-task-activity-cell {
  padding-inline: 0 !important;
}

.table-task-activity-cell .ag-cell-wrapper, .table-task-activity-cell .ag-cell-value {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.task-activity-indicator {
  color: #1677ff;
  place-items: center;
  width: 16px;
  height: 16px;
  display: inline-grid;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #2d2d32, #0d0d0f);
  border-radius: 13px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  display: inline-flex;
  box-shadow: 0 8px 25px #16182333;
}

.brand-mark.small {
  border-radius: 10px;
  flex: none;
  width: 34px;
  height: 34px;
}

.auth-page {
  background: var(--surface);
  grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr);
  min-height: 100vh;
  display: grid;
}

.auth-brand {
  color: #fff;
  background: radial-gradient(circle at 18% 12%, #25f4ee1f, #0000 32%), radial-gradient(circle at 88% 84%, #fe2c551a, #0000 36%), #111113;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(44px, 7vw, 110px);
  display: flex;
}

.auth-brand > span {
  letter-spacing: -.015em;
  font-size: 15px;
  font-weight: 650;
}

.auth-brand h1 {
  letter-spacing: -.04em;
  max-width: 560px;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 640;
  line-height: 1.08;
}

.auth-brand p {
  color: #ffffffb8;
  letter-spacing: -.006em;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.65;
}

.auth-panel {
  background: var(--surface-soft);
  place-items: center;
  padding: 32px;
  display: grid;
}

.auth-card {
  border: 1px solid var(--border);
  background: var(--surface);
  width: min(440px, 100%);
  box-shadow: var(--shadow);
  border-radius: 18px;
  gap: 28px;
  padding: 34px;
  display: grid;
}

.auth-card h2 {
  letter-spacing: -.03em;
  font-size: 23px;
  font-weight: 640;
  line-height: 1.2;
}

.auth-card > div:first-child p {
  color: var(--muted);
  margin-top: 8px;
}

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

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.form-grid {
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  display: grid;
}

.field {
  color: var(--muted);
  gap: 6px;
  font-size: 12.5px;
  font-weight: 540;
  display: grid;
}

.field input, .field select, .field textarea, .toolbar input, .toolbar select, .pagination input, .apply-field input:not([type="checkbox"]), .apply-field select {
  width: 100%;
  min-height: 36px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  letter-spacing: -.004em;
  border-radius: 8px;
  outline: none;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 430;
}

.field textarea {
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
  }
}

.field input:disabled {
  color: var(--muted);
  background: var(--surface-soft);
}

.field small:not(.field-error) {
  color: var(--muted);
  font-weight: 430;
}

.field-error {
  min-height: 15px;
  color: var(--danger);
  font-weight: 500;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 40px;
}

.password-input button {
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  display: grid;
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
}

.form-row-between {
  justify-content: flex-end;
  font-size: 12.5px;
  display: flex;
}

.auth-footnote {
  color: var(--muted);
  text-align: center;
  font-size: 12.5px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  z-index: 30;
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex-direction: column;
  width: 260px;
  transition: width .16s;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.sidebar-collapsed {
  width: 72px;
}

.sidebar-brand {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 11px;
  height: 70px;
  padding: 0 16px;
  display: flex;
}

.sidebar-brand > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.sidebar-brand strong, .sidebar-brand small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand strong {
  letter-spacing: -.018em;
  font-size: 13.5px;
  font-weight: 620;
}

.sidebar-brand small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11.5px;
}

.sidebar nav {
  flex: 1;
  align-content: start;
  gap: 5px;
  padding: 14px 10px;
  display: grid;
}

.sidebar nav a {
  height: 40px;
  color: var(--muted);
  letter-spacing: -.004em;
  white-space: nowrap;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 520;
  display: flex;
  position: relative;
}

.sidebar nav a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.sidebar nav a.nav-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-task-badge {
  color: #fff;
  background: #f97316;
  border-radius: 999px;
  flex: none;
  justify-content: center;
  align-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 720;
  line-height: 1;
  display: inline-flex;
}

.sidebar-collapsed .nav-task-badge {
  min-width: 15px;
  height: 15px;
  margin: 0;
  padding: 0 3px;
  font-size: 9px;
  position: absolute;
  top: 4px;
  right: 4px;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 10px 12px;
  display: flex;
}

.sidebar-footer .button {
  position: relative;
}

.sidebar-collapsed .sidebar-footer {
  justify-content: center;
  padding-inline: 8px;
}

.sidebar-utilities {
  border-top: 1px solid var(--border);
  gap: 4px;
  padding: 8px 10px;
  display: grid;
}

.sidebar-utilities button {
  height: 38px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-size: 13px;
  display: flex;
  position: relative;
}

.sidebar-utilities button:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.sidebar-collapsed nav a, .sidebar-collapsed .sidebar-utilities button {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed [data-tooltip]:after {
  content: attr(data-tooltip);
  z-index: 80;
  pointer-events: none;
  width: max-content;
  max-width: 190px;
  color: var(--accent-contrast);
  background: var(--accent);
  box-shadow: var(--shadow);
  opacity: 0;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 540;
  line-height: 1.2;
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
}

.sidebar-collapsed [data-tooltip]:hover:after, .sidebar-collapsed [data-tooltip]:focus-visible:after {
  opacity: 1;
}

.user-block {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
}

.user-block span, .user-block small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.user-block small {
  color: var(--muted);
}

.user-block .app-version {
  color: var(--muted);
  opacity: .72;
  font-size: 10px;
}

.sidebar-collapse {
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  place-items: center;
  margin-left: auto;
  display: grid;
}

.sidebar-collapse:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.sidebar-collapsed .sidebar-collapse {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  position: absolute;
  top: 23px;
  right: -11px;
}

.app-content {
  width: calc(100% - 260px);
  min-height: 100vh;
  margin-left: 260px;
  transition: width .16s, margin-left .16s;
}

.sidebar-collapsed + .app-content {
  width: calc(100% - 72px);
  margin-left: 72px;
}

.mobile-shell-bar, .mobile-close {
  display: none;
}

.page-content {
  min-height: 100vh;
  padding: 10px 10px 60px;
}

.page-heading {
  justify-content: space-between;
  align-items: flex-start;
  min-height: 56px;
  margin-bottom: 14px;
  display: flex;
}

.page-heading h2 {
  letter-spacing: -.028em;
  font-size: 20px;
  font-weight: 640;
  line-height: 1.25;
}

.page-heading p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
}

.workspace-page, .proxy-page {
  flex-direction: column;
  height: calc(100dvh - 70px);
  min-height: 520px;
  display: flex;
}

.workspace-tabs {
  z-index: 20;
  border-bottom: 1px solid var(--border);
  flex: none;
  align-items: center;
  min-width: 0;
  margin-bottom: 12px;
  display: flex;
  position: relative;
  overflow: visible;
}

.workspace-tab-links {
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: flex;
  overflow: auto hidden;
}

.workspace-tab-links a {
  text-transform: uppercase;
  letter-spacing: .025em;
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.workspace-tab-count {
  color: #fff;
  background: #1877f2;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 21px;
  height: 19px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  box-shadow: 0 1px 2px #1877f24d;
}

.workspace-tab-clear {
  width: 19px;
  height: 19px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  margin-left: -3px;
  transition: color .12s, background-color .12s, transform .12s;
  display: inline-flex;
}

.workspace-tab-clear:hover, .workspace-tab-clear:focus-visible {
  color: var(--danger);
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .workspace-tab-clear:hover, .workspace-tab-clear:focus-visible {
    background: color-mix(in srgb, var(--danger) 11%, transparent);
  }
}

.workspace-tab-clear:hover, .workspace-tab-clear:focus-visible {
  outline: none;
}

.workspace-tab-clear:active {
  transform: scale(.9);
}

.workspace-tab-active-launch-count {
  background: #f59e0b;
  min-width: 19px;
  height: 18px;
  padding: 0 5px;
  box-shadow: 0 1px 2px #f59e0b4d;
}

.workspace-tab-links::-webkit-scrollbar {
  display: none;
}

.workspace-tab-links a {
  color: var(--muted);
  flex: none;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 540;
  position: relative;
}

.workspace-tab-links a.active {
  color: var(--accent);
}

.workspace-tab-links a.active:after {
  content: "";
  background: var(--accent);
  height: 2px;
  position: absolute;
  inset: auto 10px -1px;
}

.workspace-tab-links a.workspace-tab-link-bundle-launch, .workspace-tab-links a.workspace-tab-link-bundle-runs {
  color: #fff;
  text-transform: none;
  letter-spacing: -.004em;
  border: 0;
  border-radius: 4px;
  margin: 3px 2px 4px;
  padding: 8px 14px;
  font-weight: 680;
  transition: background-color .14s, box-shadow .14s;
  box-shadow: 0 1px 2px #0f172a1f;
}

.workspace-tab-links a.workspace-tab-link-bundle-launch {
  background: #4caf73;
}

.workspace-tab-links a.workspace-tab-link-bundle-launch:hover {
  color: #fff;
  background: #43a668;
}

.workspace-tab-links a.workspace-tab-link-bundle-runs {
  background: #3f7fd8;
}

.workspace-tab-links a.workspace-tab-link-bundle-runs:hover {
  color: #fff;
  background: #3573c8;
}

.workspace-tab-links a.workspace-tab-link-bundle-launch.active {
  color: #fff;
  background: #3d995f;
}

.workspace-tab-links a.workspace-tab-link-bundle-runs.active {
  color: #fff;
  background: #3069b8;
}

.workspace-tab-links a.workspace-tab-link-bundle-launch.active, .workspace-tab-links a.workspace-tab-link-bundle-runs.active {
  box-shadow: inset 0 2px 4px #0f172a3d, 0 1px 1px #0f172a14;
}

.workspace-tab-links a.workspace-tab-link-bundle-launch:after, .workspace-tab-links a.workspace-tab-link-bundle-runs:after {
  display: none;
}

.workspace-statistics-range {
  border-left: 1px solid var(--border);
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 3px 0 3px 10px;
  display: flex;
}

.workspace-statistics-range label {
  color: var(--muted);
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 550;
  display: flex;
}

.workspace-statistics-range input {
  width: 132px;
  height: 32px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 7px;
  outline: none;
  padding: 4px 7px;
  font-family: inherit;
  font-size: 12px;
}

.workspace-statistics-range input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .workspace-statistics-range input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
  }
}

.workspace-statistics-range .button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

.statistics-date-picker {
  position: relative;
}

.statistics-date-trigger {
  border: 1px solid var(--border);
  min-height: 32px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  font-size: 12px;
  display: inline-flex;
}

.statistics-date-trigger:hover, .statistics-date-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .statistics-date-trigger:hover, .statistics-date-trigger[aria-expanded="true"] {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

.statistics-date-trigger svg {
  color: var(--accent);
}

.statistics-date-popover {
  z-index: 150;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 11px;
  grid-template-columns: 126px minmax(0, 1fr);
  width: 480px;
  display: grid;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  overflow: hidden;
  box-shadow: 0 18px 48px #0f172a2e;
}

.statistics-date-popover > aside {
  border-right: 1px solid var(--border);
  background: var(--surface-soft);
  align-content: start;
  gap: 1px;
  padding: 7px;
  display: grid;
}

.statistics-date-popover button {
  color: var(--text);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
}

.statistics-date-popover > aside button {
  text-align: left;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
}

.statistics-date-popover > aside button:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.statistics-date-popover > section {
  min-width: 0;
  padding: 9px;
}

.statistics-date-popover section > header {
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-bottom: 5px;
  display: grid;
}

.statistics-date-popover section > header strong {
  text-align: center;
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 650;
}

.statistics-date-popover section > header button {
  border-radius: 6px;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}

.statistics-date-popover section > header button:hover {
  background: var(--surface-soft);
}

.statistics-calendar-grid {
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  gap: 1px;
  display: grid;
}

.statistics-weekdays span {
  color: var(--muted);
  text-align: center;
  padding: 3px 0;
  font-size: 9.5px;
  font-weight: 620;
}

.statistics-calendar-grid button {
  border-radius: 5px;
  min-height: 28px;
  font-size: 10.5px;
}

.statistics-calendar-grid button:hover {
  background: var(--surface-soft);
}

.statistics-calendar-grid button.outside {
  color: var(--muted);
}

@supports (color: color-mix(in lab, red, red)) {
  .statistics-calendar-grid button.outside {
    color: color-mix(in srgb, var(--muted) 50%, transparent);
  }
}

.statistics-calendar-grid button.in-range {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 0;
}

.statistics-calendar-grid button.range-edge {
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
}

.statistics-date-popover section > footer {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  margin-top: 6px;
  padding-top: 7px;
  display: flex;
}

.statistics-date-popover section > footer span {
  color: var(--muted);
  font-size: 10.5px;
}

.statistics-date-popover section > footer button {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 620;
}

.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 2px 12px #1e283e06;
}

:root[data-panel-style="soft"] .panel {
  border-color: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-panel-style="soft"] .panel {
    border-color: color-mix(in srgb, var(--border) 72%, transparent);
  }
}

:root[data-panel-style="soft"] .panel {
  box-shadow: 0 1px 6px #1e283e05;
}

:root[data-panel-style="outline"] .panel {
  border-color: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-panel-style="outline"] .panel {
    border-color: color-mix(in srgb, var(--text) 14%, var(--border));
  }
}

:root[data-panel-style="outline"] .panel {
  box-shadow: 0 1px 2px #1e283e09, 0 5px 15px #1e283e06;
}

:root[data-panel-style="elevated"] .panel {
  border-color: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-panel-style="elevated"] .panel {
    border-color: color-mix(in srgb, var(--border) 78%, transparent);
  }
}

:root[data-panel-style="elevated"] .panel {
  box-shadow: 0 2px 5px #1e283e0e, 0 12px 28px #1e283e13;
}

:root[data-panel-style="accent"] .panel {
  border-color: var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-panel-style="accent"] .panel {
    border-color: color-mix(in srgb, var(--info) 18%, var(--border));
  }
}

:root[data-panel-style="accent"] .panel {
  box-shadow: inset 3px 0 0 var(--info), 0 4px 15px #1e283e09;
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-panel-style="accent"] .panel {
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--info) 58%, transparent), 0 4px 15px #1e283e09;
  }
}

.toolbar {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 8px;
  min-height: 55px;
  padding: 9px 10px;
  display: flex;
}

.toolbar > select {
  width: auto;
  min-width: 130px;
}

.filter-select-control {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  height: 36px;
  display: flex;
  overflow: hidden;
}

.filter-select-control.filter-control-active, .search-control.filter-control-active {
  border-color: var(--filter-active);
  box-shadow: 0 0 0 2px var(--filter-active);
}

@supports (color: color-mix(in lab, red, red)) {
  .filter-select-control.filter-control-active, .search-control.filter-control-active {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--filter-active) 42%, transparent);
  }
}

.filter-select-control select {
  border-radius: 0;
  width: auto;
  min-width: 145px;
  height: 34px;
  box-shadow: none !important;
  border: 0 !important;
}

.filter-clear-button {
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 0;
  border-left: 1px solid var(--border);
  cursor: pointer;
  background: none;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  display: grid;
}

.filter-clear-button:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-hover);
}

.filter-clear-button:disabled {
  opacity: .35;
  cursor: default;
}

.filter-checkbox-control {
  white-space: nowrap;
  min-height: 36px;
  color: var(--muted);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  display: inline-flex;
}

.filter-checkbox-control input {
  margin: 0;
}

.ad-entity-bulk-status-buttons {
  gap: 8px;
  display: flex;
}

.ad-entity-enable-button {
  color: #15723b !important;
  background: #e8f8ee !important;
  border-color: #a7dfbd !important;
}

.ad-entity-disable-button {
  color: #b83232 !important;
  background: #fff0f0 !important;
  border-color: #f0b8b8 !important;
}

:root[data-theme="dark"] .ad-entity-enable-button {
  color: var(--success) !important;
  border-color: var(--success) !important;
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-theme="dark"] .ad-entity-enable-button {
    border-color: color-mix(in srgb, var(--success) 38%, var(--border)) !important;
  }
}

:root[data-theme="dark"] .ad-entity-enable-button {
  background: var(--success) !important;
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-theme="dark"] .ad-entity-enable-button {
    background: color-mix(in srgb, var(--success) 14%, var(--surface)) !important;
  }
}

:root[data-theme="dark"] .ad-entity-disable-button {
  color: var(--danger) !important;
  border-color: var(--danger) !important;
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-theme="dark"] .ad-entity-disable-button {
    border-color: color-mix(in srgb, var(--danger) 34%, var(--border)) !important;
  }
}

:root[data-theme="dark"] .ad-entity-disable-button {
  background: var(--danger) !important;
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-theme="dark"] .ad-entity-disable-button {
    background: color-mix(in srgb, var(--danger) 12%, var(--surface)) !important;
  }
}

.ad-entity-column-settings {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  display: grid;
}

.ad-entity-column-settings > section {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 12px;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  display: flex;
}

.ad-entity-column-settings h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

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

.column-settings-section-header h3, .ad-entity-column-settings .column-settings-section-header h3 {
  margin: 0;
}

.column-settings-toggle-actions {
  align-items: center;
  gap: 6px;
  display: flex;
}

.column-settings-toggle-actions button {
  border: 1px solid var(--border);
  min-height: 28px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.column-settings-toggle-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-hover);
}

.toolbar-end {
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
  display: flex;
}

.toolbar-end .pagination {
  margin-left: 0;
}

.search-control {
  min-width: 220px;
  height: 36px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  display: flex;
}

.search-control input {
  background: none;
  flex: 1;
  min-width: 0;
  padding: 0;
  box-shadow: none !important;
  border: 0 !important;
}

.search-control button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  display: grid;
}

.group-controls {
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  display: flex;
}

.group-controls.filter-control-active {
  border-color: var(--filter-active);
  background: var(--filter-active);
}

@supports (color: color-mix(in lab, red, red)) {
  .group-controls.filter-control-active {
    background: color-mix(in srgb, var(--filter-active) 7%, var(--surface));
  }
}

.group-controls.filter-control-active {
  box-shadow: 0 0 0 2px var(--filter-active);
}

@supports (color: color-mix(in lab, red, red)) {
  .group-controls.filter-control-active {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--filter-active) 42%, transparent);
  }
}

.group-controls.filter-control-active .profile-group-filter {
  box-shadow: none;
}

.group-controls.filter-control-active .button, .group-controls.filter-control-active .filter-clear-button {
  color: var(--filter-active);
}

.group-controls .profile-group-filter {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 7px 0 0 7px;
  overflow: visible;
}

.profile-group-filter .searchable-select {
  min-width: 145px;
}

.profile-group-filter .searchable-select-trigger {
  background: none;
  border: 0;
  border-radius: 7px 0 0 7px;
  min-width: 145px;
  height: 34px;
}

.profile-group-filter .searchable-select-popover {
  z-index: 80;
  width: 240px;
}

.profile-group-filter .searchable-select-options {
  overflow-x: auto;
}

.profile-group-filter .searchable-select-options > button {
  width: max-content;
  min-width: 100%;
}

.profile-group-filter .searchable-select-options strong {
  text-overflow: clip;
  overflow: visible;
}

.profile-group-filter .searchable-select-options > button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--filter-active), var(--filter-active));
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-group-filter .searchable-select-options > button[aria-selected="true"] {
    background: linear-gradient(135deg, var(--filter-active), color-mix(in srgb, var(--filter-active) 82%, #1b63d9));
  }
}

.profile-group-filter .searchable-select-options > button[aria-selected="true"] {
  box-shadow: inset 0 0 0 1px #ffffff2e, 0 2px 7px var(--filter-active);
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-group-filter .searchable-select-options > button[aria-selected="true"] {
    box-shadow: inset 0 0 0 1px #ffffff2e, 0 2px 7px color-mix(in srgb, var(--filter-active) 24%, transparent);
  }
}

.profile-group-filter .searchable-select-options > button[aria-selected="true"] small {
  color: #ffffffc7;
}

.profile-group-filter .searchable-select-options > button[aria-selected="true"] .group-color-dot {
  border-color: #ffffffb8;
  box-shadow: 0 0 0 2px #fff3;
}

.group-controls select {
  border: 0;
  border-right: 1px solid var(--border);
  min-width: 145px;
  height: 34px;
  color: var(--text);
  background: var(--surface);
  border-radius: 8px 0 0 8px;
  padding: 0 8px;
}

.group-controls .button {
  border-radius: 0;
  min-height: 32px;
  padding: 5px 7px;
}

.pagination {
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 12px;
  display: flex;
}

.pagination .button {
  min-height: 30px;
  padding: 4px 6px;
}

.pagination input {
  text-align: center;
  height: 30px;
  min-height: 30px;
  padding: 4px;
}

.page-size-input {
  font-variant-numeric: tabular-nums;
  min-width: 68px;
  width: 68px !important;
}

.page-input {
  width: 40px !important;
}

.pagination-range {
  margin-left: 5px;
}

.data-grid {
  --ag-background-color: var(--surface);
  --ag-foreground-color: var(--text);
  --ag-header-background-color: var(--surface-soft);
  --ag-header-foreground-color: var(--muted);
  --ag-border-color: var(--border);
  --ag-row-border-color: var(--border);
  --ag-odd-row-background-color: var(--surface);
  --ag-row-hover-color: var(--surface-hover);
  --ag-selected-row-background-color: #c4f7b033;
  --ag-cell-focus-border-color: transparent;
  --ag-range-selection-border-color: transparent;
  --ag-pinned-column-border: none;
  --ag-accent-color: var(--accent);
  --ag-checkbox-checked-color: var(--accent);
  --ag-font-family: inherit;
  --ag-font-size: 12.5px;
  --ag-wrapper-border-radius: 0 0 11px 11px;
  width: 100%;
}

:root[data-theme="dark"] .data-grid {
  --ag-selected-row-background-color: #48845633;
}

.data-grid .ag-root-wrapper {
  border: 0;
  border-radius: 0 0 11px 11px;
}

:root[data-theme="dark"] .data-grid .ag-body-vertical-scroll-viewport, :root[data-theme="dark"] .data-grid .ag-body-horizontal-scroll-viewport {
  scrollbar-color: #686870 #171719;
}

:root[data-theme="dark"] .data-grid .ag-body-vertical-scroll-viewport::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

:root[data-theme="dark"] .data-grid .ag-body-horizontal-scroll-viewport::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

:root[data-theme="dark"] .data-grid .ag-body-vertical-scroll-viewport::-webkit-scrollbar-track {
  background: #171719;
}

:root[data-theme="dark"] .data-grid .ag-body-horizontal-scroll-viewport::-webkit-scrollbar-track {
  background: #171719;
}

:root[data-theme="dark"] .data-grid .ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb {
  background: #686870;
  border: 3px solid #171719;
  border-radius: 999px;
}

:root[data-theme="dark"] .data-grid .ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb {
  background: #686870;
  border: 3px solid #171719;
  border-radius: 999px;
}

:root[data-theme="dark"] .data-grid .ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb:hover {
  background: #85858f;
}

:root[data-theme="dark"] .data-grid .ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb:hover {
  background: #85858f;
}

.data-grid .ag-pinned-left-header, .data-grid .ag-pinned-left-cols-container {
  border-right: 0 !important;
}

.data-grid .ag-pinned-right-header, .data-grid .ag-pinned-right-cols-container {
  border-left: 0 !important;
}

.data-grid .ag-cell-focus, .data-grid .ag-cell:focus, .data-grid .ag-cell-range-selected {
  border-color: #0000 !important;
  outline: 0 !important;
}

.data-grid .ag-cell:not(.ag-cell-inline-editing) {
  align-items: center;
  min-width: 0;
  line-height: normal;
  display: flex;
  overflow: hidden;
}

.data-grid .ag-cell:not(.ag-cell-inline-editing) > .ag-cell-wrapper, .data-grid .ag-cell:not(.ag-cell-inline-editing) > .ag-cell-wrapper > .ag-cell-value {
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100%;
  display: flex;
  overflow: hidden;
}

.data-grid .table-index-header .ag-header-cell-label {
  justify-content: center;
}

.data-grid .ag-header-cell-label, .data-grid .ag-header-group-cell-label, table thead th {
  text-transform: uppercase;
  letter-spacing: .035em;
}

.table-header-with-icon {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.table-header-with-icon svg {
  flex: none;
}

.system-comment-header {
  align-items: baseline;
  gap: 5px;
  display: inline-flex;
}

.system-comment-header small {
  color: var(--muted);
  text-transform: lowercase;
  font-size: 10px;
  font-weight: 560;
}

.data-grid .table-index-cell {
  text-align: center;
}

.data-grid .billing-status-postpay {
  color: var(--success);
  font-weight: 650;
}

.data-grid .billing-status-prepay {
  color: var(--info);
}

.billing-summary {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  height: 100%;
  padding: 5px 0;
  line-height: 1.15;
  display: flex;
}

.billing-summary > span, .billing-summary > small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.pixel-summary-cell {
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
}

.pixel-refresh-button {
  border: 1px solid var(--border);
  width: 24px;
  height: 24px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  border-radius: 6px;
  flex: 0 0 24px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.pixel-refresh-button:hover:not(:disabled) {
  color: var(--primary);
  border-color: var(--primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .pixel-refresh-button:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  }
}

.pixel-refresh-button:disabled {
  cursor: wait;
  opacity: .65;
}

.pixel-summary-empty {
  color: var(--muted);
}

.pixel-summary {
  width: 100%;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding: 3px 0;
  line-height: 1.15;
  display: flex;
}

.pixel-summary strong, .pixel-summary span {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.pixel-summary strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.pixel-summary span {
  color: var(--muted);
  font-size: 10px;
}

.pixel-summary small {
  color: var(--muted);
  margin-left: 6px;
  font-size: 10px;
  font-weight: 750;
}

.pixel-summary-clickable {
  cursor: pointer;
}

.pixel-summary-clickable:hover strong {
  color: var(--text-muted);
}

.ad-account-secondary-cell {
  color: var(--muted);
}

.pixel-list-table-wrap {
  max-height: min(60vh, 520px);
  overflow: auto;
}

.pixel-list-table {
  border-collapse: collapse;
  width: 100%;
}

.pixel-list-table th, .pixel-list-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 9px 10px;
  line-height: 1.25;
}

.pixel-list-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.pixel-list-table td:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.billing-summary-timezone, .ad-account-muted-status, .ad-account-muted-cell {
  color: var(--muted);
}

.ad-account-node-update-header {
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.ad-account-node-updated {
  white-space: nowrap;
}

.ad-account-statistics-updated-cell {
  align-items: center;
  gap: 6px;
  height: 100%;
  display: inline-flex;
}

.ad-account-statistics-history-button {
  border: 1px solid var(--info);
  flex: none;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-account-statistics-history-button {
    border: 1px solid color-mix(in srgb, var(--info) 22%, var(--border));
  }
}

.ad-account-statistics-history-button {
  color: var(--info);
  background: var(--info-soft);
  border-radius: 6px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-account-statistics-history-button {
    background: color-mix(in srgb, var(--info-soft) 64%, var(--surface));
  }
}

.ad-account-statistics-history-button {
  cursor: pointer;
}

.ad-account-statistics-history-button:hover {
  border-color: var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-account-statistics-history-button:hover {
    border-color: color-mix(in srgb, var(--info) 58%, var(--border));
  }
}

.ad-account-statistics-history-button:hover {
  background: var(--info-soft);
}

.ad-account-statistics-history-dialog {
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.ad-account-statistics-history-summary {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 9px;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 9px 11px;
  display: flex;
}

.ad-account-statistics-history-summary > div {
  gap: 1px;
  min-width: 0;
  display: grid;
}

.ad-account-statistics-history-summary strong {
  color: var(--text);
}

.ad-account-statistics-history-summary span {
  color: var(--muted);
  font-size: 11px;
}

.ad-account-statistics-history-hint {
  color: var(--muted);
  margin: 0 0 9px;
  font-size: 11px;
}

.ad-account-statistics-history-table-wrap {
  border: 1px solid var(--border);
  border-radius: 9px;
  min-height: 0;
  overflow: auto;
}

.ad-account-statistics-history-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: max-content;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ad-account-statistics-history-table th, .ad-account-statistics-history-table td {
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
  min-width: 104px;
  padding: 8px 11px;
}

.ad-account-statistics-history-table th {
  z-index: 1;
  color: var(--muted);
  background: var(--surface-soft);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 650;
  position: sticky;
  top: 0;
}

.ad-account-statistics-history-table th:first-child, .ad-account-statistics-history-table td:first-child {
  z-index: 2;
  text-align: left;
  background: var(--surface);
  min-width: 138px;
  position: sticky;
  left: 0;
}

.ad-account-statistics-history-table th:first-child {
  z-index: 3;
  background: var(--surface-soft);
}

.ad-account-statistics-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.ad-account-statistics-history-table td:first-child strong, .ad-account-statistics-history-table td:first-child small {
  display: block;
}

.ad-account-statistics-history-table td:first-child small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 9.5px;
}

.ad-account-statistics-history-dialog > .pagination {
  flex: none;
  margin-top: 10px;
}

.ad-account-status {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  height: 100%;
  font-weight: 600;
  display: inline-flex;
}

.ad-account-status-active {
  color: var(--success);
}

.ad-account-status-suspended {
  color: var(--warning);
}

.ad-account-status-dot {
  background: currentColor;
  border-radius: 50%;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
}

.ad-account-raw-status-cell {
  justify-content: center;
  align-items: center;
  display: flex;
}

.ad-account-status-indicators {
  justify-content: center;
  align-items: center;
  gap: 5px;
  display: flex;
}

.ad-account-billing-restriction {
  color: #e53935;
  flex: none;
  justify-content: center;
  align-items: center;
  line-height: 1;
  display: inline-flex;
}

.ad-account-billing-restriction > svg {
  stroke-width: 2.5px;
  width: 15px;
  height: 15px;
}

.ad-account-billing-restriction-hold {
  border: 1px solid #e53935;
  border-radius: 3px;
  padding: 1px;
}

.ad-account-raw-status-dot {
  border-radius: 50%;
  width: 7px;
  height: 7px;
  display: block;
}

.ad-account-raw-status-dot-active {
  background: var(--success);
}

.ad-account-raw-status-dot-danger {
  background: #e53935;
}

.ad-account-raw-status-dot-danger-light {
  background: #ff6f6f;
}

.ad-account-raw-status-dot-debt {
  background: #e3f0fa;
  border: 1px solid #80b5df;
}

.ad-account-raw-status-dot-unknown {
  background: #9ca3af;
}

.data-grid .ag-row.ad-account-row-disabled .ag-cell {
  background: #ff000021 !important;
}

.data-grid .ag-row.ad-account-row-disabled-light .ag-cell {
  background: #ff6f6f26 !important;
}

.data-grid .ag-row.ad-account-row-debt .ag-cell {
  background: #e3f0fa !important;
}

.profile-ad-account-status-summary {
  align-items: center;
  gap: 4px;
  height: 100%;
  display: inline-flex;
}

.profile-ad-account-status-chip {
  box-sizing: border-box;
  color: #fff;
  background: #64748b;
  border: 0;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  height: 19px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 720;
  line-height: normal;
  display: inline-flex;
  box-shadow: 0 1px 1px #0f172a29;
}

.profile-ad-account-status-chip-active {
  background: #43b77a;
  border-color: #279c63;
}

.profile-ad-account-status-chip-risk-payment {
  background: #f17175;
  border-color: #e85d62;
}

.profile-ad-account-status-chip-ads-integrity-policy {
  background: #e4474f;
  border-color: #cf353d;
}

.profile-ad-account-status-chip-debt {
  background: #7aa2eb;
  border-color: #397ac9;
}

.profile-ad-account-status-chip-other {
  background: #8190a2;
  border-color: #6b7b8e;
}

.resource-edit-button {
  width: 28px;
  height: 28px;
  color: var(--muted-foreground, #6b7280);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  place-items: center;
  display: inline-grid;
}

.resource-edit-button:hover {
  color: #1877f2;
  background: #eef4ff;
}

.ad-account-details-modal label {
  gap: 6px;
  font-weight: 600;
  display: grid;
}

.ad-account-details-modal input {
  width: 100%;
}

.ad-account-details-modal dl {
  grid-template-columns: 150px 1fr;
  gap: 10px 16px;
  margin: 20px 0 0;
  display: grid;
}

.ad-account-details-modal dt {
  color: #6b7280;
}

.ad-account-details-modal dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.business-manager-status-cell {
  justify-content: center;
  align-items: center;
  display: flex;
}

.business-manager-status-dot {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: block;
}

.business-manager-status-dot-active {
  background: var(--success);
}

.business-manager-status-dot-disabled {
  background: var(--danger);
}

.facebook-sync-indicator-cell {
  justify-content: center;
  align-items: center;
  display: flex;
}

.data-grid .ag-cell.facebook-sync-indicator-cell:not(.ag-cell-inline-editing) > .ag-cell-wrapper {
  min-width: 12px !important;
}

.facebook-sync-dot {
  flex: 0 0 10px;
  min-width: 10px;
  max-width: 10px;
  min-height: 10px;
  max-height: 10px;
  display: block;
  overflow: visible;
  width: 10px !important;
  height: 10px !important;
}

.profile-name-cell {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
}

.profile-name-with-status {
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  display: inline-flex;
}

.profile-name-with-status .facebook-sync-dot {
  flex: 0 0 10px;
}

.ad-account-name-cell {
  font-weight: 400;
}

.billing-summary > small {
  color: var(--muted);
  font-size: 11px;
}

.billing-summary-business-location {
  font-weight: 650;
  color: #d93025 !important;
  font-size: 10px !important;
}

.billing-summary-spend-warning {
  color: #b77600 !important;
}

.billing-summary-spend-danger {
  color: #d04a4a !important;
}

.billing-summary-column-header .ag-header-cell-text {
  text-transform: none;
}

.billing-spend-cap {
  background: #dbdbdb;
  border-radius: 2px;
  width: 76%;
  height: 3px;
  margin-top: 2px;
  overflow: hidden;
}

.billing-spend-cap > span {
  border-radius: inherit;
  background: #a9a9a9;
  height: 100%;
  display: block;
}

.billing-spend-cap-notice > span {
  background: #ffe0a6;
}

.billing-spend-cap-warning > span {
  background: #f59e0b;
}

.billing-spend-cap-danger > span {
  background: #ffadad;
}

.billing-summary-postpay {
  color: var(--success);
  font-weight: 700;
}

.billing-summary-prepay {
  color: var(--info);
  font-weight: 650;
}

.payment-methods-cell {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  height: 100%;
  line-height: 1.15;
  display: flex;
}

.payment-methods-primary {
  align-items: center;
  gap: 5px;
  min-width: 0;
  display: flex;
}

.payment-methods-cell > span, .payment-methods-cell > small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.payment-methods-cell > small {
  color: var(--warning);
  font-size: 11px;
}

.payment-method-list {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  display: inline-flex;
}

.payment-method-summary {
  min-width: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 2px 4px;
}

.payment-method-summary:hover {
  background: var(--surface-hover);
}

.payment-method-copy {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.payment-method-copy > small {
  color: var(--muted-foreground);
  font-size: 10px;
}

.payment-method-total {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.payment-method-inactive-count {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  display: inline-flex;
}

.payment-method-main-line {
  align-items: center;
  gap: 6px;
  display: flex;
}

.payment-method-primary-badge {
  border: 1px solid var(--border-strong);
  padding: 1px 6px;
}

@supports (color: color-mix(in lab, red, red)) {
  .payment-method-primary-badge {
    border: 1px solid color-mix(in srgb, var(--border-strong) 55%, transparent);
  }
}

.payment-method-primary-badge {
  border-color: var(--success);
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  .payment-method-primary-badge {
    border-color: color-mix(in srgb, var(--success) 45%, transparent);
  }
}

.payment-method-primary-badge {
  background: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  .payment-method-primary-badge {
    background: color-mix(in srgb, var(--success) 14%, var(--surface));
  }
}

.payment-method-primary-badge {
  color: var(--success);
  font-size: 10px;
  font-weight: 650;
}

.payment-method-details-list {
  gap: 8px;
  display: grid;
}

.payment-method-details-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: flex;
  position: relative;
}

.payment-method-details-item-primary {
  border-color: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  .payment-method-details-item-primary {
    border-color: color-mix(in srgb, var(--success) 45%, var(--border));
  }
}

.payment-method-details-item-primary {
  background: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  .payment-method-details-item-primary {
    background: color-mix(in srgb, var(--success) 9%, var(--surface));
  }
}

.payment-method-details-item-loading > :not(.payment-method-action-loading) {
  opacity: .18;
}

.payment-method-action-loading {
  border-radius: inherit;
  background: var(--muted-foreground);
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
  gap: 8px !important;
  display: flex !important;
}

@supports (color: color-mix(in lab, red, red)) {
  .payment-method-action-loading {
    background: color-mix(in srgb, var(--muted-foreground) 13%, var(--surface));
  }
}

.payment-method-action-loading {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 650;
}

.payment-method-action-spinner {
  border: 2px solid var(--muted-foreground);
  width: 15px;
  height: 15px;
}

@supports (color: color-mix(in lab, red, red)) {
  .payment-method-action-spinner {
    border: 2px solid color-mix(in srgb, var(--muted-foreground) 30%, transparent);
  }
}

.payment-method-action-spinner {
  border-top-color: var(--foreground);
  border-radius: 50%;
  animation: .7s linear infinite spin;
}

.payment-method-details-item > div {
  gap: 4px;
  display: grid;
}

.payment-method-details-copy {
  flex: 1;
}

.payment-method-actions {
  grid-auto-flow: column;
  margin-left: auto;
  gap: 6px !important;
  display: flex !important;
}

.payment-method-actions button {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--foreground);
  cursor: pointer;
  border-radius: 6px;
  padding: 5px 9px;
}

.payment-method-actions button:last-child {
  color: var(--danger);
}

.payment-method-details-item small {
  color: var(--muted-foreground);
}

.payment-method-item {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.payment-brand-mark, .payment-brand-mark-fallback {
  flex: none;
  width: 42px;
  height: 24px;
}

.payment-brand-mark {
  color: var(--border-strong);
  display: block;
}

.payment-brand-mark-fallback {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-foreground);
  letter-spacing: .02em;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  font-weight: 750;
  display: inline-flex;
}

.payment-method-last-four {
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.ad-entity-readonly-switch {
  align-items: center;
  height: 100%;
  display: inline-flex;
}

.ad-entity-readonly-switch .toggle-switch:disabled {
  cursor: default;
  opacity: 1;
}

.ad-entity-switch {
  align-items: center;
  height: 100%;
  display: inline-flex;
}

.ad-entity-status {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  line-height: 1.2;
  display: flex;
  overflow: hidden;
}

.ad-entity-status > span, .ad-entity-status > small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ad-entity-status-badge {
  border: 1px solid #0000;
  border-radius: 4px;
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 9px;
  line-height: 1;
}

.ad-entity-status-badge-active {
  color: #fff;
  background: #4caf73;
  border-color: #4caf73;
  font-weight: 650;
}

.ad-entity-status-badge-paused {
  color: #6b7280;
  background: #fff;
  border-color: #d1d5db;
  font-weight: 600;
}

.ad-entity-status-badge-danger {
  color: #c7332d;
  background: #fff0ef;
  border-color: #ef6a64;
  font-weight: 650;
}

:root[data-theme="dark"] .ad-entity-status-badge {
  color: #e7e7eb;
  background: #26262a;
  border-color: #3d3d44;
}

:root[data-theme="dark"] .ad-entity-status-badge-active {
  color: #f1fff7;
  background: #226542;
  border-color: #2e8f5e;
}

:root[data-theme="dark"] .ad-entity-status-badge-paused {
  color: #d1d1d7;
  background: #29292d;
  border-color: #45454d;
}

:root[data-theme="dark"] .ad-entity-status-badge-danger {
  color: #ff8c86;
  background: #351f1e;
  border-color: #7d3936;
}

:root[data-theme="dark"] .ad-entity-status-code {
  color: #a9a9b2;
}

:root[data-theme="dark"] .ad-entity-status-badge-active .ad-entity-status-code {
  color: #ebfff4bd;
}

.ad-entity-status-badge-active .ad-entity-status-code {
  color: #ffffffc2;
}

.ad-entity-status-code {
  color: var(--muted);
  margin-left: 4px;
  font-size: 11px;
  font-weight: 500;
}

.ad-entity-rejected {
  color: #dc2626;
  background: #fee2e2;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}

:root[data-theme="dark"] .ad-entity-rejected {
  color: #ff9ca9;
  background: #4a282e;
}

.ad-entity-rejection-actions {
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  display: flex;
  overflow: hidden;
}

.ad-entity-rejection-actions > * {
  flex: none;
}

.ad-entity-rejection-button {
  border: 1px solid var(--info);
  height: 20px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-entity-rejection-button {
    border: 1px solid color-mix(in srgb, var(--info) 22%, transparent);
  }
}

.ad-entity-rejection-button {
  color: var(--info);
  background: var(--info);
  border-radius: 999px;
  padding: 0 8px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-entity-rejection-button {
    background: color-mix(in srgb, var(--info) 11%, var(--surface));
  }
}

.ad-entity-rejection-button {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.ad-entity-rejection-button:hover {
  background: var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-entity-rejection-button:hover {
    background: color-mix(in srgb, var(--info) 17%, var(--surface));
  }
}

.ad-rejection-dialog {
  max-height: min(780px, 100vh - 48px);
}

.ad-rejection-dialog-content {
  min-height: 0;
  padding: 18px 20px 22px;
  overflow-y: auto;
}

.ad-rejection-ad-name {
  color: var(--text);
  margin: 0;
  font-weight: 650;
}

.ad-rejection-summary {
  color: var(--muted);
  margin: 4px 0 16px;
  font-size: 13px;
}

.ad-rejection-reason-list {
  gap: 12px;
  display: grid;
}

.ad-rejection-reason-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 14px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-rejection-reason-card {
    background: color-mix(in srgb, var(--surface) 96%, var(--info));
  }
}

.ad-rejection-reason-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  line-height: 1.5;
}

.ad-rejection-reason-card section {
  margin-top: 13px;
}

.ad-rejection-reason-card h4 {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.ad-rejection-reason-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.ad-rejection-reason-heading h3 {
  margin: 0;
  font-size: 15px;
}

.ad-rejection-reason-heading span {
  color: var(--muted);
  flex: none;
  font-size: 11px;
}

.ad-rejection-object {
  color: var(--info);
  margin-top: 8px;
  font-size: 12px;
  display: inline-block;
}

.ad-rejection-reason-card .ad-rejection-regions {
  color: var(--warning);
  font-size: 12px;
  font-weight: 650;
}

.ad-entity-budget-field {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 7px;
  align-items: stretch;
  width: 126px;
  height: 30px;
  transition: border-color .12s, box-shadow .12s;
  display: inline-flex;
  overflow: hidden;
}

.ad-entity-budget-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-entity-budget-field:focus-within {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

.ad-entity-budget-field.is-readonly {
  background: var(--surface-soft);
}

.ad-entity-budget-input {
  width: 0;
  min-width: 0;
  color: var(--text);
  font: inherit;
  text-align: center;
  background: none;
  border: 0;
  outline: 0;
  flex: auto;
  padding: 0 8px;
}

.ad-entity-budget-input:read-only {
  color: var(--text-muted);
  cursor: default;
}

.ad-entity-budget-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.ad-entity-budget-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.campaign-tracker-field {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  height: 30px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  outline: none;
  padding: 0 9px;
  font-size: 12px;
  display: block;
}

.campaign-tracker-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .campaign-tracker-field:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 16%, transparent);
  }
}

.ad-entity-budget-currency {
  border-left: 1px solid var(--border);
  min-width: 30px;
  color: var(--text-muted);
  background: var(--surface-soft);
  justify-content: center;
  align-items: center;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
}

.ad-entity-secondary-date-cell {
  color: var(--text-muted);
}

.ad-entity-bulk-control {
  align-items: flex-end;
  gap: 10px;
  display: flex;
}

.ad-entity-bulk-control label {
  color: var(--text-muted);
  gap: 6px;
  font-size: 12px;
  display: grid;
}

.ad-entity-bulk-control input {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 150px;
  height: 36px;
  color: var(--text);
  border-radius: 8px;
  padding: 0 10px;
}

.ad-entity-bulk-delete {
  white-space: nowrap;
}

.ad-entity-bulk-table-scroll {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  min-width: 0;
  overflow-x: auto;
}

.ad-entity-bulk-table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
  min-width: 780px;
}

.ad-entity-bulk-table th, .ad-entity-bulk-table td {
  text-align: left;
  vertical-align: middle;
  padding: 11px 12px;
}

.ad-entity-bulk-table th {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 650;
}

.ad-entity-bulk-table th + th, .ad-entity-bulk-table td + td {
  border-left: 1px solid var(--border);
}

.ad-entity-bulk-budget-input {
  border: 1px solid var(--border);
  width: 150px;
  height: 36px;
  color: var(--text);
  background: var(--surface);
  border-radius: 8px;
  padding: 0 10px;
}

.ad-entity-bulk-budget-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-entity-bulk-budget-input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

.ad-entity-bulk-empty {
  color: var(--muted);
}

.ad-entity-status > small {
  color: var(--warning);
  font-size: 11px;
}

.ad-entity-name-cell, .ad-entity-name-cell .ag-cell-wrapper, .ad-entity-name-cell .ag-cell-value {
  min-width: 0;
  overflow: hidden;
}

.ad-entity-name-cell .ag-cell-value {
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  display: block !important;
}

.ad-entity-account, .ad-entity-related {
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
  display: flex;
}

.ad-entity-account strong, .ad-entity-related strong, .ad-entity-account small, .ad-entity-related small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ad-entity-account small, .ad-entity-related small {
  color: var(--muted);
  font-size: 10px;
}

.ad-entity-count-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ad-entity-link-cell, .ad-entity-link-cell .ag-cell-wrapper, .ad-entity-link-cell .ag-cell-value {
  min-width: 0;
  overflow: hidden;
}

.ad-entity-link-cell a {
  min-width: 0;
  color: var(--accent);
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.ad-entity-link {
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  display: flex;
}

.ad-entity-copy-link {
  color: #687386;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d8dde5;
  border-radius: 4px;
  flex: 0 0 24px;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: inline-flex;
}

.ad-entity-copy-link:hover {
  color: #344054;
  background: #f4f6f8;
  border-color: #aeb8c7;
}

.business-manager-ad-accounts-count {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.business-manager-copy-link {
  width: 19px;
  height: 19px;
  color: var(--muted);
  border: 1px solid var(--border);
  place-items: center;
  padding: 0;
  display: inline-grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .business-manager-copy-link {
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  }
}

.business-manager-copy-link {
  cursor: pointer;
  background: none;
  border-radius: 4px;
}

.business-manager-copy-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .business-manager-copy-link:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.business-manager-copy-link:hover {
  background: var(--accent-soft);
}

.ad-account-id-cell {
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  display: inline-flex;
}

.ad-account-bm-marker {
  color: #526174;
  flex: 0 0 15px;
  place-items: center;
  width: 15px;
  height: 20px;
  margin-right: 2px;
  display: inline-grid;
}

.ad-account-bm-marker svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 10px;
  height: 16px;
}

.ad-account-id-cell > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.ad-account-id-copy {
  border: 1px solid var(--border);
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  display: inline-grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-account-id-copy {
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  }
}

.ad-account-id-copy {
  color: var(--text-muted);
  background: var(--surface);
  cursor: pointer;
  border-radius: 4px;
}

.ad-account-id-copy-am, .ad-account-id-copy-link {
  color: #1877f2;
  letter-spacing: -.02em;
  flex-basis: 26px;
  width: 26px;
  font-size: 9px;
  font-weight: 750;
}

.column-order-row-disabled {
  opacity: .45;
}

.column-order-row-disabled .column-drag-handle, .column-order-row-disabled label {
  cursor: not-allowed;
}

.ad-account-id-copy-link {
  flex-basis: 28px;
  width: 28px;
}

.ad-account-id-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-account-id-copy:hover {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  }
}

.ad-account-id-copy:hover {
  background: var(--accent-soft);
}

.ad-entity-texts-cell {
  padding-top: 7px;
  padding-bottom: 7px;
}

.ad-entity-text-lines {
  width: 100%;
  min-width: 0;
}

.ad-entity-text-lines > div {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ad-entity-thumbnail-cell {
  align-items: center;
  display: flex;
}

.ad-entity-thumbnail {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  cursor: pointer;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 40px;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.ad-entity-thumbnail img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.ad-entity-thumbnail-type {
  color: #fff;
  background: #0000009e;
  border-radius: 3px;
  padding: 1px 3px;
  font-size: 8px;
  line-height: 1.1;
  position: absolute;
  bottom: 2px;
  right: 3px;
}

.ad-entity-thumbnail-preview {
  z-index: 10000;
  pointer-events: none;
  border: 1px solid var(--border);
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 360px;
  display: flex;
  position: fixed;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-entity-thumbnail-preview {
    border: 1px solid color-mix(in srgb, var(--border) 78%, var(--text));
  }
}

.ad-entity-thumbnail-preview {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 16px 42px #0000003d;
}

.ad-entity-thumbnail-preview img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

.ad-entity-thumbnail-preview video {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.ad-entity-thumbnail-empty {
  color: var(--muted);
}

.data-grid .ag-row.profile-row-selected, .data-grid .ag-row.profile-row-selected.ag-row-even, .data-grid .ag-row.profile-row-selected.ag-row-odd, .data-grid .ag-row.profile-row-selected .ag-cell, .data-grid .ag-row.profile-row-selected:hover .ag-cell, .data-grid .ag-row.task-row-selected .ag-cell, .data-grid .ag-row.task-row-selected:hover .ag-cell {
  background: #c4f7b033 !important;
}

.table-refresh-loading {
  flex: 1;
  place-items: center;
  min-height: 0;
  display: grid;
}

.table-refresh-loading .state-card {
  width: 100%;
}

.profiles-panel, .resource-panel, .proxy-panel {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.profiles-grid, .resource-grid, .proxy-grid {
  flex: 1;
  height: auto;
  min-height: 0;
}

.tasks-grid, .audit-grid, .users-grid {
  height: min(72vh, 760px);
}

.tasks-delete-all-button {
  color: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .tasks-delete-all-button {
    color: color-mix(in srgb, var(--danger) 72%, var(--text));
  }
}

.tasks-delete-all-button {
  background: var(--danger-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .tasks-delete-all-button {
    background: color-mix(in srgb, var(--danger-soft) 48%, var(--surface-soft));
  }
}

.tasks-delete-all-button {
  border-color: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .tasks-delete-all-button {
    border-color: color-mix(in srgb, var(--danger) 16%, var(--border));
  }
}

.tasks-delete-all-button:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .tasks-delete-all-button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--danger-soft) 72%, var(--surface));
  }
}

.tasks-delete-all-button:hover:not(:disabled) {
  border-color: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .tasks-delete-all-button:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--danger) 24%, var(--border));
  }
}

@media (min-width: 761px) {
  .app-content:has(.tasks-page) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .app-content:has(.tasks-page) > .page-content {
    height: 100%;
    min-height: 0;
    display: flex;
    overflow: hidden;
  }

  .tasks-page, .tasks-panel {
    flex-direction: column;
    flex: 1;
    min-height: 0;
    display: flex;
  }

  .tasks-grid {
    flex: 1;
    height: auto;
    min-height: 0;
  }
}

.user-role-select {
  width: 100%;
  height: 28px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  border-radius: 7px;
  padding: 0 7px;
}

.user-role-select:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .72;
}

.user-active-control {
  align-items: center;
  height: 100%;
  display: inline-flex;
}

.user-actions-cell .ag-cell-wrapper, .user-actions-cell .ag-cell-value {
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.user-password-button {
  white-space: nowrap;
  height: 28px;
  min-height: 28px;
  padding: 3px 9px;
  font-size: 12px;
}

.user-password-description {
  color: var(--muted);
  font-size: 13px;
}

.user-password-description strong {
  color: var(--text);
}

.user-password-hint {
  color: var(--muted);
  font-size: 12px;
}

.mobile-profile-list {
  display: none;
}

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

.proxy-password-editor {
  width: 100%;
  height: 100%;
  color: var(--text);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--surface);
  border: 0;
  padding: 0 10px;
}

.proxy-check-error {
  color: var(--danger);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  display: block;
  overflow: hidden;
}

.grid-icon-button {
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  place-items: center;
  display: inline-grid;
}

.grid-icon-button:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-soft);
}

.profile-edit-button:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-hover);
}

.profile-action-buttons {
  align-items: center;
  gap: 2px;
  display: inline-flex;
}

.profile-play-button {
  color: var(--success);
}

.profile-play-button:hover:not(:disabled) {
  color: var(--success);
  background: var(--success-soft);
}

.profile-updating-status {
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.profile-updated-status {
  color: var(--muted);
}

.grid-icon-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.badge {
  border-radius: 999px;
  align-items: center;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  display: inline-flex;
}

.badge-neutral {
  color: var(--muted);
  background: var(--surface-hover);
}

.badge-success {
  color: var(--success);
  background: var(--success-soft);
}

.badge-warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.badge-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.badge-info {
  color: var(--info);
  background: var(--info-soft);
}

.bulk-bar {
  z-index: 25;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  height: 56px;
  min-height: 56px;
  padding: 7px 12px 7px 16px;
  display: flex;
  position: fixed;
  inset: auto 10px 6px 270px;
}

@supports (color: color-mix(in lab, red, red)) {
  .bulk-bar {
    background: color-mix(in srgb, var(--surface) 95%, transparent);
  }
}

.bulk-bar {
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: left .16s;
  overflow: hidden;
}

.sidebar-collapsed + .app-content .bulk-bar {
  left: 82px;
}

.bulk-selected-count {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}

.bulk-bar strong {
  color: var(--text);
}

.bulk-actions {
  flex: none;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  display: flex;
}

.bulk-bar .button {
  white-space: nowrap;
  border-radius: 8px;
  height: 34px;
  min-height: 34px;
  padding-inline: 10px;
  font-size: 12px;
}

.bulk-edit-button.button {
  padding-inline: 12px;
  font-weight: 650;
}

.bulk-selection-button.button {
  color: var(--muted);
}

.bulk-selection-button.button:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-hover);
}

.bulk-clear-selection-button.button:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-soft);
}

.state-card {
  min-height: 160px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
}

.state-card strong {
  color: var(--text);
}

.spinner {
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: .7s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dialog-overlay {
  z-index: 90;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  background: #0c101c5c;
  position: fixed;
  inset: 0;
}

.dialog-content {
  z-index: 91;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  width: min(560px, 100vw - 32px);
  max-height: min(85vh, 780px);
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 28px 80px #00000047;
}

.dialog-content-wide {
  width: min(760px, 100vw - 32px);
}

.dialog-content-wide.add-profile-dialog {
  width: min(1040px, 100vw - 32px);
}

.dialog-content-large {
  width: min(1320px, 70vw);
  max-height: min(90vh, 860px);
}

.dialog-content-full {
  flex-direction: column;
  width: 80vw;
  height: min(92vh, 940px);
  max-height: min(92vh, 940px);
  display: flex;
  overflow: hidden;
}

.dialog-header {
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  display: flex;
}

.dialog-header h2 {
  letter-spacing: -.02em;
  font-size: 17px;
  font-weight: 640;
}

.dialog-header .button {
  margin-left: auto;
}

.dialog-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  display: flex;
}

.ad-ai-dialog {
  width: min(1600px, 100vw - 32px);
  height: min(92vh, 940px);
  max-height: min(92vh, 940px);
  overflow: hidden;
}

.ad-ai-dialog > .dialog-header {
  flex: none;
  margin-bottom: 12px;
}

.ad-ai-form {
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-height: 0;
  display: flex;
}

.ad-ai-context {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) minmax(170px, 220px);
  align-items: end;
  gap: 12px;
  padding: 12px;
  display: grid;
}

.ad-ai-selection-summary {
  min-width: 0;
  color: var(--accent-strong);
  align-items: center;
  gap: 10px;
  display: flex;
}

.ad-ai-selection-summary > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.ad-ai-selection-summary strong, .ad-ai-selection-summary small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ad-ai-selection-summary strong {
  color: var(--text);
  font-size: 14px;
}

.ad-ai-selection-summary small {
  color: var(--muted);
  font-size: 12px;
}

.ad-ai-date-field {
  gap: 5px;
}

.ad-ai-question-field {
  gap: 6px;
}

.ad-ai-question-field textarea {
  resize: vertical;
  min-height: 92px;
  max-height: 180px;
}

.ad-ai-warning, .ad-ai-error {
  border-radius: 10px;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
}

.ad-ai-warning {
  color: var(--warning);
  border: 1px solid var(--warning);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-ai-warning {
    border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border));
  }
}

.ad-ai-warning {
  background: var(--warning-soft);
}

.ad-ai-warning svg {
  flex: none;
  margin-top: 1px;
}

.ad-ai-workspace {
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 12px;
  min-height: 0;
  display: grid;
}

.ad-ai-result-shell {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 12px;
  min-width: 0;
  min-height: 180px;
  overflow: hidden;
}

.ad-ai-history {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.ad-ai-history-heading {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 11px;
  display: flex;
}

.ad-ai-history-heading > div {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.ad-ai-history-heading svg {
  color: var(--accent-strong);
}

.ad-ai-history-heading strong {
  font-size: 12.5px;
}

.ad-ai-history-list {
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding: 7px;
  display: grid;
  overflow-y: auto;
}

.ad-ai-history-list > button {
  border: 1px solid var(--border);
  min-width: 0;
  color: var(--text);
  background: var(--surface-subtle);
  text-align: left;
  cursor: pointer;
  border-radius: 9px;
  gap: 5px;
  padding: 9px;
  display: grid;
}

.ad-ai-history-list > button:hover, .ad-ai-history-list > button.is-selected {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-ai-history-list > button:hover, .ad-ai-history-list > button.is-selected {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  }
}

.ad-ai-history-list > button:hover, .ad-ai-history-list > button.is-selected {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-ai-history-list > button:hover, .ad-ai-history-list > button.is-selected {
    background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  }
}

.ad-ai-history-list > button strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  line-height: 1.35;
  overflow: hidden;
}

.ad-ai-history-list > button small, .ad-ai-history-empty {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.ad-ai-history-status {
  width: fit-content;
  color: var(--muted);
  background: var(--surface-hover);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
}

.ad-ai-history-status.is-success {
  color: var(--success);
  background: var(--success-soft);
}

.ad-ai-history-status.is-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.ad-ai-history-status.is-active {
  color: var(--accent-strong);
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-ai-history-status.is-active {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  }
}

.ad-ai-history-empty {
  text-align: center;
  padding: 18px 10px;
}

.ad-ai-empty-result, .ad-ai-loading, .ad-ai-error {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 100%;
  padding: 24px;
  display: flex;
}

.ad-ai-empty-result, .ad-ai-loading {
  color: var(--muted);
}

.ad-ai-empty-result strong, .ad-ai-loading strong {
  color: var(--text);
  font-size: 14px;
}

.ad-ai-empty-result span, .ad-ai-loading span, .ad-ai-error span {
  font-size: 12.5px;
}

.ad-ai-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.ad-ai-result {
  height: 100%;
  padding: 16px;
  overflow-y: auto;
}

.ad-ai-result-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.ad-ai-result-heading > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.ad-ai-result-heading small {
  color: var(--muted);
  font-size: 11.5px;
}

.ad-ai-result-text {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 10px;
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.65;
}

.ad-ai-metadata {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  display: grid;
}

.ad-ai-metadata > div {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  min-width: 0;
  padding: 9px 10px;
}

.ad-ai-metadata dt {
  color: var(--muted);
  margin-bottom: 3px;
  font-size: 10.5px;
}

.ad-ai-metadata dd {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.ad-ai-result-warnings {
  border: 1px solid var(--warning);
  margin-top: 12px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-ai-result-warnings {
    border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border));
  }
}

.ad-ai-result-warnings {
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12px;
}

.ad-ai-result-warnings ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

.ad-ai-actions {
  flex: none;
  margin-top: 0;
  padding-top: 2px;
}

.bulk-ai-button.button {
  font-weight: 700;
}

@media (max-width: 900px) {
  .ad-ai-context {
    grid-template-columns: 1fr 1fr;
  }

  .ad-ai-selection-summary {
    grid-column: 1 / -1;
  }

  .ad-ai-metadata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-ai-workspace {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }

  .ad-ai-result-shell {
    min-height: 420px;
  }

  .ad-ai-history {
    min-height: 220px;
  }
}

.proxy-export-open {
  margin-right: auto;
}

.proxy-export-dialog {
  max-height: min(92vh, 940px);
}

.proxy-export-formats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  padding-right: 3px;
  display: grid;
  overflow: auto;
}

.proxy-export-format {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 10px;
  min-width: 0;
  padding: 12px;
}

.proxy-export-format-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  display: flex;
}

.proxy-export-format-header > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.proxy-export-format-header strong {
  font-size: 12.5px;
}

.proxy-export-format-header small {
  color: var(--muted);
  font-family: Cascadia Code, Consolas, monospace;
  font-size: 10.5px;
}

.proxy-export-format-header .button {
  flex: none;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.proxy-export-format textarea {
  resize: vertical;
  width: 100%;
  min-height: 112px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
}

@media (max-width: 800px) {
  .proxy-export-formats {
    grid-template-columns: 1fr;
  }
}

.dialog-description {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.code-input {
  font-family: Cascadia Code, Consolas, monospace;
  font-size: 12px;
}

.segmented {
  background: var(--surface-soft);
  border-radius: 9px;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  display: grid;
}

.segmented button {
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  height: 34px;
  font-size: 12.5px;
  font-weight: 520;
}

.segmented button.active {
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 2px 8px #141c3014;
}

.add-profile-modes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.add-profile-modes button {
  white-space: nowrap;
}

.profile-mode-text, .profile-mode-file {
  border-radius: 5px;
  padding: 2px 6px;
  font-weight: 650;
}

.profile-mode-text {
  color: #3979c7;
  background: #3979c71a;
}

.profile-mode-file {
  color: #23845b;
  background: #23845b1c;
}

.apply-field {
  grid-template-columns: 20px 150px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: grid;
}

.confirmation-summary {
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 9px;
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 13px;
}

.danger-text {
  color: var(--danger);
}

.danger-summary {
  color: var(--danger);
  background: var(--danger-soft);
}

.proxy-source {
  min-height: 210px;
  line-height: 1.55;
}

.proxy-parse-summary {
  color: var(--success);
  background: var(--success-soft);
  border-radius: 9px;
  gap: 4px;
  padding: 10px 12px;
  font-size: 12px;
  display: grid;
}

.proxy-parse-summary.has-errors {
  color: var(--danger);
  background: var(--danger-soft);
}

.proxy-parse-summary small {
  font-size: 11.5px;
}

.form-grid.equal {
  grid-template-columns: 1fr 1fr;
}

.single-profile-form {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  align-items: start;
  gap: 10px 16px;
}

.single-profile-name {
  grid-area: 1 / 1;
}

.single-profile-credentials {
  grid-area: 2 / 1;
}

.single-profile-cookies {
  grid-area: 3 / 1;
}

.single-profile-user-agent {
  grid-area: 4 / 1;
}

.single-profile-email {
  grid-area: 5 / 1;
}

.single-profile-two-factor {
  grid-area: 6 / 1;
}

.single-profile-group {
  grid-area: 1 / 2;
}

.single-profile-proxy {
  z-index: 3;
  grid-area: 2 / 2;
  position: relative;
}

.single-profile-proxy .select-with-refresh .searchable-select-popover {
  z-index: 120;
  top: calc(100% + 5px);
  bottom: auto;
}

.single-profile-new-proxy {
  grid-area: 3 / 2 / span 4;
  min-width: 0;
}

.profile-inline-proxy {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 11px;
  transition: border-color .14s, background-color .14s;
  overflow: hidden;
}

.profile-inline-proxy-enabled {
  border-color: #7bd957;
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-inline-proxy-enabled {
    border-color: color-mix(in srgb, #7bd957 48%, var(--border));
  }
}

.profile-inline-proxy-enabled {
  background: #c4f7b0;
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-inline-proxy-enabled {
    background: color-mix(in srgb, #c4f7b0 9%, var(--surface));
  }
}

.profile-inline-proxy-enabled {
  box-shadow: 0 0 0 1px #7bd95721;
}

.profile-inline-proxy-header {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  display: grid;
}

.profile-inline-proxy-icon {
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.profile-inline-proxy-enabled .profile-inline-proxy-icon {
  color: #24911f;
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-inline-proxy-enabled .profile-inline-proxy-icon {
    color: color-mix(in srgb, #24911f 82%, var(--text));
  }
}

.profile-inline-proxy-enabled .profile-inline-proxy-icon {
  border-color: #7bd957;
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-inline-proxy-enabled .profile-inline-proxy-icon {
    border-color: color-mix(in srgb, #7bd957 38%, var(--border));
  }
}

.profile-inline-proxy-header > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.profile-inline-proxy-header strong {
  font-size: 12.5px;
  font-weight: 650;
}

.profile-inline-proxy-header small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  overflow: hidden;
}

.profile-inline-proxy-toggle.button {
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  font-size: 11.5px;
}

.profile-inline-proxy-fields {
  border-top: 1px solid var(--border);
  gap: 8px;
  padding: 0 11px 11px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-inline-proxy-fields {
    border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  }
}

.profile-inline-proxy-fields {
  padding-top: 10px;
}

.profile-inline-proxy-fields .field {
  gap: 4px;
}

.profile-inline-proxy-fields .field > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 560;
}

.profile-inline-proxy-fields input, .profile-inline-proxy-fields select {
  height: 32px;
  min-height: 32px;
  font-size: 11.5px;
}

.profile-inline-proxy-kind, .profile-inline-proxy-auth {
  gap: 7px;
}

.profile-inline-proxy-endpoint {
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 7px;
}

.profile-inline-proxy-check {
  align-items: center;
}

.profile-inline-proxy-check > .button {
  white-space: nowrap;
  min-height: 32px;
}

.profile-inline-proxy-check .proxy-draft-result {
  min-height: 32px;
  padding-block: 5px;
}

.profile-inline-proxy-check .proxy-draft-result strong {
  align-items: center;
  gap: 4px;
  display: flex;
}

.single-profile-form > .dialog-actions {
  grid-area: 7 / 1 / auto / -1;
  margin-top: 6px;
}

.single-group-controls, .single-input-with-action {
  grid-template-columns: minmax(0, 1fr) repeat(3, 36px);
  align-items: center;
  gap: 6px;
  display: grid;
}

.single-group-controls > .button, .single-input-with-action > button {
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-grid;
}

.single-input-with-action {
  grid-template-columns: minmax(0, 1fr) 36px;
}

.single-input-with-action > button {
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  border-radius: 8px;
}

.single-input-with-action > button:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.profile-cookies-input {
  resize: none;
  height: calc(4.65em + 16px);
  min-height: calc(4.65em + 16px);
  max-height: calc(4.65em + 16px);
}

.profile-email-grid > .field {
  align-content: start;
}

.profile-email-grid input {
  height: 36px;
}

.proxy-endpoint-grid {
  grid-template-columns: minmax(0, 7fr) minmax(105px, 3fr);
}

.proxy-bulk-filters {
  align-items: start;
}

.proxy-prefix-hint {
  color: var(--muted);
  margin-top: -10px;
  font-size: 11.5px;
}

.proxy-draft-check {
  align-items: stretch;
  gap: 9px;
  display: flex;
}

.proxy-draft-result {
  border-radius: 8px;
  flex: 1;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding: 7px 10px;
  font-size: 12px;
  display: grid;
}

.proxy-draft-result strong {
  font-size: 12px;
  font-weight: 590;
}

.proxy-draft-result span {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  overflow: hidden;
}

.proxy-draft-success {
  color: var(--success);
  background: var(--success-soft);
}

.proxy-draft-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.searchable-select {
  width: 100%;
  min-width: 0;
  position: relative;
}

.searchable-select-trigger {
  width: 100%;
  min-height: 36px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: 13px;
  display: flex;
}

.searchable-select-trigger:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.searchable-select-value {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: inline-flex;
}

.searchable-select-option-content {
  align-content: center;
  gap: 1px;
  min-width: 0;
  display: grid;
}

.searchable-select-option-content > span:last-child {
  min-width: 0;
}

.searchable-select-option-heading {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.searchable-select-option-heading strong {
  min-width: 0;
}

.group-color-dot {
  border: 1px solid;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .group-color-dot {
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  }
}

.group-color-dot {
  box-shadow: 0 0 0 2px var(--surface);
  border-radius: 50%;
}

.profile-group-label {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.group-name-priority-row {
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
  display: grid;
}

.group-name-color-control {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.group-color-input {
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 4px;
}

.group-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.group-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}

.group-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 50%;
}

.searchable-select-popover {
  z-index: 110;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  overflow: hidden;
}

.searchable-select-popover-portal {
  z-index: 1000;
  pointer-events: auto;
  box-sizing: border-box;
  flex-direction: column;
  display: flex;
  position: fixed;
  right: auto;
  overflow: hidden;
}

.searchable-select-popover-portal .searchable-select-options {
  flex: auto;
  min-height: 0;
  max-height: none;
  padding-bottom: 4px;
  overflow-y: auto;
}

.searchable-select-popover > input {
  width: 100%;
  height: 34px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 7px;
  outline: none;
  padding: 6px 9px;
  font-size: 12.5px;
}

.searchable-select-popover > input:focus {
  border-color: var(--accent);
}

.searchable-select-options {
  gap: 2px;
  max-height: min(440px, 100vh - 180px);
  margin-top: 5px;
  display: grid;
  overflow-y: auto;
}

.searchable-select-options > button {
  min-height: 38px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  display: flex;
}

.searchable-select-options > button:hover, .searchable-select-options > button[aria-selected="true"] {
  background: var(--surface-hover);
}

.searchable-select-options > button > span {
  min-width: 0;
  display: grid;
}

.searchable-select-options strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 560;
  overflow: hidden;
}

.searchable-select-options small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 430;
  display: block;
  overflow: hidden;
}

.profile-group-filter .searchable-select-options small {
  gap: 8px;
  display: flex;
}

.searchable-select-options .searchable-select-option-accent {
  color: #159447;
  font-weight: 650;
}

.profile-group-filter .searchable-select-options > button[aria-selected="true"] .searchable-select-option-accent {
  color: #bdf5cd;
}

.select-empty, .select-empty-state {
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 430;
  display: block;
}

.select-with-refresh {
  align-items: stretch;
  gap: 7px;
  display: flex;
}

.select-with-refresh .button {
  flex: 0 0 38px;
  width: 38px;
  padding: 0;
}

.select-with-refresh .searchable-select-popover {
  top: auto;
  bottom: calc(100% + 5px);
}

.bulk-user-agent-control input {
  flex: 1;
  min-width: 0;
}

.bulk-actions-dialog {
  width: min(1440px, 100vw - 40px);
  max-height: calc(100vh - 36px);
  padding: 12px;
  top: 18px;
  transform: translateX(-50%);
}

.bulk-actions-dialog:focus, .bulk-actions-dialog:focus-visible {
  outline: none;
}

.bulk-actions-dialog > .dialog-header {
  min-height: 28px;
  margin-bottom: 8px;
}

.bulk-actions-dialog > .dialog-header h2 {
  font-size: 15px;
}

.ad-account-bulk-dialog {
  flex-direction: column;
  height: calc(100vh - 36px);
  display: flex;
  overflow: hidden;
}

.ad-account-bulk-dialog > .bulk-management-layout {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.ad-account-bulk-dialog .bulk-management-panel {
  min-height: 100%;
}

.card-binding-dialog {
  width: min(1600px, 100vw - 40px);
  height: min(90vh, 940px);
  max-height: calc(100vh - 32px);
  top: 50%;
  transform: translate(-50%, -50%);
}

.card-binding-dialog > .card-binding-layout {
  flex: 1;
  min-height: 0;
}

.card-binding-layout {
  grid-template-columns: minmax(280px, 3fr) minmax(0, 7fr);
  gap: 12px;
  display: grid;
}

.card-binding-source, .card-binding-accounts {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 12px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  display: flex;
}

.card-binding-source {
  overflow-y: auto;
}

.card-binding-section-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  display: flex;
}

.card-binding-section-heading > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.card-binding-section-heading h3 {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

.card-binding-section-heading p, .card-binding-section-heading > span {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.card-binding-section-heading > span {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  flex: none;
  padding: 4px 8px;
}

.card-binding-source-field {
  flex-direction: column;
  flex: none;
  display: flex;
}

.card-binding-source-field textarea {
  resize: none;
  width: 100%;
  height: calc(7.75em + 20px);
  min-height: calc(7.75em + 20px);
  max-height: calc(7.75em + 20px);
  font-family: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.card-binding-source-summary {
  color: var(--muted);
  gap: 4px;
  font-size: 12px;
  display: grid;
}

.card-binding-account-settings {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  gap: 9px;
  padding: 11px;
  display: grid;
}

.card-binding-account-settings > strong, .card-binding-account-settings-toggle > strong {
  color: var(--text);
  font-size: 12.5px;
}

.card-binding-account-settings-toggle {
  cursor: pointer;
  align-items: center;
  gap: 8px;
  display: flex;
}

.card-binding-account-settings-toggle > input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.card-binding-account-settings-disabled {
  background: var(--surface-muted);
  opacity: .62;
}

.card-binding-account-settings .field {
  gap: 5px;
}

.card-binding-account-settings .searchable-select-options {
  max-height: 190px;
}

.card-binding-sequential {
  color: var(--text);
  cursor: pointer;
  align-items: flex-start;
  gap: 9px;
  display: flex;
}

.card-binding-sequential > input {
  cursor: pointer;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
}

.card-binding-sequential > span {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.card-binding-sequential strong {
  font-size: 12.5px;
}

.card-binding-sequential small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.card-binding-sequential.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}

.card-binding-sequential.is-disabled > input {
  cursor: not-allowed;
}

.card-binding-source-error, .card-binding-table-state.is-error {
  color: var(--danger);
}

.card-binding-start {
  width: 100%;
  min-height: 40px;
}

.card-binding-accounts {
  overflow: hidden;
}

.card-binding-table-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.card-binding-section-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.card-binding-section-actions > span {
  border: 1px solid var(--border);
  border-radius: 999px;
  place-items: center;
  min-width: 28px;
  height: 28px;
  font-weight: 700;
  display: grid;
}

.card-binding-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1040px;
  font-size: 12px;
}

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

.card-binding-table th {
  z-index: 1;
  color: var(--muted);
  background: var(--surface-soft);
  letter-spacing: .025em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
  position: sticky;
  top: 0;
}

.card-binding-table tbody tr:last-child td {
  border-bottom: 0;
}

.card-binding-table th:first-child, .card-binding-table td:first-child {
  width: 190px;
}

.card-binding-table th:nth-child(2), .card-binding-table td:nth-child(2) {
  width: 220px;
}

.card-binding-table th:nth-child(3), .card-binding-table td:nth-child(3) {
  width: 96px;
}

.card-binding-table th:nth-child(4), .card-binding-table td:nth-child(4) {
  width: 74px;
}

.card-binding-table th:nth-child(5), .card-binding-table td:nth-child(5) {
  width: 118px;
}

.card-binding-table th:nth-child(7), .card-binding-table td:nth-child(7) {
  width: 130px;
}

.card-binding-table th:nth-child(8), .card-binding-table td:nth-child(8) {
  text-align: center;
  width: 46px;
}

.card-binding-retry-button {
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  border-radius: 8px;
  place-items: center;
  padding: 0;
  display: inline-grid;
}

.card-binding-retry-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.card-binding-retry-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.card-binding-table input {
  width: 100%;
  min-height: 34px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 7px;
  outline: none;
  padding-inline: 9px;
  font-size: 12px;
}

.card-binding-table input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.card-binding-table td strong, .card-binding-table td small {
  display: block;
}

.card-binding-table td strong {
  color: var(--text);
  font-weight: 600;
}

.card-binding-table td small {
  color: var(--muted);
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 10.5px;
  overflow: hidden;
}

.card-binding-table .badge {
  white-space: nowrap;
}

.card-binding-log {
  min-width: 210px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.card-binding-log .link-button {
  color: #2563eb;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  margin-top: 4px;
  padding: 0;
  text-decoration: underline;
  display: block;
}

.app-sharing-table-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  min-height: 0;
  overflow: auto;
}

.app-sharing-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

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

.app-sharing-table th {
  z-index: 1;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
  position: sticky;
  top: 0;
}

.app-sharing-table tbody tr:last-child td {
  border-bottom: 0;
}

.app-sharing-table th:first-child, .app-sharing-table th:nth-child(2) {
  width: 25%;
}

.app-sharing-table th:nth-child(3) {
  width: 15%;
}

.app-sharing-table th:nth-child(4) {
  width: 35%;
}

.app-sharing-log {
  color: var(--muted);
  font-size: 13px;
}

.business-manager-creation-dialog {
  width: min(1120px, 100vw - 40px);
  height: min(72vh, 720px);
  max-height: calc(100vh - 48px);
  top: 50%;
  transform: translate(-50%, -50%);
}

.business-manager-name-cell {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: inline-flex;
}

.business-manager-actions-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
  display: flex;
}

.business-manager-creation-dialog > .business-manager-creation-layout {
  flex: 1;
  min-height: 0;
}

.business-manager-creation-layout {
  grid-template-columns: minmax(300px, 3fr) minmax(0, 7fr);
  gap: 12px;
  display: grid;
}

.business-manager-creation-settings, .business-manager-creation-profiles {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 12px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  display: flex;
}

.business-manager-creation-settings {
  overflow-y: auto;
}

.business-manager-creation-profiles {
  overflow: hidden;
}

.business-manager-creation-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  display: flex;
}

.business-manager-creation-heading > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.business-manager-creation-heading h3 {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

.business-manager-creation-heading p, .business-manager-creation-heading > span {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.business-manager-creation-heading > span {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  flex: none;
  padding: 4px 8px;
}

.business-manager-creation-form {
  gap: 10px;
  display: grid;
}

.business-manager-creation-form .field {
  gap: 5px;
}

.business-manager-creation-form input, .business-manager-creation-form select {
  width: 100%;
  min-height: 38px;
}

.business-manager-creation-form select:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 1;
}

.compact-bm-ad-account-form {
  gap: 7px;
}

.compact-bm-ad-account-form .field > span {
  text-align: center;
  font-size: 12px;
  font-weight: 650;
}

.compact-bm-ad-account-form input, .compact-bm-ad-account-form select {
  min-height: 34px;
  font-size: 12px;
}

.business-manager-macro-buttons {
  justify-content: center;
  gap: 5px;
  margin-top: -3px;
  display: flex;
}

.business-manager-macro-buttons button, .business-manager-ads-link {
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  border-radius: 5px;
  font-size: 11px;
}

.business-manager-macro-buttons button {
  min-height: 25px;
  padding: 2px 7px;
}

.business-manager-compact-checkbox {
  align-items: center;
  gap: 7px;
  min-height: 28px;
  font-size: 12px;
  display: flex;
}

.business-manager-compact-checkbox input {
  width: 15px;
  min-height: 15px;
  margin: 0;
}

.business-manager-id-cell {
  align-items: center;
  gap: 7px;
  height: 100%;
  display: flex;
}

.business-manager-ads-link {
  color: #fff;
  background: #397cba;
  border-color: #397cba;
  flex: none;
  padding: 2px 5px;
  font-weight: 700;
}

.business-manager-macros {
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  border-radius: 9px;
  gap: 5px;
  padding: 10px 11px;
  font-size: 11.5px;
  display: grid;
}

.business-manager-macros strong {
  color: var(--text);
  font-size: 12px;
}

.business-manager-macros code {
  color: var(--accent-strong);
  font-size: 11px;
}

.business-manager-creation-error, .business-manager-creation-table-state.is-error {
  color: var(--danger);
}

.business-manager-creation-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.business-manager-creation-start {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
}

.business-manager-creation-table-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.business-manager-creation-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 680px;
  font-size: 12px;
}

.business-manager-creation-table th, .business-manager-creation-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
  padding: 9px 10px;
}

.business-manager-creation-table th {
  z-index: 1;
  color: var(--muted);
  background: var(--surface-soft);
  letter-spacing: .025em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
  position: sticky;
  top: 0;
}

.business-manager-creation-table tbody tr:last-child td {
  border-bottom: 0;
}

.business-manager-creation-table th:first-child, .business-manager-creation-table td:first-child {
  width: 230px;
}

.business-manager-creation-table th:nth-child(2), .business-manager-creation-table td:nth-child(2) {
  width: auto;
}

.business-manager-creation-table td strong, .business-manager-creation-table td small {
  display: block;
}

.business-manager-creation-table td strong {
  color: var(--text);
  font-weight: 600;
}

.business-manager-creation-table td small {
  color: var(--muted);
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 10.5px;
  overflow: hidden;
}

.business-manager-creation-table .badge {
  white-space: nowrap;
}

.business-manager-creation-log {
  min-width: 360px;
  color: var(--muted);
  line-height: 1.45;
}

.business-manager-creation-log .badge {
  margin-right: 8px;
}

.business-manager-creation-table-state {
  height: 100%;
  min-height: 260px;
  color: var(--muted);
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 24px;
  display: flex;
}

.card-binding-table-state {
  height: 100%;
  min-height: 260px;
  color: var(--muted);
  text-align: center;
  place-items: center;
  padding: 24px;
  display: grid;
}

.column-order-list {
  gap: 5px;
  max-height: min(58vh, 540px);
  padding-right: 3px;
  display: grid;
  overflow-y: auto;
}

.column-settings-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  align-items: stretch;
  gap: 16px;
  display: grid;
}

.column-settings-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.column-settings-section {
  align-content: start;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  display: grid;
}

.column-settings-dialog {
  flex-direction: column;
  height: min(85vh, 780px);
  display: flex;
  overflow: hidden;
}

.column-settings-dialog > .column-settings-layout, .column-settings-dialog > .ad-entity-column-settings {
  flex: 1;
  min-height: 0;
}

.column-settings-dialog .column-settings-section {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.column-settings-dialog .column-order-list, .column-settings-dialog .statistic-metric-list {
  min-height: 0;
  max-height: none;
  padding-bottom: 10px;
  overflow-y: auto;
}

.column-settings-dialog .ad-entity-column-settings .column-order-list {
  flex: 1;
}

.column-settings-dialog > .dialog-actions {
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  margin-top: 12px;
  padding-top: 12px;
}

.column-settings-section h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.statistic-metric-list {
  gap: 5px;
  display: grid;
}

.statistic-metric-row {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  min-height: 38px;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 13px;
  display: flex;
}

.statistic-metric-hint {
  color: var(--muted);
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
}

.column-order-row {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 10px 4px 5px;
  transition: border-color .12s, background .12s, opacity .12s;
  display: flex;
}

.column-order-row label {
  min-width: 0;
  color: var(--text);
  flex: 1;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: flex;
}

.column-drag-handle {
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  background: none;
  border: 0;
  border-radius: 6px;
  flex: 0 0 30px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.column-drag-handle:hover, .column-drag-handle:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
  outline: none;
}

.column-drag-handle:active {
  cursor: grabbing;
}

.column-order-row-dragging {
  opacity: .48;
}

.column-order-row-over {
  border-color: var(--info);
  background: var(--info-soft);
}

.bulk-management-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.bulk-management-panel {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 9px;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  display: flex;
}

.profile-bulk-management-panel {
  order: 1;
}

.profile-bulk-task-panel {
  order: 2;
}

.profile-bulk-auto-update-panel {
  order: 3;
}

.bulk-management-panel-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  display: flex;
}

.bulk-management-panel-header > div {
  gap: 4px;
  display: grid;
}

.bulk-management-panel-header h3 {
  color: var(--text);
  font-size: 14px;
}

.bulk-management-panel-header p, .bulk-management-panel-header > span {
  color: var(--muted);
  font-size: 12px;
}

.bulk-management-panel-header > span {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  flex: none;
  padding: 4px 8px;
}

.bulk-stop-tasks-button.button {
  border-radius: 6px;
  flex: none;
  height: 24px;
  min-height: 24px;
  padding: 2px 7px;
  font-size: 10.5px;
}

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

.profile-bulk-export-field textarea {
  resize: vertical;
  white-space: pre;
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow: auto;
}

.bulk-task-groups {
  grid-template-columns: minmax(0, 1.15fr) minmax(190px, .75fr);
  gap: 8px;
  display: grid;
}

.bulk-task-group {
  border-right: 1px solid var(--border);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  padding-right: 8px;
  display: grid;
}

.bulk-task-group-title {
  color: var(--text);
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
}

.facebook-bm-creation-block {
  border: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 0;
}

.facebook-bm-creation-block label {
  min-width: 0;
  color: var(--muted);
  gap: 2px;
  font-size: 11px;
  display: grid;
}

.facebook-bm-creation-block select, .facebook-bm-creation-block input:not([type="checkbox"]) {
  border: 1px solid var(--border);
  width: 100%;
  min-width: 0;
  height: 26px;
  color: var(--text);
  background: var(--surface);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 11px;
}

.facebook-bm-creation-block .facebook-bm-until-limit {
  color: var(--text);
  align-self: center;
  align-items: center;
  gap: 7px;
  display: flex;
}

.facebook-bm-until-limit input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.facebook-bm-creation-block > .button {
  grid-column: 1;
  height: 26px;
  min-height: 26px;
}

.bulk-task-group-policy {
  border-right: 0;
  grid-template-columns: minmax(0, 1fr);
  padding-left: 3px;
  padding-right: 0;
}

.bulk-task-groups .button {
  border-radius: 5px;
  height: 26px;
  min-height: 26px;
  padding: 3px 7px;
  font-size: 11px;
}

.bulk-task-groups .button svg {
  width: 13px;
  height: 13px;
}

.bulk-authorization-task-group {
  align-content: start;
  align-self: start;
}

.bulk-page-task-group {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.profile-create-business-managers-button {
  margin-top: 5px;
}

.facebook-bm-creation-block label > span:not(.visually-hidden) {
  text-align: center;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 700;
}

.facebook-bm-creation-block .facebook-bm-until-limit {
  justify-content: center;
}

.bulk-task-groups .bulk-authorization-task-group .button {
  border-radius: 5px;
  height: 26px;
  min-height: 26px;
  padding: 3px 7px;
  font-size: 11px;
}

.ad-account-sync-action {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.ad-account-section-action {
  color: var(--text-muted);
  background: var(--surface-muted);
  border-color: var(--border);
}

.ad-account-auto-update-fields {
  margin-top: 16px;
}

.ad-account-auto-update-fields > strong {
  margin-bottom: 8px;
  display: block;
}

.bulk-subsection-title {
  margin: 0;
  font-size: 13px;
}

.profile-auto-update-tab {
  padding: 4px 0;
}

.auto-update-bulk-panel {
  gap: 0;
}

.auto-update-bulk-block {
  gap: 5px;
  display: grid;
}

.auto-update-bulk-block > h3, .auto-update-bulk-block > h4 {
  color: var(--text);
  margin: 0;
  padding-left: 2px;
}

.ad-account-bulk-act-ids {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 8px;
  display: flex;
}

.ad-account-bulk-act-ids textarea {
  resize: vertical;
  color: #111827;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  outline: none;
  width: min(320px, 100%);
  min-height: 72px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 1px 2px #0f172a0d;
}

.ad-account-bulk-act-ids textarea::placeholder {
  color: #94a3b8;
}

.ad-account-bulk-act-ids textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-account-bulk-act-ids textarea:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

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

.auto-update-table {
  border-collapse: collapse;
  background: var(--surface);
  width: 100%;
}

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

.auto-update-table th:last-child, .auto-update-table td:last-child {
  border-right: 0;
}

.auto-update-table tbody tr:last-child td {
  border-bottom: 0;
}

.auto-update-table th {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.auto-update-table-single th:first-child {
  width: 48%;
}

.auto-update-table-single th:nth-child(2) {
  width: 120px;
}

.auto-update-interval {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.auto-update-interval input {
  width: 76px;
  min-height: 32px;
}

.auto-update-interval span {
  color: var(--text-muted);
  font-size: 12px;
}

.auto-update-table-bulk {
  table-layout: fixed;
  min-width: 1080px;
}

.auto-update-table-bulk th, .auto-update-table-bulk td {
  text-align: center;
}

.auto-update-table-bulk td {
  padding: 7px 6px;
}

.auto-update-bulk-row {
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  display: flex;
}

.auto-update-table-bulk .auto-update-interval {
  flex: none;
  justify-content: center;
  gap: 3px;
}

.auto-update-table-bulk .auto-update-interval input {
  width: 54px;
  min-height: 29px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  border-radius: 7px;
  outline: none;
  padding: 0 6px;
}

.auto-update-table-bulk .auto-update-interval input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .auto-update-table-bulk .auto-update-interval input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
  }
}

.auto-update-table-bulk .auto-update-interval span {
  font-size: 10px;
}

.auto-update-bulk-buttons {
  justify-content: center;
  gap: 4px;
  display: flex;
}

.auto-update-bulk-buttons button {
  cursor: pointer;
  border-radius: 7px;
  min-height: 28px;
  padding: 4px 6px;
  font-size: 10.5px;
  font-weight: 650;
}

.auto-update-enable {
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--surface);
}

.auto-update-disable {
  border: 1px solid var(--border);
  color: var(--text);
  background: none;
}

:root[data-theme="dark"] .auto-update-enable {
  color: var(--success);
  border-color: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-theme="dark"] .auto-update-enable {
    border-color: color-mix(in srgb, var(--success) 38%, var(--border));
  }
}

:root[data-theme="dark"] .auto-update-enable {
  background: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  :root[data-theme="dark"] .auto-update-enable {
    background: color-mix(in srgb, var(--success) 14%, var(--surface));
  }
}

:root[data-theme="dark"] .auto-update-disable {
  color: var(--muted);
  border-color: var(--border);
  background: var(--surface-soft);
}

.auto-update-bulk-buttons button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.ad-account-hide-action {
  border-top: 1px solid var(--border);
  align-items: center;
  padding-top: 14px;
  display: flex;
}

.ad-account-bulk-action-table-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  overflow: visible;
}

.ad-account-bulk-action-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.ad-account-bulk-action-table th, .ad-account-bulk-action-table td {
  border-right: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  padding: 10px 12px;
}

.ad-account-bulk-action-table th:last-child, .ad-account-bulk-action-table td:last-child {
  border-right: 0;
}

.ad-account-bulk-action-table th {
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  letter-spacing: .025em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
}

.ad-account-bulk-action-table th:first-child, .ad-account-bulk-action-table td:first-child {
  width: 15%;
}

.ad-account-bulk-action-table th:nth-child(2), .ad-account-bulk-action-table td:nth-child(2) {
  width: 14%;
}

.ad-account-bulk-action-table th:nth-child(3), .ad-account-bulk-action-table td:nth-child(3) {
  width: 7%;
}

.ad-account-bulk-action-table th:nth-child(4), .ad-account-bulk-action-table td:nth-child(4) {
  width: 11%;
}

.ad-account-bulk-action-table th:nth-child(5), .ad-account-bulk-action-table td:nth-child(5) {
  width: 15%;
}

.ad-account-bulk-action-table th:nth-child(6), .ad-account-bulk-action-table td:nth-child(6) {
  width: 14%;
}

.ad-account-bulk-action-table th:nth-child(7), .ad-account-bulk-action-table td:nth-child(7) {
  width: 13%;
}

.ad-account-bulk-action-table th:nth-child(8), .ad-account-bulk-action-table td:nth-child(8) {
  width: 11%;
}

.bulk-group-assignment-control {
  gap: 7px;
  min-width: 0;
  display: grid;
}

.bulk-group-assignment-control .searchable-select {
  min-width: 0;
}

.bulk-group-mode-control {
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.ad-account-bulk-action-table .button {
  white-space: nowrap;
  max-width: 100%;
}

.ad-account-bulk-action-table input {
  width: 100%;
  min-height: 36px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  border-radius: 7px;
  outline: none;
  padding: 0 10px;
}

.ad-account-bulk-action-table input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ad-account-bulk-action-table input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
  }
}

.ad-account-bulk-comments {
  gap: 6px;
  display: grid;
}

.ad-account-bulk-events-control {
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: start;
  gap: 7px;
  display: grid;
}

.ad-account-bulk-events-control .pixel-event-select-trigger {
  min-height: 36px;
}

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

.pixel-creation-settings > .button {
  width: fit-content;
}

.card-link-action.button {
  color: #3d2600;
  background: linear-gradient(135deg, #ffd65a 0%, #ffad24 55%, #ff8a1f 100%);
  border-color: #f4a51c;
  box-shadow: 0 5px 14px #f5921433, inset 0 1px #ffffff7a;
}

.card-link-action.button:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffdf72 0%, #ffb42f 52%, #ff9428 100%);
  border-color: #ed8d0b;
  box-shadow: 0 7px 18px #f5921447, inset 0 1px #ffffff94;
}

.card-link-action.button:active:not(:disabled) {
  background: linear-gradient(135deg, #ffc83f 0%, #f89a18 100%);
  box-shadow: inset 0 1px 2px #6f370029;
}

.ad-status-cell {
  justify-content: center;
  align-items: center;
  display: flex;
  padding-inline: 0 !important;
}

.ad-status-cell .ag-cell-wrapper, .ad-status-cell .ag-cell-value {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.ad-status-counts {
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  display: flex;
}

.ad-status-count {
  color: #fff;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
}

.ad-status-count-active {
  background: #168a45;
}

.ad-status-count-review {
  color: #fff;
  background: #d99a16;
}

.ad-status-count-total {
  background: #6b7280;
}

.ad-status-count-rejected {
  background: #d92d20;
}

.ad-status-count-other {
  background: #6b7280;
}

.ad-entity-status-badge-review {
  color: #8a5a00;
  background: #fff5cf;
  border-color: #e0a62f;
}

:root[data-theme="dark"] .ad-entity-status-badge-review {
  color: #f0c35c;
  background: #332a17;
  border-color: #7b5b1c;
}

.ad-entity-facebook-status {
  color: var(--muted);
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  display: block;
}

.ad-statistic-cell {
  color: var(--text);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.ad-statistic-spend-cell {
  color: #24955f;
  font-weight: 600;
}

[data-theme="dark"] .ad-statistic-spend-cell {
  color: #66d49a;
}

.ad-statistic-cell .ag-cell-wrapper, .ad-statistic-cell .ag-cell-value {
  justify-content: flex-start;
  width: 100%;
}

.ad-account-statistics-footer {
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  width: max-content;
  min-width: max-content;
  padding: 5px 4px 1px 0;
  display: flex;
}

.ad-account-statistics-footer > span {
  white-space: nowrap;
  flex-direction: column;
  flex: none;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  line-height: 1.05;
  display: inline-flex;
}

.ad-account-statistics-footer small {
  color: var(--muted);
  letter-spacing: .025em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 650;
}

.ad-account-statistics-footer strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
}

.ad-account-statistics-footer-spend strong {
  color: #24955f;
  font-weight: 650;
}

[data-theme="dark"] .ad-account-statistics-footer-spend strong {
  color: #66d49a;
}

#ad-account-statistics-footer {
  border-right: 1px solid var(--border);
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 0 10px 4px 0;
  display: flex;
  overflow: scroll hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  #ad-account-statistics-footer {
    border-right: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  }
}

#ad-account-statistics-footer {
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--muted) transparent;
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  #ad-account-statistics-footer {
    scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) transparent;
  }
}

#ad-account-statistics-footer {
  scrollbar-width: thin;
}

#ad-account-statistics-footer:focus-visible {
  box-shadow: inset 0 0 0 1px var(--info);
  border-radius: 6px;
}

@supports (color: color-mix(in lab, red, red)) {
  #ad-account-statistics-footer:focus-visible {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 45%, transparent);
  }
}

#ad-account-statistics-footer::-webkit-scrollbar {
  height: 4px;
}

#ad-account-statistics-footer::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  #ad-account-statistics-footer::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--border) 38%, transparent);
  }
}

#ad-account-statistics-footer::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  #ad-account-statistics-footer::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--muted) 55%, transparent);
  }
}

@media (max-width: 1450px) {
  .ad-account-statistics-footer {
    gap: 12px;
  }

  .ad-account-statistics-footer small {
    font-size: 10px;
  }

  .ad-account-statistics-footer strong {
    font-size: 13px;
  }

  .bulk-bar {
    gap: 9px;
  }
}

@media (max-width: 1120px) {
  .bulk-bar {
    gap: 7px;
    padding-inline: 10px;
  }

  .bulk-actions {
    gap: 2px;
  }

  .bulk-bar .button {
    padding-inline: 8px;
    font-size: 11.5px;
  }
}

.bulk-compact-action {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
}

.ad-account-hide-actions {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.ad-account-payment-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  display: flex;
}

.pixel-management-section {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.pixel-management-section-header {
  color: var(--text);
  font-size: 13px;
}

.pixel-management-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  display: grid;
}

.pixel-management-card {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 9px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  display: flex;
}

.pixel-management-card > strong, .pixel-management-card > div > strong {
  color: var(--text);
  font-size: 13px;
}

.pixel-create-action {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  display: flex;
}

.pixel-create-action input {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  min-height: 42px;
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px;
}

.pixel-name-field {
  min-width: 0;
}

.pixel-name-field > input {
  width: 100%;
}

.pixel-name-macros {
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  display: flex;
}

.pixel-name-macros button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
}

.pixel-name-macros button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text);
}

.macro-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: min(390px, 48vh);
  overflow: auto;
}

.macro-input-tables.is-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  display: grid;
}

.macro-table-section {
  min-width: 0;
}

.macro-table-title {
  margin: 0 0 6px;
  font-size: 12px;
  display: block;
}

@media (max-width: 720px) {
  .macro-input-tables.is-split {
    grid-template-columns: 1fr;
  }
}

.macro-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  font-size: 12px;
}

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

.macro-table th:first-child, .macro-table td:first-child {
  width: 43%;
}

.macro-table thead th {
  z-index: 1;
  background: var(--surface-soft);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  position: sticky;
  top: 0;
}

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

.macro-table tbody tr.is-selected td {
  background: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  .macro-table tbody tr.is-selected td {
    background: color-mix(in srgb, var(--success) 10%, var(--surface));
  }
}

.macro-table tbody tr.is-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--success);
}

.macro-table-used {
  color: var(--success);
  background: var(--success);
  border-radius: 999px;
  margin-left: 7px;
  padding: 2px 5px;
  display: inline-block;
}

@supports (color: color-mix(in lab, red, red)) {
  .macro-table-used {
    background: color-mix(in srgb, var(--success) 12%, transparent);
  }
}

.macro-table-used {
  font-size: 10px;
  font-weight: 600;
}

.macro-table td:last-child {
  color: var(--muted);
}

.macro-table button {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 4px 6px;
}

.macro-table button:hover:not(:disabled) {
  background: var(--surface-hover);
}

.macro-table button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.macro-table code {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.pixel-events-action {
  justify-content: space-between;
}

.pixel-events-action p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.pixel-events-action-controls {
  grid-template-columns: minmax(200px, 1fr) auto;
  align-items: start;
  gap: 8px;
  width: 100%;
  display: grid;
}

.pixel-event-select {
  position: relative;
}

.pixel-event-select-trigger {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  display: flex;
}

.pixel-event-select-options {
  z-index: 40;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  max-height: 260px;
  box-shadow: var(--shadow);
  border-radius: 9px;
  padding: 5px;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  overflow: auto;
}

.pixel-event-select-options button {
  width: 100%;
  min-height: 34px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  padding: 0 9px;
  display: flex;
}

.pixel-event-select-options button:hover, .pixel-event-select-options button[aria-selected="true"] {
  background: var(--surface-hover);
}

.pixel-event-select-options button > span:last-child {
  border: 1px solid var(--border);
  border-radius: 5px;
  place-items: center;
  width: 20px;
  height: 20px;
  display: grid;
}

.pixel-event-select-options button > span.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.bulk-management-table-wrap {
  background: var(--surface);
  border-radius: 9px;
  overflow: auto;
}

.bulk-actions-dialog .bulk-management-panel-header {
  align-items: center;
  min-height: 28px;
}

.bulk-actions-dialog .bulk-management-panel-header h3 {
  font-size: 12px;
}

.bulk-actions-dialog .bulk-management-table th, .bulk-actions-dialog .bulk-management-table td {
  padding: 5px 6px;
  font-size: 11px;
}

.bulk-actions-dialog .bulk-management-table .button {
  height: 27px;
  min-height: 27px;
  padding: 3px 7px;
  font-size: 11px;
}

.bulk-management-table {
  min-width: 1320px;
}

.bulk-management-table th:first-child, .bulk-management-table td:first-child {
  width: 190px;
}

.bulk-management-table th:nth-child(2), .bulk-management-table td:nth-child(2) {
  width: 110px;
}

.bulk-management-table th:nth-child(3), .bulk-management-table td:nth-child(3) {
  width: 300px;
}

.bulk-management-table th:nth-child(4), .bulk-management-table td:nth-child(4) {
  width: 230px;
}

.bulk-management-table th:nth-child(5), .bulk-management-table td:nth-child(5), .bulk-management-table th:nth-child(6), .bulk-management-table td:nth-child(6) {
  width: 180px;
}

.bulk-management-table th:last-child, .bulk-management-table td:last-child {
  text-align: right;
  width: 118px;
}

.bulk-management-table select, .bulk-management-table input {
  width: 100%;
  height: 27px;
  min-height: 27px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  border-radius: 5px;
  outline: none;
  padding: 3px 6px;
}

.bulk-proxy-prefix-control {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  display: grid;
}

.bulk-proxy-prefix-control .button {
  height: 27px;
  min-height: 27px;
  padding: 3px 7px;
  font-size: 11px;
}

.bulk-management-table .bulk-auto-update-input {
  width: 72px;
}

.bulk-auto-update-buttons {
  justify-content: flex-start;
}

.bulk-auto-update-buttons button {
  border-radius: 5px;
  min-width: 44px;
  height: 27px;
  min-height: 27px;
  padding: 3px 8px;
  font-size: 11px;
}

.bulk-profile-secondary-actions {
  align-items: center;
  gap: 6px;
  display: flex;
}

.bulk-profile-secondary-actions .vision-create-button {
  margin-left: auto;
}

.bulk-profile-secondary-actions .button {
  height: 27px;
  min-height: 27px;
  padding: 3px 7px;
  font-size: 11px;
}

.bulk-control-hint {
  color: var(--muted);
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 430;
  line-height: 1.35;
  display: block;
}

.bulk-management-table select:focus, .bulk-management-table input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .bulk-management-table select:focus, .bulk-management-table input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
  }
}

.profile-editor-tabs {
  background: none;
  flex: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 0;
}

.profile-editor-tabs button {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  transition: color .14s, border-color .14s, background .14s, box-shadow .14s;
}

.profile-editor-tabs button:hover {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-editor-tabs button:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  }
}

.profile-editor-tabs button:hover {
  background: var(--surface-hover);
}

.profile-editor-tabs button.active {
  color: var(--accent);
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-editor-tabs button.active {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.profile-editor-tabs button.active {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-editor-tabs button.active {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  }
}

.profile-editor-tabs button.active {
  box-shadow: 0 3px 10px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .profile-editor-tabs button.active {
    box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 14%, transparent);
  }
}

.profile-editor-dialog {
  flex-direction: column;
  height: min(88vh, 820px);
  display: flex;
  overflow: hidden;
}

.profile-editor-dialog .dialog-header {
  flex: none;
  min-width: 0;
  margin-bottom: 12px;
}

.profile-editor-dialog .dialog-header h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 auto;
  min-width: 100px;
  overflow: hidden;
}

.profile-editor-header-meta {
  flex: auto;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.profile-editor-header-meta code {
  max-width: 285px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 11px;
  overflow: hidden;
}

.profile-editor-header-meta .button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  margin-left: 0;
  padding: 0;
}

.profile-editor-save-state {
  min-width: 78px;
  color: var(--muted);
  text-align: right;
  font-size: 11px;
}

.profile-editor-save-saving {
  color: var(--warning);
}

.profile-editor-save-saved {
  color: var(--success);
}

.profile-editor-save-error {
  color: var(--danger);
}

.profile-editor-scroll {
  flex: auto;
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
}

.profile-editor-form {
  padding-top: 2px;
}

.profile-panel-id-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  grid-template-columns: auto minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  display: grid;
}

.profile-panel-id-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.profile-panel-id-row code {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.profile-panel-id-row .button {
  min-height: 30px;
  padding: 0;
}

.profile-identity-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.profile-credentials-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
  display: grid;
}

.profile-totp-block {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  display: grid;
}

.profile-totp-code output {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
}

.profile-log-details-dialog {
  width: min(820px, 100vw - 32px);
}

.clearable-input {
  min-width: 0;
  position: relative;
}

.clearable-input > input {
  width: 100%;
  padding-right: 34px;
}

.clearable-input > button {
  width: 24px;
  height: 24px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
}

.clearable-input > button:hover, .clearable-input > button:focus-visible {
  color: var(--danger);
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .clearable-input > button:hover, .clearable-input > button:focus-visible {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
  }
}

.clearable-input > button:hover, .clearable-input > button:focus-visible {
  outline: none;
}

.profile-log-details-content {
  gap: 8px;
  margin-top: 16px;
  display: grid;
}

.profile-log-details-content h3 {
  margin: 0;
  font-size: 14px;
}

.profile-log-details-content pre {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 9px;
  max-height: 55vh;
  margin: 0;
  padding: 14px;
  font-size: 12px;
  overflow: auto;
}

@media (max-width: 900px) {
  .profile-credentials-row {
    grid-template-columns: 1fr;
  }
}

.toggle-field {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: fit-content;
  display: flex;
}

.profile-auto-update-settings {
  align-items: flex-end;
  gap: 16px;
  display: flex;
}

.profile-auto-update-settings .toggle-field {
  flex: 1;
  margin-bottom: 9px;
}

.profile-auto-update-interval {
  width: 132px;
}

.profile-auto-update-interval input {
  text-align: center;
}

.facebook-pages-page {
  background: var(--surface);
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 12px 16px 16px;
  display: flex;
}

.facebook-pages-page .resource-table-toolbar {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: 10px;
  min-height: 42px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.facebook-pages-scroll {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: 10px;
  flex: 1;
  overflow: auto;
}

.facebook-pages-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}

.facebook-pages-table th, .facebook-pages-table td {
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: left;
  color: var(--text);
  padding: 8px 10px;
}

.facebook-pages-table th {
  z-index: 1;
  background: var(--surface-raised);
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  position: sticky;
  top: 0;
}

.facebook-pages-table .system-comment-column {
  text-overflow: ellipsis;
  width: 128px;
  max-width: 128px;
  overflow: hidden;
}

.facebook-pages-table .system-comment-column > span {
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
}

.facebook-pages-table tbody tr:hover td {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-pages-table tbody tr:hover td {
    background: color-mix(in srgb, var(--accent) 7%, transparent);
  }
}

.facebook-pages-table tbody tr.profile-row-selected td, .facebook-pages-table tbody tr.profile-row-selected:hover td {
  background: #c4f7b033 !important;
}

.facebook-pages-table input[type="checkbox"] {
  accent-color: var(--accent);
}

.facebook-page-avatar {
  object-fit: cover;
  background: var(--surface);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: block;
}

.facebook-page-bulk-dialog {
  width: min(800px, 100vw - 32px);
}

.facebook-page-bulk-content {
  gap: 16px;
  display: grid;
}

.facebook-page-bulk-content > p {
  margin: 0;
}

.facebook-page-bulk-actions {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  display: grid;
}

.facebook-page-bulk-actions .button {
  text-align: left;
  justify-content: flex-start;
  min-height: 78px;
  padding: 14px 16px;
}

.facebook-page-bulk-actions .button > span {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.facebook-page-bulk-actions .button strong, .facebook-page-bulk-actions .button small {
  display: block;
}

.facebook-page-bulk-actions .button small {
  color: var(--text-muted);
  font-weight: 500;
}

.facebook-page-avatar-dialog {
  width: min(1180px, 100vw - 32px);
}

.facebook-page-creation-dialog {
  width: min(1120px, 100vw - 32px);
}

.facebook-page-creation-layout {
  grid-template-columns: minmax(250px, .7fr) minmax(0, 1.5fr);
  gap: 16px;
  min-height: 360px;
  display: grid;
}

.facebook-page-creation-settings, .facebook-page-creation-results {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  min-width: 0;
  padding: 16px;
}

.facebook-page-creation-settings {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  display: flex;
}

.facebook-page-creation-settings h3, .facebook-page-creation-results h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.facebook-page-name-input-row {
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  display: grid;
}

.facebook-page-name-input-row .button {
  width: 40px;
  padding-inline: 0;
}

.facebook-page-creation-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.facebook-page-creation-table th, .facebook-page-creation-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  padding: 9px 10px;
}

.facebook-page-creation-table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
}

.facebook-page-creation-table th:first-child {
  width: 25%;
}

.facebook-page-creation-table th:nth-child(2) {
  width: 42%;
}

.facebook-page-creation-table th:last-child {
  width: 33%;
}

.facebook-page-creation-table input {
  width: 100%;
}

.facebook-page-creation-table tr.facebook-page-creation-row-success td {
  background: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-creation-table tr.facebook-page-creation-row-success td {
    background: color-mix(in srgb, var(--success) 12%, var(--surface));
  }
}

.facebook-page-creation-table tr.facebook-page-creation-row-success td:first-child {
  box-shadow: inset 3px 0 0 var(--success);
}

.facebook-page-creation-table tr.facebook-page-creation-row-failed td {
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-creation-table tr.facebook-page-creation-row-failed td {
    background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  }
}

@media (max-width: 820px) {
  .facebook-page-creation-layout {
    grid-template-columns: 1fr;
  }
}

.facebook-page-avatar-layout {
  grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr);
  gap: 14px;
  min-height: 420px;
  display: grid;
}

.facebook-page-avatar-settings, .facebook-page-avatar-preview {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: 14px;
  min-width: 0;
  padding: 16px;
}

.facebook-page-avatar-settings {
  align-content: start;
  gap: 14px;
  display: grid;
}

.facebook-page-avatar-preview {
  flex-direction: column;
  gap: 12px;
  display: flex;
  overflow: hidden;
}

.facebook-page-avatar-settings h3, .facebook-page-avatar-preview h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.facebook-page-avatar-settings p, .facebook-page-avatar-preview p {
  margin: 0;
  font-size: 12px;
}

.facebook-page-avatar-upload {
  border: 1px dashed var(--accent);
  place-items: center;
  gap: 5px;
  min-height: 132px;
  padding: 16px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-avatar-upload {
    border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border));
  }
}

.facebook-page-avatar-upload {
  background: var(--accent);
  border-radius: 12px;
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-avatar-upload {
    background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  }
}

.facebook-page-avatar-upload {
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.facebook-page-avatar-upload:hover {
  border-color: var(--accent);
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-avatar-upload:hover {
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  }
}

.facebook-page-avatar-upload small {
  color: var(--text-muted);
}

.facebook-page-avatar-upload input {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
}

.facebook-page-avatar-files {
  gap: 6px;
  max-height: 190px;
  display: grid;
  overflow: auto;
}

.facebook-page-avatar-uniqueize {
  gap: 5px;
}

.facebook-page-avatar-uniqueize small {
  padding-inline: 1px;
  line-height: 1.35;
}

.facebook-page-avatar-file {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 5px;
  display: grid;
}

.facebook-page-avatar-file img, .facebook-page-avatar-table img, .facebook-page-avatar-empty {
  object-fit: cover;
  background: var(--surface-soft);
  border-radius: 50%;
  width: 34px;
  height: 34px;
}

.facebook-page-avatar-file > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  display: grid;
  overflow: hidden;
}

.facebook-page-avatar-file small {
  color: var(--text-muted);
}

.facebook-page-avatar-file small.field-error {
  color: var(--danger);
}

.facebook-page-avatar-file button {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  place-items: center;
  display: inline-grid;
}

.facebook-page-avatar-file button:hover {
  background: var(--surface-soft);
  color: var(--danger);
}

.facebook-page-avatar-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.facebook-page-avatar-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 12px;
}

.facebook-page-avatar-table th, .facebook-page-avatar-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  padding: 7px 10px;
}

.facebook-page-avatar-table th {
  z-index: 1;
  background: var(--surface-raised);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 10px;
  position: sticky;
  top: 0;
}

.facebook-page-avatar-table th:first-child, .facebook-page-avatar-table td:first-child {
  width: 58px;
}

.facebook-page-avatar-table td:nth-child(2) strong, .facebook-page-avatar-table td:nth-child(2) small {
  display: block;
}

.facebook-page-avatar-table td:nth-child(2) small {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 10px;
}

.facebook-page-avatar-empty {
  color: var(--text-muted);
  place-items: center;
  display: inline-grid;
}

.facebook-page-fill-dialog {
  flex-direction: column;
  width: min(1280px, 100vw - 32px);
  height: min(90vh, 860px);
  display: flex;
  overflow: hidden;
}

.facebook-page-fill-dialog > .dialog-header {
  flex: none;
}

.facebook-page-fill-form {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.facebook-page-fill-layout {
  flex: 1;
  grid-template-columns: minmax(360px, .82fr) minmax(480px, 1.18fr);
  gap: 14px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.facebook-page-fill-settings, .facebook-page-fill-preview {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  min-width: 0;
  min-height: 0;
}

.facebook-page-fill-settings {
  align-content: start;
  gap: 14px;
  padding: 16px;
  display: grid;
  overflow: auto;
}

.facebook-page-fill-preview {
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  display: flex;
  overflow: hidden;
}

.facebook-page-fill-settings h3, .facebook-page-fill-preview h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.facebook-page-fill-settings p, .facebook-page-fill-preview p {
  margin: 0;
  font-size: 12px;
}

.facebook-page-fill-fields {
  gap: 8px;
  display: grid;
}

.facebook-page-fill-fields-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2px;
  display: flex;
}

.facebook-page-fill-fields-actions {
  flex: none;
  gap: 5px;
  display: flex;
}

.facebook-page-fill-fields-actions button {
  color: var(--info);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 2px 0;
  font-size: 11px;
}

.facebook-page-fill-fields-actions button + button:before {
  content: "·";
  color: var(--muted);
  margin-right: 5px;
}

.facebook-page-fill-fields-actions button:disabled {
  opacity: .5;
  cursor: default;
}

.facebook-page-fill-field {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  transition: border-color .12s, background .12s;
  display: grid;
}

.facebook-page-fill-field.is-enabled {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-fill-field.is-enabled {
    border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  }
}

.facebook-page-fill-field > input[type="checkbox"], .facebook-page-fill-cover-heading > input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  margin: 0;
}

.facebook-page-fill-field > label, .facebook-page-fill-cover-heading > label {
  color: var(--text);
  cursor: pointer;
  padding-top: 0;
  font-size: 12px;
  font-weight: 650;
}

.facebook-page-fill-field-control {
  grid-column: 1 / -1;
}

.facebook-page-fill-field-control, .facebook-page-fill-address-grid {
  min-width: 0;
}

.facebook-page-fill-field-control > input, .facebook-page-fill-field-control > select, .facebook-page-fill-field-control > textarea, .facebook-page-fill-address-grid input {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 34px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  outline: none;
  padding: 6px 9px;
  font-size: 12px;
}

.facebook-page-fill-field-control > textarea {
  resize: vertical;
  min-height: 54px;
}

.facebook-page-fill-field-control > input:focus, .facebook-page-fill-field-control > select:focus, .facebook-page-fill-field-control > textarea:focus, .facebook-page-fill-address-grid input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-fill-field-control > input:focus, .facebook-page-fill-field-control > select:focus, .facebook-page-fill-field-control > textarea:focus, .facebook-page-fill-address-grid input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
  }
}

.facebook-page-fill-field-control > :disabled, .facebook-page-fill-address-grid input:disabled {
  opacity: .55;
  background: var(--surface-soft);
}

.facebook-page-fill-address-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.facebook-page-fill-address-grid label {
  gap: 4px;
  display: grid;
}

.facebook-page-fill-address-grid label > span {
  color: var(--muted);
  font-size: 10px;
}

.facebook-page-fill-cover {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  gap: 10px;
  padding: 10px;
  display: grid;
}

.facebook-page-fill-cover.is-enabled {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-fill-cover.is-enabled {
    border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  }
}

.facebook-page-fill-cover-heading {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 8px;
  display: grid;
}

.facebook-page-fill-cover-heading > input[type="checkbox"] {
  margin-top: 2px;
}

.facebook-page-fill-cover-heading > label {
  padding-top: 0;
}

.facebook-page-fill-cover-controls {
  gap: 10px;
  padding-left: 26px;
  display: grid;
}

.facebook-page-fill-cover-upload {
  border: 1px dashed var(--accent);
  align-content: center;
  place-items: center;
  gap: 4px;
  min-height: 94px;
  padding: 12px;
  display: grid;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-fill-cover-upload {
    border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border));
  }
}

.facebook-page-fill-cover-upload {
  background: var(--accent);
  border-radius: 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-fill-cover-upload {
    background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  }
}

.facebook-page-fill-cover-upload {
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.facebook-page-fill-cover-upload:hover {
  border-color: var(--accent);
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-fill-cover-upload:hover {
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  }
}

.facebook-page-fill-cover-upload.is-disabled {
  opacity: .55;
  cursor: default;
}

.facebook-page-fill-cover-upload small, .facebook-page-fill-cover-uniqueize small {
  color: var(--muted);
  font-size: 10px;
}

.facebook-page-fill-cover-upload input {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
}

.facebook-page-fill-cover-files {
  gap: 6px;
  max-height: 160px;
  display: grid;
  overflow: auto;
}

.facebook-page-fill-cover-file {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  grid-template-columns: 64px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 5px;
  display: grid;
}

.facebook-page-fill-cover-file img {
  object-fit: cover;
  background: var(--surface-soft);
  border-radius: 6px;
  width: 62px;
  height: 34px;
}

.facebook-page-fill-avatar .facebook-page-fill-cover-file img {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  margin-left: 14px;
}

.facebook-page-fill-cover-file > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  display: grid;
  overflow: hidden;
}

.facebook-page-fill-cover-file small {
  color: var(--muted);
}

.facebook-page-fill-cover-file small.field-error {
  color: var(--danger);
}

.facebook-page-fill-cover-file button {
  width: 28px;
  height: 28px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  place-items: center;
  display: inline-grid;
}

.facebook-page-fill-cover-file button:hover {
  background: var(--surface-soft);
  color: var(--danger);
}

.facebook-page-fill-cover-fallback {
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
}

.facebook-page-fill-cover-uniqueize {
  gap: 5px;
}

.facebook-page-fill-cover-uniqueize small {
  line-height: 1.35;
}

.facebook-page-fill-preview-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.facebook-page-fill-preview-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 12px;
}

.facebook-page-fill-preview-table th, .facebook-page-fill-preview-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
}

.facebook-page-fill-preview-table th {
  z-index: 1;
  background: var(--surface);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  position: sticky;
  top: 0;
}

.facebook-page-fill-preview-table th:first-child, .facebook-page-fill-preview-table td:first-child {
  width: 64px;
}

.facebook-page-fill-preview-table th:nth-child(2), .facebook-page-fill-preview-table td:nth-child(2) {
  width: 132px;
}

.facebook-page-fill-preview-page-cell strong, .facebook-page-fill-preview-page-cell small {
  display: block;
}

.facebook-page-fill-preview-page-cell small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 10px;
}

.facebook-page-fill-preview-avatar, .facebook-page-fill-preview-avatar-empty {
  background: var(--surface-soft);
  border-radius: 50%;
  width: 38px;
  height: 38px;
}

.facebook-page-fill-preview-avatar {
  object-fit: cover;
  display: block;
}

.facebook-page-fill-preview-avatar-empty {
  color: var(--muted);
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.facebook-page-fill-preview-cover, .facebook-page-fill-preview-cover-fallback, .facebook-page-fill-preview-cover-empty {
  background: var(--surface-soft);
  border-radius: 7px;
  width: 112px;
  height: 43px;
}

.facebook-page-fill-preview-cover {
  object-fit: cover;
  display: block;
}

.facebook-page-fill-preview-cover-fallback, .facebook-page-fill-preview-cover-empty {
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.facebook-page-fill-preview-cover-fallback small {
  font-size: 9px;
}

.facebook-page-fill-saved-values {
  gap: 3px;
  min-width: 190px;
  margin: 0;
  display: grid;
}

.facebook-page-fill-saved-values > div {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 5px;
  display: grid;
}

.facebook-page-fill-saved-values dt {
  color: var(--muted);
}

.facebook-page-fill-saved-values dd {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.facebook-page-fill-dialog-actions {
  flex: none;
  align-items: center;
  margin-top: 14px;
}

.facebook-page-fill-dialog-actions > .field-error {
  margin-right: auto;
}

:is(.facebook-page-bulk-dialog, .facebook-page-avatar-dialog, .facebook-page-creation-dialog, .facebook-page-fill-dialog, .ad-account-bulk-dialog, .business-manager-creation-dialog) {
  padding: 12px;
}

:is(.facebook-page-bulk-dialog, .facebook-page-avatar-dialog, .facebook-page-creation-dialog, .facebook-page-fill-dialog, .ad-account-bulk-dialog, .business-manager-creation-dialog) > .dialog-header {
  min-height: 28px;
  margin-bottom: 8px;
}

:is(.facebook-page-bulk-dialog, .facebook-page-avatar-dialog, .facebook-page-creation-dialog, .facebook-page-fill-dialog, .ad-account-bulk-dialog, .business-manager-creation-dialog) > .dialog-header h2 {
  font-size: 15px;
}

:is(.facebook-page-bulk-dialog, .facebook-page-avatar-dialog, .facebook-page-creation-dialog, .facebook-page-fill-dialog, .ad-account-bulk-dialog, .business-manager-creation-dialog) .button {
  border-radius: 5px;
  min-height: 27px;
  padding: 3px 8px;
  font-size: 11px;
}

:is(.facebook-page-bulk-dialog, .facebook-page-avatar-dialog, .facebook-page-creation-dialog, .facebook-page-fill-dialog, .ad-account-bulk-dialog, .business-manager-creation-dialog) :is(input:not([type="checkbox"]):not([type="radio"]), select) {
  border-radius: 5px;
  height: 27px;
  min-height: 27px;
  padding: 3px 7px;
  font-size: 11px;
}

.facebook-page-bulk-content, .facebook-page-bulk-actions {
  gap: 7px;
}

.facebook-page-bulk-actions .button {
  min-height: 48px;
  padding: 8px 10px;
}

.facebook-page-bulk-actions .button > span {
  gap: 1px;
}

.facebook-page-bulk-actions .button small {
  font-size: 10.5px;
}

.facebook-page-creation-layout, .facebook-page-avatar-layout, .facebook-page-fill-layout, .business-manager-creation-layout {
  gap: 8px;
}

.facebook-page-creation-settings, .facebook-page-creation-results, .facebook-page-avatar-settings, .facebook-page-avatar-preview, .business-manager-creation-settings, .business-manager-creation-profiles {
  border-radius: 9px;
  gap: 8px;
  padding: 9px;
}

.facebook-page-creation-table th, .facebook-page-creation-table td, .facebook-page-avatar-table th, .facebook-page-avatar-table td, .facebook-page-fill-preview-table th, .facebook-page-fill-preview-table td, .business-manager-creation-table th, .business-manager-creation-table td, .ad-account-bulk-action-table th, .ad-account-bulk-action-table td {
  padding: 5px 6px;
  font-size: 11px;
}

.business-manager-creation-heading {
  min-height: 28px;
}

.business-manager-creation-form {
  gap: 6px;
}

@media (max-width: 880px) {
  .facebook-page-bulk-actions, .facebook-page-avatar-layout, .facebook-page-fill-layout {
    grid-template-columns: 1fr;
  }

  .facebook-page-avatar-layout, .facebook-page-fill-layout {
    min-height: 0;
  }

  .facebook-page-avatar-table-wrap, .facebook-page-fill-preview-table-wrap {
    max-height: 360px;
  }

  .facebook-page-fill-dialog {
    height: min(92vh, 860px);
    overflow-y: auto;
  }

  .facebook-page-fill-form, .facebook-page-fill-layout, .facebook-page-fill-settings, .facebook-page-fill-preview {
    overflow: visible;
  }
}

.profile-activity {
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  display: flex;
}

.profile-activity-toolbar {
  border-bottom: 0;
  min-height: 44px;
  padding: 0 0 10px;
}

.profile-activity-toolbar .pagination, .profile-activity > .pagination {
  margin-left: auto;
}

.compact-table-wrap {
  border: 1px solid var(--border);
  border-radius: 9px;
  min-height: 0;
  overflow: auto;
}

.compact-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.compact-table th, .compact-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  max-width: 260px;
  padding: 9px 10px;
}

.compact-table th {
  z-index: 1;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 600;
  position: sticky;
  top: 0;
}

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

.compact-json {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.profile-bulk-source {
  white-space: pre;
  line-height: 1.55;
}

.profile-bulk-form {
  grid-template-rows: auto auto auto;
  min-height: 0;
}

.bulk-import-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  grid-template-rows: auto auto;
  min-height: 0;
  display: grid;
}

.bulk-import-source {
  grid-template-rows: auto auto auto;
  min-height: 0;
  padding: 12px;
}

.bulk-import-source .profile-bulk-source {
  resize: none;
  height: calc(15.5em + 16px);
  min-height: calc(15.5em + 16px);
  max-height: calc(15.5em + 16px);
}

.profile-file-import {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  align-content: start;
  gap: 14px;
  min-height: 226px;
  padding: 14px;
  display: grid;
}

.profile-file-delimiter {
  width: min(360px, 100%);
}

.profile-file-dropzone {
  border: 1.5px dashed var(--border-strong);
  min-height: 138px;
  color: var(--text-muted);
  background: var(--surface-soft);
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  align-content: center;
  place-items: center;
  gap: 7px;
  padding: 18px;
  transition: border-color .14s, background-color .14s, transform .14s;
  display: grid;
}

.profile-file-dropzone:hover, .profile-file-dropzone.is-dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.profile-file-dropzone.is-dragging {
  transform: scale(1.005);
}

.profile-file-dropzone.has-file {
  border-style: solid;
}

.profile-file-dropzone input[type="file"] {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.profile-file-dropzone svg {
  color: var(--accent);
}

.profile-file-select {
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 620;
}

:root[data-theme="dark"] .profile-file-select {
  color: var(--text);
  background: #29292e;
  border: 1px solid #45454d;
  box-shadow: inset 0 1px #ffffff0a;
}

:root[data-theme="dark"] .profile-file-dropzone:hover .profile-file-select {
  background: #34343a;
  border-color: #5a5a64;
}

.profile-file-dropzone strong {
  max-width: 100%;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.bulk-group-controls select {
  flex: 1;
  width: auto;
  min-width: 0;
}

.bulk-filter-table-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  min-height: 0;
  overflow: hidden;
}

.bulk-filter-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: 0;
  font-size: 11.5px;
}

.bulk-filter-table th, .bulk-filter-table td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  height: 42px;
  padding: 5px;
}

.bulk-filter-table th {
  z-index: 2;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.bulk-filter-table th:first-child, .bulk-filter-table td:first-child {
  width: 250px;
}

.bulk-filter-table th:nth-child(3), .bulk-filter-table td:nth-child(3) {
  width: 190px;
}

.bulk-filter-table th:last-child, .bulk-filter-table td:last-child {
  border-right: 0;
}

.bulk-filter-table tbody tr:last-child td {
  border-bottom: 0;
}

.bulk-preview {
  gap: 9px;
  min-height: 0;
  display: grid;
}

.profile-bulk-form .bulk-preview {
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.bulk-preview-table-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  max-height: 390px;
  overflow: auto;
}

.profile-bulk-form .bulk-preview-table-wrap {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.bulk-preview-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: 1720px;
  font-size: 11.5px;
}

.bulk-preview-table th, .bulk-preview-table td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  padding: 5px;
}

.bulk-preview-table th:last-child, .bulk-preview-table td:last-child {
  border-right: 0;
}

.bulk-preview-table th {
  z-index: 2;
  height: 35px;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 600;
  position: sticky;
  top: 43px;
}

.bulk-preview-table .bulk-preview-filters th {
  z-index: 3;
  background: var(--surface);
  height: 43px;
  top: 0;
}

.bulk-preview-table th:first-child, .bulk-preview-table td:first-child {
  text-align: center;
  width: 48px;
}

.bulk-preview-table th:nth-child(2), .bulk-preview-table td:nth-child(2) {
  width: 180px;
}

.bulk-preview-table th:nth-child(3), .bulk-preview-table td:nth-child(3), .bulk-preview-table th:nth-child(4), .bulk-preview-table td:nth-child(4) {
  width: 160px;
}

.bulk-preview-table th:nth-child(5), .bulk-preview-table td:nth-child(5), .bulk-preview-table th:nth-child(6), .bulk-preview-table td:nth-child(6) {
  width: 200px;
}

.bulk-preview-table th:nth-child(7), .bulk-preview-table td:nth-child(7) {
  width: 260px;
}

.bulk-preview-table th:nth-child(8), .bulk-preview-table td:nth-child(8), .bulk-preview-table th:nth-child(9), .bulk-preview-table td:nth-child(9) {
  width: 180px;
}

.bulk-preview-table th:nth-child(10), .bulk-preview-table td:nth-child(10) {
  width: 160px;
}

.bulk-visible-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  color: var(--text);
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  outline: none;
  padding: 5px 7px;
  font-family: inherit;
  font-size: 11.5px;
}

.bulk-visible-input:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.bulk-visible-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.bulk-preview-filters .bulk-visible-input {
  border-color: var(--border);
  background: var(--surface-soft);
}

.bulk-filter-disabled {
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  display: block;
}

.bulk-filter-with-refresh {
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 4px;
  display: grid;
}

.bulk-filter-with-refresh > button {
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  cursor: pointer;
  border-radius: 6px;
  place-items: center;
  padding: 0;
  display: inline-grid;
}

.bulk-filter-with-refresh > button:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.bulk-proxy-select {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px;
  display: grid;
}

.bulk-proxy-select input, .bulk-proxy-select select {
  width: 100%;
  min-width: 0;
  height: 32px;
  color: var(--text);
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  outline: none;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 11px;
}

.bulk-proxy-select input:hover, .bulk-proxy-select select:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.bulk-proxy-select input:focus, .bulk-proxy-select select:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.bulk-preview > .pagination {
  margin-left: auto;
}

.spin-icon {
  animation: .7s linear infinite spin;
}

.details-list {
  gap: 3px;
  margin: 0;
  display: grid;
}

.details-list > div {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  display: grid;
}

.details-list dt {
  color: var(--muted);
  font-size: 12px;
}

.details-list dd {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}

.task-log-cell {
  border-radius: 5px;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  height: 26px;
  min-height: 0;
  padding: 1px 4px;
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
}

.task-row-actions {
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  display: flex;
}

.task-row-actions .button {
  border-radius: 6px;
  flex: none;
  gap: 4px;
  height: 24px;
  min-height: 24px;
  padding: 2px 7px;
  font-size: 11.5px;
  line-height: 1;
}

.task-row-actions .button svg {
  flex: none;
}

.task-actions-cell, .task-actions-cell .ag-cell-wrapper, .task-actions-cell .ag-cell-value {
  height: 100%;
}

.task-actions-cell .ag-cell-wrapper, .task-actions-cell .ag-cell-value {
  align-items: center;
  width: 100%;
  display: flex;
}

.task-log-count {
  color: #fff;
  background: var(--accent);
  text-align: center;
  border-radius: 999px;
  flex: none;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 1;
  display: inline-grid;
}

.task-log-preview {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.task-details-dialog {
  width: 60vw;
  max-width: 1600px;
  max-height: 90vh;
}

.task-details-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.codex-incident-result {
  border: 1px solid var(--accent);
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .codex-incident-result {
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  }
}

.codex-incident-result {
  background: var(--accent-soft);
  border-radius: 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .codex-incident-result {
    background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
  }
}

.codex-incident-result p, .codex-incident-result ul {
  white-space: pre-wrap;
  margin: 0;
}

.codex-incident-result h4 {
  margin: 0 0 5px;
  font-size: 12px;
}

.codex-incident-result ul {
  padding-left: 20px;
}

.codex-incident-problem {
  border-left: 3px solid var(--danger);
  background: var(--danger);
  border-radius: 6px;
  padding: 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .codex-incident-problem {
    background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  }
}

.task-log-section {
  gap: 10px;
  margin-top: 18px;
  display: grid;
}

.task-log-heading, .task-log-entry-heading {
  align-items: center;
  gap: 8px;
  display: flex;
}

.task-log-heading h3 {
  margin: 0;
}

.task-log-list {
  gap: 8px;
  max-height: min(58vh, 680px);
  padding-left: 24px;
  display: grid;
  overflow: auto;
}

.task-log-entry {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface-hover);
  border-radius: 8px;
  padding: 11px 12px;
}

.task-log-entry.task-log-warn {
  border-left-color: var(--warning);
}

.task-log-entry.task-log-error {
  border-left-color: var(--danger);
}

.task-log-entry.task-log-http-success {
  border-color: var(--success);
  border-left-color: var(--success);
}

.task-log-entry.task-log-http-redirect {
  border-color: var(--info);
  border-left-color: var(--info);
}

.task-log-entry.task-log-http-failure {
  border-color: var(--danger);
  border-left-color: var(--danger);
}

.task-log-entry.task-log-http-request-next {
  margin-top: 18px;
}

.task-log-entry-heading {
  flex-wrap: wrap;
}

.task-log-entry-heading .muted {
  margin-left: auto;
}

.task-log-entry p {
  margin: 8px 0 0;
  font-size: 13px;
}

.task-log-http-details {
  margin-top: 9px;
}

.task-log-http-method {
  font-weight: 700;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  margin: 0;
}

.task-log-url-row {
  align-items: flex-start;
  gap: 8px;
  margin-top: 7px;
  display: flex;
}

.task-log-url-row code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  min-width: 0;
  font-size: 12px;
}

.task-log-copy-url {
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  border-radius: 6px;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.task-log-copy-url:hover {
  border-color: var(--accent);
}

.task-log-http-status {
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  display: flex;
}

.task-log-http-status > span:not(.badge) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.task-log-entry pre {
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 6px;
  max-height: 260px;
  margin: 9px 0 0;
  padding: 9px;
  font-size: 11px;
  overflow: auto;
}

.worker-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  display: grid;
}

.system-status-heading {
  gap: 16px;
}

.system-status-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.system-status-actions .button {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.system-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  display: grid;
}

.system-summary-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 16px;
  display: grid;
}

.system-summary-card > svg {
  color: var(--accent);
  grid-row: 1 / 4;
}

.system-summary-card span, .system-summary-card small, .system-status-section-title span, .system-queue-grid span {
  color: var(--muted);
}

.system-summary-card strong {
  font-size: 22px;
}

.system-summary-card-success > svg {
  color: var(--success);
}

.system-summary-card-danger {
  border-color: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .system-summary-card-danger {
    border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  }
}

.system-summary-card-danger {
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .system-summary-card-danger {
    background: color-mix(in srgb, var(--danger) 7%, var(--surface));
  }
}

.system-summary-card-danger > svg, .system-summary-card-danger strong {
  color: var(--danger);
}

.system-status-section {
  border: 1px solid var(--border);
  background: var(--surface-subtle, var(--surface));
  border-radius: 12px;
  margin-top: 14px;
  padding: 14px;
}

.system-status-update-note {
  border: 1px solid var(--warning);
  margin-bottom: 14px;
  padding: 10px 12px;
}

@supports (color: color-mix(in lab, red, red)) {
  .system-status-update-note {
    border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--border));
  }
}

.system-status-update-note {
  color: var(--muted);
  background: var(--warning);
  border-radius: 9px;
}

@supports (color: color-mix(in lab, red, red)) {
  .system-status-update-note {
    background: color-mix(in srgb, var(--warning) 7%, var(--surface));
  }
}

.system-status-update-note {
  font-size: 13px;
}

.system-status-section-title {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.system-status-section-title h3 {
  margin: 0;
}

.system-queue-grid {
  border: 1px solid var(--border);
  border-radius: 9px;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  display: grid;
  overflow-x: auto;
}

.system-queue-grid > div {
  border-right: 1px solid var(--border);
  background: var(--surface);
  gap: 5px;
  padding: 12px;
  display: grid;
}

.system-queue-grid > div:last-child {
  border-right: 0;
}

.worker-card footer {
  align-items: center;
  gap: 5px;
  display: flex;
}

@media (max-width: 980px) {
  .system-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .system-summary-grid {
    grid-template-columns: 1fr;
  }
}

.worker-card, .stat-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
}

.worker-card header {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  padding: 16px;
  display: flex;
}

.worker-icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  place-items: center;
  display: grid;
}

.worker-card header > div:nth-child(2) {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.worker-card header span {
  color: var(--muted);
  font-size: 12.5px;
}

.worker-metrics {
  background: var(--border);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  display: grid;
}

.worker-metrics > div {
  background: var(--surface);
  align-content: center;
  gap: 4px;
  min-height: 92px;
  padding: 13px;
  display: grid;
}

.worker-metrics span, .worker-card footer {
  color: var(--muted);
  font-size: 11.5px;
}

.worker-card footer {
  padding: 10px 16px;
}

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

.stat-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 12px;
  padding: 18px;
  display: grid;
}

.stat-card svg {
  color: var(--accent);
  grid-row: 1 / 3;
}

.stat-card span {
  color: var(--muted);
  font-size: 12.5px;
}

.stat-card strong {
  letter-spacing: -.025em;
  font-size: 24px;
  font-weight: 640;
}

.monthly-statistics-section {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  margin-top: 18px;
  overflow: hidden;
}

.monthly-statistics-section > header {
  border-bottom: 1px solid var(--border);
  padding: 15px 18px;
}

.monthly-statistics-section h3 {
  font-size: 15px;
}

.monthly-statistics-table-wrap {
  overflow-x: auto;
}

.monthly-statistics-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 920px;
}

.monthly-statistics-table th, .monthly-statistics-table td {
  text-align: left;
  border-right: 1px solid var(--border);
  padding: 12px 14px;
}

.monthly-statistics-table th:last-child, .monthly-statistics-table td:last-child {
  border-right: 0;
}

.monthly-statistics-table th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11.5px;
  font-weight: 550;
}

.monthly-statistics-table td {
  font-size: 18px;
  font-weight: 650;
}

.admin-statistics-section {
  border-top: 1px solid var(--border);
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  display: grid;
}

.admin-statistics-heading {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-statistics-title {
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-statistics-heading svg {
  color: var(--accent);
}

.admin-statistics-heading h3 {
  font-size: 15px;
}

.admin-statistics-heading p {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

.admin-statistics-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.admin-task-statistics {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  gap: 16px;
  padding: 18px;
  display: grid;
}

.admin-task-statistics > header {
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.admin-task-statistics > header span, .admin-task-statistics small {
  color: var(--muted);
  font-size: 12px;
}

.admin-task-statistics > header strong {
  font-size: 24px;
}

.admin-task-statistics > div {
  border: 1px solid var(--border);
  background: var(--border);
  border-radius: 10px;
  grid-template-columns: repeat(9, minmax(88px, 1fr));
  gap: 1px;
  display: grid;
  overflow-x: auto;
}

.admin-task-statistics > div > span {
  background: var(--surface);
  gap: 5px;
  min-width: 88px;
  padding: 12px;
  display: grid;
}

.admin-task-statistics > div > span[data-status="SUCCESS"] {
  color: var(--success);
  background: var(--success-soft);
}

.admin-task-statistics > div > span[data-status="FAILED"] {
  color: var(--danger);
  background: var(--danger-soft);
}

.admin-task-statistics > div > span[data-status="RUNNING"], .admin-task-statistics > div > span[data-status="CLAIMED"] {
  color: var(--info);
  background: var(--info-soft);
}

.admin-task-statistics > div > span[data-status="CREATED"], .admin-task-statistics > div > span[data-status="QUEUED"], .admin-task-statistics > div > span[data-status="RETRY_WAIT"] {
  color: var(--warning);
  background: var(--warning-soft);
}

.admin-task-statistics > div > span[data-status="CANCEL_REQUESTED"], .admin-task-statistics > div > span[data-status="CANCELLED"] {
  color: var(--muted);
  background: var(--surface-soft);
}

.admin-task-statistics > div strong {
  font-size: 18px;
}

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

.settings-card {
  align-content: start;
  gap: 14px;
  padding: 18px;
  display: grid;
}

.vision-import-open-button {
  justify-self: start;
}

.dialog-content-large.vision-import-dialog {
  flex-direction: column;
  height: min(80vh, 760px);
  display: flex;
  overflow: hidden;
}

.vision-import-dialog .dialog-header {
  flex: none;
}

.vision-import-content {
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-height: 0;
  display: flex;
}

.vision-import-group-panel {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 10px;
  grid-template-columns: minmax(180px, .4fr) minmax(360px, 1fr);
  align-items: end;
  gap: 14px;
  padding: 12px;
  display: grid;
}

.vision-import-group-panel > div:first-child {
  gap: 3px;
  display: grid;
}

.vision-import-group-panel small, .vision-import-profile small {
  color: var(--muted);
  font-size: 11px;
}

.vision-import-group-controls {
  grid-template-columns: minmax(220px, 1fr) repeat(3, auto);
  gap: 7px;
  min-width: 0;
  display: grid;
}

.vision-import-group-controls .button {
  padding-inline: 10px;
}

.vision-import-toolbar {
  align-items: center;
  gap: 8px;
  display: flex;
}

.vision-import-search {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 240px;
  padding: 0 11px;
  display: flex;
}

.vision-import-search:focus-within {
  border-color: var(--info);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.vision-import-search input {
  width: 100%;
  min-width: 0;
  box-shadow: none;
  background: none;
  border: 0;
  padding-inline: 0;
}

.vision-import-search input:focus {
  box-shadow: none;
}

.vision-import-selected-count {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.vision-import-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  flex: 1;
  min-height: 160px;
  overflow-y: auto;
}

.vision-import-profile {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 8px 12px;
  display: grid;
}

.vision-import-profile:last-child {
  border-bottom: 0;
}

.vision-import-profile:hover {
  background: var(--surface-hover);
}

.vision-import-profile-main {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.vision-import-profile-main strong, .vision-import-profile-main small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.vision-import-status {
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 650;
}

.vision-import-status.is-success {
  color: var(--success);
  background: var(--success-soft);
}

.vision-import-status.is-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.vision-import-errors {
  border: 1px solid var(--danger);
  gap: 4px;
  max-height: 90px;
  padding: 9px 11px;
  display: grid;
  overflow-y: auto;
}

@supports (color: color-mix(in lab, red, red)) {
  .vision-import-errors {
    border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  }
}

.vision-import-errors {
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 9px;
  font-size: 11px;
}

.vision-import-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  display: flex;
}

@media (max-width: 780px) {
  .vision-import-group-panel {
    grid-template-columns: 1fr;
  }

  .vision-import-toolbar {
    flex-wrap: wrap;
  }

  .vision-import-search {
    flex-basis: 100%;
  }
}

.five-sim-balance-row {
  grid-template-columns: minmax(280px, 1fr) auto minmax(130px, auto);
  align-items: center;
  gap: 8px;
  display: grid;
}

.five-sim-balance-value {
  color: var(--text);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  display: grid;
}

.five-sim-balance-value small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .five-sim-balance-row {
    grid-template-columns: 1fr;
  }
}

.settings-card h3 {
  font-size: 14.5px;
  font-weight: 620;
}

.panel-style-settings {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.panel-style-settings legend {
  color: var(--muted);
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 560;
}

.panel-style-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  display: grid;
}

.panel-style-option {
  border: 1px solid var(--border);
  min-width: 0;
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
  border-radius: 9px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 1px 9px;
  padding: 8px;
  display: grid;
}

.panel-style-option:hover {
  border-color: var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option:hover {
    border-color: color-mix(in srgb, var(--info) 38%, var(--border));
  }
}

.panel-style-option:hover {
  background: var(--surface-hover);
}

.panel-style-option.is-active {
  border-color: var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option.is-active {
    border-color: color-mix(in srgb, var(--info) 58%, var(--border));
  }
}

.panel-style-option.is-active {
  background: var(--info-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option.is-active {
    background: color-mix(in srgb, var(--info-soft) 72%, var(--surface));
  }
}

.panel-style-option.is-active {
  box-shadow: 0 0 0 1px var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option.is-active {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 12%, transparent);
  }
}

.panel-style-option strong {
  font-size: 12px;
  font-weight: 650;
}

.panel-style-option small {
  color: var(--muted);
  grid-column: 2;
  font-size: 10.5px;
}

.panel-style-preview {
  background: var(--surface);
  border-radius: 6px;
  grid-row: 1 / span 2;
  width: 34px;
  height: 27px;
}

.panel-style-option-soft .panel-style-preview {
  border: 1px solid var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option-soft .panel-style-preview {
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  }
}

.panel-style-option-outline .panel-style-preview {
  border: 1px solid var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option-outline .panel-style-preview {
    border: 1px solid color-mix(in srgb, var(--text) 22%, var(--border));
  }
}

.panel-style-option-outline .panel-style-preview {
  box-shadow: 0 2px 5px #1e283e0a;
}

.panel-style-option-elevated .panel-style-preview {
  border: 1px solid var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option-elevated .panel-style-preview {
    border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  }
}

.panel-style-option-elevated .panel-style-preview {
  box-shadow: 0 5px 10px #1e283e24;
}

.panel-style-option-accent .panel-style-preview {
  border: 1px solid var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option-accent .panel-style-preview {
    border: 1px solid color-mix(in srgb, var(--info) 20%, var(--border));
  }
}

.panel-style-option-accent .panel-style-preview {
  box-shadow: inset 3px 0 0 var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-style-option-accent .panel-style-preview {
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--info) 62%, transparent);
  }
}

.vision-settings-row {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: grid;
}

.vision-settings-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 540;
}

.vision-settings-row > input, .vision-folder-control, .vision-folder-control .searchable-select {
  width: 100%;
  min-width: 0;
}

.vision-folder-control .searchable-select-popover {
  top: calc(100% + 5px);
  bottom: auto;
}

.extension-settings-card {
  gap: 12px;
}

.ai-settings-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.ai-settings-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12.5px;
}

.ai-settings-heading > span {
  border: 1px solid var(--accent);
  padding: 3px 7px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-settings-heading > span {
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  }
}

.ai-settings-heading > span {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.codex-incident-settings-card {
  gap: 12px;
}

.codex-incident-toggle {
  color: var(--text);
  gap: 9px;
  font-size: 13px;
}

.codex-incident-toggle > input {
  margin: 0;
}

.extension-settings-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.extension-settings-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12.5px;
}

.extension-settings-heading > span {
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
}

.extension-token-row {
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  display: grid;
}

.extension-token-row input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.extension-token-row .button {
  padding: 0;
}

.extension-settings-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.extension-download-button {
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  display: inline-flex;
}

.extension-settings-help {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.sessions-card {
  grid-column: 1 / -1;
}

.session-row {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  display: flex;
}

.session-row > div {
  flex-direction: column;
  flex: 1;
  display: flex;
}

.session-row span {
  color: var(--muted);
  font-size: 12.5px;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 1220px) {
  .dialog-content-large {
    width: min(1040px, 100vw - 32px);
  }

  .task-details-dialog {
    width: calc(100vw - 32px);
  }

  .profiles-toolbar, .proxy-toolbar {
    flex-wrap: wrap;
  }

  .pagination, .toolbar-end {
    justify-content: flex-end;
    width: 100%;
  }

  .toolbar-end .pagination {
    width: auto;
  }

  .stats-grid, .admin-statistics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .single-profile-form {
    grid-template-columns: 1fr;
  }

  .single-profile-form > * {
    grid-area: auto / 1;
  }

  .card-binding-layout, .business-manager-creation-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .card-binding-source, .card-binding-accounts, .business-manager-creation-settings, .business-manager-creation-profiles {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .admin-statistics-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .task-details-list, .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: 220px;
    padding: 30px 24px;
  }

  .auth-brand h1 {
    font-size: 29px;
  }

  .auth-brand p {
    display: none;
  }

  .auth-panel {
    padding: 18px 12px;
  }

  .auth-card {
    padding: 22px;
  }

  .sidebar, .sidebar-collapsed {
    width: min(280px, 86vw);
    transition: transform .18s;
    transform: translateX(-103%);
  }

  .sidebar-mobile-open {
    transform: translateX(0);
  }

  .sidebar-mobile-open .sidebar-brand > div, .sidebar-mobile-open nav a span, .sidebar-mobile-open .user-block {
    display: flex;
  }

  .sidebar-mobile-open .sidebar-collapse, .sidebar-mobile-open [data-tooltip]:after {
    display: none;
  }

  .mobile-close {
    margin-left: auto;
    display: inline-flex;
  }

  .mobile-overlay {
    z-index: 29;
    background: #0a0e1873;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .app-content, .sidebar-collapsed + .app-content {
    width: 100%;
    margin-left: 0;
  }

  .mobile-shell-bar {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    align-items: center;
    height: 54px;
    padding: 0 12px;
    display: flex;
  }

  .page-content {
    min-height: calc(100vh - 54px);
    padding: 16px 12px 72px;
  }

  .workspace-page {
    height: auto;
    min-height: 0;
    display: block;
  }

  .workspace-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .workspace-tab-links {
    flex-basis: 100%;
    width: 100%;
  }

  .workspace-statistics-range {
    border-top: 1px solid var(--border);
    border-left: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    padding: 8px 0;
    display: grid;
  }

  .workspace-statistics-range label {
    min-width: 0;
  }

  .workspace-statistics-range input {
    width: 100%;
    min-width: 0;
  }

  .statistics-date-trigger {
    justify-content: center;
    width: 100%;
  }

  .statistics-date-popover {
    width: auto;
    max-height: calc(100dvh - 20px);
    position: fixed;
    inset: auto 8px 10px;
    overflow-y: auto;
  }

  .column-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .proxy-page {
    height: auto;
    min-height: 0;
    display: block;
  }

  .page-heading {
    min-height: auto;
    margin-bottom: 12px;
  }

  .page-heading h2 {
    font-size: 18.5px;
  }

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

  .toolbar > *, .toolbar > select, .search-control, .group-controls {
    width: 100%;
  }

  .group-controls select {
    flex: 1;
    min-width: 0;
  }

  .pagination {
    justify-content: center;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .toolbar-end {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .toolbar-end .pagination {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pagination-range, .page-size-input, .pagination .button:first-of-type, .pagination .button:last-of-type, .profiles-grid {
    display: none;
  }

  .mobile-profile-list {
    gap: 8px;
    padding: 10px;
    display: grid;
  }

  .profile-card {
    border: 1px solid var(--border);
    background: var(--surface-soft);
    border-radius: 10px;
    grid-template-columns: 24px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 13px;
    display: grid;
  }

  .profile-card-selected {
    background: #c4f7b033;
    border-color: #66b950ad;
  }

  .profile-card > div {
    gap: 5px;
    min-width: 0;
    display: grid;
  }

  .profile-card strong {
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
  }

  .profile-card span {
    color: var(--muted);
    font-size: 12.5px;
  }

  .card-badges {
    gap: 5px;
    display: flex;
  }

  .bulk-bar, .sidebar-collapsed + .app-content .bulk-bar {
    min-height: 54px;
    inset: auto 8px 8px;
  }

  .bulk-actions .button:not(.bulk-edit-button) {
    display: none;
  }

  .bulk-actions .bulk-edit-button {
    font-size: 0;
  }

  .bulk-actions .bulk-edit-button:after {
    content: "Редактировать";
    font-size: 13px;
  }

  .dialog-content {
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-height: 92vh;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
  }

  .ad-account-bulk-dialog {
    height: 92vh;
  }

  .card-binding-dialog, .business-manager-creation-dialog {
    width: 100%;
    height: 84vh;
    max-height: 84vh;
    top: auto;
    bottom: 0;
    transform: none;
  }

  .bulk-management-layout, .bulk-task-groups, .bulk-task-group, .pixel-management-grid, .pixel-create-action, .pixel-events-action, .pixel-events-action-controls {
    grid-template-columns: 1fr;
  }

  .bulk-management-panel {
    min-height: auto;
  }

  .facebook-bm-creation-block > .button {
    grid-column: 1;
  }

  .form-grid, .settings-grid, .stats-grid, .admin-statistics-row {
    grid-template-columns: 1fr;
  }

  .sessions-card {
    grid-column: auto;
  }

  .apply-field {
    grid-template-columns: 20px 1fr;
  }

  .apply-field input:not([type="checkbox"]), .apply-field select {
    grid-column: 1 / -1;
  }

  .facebook-page-fill-dialog {
    height: 92vh;
    max-height: 92vh;
    padding: 16px;
  }

  .facebook-page-fill-fields-heading {
    display: grid;
  }

  .facebook-page-fill-field {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .facebook-page-fill-field-control {
    grid-column: 1 / -1;
  }

  .facebook-page-fill-address-grid {
    grid-template-columns: 1fr;
  }

  .facebook-page-fill-cover-controls {
    padding-left: 0;
  }

  .facebook-page-fill-preview-table th:first-child, .facebook-page-fill-preview-table td:first-child {
    width: 104px;
  }

  .facebook-page-fill-preview-cover, .facebook-page-fill-preview-cover-fallback, .facebook-page-fill-preview-cover-empty {
    width: 86px;
    height: 36px;
  }

  .facebook-page-fill-dialog-actions {
    z-index: 2;
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-inline: -16px;
    padding: 12px 16px 16px;
    position: sticky;
    bottom: -16px;
  }

  .resource-grid, .proxy-grid, .tasks-grid, .audit-grid, .users-grid {
    height: 62vh;
  }
}

.ad-entity-primary-name-cell {
  font-weight: 700;
}

.facebook-page-transfer-dialog {
  flex-direction: column;
  width: min(1380px, 100vw - 32px);
  max-width: 1380px;
  height: min(92vh, 820px);
  max-height: min(92vh, 820px);
  display: flex;
  overflow: hidden;
}

.facebook-page-transfer-layout {
  flex: 1;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 14px;
  min-height: 0;
  display: grid;
}

.facebook-page-transfer-pages, .facebook-page-transfer-target-block, .facebook-page-transfer-invite-only {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  min-width: 0;
}

.facebook-page-transfer-pages, .facebook-page-transfer-target-block {
  flex-direction: column;
  display: flex;
}

.facebook-page-transfer-pages > header, .facebook-page-transfer-target-block > header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.facebook-page-transfer-layout h3 {
  margin: 0;
  font-size: 15px;
}

.facebook-page-transfer-layout header small {
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

.facebook-page-transfer-layout header > span {
  border: 1px solid var(--border);
  border-radius: 999px;
  place-items: center;
  min-width: 28px;
  height: 28px;
  font-weight: 700;
  display: grid;
}

.facebook-page-transfer-selection-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  display: flex;
}

.facebook-page-transfer-selection-actions .button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}

.facebook-page-transfer-selection-actions > span {
  border: 1px solid var(--border);
  border-radius: 999px;
  place-items: center;
  min-width: 28px;
  height: 28px;
  font-weight: 700;
  display: grid;
}

.facebook-page-transfer-page-list, .facebook-page-transfer-profile-list {
  min-height: 0;
  overflow: auto;
}

.facebook-page-transfer-page-list {
  max-height: 660px;
  padding: 10px;
}

.facebook-page-transfer-page {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.facebook-page-transfer-page + .facebook-page-transfer-page {
  margin-top: 8px;
}

.facebook-page-transfer-page-title {
  align-items: center;
  gap: 10px;
  display: flex;
}

.facebook-page-transfer-page-title > div {
  flex: 1;
  min-width: 0;
}

.facebook-page-transfer-page-title small, .facebook-page-transfer-profile-list small {
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

.facebook-page-transfer-success {
  color: var(--success-text, #15803d);
  margin: 9px 0 0;
  font-weight: 700;
}

.facebook-page-transfer-task {
  background: var(--surface-soft);
  border-radius: 8px;
  margin-top: 8px;
  padding: 9px 10px;
}

.facebook-page-transfer-task-failed {
  color: var(--danger-text, #dc2626);
  background: var(--danger-soft, #fff1f2);
}

.facebook-page-transfer-task pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.facebook-page-transfer-targets {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  display: grid;
}

.facebook-page-transfer-target-block {
  min-height: 0;
  overflow: hidden;
}

.facebook-page-transfer-search {
  border: 1px solid var(--border);
  border-radius: 8px;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 10px;
  display: flex;
}

.facebook-page-transfer-filter-row {
  align-items: stretch;
  gap: 8px;
  margin: 12px;
  display: flex;
}

.facebook-page-transfer-group-filter {
  flex: 0 0 190px;
  min-width: 0;
}

.facebook-page-transfer-group-filter .searchable-select, .facebook-page-transfer-group-filter .searchable-select-trigger {
  width: 100%;
}

.facebook-page-transfer-group-filter .searchable-select-trigger {
  height: 100%;
  min-height: 40px;
}

.facebook-page-transfer-group-filter .searchable-select-popover {
  width: 240px;
}

.facebook-page-transfer-without-pages {
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 12px;
  display: flex;
}

.facebook-page-transfer-search input, .facebook-page-transfer-invite-only input {
  width: 100%;
  min-width: 0;
  height: 38px;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
}

.facebook-page-transfer-profile-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  flex: 1;
  max-height: none;
  margin: 0 12px;
}

.facebook-page-transfer-profile-list label {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: flex;
}

.facebook-page-transfer-profile-list label + label {
  border-top: 1px solid var(--border);
}

.facebook-page-transfer-profile-list label > span {
  min-width: 0;
}

.facebook-page-transfer-submit {
  background: var(--surface);
  gap: 8px;
  margin: 12px;
  padding-top: 2px;
  display: grid;
  position: sticky;
  bottom: 0;
}

.facebook-page-transfer-submit > label {
  width: fit-content;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.facebook-page-transfer-submit > .button {
  width: 100%;
}

.facebook-page-transfer-target-block > .field-error {
  margin: -6px 12px 12px;
}

.facebook-page-transfer-invite-only {
  border-color: var(--primary);
  padding: 14px;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-transfer-invite-only {
    border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
  }
}

.facebook-page-transfer-invite-only {
  background: var(--primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-transfer-invite-only {
    background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  }
}

.facebook-page-transfer-invite-only {
  box-shadow: inset 3px 0 0 var(--primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .facebook-page-transfer-invite-only {
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--primary) 65%, transparent);
  }
}

.facebook-page-transfer-invite-only p {
  color: var(--muted);
  margin: 6px 0 10px;
  font-size: 13px;
}

.facebook-page-transfer-invite-only input {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 0 10px;
}

.facebook-page-transfer-invite-only .button {
  width: 100%;
}

@media (max-width: 900px) {
  .facebook-page-transfer-dialog {
    height: 92vh;
    overflow-y: auto;
  }

  .facebook-page-transfer-layout {
    flex: none;
    grid-template-columns: 1fr;
  }

  .facebook-page-transfer-profile-list {
    max-height: 330px;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}
