@tailwind components;
@tailwind utilities;

.calio-admin-page {
  --calio-bg: radial-gradient(circle at top left, #f7f0ff 0%, #fff3f8 42%, #eef8ff 100%);
  --calio-card: #ffffff;
  --calio-card-strong: #ffffff;
  --calio-text: #18253d;
  --calio-muted: #667084;
  --calio-border: #ddd7f4;
  --calio-primary: #7c3aed;
  --calio-primary-strong: #5b21b6;
  --calio-primary-soft: #f3e8ff;
  --calio-secondary: #ec4899;
  --calio-secondary-soft: #fff1f7;
  --calio-cyan: #22d3ee;
  --calio-blue: #60a5fa;
  --calio-success: #16a34a;
  --calio-danger: #dc2626;
  --calio-success-soft: #e8f8ee;
  --calio-success-border: #9bd8b1;
  --calio-danger-soft: #fff1f2;
  --calio-danger-border: #efced2;
  --calio-accent: #f59e0b;
  --calio-brand-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  --calio-brand-soft-gradient: linear-gradient(180deg, rgba(243, 232, 255, 0.96) 0%, rgba(255, 241, 247, 0.96) 100%);
  --calio-brand-outline: rgba(124, 58, 237, 0.18);
  --calio-focus-ring: rgba(124, 58, 237, 0.14);
  --calio-soft-outline: #e9e5f4;
  --calio-shadow-brand-soft: 0 10px 20px rgba(124, 58, 237, 0.08);
  --calio-shadow-brand: 0 14px 28px rgba(124, 58, 237, 0.14);
  margin: 16px 20px 0 2px;
  color: var(--calio-text);
}

.calio-admin-notice-anchor {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.calio-admin-page > .notice,
.calio-admin-page > .updated,
.calio-admin-page > .error,
.calio-admin-page > .update-nag {
  margin: 0 0 16px;
}

.calio-admin-shell {
  max-width: 1480px;
  @apply tw-grid tw-gap-5;
}

.calio-admin-header {
  @apply tw-flex tw-flex-wrap tw-items-center tw-justify-between tw-gap-5 tw-rounded-3xl tw-border tw-px-6 tw-py-4;
  gap: 20px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 244, 255, 0.98) 54%, rgba(239, 248, 255, 0.98) 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.calio-admin-header-brand {
  @apply tw-flex tw-min-w-0 tw-items-center tw-gap-3.5;
  gap: 14px;
}

.calio-admin-header-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.14);
}

.calio-admin-header-copy {
  @apply tw-grid tw-gap-1;
}

.calio-admin-header-copy strong {
  font-size: 24px;
  line-height: 1;
}

.calio-admin-header-copy span {
  font-size: 13px;
  color: var(--calio-muted);
}

.calio-admin-header-actions {
  @apply tw-flex tw-flex-wrap tw-items-center tw-justify-end tw-gap-2.5;
  gap: 10px;
}

.calio-admin-header-link {
  @apply tw-inline-flex tw-min-h-10 tw-items-center tw-justify-center tw-rounded-full tw-border tw-bg-white tw-px-4 tw-font-bold tw-no-underline;
  min-height: 40px;
  border: 1px solid var(--calio-brand-outline);
  color: var(--calio-primary-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 245, 255, 0.96) 100%);
  box-shadow: var(--calio-shadow-brand-soft);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.calio-admin-header-link:hover {
  border-color: rgba(236, 72, 153, 0.26);
  box-shadow: var(--calio-shadow-brand);
  transform: translateY(-1px);
  color: var(--calio-primary-strong);
}

.calio-admin-header-link:focus-visible {
  outline: none;
  border-color: rgba(124, 58, 237, 0.34);
  box-shadow: 0 0 0 3px var(--calio-focus-ring), var(--calio-shadow-brand);
}

