:root {
  --bg: #17181a;
  --panel: #1e1f22;
  --panel-2: #26282b;
  --panel-3: #2e3034;
  --line: #34373c;
  --line-2: #43464d;
  --ink: #e6e7e9;
  --muted: #9b9ea5;

  --accent: #4a4d54;
  --accent-2: #5a5e66;

  --focus: #8d919a;
  --green: #4f8a63;
  --red: #b8484b;

  --orange: #f0b45f;

  --gold: #c8951d;
  --gold-2: #e5b13a;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-weight: 400; font-size: 13px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; min-width: 0;

  color: var(--ink); text-decoration: none; padding-left: 10px; flex: 0 0 auto;
}
a.brand { cursor: pointer; }
a.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.userbox img { width: 30px; height: 30px; border-radius: 50%; }

main { width: 100%; max-width: none; margin: 0 auto; padding: 24px clamp(16px, 3vw, 48px) 80px; }
main#app { flex: 1 0 auto; }
.topbar, .site-footer { flex: none; }
h2 { margin: 8px 0 18px; }
h3 { margin: 0 0 12px; font-size: 15px; }

.center { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.login-card { width: 100%; max-width: 420px; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.login-card h1 { margin-top: 0; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-wide { grid-column: 1 / -1; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
select, .sk-trigger, textarea, input[type="text"], input[type="password"] {
  width: 100%; margin-top: 6px; padding: 9px 10px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  font-size: 14px; font-family: inherit;
}
input[type="number"], input[type="search"], input:not([type]) { font-size: 16px; }
@media (max-width: 680px) { select, .sk-trigger, textarea, input { font-size: 16px !important; } }
select:focus, .sk-trigger:focus-visible, textarea:focus, input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
select.sk-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.sk-trigger { display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; line-height: 1.4; }
.sk-trigger::after { content: ""; flex: none; width: 7px; height: 7px; margin: -4px 2px 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; color: var(--muted); transition: transform .14s ease; }
.sk-trigger[aria-expanded="true"]::after { transform: translateY(3px) rotate(225deg); }
.sk-trigger:disabled { opacity: .55; cursor: not-allowed; }
.sk-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-label.is-empty { color: var(--muted); }
.sk-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 70%, transparent); }
.sk-pop { position: fixed; z-index: 900; display: flex; flex-direction: column; overflow: hidden; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.sk-search { flex: none; width: 100%; margin: 0 0 6px !important; min-height: 36px !important; padding: 7px 10px !important; font-size: 14px; }
.sk-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.sk-group { position: sticky; top: 0; z-index: 1; padding: 8px 8px 4px; background: var(--panel); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sk-opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; color: var(--ink); font-size: 14px; cursor: pointer; user-select: none; }
.sk-opt > .sk-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-reason { flex: none; margin-left: auto; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.sk-opt.is-active { background: var(--panel-3); }
.sk-opt.is-empty { color: var(--muted); }
.sk-opt[aria-selected="true"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--focus); }
.sk-opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.sk-empty { padding: 10px; color: var(--muted); font-size: 13px; text-align: center; }
input.dk-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.dk-trigger { font-variant-numeric: tabular-nums; }
.dk-pop { overflow-y: auto; overscroll-behavior: contain; padding: 10px; }
.dk-body { display: flex; flex-wrap: wrap; gap: 12px; }
.dk-cal { flex: 1 1 266px; min-width: 0; }
.dk-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.dk-title { font-size: 14px; text-transform: capitalize; }
.dk-nav { flex: none; inline-size: 32px; block-size: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.dk-nav:hover:not(:disabled) { background: var(--panel-3); }
.dk-nav:disabled { opacity: .35; cursor: not-allowed; }
.dk-week, .dk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dk-week span { padding: 4px 0; color: var(--muted); font-size: 11px; text-align: center; text-transform: capitalize; }
.dk-day { min-block-size: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.dk-day:hover:not(:disabled), .dk-cell:hover { background: var(--panel-3); }
.dk-day.is-out { color: var(--muted); }
.dk-day.is-today { box-shadow: inset 0 0 0 1px var(--focus); }
.dk-day[aria-selected="true"], .dk-cell[aria-selected="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }
.dk-day:disabled { opacity: .25; cursor: not-allowed; }
.dk-day:focus-visible, .dk-cell:focus-visible, .dk-col-list:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.dk-time { flex: 0 0 auto; display: flex; gap: 6px; }
.dk-col { display: flex; flex-direction: column; inline-size: 62px; }
.dk-col-head { padding: 4px 0; color: var(--muted); font-size: 11px; text-align: center; }
.dk-col-list { display: flex; flex-direction: column; gap: 2px; block-size: 252px; overflow-y: auto; overscroll-behavior: contain; border-radius: 8px; scrollbar-width: thin; }
.dk-cell { flex: none; padding: 6px 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.dk-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.dk-foot .btn { margin: 0; }
@media (max-width: 480px) { .dk-time { flex: 1 1 100%; } .dk-col { flex: 1 1 0; } .dk-col-list { block-size: 168px; } }
textarea { resize: vertical; }
.row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; margin: 0; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: none; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: #fff; font-family: inherit;
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-primary { background: var(--accent); border: 1px solid var(--line-2); }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--panel-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: var(--red); border: 1px solid color-mix(in srgb, var(--red) 70%, #000); }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 82%, #000); }
.btn-danger:disabled { opacity: .55; cursor: default; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.linklike {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}

.linklike:hover { color: var(--ink); }
.linklike:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.guild-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 12px; cursor: pointer; color: var(--ink); font-size: 14px; font-family: inherit;
  transition: border-color .15s, transform .1s;
}
.guild-card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-1px); }
.guild-card img, .guild-fallback {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
}
.guild-fallback {
  display: grid; place-items: center; background: var(--panel-3); font-size: 26px; font-weight: 700;
}
.guild-card span { text-align: center; word-break: break-word; }

.actions { margin-top: 8px; }
.notice {
  background: rgba(184,72,75,.12); border: 1px solid rgba(184,72,75,.4);
  color: #f0b6b8; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px;
}

.spinner {
  width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.busy-layer { position: fixed; inset: 0; z-index: 1000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: progress; }
.busy-layer.is-on { display: flex; }
.busy-layer p { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #fff; z-index: 20;
}
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }

.topbar { gap: 14px; }

.site-nav { display: flex; align-items: center; justify-content: flex-start; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }

.brand-slot { display: flex; align-items: center; flex: 0 0 auto; margin-left: 12px; }
.brand-slot:empty { display: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 11px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  color: var(--muted); text-decoration: none; border: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); background: var(--panel-2); }
.site-nav a.is-on { color: var(--ink); background: var(--panel-2); border-color: var(--line); }
.site-nav a i { width: 16px; height: 16px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.notif { position: relative; }
.notif-btn {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel-2);
  color: var(--muted); cursor: pointer;
}
.notif-btn:hover, .notif-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--accent); }
.notif-btn i { width: 17px; height: 17px; }
.notif-dot {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px; background: var(--red);
  color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1;
}
.notif-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 480px); overflow-y: auto; z-index: 30;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13.5px;
}
.notif-head button { border: 0; background: transparent; color: var(--accent); font: 600 12.5px inherit; cursor: pointer; }
.notif-item {
  display: block; width: 100%; text-align: left; padding: 11px 13px 11px 16px;
  border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
  background: transparent; color: var(--ink); font: inherit; cursor: pointer;
}
.notif-item:hover { background: var(--panel-2); }
.notif-item.is-unread { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.notif-item.is-critical { border-left-color: var(--red); }
.notif-item strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.notif-item p { margin: 0; color: var(--muted); font-size: 12.5px; }
.notif-item time { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.notif-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 13px; }

.sup-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sup-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; text-align: left; font: inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.sup-row:hover { border-color: var(--accent); }
.sup-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.sup-subject { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-cat, .sup-row time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.sup-state { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--panel-2); color: var(--muted); }
.sup-state.sup-open, .sup-state.sup-pending { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--ink); }
.sup-state.sup-answered { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--ink); }

