.lk-side-link {
  color: #8fc2df;
}

.lk-page {
  --lk-ink: #17324a;
  --lk-muted: #637b8d;
  --lk-line: #d8e3e9;
  --lk-paper: #fff;
  --lk-soft: #f3f7f9;
  --lk-blue: #176b91;
  --lk-navy: #123e59;
  color: var(--lk-ink);
  padding: 2px 0 40px;
}

.lk-page *,
.lk-page *::before,
.lk-page *::after {
  box-sizing: border-box;
}

.lk-page-header,
.lk-section-head,
.lk-person-header,
.lk-panel-heading,
.lk-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lk-page-header {
  margin: 10px 0 22px;
}

.lk-page-header h1 {
  margin: 3px 0 7px;
  color: var(--lk-navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -0.045em;
}

.lk-page-header p,
.lk-panel-heading p,
.lk-section-head p {
  margin: 0;
  color: var(--lk-muted);
  line-height: 1.55;
}

.lk-eyebrow {
  color: var(--lk-blue) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.lk-sync-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #c9e2d8;
  border-radius: 999px;
  background: #f1faf6;
  color: #24694c;
  font-size: 0.76rem;
  font-weight: 600;
}

.lk-sync-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31a36d;
  box-shadow: 0 0 0 3px #d8f1e4;
}

.lk-picker,
.lk-panel,
.lk-task-card,
.lk-select-hint {
  border: 1px solid var(--lk-line);
  border-radius: 14px;
  background: var(--lk-paper);
  box-shadow: 0 8px 25px rgba(27, 64, 85, 0.045);
}

.lk-picker {
  position: relative;
  z-index: 2;
  padding: 16px;
}

.lk-page label {
  display: block;
  margin: 12px 0 6px;
  color: #35536a;
  font-size: 0.82rem;
  font-weight: 650;
}

.lk-page label span {
  color: #c1493b;
}

.lk-page input,
.lk-page select,
.lk-page textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd9e1;
  border-radius: 8px;
  background: #fff;
  color: var(--lk-ink);
  font: inherit;
  font-size: 0.9rem;
}

.lk-page textarea {
  min-height: 82px;
  resize: vertical;
}

.lk-page input:focus,
.lk-page select:focus,
.lk-page textarea:focus,
.lk-page button:focus-visible {
  outline: 3px solid rgba(40, 137, 179, 0.22);
  outline-offset: 2px;
  border-color: #5598b7;
}

.lk-page input::placeholder,
.lk-page textarea::placeholder {
  color: #91a3ae;
}

.lk-staff-results {
  display: grid;
  gap: 6px;
  max-height: 265px;
  margin-top: 9px;
  overflow-y: auto;
}