.calio-admin-frame {
  @apply tw-grid tw-items-start tw-gap-6;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.calio-admin-sidebar {
  @apply tw-grid tw-self-start;
  gap: 12px;
  position: sticky;
  top: 32px;
}

.calio-sidebar-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 245, 255, 0.98) 62%, rgba(242, 249, 255, 0.98) 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.calio-sidebar-panel::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14) 0%, rgba(124, 58, 237, 0.06) 60%, transparent 70%);
  pointer-events: none;
}

.calio-sidebar-panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calio-sidebar-panel-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.12);
}

.calio-sidebar-panel-copy {
  display: grid;
  gap: 3px;
}

.calio-sidebar-panel-copy strong {
  font-size: 18px;
  line-height: 1;
}

.calio-sidebar-panel-copy span {
  font-size: 12px;
  color: var(--calio-muted);
}

.calio-sidebar-panel-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.calio-admin-content {
  @apply tw-grid tw-min-w-0 tw-gap-5;
  gap: 20px;
}

.calio-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%);
  border: 1px solid var(--calio-border);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.08);
}

.calio-hero-overview::after {
  content: none;
}

.calio-hero-copy {
  display: grid;
  gap: 8px;
}

.calio-hero-brand-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.calio-hero-banner {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(216, 225, 240, 0.92);
  background: #fff;
  min-height: 140px;
}

.calio-hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.calio-hero-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.calio-hero-meta {
  display: grid;
  gap: 10px;
}

.calio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--calio-brand-outline);
  color: var(--calio-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calio-hero p {
  margin: 0;
  color: var(--calio-muted);
  font-size: 13px;
}

.calio-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calio-hero-stats-compact {
  align-self: start;
}

.calio-stat-card {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 225, 240, 0.92);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.calio-stat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.08);
}

.calio-stat-card-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f6efff 100%);
  border-color: rgba(124, 58, 237, 0.18);
}

.calio-stat-label {
  display: block;
  font-size: 11px;
  color: var(--calio-muted);
  margin-bottom: 6px;
}

.calio-stat-value {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.calio-stat-value-small {
  font-size: 18px;
  line-height: 1.2;
}

.calio-stat-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--calio-muted);
}

.calio-insights-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

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

.calio-overview-main,
.calio-overview-side {
  display: grid;
  gap: 14px;
}

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

.calio-overview-mini {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.98) 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.calio-overview-mini:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.08);
}

.calio-overview-mini strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.15;
}

.calio-overview-mini p {
  margin: 6px 0 0;
  color: var(--calio-muted);
  font-size: 12px;
}

.calio-insight-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.calio-insight-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--calio-primary);
}

.calio-insight-card p {
  margin: 0;
  color: var(--calio-muted);
}

.calio-tab-nav {
  @apply tw-grid tw-gap-2 tw-rounded-3xl tw-border tw-bg-white tw-p-4;
  gap: 8px;
  margin-bottom: 0;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 245, 255, 0.98) 58%, rgba(242, 250, 255, 0.98) 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.calio-tab-link {
  @apply tw-flex tw-items-center tw-justify-start tw-gap-2.5 tw-rounded-2xl tw-border tw-border-transparent tw-bg-transparent tw-px-4 tw-py-3.5 tw-font-bold tw-no-underline;
  gap: 10px;
  color: #1f2f4d;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.calio-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--calio-primary-soft);
  border: 1px solid rgba(124, 58, 237, 0.14);
  color: var(--calio-primary);
  font-size: 15px;
  flex-shrink: 0;
}

.calio-tab-label {
  min-width: 0;
}

.calio-tab-link:hover {
  transform: translateX(2px);
  border-color: var(--calio-brand-outline);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 245, 255, 0.95) 100%);
  box-shadow: var(--calio-shadow-brand-soft);
}

.calio-tab-link.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #fcf5ff 100%);
  border-color: rgba(124, 58, 237, 0.24);
  color: #0f172a;
  box-shadow: var(--calio-shadow-brand-soft);
}

.calio-tab-link.is-active .calio-tab-icon {
  background: var(--calio-brand-gradient);
  border-color: transparent;
  color: #fff;
}

.calio-tab-link:focus-visible {
  outline: none;
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 0 0 3px var(--calio-focus-ring);
}

