:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #f0f3f7;
    --border: #dde2ea;
    --text: #1b2330;
    --muted: #5b6573;
    --accent: #2f6bff;
    --pass: #1e9e54;
    --warn: #b9791b;
    --fail: #d23b3b;
    --info: #2f7fb5;
    --na: #6b7280;
    --radius: 12px;
    /* Color del logotipo sobre la topbar oscura (no depende de --bg). */
    --brand-on-dark: #ffffff;
}

* { box-sizing: border-box; }

/* Reserva siempre el hueco de la barra de scroll: evita que la cabecera
   "salte" horizontalmente entre páginas con y sin scroll. */
html { scrollbar-gutter: stable; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    line-height: 1.5;
}

.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar {
    background: linear-gradient(135deg, #141821, #1c2230);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.topbar h1 { margin: 0; font-size: 28px; letter-spacing: -0.5px; }
.topbar h1 span { color: var(--accent); }
.brand { color: var(--brand-on-dark); text-decoration: none; }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topnav { display: flex; gap: 8px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 13.5px; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; }
.topnav a:hover, .topnav a.active { color: var(--text); border-color: var(--border); background: var(--surface); }

/* Cabecera compacta en móvil: marca arriba, navegación debajo a lo ancho. */
@media (max-width: 680px) {
    .topbar { padding: 16px 0; }
    .topbar-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .topbar h1 { font-size: 24px; }
    .topnav { width: 100%; flex-wrap: wrap; gap: 6px; }
    .topnav a, .topnav .linklike { font-size: 13px; padding: 7px 11px; }
}

/* Tabla del registro de auditoría */
.log-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.log-table th { text-align: left; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
    padding: 8px 10px; border-bottom: 1px solid var(--border); }
.log-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.nowrap { white-space: nowrap; }
.log-file a { color: var(--text); text-decoration: none; font-weight: 600; }
.log-file a:hover { color: var(--accent); }
.log-file small { display: block; color: var(--muted); font-size: 11.5px; }
.log-verdict { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.log-muted { color: var(--na); font-size: 12.5px; }
.log-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.log-actions a { color: var(--accent); text-decoration: none; font-size: 12.5px; }
.log-actions a:hover { text-decoration: underline; }
.log-del { display: inline; margin: 0; }
.log-del button { background: none; border: none; color: var(--fail); cursor: pointer; font-size: 12.5px; padding: 0; }
.log-del button:hover { text-decoration: underline; }

/* Migas de pan (detalle de registro) */
.crumbs { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs-date { color: var(--na); }

main { padding: 32px 0 64px; }

/* Uploader */
.uploader { margin-bottom: 28px; }
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--surface-2); }
.dropzone.has-file { border-color: var(--pass); }
.dropzone input[type=file] { display: none; }
.dz-icon { font-size: 32px; color: var(--accent); }
.dz-text { color: var(--muted); }
.dz-name { color: var(--text); font-weight: 600; word-break: break-all; }

.btn {
    margin-top: 14px;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.hint { color: var(--muted); font-size: 12.5px; text-align: center; margin: 12px 0 0; }

/* Alerts */
.alert { padding: 14px 16px; border-radius: var(--radius); margin: 18px 0; }
.alert.error { background: rgba(255,93,93,.12); border: 1px solid var(--fail); color: #ffb3b3; }
.alert.warn { background: rgba(245,177,76,.12); border: 1px solid var(--warn); color: #f3cd93; line-height: 1.55; }
.alert.warn strong { color: #fff; }
.alert.warn a { color: var(--accent); }

/* Summary */
.summary {
    display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px;
}
.file-meta { flex: 1; min-width: 220px; }
.file-meta h2 { margin: 0; font-size: 18px; word-break: break-all; }
.file-meta p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.score { display: flex; gap: 8px; margin-top: 12px; }
.engine { margin-top: 12px !important; font-size: 12.5px; }
.engine strong { color: var(--text); }

/* Desglose de las 3 dimensiones de accesibilidad (media = nota). */
.breakdown { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bd-item {
    display: inline-flex; align-items: baseline; gap: 7px;
    padding: 5px 11px; border-radius: 10px; font-size: 12.5px;
    border: 1px solid var(--border); background: var(--surface);
}
.bd-name { color: var(--muted); font-weight: 600; }
.bd-score { font-weight: 800; }
.bd-pass    { border-color: rgba(46,204,113,.4); }
.bd-pass    .bd-score { color: var(--pass); }
.bd-warning { border-color: rgba(245,177,76,.4); }
.bd-warning .bd-score { color: var(--warn); }
.bd-fail    { border-color: rgba(255,93,93,.4); }
.bd-fail    .bd-score { color: var(--fail); }
.bd-na      .bd-score { color: var(--na); }

/* Gauge circular */
.gauge {
    --c: var(--na);
    flex: 0 0 132px; width: 132px; height: 132px; border-radius: 50%;
    background: conic-gradient(var(--c) var(--deg), var(--surface-2) 0);
    display: grid; place-items: center;
}
.gauge-pass    { --c: var(--pass); }
.gauge-warning { --c: var(--warn); }
.gauge-fail    { --c: var(--fail); }
.gauge-na      { --c: var(--na); }
.gauge-inner {
    width: 104px; height: 104px; border-radius: 50%; background: var(--surface);
    display: grid; place-items: center; text-align: center;
}
.gauge-num { font-size: 34px; font-weight: 800; line-height: 1; color: var(--text); }
.gauge-num small { font-size: 16px; font-weight: 700; color: var(--muted); }
.gauge-lbl { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }
.chip { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip-pass { background: rgba(46,204,113,.15); color: var(--pass); }
.chip-warning { background: rgba(245,177,76,.15); color: var(--warn); }
.chip-fail { background: rgba(255,93,93,.15); color: var(--fail); }

/* Standards cards */
.standards { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px; border-bottom: 1px solid var(--border);
}
.card-head h3 { margin: 0; font-size: 16px; }
.head-right { display: flex; align-items: center; gap: 10px; }
.pct { font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 8px; }
.pct-pass    { background: rgba(46,204,113,.18); color: var(--pass); }
.pct-warning { background: rgba(245,177,76,.18); color: var(--warn); }
.pct-fail    { background: rgba(255,93,93,.18); color: var(--fail); }
.pct-na      { background: rgba(107,114,128,.22); color: var(--na); }
.verdict { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.verdict-pass    .verdict { background: rgba(46,204,113,.18); color: var(--pass); }
.verdict-warning .verdict { background: rgba(245,177,76,.18); color: var(--warn); }
.verdict-fail    .verdict { background: rgba(255,93,93,.18); color: var(--fail); }
.verdict-na      .verdict { background: rgba(107,114,128,.22); color: var(--na); }
.verdict-pass    { box-shadow: inset 3px 0 0 var(--pass); }
.verdict-warning { box-shadow: inset 3px 0 0 var(--warn); }
.verdict-fail    { box-shadow: inset 3px 0 0 var(--fail); }
.verdict-na      { box-shadow: inset 3px 0 0 var(--na); }

/* Findings */
.findings { list-style: none; margin: 0; padding: 6px 0; }
.finding { display: flex; gap: 12px; padding: 11px 18px; border-top: 1px solid rgba(255,255,255,.03); }
.finding:first-child { border-top: none; }
.ico {
    flex: 0 0 22px; height: 22px; width: 22px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px;
}
.sev-pass .ico    { background: rgba(46,204,113,.18); color: var(--pass); }
.sev-fail .ico    { background: rgba(255,93,93,.18); color: var(--fail); }
.sev-warning .ico { background: rgba(245,177,76,.18); color: var(--warn); }
.sev-info .ico    { background: rgba(90,169,230,.18); color: var(--info); }
.sev-na .ico      { background: rgba(107,114,128,.22); color: var(--na); }
.fbody { flex: 1; }
.ftitle { margin: 0; font-weight: 600; font-size: 14.5px; }
.fdetail { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.fref { margin: 4px 0 0; color: #6f7787; font-size: 11.5px; font-family: ui-monospace, "Cascadia Code", monospace; }

.section-title { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 26px 0 12px; font-weight: 700; }
.ai-tag { background: rgba(79,140,255,.16); color: var(--accent); font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* Etiquetas de bloque (principal EAA vs secundario informativo) */
.block-label { font-size: 13px; font-weight: 700; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.block-label-main { color: var(--text); }
.block-label-main::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.block-label-sec { color: var(--muted); }
.block-label-sec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--na); }
.bl-note { font-weight: 400; font-size: 12px; color: var(--muted); }
.standards-sec { opacity: .82; }
.standards-sec .card { border-style: dashed; }

/* CTA: propuesta de transformación */
.cta { margin: 22px 0; }
.cta-inner { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--accent);
    border-radius: var(--radius); padding: 18px 20px; box-shadow: inset 3px 0 0 var(--accent); flex-wrap: wrap; }
.cta-ok { border-color: var(--pass); box-shadow: inset 3px 0 0 var(--pass); }
.cta-muted { border-color: var(--border); box-shadow: inset 3px 0 0 var(--na); }
.cta-ico { font-size: 26px; }
.cta-title { margin: 0; font-weight: 700; font-size: 16px; }
.cta-text { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.cta-inner form { margin-left: auto; }
.btn-transform { width: auto; margin: 0; padding: 12px 22px; white-space: nowrap; }
.btn-transform:disabled { opacity: .7; cursor: default; }

/* Barra superior de resultado de transformación */
.conv-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--pass); border-radius: var(--radius);
    padding: 16px 20px; margin-bottom: 18px; box-shadow: inset 3px 0 0 var(--pass); }
.conv-bar-title { margin: 0; font-size: 17px; }
.conv-bar-sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; word-break: break-all; }
.conv-bar-actions { display: flex; gap: 10px; align-items: center; }
.btn-compare { width: auto; margin: 0; padding: 11px 18px; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn-ghost { color: var(--muted); text-decoration: none; font-size: 13.5px; border: 1px solid var(--border);
    padding: 10px 14px; border-radius: var(--radius); white-space: nowrap; }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* Metadatos IA */
.ai-meta { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.ai-meta-h { margin: 0 0 6px; font-weight: 700; font-size: 13.5px; }
.ai-meta ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.ai-meta li { margin: 2px 0; }
.ai-meta b { color: var(--text); }

/* Consumo / coste de IA */
.ai-cost { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.cost-grid { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 8px; }
.cost-item { display: flex; flex-direction: column; }
.cost-num { font-size: 20px; font-weight: 800; color: var(--text); }
.cost-lbl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cost-eur { color: var(--pass); }

/* Vista de auditoría desplegable dentro del informe de cambios */
.audit-view { margin: 8px 0; border: 1px solid var(--border); border-radius: 10px; }
.audit-view > summary { cursor: pointer; padding: 11px 14px; font-size: 14px; color: var(--text); }
.audit-view > summary strong { color: var(--accent); }
.audit-view[open] > summary { border-bottom: 1px solid var(--border); }
.audit-view-body { padding: 14px; }
.audit-view-body .summary { border-radius: 8px; }

/* Dos columnas: original | PDF/A */
.wrap-wide { max-width: 1280px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.col { min-width: 0; }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
    padding: 12px 16px; border-bottom: none; }
.col-head-orig { box-shadow: inset 4px 0 0 var(--na); }
.col-head-new  { box-shadow: inset 4px 0 0 var(--pass); }
.col-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--na);
    display: block; }
.col-tag-new { color: var(--pass); }
.col-name { font-size: 13px; color: var(--text); word-break: break-all; }
.btn-dl-sm { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none;
    font-size: 12.5px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.btn-dl-sm:hover { border-color: var(--accent); }
.btn-dl-new { border-color: var(--pass); color: var(--pass); }
.col .summary { border-radius: 0; margin-bottom: 14px; }
.col .summary, .col .standards { font-size: 13px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* Informe de cambios */
.chg-overall { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 18px; margin: 4px 0 18px; }
.chg-ov-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-right: auto; }
.ba-num { font-size: 30px; font-weight: 800; }
.ba-arrow { font-size: 22px; color: var(--muted); }
.ba-pass { color: var(--pass); } .ba-warning { color: var(--warn); } .ba-fail { color: var(--fail); } .ba-na { color: var(--na); }

.chg-h { font-size: 15px; margin: 22px 0 10px; }
.chg-empty { color: var(--muted); font-size: 13.5px; }
.chg-list { list-style: none; margin: 0; padding: 0; }
.chg-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.chg-cat { flex: 0 0 130px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    color: var(--accent); background: rgba(79,140,255,.1); padding: 4px 8px; border-radius: 6px; text-align: center; }
.chg-title { margin: 0; font-weight: 600; font-size: 14px; color: var(--pass); }
.chg-detail { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.ba-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13.5px; }
.ba-table th { text-align: left; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
    padding: 6px 10px; border-bottom: 1px solid var(--border); }
.ba-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.04); }
.ba-c { font-weight: 700; } .ba-c small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.delta.up { color: var(--pass); } .delta.down { color: var(--fail); } .delta.eq { color: var(--muted); }

.gslog { margin-top: 18px; }
.gslog summary { cursor: pointer; color: var(--accent); font-size: 13.5px; }
.gslog pre { background: #0c0e12; border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow: auto;
    font-size: 11.5px; color: var(--muted); max-height: 320px; white-space: pre-wrap; }

/* Página de progreso (SSE) */
.proc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 26px 22px; margin: 28px 0; }
.proc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.proc-title { margin: 0; font-size: 19px; }
.proc-file { margin: 3px 0 0; color: var(--muted); font-size: 13px; word-break: break-all; }
.proc-meta { margin-left: auto; text-align: right; }
.proc-pct { display: block; color: var(--accent); font-weight: 800; font-size: 24px; line-height: 1; }
.proc-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Spinner de cabecera */
.proc-spin { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid var(--surface-2); border-top-color: var(--accent);
    animation: proc-rot .9s linear infinite; }
.proc-spin.off { animation: none; border-top-color: var(--pass); border-color: var(--pass); }
@keyframes proc-rot { to { transform: rotate(360deg); } }

/* Barra con shimmer en movimiento (nunca parece congelada) */
.proc-bar { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.proc-fill { height: 100%; width: 2%; border-radius: 999px; transition: width .45s ease;
    background-image: linear-gradient(90deg, var(--accent), #6fa8ff),
        linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    background-size: 100% 100%, 40px 100%;
    background-repeat: no-repeat, repeat;
    animation: proc-shimmer 1s linear infinite; }
.proc-fill.proc-fail { background-image: none; background-color: var(--fail); animation: none; }
@keyframes proc-shimmer { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 40px 0; } }

/* Stepper de fases */
.proc-steps { list-style: none; margin: 20px 0 0; padding: 0; }
.pstep { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; transition: opacity .3s; }
.pstep-ico { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    border: 2px solid var(--border); position: relative; }
.pstep-label { color: var(--muted); }
.pstep.pending { opacity: .5; }
.pstep.done .pstep-ico { border-color: var(--pass); background: rgba(46,204,113,.15); }
.pstep.done .pstep-ico::after { content: '✓'; color: var(--pass); font-size: 12px; font-weight: 800; }
.pstep.done .pstep-label { color: var(--text); }
.pstep.active .pstep-ico { border-color: var(--accent); border-top-color: transparent; animation: proc-rot .8s linear infinite; }
.pstep.active .pstep-label { color: var(--text); font-weight: 700; }

.proc-note { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; }

/* Disclaimer + footer */
.disclaimer {
    margin-top: 22px; padding: 14px 16px; font-size: 12.5px; color: var(--muted);
    background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.disclaimer strong { color: var(--text); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0; border-top: 1px solid var(--border); }

/* ===== Responsive (móvil / tablet estrecha) ===== */
@media (max-width: 680px) {
    .wrap { padding: 0 16px; }
    main { padding: 20px 0 48px; }

    /* Informe: gauge arriba, metadatos debajo */
    .summary { flex-direction: column; align-items: center; text-align: center; padding: 18px 16px; gap: 16px; }
    .file-meta { min-width: 0; width: 100%; }
    .file-meta h2 { font-size: 16px; }
    .breakdown, .score { justify-content: center; }
    .engine { font-size: 12px; text-align: left; }

    /* Tarjetas de norma */
    .card-head { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
    .card-head h3 { font-size: 15px; flex: 1 1 100%; }
    .head-right { flex-wrap: wrap; }
    .finding { padding: 10px 14px; gap: 10px; }

    /* Columnas original / PDF/A */
    .col-head { flex-wrap: wrap; gap: 10px; padding: 11px 14px; }
    .col-head > div { min-width: 0; flex: 1 1 auto; }

    /* Barras de acción */
    .conv-bar { flex-direction: column; align-items: stretch; padding: 14px 16px; }
    .conv-bar-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .btn-compare, .conv-bar-actions .btn-ghost { width: 100%; text-align: center; }
    .cta-inner { flex-direction: column; align-items: stretch; padding: 16px; }
    .cta-inner form { margin-left: 0; width: 100%; }
    .btn-transform { width: 100%; text-align: center; }

    /* Informe de cambios */
    .chg-overall { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
    .chg-ov-lbl { flex: 1 1 100%; margin-right: 0; }
    .chg-item { flex-direction: column; gap: 8px; }
    .chg-cat { flex: none; width: fit-content; max-width: 100%; }

    /* Progreso */
    .proc { padding: 18px 16px; }
    .proc-head { flex-wrap: wrap; gap: 12px; }
    .proc-meta { margin-left: 0; text-align: left; width: 100%; }
    .proc-title { font-size: 17px; }

    /* Tablas: scroll horizontal */
    .panel, .tab-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .doc-table { min-width: 540px; }
    .log-table { min-width: 520px; }
    .ba-table { min-width: 460px; }
}

@media (max-width: 480px) {
    .wrap { padding: 0 14px; }
    .dropzone { padding: 28px 16px; }
    .gauge { flex: 0 0 112px; width: 112px; height: 112px; }
    .gauge-inner { width: 88px; height: 88px; }
    .gauge-num { font-size: 28px; }
}
