@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --sunan-teal-900: #0E3637;
  --sunan-teal-700: #165355;
  --sunan-teal-500: #1D6C6E;

  --sunan-gold-500: #A78863;
  --sunan-gold-200: #CDBCA7;

  --surface-page: #F3F3F3;
  --surface-card: #FFFFFF;
  --surface-soft: #F8F8F8;

  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-on-dark: #FFFFFF;

  --border-default: #E5E7EB;
  --border-soft: #EEEEEE;

  --status-success: #1E7A45;
  --status-warning: #C2410C;
  --status-danger: #B3261E;

  --state-pending: #4B5563;
  --state-review: #C2410C;
  --state-late: #B3261E;
  --state-due: #F4C400;
  --state-active: #165355;
  --state-closed: #1E7A45;

  --chart-neutral: #6E7F80;
  --chart-grid: #F1F1F1;
  --page-max: 1200px;
  --page-editorial: 1080px;
  --app-head-h: 56px;
}

* { box-sizing: border-box; font-family: "Tajawal", sans-serif; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text-primary);
  background: var(--surface-page);
}
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button, input, select, textarea {
  font-family: "Tajawal", sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.app-head {
  position: sticky;
  top: 0;
  z-index: 80;
  flex-shrink: 0;
  background: linear-gradient(100deg, #0E3637 0%, #165355 55%, #A78863 100%);
  padding-block: 4px;
  padding-inline: 5%;
  min-height: var(--app-head-h);
}
.app-head-inner {
  width: min(var(--page-max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
}
.logo {
  height: 28px;
  width: auto;
  display: block;
}
.app-head-title { display: none; }
.icon-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
}
.icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 1.6;
}
.icon-btn:hover, .icon-btn:focus-visible { color: var(--text-on-dark); }
.icon-btn:focus-visible {
  outline: 2px solid var(--sunan-gold-200);
  outline-offset: 2px;
}
.icon-btn:active { color: var(--text-on-dark); }
.icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 54, 55, 0.96);
  color: #F7F1E6;
  border: 1px solid rgba(167, 136, 99, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 40;
  box-shadow: 0 8px 20px rgba(14, 54, 55, 0.18);
}
.icon-btn:hover::after,
.icon-btn:focus-visible::after,
.icon-btn.is-tip::after {
  opacity: 1;
  visibility: visible;
}
.icon-nav { overflow: visible; }
.icon-nav .menu-list {
  inset-inline-start: auto;
  inset-inline-end: 0;
}
.nav-arrow { display: none !important; }
.nav-arrow svg { display: block; }
.nav-arrow.prev { inset-inline-end: auto; inset-inline-start: 16px; }
.nav-arrow.next { inset-inline-start: auto; inset-inline-end: 16px; }
.nav-arrow[hidden] { display: none; }
.nav-arrow:focus-visible {
  outline: 2px solid var(--sunan-teal-700);
  outline-offset: 2px;
}

.page {
  width: min(var(--page-max), 100%);
  margin-inline: auto;
  flex: 1 0 auto;
  padding-block: 16px 0;
  padding-inline: 3% 5%;
  min-width: 0;
}
.page > .title { display: none; }
body.is-login .page > .title { display: block; text-align: center; }
.title {
  text-align: start;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text-primary);
}
h2, h3, .who h2, .section-head, .panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.footer {
  position: static;
  flex-shrink: 0;
  margin-top: 32px;
  padding: 20px 5% 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}
.card, .panel, .topbar, .filterbar, .stat, .task, .modal .box, .info-half, .acts-half {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}
.topbar, .filterbar, .panel, .card { padding: 16px 20px; margin-bottom: 16px; }
.topbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.who h2 { margin: 0; color: var(--text-primary); }
.who p { margin: 4px 0 0; color: var(--text-secondary); font-size: 12px; font-weight: 400; }

.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sunan-teal-700);
  color: var(--text-on-dark);
  border: 0;
  border-radius: 999px;
  padding: 9px 22px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: background 240ms ease, color 240ms ease;
}
.btn:hover, .btn:focus-visible, a.btn:hover, a.btn:focus-visible {
  background: var(--sunan-teal-500);
  color: var(--text-on-dark);
}
.btn:focus-visible, a.btn:focus-visible {
  outline: 2px solid var(--sunan-teal-500);
  outline-offset: 2px;
}
.btn:active, a.btn:active { background: var(--sunan-teal-500); }
.btn:disabled {
  background: var(--border-default);
  color: var(--text-secondary);
  cursor: not-allowed;
}
.btn.gold, a.btn.gold {
  background: var(--sunan-teal-700);
  color: var(--text-on-dark);
}
.btn.gold:hover, a.btn.gold:hover { background: var(--sunan-teal-500); }
.btn.light, a.btn.light {
  background: rgba(22, 83, 85, .07);
  color: var(--sunan-teal-700);
  border: 0;
}
.btn.light:hover, .btn.light:focus-visible,
a.btn.light:hover, a.btn.light:focus-visible {
  background: var(--sunan-teal-700);
  color: var(--text-on-dark);
}
.btn.is-loading { opacity: .72; pointer-events: none; }
.muted { color: var(--text-secondary); font-size: 12px; font-weight: 400; }

.login {
  max-width: 420px;
  margin: 8vh auto;
  padding: 20px;
}
.login-logo { display: none; }
.pin-field { position: relative; }
.pin-field input { padding-inline-end: 12px; padding-inline-start: 52px; }
.pin-toggle {
  position: absolute;
  inset-inline-end: auto;
  inset-inline-start: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sunan-teal-700);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pin-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pin-toggle svg.icon-eye-off,
