/* Attendance ledger: date rail, Check-in log card, table. Console tokens only. */
.al-page{display:flex;flex-direction:column;gap:20px;min-width:0}

.al-rail{box-sizing:border-box;padding:12px 16px;border-radius:20px;background:var(--surface-1);display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.al-month{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.al-month h2{margin:0;font-size:16px;font-weight:700;padding:0 6px;white-space:nowrap}
.al-nav{width:44px;height:44px;border-radius:12px;border:0;background:transparent;color:var(--text-hi);display:flex;align-items:center;justify-content:center;cursor:pointer}
.al-nav:disabled{color:var(--text-lo);cursor:default}
.al-days-scroll{flex:1 1 420px;min-width:0;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:2px}
.al-days{display:flex;gap:6px;width:max-content}
.al-day{flex:0 0 68px;scroll-snap-align:center;height:52px;border-radius:14px;border:0;background:var(--surface-2);color:var(--text-hi);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;cursor:pointer;font:inherit}
.al-day:disabled{background:transparent;color:var(--text-lo);cursor:default}
.al-day-label{font-size:10px;letter-spacing:.08em;color:var(--text-mid)}
.al-day-num{font-size:15px;font-weight:700}
.al-day-selected,.al-day-selected:disabled{background:var(--accent);color:#141414}
.al-day-selected .al-day-label{color:inherit;font-weight:700}
.al-day-selected .al-day-num{font-weight:800}

.al-card{box-sizing:border-box;padding:22px;border-radius:22px;background:var(--surface-1);display:flex;flex-direction:column;gap:16px;min-width:0}
.al-card-top{display:flex;flex-wrap:wrap;align-items:stretch;gap:20px 32px}
.al-controls{flex:0 1 280px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.al-pill{display:flex;align-self:flex-start;padding:2px;border-radius:24px;background:var(--surface-3,var(--surface-2));border:1px solid var(--hairline)}
.al-pill button{height:44px;padding:0 16px;border-radius:22px;border:0;font:inherit;font-size:14px;font-weight:500;color:var(--text-mid);background:transparent;cursor:pointer;white-space:nowrap}
.al-pill .al-pill-on{font-weight:700;color:var(--text-hi);background:var(--surface-2)}
.al-who{display:flex;gap:8px;border-bottom:1px solid var(--hairline);align-self:stretch}
.al-who button{height:48px;padding:0 12px;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;background:transparent;color:var(--text-mid);font:inherit;font-size:15px;font-weight:500;display:flex;align-items:center;gap:8px;cursor:pointer}
.al-who .al-who-on{color:var(--text-hi);font-weight:700;border-bottom-color:var(--accent)}
.al-who-count{font-size:12px;font-weight:700;color:var(--text-hi);padding:2px 8px;border-radius:10px;background:var(--surface-2)}
.al-who .al-who-on .al-who-count{color:#141414;background:var(--accent);font-weight:800}
.al-figures{flex:1 1 0;min-width:0;display:flex;align-items:stretch}
.al-figure{flex:1 1 0;min-width:0;box-sizing:border-box;padding:0 10px 0 14px;border-left:1px solid var(--hairline);display:flex;flex-direction:column;justify-content:center;gap:6px}
.al-figure-label{font-size:11px;font-weight:600;letter-spacing:.04em;line-height:1.3;color:var(--text-mid);text-transform:uppercase}
.al-figure-value{font-size:26px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.al-figure-accent{color:var(--accent)}
.al-trend{flex:0 1 380px;max-width:480px;margin-left:auto;min-width:0;box-sizing:border-box;padding:12px 16px;border-radius:16px;background:var(--surface-2);display:flex;flex-direction:column;gap:8px}
.al-trend-title{font-size:11px;font-weight:600;letter-spacing:.1em;color:var(--text-mid);text-transform:uppercase}
.al-bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;align-items:end;height:60px}
.al-bar{border-radius:6px;background:var(--text-lo)}
.al-bar-current{background:var(--accent)}
.al-bar-labels{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;font-size:11px;color:var(--text-mid);text-align:center}

.al-table-wrap{overflow-x:auto;border-radius:8px;border:1px solid var(--hairline-strong,var(--hairline))}
.al-table{width:100%;min-width:600px;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.al-table th{height:40px;padding:0 12px;border:1px solid var(--hairline);background:var(--surface-2);font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--text-mid);text-align:left;white-space:nowrap;text-transform:uppercase}
.al-table td{height:44px;padding:0 12px;border:1px solid var(--hairline);white-space:nowrap}
.al-table tbody tr.al-odd{background:var(--surface-2)}
.al-table tbody th{font-weight:600;text-align:left;height:44px;padding:0 12px;border:1px solid var(--hairline);white-space:nowrap;background:transparent;font-size:14px;letter-spacing:0;text-transform:none;color:inherit}
.al-table .al-c{text-align:center;width:56px}
.al-table .al-r{text-align:right}
.al-index{color:var(--text-mid)}
.al-name{font-weight:600}
.al-name a{color:inherit;text-decoration:none}
.al-name a:hover{text-decoration:underline}
.al-tag{margin-left:8px;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-mid);padding:2px 6px;border-radius:6px;background:var(--surface-2)}
.al-entries{padding:0}
.al-entries button{width:100%;height:44px;padding:0 12px;border:0;background:transparent;color:var(--text-hi);font:inherit;font-size:14px;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:flex-end;gap:6px;cursor:pointer}
.al-log td{height:auto;padding:8px 12px;background:var(--surface-2);white-space:normal}
.al-log ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px}
.al-log li{display:grid;grid-template-columns:80px 1fr auto;gap:12px;color:var(--text-mid)}
.al-log li span:nth-child(2){color:var(--text-hi)}
.al-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.al-muted{font-size:13px;color:var(--text-mid)}
.al-skeleton{display:flex;flex-direction:column;gap:8px}
@media (max-width:720px){.al-figures{flex-direction:column;gap:12px}.al-figure{border-left:0;padding:0}.al-trend{margin-left:0;flex-basis:100%;max-width:none}}
