/* INZULUS Portal — paleta oficial + lógica visual Apple (Liquid Glass) */
:root {
  --ip-primary: #0872f7;
  --ip-primary-deep: #0949d2;
  --ip-primary-sky: #0795ff;
  --ip-primary-light: #29b4ff;
  --ip-ink: #0b1220;
  --ip-ink-soft: #111827;
  --ip-paper: #fefeff;
  --ip-surface: #ffffff;
  --ip-fill: rgba(8, 114, 247, 0.06);
  --ip-line: rgba(9, 73, 210, 0.12);
  --ip-muted: #64748b;
  --ip-accent: var(--ip-primary);
  --ip-accent-2: var(--ip-primary-sky);
  --ip-gradient: linear-gradient(135deg, #0949d2 0%, #0872f7 42%, #0795ff 78%, #29b4ff 100%);
  --ip-radius: 22px;
  --ip-radius-sm: 14px;
  --ip-radius-control: 12px;
  --ip-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ip-glass: #ffffff;
  --ip-glass-border: rgba(9, 73, 210, 0.14);
  --ip-shadow: 0 1px 2px rgba(9, 73, 210, 0.04), 0 12px 28px -18px rgba(9, 73, 210, 0.22);
  --ip-glow: 0 0 0 1px rgba(9, 73, 210, 0.1), 0 18px 40px -20px rgba(9, 73, 210, 0.35);
  --ip-panel-shadow: 0 0 0 1px rgba(9, 73, 210, 0.1), 0 22px 48px -18px rgba(9, 73, 210, 0.4);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--ip-paper);
  color: var(--ip-ink);
  -webkit-font-smoothing: antialiased;
}

.ip-h1 {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ip-ink);
}

.ip-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ip-primary);
}

.ip-card {
  background: var(--ip-surface);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius);
  box-shadow: var(--ip-shadow);
}

.ip-card-hover {
  transition: transform 0.35s var(--ip-ease), box-shadow 0.35s var(--ip-ease), border-color 0.35s var(--ip-ease);
}
.ip-card-hover:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 114, 247, 0.28);
  box-shadow: 0 1px 2px rgba(9, 73, 210, 0.05), 0 16px 36px -18px rgba(8, 114, 247, 0.28);
}

