/* iONexus v2 — Main Stylesheet | iViRTH AI | DM Sans | B&W Dark/Light */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg:#ffffff;--fg:#000000;--surface:#f5f5f5;--surface2:#ebebeb;--surface3:#e0e0e0;
  --border:#e0e0e0;--border2:#d0d0d0;--muted:#6b6b6b;
  --radius:10px;--radius-lg:16px;--shadow:0 2px 20px rgba(0,0,0,.08);--shadow-lg:0 8px 40px rgba(0,0,0,.12);
  --font:'DM Sans',system-ui,sans-serif;--mono:'Courier New',monospace;
  --sidebar-w:248px;--topbar-h:56px;
  --trinetra:#b8960c;--netra:#00b4c8;--one:#c98a00;--ion360:#1a3aff;--ion360ne:#888;--trails:#00a040;--prana:#ff6b6b;--soma:#9b59b6;
}
[data-theme="dark"] {
  --bg:#080808;--fg:#f2f2f2;--surface:#111111;--surface2:#191919;--surface3:#222222;
  --border:#2a2a2a;--border2:#333333;--muted:#777777;--shadow:0 2px 24px rgba(0,0,0,.5);--shadow-lg:0 8px 48px rgba(0,0,0,.6);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;scroll-behavior:smooth;}
body{font-family:var(--font);background:var(--bg);color:var(--fg);line-height:1.6;-webkit-font-smoothing:antialiased;transition:background .25s,color .25s;}
a{color:inherit;text-decoration:none;}img{max-width:100%;display:block;}button,input,select,textarea{font-family:var(--font);}button{cursor:pointer;}

.page-wrap{display:flex;min-height:100vh;}

/* SIDEBAR */
.sidebar{width:var(--sidebar-w);min-height:100vh;border-right:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:100;transition:transform .3s cubic-bezier(.4,0,.2,1);overflow:hidden;}
.sidebar-logo{padding:1.125rem 1.25rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:.75rem;flex-shrink:0;}
.sidebar-logo-mark{width:34px;height:34px;border-radius:50%;border:2px solid var(--fg);display:flex;align-items:center;justify-content:center;font-size:.9rem;font-weight:700;flex-shrink:0;animation:logo-breathe 4s ease-in-out infinite;}
@keyframes logo-breathe{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.04);}50%{box-shadow:0 0 0 8px rgba(255,255,255,0);}}
.sidebar-logo-text{font-weight:700;font-size:1rem;letter-spacing:-.03em;line-height:1.2;}
.sidebar-logo-sub{font-size:.58rem;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;}
.sidebar-version{font-size:.55rem;color:var(--muted);margin-left:auto;padding:.12rem .35rem;border:1px solid var(--border);border-radius:4px;flex-shrink:0;}
.sidebar-nav{flex:1;padding:.625rem 0;overflow-y:auto;overflow-x:hidden;}
.sidebar-nav::-webkit-scrollbar{width:3px;}.sidebar-nav::-webkit-scrollbar-thumb{background:var(--border2);border-radius:2px;}
.nav-section-label{font-size:.58rem;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);padding:.75rem 1.25rem .25rem;font-weight:600;}
.nav-item{display:flex;align-items:center;gap:.65rem;padding:.55rem 1.25rem;font-size:.84rem;font-weight:500;color:var(--muted);transition:all .15s;border-left:2px solid transparent;white-space:nowrap;}
.nav-item:hover{color:var(--fg);background:var(--surface2);border-left-color:var(--border2);}
.nav-item.active{color:var(--fg);background:var(--surface2);border-left-color:var(--fg);font-weight:600;}
.nav-item svg{flex-shrink:0;opacity:.55;transition:opacity .15s;}
.nav-item:hover svg,.nav-item.active svg{opacity:1;}
.nav-badge{margin-left:auto;font-size:.58rem;font-weight:700;padding:.1rem .38rem;border-radius:999px;background:var(--fg);color:var(--bg);line-height:1.4;}
.sidebar-footer{padding:.75rem 1rem;border-top:1px solid var(--border);flex-shrink:0;}
.user-chip{display:flex;align-items:center;gap:.55rem;padding:.45rem .6rem;border-radius:8px;background:var(--surface2);cursor:pointer;transition:background .15s;}
.user-chip:hover{background:var(--surface3);}
.user-avatar{width:28px;height:28px;border-radius:50%;background:var(--fg);color:var(--bg);display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:700;flex-shrink:0;}
.user-name{font-weight:600;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:108px;}
.user-plan{font-size:.58rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;}
.logout-btn{margin-left:auto;opacity:.45;transition:opacity .15s;flex-shrink:0;}
.logout-btn:hover{opacity:1;}

