:root {
  color-scheme:dark;
  --bg:#101213;
  --panel:#191c1e;
  --border:#2a2e30;
  --muted:#91999d;
  --text:#edf0ed;
  --gold:#eeb968;
  --green:#99c9a8;
  --radius:18px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.55;
}

button,input,select {
  font:inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}

button,select {
  cursor:pointer;
}

button {
  color:inherit;
}

button:disabled {
  cursor:default;
  opacity:.4;
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:4px;
}

a {
  color:inherit;
  text-decoration:none;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:32px;
  line-height:1.22;
  letter-spacing:-1px;
  font-weight:650;
}

h2 {
  font-size:19px;
  letter-spacing:-.4px;
  font-weight:600;
}

h3 {
  font-size:15px;
  font-weight:600;
}

.muted {
  color:var(--muted);
}

.tiny {
  font-size:12px;
}

.eyebrow {
  font-size:10px;
  font-weight:650;
  letter-spacing:1.6px;
  color:var(--muted);
  text-transform:uppercase;
}

.icon {
  width:20px;
  height:20px;
  display:inline-block;
  vertical-align:middle;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}

.coin {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:21px;
  height:21px;
  border:1px solid #b88643;
  border-radius:50%;
  color:var(--gold);
  font-size:12px;
  font-weight:700;
  line-height:1;
}

.layout {
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  min-height:100vh;
}

.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:236px;
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  background:#131617;
  padding:30px 18px 20px;
  z-index:5;
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:25px;
  font-weight:750;
  letter-spacing:-.8px;
  padding:0 14px 30px;
}

.brand-mark {
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  border-radius:11px;
  background:var(--gold);
  color:#252526;
  font-size:24px;
  box-shadow:0 0 25px #eeb9680c;
}

.brand span:last-child {
  font-weight:400;
  color:var(--muted);
  font-size:11px;
  letter-spacing:0;
  margin-left:auto;
}

.server-box {
  background:#1c2022;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  margin-bottom:29px;
}

.server-heading {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  font-weight:600;
}

.server-mark {
  width:33px;
  height:33px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#34352c;
  color:#e4d9ac;
  font-weight:650;
}

.server-box select {
  appearance:none;
  border:0;
  color:var(--text);
  background:transparent;
  min-width:0;
  width:100%;
  font-weight:600;
  padding:2px 3px;
}

.server-box select option {
  background:var(--panel);
}

.server-box .tiny {
  margin-left:45px;
  font-size:10px;
}

.dot {
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--green);
  margin-right:4px;
}

.nav-group {
  padding:0 13px;
  margin-bottom:10px;
}

.nav {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav button {
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  border:0;
  background:transparent;
  border-radius:9px;
  padding:12px 14px;
  color:#9da3a6;
  font-size:13px;
}

.nav button:hover {
  background:#202426;
  color:#f2f2f0;
}

.nav button.active {
  background:#eeb96813;
  color:var(--gold);
}

.nav .active .icon {
  stroke-width:1.9;
}

.nav .count {
  margin-left:auto;
  color:#c4bbb0;
  font-size:10px;
  padding:0 6px;
  background:#ffffff0b;
  border-radius:4px;
}

.sidebar-bottom {
  margin-top:auto;
  padding-top:24px;
}

.demo-box {
  border:1px dashed #3e3b30;
  border-radius:11px;
  padding:14px;
  margin-bottom:18px;
  background:#c9973c06;
}

.demo-box .eyebrow {
  color:#cfaf7c;
}

.demo-box p {
  margin-top:6px;
  font-size:11px;
  color:#8d9290;
  line-height:1.7;
}

.side-user {
  display:flex;
  gap:9px;
  align-items:center;
  padding:0 8px;
}

.side-user .user-name {
  font-size:12px;
  font-weight:600;
}

.side-user button {
  margin-left:auto;
  background:none;
  border:0;
  padding:7px;
  color:var(--muted);
}

.avatar {
  width:34px;
  height:34px;
  border-radius:50%;
  background:linear-gradient(145deg,#9daed0,#495b79);
  display:grid;
  place-items:center;
  color:white;
  font-size:14px;
  font-weight:600;
  object-fit:cover;
}

.main {
  grid-column:2;
  min-width:0;
}

.topbar {
  height:78px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--border);
  padding:0 42px;
  gap:14px;
}

.breadcrumb {
  font-size:12px;
  color:#737d82;
  display:flex;
  align-items:center;
  gap:12px;
}

.breadcrumb .icon {
  width:15px;
  height:15px;
}

.breadcrumb b {
  font-weight:400;
  color:#b9c0c1;
}

.top-actions {
  display:flex;
  gap:12px;
  align-items:center;
}

.tag {
  font-size:10px;
  letter-spacing:.4px;
  border:1px solid #454034;
  background:#eeb9680b;
  border-radius:5px;
  padding:4px 8px;
  color:#d2ae77;
}

.balance-pill {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  background:#1b1f21;
  padding:7px 13px;
  border-radius:8px;
  border:1px solid var(--border);
}

.balance-pill .coin {
  width:16px;
  height:16px;
  font-size:10px;
}

.content {
  max-width:1400px;
  margin:auto;
  padding:38px 42px 28px;
}

.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}