.ip-client-card {
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--ip-primary);
  color: #fefeff;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  border-radius: 980px;
  padding: 0.78rem 1.15rem;
  min-height: 44px;
  border: 0;
  transition: background 0.28s var(--ip-ease), transform 0.28s var(--ip-ease), box-shadow 0.28s var(--ip-ease);
}
.ip-btn:hover {
  background: #0795ff;
  box-shadow: 0 8px 22px -10px rgba(8, 114, 247, 0.55);
}
.ip-btn:active { transform: scale(0.98); }
.ip-btn-accent {
  background: var(--ip-primary);
}
.ip-btn-accent:hover { background: #0795ff; }
.ip-btn-ghost {
  background: var(--ip-fill);
  color: var(--ip-primary);
  border: 0;
}
.ip-btn-ghost:hover { background: rgba(8, 114, 247, 0.12); }
.ip-btn-danger {
  background: #b91c1c;
  color: #fff;
}
.ip-btn-danger:hover { background: #991b1b; }

/* Drive / file manager */
.ip-drive-client-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ip-drive-client-pick {
  flex: 1;
  min-width: 0;
  max-width: 28rem;
  position: relative;
}
.ip-drive-client-select { max-width: 22rem; }
.ip-drive-menu-item.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}
.ip-drive-panel {
  background: #fff;
  border: 1px solid rgba(9, 73, 210, 0.1);
  border-radius: 18px;
  overflow: hidden;
}
.ip-drive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(9, 73, 210, 0.08);
  background: rgba(8, 114, 247, 0.03);
}
.ip-drive-toolbar-left,
.ip-drive-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.ip-drive-btn {
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  gap: 0.35rem;
}
.ip-drive-btn .material-symbols-outlined { font-size: 1.15rem; }
.ip-drive-vis-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ip-muted);
  cursor: pointer;
  user-select: none;
}
.ip-drive-view-toggle,
.ip-drive-size-toggle {
  display: flex;
  border: 1px solid rgba(9, 73, 210, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ip-drive-size-toggle.is-hidden { display: none; }
.ip-drive-icon-btn,
.ip-drive-size-btn {
  border: 0;
  background: transparent;
  color: var(--ip-muted);
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  min-width: 2.1rem;
  min-height: 2.1rem;
}
.ip-drive-icon-btn .material-symbols-outlined { font-size: 1.2rem; }
.ip-drive-icon-btn.is-active,
.ip-drive-size-btn.is-active {
  background: rgba(8, 114, 247, 0.12);
  color: var(--ip-primary);
}
.ip-drive-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(9, 73, 210, 0.06);
  font-size: 0.82rem;
}
.ip-drive-crumb {
  border: 0;
  background: transparent;
  color: var(--ip-muted);
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.ip-drive-crumb .material-symbols-outlined { font-size: 1rem; }
.ip-drive-crumb:hover { background: rgba(8, 114, 247, 0.08); color: var(--ip-primary); }
.ip-drive-crumb.is-current { color: var(--ip-ink); cursor: default; }
.ip-drive-crumb-sep { color: #cbd5e1; }
.ip-drive-dropzone {
  min-height: 14rem;
  padding: 1rem;
  position: relative;
}
.ip-drive-dropzone.is-drag {
  background: rgba(8, 114, 247, 0.06);
  outline: 2px dashed rgba(8, 114, 247, 0.35);
  outline-offset: -6px;
}
.ip-drive-drop-hint {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  gap: 0.5rem;
  color: var(--ip-primary);
  font-weight: 600;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
}
.ip-drive-dropzone.is-drag .ip-drive-drop-hint { display: grid; }
.ip-drive-empty {
  text-align: center;
  color: var(--ip-muted);
  font-size: 0.88rem;
  padding: 2.5rem 1rem;
}

/* Grid / mosaic */
.ip-drive-grid {
  display: grid;
  gap: 0.3rem;
}
.ip-drive-grid--s { grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); }
.ip-drive-grid--m { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
.ip-drive-grid--l { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.ip-drive-tile {
  position: relative;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 0.4rem 0.25rem 0.3rem;
  text-align: center;
  cursor: default;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ip-drive-tile:hover { background: rgba(8, 114, 247, 0.06); border-color: rgba(9, 73, 210, 0.1); }
.ip-drive-tile-folder,
.ip-drive-tile-file { padding-bottom: 0.2rem; }
.ip-drive-tile-folder { padding-top: 0.25rem; }
.ip-drive-tile-main {
  border: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
  padding: 0.15rem 0.35rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: inherit;
}
.ip-drive-thumb {
  width: var(--drive-thumb, 3rem);
  height: var(--drive-thumb, 3rem);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(8, 114, 247, 0.08);
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.ip-drive-grid--s { --drive-thumb: 2.25rem; }
.ip-drive-grid--m { --drive-thumb: 3rem; }
.ip-drive-grid--l { --drive-thumb: 4.25rem; }
.ip-drive-grid--s .ip-drive-thumb .material-symbols-outlined { font-size: 1.35rem; }
.ip-drive-grid--m .ip-drive-thumb .material-symbols-outlined { font-size: 1.65rem; }
.ip-drive-grid--l .ip-drive-thumb .material-symbols-outlined { font-size: 2.1rem; }
.ip-drive-thumb-folder { color: #f59e0b; }
.ip-drive-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}
.ip-drive-thumb-img.is-ready { opacity: 1; }
.ip-drive-tile-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  color: var(--ip-ink);
  width: 100%;
  max-width: 100%;
  padding: 0 0.15rem;
  box-sizing: border-box;
  min-height: 1.85em;
}
.ip-drive-grid--l .ip-drive-tile-name { font-size: 0.78rem; }
.ip-drive-tile-badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  color: var(--ip-muted);
  z-index: 1;
  pointer-events: none;
}
.ip-drive-tile-badge .material-symbols-outlined { font-size: 0.95rem; }
.ip-drive-tile-menu {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 2;
  border: 0;
  background: #fff;
  border: 1px solid rgba(9, 73, 210, 0.12);
  border-radius: 999px;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  color: var(--ip-muted);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.ip-drive-tile:hover .ip-drive-tile-menu,
.ip-drive-tile:focus-within .ip-drive-tile-menu,
.ip-drive-row:hover .ip-drive-tile-menu,
.ip-drive-row:focus-within .ip-drive-tile-menu { opacity: 1; }
.ip-drive-tile-menu:hover { color: var(--ip-primary); background: #f8fafc; }
.ip-drive-tile-menu .material-symbols-outlined { font-size: 1.05rem; line-height: 1; }

/* List view */
.ip-drive-list { width: 100%; font-size: 0.82rem; overflow-x: auto; }
.ip-drive-list-head,
.ip-drive-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(10rem, 2fr) minmax(5rem, 1fr) 6.5rem 4.5rem 5.5rem 2.4rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(9, 73, 210, 0.06);
}
.ip-drive-list-head {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ip-muted);
  border-bottom-width: 2px;
}
.ip-drive-row {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: default;
  color: inherit;
  position: relative;
}
.ip-drive-row-file,
.ip-drive-row-folder { cursor: default; }
.ip-drive-row:hover { background: rgba(8, 114, 247, 0.05); }
.ip-drive-row-icon {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ip-drive-row-thumb {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(8, 114, 247, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ip-drive-row-thumb .material-symbols-outlined { font-size: 1.2rem; }
.ip-drive-row-thumb .ip-drive-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.ip-drive-thumb-folder-wrap .ip-drive-thumb-folder { color: #f59e0b; font-size: 1.35rem; }
.ip-drive-row-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ip-ink);
  text-align: left;
  padding: 0;
  min-width: 0;
}
.ip-drive-row-meta { color: var(--ip-muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-drive-row-actions {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.ip-drive-row .ip-drive-tile-menu {
  position: static;
  opacity: 0.55;
}
.ip-drive-row:hover .ip-drive-tile-menu { opacity: 1; }

.ip-drive-share-backdrop {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.ip-drive-share-backdrop.is-open { opacity: 1; }
.ip-drive-share-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.5);
  overflow: hidden;
}
.ip-drive-share-head,
.ip-drive-share-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--ip-line);
}
.ip-drive-share-foot {
  border-bottom: 0;
  border-top: 1px solid var(--ip-line);
  justify-content: flex-end;
}
.ip-drive-share-body { padding: 1rem; }
.ip-drive-share-opt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  cursor: pointer;
}
.ip-drive-share-opt:has(input:checked) {
  border-color: rgba(8, 114, 247, 0.45);
  background: color-mix(in srgb, var(--ip-primary) 6%, #fff);
}
.ip-drive-share-opt input { margin-top: 0.2rem; }
.ip-drive-share-opt span { display: flex; flex-direction: column; gap: 0.1rem; }
.ip-drive-share-opt strong { font-size: 0.88rem; }
.ip-drive-share-opt small { color: var(--ip-muted); font-size: 0.75rem; }
.ip-drive-share-link { margin-top: 0.35rem; }
.ip-drive-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  padding: 1rem;
}
.ip-drive-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.08);
  background: var(--swatch, #f59e0b);
  cursor: pointer;
  transition: transform 0.18s var(--ip-ease), box-shadow 0.18s var(--ip-ease);
}
.ip-drive-color-swatch:hover { transform: scale(1.06); }
.ip-drive-color-swatch.is-active {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--swatch, #0872f7);
}
.ip-stat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ip-ease), box-shadow 0.2s var(--ip-ease), transform 0.2s var(--ip-ease);
}
.ip-stat-card:hover {
  border-color: rgba(8, 114, 247, 0.28);
  box-shadow: 0 10px 28px -18px rgba(8, 114, 247, 0.45);
  transform: translateY(-1px);
}

.ip-dash-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
}
.ip-widget {
  grid-column: span 12;
  background: #fff;
  border: 1px solid var(--ip-line);
  border-radius: 18px;
  box-shadow: 0 10px 28px -22px rgba(9, 73, 210, 0.35);
  overflow: hidden;
  min-width: 0;
}
@media (min-width: 768px) {
  .ip-widget--s { grid-column: span 4; }
  .ip-widget--m { grid-column: span 6; }
  .ip-widget--l { grid-column: span 12; }
}
@media (min-width: 1100px) {
  .ip-widget--s { grid-column: span 3; }
  .ip-widget--m { grid-column: span 6; }
  .ip-widget--l { grid-column: span 12; }
}
.ip-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.35rem;
}
.ip-widget-tools { display: inline-flex; gap: 0.2rem; }
.ip-widget-tool {
  border: 0;
  background: transparent;
  color: var(--ip-muted);
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ip-widget-tool:hover { color: var(--ip-primary); background: rgba(8, 114, 247, 0.08); }
.ip-widget-tool .material-symbols-outlined { font-size: 1.05rem; }
.ip-widget-body { padding: 0.35rem 1rem 1rem; }
.ip-widget-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .ip-widget-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ip-widget-metric {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ip-line);
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(8, 114, 247, 0.04), transparent);
  transition: border-color 0.2s var(--ip-ease), transform 0.2s var(--ip-ease);
}
.ip-widget-metric:hover {
  border-color: rgba(8, 114, 247, 0.28);
  transform: translateY(-1px);
}
.ip-widget-metric .material-symbols-outlined { color: var(--ip-primary); font-size: 1.25rem; }
.ip-widget-metric-val { font-size: 1.55rem; font-weight: 650; letter-spacing: -0.03em; margin-top: 0.2rem; }
.ip-widget-metric-lbl {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ip-muted);
  margin-top: 0.15rem;
}
.ip-wbar { margin-bottom: 0.55rem; }
.ip-wbar-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}
.ip-wbar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--ip-fill);
  overflow: hidden;
}
.ip-wbar-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0949d2, #0872f7, #29b4ff);
}
.ip-widget-list { display: flex; flex-direction: column; gap: 0.35rem; }
.ip-widget-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  background: rgba(8, 114, 247, 0.03);
}
.ip-widget-list-item:hover { border-color: rgba(8, 114, 247, 0.18); }
.ip-widget-list-item.is-static { cursor: default; }
.ip-widget-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  text-align: center;
}
.ip-widget-hero { text-align: center; padding: 0.5rem 0 0.25rem; }
.ip-storage {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ip-storage-ring {
  --pct: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background:
    radial-gradient(closest-side, #fff 72%, transparent 73% 100%),
    conic-gradient(#0872f7 calc(var(--pct) * 1%), #e2e8f0 0);
  font-weight: 700;
  color: var(--ip-ink);
}
.ip-storage.is-warn .ip-storage-ring {
  background:
    radial-gradient(closest-side, #fff 72%, transparent 73% 100%),
    conic-gradient(#f59e0b calc(var(--pct) * 1%), #e2e8f0 0);
}
.ip-storage.is-danger .ip-storage-ring {
  background:
    radial-gradient(closest-side, #fff 72%, transparent 73% 100%),
    conic-gradient(#ef4444 calc(var(--pct) * 1%), #e2e8f0 0);
}
.ip-dash-customize {
  border: 1px solid var(--ip-line);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}
.ip-dash-customize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.45rem;
}
.ip-dash-customize-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: var(--ip-fill);
  cursor: pointer;
}

/* Context menu */
.ip-drive-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  min-width: 11rem;
  background: #fff;
  border: 1px solid rgba(9, 73, 210, 0.12);
  border-radius: 12px;
  box-shadow: var(--ip-panel-shadow);
  padding: 0.35rem;
  margin-top: 0.2rem;
}
.ip-drive-ctx {
  position: fixed;
  z-index: 500;
  min-width: 12.5rem;
  max-width: 18rem;
  background: #fff;
  border: 1px solid rgba(9, 73, 210, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 0.35rem;
  opacity: 0;
  transform: scale(0.97);
  transform-origin: top left;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.ip-drive-ctx.is-open {
  opacity: 1;
  transform: scale(1);
}
.ip-drive-menu-sep {
  height: 1px;
  margin: 0.3rem 0.4rem;
  background: rgba(15, 23, 42, 0.08);
}
.ip-drive-item-selected {
  outline: 2px solid color-mix(in srgb, var(--ip-primary) 55%, transparent);
  outline-offset: 1px;
  background: rgba(8, 114, 247, 0.08) !important;
}
.ip-drive-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ip-ink);
  cursor: pointer;
  text-align: left;
}
.ip-drive-menu-item .material-symbols-outlined { font-size: 1.1rem; color: var(--ip-muted); }
.ip-drive-menu-item:hover { background: rgba(8, 114, 247, 0.08); }
.ip-drive-menu-item.is-danger { color: #b91c1c; }
.ip-drive-menu-item.is-danger .material-symbols-outlined { color: #b91c1c; }

.ip-file-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(9, 73, 210, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s var(--ip-ease);
}
.ip-file-preview-backdrop.is-open { opacity: 1; }
.ip-file-preview-card {
  width: min(52rem, 100%);
  max-height: min(90vh, 48rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(9, 73, 210, 0.12);
  box-shadow: var(--ip-panel-shadow);
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s var(--ip-ease);
}
.ip-file-preview-backdrop.is-open .ip-file-preview-card {
  transform: translateY(0) scale(1);
}
.ip-file-preview-head,
.ip-file-preview-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(9, 73, 210, 0.08);
}
.ip-file-preview-foot {
  border-bottom: 0;
  border-top: 1px solid rgba(9, 73, 210, 0.08);
  justify-content: flex-end;
}
.ip-file-preview-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
}
.ip-file-preview-body {
  flex: 1;
  min-height: 16rem;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #f8fafc;
}
.ip-file-preview-img {
  max-width: 100%;
  max-height: min(70vh, 36rem);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}
.ip-file-preview-frame {
  width: 100%;
  height: min(70vh, 36rem);
  border: 0;
  border-radius: 10px;
  background: #fff;
}
.ip-file-preview-fallback {
  text-align: center;
  color: var(--ip-muted);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.ip-file-preview-fallback .material-symbols-outlined {
  font-size: 3rem;
  color: var(--ip-primary);
}

.ip-input, .ip-select, textarea.ip-input, select.ip-input {
  width: 100%;
  border: 1px solid transparent;
  background: var(--ip-fill);
  border-radius: var(--ip-radius-control);
  padding: 0.72rem 0.9rem;
  font-weight: 500;
  font-size: 1rem;
  outline: none;
  color: var(--ip-ink);
  transition: box-shadow 0.28s var(--ip-ease), background 0.28s var(--ip-ease), border-color 0.28s var(--ip-ease);
}
.ip-input:focus, .ip-select:focus, textarea.ip-input:focus, select.ip-input:focus {
  background: #fefeff;
  border-color: rgba(8, 114, 247, 0.45);
  box-shadow: 0 0 0 4px rgba(8, 114, 247, 0.16);
}

.ip-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ip-muted);
  margin-bottom: 0.35rem;
}

.ip-aside {
  width: 16.5rem;
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
  display: none;
  flex-direction: column;
  background: #0949d2;
  color: #fefeff;
  border-right: 0.5px solid rgba(254, 254, 255, 0.14);
}
@media (min-width: 1024px) {
  .ip-aside { display: flex; }
}

.ip-app {
  height: 100%;
  overflow: hidden;
}
html:has(.ip-app),
html:has(.ip-app) body {
  height: 100%;
  overflow: hidden;
}

.ip-shell {
  display: flex;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(8, 114, 247, 0.08), transparent 55%),
    var(--ip-paper);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* PWA / Add to Home Screen (iOS status bar translucent) */
html.ip-pwa .ip-shell {
  padding-top: env(safe-area-inset-top, 0px);
}
@media (display-mode: standalone) {
  .ip-shell {
    padding-top: env(safe-area-inset-top, 0px);
  }
}

.ip-aside-brand {
  flex-shrink: 0;
  padding: 1.1rem 0.9rem 0.85rem;
  border-bottom: 0.5px solid rgba(254, 254, 255, 0.14);
}
.ip-aside-logo {
  height: 3.75rem;
  width: auto;
  max-width: 14.5rem;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.ip-aside-portal {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fefeff;
  opacity: 0.92;
}
.ip-aside-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ip-aside-user {
  flex-shrink: 0;
  padding: 0.65rem 0.55rem 0.75rem;
  border-top: 0.5px solid rgba(254, 254, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
}
.ip-aside-user-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  border-radius: 12px;
  padding: 0.45rem 0.5rem;
  transition: background 0.28s var(--ip-ease);
}
.ip-aside-user-btn:hover { background: rgba(255, 255, 255, 0.12); }
.ip-aside-role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(254, 254, 255, 0.72);
}

.ip-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ip-page-loading {
  padding: 2rem;
  color: var(--muted, #64748b);
  font-size: 0.95rem;
}
.ip-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 1rem 1rem calc(5.75rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 640px) {
  .ip-main { padding: 1.35rem 1.5rem calc(5.75rem + env(safe-area-inset-bottom, 0px)); }
}
/* iPad portrait / tablets: más aire sin sidebar aún */
@media (min-width: 768px) and (max-width: 1023px) {
  .ip-main { padding: 1.5rem 1.75rem calc(5.75rem + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1024px) {
  .ip-main { padding: 1.75rem 2rem 2rem; }
}

.ip-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0.15rem;
  min-height: 3.25rem;
  padding:
    0.45rem max(0.35rem, env(safe-area-inset-right, 0px))
    calc(0.45rem + env(safe-area-inset-bottom, 0px))
    max(0.35rem, env(safe-area-inset-left, 0px));
  background: rgba(9, 73, 210, 0.92);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-top: 0.5px solid rgba(254, 254, 255, 0.16);
  color: #ffffff;
}
.ip-mobile-nav a,
.ip-mobile-nav button {
  color: #ffffff;
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ip-mobile-nav a.is-mobile-active {
  color: #29b4ff;
}
@media (min-width: 1024px) {
  .ip-mobile-nav { display: none; }
}

/* iPad landscape / desktop corto: sidebar usable */
@media (min-width: 900px) and (min-height: 600px) and (orientation: landscape) {
  .ip-aside { display: flex; }
  .ip-mobile-nav { display: none; }
  .ip-main { padding: 1.5rem 1.75rem 1.75rem; }
}

.ip-modal-scrim {
  background: rgba(9, 73, 210, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ip-brand-bar {
  background: var(--ip-gradient);
  color: #fff;
}
.ip-brand-bar .ip-kicker {
  color: rgba(255, 255, 255, 0.88);
}
.ip-brand-bar p,
.ip-brand-bar h1,
.ip-brand-bar h2 {
  color: #fff;
}

.ip-login-page {
  --ip-login-field: #0949d2;
  background-color: var(--ip-login-field);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(8, 114, 247, 0.55), transparent 58%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(41, 180, 255, 0.22), transparent 70%);
  color: #fefeff;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.5rem, env(safe-area-inset-top)) 0.85rem max(0.5rem, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 639px) {
  .ip-login-page {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
.ip-login-shell {
  position: relative;
  width: 100%;
  max-width: 21.5rem;
  margin: auto;
  isolation: isolate;
}
@media (max-width: 639px) {
  .ip-login-shell { margin: 0 auto; }
}
.ip-login-glow {
  position: absolute;
  inset: -18% -12% auto -12%;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(8, 114, 247, 0.85) 0%, rgba(41, 180, 255, 0.35) 42%, transparent 72%);
  filter: blur(28px);
  opacity: 0.95;
}
.ip-login-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(9, 73, 210, 0.14);
  border-radius: 22px;
  box-shadow: var(--ip-panel-shadow);
  color: var(--ip-ink);
}
.ip-login-brand {
  position: relative;
  padding: 1.05rem 1.15rem 0.55rem;
  text-align: center;
  background: transparent;
}
.ip-login-card .ip-login-brand.ip-brand-bar {
  background: transparent;
}
.ip-login-logo-wrap {
  /* El PNG es cuadrado con mucho blanco: la ventana recorta el aire sobrante.
     Debe quedar algo más alta que el lockup para no cortar las puntas del rombo. */
  width: min(100%, 250px);
  height: 58px;
  margin: 0 auto 0.35rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ip-login-logo {
  width: 105%;
  height: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .ip-login-logo-wrap {
    width: min(100%, 270px);
    height: 62px;
  }
}
.ip-login-brand .ip-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ip-primary);
}
.ip-login-tagline {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ip-muted);
  margin-top: 0.2rem;
  letter-spacing: -0.01em;
}
.ip-login-body {
  position: relative;
  padding: 0.85rem 1.1rem 1.05rem;
}
.ip-login-title {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
  color: var(--ip-ink);
}
.ip-login-mode-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
  user-select: none;
  cursor: pointer;
}
.ip-login-mode-switch > span {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ip-muted);
  transition: color 0.2s var(--ip-ease);
}
.ip-login-mode-switch > span.is-active {
  color: var(--ip-primary);
}
.ip-login-mode-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ip-login-mode-track {
  width: 2.75rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex-shrink: 0;
  transition: background 0.22s var(--ip-ease);
}
.ip-login-mode-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.22s var(--ip-ease);
}
.ip-login-mode-switch input:checked + .ip-login-mode-track {
  background: var(--ip-primary);
}
.ip-login-mode-switch input:checked + .ip-login-mode-track .ip-login-mode-knob {
  transform: translateX(1.3rem);
}
.ip-otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}
.ip-otp-digit {
  width: 100%;
  aspect-ratio: 1;
  min-height: 2.75rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(9, 73, 210, 0.16);
  background: rgba(8, 114, 247, 0.06);
  color: var(--ip-ink);
  outline: none;
}
.ip-otp-digit:focus {
  border-color: rgba(8, 114, 247, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 114, 247, 0.12);
}
.ip-login-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.38s var(--ip-ease), opacity 0.28s var(--ip-ease), margin 0.38s var(--ip-ease);
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}
.ip-login-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 0.15rem;
  pointer-events: auto;
}
.ip-login-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.ip-login-card {
  transition: transform 0.35s var(--ip-ease);
}
.ip-login-tabs {
  display: none;
}

