/* GIOTECH Creator Studio — design tokens, light/dark themes, app shell and mobile layout.
   Loaded after styles.css. The theme is set on <html data-theme="light|dark"> by ui.js
   (choice saved per browser; "system" follows the device). */

:root,
html[data-theme='light'] {
  --surface-0: #f6f8fb;      /* page */
  --surface-1: #ffffff;      /* cards, sidebar */
  --surface-2: #f1f4f9;      /* inputs, hover, table heads */
  --surface-3: #e6ebf3;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --accent: #0369a1;
  --accent-ink: #ffffff;
  --accent-soft: #e0f2fe;
  --accent-soft-ink: #075985;
  --ok: #047857; --ok-soft: #d1fae5;
  --warn: #b45309; --warn-soft: #fef3c7;
  --bad: #b91c1c; --bad-soft: #fee2e2;
  --info: #1d4ed8; --info-soft: #dbeafe;
  --muted-soft: #eef2f7;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
  --scrim: rgba(15, 23, 42, 0.45);
  --radius: 12px;
  --radius-sm: 8px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --surface-0: #0b1220;
  --surface-1: #111a2e;
  --surface-2: #18233b;
  --surface-3: #22304d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #e6edf7;
  --ink-2: #a3b1c6;
  --ink-3: #8394ad;
  --accent: #38bdf8;
  --accent-ink: #04131c;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-soft-ink: #7dd3fc;
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, 0.14);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, 0.14);
  --info: #93c5fd; --info-soft: rgba(147, 197, 253, 0.14);
  --muted-soft: rgba(148, 163, 184, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --scrim: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* The older stylesheet's variables now follow the theme. */
html[data-theme] {
  --bg-dark: var(--surface-0);
  --bg-card: var(--surface-1);
  --bg-input: var(--surface-2);
  --text-main: var(--ink);
  --text-muted: var(--ink-2);
  --border-color: var(--line);
  --primary-cyan: var(--accent);
  --glass-shadow: var(--shadow-sm);
}

/* The public marketing page keeps its dark brand look in both themes. */
.saas-landing-page {
  --bg-dark: #0a192f; --bg-card: rgba(15, 23, 42, 0.85); --bg-input: #1e293b; --text-main: #f8fafc; --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1); --primary-cyan: #00f2fe; color: #f8fafc;
}

/* ------------------------------------------------------------------ base */
html[data-theme] body { background: var(--surface-0); background-image: none; color: var(--ink); -webkit-font-smoothing: antialiased; }
html[data-theme] a { color: var(--accent); }
html[data-theme] .text-muted { color: var(--ink-3) !important; }
html[data-theme] .text-red { color: var(--bad) !important; }
html[data-theme] .text-green { color: var(--ok) !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------------ shell */
html[data-theme] .app-wrapper { background: var(--surface-0); min-height: 100vh; }
html[data-theme] .sidebar {
  background: var(--surface-1); border-right: 1px solid var(--line); backdrop-filter: none; width: 256px; padding: 1rem 0.75rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0;
}
html[data-theme] .sidebar-header { padding: 0.25rem 0.5rem 0.75rem; }
html[data-theme] .logo-box { box-shadow: none; width: 38px; height: 38px; border-radius: 10px; }
html[data-theme] .company-name { color: var(--ink); }
html[data-theme] .product-name, html[data-theme] .subdomain-tag { color: var(--accent); }
html[data-theme] .tenant-badge { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); box-shadow: none; }
.nav-create { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; margin: 0.25rem 0 0.75rem; padding: 0.65rem 0.9rem; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.nav-create:hover { filter: brightness(1.06); }
.nav-section { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 0.9rem 0.75rem 0.3rem; list-style: none; }
html[data-theme] .sidebar-menu ul { gap: 2px; display: flex; flex-direction: column; }
html[data-theme] .sidebar-menu li a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 0.9rem;
  background: none; border: 0; box-shadow: none; min-height: 40px;
}
html[data-theme] .sidebar-menu li a i { width: 18px; text-align: center; color: var(--ink-3); font-size: 0.95rem; }
html[data-theme] .sidebar-menu li a:hover { background: var(--surface-2); color: var(--ink); }
html[data-theme] .sidebar-menu li.active a { background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 600; }
html[data-theme] .sidebar-menu li.active a i { color: var(--accent-soft-ink); }
html[data-theme] .nav-count { margin-left: auto; background: var(--accent); color: var(--accent-ink); }
html[data-theme] .sidebar-footer { border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: auto; }
html[data-theme] .user-name { color: var(--ink); }
html[data-theme] .user-role { color: var(--ink-3); }
html[data-theme] .avatar { background: var(--surface-2); color: var(--ink-2); }
html[data-theme] .btn-logout { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

html[data-theme] .main-content { background: var(--surface-0); padding: 0 2rem 3rem; min-width: 0; flex: 1; }
html[data-theme] .top-header {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface-0) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 1rem 0; margin-bottom: 1.25rem; gap: 1rem; display: flex; align-items: center; justify-content: space-between;
}
html[data-theme] #page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
html[data-theme] .top-header .subtitle { color: var(--ink-3); font-size: 0.88rem; margin-top: 0.15rem; }
html[data-theme] .header-right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
html[data-theme] .ai-status-indicator, html[data-theme] .poster-status-indicator, html[data-theme] .brand-link {
  background: var(--surface-1); border: 1px solid var(--line); color: var(--ink-2); box-shadow: none; font-size: 0.78rem; border-radius: 999px; padding: 0.35rem 0.7rem;
}
html[data-theme] .status-label strong { color: var(--ink); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 40px; height: 40px; padding: 0 0.7rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-1); color: var(--ink-2); cursor: pointer; font-size: 0.9rem; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.menu-btn { display: none; }
.header-new-post { display: inline-flex; align-items: center; gap: 0.45rem; height: 40px; padding: 0 1rem; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }

/* theme menu */
.theme-menu { position: relative; }
.theme-pop { position: absolute; right: 0; top: 46px; z-index: 50; background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; min-width: 170px; display: none; }
.theme-pop.open { display: block; }
.theme-pop button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem; border: 0; background: none; color: var(--ink); border-radius: 8px; cursor: pointer; font-size: 0.88rem; text-align: left; }
.theme-pop button:hover { background: var(--surface-2); }
.theme-pop button[aria-checked='true'] { background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 600; }

