/* MaxiFletes — estilos. Colores sacados del logo: celeste, azul marino y rojo camión. */
:root {
  --celeste: #a3d3f7; --celeste-2: #cfe8fa; --celeste-3: #e7f3fc;
  --navy: #16306a; --navy-2: #0e2152; --ink: #0f1f40; --muted: #5a6b8c;
  --red: #d7262d; --red-d: #b51c22; --green: #14935a; --amber: #d98a0b; --blue: #2f6fd6;
  --card: rgba(255, 255, 255, .93); --line: #d9e5f2; --radius: 16px;
  --shadow: 0 6px 22px rgba(18, 40, 90, .14);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--celeste); min-height: 100vh; font-size: 16px; line-height: 1.4; }
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h1 { font-size: 1.6rem; font-weight: 900; font-style: italic; letter-spacing: -.01em; color: var(--navy-2); }
h2 { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -4px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.pos { color: var(--green); } .neg { color: var(--red); } .up { color: var(--green); font-weight: 700; } .down { color: var(--red); font-weight: 700; }

/* ---------- Fondo ---------- */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--celeste); overflow: hidden; }
.bg::before { content: ""; position: absolute; inset: -30px; background: url(assets/fondo.jpg) center / cover no-repeat; filter: blur(26px); }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(207, 232, 250, .88), rgba(163, 211, 247, .93)); }
/* Login: se ve la imagen completa (nítida y entera) sobre su propio fondo borroso */
body.sharpbg .bg::after { background: url(assets/fondo.jpg) center / contain no-repeat; }

