/*! Alkembic Ace v2.1 – Core Styles (compressed but complete) */
:root { --tr: all 0.2s ease; --radius: 12px; --fc-bg: #0a0f19; --fc-header: #101827; --fc-bd: #1c2a3e; --fc-input: #06080f; --fc-text: #b8c7da; --fc-accent: #f0a500; }
[data-theme="dark"] {
  --bg: #06080f; --sf: #0c1220; --card: #101827; --card2: #141f30; --bd: #1c2a3e; --bd2: #243448; --am: #f0a500; --gr: #00e676; --rd: #ff3860; --bl: #448aff; --pu: #d050ff; --cy: #00e5ff; --or: #ff6d00; --tx: #b8c7da; --hd: #dce8f8; --mu: #6a7d94; --ibg: #080e18; --neon-am: 0 0 16px rgba(240,165,0,0.5),0 0 32px rgba(240,165,0,0.2); --neon-gr: 0 0 16px rgba(0,230,118,0.4); --neon-rd: 0 0 16px rgba(255,56,96,0.4); --neon-bl: 0 0 16px rgba(68,138,255,0.4); --neon-cy: 0 0 16px rgba(0,229,255,0.4); --amd: rgba(240,165,0,0.12);
}
[data-theme="light"] {
  --bg: #f1f5f9; --sf: #ffffff; --card: #ffffff; --card2: #f8fafc; --bd: #e2e8f0; --bd2: #cbd5e1; --am: #d4870a; --gr: #059669; --rd: #dc2626; --bl: #2563eb; --pu: #7c3aed; --cy: #06b6d4; --or: #ea580c; --tx: #334155; --hd: #0f172a; --mu: #94a3b8; --ibg: #e2e8f0; --neon-am: 0 0 12px rgba(212,135,10,0.4); --neon-gr: 0 0 12px rgba(5,150,105,0.4); --neon-rd: 0 0 12px rgba(220,38,38,0.4); --neon-bl: 0 0 12px rgba(37,99,235,0.4); --neon-cy: 0 0 12px rgba(6,182,212,0.4); --amd: rgba(212,135,10,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Inter', sans-serif; font-size: 14px; }
body { background: var(--bg); color: var(--tx); display: flex; flex-direction: column; overflow: hidden; transition: background 0.3s, color 0.3s; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--bd2); border-radius: 3px; }
input, button, select, textarea { font-family: inherit; }
a { color: var(--am); cursor: pointer; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--bd); font-size: 0.85rem; }
th { color: var(--am); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; text-transform: uppercase; }
h3 { color: var(--hd); margin-bottom: 8px; }
.topbar { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; background: var(--sf); border-bottom: 1px solid var(--bd); flex-shrink: 0; z-index: 10; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--am), var(--cy), transparent); opacity: 0.4; pointer-events: none; }
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--am); text-shadow: var(--neon-am); white-space: nowrap; cursor: pointer; }
.desktop-tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.tab { padding: 8px 16px; border-radius: 8px; font-weight: 600; color: var(--tx); background: transparent; transition: var(--tr); white-space: nowrap; cursor: pointer; font-size: 0.88rem; }
.tab:hover { color: var(--am); }
.tab.active { background: var(--amd); color: var(--am); }
.user-badge { padding: 4px 12px; background: var(--card); border: 1px solid var(--bd); border-radius: 20px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.85rem; color: var(--hd); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-weight: 600; background: var(--am); color: #06080f; border: none; cursor: pointer; transition: var(--tr); font-size: 0.85rem; }
.btn:hover { box-shadow: var(--neon-am); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--am); color: var(--am); }
.btn-outline:hover { background: var(--amd); }
.btn-ghost { background: transparent; color: var(--mu); border: 1px solid var(--bd); }
.btn-ghost:hover { color: var(--am); border-color: var(--am); }
.btn-danger { background: var(--rd); color: #fff; }
.btn-danger:hover { box-shadow: var(--neon-rd); }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-content { background: var(--sf); border: 1px solid var(--bd2); border-radius: 16px; padding: 24px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.setup-card { background: var(--sf); border-radius: 24px; padding: 32px; width: 100%; max-width: 440px; box-shadow: 0 0 30px rgba(0,0,0,0.5); border: 1px solid var(--bd2); position: relative; overflow: hidden; }
.setup-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--am), var(--cy), var(--pu), var(--am)); background-size: 200% 100%; animation: shimmer 3s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: 0 0; } }
.section-card { background: var(--card); border: 1px solid var(--bd); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--bd2); border-radius: 12px; padding: 18px; position: relative; transition: var(--tr); overflow: hidden; }
.stat-card h3 { color: var(--hd); font-size: 1.8rem; font-family: 'Syne', sans-serif; margin-bottom: 4px; }
.stat-card { font-size: 0.78rem; color: var(--mu); text-transform: uppercase; letter-spacing: 1px; font-family: 'JetBrains Mono', monospace; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.stat-card.am::before { background: var(--am); }
.stat-card.gr::before { background: var(--gr); }
.stat-card.bl::before { background: var(--bl); }
.stat-card.pu::before { background: var(--pu); }
.stat-card.cy::before { background: var(--cy); }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--bd2); border-radius: 24px; transition: 0.3s; }
.toggle-track::after { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-track { background: var(--am); box-shadow: var(--neon-am); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(22px); background: #06080f; }
.kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { flex: 1 1 280px; min-width: 280px; max-width: 380px; background: var(--card); border: 1px solid var(--bd2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; transition: var(--tr); }
.kanban-col.drag-over { border-color: var(--am); box-shadow: var(--neon-am); }
.col-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.col-title { display: flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; font-size: 0.82rem; color: var(--hd); }
.col-dot { width: 8px; height: 8px; border-radius: 50%; }
.col-todo .col-dot { background: var(--am); }
.col-inprogress .col-dot { background: var(--bl); }
.col-done .col-dot { background: var(--gr); }
.col-count { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--mu); padding: 2px 8px; background: var(--card2); border-radius: 10px; }
.kanban-card { background: var(--card2); border: 1px solid var(--bd); border-radius: 10px; padding: 12px; margin-bottom: 10px; cursor: grab; transition: var(--tr); position: relative; }
.kanban-card:hover { transform: translateY(-1px); }
.kanban-card[data-priority="critical"]:hover { border-color: var(--rd); box-shadow: var(--neon-rd); }
.kanban-card[data-priority="high"]:hover { border-color: var(--or); }
.kanban-card[data-priority="medium"]:hover { border-color: var(--am); box-shadow: var(--neon-am); }
.kanban-card[data-priority="low"]:hover { border-color: var(--gr); box-shadow: var(--neon-gr); }
.label-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 4px; border: 1px solid currentColor; background: transparent; position: relative; display: inline-block; }
.label-tag::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0.12; border-radius: 2px; }
.people-tag { display: inline-block; padding: 2px 8px; background: var(--card); border: 1px solid var(--bd); border-radius: 4px; font-size: 0.72rem; color: var(--hd); }
.people-tag .role { color: var(--mu); font-size: 0.66rem; }
.color-0 { color: var(--cy); }
.color-1 { color: var(--pu); }
.color-2 { color: var(--bl); }
.color-3 { color: var(--or); }
.color-4 { color: var(--gr); }
.color-5 { color: var(--am); }
.drop-zone-empty { border: 2px dashed var(--bd); border-radius: 10px; padding: 24px 12px; text-align: center; color: var(--mu); transition: var(--tr); cursor: pointer; }
.drop-zone-empty:hover { border-color: var(--am); color: var(--am); background: var(--amd); }
.dz-icon { font-size: 1.6rem; margin-bottom: 4px; }
.dz-text { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; }
.console-bar { position: fixed; bottom: 36px; left: 0; right: 0; background: var(--sf); border-top: 1px solid var(--bd); z-index: 50; transition: height 0.3s; }
.console-main { display: flex; align-items: center; padding: 6px 16px; gap: 8px; }
.console-input { flex: 1; background: var(--ibg); border: 1px solid var(--bd); color: var(--hd); padding: 6px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }
.console-input:focus { outline: none; border-color: var(--am); }
.console-log { max-height: 120px; overflow-y: auto; padding: 6px 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; display: none; border-top: 1px solid var(--bd); }
.console-bar.has-log .console-log { display: block; }
.log-line { padding: 1px 0; }
.log-line.success { color: var(--gr); }
.log-line.error { color: var(--rd); }
.log-line.info { color: var(--cy); }
.log-line.warn { color: var(--am); }
.app-footer { position: fixed; bottom: 0; left: 0; right: 0; height: 36px; background: var(--ibg); border-top: 1px solid var(--bd); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 40; }
.footer-brand { font-family: 'Syne', sans-serif; font-size: 0.85rem; color: var(--am); font-weight: 700; }
.footer-stats { display: flex; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--mu); }
.footer-clock { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--am); font-weight: 600; }
.autosave-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gr); animation: pulse 2s infinite; }
.main-area { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: calc(52px + 36px + 24px); }
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.filter-chip { padding: 5px 12px; border-radius: 20px; font-size: 0.76rem; border: 1px solid var(--bd); background: transparent; color: var(--mu); cursor: pointer; transition: var(--tr); font-family: 'JetBrains Mono', monospace; }
.filter-chip:hover { border-color: var(--am); color: var(--am); }
.filter-chip.active { background: var(--amd); border-color: var(--am); color: var(--am); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-header { font-weight: 700; padding: 6px; color: var(--am); font-size: 0.75rem; text-align: center; font-family: 'JetBrains Mono', monospace; }
.cal-day { min-height: 74px; padding: 6px; background: var(--card); border-radius: 6px; cursor: pointer; transition: var(--tr); border: 1px solid transparent; position: relative; }
.cal-day:hover { border-color: var(--am); }
.cal-day.today { border: 1px solid var(--am); box-shadow: var(--neon-am); }
.cal-day.range-start { outline: 2px solid var(--cy); outline-offset: -2px; background: var(--amd); }
.cal-day.empty { background: transparent; cursor: default; }
.day-num { font-size: 0.78rem; font-weight: 600; color: var(--hd); margin-bottom: 4px; }
.ribbon-wrap { margin-top: 4px; }
.day-ribbon { height: 4px; border-radius: 2px; margin: 2px 0; transition: transform 0.15s; }
.day-ribbon:hover { transform: scaleY(2.5); }
.day-ribbon-label { font-size: 0.58rem; cursor: pointer; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid-full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label { font-size: 0.74rem; color: var(--mu); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input { padding: 8px 10px; background: var(--ibg); border: 1px solid var(--bd); color: var(--hd); border-radius: 6px; font-size: 0.88rem; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--am); box-shadow: 0 0 0 2px var(--amd); }
textarea.form-input { resize: vertical; min-height: 60px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 12px; border-bottom: 1px solid var(--bd); }
.settings-row:last-child { border-bottom: none; }
.settings-row > span:first-child { color: var(--hd); font-size: 0.88rem; flex: 1; }
.settings-row select, .settings-row input[type="text"], .settings-row input[type="password"] { padding: 6px 10px; border: 1px solid var(--bd); border-radius: 8px; background: var(--ibg); color: var(--hd); font-size: 0.85rem; }
.settings-section-title { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--am); text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 8px; }
.hidden { display: none !important; }
.sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background: var(--sf); border-right: 1px solid var(--bd); z-index: 101; transform: translateX(-100%); transition: 0.3s; padding: 20px; overflow-y: auto; }
.sidebar.open { transform: translateX(0); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100; display: none; backdrop-filter: blur(2px); }
.sidebar-overlay.show { display: block; }
.sidebar h3 { font-family: 'Syne', sans-serif; color: var(--am); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--bd); }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; cursor: pointer; transition: var(--tr); color: var(--tx); font-weight: 600; margin-bottom: 4px; list-style: none; border: none; background: transparent; width: 100%; text-align: left; }
.sidebar-item:hover { background: var(--card); color: var(--am); }
.sidebar-item.active { background: var(--amd); color: var(--am); }
.sidebar-item .icon { font-size: 1.1rem; width: 24px; text-align: center; }
.hamburger { display: none; font-size: 1.6rem; background: none; border: none; color: var(--am); cursor: pointer; padding: 4px 8px; }
.mobile-tabbar { display: none; position: fixed; bottom: 36px; left: 0; right: 0; background: var(--sf); border-top: 1px solid var(--bd); z-index: 55; padding: 4px 0; }
.mobile-tabbar-inner { display: flex; justify-content: space-around; }
.mtab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; cursor: pointer; color: var(--mu); transition: var(--tr); background: none; border: none; }
.mtab:active { transform: scale(0.94); }
.mtab.active { color: var(--am); }
.mtab .mt-icon { font-size: 1.1rem; }
.mtab .mt-label { font-size: 0.62rem; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.5px; }
.card-action-btn { width: 26px; height: 26px; border: none; background: var(--card); color: var(--mu); border-radius: 5px; cursor: pointer; transition: var(--tr); font-size: 0.85rem; }
.card-action-btn:hover { background: var(--am); color: #000; }
@media (max-width:768px) { .hamburger { display: block; } .desktop-tabs { display: none; } .kanban-board { flex-direction: column; } .kanban-col { max-width: none; } .mobile-tabbar { display: block; } .console-bar { bottom: calc(36px + 56px); } .main-area { padding-bottom: calc(36px + 56px + 60px); } .modal-content { padding: 16px; } .form-grid { grid-template-columns: 1fr; } .topbar { padding: 0 10px; gap: 6px; } .logo { font-size: 1.15rem; } .user-badge { padding: 3px 8px; font-size: 0.78rem; } }