.user {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 16px 0 6px; border-radius: 999px; line-height: 1;
  background: rgba(20, 21, 21, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-weight: 600; font-size: 14.5px; letter-spacing: -.02em;
  transition: background-color .15s linear;
}
.user:hover { background: var(--p900); }
.user .pfp { width: 36px; height: 36px; border-radius: 999px; background: radial-gradient(circle at 30% 25%, #fff6, transparent 55%), #92c8d2; }

.dash { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 40px; margin-top: 32px; padding-bottom: 120px; }
.guildpick {
  position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-align: left; margin-bottom: 6px;
  background: var(--p950); border: 1px solid var(--p800); box-shadow: 0 0 1px 1px rgba(0, 0, 0, .5); transition: background-color .15s, border-color .15s;
}
.guildpick:hover { background: var(--p900); border-color: var(--p700); }
.gicon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font: 800 15px var(--font-display); color: #0c0d0d; }
.guildpick b { display: block; font-size: 15px; letter-spacing: -.02em; }
.guildpick small { display: block; color: var(--z500); font-size: 12.5px; }
.guildpick > svg { margin-left: auto; width: 16px; height: 16px; color: var(--z500); }

.panel { border-radius: 20px; background: var(--p950); border: 1px solid var(--p800); overflow: hidden; }
.panel + .panel, .grid2 + .panel, .panel + .grid2 { margin-top: 16px; }
.grid2 > .panel { margin-top: 0; }
.panel-h { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--p800); }
.panel-h .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.panel-h .icon-tile svg { width: 18px; height: 18px; }
.panel-h h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.panel-h p { margin: 2px 0 0; color: var(--z500); font-size: 13.5px; }
.panel-h .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.panel-b { padding: 18px 22px; }

.panel .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 22px; transition: background-color .15s; }
.panel .row + .row { border-top: 1px solid var(--p800); }
.panel .row:hover { background: rgba(22, 23, 23, .6); }
.panel .row .lbl b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.panel .row .lbl small { display: block; margin-top: 2px; color: var(--z500); font-size: 13.5px; }
.panel .row .ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.panel .row.off .lbl, .row.off .ctl > :not(.switch) { opacity: .45; }

.switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; border-radius: 999px; background: var(--p700); transition: background-color .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #d4d4d8; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s var(--ease), background-color .2s; }
.switch[aria-checked="true"] { background: var(--teal-deep); }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: #fff; }
.switch:hover { filter: brightness(1.15); }
.switch:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.sel {
  height: 36px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--p800); color: #fff; line-height: 1;
  font: 600 13.5px var(--font-body); appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--p900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  transition: border-color .15s, background-color .15s;
}
.sel:hover { border-color: var(--p700); background-color: var(--p850); }
.sel:focus-visible { outline: 0; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(75, 103, 108, .25); }
.sel option { background: var(--p900); }

