/* Systems tab (systems.js) */
.y-intro { margin: 4px 0 0; font-size: 13px; color: #616161; }
.y-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 0 2px; font-size: 14px; font-weight: 600; }
.y-count { display: inline-flex; align-items: center; gap: 6px; }
.y-checked { font-weight: 400; color: #616161; font-size: 13px; margin-left: auto; }
.y-stale { margin: 6px 0; padding: 10px 12px; background: #fff1e3; border: 1px solid #f0c48a; border-radius: 8px; font-size: 13px; color: #5e3b00; }
.y-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: #b5b5b5; vertical-align: middle; }
.y-dot.green { background: #29845a; }
.y-dot.amber { background: #e8a300; }
.y-dot.red { background: #d82c0d; box-shadow: 0 0 0 3px #fde5e0; }
.y-dot.grey { background: #b5b5b5; }
#systemscount .y-dot { width: 8px; height: 8px; margin: 0 3px 0 6px; }
.y-refresh { font: inherit; font-size: 13px; padding: 6px 12px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; cursor: pointer; }
/* Grid of status boxes: most systems fit on one screen. Problems first (sorted in systems.js). */
.y-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.y-empty { color: #616161; font-size: 13px; grid-column: 1 / -1; }
.y-tile { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 9px 11px 10px; border: 1px solid #e3e3e3; border-left: 5px solid #b5b5b5; border-radius: 9px; background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.y-tile:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); transform: translateY(-1px); }
.y-tile:focus-visible { outline: 2px solid #005bd3; outline-offset: 2px; }
.y-tile.green { border-left-color: #29845a; }
.y-tile.amber { border-left-color: #e8a300; background: #fffaf0; }
.y-tile.red { border-left-color: #d82c0d; background: #fff5f3; border-color: #f3b5a8; }
.y-tile.grey { border-left-color: #b5b5b5; background: #fafafa; }
.y-tile-top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #616161; }
.y-tile-light { font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.y-tile.red .y-tile-light { color: #b42309; }
.y-tile.amber .y-tile-light { color: #8a5a00; }
.y-tile.green .y-tile-light { color: #1f6b48; }
.y-tile-area { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.y-tile-name { font-size: 13px; font-weight: 650; color: #303030; line-height: 1.3; }
.y-tile-sum { font-size: 12px; color: #4a4a4a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Details panel (dialog) */
.y-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.y-dialog::backdrop { background: rgba(20, 24, 26, .45); }
.y-dhead { position: sticky; top: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fff; border-bottom: 1px solid #eee; border-top: 6px solid #b5b5b5; }
.y-dhead.green { border-top-color: #29845a; } .y-dhead.amber { border-top-color: #e8a300; } .y-dhead.red { border-top-color: #d82c0d; }
.y-dhead .y-dot { margin-top: 6px; }
.y-dhead h3 { margin: 0 0 3px; font-size: 16px; color: #303030; }
.y-dhead p { margin: 0; font-size: 13px; color: #4a4a4a; }
.y-close { margin-left: auto; font: inherit; font-size: 22px; line-height: 1; padding: 2px 8px; border: 0; border-radius: 8px; background: none; color: #616161; cursor: pointer; }
.y-close:hover { background: #f1f1f1; }
.y-dbody { padding: 4px 18px 18px; font-size: 13px; color: #303030; }
.y-purpose { font-size: 14px; margin: 12px 0 4px; }
.y-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; }
.y-block h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #616161; font-weight: 600; }
.y-block p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.y-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.y-links a { display: inline-block; padding: 5px 10px; border: 1px solid #d4d4d4; border-radius: 999px; font-size: 12px; color: #005bd3; text-decoration: none; background: #fff; }
.y-links a:hover { background: #f2f7fe; border-color: #9fc2f2; }
.y-hist { list-style: none; margin: 0; padding: 0; }
.y-hist li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.y-foot { margin: 14px 0 0; font-size: 12px; color: #8a8a8a; }
@media (max-width: 760px) {
  .y-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .y-checked { margin-left: 0; width: 100%; }
}