/* ---------- Pantallas de arranque y login ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--navy); font-weight: 700; }
.boot img { width: min(320px, 78vw); border-radius: 14px; box-shadow: var(--shadow); }
.login { min-height: 100vh; min-height: 100dvh; display: grid; align-content: space-between; justify-items: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); gap: 14px; }
.login-top { display: grid; justify-items: center; gap: 10px; }
.login-logo { width: min(420px, 86vw); border-radius: 16px; box-shadow: var(--shadow); }
.login-sub { margin: 0; text-align: center; font-weight: 800; color: var(--navy-2); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.login-card { width: min(400px, 100%); background: rgba(255, 255, 255, .94); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.login-card .fld { margin-bottom: 8px; }
.err { color: var(--red); font-weight: 600; margin: 0 0 8px; font-size: .92rem; }
.err:empty { display: none; }


@media (min-width: 900px) {
  body.sharpbg .bg::after { background-size: auto 94%; background-position: 76% center; }
  .login { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding-left: clamp(24px, 9vw, 140px); }
  .login-top { justify-items: start; }
  .login-logo { width: 440px; }
  .login-card { width: 400px; }
}

/* ---------- Estructura ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: rgba(207, 232, 250, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(22, 48, 106, .12); }
.brand img { height: 46px; display: block; border-radius: 9px; }
.top-r { display: flex; align-items: center; gap: 8px; }
.sync { font-size: .76rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .8); color: var(--green); white-space: nowrap; }
.sync.warn { color: var(--amber); } .sync.off { color: var(--red); }
.layout { max-width: 1200px; margin: 0 auto; display: block; }
.view { padding: 14px 14px calc(110px + env(safe-area-inset-bottom)); min-width: 0; }
.side { display: none; }
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr 74px 1fr 1fr 1fr; align-items: stretch; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 18px rgba(18, 40, 90, .1); }
.bnav button { background: none; border: 0; padding: 9px 2px 8px; display: grid; justify-items: center; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.bnav button.on { color: var(--navy); }
.bnav button.on .ic { color: var(--red); }
.bnav .spacer { pointer-events: none; }
.fab { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); width: 62px; height: 62px; border-radius: 50%; border: 4px solid #fff; background: var(--red); color: #fff; font-size: 2rem; line-height: 1; font-weight: 400; box-shadow: 0 8px 20px rgba(215, 38, 45, .45); display: grid; place-items: center; padding: 0 0 4px; }
.fab:active { transform: translateX(-50%) scale(.95); }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 8px; }
  .side { display: block; position: sticky; top: 70px; align-self: start; padding: 14px 6px 14px 14px; }
  .side button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 11px 12px; border-radius: 12px; font-weight: 700; color: var(--navy); text-align: left; }
  .side button:hover { background: rgba(255, 255, 255, .55); }
  .side button.on { background: var(--navy); color: #fff; }
  .side .sep { height: 1px; background: rgba(22, 48, 106, .15); margin: 10px 8px; }
  .bnav { display: none; }
  .view { padding: 20px 18px 110px; }
  .fab { left: auto; right: 28px; transform: none; bottom: 28px; width: auto; height: 56px; border-radius: 28px; padding: 0 22px 0 18px; font-size: 1rem; font-weight: 800; gap: 6px; grid-auto-flow: column; }
  .fab::after { content: "Cargar"; }
  .fab:active { transform: scale(.97); }
  h1 { font-size: 1.9rem; }
}

/* ---------- Componentes ---------- */
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.page-h .sub { margin: 4px 0 0; color: var(--navy); opacity: .8; font-size: .92rem; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card.hero { background: linear-gradient(135deg, var(--navy), #24478f); color: #fff; }
.card.hero h2 { font-size: 1.25rem; } .card.hero p { margin: 8px 0 14px; opacity: .9; }
.two { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.two > .card { margin-bottom: 0; min-width: 0; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .two + .card, .two + .two { margin-top: 14px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 12px; padding: 10px 16px; font-weight: 700; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--celeste-3); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.primary.danger { background: var(--red); border-color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger-o { color: var(--red); border-color: var(--red); }
.btn.wa { color: #0b7a42; border-color: #0b7a42; }
.btn.sm { padding: 7px 12px; min-height: 38px; font-size: .88rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.page-h .btn-row { margin: 0; }
.btn-row.end { justify-content: flex-end; } .btn-row.center { justify-content: center; }
.icon-btn { background: transparent; border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); }
.icon-btn:hover { background: var(--celeste-3); } .icon-btn.sm { width: 32px; height: 32px; }
.link { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 4px 0; }

.pbox { margin-bottom: 10px; }
.periodbar { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 14px; padding: 2px; box-shadow: var(--shadow); }
.plabel { flex: 1; background: none; border: 0; font-weight: 800; color: var(--navy-2); padding: 10px 6px; font-size: 1rem; }
.plabel.static { text-align: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.wrap { margin: 0 0 8px; }
.chip { background: rgba(255, 255, 255, .85); border: 1.5px solid transparent; color: var(--navy); padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.chip.on { background: var(--navy); color: #fff; }
.chip.tagc { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; background: var(--celeste-3); border: 1px solid var(--line); }
.chip.tagc button { border: 0; background: rgba(22, 48, 106, .12); color: var(--navy); width: 20px; height: 20px; border-radius: 50%; line-height: 1; padding: 0; font-size: 14px; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; }
.searchrow { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 2px 0 12px; }
@media (min-width: 640px) { .searchrow:has(select) { grid-template-columns: 260px 1fr; } }
.searchrow input, .searchrow select { width: 100%; background: var(--card); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 14px; min-height: 44px; box-shadow: var(--shadow); }

/* KPIs */
.kpis { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.kpis.small { grid-template-columns: 1fr 1fr 1fr; }
.kpis.small .kpi-v { font-size: 1.05rem; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis.small .kpi-v { font-size: 1.25rem; } }
@media (max-width: 480px) { .kpis.small { grid-template-columns: 1fr 1fr; } .kpis.small .kpi:last-child:nth-child(odd) { grid-column: span 2; } }
.kpi { background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); border-left: 5px solid var(--line); min-width: 0; }
.kpi.ing { border-left-color: var(--green); } .kpi.egr { border-left-color: var(--red); } .kpi.warn { border-left-color: var(--amber); }
.kpi.big .kpi-v { color: var(--navy-2); }
.kpi-l { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi-v { font-size: 1.3rem; font-weight: 900; margin: 3px 0 2px; overflow-wrap: anywhere; }
.kpi.ing .kpi-v { color: var(--green); } .kpi.egr .kpi-v { color: var(--red); }
.kpi-s { font-size: .78rem; color: var(--muted); }

/* Listas */
.list { display: grid; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 2px; min-height: 58px; }
.list .item:first-child { border-top: 0; }
.item:hover { background: var(--celeste-3); }
.item-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.item-main b { font-size: .98rem; overflow-wrap: anywhere; }
.item-main small { color: var(--muted); font-size: .8rem; display: block; }
.item-main small.note { color: var(--ink); opacity: .78; }
.item-amt { font-weight: 900; white-space: nowrap; font-size: 1rem; }
.dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.dot .ic { width: 19px; height: 19px; }
.dot.ing { background: #dff5ea; color: var(--green); } .dot.egr { background: #fde6e7; color: var(--red); } .dot.trip { background: #e0e9fb; color: var(--navy); }
.day-h { display: flex; justify-content: space-between; font-size: .85rem; padding-bottom: 6px; color: var(--navy); }
.daycard { padding-bottom: 6px; }
.tag { font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.tag-t { background: #e0e9fb; color: var(--navy); } .tag-p { background: #fff0cf; color: #8a5a00; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; margin: 1px 2px 1px 0; }
.b-ok { background: #dff5ea; color: #0c6b3f; } .b-warn { background: #fff0cf; color: #8a5a00; } .b-bad { background: #fde6e7; color: var(--red-d); } .b-info { background: #e0e9fb; color: var(--navy); } .b-off { background: #e9edf3; color: #6a7587; }
.badges { margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; margin: 0; }
.hint { color: var(--muted); font-size: .86rem; margin: 10px 0 0; }
.okline { background: #e3f6ec; color: #0c6b3f; padding: 10px 12px; border-radius: 12px; margin: 0 0 8px; }
.warnline { background: #fff3d6; color: #6f4a00; padding: 10px 12px; border-radius: 12px; margin: 0 0 8px; font-size: .92rem; }
.alerts { display: grid; gap: 6px; }
.alert { text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.alert.bad { background: #fde6e7; color: var(--red-d); } .alert.warn { background: #fff0cf; color: #7a4f00; }

/* Barras horizontales */
.hb { margin-bottom: 14px; }
.hb-top { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; margin-bottom: 4px; }
.hb-track { position: relative; height: 12px; background: #e6eef8; border-radius: 99px; overflow: hidden; }
.hb-fill { height: 100%; background: var(--navy); border-radius: 99px; }
.hb-fill.warn { background: var(--amber); } .hb-fill.bad { background: var(--red); }
.hb-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .5; }
.hb-sub { font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* Gráfico */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #dbe6f3; stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-weight: 600; }
.chart .bar-a { fill: var(--green); } .chart .bar-b { fill: var(--red); }
.legend { font-size: .78rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.lg.a { background: var(--green); } .lg.b { background: var(--red); }

/* Tablas */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
.tbl th, .tbl td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tbl tfoot td { font-weight: 900; border-top: 2px solid var(--navy); border-bottom: 0; }

/* ---------- Formularios y ventanas ---------- */
.fld { display: grid; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; min-width: 0; }
.fld input, .fld select, .fld textarea, .fld .btn { font-size: 1rem; font-weight: 500; color: var(--ink); }
.fld input:not([type=checkbox]), .fld select, .fld textarea { width: 100%; background: #fff; border: 1.5px solid #c8d6e8; border-radius: 11px; padding: 10px 12px; min-height: 44px; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .searchrow input:focus, .searchrow select:focus, .addrow input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 48, 106, .15); }
.fld.chk { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink); align-self: end; min-height: 44px; }
.fld.chk input { width: 20px; height: 20px; }
.fgrid { display: grid; gap: 0 10px; grid-template-columns: 1fr 1fr; }
.fgrid3 { display: grid; gap: 0 10px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .fgrid3 { grid-template-columns: 1fr 1fr; } }
fieldset.cobro { border: 1.5px dashed #b6c9e0; border-radius: 12px; padding: 8px 12px 10px; margin: 4px 0 12px; }
fieldset.cobro legend { font-size: .8rem; font-weight: 800; color: var(--navy); padding: 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.seg { display: grid; gap: 6px; margin-bottom: 12px; grid-template-columns: 1fr 1fr; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 11px; border-radius: 12px; border: 1.5px solid #c8d6e8; background: #fff; font-weight: 800; color: var(--navy); }
.seg input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg input:checked + span.s-ing { background: var(--green); border-color: var(--green); }
.seg input:checked + span.s-egr { background: var(--red); border-color: var(--red); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22, 48, 106, .25); }

.modal-ov { position: fixed; inset: 0; z-index: 60; background: rgba(10, 25, 60, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .2s ease; }
.modal.wide { max-width: 680px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 18px; }
.modal-h h3 { font-size: 1.15rem; font-weight: 900; font-style: italic; color: var(--navy-2); }
.x { border: 0; background: #eef3fa; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); }
.modal-b { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-body { padding: 4px 18px 10px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.modal-f { display: flex; gap: 8px; align-items: center; padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sp { flex: 1; }
.confirm-msg { margin: 6px 0 12px; font-size: 1.02rem; }
@media (min-width: 700px) { .modal-ov { align-items: center; } .modal { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.quick { display: grid; gap: 10px; padding-bottom: 14px; }
.qbtn { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; }
.qbtn .dot { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; }
.qbtn b { font-size: 1.05rem; } .qbtn small { color: var(--muted); }
.qbtn:hover { border-color: var(--navy); }

/* Detalle de viaje / cliente */
.vd-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vd-route { display: grid; gap: 4px; margin: 4px 0 12px; font-weight: 800; font-size: 1.08rem; }
.vd-route span { display: flex; align-items: center; gap: 6px; } .vd-route i { font-style: normal; color: var(--red); padding-left: 24px; }
.vd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.vd-notes { background: var(--celeste-3); border-radius: 12px; padding: 10px 12px; margin: 0; }
.kvs { display: grid; gap: 2px; margin-bottom: 10px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.kv span { color: var(--muted); } .kv b { text-align: right; }
.kv.total { border-bottom: 0; font-size: 1.05rem; } .kv.total b { font-size: 1.15rem; }
.money-box { background: var(--celeste-3); border-radius: 14px; padding: 8px 14px; margin: 8px 0; }
.money-box .kv:last-child { border-bottom: 0; }
.mini-list { display: grid; gap: 4px; }
.mini { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f3f7fc; border: 0; border-radius: 10px; padding: 8px 12px; font-size: .9rem; text-align: left; width: 100%; }
.mini span { flex: 1; min-width: 0; }
.catgroup { margin-bottom: 6px; }
.addrow { display: flex; gap: 6px; }
.addrow input { flex: 1; min-width: 0; border: 1.5px solid #c8d6e8; border-radius: 10px; padding: 8px 12px; background: #fff; }

/* Avisos */
.toasts { position: fixed; z-index: 90; left: 0; right: 0; bottom: calc(100px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { background: var(--navy-2); color: #fff; padding: 11px 18px; border-radius: 99px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); transition: opacity .4s, transform .4s; max-width: 92vw; text-align: center; }
.toast.ok { background: #0f7a4b; } .toast.err { background: var(--red-d); } .toast.out { opacity: 0; transform: translateY(8px); }
@media (min-width: 900px) { .toasts { bottom: 100px; } }

@media print {
  .bg, .top, .side, .bnav, .fab, .noprint, .toasts { display: none !important; }
  body { background: #fff; } .view { padding: 0; } .card, .kpi { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .layout { display: block; }
}
