/* ═══════════════════════════════════════════
   CARAGA DASHBOARD — DASHBOARD.CSS
   Custom CSS Icons · No Emojis
═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   CSS ICON SYSTEM — All icons pure CSS
══════════════════════════════════════════ */
.cic {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

/* Clock icon */
.cic-clock {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.cic-clock::before {
  content: '';
  position: absolute;
  top: 2px; left: 50%;
  width: 2px; height: 4px;
  background: currentColor;
  transform-origin: bottom center;
  transform: translateX(-50%);
  border-radius: 1px;
}
.cic-clock::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 2px;
  background: currentColor;
  transform-origin: left center;
  transform: translateY(-50%);
  border-radius: 1px;
}

/* Timeline icon — vertical line with dots */
.cic-timeline {
  width: 14px; height: 16px;
}
.cic-timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 0;
  width: 2px; height: 100%;
  background: currentColor;
  border-radius: 1px;
}
.cic-timeline::after {
  content: '';
  position: absolute;
  left: 2px; top: 3px;
  width: 8px; height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 7px 0 currentColor;
}

/* Flow icon — 3 connected nodes */
.cic-flow {
  width: 16px; height: 14px;
}
.cic-flow::before {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 6px; height: 5px;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.cic-flow::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 6px; height: 5px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: -8px 0 0 0 currentColor, -8px 0 0 2px transparent;
}

/* Review icon — 3 horizontal bars with check */
.cic-review {
  width: 16px; height: 14px;
}
.cic-review::before {
  content: '';
  position: absolute;
  left: 0; top: 1px;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

/* Link icon — two overlapping rectangles */
.cic-link {
  width: 16px; height: 14px;
}
.cic-link::before {
  content: '';
  position: absolute;
  top: 1px; left: 0;
  width: 8px; height: 12px;
  border: 2px solid currentColor;
  border-radius: 6px;
  border-right: none;
}
.cic-link::after {
  content: '';
  position: absolute;
  top: 1px; right: 0;
  width: 8px; height: 12px;
  border: 2px solid currentColor;
  border-radius: 6px;
  border-left: none;
}

/* Globe */
.cic-globe {
  width: 22px; height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.cic-globe::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 100%;
  border-left: 1.5px solid currentColor;
  transform: translateX(-50%);
}
.cic-globe::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 0;
  border-top: 1.5px solid currentColor;
  transform: translateY(-50%);
}

/* File */
.cic-file {
  width: 18px; height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.cic-file::before {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--white, #fff);
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0 3px;
}
.cic-file::after {
  content: '';
  position: absolute;
  top: 10px; left: 3px;
  width: 10px; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 4px 0 currentColor;
}

/* Atom / React */
.cic-atom {
  width: 22px; height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.cic-atom::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px;
  width: 26px; height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: rotate(60deg);
}
.cic-atom::after {
  content: '';
  position: absolute;
  top: -3px; left: -3px;
  width: 26px; height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: rotate(-60deg);
}

/* Router — 3-way branch */
.cic-router {
  width: 20px; height: 20px;
}
.cic-router::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 10px;
  background: currentColor;
  transform: translateX(-50%);
  border-radius: 1px;
}
.cic-router::after {
  content: '';
  position: absolute;
  top: 8px; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: -4px 8px 0 currentColor, 20px 8px 0 currentColor;
}

