/* ImageKpr - minimal styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: var(--ikpr-text); background: var(--ikpr-bg); font-size: 0.8em; }
:root {
  --grid-scale: 1;
  --ikpr-bg: #ffffff;
  --ikpr-surface: #ffffff;
  --ikpr-surface-2: #fafafa;
  --ikpr-surface-3: #f5f5f5;
  --ikpr-text: #333333;
  --ikpr-text-muted: #666666;
  --ikpr-text-soft: #888888;
  --ikpr-border: #eeeeee;
  --ikpr-border-mid: #e5e7eb;
  --ikpr-brand: #3949ab;
  --ikpr-link: #1565c0;
  --ikpr-warning-bg: #fff3cd;
  --ikpr-warning-text: #856404;
  --ikpr-warning-border: #ffc107;
  --ikpr-info-bg: #e3f2fd;
  --ikpr-info-border: #90caf9;
  --ikpr-info-label: #1565c0;
  --ikpr-info-thumb-border: #64b5f6;
  --ikpr-bulk-bg: #bbdefb;
  --ikpr-sticky-bg: #c8c8c8;
  --ikpr-sticky-border: #aaaaaa;
  --ikpr-upload-global-bg: #eceff1;
  --ikpr-upload-global-border: #9e9e9e;
  --ikpr-upload-status-text: #1a237e;
  --ikpr-upload-track: #cfd8dc;
  --ikpr-upload-track-border: #b0bec5;
  --ikpr-upload-pct: #37474f;
  --ikpr-processing-text: #4a148c;
  --ikpr-success-bg: #e8f5e9;
  --ikpr-success-border: #81c784;
  --ikpr-success-text: #1b5e20;
  --ikpr-error-bg: #ffebee;
  --ikpr-error-border: #e57373;
  --ikpr-error-text: #b71c1c;
  --ikpr-error-fill: #c62828;
  --ikpr-hint-banner: #666666;
  --ikpr-hint-low-storage: #b45309;
  --ikpr-grid-size-text: #4e4e4e;
  --ikpr-dashboard-label: #666666;
  --ikpr-dashboard-label-hint: #888888;
  --ikpr-tags-row-bg: #fffde7;
  --ikpr-tags-row-border: #fff59d;
  --ikpr-tags-label: #f57f17;
  --ikpr-tag-chip-border: #ffe082;
  --ikpr-tag-chip-bg: #fff9c4;
  --ikpr-tag-chip-hover-bg: #fff59d;
  --ikpr-tag-chip-hover-border: #ffca28;
  --ikpr-upload-zone-bg: #dce4ec;
  --ikpr-upload-zone-border: #cccccc;
  --ikpr-upload-zone-hover-bg: #d0dae4;
  --ikpr-upload-zone-hover-border: #999999;
  --ikpr-upload-zone-active-border: #333333;
  --ikpr-upload-zone-active-bg: #c4d0dc;
  --ikpr-grid-gap-bg: #ffffff;
  --ikpr-dialog-overlay: rgba(0, 0, 0, 0.5);
  --ikpr-dialog-surface: #ffffff;
  --ikpr-dialog-border: #cccccc;
  --ikpr-dialog-muted: #666666;
  --ikpr-dialog-btn-bg: #ffffff;
  --ikpr-dialog-btn-hover: #f5f5f5;
  --ikpr-dialog-btn-primary: #333333;
  --ikpr-account-page-bg: #f2f4f7;
  --ikpr-account-card-border: #e2e6ec;
  --ikpr-account-heading: #1a1a1a;
  --ikpr-account-lead: #555555;
  --ikpr-account-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] {
  color-scheme: dark;
  --ikpr-bg: #0f1115;
  --ikpr-surface: #161a22;
  --ikpr-surface-2: #1b212c;
  --ikpr-surface-3: #222936;
  --ikpr-text: #e6e8ee;
  --ikpr-text-muted: #9aa3b2;
  --ikpr-text-soft: #7c8799;
  --ikpr-border: #2a3242;
  --ikpr-border-mid: #343d4f;
  --ikpr-brand: #7986cb;
  --ikpr-link: #90caf9;
  --ikpr-warning-bg: #3a2e10;
  --ikpr-warning-text: #f3d27a;
  --ikpr-warning-border: #a67c00;
  --ikpr-info-bg: #1e3a5f;
  --ikpr-info-border: #3d6fb0;
  --ikpr-info-label: #b3d4fc;
  --ikpr-info-thumb-border: #5c9ce3;
  --ikpr-bulk-bg: #1a3050;
  --ikpr-sticky-bg: #2a303c;
  --ikpr-sticky-border: #4a5568;
  --ikpr-upload-global-bg: #252b38;
  --ikpr-upload-global-border: #4a5568;
  --ikpr-upload-status-text: #c5cae9;
  --ikpr-upload-track: #3d4658;
  --ikpr-upload-track-border: #5c677d;
  --ikpr-upload-pct: #b0bec5;
  --ikpr-processing-text: #e1bee7;
  --ikpr-success-bg: #1b3320;
  --ikpr-success-border: #4caf50;
  --ikpr-success-text: #c8e6c9;
  --ikpr-error-bg: #3d2020;
  --ikpr-error-border: #e57373;
  --ikpr-error-text: #ffcdd2;
  --ikpr-error-fill: #ef5350;
  --ikpr-hint-banner: #9aa3b2;
  --ikpr-hint-low-storage: #ffb74d;
  --ikpr-grid-size-text: #c5cbd6;
  --ikpr-dashboard-label: #9aa3b2;
  --ikpr-dashboard-label-hint: #7c8799;
  --ikpr-tags-row-bg: #2d2a1a;
  --ikpr-tags-row-border: #5c4d20;
  --ikpr-tags-label: #ffc107;
  --ikpr-tag-chip-border: #8d7420;
  --ikpr-tag-chip-bg: #3d3518;
  --ikpr-tag-chip-hover-bg: #4d4220;
  --ikpr-tag-chip-hover-border: #bfa030;
  --ikpr-upload-zone-bg: #2a3440;
  --ikpr-upload-zone-border: #4a5568;
  --ikpr-upload-zone-hover-bg: #323e4d;
  --ikpr-upload-zone-hover-border: #6b7280;
  --ikpr-upload-zone-active-border: #e6e8ee;
  --ikpr-upload-zone-active-bg: #3d4a5c;
  --ikpr-grid-gap-bg: #161a22;
  --ikpr-dialog-overlay: rgba(0, 0, 0, 0.65);
  --ikpr-dialog-surface: #161a22;
  --ikpr-dialog-border: #3d4658;
  --ikpr-dialog-muted: #9aa3b2;
  --ikpr-dialog-btn-bg: #1b212c;
  --ikpr-dialog-btn-hover: #252d3a;
  --ikpr-dialog-btn-primary: #7986cb;
  --ikpr-account-page-bg: #0f1115;
  --ikpr-account-card-border: #2a3242;
  --ikpr-account-heading: #e6e8ee;
  --ikpr-account-lead: #9aa3b2;
  --ikpr-account-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Maintenance (Phase 12): banner + dimmed upload / inbox import */
.ikpr-maintenance-banner {
  background: var(--ikpr-warning-bg);
  border-bottom: 1px solid var(--ikpr-warning-border);
  padding: 0.5rem 2rem;
  font-size: 0.9rem;
  color: var(--ikpr-warning-text);
}
body.ikpr-maintenance .upload-zone { pointer-events: none; opacity: 0.55; }
body.ikpr-maintenance #upload-input { pointer-events: none; }
body.ikpr-maintenance #inbox-import-btn { pointer-events: none; opacity: 0.5; }

.hero { padding: 3px 2rem; background: var(--ikpr-surface-3); }
.hero-row { display: flex; gap: 0.84rem; align-items: stretch; width: 100%; }
.logo { flex-shrink: 0; width: 20%; }
.logo img, .logo video { height: auto; max-width: 100%; display: block; }
.logo-fallback { font-size: 1.5rem; font-weight: 600; display: none; }
.logo:has(img[style*="display: none"]) .logo-fallback { display: block; }
.hero .upload-zone { flex: 1; min-width: 0; }

.dashboard { padding: 3px 2rem; background: var(--ikpr-surface-2); border-bottom: 1px solid var(--ikpr-border); }
.dashboard-inbox { margin-bottom: 0.7rem; padding: 0.35rem; background: var(--ikpr-warning-bg); border-radius: 4px; color: var(--ikpr-text); }
.dashboard-inbox button { margin-left: 0.35rem; padding: 0.2rem 0.5rem; cursor: pointer; font-size: 0.8rem; }
/* Selection banner: very light blue theme */
.selection-banner-below { background: var(--ikpr-info-bg); padding: 0.75rem 2rem 1rem; border-bottom: 1px solid var(--ikpr-info-border); }
.selection-banner-below[hidden] { display: none !important; }
.selection-banner-below .dashboard-label { color: var(--ikpr-info-label); }
.selection-banner-below .selection-thumb { border-color: var(--ikpr-info-thumb-border); }
.bulk-bar { background: var(--ikpr-bulk-bg); border: 1px solid var(--ikpr-info-border); }

/* Sticky banner: grey hint bar + selection banner when active */
.banner-sticky { position: sticky; top: 0; z-index: 100; margin: 0 -2rem 1rem -2rem; background: var(--ikpr-sticky-bg); border-bottom: 1px solid var(--ikpr-sticky-border); }

/* Global upload status (videos / large batches) */
.upload-global-status {
  padding: 0.45rem 2rem 0.5rem;
  border-bottom: 1px solid var(--ikpr-upload-global-border);
  background: var(--ikpr-upload-global-bg);
}
.upload-global-status[hidden] { display: none !important; }
.upload-global-status-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.upload-global-status-text {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ikpr-upload-status-text);
  line-height: 1.35;
}
.upload-global-status-track {
  flex: 2 1 14rem;
  height: 8px;
  background: var(--ikpr-upload-track);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--ikpr-upload-track-border);
}
.upload-global-status-fill {
  height: 100%;
  width: 0%;
  background: var(--ikpr-brand);
  border-radius: 999px;
  transition: width 0.15s ease-out;
}
.upload-global-status-pct {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ikpr-upload-pct);
  min-width: 2.75rem;
  text-align: right;
}
.upload-global-status--processing .upload-global-status-text { color: var(--ikpr-processing-text); }
.upload-global-status--processing .upload-global-status-fill {
  width: 100% !important;
  background: linear-gradient(90deg, #7b1fa2, #ab47bc, #7b1fa2);
  background-size: 200% 100%;
  animation: ikprUploadPulse 1.1s ease-in-out infinite;
}
@keyframes ikprUploadPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.upload-global-status--success {
  background: var(--ikpr-success-bg);
  border-bottom-color: var(--ikpr-success-border);
}
.upload-global-status--success .upload-global-status-text {
  color: var(--ikpr-success-text);
  font-size: 0.95rem;
  font-weight: 800;
}
.upload-global-status--success .upload-global-status-track { display: none; }
.upload-global-status--success .upload-global-status-pct { display: none; }
.upload-global-status--error {
  background: var(--ikpr-error-bg);
  border-bottom-color: var(--ikpr-error-border);
}
.upload-global-status--error .upload-global-status-text { color: var(--ikpr-error-text); }
.upload-global-status--error .upload-global-status-fill { background: var(--ikpr-error-fill); }
.upload-global-status--error .upload-global-status-track { display: none; }
.upload-global-status--error .upload-global-status-pct { display: none; }
.banner-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 2rem; }
.user-hint-banner { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0 1rem; font-size: 0.875rem; color: var(--ikpr-hint-banner); }
.user-hint-text.user-hint-text--low-storage { color: var(--ikpr-hint-low-storage); font-weight: 500; }
.grid-size-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding: 0 2rem 0.28rem;
  font-size: 0.68rem;
  color: var(--ikpr-grid-size-text);
}
.grid-tight-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  padding: 0.06rem 0.4rem;
  border: 1px solid #8fbc8f;
  border-radius: 999px;
  background: #f4fff4;
  color: #2d4a2d;
  cursor: pointer;
  user-select: none;
  font-size: 0.68rem;
  line-height: 1.25;
}
.grid-tight-toggle input {
  margin: 0;
  cursor: pointer;
}
.grid-tight-toggle:hover {
  background: #e8f8e8;
  border-color: #6fa86f;
}
.grid-size-label {
  font-size: 0.68rem;
  color: #4a4a4a;
  letter-spacing: 0.01em;
}
.grid-size-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}
.grid-size-controls input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.grid-size-controls label {
  padding: 0.06rem 0.33rem;
  border: 1px solid #9a9a9a;
  border-radius: 999px;
  background: #f2f2f2;
  color: #4a4a4a;
  cursor: pointer;
  user-select: none;
  line-height: 1.25;
}
.grid-size-controls input[type="radio"]:checked + label {
  background: #5d5d5d;
  border-color: #464646;
  color: #fff;
}
.grid-size-controls label:hover {
  background: #e9e9e9;
}
.grid-size-controls input[type="radio"]:checked + label:hover {
  background: #545454;
}
.hint-expand-icon { display: inline-flex; vertical-align: middle; }
.dashboard-label { font-size: 0.875rem; color: var(--ikpr-dashboard-label); display: block; margin-bottom: 0.5rem; }
.dashboard-label-hint { font-weight: 400; color: var(--ikpr-dashboard-label-hint); font-size: 0.8125rem; }
.selection-selected-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.5rem;
}
.dashboard-label-selected { margin-bottom: 0; }
.selection-thumbs-large-label {
  font-size: 0.8125rem;
  color: #444;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.selection-thumbs-large-label input { cursor: pointer; margin: 0; }
.selection-row { display: flex; gap: 0.5rem; flex-wrap: wrap; min-height: 56px; align-items: flex-start; }
#selection-banner.selection-thumbs-large .selection-row { min-height: 100px; }
.selection-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
  border: 2px solid #333;
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;
}
.selection-thumb:active { cursor: grabbing; }
.selection-thumb-dragging {
  opacity: 0.8;
  border-color: #1565c0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
}
.selection-thumb-dropeffect {
  outline: 2px solid #1565c0;
  outline-offset: 2px;
}
.selection-thumb img,
.selection-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
#selection-banner.selection-thumbs-large .selection-thumb {
  width: 100px;
  height: 100px;
}

