:root{
  --bg:#f7f9ff;--panel:#fff;--ink:#0f172a;--muted:#64748b;--line:#e5e7eb;
  --primary:#5b4dff;--primary2:#7c3aed;--ok:#10b981;--warn:#f59e0b;--danger:#ef4444;
  --shadow:0 18px 45px rgba(15,23,42,.08);--radius:18px;
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}
button,input,textarea,select{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:285px;background:#06142b;color:#fff;padding:24px 18px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:99px}.brand{display:flex;gap:12px;align-items:center}.brand-logo{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,var(--primary),#27d3ff);display:grid;place-items:center;font-weight:800}.brand h1{font-size:20px;margin:0}.brand p{margin:2px 0 0;color:#cbd5e1;font-size:13px}.primary-btn{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border:0;border-radius:12px;padding:13px 16px;font-weight:700;cursor:pointer;box-shadow:0 10px 30px rgba(91,77,255,.28)}.primary-btn:disabled{opacity:.6;cursor:not-allowed}.secondary-btn{background:#fff;color:var(--primary);border:1px solid #d8d7ff;border-radius:12px;padding:11px 14px;font-weight:700;cursor:pointer}.ghost-btn{background:transparent;border:1px solid var(--line);border-radius:12px;padding:10px 13px;cursor:pointer;color:var(--ink)}.full{width:100%}.nav{display:flex;flex-direction:column;gap:8px}.nav-item{border:0;background:transparent;color:#e2e8f0;text-align:left;padding:13px 14px;border-radius:12px;cursor:pointer}.nav-item.active,.nav-item:hover{background:rgba(91,77,255,.35)}.side-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:16px;margin-top:auto}.side-card+.side-card{margin-top:0}.side-card strong{display:block;font-size:21px}.side-card small{color:#cbd5e1}.muted{color:var(--muted);margin:0 0 8px}.sidebar .muted{color:#cbd5e1}.main{flex:1;padding:22px 28px 36px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}.searchbox{max-width:560px;flex:1;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 18px;color:#94a3b8}.user-chip{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 14px}.user-chip small{display:block;color:var(--muted)}.avatar{width:38px;height:38px;border-radius:50%;background:#e0f2fe;color:#0369a1;display:grid;place-items:center;font-weight:800}.page{display:none}.page.active{display:block}.hero{background:linear-gradient(135deg,#3557ff,#8b35ff);color:#fff;border-radius:22px;padding:28px;box-shadow:var(--shadow);position:relative;overflow:hidden}.hero h2{font-size:28px;margin:0 0 8px}.hero p{color:#eef2ff;margin:0 0 18px}.prompt-row{display:flex;gap:12px}.prompt-row textarea{flex:1;min-height:82px;border:0;border-radius:16px;padding:18px;resize:vertical;outline:none}.quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.quick-actions button{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);color:#fff;border-radius:999px;padding:9px 13px;cursor:pointer}.grid{display:grid;gap:18px}.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}.stat strong{font-size:30px;display:block}.stat span{color:var(--muted)}.section-title{display:flex;align-items:end;justify-content:space-between;margin:28px 0 14px}.section-title h2,.section-title h3{margin:0}.skill-card{min-height:168px;display:flex;flex-direction:column;gap:10px}.skill-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#eef2ff;font-size:24px}.tag{display:inline-block;width:max-content;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:12px;font-weight:700}.tag.green{background:#dcfce7;color:#15803d}.tag.orange{background:#ffedd5;color:#c2410c}.tag.red{background:#fee2e2;color:#b91c1c}.toolbar{display:flex;gap:12px;align-items:center;margin:16px 0}.toolbar input,.toolbar select,.form-grid input,.form-grid select,.form-grid textarea{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;outline:none;width:100%}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.agent-layout{display:grid;grid-template-columns:1fr 390px;gap:18px}.panel-title{font-size:18px;font-weight:800;margin:0 0 12px}.workflow-list{display:flex;flex-direction:column;gap:10px}.workflow-item{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.dot{width:12px;height:12px;border-radius:50%;background:#cbd5e1}.workflow-item.running .dot{background:var(--warn);animation:pulse 1s infinite}.workflow-item.done .dot{background:var(--ok)}.workflow-item.error .dot{background:var(--danger)}@keyframes pulse{50%{opacity:.35}}.result-preview{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;min-height:500px;max-height:68vh;overflow:auto}.result-preview h1{font-size:24px}.result-preview h2{font-size:19px;border-bottom:1px solid var(--line);padding-bottom:8px}.result-preview table{width:100%;border-collapse:collapse;margin:12px 0}.result-preview td,.result-preview th{border:1px solid #cbd5e1;padding:8px;vertical-align:top}.project-row{display:flex;justify-content:space-between;gap:16px;align-items:center;border:1px solid var(--line);border-radius:15px;padding:15px;background:#fff;margin-bottom:10px}.progress-wrap{height:10px;background:#e5e7eb;border-radius:999px;overflow:hidden}.progress{height:100%;width:0;background:linear-gradient(90deg,var(--primary),var(--primary2));transition:.25s}.toast{position:fixed;right:24px;bottom:24px;background:#0f172a;color:#fff;border-radius:14px;padding:14px 18px;box-shadow:var(--shadow);z-index:50}
.notif-bell{position:relative;text-decoration:none;font-size:20px;padding:8px}
.notif-badge{position:absolute;top:0;right:-2px;background:#ef4444;color:#fff;border-radius:999px;font-size:11px;font-weight:800;padding:2px 6px;min-width:18px;text-align:center;line-height:1.2}
.notif-panel{position:fixed;top:78px;right:24px;width:min(420px,92vw);max-height:70vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.18);z-index:60;display:none}
.notif-panel.open{display:block}
.notif-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);font-weight:800}
.notif-item{padding:12px 16px;border-bottom:1px solid #f1f5f9}
.notif-item.unread{background:#eff6ff}
.notif-item strong{display:block;font-size:14px}
.notif-item p{margin:4px 0 2px;font-size:13px;color:#475569;white-space:pre-line}
.notif-item small{color:#94a3b8;font-size:11px}.hidden{display:none!important}.small{font-size:12px;color:var(--muted)}.danger-text{color:var(--danger)}.ok-text{color:var(--ok)}
@media(max-width:1100px){.agent-layout,.grid.cols-4,.grid.cols-3{grid-template-columns:1fr 1fr}.sidebar{width:235px}.form-grid{grid-template-columns:1fr}}
@media(max-height:820px){.sidebar{gap:12px;padding:16px 14px}.sidebar .nav-item{padding:10px 12px}.side-card{padding:12px 14px}.side-card strong{font-size:17px}.brand-logo{width:38px;height:38px}.brand h1{font-size:18px}}
@media(max-width:820px){.app-shell{display:block}.sidebar{position:relative;width:100%;height:auto}.main{padding:18px}.agent-layout,.grid.cols-4,.grid.cols-3,.grid.cols-2{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:stretch}}
@media print{.sidebar,.topbar,.no-print,.toolbar,.section-title,.hero,.form-grid,.card:not(.result-wrap),aside,.notif-panel,.notif-bell,.progress-wrap,#toast{display:none!important}.main{padding:0}.agent-layout{display:block}.result-preview{border:0;box-shadow:none;max-height:none;overflow:visible;padding:0}.page{display:none}.page.active{display:block}.result-preview table{page-break-inside:auto}.result-preview tr{page-break-inside:avoid}.result-preview section{page-break-before:always}.result-preview section:first-of-type{page-break-before:auto}}
.cal-toolbar{display:flex;align-items:center;gap:12px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.cal-head{font-weight:800;text-align:center;color:var(--muted);padding:6px 0;font-size:13px}
.cal-cell{min-height:78px;border:1px solid var(--line);border-radius:10px;padding:6px;cursor:pointer;background:#fff;position:relative;overflow:hidden}
.cal-cell:hover{border-color:var(--primary);box-shadow:0 4px 14px rgba(91,77,255,.15)}
.cal-cell.other{opacity:.35}
.cal-cell.today{outline:2px solid var(--primary)}
.cal-cell.has-event .cal-date{font-weight:900;color:var(--primary)}
.cal-date{font-size:13px}
.cal-dot{position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--danger)}
.cal-ev{font-size:10px;background:#eef2ff;border-radius:6px;padding:1px 4px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-ev.libur{background:#fee2e2}.cal-ev.asesmen{background:#fef3c7}.cal-ev.efektif{background:#dcfce7}
.gsa-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:70;display:flex;align-items:center;justify-content:center;padding:16px}
.gsa-modal{background:#fff;border-radius:20px;max-width:560px;width:100%;padding:24px;max-height:88vh;overflow:auto;box-shadow:0 24px 60px rgba(15,23,42,.25)}
.gsa-modal textarea{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;outline:none;width:100%;resize:vertical}

.provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.provider-chip{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.provider-chip strong{display:block}.provider-chip small{display:block;color:var(--muted);word-break:break-word}.provider-chip.ok{border-color:#bbf7d0;background:#f0fdf4}.provider-chip.warn{border-color:#fed7aa;background:#fff7ed}.provider-attempts{margin-top:8px;display:flex;flex-direction:column;gap:6px}.attempt{font-size:12px;border:1px solid var(--line);border-radius:10px;padding:7px;background:#f8fafc}.attempt.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.attempt.failed{border-color:#fecaca;background:#fef2f2;color:#991b1b}.attempt.skipped{border-color:#fde68a;background:#fffbeb;color:#92400e}
@media(max-width:820px){.provider-grid{grid-template-columns:1fr}}
.export-toast{position:fixed;right:18px;bottom:88px;background:#0f172a;color:#fff;padding:12px 14px;border-radius:14px;box-shadow:0 12px 28px rgba(15,23,42,.22);z-index:9999;opacity:0;transform:translateY(10px);transition:.22s ease;font-size:13px;max-width:320px}.export-toast.show{opacity:1;transform:translateY(0)}