.calio-tab-panel {
  display: none;
}

.calio-tab-panel.is-active {
  display: block;
}

.calio-surface {
  @apply tw-rounded-3xl tw-border tw-p-5;
  background: var(--calio-card);
  border: 1px solid var(--calio-soft-outline);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.calio-surface-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.calio-section-toolbar {
  @apply tw-mb-4 tw-flex tw-flex-wrap tw-items-start tw-justify-between tw-gap-4;
}

.calio-section-pills {
  @apply tw-flex tw-flex-wrap tw-gap-2;
}

.calio-build-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--calio-brand-soft-gradient);
  border: 1px solid var(--calio-brand-outline);
  color: var(--calio-primary);
  font-size: 12px;
  font-weight: 700;
}

.calio-surface h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.calio-section-note {
  margin: 0;
  color: var(--calio-muted);
  max-width: 760px;
  font-size: 13px;
  line-height: 1.6;
}

.calio-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

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

#calio-widget-search {
  min-width: 280px;
  border: 1px solid var(--calio-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff 0%, #fcfbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#calio-widget-search:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.calio-admin-page .button {
  border-radius: 10px;
  border: 1px solid var(--calio-brand-outline);
  background: linear-gradient(180deg, #fff 0%, #fcfbff 100%);
  color: var(--calio-primary-strong);
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.calio-admin-page .button:hover,
.calio-admin-page .button:focus {
  border-color: rgba(124, 58, 237, 0.26);
  color: var(--calio-primary);
  box-shadow: var(--calio-shadow-brand-soft);
  transform: translateY(-1px);
}

.calio-admin-page .button:focus {
  box-shadow: 0 0 0 3px var(--calio-focus-ring), var(--calio-shadow-brand-soft);
}

.calio-admin-page .button.button-primary,
.calio-admin-page .button-primary {
  border-color: transparent;
  background: var(--calio-brand-gradient);
  color: #fff;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.2);
}

.calio-admin-page .button.button-primary:hover,
.calio-admin-page .button-primary:hover,
.calio-admin-page .button.button-primary:focus,
.calio-admin-page .button-primary:focus {
  border-color: transparent;
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 50%, #db2777 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(124, 58, 237, 0.26);
}

.calio-module-toolbar {
  @apply tw-flex tw-flex-wrap tw-items-start tw-justify-between tw-gap-4;
  gap: 18px;
  margin-bottom: 14px;
}

.calio-module-toolbar-left,
.calio-module-toolbar-right {
  @apply tw-grid tw-gap-3;
}

.calio-module-toolbar-left {
  flex: 1 1 560px;
}

.calio-module-toolbar-right {
  flex: 0 1 auto;
}

.calio-module-pills {
  @apply tw-flex tw-flex-wrap tw-gap-2.5;
}

.calio-module-pill {
  @apply tw-inline-flex tw-items-center tw-gap-2 tw-rounded-xl tw-px-3;
  min-height: 34px;
  gap: 8px;
  border-radius: 12px;
  font-size: 11px;
}

.calio-module-pill strong {
  @apply tw-inline-flex tw-items-center tw-justify-center tw-rounded-full tw-px-2 tw-leading-none;
  min-width: 22px;
  background: rgba(15, 23, 42, 0.06);
  height: 22px;
  font-size: 10px;
}

.calio-module-pill-static {
  @apply tw-border tw-bg-white tw-text-xs tw-font-bold;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, #fff 0%, #fcfbff 100%);
  color: var(--calio-primary-strong);
}

.calio-module-pill-static strong {
  background: rgba(124, 58, 237, 0.12);
  color: var(--calio-primary);
}

.calio-module-pill-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.calio-module-pill-link:hover {
  transform: translateY(-1px);
  border-color: var(--calio-brand-outline);
  color: var(--calio-primary-strong);
  box-shadow: var(--calio-shadow-brand-soft);
}

.calio-module-pill-link:focus-visible {
  outline: none;
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 0 0 3px var(--calio-focus-ring);
}

.calio-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.calio-overview-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.calio-overview-card.is-dimmed {
  opacity: 0.55;
}

.calio-overview-card.is-active {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1) inset;
}

.calio-overview-card.is-static {
  cursor: default;
}

.calio-overview-label {
  display: block;
  color: var(--calio-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calio-overview-value {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.calio-overview-note {
  display: block;
  margin-top: 6px;
  color: var(--calio-muted);
  font-size: 11px;
}

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

.calio-dashboard-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.calio-dashboard-card-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f9f2ff 100%);
  border-color: rgba(124, 58, 237, 0.22);
}

.calio-dashboard-label,
.calio-requirement-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--calio-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calio-dashboard-value {
  display: block;
  margin-top: 14px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.calio-dashboard-value-small {
  font-size: 20px;
  line-height: 1.2;
}

.calio-dashboard-card p {
  margin: 12px 0 0;
  color: var(--calio-muted);
}

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

.calio-requirement-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.calio-requirement-card.is-ok {
  border-color: #bfe7c9;
  box-shadow: 0 0 0 1px #ddf7e3 inset;
}

.calio-requirement-card.is-risk {
  border-color: #f4c9cf;
  box-shadow: 0 0 0 1px #fde4e8 inset;
}

.calio-requirement-current {
  display: block;
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.calio-requirement-required,
.calio-requirement-state {
  display: block;
  margin-top: 6px;
  color: var(--calio-muted);
  font-size: 11px;
}

.calio-placeholder-grid-single {
  grid-template-columns: 1fr;
}

.calio-setting-card-grid,
.calio-license-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.calio-license-shell {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.calio-license-summary-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
}

.calio-license-summary-card .calio-dashboard-value {
  margin-top: 4px;
}

.calio-license-summary-card p {
  margin: 0;
}

.calio-license-summary-card .calio-quickstart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.calio-license-summary-card .calio-quick-action,
.calio-license-summary-card .calio-inline-action-form .calio-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.calio-license-summary-card .calio-inline-action-form {
  margin: 0;
}

.calio-license-activation-form {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.calio-license-activation-form label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b21b6;
}

.calio-license-activation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.calio-license-activation-row input {
  flex: 1 1 220px;
  min-height: 36px;
  max-width: 100%;
  border-color: rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.calio-license-activation-row input:focus {
  border-color: rgba(124, 58, 237, 0.44);
  box-shadow: 0 0 0 3px var(--calio-focus-ring);
}

.calio-license-activation-form .calio-quick-action[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.calio-license-activation-message[data-state="success"] {
  color: var(--calio-success);
}

.calio-license-activation-message[data-state="error"] {
  color: var(--calio-danger);
}

.calio-license-activation-message[data-state="loading"] {
  color: #6d28d9;
}

.calio-license-upgrade-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
}

.calio-license-upgrade-copy {
  display: grid;
  gap: 4px;
}

.calio-license-upgrade-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0 8px;
  min-height: 20px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.14);
  color: var(--calio-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calio-license-upgrade-copy strong {
  font-size: 14px;
  line-height: 1.25;
  color: #1f2937;
}

.calio-license-upgrade-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--calio-muted);
}

.calio-quick-action-primary {
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 55%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.24);
}

.calio-quick-action-primary:hover {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 12px 20px rgba(124, 58, 237, 0.3);
}

.calio-license-status.is-active {
  color: var(--calio-success);
}

.calio-license-status.is-inactive {
  color: var(--calio-danger);
}

.calio-license-status.is-warning {
  color: #b45309;
}

.calio-license-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.calio-status-label.is-active {
  border-color: rgba(22, 163, 74, 0.3);
  color: #0f7a3a;
  background: linear-gradient(180deg, #ecfdf3 0%, #def9e9 100%);
}

.calio-status-label.is-inactive {
  border-color: rgba(220, 38, 38, 0.28);
  color: #b42318;
  background: linear-gradient(180deg, #fff3f2 0%, #ffe6e4 100%);
}

.calio-status-label.is-warning {
  border-color: rgba(245, 158, 11, 0.32);
  color: #a16207;
  background: linear-gradient(180deg, #fff9eb 0%, #ffefcc 100%);
}

.calio-inline-action-form {
  margin: 0;
  display: inline-flex;
}

.calio-inline-action-form .calio-quick-action {
  appearance: none;
  margin: 0;
  cursor: pointer;
}

.calio-inline-action-form .fs-deactivate-license {
  border-color: rgba(220, 38, 38, 0.28);
  color: #b42318;
  background: linear-gradient(180deg, #fff3f2 0%, #ffe7e6 100%);
}

.calio-setting-card {
  @apply tw-rounded-2xl tw-border tw-bg-white;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.calio-setting-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  color: #9d174d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.calio-setting-card label {
  display: block;
  margin-top: 12px;
}

.calio-setting-card label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.calio-setting-card input {
  width: 100%;
  border: 1px solid var(--calio-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff 0%, #fcfbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.calio-setting-card input:focus,
.calio-form-grid input:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.calio-license-account-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.calio-license-account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calio-license-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calio-license-account-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.calio-license-account-label {
  display: block;
  margin-bottom: 4px;
  color: var(--calio-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calio-license-account-value {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.calio-license-account-value.is-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--calio-border);
  background: #f8fafc;
}

.calio-license-account-value.is-active {
  border-color: rgba(22, 163, 74, 0.28);
  color: #0f7a3a;
  background: linear-gradient(180deg, #ecfdf3 0%, #def9e9 100%);
}

.calio-license-account-value.is-inactive {
  border-color: rgba(220, 38, 38, 0.28);
  color: #b42318;
  background: linear-gradient(180deg, #fff3f2 0%, #ffe7e6 100%);
}

.calio-license-account-value.is-warning {
  border-color: rgba(245, 158, 11, 0.32);
  color: #a16207;
  background: linear-gradient(180deg, #fff9eb 0%, #ffefcc 100%);
}

.calio-subtle-note {
  margin: 12px 0 0;
  color: var(--calio-muted);
}

.calio-filter-bar {
  @apply tw-flex tw-flex-wrap tw-justify-between tw-gap-3.5;
  gap: 14px;
  margin-bottom: 12px;
}

.calio-filter-bar-compact {
  @apply tw-items-center tw-pt-1 tw-pb-3.5;
  align-items: center;
  padding-top: 4px;
  padding-bottom: 14px;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

.calio-filter-label {
  color: var(--calio-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calio-filter-group {
  @apply tw-flex tw-flex-wrap tw-gap-2;
}

.calio-filter-pill,
.calio-quick-action {
  @apply tw-rounded-full tw-border tw-bg-white tw-px-3 tw-py-2 tw-text-xs tw-font-bold tw-leading-none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, #fff 0%, #fcfbff 100%);
  color: #4c1d95;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.06);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.calio-filter-pill:hover,
.calio-quick-action:hover {
  transform: translateY(-1px);
  border-color: var(--calio-brand-outline);
  box-shadow: var(--calio-shadow-brand-soft);
}

.calio-filter-pill.is-active {
  background: var(--calio-brand-soft-gradient);
  border-color: rgba(124, 58, 237, 0.26);
  color: var(--calio-primary);
}

.calio-filter-pill:focus-visible,
.calio-quick-action:focus-visible {
  outline: none;
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 0 0 3px var(--calio-focus-ring);
}

.calio-module-summary {
  @apply tw-mt-3 tw-mb-0.5 tw-flex tw-flex-wrap tw-items-center tw-justify-between tw-gap-2.5;
  gap: 10px;
}

#calio_addon_active_modules .calio-module-toolbar {
  gap: 12px;
  margin-bottom: 10px;
}

#calio_addon_active_modules .calio-module-toolbar-left,
#calio_addon_active_modules .calio-module-toolbar-right {
  gap: 8px;
}

#calio_addon_active_modules h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

#calio_addon_active_modules .calio-section-note {
  font-size: 12px;
  line-height: 1.5;
}

#calio_addon_active_modules .calio-module-pills {
  gap: 6px;
}

#calio_addon_active_modules .calio-module-pill {
  min-height: 34px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 12px;
  font-size: 11px;
}

#calio_addon_active_modules .calio-module-pill strong {
  min-width: 22px;
  height: 22px;
  font-size: 10px;
}

#calio_addon_active_modules .calio-toolbar-actions {
  gap: 6px;
}

#calio_addon_active_modules #calio-widget-search {
  min-width: 220px;
  min-height: 34px;
  padding: 8px 11px;
  font-size: 12px;
}

#calio_addon_active_modules #calio-clear-search,
#calio_addon_active_modules #calio-enable-all,
#calio_addon_active_modules #calio-disable-all {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 32px;
}

#calio_addon_active_modules .calio-filter-bar-compact {
  padding-top: 2px;
  padding-bottom: 10px;
  margin-bottom: 4px;
}

#calio_addon_active_modules .calio-filter-label {
  font-size: 11px;
}

#calio_addon_active_modules .calio-filter-group {
  gap: 6px;
}

#calio_addon_active_modules .calio-filter-pill {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
}

#calio_addon_active_modules .calio-module-summary {
  margin-top: 10px;
  gap: 8px;
}

#calio_addon_active_modules .calio-results-note {
  font-size: 12px;
}

#calio_addon_elementor_extend .calio-module-toolbar {
  gap: 12px;
  margin-bottom: 10px;
}

