/* ---------- Tokens ---------- */
/* Tema oscuro de editor vectorial (estilo Inkscape dark): plano, denso, acento azul */
:root {
  --bg-base: #1e1e1e;
  --panel: #2d2d2d;
  --surface: #333333;
  --ink: #e4e4e4;
  --muted: #9b9b9b;
  --line: #4a4a4a;
  --tint: #3e3e3e;
  --hover: rgba(255, 255, 255, 0.07);
  --field: #1f1f1f;
  --field-line: #565656;
  --primary: #3b82d6;
  --primary-hover: #5496e6;
  --link: #6cb0ff;
  --accent: #3b82d6;
  --danger: #c93a3a;
  --danger-text: #ff8a8a;
  --danger-tint: rgba(201, 58, 58, 0.22);
  --warn-tint: rgba(240, 180, 60, 0.16);
  --warn-ink: #f0c36a;
  --focus: #6cb0ff;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
  --font: Cantarell, 'Noto Sans', 'DejaVu Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 14px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg-base);
}

/* Fondo de lienzo: cuadrícula fina con líneas mayores cada 5 celdas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse 90% 80% at 50% 30%, #262626, #1a1a1a);
}

h1,
h2 {
  line-height: 1.2;
}

a {
  color: var(--link);
}

code {
  font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--tint);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  padding: 0 24px;
  background: var(--panel);
  border-bottom: 1px solid #141414;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  /* Curva Bézier con nodos y manejador */
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3E%3Crect%20width='64'%20height='64'%20rx='10'%20fill='%233b82d6'/%3E%3Cpath%20d='M16%2047C16%2018%2048%2046%2048%2017'%20fill='none'%20stroke='%23fff'%20stroke-width='4'%20stroke-linecap='round'/%3E%3Cpath%20d='M16%2047V30M48%2017V34'%20stroke='%23fff'%20stroke-opacity='.55'%20stroke-width='2'/%3E%3Crect%20x='10'%20y='41'%20width='12'%20height='12'%20fill='%23fff'/%3E%3Crect%20x='42'%20y='11'%20width='12'%20height='12'%20fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

.topnav {
  display: flex;
  gap: 4px;
}

.topnav-link {
  padding: 7px 14px;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}

.topnav-link:hover {
  background: var(--hover);
  color: var(--ink);
}