.folders-filter { padding: 0 2rem; display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; border-bottom: 1px solid var(--ikpr-border); }
#folder-filter { padding: 0; }
.folder-icons { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-end; }
.collapsible-panel {
  width: 100%;
  border: 1px solid var(--ikpr-border-mid);
  border-radius: 7px;
  background: transparent;
  padding: 0.2rem 0.4rem;
}
.collapsible-panel-toggle {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.2rem 0.32rem;
  text-align: left;
}
.collapsible-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ikpr-text);
  white-space: nowrap;
}
.collapsible-panel-hint {
  font-size: 0.72rem;
  color: var(--ikpr-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collapsible-panel-chevron {
  margin-left: auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid #c8d1df;
  background: rgba(255, 255, 255, 0.65);
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.18s ease;
}
.collapsible-panel:not(.is-collapsed) .collapsible-panel-chevron {
  transform: rotate(180deg);
}
.collapsible-panel-toggle:hover {
  border-color: rgba(71, 85, 105, 0.22);
  background: rgba(255, 255, 255, 0.45);
}
.collapsible-panel-toggle:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 1px;
}
.collapsible-panel-body {
  margin-top: 0.28rem;
}
.section-search-input {
  width: min(23rem, 100%);
  margin-bottom: 0.32rem;
  border: 1px solid #c8d1df;
  border-radius: 5px;
  padding: 0.24rem 0.45rem;
  font-size: 0.8rem;
  line-height: 1.25;
}

/* Section color themes for compact top filters */
[data-collapsible-id="folders"] {
  border-color: #bfd8f0;
  background: #eef6ff;
}
[data-collapsible-id="folders"] .collapsible-panel-toggle {
  background: #e6f2ff;
}
[data-collapsible-id="folders"] .collapsible-panel-title {
  color: #1f4d78;
}
[data-collapsible-id="folders"] .collapsible-panel-hint {
  color: #35648e;
}
[data-collapsible-id="folders"] .collapsible-panel-chevron {
  border-color: #a7c7e6;
  color: #1f4d78;
  background: #f6fbff;
}
[data-collapsible-id="folders"] .section-search-input {
  border-color: #a7c7e6;
  background: #f8fcff;
}
[data-collapsible-id="owner-dashboards"],
[data-collapsible-id="public-shared-tiles"] {
  border-color: #f0d1a5;
  background: #fff5e8;
}
[data-collapsible-id="owner-dashboards"] .collapsible-panel-toggle,
[data-collapsible-id="public-shared-tiles"] .collapsible-panel-toggle {
  background: #ffefdc;
}
[data-collapsible-id="owner-dashboards"] .collapsible-panel-title,
[data-collapsible-id="public-shared-tiles"] .collapsible-panel-title {
  color: #8a5315;
}
[data-collapsible-id="owner-dashboards"] .collapsible-panel-hint,
[data-collapsible-id="public-shared-tiles"] .collapsible-panel-hint {
  color: #a0662d;
}
[data-collapsible-id="owner-dashboards"] .collapsible-panel-chevron,
[data-collapsible-id="public-shared-tiles"] .collapsible-panel-chevron {
  border-color: #e3b981;
  color: #8a5315;
  background: #fff8ef;
}
[data-collapsible-id="owner-dashboards"] .section-search-input,
[data-collapsible-id="public-shared-tiles"] .section-search-input {
  border-color: #e3b981;
  background: #fffdf9;
}
body.ikpr-top-sections-classic .collapsible-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
body.ikpr-top-sections-classic .collapsible-panel-toggle {
  display: none !important;
}
body.ikpr-top-sections-classic .section-search-input {
  display: none !important;
}
body.ikpr-top-sections-classic .folder-icons,
body.ikpr-top-sections-classic .my-dashboards-list {
  padding-top: 0.1rem;
}
.folder-icon-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; width: 62px; min-width: 62px; flex-shrink: 0; }
.folder-icon-btn-wrap { position: relative; flex-shrink: 0; }
.folder-icon-wrap button { flex-shrink: 0; }
.folder-icon-rename,
.folder-icon-delete {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: #d4d4d4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.folder-icon-rename {
  top: -10px;
  left: -10px;
  width: 32px;
  height: 32px;
  color: #3f3f46;
}
.folder-icon-rename svg {
  width: 24px;
  height: 24px;
}
.folder-icon-rename:hover { background: #c0c0c0; color: #111827; }
.folder-icon-delete {
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  color: #e05252;
  font-size: 0.7rem;
  line-height: 1;
}
.folder-icon-delete:hover { background: #c0c0c0; color: #c0392b; }
@media (max-width: 820px) {
  .folder-icon-rename {
    top: -11px;
    left: -11px;
    width: 34px;
    height: 34px;
  }
  .folder-icon-rename svg {
    width: 25px;
    height: 25px;
  }
  .folder-icon-delete {
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .folder-icon-rename {
    width: 36px;
    height: 36px;
  }
  .folder-icon-rename svg {
    width: 26px;
    height: 26px;
  }
  .folder-icon-delete {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }
}
.folder-icon-wrap.folder-drop-over .folder-icon {
  background: #d4edda;
  color: #1b5e20;
  outline: 2px solid #2e7d32;
  outline-offset: 1px;
}
.folder-icon-wrap.folder-drop-over .folder-icon-label {
  color: #1b5e20;
  font-weight: 600;
}
.dashboard-icon-wrap.folder-drop-over .folder-icon {
  background: #fef3c7;
  color: #92400e;
  outline: 2px solid #d97706;
  outline-offset: 1px;
}
.dashboard-icon-wrap.folder-drop-over .folder-icon-label {
  color: #92400e;
  font-weight: 600;
}
.folder-icon-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  padding: 5px 10px;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: none;
}
.folder-icon-wrap:hover .folder-icon-tooltip { opacity: 1; }
.folder-icon-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #333;
}
.folder-icon { width: 42px; height: 42px; padding: 0; border: none; border-radius: 5px; background: #f0f0f0; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s, transform 0.15s; }
.folder-icon:hover { background: #e0e0e0; color: #333; transform: translateY(-1px); }
.folder-icon.active { background: #333; color: #fff; }
.folder-icon svg,
.folder-icon img { width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.folder-icon-label { font-size: 0.6rem; color: #666; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; }
.folder-icon-wrap.active .folder-icon-label { color: #333; font-weight: 500; }

.sort-row {
  padding: 3px 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: #e8f5e9;
  border-bottom: 1px solid #a5d6a7;
}
.sort-label { font-size: 0.875rem; color: #2e7d32; font-weight: 500; }
.sort-pills { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.sort-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  border: 1px solid #81c784;
  background: #c8e6c9;
  color: #1b5e20;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sort-pill:hover { background: #a5d6a7; border-color: #66bb6a; color: #2e7d32; }
.sort-pill.active { background: #66bb6a; border-color: #4caf50; color: #fff; }

.tags-row { padding: 3px 2rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; background: var(--ikpr-tags-row-bg); border-bottom: 1px solid var(--ikpr-tags-row-border); }
.tags-row label { font-size: 0.875rem; color: var(--ikpr-tags-label); font-weight: 500; }
.tag-filters { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.tag-filter-chip { padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.8125rem; border: 1px solid var(--ikpr-tag-chip-border); background: var(--ikpr-tag-chip-bg); color: var(--ikpr-tags-label); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.tag-filter-chip:hover { background: var(--ikpr-tag-chip-hover-bg); border-color: var(--ikpr-tag-chip-hover-border); }
.tag-filter-chip.active { background: #f57f17; border-color: #f57f17; color: #fff; }
#manage-tags-btn { font-size: 0.8rem; }

.main-content { padding: 1rem 2rem; width: 100%; }
#search { padding: 0.35rem 0.5rem; min-width: 140px; font-size: 0.875rem; }
#sort { padding: 0.5rem; }
.upload-zone { border: 2px dashed var(--ikpr-upload-zone-border); padding: 1.12rem; min-height: 5rem; background: var(--ikpr-upload-zone-bg); cursor: pointer; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; color: var(--ikpr-text); }
.upload-zone-text { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.upload-zone-hint { font-size: 0.75rem; color: var(--ikpr-text-muted); }
.upload-zone:hover { border-color: var(--ikpr-upload-zone-hover-border); background: var(--ikpr-upload-zone-hover-bg); }
.upload-zone.drag-over { border-color: var(--ikpr-upload-zone-active-border); background: var(--ikpr-upload-zone-active-bg); }
.upload-progress { margin-top: 0.5rem; height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
.upload-progress-bar { height: 100%; background: #333; width: 0%; transition: width 0.2s; }
.upload-url-row { width: 100%; display: flex; gap: 0.4rem; margin-top: 0.45rem; }
.upload-url-input {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  padding: 0.38rem 0.5rem;
  border: 1px solid #b8c2cc;
  border-radius: 4px;
  background: #fff;
}
.upload-url-btn {
  padding: 0.38rem 0.65rem;
  border: 1px solid #9ca9b5;
  background: #f2f5f8;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.upload-url-btn:hover { background: #e6ebf0; }
.upload-url-btn:disabled { cursor: wait; opacity: 0.7; }
.scroll-to-top-btn,
.select-all-visible-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.scroll-to-top-btn:hover,
.select-all-visible-btn:hover {
  background: #eee;
  border-color: #999;
}

/* Grid layout: equal-width columns, full-width adaptive */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(180px * var(--grid-scale)), 1fr));
  gap: 1rem;
}

/* Flush square cells + 1px white gutters (grid container background shows in gap) */
.main-content.grid-layout--tight .grid {
  gap: 1px;
  background: var(--ikpr-grid-gap-bg);
  margin-left: -2rem;
  margin-right: -2rem;
  width: calc(100% + 4rem);
  padding: 0;
}
.main-content.grid-layout--tight .grid-item.card {
  min-width: 0;
}
.main-content.grid-layout--tight .card-inner {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 0;
  height: 100%;
}
.main-content.grid-layout--tight .card-inner:hover {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}
.main-content.grid-layout--tight .card-inner:hover .card-img {
  filter: brightness(0.97);
}
.main-content.grid-layout--tight .card-inner:active {
  box-shadow: none;
}
.main-content.grid-layout--tight .card-img {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
}
.main-content.grid-layout--tight .card-info,
.main-content.grid-layout--tight .card-tags {
  display: none !important;
}
.main-content.grid-layout--tight .card-select {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff);
}
.main-content.grid-layout--tight .card-expand {
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.main-content.grid-layout--tight .card-expand svg,
.main-content.grid-layout--tight .card-expand .copy-url-icon {
  width: 22px;
  height: 22px;
}
.main-content.grid-layout--tight .card-inner.selected {
  outline: 2px solid #1e40af;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.35);
}

.card { cursor: pointer; }
.card[draggable="true"] { cursor: grab; }
.card.card-dragging { opacity: 0.72; }
.card-inner { position: relative; padding: 0.5rem; border: 1px solid var(--ikpr-border); border-radius: 8px; transition: box-shadow 0.2s, border-color 0.2s; background: var(--ikpr-surface); }
.card-inner:hover { border-color: var(--ikpr-text-muted); box-shadow: 0 2px 8px rgba(0,0,0,0.08); outline: 5px solid #333; outline-offset: -1px; }
.card-inner:active { box-shadow: 0 0 0 2px var(--ikpr-text-muted); }
.card-img { width: 100%; display: block; border-radius: 4px; min-height: calc(120px * var(--grid-scale)); background: var(--ikpr-surface-3); }
.card-video-badge {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  pointer-events: none;
}
.card-info { padding: 0.5rem 0; font-size: 0.875rem; }
.card-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { color: var(--ikpr-text-muted); font-size: 0.75rem; display: block; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.35rem; }
.card-tag { display: inline-block; padding: 0.1rem 0.4rem; background: var(--ikpr-surface-3); border-radius: 4px; font-size: 0.7rem; color: var(--ikpr-text-muted); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.card-expand { position: absolute; top: 0.5rem; right: 0.5rem; width: 32px; height: 32px; margin: 0; padding: 0; border: none; background: rgba(255,255,255,0.9); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: background 0.2s; }
.card-expand svg, .card-expand .copy-url-icon { width: 29px; height: 29px; margin: 0; padding: 0; object-fit: contain; }
.card-expand:hover { background: #fff; }
.card-expand:active { background: #eee; }
.card-inner.selected { outline: 3px solid #333; outline-offset: 2px; box-shadow: 0 0 0 1px #333; }
.pill-btn { padding: 0.4rem 1rem; border: 1px solid #ccc; background: #fff; border-radius: 999px; cursor: pointer; font-size: 0.875rem; transition: background 0.2s, border-color 0.2s; }
.pill-btn:hover { background: #f5f5f5; border-color: #999; }
.pill-btn.active { background: #333; border-color: #333; color: #fff; }
.pill-btn.active:hover { background: #555; border-color: #555; }

/* Enter Selection Mode button: larger, blue theme */
.modal-rename { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.modal-rename label { font-size: 0.875rem; }
.modal-rename input { flex: 1; min-width: 150px; padding: 0.4rem 0.5rem; }
.dialog-hint { font-size: 0.875rem; color: var(--ikpr-dialog-muted); margin: 0 0 1rem; }
.manage-tags-list { max-height: 300px; overflow-y: auto; margin-bottom: 1rem; }
.manage-tag-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.manage-tag-item span { flex: 1; }
.bulk-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem; border-radius: 4px; margin-bottom: 0.75rem; flex-wrap: wrap; }
.bulk-bar button { padding: 0.4rem 0.75rem; cursor: pointer; border: 1px solid var(--ikpr-info-border); background: var(--ikpr-surface); color: var(--ikpr-link); }
.bulk-bar button:hover { background: var(--ikpr-info-bg); border-color: var(--ikpr-info-thumb-border); }
.my-dashboards { margin-top: 0; width: 100%; }
.my-dashboards-list { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-end; }
.dashboard-icon { background: #fff7d6; color: #8a6a00; border: 1px solid #e7cf7a; }
.dashboard-icon:hover { background: #ffefbd; color: #6f5200; }
.dashboard-icon.active { background: #f2c94c; color: #2f2400; border-color: #c39a13; }
.dashboard-icon-wrap .folder-icon-label { color: #7a620f; }
.dashboard-icon-wrap.active .folder-icon-label { color: #2f2400; font-weight: 600; }
.dashboard-editor-wrap { position: relative; z-index: 4; background: #fffbe6; border: 1px solid #efd36a; border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 0.75rem; max-height: 50vh; overflow: auto; }
.dashboard-editor-head { display: flex; justify-content: flex-start; align-items: center; gap: 0.6rem; }
.dashboard-editor-head h3 { margin: 0; font-size: 1rem; min-width: 0; display: none; }
.dashboard-editor-head-actions { display: flex; gap: 0.5rem; }
.dashboard-editor-grid { margin-top: 0.8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.6rem; }
.dashboard-editor-grid label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.84rem; color: #555; }
.dashboard-field-subtitle { grid-column: span 2; }
.dashboard-field-password { grid-column: span 1; }
.dashboard-editor-grid input, .dashboard-editor-grid select { border: 1px solid #ccc; border-radius: 6px; padding: 0.45rem 0.6rem; }
.dashboard-check { justify-content: flex-end; font-weight: 600; color: #444; }
.dashboard-hero-strip { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.5rem; }
.dashboard-hero-thumb { border: 2px solid transparent; border-radius: 8px; padding: 0; background: #fff; cursor: pointer; width: 62px; height: 62px; overflow: hidden; }
.dashboard-hero-thumb.is-active { border-color: #f2c94c; box-shadow: 0 0 0 2px rgba(242, 201, 76, 0.25); }
.dashboard-hero-thumb.is-dragging { opacity: 0.55; }
.dashboard-hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dashboard-hero-thumb-wrap { position: relative; flex-shrink: 0; }
.dashboard-hero-thumb-delete {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: #d4d4d4;
  color: #e05252;
  font-size: 0.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.28);
  z-index: 2;
}
.dashboard-hero-thumb-delete:hover { background: #c0c0c0; color: #c0392b; }
.dashboard-image-count { font-size: 0.8rem; color: #888; font-weight: 400; }
.dashboard-editor-actions { margin-top: 0.8rem; display: flex; align-items: center; gap: 0.75rem; }
#dashboard-editor-status { color: #0f766e; font-size: 0.85rem; }
#dashboard-editor-status.is-error { color: #b91c1c; }

.dashboard-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.dashboard-preview-modal[hidden] { display: none; }
.dashboard-preview-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 85vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.dashboard-preview-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.dashboard-preview-modal-close:hover { background: rgba(0, 0, 0, 0.8); }
.dashboard-preview-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.dashboard-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-qr-modal[hidden] { display: none; }
.dashboard-qr-modal-content {
  text-align: center;
  min-width: 280px;
}
.dashboard-qr-modal-content h3 { margin: 0 0 1rem; }
.dashboard-qr-img {
  display: block;
  margin: 0 auto 1rem;
  width: 280px;
  height: 280px;
  border-radius: 8px;
  background: #fff;
}
.dashboard-qr-actions {
  justify-content: center;
  gap: 0.5rem;
}

/* Shared dashboard public page */
.ikpr-shared-theme-toggle {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
}
.shared-dash-body { margin: 0; background: #f8fafc; color: #111827; font-family: Arial, sans-serif; }
.shared-dash-top { background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.shared-dash-top-inner { position: relative; max-width: 980px; margin: 0 auto; padding: 1rem 1rem 0.9rem; text-align: center; }
.shared-dash-top-media { width: min(100%, 560px); height: 200px; margin: 0 auto 0.9rem; border-radius: 12px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.shared-dash-top-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shared-dash-top-title { margin: 0; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; font-weight: 800; color: #111827; letter-spacing: -0.02em; }
.shared-dash-top-subtitle { max-width: 760px; margin: 0.55rem auto 0; color: #4b5563; font-size: clamp(1.05rem, 1.8vw, 1.5rem); line-height: 1.45; }
.shared-dash-meta { margin-top: 0.6rem; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.shared-dash-badge { background: #111827; color: #fff; border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.78rem; }
.shared-dash-password-form { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.45rem; max-width: 320px; margin-left: auto; margin-right: auto; align-items: stretch; }
.shared-dash-password-form label { color: inherit; }
.shared-dash-password-form input { border: 1px solid #cbd5e1; border-radius: 6px; padding: 0.5rem 0.6rem; background: #fff; color: #111827; }
.shared-dash-password-form button { border: 0; background: #0f172a; color: #fff; border-radius: 6px; padding: 0.5rem 0.7rem; cursor: pointer; }
.shared-dash-error { color: #b91c1c; margin: 0; font-size: 0.84rem; }
.shared-dash-main { max-width: 1200px; margin: 0 auto; padding: 0.8rem 1rem 5rem; }
.shared-grid-size-row {
  padding: 0;
  justify-content: flex-start;
  margin-bottom: 0.55rem;
}
.shared-dash-actions { margin-bottom: 0.7rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.shared-dash-actions button, .shared-dash-actions a { border: 1px solid #cbd5e1; background: #fff; color: #111827; border-radius: 8px; padding: 0.45rem 0.7rem; text-decoration: none; cursor: pointer; }
.shared-dash-collapsible { margin-bottom: 0.7rem; }
.shared-dash-grid { column-count: var(--shared-grid-columns, 4); column-gap: 0.75rem; }
.shared-dash-item { margin: 0 0 0.75rem; break-inside: avoid; cursor: zoom-in; }
.shared-dash-item img { width: 100%; display: block; border-radius: 10px; }
.shared-dash-item video { width: 100%; display: block; border-radius: 10px; background: #000; }
.shared-dash-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 2rem; text-align: center; color: #475569; }

[data-theme="dark"] .shared-dash-body { background: var(--ikpr-bg); color: var(--ikpr-text); }
[data-theme="dark"] .shared-dash-top { background: var(--ikpr-bg); border-bottom-color: var(--ikpr-border-mid); }
[data-theme="dark"] .shared-dash-top-media { background: var(--ikpr-surface-3); }
[data-theme="dark"] .shared-dash-top-title { color: var(--ikpr-text); }
[data-theme="dark"] .shared-dash-top-subtitle { color: var(--ikpr-text-muted); }
[data-theme="dark"] .shared-dash-badge { background: var(--ikpr-surface-3); color: var(--ikpr-text); border: 1px solid var(--ikpr-border-mid); }
[data-theme="dark"] .shared-dash-password-form input { background: var(--ikpr-surface); border-color: var(--ikpr-border-mid); color: var(--ikpr-text); }
[data-theme="dark"] .shared-dash-password-form button { background: var(--ikpr-brand); color: #fff; }
[data-theme="dark"] .shared-dash-error { color: var(--ikpr-error-text); }
[data-theme="dark"] .shared-dash-actions button,
[data-theme="dark"] .shared-dash-actions a { border-color: var(--ikpr-border-mid); background: var(--ikpr-surface); color: var(--ikpr-text); }
[data-theme="dark"] .shared-dash-empty { background: var(--ikpr-surface); border-color: var(--ikpr-border-mid); color: var(--ikpr-text-muted); }
.shared-lightbox { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.9); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.shared-lightbox[hidden] { display: none; }
.shared-lightbox img { max-width: min(94vw, 1280px); max-height: 86vh; border-radius: 8px; }
.shared-lightbox video { max-width: min(94vw, 1280px); max-height: 86vh; border-radius: 8px; background: #000; }
.shared-lightbox-top { position: fixed; left: 50%; transform: translateX(-50%); top: 0.8rem; display: flex; align-items: center; gap: 0.45rem; color: #fff; z-index: 1; }
.shared-lightbox-top button,
.shared-lightbox-top a { border: 0; background: rgba(255,255,255,0.16); color: #fff; border-radius: 999px; padding: 0.4rem 0.75rem; cursor: pointer; text-decoration: none; line-height: 1; }
.shared-lightbox-close { width: 36px; height: 36px; padding: 0; font-size: 1.15rem; display: inline-flex; align-items: center; justify-content: center; }
.shared-lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); border: 0; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,0.2); color: #fff; cursor: pointer; font-size: 1.5rem; }
#shared-lightbox-prev { left: 1rem; }
#shared-lightbox-next { right: 1rem; }
.shared-lightbox-counter-corner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; color: #fff; background: rgba(255,255,255,0.14); border-radius: 999px; padding: 0.3rem 0.6rem; font-size: 0.82rem; }
.shared-mobile-actions { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb; padding: 0.45rem 0.8rem; display: none; gap: 0.6rem; z-index: 1200; }
.shared-mobile-actions a, .shared-mobile-actions button { flex: 1; text-align: center; text-decoration: none; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 8px; padding: 0.5rem; color: #111827; }
.shared-dash-watermark { position: fixed; right: 0.6rem; bottom: 3.4rem; background: #0f172a; color: #fff; border-radius: 999px; padding: 0.35rem 0.6rem; font-size: 0.75rem; opacity: 0.9; z-index: 1201; }
.shared-dash-logo-band { width: 100%; background: #ffffff; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; padding: 1.25rem 1rem; display: flex; justify-content: center; align-items: center; }
.shared-dash-logo-band img { height: 200px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.shared-footer-modal { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; }
.shared-footer-modal[hidden] { display: none; }
.shared-footer-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.shared-footer-modal-dialog { position: relative; width: min(96vw, 1100px); height: min(90vh, 780px); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.28); z-index: 1; }
.shared-footer-modal-close { position: absolute; top: 0.4rem; right: 0.45rem; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(0,0,0,0.08); cursor: pointer; font-size: 1.2rem; line-height: 1; z-index: 2; }
.shared-footer-modal-frame { width: 100%; height: 100%; border: 0; display: block; padding-top: 2.1rem; box-sizing: border-box; }

[data-theme="dark"] .shared-mobile-actions { background: var(--ikpr-surface); border-top-color: var(--ikpr-border-mid); }
[data-theme="dark"] .shared-mobile-actions a,
[data-theme="dark"] .shared-mobile-actions button { border-color: var(--ikpr-border-mid); background: var(--ikpr-surface-2); color: var(--ikpr-text); }
[data-theme="dark"] .shared-dash-logo-band { background: var(--ikpr-bg); border-top-color: var(--ikpr-border-mid); border-bottom-color: var(--ikpr-border-mid); }
[data-theme="dark"] .shared-footer-modal-dialog { background: var(--ikpr-surface); border: 1px solid var(--ikpr-border-mid); }
[data-theme="dark"] .shared-footer-modal-close { background: rgba(255,255,255,0.12); color: var(--ikpr-text); }
@media (max-width: 1100px) { .shared-dash-grid { column-count: min(3, var(--shared-grid-columns, 4)); } }
@media (max-width: 820px) { .shared-dash-grid { column-count: min(2, var(--shared-grid-columns, 4)); } }
@media (max-width: 640px) {
  .shared-dash-grid { column-count: 1; }
  .shared-mobile-actions { display: flex; }
  .shared-dash-watermark { bottom: 4.2rem; }
  .shared-dash-logo-band img { height: 140px; }
}
.dialog { position: fixed; inset: 0; background: var(--ikpr-dialog-overlay); display: flex; align-items: center; justify-content: center; z-index: 1002; }
.dialog[hidden],
.modal[hidden],
.slideshow-settings-wrap[hidden],
#slideshow-player[hidden],
#modal-fullscreen[hidden],
#slideshow-mini-controller[hidden] {
  display: none !important;
}
.dialog-content { background: var(--ikpr-dialog-surface); color: var(--ikpr-text); padding: 1.5rem; border-radius: 8px; min-width: 300px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); border: 1px solid var(--ikpr-dialog-border); }
.dialog-content h3 { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; }
.dialog-label { display: block; font-size: 0.875rem; color: var(--ikpr-dialog-muted); margin-bottom: 0.5rem; }
.dialog-content input[type="text"] { width: 100%; padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; border: 1px solid var(--ikpr-dialog-border); border-radius: 4px; font-size: 1rem; background: var(--ikpr-surface); color: var(--ikpr-text); }
.dialog-content input[type="text"]:focus { outline: none; border-color: var(--ikpr-brand); }
.dialog-actions { margin-top: 1rem; display: flex; gap: 0.5rem; justify-content: flex-end; }
.dialog-actions button { padding: 0.5rem 1rem; border: 1px solid var(--ikpr-dialog-border); background: var(--ikpr-dialog-btn-bg); color: var(--ikpr-text); border-radius: 4px; cursor: pointer; font-size: 0.875rem; transition: background 0.2s, border-color 0.2s; }
.dialog-actions button:hover { background: var(--ikpr-dialog-btn-hover); border-color: var(--ikpr-text-muted); }
.dialog-actions button:first-of-type { background: var(--ikpr-dialog-btn-primary); border-color: var(--ikpr-dialog-btn-primary); color: #fff; }
.dialog-actions button:first-of-type:hover { background: var(--ikpr-brand); border-color: var(--ikpr-brand); color: #fff; }
.empty { color: #666; padding: 2rem; text-align: center; }
.empty.grid-load-error { color: #7f1d1d; text-align: left; max-width: 40rem; margin: 0 auto; line-height: 1.5; }
.empty.grid-load-error code { font-size: 0.9em; background: #f5f5f5; padding: 0.1em 0.35em; border-radius: 3px; }
.card-select { margin-right: 0.5rem; width: 18px; height: 18px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem; }
.pagination button { padding: 0.5rem 1rem; cursor: pointer; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.loading { padding: 1rem; text-align: center; color: #666; font-size: 0.875rem; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #fff; padding: 1rem; border-radius: 8px; max-width: 90vw; max-height: 90vh; overflow: auto; display: flex; flex-direction: column; }
.modal-content.modal-content-tall { flex-direction: row; flex-wrap: wrap; }
.modal-content.modal-content-tall .modal-img-wrap { flex: 0 0 auto; max-width: 70%; }
.modal-content.modal-content-tall .modal-side { flex: 1; min-width: 140px; display: flex; align-items: flex-start; }
.modal-content.modal-content-tall .modal-actions { flex-direction: column; margin-top: 0; }
.modal-content.modal-content-wide .modal-img-wrap { order: 1; }
.modal-content.modal-content-wide .modal-side { order: 2; width: 100%; }
.modal-content.modal-content-wide .modal-rename { order: 3; }
.modal-img-wrap { position: relative; margin-bottom: 1rem; display: inline-block; max-width: 100%; }
.modal-img-wrap img { max-width: 100%; max-height: 70vh; display: block; }
.modal-img-wrap video { max-width: 100%; max-height: 70vh; display: block; border-radius: 4px; background: #000; }
/* [hidden] alone loses to the rules above; without this, prev video + next image both stay visible */
.modal-img-wrap img[hidden],
.modal-img-wrap video[hidden] {
  display: none !important;
}
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.modal-nav-btn:hover:not(:disabled) { background: rgba(0, 0, 0, 0.55); }
.modal-nav-btn:disabled { opacity: 0.28; cursor: default; }
.modal-nav-prev { left: 0.5rem; }
.modal-nav-next { right: 0.5rem; }
.modal-side .modal-actions { margin-top: 0; }
.modal-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.modal-rename { margin-top: 1rem; width: 100%; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.folder-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.folder-pill { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; background: #e3f2fd; border: 1px solid #90caf9; border-radius: 4px; font-size: 0.75rem; color: #1565c0; }
.folder-pill button { background: none; border: none; cursor: pointer; padding: 0; font-size: 0.875rem; line-height: 1; color: inherit; opacity: 0.8; }
.folder-pill button:hover { opacity: 1; }
.tag-pill { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; background: #eee; border-radius: 4px; font-size: 0.75rem; }
.tag-pill button { background: none; border: none; cursor: pointer; padding: 0; font-size: 0.875rem; line-height: 1; }
.modal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.modal-actions button { padding: 0.5rem 1rem; cursor: pointer; transition: background 0.2s; }
.modal-actions button:hover { background: #eee; }
.modal-actions button:active { background: #ddd; }

/* Upload confirmation modal */
.upload-confirm-dialog .upload-confirm-content { max-width: min(90vw, 900px); max-height: 85vh; display: flex; flex-direction: column; }
.upload-confirm-hint { margin: 0 0 1rem; font-size: 0.875rem; color: #666; }
.upload-confirm-grid.upload-confirm-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}
.upload-confirm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
}
.upload-confirm-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #eee;
  background: #f5f5f5;
}
.upload-confirm-thumb:hover { border-color: #ccc; }
.upload-confirm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-confirm-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.upload-confirm-thumb-remove, .upload-remove-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.upload-confirm-thumb-remove { background: rgba(0,0,0,0.6); }
.upload-confirm-thumb-remove:hover, .upload-remove-x:hover { background: #c00; }
.upload-remove-x { background: #c00; }
.upload-confirm-name { flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; }
.upload-confirm-btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; border: 1px solid #ccc; background: #fff; border-radius: 4px; cursor: pointer; }
.upload-confirm-btn:hover { background: #f0f0f0; }
.add-tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.add-tag-row select { padding: 0.35rem 0.5rem; min-width: 140px; }
.add-tag-row input { padding: 0.35rem 0.5rem; min-width: 160px; flex: 1; }
.upload-add-to-folder { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.upload-add-to-folder-label { font-size: 0.875rem; color: #666; }
.upload-add-to-folder select { padding: 0.35rem 0.5rem; min-width: 140px; }
.upload-add-to-folder-new { padding: 0.35rem 0.5rem; min-width: 160px; flex: 1; }
.upload-confirm-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.upload-confirm-count { font-size: 0.875rem; color: #666; }

/* Inbox import review modal */
.inbox-import-dialog .inbox-import-content { max-width: min(95vw, 720px); max-height: 85vh; display: flex; flex-direction: column; }
.inbox-import-hint { margin: 0 0 1rem; font-size: 0.875rem; color: #666; }
.inbox-import-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f5f5f5;
  border-radius: 6px;
}
.inbox-import-bulk-label { font-size: 0.875rem; color: #666; }
.inbox-import-bulk-tags { flex: 1; min-width: 140px; padding: 0.35rem 0.5rem; }
.inbox-import-bulk-folder { padding: 0.35rem 0.5rem; min-width: 140px; }
.inbox-import-list {
  max-height: 45vh;
  overflow-y: auto;
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
}
.inbox-import-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 0.875rem;
}
.inbox-import-row:last-child { border-bottom: none; }
.inbox-import-row-thumb {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inbox-import-row-thumb .inbox-remove-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #c00;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.inbox-import-row-thumb .inbox-remove-x:hover { background: #a00; }
.inbox-import-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inbox-import-row-thumb.inbox-import-thumb-failed { background: #ddd; }
.inbox-import-row-thumb.inbox-import-thumb-failed img { display: none; }
.inbox-import-row-thumb.inbox-import-thumb-failed::after { content: '?'; color: #999; font-size: 1.25rem; }
.inbox-import-row-name { flex: 0 0 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.inbox-import-row-size { color: #666; flex-shrink: 0; }
.inbox-import-row-rename { flex: 1; min-width: 120px; padding: 0.25rem 0.4rem; font-size: 0.8rem; }
.inbox-import-row-tags { flex: 1; min-width: 100px; padding: 0.25rem 0.4rem; font-size: 0.8rem; }
.inbox-import-row-folder { padding: 0.25rem 0.4rem; min-width: 100px; font-size: 0.8rem; }
.inbox-import-row-remove {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid #c00;
  background: #fff;
  color: #c00;
  border-radius: 4px;
  cursor: pointer;
}
.inbox-import-row-remove:hover { background: #ffe0e0; }
.inbox-import-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inbox-import-count { font-size: 0.875rem; color: #666; }

.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 0.75rem 1.5rem; border-radius: 4px; z-index: 1100; }
.toast-prominent { padding: 1rem 2rem; font-size: 1.1rem; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

.upload-warn-content { max-width: 480px; }
.upload-warn-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.upload-warn-header h3 { margin: 0; }
.upload-warn-icon { font-size: 1.6rem; line-height: 1; color: #b45309; flex-shrink: 0; }
.upload-warn-body { margin: 0 0 0.75rem; color: #444; line-height: 1.5; }
.upload-warn-list { margin: 0 0 1rem; padding-left: 1.5rem; font-size: 0.875rem; color: #555; max-height: 140px; overflow-y: auto; }
.upload-warn-list li { padding: 0.2rem 0; word-break: break-all; }
.upload-warn-footnote { font-size: 0.8125rem; color: #888; margin: 0 0 0; }
.upload-warn-footnote a { color: #666; }
.upload-warn-content .dialog-actions button:first-of-type { background: #92400e; border-color: #92400e; color: #fff; }
.upload-warn-content .dialog-actions button:first-of-type:hover { background: #b45309; border-color: #b45309; }

.credits-footer { text-align: center; padding: 2rem; color: #666; font-size: 0.875rem; border-top: 1px solid #eee; margin-top: 2rem; }
.credits-footer a { color: #333; text-decoration: none; }
.credits-footer a:hover { text-decoration: underline; }

.ikpr-footer-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ikpr-site-footer {
  margin-top: 2rem;
  border-top: 1px solid #e7e7e7;
  background: #fafafa;
  color: #2f2f2f;
}

.ikpr-site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 100px;
  justify-content: start;
  align-items: start;
  padding: 1.5rem 2rem;
}

@media (max-width: 600px) {
  .ikpr-site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.ikpr-site-footer-col h3 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a6a6a;
}

.ikpr-site-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ikpr-site-footer-col li + li {
  margin-top: 0.4rem;
}

.ikpr-site-footer a {
  color: #1f1f1f;
  text-decoration: none;
}

.ikpr-site-footer a:hover {
  text-decoration: underline;
}

.ikpr-site-footer-brand {
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.ikpr-site-footer-text {
  margin: 0;
  color: #5b5b5b;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ikpr-site-footer-login-row {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
}

.ikpr-site-footer-newsletter {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ikpr-site-footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.ikpr-site-footer-newsletter button {
  padding: 0.42rem 0.75rem;
  border: 1px solid #9a9a9a;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
}

.ikpr-site-footer-newsletter button:disabled,
.ikpr-site-footer-newsletter input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ikpr-site-footer-note {
  margin: 0.45rem 0 0;
  color: #666;
  font-size: 0.75rem;
}

.ikpr-site-footer-bottom {
  border-top: 1px solid #ececec;
  padding: 0.7rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #666;
}

.ikpr-doc-page {
  background: #fafafa;
  color: #222;
}

.ikpr-page-hero {
  width: 100%;
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.ikpr-page-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ikpr-page-hero-inner a {
  display: flex;
  justify-content: center;
}

.ikpr-page-hero-inner img {
  width: min(500px, 100%);
  height: auto;
  display: block;
}

.ikpr-doc-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

/* Knowledge base: stacked section cards */
.ikpr-kb {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ikpr-kb-intro {
  margin-bottom: 0.15rem;
}

.ikpr-kb-intro h1 {
  margin-bottom: 0.65rem;
}

.ikpr-doc-card {
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
}

.ikpr-doc-card > ul {
  margin: 0;
}

.ikpr-doc-card > p {
  margin: 0 0 0.35rem;
}

.ikpr-doc-card > p.ikpr-doc-card-cta {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.ikpr-doc-subsection p {
  margin: 0;
}

.ikpr-doc-subsection ul {
  margin: 0;
}

.ikpr-doc-card > h2 + .ikpr-doc-subsection {
  margin-top: 0.35rem;
}

.ikpr-doc-card > p + .ikpr-doc-subsection,
.ikpr-doc-subsection + .ikpr-doc-subsection {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e8eaef;
}

.ikpr-doc-wrap h1 {
  margin: 0 0 0.85rem;
  font-size: 1.9rem;
}

.ikpr-doc-wrap h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.25rem;
}

.ikpr-doc-wrap h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.03rem;
}

.ikpr-doc-wrap .ikpr-doc-card h2 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  font-size: 1.22rem;
  border-bottom: 1px solid #eceff4;
  color: #1a1a1a;
}

.ikpr-doc-wrap .ikpr-doc-subsection h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  color: #2c2c2c;
}

.ikpr-doc-wrap p,
.ikpr-doc-wrap li {
  color: #3f3f3f;
  line-height: 1.6;
}

.ikpr-doc-wrap ul {
  padding-left: 1.2rem;
}

.ikpr-doc-wrap a {
  color: #1565c0;
}

.ikpr-doc-wrap kbd {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.9em;
  padding: 0.12em 0.45em;
  border-radius: 4px;
  border: 1px solid #c9d4e3;
  background: #f5f7fb;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.ikpr-doc-lead {
  font-size: 1.02rem;
  color: #4b4b4b;
}

.ikpr-doc-note {
  background: #f3f6fa;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  margin-top: 1rem;
}

.ikpr-updates-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.ikpr-updates-pagination a {
  text-decoration: none;
  color: #1565c0;
}

.ikpr-updates-pagination a[aria-disabled="true"] {
  pointer-events: none;
  color: #8a8a8a;
}

.ikpr-contact-alert {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  margin: 0 0 1rem;
}

.ikpr-contact-form {
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.ikpr-contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ikpr-contact-label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.ikpr-contact-input,
.ikpr-contact-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  font: inherit;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
}

.ikpr-contact-textarea {
  resize: vertical;
  min-height: 8rem;
}

.ikpr-contact-submit {
  margin-top: 1rem;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #0d47a1;
  background: #1565c0;
  color: #fff;
}

.ikpr-contact-submit:hover {
  background: #0d47a1;
}

/* Public landing (guests on index.php) — structural blocks; polish later */
body.ikpr-landing { background: #fafafa; }
.ikpr-landing-hero {
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.ikpr-landing-hero-title {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}
.ikpr-landing-hero-title img {
  display: block;
  width: min(500px, 100%);
  height: auto;
  flex-shrink: 0;
}
.ikpr-landing-hero-fallback {
  display: none;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #333;
}
.ikpr-landing-hero-title:has(img[style*="display: none"]) .ikpr-landing-hero-fallback { display: block; }
.ikpr-landing-alert {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.45;
  border-bottom: 1px solid;
  text-align: center;
}
.ikpr-landing-alert--error {
  background: #ffebee;
  border-color: #ef9a9a;
  color: #b71c1c;
}
.ikpr-landing-alert--success {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}
.ikpr-landing-hero--with-session {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
}
.ikpr-landing-hero--with-session .ikpr-landing-hero-title {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.ikpr-landing-session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #444;
  width: 100%;
}
@media (min-width: 36rem) {
  .ikpr-landing-hero--with-session .ikpr-landing-session {
    width: auto;
    flex: 0 0 auto;
  }
}
.ikpr-landing-session-id {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ikpr-landing-session-logout {
  color: #1565c0;
  text-decoration: none;
  font-weight: 600;
}
.ikpr-landing-session-logout:hover {
  text-decoration: underline;
}
.ikpr-landing-pending-title {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: #222;
}
.ikpr-landing-pending-email {
  font-weight: 700;
  word-break: break-all;
}
.ikpr-landing-pending-lead {
  margin: 0;
  line-height: 1.5;
  color: #444;
}
.ikpr-landing-faq-heading {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
  color: #222;
  font-weight: 700;
}
.ikpr-landing-faq-intro {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}
.ikpr-landing-faq {
  margin-top: 0.75rem;
}
/* One light “card” for the whole list; rows separated by hairline dividers (FAQ UX). */
.ikpr-landing-faq-panel {
  background: #fafafa;
  border: 1px solid #c5c5c5;
  border-radius: 8px;
  padding: 0 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ikpr-landing-faq-item {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid #d4d4d4;
}
.ikpr-landing-faq-item:last-child {
  border-bottom: none;
}
.ikpr-landing-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.2rem;
  min-height: 3.25rem;
  box-sizing: border-box;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  color: #1a1a1a;
  line-height: 1.35;
}
.ikpr-landing-faq-summary::-webkit-details-marker {
  display: none;
}
.ikpr-landing-faq-summary::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.15rem;
  border-right: 2px solid #5c5c5c;
  border-bottom: 2px solid #5c5c5c;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.15s ease;
}
.ikpr-landing-faq-item[open] .ikpr-landing-faq-summary::after {
  margin-top: 0.35rem;
  transform: rotate(-135deg);
}
.ikpr-landing-faq-summary:hover {
  color: #000;
}
.ikpr-landing-faq-summary:hover::after {
  border-color: #333;
}
.ikpr-landing-faq-summary:focus {
  outline: none;
}
.ikpr-landing-faq-summary:focus-visible {
  outline: 2px solid #1565c0;
  outline-offset: 2px;
  border-radius: 4px;
}
.ikpr-landing-faq-body {
  padding: 0 2rem 1.2rem 0.2rem;
  margin-top: -0.15rem;
  border-top: none;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.55;
  color: #5c5c5c;
}
.ikpr-landing-faq-body p {
  margin: 0;
  max-width: 36rem;
}
.ikpr-landing-faq-body p + p {
  margin-top: 0.65rem;
}
.ikpr-landing-stack { max-width: 42rem; margin: 0 auto; padding: 2rem 1.25rem 0; }
.ikpr-landing-block {
  background: #e8e8e8;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.ikpr-landing-block h1 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.ikpr-landing-block h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.ikpr-landing-lead { margin: 0; color: #444; }
.ikpr-landing-about-tagline { font-weight: 600; margin-top: 0.25rem !important; }
.ikpr-landing-about-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.45;
  color: #444;
}
.ikpr-landing-about-list li + li { margin-top: 0.35rem; }
.ikpr-landing-block p { margin: 0.5rem 0 0; line-height: 1.45; color: #444; }
.ikpr-landing-block p:first-of-type { margin-top: 0; }
.ikpr-landing-muted { color: #666; font-size: 0.9rem; margin-top: 0.75rem !important; }
.ikpr-landing-request-feedback { font-size: 0.95rem; margin-top: 0.75rem !important; }
.ikpr-landing-request-feedback--ok { color: #1b5e20; }
.ikpr-landing-request-feedback--err { color: #c0392b; }
.ikpr-landing-note { font-size: 0.85rem; opacity: 0.85; margin-top: 1rem !important; }
.ikpr-landing-login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}
.ikpr-landing-login-actions .ikpr-btn-google {
  margin-top: 0;
}
.ikpr-landing-btn-request-access {
  margin-left: auto;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #1565c0;
  background: #fff;
  color: #1565c0;
  cursor: pointer;
}
.ikpr-landing-btn-request-access:hover {
  background: #e3f2fd;
}
body.ikpr-request-modal-open {
  overflow: hidden;
}
.ikpr-request-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.ikpr-request-modal--open {
  pointer-events: auto;
  visibility: visible;
}
.ikpr-request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ikpr-request-modal--open .ikpr-request-modal__backdrop {
  opacity: 1;
}
.ikpr-request-modal__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 24rem);
  max-width: 100vw;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0;
  margin-bottom: 0 !important;
  border: none;
  border-left: 1px solid #bbb;
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  outline: none;
}
.ikpr-request-modal--open .ikpr-request-modal__panel {
  transform: translateX(0);
}
.ikpr-request-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #555;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.ikpr-request-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #222;
}
.ikpr-request-modal__panel > h2 {
  padding-right: 2.5rem;
}
@media (prefers-reduced-motion: reduce) {
  .ikpr-request-modal__backdrop,
  .ikpr-request-modal__panel {
    transition: none;
  }
}
.ikpr-btn-google {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #4285f4;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}
.ikpr-btn-google:hover { background: #3367d6; }
.ikpr-landing-request-form { margin-top: 1rem; max-width: 100%; }
.ikpr-landing-label { display: block; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: #333; }
.ikpr-landing-request-form input,
.ikpr-landing-request-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.5rem;
  font: inherit;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #f5f5f5;
}
.ikpr-landing-submit {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font: inherit;
  border-radius: 4px;
  border: 1px solid #999;
  background: #e0e0e0;
  color: #333;
}
.ikpr-landing-submit:not(:disabled) {
  cursor: pointer;
  opacity: 1;
  background: #1565c0;
  color: #fff;
  border-color: #0d47a1;
}
.ikpr-landing-submit:not(:disabled):hover {
  background: #0d47a1;
}
.ikpr-landing-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.user-session-bar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--ikpr-text-muted);
  min-width: 0;
}
.user-session-email {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.user-session-profile-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(21, 101, 192, 0.45);
  cursor: pointer;
}
a.user-session-profile-link:hover {
  color: var(--ikpr-link);
  border-bottom-color: var(--ikpr-link);
}
.user-session-profile-hint {
  font-size: 0.65rem;
  color: var(--ikpr-text-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: -0.1rem;
}
.user-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}
.user-session-logout {
  color: var(--ikpr-link);
  text-decoration: none;
}
.user-session-logout:hover {
  text-decoration: underline;
}

/* Theme toggle (library header) */
.ikpr-theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin-bottom: 0.15rem;
  border: 1px solid var(--ikpr-border-mid);
  border-radius: 8px;
  background: var(--ikpr-surface);
  color: var(--ikpr-text);
  cursor: pointer;
}
.ikpr-theme-toggle:hover {
  background: var(--ikpr-surface-2);
  border-color: var(--ikpr-text-muted);
}
.ikpr-theme-toggle:focus-visible {
  outline: 2px solid var(--ikpr-brand);
  outline-offset: 2px;
}
.ikpr-theme-toggle-icon {
  display: block;
}
[data-theme="dark"] .ikpr-theme-toggle-moon {
  display: none;
}
[data-theme="light"] .ikpr-theme-toggle-sun {
  display: none;
}

/* Slideshow: settings drawer + fullscreen player
   Must stack above .shared-mobile-actions (1200) and .shared-dash-watermark (1201) on shared dashboards. */
.slideshow-settings-wrap {
  position: fixed;
  inset: 0;
  z-index: 3200;
  pointer-events: none;
}
.slideshow-settings-wrap:not([hidden]) {
  pointer-events: auto;
}
.slideshow-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.slideshow-settings-wrap.slideshow-settings-open .slideshow-settings-backdrop {
  opacity: 1;
}
.slideshow-settings-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  max-width: 100%;
  background: #fff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.slideshow-settings-wrap.slideshow-settings-open .slideshow-settings-panel {
  transform: translateX(0);
}
.slideshow-settings-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.slideshow-settings-lead {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.45;
}
.slideshow-fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin: 0 0 1rem;
}
.slideshow-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
}
.slideshow-fieldset-note {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.35;
}
.slideshow-radio,
.slideshow-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 0.35rem 0;
  cursor: pointer;
}
.slideshow-radio input,
.slideshow-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.slideshow-check-nested {
  margin-left: 1.35rem;
  margin-top: 0.15rem;
}
.slideshow-duration-row {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.slideshow-duration-input {
  width: 4.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.slideshow-settings-hint {
  font-size: 0.8rem;
  color: #444;
  margin: 0 0 1rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ss-hint-group {
  position: relative;
  padding: 0.32rem 0.45rem 0.36rem 0.6rem;
  border-left: 3px solid var(--ss-hint-accent, #9aa0a6);
  background: var(--ss-hint-bg, #f7f8fa);
  border-radius: 0 6px 6px 0;
}
.ss-hint-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ss-hint-accent, #9aa0a6);
  margin-bottom: 0.18rem;
}
.ss-hint-item { display: block; }
.ss-hint-item + .ss-hint-item { margin-top: 0.12rem; }
.slideshow-settings-hint kbd {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0.02rem 0.3rem;
  font: 600 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1f2937;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 4px;
  text-align: center;
  vertical-align: baseline;
}
.slideshow-settings-hint .ss-hint-pill {
  display: inline-block;
  padding: 0.04rem 0.42rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: #2e7d32;
  border-radius: 999px;
  vertical-align: baseline;
}
.ss-hint-nav     { --ss-hint-accent: #1565c0; --ss-hint-bg: #eaf3fc; }
.ss-hint-play    { --ss-hint-accent: #2e7d32; --ss-hint-bg: #ecf6ed; }
.ss-hint-display { --ss-hint-accent: #b45309; --ss-hint-bg: #fdf4e7; }
.ss-hint-deck    { --ss-hint-accent: #6d28d9; --ss-hint-bg: #f3edfd; }
.ss-hint-exit    { --ss-hint-accent: #b91c1c; --ss-hint-bg: #fdecec; }
.ss-hint-mobile {
  margin-top: 0.15rem;
  padding: 0.32rem 0.5rem;
  font-size: 0.74rem;
  font-style: italic;
  color: #4b5563;
  background: #f1f3f5;
  border-radius: 6px;
}
.slideshow-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.slideshow-btn-primary {
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.slideshow-btn-primary:hover {
  background: #555;
  border-color: #555;
}
.slideshow-settings-actions button:not(.slideshow-btn-primary) {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
}
.slideshow-settings-actions button:not(.slideshow-btn-primary):hover {
  background: #f5f5f5;
}

.modal-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: #000;
}
.modal-fullscreen-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-fullscreen-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.slideshow-player {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: #000;
}
.slideshow-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slideshow-zoom-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}
.slideshow-player-bg {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.slideshow-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}
.slideshow-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}
.slideshow-img[hidden],
.slideshow-video[hidden] {
  display: none !important;
}
.slideshow-img.ss-diffuse-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.slideshow-img.ss-diffuse-in {
  opacity: 0;
  animation: ikprSsDiffuseIn 0.4s ease forwards;
}
@keyframes ikprSsDiffuseIn {
  to { opacity: 1; }
}
.slideshow-img.ss-fly-out {
  animation: ikprSsFlyOut 0.32s ease forwards;
}
.slideshow-img.ss-fly-in {
  animation: ikprSsFlyIn 0.45s ease forwards;
}
@keyframes ikprSsFlyOut {
  to {
    transform: translateX(-18%);
    opacity: 0;
  }
}
@keyframes ikprSsFlyIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.slideshow-exit {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(0, 0, 0, 0.25);
}
.slideshow-exit:hover {
  background: rgba(255, 255, 255, 0.28);
}
.slideshow-counter {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  pointer-events: none;
}
.slideshow-filename-caption {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  max-width: min(90vw, 42rem);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.slideshow-mini-controller {
  position: fixed;
  left: 50%;
  bottom: 2.95rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.22rem;
  max-width: min(96vw, 54rem);
  padding: 0.24rem 0.32rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.ss-ctrl-pill {
  border: 1px solid #6d6d6d;
  border-radius: 999px;
  background: #6f6f6f;
  color: #f2f2f2;
  font-size: 0.62rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.18rem 0.38rem;
  min-height: 1.15rem;
  cursor: pointer;
}
.ss-ctrl-readout {
  cursor: default;
  min-width: 2.3rem;
  text-align: center;
  background: #585858;
  border-color: #6f6f6f;
  color: #ededed;
}
.ss-ctrl-pill:hover {
  background: #7a7a7a;
}
.ss-ctrl-close {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
  font-size: 0.78rem;
  min-width: 1.2rem;
  padding: 0.1rem 0.34rem;
}
.ss-ctrl-close:hover {
  background: #991b1b;
}
.ss-ctrl-pill[data-active="true"] {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}
.ss-ctrl-pill[data-active="true"]:hover {
  background: #347f38;
}
.ss-ctrl-pill[data-disabled="true"] {
  opacity: 0.48;
}
.ss-ctrl-pill:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.ss-ctrl-color {
  width: 1.05rem;
  min-width: 1.05rem;
  padding: 0;
}
.ss-ctrl-color[data-letterbox="black"] { background: #000; border-color: #696969; }
.ss-ctrl-color[data-letterbox="white"] { background: #fff; border-color: #9d9d9d; color: #000; }
.ss-ctrl-color[data-letterbox="red"] { background: #c62828; border-color: #c62828; }
.ss-ctrl-color[data-letterbox="green"] { background: #2e7d32; border-color: #2e7d32; }
.ss-ctrl-color[data-letterbox="blue"] { background: #1565c0; border-color: #1565c0; }
.ss-ctrl-color[data-active="true"] {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.slideshow-mini-launcher {
  position: fixed;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 4;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.slideshow-mini-launcher:hover {
  background: rgba(0, 0, 0, 0.8);
}
.slideshow-mini-launcher svg {
  width: 1rem;
  height: 1rem;
  stroke: #fff;
  fill: none;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slideshow-mini-launcher.is-active {
  background: rgba(21, 101, 192, 0.86);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 0 5px rgba(21, 101, 192, 0.35);
  transform: scale(1.06);
}
/* Themed actions: tags (light green), folders (light blue), delete (red) */
.ikpr-btn-tags,
.ikpr-btn-folders,
.ikpr-btn-delete,
.ikpr-btn-dark {
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ikpr-btn-tags {
  background: #d4edda;
  border: 1px solid #6abf73;
  color: #1e4620;
}
.ikpr-btn-tags:hover {
  background: #c3e6cb;
  border-color: #3d9b4a;
  color: #153818;
}
.ikpr-btn-tags:active {
  background: #b1dfbb;
}
.ikpr-btn-folders {
  background: #cfe2ff;
  border: 1px solid #6ea8fe;
  color: #084298;
}
.ikpr-btn-folders:hover {
  background: #b6d4fe;
  border-color: #0d6efd;
  color: #052c65;
}
.ikpr-btn-folders:active {
  background: #9ec5fe;
}
.ikpr-btn-delete {
  background: #f8d7da;
  border: 1px solid #e0636d;
  color: #842029;
}
.ikpr-btn-delete:hover {
  background: #f1aeb5;
  border-color: #dc3545;
  color: #58151c;
}
.ikpr-btn-delete:active {
  background: #ea868f;
}
.ikpr-btn-dark {
  background: #d3d3d3;
  border: 1px solid #8a8a8a;
  color: #1f1f1f;
}
.ikpr-btn-dark:hover {
  background: #b9b9b9;
  border-color: #666666;
  color: #121212;
}
.ikpr-btn-dark:active {
  background: #a8a8a8;
}
.ikpr-btn-compact {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
}

.bulk-bar .ikpr-btn-tags,
.bulk-bar .ikpr-btn-folders,
.bulk-bar .ikpr-btn-delete,
.bulk-bar .ikpr-btn-dark {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}
.bulk-bar .ikpr-btn-tags { color: #1e4620; }
.bulk-bar .ikpr-btn-folders { color: #084298; }
.bulk-bar .ikpr-btn-delete { color: #842029; }
.bulk-bar .ikpr-btn-dark { color: #1f1f1f; }

.modal-actions button.ikpr-btn-tags:hover {
  background: #c3e6cb;
  border-color: #3d9b4a;
  color: #153818;
}
.modal-actions button.ikpr-btn-folders:hover {
  background: #b6d4fe;
  border-color: #0d6efd;
  color: #052c65;
}
.modal-actions button.ikpr-btn-delete:hover {
  background: #f1aeb5;
  border-color: #dc3545;
  color: #58151c;
}
.modal-actions button.ikpr-btn-dark:hover {
  background: #b9b9b9;
  border-color: #666666;
  color: #121212;
}

#manage-tags-btn.ikpr-btn-tags,
#manage-folders-btn.ikpr-btn-folders {
  padding: 0.25rem 0.75rem;
}

.add-tag-row .ikpr-btn-tags,
.add-tag-row .ikpr-btn-folders {
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
}

.dialog-actions button.ikpr-btn-tags {
  background: #d4edda;
  border-color: #6abf73;
  color: #1e4620;
}
.dialog-actions button.ikpr-btn-tags:hover {
  background: #c3e6cb;
  border-color: #3d9b4a;
  color: #153818;
}
.dialog-actions button.ikpr-btn-folders {
  background: #cfe2ff;
  border-color: #6ea8fe;
  color: #084298;
}
.dialog-actions button.ikpr-btn-folders:hover {
  background: #b6d4fe;
  border-color: #0d6efd;
  color: #052c65;
}
.dialog-actions button.ikpr-btn-delete {
  background: #f8d7da;
  border-color: #e0636d;
  color: #842029;
}
.dialog-actions button.ikpr-btn-delete:hover {
  background: #f1aeb5;
  border-color: #dc3545;
  color: #58151c;
}

.upload-confirm-btn.ikpr-btn-tags {
  background: #d4edda;
  border-color: #6abf73;
  color: #1e4620;
}
.upload-confirm-btn.ikpr-btn-tags:hover {
  background: #c3e6cb;
  border-color: #3d9b4a;
}
.upload-confirm-btn.ikpr-btn-folders {
  background: #cfe2ff;
  border-color: #6ea8fe;
  color: #084298;
}
.upload-confirm-btn.ikpr-btn-folders:hover {
  background: #b6d4fe;
  border-color: #0d6efd;
}

#manage-create-folder.ikpr-btn-folders {
  margin-top: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

/* --- Pricing preview (/pricing.php) --- */
.ikpr-pricing-page {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ikpr-pricing-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.ikpr-pricing-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.ikpr-pricing-intro h1 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 700;
  color: #111;
}

.ikpr-pricing-intro-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #555;
}

.ikpr-pricing-intro-copy {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #888;
}

.ikpr-pricing-intro-copy.ikpr-pricing-intro-copy--lead {
  margin-top: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #555;
}

.ikpr-pricing-intro-copy p {
  margin: 0;
}

.ikpr-pricing-intro-copy p + p {
  margin-top: 0.75rem;
}

.ikpr-pricing-intro-note {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #888;
}

.ikpr-pricing-tier-band {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ikpr-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
  gap: 1.25rem;
  overflow: visible;
}

/* Wide layout: shared row heights (CSS subgrid). Must not set display:flex on .ikpr-pricing-card
   globally — it would override the grid below and break alignment. */
@media (min-width: 1100px) {
  @supports (grid-template-rows: subgrid) {
    .ikpr-pricing-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-template-rows: repeat(8, auto);
      align-items: start;
    }

    .ikpr-pricing-grid > .ikpr-pricing-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 8;
      grid-column: auto;
      align-items: start;
    }
  }
}

@media (max-width: 600px) {
  .ikpr-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin: 0 auto;
  }
}

.ikpr-pricing-card {
  position: relative;
  z-index: 0;
  text-align: center;
  padding: 1.5rem 1.15rem 1.35rem;
  background: #fff;
  color: #111;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.ikpr-pricing-card:hover,
.ikpr-pricing-card:focus-within {
  z-index: 4;
  transform: scale(1.045);
}

.ikpr-pricing-card:not(.ikpr-pricing-card--featured):not(.ikpr-pricing-card--pro):hover,
.ikpr-pricing-card:not(.ikpr-pricing-card--featured):not(.ikpr-pricing-card--pro):focus-within {
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.14),
    0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #c8c8c8;
}

.ikpr-pricing-card--featured:hover,
.ikpr-pricing-card--featured:focus-within {
  box-shadow:
    0 16px 48px rgba(154, 114, 40, 0.42),
    0 8px 18px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  border-color: #8a6a28;
}

.ikpr-pricing-card--pro:hover,
.ikpr-pricing-card--pro:focus-within {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: #a8a8a8;
}

@media (prefers-reduced-motion: reduce) {
  .ikpr-pricing-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .ikpr-pricing-card:hover,
  .ikpr-pricing-card:focus-within {
    transform: none;
  }
}

/* Stacked cards: flex layout (narrow screens, or no subgrid). */
@media (max-width: 1099px) {
  .ikpr-pricing-grid > .ikpr-pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@supports not (grid-template-rows: subgrid) {
  @media (min-width: 1100px) {
    .ikpr-pricing-grid > .ikpr-pricing-card {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }
}

.ikpr-pricing-card--free {
  background: #fff;
}

.ikpr-pricing-sec {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.ikpr-pricing-sec--primary,
.ikpr-pricing-sec--recommended,
.ikpr-pricing-sec--included {
  align-self: stretch;
}

.ikpr-pricing-sec--included-empty {
  min-height: 0;
  pointer-events: none;
}

.ikpr-pricing-sec--cta {
  justify-content: flex-end;
  padding-top: 0.35rem;
}

@media (max-width: 1099px) {
  .ikpr-pricing-sec--primary,
  .ikpr-pricing-sec--recommended,
  .ikpr-pricing-sec--included {
    flex: 1 1 auto;
  }

  .ikpr-pricing-sec--cta {
    margin-top: auto;
  }
}

@media (min-width: 1100px) {
  @supports (grid-template-rows: subgrid) {
    .ikpr-pricing-sec--primary,
    .ikpr-pricing-sec--recommended,
    .ikpr-pricing-sec--included {
      flex: unset;
    }
  }
}

/* Gold — metallic gradient, dark type, forest-green upgrade list */
.ikpr-pricing-card--featured {
  background: linear-gradient(168deg, #f9f1dc 0%, #edd9a8 22%, #d4b56a 55%, #b8923f 88%, #9a7228 100%);
  color: #111;
  border: 1px solid #a67c32;
  box-shadow:
    0 12px 36px rgba(154, 114, 40, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Silver — warm off-white */
.ikpr-pricing-card--silver {
  background: #f9f8f3;
  border: 1px solid #e6e4dc;
}

.ikpr-pricing-card--silver .ikpr-pricing-feat--pos {
  color: #2e7d40;
}

/* Platinum — cool metallic, deep-teal upgrade accents */
.ikpr-pricing-card--platinum {
  background: linear-gradient(168deg, #f4f7f9 0%, #e6ecf1 38%, #d5dee6 72%, #c5d0da 100%);
  color: #111;
  border: 1px solid #9eb0bd;
  box-shadow:
    0 10px 34px rgba(55, 75, 95, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ikpr-pricing-card--platinum .ikpr-pricing-icon {
  color: #4a6678;
}

.ikpr-pricing-card--platinum .ikpr-pricing-feat--platinum {
  color: #14532d;
  font-weight: 600;
}

.ikpr-pricing-card--featured .ikpr-pricing-icon {
  color: #5c4818;
}

.ikpr-pricing-card--pro .ikpr-pricing-icon {
  color: #d4af37;
}

/* Pro — charcoal metal, champagne gold accents */
.ikpr-pricing-card--pro {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    linear-gradient(180deg, #3d3d3d 0%, #2a2a2a 48%, #323232 100%);
  color: #e8e8e8;
  border: 3px double #8a8a8a;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ikpr-pricing-card--pro .ikpr-pricing-tier,
.ikpr-pricing-card--pro .ikpr-pricing-pro-tagline,
.ikpr-pricing-card--pro .ikpr-pricing-price .ikpr-pricing-dollar,
.ikpr-pricing-card--pro .ikpr-pricing-price .ikpr-pricing-amount {
  color: #d4af37;
}

.ikpr-pricing-card--pro .ikpr-pricing-features-title {
  color: #d4af37;
  text-decoration-color: rgba(212, 175, 55, 0.45);
}

.ikpr-pricing-card--pro .ikpr-pricing-feat {
  color: #e4e4e4;
}

.ikpr-pricing-card--pro .ikpr-pricing-feat strong {
  color: #d4af37;
  font-weight: 700;
}

/* Ultra (pro) — full-width horizontal band */
.ikpr-pricing-card--pro.ikpr-pricing-card--ultra-wide {
  padding: 1.35rem 1.25rem 1.5rem;
}

.ikpr-pricing-ultra-grid {
  display: grid;
  width: 100%;
  gap: 1.15rem 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.ikpr-pricing-ultra-col {
  min-width: 0;
}

.ikpr-pricing-ultra-col--lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ikpr-pricing-ultra-col--visual .ikpr-pricing-laptop {
  margin-bottom: 0;
}

.ikpr-pricing-ultra-col--summary .ikpr-pricing-sec--primary {
  align-items: stretch;
  text-align: left;
}

.ikpr-pricing-ultra-col--summary .ikpr-pricing-features-title {
  text-align: center;
}

.ikpr-pricing-features--ultra-summary {
  margin-bottom: 0;
  text-align: left;
}

.ikpr-pricing-card--pro.ikpr-pricing-card--ultra-wide .ikpr-pricing-sec--cta {
  justify-content: center;
  padding-top: 0;
}

.ikpr-pricing-ultra-col--cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .ikpr-pricing-ultra-grid {
    grid-template-columns: minmax(11rem, 15rem) minmax(150px, 210px) minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .ikpr-pricing-card--pro.ikpr-pricing-card--ultra-wide {
    text-align: left;
  }

  .ikpr-pricing-ultra-col--lead {
    align-items: flex-start;
    text-align: left;
  }

  .ikpr-pricing-ultra-col--visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ikpr-pricing-ultra-col--visual .ikpr-pricing-laptop {
    max-width: 200px;
  }

  .ikpr-pricing-ultra-col--summary {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 1.25rem;
  }

  .ikpr-pricing-ultra-col--summary .ikpr-pricing-features-title {
    text-align: left;
  }

  .ikpr-pricing-ultra-col--cta {
    justify-content: flex-end;
    align-self: center;
  }
}

.ikpr-pricing-pro-tagline {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
  text-transform: uppercase;
}

.ikpr-pricing-icon {
  color: currentColor;
  opacity: 0.92;
  margin-bottom: 0.35rem;
}

.ikpr-pricing-sec--icon .ikpr-pricing-icon {
  margin-bottom: 0;
}

.ikpr-pricing-tier {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.ikpr-pricing-sec--price .ikpr-pricing-price {
  margin-bottom: 0;
}

.ikpr-pricing-price {
  margin-bottom: 1rem;
  line-height: 1.2;
}

.ikpr-pricing-dollar {
  font-size: 0.95rem;
  font-weight: 600;
  vertical-align: super;
  margin-right: 0.05em;
}

.ikpr-pricing-amount {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ikpr-pricing-card--pro .ikpr-pricing-amount--ask {
  letter-spacing: 0.04em;
}

.ikpr-pricing-period {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-left: 0.15rem;
}

.ikpr-pricing-card--featured .ikpr-pricing-period {
  color: #252525;
}

.ikpr-pricing-annual {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #444;
}

.ikpr-pricing-card--featured .ikpr-pricing-annual {
  color: #3d3d3d;
}

.ikpr-pricing-sec--price .ikpr-pricing-price--once,
.ikpr-pricing-sec--price .ikpr-pricing-price--pro-ask {
  margin-bottom: 0;
}

.ikpr-pricing-price--once {
  margin-bottom: 1rem;
}

.ikpr-pricing-period--once {
  display: block;
  margin-top: 0.35rem;
  margin-left: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
}

.ikpr-pricing-card--pro .ikpr-pricing-period--once {
  color: rgba(255, 255, 255, 0.88);
}

.ikpr-pricing-card--pro .ikpr-pricing-period--once strong {
  color: #f0e6c8;
}

.ikpr-pricing-annual--inline {
  display: inline;
  font-weight: 500;
  font-size: 0.78rem;
  color: #555;
}

.ikpr-pricing-pro-renewal {
  display: block;
  margin-top: 0.45rem;
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: #475569;
}

.ikpr-pricing-card--pro .ikpr-pricing-pro-renewal {
  color: rgba(255, 255, 255, 0.65);
}

.ikpr-pricing-sec--mockup .ikpr-pricing-laptop {
  margin-bottom: 0;
  max-width: min(100%, 200px);
}

.ikpr-pricing-tier-image {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.ikpr-pricing-laptop {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1rem;
}

.ikpr-pricing-laptop-lid {
  background: linear-gradient(180deg, #c4c4c4 0%, #9a9a9a 100%);
  border-radius: 10px 10px 4px 4px;
  padding: 6px 6px 5px;
}

.ikpr-pricing-laptop-bezel {
  background: #1a1a1a;
  border-radius: 6px;
  padding: 5px;
}

.ikpr-pricing-card--featured .ikpr-pricing-laptop-lid {
  background: linear-gradient(180deg, #d4c4a8 0%, #a89060 100%);
}

.ikpr-pricing-card--featured .ikpr-pricing-laptop-bezel {
  background: rgba(40, 32, 20, 0.85);
}

.ikpr-pricing-laptop-screen-inner {
  background: linear-gradient(145deg, #e8eef5 0%, #d8dee8 100%);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
}

.ikpr-pricing-card--featured .ikpr-pricing-laptop-screen-inner {
  background: linear-gradient(145deg, #fff9eb 0%, #f0e4c8 100%);
}

.ikpr-pricing-ui-bar {
  height: 14%;
  min-height: 10px;
  background: linear-gradient(90deg, #64748b 0%, #475569 100%);
  flex-shrink: 0;
}

.ikpr-pricing-ui-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6%;
  padding: 8% 7%;
}

.ikpr-pricing-ui-slide {
  flex: 1;
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 55%, #1d4ed8 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ikpr-pricing-card--featured .ikpr-pricing-ui-slide {
  background: linear-gradient(135deg, #fde68a 0%, #d97706 45%, #92400e 100%);
}

.ikpr-pricing-ui-thumbs {
  display: flex;
  gap: 5%;
  height: 18%;
  min-height: 8px;
}

.ikpr-pricing-ui-thumbs span {
  flex: 1;
  background: #94a3b8;
  border-radius: 2px;
  opacity: 0.85;
}

.ikpr-pricing-laptop-chassis {
  height: 7px;
  margin: 0 12% 0;
  background: linear-gradient(180deg, #8a8a8a 0%, #6b6b6b 100%);
  border-radius: 0 0 4px 4px;
}

.ikpr-pricing-card--featured .ikpr-pricing-laptop-chassis {
  background: linear-gradient(180deg, #a89060 0%, #7a6238 100%);
}

/* Pro tier mockup — cooler, darker chrome */
.ikpr-pricing-card--pro .ikpr-pricing-laptop-lid {
  background: linear-gradient(180deg, #5c5c5c 0%, #3a3a3a 100%);
}

.ikpr-pricing-card--pro .ikpr-pricing-laptop-bezel {
  background: #0f0f0f;
}

.ikpr-pricing-card--pro .ikpr-pricing-laptop-screen-inner {
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
}

.ikpr-pricing-card--pro .ikpr-pricing-ui-bar {
  background: linear-gradient(90deg, #4a5568 0%, #2d3748 100%);
}

.ikpr-pricing-card--pro .ikpr-pricing-ui-slide {
  background: linear-gradient(135deg, #4b5563 0%, #92400e 55%, #b45309 100%);
}

.ikpr-pricing-card--pro .ikpr-pricing-ui-thumbs span {
  background: #6b7280;
}

.ikpr-pricing-card--pro .ikpr-pricing-laptop-chassis {
  background: linear-gradient(180deg, #525252 0%, #2d2d2d 100%);
}

.ikpr-pricing-features-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ikpr-pricing-features-title--sub {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.92;
}

.ikpr-pricing-card--featured .ikpr-pricing-features-title--sub {
  opacity: 1;
  color: #1a1a1a;
}

.ikpr-pricing-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ikpr-pricing-sec--primary .ikpr-pricing-features:last-child,
.ikpr-pricing-sec--included .ikpr-pricing-features:last-child {
  margin-bottom: 0;
}

.ikpr-pricing-features--compact {
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  text-align: left;
}

.ikpr-pricing-features--compact .ikpr-pricing-feat {
  margin-bottom: 0.34rem;
}

.ikpr-pricing-sec--recommended .ikpr-pricing-features-title--sub,
.ikpr-pricing-sec--included .ikpr-pricing-features-title--sub {
  text-align: left;
}

.ikpr-pricing-feat {
  margin: 0 0 0.35rem;
}

.ikpr-pricing-feat:last-child {
  margin-bottom: 0;
}

.ikpr-pricing-feat--neg {
  color: #d93025;
}

.ikpr-pricing-feat--pos {
  color: #28a745;
}

.ikpr-pricing-card--featured .ikpr-pricing-feat--neg {
  color: #9a3412;
}

.ikpr-pricing-card--featured .ikpr-pricing-feat--pos.ikpr-pricing-feat--bright {
  color: #14532d;
  font-weight: 600;
}

.ikpr-pricing-card--featured .ikpr-pricing-features-title {
  color: #111;
}

.ikpr-pricing-card--featured .ikpr-pricing-feat:not(.ikpr-pricing-feat--pos) {
  color: #292524;
}

.ikpr-pricing-cta {
  display: inline-block;
  margin-top: auto;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  background: #000;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.ikpr-pricing-cta:hover {
  opacity: 0.92;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ikpr-pricing-cta:active {
  transform: scale(0.99);
}

.ikpr-pricing-cta--on-dark {
  background: #fff;
  color: #000 !important;
}

.ikpr-pricing-cta--on-dark:hover {
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.35);
}

.ikpr-pricing-cta--pro {
  background: #0a0a0a;
  color: #fff !important;
  border: 1px solid #d4af37;
}

.ikpr-pricing-cta--pro:hover {
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  opacity: 1;
}

/* --- Marketing layout (features.php, case-studies.php) --- */
.ikpr-features-page .ikpr-features-main,
.ikpr-case-studies-page .ikpr-features-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

.ikpr-case-studies-note {
  max-width: 42rem;
  margin: -0.5rem auto 2rem;
}

/* Case studies — muted sage / light green (distinct from Features blue) */
.ikpr-case-studies-page .ikpr-features-spotlight-icon {
  background: #e3efe6;
  color: #2f5d3a;
}

.ikpr-case-studies-page .ikpr-features-cta {
  background: #e0ede3;
  color: #1a4d28 !important;
  border-color: #a8c9b2;
}

.ikpr-case-studies-page .ikpr-features-cta:hover {
  background: #d2e6d7;
  border-color: #92b89e;
}

.ikpr-case-studies-page .ikpr-features-cta--primary {
  background: #3a6b47;
  border-color: #3a6b47;
  color: #fff !important;
}

.ikpr-case-studies-page .ikpr-features-cta--primary:hover {
  background: #2f5a3a;
  border-color: #2f5a3a;
}

.ikpr-case-studies-page .ikpr-features-copy a:not(.ikpr-features-cta) {
  color: #2d6a3a;
}

.ikpr-case-studies-page .ikpr-features-copy a:not(.ikpr-features-cta):hover {
  color: #1f4d28;
}

.ikpr-case-studies-page .ikpr-features-media-frame {
  border-color: #c8ddd0;
  background: #f2f7f3;
}

.ikpr-case-studies-page .ikpr-features-bottom-cta {
  background: #fafcf9;
  border-color: #d0e3d4;
}

.ikpr-case-studies-page .ikpr-doc-note.ikpr-case-studies-note {
  background: #f0f6f1;
  border-color: #c5dcc8;
  color: #3a4a3d;
}

.ikpr-features-hero {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.ikpr-features-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.2;
  color: #1a1a1a;
}

.ikpr-features-hero-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #4b4b4b;
}

.ikpr-features-spotlight {
  margin-bottom: 2.5rem;
}

.ikpr-features-spotlight-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.ikpr-features-spotlight-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.1rem 1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ikpr-features-spotlight-card h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.02rem;
  color: #222;
}

.ikpr-features-spotlight-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555;
}

.ikpr-features-spotlight-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background: #eef3f9;
  color: #1565c0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ikpr-features-section-title {
  text-align: center;
  margin: 0 0 1.75rem;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.ikpr-features-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.75rem;
}

@media (min-width: 860px) {
  .ikpr-features-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }

  .ikpr-features-row--flip .ikpr-features-copy {
    order: 2;
  }

  .ikpr-features-row--flip .ikpr-features-media {
    order: 1;
  }
}

.ikpr-features-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
  color: #1a1a1a;
}

.ikpr-features-copy p {
  margin: 0 0 0.65rem;
  line-height: 1.6;
  color: #3f3f3f;
}

.ikpr-features-copy ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: #3f3f3f;
  line-height: 1.55;
}

.ikpr-features-copy li + li {
  margin-top: 0.35rem;
}

.ikpr-features-copy a {
  color: #1565c0;
}

.ikpr-features-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  background: #e8eef5;
  color: #0d47a1 !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #c5d5e8;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ikpr-features-cta:hover {
  background: #dbe6f2;
  border-color: #a8bdd9;
}

.ikpr-features-cta:active {
  transform: scale(0.99);
}

.ikpr-features-cta--primary {
  background: #1565c0;
  color: #fff !important;
  border-color: #1565c0;
}

.ikpr-features-cta--primary:hover {
  background: #0d47a1;
  border-color: #0d47a1;
}

.ikpr-features-media {
  margin: 0;
}

.ikpr-features-media-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dde4ec;
  background: #f0f4f8;
  box-shadow: 0 4px 18px rgba(15, 35, 55, 0.08);
}

.ikpr-features-media-svg {
  display: block;
  width: 100%;
  height: auto;
}

.ikpr-features-bottom-cta {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2rem;
  padding: 1.75rem 1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ikpr-features-bottom-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #1a1a1a;
}

.ikpr-features-bottom-cta p {
  margin: 0 0 1rem;
  color: #4b4b4b;
  line-height: 1.55;
}

/* Account / profile page */
body.ikpr-account-body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--ikpr-account-page-bg);
  color: var(--ikpr-text);
  min-height: 100vh;
}
.ikpr-account-header {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0.5rem;
}
.ikpr-account-back {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--ikpr-link);
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.ikpr-account-back:hover {
  text-decoration: underline;
}
.ikpr-account-title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ikpr-account-heading);
}
.ikpr-account-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ikpr-account-lead);
}
.ikpr-account-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 2.5rem;
}
.ikpr-account-card {
  background: var(--ikpr-surface);
  border: 1px solid var(--ikpr-account-card-border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--ikpr-account-shadow);
}
.ikpr-account-card-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ikpr-account-heading);
}
.ikpr-account-dl {
  margin: 0;
  display: grid;
  gap: 0.65rem 1rem;
}
.ikpr-account-dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
}
@media (max-width: 520px) {
  .ikpr-account-dl > div {
    grid-template-columns: 1fr;
  }
}
.ikpr-account-dl dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ikpr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ikpr-account-dl dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ikpr-text);
  line-height: 1.45;
}
.ikpr-account-dl-sub {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ikpr-text-muted);
}
.ikpr-account-dl-note {
  color: var(--ikpr-account-lead);
  font-size: 0.88rem;
}
.ikpr-account-features-cta {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ikpr-text-muted);
}
.ikpr-account-features-cta a {
  color: var(--ikpr-link);
  font-weight: 600;
  text-decoration: none;
}
.ikpr-account-features-cta a:hover {
  text-decoration: underline;
}
.ikpr-account-pricing-cta {
  margin-top: 0.4rem;
}
.ikpr-account-dl-single > div {
  grid-template-columns: 9rem 1fr;
}
.ikpr-account-grace dd {
  color: #5d4037;
  font-size: 0.88rem;
}

.ikpr-account-plan-copy {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ecf0;
  display: grid;
  gap: 0.9rem;
}

.ikpr-account-plan-copy-block {
  min-width: 0;
}

.ikpr-account-plan-copy-title {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}

.ikpr-account-plan-copy-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ikpr-account-plan-copy-list li + li {
  margin-top: 0.3rem;
}

.ikpr-account-upgrade {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ecf0;
}
.ikpr-account-upgrade-text {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4a5560;
}
.ikpr-account-upgrade-cta {
  display: inline-block;
  padding: 0.45rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #1565c0;
  border: 1px solid #0d47a1;
  border-radius: 8px;
  text-decoration: none;
}
.ikpr-account-upgrade-cta:hover {
  background: #0d47a1;
  color: #fff;
}
.ikpr-account-upgrade-cta:focus-visible {
  outline: 2px solid rgba(21, 101, 192, 0.45);
  outline-offset: 2px;
}
.ikpr-account-muted {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--ikpr-text-muted);
  line-height: 1.45;
}
.ikpr-account-form {
  margin-top: 0.5rem;
}
.ikpr-account-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ikpr-text);
  margin-bottom: 0.35rem;
}
.ikpr-account-input {
  width: 100%;
  max-width: 22rem;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--ikpr-account-card-border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--ikpr-surface);
  color: var(--ikpr-text);
}
.ikpr-account-input:focus {
  outline: 2px solid rgba(21, 101, 192, 0.35);
  outline-offset: 1px;
}
.ikpr-account-hint {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.8rem;
  color: var(--ikpr-text-muted);
}
.ikpr-account-submit {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--ikpr-link);
  border: 1px solid var(--ikpr-link);
  border-radius: 8px;
  cursor: pointer;
}
.ikpr-account-submit:hover {
  filter: brightness(1.08);
}
.ikpr-account-error {
  background: var(--ikpr-error-bg);
  border: 1px solid var(--ikpr-error-border);
  color: var(--ikpr-error-text);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.ikpr-account-saved {
  background: var(--ikpr-success-bg);
  border: 1px solid var(--ikpr-success-border);
  color: var(--ikpr-success-text);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.ikpr-account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
}
.ikpr-account-nav a {
  color: var(--ikpr-link);
  text-decoration: none;
}
.ikpr-account-nav a:hover {
  text-decoration: underline;
}

/* Dark mode: top section panels (folders / dashboards) */
[data-theme="dark"] [data-collapsible-id="folders"] {
  border-color: #3d6fb0;
  background: rgba(30, 58, 95, 0.55);
}
[data-theme="dark"] [data-collapsible-id="folders"] .collapsible-panel-toggle {
  background: rgba(30, 58, 95, 0.65);
}
[data-theme="dark"] [data-collapsible-id="folders"] .collapsible-panel-title {
  color: var(--ikpr-info-label);
}
[data-theme="dark"] [data-collapsible-id="folders"] .collapsible-panel-hint {
  color: var(--ikpr-text-muted);
}
[data-theme="dark"] [data-collapsible-id="folders"] .collapsible-panel-chevron {
  border-color: var(--ikpr-info-border);
  color: var(--ikpr-info-label);
  background: var(--ikpr-surface-2);
}
[data-theme="dark"] [data-collapsible-id="folders"] .section-search-input {
  border-color: var(--ikpr-border-mid);
  background: var(--ikpr-surface);
  color: var(--ikpr-text);
}
[data-theme="dark"] [data-collapsible-id="owner-dashboards"],
[data-theme="dark"] [data-collapsible-id="public-shared-tiles"] {
  border-color: #8d6b2a;
  background: rgba(61, 53, 24, 0.65);
}
[data-theme="dark"] [data-collapsible-id="owner-dashboards"] .collapsible-panel-toggle,
[data-theme="dark"] [data-collapsible-id="public-shared-tiles"] .collapsible-panel-toggle {
  background: rgba(77, 62, 28, 0.75);
}
[data-theme="dark"] [data-collapsible-id="owner-dashboards"] .collapsible-panel-title,
[data-theme="dark"] [data-collapsible-id="public-shared-tiles"] .collapsible-panel-title {
  color: #ffc107;
}
[data-theme="dark"] [data-collapsible-id="owner-dashboards"] .collapsible-panel-hint,
[data-theme="dark"] [data-collapsible-id="public-shared-tiles"] .collapsible-panel-hint {
  color: var(--ikpr-tags-label);
}
[data-theme="dark"] [data-collapsible-id="owner-dashboards"] .collapsible-panel-chevron,
[data-theme="dark"] [data-collapsible-id="public-shared-tiles"] .collapsible-panel-chevron {
  border-color: #c49a3c;
  color: #ffc107;
  background: var(--ikpr-surface-2);
}
[data-theme="dark"] [data-collapsible-id="owner-dashboards"] .section-search-input,
[data-theme="dark"] [data-collapsible-id="public-shared-tiles"] .section-search-input {
  border-color: var(--ikpr-border-mid);
  background: var(--ikpr-surface);
  color: var(--ikpr-text);
}

/* Admin SaaS tier matrix (Users dashboard, Config) */
.admin-tier-matrix {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem 1.05rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.admin-tier-matrix-heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}
.admin-tier-matrix-lead {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  line-height: 1.45;
}
.admin-tier-matrix-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-tier-matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.admin-tier-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-tier-matrix-table th,
.admin-tier-matrix-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}
.admin-tier-matrix-table thead th {
  background: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  white-space: nowrap;
}
.admin-tier-matrix-table tbody tr:last-child td,
.admin-tier-matrix-table tbody tr:last-child th {
  border-bottom: none;
}
.admin-tier-matrix-tier {
  display: block;
  font-weight: 700;
  color: #0f172a;
}
.admin-tier-matrix-key {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: lowercase;
}
.admin-tier-matrix-primary {
  display: block;
  font-weight: 600;
  color: #334155;
}
.admin-tier-matrix-bytes {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: #94a3b8;
}
.admin-tier-matrix-row--free th { border-left: 3px solid #94a3b8; }
.admin-tier-matrix-row--silver th { border-left: 3px solid #64748b; }
.admin-tier-matrix-row--gold th { border-left: 3px solid #d97706; }
.admin-tier-matrix-row--platinum th { border-left: 3px solid #7c3aed; }
.admin-tier-matrix-ultra {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 48%, #fff 100%);
  border: 1px solid #ddd6fe;
  border-radius: 8px;
}
.admin-tier-matrix-ultra-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}
.admin-tier-matrix-ultra-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #5b21b6;
}
.admin-tier-matrix-ultra-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5b21b6;
  background: #ede9fe;
  border-radius: 4px;
}
.admin-tier-matrix-ultra-lead {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #475569;
}
.admin-tier-matrix-ultra-facts {
  margin: 0;
  display: grid;
  gap: 0.45rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.admin-tier-matrix-ultra-facts > div {
  margin: 0;
}
.admin-tier-matrix-ultra-facts dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c3aed;
}
.admin-tier-matrix-ultra-facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.4;
}
.admin-tier-matrix-ultra-pay {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #64748b;
}
.admin-tier-matrix-grace {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 52rem;
}
@media (max-width: 640px) {
  .admin-tier-matrix-table thead {
    display: none;
  }
  .admin-tier-matrix-table,
  .admin-tier-matrix-table tbody,
  .admin-tier-matrix-table tr,
  .admin-tier-matrix-table td,
  .admin-tier-matrix-table th {
    display: block;
    width: 100%;
  }
  .admin-tier-matrix-table tr {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #eef2f6;
  }
  .admin-tier-matrix-table tr:last-child {
    border-bottom: none;
  }
  .admin-tier-matrix-table td,
  .admin-tier-matrix-table th[scope="row"] {
    border: none;
    padding: 0.2rem 0;
  }
  .admin-tier-matrix-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.1rem;
  }
  .admin-tier-matrix-table th[scope="row"] {
    padding-bottom: 0.35rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid #f1f5f9;
  }
}

/* Admin HTML pages: override embedded light <style> blocks when dark */
[data-theme="dark"] .admin-nav { border-bottom-color: var(--ikpr-border) !important; }
[data-theme="dark"] .admin-nav a { color: var(--ikpr-link) !important; }
[data-theme="dark"] .admin-muted { color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] .admin-tier-matrix { background: var(--ikpr-surface-2) !important; border-color: var(--ikpr-border) !important; }
[data-theme="dark"] .admin-tier-matrix-heading { color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-tier-matrix-table-wrap { border-color: var(--ikpr-border) !important; background: var(--ikpr-surface) !important; }
[data-theme="dark"] .admin-tier-matrix-table thead th { background: var(--ikpr-surface-3) !important; color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] .admin-tier-matrix-table th,
[data-theme="dark"] .admin-tier-matrix-table td { border-bottom-color: var(--ikpr-border) !important; color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-tier-matrix-tier { color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-tier-matrix-primary { color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-tier-matrix-ultra { background: var(--ikpr-surface-3) !important; border-color: var(--ikpr-border) !important; }
[data-theme="dark"] .admin-tier-matrix-ultra-title { color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-tier-matrix-ultra-lead,
[data-theme="dark"] .admin-tier-matrix-ultra-facts dd { color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] .admin-tier-matrix-grace { border-top-color: var(--ikpr-border) !important; }
[data-theme="dark"] button.admin-stat--clickable:hover,
[data-theme="dark"] button.admin-stat--clickable:focus-visible { border-color: var(--ikpr-link) !important; }
[data-theme="dark"] .admin-stat-hint { color: var(--ikpr-link) !important; }
[data-theme="dark"] .admin-drilldown-modal-body,
[data-theme="dark"] .admin-drilldown-lead { color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] .admin-drilldown-table-wrap { border-color: var(--ikpr-border) !important; }
[data-theme="dark"] .admin-drilldown-table thead th { background: var(--ikpr-surface-3) !important; color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] .admin-drilldown-table th,
[data-theme="dark"] .admin-drilldown-table td { border-bottom-color: var(--ikpr-border) !important; color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-drilldown-name,
[data-theme="dark"] .admin-drilldown-sub { color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] table.admin-users tr:target { background: var(--ikpr-surface-3) !important; outline-color: #ffc107 !important; }
[data-theme="dark"] .admin-badge { background: var(--ikpr-info-bg) !important; color: var(--ikpr-info-label) !important; }
[data-theme="dark"] .admin-stat { background: var(--ikpr-surface-2) !important; border-color: var(--ikpr-border) !important; }
[data-theme="dark"] .admin-stat dt { color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] .admin-stat dd { color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-top-list { color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] .admin-toast.ok { background: var(--ikpr-success-bg) !important; border-color: var(--ikpr-success-border) !important; color: var(--ikpr-success-text) !important; }
[data-theme="dark"] .admin-toast.err { background: var(--ikpr-error-bg) !important; border-color: var(--ikpr-error-border) !important; color: var(--ikpr-error-text) !important; }
[data-theme="dark"] .admin-table-wrap { border-color: var(--ikpr-border) !important; }
[data-theme="dark"] table.admin-users th { background: var(--ikpr-surface-3) !important; color: var(--ikpr-text) !important; }
[data-theme="dark"] table.admin-users td { border-bottom-color: var(--ikpr-border) !important; color: var(--ikpr-text) !important; }
[data-theme="dark"] table.admin-users th a { color: var(--ikpr-link) !important; }
[data-theme="dark"] table.admin-users .admin-th-sub { color: var(--ikpr-text-muted) !important; }
[data-theme="dark"] .admin-tier { background: var(--ikpr-surface-2) !important; border-color: var(--ikpr-border) !important; }
[data-theme="dark"] .admin-tier h2 { color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-panel { background: var(--ikpr-surface-2) !important; border-color: var(--ikpr-border) !important; }
[data-theme="dark"] .admin-panel h3,
[data-theme="dark"] .admin-panel h4 { color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-field label { color: var(--ikpr-text) !important; }
[data-theme="dark"] .admin-field input[type="text"],
[data-theme="dark"] .admin-field input[type="date"],
[data-theme="dark"] .admin-field textarea,
[data-theme="dark"] .admin-field select {
  background: var(--ikpr-surface) !important;
  border-color: var(--ikpr-border) !important;
  color: var(--ikpr-text) !important;
}

[data-theme="dark"] .card-inner:hover {
  outline-color: var(--ikpr-brand);
}
[data-theme="dark"] .card-inner.selected {
  outline-color: var(--ikpr-brand);
  box-shadow: 0 0 0 1px var(--ikpr-brand);
}