.lk-staff-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f6f9fa;
  color: var(--lk-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.lk-staff-option:hover,
.lk-staff-option.is-selected {
  transform: translateY(-1px);
  border-color: #bdd8e4;
  background: #edf6f9;
}

.lk-avatar {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #dcedf3, #bbd8e4);
  color: #1b5d7c;
  font-size: 0.78rem;
  font-weight: 750;
}

.lk-avatar-large {
  flex-basis: 50px;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.lk-staff-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.lk-staff-copy b,
.lk-staff-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lk-staff-copy b {
  font-size: 0.87rem;
}

.lk-staff-copy small {
  color: var(--lk-muted);
  font-size: 0.75rem;
}

.lk-open-mark {
  margin-left: auto;
  color: #628197;
  font-size: 1.25rem;
}

.lk-workspace {
  margin-top: 20px;
}

.lk-person-header {
  justify-content: flex-start;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #d7e6ec;
  border-radius: 13px;
  background: linear-gradient(105deg, #edf6f9, #f7fafb 65%);
}

.lk-person-header h2 {
  margin: 0 0 4px;
  color: var(--lk-navy);
  font-size: 1rem;
}

.lk-person-header p {
  margin: 0;
  color: var(--lk-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.lk-quiet-btn {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 11px;
  border: 1px solid #c6d7df;
  border-radius: 8px;
  background: #fff;
  color: #3b6075;
  cursor: pointer;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 600;
}

.lk-panel {
  min-width: 0;
  padding: 18px;
}

.lk-entry-panel {
  margin-bottom: 22px;
}

.lk-entry-tabs {
  display: flex;
  gap: 8px;
  margin: -2px 0 17px;
  overflow-x: auto;
  border-bottom: 1px solid #d8e3e9;
}

.lk-entry-tabs button {
  flex: 0 0 auto;
  padding: 10px 14px 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #617a8b;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
}

.lk-entry-tabs button[aria-selected="true"] {
  border-bottom-color: #176b91;
  color: #145a7b;
}

.lk-entry-tab-panel[hidden] {
  display: none !important;
}

.lk-entry-tab-panel form {
  max-width: 820px;
  margin: 0 auto;
}

.lk-panel-heading {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.lk-panel-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.lk-panel-heading h2 {
  margin: 0;
  color: var(--lk-navy);
  font-size: 1rem;
}

.lk-panel-heading p {
  margin-left: auto;
  font-size: 0.73rem;
  text-align: right;
}

.lk-step {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #e7f2f6;
  color: var(--lk-blue);
  font-size: 0.67rem;
  font-weight: 800;
}

.lk-two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lk-conditional[hidden] {
  display: none !important;
}

.lk-primary-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 15px;
  padding: 10px 15px;
  border: 1px solid var(--lk-blue);
  border-radius: 9px;
  background: linear-gradient(120deg, #176b91, #1c7d9b);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 700;
  transition: filter 140ms ease, transform 140ms ease;
}

.lk-primary-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.lk-form-status {
  min-height: 1.1em;
  margin: 8px 0 0;
  color: #287052;
  font-size: 0.78rem;
}

.lk-form-status.is-error {
  color: #b33e32;
}

.lk-task-section {
  margin-top: 24px;
}

.lk-section-head {
  align-items: flex-end;
  margin: 0 0 12px;
}

.lk-section-head h2 {
  margin: 0 0 4px;
  color: var(--lk-navy);
  font-size: 1.08rem;
}

.lk-section-head p {
  font-size: 0.77rem;
}

.lk-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #d8e3e9;
}

.lk-filter-row button {
  flex: 0 0 auto;
  padding: 8px 12px 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #557083;
  cursor: pointer;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 650;
  white-space: nowrap;
}

.lk-filter-row button[aria-selected="true"] {
  border-bottom-color: #176b91;
  color: #145a7b;
}

.lk-task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.lk-task-card {
  padding: 15px;
}

.lk-task-top {
  color: var(--lk-muted);
  font-size: 0.72rem;
}

.lk-type {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f6;
  color: #526c7d;
  font-size: 0.68rem;
  font-weight: 700;
}

.lk-type-rutin {
  background: #e7f5ef;
  color: #277350;
}

.lk-type-mandiri {
  background: #e9f2f8;
  color: #28668a;
}

.lk-type-urgent {
  background: #fff0e9;
  color: #a84d32;
}

.lk-task-card h3 {
  margin: 12px 0 5px;
  color: var(--lk-ink);
  font-size: 0.93rem;
  line-height: 1.4;
}

.lk-task-meta,
.lk-task-desc {
  margin: 0;
  color: var(--lk-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.lk-task-desc {
  margin-top: 8px;
  color: #496579;
}

.lk-progress {
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf0;
}

.lk-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18799e, #45a890);
  transition: width 220ms ease;
}

.lk-progress-label {
  margin-top: 5px;
  color: var(--lk-muted);
  font-size: 0.7rem;
}

.lk-history {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e7edf0;
}

.lk-history > b {
  color: #3e5f74;
  font-size: 0.73rem;
}

.lk-report-row {
  margin-top: 7px;
}

.lk-report-row span {
  color: #718797;
  font-size: 0.68rem;
}

.lk-report-row p {
  margin: 2px 0 0;
  color: #496579;
  font-size: 0.75rem;
  line-height: 1.45;
}

.lk-report-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lk-blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 700;
}

.lk-empty,
.lk-empty-state {
  margin: 0;
  padding: 16px;
  color: var(--lk-muted);
  font-size: 0.82rem;
  text-align: center;
}

.lk-empty-state {
  grid-column: 1 / -1;
  padding: 30px 18px;
  border: 1px dashed #c9d8df;
  border-radius: 12px;
  background: #f8fafb;
}

.lk-empty-state b,
.lk-empty-state p {
  display: block;
  margin: 7px 0 0;
}

.lk-empty-state b {
  color: #37576c;
  font-size: 0.87rem;
}

.lk-empty-state p {
  color: var(--lk-muted);
  font-size: 0.76rem;
}

.lk-empty-icon,
.lk-hint-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #e8f2f6;
  color: var(--lk-blue);
  font-size: 1.15rem;
  font-weight: 700;
}

.lk-select-hint {
  margin-top: 16px;
  padding: 28px;
  text-align: center;
}

.lk-select-hint b {
  display: block;
  margin-top: 10px;
  color: var(--lk-navy);
}

.lk-select-hint p {
  margin: 5px 0 0;
  color: var(--lk-muted);
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .lk-page-header,
  .lk-person-header,
  .lk-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lk-sync-label {
    align-self: flex-start;
  }

  .lk-person-header {
    position: relative;
    padding-right: 12px;
  }

  .lk-quiet-btn {
    margin-left: 0;
  }

  .lk-panel {
    padding: 15px;
  }

  .lk-panel-heading {
    flex-wrap: wrap;
  }

  .lk-panel-heading p {
    width: 100%;
    margin-left: 37px;
    text-align: left;
  }

  .lk-two-fields,
  .lk-task-grid {
    grid-template-columns: 1fr;
  }

  .lk-filter-row,
  .lk-entry-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-page *,
  .lk-page *::before,
  .lk-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tab Tupoksi + Lembar Tupoksi */
.lk-tupoksi-sheet { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(120,130,150,.25); }
.lk-tupoksi-sheet h3 { margin: 0 0 6px; font-size: 16px; }
.lk-tupoksi-sum { margin: 0 0 12px; font-size: 13px; opacity: .75; }
.lk-tupoksi-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(120,130,150,.18); }
.lk-tupoksi-item b { display: block; font-size: 14px; }
.lk-tupoksi-item small { display: block; opacity: .65; font-size: 12px; }
.lk-tupoksi-item p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }

/* Foto laporan + tombol WhatsApp */
.lk-photo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.lk-photo-name { font-size: 13px; opacity: .8; word-break: break-all; }
.lk-photo-hint { margin: 4px 0 10px; font-size: 12px; opacity: .65; }
.lk-wa-btn { margin-top: 10px; padding: 10px 14px; border: 0; border-radius: 10px; background: #25d366; color: #063; font-weight: 700; cursor: pointer; }

/* Cheklist Tugas */
.lk-cl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid rgba(120,130,150,.2); }
.lk-cl-t { flex: 1 1 220px; min-width: 0; }
.lk-cl-t b { display: block; font-size: 14px; }
.lk-cl-t small { opacity: .65; font-size: 12px; }
.lk-cl-boxes { display: flex; gap: 12px; flex-wrap: wrap; }
.lk-cl-box { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.lk-cl-box input { width: 18px; height: 18px; accent-color: #159aa6; cursor: pointer; }

/* ===== Agenda tugas (kalender bulan berjalan) ===== */
.lk-top{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:16px; align-items:start; }
.lk-agenda{ border:1px solid var(--lk-line); border-radius:14px; background:var(--lk-paper); padding:14px; color:var(--lk-ink); }
.lk-ag-head{ display:flex; flex-direction:column; gap:2px; margin-bottom:8px; }
.lk-ag-head small{ color:var(--lk-muted); font-size:12px; }
.lk-ag-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
.lk-ag-dow{ text-align:center; font-size:11px; font-weight:700; color:var(--lk-muted); padding:2px 0; }
.lk-ag-day{ position:relative; display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; font:inherit; font-size:12.5px; color:var(--lk-ink); background:transparent; border:1px solid transparent; border-radius:8px; padding:0; }
.lk-ag-day.is-empty{ visibility:hidden; }
.lk-ag-day.is-today{ border-color:var(--lk-blue); font-weight:700; }
.lk-ag-day.has-task{ background:var(--lk-blue); color:#fff; font-weight:700; cursor:pointer; }
.lk-ag-day.has-task:hover{ background:var(--lk-navy); }
.lk-ag-day.has-task.is-selected{ outline:2px solid var(--lk-navy); outline-offset:1px; }
.lk-ag-day i{ position:absolute; top:-4px; right:-3px; min-width:14px; height:14px; padding:0 3px; border-radius:7px; background:#e8a317; color:#17324a; font:700 9px/14px system-ui,sans-serif; font-style:normal; text-align:center; }
.lk-ag-hint{ margin:8px 0 0; font-size:11.5px; color:var(--lk-muted); }
.lk-ag-list{ margin-top:10px; display:flex; flex-direction:column; gap:6px; }
.lk-ag-list > b{ font-size:12.5px; }
.lk-ag-item{ display:flex; gap:8px; align-items:flex-start; text-align:left; font:inherit; font-size:12.5px; color:var(--lk-ink); background:var(--lk-soft); border:1px solid var(--lk-line); border-radius:10px; padding:7px 9px; cursor:pointer; }
.lk-ag-item:hover{ border-color:var(--lk-blue); }
.lk-ag-item small{ display:block; color:var(--lk-muted); font-size:11.5px; }
.lk-task-card.lk-flash{ animation:lkflash 1.2s ease 3; box-shadow:0 0 0 3px #e8a317; }
@keyframes lkflash{ 50%{ box-shadow:0 0 0 6px rgba(232,163,23,.35); } }
@media (max-width:760px){ .lk-top{ grid-template-columns:1fr; } }


/* ===== RUANG KERJA VIRTUAL ===== */
.lk-room-btn {
  margin-left: auto;
  border-color: #1f6f8b;
  background: #1f6f8b;
  color: #fff;
  letter-spacing: 0.02em;
}
.lk-room-btn:hover { background: #185a72; }
.lk-room-btn + .lk-quiet-btn { margin-left: 8px; }
.lk-room-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: #101820;
}
.lk-room-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #17384a;
  color: #fff;
  font-size: 0.8rem;
}
.lk-room-bar b { letter-spacing: 0.1em; font-size: 0.78rem; }
.lk-room-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.9; }
.lk-room-bar a { color: #bfe3f2; text-decoration: none; white-space: nowrap; }
.lk-room-bar a:hover { text-decoration: underline; }
.lk-room-close {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #17384a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.lk-room-overlay iframe { flex: 1; width: 100%; border: 0; background: #101820; }
body.lk-room-open { overflow: hidden; }
@media (max-width: 700px) {
  .lk-room-btn, .lk-room-btn + .lk-quiet-btn { margin-left: 0; }
  .lk-room-bar a { display: none; }
}
