.ag {
  contain: layout paint;
  --acc: #f4f8fa;
  --panel: #0a0b0e;
  --text: #f4f7f9;
  --muted: #8f959b;
  --on-acc: #0a0b0d;
  --r: 16px;
  --glass: .74;
  --row: 64px;
  --edge: .05;
  position: relative;
  width: 100%;
  height: var(--ag-h, 760px);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
  background: #05080d;
  touch-action: pan-y;
}
.ag *, .ag *::before, .ag *::after { box-sizing: border-box; }
:where(.ag) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.ag) input { font: inherit; color: inherit; }
.ag [hidden] { display: none !important; }
.ag svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ag-world { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ag-world .sky { position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 0%, #1a3350 0%, #0b1625 45%, #060a11 100%); }
.ag-world .hills { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; image-rendering: pixelated; opacity: .9; }
.ag-world .dim { position: absolute; inset: 0; background: rgba(2, 3, 4, .3); }
.ag-fx { contain: strict; position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* HUD behind the menu */
.ag-hud-wm { position: absolute; left: 14px; top: 12px; display: flex; align-items: center; gap: 6px; font-family: "Outfit", "Inter", sans-serif; font-weight: 700; letter-spacing: .28em; font-size: 15px; color: var(--acc); text-shadow: 0 0 14px color-mix(in srgb, var(--acc) 60%, transparent); z-index: 0; pointer-events: none; }
.ag-hud-wm img { height: 22px; width: auto; }
.ag-hud-list { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-end; z-index: 0; pointer-events: none; font-size: 13px; font-weight: 700; }
.ag-hud-list span { padding: 2px 8px 2px 7px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.55)); border-right: 2px solid var(--acc); color: var(--acc); white-space: nowrap; animation: ag-slide .35s cubic-bezier(.2,.9,.3,1.2); }
.ag-hud-list span i { font-style: normal; font-weight: 500; color: #9aa3ad; margin-left: 5px; }
@keyframes ag-slide { from { transform: translateX(30px); opacity: 0; } }

/* Modern window */
.ag-win {
  position: absolute; inset: 26px 26px 54px;
  display: grid; grid-template-columns: 256px minmax(0, 1fr);
  border-radius: calc(var(--r) * 1.4);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 97%, #fff) 0%, var(--panel) 100%);
  background: linear-gradient(180deg, color-mix(in srgb, color-mix(in srgb, var(--panel) 97%, #fff) calc(var(--glass) * 100%), transparent), color-mix(in srgb, var(--panel) calc(var(--glass) * 100% + 6%), transparent));
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,var(--edge)) inset, 0 0 60px color-mix(in srgb, var(--acc) 10%, transparent);
  overflow: hidden;
  animation: ag-open .5s cubic-bezier(.16,1,.3,1);
}
.ag[data-open="1"] .ag-win { animation-name: ag-zoom; }
.ag[data-open="2"] .ag-win { animation-name: ag-fade; }
@keyframes ag-open { from { opacity: 0; transform: translateY(26px) scale(.985); } }
@keyframes ag-zoom { from { opacity: 0; transform: scale(.92); } }
@keyframes ag-fade { from { opacity: 0; } }
.ag-win::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 460px at -40px -60px, color-mix(in srgb, #fff 70%, var(--acc)) 0%, transparent 70%); opacity: .05; }

.ag-side { position: relative; display: flex; flex-direction: column; padding: 22px 16px 16px; background: rgba(0,0,0,.16); min-height: 0; }
.ag-brand { display: flex; align-items: center; gap: 8px; height: 40px; padding-left: 6px; margin-bottom: 18px; font-family: "Outfit", "Inter", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .26em; }
.ag-brand img { height: 28px; width: auto; }
.ag-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; min-height: 0; scrollbar-width: none; }
.ag-nav::-webkit-scrollbar { display: none; }
.ag-cap { font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--muted) 85%, var(--panel)); padding: 12px 12px 5px; letter-spacing: .04em; }
.ag-item { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px 0 12px; border-radius: 12px; font-size: 15px; color: color-mix(in srgb, var(--muted) 65%, var(--text)); transition: background .2s, color .2s; text-align: left; }
.ag-item:hover { background: rgba(255,255,255,.045); color: var(--text); }
.ag-item.on { color: var(--text); font-weight: 600; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 16%, transparent), color-mix(in srgb, var(--acc) 6%, transparent)); box-shadow: 0 0 22px color-mix(in srgb, var(--acc) 9%, transparent); }
.ag-item.on svg { color: var(--acc); }
.ag-item .n { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--muted); }
.ag-item.on .ag-count { background: rgba(255,255,255,.12); color: var(--text); }
.ag-count.hot { background: var(--acc); color: var(--on-acc); }
.ag-me { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 12px; border-radius: 16px; background: rgba(255,255,255,.05); text-align: left; transition: background .2s; }
.ag-me:hover { background: rgba(255,255,255,.085); }
.ag-me b { display: block; font-size: 15px; }
.ag-me small { display: block; font-size: 12.5px; color: var(--muted); }
.ag-me > span:not(.ag-av) { flex: 1; min-width: 0; }
.ag-av { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--on-acc); background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 50%, #6f7bff)); flex: none; }
.ag-av i { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--panel); }