/* ------------------------------------------------------------------ surfaces */
html[data-theme] .glass-panel, html[data-theme] .panel-card, html[data-theme] .stat-card, html[data-theme] .int-card, html[data-theme] .an-card,
html[data-theme] .an-tile, html[data-theme] .social-card-mockup, html[data-theme] .studio-form-panel, html[data-theme] .studio-preview-panel {
  background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: none; color: var(--ink); border-radius: var(--radius);
}
html[data-theme] .int-card .int-card, html[data-theme] .rule-row { background: var(--surface-0); }
html[data-theme] .panel-header { border-bottom: 1px solid var(--line); }
html[data-theme] .panel-header h2 { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
html[data-theme] .int-tile, html[data-theme] .tpl-card, html[data-theme] .vis-card, html[data-theme] .wa-list, html[data-theme] .wa-chat, html[data-theme] .slot-row select {
  border-color: var(--line); background: var(--surface-1); color: var(--ink);
}
html[data-theme] .tpl-card:hover, html[data-theme] .vis-card:hover { border-color: var(--accent); background: var(--surface-2); }
html[data-theme] .stat-value { color: var(--ink); }
html[data-theme] .an-value { color: var(--ink); }
html[data-theme] .an-label, html[data-theme] .an-sub { color: var(--ink-3); }
html[data-theme] .an-bar, html[data-theme] .an-row-bar { background: var(--accent); }
html[data-theme] .an-row-track { background: var(--surface-2); }

/* ------------------------------------------------------------------ controls */
html[data-theme] .form-input, html[data-theme] .form-select {
  background: var(--surface-1); border: 1px solid var(--line-strong); color: var(--ink); border-radius: var(--radius-sm); min-height: 40px; font-size: 0.92rem;
}
html[data-theme] .form-input::placeholder { color: var(--ink-3); }
html[data-theme] .form-input:focus, html[data-theme] .form-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
html[data-theme] .form-group label, html[data-theme] label { color: var(--ink-2); }
html[data-theme] .btn-primary {
  background: var(--accent); background-image: none; color: var(--accent-ink); border: 1px solid transparent; box-shadow: none; border-radius: 10px; font-weight: 700;
}
html[data-theme] .btn-primary:hover { filter: brightness(1.07); transform: none; box-shadow: none; }
html[data-theme] .btn-secondary { background: var(--surface-1); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; border-radius: 10px; }
html[data-theme] .btn-secondary:hover { background: var(--surface-2); }
html[data-theme] .btn-accent { background: var(--ok); color: #fff; border: 0; box-shadow: none; border-radius: 10px; }
html[data-theme] .btn-sm { min-height: 34px; padding: 0.35rem 0.75rem; font-size: 0.82rem; }
html[data-theme] .tab-btn { color: var(--ink-2); background: none; }
html[data-theme] .tab-btn.active { color: var(--accent-soft-ink); background: var(--accent-soft); }
html[data-theme] .check-item { color: var(--ink); }

/* segmented tabs (Posts, Inbox, Settings) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1rem; }
.seg button { border: 0; background: none; color: var(--ink-2); padding: 0.45rem 0.9rem; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; min-height: 34px; }
.seg button[aria-selected='true'] { background: var(--surface-1); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button .seg-n { margin-left: 0.35rem; font-weight: 500; color: var(--ink-3); }

/* ------------------------------------------------------------------ tables, badges, code */
html[data-theme] .data-table { color: var(--ink); }
html[data-theme] .data-table th { background: var(--surface-2); color: var(--ink-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
html[data-theme] .data-table td { border-bottom: 1px solid var(--line); }
html[data-theme] .data-table tr:hover td { background: var(--surface-0); }
.table-scroll, .calendar-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html[data-theme] .badge { border: 0; font-weight: 600; }
html[data-theme] .badge-success { background: var(--ok-soft); color: var(--ok); }
html[data-theme] .badge-warning { background: var(--warn-soft); color: var(--warn); }
html[data-theme] .badge-danger { background: var(--bad-soft); color: var(--bad); }
html[data-theme] .badge-info { background: var(--info-soft); color: var(--info); }
html[data-theme] .badge-secondary { background: var(--muted-soft); color: var(--ink-2); }
html[data-theme] .tag-campaign { background: var(--accent-soft); color: var(--accent-soft-ink); }
html[data-theme] .int-code, html[data-theme] .int-result, html[data-theme] code { background: var(--surface-2); color: var(--ink); }
html[data-theme] .int-newkey { background: var(--ok-soft); color: var(--ok); }
html[data-theme] .social-ok { border-left: 4px solid var(--ok); background: var(--ok-soft); }
html[data-theme] .social-err { border-left: 4px solid var(--bad); background: var(--bad-soft); }
html[data-theme] .social-intro.demo { border-color: var(--warn); background: var(--warn-soft); }

/* ------------------------------------------------------------------ dialogs */
html[data-theme] .modal-overlay { background: var(--scrim); backdrop-filter: blur(2px); }
html[data-theme] .modal-content { background: var(--surface-1); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-md); border-radius: 16px; }
html[data-theme] .modal-header { border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; position: sticky; top: 0; background: var(--surface-1); z-index: 2; }
html[data-theme] .modal-header h2 { color: var(--ink); font-size: 1.15rem; }
html[data-theme] .close-btn, html[data-theme] .modal-close { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; flex-shrink: 0; cursor: pointer; font-size: 1.2rem; }

/* ------------------------------------------------------------------ inbox, calendar */
html[data-theme] .wa-item { border-bottom-color: var(--line); }
html[data-theme] .wa-item.active, html[data-theme] .wa-item:hover { background: var(--accent-soft); }
html[data-theme] .wa-msg.in { background: var(--surface-2); }
html[data-theme] .wa-msg.out { background: var(--ok-soft); }
html[data-theme] .wa-chat-head, html[data-theme] .wa-reply { border-color: var(--line); }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.page-head .meta { color: var(--ink-3); font-size: 0.88rem; }
.week-nav { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.week-nav .week-label { min-width: 120px; text-align: center; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-1); }
.cal-col { border-right: 1px solid var(--line); min-height: 380px; display: flex; flex-direction: column; min-width: 0; }
.cal-col:last-child { border-right: 0; }
.cal-col-head { padding: 0.6rem 0.7rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-col-head .dow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.cal-col-head .dom { font-weight: 700; color: var(--ink); }
.cal-col-head .cnt { font-size: 0.72rem; color: var(--ink-3); }
.cal-col.today .cal-col-head { background: var(--accent-soft); }
.cal-col.today .dom, .cal-col.today .dow { color: var(--accent-soft-ink); }
.cal-col-body { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.cal-empty { color: var(--ink-3); font-size: 0.78rem; padding: 0.3rem; }
.cal-post { text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 0.4rem 0.5rem; background: var(--surface-1); color: var(--ink); cursor: pointer; font-size: 0.78rem; width: 100%; }
.cal-post:hover { background: var(--surface-2); }
.cal-post .t { font-weight: 700; color: var(--ink-3); font-size: 0.72rem; }
.cal-post .n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-post.st-PUBLISHED { border-left-color: var(--ok); }
.cal-post.st-FAILED { border-left-color: var(--bad); }
.cal-post.st-SANDBOX { border-left-color: var(--ink-3); }
.cal-slot { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 0.3rem 0.5rem; font-size: 0.74rem; color: var(--ink-3); background: none; text-align: left; cursor: pointer; }
.cal-slot:hover { border-color: var(--accent); color: var(--accent); }
.slot-summary { margin-top: 1.25rem; }
.slot-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.slot-day { border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem; background: var(--surface-1); font-size: 0.8rem; }
.slot-day b { display: block; margin-bottom: 0.25rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-1); color: var(--ink-2); }
.empty-state h3 { color: var(--ink); margin-bottom: 0.35rem; }
.empty-state .btn-primary { margin-top: 0.75rem; }

/* floating create button (phones) and overlay */
.fab { display: none; }
.drawer-scrim { display: none; }

/* ------------------------------------------------------------------ phones and tablets */
@media (max-width: 960px) {
  html[data-theme] .app-wrapper { flex-direction: row; }
  html[data-theme] .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 80; width: min(84vw, 300px); height: 100dvh; transform: translateX(-102%);
    transition: transform 0.22s ease; box-shadow: var(--shadow-md);
  }
  html.drawer-open .sidebar { transform: none; }
  html.drawer-open .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: var(--scrim); }
  html.drawer-open body { overflow: hidden; }
  .menu-btn { display: inline-flex; }
  html[data-theme] .main-content { padding: 0 1rem 6rem; width: 100%; }
  html[data-theme] .top-header { padding: 0.6rem 0; margin-bottom: 0.9rem; }
  html[data-theme] #page-title { font-size: 1.25rem; }
  html[data-theme] .top-header .subtitle { display: none; }
  html[data-theme] .ai-status-indicator, html[data-theme] .poster-status-indicator, html[data-theme] .brand-link, .header-new-post .lbl { display: none; }
  .header-left { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
  .header-left h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.in-app .fab { display: inline-flex; position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%;
    align-items: center; justify-content: center; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.3rem; box-shadow: var(--shadow-md); cursor: pointer; }
  .studio-layout { grid-template-columns: 1fr !important; }
  .stats-grid, .an-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .an-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  /* Week calendar becomes a list of days. */
  .cal-grid { grid-template-columns: 1fr; }
  .cal-col { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .cal-col-head { display: flex; align-items: baseline; gap: 0.5rem; }
  .slot-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tables become cards. */
  html[data-theme] .data-table thead { display: none; }
  html[data-theme] .data-table, html[data-theme] .data-table tbody, html[data-theme] .data-table tr, html[data-theme] .data-table td { display: block; width: 100%; }
  html[data-theme] .data-table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; background: var(--surface-1); }
  html[data-theme] .data-table td { border: 0; padding: 0.3rem 0; }
  html[data-theme] .data-table td.int-actions { padding-top: 0.5rem; }
  /* Dialogs fill the screen. */
  html[data-theme] .modal-overlay { padding: 0 !important; align-items: stretch !important; }
  html[data-theme] .modal-content { max-width: none !important; width: 100% !important; max-height: 100dvh !important; height: 100dvh; border-radius: 0; }
  .form-row { grid-template-columns: 1fr !important; }
  .stats-grid, .an-tiles { grid-template-columns: 1fr 1fr !important; }
  .btn-sm, .seg button { min-height: 40px; }
  .wa-layout { grid-template-columns: 1fr !important; }
}

/* ------------------------------------------------------------------ polish */
[hidden] { display: none !important; }
/* One clear action area in the header (status details live on Home and Connections). */
html[data-theme] .ai-status-indicator, html[data-theme] .poster-status-indicator, html[data-theme] .brand-link { display: none; }
html[data-theme] .panel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding-bottom: 0.75rem; margin-bottom: 1rem; }
html[data-theme] .panel-header h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
html[data-theme] .panel-header .tag-badge { background: var(--accent-soft); color: var(--accent-soft-ink); border: 0; border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.72rem; font-weight: 700; }
html[data-theme] .stat-card h3, html[data-theme] .stat-card .stat-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
html[data-theme] .stat-card .stat-value { font-size: 1.7rem; font-weight: 800; }
html[data-theme] .stat-card .stat-trend { color: var(--ink-3); }
html[data-theme] .onboarding-step { background: var(--surface-0); border-color: var(--line); }
html[data-theme] .preview-tabs { border-bottom: 1px solid var(--line); }
html[data-theme] .mockup-placeholder, html[data-theme] .placeholder-icon { color: var(--ink-3); }
html[data-theme] .checkbox-grid label, html[data-theme] .check-item span { color: var(--ink); }
html[data-theme] input[type='checkbox'], html[data-theme] input[type='radio'] { accent-color: var(--accent); width: 18px; height: 18px; }
html[data-theme] .int-tile-head b, html[data-theme] .int-card h3 { color: var(--ink); }
html[data-theme] .vis-kind { background: rgba(15, 23, 42, 0.75); }

/* The public landing page keeps its own dark brand styling in both themes. */
html[data-theme] .saas-landing-page .company-name { color: #ffffff; }
html[data-theme] .saas-landing-page .nav-links a { color: #94a3b8; }
html[data-theme] .saas-landing-page .nav-links a:hover { color: #00f2fe; }
html[data-theme] .saas-landing-page a:not(.btn-primary):not(.btn-secondary) { color: #7dd3fc; }
html[data-theme] .saas-landing-page .btn-secondary { background: transparent; color: #f8fafc; border: 1px solid rgba(255, 255, 255, 0.28); }
html[data-theme] .saas-landing-page .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }
html[data-theme] .saas-landing-page .btn-primary { background: linear-gradient(135deg, #00c6ff, #0047ab); color: #ffffff; }
html[data-theme] .saas-landing-page .text-muted { color: #94a3b8 !important; }
html[data-theme] .saas-landing-page code { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
