/* Panel interno: menú lateral de íconos, contenido blanco, acento índigo */
:root {
  --bg: #f4f5fa; --panel: #ffffff; --raise: #f8f8fc; --fg: #16151d; --muted: #6b6a7b; --line: #e7e7f0;
  --accent: #5046e5; --accent-fg: #ffffff; --accent-soft: #eef0ff;
  --hero-a: #eef0ff; --hero-b: #f6ecff;
  --ok: #18794e; --ok-soft: #e3f4ea; --warn: #a35a00; --warn-soft: #fdf0dc; --bad: #d1242f; --bad-soft: #fde6e7;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --shadow: 0 1px 2px rgba(22, 21, 40, .04), 0 4px 14px rgba(22, 21, 40, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111118; --panel: #1a1a23; --raise: #21212c; --fg: #ececf3; --muted: #a09fb2; --line: #2e2e3b;
    --accent: #8b85ff; --accent-fg: #12112a; --accent-soft: #26244a; --hero-a: #22204a; --hero-b: #2c1f45;
    --ok: #5ccb93; --ok-soft: #173225; --warn: #f1b45c; --warn-soft: #3a2a12; --bad: #ff7a80; --bad-soft: #3d1a1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111118; --panel: #1a1a23; --raise: #21212c; --fg: #ececf3; --muted: #a09fb2; --line: #2e2e3b;
  --accent: #8b85ff; --accent-fg: #12112a; --accent-soft: #26244a; --hero-a: #22204a; --hero-b: #2c1f45;
  --ok: #5ccb93; --ok-soft: #173225; --warn: #f1b45c; --warn-soft: #3a2a12; --bad: #ff7a80; --bad-soft: #3d1a1c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--body); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 700 26px/1.15 var(--display); }
h2 { font: 600 18px/1.2 var(--display); }
a { color: inherit; }
[hidden] { display: none !important; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sub { color: var(--muted); margin: 4px 0 0; }
.muted { color: var(--muted); }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px var(--display); }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.brand b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .linkish { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; background: none; border: 0; cursor: pointer; }
.nav a:hover, .linkish:hover { color: var(--fg); background: var(--raise); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav { gap: 0; }
  .nav a, .linkish { padding: 7px 8px; }
}

.view { padding-block: 24px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 1240px; margin: 0 auto; }
.view.full { max-width: none; padding: 0; }

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel); color: var(--fg); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); padding: 6px 9px; }
.btn.ghost:hover { color: var(--fg); background: var(--raise); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=range]):not([type=color]), .field select, textarea.input {
  width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); color: var(--fg); font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--fg); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--raise); cursor: pointer; }

