/* The admin panel (admin.js) */
.adm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 8px 0 24px; }
.adm-tile { display: grid; gap: 4px; padding: 18px 18px 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.adm-tile small { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.adm-tile b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.adm-tile span { font-size: 13px; color: var(--ink-2); }
.adm-sec { margin: 0 0 28px; }
.adm-sec h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 12px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-q { max-width: 320px; }
.adm-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 120px; align-items: end; padding: 12px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.adm-bars span { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.adm-bars i { display: block; min-height: 2px; border-radius: 6px; background: var(--blue); }
.adm-bars em { position: absolute; top: -2px; left: 0; right: 0; text-align: center; font-size: 11px; font-style: normal; color: var(--ink-3); }
.adm-wrap { overflow-x: auto; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table td small { display: block; font-size: 12px; color: var(--ink-3); }
.adm-table tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) { .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* «Attività» */
.act-tabs { margin: 4px 0 24px; }
.act-table .act-row { cursor: pointer; transition: background .15s; }
.act-table .act-row:hover { background: var(--fill); }
.act-bad { color: var(--red, #ff453a); }
.act-sub { margin: -4px 0 16px; font-size: 14px; color: var(--ink-3); }
.act-steps { list-style: none; margin: 0; padding: 8px 0; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.act-step { display: grid; grid-template-columns: 76px 96px minmax(0, 1fr); gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.act-step:last-child { border-bottom: 0; }
.act-step time { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-3); }
.act-kind { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.act-step.k-call .act-kind { color: var(--blue); }
.act-step.k-error .act-kind, .act-step.k-toast .act-kind { color: var(--red, #ff453a); }
.act-step.k-visit .act-kind { color: var(--mint, #3ddc97); }
.act-where { color: var(--ink-3); font-size: 13px; margin-right: 6px; }
.act-step small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.act-step code { font-size: 12.5px; }
.act-text { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--fill); font: 13px/1.5 inherit; font-family: inherit; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
@media (max-width: 700px) { .act-step { grid-template-columns: 1fr; gap: 2px; } }
.adm-sec .adm-head { margin-bottom: 12px; }
.adm-sec .adm-head h2 { margin: 0; }
.act-back { margin-bottom: 20px; }

.act-said { display: block; margin: 8px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--blue-f, rgb(10 132 255 / .1)); color: var(--ink); font-size: 14.5px; line-height: 1.5; quotes: "«" "»"; white-space: pre-wrap; word-break: break-word; }
.act-more { margin-top: 6px; }
.act-more summary { cursor: pointer; font-size: 12px; color: var(--ink-3); }
.act-more code { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
