/* ARCHIV — prototipo demostrativo */
:root {
  --navy: #0f2a43;
  --navy-2: #1d3d5c;
  --ink: #1e2b37;
  --muted: #5d6b78;
  --line: #e3e8ec;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --side: #f7f9fa;
  --yellow: #f7cc15;
  --yellow-soft: #fff8db;
  --teal: #1fa39a;
  --teal-soft: #e5f5f3;
  --blue-soft: #eaf1f8;
  --sel: #2f7fd1;
  --red: #c63d3d;
  --red-soft: #fdecec;
  --orange: #c77a0a;
  --orange-soft: #fff3e0;
  --green: #2e9d5b;
  --green-soft: #e7f6ed;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 42, 67, .05), 0 4px 16px rgba(15, 42, 67, .04);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); margin: 0; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 28px; height: 28px; }
.icon.xl { width: 36px; height: 36px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mt-l { margin-top: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Banner demo */
.demo-banner { background: var(--navy); color: #dfe8f1; font-size: 12.5px; padding: 6px 16px; text-align: center; }
.demo-banner strong { color: var(--yellow); }

/* Layout */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 30px); }
.sidebar { background: var(--side); border-right: 1px solid var(--line); padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 14px 24px; color: var(--navy); font-weight: 800; font-size: 26px; letter-spacing: .02em; }
.logo .icon { width: 38px; height: 38px; stroke-width: 1.8; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 10px; color: var(--navy); font-weight: 500; }
.nav a:hover { background: #eef2f5; }
.nav a.active { background: #e8edf1; font-weight: 650; }
.nav hr { border: 0; border-top: 1px solid var(--line); margin: 14px 12px; }
.nav button.linklike { all: unset; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 10px; color: var(--navy); cursor: pointer; width: calc(100% - 32px); }
.nav button.linklike:hover { background: #eef2f5; }
.side-note { margin-top: auto; font-size: 12px; color: var(--muted); padding: 14px; border: 1px dashed #c9d3db; border-radius: 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14.5px; }
.crumbs a:hover { color: var(--navy); }
.menu-btn { display: none; background: none; border: 0; padding: 6px; color: var(--navy); cursor: pointer; }
.bell { position: relative; color: var(--navy); padding: 6px; }
.bell .dot { position: absolute; top: 2px; right: 0; background: var(--yellow); color: var(--navy); font-size: 10px; font-weight: 700; border-radius: 10px; padding: 0 5px; }
.user { position: relative; }
.user summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--navy); }
.user summary::-webkit-details-marker { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #d7dee5; display: grid; place-items: center; color: var(--navy-2); }
.user .menu { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; z-index: 30; }
.user .menu a, .user .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 8px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.user .menu a:hover, .user .menu button:hover { background: var(--bg); }
.content { padding: 24px 32px 48px; max-width: 1480px; width: 100%; }

.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.page-head .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.page-head p.lead { color: var(--muted); font-size: 16px; margin-top: 6px; }
.unit-card { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; min-width: 280px; }
.unit-card .icon { width: 40px; height: 40px; color: var(--navy); stroke-width: 1.4; }
.unit-card b { color: var(--navy); display: block; }
.unit-card span { color: var(--muted); font-size: 13px; display: block; }

/* Paneles */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 18px 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid > *, .hero > * { min-width: 0; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-main-side { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); }
.g-side-main { grid-template-columns: 260px minmax(0, 1fr); }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 22px 12px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--yellow); font-weight: 650; }
.tabs.sm a { padding: 8px 14px 10px; font-size: 14px; }

/* Stepper */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.steps div { display: flex; gap: 12px; align-items: center; padding: 10px 6px 14px; color: var(--muted); border-bottom: 3px solid transparent; }
.steps div.on { color: var(--navy); font-weight: 600; border-bottom-color: var(--yellow); }
.steps i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e8edf1; font-size: 13px; font-weight: 700; }
.steps div.on i { background: var(--yellow); color: var(--navy); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 8px; font: inherit; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: #cfd8df; }
.btn-soft { background: var(--blue-soft); color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef2f5; color: var(--navy-2); white-space: nowrap; }
.b-demo { background: var(--orange-soft); color: #8a5300; }
.b-yellow { background: var(--yellow); color: var(--navy); }
.b-teal { background: var(--teal-soft); color: #11736c; }
.b-red { background: var(--red-soft); color: var(--red); }
.b-green { background: var(--green-soft); color: var(--green); }
.b-orange { background: var(--orange-soft); color: var(--orange); }
.b-blue { background: var(--blue-soft); color: var(--sel); }
.b-norm { background: #efe9fb; color: #5b3aa8; }
.state-vigente { background: var(--blue-soft); color: var(--sel); }
.state-proximo { background: var(--orange-soft); color: var(--orange); }
.state-vencido { background: var(--red-soft); color: var(--red); }
.state-completado { background: var(--green-soft); color: var(--green); }
.state-pendiente_verificacion { background: #eef0f2; color: #5d6b78; border: 1px dashed #9aa7b2; }

/* Alertas */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.flash.ok { background: var(--green-soft); color: #1d6b3d; }
.flash.err { background: var(--red-soft); color: #8f2626; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.callout { background: var(--yellow-soft); border: 1px solid #f3e3a1; border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }

/* Home */
.hero { display: grid; grid-template-columns: 1fr 1.37fr; gap: 20px; }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.photo .tag { position: absolute; left: 12px; bottom: 12px; background: rgba(15, 30, 45, .78); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 6px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px; }
.stat { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.stat .icon { width: 34px; height: 34px; color: var(--navy-2); stroke-width: 1.3; }
.stat b { font-size: 22px; color: var(--navy); display: block; }
.stat span { color: var(--muted); font-size: 14px; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.action { border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; position: relative; min-height: 170px; transition: transform .15s, box-shadow .15s; }
.action:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.action .icon.xl { color: var(--navy); stroke-width: 1.4; margin-bottom: 14px; }
.action h3 { font-size: 18px; }
.action p { color: var(--muted); font-size: 14.5px; }
.action .go { position: absolute; right: 22px; top: 40px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); color: var(--navy); }
.a1 { background: #edf3f9; } .a2 { background: #eaf4f2; } .a3 { background: #fdf7e9; } .a4 { background: #fff8de; }
.a4 .go { background: var(--yellow); } .a4 .icon.xl { color: #e2b100; }

/* Plano */
.plan { position: relative; border-radius: 10px; overflow: hidden; background: #f4efe7; user-select: none; }
.plan img { width: 100%; height: auto; }
.plan .zone { position: absolute; border-radius: 4px; border: 2px solid transparent; transition: background .15s, border-color .15s; display: flex; align-items: center; justify-content: center; }
.plan .zone:hover, .plan .zone:focus-visible { background: rgba(47, 127, 209, .14); border-color: rgba(47, 127, 209, .55); outline: none; }
.plan .zone.on { background: rgba(47, 127, 209, .22); border-color: var(--sel); }
.plan .zone .pill { background: var(--sel); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; opacity: 0; transform: translateY(4px); transition: .15s; text-transform: uppercase; }
.plan .zone.on .pill, .plan .zone:hover .pill { opacity: 1; transform: none; }
.plan.dim .zone:not(.on) { background: transparent; }
.plan-tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.plan-zoom { overflow: auto; border-radius: 10px; }
.plan-zoom .plan { transform-origin: 0 0; transition: width .2s; }
.room-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--navy-2); }
.chip:hover { border-color: #b9c6d1; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Tablas */
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.kv tr:nth-child(odd) td { background: #f8fafb; }
.kv td:first-child { color: var(--muted); width: 48%; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.table tr.row-link:hover td { background: #f8fafb; cursor: pointer; }

/* Ficha recinto */
.room-panel .head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.room-panel .head h2 { font-size: 22px; flex: 1; }
.room-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.photo-empty { aspect-ratio: 16/10; border-radius: 10px; border: 1px dashed #c9d3db; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; background: #fafbfc; padding: 12px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed #c9d3db; border-radius: 10px; background: #fafbfc; }

/* Documentos */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.doc { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: flex-start; }
.doc:hover { border-color: #b9c6d1; }
.doc .ft { width: 34px; height: 40px; border-radius: 4px; background: #e6413a; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: end center; padding-bottom: 5px; flex: none; position: relative; }
.doc .ft.dwg { background: #2f6db5; }
.doc .ft.img { background: #2e9d5b; }
.doc b { color: var(--navy); font-size: 14px; display: block; font-weight: 600; }
.doc span { color: var(--muted); font-size: 12.5px; display: block; }

/* Calcular */
.cats a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 8px; border-left: 4px solid transparent; }
.cats a:hover { background: #f6f8fa; }
.cats a.on { background: var(--blue-soft); border-left-color: var(--yellow); }
.cats b { display: block; color: var(--navy); font-size: 14.5px; font-weight: 600; }
.cats span { color: var(--muted); font-size: 13px; }
.calc-table input[type=number] { width: 70px; padding: 6px 8px; border: 1px solid #cfd8df; border-radius: 6px; font: inherit; font-size: 13.5px; }
.calc-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--yellow); }
.swatch { width: 40px; height: 34px; border-radius: 4px; background: linear-gradient(135deg, #ddd5c8, #c9bfb0); flex: none; }
.swatch.s2 { background: linear-gradient(135deg, #ece8e1, #d9d3c9); }
.swatch.s3 { background: linear-gradient(135deg, #f2f2f2, #dedede); }
.swatch.s4 { background: linear-gradient(135deg, #6f6f6f, #9a9a9a); }
.formula { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: #3f5367; background: #f3f6f8; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 3px; }
.summary { background: #fffaf0; border: 1px solid #f3e3a1; }
.summary .line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f1e7c4; font-size: 14px; }
.total { background: var(--yellow); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.total b { font-size: 28px; color: var(--navy); }

/* Calcular: categorías + tabla */
.calc-split { grid-template-columns: 230px minmax(0, 1fr); }
.calc-body { padding: 0 16px; border-left: 1px solid var(--line); min-width: 0; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .calc-split { grid-template-columns: 1fr; }
  .calc-body { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
  .cats { display: flex; overflow-x: auto; gap: 6px; }
  .cats a { flex: none; border-left: 0; border-bottom: 3px solid transparent; padding: 10px 12px; }
  .cats a.on { border-bottom-color: var(--yellow); }
  .cats a > .icon:last-child, .cats span { display: none; }
  .stats-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Calendario */
.cal { width: 100%; border-collapse: collapse; font-size: 13px; }
.cal th { font-weight: 500; color: var(--muted); padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.cal th:first-child { text-align: left; }
.cal td { border: 1px solid #edf0f3; height: 40px; text-align: center; padding: 2px; }
.cal td:first-child { text-align: left; padding-left: 8px; white-space: nowrap; color: var(--navy); border-left: 0; }
.cal td.now { background: #fffbea; }
.dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; vertical-align: middle; margin: 1px; }
.dot.proximo, .dot.vigente { background: var(--yellow); }
.dot.vencido { background: var(--red); }
.dot.completado { background: #c3d3e1; }
.dot.pendiente_verificacion { background: #fff; border: 2px dashed #8a99a6; }
.ev-list a { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev-list a:last-child { border-bottom: 0; }
.ev-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; color: var(--navy-2); flex: none; }
.ev-ic.garantia { background: var(--yellow-soft); color: #b28600; }
.ev-ic.certificacion { background: #efe9fb; color: #5b3aa8; }
.ev-ic.edificio { background: var(--teal-soft); color: #11736c; }
.ev-ic.done { background: var(--green-soft); color: var(--green); border-radius: 50%; width: 30px; height: 30px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { padding: 8px 10px; border: 1px solid #cfd8df; border-radius: 8px; font: inherit; font-size: 13.5px; background: #fff; color: var(--ink); }

/* Servicios */
.trades { display: flex; gap: 10px; flex-wrap: wrap; }
.trade { width: 112px; height: 82px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; text-align: center; color: var(--navy-2); padding: 6px; }
.trade.on { background: var(--yellow-soft); border-color: #f3dc85; font-weight: 600; }
.prov { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 18px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.prov.on { border-color: #f0d36a; box-shadow: 0 0 0 2px #fbeeb7; }
.prov-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #dfe6ec; display: grid; place-items: center; font-weight: 700; color: var(--navy-2); font-size: 18px; }
.prov-photo.lg { width: 84px; height: 84px; font-size: 24px; }
.stars { color: #f2b600; letter-spacing: 1px; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; max-width: 220px; }
.tags span { font-size: 12px; padding: 4px 10px; background: #f1f3f5; border-radius: 99px; color: var(--navy-2); }
.checks li { list-style: none; display: flex; gap: 10px; padding: 5px 0; }
.checks { padding: 0; margin: 8px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 14px 0; }
.kpis div { display: flex; gap: 8px; align-items: center; }
.kpis b { font-size: 18px; color: var(--navy); display: block; }

/* Formularios */
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-2); margin-bottom: 5px; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd8df; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #9cc3ea; border-color: var(--sel); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.form .err { color: var(--red); font-size: 12.5px; margin-top: 4px; }
.form .help { color: var(--muted); font-size: 12px; margin-top: 4px; }
.form .is-invalid { border-color: var(--red) !important; }

/* Login / portada */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.auth-visual { position: relative; background: var(--navy) center/cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,42,67,.1) 30%, rgba(15,42,67,.88)); }
.auth-visual > * { position: relative; }
.auth-visual h1 { color: #fff; font-size: 38px; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); max-width: 620px; }
.demo-creds { background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-top: 18px; }
.demo-creds code { background: #fff; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }

/* Documento ficticio */
.paper { background: #fff; max-width: 820px; margin: 0 auto; padding: 56px 64px; border: 1px solid var(--line); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.paper .wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.paper .wm span { transform: rotate(-28deg); font-size: 46px; font-weight: 800; color: rgba(198, 61, 61, .13); text-align: center; line-height: 1.1; }
.paper .stamp { border: 2px solid var(--red); color: var(--red); font-weight: 800; padding: 6px 12px; display: inline-block; letter-spacing: .04em; font-size: 13px; }

/* Responsive */
@media (max-width: 1280px) {
  .docs { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .actions { grid-template-columns: repeat(2, 1fr); }
  .g-main-side { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 40; }
  .menu-btn { display: block; }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px; }
  .hero, .g-2, .g-side-main, .auth { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .unit-card { width: 100%; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .prov { grid-template-columns: 56px 1fr; }
  .prov .tags, .prov > :last-child { grid-column: 1 / -1; }
  .auth-visual { min-height: 280px; padding: 28px; }
  .paper { padding: 32px 24px; }
}
@media (max-width: 600px) {
  h1 { font-size: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .actions, .docs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps div:not(.on) { display: none; }
  .crumbs .hide-sm { display: none; }
  .user summary .uname { display: none; }
  .kpis { grid-template-columns: 1fr; }
  .calc-table .hide-sm, .calc-table .swatch { display: none; }
}
@media print {
  .sidebar, .topbar, .demo-banner, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .panel { box-shadow: none; }
}