.sup-faq { margin-top: 14px; }
.sup-faq > h3 { margin: 0 0 4px; font-size: 16px; }

.acct-card.sup-faq > .muted { margin: 0 0 6px; font-size: 13px; }
.sup-faq-item { border-top: 1px solid var(--line); }
.sup-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px; cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none;
}
.sup-faq-item summary::-webkit-details-marker { display: none; }

.sup-faq-item summary:hover { background: var(--panel-2); }

.sup-faq-item em {
  flex: none; font-style: normal; color: var(--muted); font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sup-faq-item > p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.sup-ask { margin-top: 14px; }
.sup-ask > h3 { margin: 0 0 4px; font-size: 16px; }
.acct-card.sup-ask > .muted { margin: 0 0 14px; font-size: 13px; }

.acct-card.sup-ask .btn { width: auto; }
.sup-ask-mail { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.acct-card.sup-ask > .sup-ask-mail { margin: 14px 0 0; }
.sup-ask-address { color: var(--ink); }

.sup-guest { margin-top: 14px; }
.sup-guest-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sup-form { margin-top: 14px; }
.sup-form textarea { width: 100%; resize: vertical; }
.sup-check {
  margin: 12px 0; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent);
}
.sup-check.is-block { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.sup-check p { margin: 0 0 8px; font-size: 13px; }
.sup-known { margin-bottom: 8px; }
.sup-known strong { font-size: 13px; }
.sup-known em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.sup-known p { color: var(--muted); }
.sup-thread { margin-top: 14px; }
.sup-thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sup-thread-head h3 { margin: 0 0 3px; }

.sup-context { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.sup-context span {
  padding: 3px 8px; border-radius: 999px; background: var(--panel-2);
  color: var(--muted); font-size: 11.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sup-messages { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.sup-msg { padding: 11px 13px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.sup-msg-staff { border-color: var(--accent); }
.sup-msg strong { display: block; font-size: 12.5px; margin-bottom: 4px; }
.sup-msg p { margin: 0; white-space: pre-wrap; font-size: 13.5px; }
.sup-msg time { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.sup-reply textarea { width: 100%; resize: vertical; }
.sup-reply-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 760px) {
  .sup-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .sup-no { grid-column: 1 / -1; }
  .sup-cat { display: none; }
}

.plan-badge {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 5px 12px; font: 600 12.5px inherit; font-family: inherit;
}
.plan-badge:hover { border-color: var(--line-2); color: var(--ink); }
.plan-badge:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.plan-badge svg, .plan-badge i { width: 15px; height: 15px; flex: 0 0 auto; }
.plan-badge-labels { display: grid; overflow: hidden; height: 1.5em; line-height: 1.5; }
.plan-badge-name, .plan-badge-more {
  grid-area: 1 / 1; white-space: nowrap;
  transition: transform .25s ease, opacity .2s ease;
}
.plan-badge-name { transform: translateY(0); }

.plan-badge-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  opacity: 0; transform: translateY(100%);
}
.plan-badge:hover .plan-badge-more,
.plan-badge:focus .plan-badge-more { transform: translateY(0); opacity: 1; }
.plan-badge:not(.is-flat):hover .plan-badge-name,
.plan-badge:not(.is-flat):focus .plan-badge-name { transform: translateY(-100%); opacity: 0; }

.plan-badge.is-flat .plan-badge-more { display: none; }
.plan-badge.tier-premium:not(.is-gift) {
  background: color-mix(in srgb, var(--gold) 14%, var(--panel-2));
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--gold);
}
.plan-badge.tier-premium:not(.is-gift):hover { border-color: color-mix(in srgb, var(--gold) 70%, var(--line)); color: var(--gold-2); }
@property --plan-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan-badge.tier-premium_plus:not(.is-gift) {
  position: relative; isolation: isolate; color: var(--gold-2);
  border-color: transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--gold) 16%, var(--panel-2)), color-mix(in srgb, var(--gold) 16%, var(--panel-2))) padding-box,
    conic-gradient(from var(--plan-angle), var(--gold), #fff3c4, var(--gold-2), var(--gold), #fff3c4, var(--gold)) border-box;
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold-2) 45%, transparent);
  animation: plan-glow 4s linear infinite;
}
.plan-badge.tier-premium_plus:not(.is-gift):hover { color: #fff3c4; box-shadow: 0 0 18px color-mix(in srgb, var(--gold-2) 65%, transparent); }
@keyframes plan-glow { to { --plan-angle: 360deg; } }
.plan-badge.is-gift {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: rgba(255, 255, 255, .3); color: #fff;
}
.plan-badge.is-gift:hover { border-color: rgba(255, 255, 255, .55); color: #fff; }
.plan-badge.is-gift svg, .plan-badge.is-gift i { color: #fff; }
@media (max-width: 720px) {
  .plan-badge { padding: 5px 9px; }
  .plan-badge-labels { max-width: 14ch; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-badge-name, .plan-badge-more { transition: none; }
  .plan-badge.tier-premium_plus { animation: none; }
}

.profile { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 13.5px; font-weight: 600; max-width: 220px;
}
.profile-btn:hover { border-color: var(--line-2); }
.profile-btn img { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; }
.profile-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-btn i { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; transition: transform .15s; }
.profile.is-open .profile-btn i.chev { transform: rotate(180deg); }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 218px; z-index: 30;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.profile-menu[hidden] { display: none; }
.profile-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.profile-head strong { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.profile-head span { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.profile-menu button, .profile-menu a {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: none; color: var(--ink); font-family: inherit; font-size: 13.5px;
  padding: 8px 10px; border-radius: 8px; text-decoration: none;
}
.profile-menu button:hover, .profile-menu a:hover { background: var(--panel-2); }
.profile-menu i { width: 16px; height: 16px; color: var(--muted); }
.profile-menu .danger { color: #e39699; }
.profile-menu .danger i { color: #e39699; }
.profile-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.savebar {
  position: fixed; left: 50%; bottom: 18px; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 10px 12px 10px 18px; box-shadow: 0 14px 34px rgba(0,0,0,.5);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.22,.9,.3,1), opacity .2s;
  width: max-content; max-width: min(560px, calc(100vw - 24px));
}
.savebar.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.savebar-text { font-size: 13.5px; font-weight: 600; }
.savebar-actions { display: flex; gap: 8px; margin-left: auto; }
.savebar-actions .btn { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .savebar { transition: opacity .2s; } }
@media (max-width: 560px) {
  .savebar { left: 12px; right: 12px; bottom: 12px; transform: translateY(140%); width: auto; max-width: none; }
  .savebar.is-on { transform: translateY(0); }
}

.savebar.is-alert { border-color: var(--red); animation: savebar-shake .45s; }
.savebar.is-alert::after {
  content: ''; position: absolute; inset: -3px; border-radius: 17px;
  border: 2px solid var(--red); animation: savebar-fade 1.1s ease-out forwards; pointer-events: none;
}
@keyframes savebar-shake {
  0%, 100% { transform: translate(-50%, 0); }
  15% { transform: translate(calc(-50% - 8px), 0); }
  30% { transform: translate(calc(-50% + 8px), 0); }
  45% { transform: translate(calc(-50% - 6px), 0); }
  60% { transform: translate(calc(-50% + 6px), 0); }
  80% { transform: translate(calc(-50% - 3px), 0); }
}
@keyframes savebar-fade { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 560px) {
  @keyframes savebar-shake {
    0%, 100% { transform: translateY(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    80% { transform: translateX(-3px); }
  }
}
@media (prefers-reduced-motion: reduce) { .savebar.is-alert { animation: none; } }

.auth-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; justify-content: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink); }
.btn-google:hover { background: var(--panel-3); }
.btn-google svg { width: 17px; height: 17px; }

.btn-discord { width: 100%; justify-content: center; margin-top: 8px; background: #5865f2; border: 1px solid #4752c4; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-discord svg { width: 18px; height: 18px; }

.acct-hint.acct-hint-sm { margin: 8px 0 0; text-align: center; }

.side-tabs {
  padding: 6px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
}

.sitebanners { position: relative; z-index: 6; }
.sitebanners:empty { display: none; }

.sitebanner {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px; font-size: 13.5px; line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, .28);
  background: var(--orange); color: #17181a;
}
.sitebanner.is-critical { background: var(--red); color: #fff; }
.sitebanner b { font-weight: 800; }

.sitebanner .sb-text { flex: 0 1 auto; min-width: 0; text-align: center; }
.sitebanner .sb-when { opacity: .8; white-space: nowrap; }

.sitebanner .btn {
  flex: 0 0 auto; padding: 5px 12px; font-size: 12.5px;
  background: rgba(0, 0, 0, .22); border-color: rgba(0, 0, 0, .3); color: inherit;
}
.sitebanner .btn:hover { background: rgba(0, 0, 0, .32); }

.creds-form.access-share { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(130px, auto) auto; margin-bottom: 12px; }
@media (max-width: 640px) { .creds-form.access-share { grid-template-columns: 1fr; } .creds-form.access-share .btn { width: 100%; } }
.stay-bot-option { grid-template-columns: 18px 28px minmax(0, 1fr); }
.stay-bot-face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--surface-2, #282d38); font-size: 12px; font-weight: 700; }
.stay-bot-list { margin-bottom: 12px; }
#accessBody h3 { margin: 18px 0 4px; font-size: 15px; }
.workspace-readonly { margin: 0 0 14px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--green) 55%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--green) 10%, transparent); font-weight: 700; }

.gsearch { position: relative; }
.gsearch-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, calc(100vw - 24px));
  z-index: 30; padding: 10px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}
.gsearch-input {
  width: 100%; padding: 9px 11px; border-radius: 9px; font: inherit; font-size: 13.5px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
}
.gsearch-input:focus { outline: none; border-color: var(--accent); }
.gsearch-results { max-height: min(60vh, 420px); overflow-y: auto; margin-top: 8px; }
.gsearch-results:empty { display: none; }
.gsearch-item {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); font: inherit; cursor: pointer;
}
.gsearch-item:hover { background: var(--panel-2); }
.gsearch-item strong { display: block; font-size: 13.5px; font-weight: 600; }
.gsearch-item:focus-visible { outline: none; background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--accent); }
.gsearch-item em { display: block; color: var(--muted); font-size: 12px; font-style: normal; margin-top: 2px; }
.gsearch-item mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.gsearch-type {
  margin: 10px 10px 4px; color: var(--muted); font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.gsearch-type:first-child { margin-top: 2px; }
.search-hit { border-radius: 10px; animation: search-hit 2.2s var(--ease-out, ease-out); }
@keyframes search-hit {
  0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
  100% { box-shadow: 0 0 0 3px transparent; background: transparent; }
}
.gsearch-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 13px; }

:root {
  --motion: .24s;
  --motion-fast: .14s;
  --motion-mid: .22s;
  --motion-slow: .32s;
  --motion-ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  interpolate-size: allow-keywords;
}

@keyframes motion-in { from { opacity: 0; transform: translateY(7px); } }
@keyframes motion-in-sm { from { opacity: 0; transform: translateY(4px); } }
@keyframes motion-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes motion-fade { from { opacity: 0; } }
@keyframes motion-out { to { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes view-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes view-in-back { from { opacity: 0; transform: translateX(-14px); } }

#app > section { animation: motion-in var(--motion) var(--motion-ease) backwards; }
#app > section.view-enter { animation: view-in var(--motion-mid) var(--ease-out) backwards; }
#app > section.view-enter.is-back { animation-name: view-in-back; }

.acct-card, .platform-card, .srv-card, .plan-card, .guild-card, .chlog-card,
.lp-card, .bot-overlay-card {
  animation: motion-in var(--motion) var(--motion-ease) backwards;
}
.key-row, .rew-row, .bill-row, .sup-row, .mail-row, .stat-row, .notif-item,
.admin-road-row {
  animation: motion-in-sm var(--motion-fast) var(--motion-ease) backwards;
}

.modal-card { animation: motion-pop var(--motion) var(--motion-ease) backwards; }

.notif-menu, .gsearch-menu, .profile-menu, .offer-pop, .release-role-menu, .sk-pop {
  transition: opacity var(--motion-fast) var(--ease-out), translate var(--motion-mid) var(--ease-out),
    display var(--motion-fast) allow-discrete;
}
.notif-menu.hidden, .gsearch-menu.hidden, .profile-menu[hidden], .offer-pop.hidden,
.release-role-menu.hidden { opacity: 0; translate: 0 6px; }
@starting-style {
  .notif-menu, .gsearch-menu, .profile-menu, .offer-pop, .release-role-menu { opacity: 0; translate: 0 6px; }
  .sk-pop { opacity: 0; translate: 0 -6px; }
  .sk-pop.is-up { translate: 0 6px; }
}

details.acc::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size var(--motion-mid) var(--ease-out),
    content-visibility var(--motion-mid) allow-discrete, overflow 0s allow-discrete;
}
details.acc[open]::details-content {
  block-size: auto;
  overflow: visible;
  transition: block-size var(--motion-mid) var(--ease-out),
    content-visibility var(--motion-mid) allow-discrete, overflow 0s var(--motion-mid) allow-discrete;
}

.modal, .bot-overlay, #loading { animation: motion-fade var(--motion-fast) ease both; }

.btn, .linklike, .acct-nav button, .set-nav button, .side-tabs button,
.sub-rail button, .bot-profile-selector button, .gsearch-item {
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease,
    color var(--motion-fast) ease, opacity var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}
.btn:active:not(:disabled), .acct-nav button:active, .set-nav button:active,
.side-tabs button:active { transform: translateY(1px); }
.sub-rail button:active:not(:disabled), .bot-profile-selector button:active:not(:disabled) { transform: translateY(1px); }

.toast { animation: motion-in var(--motion) var(--motion-ease) both; }
.toast.is-out { animation: motion-out var(--motion) ease forwards; }

@media (prefers-reduced-motion: reduce) {
  #app > section, .acct-card, .platform-card, .srv-card, .plan-card, .guild-card,
  .chlog-card, .lp-card, .bot-overlay-card, .key-row, .rew-row, .bill-row,
  .sup-row, .mail-row, .stat-row, .notif-item, .admin-road-row, .modal-card,
  .notif-menu, .gsearch-menu, .modal, .bot-overlay, #loading, .toast,
  .toast.is-out, #app > section.view-enter,
  #app > section.view-enter.is-back { animation: none; }
  .notif-menu, .gsearch-menu, .profile-menu, .offer-pop, .release-role-menu, .sk-pop,
  details.acc::details-content, details.acc[open]::details-content { transition: none; }
  .btn, .linklike, .acct-nav button, .set-nav button, .side-tabs button,
  .sub-rail button, .bot-profile-selector button, .gsearch-item { transition: none; }
  .search-hit { animation: none; outline: 2px solid var(--accent); outline-offset: 2px; }
}
.acc-body:has(>.backup-actions){container-type:inline-size}.backup-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}@container (min-width:720px){.backup-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}.backup-actions>.btn{width:100%;min-height:42px;justify-content:center;margin:0;white-space:nowrap}
.backup-history{display:grid;gap:8px;margin:10px 0}.backup-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:10px}.backup-history-row>span{display:flex;align-items:center;gap:8px}.backup-history-row svg{width:15px;height:15px}

