:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-2: #f8fafb;
    --border: #e2e7ec;
    --text: #17212b;
    --muted: #64717f;
    --primary: #0f766e;
    --primary-600: #0b5f58;
    --primary-50: #e7f4f2;
    --side: #0f1f2e;
    --side-text: #c3ced9;
    --warn: #b45309;
    --warn-bg: #fff7e6;
    --danger: #b42318;
    --danger-bg: #fdecea;
    --ok: #0f7a3d;
    --ok-bg: #e7f6ec;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: .95rem; margin-top: 1.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 .3em; font-size: .88em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.text-warn { color: var(--warn); }
.eyebrow { margin: 0 0 .2rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* --- layout --- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 1.2rem .9rem; position: sticky; top: 0; height: 100vh; }
.brand, .guest-brand { display: flex; align-items: center; gap: .7rem; color: #fff; padding: .3rem .5rem 1.4rem; }
.brand:hover { text-decoration: none; }
.brand small, .guest-brand small { display: block; color: var(--side-text); font-size: .75rem; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { color: var(--side-text); padding: .55rem .75rem; border-radius: 8px; font-weight: 500; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 #2dd4bf; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin: 1rem .75rem .3rem; color: #7c8b99; }
.sidebar-user { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sidebar-user strong { color: #fff; display: block; font-size: .9rem; }
.sidebar-user small { font-size: .75rem; }
.btn-link { background: none; border: 0; color: #9fe7dc; cursor: pointer; font: inherit; font-size: .85rem; }
.main { min-width: 0; }
.topbar { display: none; }
.content { padding: 2rem 2.2rem 4rem; max-width: 1240px; }

/* --- cards / grids --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; margin-bottom: 1.2rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.card-head h2 { margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.page-head p.muted { margin: .2rem 0 0; max-width: 720px; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.2rem; }
.grid-2.align-start { gap: 1.2rem; align-items: start; }
.grid-2.align-start > .card, .grid-2.align-start > div > .card:last-child { margin-bottom: 0; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.empty { text-align: center; padding: 3rem 1.5rem; }
.empty h2 { font-size: 1.35rem; }
.empty .muted { max-width: 560px; margin: .5rem auto 1.4rem; }

/* --- stats --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--muted); box-shadow: var(--shadow); }
.stat span { display: block; font-size: 1.8rem; font-weight: 700; color: var(--text); }
a.stat:hover { text-decoration: none; border-color: var(--primary); }
.stat.warn span { color: var(--warn); }

/* --- lists --- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: .8rem; padding: .65rem .2rem; border-bottom: 1px solid var(--border); color: inherit; }
.list li:last-child .list-item, .list li.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); text-decoration: none; }
.list-item > span:nth-child(2), .list-item > span:first-child:not(.avatar) { flex: 1; min-width: 0; }
.list-item small { display: block; color: var(--muted); font-size: .82rem; }
.group-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .2rem; font-weight: 600; }
.row-actions { display: flex; gap: .3rem; align-items: center; }
.row-actions form { margin: 0; }

.avatar { width: 38px; height: 38px; border-radius: 8px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; border: 1px solid var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.company-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .25rem; color: inherit; box-shadow: var(--shadow); }
.company-card:hover { border-color: var(--primary); text-decoration: none; }
.company-card .avatar { margin-bottom: .5rem; }
.company-card small { color: var(--muted); }
.meter { display: block; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin: .5rem 0 .2rem; }
.meter span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

.company-hero { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 220px; }
.hero-text h1 { margin: 0; }
.hero-text p { margin: .2rem 0 0; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin: 0 0 1.2rem; }
.tabs a { padding: .6rem 1rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }

dl.data { display: grid; grid-template-columns: 180px 1fr; gap: .45rem 1rem; margin: 0; }
dl.data dt { color: var(--muted); font-size: .88rem; }
dl.data dd { margin: 0; overflow-wrap: anywhere; }

/* --- badges / alerts --- */
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); vertical-align: middle; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe5cc; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: #f5d9a8; }
.alert { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.alert-success { background: var(--ok-bg); color: #0b5a2d; border-color: #bfe5cc; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f5c2bd; }
.alert-warning { background: var(--warn-bg); color: #8a4200; border-color: #f5d9a8; }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--primary); color: #fff; border: 1px solid var(--primary); border-radius: 8px; padding: .55rem 1.05rem; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-text { background: none; border-color: transparent; color: var(--muted); }
.btn-text:hover { background: var(--danger-bg); color: var(--danger); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8f1c13; }
.btn-sm { padding: .3rem .7rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* --- forms --- */
.form h3:first-of-type { margin-top: 0; }
.field { margin-bottom: 1rem; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.req { color: var(--danger); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
    width: 100%; padding: .55rem .7rem; border: 1px solid #cdd5dd; border-radius: 8px; font: inherit; background: #fff; color: var(--text);
}
input[type=file] { padding: .45rem; background: var(--surface-2); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 118, 110, .25); border-color: var(--primary); }
.is-invalid { border-color: var(--danger) !important; background: #fffafa !important; }
.is-empty { border-color: #f0c37a !important; background: #fffcf5 !important; }
.field-error { color: var(--danger); font-size: .83rem; margin: .3rem 0 0; }
.hint { color: var(--muted); font-size: .82rem; margin: .3rem 0 0; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500 !important; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .4rem 1rem; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem .2rem; margin: 0 0 1.2rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; padding-top: .6rem; flex-wrap: wrap; }
.form-actions.sticky { position: sticky; bottom: 0; background: var(--surface); padding: .8rem 0; border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: .4rem; margin-top: .8rem; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form input { max-width: 280px; }
.toolbar { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
.filter-input { margin-bottom: .6rem; }
.logo-field { display: flex; gap: 1.2rem; align-items: flex-start; }
.logo-preview { width: 150px; height: 100px; border: 1px dashed #c3ccd5; border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: .85rem; background: var(--surface-2); flex: none; overflow: hidden; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-inline { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; }
.logo-inline img { height: 48px; border: 1px solid var(--border); border-radius: 6px; padding: 3px; background: #fff; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.checklist { list-style: none; padding: 0; }
.checklist li.ok { color: var(--ok); }
.checklist li.bad { color: var(--danger); font-weight: 600; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .4rem; }

/* --- tables --- */
.table-wrap { overflow-x: auto; padding: 0; }
.card.table-wrap { padding: .3rem 0; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .7rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.inactive td { opacity: .55; }
.mapping td { padding: .55rem .4rem; }
.mapping select { min-width: 200px; }
.row-warn td { background: var(--warn-bg); }
.fields-table .aliases { font-size: .82rem; color: var(--muted); max-width: 320px; overflow-wrap: anywhere; }
.inline-edit summary { list-style: none; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] { position: relative; }
.inline-edit form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); width: 320px; position: absolute; right: 0; z-index: 5; white-space: normal; }
.inline-edit > form + form { position: static; box-shadow: none; border: 0; padding: .3rem 0 0; width: auto; }

/* --- guest --- */
body.guest { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; background: linear-gradient(160deg, #0f1f2e 0%, #134e4a 100%); }
.guest-wrap { width: 100%; max-width: 420px; }
.guest-wrap.wide { max-width: 760px; }
.guest-brand { padding: 0 0 1.2rem; }
.guest-brand small { color: #9fb3c1; }

/* --- responsive --- */
@media (max-width: 960px) {
    .grid-2.align-start { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
    .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
    .topbar { display: flex; align-items: center; gap: .8rem; background: var(--side); color: #fff; padding: .7rem 1rem; position: sticky; top: 0; z-index: 10; }
    .menu-toggle { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
    .topbar-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .content { padding: 1.2rem 1rem 3rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    dl.data { grid-template-columns: 1fr; gap: 0 0; }
    dl.data dd { margin-bottom: .6rem; }
    .logo-field { flex-direction: column; }
    .inline-edit form { position: fixed; left: 1rem; right: 1rem; width: auto; top: 4rem; }
}
.block-code { display: table; margin-bottom: .2rem; }

.dropzone-box { position: relative; border: 2px dashed #c3ccd5; border-radius: var(--radius); background: var(--surface-2); padding: 1.6rem 1rem; text-align: center; transition: border-color .15s, background .15s; }
.dropzone-box.drag { border-color: var(--primary); background: var(--primary-50); }
.dropzone-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone-box p { margin: 0; pointer-events: none; }
.dropzone-box:has(.is-invalid) { border-color: var(--danger); }
.file-list { list-style: none; padding: 0; margin: .5rem 0 0; max-height: 220px; overflow: auto; font-size: .85rem; }
.file-list li { padding: .25rem .5rem; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.file-list li.ext-zip { font-weight: 600; }
.file-list li.total { color: var(--muted); border-bottom: 0; }
.badge.err { background: var(--danger-bg); color: var(--danger); border-color: #f5c2bd; }

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.img-option { border: 2px solid var(--border); border-radius: var(--radius); padding: .6rem; display: flex; flex-direction: column; gap: .35rem; cursor: pointer; background: var(--surface); }
.img-option.selected, .img-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.img-thumb { height: 80px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.img-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* --- notificaciones flotantes --- */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: flex; flex-direction: column; gap: .6rem; width: min(400px, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: .75rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--muted); border-radius: var(--radius); padding: .85rem 2.4rem .85rem .9rem; box-shadow: 0 12px 32px rgba(16, 24, 40, .18); animation: toast-in .25s ease-out; }
.toast.leaving { animation: toast-out .2s ease-in forwards; }
.toast-success { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warn); }
.toast-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: var(--muted); }
.toast-success .toast-icon { background: var(--ok); }
.toast-error .toast-icon { background: var(--danger); }
.toast-warning .toast-icon { background: var(--warn); }
.toast-body { min-width: 0; }
.toast-body strong { display: block; font-size: .92rem; }
.toast-body p { margin: .15rem 0 0; font-size: .88rem; color: var(--text); overflow-wrap: anywhere; }
.toast-link { display: inline-block; margin-top: .4rem; font-size: .85rem; font-weight: 600; }
.toast-close { position: absolute; top: .45rem; right: .5rem; background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem .35rem; border-radius: 6px; }
.toast-close:hover { background: var(--surface-2); color: var(--text); }
.toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--ok); opacity: .5; width: 100%; transform-origin: left; }
.toast.running .toast-timer { animation: toast-timer var(--toast-ms, 8000ms) linear forwards; }
.toast:hover .toast-timer { animation-play-state: paused; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 820px) { .toasts { right: 1rem; left: 1rem; bottom: 1rem; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { animation: none; } }

/* --- repositorio --- */
.tab-count { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; margin-left: .3rem; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
.repo-toolbar select { width: auto; }
.repo-count { align-self: center; margin-left: auto; }
.card.repo { padding: 0; overflow: hidden; }
.repo-head, .repo-item > summary { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, .9fr) 220px; gap: 1rem; align-items: center; padding: .75rem 1.2rem; }
.repo-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.repo-item { border-bottom: 1px solid var(--border); }
.repo-item:last-of-type { border-bottom: 0; }
.repo-item > summary { list-style: none; cursor: pointer; }
.repo-item > summary::-webkit-details-marker { display: none; }
.repo-item > summary:hover { background: var(--surface-2); }
.repo-item[open] > summary { background: var(--primary-50); }
.repo-item.highlight > summary { box-shadow: inset 4px 0 0 var(--primary); }
.repo-name { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.repo-name strong { overflow-wrap: anywhere; }
.file-icon { flex: none; width: 40px; height: 46px; border-radius: 6px; display: grid; place-items: center; font-size: .65rem; font-weight: 800; color: #fff; background: #2b579a; }
.file-icon.xlsx { background: #217346; }
.repo-current { display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.repo-hist { color: var(--muted); font-size: .88rem; }
.chev { display: inline-block; transition: transform .15s; }
.repo-item[open] .chev { transform: rotate(180deg); }
.version-pill { display: inline-grid; place-items: center; min-width: 2.6rem; padding: .15rem .5rem; border-radius: 99px; background: var(--primary); color: #fff; font-weight: 700; font-size: .8rem; }
.version-pill.muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.timeline { list-style: none; margin: 0; padding: .4rem 1.2rem 1rem 3.2rem; position: relative; background: var(--surface); }
.timeline::before { content: ''; position: absolute; left: 2.05rem; top: .9rem; bottom: 1.6rem; width: 2px; background: var(--border); }
.timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .6rem 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -1.38rem; top: 1rem; width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: 2px solid var(--surface); }
.timeline li.current::before { background: var(--primary); }
.timeline li.new { background: var(--warn-bg); border-radius: 8px; padding-left: .4rem; padding-right: .4rem; }
.timeline li[hidden] { display: none; }
.tl-body strong { font-size: .9rem; }
.tl-body .badge { margin-left: .3rem; }
.tl-note { margin: .3rem 0 0; font-size: .88rem; background: var(--surface-2); border-left: 3px solid var(--border); padding: .3rem .6rem; border-radius: 4px; }
.empty-filter { padding: 1.2rem; text-align: center; }
.version-banner { display: flex; gap: .9rem; align-items: center; background: var(--primary-50); border: 1px solid #bfe3de; border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.version-banner .version-pill { font-size: 1rem; min-width: 3.2rem; padding: .3rem .6rem; }
.text-ok { color: var(--ok); font-weight: 600; }
.tpl-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 1.6rem; }
@media (max-width: 820px) {
    .repo-head { display: none; }
    .repo-item > summary { grid-template-columns: 1fr auto; gap: .5rem; }
    .repo-current { grid-column: 1; }
    .repo-hist { grid-column: 2; grid-row: 1; justify-self: end; }
    .repo-item > summary .row-actions { grid-column: 1 / -1; }
    .timeline { padding-left: 2.4rem; }
    .timeline::before { left: 1.25rem; }
    .timeline li { grid-template-columns: auto 1fr; }
    .timeline li .row-actions { grid-column: 2; }
}

.repo-item > summary .row-actions { justify-content: flex-end; }