/* Confirm dialog */
.ip-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(9, 73, 210, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s var(--ip-ease);
}
.ip-confirm-backdrop.is-open { opacity: 1; }
.ip-confirm-card {
  width: 100%;
  max-width: 22rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(9, 73, 210, 0.12);
  box-shadow: var(--ip-panel-shadow);
  padding: 1.35rem 1.25rem 1.2rem;
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s var(--ip-ease);
}
.ip-confirm-backdrop.is-open .ip-confirm-card {
  transform: translateY(0) scale(1);
}
.ip-confirm-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(8, 114, 247, 0.1);
  color: var(--ip-primary);
}
.ip-confirm-icon.is-danger {
  background: #fef2f2;
  color: #b91c1c;
}
.ip-confirm-icon .material-symbols-outlined { font-size: 1.55rem; }
.ip-confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--ip-ink);
}
.ip-confirm-msg {
  font-size: 0.9rem;
  color: var(--ip-muted);
  line-height: 1.45;
  margin-bottom: 1.15rem;
  white-space: pre-wrap;
}
.ip-confirm-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: stretch;
}
.ip-confirm-actions .ip-btn {
  flex: 1;
  min-height: 2.6rem;
}
.ip-login-form .ip-input {
  padding: 0.7rem 0.85rem;
  font-size: 16px;
  background: rgba(8, 114, 247, 0.06);
  border: 1px solid rgba(9, 73, 210, 0.12);
  border-radius: 14px;
  color: var(--ip-ink);
}
.ip-login-form .ip-input:focus {
  background: #ffffff;
  border-color: rgba(8, 114, 247, 0.45);
}
.ip-login-form .ip-label {
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.28rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ip-muted);
}
.ip-login-form .ip-btn {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 46px;
  box-shadow: 0 8px 24px -10px rgba(8, 114, 247, 0.55);
}
.ip-login-form .ip-btn:hover {
  background: #0795ff;
}
.ip-login-page .ip-login-footer {
  position: relative;
  z-index: 1;
  color: rgba(254, 254, 255, 0.82);
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.ip-login-page .ip-login-footer a {
  color: #fefeff;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(254, 254, 255, 0.45);
}
@media (prefers-reduced-transparency: reduce) {
  .ip-login-glow { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .ip-btn, .ip-card-hover, .ip-input { transition: none; }
}

.ip-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  transition: background 0.28s var(--ip-ease), color 0.28s var(--ip-ease);
}
.ip-nav-link .material-symbols-outlined {
  font-size: 1.2rem;
  opacity: 1;
  color: #ffffff;
}
.ip-nav-link:hover { color: #ffffff; background: rgba(255,255,255,0.14); }
.ip-nav-link.is-active {
  color: #ffffff;
  background: rgba(8, 114, 247, 0.55);
  box-shadow: inset 0 0 0 1px rgba(254, 254, 255, 0.18);
}
.ip-nav-link.is-active .material-symbols-outlined { color: #ffffff; }
.ip-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: #29b4ff;
}

.ip-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 114, 247, 0.15);
  color: #29b4ff;
  font-weight: 700;
  border-radius: 12px;
}
.ip-client-logo {
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(9, 73, 210, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}
.ip-client-logo.size-10 { width: 2.5rem; height: 2.5rem; }
.ip-client-logo.size-16 { width: 4rem; height: 4rem; }
.ip-client-logo.size-20 { width: 5rem; height: 5rem; }
.ip-client-logo:not([src]) { opacity: 0; }
.ip-client-logo.is-ready { opacity: 1; transition: opacity 0.2s var(--ip-ease); }

.ip-avatar-picker-wrap {
  position: relative;
  flex-shrink: 0;
}
.ip-avatar-picker-wrap.size-16 { width: 4rem; height: 4rem; }
.ip-avatar-picker-wrap.size-20 { width: 5rem; height: 5rem; }
.ip-avatar-picker {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 2px solid rgba(9, 73, 210, 0.12);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s var(--ip-ease), transform 0.15s var(--ip-ease);
}
.ip-avatar-picker:hover {
  border-color: rgba(8, 114, 247, 0.45);
}
.ip-avatar-picker:focus-visible {
  outline: 2px solid #0872f7;
  outline-offset: 2px;
}
.ip-avatar-picker-media,
.ip-avatar-picker-media .ip-avatar,
.ip-avatar-picker-media .ip-client-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
}
.ip-avatar-picker-media .ip-avatar {
  font-size: 1rem;
}
.ip-avatar-picker-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s var(--ip-ease);
  pointer-events: none;
}
.ip-avatar-picker:hover .ip-avatar-picker-overlay,
.ip-avatar-picker:focus-visible .ip-avatar-picker-overlay {
  opacity: 1;
}
.ip-avatar-picker-overlay .material-symbols-outlined {
  font-size: 1.35rem;
}
.ip-avatar-picker-remove {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ef4444;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.ip-avatar-picker-remove:hover {
  background: #dc2626;
}

.ip-svc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.ip-svc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ip-svc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--ip-line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ip-ink-soft);
  cursor: pointer;
  transition: border-color 0.2s var(--ip-ease), background 0.2s var(--ip-ease), color 0.2s var(--ip-ease);
}
.ip-svc-pill:hover {
  border-color: rgba(8, 114, 247, 0.35);
  color: var(--ip-primary);
}
.ip-svc-pill.is-active {
  border-color: var(--ip-primary);
  background: rgba(8, 114, 247, 0.08);
  color: var(--ip-primary);
}
.ip-svc-pill-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--ip-fill);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  color: var(--ip-muted);
}
.ip-svc-pill.is-active .ip-svc-pill-count {
  background: rgba(8, 114, 247, 0.15);
  color: var(--ip-primary);
}
.ip-svc-table tbody tr.is-highlight {
  background: rgba(8, 114, 247, 0.06);
}
.ip-svc-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.ip-svc-status.is-on {
  background: #ecfdf5;
  color: #047857;
}
.ip-svc-status.is-off {
  background: #f1f5f9;
  color: #64748b;
}