.pin-toggle[aria-pressed="true"] svg.icon-eye { display: none !important; }
.pin-toggle[aria-pressed="true"] svg.icon-eye-off { display: block !important; }
.pin-toggle:focus-visible,
.btn-text:focus-visible {
  outline: 2px solid var(--sunan-teal-700);
  outline-offset: 2px;
}
.btn-text {
  display: inline-block;
  background: none;
  border: 0;
  padding: 12px 0;
  min-height: 44px;
  color: var(--sunan-teal-700);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.stat {
  text-align: center;
  padding: 16px 18px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  border-inline-start: 3px solid var(--sunan-gold-500);
}
.stat span { display: block; color: var(--text-secondary); font-size: 12px; font-weight: 400; }
.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--sunan-teal-700);
}
.stat.is-success strong { color: var(--status-success); }
.stat.is-warning strong { color: var(--status-warning); }
.stat.is-danger strong { color: var(--state-late); }
.board { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; align-items: start; }
.section-head { display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); margin: 12px 0; }
.badge {
  background: rgba(22, 83, 85, .08);
  color: var(--sunan-teal-700);
  padding: 2px 8px;
  font-weight: 700;
  font-size: 11px;
  border-radius: 999px;
}
.task {
  padding: 16px;
  margin-bottom: 8px;
  border-inline-start: 3px solid var(--sunan-gold-500);
  display: grid;
  gap: 6px;
}
.task.late { border-inline-start-color: var(--state-late); }
.task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.task-main { min-width: 0; flex: 1; }
.task-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 83, 85, .07);
  color: var(--sunan-teal-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.task-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 350ms ease;
}
.task.is-open .task-toggle svg { transform: rotate(180deg); }
.task-toggle:hover, .task-toggle:focus-visible { background: var(--sunan-teal-700); color: var(--text-on-dark); }
.task-toggle:focus-visible { outline: 2px solid var(--sunan-teal-700); outline-offset: 2px; }
.task-actions { margin-top: 12px; }
.task-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 350ms ease, opacity 350ms ease, margin-top 350ms ease;
  margin-top: 0;
}
.task.is-open .task-more {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 12px;
}
.task-more[hidden] { display: none; }
.task-more-inner { overflow: hidden; min-height: 0; }
.task-detail-block { margin: 0 0 10px; font-size: 13px; color: var(--text-primary); }
.task-detail-lbl { display: block; color: var(--text-secondary); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.task-log { margin: 0; padding: 0 16px 0 0; color: var(--text-primary); }
.task-log li { margin-bottom: 6px; }
.task-name { font-weight: 700; font-size: 14px; margin-bottom: 0; width: 100%; }
.meta { color: var(--text-secondary); font-size: 12px; font-weight: 400; display: flex; flex-wrap: wrap; gap: 8px; }
.chips, .btn-row, .inline, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--text-primary);
  padding: 9px 16px;
  min-height: 44px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
}
.chip.active { background: var(--sunan-teal-700); color: var(--text-on-dark); border-color: var(--sunan-teal-700); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
label { font-size: 13px; font-weight: 700; color: var(--text-primary); }
input, textarea, select {
  width: 100%;
  border: 1.5px solid var(--border-default);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--surface-card);
  color: var(--text-primary);
  font-family: "Tajawal", sans-serif;
  font-size: 13px;
}
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--sunan-teal-700);
  box-shadow: 0 0 0 3px rgba(22, 83, 85, .10);
}
.menu { position: relative; }
.menu-list {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  inset-inline-start: auto;
  top: 100%;
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  min-width: 220px;
  z-index: 12;
}
.menu.open .menu-list { display: block; }
.menu-list button {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 12px 16px;
  min-height: 44px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 13px;
}
.menu-list button:hover { background: var(--surface-soft); }
.project-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.info-half, .acts-half { padding: 16px 20px; overflow: visible; min-width: 0; }
.info-grid { display: grid; gap: 10px; }
.info-item span { display: block; color: var(--text-secondary); font-size: 12px; font-weight: 400; }
.info-item strong { font-size: 14px; font-weight: 700; }
.act-list { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.act-bar { color: var(--text-on-dark); padding: 12px; flex: 1; min-height: 72px; min-width: 0; border-radius: 8px; }
.act-bar h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.act-bar a { color: inherit; }
.flash {
  background: rgba(22, 83, 85, .08);
  color: var(--sunan-teal-700);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-weight: 500;
}
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(31, 41, 55, 0.32); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal .box {
  width: min(560px, 100%);
  padding: 0 20px 20px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.modal .box > :first-child {
  background: var(--sunan-teal-700);
  color: var(--text-on-dark);
  margin: 0 -20px 16px;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 8px !important;
  padding-inline: 16px 8px !important;
}
.modal-head h3 {
  margin: 0;
  color: var(--text-on-dark);
  font-size: 15px;
  font-weight: 700;
  background: none;
  padding: 0;
}
.modal-x {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-x svg { width: 18px; height: 18px; display: block; }
.modal-x:hover, .modal-x:focus-visible { background: rgba(255, 255, 255, .12); }
.modal-x:focus-visible { outline: 2px solid #CDBCA7; outline-offset: 2px; }
.modal-error {
  color: var(--status-danger);
  background: rgba(179, 38, 30, .10);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  margin: 0 0 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.modal-open {
  overflow: hidden;
  position: fixed;
  inset-inline: 0;
  width: 100%;
}
.clickable { cursor: pointer; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; color: var(--text-primary); font-size: 13px; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--border-default); text-align: start; border-inline: 0; }
thead th {
  background: var(--sunan-teal-700);
  color: var(--text-on-dark);
  font-weight: 700;
}
tbody tr:nth-child(odd) { background: var(--surface-card); }
tbody tr:nth-child(even) { background: var(--surface-soft); }
tbody tr:hover { background: rgba(22, 83, 85, .05); }
.empty { color: var(--text-secondary); padding: 18px 12px; font-size: 13px; font-weight: 400; text-align: center; }
.empty b { display: block; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }

.tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border-default); margin-bottom: 16px; }
.tab, .tabs a, .tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.tab.active, .tabs .active {
  color: var(--sunan-teal-700);
  border-bottom-color: var(--sunan-teal-700);
  font-weight: 600;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-bottom: 12px; }
.breadcrumb a, .breadcrumb .prev { color: var(--text-secondary); }
.breadcrumb .current { color: var(--sunan-teal-700); font-weight: 600; }
.pager, .pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
.pager button, .pagination button, .page-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  cursor: pointer;
}
.pager .active, .pagination .active, .page-btn.active {
  background: var(--sunan-teal-700);
  color: var(--text-on-dark);
}

.sunan-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--surface-page);
  transition: opacity .35s ease;
}
.sunan-loader.leave { opacity: 0; pointer-events: none; }
.sunan-loader-core {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}
.sunan-loader-core .sunan-ring { position: absolute; inset: 0; }
.sunan-ring-a { animation: spin 2.8s linear infinite; }
.sunan-ring-b { animation: spin-rev 2.1s linear infinite; }
.sunan-loader-mark {
  width: 78px;
  height: 60px;
  object-fit: contain;
  object-position: center;
  z-index: 2;
  filter: none;
  box-shadow: none;
}
.sunan-particles { position: absolute; inset: -12px; pointer-events: none; }
.sunan-particles i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sunan-gold-500);
  opacity: .55;
  animation: drift 3.6s linear infinite;
}
.sunan-particles i:nth-child(1) { top: 8%; inset-inline-end: 18%; animation-delay: 0s; }
.sunan-particles i:nth-child(2) { top: 22%; inset-inline-start: 12%; animation-delay: .4s; }
.sunan-particles i:nth-child(3) { bottom: 18%; inset-inline-end: 10%; animation-delay: .8s; }
.sunan-particles i:nth-child(4) { bottom: 8%; inset-inline-start: 22%; animation-delay: 1.2s; }
.sunan-particles i:nth-child(5) { top: 48%; inset-inline-end: 4%; animation-delay: 1.6s; }
.sunan-particles i:nth-child(6) { top: 58%; inset-inline-start: 6%; animation-delay: 2s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes drift { 50% { transform: translateY(-6px); opacity: .2; } }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes fadePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.page.content-in { animation: rise 350ms ease; }
.skel {
  background: var(--border-default);
  animation: fadePulse .9s ease-in-out infinite;
  border-radius: 8px;
}
.skel-stat { height: 84px; }
.skel-task { height: 88px; margin-bottom: 8px; }
.skel-panel { min-height: 220px; }
.skel-table { min-height: 280px; }
.skel-half { min-height: 360px; }
.skel-hero { min-height: 180px; margin-bottom: 16px; }

.pagehead-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-bottom: 16px; }
.kpirow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 32px; }
.kpi {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-inline-start: 3px solid var(--sunan-gold-500);
  border-radius: 4px;
  padding: 16px 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.kpi b { display: block; font-size: 26px; font-weight: 800; line-height: 1; color: var(--sunan-teal-700); }
.kpi span { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.kpi.active { box-shadow: 0 0 0 2px rgba(22, 83, 85, .16); }
.kpi.is-danger b { color: var(--state-late); }
.kpi.is-warning b { color: var(--status-warning); }
.kpi.is-success b { color: var(--status-success); }
.kpi.is-accent b { color: var(--sunan-gold-500); }
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--sunan-teal-700);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .n {
  background: rgba(22, 83, 85, .08);
  color: var(--sunan-teal-700);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-inline-start: 3px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
}
.prow.is-danger { border-inline-start-color: var(--state-late); }
.prow.is-warning { border-inline-start-color: var(--state-due); }
.prow.is-success { border-inline-start-color: var(--state-active); }
.prow.is-accent { border-inline-start-color: var(--state-review); }
.prow .main { flex: 1; min-width: 0; }
.prow .nm { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.prow .req { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(156, 163, 175, .12);
  color: var(--text-secondary);
}
.pill.is-danger { background: #B3261E; color: #fff; }
.pill.is-warning { background: #F4C400; color: #1A1A1A; }
.pill.is-success { background: #1E7A45; color: #fff; }
.pill.is-accent { background: #C2410C; color: #fff; }
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept-card, .project-card {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  padding: 16px 20px;
  text-align: start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dept-card strong, .project-card strong { font-size: 14px; font-weight: 700; }
.dept-card span, .project-card span { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.dept-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.dept-toolbar h2 { margin: 0; color: var(--sunan-teal-700); font-size: 16px; font-weight: 800; }
.dept-toolbar input { max-width: 320px; }
.plan-dept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  direction: rtl;
}
.dept-card-lg {
  min-height: 220px;
  padding: 22px 24px;
  gap: 12px;
  border: 1px solid var(--border-default);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}
.dept-card-lg:focus-visible {
  outline: 2px solid var(--sunan-teal-500);
  outline-offset: 2px;
}
.dept-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--sunan-teal-700);
}
.dept-card-head strong { font-size: 18px; font-weight: 800; }
.dept-go { color: var(--sunan-gold-500); }
.dept-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dept-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 8px 10px;
}
.dept-metric b { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.dept-metric em { font-size: 11px; font-style: normal; color: var(--text-secondary); }
.dept-status-line, .dept-summary { color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.smart-list { display: flex; flex-direction: column; gap: 12px; }
.smart-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  padding: 16px 18px;
  min-width: 0;
}
.smart-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.smart-title {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: start;
  color: var(--sunan-teal-700);
  font-size: 16px; font-weight: 800;
  cursor: pointer;
  min-height: 44px;
}
.smart-title:hover, .smart-title:focus-visible { text-decoration: underline; }
.smart-info p { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.smart-info p span { color: var(--text-secondary); }
.smart-acts { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.act-table { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.act-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  border-inline-start-width: 4px;
  min-width: 0;
}
.act-row[data-tone="late"] { background: #B3261E; color: #fff; border-inline-start-color: #B3261E; }
.act-row[data-tone="soon"] { background: #F4C400; color: #1A1A1A; border-inline-start-color: #F4C400; }
.act-row[data-tone="active"] { background: #165355; color: #fff; border-inline-start-color: #165355; }
.act-row[data-tone="review"] { background: #C2410C; color: #fff; border-inline-start-color: #C2410C; }
.act-row[data-tone="pending"] { background: #4B5563; color: #fff; border-inline-start-color: #4B5563; }
.act-row[data-tone="closed"] { background: #1E7A45; color: #fff; border-inline-start-color: #1E7A45; }
.act-row[data-tone] .linkish { color: inherit; }
.act-row[data-tone] .ev-btn { color: inherit; }
.act-row[data-tone] .act-dates,
.act-row[data-tone] .act-amt { color: inherit; }
.act-row[data-tone] .status-chip {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.act-name { font-weight: 700; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-dates { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-secondary); white-space: nowrap; }
.act-amt { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.act-ev { display: flex; align-items: center; gap: 4px; }
.ev-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sunan-teal-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
  position: relative;
}
.ev-btn svg { display: block; }
.ev-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 54, 55, 0.96);
  color: #F7F1E6;
  border: 1px solid rgba(167, 136, 99, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 40;
  box-shadow: 0 8px 20px rgba(14, 54, 55, 0.18);
}
.ev-btn:hover::after,
.ev-btn:focus-visible::after { opacity: 1; visibility: visible; }
.act-reject { font-size: 11px; color: var(--status-danger); font-weight: 700; }
.ev-menu {
  position: fixed;
  z-index: 60;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 4px;
}
.ev-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  text-align: start;
  padding: 0 12px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 700;
}
.ev-menu button:hover { background: var(--surface-soft); }
.smart-amt { font-variant-numeric: tabular-nums; }
.act-evidence, .act-evidence-block { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; min-width: 0; }
.file-link, .evidence-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sunan-teal-700);
  text-decoration: none;
}
.evidence-act { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; width: 100%; min-width: 0; }
.evidence-act.hidden { display: none; }
.ev-now { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ev-now time, .ev-now strong { display: block; }
.ev-now time { font-size: 11px; color: var(--text-secondary); }
.act-item {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  min-width: 0;
}
.act-item h4 { margin: 0 0 8px; font-size: 15px; color: var(--text-primary); }
.act-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--text-secondary); }
.cc-hero {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  padding: 20px;
  margin-bottom: 16px;
}
.cc-hero .cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.cc-hero h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--sunan-teal-700); }
.cc-hero .sub { font-size: 12px; font-weight: 400; color: var(--text-secondary); margin-top: 4px; }
.cc-hero .now { margin-top: 16px; background: var(--surface-soft); padding: 16px 18px; border-radius: 8px; }
.cc-hero .now .lbl { font-size: 11px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.cc-hero .now .ttl { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.cc-meta { display: flex; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.cc-meta span { display: block; font-size: 11px; color: var(--text-secondary); font-weight: 400; margin-bottom: 2px; }
.cc-meta b { font-size: 13px; font-weight: 700; color: var(--sunan-teal-700); }
.collapsible { border: 1px solid var(--border-default); margin-bottom: 10px; background: var(--surface-card); border-radius: 8px; }
.collapsible summary { padding: 13px 16px; cursor: pointer; font-weight: 700; font-size: 13px; }
.collapsible .body, .collapsible .info-grid { padding: 0 16px 16px; }
.tl-item { padding: 10px 0; border-bottom: 1px solid var(--border-default); font-size: 13px; }
.tl-item .hd { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 12px; margin-bottom: 3px; }
.reject-note { background: rgba(179, 38, 30, .10); }
.committee-split { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.meet {
  display: block;
  width: 100%;
  text-align: start;
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--text-primary);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  padding: 16px;
  cursor: pointer;
  margin-bottom: 12px;
}
.meet .d { font-weight: 800; font-size: 14px; }
.meet .c { color: var(--text-secondary); font-size: 12px; font-weight: 400; margin-top: 4px; }
.meet.active { border-color: var(--sunan-teal-700); }
.enter {
  padding: 9px 22px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 83, 85, .07);
  color: var(--sunan-teal-700);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}
.enter:hover { background: var(--sunan-teal-700); color: var(--text-on-dark); }
.dec-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(167, 136, 99, .12);
  color: var(--sunan-gold-500);
  font-weight: 700;
  font-size: 12px;
}
.axis-header {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.axis-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.axis-header .title { display: block; text-align: start; margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--sunan-teal-700); }
.bar-wrap {
  width: 100%;
  background: var(--surface-page);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}
.bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #165355 0%, #1D6C6E 60%, #A78863 100%);
}
.axis-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.axis-rec-box, .axis-att-box { display: flex; flex-direction: column; min-height: 0; }
.axis-rec-box form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.axis-rec-box textarea {
  flex: 1;
  min-height: 240px;
  height: 240px;
  resize: vertical;
}
.axis-att-box #attWrap {
  flex: 1;
  min-height: 240px;
  height: 240px;
  overflow: auto;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 8px;
}
.axis-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.axis-footer .dec-choices { justify-content: center; margin-bottom: 0; }
.att-row {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: start;
  cursor: pointer;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
}
.att-row input { width: auto; }

@media (max-width: 1023px) and (min-width: 769px) {
  .page { padding-inline: 4% 5%; }
  .kpirow { grid-template-columns: repeat(3, 1fr); }
  .dept-grid, .plan-dept-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .app-head-title { font-size: 20px; }
}
@media (max-width: 768px) {
  .app-head { padding-inline: 5%; }
  .logo { height: 32px; }
  .app-head-title { font-size: 18px; white-space: normal; }
  .page { padding: 16px 5% 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .board, .project-split, .committee-split, .axis-body, .kpirow, .dept-grid, .plan-dept-grid, .smart-card { grid-template-columns: 1fr; }
  .dept-kpis { grid-template-columns: 1fr 1fr; }
  .act-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name ev" "dates amt";
  }
  .act-name { grid-area: name; white-space: normal; }
  .act-dates { grid-area: dates; }
  .act-amt { grid-area: amt; }
  .act-ev { grid-area: ev; }
  .text-nav span { display: none; }
  .page-head-tools { flex-direction: column; align-items: stretch; }
  .head-search { max-width: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sunan-ring-a, .sunan-ring-b, .sunan-particles i, .skel, .page.content-in, .sunan-loader, .btn, a.btn, .task-more, .task-toggle svg, .close-success, .close-success-core, .sunan-confetti i, .sunan-cal {
    animation: none !important;
    transition: none !important;
  }
  .sunan-particles, .sunan-confetti { display: none; }
}

a.icon-btn { text-decoration: none; color: rgba(255, 255, 255, 0.78); }
body.is-munjaz .page, body.is-login .page { padding-inline: 5%; }
body.is-login .page { display: flex; flex-direction: column; align-items: center; }
.login.card {
  width: min(440px, 100%);
  margin: 8vh auto 0;
  padding: 32px 28px 28px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}
.login-kicker {
  margin: 0 0 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--sunan-teal-700);
}
.login-lead {
  margin: 0 0 22px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.login label { display: block; margin-bottom: 8px; }
.pin-field input {
  background: #FFFFFF;
  border-color: #E5E7EB;
  min-height: 48px;
}
.pin-field input:focus {
  border-color: var(--sunan-teal-500);
  box-shadow: 0 0 0 3px rgba(29, 108, 110, .14);
}
.pin-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
  -webkit-text-fill-color: var(--text-primary);
}
.login-error {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--status-danger);
  font-size: 12px;
  font-weight: 500;
}
.login-forgot { margin: 4px 0 16px; }
.login-submit { width: 100%; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  background: rgba(22, 83, 85, .08);
  color: var(--sunan-teal-700);
}
.status-badge.is-danger { background: #B3261E; color: #fff; }
.status-badge.is-success { background: #1E7A45; color: #fff; }
.status-badge.is-warning { background: #C2410C; color: #fff; }
.task {
  padding: 8px 12px;
  min-height: 108px;
  border-inline-start-width: 3px;
}
.task-head { align-items: center; }
.task-name { margin-bottom: 0; font-size: 14px; line-height: 1.35; }
.task-toggle {
  background: transparent;
  border-radius: 8px;
}
.task-toggle:hover, .task-toggle:focus-visible { background: rgba(22, 83, 85, .07); color: var(--sunan-teal-700); }
.task-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  min-height: 24px;
}
.task-facts span { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.task-facts svg { flex-shrink: 0; }
.task-actions { margin-top: 0; }
.btn-close-task {
  background: var(--sunan-teal-700);
  gap: 8px;
}
.btn-close-task:hover, .btn-close-task:focus-visible { background: var(--sunan-teal-900); }
.task-rating { margin-top: 0; }
.task-rating-title { display: block; font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.task-rating-row { display: flex; gap: 4px; }
.rate-btn {
  width: 32px;
  height: 32px;
  margin: 6px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
.rate-btn.is-selected, .rate-btn:hover, .rate-btn:focus-visible {
  background: var(--sunan-teal-700);
  color: #FFFFFF;
  border-color: var(--sunan-teal-700);
}
.task-timeline { display: flex; flex-direction: column; gap: 12px; overflow-x: hidden; }
.tl-rest { display: flex; flex-direction: column; gap: 12px; }
.tl-rest[hidden] { display: none; }
.tl-day h4 { margin: 0 0 8px; font-size: 12px; color: var(--text-secondary); }
.tl-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #FFFFFF;
}
.tl-ico { color: var(--sunan-teal-700); padding-top: 2px; }
.tl-top { display: flex; justify-content: space-between; gap: 8px; }
.tl-status, .tl-meta, .tl-note { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); }
.tl-note { color: var(--text-primary); }
.date-stepper {
  display: flex;
  direction: ltr;
  align-items: stretch;
  position: relative;
  min-height: 44px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #FFFFFF;
  overflow: visible;
}
.date-step, .date-value {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  color: var(--text-primary);
}
.date-step {
  width: 44px;
  font-size: 18px;
  font-weight: 700;
  color: var(--sunan-teal-700);
}
.date-value {
  flex: 1;
  width: auto;
  font-weight: 700;
  border-inline: 1px solid var(--border-default);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sunan-cal {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: min(320px, 92vw);
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  padding: 12px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--sunan-teal-700);
}
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week span { font-size: 11px; color: var(--text-secondary); }
.cal-day {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--sunan-teal-500); }
.cal-day.is-selected { background: var(--sunan-teal-700); color: #FFFFFF; }
.cal-day.is-disabled { color: var(--text-muted); cursor: not-allowed; }
.cal-today { width: 100%; margin-top: 8px; }
.close-success {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(243, 243, 243, .62);
  color: #1E7A45;
  text-align: center;
  pointer-events: none;
}
.close-success-core {
  position: relative;
  z-index: 2;
  animation: sunan-pop 520ms ease;
}
.close-success-core svg { width: 88px; height: 88px; display: block; margin-inline: auto; }
.close-success strong { display: block; margin-top: 10px; font-size: 36px; font-weight: 800; color: #1E7A45; }
.close-success.leave { opacity: 0; transition: opacity 320ms ease; }
.close-success.no-motion { background: rgba(243, 243, 243, .85); }
.close-success.no-motion .close-success-core { animation: none; }
.sunan-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sunan-confetti i {
  position: absolute;
  top: -12px;
  inset-inline-start: var(--x);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: sunan-confetti 1.7s ease-in forwards;
  animation-delay: var(--delay);
}
.task.just-closed { box-shadow: 0 0 0 2px rgba(47, 158, 91, .35); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-chip svg { flex-shrink: 0; }
.user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.user-menu {
  position: relative;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}
.user-chip:hover, .user-chip:focus-visible { background: rgba(255, 255, 255, .12); }
.user-chip:focus-visible { outline: 2px solid var(--sunan-gold-200); outline-offset: 2px; }
.user-menu {
  position: relative;
  justify-self: end;
}
.user-menu .menu-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(14, 54, 55, .16);
  display: none;
  z-index: 90;
  overflow: hidden;
}
.user-menu.open .menu-list { display: grid; }
.user-menu .menu-list button {
  min-height: 44px;
  border: 0;
  background: #fff;
  text-align: start;
  padding: 0 14px;
  cursor: pointer;
}
.user-menu .menu-list button:hover { background: var(--surface-soft); }

.filter-bar {
  direction: rtl;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  height: 36px;
  width: 100%;
  margin: 0 0 12px;
  gap: 6px;
  overflow: hidden;
}
.filter-strips {
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  height: 36px;
}
.filter-secs, .filter-people {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: none;
  cursor: grab;
  user-select: none;
  position: relative;
  z-index: 1;
}
.filter-secs.is-dragging, .filter-people.is-dragging { cursor: grabbing; }
.filter-secs::-webkit-scrollbar, .filter-people::-webkit-scrollbar { display: none; width: 0; height: 0; }
.filter-chip {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(14, 54, 55, .04);
}
.filter-chip.is-on, .name-chip.is-on {
  background: #0E5C5E;
  color: #fff;
  border-color: #0E5C5E;
}
.filter-clear {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--sunan-teal-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 3;
  border: 1px solid var(--border-default);
}
.filter-clear:hover { background: rgba(22, 83, 85, .08); }

.task.is-approval {
  min-height: 0;
  padding: 6px 8px;
  background: #fff;
  display: grid;
  gap: 4px;
}
.task.is-approval .task-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 6px;
  align-items: start;
}
.task.is-approval .task-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
}
.task.is-approval .task-name {
  grid-column: 2;
  grid-row: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  max-height: 2.7em;
  line-height: 1.35;
}
.task.is-approval .task-row-meta {
  grid-column: 1 / -1;
  grid-row: 2;
}
.task:not(.is-approval) .task-snip {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.task-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.task-row-meta .task-actions { margin: 0; }
.task-weight.compact {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}
.task-weight.compact .rate-btn {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.task-weight.compact .rate-btn:hover:not(.is-selected) {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--sunan-teal-500);
}
.task-weight.compact .rate-btn.is-selected {
  background: var(--sunan-teal-700);
  color: #fff;
  border-color: var(--sunan-teal-700);
}

.munjaz-tools { display: flex; justify-content: flex-start; margin-bottom: 12px; }
.filter-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sunan-teal-700);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}
.filter-layer { position: fixed; inset: 0; z-index: 60; }
.filter-backdrop { position: absolute; inset: 0; border: 0; background: rgba(31, 41, 55, .32); cursor: pointer; }
.filter-drawer {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(380px, 100%);
  background: #FFFFFF;
  border-inline-end: 1px solid var(--border-default);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  overflow: auto;
}
.filter-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filter-drawer-head h3 { margin: 0; color: var(--sunan-teal-700); }
.filter-drawer .modal-x { color: var(--sunan-teal-700); }
.filter-drawer .modal-x:hover, .filter-drawer .modal-x:focus-visible { background: rgba(22, 83, 85, .08); }
.filter-tree { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.filter-sec { border: 1px solid var(--border-default); border-radius: 8px; padding: 10px 12px; background: var(--surface-soft); }
.filter-sec-lab { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.filter-users { display: flex; flex-direction: column; gap: 2px; margin-inline-start: 12px; }
.filter-users label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.filter-drawer input[type="search"] { margin-top: 8px; }
.filter-sec input, .filter-users input { width: auto; }

.fab-add {
  position: fixed;
  z-index: 40;
  inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px));
  inset-inline-start: calc(16px + env(safe-area-inset-left, 0px));
  width: 56px;
  height: 56px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--sunan-teal-700);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.fab-add:hover, .fab-add:focus-visible { background: var(--sunan-teal-900); }
.fab-add:focus-visible { outline: 2px solid var(--sunan-gold-200); outline-offset: 2px; }
body.is-munjaz .page { padding-bottom: 96px; }

.approval-secs { margin-top: 16px; }
.approval-secs h4 { margin: 0 0 8px; color: var(--sunan-teal-700); font-size: 13px; }
.approval-sec { margin-bottom: 8px; }
.approval-sec-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 700;
}
.badge.is-zero { background: transparent; color: var(--text-muted); }
.settings-card { padding: 20px; }
.settings-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.settings-check input { width: auto; }

.task-row1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.task-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}
.task-row1 .task-name { margin: 0; }
.task-row1 .status-badge { margin: 0; justify-self: end; }
.task-row3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
}
.task-rating { margin: 0; display: flex; align-items: center; gap: 4px; }
.weight-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--sunan-teal-700);
}
.task-actions { margin: 0; display: flex; align-items: center; gap: 4px; }
.icon-act {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sunan-teal-700);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-act svg { width: 18px; height: 18px; display: block; }
.icon-act:hover, .icon-act:focus-visible { background: rgba(22, 83, 85, .08); }
.icon-act:focus-visible { outline: 2px solid var(--sunan-teal-700); outline-offset: 2px; }

@keyframes sunan-pop {
  0% { transform: scale(.72); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes sunan-confetti {
  to { transform: translateY(110vh) translateX(var(--dx)) rotate(var(--rot)); opacity: .15; }
}

@media (max-width: 768px) {
  .login.card { margin-top: 24px; padding: 24px 18px; }
  .task-facts { gap: 8px; }
  .sunan-cal { inset-inline: 0; width: 100%; }
  .filter-drawer {
    inset-block: auto 0;
    inset-inline: 0;
    width: 100%;
    max-height: min(88vh, 640px);
    border-radius: 16px 16px 0 0;
    border-inline-end: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .user-chip span { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .task-row3 { flex-wrap: wrap; }
  .app-head {
    position: sticky;
    top: 0;
  }
  .app-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .icon-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 90;
    width: 100%;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(100deg, #0E3637 0%, #165355 55%, #A78863 100%);
    justify-content: space-evenly;
    gap: 0;
    box-shadow: 0 -6px 18px rgba(14, 54, 55, .16);
  }
  .page, body.is-munjaz .page {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .fab-add {
    inset-block-end: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .icon-btn::after { display: none; }
}

.text-nav {
  width: auto;
  padding-inline: 10px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.text-nav span { font-size: 12px; font-weight: 700; }
.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--state-due);
  color: #1F2937;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}
.page-head {
  background: #FFFFFF;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  min-width: 0;
}
.page-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.page-back {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sunan-teal-700);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.page-back svg { display: block; }
.page-head-copy { min-width: 0; flex: 1; }
.page-head .crumb { margin: 0; font-size: 12px; color: var(--text-secondary); }
.page-head .title {
  margin: 0;
  font-size: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--sunan-teal-700);
  font-size: 12px;
  font-weight: 800;
}
.page-head-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.head-search {
  flex: 1;
  min-width: 160px;
  max-width: 100%;
  min-height: 44px;
}
.head-icon {
  color: var(--sunan-teal-700) !important;
  background: var(--surface-soft);
}
.head-filter { position: relative; }
.filter-pop {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: min(360px, 92vw);
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.filter-pop .kpi { min-height: 44px; padding: 8px; }
.filter-pop .kpi b { font-size: 16px; }
.add-task-box { width: min(440px, 100%); }
.add-task-form { display: grid; gap: 8px; }
.add-task-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.add-task-form textarea { min-height: 64px; resize: vertical; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.evidence-table { background: #fff; border-radius: 8px; }
.ev-cards { display: grid; gap: 12px; }
.ev-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}
.ev-field span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ev-field b, .ev-field p {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.ev-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-card .ev-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.late-chip.is-on { background: var(--sunan-teal-700); color: #fff; }
.late-chip.is-clear { min-width: 36px; }
.late-owner-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.late-owner-banner p { margin: 0; }
.report-records { width: 100%; border-collapse: collapse; background: #fff; }
.report-records th, .report-records td {
  text-align: start;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.report-records th { font-size: 12px; color: var(--text-secondary); font-weight: 700; }
.report-records-wrap { overflow: auto; }
.float-box.is-wide { width: min(960px, 96vw); }
.filter-default { margin: 8px 0 0; }
.filter-default-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--sunan-teal-700);
  background: rgba(22, 83, 85, .08);
  border-radius: 999px;
  padding: 2px 8px;
}
.queue-preview { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 13px; }
.journey-wrap { overflow-x: auto; }
.journey-table { width: 100%; min-width: 860px; }
.journey-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-actions .btn { min-height: 44px; }
.work-kpis { margin-bottom: 16px; }
.work-committee-banner {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--sunan-teal-700);
}
.work-kpis .kpi { cursor: pointer; border: 0; text-align: start; width: 100%; }
.work-list { display: grid; gap: 10px; }
.work-card {
  background: #fff;
  border: 1px solid var(--line, #E5E7EB);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}
.work-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.work-card h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--sunan-teal-700); }
.work-now span { display: block; font-size: 11px; color: var(--text-secondary); font-weight: 700; }
.work-now b { font-size: 14px; }
.work-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: var(--text-secondary); }
.work-meta .is-late, .work-card .is-late { color: var(--state-late, #B3261E); }
.work-wait { margin: 0; font-weight: 700; color: var(--sunan-teal-700); }
.work-mail { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.work-mail input, .work-mail textarea {
  font: inherit;
  font-weight: 400;
  width: 100%;
  border: 1px solid var(--line, #E5E7EB);
  border-radius: 8px;
  padding: 8px;
}
.work-mail textarea { min-height: 88px; resize: vertical; }
.work-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.work-waiting { background: #fff; border: 1px solid var(--line, #E5E7EB); border-radius: 12px; padding: 8px 12px; margin-top: 12px; }
.work-waiting summary { cursor: pointer; font-weight: 800; color: var(--sunan-teal-700); min-height: 44px; display: flex; align-items: center; }
.work-waiting .work-list { margin-top: 8px; }
.task-weight-block .task-rating-row { margin-top: 6px; }
.nav-badge, .text-nav span { display: none !important; }
.task-snip {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.task.is-approval { min-height: 0; }
.linkish {
  border: 0;
  background: transparent;
  color: var(--sunan-teal-700);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: start;
  padding: 0;
  min-height: 44px;
}
.proj-name-wrap { display: inline-flex; align-items: center; gap: 6px; }
.drive-btn { color: var(--sunan-teal-700); }
.toast-host {
  position: fixed;
  z-index: 90;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: min(320px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 20px 1fr 32px;
  gap: 8px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 10px 8px 10px 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}
.toast p { margin: 0; }
.toast-ico { color: var(--sunan-teal-700); display: grid; place-items: center; }
.toast.is-error { background: #B3261E; color: #fff; border-color: #B3261E; }
.toast.is-error .toast-ico, .toast.is-error .toast-x { color: #fff; }
.toast.is-success { background: #1E7A45; color: #fff; border-color: #1E7A45; }
.toast.is-success .toast-ico { color: #fff; }
.toast-x {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
}
.meet-create {
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
  overflow-x: hidden;
  position: relative;
}
.meet-create-toggle {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: var(--surface-soft);
  color: var(--sunan-teal-700);
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}
.meet-create-form { display: grid; gap: 8px; margin-top: 8px; }
.meet-base { margin: 0; font-weight: 800; }
.meet-when { display: grid; gap: 8px; }
.queue-pick { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.queue-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
}
.queue-row b, .queue-row em { display: block; }
.queue-row em { font-style: normal; color: var(--text-secondary); font-size: 12px; }
.axis-suffix, .custom-axis input { min-height: 44px; width: 100%; }
.custom-axis { display: grid; gap: 6px; margin-top: 8px; }
.meet-total { margin: 0; font-weight: 700; }
.time-picker {
  display: flex;
  direction: ltr;
  align-items: stretch;
  position: relative;
  min-height: 44px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: visible;
  background: #FFFFFF;
}
.time-value {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
  word-spacing: 0;
}
.time-pop {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(14, 54, 55, .16);
  padding: 8px;
}
.time-cols { display: grid; grid-template-columns: 56px 56px 44px; gap: 6px; }
.time-col { display: grid; gap: 2px; max-height: 180px; overflow: auto; }
.time-opt {
  min-height: 32px;
  border: 0;
  background: var(--surface-soft);
  border-radius: 6px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.time-opt.is-on { background: var(--sunan-teal-700); color: #fff; }
.axis-proj-line, .axis-subject { margin: 0 0 4px; }
.axis-proj-line span, .axis-subject span { color: var(--text-secondary); font-weight: 700; margin-inline-end: 6px; }
.axis-proj-line .linkish { font-weight: 800; color: var(--sunan-teal-700); }
.float-sec { margin-bottom: 14px; }
.float-sec h4 { margin: 0 0 8px; font-size: 13px; color: var(--sunan-teal-700); }
.float-act { border: 1px solid var(--border-default); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; }
.float-act summary { cursor: pointer; font-weight: 700; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .55; pointer-events: auto; }
.meet-create .sunan-cal {
  width: min(100%, 320px);
  max-width: 100%;
}
.axis-cards {
  display: grid;
  gap: 8px;
  align-items: start;
}
.axis-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 4px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  max-height: 7.2em;
}
.axis-card.is-edit {
  max-height: none;
  grid-template-rows: none;
}
.axis-card p, .axis-card label { margin: 0; min-width: 0; }
.axis-card-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.axis-card-r1, .axis-card-r2, .axis-card-r3 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.axis-card-r1 .axis-proj-name,
.axis-card-r2,
.axis-rec-short {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.axis-card-r2 { font-weight: 700; }
.axis-card h3 { margin: 0; font-size: 15px; }
.axis-proj-line, .axis-subject { overflow-wrap: anywhere; }
.axis-rec, .axis-dec { margin-top: 4px; }
.axis-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.axis-nav { display: inline-flex; gap: 4px; }
.axis-arrow {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #fff;
  color: var(--sunan-teal-700);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.axis-arrow:disabled { opacity: .35; cursor: default; }
.dec-choices { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dec-choice {
  min-width: 88px;
  min-height: 44px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 700;
}
.dec-choice.is-on {
  background: var(--sunan-teal-700);
  color: #fff;
  border-color: var(--sunan-teal-700);
}
.att-row {
  width: 100%;
  text-align: start;
  cursor: pointer;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #fff;
  color: var(--text-primary);
  font-weight: 700;
}
.att-row.is-on {
  background: var(--sunan-teal-700);
  color: #fff;
  border-color: var(--sunan-teal-700);
}
.att-add-field, .att-draft-input {
  min-height: 44px;
  margin: 8px 0;
}
.modal.is-blur {
  background: rgba(14, 54, 55, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.meet-create-box { width: min(560px, 100%); max-height: min(88vh, 760px); }
.edit-icon-actions { display: flex; align-items: center; gap: 8px; }
.float-box { width: min(560px, 92vw); max-height: 86vh; overflow: auto; }
.float-dl { display: grid; gap: 8px; margin: 0; }
.float-dl div { display: grid; gap: 2px; }
.float-dl dt { color: var(--text-secondary); font-size: 12px; }
.float-dl dd { margin: 0; font-weight: 700; }
.float-list { margin: 0 0 12px; padding-inline-start: 18px; }

.harvest-page {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.harvest-compare { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.harvest-ring {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: conic-gradient(#165355 calc(var(--p, 0) * 1%), #EEEEEE 0);
  position: relative;
}
.harvest-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.harvest-ring b, .harvest-ring span { position: relative; z-index: 1; }
.harvest-ring b { display: block; color: #165355; font-size: 18px; font-weight: 800; line-height: 1; }
.harvest-ring span { color: #6B7280; font-size: 11px; }
.harvest-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.harvest-vs div { border: 1px solid #E5E7EB; border-radius: 4px; padding: 8px; text-align: center; }
.harvest-vs b { display: block; color: #165355; font-size: 20px; font-weight: 800; line-height: 1; }
.harvest-vs span { color: #6B7280; font-size: 11px; }
.harvest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.harvest-grid div { background: var(--surface-soft); border-radius: 6px; padding: 8px; text-align: center; }
.harvest-grid b { display: block; font-size: 16px; font-weight: 800; }
.compare-track { position: relative; height: 10px; background: #EEEEEE; border-radius: 999px; overflow: hidden; }
.compare-assumed, .compare-actual { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; }
.compare-assumed { background: #4B5563; height: 10px; opacity: .35; }
.compare-actual { background: #1E7A45; height: 10px; }
.status-dist { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #EEEEEE; }
.status-dist span { min-width: 0; }
.status-dist .is-closed { background: #1E7A45; }
.status-dist .is-active { background: #165355; }
.status-dist .is-soon { background: #F4C400; }
.status-dist .is-late { background: #B3261E; }
.status-dist .is-review { background: #C2410C; }
.status-dist .is-pending { background: #4B5563; }
.status-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; white-space: nowrap;
}
.status-chip em { font-style: normal; }
.status-chip.is-late { background: #B3261E; color: #fff; }
.status-chip.is-soon { background: #F4C400; color: #1A1A1A; }
.status-chip.is-active { background: #165355; color: #fff; }
.status-chip.is-review { background: #C2410C; color: #fff; }
.status-chip.is-pending { background: #4B5563; color: #fff; }
.status-chip.is-closed { background: #1E7A45; color: #fff; }
.late-strip {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 0 10px; min-height: 0;
}
.late-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: #fff; border-radius: 999px;
  padding: 2px 8px; min-height: 28px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.late-chip b { color: #B3261E; font-weight: 800; }
.late-chip svg { color: #B3261E; }
.menu-logout { display: flex; align-items: center; gap: 8px; color: #B3261E; }
.dept-card-lg { height: 100%; min-height: 280px; }
.plan-dept-grid { align-items: stretch; }
.dept-card-lg .harvest-page { margin: 0; padding: 0; border: 0; box-shadow: none; }
.section-kids { display: grid; gap: 8px; }
.section-project {
  display: grid; gap: 4px; text-align: start; background: #fff;
  border: 1px solid var(--border-default); border-radius: 8px; padding: 10px 12px; cursor: pointer;
}
.section-project strong { color: var(--sunan-teal-700); }
.activity-card-body { display: grid; gap: 10px; }
.activity-card-name { margin: 0; font-size: 16px; font-weight: 800; color: var(--sunan-teal-900); }
.activity-table, .activity-details { display: grid; gap: 0; }
.activity-table > div, .activity-details > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border-soft); align-items: start;
}
.activity-table span, .activity-details span { color: var(--text-secondary); font-size: 12px; }
.activity-table b, .activity-details p { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.float-box {
  width: min(560px, 92vw); max-height: 86vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.float-box .modal-head { position: sticky; top: 0; background: #fff; z-index: 1; }
#float-card-body { overflow: auto; min-height: 0; padding-bottom: 8px; }
.report-tree details { background: #fff; border: 1px solid var(--border-default); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.report-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.report-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  min-height: 28px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.report-status-chip svg { flex-shrink: 0; }
.report-status-chip em { font-style: normal; font-weight: 700; }
.report-status-chip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.report-status-chip.is-late { background: #B3261E; color: #fff; }
.report-status-chip.is-closed { background: #1E7A45; color: #fff; }
.report-status-chip.is-active { background: #165355; color: #fff; }
.report-status-chip.is-soon { background: #F4C400; color: #1A1A1A; }
.report-status-chip.is-review { background: #C2410C; color: #fff; }
.report-status-chip.is-pending { background: #4B5563; color: #fff; }
.report-n { border: 0; border-radius: 6px; min-width: 32px; min-height: 28px; cursor: pointer; font-weight: 800; }
.report-n.is-late { background: #B3261E; color: #fff; }
.report-n.is-closed { background: #1E7A45; color: #fff; }
.report-n.is-active { background: #165355; color: #fff; }
.report-n.is-soon { background: #F4C400; color: #1A1A1A; }
.report-n.is-review { background: #C2410C; color: #fff; }
.report-n.is-pending { background: #4B5563; color: #fff; }
.report-emp { padding: 6px 8px; }
.login-outlook-hint { color: var(--text-secondary); font-size: 12px; }
.act-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .ev-dates { grid-template-columns: 1fr; }
  .harvest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-table > div, .activity-details > div { grid-template-columns: 1fr; }
  .act-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .act-dates, .act-amt { grid-column: 1 / -1; }
  .plan-dept-grid { grid-template-columns: 1fr; }
  .smart-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .toast-host {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .icon-btn::after { max-width: 70vw; white-space: normal; text-align: center; }
}
@media (max-width: 1024px) {
  .journey-table { min-width: 720px; }
}
