:root {
  --blue: #094689;
  --blue-dark: #06345f;
  --ink: #101d35;
  --muted: #6d7c95;
  --border: #dce4ef;
  --surface: #f3f6fb;
  --green: #16a66a;
  --orange: #f59e0b;
  --red: #ef4661;
  --sidebar: 244px;
  --taruna: #991b1f;
  --taruna-dark: #6f1014;
  --edukasi: #094689;
  --edukasi-dark: #06345f;
  --workspace-accent: var(--blue);
  --topbar: 82px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.modal-open { overflow: hidden; }

.app-shell { min-height: 100vh; }
.sidebar {
  background: var(--workspace-sidebar, var(--blue));
  bottom: 0;
  color: white;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 22px 12px 16px;
  position: fixed;
  top: 0;
  width: var(--sidebar);
  z-index: 60;
}
.brand { align-items: center; display: flex; gap: 11px; padding: 0 10px 25px; }
.brand-mark {
  align-items: center; background: white; border-radius: 10px; display: inline-flex;
  flex: 0 0 auto; height: 38px; justify-content: center; overflow: hidden; padding: 4px; width: 38px;
}
.brand-mark img { display: block; height: 100%; object-fit: contain; width: 100%; }
.brand strong { font-size: 15px; }
.sidebar nav { display: flex; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-group-label { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 800; letter-spacing: 1.3px; padding: 13px 14px 4px; }
.nav-item {
  align-items: center; background: transparent; border: 0; border-radius: 10px; color: rgba(255,255,255,.8);
  display: flex; font-size: 12px; font-weight: 650; gap: 10px; min-height: 43px; padding: 0 14px; text-align: left;
}
.nav-item i { font-size: 18px; font-style: normal; width: 22px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.17); color: white; }
.sidebar-help {
  align-items: center; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; color: white; display: flex; gap: 10px; padding: 11px; text-align: left; width: 100%;
}
.sidebar-help > span { align-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; display: flex; height: 28px; justify-content: center; width: 28px; }
.sidebar-help div { display: flex; flex-direction: column; gap: 2px; }
.sidebar-help b { font-size: 11px; }
.sidebar-help small { color: rgba(255,255,255,.65); font-size: 9px; }

.workspace { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
  align-items: center; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border);
  display: grid; gap: 24px; grid-template-columns: minmax(210px,.8fr) minmax(300px,1.3fr) minmax(270px,.8fr);
  height: var(--topbar); padding: 0 30px; position: sticky; top: 0; z-index: 40;
}
.topbar > h1 { font-size: 22px; letter-spacing: -.6px; margin: 0; }
.mobile-menu { display: none; }
.global-search {
  align-items: center; background: white; border: 1px solid var(--border); border-radius: 11px;
  display: flex; gap: 10px; height: 44px; margin: auto; max-width: 470px; padding: 0 14px; width: 100%;
}
.global-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,70,137,.1); }
.global-search span { color: var(--muted); font-size: 21px; }
.global-search input { border: 0; color: var(--ink); outline: 0; width: 100%; }
.topbar-actions { align-items: center; display: flex; gap: 13px; justify-content: flex-end; }
.notification-button { background: transparent; border: 0; height: 42px; position: relative; width: 42px; }
.notification-button > span { font-size: 21px; }
.notification-button > b {
  align-items: center; background: #ff7112; border: 2px solid white; border-radius: 50%; color: white;
  display: flex; font-size: 8px; height: 18px; justify-content: center; position: absolute; right: 1px; top: 1px; width: 18px;
}
.profile {
  align-items: center; background: transparent; border: 0; border-radius: 10px; color: var(--ink);
  display: flex; gap: 9px; min-width: 185px; padding: 5px 7px; text-align: left;
}
.profile:hover { background: #f3f6fb; }
.profile > div { display: flex; flex: 1; flex-direction: column; }
.profile strong { font-size: 11px; }
.profile small { color: var(--muted); font-size: 9px; }
.profile-chevron { color: var(--muted); font-size: 15px; }
.avatar {
  align-items: center; background: var(--blue); border-radius: 50%; color: white; display: inline-flex;
  flex: 0 0 auto; font-size: 10px; font-weight: 800; height: 36px; justify-content: center; overflow: hidden; width: 36px;
}
.avatar img { height: 100%; object-fit: cover; width: 100%; }
.avatar.small { font-size: 8px; height: 26px; width: 26px; }
.notification-panel {
  background: white; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 18px 50px rgba(19,35,65,.18);
  max-height: 430px; overflow: auto; padding: 10px; position: absolute; right: 215px; top: 72px; width: 340px;
}
.notification-panel header { align-items: center; display: flex; justify-content: space-between; padding: 7px 8px 10px; }
.notification-panel header button { background: transparent; border: 0; color: var(--muted); font-size: 20px; }
.notification-panel #notificationList { display: flex; flex-direction: column; gap: 5px; }
.notification-panel #notificationList button {
  align-items: flex-start; background: #f7f9fd; border: 0; border-radius: 9px;
  display: flex; flex-direction: column; gap: 3px; padding: 10px; text-align: left;
}
.notification-panel #notificationList button:hover { background: #edf3ff; }
.notification-panel #notificationList span { color: var(--orange); font-size: 8px; font-weight: 850; }
.notification-panel #notificationList strong { font-size: 11px; }
.notification-panel #notificationList small { color: var(--muted); font-size: 9px; }