.ip-svc-staff {
  background: linear-gradient(180deg, rgba(8, 114, 247, 0.06) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(9, 73, 210, 0.12);
  border-radius: 18px;
  padding: 1.25rem;
}
.ip-svc-staff-head {
  margin-bottom: 1.25rem;
}
.ip-svc-staff-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(9, 73, 210, 0.08);
}
.ip-svc-staff-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.ip-svc-staff-step {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ip-primary, #0872f7);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.ip-svc-staff-step--inline {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.7rem;
  margin-top: 0;
  margin-right: 0.5rem;
}
.ip-svc-staff-hint {
  font-size: 0.82rem;
  color: var(--ip-muted);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.45;
}
.ip-svc-staff-details {
  display: block;
}
.ip-svc-staff-details > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ip-svc-staff-details > summary::-webkit-details-marker { display: none; }
.ip-svc-staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(9, 73, 210, 0.08);
}
.ip-svc-staff-section.is-focus {
  background: rgba(8, 114, 247, 0.05);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 12px;
}
.ip-svc-staff-section.is-focus .ip-svc-staff-step {
  background: var(--ip-primary);
  color: #fff;
  border-color: var(--ip-primary);
}
.ip-svc-staff-section:not(.is-focus):not(.ip-svc-staff-details) {
  opacity: 0.72;
}