/* MAIN */
.main-content{margin-left:var(--sidebar-w);flex:1;min-height:100vh;display:flex;flex-direction:column;}
.topbar{position:sticky;top:0;height:var(--topbar-h);border-bottom:1px solid var(--border);background:var(--bg);display:flex;align-items:center;padding:0 1.5rem;gap:.75rem;z-index:50;}
.topbar-title{font-weight:600;font-size:.875rem;flex:1;}
.topbar-actions{display:flex;align-items:center;gap:.375rem;}
.icon-btn{width:34px;height:34px;border-radius:7px;border:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--fg);transition:all .15s;position:relative;cursor:pointer;}
.icon-btn:hover{background:var(--surface2);border-color:var(--border2);}
.mobile-menu-btn{display:none;}
.notif-dot{position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:#ef4444;border:2px solid var(--bg);}
.page-body{flex:1;padding:1.75rem 1.5rem;}
.page-header{margin-bottom:1.5rem;}
.page-header h1{font-size:1.4rem;font-weight:700;letter-spacing:-.035em;}
.page-header p{font-size:.84rem;color:var(--muted);margin-top:.2rem;}

/* CARDS */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;transition:border-color .2s,box-shadow .2s;}
.card-hover:hover{border-color:var(--border2);box-shadow:var(--shadow);}
.card-active:hover{border-color:var(--fg);box-shadow:var(--shadow);transform:translateY(-1px);}
.card-dark{background:var(--fg);color:var(--bg);border-color:transparent;}
.card-dashed{border-style:dashed;}
.card-title{font-weight:700;font-size:.925rem;margin-bottom:.2rem;}
.card-sub{font-size:.79rem;color:var(--muted);}

/* STATS */
.stat-block{text-align:center;padding:1.1rem 1rem;}
.stat-num{font-size:2rem;font-weight:700;letter-spacing:-.05em;line-height:1;}
.stat-lbl{font-size:.65rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin-top:.3rem;}
.stat-delta{font-size:.7rem;margin-top:.2rem;}
.stat-up{color:#22c55e;}.stat-down{color:#ef4444;}

/* INDEX RINGS */
.index-ring{width:70px;height:70px;border-radius:50%;border:3px solid var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:border-color .3s;}
.index-ring-val{font-size:1.05rem;font-weight:700;line-height:1;}
.index-ring-lbl{font-size:.6rem;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);text-align:center;margin-top:.2rem;}