.main-content { padding: 26px 28px 50px; }
.page-actions { align-items: center; display: flex; justify-content: space-between; margin-bottom: 22px; }
.page-actions p, .board-heading p, .calendar-heading p, .team-heading p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.eyebrow { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: 1.4px; }
.primary-button, .secondary-button, .danger-button {
  align-items: center; border-radius: 10px; display: inline-flex; font-size: 11px; font-weight: 750; justify-content: center; min-height: 42px; padding: 0 16px;
}
.primary-button { background: linear-gradient(135deg, #ff7112, #ff8c1a); border: 0; box-shadow: 0 7px 18px rgba(255,113,18,.18); color: white; text-decoration: none; }
.primary-button:hover { filter: brightness(.98); transform: translateY(-1px); }
.secondary-button { background: white; border: 1px solid var(--border); color: var(--ink); }
.danger-button { background: #fff1f3; border: 1px solid #ffd2d9; color: #c42d43; }
.app-view { display: none; }
.app-view.active { display: block; }

.main-dashboard-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.module-summary, .panel {
  background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 3px 10px rgba(18,39,73,.025); overflow: hidden;
}
.module-summary > header { align-items: center; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 18px 20px; }
.module-summary > header > div { align-items: center; display: flex; gap: 10px; }
.module-summary h2 { font-size: 15px; margin: 0; }
.module-summary > header button { background: transparent; border: 0; color: var(--blue); font-size: 9px; font-weight: 700; }
.module-badge { background: #eaf1ff; border-radius: 6px; color: var(--blue); font-size: 8px; font-weight: 850; padding: 6px 7px; }
.module-badge.green { background: #e6f8f0; color: var(--green); }
.mini-metrics { display: grid; grid-template-columns: repeat(4,1fr); padding: 16px 18px 10px; }
.mini-metrics > div { border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; padding: 0 12px; }
.mini-metrics > div:last-child { border: 0; }
.mini-metrics small { color: var(--muted); font-size: 8px; }
.mini-metrics b { font-size: 19px; }
.summary-task-list { display: flex; flex-direction: column; gap: 5px; padding: 8px 18px 18px; }
.summary-task-list button {
  align-items: center; background: #f9fbfe; border: 0; border-radius: 8px; display: grid;
  gap: 9px; grid-template-columns: 7px 1fr auto; padding: 10px; text-align: left;
}
.summary-task-list button > i { border-radius: 10px; height: 28px; width: 4px; }
.summary-task-list button > span { display: flex; flex-direction: column; gap: 3px; }
.summary-task-list button strong { font-size: 10px; }
.summary-task-list button small, .summary-task-list button > b { color: var(--muted); font-size: 8px; }
.dashboard-bottom-grid { display: grid; gap: 18px; grid-template-columns: 1.2fr .8fr; margin-top: 18px; }
.panel-heading { align-items: center; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 16px 20px; }
.panel-heading h2 { font-size: 14px; margin: 0; }
.panel-heading span { color: var(--blue); font-size: 9px; }
.activity-list { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.activity-list > div { align-items: flex-start; display: flex; gap: 9px; }
.activity-list p { color: #44516a; font-size: 10px; margin: 3px 0 0; }
.activity-list p small { color: var(--muted); display: block; font-size: 8px; margin-top: 3px; }
.quick-guide > div { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; }
.quick-guide span { align-items: center; background: #f7f9fd; border-radius: 8px; display: grid; font-size: 10px; gap: 8px; grid-template-columns: 8px 22px 1fr; padding: 9px; }
.quick-guide i { border-radius: 50%; height: 8px; width: 8px; }
.quick-guide b { color: var(--muted); }

.metrics-grid { display: grid; gap: 16px; grid-template-columns: repeat(4,1fr); }
.metric-card { align-items: center; background: white; border: 1px solid var(--border); border-left: 4px solid; border-radius: 13px; display: flex; gap: 14px; min-height: 108px; padding: 18px; }
.metric-card > span { align-items: center; background: #edf3ff; border-radius: 50%; display: flex; font-size: 18px; height: 50px; justify-content: center; width: 50px; }
.metric-card > div { display: flex; flex-direction: column; }
.metric-card small { color: var(--muted); font-size: 10px; }
.metric-card strong { font-size: 27px; }
.metric-card.blue { border-left-color: var(--blue); }.metric-card.blue > span { color: var(--blue); }
.metric-card.orange { border-left-color: var(--orange); }.metric-card.orange > span { background: #fff5e5; color: var(--orange); }
.metric-card.green { border-left-color: var(--green); }.metric-card.green > span { background: #e9f8f2; color: var(--green); }
.metric-card.red { border-left-color: var(--red); }.metric-card.red > span { background: #ffedf0; color: var(--red); }
.dashboard-two-columns { display: grid; gap: 18px; grid-template-columns: 1.25fr .75fr; margin-top: 18px; }
.priority-list { display: flex; flex-direction: column; padding: 12px 18px 18px; }
.priority-list button { align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--border); display: grid; gap: 12px; grid-template-columns: 68px 1fr 18px; padding: 12px 4px; text-align: left; }
.priority-list button > div { display: flex; flex-direction: column; gap: 3px; }
.priority-list strong { font-size: 11px; }.priority-list small { color: var(--muted); font-size: 9px; }
.priority { border-radius: 5px; display: inline-flex; font-size: 8px; font-weight: 750; padding: 5px 7px; width: fit-content; }
.priority.normal { background: #edf1f6; color: #65738a; }.priority.tinggi { background: #fff3df; color: #d98400; }.priority.prioritas { background: #ffeaee; color: #d3354d; }
.progress-panel { align-items: center; display: flex; flex-direction: column; }
.progress-panel .panel-heading { align-self: stretch; }
.progress-ring { align-items: center; background: conic-gradient(var(--blue) var(--progress), #e9eef6 0); border-radius: 50%; display: flex; height: 148px; justify-content: center; margin: 24px 0 10px; width: 148px; }
.progress-ring::before { background: white; border-radius: 50%; content: ""; height: 112px; position: absolute; width: 112px; }
.progress-ring > div { align-items: center; display: flex; flex-direction: column; position: relative; }
.progress-ring strong { font-size: 25px; }.progress-ring small { color: var(--muted); font-size: 9px; }
.progress-panel > p { color: var(--muted); font-size: 9px; margin: 4px 0 22px; }

.board-heading, .calendar-heading, .team-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.board-heading h2, .calendar-heading h2, .team-heading h2 { font-size: 21px; margin: 4px 0 0; }
.kanban { display: grid; gap: 13px; grid-auto-columns: minmax(240px,1fr); grid-auto-flow: column; overflow-x: auto; padding-bottom: 12px; }
.kanban-column { background: #edf2f8; border: 1px solid #dce4ef; border-radius: 13px; min-height: 480px; min-width: 240px; padding: 12px; transition: .15s; }
.kanban-column.drop-target { background: #e5efff; border-color: #8bb0ff; box-shadow: inset 0 0 0 2px rgba(9,70,137,.12); }
.kanban-column > header { align-items: center; display: grid; gap: 8px; grid-template-columns: 8px 1fr 24px 28px; min-height: 32px; }
.kanban-column > header > i { border-radius: 50%; height: 8px; width: 8px; }
.kanban-column > header strong { font-size: 10px; }.kanban-column > header b { align-items: center; background: white; border-radius: 50%; display: flex; font-size: 8px; height: 22px; justify-content: center; }
.kanban-column > header button { background: white; border: 1px solid var(--border); border-radius: 7px; font-size: 11px; height: 27px; }
.kanban-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.kanban-card { background: white; border: 1px solid #dbe3ee; border-radius: 11px; border-top: 4px solid; box-shadow: 0 3px 10px rgba(20,38,70,.04); display: flex; flex-direction: column; gap: 8px; padding: 12px; text-align: left; }
.kanban-card:hover { box-shadow: 0 8px 20px rgba(20,38,70,.1); transform: translateY(-1px); }
.kanban-card.dragging { opacity: .45; }.kanban-card > strong { font-size: 11px; }.kanban-card > small { color: var(--muted); font-size: 9px; }
.kanban-card footer { align-items: center; border-top: 1px solid var(--border); display: flex; justify-content: space-between; padding-top: 10px; }
.kanban-card footer b { color: var(--muted); font-size: 8px; font-weight: 600; }
.kanban-empty { border: 1px dashed #c8d3e2; border-radius: 9px; color: #8996a9; font-size: 9px; padding: 22px 8px; text-align: center; }

.calendar-nav { align-items: center; display: flex; gap: 7px; }
.calendar-nav button { background: white; border: 1px solid var(--border); border-radius: 9px; height: 40px; min-width: 40px; padding: 0 12px; }
.calendar-nav button:first-child, .calendar-nav button:nth-child(3) { font-size: 21px; padding: 0; }
.calendar-nav strong { font-size: 13px; min-width: 145px; text-align: center; text-transform: capitalize; }
.full-calendar { background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.calendar-weekdays { background: #f8fafd; display: grid; grid-template-columns: repeat(7,1fr); }
.calendar-weekdays span { border-right: 1px solid var(--border); color: var(--muted); font-size: 9px; font-weight: 750; padding: 10px; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.calendar-day { border-right: 1px solid var(--border); border-top: 1px solid var(--border); min-height: 112px; padding: 9px; }
.calendar-day > span { align-items: center; border-radius: 50%; display: flex; font-size: 9px; font-weight: 750; height: 24px; justify-content: center; width: 24px; }
.calendar-day.today > span { background: var(--blue); color: white; }
.calendar-day.muted { background: #fafbfd; }
.calendar-day > div { display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
.calendar-day button { background: color-mix(in srgb, var(--flow) 10%, white); border: 0; border-left: 3px solid var(--flow); border-radius: 5px; color: var(--flow); display: flex; flex-direction: column; gap: 2px; overflow: hidden; padding: 5px; text-align: left; }
.calendar-day button strong { font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.calendar-day button small { font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.member-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.member-card {
  align-items: center; background: white; border: 1px solid var(--border); border-radius: 12px;
  display: grid; gap: 10px; grid-template-columns: 38px minmax(0,1fr) auto 30px; padding: 14px;
}
.member-card.inactive { background: #f8fafc; opacity: .72; }
.member-identity { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member-identity strong { font-size: 11px; }
.member-identity small { color: var(--muted); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-meta { align-items: flex-end; display: flex; flex-direction: column; gap: 4px; }
.member-meta > span { color: var(--muted); font-size: 8px; }
.member-meta > b { background: #edf3ff; border-radius: 5px; color: var(--blue); font-size: 8px; padding: 5px 7px; white-space: nowrap; }
.member-meta > small { font-size: 7px; font-weight: 750; }
.member-meta > small.active { color: var(--green); }.member-meta > small.inactive { color: var(--red); }
.member-edit {
  background: white; border: 1px solid var(--border); border-radius: 8px; color: var(--blue);
  font-size: 12px; height: 30px; width: 30px;
}
.member-edit:hover { background: #edf3ff; border-color: #b9cdf7; }
.protected-account { color: #e6a300; font-size: 13px; text-align: center; }
.role-table { margin-top: 18px; padding-bottom: 10px; }
.role-table > div { align-items: center; border-bottom: 1px solid var(--border); display: grid; font-size: 10px; gap: 12px; grid-template-columns: 180px 1fr 90px; margin: 0 18px; padding: 12px 4px; }
.role-table > div span { color: var(--muted); }.role-table > div strong { color: var(--blue); font-size: 9px; text-align: right; }
.empty-state { color: var(--muted); font-size: 10px; margin: 0; padding: 18px 8px; text-align: center; }

.modal-backdrop { align-items: center; background: rgba(8,20,42,.5); bottom: 0; display: flex; justify-content: center; left: 0; padding: 20px; position: fixed; right: 0; top: 0; z-index: 100; }
.modal { background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 70px rgba(9,24,52,.25); max-height: calc(100vh - 40px); max-width: 610px; overflow-y: auto; padding: 24px; width: 100%; }
.small-modal { max-width: 440px; }.guide-modal { max-width: 520px; }
.modal-header { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 20px; }
.modal-header h2 { font-size: 21px; margin: 4px 0 0; }.modal-close { background: #f3f6fa; border: 0; border-radius: 8px; color: var(--muted); font-size: 20px; height: 34px; width: 34px; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal label, .auth-form label { color: #42506a; display: flex; flex-direction: column; font-size: 10px; font-weight: 700; gap: 6px; }
.modal input, .modal select, .modal textarea, .auth-form input {
  background: white; border: 1px solid var(--border); border-radius: 9px; color: var(--ink); font-size: 11px; min-height: 42px; padding: 9px 11px; width: 100%;
}
.modal textarea { line-height: 1.5; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus, .auth-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,70,137,.1); outline: none; }
.form-grid, .two-columns { display: grid; gap: 12px; grid-template-columns: repeat(2,1fr); }
.form-step { align-items: center; display: flex; gap: 9px; margin-top: 2px; }
.form-step > span { align-items: center; background: #eaf1ff; border-radius: 50%; color: var(--blue); display: flex; font-size: 9px; font-weight: 850; height: 27px; justify-content: center; width: 27px; }
.form-step > div { display: flex; flex-direction: column; }.form-step strong { font-size: 11px; }.form-step small { color: var(--muted); font-size: 8px; }
.form-error, .alert.error { background: #fff0f2; border: 1px solid #ffcfd7; border-radius: 9px; color: #b6293d; font-size: 10px; padding: 10px 12px; }
.modal-actions { align-items: center; border-top: 1px solid var(--border); display: flex; gap: 9px; justify-content: flex-end; margin-top: 4px; padding-top: 16px; }
.modal-actions .danger-button { margin-right: auto; }
.comments-box { background: #f6f8fc; border: 1px solid #e1e7f0; border-radius: 11px; display: flex; flex-direction: column; gap: 10px; padding: 13px; }
.comments-heading { align-items: center; display: flex; justify-content: space-between; }.comments-heading strong { color: var(--muted); font-size: 8px; }
.comment-list { display: flex; flex-direction: column; gap: 7px; max-height: 190px; overflow: auto; }
.comment-list article { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 9px; }
.comment-list article header { display: flex; justify-content: space-between; }.comment-list article b { color: var(--blue); font-size: 9px; }.comment-list article small { color: var(--muted); font-size: 7px; }
.comment-list article p { font-size: 10px; line-height: 1.5; margin: 5px 0 0; white-space: pre-wrap; }
.invite-result { background: #eef5ff; border: 1px solid #cfe0ff; border-radius: 9px; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.invite-result strong { font-size: 11px; }.invite-result small { color: var(--muted); font-size: 8px; }
.profile-summary-card {
  align-items: center; background: #f5f8fd; border: 1px solid var(--border); border-radius: 11px;
  display: flex; gap: 11px; padding: 13px;
}
.profile-summary-card > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-summary-card strong { font-size: 12px; }
.profile-summary-card small { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-avatar { height: 42px; width: 42px; }
.avatar-upload input[type="file"] { background: #f7f9fc; cursor: pointer; padding: 7px; }
.avatar-upload span { color: var(--muted); font-size: 8px; font-weight: 500; }
.profile-security-note {
  background: #fff8e9; border: 1px solid #f9e2ae; border-radius: 9px; color: #80601e;
  font-size: 9px; line-height: 1.5; margin: 0; padding: 9px 11px;
}
.modal input:disabled, #profileForm input[readonly] { background: #f3f6fa; color: var(--muted); cursor: not-allowed; }
.logout-button { text-decoration: none; }
.guide-steps { display: flex; flex-direction: column; gap: 10px; }
.guide-steps article { align-items: flex-start; background: #f7f9fd; border: 1px solid var(--border); border-radius: 10px; display: flex; gap: 11px; padding: 13px; }
.guide-steps article > span { align-items: center; background: var(--blue); border-radius: 50%; color: white; display: flex; flex: 0 0 auto; font-size: 10px; font-weight: 800; height: 29px; justify-content: center; width: 29px; }
.guide-steps p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 4px 0 0; }
.toast { background: #10233f; border-radius: 10px; bottom: 22px; box-shadow: 0 12px 30px rgba(8,25,52,.25); color: white; font-size: 11px; font-weight: 650; padding: 13px 17px; position: fixed; right: 22px; z-index: 150; }
.toast.error { background: #a8263a; }

.auth-body { align-items: center; background: radial-gradient(circle at top left, #dce9ff, transparent 38%), #f2f6fc; display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card { background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 70px rgba(15,35,70,.12); max-width: 440px; padding: 30px; width: 100%; }
.setup-card { max-width: 550px; }
.auth-brand { align-items: center; display: flex; gap: 10px; margin-bottom: 28px; }.auth-brand strong { font-size: 16px; }
.auth-heading small { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: 1.4px; }.auth-heading h1 { font-size: 26px; letter-spacing: -.7px; margin: 6px 0; }.auth-heading p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0 0 20px; }
.auth-form { display: flex; flex-direction: column; gap: 13px; }.auth-form label small { color: var(--muted); font-size: 8px; }.auth-form .primary-button { margin-top: 5px; width: 100%; }
.auth-footnote { color: var(--muted); font-size: 9px; margin: 18px 0 0; text-align: center; }.secondary-link { color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.form-divider { align-items: center; display: flex; gap: 10px; margin: 6px 0; }.form-divider::before, .form-divider::after { background: var(--border); content: ""; flex: 1; height: 1px; }.form-divider span { color: var(--muted); font-size: 8px; font-weight: 750; }
.success-box { text-align: center; }.success-box h1 { font-size: 24px; }.success-box p { color: var(--muted); font-size: 11px; }.success-box .primary-button { margin-top: 12px; }

@media (max-width: 1100px) {
  :root { --sidebar: 215px; }
  .topbar { grid-template-columns: 180px 1fr 230px; padding: 0 20px; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .sidebar { box-shadow: 15px 0 40px rgba(9,25,54,.22); transform: translateX(-105%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .topbar { gap: 10px; grid-template-columns: 38px 1fr auto; height: 70px; padding: 0 14px; }
  .mobile-menu { background: transparent; border: 0; display: block; font-size: 20px; }
  .topbar > h1 { font-size: 17px; }
  .global-search { display: none; }
  .profile > div, .profile > .profile-chevron { display: none; }.profile { min-width: auto; padding: 3px; }
  .notification-panel { left: 12px; right: 12px; top: 64px; width: auto; }
  .main-content { padding: 20px 14px 40px; }
  .main-dashboard-grid, .dashboard-bottom-grid, .dashboard-two-columns { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .calendar-heading, .team-heading, .board-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .calendar-grid, .calendar-weekdays { min-width: 760px; }.full-calendar { overflow-x: auto; }
}

@media (max-width: 520px) {
  .page-actions { align-items: flex-start; gap: 12px; }
  .page-actions .primary-button { font-size: 0; height: 42px; padding: 0; width: 42px; }
  .page-actions .primary-button::after { content: "+"; font-size: 20px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 90px; padding: 12px; }.metric-card > span { height: 38px; width: 38px; }.metric-card strong { font-size: 22px; }
  .mini-metrics { grid-template-columns: repeat(2,1fr); row-gap: 14px; }.mini-metrics > div:nth-child(2) { border-right: 0; }
  .form-grid, .two-columns { grid-template-columns: 1fr; }
  .modal { max-height: 94vh; padding: 18px; }
  .role-table > div { grid-template-columns: 90px 1fr; }.role-table > div strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Makalaedukasi Work V6 */
.filter-toolbar {
  align-items: end; background: white; border: 1px solid var(--border); border-radius: 13px;
  display: grid; gap: 9px; grid-template-columns: repeat(6, minmax(105px, 1fr)) auto;
  margin-bottom: 18px; padding: 12px;
}
.filter-toolbar > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-toolbar span { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; }
.filter-toolbar select {
  background: #f8fafd; border: 1px solid var(--border); border-radius: 8px; color: var(--ink);
  height: 36px; min-width: 0; padding: 0 8px; width: 100%;
}
.filter-reset { background: #edf3fb; border: 0; border-radius: 8px; color: var(--blue); font-size: 9px; font-weight: 800; height: 36px; padding: 0 13px; }

.dashboard-left-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.review-heading-title { align-items: center; display: flex; gap: 9px; }
.review-warning-icon {
  align-items: center; background: #fff0d7; border: 1px solid #ffd99a; border-radius: 50%; color: #d87900;
  display: inline-flex; font-size: 11px; font-weight: 900; height: 25px; justify-content: center; width: 25px;
}
.latest-review-panel { border-color: #f3d9a8; box-shadow: 0 6px 18px rgba(245,158,11,.07); }
.latest-review-panel .panel-heading { background: linear-gradient(90deg, #fffaf0, white); }
.latest-review-list { display: flex; flex-direction: column; padding: 9px 16px 15px; }
.latest-review-list button {
  align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--border);
  display: grid; gap: 10px; grid-template-columns: 28px 1fr auto; padding: 11px 3px; text-align: left;
}
.latest-review-list button:last-child { border-bottom: 0; }
.latest-review-list button:hover { background: #fffaf1; }
.review-attention { align-items: center; background: #fff1d8; border-radius: 8px; display: flex; height: 28px; justify-content: center; width: 28px; }
.latest-review-list button > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.latest-review-list strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-review-list small, .latest-review-list button > b { color: var(--muted); font-size: 8px; }

.board-content { min-width: 0; }
.board-content > .kanban { margin-top: 0; }

.quick-move-box {
  align-items: end; background: #f5f8fc; border: 1px solid var(--border); border-radius: 11px;
  display: grid; gap: 10px; grid-template-columns: 1fr minmax(170px, .7fr) auto; margin-top: 13px; padding: 12px;
}
.quick-move-box > div { display: flex; flex-direction: column; gap: 3px; }
.quick-move-box small { color: var(--muted); font-size: 8px; }
.quick-move-box select { border: 1px solid var(--border); border-radius: 8px; height: 38px; padding: 0 9px; }

.task-history-box { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
.task-history-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; max-height: 280px; overflow: auto; }
.task-history-list article { background: #f8fafd; border: 1px solid #e6ecf4; border-radius: 9px; padding: 10px; }
.task-history-list article > div { align-items: center; display: flex; justify-content: space-between; gap: 10px; }
.task-history-list strong { font-size: 9px; }
.task-history-list small { color: var(--muted); font-size: 8px; }
.task-history-list p { align-items: center; display: grid; gap: 7px; grid-template-columns: 1fr auto 1fr; margin: 7px 0 0; }
.task-history-list p span { background: white; border-radius: 6px; color: #4d5c73; font-size: 8px; min-width: 0; padding: 7px; word-break: break-word; }
.task-history-list p b { color: var(--blue); font-size: 10px; }

.admin-tools {
  align-items: center; background: linear-gradient(135deg, #eef5ff, #fff); border: 1px solid #bfd3ee;
  border-radius: 13px; display: flex; justify-content: space-between; margin-bottom: 18px; padding: 16px 18px;
}
.admin-tools h3 { font-size: 15px; margin: 3px 0; }
.admin-tools p { color: var(--muted); font-size: 9px; margin: 0; }
.admin-tools > div:last-child { display: flex; gap: 8px; }
.admin-tools a { text-decoration: none; }

.reset-link-button { margin-top: 4px; width: 100%; }
.two-factor-box {
  background: #f7fafe; border: 1px solid var(--border); border-radius: 11px;
  display: grid; gap: 10px; grid-template-columns: 1fr auto; margin-top: 16px; padding: 13px;
}
.two-factor-box > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.two-factor-box strong { font-size: 11px; }
.two-factor-box small { color: var(--muted); font-size: 8px; }
.two-factor-setup { border-top: 1px solid var(--border); display: grid; gap: 9px; grid-column: 1 / -1; grid-template-columns: 1fr 145px auto; padding-top: 11px; }
.two-factor-setup label { font-size: 8px; }
.two-factor-setup input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.notification-panel #notificationList button.read { opacity: .65; }
.notification-panel #notificationList button.read span { color: var(--muted); }

@media (max-width: 1180px) {
  .filter-toolbar { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .filter-reset { width: 100%; }
}

@media (max-width: 820px) {
  .filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tools { align-items: flex-start; flex-direction: column; gap: 13px; }
  .admin-tools > div:last-child { flex-wrap: wrap; width: 100%; }
  .quick-move-box { grid-template-columns: 1fr; }
  .quick-move-box .secondary-button { width: 100%; }
  .two-factor-box, .two-factor-setup { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .filter-toolbar { grid-template-columns: 1fr 1fr; gap: 7px; padding: 9px; }
  .filter-toolbar > div { min-width: 0; }
  .filter-toolbar select { font-size: 9px; }
  .latest-review-list button { grid-template-columns: 25px 1fr; }
  .latest-review-list button > b { display: none; }
  .admin-tools > div:last-child a { flex: 1 1 100%; }
  .task-history-list p { grid-template-columns: 1fr; }
  .task-history-list p b { display: none; }
}

/* Makalaedukasi Work V7 */
.board-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.card-schedule { display: grid; gap: 3px; margin-top: 8px; }
.card-schedule span { color: var(--muted); font-size: 8px; }

.latest-review-list { gap: 6px; }
.latest-review-item { border-bottom: 1px solid var(--border); padding: 7px 0 10px; }
.latest-review-item:last-child { border-bottom: 0; }
.latest-review-list .review-main {
  align-items: center; border-bottom: 0; display: grid; gap: 10px;
  grid-template-columns: 28px 1fr auto; padding: 8px 3px; width: 100%;
}
.latest-review-list .review-main:hover { background: #fffaf1; }
.latest-review-list .review-main > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.review-deadline { border-radius: 999px; color: var(--muted); font-size: 8px; padding: 5px 8px; white-space: nowrap; }
.review-deadline.overdue { background: #fff0f2; color: #c42d43; }
.review-deadline.today { background: #fff1d8; color: #b86800; }
.review-deadline.soon { background: #eef5ff; color: var(--blue); }
.review-quick-actions { display: flex; gap: 6px; justify-content: flex-end; padding: 0 3px; }
.review-quick-actions button { border-bottom: 0; display: inline-flex; grid-template-columns: none; min-height: 32px; padding: 0 10px; width: auto; }
.approve-button, .revision-button {
  align-items: center; border-radius: 9px; display: inline-flex; font-size: 9px; font-weight: 800;
  justify-content: center; min-height: 34px; padding: 0 11px;
}
.approve-button { background: #eaf9f1; border: 1px solid #bce9d1; color: #087a49; }
.revision-button { background: #fff5e7; border: 1px solid #f4d2a0; color: #a25b00; }

.notification-panel header > div { align-items: center; display: flex; gap: 4px; }
.notification-panel header .mark-all-read {
  color: var(--blue); font-size: 8px; font-weight: 800; min-height: 30px; padding: 0 7px;
}
.notification-panel header #closeNotifications { font-size: 20px; }

.v7-tools { align-items: stretch; display: grid; gap: 14px; grid-template-columns: minmax(220px,.7fr) minmax(390px,1.3fr); }
.admin-tool-buttons { align-content: start; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.backup-log-panel { border-top: 1px solid #bfd3ee; grid-column: 1 / -1; padding-top: 12px; }
.backup-log-panel > strong { font-size: 10px; }
.backup-history { display: grid; gap: 6px; margin-top: 8px; }
.backup-history > div { align-items: center; background: rgba(255,255,255,.72); border: 1px solid #d9e5f5; border-radius: 8px; display: grid; gap: 7px; grid-template-columns: 84px 1fr auto; padding: 8px 10px; }
.backup-history span { color: var(--blue); font-size: 7px; font-weight: 900; }
.backup-history strong { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backup-history small { color: var(--muted); font-size: 8px; }
.empty-state.compact { margin: 8px 0 0; }

.storage-summary { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,220px)); margin-bottom: 16px; }
.storage-summary article { align-items: center; background: white; border: 1px solid var(--border); border-radius: 12px; display: flex; gap: 12px; padding: 15px; }
.storage-summary article > span { align-items: center; background: #eef4fb; border-radius: 10px; color: var(--blue); display: flex; height: 38px; justify-content: center; width: 38px; }
.storage-summary article > div { display: flex; flex-direction: column; }
.storage-summary small { color: var(--muted); font-size: 8px; }
.storage-summary strong { font-size: 22px; }
.storage-grid { display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.storage-grid .panel { padding-bottom: 10px; }
.storage-grid .panel-heading p { color: var(--muted); font-size: 8px; margin: 3px 0 0; }
.storage-list { display: flex; flex-direction: column; padding: 5px 14px 12px; }
.storage-list article { align-items: center; border-bottom: 1px solid var(--border); display: flex; gap: 12px; justify-content: space-between; padding: 11px 2px; }
.storage-list article:last-child { border-bottom: 0; }
.storage-list article > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.storage-list strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storage-list small { color: var(--muted); font-size: 8px; }
.storage-tag { align-self: flex-start; border-radius: 5px; font-size: 7px; font-weight: 900; padding: 4px 6px; }
.storage-tag.archive { background: #edf4ff; color: var(--blue); }
.storage-tag.trash { background: #fff0f2; color: #c42d43; }
.task-storage-actions { flex-wrap: wrap; }

.program-manager-list { border-top: 1px solid var(--border); display: flex; flex-direction: column; margin-top: 15px; max-height: 380px; overflow: auto; padding-top: 10px; }
.program-manager-list article { align-items: center; border-bottom: 1px solid var(--border); display: flex; gap: 10px; justify-content: space-between; padding: 9px 2px; }
.program-manager-list article:last-child { border-bottom: 0; }
.program-manager-list article.inactive { opacity: .62; }
.program-manager-list article > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.program-manager-list article > div:last-child { display: flex; gap: 6px; }
.program-manager-list strong { font-size: 10px; }
.program-manager-list small { color: var(--muted); font-size: 8px; }
.program-manager-list button { min-height: 32px; padding: 0 9px; }

@media (max-width: 920px) {
  .v7-tools, .storage-grid { grid-template-columns: 1fr; }
  .admin-tool-buttons { justify-content: flex-start; }
  .backup-history > div { grid-template-columns: 78px 1fr; }
  .backup-history small { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .board-actions { width: 100%; }
  .board-actions .primary-button, .board-actions .secondary-button { flex: 1; }
  .latest-review-list .review-main { grid-template-columns: 25px 1fr; }
  .review-deadline { grid-column: 2; justify-self: start; }
  .review-quick-actions { flex-wrap: wrap; justify-content: flex-start; padding-left: 35px; }
  .storage-summary { grid-template-columns: 1fr 1fr; }
  .storage-list article { align-items: flex-start; flex-direction: column; }
  .storage-list article .secondary-button { width: 100%; }
  .admin-tool-buttons > * { flex: 1 1 100%; }
  .program-manager-list article { align-items: flex-start; flex-direction: column; }
}


/* Makalaedukasi Work V10 — readability, avatars, role notifications, and team chat */
.sidebar { padding-bottom: 18px; }
.sidebar nav {
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar nav::-webkit-scrollbar { display: none; height: 0; width: 0; }

.brand strong { font-size: 16px; line-height: 1.25; }
.nav-group-label { font-size: 9px; }
.nav-item { font-size: 13px; font-weight: 680; min-height: 45px; }
.nav-item i { font-size: 19px; }
.topbar { gap: 18px; grid-template-columns: minmax(220px,.8fr) minmax(320px,1.25fr) minmax(240px,.8fr); }
.topbar > h1 { font-size: 23px; }
.global-search input { font-size: 14px; }
.profile strong { font-size: 12px; }
.profile small { font-size: 10px; }
.main-content { padding-top: 28px; }
.page-actions p, .board-heading p, .calendar-heading p, .team-heading p { font-size: 12px; line-height: 1.5; }
.eyebrow { font-size: 10px; }
.primary-button, .secondary-button, .danger-button { font-size: 12px; }
.module-summary h2 { font-size: 16px; }
.module-summary > header button { font-size: 10px; }
.module-badge { font-size: 9px; }
.mini-metrics small { font-size: 9px; }
.mini-metrics b { font-size: 21px; }
.summary-task-list button strong { font-size: 11px; }
.summary-task-list button small, .summary-task-list button > b { font-size: 9px; }
.panel-heading h2 { font-size: 15px; }
.panel-heading span { font-size: 10px; }
.activity-list p { font-size: 11px; }
.activity-list p small { font-size: 9px; }
.quick-guide span { font-size: 11px; }
.metric-card small { font-size: 11px; }
.priority-list strong { font-size: 12px; }
.priority-list small { font-size: 10px; }
.board-heading h2, .calendar-heading h2, .team-heading h2 { font-size: 22px; }
.kanban-column > header strong { font-size: 11px; }
.kanban-card > strong { font-size: 12px; }
.kanban-card > small, .kanban-card footer b, .card-schedule span { font-size: 9px; }
.calendar-weekdays span { font-size: 10px; }
.calendar-day > span { font-size: 10px; }
.calendar-day button strong { font-size: 9px; }
.calendar-day button small { font-size: 8px; }
.member-identity strong { font-size: 12px; }
.member-identity small, .member-meta > span, .member-meta > b { font-size: 9px; }
.role-table > div { font-size: 11px; }
.modal label, .auth-form label { font-size: 11px; }
.modal input, .modal select, .modal textarea, .auth-form input, .auth-form select, .auth-form textarea { font-size: 12px; }
.empty-state { font-size: 11px; }
.latest-review-list strong { font-size: 11px; }
.latest-review-list small, .latest-review-list button > b, .review-deadline { font-size: 9px; }
.storage-list strong { font-size: 11px; }
.storage-list small { font-size: 9px; }

.profile-menu {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 18px 50px rgba(19,35,65,.18);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  position: absolute;
  right: 28px;
  top: 70px;
  width: 245px;
  z-index: 70;
}
.profile-menu button, .profile-menu a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 28px 1fr;
  padding: 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.profile-menu button:hover, .profile-menu a:hover { background: #f3f6fb; }
.profile-menu > * > span { color: var(--blue); font-size: 17px; text-align: center; }
.profile-menu > * > div { display: flex; flex-direction: column; gap: 2px; }
.profile-menu strong { font-size: 12px; }
.profile-menu small { color: var(--muted); font-size: 9px; }
.profile-menu a { border-top: 1px solid var(--border); margin-top: 3px; padding-top: 12px; }
.profile-menu a > span, .profile-menu a strong { color: #c42d43; }

.dashboard-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-height: 170px;
  padding: 28px 20px;
}
.dashboard-empty > span {
  align-items: center;
  background: #eaf9f1;
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 21px;
  height: 46px;
  justify-content: center;
  margin-bottom: 4px;
  width: 46px;
}
.dashboard-empty strong { color: var(--ink); font-size: 13px; }
.dashboard-empty small { color: var(--muted); font-size: 10px; }

.progress-breakdown {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin: 4px 18px 10px;
  width: calc(100% - 36px);
}
.progress-breakdown > div {
  background: #f7f9fd;
  border: 1px solid #e8edf5;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px;
  text-align: center;
}
.progress-breakdown small { color: var(--muted); font-size: 9px; }
.progress-breakdown strong { font-size: 15px; }
.progress-panel > p { font-size: 10px; text-align: center; }

.storage-single-summary { grid-template-columns: minmax(0,220px); }
.storage-single { padding-bottom: 12px; }
.storage-single .panel-heading p { color: var(--muted); font-size: 10px; margin: 4px 0 0; }

.sidebar-overlay { display: none; }

@media (max-width: 1060px) {
  .topbar { grid-template-columns: minmax(190px,.8fr) minmax(260px,1.1fr) minmax(190px,.7fr); padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 820px) {
  .sidebar-overlay {
    background: rgba(7,22,43,.42);
    border: 0;
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 55;
  }
  .profile-menu { right: 14px; top: 62px; width: min(245px, calc(100vw - 28px)); }
  .progress-breakdown { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 520px) {
  .nav-item { font-size: 13px; }
  .topbar > h1 { font-size: 18px; }
  .board-heading h2, .calendar-heading h2, .team-heading h2 { font-size: 20px; }
  .page-actions p, .board-heading p, .calendar-heading p, .team-heading p { font-size: 11px; }
  .progress-breakdown { margin-left: 12px; margin-right: 12px; width: calc(100% - 24px); }
}

/* Makalaedukasi Work V10 */
.avatar.micro { font-size: 6px; height: 18px; vertical-align: middle; width: 18px; }
.summary-task-list button { grid-template-columns: 7px 26px 1fr auto; }
.summary-task-list button > span.avatar { display: inline-flex; }
.latest-review-list .review-main { grid-template-columns: 28px 28px 1fr auto; }
.review-avatar { box-shadow: 0 0 0 2px white; }
.calendar-day button small { align-items: center; display: flex; gap: 3px; }
.storage-owner { align-items: center; display: flex; gap: 5px; }
.history-actor { justify-content: flex-start !important; }
.history-actor > span { display: flex; flex-direction: column; gap: 2px; }
.comment-list article header { align-items: center; justify-content: flex-start; gap: 8px; }
.comment-list article header > span { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.comment-list article header small { display: block; }
.notification-panel #notificationList button {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
}
.notification-panel #notificationList button > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notification-panel #notificationList button > .avatar { grid-row: 1; }
.notification-panel #notificationList button > div > span { color: var(--orange); font-size: 8px; font-weight: 850; }
.notification-panel .notification-avatar:not(:has(img)) { background: #e8eef7; color: var(--blue); }

.chat-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.chat-heading h2 { font-size: 20px; margin: 4px 0 0; }
.chat-heading p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.chat-shell {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: minmax(360px, calc(100vh - 355px)) auto;
  min-height: 600px;
  overflow: hidden;
}
.chat-stream {
  background: linear-gradient(180deg, #f8faff 0%, #f3f6fb 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 20px;
}
.chat-message { align-items: flex-start; display: flex; gap: 9px; max-width: 78%; }
.chat-message.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar { height: 34px; width: 34px; }
.chat-bubble {
  background: white;
  border: 1px solid #e3e9f2;
  border-radius: 4px 13px 13px 13px;
  box-shadow: 0 4px 14px rgba(21,39,70,.05);
  min-width: 180px;
  padding: 11px 12px;
}
.chat-message.mine .chat-bubble { background: #eaf2ff; border-color: #cddfff; border-radius: 13px 4px 13px 13px; }
.chat-bubble header { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-bubble header strong { color: var(--ink); font-size: 11px; }
.chat-bubble header span { background: #edf3fb; border-radius: 999px; color: var(--blue); font-size: 7px; font-weight: 800; padding: 3px 6px; }
.chat-bubble header small { color: var(--muted); font-size: 8px; margin-left: auto; }
.chat-bubble > p { font-size: 11px; line-height: 1.55; margin: 8px 0 0; word-break: break-word; }
.chat-reference {
  align-items: center;
  background: #f7f9fd;
  border: 1px solid #dfe7f2;
  border-radius: 9px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  grid-template-columns: 28px 1fr auto;
  margin-top: 10px;
  padding: 9px;
  text-align: left;
  width: 100%;
}
.chat-reference:hover { background: #eef4ff; border-color: #bfd2ef; }
.chat-reference > span { color: var(--blue); font-size: 17px; text-align: center; }
.chat-reference > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-reference small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .7px; }
.chat-reference strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reference > b { color: var(--blue); }
.chat-composer { border-top: 1px solid var(--border); padding: 14px 16px 16px; }
.chat-current-user { align-items: center; display: flex; gap: 8px; margin-bottom: 9px; }
.chat-current-user > div { display: flex; flex-direction: column; }
.chat-current-user strong { font-size: 10px; }
.chat-current-user small { color: var(--muted); font-size: 8px; }
.chat-composer textarea { min-height: 80px; resize: vertical; }
.chat-attach-row { align-items: end; display: grid; gap: 9px; grid-template-columns: 170px minmax(210px,1fr) auto; margin-top: 9px; }
.chat-attach-row label { margin: 0; }
.chat-attach-row .primary-button { min-width: 130px; }
.chat-empty { min-height: 300px; }
.chat-empty > span { color: var(--blue); font-size: 30px; }
.chat-empty strong { color: var(--ink); font-size: 14px; }
.chat-empty small { color: var(--muted); font-size: 10px; }

@media (max-width: 820px) {
  .chat-shell { grid-template-rows: minmax(330px, 52vh) auto; min-height: 0; }
  .chat-message { max-width: 92%; }
  .chat-attach-row { grid-template-columns: 1fr; }
  .chat-attach-row .primary-button { width: 100%; }
}

@media (max-width: 520px) {
  .summary-task-list button { grid-template-columns: 5px 26px 1fr; }
  .summary-task-list button > b { display: none; }
  .latest-review-list .review-main { grid-template-columns: 24px 28px 1fr; }
  .latest-review-list .review-main .review-deadline { grid-column: 2 / -1; justify-self: start; }
  .chat-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .chat-heading .secondary-button { width: 100%; }
  .chat-stream { padding: 13px; }
  .chat-message { max-width: 98%; }
  .chat-bubble { min-width: 0; }
}
.priority-owner { align-items: center; display: flex; gap: 5px; }


/* Makalaedukasi Work V11 — polished team chat and team-wide D-2 deadline alert */
.card-schedule { gap: 6px; }
.card-schedule span { align-items: center; display: flex; gap: 5px; line-height: 1.35; }
.card-schedule span b { color: #52627a; font-size: 8px; font-weight: 800; }
.card-schedule .deadline-value { border-radius: 7px; margin: 0 -5px; padding: 5px; }
.card-schedule .deadline-value.deadline-soon { background: #fff4dd; color: #a75c00; font-weight: 850; }
.card-schedule .deadline-value.deadline-soon b { color: #a75c00; }
.card-schedule .deadline-value.deadline-today { background: #fff0e7; color: #c54b00; font-weight: 900; }
.card-schedule .deadline-value.deadline-today b { color: #c54b00; }
.card-schedule .deadline-value.deadline-overdue { background: #fff0f2; color: #bf2940; font-weight: 900; }
.card-schedule .deadline-value.deadline-overdue b { color: #bf2940; }
.kanban-card:has(.deadline-soon) { box-shadow: 0 0 0 1px rgba(245,158,11,.18), 0 5px 16px rgba(20,38,70,.06); }
.kanban-card:has(.deadline-today), .kanban-card:has(.deadline-overdue) { box-shadow: 0 0 0 1px rgba(239,70,97,.2), 0 5px 16px rgba(20,38,70,.06); }

.chat-shell {
  background: #eef3f9;
  border-radius: 18px;
  grid-template-rows: auto minmax(390px, calc(100vh - 330px)) auto;
  min-height: 650px;
}
.chat-topbar {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 11px;
  grid-template-columns: 42px 1fr 40px;
  padding: 14px 17px;
}
.chat-room-avatar { align-items: center; background: var(--blue); border-radius: 13px; color: white; display: flex; font-size: 19px; font-weight: 850; height: 42px; justify-content: center; width: 42px; }
.chat-topbar h2 { font-size: 15px; margin: 0; }
.chat-topbar p { align-items: center; color: var(--muted); display: flex; font-size: 9px; gap: 5px; margin: 4px 0 0; }
.chat-topbar p span { background: var(--green); border-radius: 50%; height: 7px; width: 7px; }
.chat-refresh { background: #f5f7fb; border: 1px solid var(--border); border-radius: 10px; color: var(--blue); font-size: 18px; height: 38px; width: 38px; }
.chat-refresh:hover { background: #eaf2ff; }
.chat-stream { background: linear-gradient(180deg,#f5f8fc 0%,#edf3f9 100%); gap: 7px; padding: 18px 22px; }
.chat-day-separator { align-items: center; display: flex; justify-content: center; margin: 11px 0 8px; width: 100%; }
.chat-day-separator span { background: rgba(255,255,255,.92); border: 1px solid #dfe7f2; border-radius: 999px; color: #6e7c91; font-size: 8px; font-weight: 750; padding: 5px 10px; }
.chat-message { gap: 8px; max-width: min(72%,700px); }
.chat-message.mine { align-self: flex-end; }
.chat-message-column { display: flex; flex-direction: column; min-width: 0; }
.chat-message.mine .chat-message-column { align-items: flex-end; }
.chat-author { align-items: center; display: flex; gap: 6px; margin: 0 0 4px 4px; }
.chat-author strong { font-size: 9px; }
.chat-author span { color: var(--muted); font-size: 7px; }
.chat-avatar { box-shadow: 0 0 0 2px white; height: 32px; margin-top: 3px; width: 32px; }
.chat-bubble { border-radius: 5px 15px 15px 15px; min-width: 150px; padding: 9px 11px 7px; position: relative; }
.chat-message.mine .chat-bubble { background: var(--blue); border-color: var(--blue); border-radius: 15px 5px 15px 15px; color: white; }
.chat-bubble > p { font-size: 11px; line-height: 1.55; margin: 0; padding-right: 34px; }
.chat-message.mine .chat-bubble > p { color: white; }
.chat-time { color: #8b97a8; display: block; font-size: 7px; margin-top: 4px; text-align: right; }
.chat-message.mine .chat-time { color: rgba(255,255,255,.68); }
.chat-reference { background: #f6f9fd; border-color: #dce5f0; border-radius: 10px; grid-template-columns: 30px 1fr 16px; margin-top: 8px; padding: 9px; }
.chat-message.mine .chat-reference { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: white; }
.chat-message.mine .chat-reference > span, .chat-message.mine .chat-reference > b, .chat-message.mine .chat-reference small, .chat-message.mine .chat-reference em { color: white; }
.chat-reference > div { gap: 1px; }
.chat-reference strong { font-size: 10px; }
.chat-reference em { color: var(--muted); font-size: 7px; font-style: normal; }
.chat-composer { background: white; border-top: 1px solid var(--border); padding: 11px 14px 12px; position: relative; }
.chat-compose-line { align-items: flex-end; display: grid; gap: 8px; grid-template-columns: 31px minmax(0,1fr) 37px 39px; }
.chat-compose-avatar { height: 31px; margin-bottom: 4px; width: 31px; }
.chat-composer textarea { background: #f7f9fc; border: 1px solid #dce4ef; border-radius: 13px; line-height: 1.45; max-height: 130px; min-height: 42px; padding: 11px 13px; resize: none; }
.chat-composer textarea:focus { background: white; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,70,137,.08); outline: none; }
.chat-attach-button, .chat-send-button { border: 0; border-radius: 11px; font-size: 20px; height: 38px; margin-bottom: 2px; width: 38px; }
.chat-attach-button { background: #eef3fa; color: var(--blue); }
.chat-attach-button:hover { background: #dfeafd; }
.chat-send-button { background: linear-gradient(135deg,#ff7112,#ff8c1a); color: white; font-size: 15px; }
.chat-composer-hint { align-items: center; color: var(--muted); display: flex; font-size: 7px; justify-content: space-between; margin: 6px 84px 0 39px; }
.chat-composer-hint b { color: var(--blue); font-weight: 750; }
.chat-selected-reference { align-items: center; background: #eef5ff; border: 1px solid #ccdef5; border-radius: 10px; display: grid; gap: 8px; grid-template-columns: 26px 1fr 28px; margin: 0 84px 8px 39px; padding: 7px 8px; }
.chat-selected-reference > span { color: var(--blue); font-size: 16px; text-align: center; }
.chat-selected-reference > div { display: flex; flex-direction: column; min-width: 0; }
.chat-selected-reference small { color: var(--muted); font-size: 7px; font-weight: 800; }
.chat-selected-reference strong { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-selected-reference button { background: transparent; border: 0; color: var(--muted); font-size: 18px; }
.chat-attachment-picker { background: white; border: 1px solid #d8e2ef; border-radius: 14px; bottom: calc(100% - 7px); box-shadow: 0 18px 50px rgba(16,29,53,.18); left: 53px; padding: 13px; position: absolute; width: min(520px,calc(100% - 110px)); z-index: 15; }
.chat-attachment-picker > header { align-items: flex-start; display: flex; justify-content: space-between; }
.chat-attachment-picker > header > div { display: flex; flex-direction: column; gap: 2px; }
.chat-attachment-picker > header strong { font-size: 11px; }
.chat-attachment-picker > header small { color: var(--muted); font-size: 8px; }
.chat-attachment-picker > header button { background: #f2f5f9; border: 0; border-radius: 8px; color: var(--muted); font-size: 17px; height: 30px; width: 30px; }
.chat-attachment-tabs { background: #f3f6fa; border-radius: 10px; display: grid; gap: 4px; grid-template-columns: repeat(2,1fr); margin: 12px 0; padding: 4px; }
.chat-attachment-tabs button { align-items: center; background: transparent; border: 0; border-radius: 8px; color: var(--muted); display: flex; font-size: 9px; font-weight: 750; gap: 6px; justify-content: center; min-height: 34px; }
.chat-attachment-tabs button.active { background: white; box-shadow: 0 2px 8px rgba(20,38,70,.08); color: var(--blue); }
.chat-attachment-panel label { color: #52627a; display: block; font-size: 8px; font-weight: 750; margin-bottom: 6px; }
.chat-attachment-panel > div { display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) 105px; }
.chat-attachment-panel select { background: white; border: 1px solid var(--border); border-radius: 9px; min-height: 40px; padding: 0 10px; width: 100%; }
.chat-attachment-panel .primary-button { min-height: 40px; }

@media (max-width: 820px) {
  .chat-shell { grid-template-rows: auto minmax(340px,55vh) auto; min-height: 0; }
  .chat-message { max-width: 90%; }
  .chat-composer-hint { display: none; }
  .chat-selected-reference { margin-right: 0; }
  .chat-attachment-picker { left: 12px; width: calc(100% - 24px); }
}
@media (max-width: 520px) {
  .chat-stream { padding: 12px 10px; }
  .chat-message { max-width: 95%; }
  .chat-avatar { height: 28px; width: 28px; }
  .chat-bubble { min-width: 0; }
  .chat-compose-line { grid-template-columns: minmax(0,1fr) 37px 39px; }
  .chat-compose-avatar { display: none; }
  .chat-selected-reference { margin-left: 0; }
  .chat-attachment-panel > div { grid-template-columns: 1fr; }
  .chat-attachment-picker { bottom: calc(100% - 4px); }
}

.notification-system-icon { align-items: center; background: #fff2df; border-radius: 50%; color: #b86800; display: inline-flex; flex: 0 0 auto; font-size: 12px !important; font-weight: 900; height: 26px; justify-content: center; width: 26px; }


/* Makalaedukasi Work V12 — program content distribution on every dashboard */
.program-insight-panel { margin-top: 18px; }
.program-insight-panel .panel-heading > div { display: flex; flex-direction: column; gap: 4px; }
.program-insight-panel .panel-heading > div small { color: var(--muted); font-size: 9px; font-weight: 600; }
.program-insight-body {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(230px,.68fr) minmax(0,1.32fr);
  padding: 20px;
}
.program-top-card {
  align-items: center;
  background: linear-gradient(145deg,#094689,#1766b3);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(9,70,137,.14);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  padding: 22px;
  text-align: center;
}
.program-top-label {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
  padding: 6px 9px;
}
.program-top-icon {
  align-items: center;
  background: rgba(255,255,255,.13);
  border-radius: 50%;
  display: flex;
  font-size: 17px;
  height: 42px;
  justify-content: center;
  margin: 13px 0 9px;
  width: 42px;
}
.program-top-card > strong { font-size: 18px; line-height: 1.3; }
.program-top-card > small { font-size: 8px; line-height: 1.55; margin-top: 10px; opacity: .78; }
.program-top-numbers { align-items: baseline; display: flex; gap: 6px; margin-top: 7px; }
.program-top-numbers b { font-size: 27px; }
.program-top-numbers span { font-size: 9px; opacity: .82; }
.program-top-numbers em {
  background: #fff;
  border-radius: 999px;
  color: var(--blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  margin-left: 4px;
  padding: 5px 8px;
}
.program-ranking { display: flex; flex-direction: column; justify-content: center; }
.program-rank-row { border-bottom: 1px solid var(--border); padding: 12px 2px; }
.program-rank-row:last-child { border-bottom: 0; }
.program-rank-heading {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 25px minmax(0,1fr) auto;
  margin-bottom: 8px;
}
.program-rank-number {
  align-items: center;
  background: #edf3fb;
  border-radius: 7px;
  color: var(--blue);
  display: flex;
  font-size: 9px;
  font-weight: 850;
  height: 25px;
  justify-content: center;
  width: 25px;
}
.program-rank-row:first-child .program-rank-number { background: #fff0cf; color: #9a6200; }
.program-rank-heading > strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.program-rank-heading > span:last-child { color: var(--muted); font-size: 9px; }
.program-rank-heading > span:last-child b { color: var(--text); font-size: 11px; }
.program-bar-track { background: #edf1f6; border-radius: 999px; height: 7px; margin-left: 34px; overflow: hidden; }
.program-bar-track i {
  background: linear-gradient(90deg,#094689,#2c7bca);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 5%;
}
.program-rank-row:first-child .program-bar-track i { background: linear-gradient(90deg,#f0a000,#ffc34d); }
.program-empty-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.program-empty-state > span {
  align-items: center;
  background: #edf3fb;
  border-radius: 50%;
  color: var(--blue);
  display: flex;
  font-size: 18px;
  height: 50px;
  justify-content: center;
  margin-bottom: 10px;
  width: 50px;
}
.program-empty-state strong { font-size: 13px; }
.program-empty-state small { color: var(--muted); font-size: 9px; margin-top: 5px; }

@media (max-width: 820px) {
  .program-insight-body { grid-template-columns: 1fr; }
  .program-top-card { min-height: 185px; }
}
@media (max-width: 520px) {
  .program-insight-body { gap: 12px; padding: 13px; }
  .program-top-card { padding: 18px 14px; }
  .program-rank-heading { gap: 7px; grid-template-columns: 24px minmax(0,1fr); }
  .program-rank-heading > span:last-child { grid-column: 2; }
  .program-bar-track { margin-left: 31px; }
}


/* ===== MakalaHub Work V13 ===== */
body.workspace-taruna {
  --workspace-sidebar: linear-gradient(180deg, var(--taruna) 0%, var(--taruna-dark) 100%);
  --workspace-accent: var(--taruna);
}
body.workspace-edukasi {
  --workspace-sidebar: linear-gradient(180deg, var(--edukasi) 0%, var(--edukasi-dark) 100%);
  --workspace-accent: var(--edukasi);
}
body.workspace-taruna .eyebrow,
body.workspace-taruna .panel-heading span,
body.workspace-taruna .module-summary > header button { color: var(--taruna); }
body.workspace-taruna .global-search:focus-within { border-color: var(--taruna); box-shadow: 0 0 0 3px rgba(153,27,31,.1); }

.hub-brand { align-items: flex-start; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.hub-brand > div:last-child { display: flex; flex-direction: column; gap: 2px; padding-left: 3px; }
.hub-brand strong { font-size: 17px; letter-spacing: -.2px; }
.hub-brand small { color: rgba(255,255,255,.62); font-size: 8px; letter-spacing: .4px; }
.brand-dual-logos { align-items: center; display: grid; gap: 7px; grid-template-columns: 1fr 1fr; width: 100%; }
.unit-logo {
  align-items: center; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; display: flex; height: 42px; justify-content: center; overflow: hidden; padding: 6px;
}
.unit-logo img { display: block; max-height: 100%; max-width: 100%; object-fit: contain; }
.taruna-logo { background: rgba(93,8,11,.72); }
.taruna-logo img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.edukasi-logo img { max-width: 115px; }

.workspace-switcher {
  background: rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  display: grid; gap: 4px; grid-template-columns: repeat(3,1fr); margin: 0 2px 13px; padding: 4px;
}
.workspace-switcher button {
  align-items: center; background: transparent; border: 0; border-radius: 8px; color: rgba(255,255,255,.68);
  display: flex; flex-direction: column; font-size: 8px; font-weight: 750; gap: 2px; min-height: 42px; padding: 5px 2px;
}
.workspace-switcher button span { font-size: 10px; }
.workspace-switcher button.active { background: white; box-shadow: 0 4px 12px rgba(0,0,0,.16); color: var(--ink); }
.workspace-switcher button[data-workspace="Taruna"].active { color: var(--taruna); }
.workspace-switcher button[data-workspace="Edukasi"].active { color: var(--edukasi); }

.unit-badge {
  align-items: center; border-radius: 999px; display: inline-flex; font-size: 7px; font-weight: 850;
  letter-spacing: .5px; line-height: 1; padding: 5px 7px; text-transform: uppercase; white-space: nowrap;
}
.unit-badge.taruna { background: #ffebec; color: var(--taruna); }
.unit-badge.edukasi { background: #e9f1ff; color: var(--edukasi); }

.v13-main-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mirror-config {
  background: #f7f9fd; border: 1px solid var(--border); border-radius: 12px; margin: 14px 0 20px; padding: 14px;
}
.mirror-toggle { align-items: center; cursor: pointer; display: grid !important; gap: 11px; grid-template-columns: 42px 1fr; }
.mirror-toggle > input { height: 0; opacity: 0; position: absolute; width: 0; }
.mirror-toggle > span { background: #cbd5e1; border-radius: 999px; height: 24px; position: relative; transition: .2s; width: 42px; }
.mirror-toggle > span::after {
  background: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.18); content: ""; height: 18px;
  left: 3px; position: absolute; top: 3px; transition: .2s; width: 18px;
}
.mirror-toggle > input:checked + span { background: var(--workspace-accent); }
.mirror-toggle > input:checked + span::after { transform: translateX(18px); }
.mirror-toggle > div { display: flex; flex-direction: column; gap: 2px; }
.mirror-toggle strong { font-size: 11px; }
.mirror-toggle small, .mirror-config > p { color: var(--muted); font-size: 9px; }
.mirror-config > p { margin: 10px 0 0; }
.mirror-platform-grid { display: grid; gap: 8px; grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 12px; }
.mirror-platform-grid label {
  align-items: center; background: white; border: 1px solid var(--border); border-radius: 9px;
  cursor: pointer; display: flex; gap: 7px; min-height: 40px; padding: 8px;
}
.mirror-platform-grid input { accent-color: var(--workspace-accent); }
.mirror-platform-grid span { font-size: 9px; font-weight: 650; }

.card-topline { align-items: center; display: flex; justify-content: space-between; }
.kanban-card.unit-taruna { box-shadow: inset 3px 0 0 rgba(153,27,31,.78), 0 3px 10px rgba(20,38,70,.04); }
.kanban-card.unit-edukasi { box-shadow: inset 3px 0 0 rgba(9,70,137,.78), 0 3px 10px rgba(20,38,70,.04); }
.kanban-card > small > b { color: var(--ink); }
.mirror-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.mirror-badges span {
  background: #f2f5fa; border: 1px solid #e1e7ef; border-radius: 999px; color: #5d6b80;
  font-size: 7px; font-weight: 700; padding: 4px 6px;
}
.mirror-badges span.primary { background: #e9f1ff; border-color: #d2e2ff; color: var(--edukasi); }
.workspace-taruna .mirror-badges span.primary { background: #ffebec; border-color: #ffd2d5; color: var(--taruna); }
.mirror-badges span.none { background: #f6f6f6; color: #8a94a5; }
.output-counts { display: flex; gap: 7px; }
.output-counts span { background: #f8fafc; border-radius: 6px; color: var(--muted); font-size: 8px; padding: 5px 7px; }
.output-counts b { color: var(--ink); }

.output-target-panel { margin-top: 18px; }
.panel-heading > div small { color: var(--muted); display: block; font-size: 8px; margin-top: 3px; }
.output-unit-grid { display: grid; gap: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 16px; }
.output-unit-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.output-unit-card > header {
  align-items: center; background: #f8fafc; display: grid; gap: 9px; grid-template-columns: auto 1fr auto; padding: 13px;
}
.output-unit-card.taruna > header { background: linear-gradient(90deg,#fff4f5,#fff); }
.output-unit-card.edukasi > header { background: linear-gradient(90deg,#eff5ff,#fff); }
.output-unit-card > header > div { display: flex; flex-direction: column; gap: 2px; }
.output-unit-card > header strong { font-size: 11px; }
.output-unit-card > header small { color: var(--muted); font-size: 8px; }
.output-unit-card > header > b { font-size: 23px; }
.brand-output-list { display: flex; flex-direction: column; gap: 10px; padding: 13px; }
.brand-output-row { display: grid; gap: 7px; grid-template-columns: 1fr auto; }
.brand-output-row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.brand-output-row strong { font-size: 10px; }
.brand-output-row small { color: var(--muted); font-size: 8px; }
.brand-output-row > b { font-size: 18px; }
.brand-output-track { background: #e9edf4; border-radius: 999px; grid-column: 1 / -1; height: 6px; overflow: hidden; }
.brand-output-track i { background: #94a3b8; display: block; height: 100%; }
.output-unit-card.taruna .brand-output-track i { background: var(--taruna); }
.output-unit-card.edukasi .brand-output-track i { background: var(--edukasi); }
.brand-output-row.on-target > b { color: var(--green); }
.brand-output-row.above > b { color: var(--orange); }

.dashboard-v13-grid { display: grid; gap: 18px; grid-template-columns: 1.1fr .9fr; margin-top: 18px; }
.dashboard-v13-grid .program-insight-panel { margin-top: 0; }
.platform-output-table { display: flex; flex-direction: column; max-height: 430px; overflow: auto; padding: 10px 16px 16px; }
.platform-output-table > div {
  align-items: center; border-bottom: 1px solid var(--border); display: grid; gap: 8px;
  grid-template-columns: auto minmax(110px,1fr) minmax(100px,.8fr) 34px; padding: 9px 0;
}
.platform-output-table > div strong { font-size: 9px; }
.platform-output-table > div > span:not(.unit-badge) { color: var(--muted); font-size: 8px; }
.platform-output-table > div > b { font-size: 14px; text-align: right; }

.calendar-task.unit-taruna { box-shadow: inset 3px 0 0 var(--taruna); }
.calendar-task.unit-edukasi { box-shadow: inset 3px 0 0 var(--edukasi); }
.calendar-task .unit-badge { margin-right: 4px; transform: scale(.88); transform-origin: left center; }

.program-manager-list article > div:first-child { align-items: flex-start; }
.program-manager-list .unit-badge { margin-right: 7px; }

.chat-topbar .unit-badge { margin-left: 8px; }

@media (max-width: 1100px) {
  .v13-main-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mirror-platform-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-v13-grid, .output-unit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .v13-main-fields { grid-template-columns: 1fr; }
  .mirror-platform-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hub-brand { padding-top: 3px; }
  .brand-dual-logos { grid-template-columns: 1fr 1fr; }
  .workspace-switcher { position: sticky; top: 0; z-index: 2; }
  .output-unit-grid { padding: 10px; }
  .platform-output-table > div { grid-template-columns: auto 1fr 28px; }
  .platform-output-table > div > span:not(.unit-badge) { grid-column: 2; }
}

/* V13 dual-brand identity on authentication screens */
.hub-auth-brand { align-items: center; gap: 12px; }
.auth-dual-logo { display: grid; flex: 0 0 auto; gap: 5px; grid-template-columns: 48px 48px; }
.auth-unit-logo { align-items: center; border-radius: 9px; display: flex; height: 34px; justify-content: center; overflow: hidden; padding: 5px; }
.auth-unit-logo img { display: block; max-height: 100%; max-width: 100%; object-fit: contain; }
.auth-unit-logo.taruna { background: linear-gradient(135deg, var(--taruna), var(--taruna-dark)); }
.auth-unit-logo.edukasi { background: #f4f8ff; border: 1px solid #dbe7f7; }
.auth-unit-logo.edukasi img { max-width: 42px; }
@media (max-width: 440px) {
  .auth-dual-logo { grid-template-columns: 42px 42px; }
  .hub-auth-brand strong { font-size: 15px; }
}


/* ===== V13.1: workspace langsung MT / ME ===== */
.active-unit-brand {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0,1fr);
  padding: 0 8px 14px;
}
.active-unit-brand > div:last-child { padding-left: 0; }
.active-unit-logo {
  align-items: center;
  border-radius: 11px;
  display: none;
  height: 46px;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  width: 48px;
}
.active-unit-logo img { display: block; max-height: 100%; max-width: 100%; object-fit: contain; }
.taruna-brand-logo { background: rgba(83,7,10,.42); }
.edukasi-brand-logo { background: white; }
body.workspace-taruna .taruna-brand-logo,
body.workspace-edukasi .edukasi-brand-logo { display: flex; }
body.workspace-taruna .active-unit-brand small { color: #ffd8da; }
body.workspace-edukasi .active-unit-brand small { color: #d8e8ff; }

.workspace-switcher-simple {
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin-bottom: 14px;
}
.workspace-switcher-simple button {
  gap: 3px;
  min-height: 48px;
}
.workspace-switcher-simple button span {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 9px;
  height: 20px;
  justify-content: center;
  width: 25px;
}
.workspace-switcher-simple button b { font-size: 8px; line-height: 1.15; }
body.workspace-taruna .workspace-switcher-simple button[data-workspace="Taruna"].active { color: var(--taruna); }
body.workspace-edukasi .workspace-switcher-simple button[data-workspace="Edukasi"].active { color: var(--edukasi); }

body.workspace-taruna .primary-button { background: var(--taruna); }
body.workspace-taruna .primary-button:hover { background: var(--taruna-dark); }
body.workspace-taruna .avatar { background: var(--taruna); }
body.workspace-taruna .progress-ring { --progress-color: var(--taruna); }

@media (max-width: 760px) {
  .active-unit-brand { grid-template-columns: 44px minmax(0,1fr); }
  .active-unit-logo { height: 42px; width: 44px; }
}


/* ===== V15: full content planner ===== */
.planner-copy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.planner-badges { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.planner-badges span { background:#eef3f9; border:1px solid #dbe4ef; border-radius:999px; color:#41536c; font-size:8px; font-weight:800; padding:4px 7px; }
body.workspace-taruna .planner-badges span:first-child { background:#fff0f1; border-color:#ffd0d4; color:var(--taruna); }
body.workspace-edukasi .planner-badges span:first-child { background:#edf5ff; border-color:#cfe3ff; color:var(--edukasi); }
.platform-publish-checklist { background:#f8fafc; border:1px solid var(--border); border-radius:14px; margin:14px 0 20px; padding:14px; }
#platformStatusGrid { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.platform-status-row { align-items:center; background:#fff; border:1px solid var(--border); border-radius:11px; display:grid; gap:10px; grid-template-columns:minmax(130px,.7fr) auto minmax(180px,1.3fr); padding:10px 12px; }
.platform-status-row > div { display:flex; flex-direction:column; gap:2px; }
.platform-status-row strong { font-size:10px; }
.platform-status-row small { color:var(--muted); font-size:8px; }
.platform-status-row input[type=url] { min-height:38px; }
.publish-check { align-items:center; display:flex; flex-direction:row; gap:7px; margin:0; }
.publish-check input { height:16px; width:16px; }
.publish-check span { font-size:9px; font-weight:800; }
.platform-publish-checklist > p { color:var(--muted); font-size:8px; margin:9px 0 0; }
.planner-insight-panel { margin-top:18px; }
.panel-link { background:transparent; border:0; color:var(--accent); cursor:pointer; font-size:9px; font-weight:900; }
.planner-insight-grid { display:grid; gap:10px; grid-template-columns:repeat(3,minmax(0,1fr)); padding:14px 16px 8px; }
.planner-insight-grid article { background:#f8fafc; border:1px solid var(--border); border-radius:12px; display:flex; flex-direction:column; gap:5px; min-height:86px; padding:12px; }
.planner-insight-grid span { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.07em; }
.planner-insight-grid strong { font-size:16px; line-height:1.2; }
.planner-insight-grid small { color:var(--muted); font-size:8px; }
.planner-mini-bars { display:flex; flex-direction:column; gap:7px; padding:8px 16px 16px; }
.planner-mini-bars > div { align-items:center; display:grid; gap:8px; grid-template-columns:120px 1fr 24px; }
.planner-mini-bars span { font-size:8px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.planner-mini-bars i { background:var(--accent); border-radius:99px; display:block; height:6px; }
.planner-mini-bars b { font-size:9px; text-align:right; }
.idea-bank-heading { margin-bottom:14px; }
.idea-summary { display:grid; gap:10px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:14px; }
.idea-summary article { background:#fff; border:1px solid var(--border); border-radius:12px; display:flex; flex-direction:column; gap:4px; padding:12px 14px; }
.idea-summary small { color:var(--muted); font-size:8px; font-weight:800; }
.idea-summary strong { font-size:20px; }
.idea-columns { align-items:start; display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.idea-columns > section { background:#eef2f7; border-radius:14px; min-height:250px; padding:10px; }
.idea-columns > section > header { align-items:center; display:flex; justify-content:space-between; padding:3px 3px 10px; }
.idea-columns > section > header strong { font-size:10px; }
.idea-columns > section > header span { align-items:center; background:#fff; border-radius:99px; display:flex; font-size:8px; height:22px; justify-content:center; width:22px; }
.idea-columns > section > div { display:flex; flex-direction:column; gap:9px; }
.idea-card { background:#fff; border:1px solid #dfe6ef; border-radius:12px; box-shadow:0 4px 12px rgba(15,23,42,.04); padding:12px; }
.idea-card-meta { align-items:center; display:flex; gap:6px; }
.idea-card-meta > span:last-child { color:var(--muted); font-size:8px; font-weight:800; }
.idea-card h3 { font-size:12px; line-height:1.4; margin:9px 0 6px; }
.idea-card p { color:#46566d; font-size:8px; line-height:1.5; margin:8px 0; }
.idea-card > a { color:var(--accent); display:inline-block; font-size:8px; font-weight:800; margin-top:6px; }
.idea-card footer { align-items:center; border-top:1px solid var(--border); display:flex; gap:6px; margin-top:10px; padding-top:9px; }
.idea-card footer small { color:var(--muted); font-size:7px; }
.idea-actions { display:flex; gap:7px; margin-top:9px; }
.idea-actions button { flex:1; font-size:8px; min-height:34px; padding:7px; }
.idea-modal { max-width:760px; }
@media (max-width:1100px){ .idea-columns{grid-template-columns:1fr 1fr}.planner-insight-grid{grid-template-columns:1fr 1fr 1fr} }
@media (max-width:760px){ .planner-copy-grid,.planner-insight-grid,.idea-summary,.idea-columns{grid-template-columns:1fr}.platform-status-row{grid-template-columns:1fr}.planner-mini-bars>div{grid-template-columns:90px 1fr 22px} }

.card-uploader{display:grid;gap:5px;margin:8px 0}.card-uploader span{align-items:center;color:var(--muted);display:flex;font-size:7px;gap:5px}.card-uploader .avatar{height:18px;min-width:18px;width:18px}.kanban-card .output-counts{flex-wrap:wrap}

/* ===== V16: kalender konten lebih rapi dan responsif ===== */
.calendar-heading { gap: 20px; }
.calendar-heading > div:first-child { min-width: 0; }
.calendar-nav { flex-wrap: wrap; justify-content: flex-end; }
.calendar-nav button { cursor: pointer; font-weight: 700; transition: background .15s, border-color .15s, transform .15s; }
.calendar-nav button:hover { background: #f7f9fc; border-color: #cbd6e5; transform: translateY(-1px); }
.calendar-nav strong { color: var(--text); font-size: 14px; }

.calendar-summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  display: flex;
  gap: 18px;
  min-height: 46px;
  padding: 10px 14px;
}
.calendar-summary > span { color: var(--muted); font-size: 10px; }
.calendar-summary > span b { color: var(--workspace-accent); font-size: 15px; margin-right: 3px; }
.calendar-summary-note { margin-left: auto; text-align: right; }

.full-calendar { border-radius: 0 0 14px 14px; box-shadow: 0 8px 22px rgba(16,37,70,.04); }
.calendar-weekdays { background: #f5f8fc; }
.calendar-weekdays span {
  border-right: 1px solid var(--border);
  color: #5e6f88;
  font-size: 10px;
  letter-spacing: .02em;
  padding: 11px 8px;
}
.calendar-weekdays span:nth-child(6),
.calendar-weekdays span:nth-child(7) { background: #fbfcfe; }
.calendar-weekdays span:last-child { border-right: 0; }
.calendar-grid { align-items: stretch; }
.calendar-day {
  background: #fff;
  min-height: 148px;
  overflow: hidden;
  padding: 8px;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-child(7n + 6),
.calendar-day:nth-child(7n + 7) { background: #fcfdff; }
.calendar-day.muted { background: #f7f9fc; }
.calendar-day.has-events { background: linear-gradient(180deg,#fff 0%,#fcfdff 100%); }
.calendar-day.today { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--workspace-accent) 35%, transparent); }

.calendar-date-row { align-items: center; display: flex; justify-content: space-between; min-height: 27px; }
.calendar-date-number {
  align-items: center;
  border-radius: 50%;
  color: var(--text);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  width: 25px;
}
.calendar-day.today .calendar-date-number { background: var(--workspace-accent); color: #fff; }
.calendar-date-count {
  background: #edf2f8;
  border-radius: 999px;
  color: #607089;
  font-size: 7px;
  font-weight: 750;
  padding: 4px 6px;
  white-space: nowrap;
}
.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
  max-height: 105px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}
.calendar-events::-webkit-scrollbar { width: 4px; }
.calendar-events::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.calendar-day button.calendar-task,
.calendar-task {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-left: 4px solid var(--workspace-accent);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 6px;
  grid-template-columns: 34px minmax(0,1fr) 22px;
  min-height: 42px;
  overflow: hidden;
  padding: 5px 6px;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  width: 100%;
}
.calendar-task.unit-taruna { border-left-color: var(--taruna); box-shadow: none; }
.calendar-task.unit-edukasi { border-left-color: var(--edukasi); box-shadow: none; }
.calendar-task:hover { border-color: #c9d5e5; box-shadow: 0 5px 12px rgba(20,38,70,.08); transform: translateY(-1px); }
.calendar-task-time {
  background: #f1f5f9;
  border-radius: 5px;
  color: #53657d;
  font-size: 8px;
  font-weight: 800;
  padding: 5px 3px;
  text-align: center;
}
.calendar-task.unit-taruna .calendar-task-time { background: #fff0f1; color: var(--taruna); }
.calendar-task.unit-edukasi .calendar-task-time { background: #edf5ff; color: var(--edukasi); }
.calendar-task-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calendar-day button.calendar-task strong,
.calendar-task-copy strong {
  color: var(--text);
  display: -webkit-box;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.calendar-day button.calendar-task small,
.calendar-task-copy small {
  color: var(--muted);
  display: block;
  font-size: 7px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-task-avatar { align-items: center; display: flex; justify-content: flex-end; }
.calendar-task-avatar .avatar.micro { height: 20px; min-width: 20px; width: 20px; }

.calendar-agenda { display: none; }
.calendar-agenda-row {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0,1fr);
  padding: 9px;
}
.calendar-agenda-date {
  align-items: center;
  background: #f3f6fa;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calendar-agenda-date strong { color: var(--workspace-accent); font-size: 18px; }
.calendar-agenda-date span { color: var(--muted); font-size: 8px; font-weight: 750; }
.calendar-agenda-content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.calendar-agenda-content > small { color: var(--muted); font-size: 8px; font-weight: 700; }
.calendar-task.compact { grid-template-columns: 42px minmax(0,1fr); min-height: 48px; }
.calendar-task.compact .calendar-task-copy strong { font-size: 10px; }
.calendar-task.compact .calendar-task-copy small { font-size: 8px; }
.calendar-agenda-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: var(--muted);
  font-size: 10px;
  padding: 28px 14px;
  text-align: center;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .full-calendar { overflow-x: auto; }
  .calendar-grid, .calendar-weekdays { min-width: 920px; }
}

@media (max-width: 820px) {
  .calendar-heading { margin-bottom: 12px; }
  .calendar-nav { display: grid; grid-template-columns: 42px minmax(120px,1fr) 42px auto; width: 100%; }
  .calendar-nav strong { min-width: 0; }
  .calendar-nav button { height: 38px; min-width: 38px; }
  .calendar-summary { border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .calendar-summary-note { display: none; }
  .full-calendar { display: none; }
  .calendar-agenda { display: flex; flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
  .calendar-nav { grid-template-columns: 40px minmax(100px,1fr) 40px; }
  .calendar-nav button[data-cal-today] { grid-column: 1 / -1; }
  .calendar-summary { gap: 10px; justify-content: space-between; }
  .calendar-summary > span { font-size: 9px; }
  .calendar-agenda-row { grid-template-columns: 42px minmax(0,1fr); }
}
/* Koreksi spesifisitas elemen tanggal terhadap gaya kalender versi lama. */
.calendar-day > .calendar-date-row { flex-direction: row; gap: 6px; margin-top: 0; }
.calendar-day > .calendar-events { margin-top: 5px; }


/* ===== V17/V18: kalender deadline + komentar rapi + revisi creator terkunci ===== */
.calendar-mode-tabs {
  align-items: center; background: #eef2f8; border: 1px solid var(--border); border-radius: 12px;
  display: inline-flex; gap: 4px; margin: 0 0 12px; padding: 4px;
}
.calendar-mode-tabs button {
  align-items: center; background: transparent; border: 0; border-radius: 9px; color: var(--muted);
  display: inline-flex; font-size: 10px; font-weight: 800; gap: 7px; min-height: 38px; padding: 8px 14px;
}
.calendar-mode-tabs button span { font-size: 14px; }
.calendar-mode-tabs button.active { background: #fff; box-shadow: 0 3px 10px rgba(20,38,70,.09); color: var(--workspace-accent); }
.calendar-task.calendar-deadline .calendar-task-time { min-width: 62px; width: auto; }
.calendar-task.calendar-deadline.deadline-soon { background: #fffaf0; border-color: #f4d797; }
.calendar-task.calendar-deadline.deadline-soon .calendar-task-time { background: #fff0c8; color: #9a6500; }
.calendar-task.calendar-deadline.deadline-today { background: #fff5ed; border-color: #f2bc8d; }
.calendar-task.calendar-deadline.deadline-today .calendar-task-time { background: #ffe0c4; color: #b84c00; }
.calendar-task.calendar-deadline.deadline-overdue { background: #fff3f4; border-color: #efb4ba; }
.calendar-task.calendar-deadline.deadline-overdue .calendar-task-time { background: #ffe0e3; color: #b4232d; }
.calendar-task.calendar-deadline.finished { opacity: .58; }

.comments-box {
  background: #f7f9fc; border: 1px solid #dfe6f1; border-radius: 14px; gap: 0; padding: 0; overflow: hidden;
}
.comments-toolbar {
  align-items: center; background: #fff; border-bottom: 1px solid #e4eaf2; display: flex;
  justify-content: space-between; padding: 14px 16px;
}
.comments-toolbar > div { display: flex; flex-direction: column; gap: 4px; }
.comments-toolbar strong { color: var(--ink); font-size: 12px; }
.comment-count { background: #edf2f8; border-radius: 999px; color: var(--muted); font-size: 8px; font-weight: 800; padding: 6px 9px; }
.comment-list { gap: 12px; max-height: 310px; overflow-x: hidden; overflow-y: auto; padding: 16px; }
.comment-list::-webkit-scrollbar { width: 5px; }
.comment-list::-webkit-scrollbar-thumb { background: #c7d2e1; border-radius: 999px; }
.comment-list .comment-item {
  align-items: flex-start; background: transparent; border: 0; border-radius: 0; display: grid;
  gap: 9px; grid-template-columns: 34px minmax(0,1fr); padding: 0;
}
.comment-list .comment-item.mine { grid-template-columns: minmax(0,1fr) 34px; }
.comment-list .comment-item.mine .comment-avatar-wrap { grid-column: 2; }
.comment-list .comment-item.mine .comment-bubble { grid-column: 1; grid-row: 1; justify-self: end; background: color-mix(in srgb, var(--workspace-accent) 8%, white); border-color: color-mix(in srgb, var(--workspace-accent) 22%, #dfe6f1); }
.comment-avatar-wrap { display: flex; flex: 0 0 34px; height: 34px; width: 34px; }
.avatar.comment-avatar { border-radius: 50%; flex: 0 0 34px; height: 34px; min-height: 34px; min-width: 34px; width: 34px; }
.avatar.comment-avatar img { border-radius: 50%; height: 100%; object-fit: cover; width: 100%; }
.comment-bubble { background: #fff; border: 1px solid #dfe6f1; border-radius: 12px; min-width: 0; padding: 10px 12px; width: min(100%, 500px); }
.comment-meta { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.comment-meta strong { color: var(--workspace-accent); font-size: 10px; }
.comment-meta time { color: var(--muted); font-size: 7px; white-space: nowrap; }
.comment-bubble p { color: var(--ink); font-size: 11px; line-height: 1.55; margin: 6px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-empty { align-items: center; color: var(--muted); display: flex; flex-direction: column; gap: 4px; padding: 20px 10px; text-align: center; }
.comment-empty span { font-size: 20px; }
.comment-empty strong { color: var(--ink); font-size: 11px; }
.comment-empty small { font-size: 8px; }
.comment-composer { align-items: flex-start; background: #fff; border-top: 1px solid #e4eaf2; display: grid; gap: 10px; grid-template-columns: 34px minmax(0,1fr); padding: 14px 16px; }
.comment-composer-avatar { height: 34px; width: 34px; }
.comment-composer-field { min-width: 0; }
.comment-composer-field textarea { background: #f8fafc; border-color: #dbe3ee; min-height: 82px; resize: vertical; width: 100%; }
.comment-composer-field textarea:focus { background: #fff; border-color: var(--workspace-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--workspace-accent) 10%, transparent); }
.comment-composer-field > div { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; }
.comment-composer-field small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.comment-send-button { flex: 0 0 auto; min-width: 82px; }
.revision-readonly-note {
  align-items: flex-start; background: #fff7e8; border: 1px solid #f0d399; border-radius: 12px;
  display: grid; gap: 10px; grid-template-columns: 30px 1fr; margin: 14px 0; padding: 12px 14px;
}
.revision-readonly-note > span { align-items: center; background: #ffe6b4; border-radius: 50%; color: #a86500; display: flex; font-size: 18px; height: 30px; justify-content: center; width: 30px; }
.revision-readonly-note div { display: flex; flex-direction: column; gap: 3px; }
.revision-readonly-note strong { color: #7e4d00; font-size: 10px; }
.revision-readonly-note small { color: #8b6a31; font-size: 8px; line-height: 1.45; }
.revision-lock-badge { background: #fff0d5; border-radius: 999px; color: #9a6200; font-size: 7px; font-weight: 800; padding: 4px 7px; }
.kanban-card footer { align-items: center; display: flex; gap: 6px; justify-content: space-between; }

@media (max-width: 700px) {
  .calendar-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .calendar-mode-tabs button { justify-content: center; padding: 8px; }
  .comment-list { max-height: 360px; padding: 12px; }
  .comment-composer { grid-template-columns: 28px minmax(0,1fr); padding: 12px; }
  .comment-composer-avatar, .avatar.comment-avatar { height: 28px; min-height: 28px; min-width: 28px; width: 28px; }
  .comment-avatar-wrap { height: 28px; width: 28px; }
  .comment-list .comment-item { grid-template-columns: 28px minmax(0,1fr); }
  .comment-list .comment-item.mine { grid-template-columns: minmax(0,1fr) 28px; }
  .comment-composer-field > div { align-items: stretch; flex-direction: column; }
  .comment-send-button { width: 100%; }
}


/* ===== V19: input jam 24 jam ===== */
.time-24-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.time-24-input::placeholder { opacity: .62; }


/* ===== V20: revisi selesai tanpa komentar wajib ===== */
.revision-readonly-note {
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.revision-readonly-note > div { flex: 1 1 260px; }
.revision-ready-button {
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.revision-ready-button:hover { filter: brightness(.96); }
.revision-ready-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #86efac;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
}
.revision-ready-notice > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #dcfce7;
  font-weight: 900;
}
.revision-ready-notice div { display: grid; gap: 3px; }
.revision-ready-notice small { color: #3f7651; line-height: 1.45; }
.revision-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  font-weight: 900;
}
@media (max-width: 720px) {
  .revision-ready-button { width: 100%; }
}


/* ===== V22: board workflow ringkas + review ulang yang jelas ===== */
.kanban-toolbar {
  align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 13px;
  display: flex; gap: 12px; justify-content: space-between; margin-bottom: 10px; padding: 8px 10px;
  position: sticky; top: 82px; z-index: 18;
}
.flow-jump-list { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.flow-jump-list::-webkit-scrollbar { display: none; }
.flow-jump-list button {
  align-items: center; background: #f6f8fb; border: 1px solid #dde5ef; border-radius: 9px; color: #42506a;
  display: inline-flex; flex: 0 0 auto; font-size: 9px; font-weight: 850; gap: 6px; min-height: 34px; padding: 7px 10px;
}
.flow-jump-list button:hover, .flow-jump-list button.pulse { background: color-mix(in srgb, var(--workspace-accent) 9%, white); border-color: color-mix(in srgb, var(--workspace-accent) 35%, #dde5ef); color: var(--workspace-accent); }
.flow-jump-list i { border-radius: 50%; height: 7px; width: 7px; }
.kanban-toolbar > small { color: var(--muted); flex: 0 0 auto; font-size: 8px; }
.kanban-stage { min-width: 0; position: relative; }
.board-content > .kanban-stage > .kanban {
  cursor: grab; height: calc(100vh - 300px); min-height: 470px; overflow-x: auto; overflow-y: hidden;
  padding: 0 3px 3px; scroll-behavior: smooth; scrollbar-width: none;
}
.board-content > .kanban-stage > .kanban::-webkit-scrollbar { display: none; }
.board-content > .kanban-stage > .kanban.panning { cursor: grabbing; user-select: none; }
.board-content .kanban-column { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
.board-content .kanban-cards { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 0 4px 10px 0; scrollbar-color: #bdcadb transparent; scrollbar-width: thin; }
.board-content .kanban-cards::-webkit-scrollbar { width: 5px; }
.board-content .kanban-cards::-webkit-scrollbar-thumb { background: #bdcadb; border-radius: 999px; }
.kanban-scroll-button {
  align-items: center; background: color-mix(in srgb, var(--workspace-accent) 88%, #111827); border: 2px solid #fff;
  border-radius: 50%; box-shadow: 0 8px 22px rgba(15,23,42,.2); color: #fff; display: flex; font-size: 25px;
  height: 44px; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; z-index: 17;
}
.kanban-scroll-button.left { left: 8px; }
.kanban-scroll-button.right { right: 8px; }
.kanban-scroll-button:hover { filter: brightness(1.08); transform: translateY(-50%) scale(1.04); }
.revision-pending-badge, .revision-review-badge, .revision-approved-badge {
  align-items: center; border-radius: 999px; display: inline-flex; font-size: 8px; font-weight: 900; gap: 4px; line-height: 1.2; padding: 5px 7px;
}
.revision-pending-badge { background: #fff0f1; color: #b42332; }
.revision-review-badge { background: #fff1cf; color: #8a5a00; }
.revision-approved-badge { background: #dcfce7; color: #166534; }
.revision-ready-badge.legacy-ready { background: #e9f8ef; color: #166534; }
.review-repeat-label { background: #fff1cf; border-radius: 999px; color: #8a5a00; display: inline-flex; font-size: 8px; font-weight: 900; margin-top: 5px; padding: 4px 7px; width: fit-content; }
@media (max-width: 900px) {
  .kanban-toolbar { top: 74px; }
  .kanban-toolbar > small { display: none; }
  .board-content > .kanban-stage > .kanban { height: calc(100vh - 270px); min-height: 430px; }
  .kanban-scroll-button { height: 38px; width: 38px; }
}
@media (max-width: 700px) {
  .kanban-toolbar { position: static; }
  .board-content > .kanban-stage > .kanban { height: calc(100vh - 330px); min-height: 420px; }
  .kanban-scroll-button { display: none; }
  .board-content .kanban-column { min-width: min(86vw, 310px); }
}