.ip-client-action {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}
.ip-client-action.is-urgent {
  background: linear-gradient(135deg, rgba(8, 114, 247, 0.1) 0%, rgba(8, 114, 247, 0.04) 100%);
  border: 1px solid rgba(8, 114, 247, 0.28);
  color: var(--ip-ink);
}
.ip-client-action.is-info {
  background: var(--ip-fill);
  border: 1px solid var(--ip-line);
  color: var(--ip-ink-soft);
}
.ip-client-action-icon {
  font-size: 1.65rem;
  color: var(--ip-primary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.ip-client-action.is-info .ip-client-action-icon {
  color: var(--ip-muted);
}

.ip-table {
  border-collapse: collapse;
  min-width: 44rem;
}
.ip-table th,
.ip-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--ip-line);
}
.ip-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ip-muted);
  background: var(--ip-fill);
}
.ip-table tbody tr:last-child td {
  border-bottom: 0;
}
.ip-table tr.is-inactive-row {
  background: rgba(148, 163, 184, 0.08);
}
.ip-table tr.is-inactive-row td:first-child a {
  color: var(--ip-muted);
}
.ip-input--table {
  min-width: 8.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
}
.ip-switch--table {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}
.ip-switch--table .ip-switch-label {
  min-width: 1.4rem;
}

.ip-brand-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 0.75rem;
  border: 1px dashed var(--ip-line);
  border-radius: 12px;
  background: var(--ip-fill);
}
.ip-brand-preview-card {
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  padding: 0.85rem;
  background: #fff;
}
.ip-brand-preview-aside {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: #fff;
  max-width: 11rem;
}

.ip-files-header-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.ip-files-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: var(--ip-fill);
  border-radius: 14px;
  border: 1px solid var(--ip-line);
  flex-shrink: 0;
}
.ip-files-tab {
  border: 0;
  background: transparent;
  color: var(--ip-muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.45rem 0.85rem;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ip-ease), color 0.2s var(--ip-ease);
}
.ip-files-tab:hover { color: var(--ip-primary); }
.ip-files-tab.is-active {
  background: #fff;
  color: var(--ip-primary);
  box-shadow: 0 1px 3px rgba(9, 73, 210, 0.12);
}
.ip-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.ip-portfolio-card {
  background: #fff;
  border: 1px solid var(--ip-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px -14px rgba(9, 73, 210, 0.35);
}
.ip-portfolio-card.is-piece {
  display: flex;
  flex-direction: column;
}
.ip-portfolio-cover {
  position: relative;
}
.ip-portfolio-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ip-fill);
}
.ip-portfolio-kind {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.ip-portfolio-body {
  padding: 0.65rem 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ip-portfolio-title {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ip-ink);
  background: transparent;
}
.ip-portfolio-title:hover,
.ip-portfolio-title:focus {
  border-color: rgba(8, 114, 247, 0.35);
  background: #fff;
  outline: none;
}
.ip-portfolio-kind-select {
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
}
.ip-portfolio-frames {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ip-portfolio-frame {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ip-line);
}
.ip-portfolio-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ip-portfolio-frame-n {
  position: absolute;
  left: 2px;
  bottom: 2px;
  font-size: 0.55rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border-radius: 4px;
  padding: 0 3px;
}
.ip-portfolio-frame-del {
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  border: 0;
  background: rgba(185, 28, 28, 0.9);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.ip-portfolio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.ip-portfolio-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
}
.ip-portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ip-muted);
  border: 1px dashed var(--ip-line);
  border-radius: 16px;
  background: #fff;
}
.ip-portfolio-empty .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--ip-primary);
  margin-bottom: 0.5rem;
}
.ip-portfolio-composer {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--ip-line);
  border-radius: 16px;
  box-shadow: 0 8px 22px -18px rgba(9, 73, 210, 0.4);
}
.ip-portfolio-composer.hidden { display: none; }
.ip-portfolio-composer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
}
.ip-portfolio-composer-files { grid-column: 1 / -1; }
.ip-portfolio-filepick {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px dashed rgba(8, 114, 247, 0.45);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ip-primary) 6%, #fff);
  color: var(--ip-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  position: relative;
}
.ip-portfolio-filepick .ip-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ip-portfolio-filepick:hover {
  background: color-mix(in srgb, var(--ip-primary) 12%, #fff);
}
.ip-portfolio-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.ip-portfolio-size-select {
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
}
.ip-portfolio-preview {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
}
.ip-portfolio-preview-panel {
  width: min(1100px, 100%);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.55);
}
.ip-portfolio-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--ip-line);
}
.ip-portfolio-preview-frame {
  flex: 1;
  width: 100%;
  min-height: min(78vh, 820px);
  border: 0;
  background: #f8fafc;
}