#calio_addon_elementor_extend .calio-module-toolbar-left,
#calio_addon_elementor_extend .calio-module-toolbar-right {
  gap: 8px;
}

#calio_addon_elementor_extend h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

#calio_addon_elementor_extend .calio-section-note {
  font-size: 12px;
  line-height: 1.5;
  max-width: 680px;
}

#calio_addon_elementor_extend .calio-module-pills {
  gap: 6px;
}

#calio_addon_elementor_extend .calio-module-pill {
  min-height: 34px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 12px;
  font-size: 11px;
}

#calio_addon_elementor_extend .calio-module-pill strong {
  min-width: 22px;
  height: 22px;
  font-size: 10px;
}

.calio-results-note {
  color: var(--calio-muted);
  font-size: 13px;
}

.calio-results-note strong {
  color: var(--calio-text);
}

.calio-empty-state {
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(124, 58, 237, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.calio-empty-state p {
  margin: 10px 0 0;
  color: var(--calio-muted);
}

.calio-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin: 16px 0 12px;
}

#calio-widget-grid {
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
  margin: 14px 0 10px;
}

.calio-widget-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --calio-state-indicator: inset 0 0 0 0 transparent;
  border: 1px solid var(--calio-soft-outline);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--calio-state-indicator);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#calio-widget-grid .calio-widget-card {
  border-radius: 14px;
  padding: 12px;
  min-height: 148px;
}

