/* Cluster — styles carried over from Planning Poker (static/css/app.css there):
   tokens, header, page scaffolding, forms and buttons, tabs, admin table and the clusters tab. */
:root {
  /* Core brand */
  --pp-primary:        #1976D2;
  --pp-primary-hover:  #1565C0;
  --pp-primary-light:  #E3F2FD;
  --pp-green:          #388E3C;
  --pp-green-hover:    #2E7D32;
  --pp-green-light:    #E8F5E9;
  --pp-red:            #D32F2F;
  --pp-red-light:      #FFEBEE;
  --pp-red-border:     #f3caca;
  --pp-warn:           #F57C00;
  --pp-warn-light:     #FFF3E0;
  --pp-warn-border:    #f5d9b8;
  --pp-neutral-border: #dbe3ea;



  /* Ink / text */
  --pp-ink:            #1a1a2e;
  --pp-text:           #363636;
  --pp-grey:           #7a7a7a;
  --pp-grey-light:     #b5b5b5;
  --pp-grey-lighter:   #dbdbdb;
  --pp-grey-faint:     #c9c9c9;

  /* Surfaces / borders */
  --pp-bg-app:         #f8f9fa;
  --pp-bg-warm:        #faf8f5;
  --pp-bg-cool:        #f0f4f8;
  --pp-bg-inset:       #fcfcfc;
  --pp-white:          #ffffff;
  --pp-border:         #e8e8e8;
  --pp-border-light:   #f0f0f0;
  --pp-border-input:   #dbdbdb;
  --pp-border-header:  #ebebeb;

  /* Type */
  --pp-display: "Source Serif 4", "Bookman Old Style", Georgia, "Times New Roman", serif;
  --pp-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii / shadow */
  --pp-radius:      6px;
  --pp-radius-md:   8px;
  --pp-radius-card: 10px;
  --pp-radius-lg:   12px;
  --pp-radius-full: 9999px;
  --pp-shadow-card: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
  --pp-shadow-float: 0 20px 60px rgba(0, 0, 0, 0.14);
  --pp-focus-ring: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--pp-sans);
  background: var(--pp-bg-app);
  color: var(--pp-text);
  -webkit-font-smoothing: antialiased;
}


/* ── Header (fragments/header.html) ─────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  height: 64px;
  background: var(--pp-white);
  border-bottom: 1px solid var(--pp-border-header);
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--pp-ink);
  text-decoration: none;
  white-space: nowrap;
}
.app-brand span { font-size: 21px; }
.app-nav { display: flex; align-items: stretch; gap: 4px; height: 64px; margin-left: 18px; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pp-grey);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.app-nav a i { font-size: 13px; }
.app-nav a:hover { color: var(--pp-ink); }
.app-nav a[aria-current="page"] { color: var(--pp-ink); border-bottom-color: var(--pp-primary); }
.app-header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.header-rule { width: 1px; height: 26px; background: var(--pp-border); flex: none; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--pp-radius);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-grey);
  text-decoration: none;
}
.header-link:hover, .header-link[aria-current="page"] { background: #f5f5f5; color: var(--pp-ink); }
.header-link i { color: var(--pp-warn); }
.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-ink);
  text-decoration: none;
}
.header-chip:hover { border-color: var(--pp-primary); }
.header-chip img { width: 20px; height: 28px; border-radius: 4px; object-fit: cover; }
button.header-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--pp-radius);
  background: transparent;
  color: var(--pp-grey);
  font-size: 14px;
}
button.header-icon-btn:hover { background: #f5f5f5; color: var(--pp-ink); }
.header-outline, .header-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-border-input);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-outline:hover { background: #f5f5f5; }
.header-outline i { color: var(--pp-primary); }
.header-dark { background: var(--pp-ink); border-color: var(--pp-ink); color: var(--pp-white); }
.header-dark:hover { background: #2c2c48; }
@media (max-width: 800px) {
  .app-header { padding: 0 12px; gap: 8px; }
  .app-nav { margin-left: 4px; }
  .app-nav a { padding: 0 8px; }
  .app-nav a i, .header-link, .header-chip span,
  .app-header .header-rule { display: none; }
  .header-chip { padding: 4px; }
}
@media (max-width: 480px) {
  .app-brand { font-size: 0; gap: 0; }
}

.inline-form { display: inline-flex; margin: 0; }

/* ── Page scaffolding ──────────────────────────────────────────── */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 24px 64px;
}
.page-title {
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--pp-ink);
  margin: 0 0 6px;
}
.page-title .muted { color: var(--pp-grey-light); font-weight: 400; }
.page-sub {
  font-size: 15.5px;
  color: var(--pp-grey);
  line-height: 1.5;
  margin: 0 0 26px;
  max-width: 64ch;
}
.card {
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-card);
}