.ip-portfolio-composer-aspect { grid-column: 1 / -1; }
.ip-aspect-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ip-aspect-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--ip-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  min-width: 3.2rem;
  color: var(--ip-muted);
}
.ip-aspect-opt:hover { border-color: rgba(8, 114, 247, 0.45); color: var(--ip-primary); }
.ip-aspect-opt.is-active {
  border-color: var(--ip-primary);
  background: color-mix(in srgb, var(--ip-primary) 8%, #fff);
  color: var(--ip-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ip-primary) 25%, transparent);
}
.ip-aspect-preview {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: color-mix(in srgb, currentColor 12%, #fff);
  aspect-ratio: var(--ar, 1 / 1);
  width: auto;
  max-width: 2.1rem;
  max-height: 1.85rem;
  height: auto;
  min-width: 0.7rem;
  min-height: 0.7rem;
}
.ip-aspect-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ip-aspect-pick--compact .ip-aspect-opt {
  min-width: 2.6rem;
  padding: 0.3rem;
}
.ip-portfolio-frame-ord {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
}
.ip-portfolio-ord-btn {
  width: 1rem;
  height: 0.95rem;
  border: 0;
  padding: 0;
  font-size: 0.55rem;
  line-height: 1;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  cursor: pointer;
}
.ip-portfolio-ord-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.ip-portfolio-frame {
  width: 3.2rem;
  height: 3.2rem;
}
.ip-drive-cloud-banner {
  margin: 0 0 0.75rem;
}

.ip-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(9, 73, 210, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.ip-modal-backdrop--locked {
  align-items: center;
  overflow: hidden;
  padding: 0.75rem;
}
.ip-modal-card {
  background: #ffffff;
  border: 1px solid rgba(9, 73, 210, 0.14);
  border-radius: 22px;
  box-shadow: var(--ip-panel-shadow);
  color: var(--ip-ink);
  width: 100%;
  max-width: 42rem;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.35rem;
}
.ip-modal-card--wide {
  max-width: 44rem;
}
.ip-modal-card--fit {
  display: flex;
  flex-direction: column;
  max-width: min(36rem, 100%);
  width: 100%;
  max-height: calc(100dvh - 1.5rem);
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.ip-modal-card--fit.ip-modal-card--wide {
  max-width: min(40rem, 100%);
}
.ip-modal-card--fit .ip-modal-body {
  overflow: visible;
  flex: 0 1 auto;
  min-height: 0;
  background: #fff;
}
.ip-modal-card--fit .ip-cat-mgr-body {
  overflow-y: auto;
  background: #f4f7fb;
  gap: 0.85rem;
}
.ip-modal-card--form {
  display: flex;
  flex-direction: column;
  max-width: min(44rem, 100%);
  width: 100%;
  height: min(92dvh, 920px);
  max-height: 92dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.ip-modal-backdrop:not(.ip-modal-backdrop--locked) .ip-modal-card--form {
  margin: 1.25rem auto;
}
.ip-modal-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  pointer-events: none;
  background: var(--ip-gradient);
}
.ip-modal-card--form::before {
  display: none;
  content: none;
}
.ip-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--ip-line);
  background: #fff;
}
.ip-modal-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(9, 73, 210, 0.18);
  background: #fff;
  color: var(--ip-ink);
  box-shadow: 0 1px 2px rgba(9, 73, 210, 0.08);
  cursor: pointer;
}
.ip-modal-close:hover {
  background: rgba(8, 114, 247, 0.08);
  color: var(--ip-primary);
  border-color: rgba(8, 114, 247, 0.35);
}
.ip-modal-trash {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.25);
}
.ip-modal-trash:hover {
  background: #fef2f2;
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.4);
}
.ip-modal-close .material-symbols-outlined {
  font-size: 1.35rem;
  line-height: 1;
}
.ip-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}
.ip-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f4f7fb;
}
.ip-modal-foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem 1rem;
  border-top: 1px solid var(--ip-line);
  background: #fff;
}

/* Category manager (Servicios) */
.ip-cat-mgr-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ip-cat-mgr-empty {
  margin: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ip-muted);
  background: #fff;
  border: 1px dashed rgba(9, 73, 210, 0.22);
  border-radius: 16px;
}
.ip-cat-mgr-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(9, 73, 210, 0.1);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(9, 73, 210, 0.04);
}
.ip-cat-mgr-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.ip-cat-mgr-pos {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ip-muted);
  line-height: 1;
  min-width: 1.1rem;
  text-align: center;
}
.ip-cat-mgr-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ip-muted);
  cursor: pointer;
  transition: color 0.22s var(--ip-ease), background 0.22s var(--ip-ease);
}
.ip-cat-mgr-move .material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
}
.ip-cat-mgr-move:hover:not(:disabled) {
  color: var(--ip-primary);
  background: rgba(8, 114, 247, 0.1);
}
.ip-cat-mgr-move:disabled {
  opacity: 0.28;
  cursor: default;
}
.ip-cat-mgr-fields {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
@media (min-width: 560px) {
  .ip-cat-mgr-row:not(.is-builtin) .ip-cat-mgr-fields {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
  .ip-cat-mgr-row.is-builtin .ip-cat-mgr-fields {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.ip-cat-mgr-label-wrap,
.ip-cat-mgr-key-wrap {
  min-width: 0;
}
.ip-cat-mgr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.55rem;
}
.ip-cat-mgr-chip {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ip-deep, #0949d2);
  background: rgba(8, 114, 247, 0.1);
}
.ip-cat-mgr-key {
  font-size: 0.7rem;
  color: var(--ip-muted);
  background: rgba(9, 73, 210, 0.05);
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
}
.ip-cat-mgr-del {
  color: #b91c1c;
  align-self: center;
}
.ip-cat-mgr-del:hover {
  color: #991b1b;
  background: #fef2f2;
}
.ip-cat-mgr-spacer {
  width: 2.25rem;
}
.ip-cat-mgr-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(8, 114, 247, 0.35);
  background: rgba(254, 254, 255, 0.7);
  color: var(--ip-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s var(--ip-ease), border-color 0.22s var(--ip-ease);
}
.ip-cat-mgr-add .material-symbols-outlined {
  font-size: 1.15rem;
}
.ip-cat-mgr-add:hover {
  background: rgba(8, 114, 247, 0.08);
  border-color: rgba(8, 114, 247, 0.55);
}

.ip-catalog-section {
  margin-top: 1.75rem;
}
.ip-catalog-section:first-of-type {
  margin-top: 0.5rem;
}
.ip-catalog-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(9, 73, 210, 0.1);
}
.ip-catalog-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ip-ink);
  letter-spacing: -0.01em;
}
.ip-catalog-section-count {
  font-size: 0.75rem;
  color: var(--ip-muted);
  font-weight: 500;
}

