/* Torre — estilos. Tema claro por defecto; oscuro si el sistema lo pide
   (y no se ha elegido «claro») o si se elige a mano. */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --list-bg: #ebeef2;
  --border: #d9dee4;
  --text: #17202a;
  --muted: #5d6b79;
  --accent: #0f9488;
  --accent-text: #ffffff;
  --danger: #d03b3b;
  --shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --radius: 10px;

  --c-blue: #2f6fde;   --c-teal: #0f9488;  --c-green: #2e9d4f;
  --c-yellow: #d6a40b; --c-orange: #e0721f; --c-red: #d03b3b;
  --c-pink: #d4448f;   --c-purple: #7c4ddb; --c-gray: #6b7785;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161b; --surface: #1d232a; --surface-2: #262d35; --list-bg: #181d23;
    --border: #2f3842; --text: #e6eaef; --muted: #98a4b1; --accent: #2bb3a5;
    --accent-text: #06201d; --danger: #ef6464;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12161b; --surface: #1d232a; --surface-2: #262d35; --list-bg: #181d23;
  --border: #2f3842; --text: #e6eaef; --muted: #98a4b1; --accent: #2bb3a5;
  --accent-text: #06201d; --danger: #ef6464;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* Clases de color: fijan --c, que usan fondos, puntos y etiquetas */
.c-blue { --c: var(--c-blue); }     .c-teal { --c: var(--c-teal); }
.c-green { --c: var(--c-green); }   .c-yellow { --c: var(--c-yellow); }
.c-orange { --c: var(--c-orange); } .c-red { --c: var(--c-red); }
.c-pink { --c: var(--c-pink); }     .c-purple { --c: var(--c-purple); }
.c-gray { --c: var(--c-gray); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Cantarell, "Noto Sans", sans-serif;
  display: flex; flex-direction: column;
}
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* --- Botones y campos ---------------------------------------------------- */
.btn {
  border: 1px solid var(--border); background: var(--surface); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.small { padding: 3px 9px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.icon-btn {
  border: 0; background: transparent; border-radius: 8px; width: 32px; height: 32px;
  cursor: pointer; font-size: 16px; color: var(--muted); flex: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible,
[contenteditable]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; width: 100%; }

/* --- Barra superior ------------------------------------------------------ */
.topbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border); flex: none;
  position: relative; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; text-decoration: none; }