/* Layout — header + content */
.cic-layout {
  width: 20px; height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.cic-layout::before {
  content: '';
  position: absolute;
  top: 3px; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
}
.cic-layout::after {
  content: '';
  position: absolute;
  top: 9px; left: 3px;
  width: 5px; height: 5px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 7px 0 0 currentColor;
}

/* Menu / Hamburger */
.cic-menu {
  width: 18px; height: 14px;
}
.cic-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

/* Footer — rect at bottom */
.cic-footer {
  width: 20px; height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.cic-footer::before {
  content: '';
  position: absolute;
  bottom: 3px; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
}

/* Loader — partial circle arc */
.cic-loader {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
}

/* Data / JSON stacked */
.cic-data {
  width: 20px; height: 18px;
}
.cic-data::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.cic-data::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 6px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 0 -5px 0 0 var(--bg, #fafafa), 0 -5px 0 2px currentColor;
}

/* Import — down arrow into box */
.cic-import {
  width: 20px; height: 20px;
}
.cic-import::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 12px;
  background: currentColor;
  transform: translateX(-50%);
  border-radius: 1px;
}
.cic-import::after {
  content: '';
  position: absolute;
  top: 6px; left: 4px;
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Wrench */
.cic-wrench {
  width: 18px; height: 18px;
}
.cic-wrench::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 5px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.cic-wrench::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 7px; height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

/* Constants — curly braces */
.cic-const {
  width: 18px; height: 18px;
  font-size: 14px;
  font-weight: 900;
  color: currentColor;
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cic-const::before { content: '{}'; font-size: 13px; font-weight: 900; }

/* State — circular arrows */
.cic-state {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
}
.cic-state::after {
  content: '';
  position: absolute;
  top: -2px; right: -1px;
  width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* Screen / Render */
.cic-screen {
  width: 22px; height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.cic-screen::before {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  width: 8px; height: 4px;
  border: 2px solid currentColor;
  border-top: none;
  transform: translateX(-50%);
}
.cic-screen::after {
  content: '';
  position: absolute;
  top: 3px; left: 5px;
  width: 5px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

/* User / Person */
.cic-user {
  width: 18px; height: 20px;
}
.cic-user::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 9px; height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}
.cic-user::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 9px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 0 0;
  border-bottom: none;
}

/* Chevrons */
.cic-chev-l {
  width: 10px; height: 10px;
  border-left: 2px solid var(--prussian-blue, #14213d);
  border-bottom: 2px solid var(--prussian-blue, #14213d);
  transform: rotate(45deg);
}
.cic-chev-r {
  width: 10px; height: 10px;
  border-right: 2px solid var(--prussian-blue, #14213d);
  border-top: 2px solid var(--prussian-blue, #14213d);
  transform: rotate(45deg);
}

/* X / Close */
.cic-x {
  width: 14px; height: 14px;
}
.cic-x::before, .cic-x::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 2px;
  background: var(--text, #14213d);
  border-radius: 1px;
}
.cic-x::before { transform: translateY(-50%) rotate(45deg); }
.cic-x::after  { transform: translateY(-50%) rotate(-45deg); }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.dash-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--prussian-blue);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: 'Inter', sans-serif;
}
.dash-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 58px; gap: 20px;
}
.dash-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.dash-brand-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }
.dash-brand-text { color: rgba(255,255,255,.6); font-size: 13px; font-weight: 700; }
.dash-brand-text span { color: var(--white); }
.dash-tabs { display: flex; gap: 2px; }
.dash-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 8px; border: none;
  background: transparent; color: rgba(255,255,255,.45);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; transition: all .2s ease;
  font-family: 'Inter', sans-serif;
}
.dash-tab .cic { color: rgba(255,255,255,.45); transition: color .2s; }
.dash-tab:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }
.dash-tab:hover .cic { color: rgba(255,255,255,.85); }
.dash-tab.active { background: var(--orange); color: var(--black); }
.dash-tab.active .cic { color: var(--black); }
.dash-live-clock {
  font-size: 11px; color: rgba(255,255,255,.35);
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
  white-space: nowrap; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   VIEWS
══════════════════════════════════════════ */
.dash-view { display: none; animation: vFadeIn .3s ease; }
.dash-view.active { display: block; }
@keyframes vFadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 36px 28px 80px; }

/* ══════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════ */
.page-hero {
  background: var(--prussian-blue); border-radius: var(--radius);
  padding: 40px 44px; margin-bottom: 32px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 36px,
    rgba(255,255,255,.015) 36px, rgba(255,255,255,.015) 72px);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-block; border: 1px solid rgba(252,163,17,.45);
  color: var(--orange); font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 12px;
}
.page-hero h1 { color: var(--white); font-size: clamp(22px,4vw,36px); font-weight: 900; margin-bottom: 6px; }
.page-hero h1 span { color: var(--orange); }
.page-hero p { color: rgba(255,255,255,.5); font-size: 14px; }
.section-gap { margin-top: 52px; }

/* ══════════════════════════════════════════
   TIME-IN: QUICK BAR
══════════════════════════════════════════ */
.quick-bar {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 24px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.quick-bar-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); flex-shrink: 0;
}
.pulse-dot {
  width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.4)} 50%{box-shadow:0 0 0 5px rgba(34,197,94,0)} }