/* Google Forms–style builder */
.gf-builder { display: flex; flex-direction: column; gap: 0.75rem; }
.gf-title-card,
.gf-block {
  position: relative;
  background: #fff;
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: 0 1px 2px rgba(9, 73, 210, 0.04);
}
.gf-block-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 12px 0 0 12px;
  background: var(--ip-primary);
  opacity: 0;
  transition: opacity 0.2s var(--ip-ease);
}
.gf-title-card .gf-block-accent { opacity: 1; }
.gf-block.is-active {
  border-color: rgba(8, 114, 247, 0.35);
  box-shadow: 0 0 0 2px rgba(8, 114, 247, 0.12);
  z-index: 5;
}
.gf-block.is-active .gf-block-accent { opacity: 1; }
.gf-block:has(.gf-type-wrap.is-open) {
  z-index: 25;
  overflow: visible;
}
.gf-form-title {
  width: 100%;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0 0.35rem;
  outline: none;
  background: transparent;
  color: var(--ip-ink);
}
.gf-form-title:focus { border-bottom-color: var(--ip-primary); }
.gf-form-desc,
.gf-help,
.gf-q-title,
.gf-section-title,
.gf-opt-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(9, 73, 210, 0.12);
  background: transparent;
  outline: none;
  padding: 0.35rem 0;
  color: var(--ip-ink);
}
.gf-form-desc:focus,
.gf-help:focus,
.gf-q-title:focus,
.gf-section-title:focus,
.gf-opt-input:focus { border-bottom-color: var(--ip-primary); }
.gf-form-desc { resize: none; font-size: 0.9rem; color: var(--ip-muted); margin-top: 0.35rem; }
.gf-title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.85rem;
}
.gf-mini-select {
  border: 1px solid var(--ip-line);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  background: var(--ip-fill);
  font-weight: 600;
  font-size: 0.85rem;
}
.gf-canvas { display: flex; flex-direction: column; gap: 0.75rem; }
.gf-q-top {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .gf-q-top { grid-template-columns: 1fr minmax(11rem, 13rem); align-items: start; }
}
.gf-q-title { font-size: 1.05rem; font-weight: 600; }
.gf-type-wrap {
  position: relative;
  z-index: 2;
}
.gf-type-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  padding: 0.4rem 0.55rem;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--ip-ease), background 0.2s var(--ip-ease);
}
.gf-type-wrap.is-open .gf-type-trigger,
.gf-type-trigger:hover {
  border-color: rgba(8, 114, 247, 0.4);
  background: #fff;
}
.gf-type-icon { font-size: 1.2rem; color: var(--ip-primary); flex-shrink: 0; }
.gf-type-label {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ip-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gf-type-caret {
  font-size: 1.1rem;
  color: var(--ip-muted);
  flex-shrink: 0;
  transition: transform 0.2s var(--ip-ease);
}
.gf-type-wrap.is-open .gf-type-caret { transform: rotate(180deg); }
.gf-type-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  min-width: 15rem;
  max-height: min(18rem, 50vh);
  overflow-y: auto;
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(9, 73, 210, 0.14);
  background: #fff;
  box-shadow: 0 16px 40px -18px rgba(9, 73, 210, 0.45);
  z-index: 30;
}
.gf-type-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ip-ink);
}
.gf-type-option:hover {
  background: rgba(8, 114, 247, 0.08);
}
.gf-type-option.is-selected {
  background: rgba(8, 114, 247, 0.12);
}
.gf-type-option .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--ip-primary);
  flex-shrink: 0;
}
.gf-type-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.gf-type-option-text strong {
  font-size: 0.82rem;
  font-weight: 650;
}
.gf-type-option-text em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--ip-muted);
  letter-spacing: 0.02em;
}
.gf-type-select { display: none; }
.gf-help { font-size: 0.85rem; color: var(--ip-muted); margin-top: 0.35rem; }
.gf-opts { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.gf-opt { display: flex; align-items: center; gap: 0.5rem; }
.gf-opt-mark {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(9, 73, 210, 0.35);
  border-radius: 50%;
  flex-shrink: 0;
}
.gf-opt-mark.is-check { border-radius: 3px; }
.gf-add-opt {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ip-primary);
  background: none;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
}
.gf-opt-del {
  border: 0;
  background: none;
  color: var(--ip-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
}
.gf-opt-del:hover { color: #b91c1c; }
.gf-scale { margin-top: 0.75rem; }
.gf-num {
  width: 3.25rem;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  padding: 0.25rem 0.35rem;
  margin: 0 0.25rem;
}
.gf-q-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ip-line);
}
.gf-foot-sep {
  width: 1px;
  height: 1.4rem;
  background: var(--ip-line);
  margin: 0 0.25rem;
}
.gf-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ip-muted);
  cursor: pointer;
}
.gf-icon-btn:hover { background: var(--ip-fill); color: var(--ip-primary); }
.gf-icon-btn .material-symbols-outlined { font-size: 1.2rem; }
.gf-req {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ip-ink-soft);
}
.gf-req input { accent-color: var(--ip-primary); width: 1.05rem; height: 1.05rem; }
.gf-section {
  background: linear-gradient(180deg, rgba(8, 114, 247, 0.06), #fff 40%);
  border-style: dashed;
}
.gf-section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.gf-section-title { font-size: 1.15rem; font-weight: 650; }
.gf-fab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  background: none;
  position: static;
}
.gf-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--ip-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ip-ink);
  cursor: pointer;
}
.gf-fab:hover { border-color: rgba(8, 114, 247, 0.4); color: var(--ip-primary); }
.gf-fab .material-symbols-outlined { font-size: 1.15rem; color: var(--ip-primary); }
.gf-settings {
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.ip-toast {
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--ip-glow);
  color: #fefeff;
}
.ip-toast.is-ok {
  background: rgba(8, 114, 247, 0.95);
}
.ip-toast.is-error {
  background: #b91c1c;
  box-shadow: 0 12px 32px -14px rgba(185, 28, 28, 0.55);
}

.ip-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  border: 0;
  background: var(--ip-fill);
  color: var(--ip-muted);
  transition: color 0.28s var(--ip-ease), background 0.28s var(--ip-ease);
}
.ip-icon-btn:hover {
  color: var(--ip-primary);
  background: rgba(8, 114, 247, 0.12);
}
.ip-icon-btn.is-active {
  color: var(--ip-primary);
  background: rgba(8, 114, 247, 0.14);
  box-shadow: 0 0 0 2px rgba(8, 114, 247, 0.2);
}

.ip-client-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  padding: 0 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #fff;
  transition: max-height 0.28s var(--ip-ease), opacity 0.22s var(--ip-ease), margin 0.28s var(--ip-ease), padding 0.28s var(--ip-ease), border-color 0.22s var(--ip-ease), box-shadow 0.22s var(--ip-ease);
}
.ip-client-search.is-open {
  max-height: 4.5rem;
  opacity: 1;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1rem;
  border-color: rgba(8, 114, 247, 0.28);
  box-shadow: 0 8px 28px -16px rgba(8, 114, 247, 0.35);
}
.ip-client-search-icon {
  color: var(--ip-primary);
  font-size: 1.35rem;
}
.ip-client-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ip-ink);
  padding: 0.35rem 0;
}
.ip-client-search-input::placeholder {
  color: var(--ip-muted);
  font-weight: 400;
}
.ip-client-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--ip-fill);
  color: var(--ip-muted);
  cursor: pointer;
  transition: color 0.2s var(--ip-ease), background 0.2s var(--ip-ease);
}
.ip-client-search-clear:hover {
  color: var(--ip-primary);
  background: rgba(8, 114, 247, 0.12);
}

