/* The Plaza world's skin (plaza.js draws the plaza; theme-boot.js puts <html data-world="plaza" data-wcol="blue|white|pink|black">).
   Balanced, as the owner chose: friendly rounded type, glossy pill buttons, tabs and switches with springy hovers, menus that
   pop open like folders, while cards, charts and tables stay calm on near-solid panels so the numbers read easily.
   Colourways set the accent; night is the site's dark mode. Nothing here moves layout: rest states only change paint, and
   anything that moves is a transform. */
html[data-world="plaza"] {
  --body: "M PLUS Rounded 1c", "Lexend", system-ui, sans-serif;
  --pz-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.8%, 1.06 23.1%, 1.075 26.3%, 1.065 30.3%, 1.01 41%, .995 47.4%, 1.001 63.9%, 1);
  --pz-acc: #2f7fd4; --pz-hi: #8ccbff; --pz-lo: #2668b4; --pz-ring: #35beed;
  --w-sheet: 34%; --w-card: 94%;  /* (a thin sheet between the cards, so the plaza shows in the gaps; the cards stay near-solid) */
  background: #cfe8ff;
}
html[data-world="plaza"][data-wglass="frost"] main#app::before { -webkit-backdrop-filter: blur(1.5px) saturate(1.05); backdrop-filter: blur(1.5px) saturate(1.05); }
html[data-world="plaza"][data-wglass="solid"] { --w-sheet: 70%; --w-card: 97%; }
html[data-world="plaza"][data-wcol="white"] { --pz-acc: #3f6fb0; --pz-hi: #a9c6ec; --pz-lo: #345d96; --pz-ring: #7fb2ec; background: #f2f5f9; }
html[data-world="plaza"][data-wcol="pink"] { --pz-acc: #c23a7e; --pz-hi: #ff9fcb; --pz-lo: #a42f69; --pz-ring: #ff7ab8; background: #ffe6f2; }
html[data-world="plaza"][data-wcol="black"] { --pz-acc: #4a8fe0; --pz-hi: #8ab9f0; --pz-lo: #2f6cb6; --pz-ring: #6fb6ff; background: #1d2431; }
html[data-world="plaza"][data-theme="dark"] { --pz-acc: #5aa8ff; --pz-hi: #9fd0ff; --pz-lo: #2f6cb6; background: #10172b; --w-sheet: 40%; --w-card: 93%; }
html[data-world="plaza"][data-theme="dark"][data-wcol="pink"] { --pz-acc: #ff7ab8; --pz-hi: #ffb6d8; --pz-lo: #c23a7e; }
html[data-world="plaza"] { --accent: var(--pz-acc); }
html[data-world="plaza"] body { font-family: var(--body); }
html[data-world="plaza"] h1, html[data-world="plaza"] h2, html[data-world="plaza"] h3 { font-weight: 800; letter-spacing: -.01em; }

/* cards: rounder and calm (near-solid, so charts and tables stay crisp) */
html[data-world="plaza"] .card:not(.inner) { border-radius: 22px; box-shadow: inset 0 1px 0 #ffffffa8, 0 14px 30px -18px #0007; border-color: transparent; }
html[data-world="plaza"][data-theme="dark"] .card:not(.inner) { box-shadow: inset 0 1px 0 #ffffff1c, 0 14px 30px -18px #000; }

/* glossy pill buttons: body, a gloss lens on top, a white rim, a soft drop; hover lifts on a spring, press squashes */
html[data-world="plaza"] .btn { position: relative; border: 0; border-radius: 999px; color: #fff; font-weight: 800; isolation: isolate;
  background: linear-gradient(var(--pz-hi), var(--pz-acc) 50%, var(--pz-lo) 51%, var(--pz-acc));
  box-shadow: inset 0 1px 0 #ffffffcc, inset 0 0 0 1px #ffffff55, 0 1px 1px #0002, 0 8px 16px -8px #0007;
  transition: transform .45s var(--pz-spring), filter .15s; }
html[data-world="plaza"] .btn::before { content: ""; position: absolute; inset: 2px 8% 50%; border-radius: inherit; background: linear-gradient(#ffffffd0, #fff0); pointer-events: none; z-index: -1; }
html[data-world="plaza"] .btn.ghost, html[data-world="plaza"] .btn.sm.ghost { color: var(--text); background: linear-gradient(#ffffff, #e9eff7);
  box-shadow: inset 0 0 0 2px #cdd9e8, 0 3px 0 #b9c7da; }
html[data-world="plaza"][data-theme="dark"] .btn.ghost { background: linear-gradient(#2c3650, #1f2840); box-shadow: inset 0 0 0 2px #3a4766, 0 3px 0 #141a2a; }
html[data-world="plaza"] .btn:hover:not(:disabled), html[data-world="plaza"] .icon-btn:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.05); }
html[data-world="plaza"] .btn:active:not(:disabled), html[data-world="plaza"] .icon-btn:active { transform: translateY(1px) scale(.96); transition-duration: 40ms; }
html[data-world="plaza"] .btn:focus-visible, html[data-world="plaza"] .seg button:focus-visible, html[data-world="plaza"] .tabs a:focus-visible { outline: 3px solid var(--pz-ring); outline-offset: 3px; }

/* round icon buttons (bell, light/dark, account) */
html[data-world="plaza"] .icon-btn, html[data-world="plaza"] .acct-btn { border-radius: 50%; background: linear-gradient(#ffffff, #e4ecf6); box-shadow: inset 0 0 0 2px #cdd9e8, 0 3px 0 #b9c7da;
  transition: transform .45s var(--pz-spring); }
html[data-world="plaza"][data-theme="dark"] .icon-btn, html[data-world="plaza"][data-theme="dark"] .acct-btn { background: linear-gradient(#2c3650, #1f2840); box-shadow: inset 0 0 0 2px #3a4766, 0 3px 0 #141a2a; }

/* switches (segmented controls) and the main tabs: glossy pills, the chosen one lit */
html[data-world="plaza"] .seg { background: linear-gradient(#eef3f9, #dfe8f3); box-shadow: inset 0 1px 2px #0002; border-color: #cdd9e8; }
html[data-world="plaza"][data-theme="dark"] .seg { background: linear-gradient(#1b2236, #141a2b); border-color: #2f3a55; }
html[data-world="plaza"] .seg button { transition: transform .45s var(--pz-spring), background .15s; }
html[data-world="plaza"] .seg button:hover { transform: translateY(-1px); }
html[data-world="plaza"] .seg button.on { color: #fff; background: linear-gradient(var(--pz-hi), var(--pz-acc) 52%, var(--pz-lo)); box-shadow: inset 0 1px 0 #ffffffb0, 0 3px 8px -3px #0006; }
html[data-world="plaza"] header.top { border-radius: 0 0 22px 22px; box-shadow: inset 0 -1px 0 #ffffff60, 0 10px 24px -18px #0008; }
html[data-world="plaza"] .tabs a, html[data-world="plaza"] .tabs summary { border-radius: 999px; transition: transform .45s var(--pz-spring), background .15s; }
html[data-world="plaza"] .tabs a:hover, html[data-world="plaza"] .tabs summary:hover { transform: translateY(-1px); }
html[data-world="plaza"] .tabs a.on, html[data-world="plaza"] .tabs a[aria-current="page"] { color: #fff; background: linear-gradient(var(--pz-hi), var(--pz-acc) 52%, var(--pz-lo)); box-shadow: inset 0 1px 0 #ffffffb0, 0 3px 8px -3px #0006; }

/* inputs: soft rounded wells */
html[data-world="plaza"] input:not([type=checkbox]):not([type=radio]):not([type=range]), html[data-world="plaza"] select, html[data-world="plaza"] textarea {
  border-radius: 14px; box-shadow: inset 0 2px 3px #00000014; }
html[data-world="plaza"] .search input { border-radius: 999px; }

/* menus open like 3DS folders: a quick pop from where they hang */
html[data-world="plaza"] details[open] > .more-menu, html[data-world="plaza"] details[open] > .acct-pop { border-radius: 18px; transform-origin: top left;
  animation: pz-folder .38s var(--pz-spring); box-shadow: inset 0 1px 0 #ffffffa0, 0 18px 36px -16px #0008; }
@keyframes pz-folder { from { opacity: 0; transform: translateY(-6px) scale(.86); } }

/* tables: calm, with the plaza's accent on the header line */
html[data-world="plaza"] th { font-weight: 800; }

/* the status cluster plaza.js puts in the header */
.pz-stat { display: none; }
html[data-world="plaza"] .pz-stat { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 13px;
  color: var(--text); background: linear-gradient(#ffffffd8, #eef3f9d8); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #cdd9e8; white-space: nowrap; }
html[data-world="plaza"][data-theme="dark"] .pz-stat { background: linear-gradient(#273047, #1c2337); box-shadow: inset 0 1px 0 #ffffff14, inset 0 0 0 1px #34405c; }
.pz-date { color: var(--muted); }
.pz-batt b { display: inline-block; position: relative; width: 24px; height: 11px; border: 2px solid currentColor; border-radius: 3px; color: #46b45a; vertical-align: -1px; }
.pz-batt b::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 3px; background: currentColor; border-radius: 0 1px 1px 0; }
.pz-batt i { position: absolute; left: 1px; top: 1px; bottom: 1px; background: currentColor; border-radius: 1px; }
.pz-batt i[data-low="1"] { background: #e05050; }
.pz-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.pz-bars i { width: 3px; background: var(--pz-acc); border-radius: 1px; }
.pz-bars i:nth-child(1) { height: 4px; } .pz-bars i:nth-child(2) { height: 7px; } .pz-bars i:nth-child(3) { height: 10px; } .pz-bars i:nth-child(4) { height: 12px; }
.pz-bars i.off { opacity: .25; }
@media (max-width: 1100px) { html[data-world="plaza"] .pz-date { display: none; } }
@media (max-width: 860px) { html[data-world="plaza"] .pz-stat { display: none; } }

/* the plaza behind the page */
.pz-bg { transition: opacity .6s; opacity: 0; }
.pz-bg.on { opacity: 1; }
.pz-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* the owl-wing pointer (desktop): the system pointer comes back over text you type in */
html[data-pzcursor], html[data-pzcursor] * { cursor: none !important; }
html[data-pzcursor] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]), html[data-pzcursor] textarea, html[data-pzcursor] [contenteditable] { cursor: text !important; }
.pz-wing { position: fixed; left: 0; top: 0; width: 34px; height: 34px; pointer-events: none; z-index: 2147483000; transform-origin: 6px 4px; filter: drop-shadow(0 3px 2px #0005);
  shape-rendering: crispEdges; transition: opacity .12s; }

/* the Settings card's preview of the Plaza (no pixel art: a little plaza in CSS) */
.pz-pv { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, #fff8 0 5px, transparent 6px) 0 0/22px 22px, linear-gradient(#7cc0ff, #e4f3ff 60%, #a9d6ff 60%); }
.pz-pv i { position: absolute; bottom: 14%; width: 9%; height: 26%; background: linear-gradient(#f5cd30 0 30%, #e04848 30% 64%, #2c5aa0 64%); border-radius: 2px; }
.pz-pv i:nth-child(1) { left: 22%; } .pz-pv i:nth-child(2) { left: 46%; bottom: 22%; background: linear-gradient(#f5cd30 0 30%, #3aa55a 30% 64%, #3b3f4a 64%); } .pz-pv i:nth-child(3) { left: 70%; background: linear-gradient(#f5cd30 0 30%, #8a5ad0 30% 64%, #2c5aa0 64%); }

@media (prefers-reduced-motion: reduce) {
  html[data-world="plaza"] .btn, html[data-world="plaza"] .seg button, html[data-world="plaza"] .tabs a, html[data-world="plaza"] .icon-btn { transition: none; }
  html[data-world="plaza"] details[open] > .more-menu, html[data-world="plaza"] details[open] > .acct-pop { animation: none; }
}
