:root {
  --ink: #182033;
  --muted: #59657a;
  --shadow: 0 24px 70px rgba(31, 41, 55, .22), inset 0 1px 0 rgba(255,255,255,.7);
  --soft-shadow: 0 12px 30px rgba(31, 41, 55, .13), inset 0 1px 0 rgba(255,255,255,.68);
  --blue: #2f6df6;
  --green: #10b981;
  --orange: #ff8a22;
  --purple: #8b5cf6;
  --red: #ef4444;
  --dock-h: 96px;
  --dock-peek: 18px;
  --dock-open-bottom: 16px;
  --dock-closed-y: calc(100% - var(--dock-peek));
  --side-w: 310px;
  --panel-toggle-w: 42px;
  --content-scale: 1;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 235, 59, .75), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(0, 188, 212, .46), transparent 28%),
    radial-gradient(circle at 64% 82%, rgba(236, 72, 153, .38), transparent 30%),
    radial-gradient(circle at 20% 82%, rgba(34, 197, 94, .30), transparent 28%),
    linear-gradient(135deg, #fff7ad, #b7e6ff 48%, #f8b4ff);
  user-select: none;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.42) 0 2px, transparent 3px), linear-gradient(120deg, rgba(255,255,255,.18), transparent 38%, rgba(255,255,255,.14));
  background-size: 46px 46px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.16));
}
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }

#app { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr var(--dock-h); }
#desktop { position: relative; grid-column: 1 / 2; grid-row: 1 / 3; overflow: hidden; padding: 18px 18px calc(var(--dock-peek) + 28px); }
.brand { position: absolute; top: 18px; left: 20px; display: flex; align-items: center; gap: 12px; pointer-events: none; opacity: .98; }
.brand-mark, .item-icon, .dock-icon { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 8px 18px rgba(15,23,42,.14); }
.brand-mark::after, .item-icon::after, .dock-icon::after { content: ""; position: absolute; inset: 3px 4px auto 4px; height: 38%; border-radius: inherit; background: linear-gradient(to bottom, rgba(255,255,255,.72), rgba(255,255,255,.08)); pointer-events: none; }
.brand-mark { width: 50px; height: 50px; border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(255,255,255,.10)), linear-gradient(135deg, #2563eb, #7c3aed 58%, #ec4899); color: white; display: grid; place-items: center; font-size: 25px; }
.brand h1 { margin: 0; font-size: 23px; line-height: 1.05; text-shadow: none; }
.brand p { margin: 3px 0 0; font-size: 13px; color: #374151; font-weight: 650; text-shadow: none; }

.desktop-hint { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(560px, 70vw); padding: 30px; border-radius: 32px; border: 1px solid rgba(255,255,255,.62); background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.34)), linear-gradient(135deg, rgba(37,99,235,.18), rgba(236,72,153,.13)); text-align: center; color: #475569; pointer-events: none; backdrop-filter: blur(18px) saturate(1.45); box-shadow: var(--soft-shadow); }
.desktop-hint strong { display: block; color: var(--ink); font-size: 26px; margin-bottom: 8px; }

#rightPanel { position: fixed; top: 0; right: 0; bottom: 0; width: var(--side-w); z-index: 70; border-left: 1px solid rgba(255,255,255,.64); background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(255,255,255,.45)), linear-gradient(180deg, rgba(125,211,252,.28), rgba(244,114,182,.18)); backdrop-filter: blur(24px) saturate(1.55); box-shadow: -16px 0 45px rgba(31,41,55,.14), inset 1px 0 0 rgba(255,255,255,.52); display: flex; flex-direction: column; min-width: 0; transition: transform .25s ease; will-change: transform; }
.panel-header { padding: 18px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.58); }
.panel-header h2 { margin: 0; font-size: 20px; }
.panel-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.panel-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 8px; }
.panel-tab { padding: 10px; border-radius: 16px; background: rgba(255,255,255,.55); color: #334155; font-weight: 800; border: 1px solid rgba(255,255,255,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 5px 14px rgba(15,23,42,.05); }
.panel-tab.active { background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.08)), linear-gradient(135deg, #2563eb, #8b5cf6); color: white; }
.panel-body { padding: 10px 14px 120px; overflow: auto; }
.section-title { margin: 14px 4px 8px; color: #334155; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; }

.tool-accordion { margin: 10px 0 12px; border-radius: 24px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.30)); border: 1px solid rgba(255,255,255,.66); box-shadow: 0 10px 24px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.35); }
.tool-accordion-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; color: #243044; text-align: left; background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(255,255,255,.38)), linear-gradient(90deg, rgba(59,130,246,.14), rgba(236,72,153,.10)); border-bottom: 1px solid transparent; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.tool-accordion.open .tool-accordion-header { border-bottom-color: rgba(255,255,255,.58); background: linear-gradient(145deg, rgba(255,255,255,.35), rgba(255,255,255,.08)), linear-gradient(135deg, #2563eb, #8b5cf6); color: white; }
.accordion-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.accordion-dot { width: 13px; height: 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px rgba(15,23,42,.12); flex: 0 0 auto; }
.accordion-count { margin-left: auto; margin-right: 4px; min-width: 24px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.58); color: #334155; font-size: 12px; font-weight: 950; border: 1px solid rgba(255,255,255,.62); }
.tool-accordion.open .accordion-count { background: rgba(255,255,255,.24); color: white; }
.accordion-chevron { display: inline-block; font-size: 18px; line-height: 1; transition: transform .18s ease; }
.tool-accordion.open .accordion-chevron { transform: rotate(90deg); }
.tool-accordion-body { display: grid; gap: 7px; max-height: 0; overflow: hidden; padding: 0 8px; transition: max-height .24s ease, padding .24s ease; }
.tool-accordion.open .tool-accordion-body { max-height: 760px; padding: 8px; }

