/* =====================================================================
   Portal de Downloads — SVM Tecnologia
   ===================================================================== */

:root {
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-darker: #115e59;
  --brand-soft: #ccfbf1;
  --brand-ink: #134e4a;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #f1f5f9;
  --card: #ffffff;

  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px -3px rgba(13, 148, 136, .55);
}
.brand-mark-lg { width: 46px; height: 46px; border-radius: 13px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15.5px; font-weight: 650; }
.brand-text small { font-size: 12px; color: var(--muted); }

.topnav { display: flex; align-items: center; gap: 8px; }

.topnav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.topnav-link:hover { background: var(--line-soft); text-decoration: none; color: var(--brand-darker); }

.topnav-user { display: inline-flex; align-items: center; gap: 8px; padding-left: 6px; }
.topnav-name { font-size: 14px; color: var(--ink-2); font-weight: 500; }

.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}

/* ---------------------------------------------------------------- Layout */
.page { max-width: 1180px; margin: 0 auto; padding: 28px 22px 60px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.page-title { font-size: 24px; }
.page-sub { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.footer {
  max-width: 1180px; margin: 0 auto; padding: 20px 22px 34px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--faint); font-size: 12.5px;
}

/* ---------------------------------------------------------------- Painel */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  overflow: hidden;
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fcfdfe);
}
.panel-head h2 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.panel-actions { padding: 16px 18px; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); }
.panel-actions form { margin: 0; }
.panel-note { padding: 0 18px 16px; margin: 0; }

.sub-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 22px 0 10px;
}
.sub-title.full { grid-column: 1 / -1; margin-top: 8px; }
.panel > .sub-title { padding: 0 18px; }
.panel > .sub-title:first-child { margin-top: 16px; }

/* ---------------------------------------------------------------- Botoes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 550;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .06s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }

.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }

.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-soft); text-decoration: none; }

.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- Tabelas */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
  padding: 11px 18px; background: var(--line-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 11px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfd; }
.table-compact td { padding: 8px 12px; }
.table-scroll { overflow-x: auto; }

.col-num { text-align: right; white-space: nowrap; }
.col-act { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }

.file-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.file-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-path { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }

.ext {
  flex: 0 0 auto;
  min-width: 42px; text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--line-soft);
  color: var(--muted);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.ext-zip, .ext-rar, .ext-7z, .ext-tar, .ext-gz { background: #fef3c7; color: #92400e; }
.ext-exe, .ext-msi, .ext-app { background: #fee2e2; color: #991b1b; }
.ext-pdf { background: #fee2e2; color: #991b1b; }
.ext-doc, .ext-docx, .ext-xls, .ext-xlsx, .ext-ppt, .ext-pptx { background: #dbeafe; color: #1e40af; }
.ext-iso, .ext-img, .ext-dmg { background: #ede9fe; color: #5b21b6; }
.ext-apk, .ext-deb { background: #dcfce7; color: #166534; }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--line-soft); color: var(--muted);
  font-size: 12px; font-weight: 550;
}
.tag-admin { background: var(--brand-soft); color: var(--brand-ink); }
.tag-ok { background: var(--ok-soft); color: #166534; }
.tag-off { background: var(--line-soft); color: var(--faint); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------------- Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stats-3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 18px 0 6px; }

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 3px;
}
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; font-weight: 550; }
.stat-value { font-size: 22px; font-weight: 680; letter-spacing: -.02em; }
.stat-hint { font-size: 12.5px; color: var(--faint); }

.bar { display: block; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 7px; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-darker)); border-radius: 999px; }

/* ---------------------------------------------------------------- Layout 2 colunas */
.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.content { min-width: 0; }

.sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fcfdfe);
}

.sidebar-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 650;
  display: inline-flex; align-items: center; gap: 6px;
}