.topnav-link[aria-current='page'] {
  background: var(--hover);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* ---------- Páginas ---------- */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.page-launcher {
  max-width: 820px;
  padding-top: 48px;
}

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

.page-head h1 {
  margin: 0 0 2px;
  font-size: 26px;
}

.page-head p {
  margin: 0;
}

.status {
  max-width: 480px;
  margin: 72px auto;
  text-align: center;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
}

.empty h2 {
  margin: 0;
}

.empty p {
  margin: 0 0 6px;
}

/* ---------- Launcher ---------- */
.group + .group {
  margin-top: 36px;
}

.group-title {
  margin: 0 0 12px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 14px 8px;
}

.tile {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 10px 6px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.tile:hover {
  background: var(--hover);
}

.tile-label {
  max-width: 100%;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  overflow-wrap: anywhere;
}

.tile:hover .app-icon,
.tile:focus-visible .app-icon {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-icon {
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.app-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}

.app-icon-sm {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line);
}

.app-icon svg,
.app-icon img {
  width: 100%;
  height: 100%;
}

.app-icon img {
  object-fit: contain;
  padding: 7px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--tint);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #4a4a4a;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #da4b4b;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover:not(:disabled) {
  background: var(--hover);
  color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.icon-btn-danger:hover:not(:disabled) {
  background: var(--danger-tint);
  color: var(--danger-text);
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Tarjetas, pestañas y tablas ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tab {
  margin-bottom: -1px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected='true'] {
  color: var(--ink);
  border-bottom-color: var(--primary);
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-app-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transition: opacity 0.15s;
}

.is-inactive .cell-app-inner {
  opacity: 0.55;
}

.cell-text {
  min-width: 0;
}

.app-name {
  font-weight: 600;
}

.cell-sub {
  max-width: 280px;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-active {
  width: 84px;
}

.cell-count {
  width: 120px;
  color: var(--muted);
}

.cell-actions {
  text-align: right;
  white-space: nowrap;
}

.actions-group {
  display: inline-flex;
  gap: 2px;
}

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--tint);
  color: var(--link);
  font-size: 12px;
  font-weight: 700;
}

.chip-warn {
  background: var(--warn-tint);
  color: var(--warn-ink);
}

/* ---------- Etiquetas ---------- */
.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  padding: 4px 12px;
  border: 1px solid var(--field-line);
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tag-chip:hover {
  background: var(--tint);
}

.tag-chip[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Marca no basada solo en el color */
.tag-chip[aria-pressed='true']::before {
  content: '✓';
  margin-right: 6px;
}

.tag-add {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tag-add input {
  flex: 1;
  min-width: 0;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  margin-top: -4px;
}

.tile-tags .tag {
  padding: 0 7px;
  font-size: 10.5px;
}

.tile-tags .tag-more {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.tag {
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--tint);
  color: var(--link);
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- Switch ---------- */
.switch {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #5a5a5a;
  cursor: pointer;
  transition: background 0.15s;
}

.switch[aria-checked='true'] {
  background: var(--accent);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}

.switch[aria-checked='true'] .switch-thumb {
  transform: translateX(18px);
}

/* ---------- Diálogos y formularios ---------- */
.dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.dialog-sm {
  width: min(430px, calc(100vw - 32px));
}

.dialog::backdrop {
  background: rgba(10, 6, 9, 0.62);
  backdrop-filter: blur(2px);
}

.dialog-body {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

.dialog-body > h2 {
  margin: 0;
  padding: 24px 24px 0;
  font-size: 19px;
}

.dialog-body > p {
  margin: 0;
  padding: 8px 24px 0;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px 24px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 19px;
}

.dialog-fields {
  display: grid;
  gap: 18px;
  padding: 4px 24px 12px;
  overflow-y: auto;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  margin-top: auto;
}

.dialog-fields + .dialog-actions {
  border-top: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label,
.field .label {
  font-size: 13px;
  font-weight: 700;
}

.field input[type='text'],
.field input[type='password'],
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--field-line);
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input[type='color'] {
  width: 64px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--field-line);
  border-radius: 4px;
  background: var(--field);
  cursor: pointer;
}

.field input[readonly] {
  background: var(--surface);
  color: var(--muted);
}

.field [aria-invalid] {
  border-color: var(--danger-text);
}

.field-hint,
.field-error {
  margin: 0;
  font-size: 12.5px;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: var(--danger-text);
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.file-btn {
  justify-content: flex-start;
  width: 100%;
  border-style: dashed;
  border-color: var(--field-line);
}

.file-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented {
  display: inline-flex;
  justify-self: start;
  padding: 3px;
  border-radius: 5px;
  background: var(--field);
}

.seg {
  position: relative;
}

.seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.seg span {
  display: block;
  padding: 7px 14px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.seg input:checked + span {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.logo-url {
  display: flex;
  gap: 8px;
}

.logo-url input {
  flex: 1;
  min-width: 0;
}

.logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Shell de app: rail de navegación + marco ---------- */
[data-view='app'] .topbar {
  display: none;
}

body[data-view='app'] {
  overflow: hidden;
}

.shell {
  --rail-w: 60px;
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  background: var(--panel);
  transition: grid-template-columns 0.18s ease;
}

.shell[data-expanded='true'] {
  --rail-w: 224px;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  overflow: hidden auto;
  background: var(--panel);
  border-right: 1px solid #141414;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-spacer {
  flex: 1;
}

.rail-sep {
  height: 1px;
  margin: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
}

.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.rail-item:hover {
  background: var(--hover);
}

.rail-item[aria-current='page'] {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--primary);
}

.rail-glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--muted);
}

.rail-item:hover .rail-glyph {
  color: var(--ink);
}

.rail-glyph .brand-mark {
  width: 28px;
  height: 28px;
}

.app-icon-rail {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
}

.app-icon-rail img {
  padding: 4px;
}

.rail-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell:not([data-expanded='true']) .rail-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rail-badge {
  position: absolute;
  left: 28px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--link);
  box-shadow: 0 0 0 1px var(--line);
}

.rail-badge .ui-icon {
  width: 10px;
  height: 10px;
}

.shell[data-expanded='true'] .rail-badge {
  left: auto;
  right: 10px;
  bottom: auto;
  background: transparent;
  box-shadow: none;
}

.rail-toggle .ui-icon {
  transition: transform 0.18s;
}

.shell:not([data-expanded='true']) .rail-toggle .ui-icon {
  transform: rotate(180deg);
}

.shell-main {
  position: relative;
  min-width: 0;
  background: var(--bg-base);
}

.shell-note {
  display: grid;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.shell-note h2 {
  margin: 0;
}

.shell-note p {
  max-width: 460px;
  margin: 0;
}

.shell-open {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: rgba(30, 30, 30, 0.92);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 0.15s;
}

.shell-open:hover,
.shell-open:focus-visible {
  opacity: 1;
  color: var(--ink);
}

.shell-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* ---------- Acceso ---------- */
[data-view='login'] .topbar {
  display: none;
}

.login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 16px;
}

.login-card {
  display: grid;
  gap: 18px;
  width: min(400px, 100%);
  padding: 32px 28px 28px;
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 4px;
  text-align: center;
}

.login-brand .brand-mark {
  margin: 8px 0 14px;
  transform: scale(1.6);
}

.login-brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.login-brand p {
  margin: 0;
}

.login-alert {
  margin: 0;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--danger-tint);
  color: var(--danger-text);
  font-size: 13.5px;
  font-weight: 600;
}

.login-submit {
  width: 100%;
  padding: 11px 16px;
}

/* ---------- Avisos ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #141414;
  color: var(--ink);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.2s ease both;
}

.toast-success {
  border-left: 4px solid var(--primary);
}

.toast-error {
  background: #5a0f19;
  border-color: var(--danger);
}

.toast-out {
  animation: toast-out 0.25s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Adaptación ---------- */
@media (max-width: 560px) {
  .topbar {
    padding: 0 14px;
  }

  .page {
    padding: 24px 14px 64px;
  }

  .page-launcher {
    padding-top: 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .dialog-fields,
  .dialog-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Tablas apiladas: cada fila pasa a ser una tarjeta, sin scroll lateral */
@media (max-width: 640px) {
  .table {
    min-width: 0;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .table tbody tr:last-child {
    border-bottom: 0;
  }

  .table td {
    padding: 0;
    border: 0;
  }

  .table .cell-app {
    grid-column: 1 / -1;
  }

  .table .cell-actions {
    grid-column: 1 / -1;
    text-align: left;
    margin: 2px -8px -4px;
  }

  .table .cell-active,
  .table .cell-count {
    width: auto;
  }

  .cell-sub {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