.ag-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 28px 22px; }
.ag-head { display: flex; align-items: center; gap: 10px; height: 64px; margin-bottom: 10px; }
.ag-title { flex: 1; min-width: 0; }
.ag-title h4 { margin: 0; font-family: "Outfit", "Inter", sans-serif; font-size: 28px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.ag-title p { margin: 4px 0 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-search { position: relative; min-width: 0; display: flex; align-items: center; width: 290px; height: 42px; border-radius: 21px; background: rgba(255,255,255,.05); padding: 0 10px 0 16px; gap: 8px; transition: box-shadow .25s, background .2s; color: var(--muted); }
.ag-search:focus-within { box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent), 0 0 18px color-mix(in srgb, var(--acc) 18%, transparent); background: rgba(255,255,255,.08); }
.ag-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14.5px; color: var(--text); }
.ag-search input::placeholder { color: var(--muted); }
.ag-kbd { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 11px; background: rgba(255,255,255,.07); white-space: nowrap; }
.ag-pillbtn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 21px; background: rgba(255,255,255,.05); font-size: 14px; color: var(--text); transition: background .2s; white-space: nowrap; }
.ag-pillbtn:hover { background: rgba(255,255,255,.1); }
.ag-pillbtn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.ag-round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); transition: background .2s, color .2s; flex: none; }
.ag-round:hover { background: rgba(255,255,255,.12); color: var(--text); }

.ag-body { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) 410px; gap: 20px; position: relative; }
.ag-body.single { grid-template-columns: minmax(0, 1fr); }
.ag-scroll { overflow-y: auto; min-height: 0; padding-right: 8px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--acc) 35%, transparent) transparent; overscroll-behavior: contain; }
.ag-scroll::-webkit-scrollbar { width: 5px; }
.ag-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--acc) 35%, transparent); border-radius: 4px; }

/* Module rows */
.ag-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: var(--row); padding: 0 18px 0 12px; margin-bottom: 6px; border-radius: var(--r); background: rgba(255,255,255,.035); transition: background .25s, box-shadow .3s, transform .2s; cursor: pointer; animation: ag-rowin .45s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes ag-rowin { from { opacity: 0; transform: translateX(-12px); } }
.ag-row:hover { background: rgba(255,255,255,.06); }
.ag-row.on[data-es="0"] { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 8%, rgba(255,255,255,.035)), color-mix(in srgb, var(--acc) 1.5%, rgba(255,255,255,.035))); }
.ag-row.on[data-es="3"] { background: color-mix(in srgb, var(--acc) 85%, transparent); color: var(--on-acc); }
.ag-row.sel { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 16%, transparent), color-mix(in srgb, var(--acc) 5%, transparent)); box-shadow: 0 0 26px color-mix(in srgb, var(--acc) 10%, transparent); }
.ag-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--muted); transition: all .3s; flex: none; }
.ag-row.on .ag-badge { background: color-mix(in srgb, var(--acc) 19%, transparent); color: var(--acc); box-shadow: 0 0 16px color-mix(in srgb, var(--acc) 16%, transparent); }
.ag-row.on[data-es="3"] .ag-badge { color: var(--on-acc); background: rgba(0,0,0,.12); box-shadow: none; }
.ag-rt { flex: 1; min-width: 0; }
.ag-rt b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: color-mix(in srgb, var(--muted) 55%, var(--text)); transition: color .25s; white-space: nowrap; }
.ag-row.on .ag-rt b, .ag-row.sel .ag-rt b { color: var(--text); }
.ag-row.on[data-es="1"] .ag-rt b { color: var(--acc); }
.ag-row.on[data-es="3"] .ag-rt b { color: var(--on-acc); }
.ag-rt b .dotp { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); opacity: .2; transition: opacity .25s; }
.ag-row.on .ag-rt b .dotp { opacity: 1; box-shadow: 0 0 8px var(--acc); }
.ag-rt b .star { color: var(--acc); width: 13px; height: 13px; fill: var(--acc); stroke: none; }
.ag-rt b em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }
.ag-rt small { display: block; margin-top: 3px; font-size: 13px; color: color-mix(in srgb, var(--muted) 95%, var(--panel)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-row.on[data-es="3"] .ag-rt small { color: color-mix(in srgb, var(--on-acc) 70%, transparent); }
.ag-gear { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; flex: none; }
.ag-gear:hover, .ag-row.sel .ag-gear { background: rgba(255,255,255,.08); color: var(--text); }
.ag-chip { height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.07); color: var(--muted); white-space: nowrap; transition: opacity .2s, background .2s; flex: none; }
.ag-chip:hover { background: rgba(255,255,255,.13); color: var(--text); }
.ag-chip.empty { opacity: 0; }
.ag-row:hover .ag-chip.empty, .ag-crow:hover .ag-chip.empty, .ag-chip.wait { opacity: 1; }
.ag-chip.wait { background: var(--acc); color: var(--on-acc); animation: ag-pulse 1s infinite; }
@keyframes ag-pulse { 50% { opacity: .55; } }
.ag[data-kb="0"] .ag-row .ag-chip:not(.wait) { opacity: 0; }
.ag[data-kb="0"] .ag-row:hover .ag-chip { opacity: 1; }

.ag-sw { position: relative; width: 46px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.16); transition: background .3s, box-shadow .3s; flex: none; }
.ag-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #e9edf1; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .38s cubic-bezier(.3,1.6,.5,1), background .3s; }
.ag-sw.on { background: var(--acc); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 45%, transparent); }
.ag-sw.on::after { transform: translateX(20px); background: var(--on-acc); }
.ag-row.on[data-es="3"] .ag-sw.on { background: rgba(0,0,0,.25); }
.ag-row.on[data-es="3"] .ag-sw.on::after { background: #fff; }
.ag-sw.lock { opacity: .5; }
.ag-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); pointer-events: none; box-shadow: 0 0 8px var(--acc); z-index: 5; }