.library-item, .saved-item, .dock-manage-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px; margin: 7px 0; border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.66); box-shadow: 0 7px 18px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.85); text-align: left; color: var(--ink); transition: transform .13s ease, box-shadow .13s ease; }
.library-item:hover, .saved-item:hover, .dock-manage-item:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 32px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.9); }
.library-item.has-action { padding: 8px; }
.library-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 3px; background: transparent; color: var(--ink); text-align: left; }
.dock-actions { display: flex; gap: 6px; margin-left: auto; }
.dock-action { width: 34px; height: 34px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.62); color: #334155; font-weight: 950; border: 1px solid rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 4px 10px rgba(15,23,42,.06); }
.dock-action:hover { background: rgba(255,255,255,.90); }
.dock-action.active { color: white; background: linear-gradient(135deg, #16a34a, #22c55e); }
.dock-action.danger:hover { background: #fee2e2; color: #b91c1c; }
.dock-manage-item { cursor: grab; }
.dock-manage-item.dragging { opacity: .52; transform: scale(.98); }
.dock-list-placeholder { height: 52px; border-radius: 18px; border: 2px dashed rgba(37,99,235,.48); background: rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); margin: 7px 0; }
.dock-empty { padding: 12px; border-radius: 18px; background: rgba(255,255,255,.50); color: var(--muted); font-weight: 750; border: 1px dashed rgba(51,65,85,.25); }
.item-icon { width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; color: white; font-size: 22px; flex: 0 0 auto; }
.item-main { min-width: 0; flex: 1; display: grid; gap: 3px; align-content: center; overflow: hidden; }
.item-title { display: block; font-weight: 900; line-height: 1.08; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { margin-top: 0; font-size: 12px; line-height: 1.25; color: var(--muted); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

#dock { position: fixed; left: 18px; right: 18px; bottom: var(--dock-open-bottom); height: 76px; z-index: 40; border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.38)), linear-gradient(90deg, rgba(59,130,246,.22), rgba(236,72,153,.18), rgba(250,204,21,.20)); backdrop-filter: blur(24px) saturate(1.7); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 58px 10px 10px; transition: right .25s ease, transform .24s ease, opacity .18s ease; transform: translateY(var(--dock-closed-y)); will-change: transform; }
#dock:hover, body.dock-open #dock { transform: translateY(0); }
body.dock-open .dock-chevron { transform: translateY(-50%) rotate(180deg); }
.dock-chevron { position: absolute; right: 14px; top: 50%; width: 34px; height: 34px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.58)); color: #1e293b; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 7px 16px rgba(15,23,42,.10); font-size: 20px; font-weight: 950; transform: translateY(-50%); transition: transform .24s ease, background .16s ease; touch-action: manipulation; z-index: 2; }
.dock-chevron:hover { background: rgba(255,255,255,.96); }
.dock-btn { height: 58px; min-width: 74px; padding: 8px 11px; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.56)); color: var(--ink); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 8px 22px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.92); display: flex; align-items: center; gap: 9px; font-weight: 900; touch-action: none; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; position: relative; cursor: pointer; }
.dock-btn:hover { transform: translateY(-4px) scale(1.03); }
.dock-btn.dragging { opacity: .46; transform: scale(.96); }
.dock-btn.dock-drop-target { transform: translateY(-6px) scale(1.06); box-shadow: 0 18px 36px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.95); }
.dock-placeholder { height: 58px; min-width: 86px; border-radius: 22px; border: 2px dashed rgba(37,99,235,.55); background: rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 22px rgba(37,99,235,.10); flex: 0 0 92px; transition: all .16s ease; }
.dock-remove { width: 20px; height: 20px; margin-left: -3px; margin-right: -3px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.62); color: #64748b; font-size: 14px; line-height: 1; font-weight: 950; border: 1px solid rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 3px 8px rgba(15,23,42,.08); }
.dock-remove:hover { background: #fee2e2; color: #b91c1c; }
.dock-icon { width: 39px; height: 39px; border-radius: 16px; color: white; display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }

.window { position: absolute; min-width: 260px; min-height: 190px; background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,255,255,.62)); border: 1px solid rgba(255,255,255,.70); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; resize: both; display: flex; flex-direction: column; user-select: none; backdrop-filter: blur(20px) saturate(1.55); }
.window::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(130deg, rgba(255,255,255,.55), transparent 38%, rgba(255,255,255,.18) 72%, transparent); opacity: .7; z-index: 0; }
.window > * { position: relative; z-index: 1; }
.window.minimized { display: none; }
.window-titlebar { height: 50px; padding: 8px 10px 8px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.55); background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.36)), linear-gradient(90deg, rgba(96,165,250,.18), rgba(244,114,182,.13)); cursor: grab; flex: 0 0 auto; touch-action: none; }
.window-title { flex: 1; font-weight: 950; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-action { width: 31px; height: 31px; border-radius: 13px; background: rgba(255,255,255,.62); color: #334155; font-weight: 950; border: 1px solid rgba(255,255,255,.64); }
.win-action.close:hover { background: #fee2e2; color: #b91c1c; }
.window-content { flex: 1; min-height: 0; padding: 0; overflow: auto; user-select: text; }
.content-scale-inner { padding: 16px; transform: scale(var(--content-scale)); transform-origin: top left; width: calc(100% / var(--content-scale)); min-height: calc(100% / var(--content-scale)); }
.minimized-strip { position: fixed; left: 24px; bottom: 102px; right: 24px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 45; pointer-events: none; transition: right .25s ease; }
.mini-pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(37,99,235,.82)); color: white; box-shadow: var(--soft-shadow); font-weight: 900; border: 1px solid rgba(255,255,255,.25); }

.tool-form { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field { display: grid; gap: 5px; flex: 1; min-width: 90px; }
label { font-size: 12px; color: #475569; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
input, textarea, select { width: 100%; border: 1px solid rgba(255,255,255,.74); background: rgba(248,250,252,.72); color: var(--ink); border-radius: 16px; padding: 10px 12px; outline: none; user-select: text; box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 4px 12px rgba(15,23,42,.05); }
textarea { min-height: 120px; resize: vertical; }
.primary, .secondary, .danger { border-radius: 16px; padding: 10px 15px; font-weight: 950; border: 1px solid rgba(255,255,255,.52); box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 8px 18px rgba(15,23,42,.10); }
.primary { background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.05)), linear-gradient(135deg, var(--blue), var(--purple)); color: white; }
.secondary { background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(226,232,240,.62)); color: #1e293b; }
.danger { background: linear-gradient(145deg, #fff, #fee2e2); color: #b91c1c; }
.big-display, .picker-result { display: grid; place-items: center; border-radius: 24px; color: white; font-weight: 950; text-align: center; padding: 16px; border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 12px 28px rgba(37,99,235,.20); }
.big-display { min-height: 112px; font-size: clamp(42px, 8vw, 86px); letter-spacing: .02em; font-variant-numeric: tabular-nums; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.03)), radial-gradient(circle at 20% 15%, rgba(255,255,255,.35), transparent 24%), linear-gradient(135deg, #0f172a, #2563eb 58%, #7c3aed); }
.picker-result { min-height: 96px; font-size: clamp(24px, 5vw, 52px); word-break: break-word; background: linear-gradient(145deg, rgba(255,255,255,.26), rgba(255,255,255,.04)), radial-gradient(circle at 20% 15%, rgba(255,255,255,.38), transparent 25%), linear-gradient(135deg, #ec4899, #8b5cf6 46%, #2563eb); }
.muted-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.drop-ghost { position: fixed; z-index: 9999; pointer-events: none; padding: 10px 13px; border-radius: 17px; background: linear-gradient(145deg, rgba(255,255,255,.26), rgba(255,255,255,.08)), linear-gradient(135deg, rgba(15,23,42,.92), rgba(37,99,235,.86)); color: white; box-shadow: var(--shadow); font-weight: 950; border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(12px) saturate(1.5); }

.bg-cog, .size-cog { position: fixed; top: 18px; z-index: 55; width: 46px; height: 46px; border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.46)), linear-gradient(135deg, rgba(59,130,246,.20), rgba(236,72,153,.16)); border: 1px solid rgba(255,255,255,.74); box-shadow: var(--soft-shadow); backdrop-filter: blur(16px) saturate(1.5); font-size: 22px; transition: transform .15s ease, right .25s ease; }
.bg-cog { right: calc(var(--side-w) + 22px); }
.size-cog { right: calc(var(--side-w) + 76px); }
.bg-cog:hover { transform: translateY(-1px) rotate(18deg); }
.size-cog:hover { transform: translateY(-1px) scale(1.06); }
.size-config { position: fixed; top: 72px; right: calc(var(--side-w) + 76px); z-index: 56; width: 206px; padding: 12px; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(1.55); transition: right .25s ease; }
.size-choice { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 9px 10px; margin: 5px 0; border-radius: 14px; background: rgba(255,255,255,.58); color: #334155; font-weight: 850; border: 1px solid rgba(255,255,255,.58); }
.size-choice.active { background: linear-gradient(135deg, #2563eb, #8b5cf6); color: white; }
body.size-small { --content-scale: .76; }
body.size-large { --content-scale: 1.18; }
body.size-small .content-scale-inner { padding: 12px; }
body.size-large .content-scale-inner { padding: 18px; }
body.size-small .window { min-width: 220px; min-height: 150px; }
body.size-large .window { min-width: 310px; min-height: 230px; }
.bg-config { position: fixed; top: 72px; right: calc(var(--side-w) + 22px); z-index: 56; width: 184px; padding: 12px; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(1.55); transition: right .25s ease; }
.bg-config-title { font-weight: 950; margin: 2px 4px 9px; color: var(--ink); }
.bg-choice { width: 100%; display: block; text-align: left; padding: 9px 10px; margin: 5px 0; border-radius: 14px; background: rgba(255,255,255,.58); color: #334155; font-weight: 850; border: 1px solid rgba(255,255,255,.58); }
.bg-choice.active { background: linear-gradient(135deg, #2563eb, #8b5cf6); color: white; }
.panel-toggle { position: fixed; top: 50%; right: var(--side-w); transform: translate(50%, -50%); z-index: 80; width: var(--panel-toggle-w); height: 72px; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.38)), linear-gradient(135deg, #2563eb, #8b5cf6); color: white; border: 1px solid rgba(255,255,255,.62); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(1.45); font-size: 34px; line-height: 1; font-weight: 900; transition: right .25s ease, transform .25s ease, border-radius .25s ease; }
.panel-toggle .chevron { display: inline-block; transition: transform .25s ease; }
body.panel-collapsed #rightPanel { transform: translateX(var(--side-w)); }
body.panel-collapsed .panel-toggle { right: 0; transform: translate(0, -50%); }
body.panel-collapsed .panel-toggle .chevron { transform: rotate(180deg); }
body.panel-collapsed #dock, body.panel-collapsed .minimized-strip { right: 18px; }
body.panel-collapsed .bg-cog, body.panel-collapsed .bg-config { right: 22px; }
body.panel-collapsed .size-cog, body.panel-collapsed .size-config { right: 76px; }

body.bg-sky { background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.72), transparent 20%), radial-gradient(circle at 76% 22%, rgba(125,211,252,.60), transparent 28%), linear-gradient(135deg, #dff7ff, #a7d8ff 55%, #dbeafe); }
body.bg-chalk { background: radial-gradient(circle at 20% 22%, rgba(255,255,255,.08), transparent 24%), radial-gradient(circle at 75% 72%, rgba(52,211,153,.12), transparent 28%), linear-gradient(135deg, #14362f, #1f5147 54%, #12332e); }
body.bg-sunset { background: radial-gradient(circle at 18% 20%, rgba(250,204,21,.62), transparent 24%), radial-gradient(circle at 76% 26%, rgba(244,114,182,.46), transparent 30%), linear-gradient(135deg, #ffe8a3, #ffb4a7 48%, #c4b5fd); }
body.bg-calm { background: radial-gradient(circle at 15% 14%, rgba(191,219,254,.48), transparent 28%), radial-gradient(circle at 82% 78%, rgba(187,247,208,.42), transparent 30%), linear-gradient(135deg, #f8fafc, #dbeafe 52%, #dcfce7); }

.draw-tool { height: 100%; min-height: 260px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.draw-toolbar, .calc-mode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.66), rgba(255,255,255,.30)); border: 1px solid rgba(255,255,255,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 16px rgba(15,23,42,.07); }
.draw-tool-btn, .calc-mode-btn, .calc-key { border-radius: 15px; padding: 10px 12px; font-weight: 950; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.45)); color: #243044; border: 1px solid rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 5px 12px rgba(15,23,42,.07); }
.draw-tool-btn.active, .calc-mode-btn.active, .calc-key.equals { color: white; background: linear-gradient(145deg, rgba(255,255,255,.30), rgba(255,255,255,.06)), linear-gradient(135deg, #2563eb, #8b5cf6); }
.draw-mini { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 15px; background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.62); text-transform: none; letter-spacing: 0; }
.draw-mini span { font-size: 12px; font-weight: 900; color: #475569; }
.draw-mini input[type="color"] { width: 34px; height: 30px; padding: 2px; border-radius: 10px; }
.draw-mini input[type="range"] { width: 92px; padding: 0; box-shadow: none; }
.draw-canvas { width: 100%; height: 100%; min-height: 190px; border-radius: 22px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 10px 22px rgba(15,23,42,.08); touch-action: none; user-select: none; }
.calc-tool { display: grid; gap: 10px; }
.calc-display { font-size: 28px; font-weight: 900; text-align: right; padding: 14px; border-radius: 20px; }
.calc-result { min-height: 50px; border-radius: 20px; display: flex; align-items: center; justify-content: flex-end; padding: 10px 14px; color: white; font-size: 24px; font-weight: 950; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), linear-gradient(135deg, #0f172a, #0ea5e9); border: 1px solid rgba(255,255,255,.42); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-grid, .calc-advanced { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-advanced { padding: 8px; border-radius: 20px; background: rgba(255,255,255,.34); border: 1px solid rgba(255,255,255,.56); }
.calc-key { min-height: 48px; font-size: 18px; }

.reminder-tool { display: grid; gap: 12px; }
.reminder-clock { display: grid; place-items: center; min-height: 78px; border-radius: 24px; color: white; font-size: 38px; font-weight: 950; font-variant-numeric: tabular-nums; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), linear-gradient(135deg, #78350f, #f59e0b); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 12px 28px rgba(245,158,11,.20); }
.reminder-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.reminder-chip { border-radius: 999px; padding: 8px 11px; font-weight: 900; color: #243044; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.46)); border: 1px solid rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 5px 12px rgba(15,23,42,.07); }
.reminder-chip.active { color: white; background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.05)), linear-gradient(135deg, #f59e0b, #ef4444); }
.reminder-list { display: grid; gap: 7px; }
.reminder-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 11px; border-radius: 18px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.reminder-item strong { font-size: 14px; }
.reminder-item span { color: var(--muted); font-size: 12px; }
.reminder-status { padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.50); border: 1px solid rgba(255,255,255,.62); color: #334155; font-weight: 850; }
.reminder-alert { animation: reminderPulse .7s ease-in-out 6; }
@keyframes reminderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

.clock-tool, .play-clock-tool { display: grid; gap: 14px; justify-items: center; align-content: start; }
.clock-tool [data-analog] { width: min(320px, 100%); display: grid; place-items: center; }
.clock-tool .clock-face { width: min(320px, 100%); }
.clock-face { width: min(270px, 100%); aspect-ratio: 1 / 1; border-radius: 50%; position: relative; background: radial-gradient(circle at 35% 24%, rgba(255,255,255,.96), rgba(255,255,255,.78) 44%, rgba(219,234,254,.76)); border: 7px solid rgba(255,255,255,.76); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -16px 34px rgba(37,99,235,.10), 0 14px 32px rgba(15,23,42,.14); }
.clock-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 18px; font-weight: 950; color: #1e293b; }
.clock-tick { position: absolute; width: 3px; height: 10px; border-radius: 999px; background: rgba(30,41,59,.54); transform-origin: 50% 50%; }
.clock-tick.major { width: 5px; height: 16px; background: rgba(30,41,59,.84); }
.clock-hand { position: absolute; left: 50%; top: 50%; transform-origin: 50% 100%; border-radius: 999px; box-shadow: 0 2px 4px rgba(15,23,42,.20); z-index: 4; }
.clock-hand.hour { width: 10px; height: 30%; margin-left: -5px; margin-top: -30%; background: linear-gradient(180deg, #1e293b, #475569); }
.clock-hand.minute { width: 7px; height: 39%; margin-left: -3.5px; margin-top: -39%; background: linear-gradient(180deg, #2563eb, #0f172a); }
.clock-hand.second { width: 3px; height: 42%; margin-left: -1.5px; margin-top: -42%; background: #ef4444; }
.clock-center { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); border: 3px solid white; box-shadow: 0 3px 8px rgba(15,23,42,.22); z-index: 5; }
.clock-digital { width: 100%; border-radius: 24px; padding: 16px; color: white; text-align: center; font-size: 42px; font-weight: 950; font-variant-numeric: tabular-nums; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), linear-gradient(135deg, #0f172a, #6366f1); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 12px 28px rgba(99,102,241,.20); }
.clock-toggle-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.clock-mode-btn { border-radius: 999px; padding: 9px 12px; font-weight: 950; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.45)); color: #243044; border: 1px solid rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 5px 12px rgba(15,23,42,.07); }
.clock-mode-btn.active { color: white; background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.05)), linear-gradient(135deg, #2563eb, #8b5cf6); }
.play-clock-tool [data-face] { width: min(340px, 100%); display: grid; place-items: center; margin-top: 2px; }
.play-clock-tool .clock-face { width: min(340px, 100%); }
.play-time { min-width: 150px; text-align: center; padding: 8px 16px; border-radius: 999px; color: white; font-size: 24px; font-weight: 950; font-variant-numeric: tabular-nums; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), linear-gradient(135deg, #0f766e, #14b8a6); border: 1px solid rgba(255,255,255,.42); box-shadow: 0 8px 18px rgba(20,184,166,.18); }
.clock-popup-backdrop { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(15,23,42,.42); backdrop-filter: blur(8px); }
.clock-popup { width: min(460px, calc(100vw - 32px)); padding: 24px; border-radius: 30px; text-align: center; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.68)); border: 1px solid rgba(255,255,255,.76); box-shadow: var(--shadow); }
.clock-popup h2 { margin: 0 0 8px; font-size: 32px; }
.clock-popup p { margin: 0 0 18px; color: #475569; font-size: 18px; font-weight: 800; }
.teams-tool { display: grid; gap: 12px; }
.teams-add-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.name-pill-row, .team-pill-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; min-height: 42px; padding: 10px; border-radius: 20px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.62); }
.name-pill, .member-pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 9px; border-radius: 999px; background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.52)); border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.84), 0 5px 12px rgba(15,23,42,.08); font-weight: 900; cursor: grab; }
.name-pill.dragging, .member-pill.dragging { opacity: .5; transform: scale(.96); }
.pill-handle { color: #64748b; font-weight: 950; cursor: grab; }
.pill-name { min-width: 28px; outline: none; }
.pill-name:focus { background: rgba(37,99,235,.12); border-radius: 8px; }
.pill-x, .pill-lock { width: 23px; height: 23px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.62); color: #475569; font-weight: 950; border: 1px solid rgba(255,255,255,.66); }
.pill-x:hover { background: #fee2e2; color: #b91c1c; }
.pill-lock.locked { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; }
.teams-options { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.team-box { min-height: 150px; border-radius: 24px; padding: 12px; background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.40)); border: 1px solid rgba(255,255,255,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 9px 20px rgba(15,23,42,.08); }
.team-box.drop-target { outline: 3px dashed rgba(34,197,94,.55); outline-offset: 3px; transform: scale(1.015); }
.team-title { width: 100%; font-size: 18px; font-weight: 950; margin-bottom: 10px; background: rgba(255,255,255,.50); }
.teams-note { font-size: 13px; color: var(--muted); line-height: 1.35; }
.counter-tool { display: grid; gap: 12px; }
.counter-add { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: end; }
.counter-color-wrap { position: relative; display: grid; gap: 5px; }
.counter-color-button { width: 74px; min-height: 44px; border-radius: 16px; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 18px rgba(15,23,42,.10); position: relative; overflow: hidden; }
.counter-color-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.12) 42%, rgba(255,255,255,.28)); pointer-events: none; }
.counter-palette { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 230px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(1.45); }
.counter-swatch { height: 42px; border-radius: 15px; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 7px 16px rgba(15,23,42,.10); position: relative; overflow: hidden; }
.counter-swatch::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.08) 48%, rgba(255,255,255,.24)); pointer-events: none; }
.counter-swatch.active { outline: 3px solid rgba(37,99,235,.45); outline-offset: 2px; }
.counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.counter-btn { min-height: 126px; border-radius: 26px; color: white; padding: 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.62), inset 0 -22px 42px rgba(15,23,42,.16), 0 12px 28px rgba(15,23,42,.14); transition: transform .12s ease, box-shadow .12s ease; backdrop-filter: blur(8px) saturate(1.25); }
.counter-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.14) 34%, rgba(255,255,255,.04) 58%, rgba(255,255,255,.22)); pointer-events: none; }
.counter-btn::after { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 34%; border-radius: 22px; background: linear-gradient(to bottom, rgba(255,255,255,.42), rgba(255,255,255,.05)); pointer-events: none; }
.counter-btn:hover { transform: translateY(-2px) scale(1.01); box-shadow: inset 0 1px 0 rgba(255,255,255,.70), inset 0 -22px 42px rgba(15,23,42,.18), 0 18px 36px rgba(15,23,42,.19); }
.counter-title, .counter-value, .counter-actions { position: relative; z-index: 1; }
.counter-title { font-size: 17px; font-weight: 950; line-height: 1.12; overflow-wrap: anywhere; }
.counter-value { font-size: clamp(42px, 8vw, 72px); font-weight: 950; line-height: 1; align-self: center; font-variant-numeric: tabular-nums; text-shadow: 0 3px 10px rgba(15,23,42,.24); }
.counter-actions { display: flex; gap: 6px; justify-content: center; }
.counter-mini { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.68); color: #1e293b; font-weight: 950; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.86); }
.counter-mini:hover { background: white; }
.counter-empty { padding: 18px; border-radius: 22px; text-align: center; color: var(--muted); background: rgba(255,255,255,.45); border: 1px dashed rgba(51,65,85,.25); font-weight: 750; }

.agenda-tool { display: grid; gap: 12px; }
.agenda-board { border-radius: 30px; padding: 16px; background: linear-gradient(145deg, #2f7a57, #27664b); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,.20), inset 0 -24px 48px rgba(15,23,42,.12), 0 14px 34px rgba(15,23,42,.16); border: 1px solid rgba(255,255,255,.30); }
.agenda-title-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.agenda-title { background: rgba(255,255,255,.14); color: white; border-color: rgba(255,255,255,.28); font-size: 24px; font-weight: 950; text-align: center; }
.agenda-total { display: grid; gap: 5px; margin: 8px 0 14px; }
.agenda-total-label { display: flex; justify-content: space-between; font-weight: 900; font-size: 13px; color: rgba(255,255,255,.88); }
.agenda-progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.20); overflow: hidden; box-shadow: inset 0 1px 3px rgba(15,23,42,.18); }
.agenda-progress-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #f6c77a, #fde68a); transition: width .18s ease; }
.agenda-list { display: grid; gap: 9px; }
.agenda-item { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding: 46px 10px 10px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); }
.agenda-item.done { background: rgba(255,255,255,.14); }
.agenda-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.64)); color: #1f2937; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 6px 14px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.85); }
.agenda-main { min-width: 0; display: grid; gap: 6px; }
.agenda-name { width: 100%; padding: 5px 8px; border-radius: 12px; background: transparent; color: white; border: 1px solid transparent; box-shadow: none; font-size: 20px; font-weight: 950; }
.agenda-name:focus { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.30); }
.agenda-sub-progress { display: grid; grid-template-columns: auto minmax(48px, 1fr) auto auto; gap: 7px; align-items: center; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 800; }
.agenda-sublist { grid-column: 2 / 4; display: grid; gap: 6px; margin-top: 5px; padding: 7px 8px; border-radius: 16px; background: rgba(15,23,42,.10); }
.agenda-sub { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; color: rgba(255,255,255,.92); }
.agenda-sub input[type="checkbox"] { width: 18px; height: 18px; box-shadow: none; }
.agenda-sub span { min-width: 0; outline: none; padding: 3px 5px; border-radius: 8px; }
.agenda-sub span:focus { background: rgba(255,255,255,.16); }
.agenda-actions { position: absolute; inset: 8px 8px auto 8px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.agenda-actions > * { pointer-events: auto; }
.agenda-mini { width: 34px; height: 34px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.76); color: #1e293b; font-weight: 950; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 4px 10px rgba(15,23,42,.10); }
.agenda-mini:hover { background: white; }
.agenda-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end; }
.agenda-icon-wrap { position: relative; display: grid; gap: 5px; align-self: end; }
.agenda-new-icon { width: 48px; height: 44px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.70); box-shadow: inset 0 1px 0 rgba(255,255,255,.80), 0 5px 12px rgba(15,23,42,.08); }
.agenda-icon-picker { position: absolute; top: calc(100% + 8px); left: 0; z-index: 200; width: 250px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; padding: 9px; border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.90), rgba(255,255,255,.55)); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(1.45); }
.agenda-item > .agenda-icon-wrap { position: absolute; left: 10px; top: 100px; z-index: 200; width: 0; height: 0; display: block; }
.agenda-item > .agenda-icon-wrap .agenda-icon-picker { top: 0; left: 0; }
.agenda-icon-choice { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.70); box-shadow: inset 0 1px 0 rgba(255,255,255,.80), 0 5px 12px rgba(15,23,42,.08); }
.agenda-icon-choice.active { outline: 3px solid rgba(37,99,235,.42); transform: translateY(-1px); }
.agenda-drag-handle { width: 34px; height: 34px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.76); color: #1e293b; font-weight: 950; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 4px 10px rgba(15,23,42,.10); cursor: grab; }
.agenda-item { cursor: default; }
.agenda-item.dragging { opacity: .45; transform: scale(.985); }
.agenda-item.drop-before { box-shadow: 0 -8px 0 rgba(253,230,138,.72), inset 0 1px 0 rgba(255,255,255,.18); }
.agenda-item.drop-after { box-shadow: 0 8px 0 rgba(253,230,138,.72), inset 0 1px 0 rgba(255,255,255,.18); }