/* Cabecera de página */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { width: 260px; max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-btn { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.chip-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-btn .n { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Tarjetas de proyecto */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card h3 { font: 600 14.5px/1.3 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta { font-size: 12.5px; color: var(--muted); margin: 3px 0 8px; font-variant-numeric: tabular-nums; }
.thumb { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.thumb svg { width: 22px; height: 22px; }
.thumb.gallery { background: var(--ok-soft); color: var(--ok); }
.thumb.empty { background: var(--raise); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--raise); color: var(--muted); border: 1px solid var(--line); }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.storage { margin-top: 28px; font-size: 13px; color: var(--muted); }
.storage b { color: var(--fg); font-variant-numeric: tabular-nums; }
.empty-state { padding: 48px 20px; text-align: center; background: var(--panel); border: 1.5px dashed var(--line); border-radius: 14px; display: grid; gap: 10px; justify-items: center; }

/* Página de proyecto */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; margin-bottom: 10px; }
.back:hover { color: var(--fg); }
.title-input { font: 700 26px/1.15 var(--display); border: 1px solid transparent; background: transparent; padding: 2px 6px; margin-left: -7px; border-radius: 8px; width: min(640px, 100%); color: var(--fg); }
.title-input:hover, .title-input:focus { border-color: var(--line); background: var(--panel); }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .name { font-weight: 600; }
.row .meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.row .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 640px) { .row { grid-template-columns: 44px minmax(0, 1fr); } .row .acts { grid-column: 1 / -1; justify-content: flex-start; } }

/* Editor */
.ed { display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.ed-panel { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ed-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ed-head .back { margin: 0; font-size: 13px; }
.tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 11px 10px 10px; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ed-body { overflow: auto; padding: 16px; display: grid; gap: 18px; align-content: start; }
.group { display: grid; gap: 12px; }
.group > h3 { font: 600 11.5px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.opt { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 6px 7px; background: var(--raise); cursor: pointer; display: grid; gap: 5px; justify-items: center; font-size: 12px; font-weight: 500; color: var(--fg); }
.opt svg { width: 46px; height: 30px; color: var(--muted); }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt[aria-checked="true"] svg { color: var(--accent); }
.palettes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pal { height: 28px; border-radius: 7px; border: 1px solid var(--line); cursor: pointer; overflow: hidden; display: flex; padding: 0; }
.pal i { flex: 1; }
.range-row { display: flex; justify-content: space-between; }
.range-row span { font-variant-numeric: tabular-nums; color: var(--fg); }

.drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px 14px; text-align: center; color: var(--muted); cursor: pointer; background: var(--raise); display: grid; gap: 4px; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.drop strong { color: var(--fg); }
.uploads { display: grid; gap: 6px; }
.up { font-size: 12.5px; display: grid; gap: 4px; }
.up .bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.up .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.up.err { color: var(--bad); }
.items { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); }
.item .cov { width: 46px; height: 46px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; overflow: hidden; border: 0; cursor: pointer; padding: 0; }
.item .cov img { width: 100%; height: 100%; object-fit: cover; }
.item .cov svg { width: 20px; height: 20px; }
.item .fields { display: grid; gap: 5px; min-width: 0; }
.item .fields input { padding: 5px 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); width: 100%; min-width: 0; }
.item .ia { display: flex; flex-direction: column; gap: 2px; }
.item .ia button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.item .ia button:hover { color: var(--fg); background: var(--panel); }
.item .ia button.del:hover { color: var(--bad); }
.add-link { display: flex; gap: 6px; }

.ed-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ed-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); color: var(--muted); padding: 6px 11px; cursor: pointer; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.status { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status.dirty i { background: var(--warn); }
.status.err i { background: var(--bad); }
.stage { flex: 1; min-height: 0; overflow: auto; padding: 24px; display: flex; justify-content: center; align-items: flex-start;
  background-color: var(--bg); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.mock { position: relative; transform: translateZ(0); width: 100%; max-width: 980px; min-height: 560px; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
  padding: 44px 24px 120px; text-align: center; transition: max-width .3s; }
.mock.phone { max-width: 390px; min-height: 720px; border-radius: 34px; border: 10px solid #18151c; }
.mock.light { background: #f7f1ee; color: #3a2b31; }
.mock.dark { background: #1b1820; color: #f1e9ee; }
.mock.photo { background: linear-gradient(160deg, #6b4a5a, #c58b7a 55%, #e9c9a8); color: #fff; }
.mock small { letter-spacing: .32em; text-transform: uppercase; font: 11px var(--body); opacity: .75; }
.mock .mt { font: 400 44px/1.1 Georgia, serif; margin: 10px 0 6px; }
.mock .md { font: 15px Georgia, serif; opacity: .85; margin: 0 0 30px; }
.mock .mn { font: 12px var(--body); opacity: .55; margin-top: 36px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(15, 10, 20, .45); display: grid; place-items: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); padding: 20px; display: grid; gap: 16px; }
.modal .mh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--raise); cursor: pointer; text-align: left; display: grid; gap: 6px; }
.type[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.type b { font-size: 14px; }
.type span { font-size: 12.5px; color: var(--muted); }
.code { font: 12px/1.5 var(--mono); width: 100%; min-height: 84px; resize: vertical; white-space: pre-wrap; word-break: break-all; }
.note { font-size: 12.5px; padding: 10px 12px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); }

/* Login */
.login { min-height: calc(100vh - 80px); display: grid; place-items: center; }
.login form { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.login .brand { justify-content: center; font-size: 19px; }
.form-err { color: var(--bad); font-size: 13px; min-height: 1em; margin: 0; }

/* Importar */
.imp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.imp-table th, .imp-table td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.imp-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-top: 0; background: var(--raise); position: sticky; top: 0; }
.imp-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.table-wrap { overflow: auto; max-height: 60vh; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.progress { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* Avisos y notas */
.badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; font-variant-numeric: tabular-nums; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.banner .btn { border-color: transparent; }
.card .note-line { font-size: 12.5px; color: var(--fg); margin: -4px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notices { display: grid; gap: 12px; }
.notice { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; box-shadow: var(--shadow); }
.notice.gone { border-left-color: var(--bad); }
.notice h3 { font: 600 15px/1.3 var(--body); }
.notice .why { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.notice .note-field { display: flex; gap: 8px; margin-bottom: 12px; max-width: 560px; }
.notice .acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notice .later { display: inline-flex; gap: 6px; align-items: center; }
.notice .later input { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); }
.note-box { max-width: 640px; margin: -6px 0 20px; }
.imp-table input[type=date] { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--raise); font-size: 12.5px; }
.imp-table tr.done td { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 500; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.error-box { padding: 16px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); }

@media (max-width: 860px) {
  .ed { grid-template-columns: 1fr; height: auto; }
  .ed-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .stage { min-height: 70vh; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== Estructura: menú lateral + contenido ===== */
body { background: var(--bg); font-size: 13.5px; }
h1 { font: 700 24px/1.2 var(--display); letter-spacing: -.01em; }
h2 { font: 600 20px/1.25 var(--display); }
.shell { display: flex; min-height: 100vh; }
.side { width: 84px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 6px max(14px, env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.logo { color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.logo svg { width: 34px; height: 34px; }
.side-create { border: 0; background: none; color: var(--accent); cursor: pointer; display: grid; justify-items: center; gap: 4px; font: 600 11.5px var(--body); padding: 4px 0 10px; }
.side-create .plus { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-size: 24px; line-height: 1; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.side-nav { display: grid; gap: 6px; width: 100%; }
.side-nav a, .side-out { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 10px; color: var(--muted); text-decoration: none; font: 500 11px var(--body); background: none; border: 0; cursor: pointer; width: 100%; }
.side-nav a svg, .side-out svg { width: 22px; height: 22px; }
.side-nav a:hover, .side-out:hover { color: var(--fg); background: var(--panel); }
.side-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.side-nav .badge { position: absolute; top: 2px; right: 12px; margin: 0; }
.side-out { margin-top: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--panel); border-radius: 16px 0 0 0; margin-top: 8px; box-shadow: var(--shadow); min-height: calc(100vh - 8px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px 24px; border-bottom: 1px solid var(--line); }
.tag { background: var(--fg); color: var(--panel); font: 600 11px var(--body); padding: 4px 10px; border-radius: 999px; }
.top-usage { font-size: 12px; }
.view { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px 24px; max-width: 1320px; width: 100%; margin: 0; }
.view.full { max-width: none; padding: 0; }
.ed { height: calc(100vh - 8px - 51px); }

/* ===== Inicio ===== */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 26px 28px; border-radius: 18px; background: linear-gradient(100deg, var(--hero-a), var(--hero-b)); margin-bottom: 30px; }
.hero .eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.hero h1 { font-size: 22px; margin-bottom: 8px; }
.hero p { margin: 0 0 16px; color: var(--muted); max-width: 52ch; }
.hero-art { display: flex; gap: 10px; justify-content: flex-end; }
.hero-art .mini { width: 110px; height: 78px; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-art { display: none; } }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.count { display: inline-grid; place-items: center; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.icon-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; gap: 2px; background: var(--raise); }
.icon-seg button { border: 0; background: none; padding: 5px 7px; border-radius: 7px; cursor: pointer; color: var(--muted); display: grid; }
.icon-seg button svg { width: 16px; height: 16px; }
.icon-seg button[aria-pressed="true"] { background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }

.table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.trow { display: grid; grid-template-columns: 84px minmax(0, 2fr) minmax(0, 1.4fr) 110px 150px 150px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.trow.th { border-top: 0; background: var(--raise); padding-block: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.trow:not(.th):hover { background: var(--raise); }
.tname { font-weight: 600; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttype { font-size: 11.5px; color: var(--muted); }
.tproj { color: var(--accent); text-decoration: none; font-weight: 500; display: flex; gap: 6px; align-items: center; min-width: 0; }
.tproj span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tproj svg { width: 14px; height: 14px; flex: none; }
.tupd { color: var(--muted); font-size: 12.5px; }
.tacts { display: flex; justify-content: flex-end; gap: 2px; }
.ibtn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--fg); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; }
.ibtn:hover { background: var(--accent-soft); color: var(--accent); }
.ibtn.del:hover { background: var(--bad-soft); color: var(--bad); }
.ibtn svg { width: 17px; height: 17px; }
@media (max-width: 1000px) { .trow { grid-template-columns: 70px minmax(0, 1fr) auto; } .trow > .c-proj, .trow > .c-upd, .trow > .c-exp { display: none; } }

/* Miniaturas de widgets */
.mini { width: 70px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; display: block; background-size: cover; background-position: center; }
.mini i { position: absolute; left: 14%; right: 14%; top: 50%; height: 3px; border-radius: 3px; }
.mini b { position: absolute; left: 14%; top: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; }
.mini.big { width: 100%; height: 120px; border-radius: 12px 12px 0 0; border: 0; border-bottom: 1px solid var(--line); }
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wcard { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; display: grid; }
.wcard .wb { padding: 10px 12px 12px; display: grid; gap: 4px; min-width: 0; }
.wcard .tacts { justify-content: flex-start; margin-left: -6px; }

@media (max-width: 720px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: sticky; top: 0; z-index: 20; flex-direction: row; justify-content: space-between; padding: 6px 10px; gap: 4px; }
  .logo, .side-out { display: none; }
  .side-create { padding: 0; }
  .side-create .plus { width: 34px; height: 34px; font-size: 20px; }
  .side-nav { display: flex; width: auto; gap: 2px; }
  .side-nav a { width: auto; padding: 6px 8px; }
  .main { border-radius: 0; margin: 0; }
  .ed { height: auto; }
}