/* Settings panel */
.ag-panel { display: flex; flex-direction: column; min-height: 0; border-radius: calc(var(--r) * 1.2); background: rgba(255,255,255,.035); padding: 20px 18px 16px 22px; animation: ag-panelin .4s cubic-bezier(.16,1,.3,1); }
@keyframes ag-panelin { from { opacity: 0; transform: translateX(14px); } }
.ag-ph { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ag-ph > div { flex: 1; min-width: 0; }
.ag-ph h5 { margin: 0; font-family: "Outfit", "Inter", sans-serif; font-size: 22px; font-weight: 700; }
.ag-ph p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.ag-ph .ag-round { width: 36px; height: 36px; }
.ag-ph .ag-round.fav { color: var(--acc); }
.ag-ph .ag-round.fav svg { fill: var(--acc); }
.ag-empty { display: grid; place-items: center; align-content: center; text-align: center; gap: 10px; color: var(--muted); font-size: 13.5px; height: 100%; padding: 20px; }
.ag-empty b { color: var(--text); font-size: 16px; }
.ag-empty svg { width: 30px; height: 30px; opacity: .8; }

.ag-set { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); animation: ag-rowin .4s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--i, 0) * 22ms); }
.ag-set[hidden] { display: none; }
.ag-set .l { display: flex; align-items: center; gap: 12px; min-height: 26px; }
.ag-set .l > span:first-child { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: color-mix(in srgb, var(--muted) 18%, var(--text)); }
.ag-set .l > span:first-child small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.ag[data-desc="0"] .ag-set small, .ag[data-desc="0"] .ag-rt small { display: none; }
.ag-val { font-size: 13px; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, var(--acc) 12%, transparent); }
.ag-range { position: relative; height: 22px; margin-top: 8px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.ag-range .t { position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.ag-range .f { height: 100%; width: var(--p); background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, transparent), var(--acc)); border-radius: 3px; }
.ag-range .k { position: absolute; left: var(--p); width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 50%, transparent), 0 2px 8px rgba(0,0,0,.4); transition: transform .15s; }
.ag-range:active .k, .ag-range:hover .k { transform: scale(1.15); }
.ag-sel { position: relative; }
.ag-sel > button { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 13px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .2s; max-width: 190px; }
.ag-sel > button span { overflow: hidden; text-overflow: ellipsis; }
.ag-sel > button:hover { background: rgba(255,255,255,.12); }
.ag-sel > button svg { width: 14px; height: 14px; color: var(--muted); transition: transform .3s; }
.ag-sel.open > button svg { transform: rotate(180deg); }
.ag-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 100%; z-index: 30; padding: 5px; border-radius: 12px; background: color-mix(in srgb, var(--panel) 92%, #fff); box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset; animation: ag-menuin .22s cubic-bezier(.16,1,.3,1); max-height: 230px; overflow-y: auto; }
@keyframes ag-menuin { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.ag-menu button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; text-align: left; white-space: nowrap; color: color-mix(in srgb, var(--muted) 40%, var(--text)); }
.ag-menu button:hover { background: rgba(255,255,255,.07); color: var(--text); }
.ag-menu button.on { color: var(--acc); font-weight: 700; }
.ag-menu button.on::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.ag-color { position: relative; width: 44px; height: 26px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; flex: none; }
.ag-color input { position: absolute; inset: -8px; width: 60px; height: 42px; border: 0; padding: 0; cursor: pointer; background: none; }
.ag-bindrow { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; font-size: 14.5px; font-weight: 600; }
.ag-bindrow .ag-chip { height: 30px; padding: 0 14px; font-size: 13px; opacity: 1; }

/* Pages */
.ag-page { overflow-y: auto; min-height: 0; padding-right: 8px; }
.ag-hello { position: relative; overflow: hidden; display: flex; align-items: center; gap: 30px; padding: 36px; min-height: 200px; border-radius: calc(var(--r) * 1.2); background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 13%, transparent), rgba(255,255,255,.03)); margin-bottom: 16px; animation: ag-rowin .5s cubic-bezier(.16,1,.3,1) backwards; }
.ag-hello::before { content: ""; position: absolute; right: -60px; top: -80px; width: 520px; height: 320px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 14%, transparent), transparent); }
.ag-hello .ag-av { width: 104px; height: 104px; font-size: 38px; box-shadow: 0 0 40px color-mix(in srgb, var(--acc) 25%, transparent); }
.ag-hello h5 { margin: 0; font-family: "Outfit", "Inter", sans-serif; font-size: 30px; font-weight: 700; position: relative; }
.ag-hello p { margin: 8px 0 16px; color: var(--muted); font-size: 15px; position: relative; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.ag-chips span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; background: rgba(255,255,255,.07); font-size: 13.5px; }
.ag-chips span.lit { background: color-mix(in srgb, var(--acc) 16%, transparent); }
.ag-chips svg { width: 15px; height: 15px; color: var(--muted); }
.ag-chips span.lit svg { color: var(--acc); }
.ag-tip { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--r); background: linear-gradient(90deg, color-mix(in srgb, color-mix(in srgb, var(--acc) 65%, #6f7bff) 20%, transparent), color-mix(in srgb, var(--acc) 6%, transparent)); margin-bottom: 16px; font-size: 14px; color: color-mix(in srgb, var(--muted) 30%, var(--text)); animation: ag-rowin .5s .05s cubic-bezier(.16,1,.3,1) backwards; }
.ag-tip svg { color: var(--acc); }
.ag-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ag-tile { padding: 20px; border-radius: var(--r); background: rgba(255,255,255,.035); animation: ag-rowin .5s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(.1s + var(--i, 0) * 50ms); }
.ag-tile b { display: block; font-family: "Outfit", "Inter", sans-serif; font-size: 30px; font-weight: 700; color: var(--acc); }
.ag-tile span { font-size: 13.5px; color: var(--muted); }
.ag-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ag-quick button { height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(255,255,255,.06); font-size: 13.5px; font-weight: 600; transition: all .2s; }
.ag-quick button.on { background: var(--acc); color: var(--on-acc); box-shadow: 0 0 16px color-mix(in srgb, var(--acc) 35%, transparent); }

.ag-tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 22px; background: rgba(255,255,255,.05); margin-bottom: 18px; flex-wrap: wrap; }
.ag-tabs button { position: relative; z-index: 1; height: 34px; padding: 0 18px; border-radius: 17px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .25s; }
.ag-tabs button.on { color: var(--on-acc); }
.ag-tabs i { position: absolute; top: 4px; height: 34px; border-radius: 17px; background: var(--acc); box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 35%, transparent); transition: left .4s cubic-bezier(.3,1.3,.5,1), width .4s cubic-bezier(.3,1.3,.5,1); }
.ag-sec { margin: 22px 0 8px; font-size: 15px; font-weight: 700; }
.ag-sec:first-child { margin-top: 0; }
.ag-sec small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ag-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ag-theme { position: relative; height: 104px; border-radius: 16px; padding: 12px; text-align: left; background: color-mix(in srgb, var(--tp) 94%, #fff); transition: transform .25s, box-shadow .3s; overflow: hidden; }
.ag-theme:hover { transform: translateY(-3px); }
.ag-theme.on { box-shadow: 0 0 0 1.5px var(--ta), 0 0 24px color-mix(in srgb, var(--ta) 30%, transparent); }
.ag-theme .mini { position: relative; height: 50px; border-radius: 10px; background: var(--tp); }
.ag-theme .mini i { position: absolute; border-radius: 4px; }
.ag-theme b { display: block; margin-top: 10px; font-size: 14px; color: var(--tt); }
.ag-theme svg { position: absolute; right: 12px; bottom: 12px; color: var(--ta); width: 16px; height: 16px; }
.ag-ambs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ag-amb { height: 122px; border-radius: 16px; padding: 10px; background: rgba(255,255,255,.045); text-align: left; transition: box-shadow .3s, transform .25s; }
.ag-amb:hover { transform: translateY(-3px); }
.ag-amb.on { box-shadow: 0 0 0 1.5px var(--acc), 0 0 24px color-mix(in srgb, var(--acc) 25%, transparent); }
.ag-amb .pv { height: 64px; border-radius: 11px; position: relative; overflow: hidden; }
.ag-amb b { display: block; margin-top: 12px; font-size: 14px; padding-left: 4px; }
.ag-opt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.ag-opt > span { flex: 1; font-size: 14.5px; font-weight: 600; }
.ag-opt > span small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ag-opt .ag-range { width: 46%; margin: 0; }
.ag-btnrow { margin-top: 16px; height: 40px; padding: 0 18px; border-radius: 20px; background: rgba(255,255,255,.06); font-size: 14px; font-weight: 600; }
.ag-btnrow:hover { background: rgba(255,255,255,.11); }

.ag-social { display: grid; grid-template-columns: 280px 1fr; gap: 16px; height: 100%; min-height: 0; }
.ag-flist { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; padding: 12px; border-radius: var(--r); background: rgba(255,255,255,.035); }
.ag-friend { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-align: left; transition: background .2s; }
.ag-friend:hover { background: rgba(255,255,255,.05); }
.ag-friend.on { background: color-mix(in srgb, var(--acc) 14%, transparent); }
.ag-friend .ag-av { width: 36px; height: 36px; font-size: 14px; }
.ag-friend .ag-av.off i { background: #6b7280; }
.ag-friend b { display: block; font-size: 14px; }
.ag-friend small { display: block; font-size: 12px; color: var(--muted); }
.ag-friend > span:not(.ag-av):not(.ag-unread) { flex: 1; min-width: 0; }
.ag-unread { flex: none; min-width: 20px; height: 20px; border-radius: 10px; background: var(--acc); color: var(--on-acc); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.ag-chat { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r); background: rgba(255,255,255,.035); overflow: hidden; }
.ag-chat .top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ag-chat .top .ag-av { width: 36px; height: 36px; font-size: 14px; }
.ag-chat .top b { display: block; font-size: 15px; }
.ag-chat .top small { font-size: 12px; color: var(--muted); }
.ag-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ag-msg { align-self: flex-start; max-width: 72%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.07); font-size: 14px; line-height: 1.4; animation: ag-msg .35s cubic-bezier(.2,1.2,.4,1); user-select: text; }
.ag-msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--acc); color: var(--on-acc); }
@keyframes ag-msg { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.ag-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); }
.ag-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ag-bounce 1s infinite; }
.ag-typing i:nth-child(2) { animation-delay: .15s; }
.ag-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ag-bounce { 30% { transform: translateY(-4px); } }
.ag-send { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.ag-send input { flex: 1; min-width: 0; height: 40px; padding: 0 16px; border-radius: 20px; border: 0; outline: 0; background: rgba(255,255,255,.06); color: var(--text); font-size: 14px; }
.ag-send input:focus { box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent); }
.ag-send button, .ag-cfg button.go { height: 40px; padding: 0 18px; border-radius: 20px; background: var(--acc); color: var(--on-acc); font-weight: 700; font-size: 14px; }
.ag-cfgs { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.ag-cfg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.035); animation: ag-rowin .45s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.ag-cfg.on { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 14%, transparent), rgba(255,255,255,.03)); }
.ag-cfg > span { flex: 1; min-width: 0; }
.ag-cfg b { display: block; font-size: 15px; }
.ag-cfg small { font-size: 12.5px; color: var(--muted); }
.ag-cfg button.go { height: 34px; padding: 0 16px; font-size: 13px; }
.ag-cfg.on button.go { background: rgba(255,255,255,.08); color: var(--text); }