.stopdance-tool { height: 100%; min-height: 360px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; }
.stopdance-track-card { display: grid; gap: 7px; padding: 10px; border-radius: 20px; background: rgba(255,255,255,.46); border: 1px solid rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 16px rgba(15,23,42,.07); }
.stopdance-track-meta { display: flex; justify-content: space-between; gap: 8px; color: #475569; font-size: 12px; font-weight: 850; flex-wrap: wrap; }
.stopdance-file-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.stopdance-file-input { display: none; }
.stopdance-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569; font-size: 12px; font-weight: 850; }
.stopdance-source { color: #2563eb; text-decoration: none; font-weight: 950; }
.stopdance-source:hover { text-decoration: underline; }
.stopdance-stage { min-height: 250px; border-radius: 30px; display: grid; place-items: center; text-align: center; color: white; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 34px rgba(15,23,42,.18); background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.04)), radial-gradient(circle at 24% 18%, rgba(255,255,255,.36), transparent 26%), linear-gradient(135deg, #16a34a, #22c55e); }
.stopdance-stage.frozen { background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.04)), radial-gradient(circle at 24% 18%, rgba(255,255,255,.30), transparent 26%), linear-gradient(135deg, #991b1b, #ef4444); }
.stopdance-stage.idle { background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.04)), radial-gradient(circle at 24% 18%, rgba(255,255,255,.34), transparent 26%), linear-gradient(135deg, #0f172a, #6366f1); }
.stopdance-dancer { font-size: clamp(96px, 20vw, 170px); line-height: 1; filter: drop-shadow(0 14px 18px rgba(15,23,42,.22)); transform-origin: 50% 75%; }
.stopdance-stage.dancing .stopdance-dancer { animation: stopDanceMove .55s ease-in-out infinite alternate; }
.stopdance-stage.frozen .stopdance-dancer { animation: none; transform: rotate(-8deg) scale(1.02); }
.stopdance-label { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.30); font-weight: 950; font-size: 22px; backdrop-filter: blur(10px); }
@keyframes stopDanceMove { 0% { transform: translateX(-10px) rotate(-9deg) scale(1); } 100% { transform: translateX(10px) rotate(9deg) scale(1.08); } }

