/* Think One Access — extends the Think One "Cloud Operations" design
   language (tokens.css). Dark-first command-center theme. Bridges to Geist
   type (used across the Think One brand) and nudges the accent to the
   product's electric indigo. Access-specific component classes live here. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

/* ---- type bridge: Geist for UI, Geist Mono for data ---- */
.t1.acc, .t1.acc * { --sans: "Geist", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.t1.acc { font-family: var(--sans); }

/* ---- accent → electric indigo (light) ---- */
.t1.acc {
  --accent:      #4F46E5;
  --accent-weak: #ECECFD;
  --accent-2:    #6366F1;          /* lifted accent for charts */
  --present:     #178A52;          /* inside  */
  --present-weak:#E0F1E8;
  --absent:      #71767E;          /* outside */
  --absent-weak: #EEF0F1;
}
/* ---- dark theme accent + command-center surfaces ---- */
.t1.acc.t1-dark {
  --accent:      #7C82FF;
  --accent-weak: #1E2040;
  --accent-2:    #8E92FF;
  --present:     #36BE7C;
  --present-weak:#11271D;
  --absent:      #878D98;
  --absent-weak: #1E2128;

  --bg:        #0A0B0E;
  --surface:   #131519;
  --surface-2: #181B21;
  --border:    #262A32;
  --border-2:  #1F232A;
}

/* glow used on the live/“right now” accents */
.acc .glow-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* ===== layout helpers ===== */
.acc .row { display: flex; gap: 16px; }
.acc .col { display: flex; flex-direction: column; }
.acc .grow { flex: 1; min-width: 0; }

/* ===== KPI / stat card ===== */
.acc .stat { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 17px; display: flex; flex-direction: column; gap: 12px; }
.acc .stat-top { display: flex; align-items: center; gap: 9px; }
.acc .stat-ic { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; background: var(--surface-2); color: var(--muted); flex: 0 0 auto; }
.acc .stat-lab { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.acc .stat-val { font-family: var(--mono); font-size: 32px; font-weight: 600; letter-spacing: -.03em;
  line-height: 1; color: var(--ink); }
.acc .stat-sub { font-size: 12px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.acc .delta-up   { color: var(--ok); }
.acc .delta-down { color: var(--crit); }

/* ===== segmented control ===== */
.acc .seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm); }
.acc .seg > button { appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 5px; white-space: nowrap; transition: background .12s, color .12s; }
.acc .seg > button[data-on="1"] { background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm); }

/* ===== status badge (inside / outside / unknown) ===== */
.acc .sb { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
.acc .sb .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acc .sb--in  { color: var(--present); background: var(--present-weak); }
.acc .sb--out { color: var(--absent);  background: var(--absent-weak); }
.acc .sb--unk { color: var(--warn);    background: var(--warn-weak); }
.acc .sb--internal { color: var(--accent); background: var(--accent-weak); }

/* directional action chip (entry / exit) */
.acc .act { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.acc .act--in  { color: var(--present); }
.acc .act--out { color: var(--absent); }
.acc .act--internal { color: var(--accent); }

/* ===== generic table ===== */
.acc .tbl { width: 100%; }
.acc .tr { display: grid; align-items: center; gap: 12px; padding: 11px 18px;
  border-bottom: 1px solid var(--border-2); }
.acc .th { display: grid; align-items: center; gap: 12px; padding: 10px 18px;
  border-bottom: 1px solid var(--border); }
.acc .th > span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); }
.acc .tr:hover { background: var(--surface-2); }
.acc .tr:last-child { border-bottom: 0; }

/* ===== feed row ===== */
.acc .feed-row { display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border-2); }
.acc .feed-row:last-child { border-bottom: 0; }
.acc .feed-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto; }

/* ===== bars ===== */
.acc .vbar-track { background: var(--surface-2); border-radius: 4px; position: relative; overflow: hidden; }
.acc .vbar-fill  { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); }

/* ===== attendance heatmap ===== */
.acc .heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.acc .heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--surface-2);
  display: block; }

/* ===== timeline rail ===== */
.acc .rail { position: relative; }
.acc .rail::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: var(--border); border-radius: 2px; }
.acc .rail-node { position: relative; padding-left: 26px; padding-bottom: 16px; }
.acc .rail-node::before { content: ""; position: absolute; left: 2px; top: 3px; width: 12px; height: 12px;
  border-radius: 50%; border: 2.5px solid var(--surface); }
.acc .rail-node.in::before  { background: var(--present); }
.acc .rail-node.out::before { background: var(--absent); }
.acc .rail-node.internal::before { background: var(--accent); }

/* nav item */
.acc .nav-item { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px;
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 13.5px;
  transition: background .12s, color .12s; border: 0; background: transparent; width: 100%; text-align: left;
  font-family: var(--sans); }
.acc .nav-item:hover { background: var(--surface-2); color: var(--ink); }
.acc .nav-item[data-on="1"] { background: var(--accent-weak); color: var(--accent); font-weight: 600; }

/* soft card lift on hover for clickable cards */
.acc .lift { transition: border-color .14s, transform .14s; cursor: pointer; }
.acc .lift:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-1px); }

/* skeleton shimmer (loading-state demo) */
.acc .sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--border-2) 50%, var(--surface-2) 100%);
  background-size: 200% 100%; animation: accsk 1.3s ease-in-out infinite; border-radius: 6px; }
@keyframes accsk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes accpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