.ag-hints { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: color-mix(in srgb, var(--muted) 40%, var(--text)); pointer-events: none; z-index: 2; }
.ag-hints span { display: inline-flex; align-items: center; gap: 8px; }
.ag-hints kbd { font: inherit; font-size: 11px; font-weight: 700; height: 22px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 11px; background: rgba(0,0,0,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; color: var(--text); }
.ag[data-hints="0"] .ag-hints { display: none; }
.ag-toast { position: absolute; left: 50%; bottom: 60px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 20px; background: color-mix(in srgb, var(--panel) 85%, #fff); box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08) inset; font-size: 13.5px; transition: all .35s cubic-bezier(.16,1,.3,1); z-index: 40; pointer-events: none; white-space: nowrap; }
.ag-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ag-toast b { color: var(--acc); }

/* Columns */
.ag-cols { position: absolute; inset: 0; }
.ag-bar { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: min(660px, calc(100% - 32px)); height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, color-mix(in srgb, var(--panel) 95%, #fff) 88%, transparent), color-mix(in srgb, var(--panel) 92%, transparent)); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,var(--edge)) inset, 0 0 24px color-mix(in srgb, var(--acc) 8%, transparent); z-index: 20; animation: ag-bar .5s cubic-bezier(.16,1,.3,1); }
@keyframes ag-bar { from { opacity: 0; transform: translate(-50%, -14px); } }
.ag-bar .ag-brand { margin: 0; height: auto; padding: 0; font-size: 15px; letter-spacing: .22em; color: color-mix(in srgb, var(--text) 85%, var(--acc)); }
.ag-bar .ag-brand img { height: 22px; }
.ag-bar .ag-search { width: 250px; height: 32px; background: rgba(255,255,255,.07); margin-left: 8px; padding-left: 12px; }
.ag-tools { display: flex; gap: 4px; margin-left: auto; }
.ag-tool { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.ag-tool:hover { background: rgba(255,255,255,.09); color: var(--text); }
.ag-tool.on { background: color-mix(in srgb, var(--acc) 20%, transparent); color: color-mix(in srgb, var(--acc) 70%, #fff); box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 25%, transparent); }
.ag-tool.dot::after { content: ""; position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.ag-col { position: absolute; width: 236px; border-radius: 14px; display: flex; flex-direction: column; background: linear-gradient(180deg, color-mix(in srgb, color-mix(in srgb, var(--panel) 96.5%, #fff) max(82%, calc(var(--glass) * 100%)), transparent), color-mix(in srgb, var(--panel) max(88%, calc(var(--glass) * 100% + 6%)), transparent)); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,max(.05, var(--edge))) inset, 0 0 22px color-mix(in srgb, var(--acc) 6%, transparent); transition: box-shadow .3s; animation: ag-colin .55s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes ag-colin { from { opacity: 0; transform: translateY(22px); } }
.ag-col:hover { box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent) inset, 0 0 26px color-mix(in srgb, var(--acc) 16%, transparent); }
.ag-col::before { content: ""; position: absolute; left: 14px; right: 14px; top: 1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); }
.ag-colh { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 12px; cursor: grab; flex: none; touch-action: none; }
.ag-colh:active { cursor: grabbing; }
.ag-colh .ic { width: 22px; height: 22px; display: grid; place-items: center; color: color-mix(in srgb, var(--acc) 75%, #fff); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--acc) 60%, transparent)); }
.ag-colh b { flex: 1; font-size: 16px; font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
.ag-colh .ag-count { background: color-mix(in srgb, var(--acc) 16%, transparent); color: color-mix(in srgb, var(--acc) 60%, #fff); }
.ag-colh::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: rgba(255,255,255,.06); }
.ag-col.fold .ag-colh::after { display: none; }
.ag-colh .shine { position: absolute; left: 14px; right: 14px; bottom: 0; height: 1.5px; overflow: hidden; }
.ag-colh .shine::before { content: ""; position: absolute; top: 0; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, var(--acc), transparent); animation: ag-shine 4.5s linear infinite; animation-delay: calc(var(--i, 0) * -.77s); }
@keyframes ag-shine { from { left: -50%; } to { left: 100%; } }
.ag[data-anim="0"] .ag-colh .shine { display: none; }
.ag-colb { overflow-y: auto; padding: 2px 6px 8px; scrollbar-width: none; overscroll-behavior: contain; transition: max-height .35s cubic-bezier(.16,1,.3,1); }
.ag-colb::-webkit-scrollbar { display: none; }
.ag-col.fold .ag-colb { max-height: 0 !important; padding-bottom: 0; }
.ag-crow { position: relative; display: flex; align-items: center; gap: 6px; height: 32px; margin-top: 3px; padding: 0 10px 0 12px; border-radius: 9px; font-size: 15px; cursor: pointer; color: color-mix(in srgb, var(--muted) 28%, var(--text)); transition: background .2s, color .2s, padding .2s; animation: ag-crowin .45s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(.1s + var(--i, 0) * 25ms); }
@keyframes ag-crowin { from { opacity: 0; transform: translateX(10px); } }
.ag-crow:hover { background: rgba(255,255,255,.06); padding-left: 15px; color: var(--text); }
.ag-crow:hover::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px; border-radius: 2px; background: var(--acc); }
.ag-crow .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.ag-crow.on { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 92%, transparent), color-mix(in srgb, color-mix(in srgb, var(--acc) 70%, var(--panel)) 80%, transparent)); color: var(--on-acc); font-weight: 700; box-shadow: 0 0 16px color-mix(in srgb, var(--acc) 20%, transparent); animation: ag-flash .5s ease; }
.ag-crow.on::after { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 50%; border-radius: 9px 9px 0 0; background: rgba(255,255,255,.1); pointer-events: none; }
.ag-crow.on:hover::before { display: none; }
.ag-crow.on .n { text-shadow: none; }
@keyframes ag-flash { 0% { filter: brightness(1.6); } }
.ag-crow .fav { position: absolute; left: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--acc); }
.ag-crow .chev { width: 14px; height: 14px; opacity: .6; transition: transform .35s cubic-bezier(.3,1.4,.5,1); transform: rotate(-90deg); }
.ag-crow.open .chev { transform: rotate(0); }
.ag-crow .ag-chip { height: 20px; padding: 0 7px; font-size: 11px; }
.ag-crow.on .ag-chip { background: rgba(0,0,0,.15); color: var(--on-acc); }
.ag-exp { position: relative; margin: 3px 2px 0; padding: 6px 10px 8px 16px; border-radius: 9px; background: rgba(0,0,0,.22); animation: ag-exp .35s cubic-bezier(.16,1,.3,1); overflow: hidden; }
.ag-exp::before { content: ""; position: absolute; left: 2px; top: 6px; bottom: 8px; width: 2px; border-radius: 1px; background: color-mix(in srgb, var(--acc) 45%, transparent); }
@keyframes ag-exp { from { opacity: 0; max-height: 0; } to { max-height: 900px; } }
.ag-exp .ag-set { padding: 7px 0; border: 0; animation: none; }
.ag-exp .ag-set .l > span:first-child { font-size: 13.5px; font-weight: 500; }
.ag-exp .ag-set .l > span:first-child small { display: none; }
.ag-exp .ag-sw { width: 34px; height: 20px; }
.ag-exp .ag-sw::after { width: 14px; height: 14px; }
.ag-exp .ag-sw.on::after { transform: translateX(14px); }
.ag-exp .ag-range { height: 16px; margin-top: 4px; }
.ag-exp .ag-range .t { height: 4px; }
.ag-exp .ag-range .k { width: 12px; height: 12px; margin-left: -6px; }
.ag-exp .ag-val { font-size: 12px; padding: 1px 6px; }
.ag-exp .ag-sel > button { height: 26px; font-size: 12.5px; max-width: 120px; padding: 0 8px 0 10px; }
.ag-exp .ag-color { width: 34px; height: 20px; }
.ag-exp .ag-bindrow { font-size: 13.5px; font-weight: 500; padding: 8px 0 0; }
.ag-exp .ag-bindrow .ag-chip { height: 26px; }
.ag-dimmer { position: absolute; inset: 0; background: rgba(2,3,4,.5); z-index: 25; animation: ag-fade .3s; }
.ag-over { position: absolute; z-index: 26; left: 50%; top: 84px; transform: translateX(-50%); width: min(1000px, calc(100% - 40px)); bottom: 24px; display: flex; flex-direction: column; padding: 22px 28px 20px; border-radius: calc(var(--r) * 1.4); background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 96.5%, #fff), var(--panel)); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,max(.06, var(--edge))) inset, 0 0 50px color-mix(in srgb, var(--acc) 12%, transparent); animation: ag-overin .45s cubic-bezier(.16,1,.3,1); }
@keyframes ag-overin { from { opacity: 0; transform: translate(-50%, 24px); } }
.ag-over .ag-oh { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ag-over .ag-oh .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 14%, transparent); color: color-mix(in srgb, var(--acc) 70%, #fff); }
.ag-over .ag-oh div { flex: 1; }
.ag-over .ag-oh h5 { margin: 0; font-family: "Outfit", "Inter", sans-serif; font-size: 24px; }
.ag-over .ag-oh p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.ag-over .ag-body { flex: 1; }

.ag[data-anim="0"] *, .ag[data-anim="0"] *::before, .ag[data-anim="0"] *::after { animation: none !important; transition: none !important; }

@container (max-width: 1100px) {
  .ag-body { grid-template-columns: 1fr; }
  .ag-panel { position: absolute; inset: 0 0 0 auto; width: min(410px, 100%); z-index: 10; background: color-mix(in srgb, var(--panel) 94%, #fff); box-shadow: -20px 0 50px rgba(0,0,0,.5); }
  .ag-panel.idle { display: none; }
  .ag-search { width: 220px; }
}
@container (max-width: 860px) {
  .ag-win { grid-template-columns: 68px minmax(0, 1fr); inset: 12px 12px 48px; }
  .ag-side { padding: 18px 10px 12px; }
  .ag-brand span, .ag-item .n, .ag-cap, .ag-me > span:not(.ag-av), .ag-me > svg { display: none; }
  .ag-brand { justify-content: center; padding: 0; }
  .ag-item { justify-content: center; padding: 0; }
  .ag-item .ag-count { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .ag-item .ag-count:not(.hot) { display: none; }
  .ag-cap { display: block; height: 10px; padding: 0; font-size: 0; }
  .ag-me { justify-content: center; padding: 10px 0; }
  .ag-me .ag-av { width: 36px; height: 36px; }
  .ag-main { padding: 16px 16px; }
  .ag-pillbtn span { display: none; }
  .ag-pillbtn { padding: 0 14px; }
  .ag-search { width: auto; flex: 1; max-width: 220px; }
  .ag-kbd { display: none; }
  .ag-themes { grid-template-columns: repeat(3, 1fr); }
  .ag-ambs { grid-template-columns: repeat(3, 1fr); }
  .ag-tiles { grid-template-columns: 1fr 1fr; }
  .ag-social { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ag-flist { flex-direction: row; overflow-x: auto; max-height: none; }
  .ag-friend { flex: none; }
  .ag-friend > span small { display: none; }
  .ag-hello { padding: 24px; gap: 20px; }
  .ag-hello .ag-av { width: 72px; height: 72px; font-size: 28px; }
  .ag-hello h5 { font-size: 24px; }
}
@container (max-width: 560px) {
  .ag-head { flex-wrap: wrap; height: auto; gap: 8px; }
  .ag-title { flex-basis: 100%; }
  .ag-title h4 { font-size: 22px; }
  .ag-search { max-width: none; }
  .ag-pillbtn { display: none; }
  .ag-row { gap: 10px; padding: 0 12px 0 10px; }
  .ag-badge { width: 34px; height: 34px; }
  .ag-rt b { font-size: 15px; }
  .ag-chip { display: none; }
  .ag-themes, .ag-ambs { grid-template-columns: repeat(2, 1fr); }
  .ag-tiles { grid-template-columns: 1fr; }
  .ag-hello { flex-direction: column; align-items: flex-start; }
  .ag-opt .ag-range { width: 40%; }
  .ag-hints { display: none; }
  .ag-win { inset: 10px; }
  .ag-bar { padding-left: 12px; gap: 4px; }
  .ag-bar .ag-brand span { display: none; }
  .ag-bar .ag-search { width: auto; flex: 1; margin-left: 4px; }
  .ag-tool { width: 32px; height: 32px; }
}
.ag.narrow .ag-cols { overflow-y: auto; padding: 80px 12px 20px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.ag.narrow .ag-col { position: relative; left: auto !important; top: auto !important; width: 100%; flex: none; }
.ag.narrow .ag-colb { max-height: none !important; }
.ag.narrow .ag-colh { cursor: pointer; }
.ag.calm .ag-win, .ag.calm .ag-bar, .ag.calm .ag-row, .ag.calm .ag-set, .ag.calm .ag-panel, .ag.calm .ag-hello, .ag.calm .ag-tip, .ag.calm .ag-tile, .ag.calm .ag-cfg, .ag.calm .ag-col, .ag.calm .ag-crow, .ag.calm .ag-over, .ag.calm .ag-dimmer, .ag.calm .ag-msg, .ag.calm .ag-hud-list span { animation: none; }
.ag.modern .ag-hud-list, .ag.narrow .ag-hud-list, .ag.narrow .ag-hud-wm { display: none; }
.ag-ph .ag-round, .ag-head .ag-round { flex: none; }
.ag-more { margin: 12px 0 2px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); text-align: center; }
.ag-exp .ag-more { margin-top: 8px; font-size: 11.5px; padding: 6px 8px; }