#calio_addon_elementor_extend .calio-widget-card {
  min-height: 148px;
}

.calio-widget-status-bar {
  display: none;
}

#calio-widget-grid .calio-widget-status-bar {
  display: none;
}

.calio-widget-card:hover {
  border-color: rgba(124, 58, 237, 0.24);
  box-shadow: var(--calio-state-indicator), 0 8px 18px rgba(124, 58, 237, 0.08);
}

.calio-widget-card[data-enabled="1"] {
  border-color: var(--calio-soft-outline);
  background: #fff;
  --calio-state-indicator: inset 3px 0 0 rgba(22, 163, 74, 0.5);
}

.calio-widget-card[data-enabled="1"] .calio-widget-status-bar {
  background: linear-gradient(90deg, #16a34a 0%, #86efac 100%);
}

.calio-widget-card[data-enabled="0"] {
  border-color: var(--calio-soft-outline);
  background: #fff;
  --calio-state-indicator: inset 3px 0 0 rgba(220, 38, 38, 0.45);
}

.calio-widget-card[data-enabled="0"] .calio-widget-status-bar {
  background: linear-gradient(90deg, #dc2626 0%, #fda4af 100%);
}

.calio-widget-card.is-locked {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
  --calio-state-indicator: inset 3px 0 0 rgba(245, 158, 11, 0.55);
}

.calio-widget-card.is-locked:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--calio-state-indicator), 0 8px 18px rgba(245, 158, 11, 0.14);
}