.ip-client-pick {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(8, 114, 247, 0.22);
  background: #fff;
}
.ip-client-pick-icon { color: var(--ip-primary); font-size: 1.25rem; }
.ip-client-pick-input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.92rem;
  font-weight: 500;
}
.ip-client-pick-clear {
  border: 0;
  background: var(--ip-fill);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ip-muted);
  cursor: pointer;
}
.ip-client-pick-results {
  margin-top: 0.45rem;
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px -18px rgba(9, 73, 210, 0.35);
  max-height: 14rem;
  overflow-y: auto;
}
.ip-client-pick-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.85rem;
  text-align: left;
  cursor: pointer;
}
.ip-client-pick-item:hover { background: rgba(8, 114, 247, 0.06); }
.ip-client-pick-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: var(--ip-muted);
  margin: 0;
}
.ip-client-note {
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.ip-client-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.ip-client-note-body { color: var(--ip-ink); line-height: 1.45; }

.ip-preview-grid {
  display: grid;
  gap: 0.75rem 1.5rem;
}
@media (min-width: 640px) {
  .ip-preview-grid { grid-template-columns: 1fr 1fr; }
}
.ip-preview-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ip-preview-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ip-muted);
}
.ip-preview-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ip-ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.border-line { border-color: var(--ip-line); }
.bg-paper { background: var(--ip-paper); }
.bg-ink { background: var(--ip-primary-deep); }
.text-primary { color: var(--ip-primary); }
.text-muted { color: var(--ip-muted); }
.text-ink { color: var(--ip-ink); }

.rounded-3xl { border-radius: 22px !important; }
.rounded-2xl { border-radius: 14px !important; }
.font-black.italic { font-style: normal; font-weight: 650; letter-spacing: -0.03em; }
.shadow-xl.shadow-primary\/25, .shadow-lg.shadow-primary\/25 { box-shadow: none; }

/* Auth pages (forgot / reset / invite) share login field */
.ip-auth-page {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: #0949d2;
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(8, 114, 247, 0.55), transparent 58%);
}
.ip-auth-page .ip-card {
  width: 100%;
  max-width: 22rem;
  background: #ffffff;
  border: 1px solid rgba(9, 73, 210, 0.14);
  border-radius: 22px;
  box-shadow: var(--ip-panel-shadow);
  color: var(--ip-ink);
  position: relative;
  overflow: hidden;
}
.ip-auth-page .ip-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  pointer-events: none;
  background: var(--ip-gradient);
}

/* Form wizard progress */
.ip-form-progress-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(8, 114, 247, 0.12);
  overflow: hidden;
}
.ip-form-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--ip-gradient);
  transition: width 0.35s var(--ip-ease);
}

/* Form card active switch */
.ip-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.ip-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ip-switch-track {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.22s var(--ip-ease);
  position: relative;
  flex-shrink: 0;
}
.ip-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.22s var(--ip-ease);
}
.ip-switch input:checked + .ip-switch-track {
  background: var(--ip-primary);
}
.ip-switch input:checked + .ip-switch-track::after {
  transform: translateX(1.15rem);
}
.ip-switch-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ip-muted);
}
.ip-switch input:checked ~ .ip-switch-label {
  color: var(--ip-primary);
}
.ip-form-card {
  cursor: pointer;
  transition: border-color 0.2s var(--ip-ease), box-shadow 0.2s var(--ip-ease), opacity 0.2s var(--ip-ease);
}
.ip-form-card.is-draft {
  opacity: 0.88;
  border-style: dashed;
}
.ip-form-card:hover {
  border-color: rgba(8, 114, 247, 0.35);
  box-shadow: 0 10px 28px -18px rgba(8, 114, 247, 0.45);
}
.ip-form-draft-badge {
  display: inline-flex;
  align-items: center;
  height: 1.25rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
}
.ip-form-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.ip-form-card-actions .ip-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
}
.ip-icon-btn-danger {
  color: #b91c1c;
}
.ip-icon-btn-danger:hover {
  color: #991b1b;
  background: #fef2f2;
}
.ip-form-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--ip-muted);
  background: var(--ip-fill);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  word-break: break-all;
}
.ip-form-link code {
  flex: 1;
  font-size: 0.7rem;
  color: var(--ip-ink-soft);
}
.gf-access-card {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.gf-access-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  background: #fff;
}
.gf-access-option:has(input:checked) {
  border-color: rgba(8, 114, 247, 0.45);
  background: rgba(8, 114, 247, 0.04);
}
.gf-access-option input { margin-top: 0.15rem; accent-color: var(--ip-primary); }
.gf-access-option strong { display: block; font-size: 0.88rem; }
.gf-access-option span { display: block; font-size: 0.75rem; color: var(--ip-muted); margin-top: 0.15rem; }

.ip-form-print-sheet {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid var(--ip-line);
}
.ip-form-print-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.75rem;
  /* El logo es transparente con el wordmark en negro: necesita fondo claro. */
  background: #fefeff;
  border-radius: 12px;
}
.ip-form-print-logo {
  height: 2.9rem;
  width: auto;
  max-width: 12rem;
  object-fit: cover;
  object-position: center;
  display: block;
  clip-path: inset(5% 0 5% 0);
  transform: scale(1.08);
  transform-origin: left center;
}
.ip-form-public-header {
  border-bottom: 1px solid rgba(9, 73, 210, 0.08);
  background: #fefeff;
  padding-top: env(safe-area-inset-top, 0px);
}
.ip-form-public-header-inner {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ip-form-public-logo-wrap {
  width: min(100%, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ip-form-public-logo {
  width: 100%;
  height: auto;
  max-height: 5.5rem;
  object-fit: contain;
  object-position: center;
  display: block;
}
@media (min-width: 640px) {
  .ip-form-public-logo-wrap {
    width: min(100%, 320px);
  }
  .ip-form-public-logo {
    max-height: 6rem;
  }
  .ip-form-public-header-inner {
    padding: 1rem 1.25rem;
  }
}
.ip-form-public-logo-wrap--preview {
  width: min(100%, 240px);
}
.ip-form-public-logo-wrap--preview .ip-form-public-logo {
  max-height: 4.5rem;
}
.ip-form-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.ip-form-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  color: rgba(9, 73, 210, 0.28);
  transition: color 0.18s var(--ip-ease), background 0.18s var(--ip-ease), transform 0.18s var(--ip-ease);
}
.ip-form-star .material-symbols-outlined {
  font-size: 1.85rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}
.ip-form-star.is-on {
  color: #f59e0b;
}
.ip-form-star.is-on .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.ip-form-star:hover {
  transform: scale(1.06);
}
.ip-form-star-icon {
  font-size: 1.35rem;
  color: rgba(9, 73, 210, 0.25);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.ip-form-star-icon.is-on {
  color: #f59e0b;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.ip-form-rating.is-static {
  gap: 0.05rem;
}
.gf-q-preview {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(8, 114, 247, 0.04);
  border: 1px dashed rgba(8, 114, 247, 0.22);
}
.gf-q-preview-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ip-muted);
  margin-bottom: 0.45rem;
}
.ip-form-print-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.ip-form-print-desc {
  font-size: 0.9rem;
  color: var(--ip-muted);
  margin-bottom: 1rem;
}
.ip-form-print-section {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ip-line);
}
.ip-form-print-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

@media print {
  @page {
    size: letter;
    margin: 0.6in;
  }
  body.ip-printing-form * {
    visibility: hidden !important;
  }
  body.ip-printing-form #formPrintSheet,
  body.ip-printing-form #formPrintSheet * {
    visibility: visible !important;
  }
  body.ip-printing-form #formPrintSheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  body.ip-printing-form .no-print {
    display: none !important;
  }
  body.ip-printing-form .ip-form-print-section {
    break-inside: avoid;
  }
  body.ip-printing-form input,
  body.ip-printing-form textarea,
  body.ip-printing-form select {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
}
