/* ============================================================
   Sample command center — modern polish + motion
   ============================================================ */
body { background: radial-gradient(1200px 500px at 70% -10%, color-mix(in srgb, var(--honey) 9%, transparent), transparent 70%), #F5F3EE; background-attachment: fixed; }

/* Entrance */
.fx-up { animation: fxUp .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes fxUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-head { animation: fxUp .5s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .fx-up, .page-head { animation: none; } }

/* Sidebar */
.dm-side { background: linear-gradient(180deg, #15141A 0%, #0C0B0F 100%); }
.dm-side::after { content: ''; position: absolute; left: -40px; top: -60px; width: 260px; height: 220px; background: radial-gradient(closest-side, color-mix(in srgb, var(--honey) 22%, transparent), transparent); pointer-events: none; opacity: .7; }
.dm-brand, .dm-nav, .dm-powered { position: relative; z-index: 1; }
.dm-nav a { transition: background .2s, color .2s, transform .2s; }
.dm-nav a:hover { transform: translateX(2px); }
.dm-nav a.active { background: linear-gradient(90deg, color-mix(in srgb, var(--honey) 24%, transparent), rgba(255,255,255,.03)); box-shadow: inset 2px 0 0 var(--honey); }
.dm-nav a.active svg { stroke: var(--gold-light); opacity: 1; }
.dm-logo { box-shadow: 0 6px 16px -6px var(--honey); }

/* Top bar */
.dm-top { background: rgba(245,243,238,.72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.dm-search { cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.dm-search:hover { border-color: #d6cfbf; box-shadow: 0 4px 14px -8px rgba(0,0,0,.2); }
.dm-search input { cursor: pointer; }
.fx-kbd { font: 600 11px 'Outfit', sans-serif; color: #8a8578; background: #F3F0E8; border: 1px solid #E3DDCF; border-radius: 6px; padding: 2px 7px; }
.fx-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #13915F; background: #E3F6EE; padding: 5px 11px; border-radius: 999px; }
.fx-live i { width: 7px; height: 7px; border-radius: 50%; background: #2FBF8F; position: relative; }
.fx-live i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2FBF8F; animation: fxPing 1.8s ease-out infinite; }
@keyframes fxPing { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.fx-search-m { display: none; }
.dm-iconbtn .dot.n { width: auto; min-width: 17px; height: 17px; top: 3px; right: 2px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #fff; display: grid; place-items: center; padding: 0 4px; border-width: 2px; }
@media (max-width: 1020px) { .fx-search-m { display: grid; } .fx-live { display: none; } }

/* Cards + KPIs */
.card, .om-kpi, .dm-quick button, .om-card, .dm-flow { border-color: #ECE7DC !important; box-shadow: 0 1px 2px rgba(23,22,27,.03), 0 8px 24px -18px rgba(23,22,27,.12); transition: box-shadow .3s, transform .3s, border-color .3s; }
.card { border-radius: 18px !important; }
.card:hover, .om-card:hover, .dm-flow:hover { box-shadow: 0 1px 2px rgba(23,22,27,.03), 0 20px 40px -24px rgba(23,22,27,.25); }
.om-kpi { position: relative; overflow: hidden; border-radius: 18px !important; background: #fff; }
.om-kpi::before { content: ''; position: absolute; right: -50px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--honey) 14%, transparent), transparent); pointer-events: none; }
.om-kpi:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(23,22,27,.03), 0 22px 40px -26px rgba(23,22,27,.3); }
.om-kpi-val { font-variant-numeric: tabular-nums; }
.om-kpi.has-spark { padding-bottom: 54px !important; }
.om-kpi-spark { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; opacity: .95; }
.om-kpi-spark .dm-spark { height: 44px; }
.dm-quick button { border-radius: 16px; }
.dm-quick button:hover { transform: translateY(-2px); }
.om-table tbody tr { transition: background .15s; }
.om-table tbody tr:hover { background: #FBF9F4; }
.btn { transition: transform .12s, filter .2s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-gold { box-shadow: 0 10px 22px -14px var(--honey); }
.btn-done { background: #E3F6EE !important; color: #0E7A52 !important; border: 1px solid #BFE8D5 !important; cursor: default; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }

/* Daily brief */
.dm-ai { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 18px; border-radius: 20px; color: #EDE8DD;
  background: radial-gradient(500px 220px at 0% 0%, color-mix(in srgb, var(--honey) 28%, transparent), transparent 70%), linear-gradient(120deg, #17161B 0%, #221F27 100%); box-shadow: 0 24px 50px -30px rgba(23,22,27,.7); }
.dm-ai::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.06) 45%, transparent 60%); transform: translateX(-100%); animation: fxSheen 5s 1s ease-in-out infinite; pointer-events: none; }
@keyframes fxSheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.dm-ai-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: var(--gold-light); background: color-mix(in srgb, var(--honey) 20%, rgba(255,255,255,.04)); border: 1px solid color-mix(in srgb, var(--honey) 40%, transparent); }
.dm-ai-ic svg { width: 24px; height: 24px; }
.dm-ai-tx { flex: 1; min-width: 0; }
.dm-ai-tx b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.dm-ai-tx p { font-size: 15px; line-height: 1.55; color: #D9D3C7; }
.dm-ai-tx em { font-style: normal; color: #fff; font-weight: 600; }
.dm-ai-act { display: flex; gap: 10px; flex-shrink: 0; position: relative; z-index: 1; }
@media (max-width: 900px) { .dm-ai { flex-wrap: wrap; } .dm-ai-act { flex: 1 1 100%; } .dm-ai-act .btn { flex: 1; } }

/* Activity flash */
.dm-feed li.fx-flash { animation: fxFlash 2.4s ease; }
@keyframes fxFlash { 0% { background: color-mix(in srgb, var(--honey) 22%, #fff); } 100% { background: transparent; } }

/* Live notifications */
.fx-stack { position: fixed; top: calc(var(--top) + 12px); right: 18px; z-index: 300; display: grid; gap: 10px; width: 330px; max-width: calc(100vw - 28px); }
.fx-note { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid #ECE7DC; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 24px 50px -24px rgba(23,22,27,.45); cursor: pointer; transform: translateX(30px) scale(.98); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.fx-note.in { transform: none; opacity: 1; }
.fx-note-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, currentColor 13%, #fff); }
.fx-note-ic svg { width: 18px; height: 18px; }
.fx-note-tx b, .fx-pi b { display: block; font-size: 13.5px; color: #17161B; line-height: 1.35; }
.fx-note-tx small, .fx-pi small { font-size: 11.5px; color: #8a8578; }
.fx-panel { position: fixed; top: calc(var(--top) + 6px); right: 18px; z-index: 310; width: 340px; max-width: calc(100vw - 28px); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid #ECE7DC; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(23,22,27,.45); animation: fxUp .25s ease both; }
.fx-panel-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #F1EDE4; font-size: 14px; }
.fx-panel-hd button { border: 0; background: none; color: var(--honey-deep); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fx-pi { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid #F6F3EC; background: #fff; cursor: pointer; }
.fx-pi:hover { background: #FBF9F4; }

/* Command palette */
.fx-pal { position: fixed; inset: 0; z-index: 400; background: rgba(14,13,17,.38); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; opacity: 0; transition: opacity .15s; }
.fx-pal.in { opacity: 1; }
.fx-pal-card { width: 600px; max-width: 100%; background: #fff; border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); overflow: hidden; transform: translateY(-8px) scale(.98); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.fx-pal.in .fx-pal-card { transform: none; }
.fx-pal-in { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 58px; border-bottom: 1px solid #F1EDE4; color: #8a8578; }
.fx-pal-in input { flex: 1; border: 0 !important; outline: 0; font-size: 16px; height: 56px !important; min-height: 0 !important; padding: 0 !important; background: transparent; color: #17161B; box-shadow: none !important; }
.fx-pal-in kbd { font: 600 11px 'Outfit', sans-serif; color: #8a8578; background: #F3F0E8; border: 1px solid #E3DDCF; border-radius: 6px; padding: 2px 7px; }
.fx-pal-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.fx-pal-g { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #a39d90; font-weight: 600; padding: 10px 10px 6px; }
.fx-pal-it { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 11px; cursor: pointer; font-size: 14px; color: #17161B; }
.fx-pal-it small { color: #8a8578; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-pal-it.on, .fx-pal-it:hover { background: var(--honey-wash); }
.fx-pal-it.on b { color: var(--honey-deep); }
.fx-pal-empty { padding: 28px; text-align: center; color: #8a8578; font-size: 14px; }
@media (max-width: 600px) {
  .fx-stack { left: 12px; right: 12px; width: auto; max-width: none; }
  .fx-note { transform: translateY(-10px); }
  .fx-panel { left: 12px; right: 12px; width: auto; }
}