.sidebar-up { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.sidebar-up:hover { color: var(--brand-dark); text-decoration: none; }

.sidebar-body { overflow-y: auto; padding: 8px 6px 12px; }

.tree-list { list-style: none; margin: 0; padding: 0; }
.tree-list .tree-list { padding-left: 13px; }

.tree-item { margin: 0; }
.tree-node > summary { list-style: none; cursor: pointer; }
.tree-node > summary::-webkit-details-marker { display: none; }

.tree-summary, .tree-leaf {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.tree-summary:hover, .tree-leaf:hover { background: var(--line-soft); }
.tree-caret { display: grid; color: var(--faint); transition: transform .15s; flex: 0 0 auto; }
.tree-node[open] > .tree-summary .tree-caret { transform: rotate(90deg); }
.tree-caret-empty { width: 13px; }
.tree-icon { display: grid; color: var(--brand); flex: 0 0 auto; }
.tree-link { color: var(--ink-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-link:hover { color: var(--brand-dark); text-decoration: none; }
.tree-link.is-current { color: var(--brand-darker); font-weight: 650; }
.tree-leaf.is-current { background: var(--brand-soft); }
.tree-count { font-size: 11px; color: var(--faint); }
.tree-empty { padding: 12px 10px; color: var(--faint); font-size: 13px; }

/* ---------------------------------------------------------------- Pastas */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 12px; margin-bottom: 20px; }

.folder-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color .15s, transform .08s, box-shadow .15s;
}
.folder-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }

.folder-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-darker);
  display: grid; place-items: center; flex: 0 0 auto;
}
.folder-meta { display: flex; flex-direction: column; min-width: 0; }
.folder-meta strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-meta small { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- Busca */
.search { position: relative; display: flex; align-items: center; min-width: 290px; }
.search-icon { position: absolute; left: 13px; color: var(--faint); display: grid; pointer-events: none; }
.search input[type="search"] {
  width: 100%;
  padding: 10px 38px 10px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.search input[type="search"]:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.search-clear { position: absolute; right: 12px; font-size: 20px; color: var(--faint); line-height: 1; }
.search-clear:hover { color: var(--ink); text-decoration: none; }

/* ---------------------------------------------------------------- Crumbs */
.crumbs { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13.5px; }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.crumbs a:hover { color: var(--brand-dark); text-decoration: none; }
.crumb-sep { color: var(--faint); display: grid; }

/* ---------------------------------------------------------------- Flash */
.flashes { display: grid; gap: 10px; margin-bottom: 16px; }

.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid transparent;
}
.flash svg { flex: 0 0 auto; margin-top: 1px; }
.flash-success { background: var(--ok-soft); color: #14532d; border-color: #bbf7d0; }
.flash-error { background: var(--danger-soft); color: #7f1d1d; border-color: #fecaca; }
.flash-warning { background: var(--warn-soft); color: #78350f; border-color: #fde68a; }
.flash-info { background: var(--brand-soft); color: var(--brand-ink); border-color: #99f6e4; }

/* ---------------------------------------------------------------- Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--faint); }

.field input, .field select, .field textarea,
input[type="text"], input[type="search"], input[type="password"], input[type="number"], select {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input::placeholder { color: var(--faint); }

.field-sm { gap: 3px; }
.field-sm input, .field-sm select { padding: 7px 10px; font-size: 13.5px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.check input { width: auto; margin: 0; }

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 18px;
}
.grid-form .full { grid-column: 1 / -1; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.filter-bar {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #fcfdfe;
}
.filter-bar .field { min-width: 150px; }

.inline-form { display: inline-block; }

/* ---------------------------------------------------------------- Login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
  background:
    radial-gradient(1000px 520px at 50% -8%, #d7f5f1 0%, rgba(215, 245, 241, 0) 62%),
    var(--bg);
}

body.no-topbar .page { padding: 0; }
body.no-topbar .footer { max-width: 880px; }

.login-card {
  width: 100%;
  max-width: 412px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.login-brand h1 { font-size: 18.5px; }
.login-brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.login-notice {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--brand-soft); color: var(--brand-ink);
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13px; margin: 0 0 18px;
}
.login-notice svg { flex: 0 0 auto; margin-top: 1px; }

.login-form { display: grid; gap: 15px; }
.login-form .btn { margin-top: 4px; }

.login-foot { margin: 20px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------------------------------------------------------------- Bloqueio */
.block-card { text-align: center; max-width: 452px; }
.block-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 17px; display: grid; place-items: center;
  background: var(--danger-soft); color: var(--danger);
}
.block-icon.ok { background: var(--ok-soft); color: var(--ok); }
.block-card h1 { font-size: 20px; margin-bottom: 8px; }
.block-reason { color: var(--ink-2); font-size: 14.5px; margin: 0 0 6px; }
.block-hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.block-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Admin */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--muted); font-size: 14px; font-weight: 550;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, .6); }
.tab.is-active { color: var(--brand-darker); border-bottom-color: var(--brand); background: #fff; }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell strong { display: block; font-size: 14px; }
.user-cell small { color: var(--faint); font-size: 12.5px; }

.row-actions { position: relative; display: inline-block; }
.row-actions summary { list-style: none; cursor: pointer; }
.row-actions summary::-webkit-details-marker { display: none; }
.row-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  z-index: 20;
  width: 275px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid; gap: 12px;
}
.mini-form { display: grid; gap: 8px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; padding: 18px; }
.info-box {
  display: flex; flex-direction: column; gap: 5px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcfdfe;
}
.info-label { font-size: 12px; color: var(--muted); font-weight: 550; }
.info-box code {
  font-size: 12px; background: var(--line-soft); padding: 3px 7px; border-radius: 5px;
  word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.path-code {
  font-size: 12px; background: var(--line-soft); padding: 3px 7px; border-radius: 5px;
  word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  display: inline-block; max-width: 340px;
}

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; padding: 0 18px 18px; }
.bar-row td { padding: 0 12px 8px; border: 0; }
.bar-row:hover { background: transparent; }

.chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 170px; padding: 18px 18px 0;
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
}
.chart-col { flex: 1 0 26px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.chart-bar {
  width: 100%; max-width: 34px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-darker) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: opacity .15s;
}
.chart-col:hover .chart-bar { opacity: .78; }
.chart-label { font-size: 10.5px; color: var(--faint); margin-top: 6px; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty p { margin: 10px 0 0; }

/* ---------------------------------------------------------------- Instalador */
.install-wrap { max-width: 880px; margin: 0 auto; }

.install-head { margin-bottom: 22px; }
.install-head h1 { font-size: 23px; }
.install-head p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.steps li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 8px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.steps li span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--line-soft); color: var(--muted);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.steps li.is-active { border-color: var(--brand); color: var(--brand-darker); font-weight: 600; }
.steps li.is-active span { background: var(--brand); color: #fff; }
.steps li.is-done { color: var(--ok); border-color: #bbf7d0; }
.steps li.is-done span { background: var(--ok-soft); color: var(--ok); }

.checklist { list-style: none; padding: 6px 18px 14px; margin: 0; display: grid; gap: 2px; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.checklist li:last-child { border-bottom: 0; }
.check-icon { display: grid; width: 22px; height: 22px; border-radius: 50%; place-items: center; flex: 0 0 auto; }
.checklist li.ok .check-icon { background: var(--ok-soft); color: var(--ok); }
.checklist li.fail .check-icon { background: var(--danger-soft); color: var(--danger); }
.check-label { flex: 1; }
.check-hint { font-size: 12.5px; color: var(--muted); }

.radio-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
}
.radio-card:hover { border-color: var(--brand); }
.radio-card input { width: auto; margin: 3px 0 0; }
.radio-card span { display: flex; flex-direction: column; gap: 3px; }
.radio-card strong { font-size: 14.5px; }
.radio-card small { color: var(--muted); font-size: 13px; }
.radio-card code { background: var(--line-soft); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.import-list { list-style: none; padding: 0; margin: 10px 0 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.import-list li { border-bottom: 1px solid var(--line-soft); }
.import-list li:last-child { border-bottom: 0; }
.import-list .check { display: flex; padding: 9px 13px; gap: 9px; align-items: center; }
.import-list .check:hover { background: #fcfdfe; }
.import-name { flex: 1; font-weight: 500; }

.import-group { margin-bottom: 14px; }
.import-group-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 9px 13px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 13.5px;
}
.import-group-head code {
  font-size: 11.5px; color: var(--muted);
  background: #fff; padding: 2px 7px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}
.import-group .import-list { margin: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

.summary { list-style: none; padding: 6px 18px 14px; margin: 0; display: grid; gap: 7px; font-size: 14px; }
.summary li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.summary li:last-child { border-bottom: 0; }
.summary li.ok { color: var(--ok); }
.summary li.fail { color: var(--danger); }

.howto { padding: 0 18px 18px 36px; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.howto code { background: var(--line-soft); padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 900px) {
  .topnav { width: 100%; justify-content: flex-start; gap: 6px; }
  .topnav .btn { margin-left: auto; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; max-height: 320px; }
}

@media (max-width: 760px) {
  .topbar-inner { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .topnav { width: 100%; justify-content: space-between; }
  .topnav .btn { margin-left: 0; }
  .topnav-name { display: none; }
  .page { padding: 20px 16px 48px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; width: 100%; }
  .table th, .table td { padding: 10px 12px; }
  .file-path { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media print {
  .topbar, .footer, .btn, .tabs { display: none !important; }
}