/* !important so it also wins over flex/grid utility blocks */
.hidden { display: none !important; }

/* Kicker — small uppercase section label */
.kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pp-grey);
  margin: 0 0 10px;
}

/* ── Forms & buttons ───────────────────────────────────────────── */
form { display: flex; gap: 10px; flex-wrap: wrap; }

input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius);
  background: var(--pp-white);
  color: var(--pp-text);
  font-family: var(--pp-sans);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]::placeholder { color: var(--pp-grey-light); }
input[type="text"]:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: var(--pp-focus-ring);
}

textarea {
  padding: 10px 12px;
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius);
  font-family: var(--pp-sans);
  font-size: 14px;
  background: var(--pp-white);
  color: var(--pp-ink);
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
textarea::placeholder { color: var(--pp-grey-light); }
textarea:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: var(--pp-focus-ring);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 38px 12px 14px;
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius);
  background: var(--pp-white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23757575' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  color: var(--pp-ink);
  font-family: var(--pp-sans);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
select:hover { border-color: var(--pp-grey-light); }
select:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: var(--pp-focus-ring);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--pp-radius);
  background: var(--pp-primary);
  color: #fff;
  font-family: var(--pp-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
button:hover { background: var(--pp-primary-hover); }
button:disabled { background: var(--pp-grey-lighter); color: #fff; cursor: default; }

button.secondary {
  background: var(--pp-white);
  color: var(--pp-ink);
  border: 1px solid var(--pp-border-input);
}
button.secondary:hover { background: #f5f5f5; }
button.secondary i { color: var(--pp-primary); }

/* Danger = outline red (destructive but quiet) */
button.danger {
  background: var(--pp-white);
  color: var(--pp-red);
  border: 1px solid var(--pp-red-border);
}
button.danger:hover { background: var(--pp-red-light); }
button.danger i { color: var(--pp-red); }


/* Profile tabs */
.profile-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--pp-border); margin: 4px 0 24px; }
.profile-tabs a { display: flex; align-items: center; gap: 8px; padding: 0 0 12px; font-size: 14.5px;
  font-weight: 500; color: var(--pp-grey); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.profile-tabs a:hover { color: var(--pp-ink); }
.profile-tabs a.active { color: var(--pp-ink); font-weight: 600; border-bottom-color: var(--pp-primary); }
.profile-tabs .tab-count { font-size: 11.5px; font-weight: 600; background: var(--pp-primary-light);
  color: var(--pp-primary); padding: 2px 7px; border-radius: var(--pp-radius-full); }

/* ── Centered single-message page (landing) ───────────────────────── */
.error-page { max-width: 520px; margin: 0 auto; padding: 80px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.error-title { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: 30px; color: var(--pp-ink); }
.error-page p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--pp-grey); max-width: 44ch; text-wrap: pretty; }
.error-back { margin-top: 10px; display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: var(--pp-radius); background: var(--pp-primary); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.error-back:hover { background: var(--pp-primary-hover); }

/* ── Admin (admin.html + js/admin-sort.js) ─────────────────────────── */
.admin-page { max-width: 1120px; padding: 44px 28px 80px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border-radius: var(--pp-radius-lg); }
.admin-stat-label { font-size: 13px; font-weight: 600; color: var(--pp-grey); }
.admin-stat-label i { color: var(--pp-primary); margin-right: 6px; }
.admin-stat-label i.green { color: var(--pp-green); }
.admin-stat-value { font-family: var(--pp-display); font-weight: 700; font-size: 36px; color: var(--pp-ink); }
.admin-table-wrap { overflow-x: auto; padding: 0; border-radius: var(--pp-radius-lg); }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 12px 16px; border-bottom: 1px solid #ececec; background: var(--pp-bg-inset); text-align: left; }
.admin-table th.num { text-align: right; }
.admin-table th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: none; background: transparent; color: var(--pp-grey); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.admin-table th button:hover { background: transparent; color: var(--pp-ink); }
.admin-table th[aria-sort="ascending"] button, .admin-table th[aria-sort="descending"] button { color: var(--pp-ink); }
.admin-table th button i { font-size: 10px; color: var(--pp-grey-light); }
.admin-table th[aria-sort="ascending"] button i, .admin-table th[aria-sort="descending"] button i { color: var(--pp-primary); }
.admin-table td { padding: 11px 16px; border-bottom: 1px solid #f3f3f3; color: var(--pp-text); }
.admin-table tbody tr:hover { background: #fafbfc; }
.admin-table td.muted { color: var(--pp-grey); }
.admin-table td.nowrap { white-space: nowrap; }
.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--pp-ink); font-weight: 600; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user img { width: 20px; height: 28px; border-radius: 4px; object-fit: cover; }
.admin-user b { font-weight: 600; color: var(--pp-ink); }
.provider-github { color: #24292e; margin-right: 6px; }
.provider-google { color: var(--pp-red); margin-right: 6px; }


/* ── Cluster page (cluster.html + js/admin-clusters.js) ─────────────── */
.cl-page { max-width: 1360px; display: flex; flex-direction: column; gap: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cl-kicker { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .05em; }
.cl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.cl-head-text { flex: 1 1 520px; min-width: 0; }
.cl-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.cl-title { margin: 0; font-family: var(--pp-display); font-size: 38px; font-weight: 700; line-height: 1.15; color: var(--pp-ink); letter-spacing: -0.01em; }
.cl-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #555; }
.cl-sub b { color: var(--pp-ink); }
.cl-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--pp-radius); font-size: 14px; font-weight: 600; }
.cl-badge-ok { background: var(--pp-green-light); color: #1B5E20; }
.cl-badge-bad { background: var(--pp-red-light); color: #B71C1C; }
.cl-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
a.cl-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--pp-radius);
  border: 1px solid var(--pp-neutral-border); background: var(--pp-white); color: var(--pp-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
a.cl-btn:hover { border-color: #90CAF9; }
a.cl-btn i { color: var(--pp-primary); }
a.cl-btn-primary { background: var(--pp-primary); border-color: var(--pp-primary); color: #fff; }
a.cl-btn-primary:hover { background: var(--pp-primary-hover); }
a.cl-btn-primary i { color: #fff; }
.card.cl-error { display: flex; gap: 14px; padding: 20px 22px; border: 1px solid var(--pp-red-border); box-shadow: none; background: #fff; color: #5f1414; }
.cl-error-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--pp-red-light); color: #B71C1C; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.cl-error b { color: var(--pp-ink); }
.cl-error p { margin: 4px 0 0; }

/* Cards on this page: thin border, quiet shadow */
.cl-page .card { border: 1px solid var(--pp-border); border-radius: var(--pp-radius-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }

.cl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.cl-stat { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.cl-stat-main { font-size: 14px; color: #555; }
.cl-stat-main b { font-size: 28px; font-weight: 700; color: var(--pp-ink); margin-right: 4px; }
.cl-stat-note { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: #555; }
.cl-stat-note b { color: var(--pp-ink); }
.cl-t-bad { color: #B71C1C !important; }
.cl-branches { gap: 6px; }
.cl-stack { display: flex; height: 8px; border-radius: var(--pp-radius-full); overflow: hidden; background: #eceff1; }
.cl-stack-ok { background: #81C784; }
.cl-stack-custom { background: #E65100; }
.cl-stack-bad { background: #C62828; }
.cl-stack-done { background: #bdbdbd; }

.cl-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cl-h { margin: 0; font-family: var(--pp-display); font-size: 22px; font-weight: 700; color: var(--pp-ink); }
.cl-h-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.cl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #555; }
.cl-legend > span { display: inline-flex; align-items: center; gap: 6px; }

/* Pod state dots: shape and lightness differ, not only hue */
.cl-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cl-dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.cl-dot-ok { background: #81C784; }
.cl-dot-bad { background: #C62828; box-shadow: 0 0 0 2px #FFCDD2; }
.cl-dot-custom { background: #fff; border: 2.5px solid #E65100; }
.cl-dot-done { background: #fff; border: 2px solid #9e9e9e; }
.cl-pill { display: inline-block; padding: 2px 9px; border-radius: var(--pp-radius-full); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cl-pill-ok { background: var(--pp-green-light); color: #1B5E20; }
.cl-pill-bad { background: var(--pp-red-light); color: #B71C1C; }

.cl-bar { position: relative; flex: none; width: 96px; height: 6px; border-radius: var(--pp-radius-full); background: #eceff1; }
.cl-bar-wide { display: block; width: 100%; }
.cl-bar-fill { display: block; width: 0; height: 100%; border-radius: var(--pp-radius-full); background: var(--pp-primary); }
.cl-bar.is-over .cl-bar-fill { background: #C62828; }
.cl-bar-req { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: var(--pp-ink); opacity: .6; }

.cl-icon { flex: none; width: 36px; height: 36px; border-radius: var(--pp-radius-md); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.cl-g-node, .cl-g-devices { background: var(--pp-primary-light); color: #1565C0; }
.cl-g-infra { background: #ECEFF1; color: #37474F; }
.cl-g-security { background: var(--pp-red-light); color: #C62828; }
.cl-g-tickets { background: var(--pp-warn-light); color: #BF4A00; }
.cl-g-meetings { background: #E0F2F1; color: #00695C; }
.cl-g-ai { background: #FCE4EC; color: #AD1457; }
.cl-g-frontend { background: #E8EAF6; color: #283593; }
.cl-g-platform { background: var(--pp-green-light); color: var(--pp-green-hover); }
.cl-g-other { background: #f0f0f0; color: #4a4a4a; }

.cl-nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.cl-node { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.cl-node-top { display: flex; align-items: center; gap: 12px; }
.cl-node-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cl-node-name b { font-size: 16px; color: var(--pp-ink); }
.cl-node-name code, .cl-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #555; }
.cl-node-mem { display: flex; flex-direction: column; gap: 6px; }
.cl-node-mem-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #555; }
.cl-node-mem-label b { color: var(--pp-ink); }
.cl-node-pods { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #555; }
.cl-node-pods > span:first-child { flex: none; }
.cl-node-pods b { color: var(--pp-ink); }

.cl-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cl-areas-wrap { flex: 999 1 640px; }
.cl-attention { flex: 1 1 360px; }
.cl-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
button.cl-area { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--pp-border); border-radius: var(--pp-radius-card);
  background: var(--pp-white); color: inherit; text-align: left; font-weight: 400; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
button.cl-area:hover { background: var(--pp-white); border-color: #90CAF9; }
button.cl-area.has-bad { border-color: var(--pp-red-border); }
button.cl-area[aria-pressed="true"] { border-color: var(--pp-primary); box-shadow: var(--pp-focus-ring); }
.cl-area-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.cl-area-text { display: flex; flex-direction: column; min-width: 0; }
.cl-area-title { font-size: 15px; font-weight: 600; color: var(--pp-ink); }
.cl-area-facts { font-size: 12px; color: #555; }

.cl-problem { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.cl-page .card.cl-problem { border-color: var(--pp-red-border); }
.cl-problem-top { display: flex; align-items: center; gap: 10px; }
.cl-problem-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cl-problem-name b { font-size: 15px; color: var(--pp-ink); overflow-wrap: anywhere; }
.cl-problem-name span { font-size: 12px; color: #555; }
.cl-problem p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.cl-problem-links { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.cl-problem-links a { color: var(--pp-primary); text-decoration: none; }
.cl-problem-links a:hover { text-decoration: underline; }
.cl-calm { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: #1B5E20; font-weight: 600; }

/* Pods: toolbar, tabs, groups */
.cl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cl-toolbar-end { margin-left: auto; flex: 0 1 460px; min-width: min(100%, 260px); display: flex; align-items: center; gap: 8px; }
button.cl-area-chip { height: 32px; padding: 0 10px 0 12px; gap: 6px; border: 1px solid #90CAF9; border-radius: var(--pp-radius-full); background: var(--pp-primary-light);
  color: #0D47A1; font-size: 13px; font-weight: 600; }
button.cl-area-chip:hover { background: #BBDEFB; }
button.cl-area-chip[hidden] { display: none; }
.cl-search { position: relative; flex: 1; min-width: 0; }
.cl-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #555; font-size: 14px; }
.cl-search input { width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px 0 34px; border: 1px solid var(--pp-border-input); border-radius: var(--pp-radius);
  background: var(--pp-white); font: 14px var(--pp-sans); color: var(--pp-ink); }
.cl-search input:focus { outline: none; border-color: var(--pp-primary); box-shadow: var(--pp-focus-ring); }
.cl-fold { flex: none; display: inline-flex; border: 1px solid var(--pp-neutral-border); border-radius: var(--pp-radius); overflow: hidden; background: var(--pp-white); }
.cl-fold button { width: 40px; height: 38px; padding: 0; border-radius: 0; background: var(--pp-white); color: #555; font-size: 13px; }
.cl-fold button + button { border-left: 1px solid var(--pp-neutral-border); }
.cl-fold button:hover { background: #f3f6f9; color: var(--pp-ink); }
.cl-views { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid #e3e7ec; }
.cl-views button { min-height: 46px; margin-bottom: -1px; padding: 0 14px; gap: 8px; border-radius: 0; border-bottom: 2px solid transparent;
  background: transparent; color: #555; font-size: 14px; }
.cl-views button i { font-size: 13px; }
.cl-views button:hover { background: transparent; color: var(--pp-ink); }
.cl-views button[aria-pressed="true"] { color: var(--pp-ink); border-bottom-color: var(--pp-primary); }
.cl-count { min-width: 22px; padding: 0 7px; border-radius: var(--pp-radius-full); font-size: 12px; line-height: 20px; text-align: center; background: #e8ecf0; color: var(--pp-ink); }
.cl-count-bad { background: var(--pp-red-light); color: #B71C1C; }
.cl-count-warn { background: var(--pp-warn-light); color: #A33A00; }
.cl-count-ok { background: var(--pp-green-light); color: #1B5E20; }
.cl-summary { margin: 0 2px 4px; font-size: 13px; color: #555; }
.cl-empty { margin: 0; padding: 28px; text-align: center; color: #555; }

.cl-group { padding: 0; overflow: hidden; }
.cl-group-h { margin: 0; }
button.cl-group-toggle { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 16px; padding: 14px 20px;
  border-radius: 0; background: var(--pp-white); color: inherit; text-align: left; font-weight: 400; }
button.cl-group-toggle:hover { background: #fafbfc; }
.cl-group-text { display: flex; flex-direction: column; flex: 1 1 260px; min-width: 0; }
.cl-group-title { font-family: var(--pp-display); font-size: 17px; font-weight: 700; color: var(--pp-ink); line-height: 1.3; }
.cl-group-desc { font-size: 12.5px; color: #555; }
.cl-group-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; font-weight: 500; color: #555; }
.cl-health { padding: 2px 9px; border-radius: var(--pp-radius-full); font-size: 12px; font-weight: 600; background: var(--pp-green-light); color: #1B5E20; }
.cl-health.is-custom { background: var(--pp-warn-light); color: #A33A00; }
.cl-health.is-bad { background: var(--pp-red-light); color: #B71C1C; }
.cl-chevron { flex: none; color: #555; font-size: 13px; transition: transform .2s; }
.cl-group-toggle[aria-expanded="true"] .cl-chevron { transform: rotate(180deg); }
.cl-body { border-top: 1px solid var(--pp-border-light); }
.cl-body .admin-table-wrap { border-radius: 0; box-shadow: none; }
.cl-table { min-width: 1040px; table-layout: fixed; }
.cl-table th:nth-child(2) { width: 150px; }
.cl-table th:nth-child(3) { width: 120px; }
.cl-table th:nth-child(4) { width: 72px; }
.cl-table th:nth-child(5) { width: 84px; }
.cl-table th:nth-child(6) { width: 112px; }
.cl-table th:nth-child(7) { width: 220px; }
.cl-table th { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .04em; background: #fbfbfc; }
.cl-table td { vertical-align: top; border-bottom-color: var(--pp-border-light); }
.cl-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cl-name b { color: var(--pp-ink); font-weight: 700; }
.cl-kind { font-size: 12px; color: #555; }
a.cl-argo, span.cl-argo { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 4px; background: #E8EAF6;
  color: #283593; font-size: 12px; font-weight: 600; text-decoration: none; }
a.cl-argo:hover { background: #C5CAE9; }
a.cl-argo i { font-size: 10px; }
.cl-tag { padding: 1px 7px; border-radius: 4px; background: #eef1f4; color: #363636; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cl-tag-warn { background: var(--pp-warn-light); color: #A33A00; }
.cl-tag-bad { background: var(--pp-red-light); color: #B71C1C; }
.cl-image { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #555; overflow-wrap: anywhere; }
.cl-image code, .cl-build code, .cl-sub code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 1px 5px; border-radius: 4px; background: #f2f4f6; color: var(--pp-ink); }
.cl-build { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12px; color: #555; }
.cl-build em { color: #555; }
.cl-build b { color: var(--pp-ink); }
.cl-status { font-size: 13px; font-weight: 600; color: #1B5E20; white-space: nowrap; }
.cl-status-done { color: #555; }
.cl-status-bad { color: #B71C1C; }
.cl-mem { display: flex; align-items: center; gap: 10px; }
.cl-pct { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--pp-ink); }
.cl-reqlim { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 400; color: #555; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-foot { margin: 4px 2px 0; font-size: 12.5px; line-height: 1.6; color: #555; }
.cl-foot code { font-size: 12px; }

/* ── Cluster app additions ───────────────────────────────────────── */
.header-chip img, .admin-user img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.admin-grant { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 24px; }
.admin-grant input[type="text"] { font-size: 15px; padding: 10px 12px; }
.admin-table td form { flex-wrap: nowrap; }
.admin-table td button { padding: 6px 12px; font-size: 13px; }
.access-yes { color: var(--pp-green); font-weight: 600; }
.access-no { color: var(--pp-grey); }
.access-admin { color: var(--pp-primary); font-weight: 600; }

/* ── Access page (admin.html + js/admin-access.js) ─────────────────── */
.ac-page { max-width: 1240px; display: flex; flex-direction: column; gap: 24px; }
.ac-page .page-sub { margin: 0; }
.ac-page .card, .na-card { border: 1px solid var(--pp-border); border-radius: var(--pp-radius-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.ac-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ac-list { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ac-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ac-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; border-bottom: 1px solid #e3e7ec; }
.ac-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.ac-tabs button { min-height: 46px; margin-bottom: -1px; padding: 0 14px; gap: 8px; border-radius: 0; border-bottom: 2px solid transparent;
  background: transparent; color: #555; font-size: 14px; }
.ac-tabs button:hover { background: transparent; color: var(--pp-ink); }
.ac-tabs button[aria-pressed="true"] { color: var(--pp-ink); border-bottom-color: var(--pp-primary); }
.ac-count { min-width: 22px; padding: 0 7px; border-radius: var(--pp-radius-full); font-size: 12px; line-height: 20px; text-align: center; background: #e8ecf0; color: var(--pp-ink); }
.ac-search { position: relative; margin: 0 0 6px auto; flex: 0 1 230px; min-width: 180px; }
.ac-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #555; font-size: 13px; }
.ac-search input { width: 100%; height: 36px; box-sizing: border-box; padding: 0 10px 0 32px; border: 1px solid var(--pp-border-input); border-radius: var(--pp-radius);
  font: 14px var(--pp-sans); color: var(--pp-ink); background: var(--pp-white); }
.ac-search input:focus { outline: none; border-color: var(--pp-primary); box-shadow: var(--pp-focus-ring); }
.ac-empty { margin: 0; padding: 28px; text-align: center; color: #555; }
.ac-group { overflow: hidden; }
.ac-group-h { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: #fbfbfc; }
.ac-group-h h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--pp-ink); }
.ac-group-count { font-size: 13px; color: #555; }
.ac-group-note { margin-left: auto; font-size: 12.5px; color: #555; }
.ac-gdot { width: 8px; height: 8px; border-radius: 50%; }
.ac-gdot.ac-admin { background: #3949AB; }
.ac-gdot.ac-granted { background: var(--pp-green); }
.ac-gdot.ac-waiting { background: var(--pp-warn); }
.ac-gdot.ac-none { background: #9e9e9e; }
.ac-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(210px, 1.5fr) 150px 104px; gap: 16px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--pp-border-light); }
.ac-row[hidden] { display: none; }
.ac-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ac-user > div { min-width: 0; }
.ac-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.ac-user b { display: block; font-size: 14px; color: var(--pp-ink); }
.ac-user span:not(.ac-av) { display: block; font-size: 12.5px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.ac-av.ac-admin { background: #E8EAF6; color: #283593; }
.ac-av.ac-granted { background: var(--pp-green-light); color: #1B5E20; }
.ac-av.ac-waiting { background: var(--pp-warn-light); color: #A33A00; }
.ac-av.ac-none { background: #eef0f2; color: #4a4a4a; }
.ac-bind { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 13px; color: var(--pp-ink); }
.ac-bind i { margin-top: 3px; color: #555; font-size: 12px; width: 14px; text-align: center; }
.ac-bind small, .ac-when small { display: block; font-size: 12px; color: #555; }
.ac-bind > span > span { display: block; }
.ac-when { font-size: 13px; color: var(--pp-ink); }
.ac-action { display: flex; justify-content: flex-end; }
button.ac-btn { height: 36px; padding: 0 12px; gap: 6px; font-size: 13px; white-space: nowrap; }
button.ac-btn-grant { background: #F5FAFF; color: #1565C0; border: 1px solid #90CAF9; }
button.ac-btn-grant:hover { background: var(--pp-primary-light); }
button.ac-btn-revoke { background: transparent; color: #B71C1C; }
button.ac-btn-revoke:hover { background: var(--pp-red-light); }
.ac-grant { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; padding: 20px; }
.ac-grant h3, .ac-how h3 { margin: 0; font-family: var(--pp-display); font-size: 19px; color: var(--pp-ink); }
.ac-grant label { font-size: 13px; font-weight: 600; color: var(--pp-ink); }
.ac-grant small { font-size: 12.5px; line-height: 1.5; color: #555; }
.ac-login { display: flex; align-items: center; height: 44px; box-sizing: border-box; border: 1px solid var(--pp-border-input); border-radius: var(--pp-radius); background: var(--pp-white); }
.ac-login:focus-within { border-color: var(--pp-primary); box-shadow: var(--pp-focus-ring); }
.ac-login span { padding: 0 2px 0 12px; color: #555; }
.ac-login input[type="text"] { min-width: 0; height: 42px; padding: 0 12px 0 2px; border: 0; box-shadow: none; font-size: 15px; background: transparent; }
.ac-login input[type="text"]:focus { box-shadow: none; }
.ac-grant button[type="submit"] { height: 44px; padding: 0 16px; font-size: 14px; }
.ac-how { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.ac-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.5; }
.ac-step b { width: 28px; height: 28px; border-radius: 50%; background: var(--pp-primary-light); color: #1565C0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.ac-step strong { color: var(--pp-ink); }
.ac-step strong.ac-t-wait { color: #A33A00; }
.ac-how p { margin: 0; padding-top: 12px; border-top: 1px solid var(--pp-border-light); font-size: 12.5px; line-height: 1.55; color: #555; }
.ac-how code, .na-card code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 1px 5px; border-radius: 4px; background: #f2f4f6; color: var(--pp-ink); }

/* ── No access page ─────────────────────────────────────────────────── */
.na-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; background: var(--pp-white); }
.na-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--pp-primary-light); color: #1565C0; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.na-card h2 { margin: 0; font-family: var(--pp-display); font-size: 26px; color: var(--pp-ink); }
.na-card p { margin: 0; font-size: 15px; line-height: 1.55; }
.na-card b { color: var(--pp-ink); }