.quick-members { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.qm-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1.5px solid var(--border); border-radius: 100px; background: var(--white);
  cursor: pointer; font-size: 12px; font-weight: 600; transition: all .2s ease;
  font-family: 'Inter', sans-serif;
}
.qm-btn:hover { border-color: var(--orange); }
.qm-btn.is-in { background: #f0fdf4; border-color: #86efac; color: #166534; }
.qm-av {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--white);
}
.qm-sub { font-size: 9px; color: var(--muted); margin-top: 1px; display: block; }
.qm-btn.is-in .qm-sub { color: #22c55e; }

/* ══════════════════════════════════════════
   TIME-IN: CALENDAR
══════════════════════════════════════════ */
.month-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 18px; }
.month-title { font-size: 22px; font-weight: 900; min-width: 220px; text-align: center; }
.month-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.month-btn:hover { border-color: var(--orange); background: #fff7ed; }

.cal-wrap {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow);
}
.cal-day-headers {
  display: grid; grid-template-columns: repeat(7,1fr);
  background: var(--prussian-blue);
}
.cal-day-headers div {
  padding: 12px; text-align: center; font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.cal-day-headers div:first-child,
.cal-day-headers div:last-child { color: rgba(252,163,17,.75); }

.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-cell {
  min-height: 108px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 8px; cursor: pointer; transition: background .15s ease;
  display: flex; flex-direction: column; gap: 3px; position: relative;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: #fafafa; }
.cal-cell.empty { background: #f9f9f9; cursor: default; }
.cal-cell.today { background: #fffbeb; }
.cal-cell.today .cell-num { background: var(--orange); color: var(--white); }
.cal-cell.is-phase { border-top: 3px solid var(--orange); }
.cal-cell.weekend .cell-num { color: var(--orange); }
.cal-cell.out-range { opacity: .3; cursor: default; }
.cell-num {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; align-self: flex-start;
}
.cell-phase-lbl { font-size: 8.5px; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; }
.cell-avatars { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.cell-av {
  width: 20px; height: 20px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800; color: var(--white); position: relative;
}
.cell-av.done::after {
  content: ''; position: absolute; bottom: -2px; right: -2px;
  width: 6px; height: 6px; background: #22c55e;
  border-radius: 50%; border: 1px solid var(--white);
}
.cell-count { font-size: 8px; color: var(--muted); font-weight: 600; }

.cal-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding: 14px 18px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 32px;
}
.leg-item { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.leg-dot { width: 10px; height: 10px; border-radius: 3px; }
.leg-phase { background: var(--orange); border-radius: 0; width: 14px; height: 3px; margin-top: 2px; }
.leg-today { background: var(--orange); border-radius: 50%; }

/* ══════════════════════════════════════════
   TIME-IN: LOG TABLE
══════════════════════════════════════════ */
.log-section { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.log-header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px;
}
.log-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dash-select {
  padding: 7px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text); font-size: 13px; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.danger-btn {
  padding: 7px 14px; border: 1.5px solid #fecaca; border-radius: var(--radius-sm);
  background: #fff5f5; color: #dc2626; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif;
}
.danger-btn:hover { background: #fee2e2; }
.table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  padding: 11px 16px; text-align: left; font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  background: #f9fafb; border-bottom: 1px solid var(--border);
}
.dash-table td { padding: 13px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: #fafafa; }
.empty-row td { text-align: center; color: var(--muted); padding: 40px; font-style: italic; }
.log-av {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--white);
}
.log-member-cell { display: flex; align-items: center; gap: 10px; }
.stat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 700;
}
.stat-in  { background: #dcfce7; color: #166534; }
.stat-out { background: #dbeafe; color: #1e40af; }

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.52); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; opacity: 0; pointer-events: none; padding: 20px;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white); border-radius: 20px; width: 100%; max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(18px) scale(.97); transition: transform .25s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-hdr {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 26px 26px 0;
}
.modal-day-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.modal-date-title { font-size: 22px; font-weight: 900; }
.modal-phase-pill {
  display: inline-block; margin-top: 6px; padding: 4px 12px;
  background: #fff7ed; color: #c2410c; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; border-radius: 100px;
}
.modal-phase-pill:empty { display: none; }
.modal-close-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.modal-close-btn:hover { background: #f1f5f9; }
.modal-members-list { padding: 16px 26px; display: flex; flex-direction: column; gap: 8px; }
.mm-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 13px;
  cursor: pointer; transition: all .2s; gap: 10px;
}
.mm-row:hover { border-color: var(--orange); background: #fffbeb; }
.mm-row.has-in { border-color: #86efac; background: #f0fdf4; }
.mm-row.has-both { border-color: #93c5fd; background: #eff6ff; }
.mm-left { display: flex; align-items: center; gap: 12px; }
.mm-av {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--white); flex-shrink: 0;
}
.mm-name { font-size: 14px; font-weight: 700; }
.mm-role { font-size: 10px; color: var(--muted); margin-top: 1px; }
.mm-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mm-time { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mm-time span { font-weight: 700; color: var(--text); }
.mm-action-btn {
  padding: 6px 14px; border-radius: 100px; border: none;
  font-size: 11px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.btn-in   { background: var(--orange); color: var(--black); }
.btn-out  { background: var(--prussian-blue); color: var(--white); }
.btn-done { background: var(--alabaster); color: var(--muted); cursor: default; }
.mm-action-btn:hover:not(.btn-done) { opacity: .85; transform: scale(1.04); }
.modal-footer-note { padding: 14px 26px 22px; text-align: center; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); }

/* ══════════════════════════════════════════
   FLOW PAGE
══════════════════════════════════════════ */
.flow-subtabs {
  display: flex; gap: 6px; margin-bottom: 32px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 5px;
}
.flow-stab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px; border: none; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .2s; font-family: 'Inter', sans-serif;
}
.flow-stab:hover { color: var(--prussian-blue); }
.flow-stab.active { background: var(--prussian-blue); color: var(--white); }
.flow-stab.active .fstab-pip { background: var(--orange); }
.fstab-pip { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; flex-shrink: 0; }

.flow-panel { display: none; }
.flow-panel.active { display: block; animation: vFadeIn .3s ease; }

/* Flowchart */
.flowchart { display: flex; flex-direction: column; align-items: center; }
.fc-level {
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap; width: 100%; max-width: 1100px;
}
.fc-row-3,.fc-row-pages,.fc-row-data,.fc-row-ui,.fc-row-consume {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.fc-arrow-down {
  width: 2px; height: 32px; background: var(--border);
  margin: 0 auto; position: relative;
}
.fc-arrow-down::after {
  content: ''; position: absolute; bottom: -7px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 8px solid var(--border);
}

.fc-node {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; flex-shrink: 0;
}
.fc-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.fc-cic-wrap { display: flex; justify-content: center; margin-bottom: 8px; color: var(--muted); }
.fc-node-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.fc-node-sub { font-size: 11px; color: var(--muted); line-height: 1.5; }
.fc-node-tag {
  display: inline-block; margin-top: 8px; padding: 3px 10px;
  background: #fff7ed; color: #c2410c; font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; border-radius: 100px;
}

.fc-start  { border-color: var(--orange); border-width: 2px; min-width: 280px; }
.fc-entry  { border-color: var(--prussian-blue); min-width: 260px; }
.fc-jsx    { border-color: #7c3aed; min-width: 260px; background: #faf5ff; }
.fc-app    { border-color: var(--orange); border-width: 2px; min-width: 300px; background: #fffbeb; }
.fc-layout { min-width: 280px; }
.fc-comp   { min-width: 200px; max-width: 240px; text-align: left; }
.fc-page   { min-width: 140px; max-width: 165px; text-align: left; border-color: #7c3aed; }
.fc-page:hover { border-color: var(--orange); }
.fc-page-route {
  font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 5px;
}
.fc-page-list { list-style: none; margin-top: 6px; }
.fc-page-list li {
  font-size: 11px; color: var(--muted);
  padding: 2px 0; border-bottom: 1px dotted var(--border);
}
.fc-page-list li:last-child { border: none; }
.fc-ui   { min-width: 140px; max-width: 180px; text-align: left; }
.fc-ui-label { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.fc-ui-sub   { font-size: 11px; color: var(--muted); }
.fc-data    { min-width: 160px; max-width: 190px; text-align: left; border-color: #059669; }
.fc-import  { min-width: 340px; }
.fc-util    { min-width: 180px; max-width: 210px; text-align: left; border-color: #d97706; }
.fc-render  { min-width: 360px; border-color: #22c55e; border-width: 2px; background: #f0fdf4; }
.fc-consume { min-width: 230px; text-align: left; border-color: var(--prussian-blue); }
.fc-consume-title { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.fc-consume-arrow { font-size: 10px; color: #059669; font-weight: 700; margin-bottom: 6px; }
.fc-consume-code {
  font-family: 'Courier New', monospace; font-size: 9.5px;
  background: #f3f4f6; padding: 5px 8px; border-radius: 5px;
  color: var(--prussian-blue); word-break: break-all;
}

/* Folder tree */
.folder-tree {
  background: var(--prussian-blue); border-radius: var(--radius);
  padding: 28px 32px; font-family: 'Courier New', monospace;
  color: rgba(255,255,255,.7); font-size: 13px; line-height: 2;
}
.ft-root { color: var(--orange); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ft-children { padding-left: 22px; border-left: 1px dashed rgba(255,255,255,.15); margin-left: 8px; }
.ft-folder { color: rgba(255,255,255,.85); font-weight: 600; }
.ft-file   { color: rgba(255,255,255,.5); }
.ft-file.highlight { color: var(--orange); font-weight: 700; }

/* JSON samples */
.json-samples { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px; }
.json-card { background: var(--prussian-blue); border-radius: var(--radius); overflow: hidden; }
.json-card-title {
  padding: 12px 18px; background: rgba(0,0,0,.3);
  font-size: 12px; font-weight: 700; color: var(--orange); letter-spacing: 1px;
}
.json-code {
  padding: 16px 18px; font-family: 'Courier New', monospace; font-size: 11.5px;
  color: rgba(255,255,255,.7); line-height: 1.7; overflow-x: auto;
  white-space: pre; margin: 0;
}

/* Page layouts */
.layout-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 20px; }
.layout-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.layout-card-title {
  padding: 16px 18px; background: var(--prussian-blue);
  color: var(--white); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.layout-route {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  background: var(--orange); color: var(--black); padding: 3px 9px; border-radius: 5px;
}
.layout-mockup { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.lm-block {
  border-radius: 6px; padding: 8px 10px; font-size: 10px; font-weight: 700;
  display: flex; flex-direction: column; gap: 2px;
}
.lm-block span { font-size: 9px; font-weight: 400; opacity: .7; }
.lm-hero     { background: #14213d; color: #fff; min-height: 44px; justify-content: center; }
.lm-about    { background: #f1f5f9; color: var(--prussian-blue); }
.lm-festival { background: #fff7ed; color: #c2410c; }
.lm-cta      { background: var(--orange); color: var(--black); text-align: center; }
.lm-pagetitle{ background: #e5e7eb; color: var(--prussian-blue); }
.lm-filter   { background: #f9fafb; border: 1px dashed #d1d5db; color: var(--muted); }
.lm-sidebar  { background: #f1f5f9; color: var(--prussian-blue); min-height: 60px; }
.lm-main-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lm-prov     { background: #eff6ff; color: #1d4ed8; flex: 1; }
.lm-card-sm  { background: #f5f3ff; color: #6d28d9; flex: 1; font-size: 9px; }
.lm-spot     { background: #f0fdf4; color: #166534; flex: 1; }
.lm-culture  { background: #faf5ff; color: #7c3aed; }
.lm-about-sec{ background: #f1f5f9; color: var(--prussian-blue); }
.lm-modal-hint { background: #000; color: rgba(255,255,255,.6); text-align: center; font-size: 9px; padding: 5px; border-radius: 4px; }
.lm-masonry  { display: flex; gap: 4px; height: 60px; }
.lm-img      { background: #e5e7eb; border-radius: 4px; flex: 1; display: flex; align-items: center; justify-content: center; font-size: 8px; color: var(--muted); }
.lm-img-tall { flex: 1.5; }
.lm-img-sm   { background: #e5e7eb; border-radius: 3px; flex: 1; font-size: 7px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.lm-img-col  { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lm-row-2    { display: flex; gap: 6px; }
.lm-row-3    { display: flex; gap: 4px; }
.layout-who  { padding: 10px 16px 14px; display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--border); }

/* ══════════════════════════════════════════
   REVIEWER — RUBRIC SLIDERS
══════════════════════════════════════════ */
.reviewer-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.rubric-reviewer {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .2s;
}
.rubric-reviewer:hover { box-shadow: var(--shadow-hover); }
.rr-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.rr-score-display { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.rr-score { font-size: 42px; font-weight: 900; color: var(--orange); line-height: 1; min-width: 50px; }
.rr-max   { font-size: 16px; color: var(--muted); font-weight: 600; }
.rr-title { font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.rr-subtitle { font-size: 12px; color: var(--muted); }
.rr-criteria { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.rr-criterion {
  background: #f9fafb; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 12px; font-size: 12px; color: #374151;
}
.rr-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 3px;
  background: var(--alabaster); outline: none; cursor: pointer; margin-bottom: 8px;
}
.rr-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  background: var(--orange); border-radius: 50%; cursor: pointer;
  border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(252,163,17,.4);
}
.rr-bar-outer { height: 5px; background: var(--alabaster); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.rr-bar-fill  { height: 100%; background: var(--orange); border-radius: 3px; transition: width .3s ease; }
.rr-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); font-weight: 600; }

/* Total score box */
.total-score-box {
  background: var(--prussian-blue); border-radius: var(--radius);
  padding: 32px 40px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  margin-bottom: 0;
}
.tsb-left    { flex: 1; min-width: 160px; }
.tsb-label   { font-size: 16px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.tsb-sublabel{ font-size: 12px; color: rgba(255,255,255,.45); }
.tsb-score-wrap{ display: flex; align-items: baseline; gap: 4px; }
.tsb-score   { font-size: 64px; font-weight: 900; color: var(--orange); line-height: 1; }
.tsb-outof   { font-size: 22px; color: rgba(255,255,255,.4); font-weight: 600; }
.tsb-grade   {
  font-size: 22px; font-weight: 900; padding: 12px 24px;
  background: rgba(255,255,255,.08); border-radius: var(--radius);
  color: var(--white); min-width: 180px; text-align: center; transition: color .3s;
}

/* ══════════════════════════════════════════
   REVIEWER — SKILLS CHECKLIST
══════════════════════════════════════════ */
.skills-tabs {
  display: flex; gap: 6px; margin-bottom: 28px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 5px;
}
.skill-stab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px; border: none; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .2s; font-family: 'Inter', sans-serif;
}
.skill-stab:hover { color: var(--prussian-blue); }
.skill-stab.active { background: var(--prussian-blue); color: var(--white); }
.skill-stab.active .sstab-bar { opacity: 1; }
.sstab-bar {
  width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; opacity: .5;
  transition: opacity .2s;
}

.skills-panel { display: none; }
.skills-panel.active { display: block; animation: vFadeIn .3s ease; }

/* Progress bar */
.skills-progress-wrap {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 18px 24px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sp-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.sp-bar-outer { flex: 1; min-width: 160px; height: 8px; background: var(--alabaster); border-radius: 4px; overflow: hidden; }
.sp-bar-fill  { height: 100%; border-radius: 4px; transition: width .4s ease; }
.sp-count { font-size: 13px; font-weight: 800; color: var(--prussian-blue); flex-shrink: 0; min-width: 50px; text-align: right; }

/* Skill groups */
.skill-group { margin-bottom: 20px; }
.sg-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; color: var(--prussian-blue);
  padding: 14px 20px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}
.sg-marker { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

.skill-checks {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.sk-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s; position: relative;
}
.sk-item:last-child { border-bottom: none; }
.sk-item:hover { background: #fafafa; }
.sk-item input { position: absolute; opacity: 0; width: 0; height: 0; }

/* Custom checkbox box */
.sk-box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--border); background: var(--white);
  flex-shrink: 0; margin-top: 1px; position: relative;
  transition: all .2s ease;
}
.sk-item input:checked ~ .sk-box {
  background: var(--orange); border-color: var(--orange);
}
.sk-item input:checked ~ .sk-box::after {
  content: '';
  position: absolute;
  left: 4px; top: 0px;
  width: 6px; height: 10px;
  border: 2px solid var(--white);
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.sk-item input:checked ~ span { color: var(--muted); text-decoration: line-through; }
.sk-item span { font-size: 13px; color: #374151; line-height: 1.5; flex: 1; }

.skills-reset-row {
  display: flex; justify-content: flex-end;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   LINKS PAGE
══════════════════════════════════════════ */
.link-cattabs {
  display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap;
}
.lct {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .2s; font-family: 'Inter', sans-serif;
}
.lct:hover { border-color: var(--prussian-blue); color: var(--prussian-blue); }
.lct.active { background: var(--prussian-blue); color: var(--white); border-color: var(--prussian-blue); }
.lct.active .lct-dot { opacity: 1; }
.lct-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; opacity: .6;
}
.lct span {
  background: rgba(0,0,0,.08); border-radius: 100px;
  padding: 1px 7px; font-size: 10px; font-weight: 800;
}
.lct.active span { background: rgba(255,255,255,.2); }

.link-catpanel { display: none; }
.link-catpanel.active { display: block; animation: vFadeIn .25s ease; }

/* Links list */
.links-list { display: flex; flex-direction: column; gap: 0; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.link-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: background .15s ease;
  position: relative;
}
.link-row:last-child { border-bottom: none; }
.link-row:hover { background: #fafafa; }
.link-row:hover .lr-arr { transform: translateX(4px); }

.lr-num {
  font-size: 11px; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums; min-width: 24px; flex-shrink: 0;
}
.lr-info { flex: 1; }
.lr-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.lr-url   { font-size: 11px; color: var(--muted); font-family: 'Courier New', monospace; }
.lr-arr {
  width: 8px; height: 8px; flex-shrink: 0;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

/* Color accent bars per category */
.lcat-html  { border-left: 3px solid #e44d26; }
.lcat-css   { border-left: 3px solid #264de4; }
.lcat-js    { border-left: 3px solid #f0b429; }
.lcat-json  { border-left: 3px solid #059669; }
.lcat-react { border-left: 3px solid #61dafb; }

/* ══════════════════════════════════════════
   SHARED: CHIPS & REUSED CLASSES
══════════════════════════════════════════ */
.chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; }
.c-l { background: #fff7ed; color: #c2410c; }
.c-j { background: #eff6ff; color: #1d4ed8; }
.c-z { background: #f5f3ff; color: #6d28d9; }
.c-k { background: #fdf4ff; color: #86198f; }
.c-a { background: #f0fdf4; color: #166534; }

code {
  font-family: 'Courier New', monospace;
  background: #f3f4f6; padding: 1px 6px;
  border-radius: 4px; font-size: 11px; color: var(--prussian-blue);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dash-tab { padding: 7px 10px; font-size: 10px; letter-spacing: .5px; }
}
@media (max-width: 900px) {
  .cal-cell { min-height: 80px; padding: 6px; }
  .cell-num { width: 24px; height: 24px; font-size: 12px; }
  .cell-av  { width: 18px; height: 18px; font-size: 7px; }
  .layout-grid { grid-template-columns: 1fr; }
  .fc-row-pages,.fc-row-data,.fc-row-consume { gap: 8px; }
  .total-score-box { padding: 24px; gap: 20px; }
  .tsb-score { font-size: 48px; }
}
@media (max-width: 680px) {
  .dash-nav-inner { padding: 0 12px; gap: 8px; }
  .dash-tab { padding: 6px 8px; gap: 4px; font-size: 9px; letter-spacing: 0; }
  .dash-brand-text { display: none; }
  .dash-live-clock { display: none; }
  .cal-day-headers div { padding: 8px 2px; font-size: 8px; }
  .cal-cell { min-height: 56px; padding: 3px; }
  .cell-num { width: 19px; height: 19px; font-size: 10px; border-radius: 5px; }
  .cell-phase-lbl { display: none; }
  .flow-subtabs { flex-direction: column; }
  .rr-header { flex-direction: column; gap: 10px; }
  .skills-tabs { flex-direction: column; }
  .page-hero { padding: 24px 20px; }
  .folder-tree { padding: 16px; font-size: 11px; }
  .json-code { font-size: 10px; }
  .month-title { font-size: 16px; min-width: 140px; }
  .link-cattabs { gap: 4px; }
  .lct { padding: 8px 12px; font-size: 11px; }
}
@media (max-width: 480px) {
  .page-wrap { padding: 20px 16px 60px; }
  .sk-item { padding: 10px 14px; gap: 10px; }
  .sk-item span { font-size: 12px; }
  .json-samples { grid-template-columns: 1fr; }
  .rr-score { font-size: 32px; min-width: 38px; }
}