.page-head p {
  font-size:12px;
  color:var(--muted);
  margin-top:9px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#202426;
  padding:10px 15px;
  font-size:12px;
  font-weight:600;
  transition:background .2s,transform .2s;
}

.button:hover {
  background:#2b3032;
}

.button.primary {
  background:var(--gold);
  color:#30291d;
  border-color:var(--gold);
}

.button.primary:hover {
  background:#f4c888;
}

.button.quiet {
  background:transparent;
  color:var(--muted);
}

.button.small {
  padding:7px 12px;
  font-size:11px;
}

.button .icon {
  width:15px;
  height:15px;
}

.grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:22px;
}

.panel {
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
}

.ai-tabs,.ai-actions,.ai-links {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}

.ai-tabs {
  margin-bottom:14px;
}

.ai-panel {
  padding:clamp(16px,3vw,28px);
  display:grid;
  gap:16px;
}

.ai-note {
  color:var(--gold);
}

.ai-form,.ai-entries,.ai-channels,.ai-chat {
  display:grid;
  gap:12px;
}

.ai-form label {
  font-weight:600;
}

.ai-form input:not([type=checkbox]),.ai-form textarea {
  width:100%;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg);
  color:inherit;
  font:inherit;
}

.ai-form textarea {
  resize:vertical;
}

.ai-form textarea:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}

.ai-chat,.ai-channels {
  max-height:52vh;
  overflow:auto;
  padding:4px;
}

.ai-message,.ai-entry {
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg);
  min-width:0;
}

.ai-message {
  width:fit-content;
  max-width:95%;
}

.ai-user {
  justify-self:end;
  border-color:#775d38;
  background:#29251e;
}

.ai-message p,.ai-entry p {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:4px 0 8px;
}

.ai-entry h3 {
  overflow-wrap:anywhere;
}

.ai-links a {
  color:var(--gold);
  text-decoration:underline;
}

.ai-channels label {
  display:flex;
  align-items:center;
  gap:8px;
  overflow-wrap:anywhere;
}

.profile-panel {
  overflow:hidden;
}

.profile-art {
  height:192px;
  position:relative;
  overflow:hidden;
  background:#1f303f;
}