.sep { color: var(--muted); }
.board-title {
  font-size: 17px; font-weight: 600; padding: 3px 6px; border-radius: 6px; min-width: 40px;
  max-width: 40vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-title:hover { background: var(--surface-2); }
.board-tools { display: flex; gap: 4px; }
.search { margin-left: auto; position: relative; width: min(320px, 40vw); }
.search input { width: 100%; }
.search-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 340px); max-height: 60vh;
  overflow: auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 4px;
}
.search-results a { display: block; padding: 7px 10px; border-radius: 7px; text-decoration: none; }
.search-results a:hover, .search-results a.active { background: var(--surface-2); }
.search-results small { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.search-results .none { padding: 10px; color: var(--muted); }
#theme-toggle span { display: none; }
#theme-toggle[data-theme=auto] .t-auto, #theme-toggle[data-theme=light] .t-light,
#theme-toggle[data-theme=dark] .t-dark { display: inline; }

/* --- Inicio: rejilla de tableros ---------------------------------------- */
.home { padding: 28px 24px; max-width: 1100px; width: 100%; margin: 0 auto; overflow: auto; }
.home h1 { font-size: 22px; margin-bottom: 16px; }
.home h2 { font-size: 16px; margin: 32px 0 10px; color: var(--muted); }
.home.empty { text-align: center; padding-top: 80px; }
.home.empty .btn { margin-top: 16px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.board-tile {
  min-height: 108px; border-radius: 12px; padding: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
a.board-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.tile-meta { font-size: 12px; opacity: .85; }
.new-board { background: var(--surface); color: var(--text); border: 1px dashed var(--border); gap: 10px; }
.new-board input[name=name] { width: 100%; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c); cursor: pointer;
  border: 2px solid transparent; position: relative;
}
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch:has(input:checked), .swatch.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint { color: var(--muted); }
.archived-boards { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.archived-boards li {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.archived-boards li .btn:first-of-type { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

/* --- Tablero -------------------------------------------------------------- */
.board-page main {
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, var(--bg)), var(--bg) 70%);
}
.board {
  flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; overflow-x: auto; overflow-y: hidden;
}
.list {
  width: 280px; flex: none; max-height: 100%; display: flex; flex-direction: column;
  background: var(--list-bg); border-radius: 12px; box-shadow: var(--shadow);
}
.list.dragging { opacity: .4; }
.list-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 4px 10px; cursor: grab; }
.list-head:active { cursor: grabbing; }
.list-name {
  flex: 1; font-size: 15px; font-weight: 600; padding: 3px 5px; border-radius: 6px; min-width: 0;
  overflow-wrap: anywhere;
}
.list-name[contenteditable] { cursor: text; background: var(--surface); }
.list-name:hover { background: var(--surface-2); }
.list-count { color: var(--muted); font-size: 12px; padding: 0 4px; }
.cards {
  list-style: none; margin: 0; padding: 4px 8px; overflow-y: auto; min-height: 8px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.card {
  background: var(--surface); border-radius: 9px; padding: 8px 10px; box-shadow: var(--shadow);
  cursor: pointer; border: 1px solid transparent; user-select: none;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.card.dragging { opacity: .35; }
.card.filtered { display: none; }
.card.is-done .card-title { color: var(--muted); text-decoration: line-through; }
.card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.chip {
  background: var(--c); color: #fff; border-radius: 5px; font-size: 11px; font-weight: 600;
  padding: 1px 7px; min-width: 32px; min-height: 8px; line-height: 16px;
}
.card-labels .chip:empty { height: 8px; min-height: 8px; padding: 0; width: 36px; }
.card-title { overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.badges:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 5px; padding: 0 5px; }
.badge.soon { background: color-mix(in srgb, var(--c-yellow) 25%, transparent); color: var(--text); }
.badge.overdue { background: var(--danger); color: #fff; }
.badge.complete { background: var(--c-green); color: #fff; }
.placeholder {
  border-radius: 9px; background: color-mix(in srgb, var(--text) 10%, transparent);
  border: 2px dashed color-mix(in srgb, var(--text) 18%, transparent); flex: none;
}
.list-placeholder { width: 280px; flex: none; border-radius: 12px; align-self: stretch; max-height: 70vh; }
.add-card { padding: 6px 8px 8px; }
.add-card > button { width: 100%; justify-content: flex-start; color: var(--muted); }
.add-card textarea { min-height: 58px; }
.add-card .row { margin-top: 6px; }
.row { display: flex; gap: 6px; align-items: center; }
.add-list { width: 280px; flex: none; }
.add-list > button {
  width: 100%; background: color-mix(in srgb, var(--surface) 55%, transparent);
  border-color: transparent; justify-content: flex-start; padding: 10px 12px;
}
.add-list form { background: var(--list-bg); padding: 8px; border-radius: 12px; }
.add-list form input { width: 100%; margin-bottom: 6px; }

/* Menú contextual de lista */
.menu {
  position: fixed; z-index: 50; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 4px; min-width: 180px;
}
.menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
}
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--danger); }

/* --- Panel lateral (menú del tablero) ------------------------------------ */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 92vw); z-index: 30;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  overflow-y: auto; padding: 0 16px 20px;
}
.drawer > header {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
  position: sticky; top: 0; background: var(--surface);
}
.drawer h2 { font-size: 16px; }
.drawer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.drawer .swatch { width: 28px; height: 28px; }
.label-editor { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.label-editor li { display: flex; gap: 6px; align-items: center; }
.label-editor .dot { width: 14px; height: 14px; }
.label-editor input, #new-label input { flex: 1; min-width: 0; }
.label-editor select, #new-label select { width: 98px; flex: none; }
.drawer { overflow-x: hidden; }
#archive ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
#archive li { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--border); }
#archive li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#archive li small { color: var(--muted); }
#archive h4 { margin: 8px 0 4px; font-size: 13px; }
.danger-zone { margin-top: 24px; }

.filter-pop {
  position: fixed; z-index: 40; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; width: 240px;
}
.filter-pop label { display: flex; align-items: center; gap: 8px; padding: 4px 2px; cursor: pointer; }
.filter-pop .chip { flex: 1; }
.filter-pop .muted { color: var(--muted); font-size: 13px; }
#filter-btn.on { background: var(--accent); color: var(--accent-text); }

/* --- Detalle de tarjeta (diálogo) ---------------------------------------- */
.card-modal {
  border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--text);
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg);
}
.card-modal::backdrop { background: rgba(10, 14, 20, .55); }
.modal-inner { padding: 20px 22px 22px; }
.modal-head { display: flex; align-items: flex-start; gap: 10px; }
.modal-head .done-box { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--c-green); flex: none; }
.modal-title {
  flex: 1; font-size: 20px; font-weight: 700; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}
