/* Hub network (WP-M6): the public /siec page and "Mój węzeł" on /konto. Mobile first; the variables of site.css. */
.mesh-block {margin-top:56px}
.mesh-title {font-size:clamp(1.5rem,3vw,2rem);margin-bottom:20px}
.mesh-cards h3 {font-size:1.1rem}
.mesh-cards p {font-size:.92rem;line-height:1.75}
.mesh-stats {display:grid;grid-template-columns:1fr;gap:16px}
.mesh-stats .skeleton {min-height:120px}
.mesh-stat {display:flex;flex-direction:column;gap:6px;padding:22px}
.mesh-stat-label {font-size:.78rem;color:var(--muted);letter-spacing:.02em}
.mesh-stat-value {font-size:clamp(1.8rem,4vw,2.4rem);line-height:1.1;color:var(--text);font-variant-numeric:tabular-nums}
.mesh-stat small {line-height:1.5}
.mesh-stat-error {grid-column:1/-1}
.mesh-stat-error p {margin-bottom:12px}
.mesh-hubs-card {margin-top:16px}
.mesh-hub-list {list-style:none;margin:0;padding:0;display:grid;gap:10px}
.mesh-hub-row {display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--field)}
.mesh-hub-head {display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.mesh-hub-head h3 {margin:0}
.mesh-steps {list-style:none;counter-reset:mesh-step;margin:0;padding:0;display:grid;gap:18px}
.mesh-steps>li {counter-increment:mesh-step;position:relative;padding:22px 22px 22px 78px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.mesh-steps>li::before {content:counter(mesh-step,decimal-leading-zero);position:absolute;left:20px;top:20px;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--border);border-radius:12px;background:var(--surface-solid);color:var(--accent);font-size:.85rem}
.mesh-steps h3 {font-size:1.05rem;margin-bottom:8px}
.mesh-steps p {font-size:.9rem;margin-bottom:10px}
.mesh-steps p:last-child {margin-bottom:0}
.mesh-block>.actions {margin-top:24px}
.mesh-pre,.mesh-code pre {margin:0;overflow-x:auto;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:var(--field);color:var(--accent);font:0.84rem/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre}
.mesh-page code,.mono {font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.mesh-list {margin:0;padding-left:20px;color:var(--muted);font-size:.92rem}
.mesh-list li {padding:4px 0;line-height:1.7}
.mesh-rules-list li {padding:6px 0}
/* "Mój węzeł" on /konto. */
.mesh-card {margin-bottom:20px}
.mesh-card h3 {margin-bottom:14px}
.mesh-card h4 {margin:24px 0 4px;font-size:.95rem;color:var(--text)}
.small-text {font-size:.85rem}
.mesh-section-title {margin:36px 0 16px;font-size:1.3rem}
.mesh-contribution-head {display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between;margin-bottom:18px}
.mesh-score {display:flex;flex-direction:column}
.mesh-score strong {font-size:clamp(1.9rem,5vw,2.6rem);line-height:1.1;font-variant-numeric:tabular-nums}
.mesh-score span {color:var(--accent);font-weight:600;font-size:.9rem}
.mesh-rank {display:flex;gap:10px;align-items:center;font-size:.9rem}
.mesh-bar {display:grid;gap:6px;margin-bottom:14px}
.mesh-bar-top {display:flex;justify-content:space-between;gap:12px;font-size:.88rem}
.mesh-bar progress {width:100%;height:10px;appearance:none;-webkit-appearance:none;border:0;border-radius:999px;overflow:hidden;background:var(--field);accent-color:#6366f1}
.mesh-bar progress::-webkit-progress-bar {background:var(--field);border-radius:999px}
.mesh-bar progress::-webkit-progress-value {background:var(--gradient);border-radius:999px}
.mesh-bar progress::-moz-progress-bar {background:var(--gradient);border-radius:999px}
.mesh-reasons {margin:8px 0 0;padding-left:20px;font-size:.85rem;color:var(--muted)}
.mesh-node {align-items:flex-start}
.mesh-badges {display:flex;flex-wrap:wrap;gap:6px}
.mesh-actions {display:flex;flex-wrap:wrap;gap:8px;width:100%}
.mesh-actions .button,.mesh-code .button,.mesh-card .button.small {min-height:44px}
.badge.warn {color:var(--warning)}
.badge.danger {color:var(--error)}
.mesh-empty {padding:18px 0}
.mesh-empty strong {display:block;margin-bottom:6px}
.mesh-empty p {margin:0;font-size:.88rem}
.mesh-token-form,.mesh-hub-editor {display:grid;gap:4px}
.mesh-field {display:block}
.mesh-field small {display:block;margin-top:6px;font-weight:400}
.mesh-card select,.mesh-card textarea {display:block;width:100%;min-width:0;min-height:47px;padding:11px 13px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--field);color:var(--text);font:inherit;font-size:1rem}
.mesh-card textarea {resize:vertical;min-height:96px;line-height:1.5}
.mesh-token-form .button,.mesh-hub-editor .button {margin-top:18px;justify-self:start}
.mesh-created {margin-top:22px;display:grid;gap:14px}
.mesh-created>p {margin:0}
.mesh-created .actions {margin-top:4px}
.mesh-code {display:grid;gap:8px}
.mesh-code-head {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:.88rem}
.mesh-rules {border:1px solid var(--border);border-radius:var(--radius-sm);padding:6px 16px 16px;margin:18px 0 0;min-width:0}
.mesh-rules legend {padding:0 6px;font-weight:600;font-size:.9rem;color:var(--text)}
.mesh-check {align-items:center;min-height:44px}
.mesh-hub-nodes {margin-top:12px}
.mesh-hub-edit {margin-top:16px;border-top:1px solid var(--border);padding-top:12px}
.mesh-hub-edit summary {cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--accent)}
@media (min-width:640px) {
  .mesh-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
  .mesh-actions {width:auto}
  .mesh-node .row-info {min-width:220px}
}
@media (min-width:960px) {
  .mesh-stats {grid-template-columns:repeat(4,minmax(0,1fr))}
  .mesh-hub-list {grid-template-columns:repeat(2,minmax(0,1fr))}
  .mesh-rules {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
  .mesh-rules legend {grid-column:1/-1}
}
@media (max-width:639px) {
  .mesh-steps>li {padding:74px 18px 20px}
  .mesh-card {padding:20px}
}