/* GRIDS */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;}
.grid-auto{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:1rem;}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:.45rem;padding:.575rem 1.125rem;border-radius:8px;font-family:var(--font);font-size:.845rem;font-weight:600;border:none;cursor:pointer;transition:all .15s;white-space:nowrap;}
.btn-primary{background:var(--fg);color:var(--bg);}.btn-primary:hover{opacity:.82;}
.btn-secondary{background:var(--surface2);color:var(--fg);border:1px solid var(--border);}.btn-secondary:hover{background:var(--surface3);}
.btn-ghost{background:transparent;color:var(--fg);border:1px solid var(--border);}.btn-ghost:hover{background:var(--surface);}
.btn-danger{background:#fef2f2;color:#dc2626;border:1px solid #fecaca;}.btn-danger:hover{background:#fee2e2;}
[data-theme="dark"] .btn-danger{background:#2e0d0d;color:#f87171;border-color:#7f1d1d;}
.btn-xs{padding:.25rem .6rem;font-size:.72rem;border-radius:6px;}
.btn-sm{padding:.38rem .825rem;font-size:.79rem;}
.btn-lg{padding:.8rem 1.5rem;font-size:.95rem;}
.btn-xl{padding:.975rem 2rem;font-size:1.05rem;}
.btn:disabled{opacity:.45;cursor:not-allowed;}
.btn-icon{width:34px;height:34px;padding:0;justify-content:center;}

/* FORMS */
.form-group{margin-bottom:1.1rem;}
.form-label{display:block;font-size:.73rem;font-weight:600;margin-bottom:.35rem;color:var(--muted);text-transform:uppercase;letter-spacing:.065em;}
.form-input,.form-select,.form-textarea{width:100%;padding:.65rem .875rem;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--fg);font-family:var(--font);font-size:.865rem;transition:border-color .2s,box-shadow .2s;}
.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:var(--fg);box-shadow:0 0 0 3px rgba(0,0,0,.05);}
[data-theme="dark"] .form-input:focus,[data-theme="dark"] .form-select:focus,[data-theme="dark"] .form-textarea:focus{box-shadow:0 0 0 3px rgba(255,255,255,.05);}
.form-textarea{resize:vertical;min-height:86px;}
.form-select{cursor:pointer;}
.form-hint{font-size:.72rem;color:var(--muted);margin-top:.28rem;}
.form-error{font-size:.72rem;color:#dc2626;margin-top:.28rem;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}

/* BADGES */
.badge{display:inline-flex;align-items:center;gap:.28rem;padding:.16rem .52rem;border-radius:999px;font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;flex-shrink:0;}
.badge-active{background:#dcfce7;color:#166534;}
.badge-draft{background:var(--surface2);color:var(--muted);}
.badge-inactive{background:#fee2e2;color:#7f1d1d;}
.badge-archived{background:var(--surface3);color:var(--muted);}
.badge-new{background:#dbeafe;color:#1e40af;}
.badge-featured{background:#fef9c3;color:#854d0e;}
[data-theme="dark"] .badge-active{background:#052e16;color:#4ade80;}
[data-theme="dark"] .badge-inactive{background:#2e0d0d;color:#f87171;}
[data-theme="dark"] .badge-new{background:#0f172a;color:#60a5fa;}
[data-theme="dark"] .badge-featured{background:#1c1507;color:#fbbf24;}

/* ION NODE */
.ion-node{width:50px;height:50px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:1.25rem;position:relative;flex-shrink:0;transition:all .2s;}
.ion-node.pulse{animation:ion-pulse 2.5s ease-in-out infinite;}
@keyframes ion-pulse{0%,100%{box-shadow:0 0 0 0 rgba(0,0,0,.08);}50%{box-shadow:0 0 0 10px rgba(0,0,0,0);}}
[data-theme="dark"] .ion-node.pulse{animation:ion-pulse-d 2.5s ease-in-out infinite;}
@keyframes ion-pulse-d{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.08);}50%{box-shadow:0 0 0 10px rgba(255,255,255,0);}}

/* ION CARD */
.ion-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem;display:flex;flex-direction:column;gap:.6rem;transition:all .2s;cursor:pointer;}
.ion-card:hover{border-color:var(--fg);box-shadow:var(--shadow);transform:translateY(-1px);}
.ion-card-header{display:flex;align-items:flex-start;gap:.7rem;}
.ion-card-name{font-weight:700;font-size:.88rem;line-height:1.3;}
.ion-card-license{font-size:.6rem;font-family:var(--mono);color:var(--muted);padding:.1rem .36rem;background:var(--surface2);border-radius:4px;word-break:break-all;line-height:1.5;}
.ion-card-fn{font-size:.79rem;color:var(--muted);line-height:1.55;}
.ion-card-footer{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-top:.2rem;}

/* FREQ */
.freq-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.freq-bar{height:3px;border-radius:2px;flex:1;background:var(--border);overflow:hidden;}
.freq-bar-fill{height:100%;border-radius:2px;background:var(--fg);transition:width .6s ease;}

/* CHAT */
.chat-wrap{display:flex;flex-direction:column;height:calc(100vh - var(--topbar-h));}
.chat-header{padding:.8rem 1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:1rem;background:var(--bg);flex-shrink:0;}
.chat-messages{flex:1;overflow-y:auto;padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:1rem;scroll-behavior:smooth;}
.chat-messages::-webkit-scrollbar{width:4px;}.chat-messages::-webkit-scrollbar-thumb{background:var(--border2);border-radius:2px;}
.chat-bubble{max-width:70%;padding:.75rem .975rem;border-radius:12px;font-size:.865rem;line-height:1.6;}
.chat-bubble.user{align-self:flex-end;background:var(--fg);color:var(--bg);border-bottom-right-radius:3px;}
.chat-bubble.ion{align-self:flex-start;background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:3px;}
.chat-bubble.system{align-self:center;background:var(--surface2);border-radius:8px;font-size:.75rem;color:var(--muted);max-width:88%;text-align:center;}
.chat-meta{font-size:.67rem;color:var(--muted);margin-bottom:.22rem;display:flex;align-items:center;gap:.38rem;}
.chat-input-bar{border-top:1px solid var(--border);padding:.875rem 1.5rem;display:flex;gap:.7rem;align-items:flex-end;background:var(--bg);flex-shrink:0;}
.chat-input{flex:1;padding:.65rem .925rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--fg);font-family:var(--font);font-size:.865rem;resize:none;max-height:120px;overflow-y:auto;line-height:1.5;}
.chat-input:focus{outline:none;border-color:var(--fg);}
.ion-chip{display:inline-flex;align-items:center;gap:.38rem;padding:.28rem .7rem;border-radius:999px;border:1px solid var(--border);font-size:.72rem;font-weight:600;cursor:pointer;transition:all .15s;white-space:nowrap;flex-shrink:0;}
.ion-chip:hover,.ion-chip.selected{border-color:var(--fg);background:var(--surface2);}
.ion-chip.selected{background:var(--fg);color:var(--bg);}

/* TABS */
.tabs{display:flex;border-bottom:1px solid var(--border);}
.tab-btn{padding:.65rem 1.1rem;font-size:.83rem;font-weight:500;color:var(--muted);background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .15s;cursor:pointer;}
.tab-btn.active,.tab-btn:hover{color:var(--fg);border-bottom-color:var(--fg);}

/* PIPELINE */
.pipeline{display:flex;flex-direction:column;}
.pipeline-step{display:flex;align-items:flex-start;gap:.875rem;padding:.8rem 0;position:relative;}
.pipeline-step:not(:last-child)::after{content:'';position:absolute;left:15px;top:46px;bottom:0;width:2px;background:var(--border);}
.step-icon{width:32px;height:32px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.78rem;flex-shrink:0;background:var(--surface);position:relative;z-index:1;transition:all .3s;}
.step-icon.done{border-color:#22c55e;color:#22c55e;}
.step-icon.running{border-color:var(--fg);animation:step-pulse 1.5s ease-in-out infinite;}
.step-icon.error{border-color:#ef4444;color:#ef4444;}
@keyframes step-pulse{0%,100%{box-shadow:0 0 0 0 rgba(0,0,0,.1);}50%{box-shadow:0 0 0 6px rgba(0,0,0,0);}}
.step-name{font-weight:600;font-size:.855rem;}.step-agent{font-size:.72rem;color:var(--muted);}
.step-output{font-size:.76rem;color:var(--muted);margin-top:.18rem;font-style:italic;word-break:break-word;}

/* MODAL */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:200;display:none;align-items:center;justify-content:center;padding:1.5rem;backdrop-filter:blur(2px);}
.modal-overlay.open{display:flex;animation:fade-in .18s ease;}
@keyframes fade-in{from{opacity:0;}to{opacity:1;}}
.modal{width:100%;max-width:600px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;max-height:90vh;display:flex;flex-direction:column;animation:slide-up .22s cubic-bezier(.34,1.56,.64,1);}
@keyframes slide-up{from{transform:translateY(16px);opacity:0;}to{transform:translateY(0);opacity:1;}}
.modal-header{padding:1.05rem 1.375rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:.925rem;}
.modal-body{padding:1.375rem;overflow-y:auto;flex:1;}
.modal-footer{padding:.8rem 1.375rem;border-top:1px solid var(--border);display:flex;gap:.7rem;justify-content:flex-end;}

/* RITUAL */
.ritual-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1rem;display:flex;align-items:center;gap:.8rem;transition:all .2s;}
.ritual-card:hover{border-color:var(--border2);}
.ritual-glyph{width:40px;height:40px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0;}
.ritual-streak{font-size:1.1rem;font-weight:700;}
.ritual-streak-label{font-size:.62rem;color:var(--muted);}

/* TEMPLATE */
.template-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.125rem;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;gap:.7rem;}
.template-card:hover{border-color:var(--fg);transform:translateY(-2px);box-shadow:var(--shadow);}
.template-card.selected{border-color:var(--fg);background:var(--surface2);}

/* SKILL CHIP */
.skill-chip{display:inline-flex;align-items:center;gap:.28rem;padding:.22rem .55rem;border-radius:6px;font-size:.7rem;font-weight:600;background:var(--surface2);border:1px solid var(--border);}

/* API KEY */
.api-key-row{display:flex;align-items:center;gap:.7rem;padding:.8rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;font-family:var(--mono);font-size:.78rem;}

/* NOTIFICATIONS */
.notif-item{display:flex;align-items:flex-start;gap:.7rem;padding:.8rem 1rem;border-bottom:1px solid var(--border);transition:background .15s;cursor:pointer;}
.notif-item:hover{background:var(--surface2);}
.notif-item.unread{background:var(--surface);}
.notif-icon-wrap{width:34px;height:34px;border-radius:50%;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:.95rem;flex-shrink:0;}

/* PROGRESS */
.spinner{width:18px;height:18px;border:2px solid var(--border);border-top-color:var(--fg);border-radius:50%;animation:spin .6s linear infinite;}
.spinner-lg{width:30px;height:30px;border-width:3px;}
@keyframes spin{to{transform:rotate(360deg);}}
.skeleton{background:var(--surface2);border-radius:4px;animation:skel-pulse 1.5s ease-in-out infinite;}
@keyframes skel-pulse{0%,100%{opacity:1;}50%{opacity:.5;}}
.energy-bar-wrap{background:var(--surface2);border-radius:999px;height:5px;overflow:hidden;}
.energy-bar-fill{height:100%;border-radius:999px;background:var(--fg);transition:width .8s ease;}

/* TOAST */
#toast-container{position:fixed;bottom:1.5rem;right:1.5rem;display:flex;flex-direction:column;gap:.45rem;z-index:500;pointer-events:none;}
.toast{display:flex;align-items:center;gap:.7rem;padding:.7rem .975rem;background:var(--fg);color:var(--bg);border-radius:10px;font-size:.835rem;font-weight:500;box-shadow:var(--shadow-lg);pointer-events:all;animation:toast-in .28s cubic-bezier(.34,1.56,.64,1);max-width:320px;}
@keyframes toast-in{from{transform:translateY(16px);opacity:0;}to{transform:translateY(0);opacity:1;}}
.toast-success{background:#15803d;}.toast-error{background:#b91c1c;}

/* PWA */
#pwa-install{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:.7rem 1.125rem;border-radius:12px;display:none;align-items:center;gap:.7rem;font-size:.835rem;font-weight:500;box-shadow:var(--shadow-lg);z-index:300;white-space:nowrap;}
#pwa-install.show{display:flex;}

/* EMPTY STATE */
.empty-state{text-align:center;padding:3rem 2rem;color:var(--muted);}
.empty-state-icon{font-size:2.5rem;margin-bottom:.75rem;opacity:.22;}
.empty-state h3{font-size:.95rem;font-weight:600;color:var(--fg);margin-bottom:.38rem;}
.empty-state p{font-size:.835rem;line-height:1.6;}

/* ALERT */
.alert{padding:.75rem .975rem;border-radius:8px;font-size:.835rem;border:1px solid;margin-bottom:.875rem;display:flex;align-items:flex-start;gap:.6rem;}
.alert-success{border-color:#22c55e;background:#f0fdf4;color:#166534;}
.alert-error{border-color:#ef4444;background:#fef2f2;color:#7f1d1d;}
.alert-info{border-color:var(--border);background:var(--surface);color:var(--muted);}
[data-theme="dark"] .alert-success{background:#052e16;color:#4ade80;}
[data-theme="dark"] .alert-error{background:#2e0d0d;color:#f87171;}

/* UTILS */
.flex{display:flex;}.flex-col{flex-direction:column;}.flex-wrap{flex-wrap:wrap;}
.items-center{align-items:center;}.items-start{align-items:flex-start;}.justify-between{justify-content:space-between;}.justify-center{justify-content:center;}
.gap-05{gap:.375rem;}.gap-1{gap:.5rem;}.gap-2{gap:1rem;}.gap-3{gap:1.5rem;}
.mb-1{margin-bottom:.5rem;}.mb-2{margin-bottom:1rem;}.mb-3{margin-bottom:1.5rem;}.mb-4{margin-bottom:2rem;}
.mt-1{margin-top:.5rem;}.mt-2{margin-top:1rem;}.mt-3{margin-top:1.5rem;}
.text-muted{color:var(--muted);}.text-sm{font-size:.81rem;}.text-xs{font-size:.71rem;}.font-mono{font-family:var(--mono);}.font-bold{font-weight:700;}
.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.w-full{width:100%;}.cursor-pointer{cursor:pointer;}
.divider{border:none;border-top:1px solid var(--border);margin:1.125rem 0;}

/* ORBIT ANIMATION */
.orbit-spin{animation:orbit-rotate 20s linear infinite;}
.orbit-spin-slow{animation:orbit-rotate 35s linear infinite;}
@keyframes orbit-rotate{to{transform:rotate(360deg);}}
.counter-spin{animation:counter-rotate 20s linear infinite;}
@keyframes counter-rotate{to{transform:rotate(-360deg);}}

/* RESPONSIVE */
@media(max-width:1024px){.grid-4{grid-template-columns:repeat(2,1fr);}}
@media(max-width:900px){
  .sidebar{transform:translateX(-100%);}.sidebar.open{transform:translateX(0);box-shadow:var(--shadow-lg);}
  .main-content{margin-left:0;}.grid-3{grid-template-columns:repeat(2,1fr);}
  .mobile-menu-btn{display:flex!important;}
}
@media(max-width:600px){
  .grid-2,.grid-3,.grid-4,.form-row{grid-template-columns:1fr;}
  .page-body{padding:1rem;}.chat-bubble{max-width:88%;}.topbar{padding:0 1rem;}
}