.workmusic-tool { height: 100%; min-height: 390px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 14px; }
.workmusic-stage { min-height: 250px; border-radius: 30px; position: relative; overflow: hidden; display: grid; place-items: center; color: white; text-align: center; border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 34px rgba(15,23,42,.18); background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.04)), radial-gradient(circle at 22% 18%, rgba(255,255,255,.34), transparent 26%), linear-gradient(135deg, #0f172a, #6366f1); }
.workmusic-stage.relax { background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.04)), radial-gradient(circle at 20% 18%, rgba(255,255,255,.34), transparent 28%), linear-gradient(135deg, #0369a1, #14b8a6 55%, #22c55e); }
.workmusic-stage.dance { background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.04)), radial-gradient(circle at 20% 18%, rgba(255,255,255,.34), transparent 28%), linear-gradient(135deg, #7c3aed, #ec4899 54%, #f97316); }
.workmusic-orb { position: absolute; width: 150px; height: 150px; border-radius: 999px; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.82), rgba(255,255,255,.20) 42%, rgba(255,255,255,.02) 68%); filter: blur(.1px); opacity: .72; animation: workMusicFloat 7s ease-in-out infinite alternate; }
.workmusic-orb:nth-child(1) { left: 8%; top: 12%; }
.workmusic-orb:nth-child(2) { right: 8%; bottom: 12%; width: 110px; height: 110px; animation-duration: 5.5s; animation-direction: alternate-reverse; }
.workmusic-bars { position: relative; z-index: 1; display: flex; align-items: end; justify-content: center; gap: 8px; height: 120px; margin-bottom: 42px; }
.workmusic-bar { width: 18px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.78); box-shadow: 0 8px 18px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.86); animation: workMusicBars 1.25s ease-in-out infinite; animation-play-state: paused; }
.workmusic-bar:nth-child(2) { animation-delay: -.2s; }
.workmusic-bar:nth-child(3) { animation-delay: -.45s; }
.workmusic-bar:nth-child(4) { animation-delay: -.1s; }
.workmusic-bar:nth-child(5) { animation-delay: -.35s; }
.workmusic-stage.playing .workmusic-bar { animation-play-state: running; }
.workmusic-stage.dance.playing .workmusic-bar { animation-duration: .48s; }
.workmusic-stage.relax.playing .workmusic-bar { animation-duration: 1.65s; }
.workmusic-now { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.30); font-weight: 950; font-size: 18px; backdrop-filter: blur(10px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workmusic-status { position: absolute; top: 16px; right: 16px; z-index: 2; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.24); border: 1px solid rgba(255,255,255,.30); font-weight: 950; }