.calio-widget-card.is-hidden {
  display: none;
}

.calio-widget-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

#calio-widget-grid .calio-widget-head {
  gap: 10px;
  margin-bottom: 8px;
}

.calio-widget-head-main {
  min-width: 0;
  display: grid;
  gap: 6px;
  grid-template-rows: auto;
  align-content: start;
}

.calio-widget-head-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  max-width: none;
}

.calio-widget-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
}

#calio-widget-grid .calio-widget-title-row {
  gap: 6px;
}

.calio-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.calio-lock-badge.is-unlocked {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.calio-widget-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#calio-widget-grid .calio-widget-head h3 {
  font-size: 14px;
  line-height: 1.25;
}

.calio-focus-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.14);
  color: var(--calio-primary-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#calio-widget-grid .calio-focus-pill {
  min-height: 20px;
  padding: 0 7px;
  font-size: 9px;
}

.calio-widget-summary {
  margin: 0;
  color: var(--calio-muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

#calio-widget-grid .calio-widget-summary {
  font-size: 11px;
  line-height: 1.45;
  min-height: 0;
}

#calio_addon_elementor_extend .calio-widget-summary {
  min-height: 0;
}

.calio-widget-lock-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #92400e;
}

.calio-lock-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.calio-lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: #fff7e8;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
}