.modal-title:hover { background: var(--surface-2); }
.modal-sub { color: var(--muted); font-size: 13px; margin: 2px 0 0 34px; }
.modal-body { display: grid; grid-template-columns: 1fr 190px; gap: 22px; margin-top: 18px; }
.modal-body h3 { font-size: 13px; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .05em; }
.modal-main > section + section { margin-top: 22px; }
.modal-side { display: flex; flex-direction: column; gap: 14px; }
.modal-side .field { display: grid; gap: 6px; }
.modal-side .field input[type=date] { width: 100%; }
.label-picker { display: grid; gap: 4px; }
.label-picker label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.label-picker .chip { flex: 1; padding: 3px 8px; }
.side-actions { display: grid; gap: 6px; margin-top: 8px; }
.side-actions .btn { justify-content: center; }
.description {
  min-height: 60px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); cursor: text;
  overflow-wrap: anywhere;
}
.description.empty { color: var(--muted); }
.description :first-child { margin-top: 0; } .description :last-child { margin-bottom: 0; }
.description pre { background: var(--surface); padding: 8px; border-radius: 6px; overflow-x: auto; }
.description code { font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: 13px; }
.description table { border-collapse: collapse; } .description td, .description th { border: 1px solid var(--border); padding: 3px 8px; }
.description a { color: var(--accent); }
.desc-edit textarea { min-height: 160px; font-family: inherit; }
.desc-edit .row { margin-top: 6px; }
.desc-edit small { color: var(--muted); margin-left: auto; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.progress > div { height: 100%; background: var(--accent); transition: width .2s; }
.progress.full > div { background: var(--c-green); }
.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.checklist li:hover { background: var(--surface-2); }
.checklist input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.checklist .item-text { flex: 1; overflow-wrap: anywhere; cursor: text; }
.checklist li.done .item-text { text-decoration: line-through; color: var(--muted); }
.checklist .icon-btn { width: 26px; height: 26px; font-size: 13px; opacity: 0; }
.checklist li:hover .icon-btn, .checklist .icon-btn:focus-visible { opacity: 1; }
#new-item input { flex: 1; }
.modal-close { position: absolute; top: 10px; right: 10px; }

/* --- Aviso flotante ------------------------------------------------------- */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 9px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
}
.toast button { background: none; border: 0; color: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.toast.error { background: var(--danger); color: #fff; }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; }
  .search { order: 5; width: 100%; }
  .modal-body { grid-template-columns: 1fr; }
  .board-title { max-width: 50vw; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- Ajustes (portada) ------------------------------------------------------ */
.settings {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: grid;
}
.setting { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.setting + .setting { border-top: 1px solid var(--border); }
.setting > :first-child { flex: 1; min-width: 0; }
.setting .hint { margin: 2px 0 0; font-size: 13px; }
.setting code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.switch-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.switch-row .hint { display: block; }
@media (max-width: 640px) { .setting { flex-direction: column; align-items: stretch; } }
.status { font-size: 10px; vertical-align: 1px; margin-right: 2px; }
.status.ok { color: var(--c-green); }
.status.warn { color: var(--c-yellow); }

/* --- Importar de Trello ------------------------------------------------------ */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.home-head h1 { margin-bottom: 0; }
.import-modal {
  border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--text);
  width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg);
}
.import-modal::backdrop { background: rgba(10, 14, 20, .55); }
.import-inner { padding: 20px 22px; display: grid; gap: 12px; }
.import-inner h2 { font-size: 18px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.file-drop {
  display: block; border: 2px dashed var(--border); border-radius: 10px; padding: 18px;
  text-align: center; cursor: pointer; color: var(--muted); position: relative; overflow-wrap: anywhere;
}
.file-drop:hover, .file-drop.over { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.import-inner .hint { margin: 0; font-size: 13px; }
.import-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.import-results:empty { display: none; }
.import-results li { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.import-results a { color: var(--accent); font-weight: 600; }
.import-results .ok { color: var(--c-green); font-weight: 700; }
.import-results .bad { color: var(--danger); font-weight: 700; }
.row.end { justify-content: flex-end; }

/* --- Inicio de sesión (Torre en un servidor) --------------------------------- */
.logout { margin: 0; }
.login { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.login-box {
  width: min(360px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 28px 24px; display: grid; gap: 14px;
}
.login-box img { justify-self: center; }
.login-box h1 { text-align: center; font-size: 22px; margin-bottom: 4px; }
.login-box label { display: grid; gap: 5px; font-weight: 600; font-size: 13px; color: var(--muted); }
.login-box input { font-size: 15px; padding: 9px 11px; }
.login-box .btn { justify-content: center; padding: 9px; font-size: 15px; margin-top: 4px; }
.login-box pre { background: var(--surface-2); padding: 10px; border-radius: 8px; white-space: pre-wrap; font-size: 12px; margin: 0; }
.login-error { margin: 0; color: var(--danger); font-weight: 600; text-align: center; }

/* --- Varios usuarios: cuenta, registro, administración y compartir ------------ */
.user-nav { display: flex; align-items: center; gap: 2px; }
.login-alt { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.login-alt a, .login-box a { color: var(--accent); font-weight: 600; }
.login-box small, .form-card small { font-weight: 400; color: var(--muted); font-size: 12px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.home.narrow { max-width: 560px; }
.form-card { padding: 16px; gap: 12px; }
.form-card label { display: grid; gap: 5px; font-weight: 600; font-size: 13px; color: var(--muted); }
.form-card .btn { justify-self: start; }
.notice { padding: 10px 14px; border-radius: 10px; margin: 0 0 12px; font-weight: 600; }
.notice.warn { background: color-mix(in srgb, var(--c-yellow) 22%, transparent); }
.notice.ok { background: color-mix(in srgb, var(--c-green) 20%, transparent); }
.warn-text { color: var(--c-orange); }
.shared-badge {
  font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 999px;
  padding: 2px 9px; white-space: nowrap;
}
.people { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.people li { display: flex; align-items: center; gap: 8px; }
.people .who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.people small { color: var(--muted); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}
#sharing form input { flex: 1; min-width: 0; }
#sharing .hint { font-size: 13px; margin: 8px 0; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.users { width: 100%; border-collapse: collapse; }
table.users th, table.users td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.users th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.users tr:last-child td { border-bottom: 0; }
table.users .actions { text-align: right; white-space: nowrap; }
table.users input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
@media (max-width: 640px) { .user-nav .btn { padding: 3px 6px; } }