.guess-tool { display: grid; gap: 13px; }
.guess-top { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: end; }
.guess-toggle { display: inline-flex; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 16px rgba(15,23,42,.07); }
.guess-toggle-btn { border-radius: 14px; padding: 10px 14px; font-weight: 950; background: transparent; color: #334155; }
.guess-toggle-btn.active { color: white; background: linear-gradient(135deg, #2563eb, #8b5cf6); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 6px 14px rgba(37,99,235,.18); }
.guess-board { position: relative; min-height: 190px; padding: 18px; border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.06)), radial-gradient(circle at 20% 18%, rgba(255,255,255,.28), transparent 28%), linear-gradient(135deg, #0f172a, #2563eb 54%, #7c3aed); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 34px rgba(15,23,42,.18); display: grid; align-content: center; justify-content: center; gap: 12px; overflow-x: auto; overflow-y: hidden; }
.guess-line { display: flex; justify-content: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; min-width: max-content; }
.guess-cell { width: 44px; height: 54px; border-radius: 14px; display: grid; place-items: center; text-align: center; font-size: 30px; font-weight: 950; text-transform: uppercase; color: #0f172a; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(219,234,254,.82)); border: 1px solid rgba(255,255,255,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.90), 0 7px 16px rgba(15,23,42,.15); user-select: text; }
.guess-cell.correct { background: linear-gradient(145deg, rgba(220,252,231,.98), rgba(134,239,172,.88)); color: #14532d; border-color: rgba(187,247,208,.95); }
.guess-cell.wrong { background: linear-gradient(145deg, rgba(254,226,226,.98), rgba(252,165,165,.88)); color: #7f1d1d; border-color: rgba(254,202,202,.95); }
.guess-cell input { width: 100%; height: 100%; border: 0; padding: 0; text-align: center; background: transparent; box-shadow: none; border-radius: inherit; font-size: 30px; font-weight: 950; text-transform: uppercase; }
.guess-space { width: 24px; height: 54px; }
.guess-punct { width: 28px; height: 54px; display: grid; place-items: center; color: white; font-size: 30px; font-weight: 950; }
.guess-keyboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); gap: 7px; }
.guess-key { min-height: 42px; border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); color: #1e293b; border: 1px solid rgba(255,255,255,.70); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 5px 12px rgba(15,23,42,.07); font-weight: 950; transition: transform .12s ease, opacity .12s ease, background .12s ease; }
.guess-key.used { opacity: .92; transform: scale(.96); }
.guess-key.correct { color: white; background: linear-gradient(135deg, #16a34a, #22c55e); }
.guess-key.wrong { color: white; background: linear-gradient(135deg, #b91c1c, #ef4444); }
.guess-status { padding: 11px 13px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); color: #334155; font-weight: 850; }
.guess-status.good { color: white; background: linear-gradient(135deg, #16a34a, #22c55e); }
.guess-status.bad { color: white; background: linear-gradient(135deg, #b91c1c, #ef4444); }
.guess-fireworks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.guess-firework { position: absolute; width: 10px; height: 10px; border-radius: 999px; background: white; animation: guessFirework .9s ease-out forwards; box-shadow: 0 0 18px rgba(255,255,255,.9); }
@keyframes guessFirework { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 100% { transform: translate(var(--fx), var(--fy)) scale(1.4); opacity: 0; } }

.ttt-tool { display: grid; gap: 14px; justify-items: center; }
.ttt-score { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ttt-score-card { padding: 10px 12px; border-radius: 18px; text-align: center; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 16px rgba(15,23,42,.07); font-weight: 950; }
.ttt-score-card span { display: block; color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ttt-status { width: 100%; padding: 13px 15px; border-radius: 20px; text-align: center; color: white; font-size: 22px; font-weight: 950; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), linear-gradient(135deg, #0f172a, #2563eb 58%, #7c3aed); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 12px 28px rgba(37,99,235,.20); }
.ttt-board { width: min(360px, 100%); aspect-ratio: 1 / 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.06)), radial-gradient(circle at 20% 18%, rgba(255,255,255,.28), transparent 28%), linear-gradient(135deg, #0f172a, #2563eb 54%, #7c3aed); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 34px rgba(15,23,42,.18); }
.ttt-cell { min-width: 0; min-height: 0; width: 100%; height: 100%; aspect-ratio: 1 / 1; border-radius: 22px; display: grid; place-items: center; font-size: clamp(48px, 13vw, 86px); line-height: 1; font-weight: 950; color: #1e293b; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(219,234,254,.78)); border: 1px solid rgba(255,255,255,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.90), 0 7px 16px rgba(15,23,42,.15); transition: transform .14s ease, background .14s ease; }
.ttt-cell:hover { transform: translateY(-2px) scale(1.02); }
.ttt-cell.x { color: #2563eb; }
.ttt-cell.o { color: #ef4444; }
.ttt-cell.selected { outline: 4px solid rgba(250,204,21,.82); outline-offset: -5px; transform: scale(1.035); }
.ttt-cell.drop-target { outline: 4px dashed rgba(34,197,94,.85); outline-offset: -6px; }
.ttt-cell.win { color: white; background: linear-gradient(135deg, #16a34a, #22c55e); animation: tttPulse .55s ease-in-out infinite alternate; }
@keyframes tttPulse { from { transform: scale(1); } to { transform: scale(1.055); } }

.spelling-tool { display: grid; gap: 14px; }
.spelling-top { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: end; }
.spelling-card { position: relative; min-height: 245px; border-radius: 30px; padding: 18px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.06)), radial-gradient(circle at 20% 18%, rgba(255,255,255,.28), transparent 28%), linear-gradient(135deg, #0369a1, #06b6d4 55%, #22c55e); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 34px rgba(15,23,42,.18); overflow: hidden; }
.spelling-image { max-width: min(330px, 100%); max-height: 210px; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(15,23,42,.24)); }
.spelling-word { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 12px; border-radius: 24px; background: rgba(255,255,255,.46); border: 1px solid rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 16px rgba(15,23,42,.07); }
.spelling-cell { width: 48px; height: 58px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(219,234,254,.82)); border: 1px solid rgba(255,255,255,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.90), 0 7px 16px rgba(15,23,42,.12); }
.spelling-cell.correct { background: linear-gradient(145deg, rgba(220,252,231,.98), rgba(134,239,172,.88)); }
.spelling-cell.wrong { background: linear-gradient(145deg, rgba(254,226,226,.98), rgba(252,165,165,.88)); }
.spelling-cell input { width: 100%; height: 100%; border: 0; box-shadow: none; background: transparent; padding: 0; text-align: center; text-transform: lowercase; font-size: 32px; font-weight: 950; color: #0f172a; }
.spelling-bank { display: grid; gap: 8px; justify-items: center; }
.spelling-kb-row { display: flex; justify-content: center; gap: 7px; flex-wrap: nowrap; width: 100%; }
.spelling-letter { min-width: 42px; height: 42px; border-radius: 14px; padding: 0 12px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); color: #1e293b; border: 1px solid rgba(255,255,255,.70); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 5px 12px rgba(15,23,42,.07); font-weight: 950; font-size: 20px; }
.spelling-letter.wide { min-width: 74px; }
.spelling-case-toggle { display: inline-flex; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 16px rgba(15,23,42,.07); }
.spelling-case-btn { border-radius: 14px; padding: 9px 13px; font-weight: 950; background: transparent; color: #334155; }
.spelling-case-btn.active { color: white; background: linear-gradient(135deg, #2563eb, #8b5cf6); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 6px 14px rgba(37,99,235,.18); }
.spelling-letter.used { opacity: .35; transform: scale(.96); }
.spelling-status { padding: 11px 13px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); color: #334155; font-weight: 850; }
.spelling-status.good { color: white; background: linear-gradient(135deg, #16a34a, #22c55e); }
.spelling-status.bad { color: white; background: linear-gradient(135deg, #b91c1c, #ef4444); }
.spelling-fireworks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.spelling-firework { position: absolute; width: 10px; height: 10px; border-radius: 999px; background: white; animation: guessFirework .9s ease-out forwards; box-shadow: 0 0 18px rgba(255,255,255,.9); }
@keyframes workMusicFloat { 0% { transform: translate(-10px, 8px) scale(.92); } 100% { transform: translate(18px, -12px) scale(1.1); } }
@keyframes workMusicBars { 0%, 100% { height: 28px; transform: translateY(0); } 50% { height: 112px; transform: translateY(-4px); } }
.bingo-tool { display: grid; gap: 14px; }
.bingo-config { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.bingo-stage { min-height: 220px; border-radius: 32px; display: grid; place-items: center; gap: 8px; text-align: center; color: white; background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.05)), radial-gradient(circle at 24% 18%, rgba(255,255,255,.32), transparent 26%), linear-gradient(135deg, #7c2d12, #f97316 55%, #facc15); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 34px rgba(15,23,42,.18); }
.bingo-title { align-self: end; font-size: 15px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.bingo-big-ball { width: 150px; height: 150px; border-radius: 999px; display: grid; place-items: center; color: #111827; font-size: 76px; font-weight: 950; background: radial-gradient(circle at 34% 26%, #fff, #f8fafc 46%, #cbd5e1 100%); border: 4px solid rgba(255,255,255,.82); box-shadow: inset -12px -18px 28px rgba(15,23,42,.14), inset 8px 8px 20px rgba(255,255,255,.95), 0 18px 34px rgba(15,23,42,.24); font-variant-numeric: tabular-nums; }
.bingo-big-ball.spinning { animation: bingoSpin .18s linear infinite; }
.bingo-sub { align-self: start; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.24); border: 1px solid rgba(255,255,255,.30); font-weight: 900; }
.bingo-sheet-panel { padding: 12px; border-radius: 24px; background: rgba(255,255,255,.46); border: 1px solid rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 16px rgba(15,23,42,.07); }
.bingo-history-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 950; color: #475569; }
.bingo-balls { min-height: 76px; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-radius: 22px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.62); }
.bingo-small-ball { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; color: #111827; font-size: 18px; font-weight: 950; background: radial-gradient(circle at 34% 26%, #fff, #f8fafc 46%, #cbd5e1 100%); border: 2px solid rgba(255,255,255,.82); box-shadow: inset -5px -7px 12px rgba(15,23,42,.12), inset 4px 4px 10px rgba(255,255,255,.95), 0 7px 14px rgba(15,23,42,.13); font-variant-numeric: tabular-nums; }
@keyframes bingoSpin { 0% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.035); } 100% { transform: rotate(-2deg) scale(1); } }

@media (max-width: 620px) {
  .bingo-config { grid-template-columns: 1fr; }
  .bingo-big-ball { width: 128px; height: 128px; font-size: 62px; }
}

.standsit-tool { display: grid; gap: 14px; }
.standsit-config { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; align-items: end; }
.standsit-check { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 16px rgba(15,23,42,.07); color: #334155; font-weight: 850; text-transform: none; letter-spacing: 0; }
.standsit-check input { width: 20px; height: 20px; box-shadow: none; }
.standsit-stage { min-height: 210px; border-radius: 32px; display: grid; place-items: center; gap: 8px; text-align: center; color: white; background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.05)), radial-gradient(circle at 24% 18%, rgba(255,255,255,.32), transparent 26%), linear-gradient(135deg, #0f172a, #2563eb 55%, #8b5cf6); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 34px rgba(15,23,42,.18); }
.standsit-stage.revealed-correct { background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.05)), radial-gradient(circle at 24% 18%, rgba(255,255,255,.32), transparent 26%), linear-gradient(135deg, #166534, #22c55e); }
.standsit-stage.revealed-wrong { background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.05)), radial-gradient(circle at 24% 18%, rgba(255,255,255,.32), transparent 26%), linear-gradient(135deg, #991b1b, #ef4444); }
.standsit-problem { font-size: clamp(44px, 9vw, 88px); line-height: 1; font-weight: 950; font-variant-numeric: tabular-nums; }
.standsit-answer { min-width: 160px; padding: 10px 22px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.30); font-size: clamp(34px, 7vw, 64px); font-weight: 950; font-variant-numeric: tabular-nums; }
.standsit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.standsit-action { min-height: 140px; border-radius: 28px; display: grid; place-items: center; gap: 4px; padding: 14px; text-align: center; color: white; border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 12px 26px rgba(15,23,42,.14); }
.standsit-action.correct { background: linear-gradient(135deg, #15803d, #22c55e); }
.standsit-action.wrong { background: linear-gradient(135deg, #991b1b, #ef4444); }
.standsit-person { font-size: 54px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(15,23,42,.18)); }
.standsit-action strong { font-size: 20px; }
.standsit-action span { font-weight: 850; opacity: .95; }
.standsit-status { padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); color: #334155; font-weight: 850; }
.standsit-status.good { color: white; background: linear-gradient(135deg, #16a34a, #22c55e); }
.standsit-status.bad { color: white; background: linear-gradient(135deg, #b91c1c, #ef4444); }

@media (max-width: 620px) {
  .standsit-config { grid-template-columns: 1fr; }
  .standsit-actions { grid-template-columns: 1fr; }
}

.poll-tool { display: grid; gap: 14px; min-height: 100%; }
.poll-type-screen { min-height: 460px; display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; }
.poll-header-icon { font-size: 54px; filter: drop-shadow(0 8px 12px rgba(15,23,42,.15)); }
.poll-type-screen h2 { margin: 0; font-size: 26px; }
.poll-type-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.poll-type-card { min-height: 170px; border-radius: 24px; display: grid; place-items: center; gap: 12px; padding: 16px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.70); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 24px rgba(15,23,42,.10); color: #1e293b; font-size: 18px; }
.poll-type-card:hover { transform: translateY(-2px) scale(1.01); }
.poll-type-symbols { display: flex; gap: 8px; justify-content: center; align-items: center; }
.poll-type-symbols span { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; color: #172033; font-size: 26px; font-weight: 950; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 7px 16px rgba(15,23,42,.12); }
.poll-setup { display: grid; gap: 14px; }
.poll-setup-title { align-self: center; font-size: 20px; }
.poll-option-editor { display: grid; gap: 8px; }
.poll-option-edit-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.poll-edit-dot { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; color: white; font-weight: 950; box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 5px 12px rgba(15,23,42,.10); }
.poll-smiley-preview-note { padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); color: #334155; font-weight: 850; }
.poll-live { display: grid; gap: 14px; }
.poll-live-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.poll-question { min-height: 58px; display: grid; place-items: center; text-align: center; padding: 12px 16px; border-radius: 22px; color: white; font-size: 24px; font-weight: 950; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), linear-gradient(135deg, #0f172a, #14b8a6); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 12px 28px rgba(20,184,166,.18); }
.poll-total { text-align: center; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.66); color: #334155; font-weight: 900; }
.poll-options { display: grid; gap: 12px; }
.poll-option-card { border-radius: 26px; padding: 12px; background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(255,255,255,.38)); border: 1px solid rgba(255,255,255,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 9px 20px rgba(15,23,42,.08); }
.poll-vote-main { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 20px; color: white; background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.06)), linear-gradient(135deg, var(--poll-color), color-mix(in srgb, var(--poll-color), #0f172a 22%)); border: 1px solid rgba(255,255,255,.48); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 9px 18px rgba(15,23,42,.12); }
.poll-symbol { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.82); color: #172033; font-size: 30px; font-weight: 950; }
.poll-label { font-size: 22px; font-weight: 950; }
.poll-count { font-size: 34px; font-weight: 950; font-variant-numeric: tabular-nums; }
.poll-bar { height: 12px; margin-top: 10px; border-radius: 999px; background: rgba(15,23,42,.10); overflow: hidden; }
.poll-bar div { height: 100%; border-radius: inherit; background: var(--poll-color); transition: width .18s ease; }
.poll-card-bottom { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; color: #475569; font-weight: 900; }
.poll-minus { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: #334155; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.72); font-weight: 950; }
.poll-average-smiley { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.42)); border: 1px solid rgba(255,255,255,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 9px 20px rgba(15,23,42,.08); }
.poll-average-smiley svg { width: 130px; height: 130px; filter: drop-shadow(0 12px 16px rgba(15,23,42,.18)); }
.poll-average-smiley strong { display: block; font-size: 22px; }
.poll-average-smiley span { display: block; margin-top: 4px; color: #475569; font-weight: 900; }

@media (max-width: 680px) {
  .poll-type-grid { grid-template-columns: 1fr; }
  .poll-live-head { grid-template-columns: 1fr; }
  .poll-average-smiley { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.hidden { display: none !important; }

@media (max-width: 900px) { :root { --side-w: 250px; --dock-h: 86px; --dock-peek: 16px; } .dock-btn span.label { display: none; } .dock-btn { min-width: 58px; } }
@media (max-width: 720px) { #app { grid-template-columns: 1fr; } #rightPanel { position: fixed; right: 10px; top: 10px; bottom: 104px; width: min(310px, calc(100vw - 20px)); border-radius: 24px; border: 1px solid rgba(255,255,255,.68); } .panel-toggle { right: calc(min(310px, calc(100vw - 20px)) + 10px); transform: translate(50%, -50%); } body.panel-collapsed #rightPanel { transform: translateX(calc(100% + 16px)); } body.panel-collapsed .panel-toggle { right: 0; transform: translate(50%, -50%); } #dock { right: 18px; padding-right: 52px; } .dock-chevron { right: 10px; } }
