#fapet-jadwal-app, #fapet-jadwal-app * { box-sizing: border-box; }
#fapet-jadwal-app {
  --fj-purple:#55206f;
  --fj-purple-2:#6a2c87;
  --fj-purple-soft:#f5eff8;
  --fj-gold:#f2c94c;
  --fj-text:#1d1d25;
  --fj-muted:#68707d;
  --fj-border:#e4e5ea;
  --fj-green:#159457;
  --fj-red:#b54747;
  --fj-blue-soft:#eef5ff;
  font-family: inherit;
  color: var(--fj-text);
  max-width: 1680px;
  margin: 0 auto;
}
.fj-app button, .fj-app input, .fj-app select { font: inherit; }
.fj-hero {
  position:relative;
  overflow:hidden;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:30px 40px;
  border-radius:0 0 24px 24px;
  background:linear-gradient(118deg,#42145f,#6b2c85);
  color:#fff;
  box-shadow:0 18px 45px rgba(63,22,80,.15);
}
.fj-hero:after { content:""; position:absolute; width:300px; height:300px; right:-110px; bottom:-190px; border-radius:50%; background:rgba(255,255,255,.07); }
.fj-eyebrow { font-size:12px; font-weight:800; letter-spacing:.11em; opacity:.78; }
.fj-hero h1 { margin:6px 0 3px; color:#fff; font-size:clamp(30px,4vw,50px); line-height:1.05; }
.fj-hero p { margin:0; font-size:18px; color:#fff; opacity:.92; }
.fj-clockbox { position:relative; z-index:1; min-width:250px; text-align:right; padding:14px 20px; border:1px solid rgba(255,255,255,.19); border-radius:18px; background:rgba(255,255,255,.07); }
.fj-clock { font-size:31px; font-weight:800; line-height:1.05; }
.fj-date { margin-top:5px; color:var(--fj-gold); font-weight:700; }
.fj-controls { margin:25px 0 22px; padding:25px; border:1px solid var(--fj-border); border-radius:22px; background:#fff; box-shadow:0 10px 35px rgba(40,30,50,.05); }
.fj-prodi-tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.fj-tab { border:1px solid #dadce3; background:#fff; color:#30283a; border-radius:999px; padding:12px 20px; cursor:pointer; transition:.18s ease; }
.fj-tab:hover { border-color:var(--fj-purple); color:var(--fj-purple); }
.fj-tab.is-active { color:#fff; border-color:var(--fj-purple-2); background:linear-gradient(135deg,var(--fj-purple),var(--fj-purple-2)); box-shadow:0 6px 16px rgba(85,32,111,.18); }
.fj-filter-row { display:grid; grid-template-columns:minmax(260px,1fr) 270px auto; gap:13px; }
.fj-search-wrap input, .fj-filter-row select { width:100%; height:58px; border:1px solid #dfe2e8; border-radius:15px; padding:0 16px; background:#fff; color:#222; outline:none; }
.fj-search-wrap input:focus, .fj-filter-row select:focus { border-color:var(--fj-purple-2); box-shadow:0 0 0 3px rgba(106,44,135,.11); }
.fj-refresh { border:0; min-width:125px; border-radius:15px; padding:0 22px; color:var(--fj-purple); background:var(--fj-purple-soft); cursor:pointer; font-weight:700; }
.fj-refresh:hover { background:#eadff0; }
.fj-status { margin-bottom:22px; padding:13px 20px; border-radius:14px; font-size:14px; }
.fj-status.is-loading { color:#245086; background:var(--fj-blue-soft); }
.fj-status.is-ok { color:#14643f; background:#eef9f3; }
.fj-status.is-error { color:#8f3434; background:#fff0f0; }
.fj-highlight-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:22px; }
.fj-highlight { background:#fff; border:1px solid var(--fj-border); border-radius:22px; padding:23px; min-height:180px; }
.fj-live { border-top:5px solid var(--fj-green); }
.fj-next { border-top:5px solid #cf8400; }
.fj-highlight-head, .fj-section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.fj-highlight h2, .fj-main-card h2 { margin:2px 0 0; font-size:27px; line-height:1.15; }
.fj-kicker { color:#526174; font-size:11px; font-weight:900; letter-spacing:.12em; }
.fj-dot { display:inline-block; width:11px; height:11px; margin-right:7px; border-radius:50%; box-shadow:0 0 0 7px rgba(0,0,0,.05); }
.fj-dot-green { background:var(--fj-green); }
.fj-dot-gold { background:#cb8100; }
.fj-count { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 10px; border-radius:999px; background:#f2f3f5; color:#66707d; font-weight:800; }
.fj-highlight-list { display:grid; gap:11px; margin-top:18px; }
.fj-mini-class { padding:14px 15px; border-radius:15px; background:#fafafd; border:1px solid #ececf1; }
.fj-mini-class strong { display:block; font-size:16px; margin-bottom:5px; }
.fj-mini-meta { color:var(--fj-muted); font-size:13px; line-height:1.5; }
.fj-live .fj-mini-class { background:#f2fbf6; border-color:#d7efe2; }
.fj-next .fj-mini-class { background:#fff9ec; border-color:#f3e5bd; }
.fj-empty-mini { color:var(--fj-muted); padding:15px 0 5px; }
.fj-main-card { margin-bottom:22px; padding:25px; border:1px solid var(--fj-border); border-radius:22px; background:#fff; box-shadow:0 10px 35px rgba(40,30,50,.04); }
.fj-result-count { color:var(--fj-muted); font-weight:700; }
.fj-schedule-list { margin-top:20px; display:grid; gap:13px; }
.fj-class-card { display:grid; grid-template-columns:110px minmax(0,1fr) auto; gap:18px; align-items:center; padding:18px 20px; border:1px solid #e7e8ec; border-radius:18px; background:#fff; transition:.18s ease; }
.fj-class-card:hover { transform:translateY(-1px); box-shadow:0 10px 26px rgba(40,30,50,.07); }
.fj-time { font-weight:900; color:var(--fj-purple); font-size:16px; line-height:1.35; }
.fj-time small { display:block; color:#838995; font-size:12px; font-weight:600; margin-top:3px; }
.fj-class-main { min-width:0; }
.fj-class-title { margin:0 0 5px; font-size:18px; font-weight:850; line-height:1.28; }
.fj-class-code { color:var(--fj-muted); font-size:12px; font-weight:700; }
.fj-meta { display:flex; flex-wrap:wrap; gap:7px 14px; margin-top:10px; color:#525a66; font-size:13px; }
.fj-meta span { display:inline-flex; align-items:center; gap:5px; }
.fj-badge { justify-self:end; text-align:center; min-width:125px; padding:9px 12px; border-radius:999px; font-size:12px; font-weight:900; }
.fj-badge.live { color:#087443; background:#e7f8ef; }
.fj-badge.upcoming { color:#8a5a00; background:#fff3d8; }
.fj-badge.done { color:#6c717a; background:#f1f2f4; }
.fj-badge.other { color:var(--fj-purple); background:var(--fj-purple-soft); }
.fj-no-results { padding:35px 18px; text-align:center; color:var(--fj-muted); border:1px dashed #d8dae0; border-radius:16px; }
.fj-unscheduled-card details > summary { display:flex; align-items:center; justify-content:space-between; gap:18px; cursor:pointer; list-style:none; }
.fj-unscheduled-card details > summary::-webkit-details-marker { display:none; }
.fj-unscheduled-card summary strong { display:block; margin-top:3px; font-size:21px; }
.fj-note { color:var(--fj-muted); font-size:13px; margin:16px 0 0; }
.fj-footer { display:flex; justify-content:space-between; gap:20px; padding:5px 5px 25px; color:#7b818b; font-size:12px; }
.fj-sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media (max-width:900px) {
  .fj-hero { align-items:flex-start; padding:25px; }
  .fj-clockbox { min-width:205px; }
  .fj-filter-row { grid-template-columns:1fr 190px; }
  .fj-refresh { grid-column:1/-1; height:50px; }
  .fj-highlight-grid { grid-template-columns:1fr; }
  .fj-class-card { grid-template-columns:95px minmax(0,1fr); }
  .fj-badge { grid-column:1/-1; justify-self:start; min-width:auto; }
}
@media (max-width:620px) {
  .fj-hero { flex-direction:column; padding:22px 20px; border-radius:0 0 20px 20px; }
  .fj-clockbox { width:100%; text-align:left; }
  .fj-controls, .fj-main-card, .fj-highlight { padding:18px; border-radius:18px; }
  .fj-prodi-tabs { display:grid; grid-template-columns:1fr 1fr; }
  .fj-tab:first-child { grid-column:1/-1; }
  .fj-tab { padding:11px 9px; }
  .fj-filter-row { grid-template-columns:1fr; }
  .fj-refresh { grid-column:auto; height:52px; }
  .fj-highlight h2, .fj-main-card h2 { font-size:23px; }
  .fj-class-card { grid-template-columns:1fr; gap:8px; padding:16px; }
  .fj-time small { display:inline; margin-left:8px; }
  .fj-footer { flex-direction:column; gap:5px; }
}
.fj-control-top { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.fj-control-top .fj-prodi-tabs { margin-bottom:0; flex:1 1 auto; }
.fj-semester-picker { display:flex; flex-direction:column; gap:5px; flex:0 0 230px; }
.fj-semester-picker > span { color:#68707d; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.fj-semester-picker select { width:100%; min-height:46px; border:1px solid #dfe2e8; border-radius:13px; padding:0 12px; background:#fff; color:#222; }
@media (max-width:900px) { .fj-control-top { flex-direction:column; } .fj-semester-picker { width:100%; flex-basis:auto; } }

/* Compact shortcode mode for individual program-study pages */
.fj-mode-compact {
  max-width:none;
  margin:0;
}
.fj-compact-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 24px;
  border:1px solid var(--fj-border);
  border-radius:20px;
  background:#fff;
}
.fj-compact-title h2 {
  margin:3px 0 5px;
  font-size:clamp(25px,3vw,34px);
  line-height:1.12;
}
.fj-compact-title p {
  margin:0;
  color:var(--fj-muted);
  font-size:15px;
}
.fj-compact-clock {
  flex:0 0 auto;
  min-width:210px;
  text-align:right;
  padding-left:20px;
  border-left:1px solid var(--fj-border);
}
.fj-compact-clock strong {
  display:block;
  color:var(--fj-purple);
  font-size:24px;
  line-height:1.1;
}
.fj-compact-clock span {
  display:block;
  margin-top:5px;
  color:var(--fj-muted);
  font-size:12px;
}
.fj-compact-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin:12px 0 14px;
}
.fj-full-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  border:1px solid var(--fj-purple);
  border-radius:12px;
  color:var(--fj-purple);
  background:#fff;
  font-weight:800;
  text-decoration:none!important;
}
.fj-full-link:hover { background:var(--fj-purple-soft); color:var(--fj-purple); }
.fj-refresh-compact { min-height:44px; }
.fj-mode-compact .fj-status {
  margin-bottom:14px;
  padding:10px 14px;
}
.fj-mode-compact .fj-highlight-grid {
  gap:16px;
  margin-bottom:16px;
}
.fj-mode-compact .fj-highlight {
  min-height:150px;
  padding:18px;
  border-radius:18px;
}
.fj-mode-compact .fj-highlight h2,
.fj-mode-compact .fj-main-card h2 { font-size:22px; }
.fj-mode-compact .fj-main-card {
  padding:20px;
  margin-bottom:14px;
  border-radius:18px;
}
.fj-mode-compact .fj-class-card {
  grid-template-columns:100px minmax(0,1fr) auto;
  padding:15px 16px;
  border-radius:15px;
}
.fj-mode-compact .fj-class-title { font-size:16px; }
.fj-mode-compact .fj-footer { padding-bottom:6px; }
@media (max-width:760px) {
  .fj-compact-head { align-items:flex-start; flex-direction:column; padding:18px; }
  .fj-compact-clock { width:100%; min-width:0; text-align:left; padding:14px 0 0; border-left:0; border-top:1px solid var(--fj-border); }
  .fj-compact-actions { justify-content:stretch; }
  .fj-full-link, .fj-refresh-compact { flex:1 1 0; justify-content:center; }
  .fj-mode-compact .fj-class-card { grid-template-columns:1fr; gap:7px; }
}

/* v1.6.0 - kalender akademik / agenda homepage */
.fj-calendar-banner { margin:18px 0 20px; display:grid; gap:10px; }
.fj-calendar-banner[hidden] { display:none !important; }
.fj-calendar-event { display:flex; gap:18px; align-items:flex-start; padding:16px 18px; border:1px solid #d9d7df; border-left:5px solid var(--fj-purple-2); border-radius:14px; background:#fff; }
.fj-calendar-event.is-blocking { border-left-color:#b54747; background:#fff8f8; }
.fj-calendar-type { flex:0 0 auto; padding:6px 10px; border-radius:999px; background:var(--fj-purple-soft); color:var(--fj-purple); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.fj-calendar-event.is-blocking .fj-calendar-type { background:#fdeeee; color:#9b2f2f; }
.fj-calendar-main { min-width:0; display:grid; gap:3px; }
.fj-calendar-main strong { font-size:17px; line-height:1.25; }
.fj-calendar-main span { color:var(--fj-muted); font-weight:700; }
.fj-calendar-main p { margin:3px 0 0; color:var(--fj-muted); }

.fapet-home-agenda { display:grid; gap:14px; }
.fha-item { display:grid; grid-template-columns:74px minmax(0,1fr); gap:16px; align-items:start; padding:16px 0; border-bottom:1px solid #e7e4ea; }
.fha-item:last-child { border-bottom:0; }
.fha-date { display:grid; place-items:center; min-height:70px; border-radius:14px; background:#55206f; color:#fff; line-height:1; }
.fha-date strong { font-size:27px; }
.fha-date span { margin-top:4px; font-size:12px; font-weight:800; letter-spacing:.08em; color:#f2c94c; }
.fha-body { min-width:0; }
.fha-type { color:#6a2c87; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.fha-body h3 { margin:4px 0 4px; font-size:18px; line-height:1.25; }
.fha-body p { margin:0 0 4px; color:#68707d; }
.fha-body small { color:#68707d; }
.fapet-home-agenda-empty { padding:14px 0; color:#68707d; }

@media (max-width:640px) {
  .fj-calendar-event { flex-direction:column; gap:9px; }
  .fha-item { grid-template-columns:62px minmax(0,1fr); gap:12px; }
  .fha-date { min-height:62px; border-radius:12px; }
  .fha-date strong { font-size:23px; }
}

/* v1.6.1 - homepage agenda card, matching existing Fapet visual language */
.fha-home-card{background:#fff;border:1px solid #e0d9dc;border-radius:20px;padding:28px 30px 20px;color:#4b0b17;box-shadow:0 14px 38px rgba(75,11,23,.06)}
.fha-home-kicker{font-size:11px;font-weight:900;letter-spacing:.16em;color:#b48716;margin-bottom:8px}
.fha-home-card>h2{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(31px,3vw,43px);line-height:1.05;font-weight:500;color:#4b0b17}
.fha-home-subtitle{margin:10px 0 20px;color:#8a777d;font-size:12px;line-height:1.5}
.fha-home-list{display:grid;gap:12px}
.fha-home-item{display:grid;grid-template-columns:62px minmax(0,1fr) 34px;align-items:center;gap:14px;border:1px solid #eadfe2;border-left:4px solid #a94a5c;border-radius:12px;padding:10px 14px;background:#fff;min-width:0}
.fha-home-date{height:62px;border-radius:9px;background:linear-gradient(180deg,#6b1425,#791b2f);color:#fff;display:grid;align-content:center;justify-items:center;line-height:1;box-shadow:0 4px 10px rgba(75,11,23,.16)}
.fha-home-date strong{font-size:23px;font-family:Georgia,'Times New Roman',serif}
.fha-home-date span{margin-top:4px;font-size:9px;color:#f2c94c;font-weight:900;letter-spacing:.08em}
.fha-home-date small{margin-top:4px;font-size:7px;color:#f5d9df;font-weight:700}
.fha-home-main{min-width:0}
.fha-home-status{font-size:8px;letter-spacing:.12em;font-weight:900;color:#b48716;margin-bottom:4px}
.fha-home-main h3{margin:0;color:#5a1b27;font-family:Georgia,'Times New Roman',serif;font-size:18px;line-height:1.22;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.fha-home-time{margin-top:6px;color:#917f84;font-size:9px;font-weight:600}
.fha-home-arrow{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:#9a3146!important;text-decoration:none!important;font-size:22px;line-height:1;transition:background .15s ease,transform .15s ease}
.fha-home-arrow:hover{background:#fbf1f3;transform:translateX(2px)}
.fha-home-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:17px;color:#a08f94;font-size:8px}
.fha-home-footer a{color:#4b0b17!important;font-weight:800;text-decoration:none!important;white-space:nowrap}
.fha-home-footer a span{font-size:16px;vertical-align:-1px;margin-left:5px}
.fha-home-empty{padding:24px 10px;color:#8a777d;text-align:center;border:1px dashed #e0d9dc;border-radius:12px}
@media(max-width:640px){.fha-home-card{padding:22px 18px 18px}.fha-home-item{grid-template-columns:56px minmax(0,1fr) 30px;padding:9px 10px;gap:10px}.fha-home-date{height:56px}.fha-home-main h3{font-size:16px}.fha-home-footer{align-items:flex-start;flex-direction:column}.fha-home-footer a{white-space:normal}}