.art {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:linear-gradient(140deg,#253d44,#607b6c);
}

.art:before,.art:after {
  content:"";
  position:absolute;
  inset:25% -12% -15%;
  z-index:-1;
  clip-path:polygon(0 60%,10% 42%,25% 66%,42% 8%,52% 34%,65% 16%,82% 72%,94% 33%,100% 50%,100% 100%,0 100%);
  background:linear-gradient(145deg,#acb89499,#1f383b);
}

.art:after {
  inset:45% -15% -35%;
  transform:scaleX(-1);
  background:linear-gradient(145deg,#344948,#101c24);
}

.art-1 {
  background:radial-gradient(ellipse at 85% 12%,#d7d09a44,transparent 50%),linear-gradient(125deg,#202f34,#5e7461);
}

.art-2 {
  background:linear-gradient(110deg,#f3f6fc 0%,#4171d1 48%,#f6f7ff 100%);
}

.art-2:before {
  background:#6691dc44;
  clip-path:polygon(0 80%,30% 20%,65% 90%,100% 0,100% 100%,0 100%);
}

.art-2:after {
  background:linear-gradient(120deg,#eff6ff66,#b3d3ff55);
}

.art-3 {
  background:radial-gradient(ellipse at 25% 12%,#cf977a,transparent 65%),linear-gradient(130deg,#654349,#242933);
}

.art-3:before {
  background:linear-gradient(125deg,#976161,#283545);
}

.art-3:after {
  background:linear-gradient(100deg,#513d4f,#1d273b);
}

.art-4 {
  background:linear-gradient(135deg,#1d3846,#477882);
}

.art-4:before {
  background:linear-gradient(135deg,#6291a9,#244457);
}

.art-5 {
  background:radial-gradient(ellipse at 20% 10%,#c2a15b,transparent 65%),#37333c;
}

.art-5:before {
  background:linear-gradient(130deg,#79603a,#433a47);
}

.art-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

.profile-art .mini-label {
  position:absolute;
  right:19px;
  top:17px;
  background:#0c171c66;
  backdrop-filter:blur(8px);
  padding:5px 9px;
  border:1px solid #ffffff22;
  border-radius:6px;
  font-size:9px;
  color:#d1dddf;
  letter-spacing:1px;
}

.profile-body {
  padding:0 26px 25px;
  position:relative;
}

.profile-identity {
  display:flex;
  align-items:flex-end;
  gap:14px;
  margin-top:-33px;
}

.profile-identity .avatar {
  width:74px;
  height:74px;
  border:5px solid var(--panel);
  font-size:28px;
  z-index:1;
}

.profile-identity .name {
  font-size:23px;
  letter-spacing:-.5px;
  font-weight:650;
  padding-bottom:3px;
}

.profile-identity .name .icon {
  color:var(--gold);
  width:16px;
  height:16px;
  margin-left:7px;
}

.profile-identity .level-tag {
  margin-left:auto;
  margin-bottom:5px;
  padding:5px 9px;
  border:1px solid #66523155;
  background:#eeb9680c;
  font-size:10px;
  color:#d5b273;
  border-radius:6px;
}

.profile-meta {
  display:flex;
  align-items:center;
  gap:8px;
  color:#929da0;
  font-size:11px;
  margin:6px 0 22px 88px;
}

.profile-meta .separator {
  color:#4e585b;
}

.profile-meta b {
  font-weight:400;
  color:#c8cece;
}

.level-row {
  display:flex;
  justify-content:space-between;
  color:#8c969a;
  font-size:10px;
  margin-top:22px;
}

.level-row b {
  color:#c9d0d2;
  font-weight:500;
}

.progress {
  appearance:none;
  display:block;
  width:100%;
  height:4px;
  margin-top:9px;
  border:none;
  border-radius:3px;
  overflow:hidden;
  background:#303637;
}

.progress::-webkit-progress-bar {
  background:#303637;
}

.progress::-webkit-progress-value {
  background:var(--gold);
  border-radius:3px;
}

.progress::-moz-progress-bar {
  background:var(--gold);
}

.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:20px;
}

.stat {
  border-radius:13px;
  background:#191c1e;
  border:1px solid var(--border);
  padding:18px 20px;
}

.stat .icon {
  color:#8f999b;
  width:16px;
  height:16px;
}

.stat-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
}

.stat-value {
  font-size:27px;
  letter-spacing:-.5px;
  margin-top:8px;
  line-height:1.4;
}

.stat-value .coin {
  vertical-align:3px;
  margin-left:3px;
  width:17px;
  height:17px;
  font-size:10px;
}

.stat-foot {
  font-size:10px;
  color:#819a8a;
  margin-top:4px;
}

.reward {
  padding:21px;
  display:flex;
  flex-direction:column;
}

.reward .icon-box {
  width:36px;
  height:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:var(--gold);
  background:#eeb96811;
  margin-bottom:18px;
}

.reward h2 {
  font-size:17px;
}

.reward p {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
  margin:8px 0 17px;
}

.reward-amount {
  font-size:34px;
  letter-spacing:-1px;
  margin:1px 0 19px;
}

.reward-amount span {
  font-size:11px;
  color:var(--muted);
  letter-spacing:0;
}

.reward .button {
  width:100%;
  margin-top:auto;
}

.reward-foot {
  text-align:center;
  font-size:9px;
  color:#6d797f;
  margin-top:10px;
}

.reward-secondary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--border);
  margin-top:19px;
  padding-top:15px;
  font-size:11px;
}

.reward-secondary .muted {
  font-size:10px;
}

.reward-secondary button {
  background:transparent;
  border:0;
  color:var(--gold);
  font-size:11px;
  padding:5px 0 5px 10px;
}

.section {
  margin-top:32px;
}

.section-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
  gap:15px;
}

.section-head p {
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
}

.text-link {
  display:flex;
  align-items:center;
  gap:6px;
  background:none;
  border:none;
  font-size:11px;
  color:#adbac0;
}

.text-link:hover {
  color:var(--gold);
}

.text-link .icon {
  width:15px;
  height:15px;
}

.cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
}

.product {
  overflow:hidden;
}

.product .art {
  height:117px;
}

.product .art .item-badge {
  position:absolute;
  top:11px;
  left:12px;
  background:#10161788;
  color:#cfdad6;
  backdrop-filter:blur(5px);
  border:1px solid #ffffff20;
  border-radius:4px;
  font-size:8px;
  padding:2px 6px;
  letter-spacing:.6px;
}

.product .art .item-heart {
  position:absolute;
  right:12px;
  top:10px;
  color:#cad7d6;
}

.item-heart .icon {
  width:14px;
  height:14px;
}

.product-body {
  padding:14px 16px 15px;
}

.product-title {
  font-size:12px;
  font-weight:600;
}

.product-description {
  font-size:10px;
  line-height:1.7;
  color:#939da1;
  min-height:34px;
  margin-top:5px;
}

.product-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:13px;
  gap:8px;
}

.price {
  display:flex;
  gap:6px;
  align-items:center;
  font-size:12px;
}

.price .coin {
  width:15px;
  height:15px;
  font-size:9px;
}

.product .button {
  padding:7px 10px;
  font-size:10px;
  background:#282e30;
  border-color:#383f41;
}

.product .button:hover {
  background:#373f42;
}

.product .button.primary {
  background:var(--gold);
  color:#292820;
}

.activity {
  padding:4px 22px;
}

.activity-row {
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 0;
  border-bottom:1px solid var(--border);
}

.activity-row:last-child {
  border:0;
}

.activity-symbol {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid #39463e;
  border-radius:9px;
  color:#a3cbb0;
  background:#608b6b0a;
}

.activity-symbol.negative {
  color:#caab89;
  border-color:#494035;
  background:#b3814a0a;
}

.activity-symbol .icon {
  width:15px;
  height:15px;
}

.activity-name {
  font-size:11px;
  font-weight:500;
}

.activity-date {
  font-size:9px;
  color:#7c898e;
  margin-top:2px;
}

.activity-amount {
  margin-left:auto;
  font-size:12px;
  color:#b2d4ba;
  white-space:nowrap;
}

.activity-amount.negative {
  color:#c6c6ba;
}

.footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--border);
  margin-top:33px;
  padding-top:17px;
  font-size:10px;
  color:#66747a;
}

.footer button {
  background:none;
  border:0;
  color:#899398;
  font-size:10px;
  cursor:pointer;
}

.toolbar {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin:25px 0 20px;
  flex-wrap:wrap;
}

.tabs {
  display:flex;
  background:#171b1d;
  border:1px solid var(--border);
  padding:4px;
  border-radius:10px;
  gap:3px;
  flex-wrap:wrap;
}

.tabs button {
  border:0;
  background:none;
  color:var(--muted);
  padding:7px 14px;
  border-radius:7px;
  font-size:11px;
}

.tabs button.active {
  background:#2b3133;
  color:#eee;
}

.search {
  background:#191e20;
  border:1px solid var(--border);
  border-radius:9px;
  color:var(--text);
  padding:10px 13px;
  min-width:205px;
  font-size:12px;
}

.shop-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.shop-grid .art {
  height:160px;
}

.shop-grid .product-title {
  font-size:14px;
}

.shop-grid .product-body {
  padding:17px;
}

.shop-grid .product-description {
  font-size:11px;
}

.empty {
  border:1px dashed #3c4447;
  border-radius:15px;
  padding:45px 25px;
  text-align:center;
  color:var(--muted);
  grid-column:1/-1;
}

.empty .icon {
  margin-bottom:12px;
  width:30px;
  height:30px;
}

.empty h2 {
  color:var(--text);
  margin-bottom:7px;
}

.empty p {
  font-size:12px;
}

.custom-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px;
}

.full-profile {
  width:100%;
  display:block;
  border-radius:15px;
  border:1px solid var(--border);
}

.custom-grid .profile-art {
  height:225px;
  border-radius:15px 15px 0 0;
}

.custom-options {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.background-option {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel);
  padding:10px;
  text-align:left;
  min-height:70px;
}

.background-option.active {
  border-color:#b38d51;
  background:#eeb9680a;
}

.background-option .art {
  width:76px;
  height:44px;
  border-radius:6px;
  flex-shrink:0;
}

.background-option .icon {
  width:16px;
  height:16px;
  margin-left:auto;
  color:var(--gold);
}

.background-option b {
  font-size:12px;
  font-weight:500;
}

.background-option .tiny {
  font-size:10px;
}

.custom-note {
  font-size:11px;
  color:var(--muted);
  margin-top:15px;
  line-height:1.8;
}

.page-intro {
  border:1px solid #66523355;
  border-radius:11px;
  background:#eeb96808;
  color:#a7a99e;
  font-size:11px;
  padding:12px 15px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:24px;
}

.page-intro .icon {
  width:16px;
  height:16px;
  color:var(--gold);
}

dialog {
  background:#1b2022;
  border:1px solid #3a4245;
  color:var(--text);
  border-radius:20px;
  padding:25px;
  max-width:640px;
  width:calc(100% - 30px);
  box-shadow:0 30px 100px #0008;
}

dialog::backdrop {
  background:#080b0dd9;
  backdrop-filter:blur(7px);
}

.modal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}

.close {
  border:0;
  background:#2c3335;
  border-radius:7px;
  width:29px;
  height:29px;
  color:#b2bcc0;
  display:grid;
  place-items:center;
}

.close .icon {
  width:16px;
  height:16px;
}

.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
  flex-wrap:wrap;
}

.modal-description {
  font-size:12px;
  color:#a0acb1;
  line-height:1.9;
  margin:12px 0;
}

.modal-art {
  height:215px;
  border-radius:13px;
}

.modal-art .preview-label {
  position:absolute;
  bottom:17px;
  left:19px;
  font-size:22px;
  color:#f1f7ff;
  text-shadow:0 2px 6px #162c4588;
  font-weight:650;
}

.modal-art .preview-label small {
  display:block;
  font-size:11px;
  font-weight:400;
  opacity:.8;
}

.modal-price {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid #353d40;
  padding-top:16px;
  margin-top:18px;
  font-size:13px;
}

.modal-price .price {
  font-size:17px;
}

.modal-hint {
  font-size:10px;
  color:#7c898e;
  margin-top:8px;
}

.error {
  color:#e5bca3;
  font-size:12px;
  margin-top:12px;
}

.input-label {
  display:block;
  font-size:11px;
  color:#9ba6ab;
  margin:17px 0 7px;
}

.modal-body input {
  width:100%;
}

.commands {
  max-height:60vh;
  overflow:auto;
  margin-top:20px;
}

.command-row {
  display:flex;
  align-items:center;
  gap:15px;
  border-top:1px solid var(--border);
  padding:12px 0;
}

.command-row code {
  font-size:12px;
  color:var(--gold);
}

.command-row p {
  font-size:10px;
  color:var(--muted);
  margin-top:2px;
}

.command-row button {
  margin-left:auto;
  flex-shrink:0;
}

.toast {
  position:fixed;
  bottom:28px;
  left:calc(50% + 90px);
  transform:translate(-50%,25px);
  opacity:0;
  pointer-events:none;
  z-index:20;
  background:#283930;
  border:1px solid #4a6450;
  border-radius:10px;
  padding:13px 19px;
  color:#d7e4d9;
  font-size:12px;
  transition:.2s;
  max-width:90vw;
  box-shadow:0 10px 30px #0005;
}

.toast.visible {
  opacity:1;
  transform:translate(-50%,0);
}

.toast.bad {
  background:#3a2a25;
  border-color:#79523e;
  color:#e7cec0;
}

.login-screen {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:24px;
  text-align:center;
}

.login-screen p {
  max-width:42ch;
  color:var(--muted);
}

.mobile-brand {
  display:none;
}

.history-info {
  margin-top:14px;
  font-size:11px;
  color:var(--muted);
}

.notice {
  margin-bottom:18px;
  padding:12px 15px;
  border:1px solid #6f5240;
  border-radius:9px;
  color:#d9bba8;
  font-size:12px;
}

@media(min-width:1500px) {
  .content {
    padding-top:47px;
  }
  .profile-art {
    height:225px;
  }
  .product .art {
    height:145px;
  }
  .shop-grid .art {
    height:180px;
  }
}

@media(max-width:1200px) {
  .layout {
    grid-template-columns:212px minmax(0,1fr);
  }
  .sidebar {
    width:212px;
    padding-left:13px;
    padding-right:13px;
  }
  .content {
    padding:30px 28px;
  }
  .topbar {
    padding:0 28px;
  }
  .grid {
    grid-template-columns:minmax(0,1fr) 246px;
    gap:16px;
  }
  .cards {
    gap:12px;
  }
  .profile-art {
    height:170px;
  }
  .profile-body {
    padding-left:20px;
    padding-right:20px;
  }
  .stat {
    padding:15px;
  }
  .product-bottom {
    flex-wrap:wrap;
  }
  .profile-identity .name {
    font-size:20px;
  }
  .profile-meta {
    margin-left:0;
  }
  .toast {
    left:calc(50% + 80px);
  }
}

@media(max-width:980px) {
  .grid {
    grid-template-columns:1fr;
  }
  .reward {
    display:grid;
    grid-template-columns:1fr auto;
    column-gap:20px;
  }
  .reward .icon-box,.reward p,.reward-foot {
    display:none;
  }
  .reward h2 {
    font-size:15px;
  }
  .reward-amount {
    grid-column:1;
    margin:5px 0 0;
    font-size:26px;
  }
  .reward>.button {
    grid-column:2;
    grid-row:1/3;
    align-self:center;
    margin:0;
  }
  .reward-secondary {
    grid-column:1/3;
    margin-top:14px;
  }
  .custom-grid {
    grid-template-columns:1fr;
  }
  .profile-meta {
    margin-left:88px;
  }
  .shop-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cards .art {
    height:105px;
  }
  .page-head h1 {
    font-size:28px;
  }
  .page-head p {
    max-width:320px;
  }
  .balance-pill {
    display:none;
  }
}

@media(max-width:700px) {
  .layout {
    display:block;
  }
  .sidebar {
    position:static;
    width:auto;
    border:0;
    padding:0;
    display:block;
    background:transparent;
  }
  .brand,.server-box,.sidebar-bottom,.nav-group {
    display:none;
  }
  .nav {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:8;
    border-top:1px solid var(--border);
    background:#171c1ef5;
    backdrop-filter:blur(12px);
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:2px;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom));
  }
  .nav button {
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:9px;
    padding:7px 5px;
    text-align:center;
  }
  .nav.nav-ai {
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  .nav button[data-action=commands] {
    display:none;
  }
  .nav .count {
    display:none;
  }
  .main {
    margin:0;
  }
  .topbar {
    height:65px;
    padding:0 20px;
  }
  .breadcrumb {
    display:none;
  }
  .mobile-brand {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:18px;
    font-weight:650;
  }
  .mobile-brand .brand-mark {
    width:28px;
    height:28px;
    font-size:18px;
    border-radius:8px;
  }
  .top-actions {
    gap:8px;
  }
  .top-actions .button {
    font-size:10px;
    padding:8px 11px;
  }
  .tag {
    font-size:8px;
    padding:3px 5px;
  }
  .content {
    padding:25px 20px 95px;
  }
  .page-head {
    margin-bottom:23px;
    align-items:flex-start;
  }
  .page-head .button {
    padding:8px 10px;
    font-size:10px;
  }
  .page-head h1 {
    font-size:26px;
  }
  .page-head p {
    font-size:11px;
    margin-top:7px;
  }
  .profile-art {
    height:165px;
  }
  .profile-body {
    padding:0 18px 20px;
  }
  .profile-identity .name {
    font-size:20px;
  }
  .profile-identity .level-tag {
    font-size:8px;
  }
  .profile-meta {
    margin:9px 0 15px;
    font-size:10px;
  }
  .stats {
    gap:8px;
    margin-top:13px;
  }
  .stat {
    padding:13px 11px;
  }
  .stat-top {
    font-size:8px;
  }
  .stat-value {
    font-size:23px;
  }
  .stat-foot {
    font-size:8px;
  }
  .stat .icon {
    width:13px;
    height:13px;
  }
  .section {
    margin-top:27px;
  }
  .section-head h2 {
    font-size:17px;
  }
  .section-head p {
    font-size:10px;
  }
  .cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .home-cards .product:last-child {
    display:none;
  }
  .product-body {
    padding:13px;
  }
  .product .art {
    height:105px;
  }
  .product-title {
    font-size:11px;
  }
  .product-description {
    font-size:10px;
    min-height:34px;
  }
  .product .button {
    padding:7px 9px;
    font-size:9px;
  }
  .price {
    font-size:11px;
  }
  .activity {
    padding:3px 15px;
  }
  .activity-name {
    font-size:10px;
  }
  .activity-date {
    font-size:8px;
  }
  .activity-amount {
    font-size:11px;
  }
  .footer {
    font-size:9px;
  }
  .footer span:last-child {
    display:none;
  }
  .search {
    width:100%;
    min-width:0;
  }
  .toolbar {
    gap:12px;
  }
  .tabs {
    width:100%;
    justify-content:space-between;
  }
  .tabs button {
    padding:7px 10px;
    font-size:10px;
  }
  .shop-grid .art {
    height:120px;
  }
  .shop-grid .product-title {
    font-size:12px;
  }
  .shop-grid .product-body {
    padding:13px;
  }
  .shop-grid .product-description {
    font-size:10px;
  }
  .toast {
    bottom:91px;
    left:50%;
    width:max-content;
    max-width:90vw;
  }
  .modal-art {
    height:165px;
  }
  .modal-head h2 {
    font-size:17px;
  }
  .page-intro {
    font-size:10px;
  }
  .page-head>.button .icon {
    display:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