.step { display: inline-flex; align-items: center; height: 36px; border-radius: 10px; background: var(--p900); border: 1px solid var(--p800); overflow: hidden; }
.step button { width: 32px; height: 100%; display: grid; place-items: center; color: var(--z400); transition: background-color .15s, color .15s; }
.step button:hover { background: var(--p800); color: #fff; }
.step button svg { width: 14px; height: 14px; }
.step span { min-width: 34px; text-align: center; font: 600 14px var(--font-mono); font-variant-numeric: tabular-nums; }
.range { width: 180px; accent-color: var(--teal); cursor: pointer; }
.rv { min-width: 44px; text-align: right; font: 600 14px var(--font-mono); color: var(--z200); }

.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chip2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 6px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1;
  background: var(--p850); border: 1px solid var(--p800); color: var(--z200); transition: border-color .15s, background-color .15s;
}
.chip2:hover { border-color: var(--p700); background: var(--p800); }
.chip2 .dot { width: 8px; height: 8px; border-radius: 999px; }
.chip2 .x { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; color: var(--z500); transition: color .15s, background-color .15s; }
.chip2 .x:hover { color: #fff; background: var(--p700); }
.chip2 .x svg { width: 11px; height: 11px; }
.chip2.add { padding: 0 12px; color: var(--teal); border-style: dashed; background: transparent; }
.chip2.add:hover { background: rgba(146, 200, 210, .06); }
.chip2.add svg { width: 13px; height: 13px; }

.tag { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.tag svg { width: 12px; height: 12px; }
.tag.ok { color: #7ee2a8; background: rgba(35, 165, 90, .12); }
.tag.warn { color: #f5c96a; background: rgba(240, 178, 50, .12); }
.tag.bad { color: #ff8a8d; background: rgba(242, 63, 67, .12); }
.tag.off { color: var(--z400); background: var(--p850); }

.btn-s {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; line-height: 1;
  background: var(--p900); border: 1px solid var(--p800); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s ease-out;
}
.btn-s:hover { background: var(--p850); border-color: var(--p700); }
.btn-s:active { transform: scale(.97); }
.btn-s svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-s.teal { background: rgba(146, 200, 210, .14); border-color: rgba(146, 200, 210, .22); color: var(--teal-soft); }
.btn-s.teal:hover { background: rgba(146, 200, 210, .22); }
.btn-s.red { background: rgba(242, 63, 67, .12); border-color: rgba(242, 63, 67, .26); color: #ff8a8d; }
.btn-s.red:hover { background: rgba(242, 63, 67, .2); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats.dashstats { margin-top: 0; margin-bottom: 16px; }
.banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; margin-bottom: 16px; }
.banner.raid { background: linear-gradient(to right, rgba(242, 63, 67, .14), rgba(242, 63, 67, .04)); border: 1px solid rgba(242, 63, 67, .3); }
.banner.info { background: linear-gradient(to right, rgba(146, 200, 210, .10), rgba(146, 200, 210, .02)); border: 1px solid rgba(146, 200, 210, .18); }
.banner > svg { width: 20px; height: 20px; flex-shrink: 0; }
.banner.raid > svg { color: #ff8a8d; } .banner.info > svg { color: var(--teal); }
.banner b { font-size: 15px; } .banner p { margin: 2px 0 0; color: var(--z400); font-size: 13.5px; }
.banner .right { margin-left: auto; display: flex; gap: 8px; }

.li { display: flex; align-items: center; gap: 14px; padding: 14px 22px; transition: background-color .15s; }
.li + .li { border-top: 1px solid var(--p800); }
.li:hover { background: rgba(22, 23, 23, .6); }
.li .av2 { width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center; }
.li .av2 svg { width: 15px; height: 15px; }
.li b { font-size: 14.5px; font-weight: 600; } .li small { display: block; color: var(--z500); font-size: 13px; }
.li .when { margin-left: auto; color: var(--z500); font-size: 13px; white-space: nowrap; }

.servers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; padding-bottom: 80px; }
.srv {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 20px 22px; border-radius: 22px;
  background: var(--p950); border: 1px solid var(--p800); transition: border-color .15s, transform .2s var(--ease-out), background-color .15s;
}
.srv::before { content: ""; position: absolute; inset: -40px 0 auto; height: 120px; z-index: -1; background: var(--c); opacity: .16; filter: blur(40px); }
.srv:hover { border-color: var(--p700); background: #131414; transform: translateY(-3px); }
.srv .gicon { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.srv b { font-size: 16px; letter-spacing: -.02em; }
.srv small { margin-top: -8px; color: var(--z500); font-size: 13px; }
.srv .btn-s { width: 100%; margin-top: 6px; }

.preview { padding: 16px; border-radius: 14px; background: #1e1f22; color: #dbdee1; font-size: 14px; line-height: 1.45; }
.preview .msg { display: flex; gap: 12px; }
.preview .bpfp { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: #0c0d0d; display: grid; place-items: center; }
.preview .bpfp img { width: 24px; height: 24px; }
.preview .who { font-weight: 600; color: #fff; }
.preview .who span { margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: #5865f2; font-size: 10px; font-weight: 700; vertical-align: 2px; }
.preview .cv2 { margin-top: 6px; padding: 14px 16px; border-radius: 12px; background: #2b2d31; }
.preview .cv2 b { color: #fff; }
.preview .cv2 p { margin: 6px 0 0; }
.preview .dbtn { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; height: 32px; padding: 0 14px; border-radius: 8px; background: #5865f2; color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1; }

.textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 12px; background: var(--p900); border: 1px solid var(--p800); color: #fff; font: 500 14px var(--font-mono); line-height: 1.6; resize: vertical; transition: border-color .15s; }
.textarea:hover { border-color: var(--p700); }
.textarea:focus { outline: 0; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(75, 103, 108, .25); }
.vars { margin-top: 10px; color: var(--z500); font-size: 13px; }
.vars code { font-family: var(--font-mono); color: var(--teal-mist); background: var(--p850); padding: 2px 6px; border-radius: 6px; font-size: 12.5px; }

.savebar {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 40; translate: -50% 160%; opacity: 0;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 16px; width: min(640px, calc(100% - 32px));
  background: rgba(20, 21, 21, .92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 16px 48px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: translate .35s var(--ease-out), opacity .2s linear;
}
.savebar[data-show] { translate: -50% 0; opacity: 1; }
.savebar p { margin: 0; font-weight: 600; font-size: 14.5px; }
.savebar .right { margin-left: auto; display: flex; gap: 8px; }
.toast {
  position: fixed; top: 24px; left: 50%; z-index: 50; translate: -50% -200%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; line-height: 1;
  background: var(--p800); box-shadow: 0 10px 30px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .06); font-weight: 600; font-size: 14px; transition: translate .35s var(--ease-out);
}
.toast[data-show] { translate: -50% 0; }
.toast svg { width: 16px; height: 16px; color: var(--green); }

@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .servers, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .panel .row { grid-template-columns: minmax(0, 1fr); }
  .panel .row .ctl { justify-content: flex-start; }
}

.dd { position: relative; display: inline-block; }
.dd select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dd-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 150px; max-width: 260px; height: 38px;
  padding: 0 12px 0 14px; border-radius: 12px; background: var(--p900); border: 1px solid var(--p800); color: #fff;
  font: 600 13.5px var(--font-body); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn:hover { border-color: var(--p700); background: var(--p850); }
.dd[data-open] .dd-btn, .dd-btn:focus-visible { outline: 0; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(75, 103, 108, .25); }
.dd-btn svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--z400); transition: transform .2s var(--ease-out); }
.dd[data-open] .dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  position: fixed; z-index: 200; max-height: 280px; overflow: auto; padding: 6px;
  border-radius: 14px; background: var(--p900); border: 1px solid var(--p700); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .14s ease-out, transform .18s var(--ease-out);
}
.dd-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.dd-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left; white-space: nowrap;
  color: var(--z300); font: 500 13.5px var(--font-body); cursor: pointer; transition: background-color .12s, color .12s;
}
.dd-item:hover, .dd-item[data-active] { background: var(--p800); color: #fff; }
.dd-item[aria-selected="true"] { color: var(--teal); }
.dd-item[aria-selected="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 999px; background: var(--teal); }
.range { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--p800); outline: 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 999px; background: var(--teal); border: 3px solid var(--p950); box-shadow: 0 0 0 1px var(--teal-deep); cursor: pointer; transition: transform .15s; }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 999px; background: var(--teal); border: 3px solid var(--p950); cursor: pointer; }
.field input, .field textarea { caret-color: var(--teal); }