/* Kapsamlı yedekler: ayarlar ve anlık işlemler ayrı alanlarda. */
.full-backup { min-width: 0; }
.full-backup .backup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.full-backup .backup-actions > .btn { width: auto; min-height: 44px; padding: 11px 16px; white-space: normal; gap: 8px; text-decoration: none; }
.full-backup .full-backup-toolbar { margin: 18px 0; }
.full-backup .btn svg, .full-backup-status svg { width: 17px; height: 17px; flex: none; }
.full-backup-card, .full-backup-preview { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--panel); margin-top: 18px; overflow-wrap: anywhere; }
.full-backup-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.full-backup-card h4 { margin: 5px 0 0; font-size: 17px; }
.full-backup-card small, .full-backup-metric small, .full-backup-job small { color: var(--muted); }
.full-backup-status { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 5px 9px; border-radius: 8px; background: var(--panel-2); color: var(--muted); }
.full-backup-status.ready, .full-backup-complete, .fixed-voice-result.is-ok { color: var(--green); }
.full-backup-status.partial, .full-backup-warning { color: var(--orange); }
.full-backup-status.failed, .fixed-voice-result.is-error { color: var(--red); }
.full-backup-status.running, .full-backup-status.building, .full-backup-status.queued { color: var(--accent); }
.full-backup-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin: 22px 0; }
.full-backup-metric { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--panel-2); }
.full-backup-metric > svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.full-backup-metric.green > svg { color: var(--green); }
.full-backup-metric.purple > svg { color: var(--purple, #b39bdd); }
.full-backup-metric.blue > svg { color: var(--blue, #7baad9); }
.full-backup-metric div { display: grid; gap: 5px; min-width: 0; }
.full-backup-metric strong { font-size: 18px; color: var(--ink); }
.full-backup-warnings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; padding: 14px; }
.full-backup-warning { display: flex; align-items: flex-start; gap: 10px; border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line)); border-radius: 12px; padding: 12px; background: color-mix(in srgb, var(--orange) 6%, var(--panel)); }
.full-backup-warning svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.full-backup-warning div { display: grid; gap: 4px; min-width: 0; }
.full-backup-warning span { color: var(--ink); font-size: 13px; }
.full-backup-group { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; overflow: hidden; }
.full-backup-group > summary { display: flex; align-items: center; gap: 10px; list-style: none; padding: 15px; cursor: pointer; font-size: 13px; font-weight: 600; background: var(--panel-2); }
.full-backup-group > summary::-webkit-details-marker { display: none; }
.full-backup-group > summary svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.full-backup-group > summary span { flex: 1; }
.full-backup-group > summary b { font-size: 12px; background: var(--panel); padding: 3px 8px; border-radius: 6px; }
.full-backup-group[open] > summary > svg:last-child { transform: rotate(180deg); }
.full-backup-group-body { display: grid; gap: 9px; padding: 14px; }
.full-backup-change { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px; border-radius: 9px; background: var(--panel-2); }
.full-backup-change small { flex-basis: 100%; color: var(--muted); }
.full-backup-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.full-backup-values pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.full-backup-setting > summary { cursor: pointer; padding: 10px; }
.full-backup-choices { display: grid; gap: 14px; margin: 18px 0; }
.full-backup-choices label { display: flex; align-items: center; gap: 10px; }
.full-backup-choices label.full-backup-channel-choice { display: grid; }
.full-backup-choices input[type=checkbox] { width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.full-backup-choices input:not([type=checkbox]) { width: 100%; min-width: 0; }
.full-backup-complete, .fixed-voice-result { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.full-backup-complete svg, .fixed-voice-result svg { width: 17px; height: 17px; flex: none; }
.full-backup-job { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.full-backup-job > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.full-backup-job small { flex-basis: 100%; }
.sup-form, .sup-thread, .sup-thread-head > div, .sup-msg, .sup-context, .sup-row > * { min-width: 0; }
.sup-msg p, .sup-thread-head h3, .sup-context span, .sup-known p, .sup-row strong { overflow-wrap: anywhere; word-break: normal; }
.sup-thread-head { flex-wrap: wrap; }
.sup-form input, .sup-form textarea, .sup-thread textarea { max-width: 100%; min-width: 0; }
#changelog { width: 100%; max-width: 80ch; margin-inline: auto; }
@media (max-width: 680px) {
  .full-backup-card, .full-backup-preview { padding: 16px; }
  .full-backup .backup-actions > .btn { flex: 1 1 150px; }
  .full-backup .full-backup-toolbar > .btn { flex: 0 1 auto; }
  .full-backup-job { align-items: flex-start; flex-direction: column; }
}
