/* Kantor AI — bingkai "layar" gelap untuk kantor pixel di dalam tema Forest-River */
.office-card { background: #0f1a24; border: 1px solid #1d2b38; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(19, 48, 74, .18); }
.office-bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: #0b141c; border-bottom: 1px solid #1d2b38; color: #8fa3b5; font-size: 11.5px; flex-wrap: wrap; }
.office-bar .dots { display: inline-flex; gap: 6px; }
.office-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e5675c; display: block; }
.office-bar .dots i:nth-child(2) { background: #f2c14e; }
.office-bar .dots i:nth-child(3) { background: #2fb36f; }
.office-title { font-family: var(--sans); font-weight: 800; letter-spacing: .1em; color: #c9d6e2; font-size: 13px; }
.office-bar .legend { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.lg { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 5px; }
.lg.work { background: #f5a524; } .lg.pkt { background: #f6f3ea; outline: 1px solid #1b2230; }
#iso { display: block; width: 100%; height: auto; background: radial-gradient(ellipse at 50% 40%, #1d3346 0%, #0f1a24 70%); transition: background .8s; }
#iso.day { background: radial-gradient(ellipse at 50% 35%, #f4f9fc 0%, #cfe4f1 75%); }

.office-stats { display: flex; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; padding-top: 6px; }
.office-stats span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.office-stats b { color: var(--text); font-weight: 800; }

.office-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(320px, 1.2fr); gap: 20px; align-items: start; }
.stack-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.prayer .clock { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: -4px 0 2px; color: var(--text); }
.prayer .next { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.prayer .next b { color: var(--forest-t); }
.times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.times li { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.times li span { font-size: 11.5px; color: var(--muted); }
.times li b { font-size: 16px; font-variant-numeric: tabular-nums; }
.times li.now { border-color: #9fd6b5; background: var(--forest-bg); }
.times li.now span { color: var(--forest-t); font-weight: 700; }
.times li.done b { color: var(--dim); }
.prayer .sim { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.prayer .sim .filters { flex-wrap: nowrap; }
.prayer .sim select { flex: 1 1 auto; }

.boss-card { background: linear-gradient(180deg, #fffaf2 0%, #ffffff 60%); border-color: #efe1c8; }
.boss-row { display: flex; gap: 12px; align-items: center; }
.boss-av { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #5a3520, #8a5a2b); color: #f5e6c0; font-weight: 800; font-size: 20px; display: grid; place-items: center; flex: 0 0 auto; }
.boss-nm { font-weight: 800; font-size: 16px; }
.boss-st { font-size: 12px; color: #8a5a2b; font-weight: 700; margin-top: 2px; }
.boss-note { font-size: 12.5px; margin: 12px 0; }

.roster { display: flex; flex-direction: column; gap: 8px; }
.ag { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); cursor: pointer; text-align: left; width: 100%; }
.ag:hover, .ag.sel { border-color: #9fd6b5; background: #f6fbf8; }
.ag .av { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-family: var(--sans), var(--mono); font-weight: 700; color: #fff; font-size: 14px; }
.ag-tx { min-width: 0; }
.ag .nm { font-weight: 700; font-size: 13px; }
.ag .ms { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag .st { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.st.working { background: var(--amber-bg); color: var(--amber-t); }
.st.idle { background: #eef2f4; color: var(--muted); }
.st.pray { background: var(--forest-bg); color: var(--forest-t); }
.st.off { background: #f1f3f5; color: var(--dim); }

.log-filter { width: auto; min-height: 34px; padding: 5px 9px; font-size: 12.5px; }
.log { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid #edf3f0; font-size: 13px; }
.log li:first-child { border-top: 0; }
.log .tm { font-family: var(--mono); font-size: 11px; color: var(--dim); padding-top: 2px; }
.log .who { font-size: 11.5px; font-weight: 800; }
.log .lv-warn { color: var(--amber-t); } .log .lv-error { color: var(--red-t); } .log .lv-ok { color: var(--forest-t); }

@media (max-width: 1240px) { .office-grid { grid-template-columns: 1fr 1fr; } .office-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .office-grid { grid-template-columns: 1fr; } .office-bar .legend { display: none; } }

/* zoom & geser */
.office-stage { position: relative; }
#iso { user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.zoom-ctl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px; background: rgba(11, 20, 28, .82); border: 1px solid #263848; border-radius: 12px; backdrop-filter: blur(4px); }
.zoom-ctl button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #1a2a38; color: #e3edf5; font: 700 18px/1 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.zoom-ctl button:hover { background: #24394b; }
.zoom-ctl button:focus-visible, .room-jump button:focus-visible { outline: 2px solid #5be08f; outline-offset: 1px; }
.zoom-ctl span { font: 600 10.5px/1 var(--mono); color: #8fa3b5; padding: 2px 0; }
.room-jump { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 80px); }
.room-jump button { border: 1px solid #263848; background: rgba(11, 20, 28, .78); color: #c9d6e2; font: 600 11.5px/1 'Plus Jakarta Sans', sans-serif; padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.room-jump button:hover { background: #1a2a38; color: #fff; }
@media (max-width: 760px) { .room-jump { display: none; } .zoom-ctl { right: 8px; top: 8px; } .zoom-ctl button { width: 30px; height: 30px; } }

/* HUD jam & statistik: melayang di dalam frame kantor (bukan objek ruangan) — jam di langit kiri atas, statistik di langit kanan atas */
.hud { position: absolute; top: 12px; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(11, 20, 28, .84); border: 1px solid #263848; border-radius: 14px; color: #e3edf5; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-family: 'Plus Jakarta Sans', var(--sans), sans-serif; }
.hud:empty { display: none; }
.hud-left { left: 12px; }
.hud-right { right: 64px; width: min(372px, 32%); padding: 8px 34px 8px 8px; }
.hud-right .hud-tog { position: absolute; right: 7px; top: 8px; }
.hud-right.min { padding: 5px; } .hud-right.min .hud-tog { position: static; }
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hud-ttl { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fa3b5; }
.hud-time { font: 800 30px/1 'Plus Jakarta Sans', var(--sans), sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.hud-sec { font-size: 16px; color: #8fa3b5; font-weight: 700; }
.hud-tz { font-size: 11px; font-weight: 800; color: #5be08f; margin-left: 6px; letter-spacing: .06em; vertical-align: 3px; }
.hud-date { font-size: 12px; color: #c9d6e2; margin-top: 2px; }
.hud-next { font-size: 11.5px; color: #8fa3b5; }
.hud-tog { width: 22px; height: 22px; flex: 0 0 auto; border: 0; border-radius: 7px; background: #1a2a38; color: #c9d6e2; font: 700 15px/1 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.hud-tog:hover { background: #24394b; color: #fff; }
.hud-tog:focus-visible { outline: 2px solid #5be08f; outline-offset: 1px; }
.hud-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hud.min .hud-stats { display: none; }
.hud.min { width: auto; }
.hud-st { display: flex; flex-direction: column; min-width: 0; padding: 6px 8px; background: rgba(26, 42, 56, .7); border-radius: 9px; }
.hud-st span { font-size: 10px; color: #8fa3b5; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-st b { font-size: 13.5px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.hud-st b.pos { color: #5be08f; } .hud-st b.neg { color: #ff8a80; }
.hud-st small { font-size: 10px; color: #8fa3b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 13px; }
@media (max-width: 1100px) { .hud-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hud-right { width: min(260px, 38%); } }
@media (max-width: 760px) { .hud { padding: 6px 9px; } .hud-left { left: 8px; top: 8px; } .hud-time { font-size: 18px; } .hud-sec { font-size: 11px; } .hud-date { font-size: 10.5px; } .hud-next, .hud-right { display: none; } }

/* tombol & panel suara (di bawah kontrol zoom) */
.snd-ctl { position: absolute; right: 12px; top: 186px; }
.snd-btn { width: 44px; height: 40px; border: 1px solid #263848; border-radius: 12px; background: rgba(11, 20, 28, .82); color: #e3edf5; font-size: 17px; cursor: pointer; backdrop-filter: blur(4px); }
.snd-btn:hover { background: #1a2a38; } .snd-btn.on { border-color: #2fb36f; }
.snd-btn:focus-visible, .snd-panel button:focus-visible, .snd-panel input:focus-visible { outline: 2px solid #5be08f; outline-offset: 1px; }
.snd-panel { position: absolute; right: 52px; top: 0; width: 248px; padding: 12px; display: flex; flex-direction: column; gap: 9px; background: rgba(11, 20, 28, .94); border: 1px solid #263848; border-radius: 12px; color: #e3edf5; font-size: 12.5px; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.snd-panel[hidden] { display: none; }
.snd-ttl { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fa3b5; }
.snd-row { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.snd-row input { accent-color: #2fb36f; width: 16px; height: 16px; }
.snd-vol { display: flex; gap: 8px; align-items: center; } .snd-vol span { color: #8fa3b5; } .snd-vol input { flex: 1; accent-color: #2fb36f; }
.snd-test { border: 1px solid #263848; background: #1a2a38; color: #e3edf5; border-radius: 8px; padding: 7px; font: 600 12px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.snd-test:hover { background: #24394b; }

/* ticker berjalan di bawah frame */
.ticker { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0b141c; border-top: 1px solid #1d2b38; color: #c9d6e2; font-size: 12.5px; overflow: hidden; }
.tk-lbl { flex: 0 0 auto; font: 800 10px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; color: #0b141c; background: #5be08f; padding: 4px 7px; border-radius: 5px; }
.tk-view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-track { display: flex; width: max-content; animation: tk-scroll 40s linear infinite; }
.tk-track:hover { animation-play-state: paused; }
.tk-run { display: flex; gap: 34px; padding-right: 34px; white-space: nowrap; }
.tk-it b { color: #fff; font-weight: 800; } .tk-sub { color: #8fa3b5; }
.tk-it .pos { color: #5be08f; } .tk-it .neg { color: #ff8a80; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .tk-view { overflow-x: auto; } }
@media (max-width: 760px) { .snd-ctl { top: 150px; right: 8px; } .snd-btn { width: 38px; height: 34px; } }

/* kartu detail agent (klik agent) */
.agent-card { position: absolute; right: 12px; bottom: 12px; width: 300px; max-height: calc(100% - 250px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: rgba(11, 20, 28, .94); border: 1px solid #263848; border-radius: 14px; color: #e3edf5; font-size: 12.5px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.agent-card[hidden] { display: none; }
.ac-head { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 26px; gap: 9px; align-items: center; }
.ac-av { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; }
.ac-nm { min-width: 0; display: flex; flex-direction: column; } .ac-nm b { font-size: 14px; color: #fff; } .ac-nm span { font-size: 11px; color: #8fa3b5; }
.agent-card .st { font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; text-transform: capitalize; }
.agent-card .st.idle { background: #1a2a38; color: #c9d6e2; } .agent-card .st.dead { background: #c62828; color: #fff; }
.ac-x { width: 26px; height: 26px; border: 0; border-radius: 7px; background: #1a2a38; color: #c9d6e2; font-size: 17px; line-height: 1; cursor: pointer; }
.ac-x:hover { background: #24394b; color: #fff; } .ac-x:focus-visible, .ac-link:focus-visible { outline: 2px solid #5be08f; outline-offset: 1px; }
.ac-role { margin: 0; color: #c9d6e2; line-height: 1.45; }
.ac-now { padding: 8px 10px; background: rgba(26, 42, 56, .7); border-radius: 9px; } .ac-now span, .ac-sec > span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8fa3b5; margin-bottom: 3px; }
.ac-now div { color: #fff; font-weight: 600; line-height: 1.4; }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ac-st { display: flex; flex-direction: column; min-width: 0; padding: 7px 9px; background: rgba(26, 42, 56, .7); border-radius: 9px; }
.ac-st span { font-size: 10px; color: #8fa3b5; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-st b { font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; margin-top: 1px; } .ac-st b.neg { color: #ff8a80; } .ac-st b.warn { color: #f2c14e; } .ac-st b.pos { color: #5be08f; }
.ac-st small { font-size: 10.5px; color: #8fa3b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-chart-wrap { position: relative; }
.ac-chart { display: block; width: 100%; height: auto; } .ac-base { stroke: #2b3d4e; stroke-width: 1; } .ac-bar { opacity: .78; } .ac-bar.now { opacity: 1; }
.ac-tip { position: absolute; top: -26px; transform: translateX(-50%); padding: 3px 7px; background: #e3edf5; color: #0b141c; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.ac-axis { display: flex; justify-content: space-between; font-size: 10px; color: #8fa3b5; margin-top: 3px; }
.ac-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.ac-log li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; line-height: 1.35; } .ac-log time { font: 600 10.5px var(--mono); color: #8fa3b5; padding-top: 1px; }
.ac-log span { color: #dbe5ee; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ac-log .lv-warn { color: #f2c14e; } .ac-log .lv-error { color: #ff8a80; } .ac-log .lv-ok { color: #8fe3b1; }
.ac-err { padding: 7px 9px; border-radius: 9px; background: rgba(198, 40, 40, .18); border: 1px solid rgba(255, 138, 128, .35); display: flex; flex-direction: column; gap: 2px; } .ac-err b { color: #ff8a80; font-size: 11px; } .ac-err span { color: #f3d6d3; }
.ac-load { color: #8fa3b5; }
.ac-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; } .ac-foot .dim { color: #8fa3b5; }
.ac-link { flex: 0 0 auto; border: 1px solid #263848; background: #1a2a38; color: #e3edf5; border-radius: 8px; padding: 6px 9px; font: 600 11.5px 'Plus Jakarta Sans', sans-serif; cursor: pointer; } .ac-link:hover { background: #24394b; }
@media (max-width: 760px) { .agent-card { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 70%; } }

.snd-notif .check { font-size: 12.5px; align-items: center; } .snd-notif .dim { color: #8fa3b5 !important; font-size: 11px !important; line-height: 1.35; } .snd-notif input { accent-color: #2fb36f; }

/* baris Server di HUD Statistik (klik → kartu Teknisi) */
.hud-srv { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 12px; align-items: center; padding: 7px 9px; background: rgba(26, 42, 56, .7); border-radius: 9px; cursor: pointer; font-size: 11px; }
.hud-srv:hover { background: rgba(36, 57, 75, .85); }
.hud-srv.warn { box-shadow: inset 0 0 0 1px rgba(242, 193, 78, .55); } .hud-srv.bad { box-shadow: inset 0 0 0 1px rgba(229, 103, 92, .8); }
.hs-ttl { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #c9d6e2; white-space: nowrap; }
.hs-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36f; } .hs-dot.warn { background: #f2c14e; } .hs-dot.bad { background: #e5675c; animation: hs-blink 1s steps(2) infinite; }
@keyframes hs-blink { 50% { opacity: .25; } }
.hs-dim { grid-column: 2 / -1; color: #8fa3b5; }
.hs-m { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'l v' 'b b'; gap: 3px 6px; align-items: center; min-width: 0; }
.hs-m .hs-l { grid-area: l; } .hs-m b { grid-area: v; } .hs-m .hs-bar { grid-area: b; }
.hs-l { color: #8fa3b5; font-weight: 600; } .hs-m b { color: #fff; font-variant-numeric: tabular-nums; font-size: 11.5px; }
.hs-bar { height: 5px; border-radius: 3px; background: #24394b; overflow: hidden; min-width: 16px; } .hs-bar i { display: block; height: 100%; border-radius: 3px; background: #2fb36f; }
.hs-m.warn .hs-bar i { background: #f2c14e; } .hs-m.bad .hs-bar i { background: #e5675c; } .hs-m.warn b { color: #f2c14e; } .hs-m.bad b { color: #ff8a80; }
@media (max-width: 1100px) { .hud-srv { grid-template-columns: 1fr 1fr; } .hs-ttl { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .hs-dot.bad { animation: none; } }

/* bagian Server di kartu Teknisi */
.ac-server { display: flex; flex-direction: column; gap: 7px; }
.ac-procs { padding: 7px 9px; background: rgba(26, 42, 56, .7); border-radius: 9px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ac-procs > span { flex-basis: 100%; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8fa3b5; }
.ac-procs b { color: #fff; } .ac-procs small { color: #8fa3b5; font-size: 10.5px; } .ac-procs > small { flex-basis: 100%; }
.ac-mini > span { display: block; font-size: 10px; color: #8fa3b5; margin-bottom: 3px; }