.calio-lock-chip .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
  line-height: 12px;
}

.calio-lock-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  color: var(--calio-primary-strong);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.calio-lock-link:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 8px 14px rgba(124, 58, 237, 0.12);
}

.calio-lock-link:focus-visible {
  outline: none;
  border-color: rgba(124, 58, 237, 0.38);
  box-shadow: 0 0 0 3px var(--calio-focus-ring);
}

.calio-widget-slug {
  display: inline-block;
  font-size: 9px;
  color: var(--calio-muted);
  background: #fbfafe;
  border: 1px solid var(--calio-soft-outline);
  border-radius: 999px;
  padding: 2px 7px;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.calio-widget-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 0;
  padding-top: 6px;
}

.calio-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  background: #faf8ff;
  border: 1px solid rgba(124, 58, 237, 0.16);
  color: var(--calio-primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calio-meta-chip-tier.is-free {
  background: #eefcf3;
  border-color: #bde8cb;
  color: #15803d;
}

.calio-meta-chip-tier.is-pro {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.calio-meta-chip-locked {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.calio-meta-chip-muted {
  background: #f8f6ff;
  border-color: #e2ddf4;
  color: #6b7280;
}

.calio-meta-chip-status {
  background: #eefcf3;
  border-color: #bde8cb;
  color: #15803d;
}

.calio-widget-card[data-enabled="0"] .calio-meta-chip-status {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.calio-widget-card[data-enabled="0"] [data-state-text] {
  color: #be123c;
}

.calio-widget-card[data-enabled="1"] [data-state-text] {
  color: #15803d;
}

.calio-widget-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e9e2f7;
}

.calio-widget-state-copy {
  display: grid;
  gap: 4px;
}

.calio-widget-state-label {
  color: var(--calio-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calio-switch-wrap {
  flex-shrink: 0;
}

.calio-switch-wrap.is-compact .calio-switch {
  gap: 0;
}

.calio-switch-wrap.is-compact .calio-switch-copy {
  display: none;
}

.calio-switch-wrap.is-compact .calio-switch-track {
  width: 36px;
  height: 18px;
  padding: 2px;
}

.calio-switch-wrap.is-compact .calio-switch-thumb {
  width: 12px;
  height: 12px;
}

.calio-switch-wrap.is-compact .calio-switch-input:checked + .calio-switch-track .calio-switch-thumb {
  transform: translateX(16px);
}

.calio-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.calio-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calio-switch-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 24px;
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4efff 0%, #ece8f8 100%);
  border: 1px solid #d9d2ee;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.calio-switch-thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calio-switch-input:checked + .calio-switch-track {
  background: var(--calio-brand-gradient);
  border-color: rgba(124, 58, 237, 0.24);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.22);
}

.calio-switch-input:checked + .calio-switch-track .calio-switch-thumb {
  transform: translateX(20px);
}

.calio-switch-copy {
  display: grid;
  gap: 2px;
}

.calio-switch-copy-on,
.calio-switch-copy-off {
  font-size: 11px;
  line-height: 1.1;
}

.calio-switch-copy-on {
  font-weight: 700;
  color: #0f172a;
}

.calio-switch-copy-off {
  color: var(--calio-muted);
}

.calio-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.calio-placeholder-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--calio-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.calio-placeholder-card p {
  margin: 10px 0 0;
  color: var(--calio-muted);
}

.calio-placeholder-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--calio-brand-soft-gradient);
  border: 1px solid var(--calio-brand-outline);
  color: var(--calio-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calio-form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-width: 720px;
}

.calio-form-grid label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.calio-form-grid input {
  width: 100%;
  border: 1px solid var(--calio-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff 0%, #fcfbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.calio-widget-card-single {
  max-width: 520px;
  margin: 18px 0 12px;
}

.calio-save-btn {
  margin-top: 8px !important;
}

.calio-form-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e9e2f7;
}

.calio-form-status {
  color: var(--calio-muted);
  font-size: 12px;
}

form.is-dirty .calio-form-status {
  color: var(--calio-primary);
  font-weight: 700;
}

@media (max-width: 960px) {
  .calio-admin-page {
    margin-right: 12px;
  }

  .calio-admin-header,
  .calio-admin-frame,
  .calio-module-toolbar,
  .calio-hero-summary,
  .calio-hero-stats,
  .calio-overview-strip,
  .calio-insights-row,
  .calio-quickstart-row,
  .calio-dashboard-grid,
  .calio-overview-shell {
    grid-template-columns: 1fr;
  }

  .calio-admin-sidebar {
    position: static;
  }

  .calio-tab-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .calio-requirements-grid {
    grid-template-columns: 1fr;
  }

  .calio-license-shell,
  .calio-license-account-grid {
    grid-template-columns: 1fr;
  }

  .calio-license-summary-card .calio-quickstart-actions {
    gap: 6px;
  }

  .calio-license-upgrade-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 782px) {
  .calio-hero,
  .calio-surface {
    padding: 18px;
    border-radius: 20px;
  }

  .calio-admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .calio-admin-header-actions {
    justify-content: flex-start;
  }

  .calio-module-toolbar-left,
  .calio-module-toolbar-right {
    flex: 1 1 100%;
  }

  #calio-widget-search {
    min-width: 100%;
  }

  .calio-filter-bar,
  .calio-results-row {
    align-items: flex-start;
  }

  .calio-widget-footer,
  .calio-surface-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .calio-widget-head {
    grid-template-columns: 1fr;
  }

  .calio-license-summary-card .calio-quickstart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .calio-license-summary-card .calio-inline-action-form,
  .calio-license-summary-card .calio-quick-action,
  .calio-license-summary-card .calio-inline-action-form .calio-quick-action {
    width: 100%;
  }

  .calio-license-upgrade-callout .calio-quick-action {
    width: 100%;
  }

  .calio-widget-head-side {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .calio-widget-grid {
    grid-template-columns: 1fr;
  }

  .calio-license-account-item {
    padding: 10px;
  }
}

.elementor-element-wrapper.calio-editor-widget-card,
.elementor-element.calio-editor-widget-card {
  position: relative;
}

.calio-editor-widget-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  right: auto;
  z-index: 4;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  opacity: .72;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    #7dd3fc;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 1px 3px rgba(0,0,0,.28);
}

.calio-editor-widget-badge::before {
  content: "C";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0f172a;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
}

.elementor-element-wrapper.calio-editor-widget-card:hover .calio-editor-widget-badge,
.elementor-element.calio-editor-widget-card:hover .calio-editor-widget-badge {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,0)),
    #38bdf8;
}
