/* Atlas shell: sidebar, top bar, home, library, automations, plugins, usage. Loaded after style.css. */
:root {
  --bg: #f8f8f7; --sidebar: #f3f3f2; --soft: #efefee; --soft-2: #e8e8e6; --line: #e6e6e4;
  --text: #1c1c1a; --text-2: #555451; --muted: #8a8986; --link: #2f7ff5; --accent: #1a1a19; --accent-text: #fff;
  --wordmark: "Libre Baskerville", "Baskerville", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1f20; --sidebar: #19191a; --soft: #2a2a2b; --soft-2: #333335; --line: #333335; --card: #2a2a2b; --card-2: #303032;
    --text: #e8e8e6; --text-2: #b9b8b4; --muted: #8e8d8a; --link: #5a9bff; --accent: #f1f1f0; --accent-text: #1a1a19;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1f20; --sidebar: #19191a; --soft: #2a2a2b; --soft-2: #333335; --line: #333335; --card: #2a2a2b; --card-2: #303032;
  --text: #e8e8e6; --text-2: #b9b8b4; --muted: #8e8d8a; --link: #5a9bff; --accent: #f1f1f0; --accent-text: #1a1a19;
  color-scheme: dark;
}
body { background: var(--bg); }

/* ---------- Sidebar ---------- */
.sidebar { width: 280px; background: var(--sidebar); border-right: 1px solid var(--line); padding: 14px 10px 10px; }
.sidebar.collapsed { margin-left: -280px; }
.sb-top { padding: 2px 6px 14px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; display: inline-flex; }
.brand-mark svg, .hero-mark svg { width: 100%; height: 100%; }
.brand .wordmark { font-family: var(--wordmark); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; border-radius: 10px;
  font-size: 15.5px; color: var(--text); text-align: left;
}
.nav-item:hover { background: var(--soft-2); }
.nav-item.active { background: var(--soft-2); font-weight: 500; }
.ni { display: inline-flex; flex: none; }
.ni svg.i { width: 20px; height: 20px; stroke-width: 1.7; }
.sb-scroll { flex: 1; overflow-y: auto; min-height: 0; margin-top: 18px; }
.sb-label { font-size: 13.5px; color: var(--muted); padding: 10px 12px 6px; }
.sb-label + .sb-label { margin-top: 8px; }
#project-list .nav-item, #task-list .nav-item { height: 40px; font-size: 15px; }
.task-row { position: relative; }
.task-row .nav-item { padding-right: 34px; }
.task-row .t-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row .row-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); opacity: 0; width: 26px; height: 26px; }
.task-row:hover .row-del { opacity: 1; }
.t-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--soft-2); color: var(--text-2); }
.t-dot svg.i { width: 13px; height: 13px; }
.t-dot.running { background: none; border: 2px dashed #e8a33b; animation: spin 3s linear infinite; }
.sb-empty { padding: 6px 12px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid var(--line); margin-top: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #4f46e5; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.user-name { font-size: 15.5px; font-weight: 500; }
.sb-user .spacer { flex: 1; }
.more-wrap { position: relative; }

/* popovers */
.pop { position: absolute; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.12); padding: 6px; }
.more-menu { left: 8px; top: 44px; width: 210px; }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; text-align: left; font-size: 14px; }
.pop-item:hover { background: var(--soft); }
.pop-item.on { font-weight: 600; }

/* ---------- Top bar ---------- */
.main { flex-direction: column; }
.topbar { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px 0 28px; position: relative; z-index: 10; }
.topbar .sb-open { position: static; }
.model-switch { position: relative; }
.model-switch-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 500; padding: 6px 8px; border-radius: 10px; color: var(--text); }
.model-switch-btn:hover { background: var(--soft); }
.model-switch-btn svg.i { width: 18px; height: 18px; color: var(--muted); }
.model-pop { top: 48px; left: 0; width: 330px; }
.mp-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px 12px; border-radius: 10px; text-align: left; }
.mp-item:hover { background: var(--soft); }
.mp-name { font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: baseline; }
.mp-model { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.mp-desc { font-size: 13px; color: var(--muted); }
.mp-check { margin-left: auto; color: var(--link); width: 18px; flex: none; }
.mp-foot { font-size: 11.5px; color: var(--muted); padding: 8px 12px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.topbar-title { flex: 1; min-width: 0; text-align: center; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.plan-pill { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; font-size: 16px; color: var(--muted); background: var(--bg); }
.plan-pill .sep { width: 1px; height: 20px; background: var(--line); }
.plan-pill button { color: var(--link); font-size: 16px; }
.credit-wrap { position: relative; }
.credit-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 17px; font-weight: 500; background: var(--bg); }
.credit-btn:hover, .plan-pill button:hover { opacity: .8; }
.credit-btn svg.i { width: 18px; height: 18px; }
.credit-pop { right: 0; top: 52px; width: 360px; padding: 18px; }
.cr-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cr-plan { font-family: var(--wordmark); font-weight: 700; font-size: 22px; }
.cr-row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; margin: 6px 0; }
.cr-row .lbl { display: flex; align-items: center; gap: 8px; }
.cr-row .lbl svg.i { width: 18px; height: 18px; }
.cr-sub { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cr-link { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--text-2); margin-top: 4px; }
.cr-link:hover { color: var(--text); }
.q { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; border: 1.4px solid var(--muted); color: var(--muted); font-size: 10px; align-items: center; justify-content: center; }

/* ---------- Views ---------- */
.view { flex: 1; min-height: 0; overflow-y: auto; }
.view.task { overflow: hidden; }
.page { padding: 4px 32px 40px; }
.page-inner { max-width: 1060px; margin: 0 auto; }

/* ---------- Home ---------- */
.home2-inner { max-width: 1060px; margin: 0 auto; padding: 6px 24px 0; display: flex; flex-direction: column; min-height: 100%; }
.hero-brand { display: flex; align-items: center; gap: 22px; justify-content: center; margin: 4px 0 34px; }
.hero-mark { width: 76px; height: 76px; display: inline-flex; color: var(--text); }
.hero-word { font-family: var(--wordmark); font-weight: 700; font-size: 66px; letter-spacing: -0.035em; line-height: 1; }
.home-cards { display: grid; grid-template-columns: 1.8fr 1fr; gap: 18px; }
.home-col { display: flex; flex-direction: column; gap: 18px; }
.hcard { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px;
  min-height: 176px; padding: 24px 28px; border-radius: 18px; background: var(--soft); text-align: left; transition: background .15s; }
.hcard:hover { background: var(--soft-2); }
.hcard.tall { justify-content: center; align-items: center; min-height: 370px; }
.hcard-icon { width: 34px; height: 34px; margin-bottom: auto; }
.hcard-icon.build { background: conic-gradient(from 210deg, #2f7ff5 0 50%, #5aa1ff 0); clip-path: polygon(10% 45%, 50% 5%, 95% 25%, 60% 40%, 70% 95%, 45% 95%, 40% 55%); }
.hcard-icon.create { background: radial-gradient(circle at 35% 35%, #f5a623 0 30%, transparent 31%), radial-gradient(circle at 72% 50%, #f7c46c 0 18%, transparent 19%), radial-gradient(circle at 45% 78%, #f0b347 0 17%, transparent 18%); }
.hcard-title { font-size: 21px; font-weight: 500; display: flex; align-items: center; gap: 6px; z-index: 1; }
.hcard-title.center, .hcard-sub.center { align-self: center; text-align: center; }
.hcard-sub { font-size: 17px; color: var(--muted); z-index: 1; }
.chev-r { display: inline-block; width: 9px; height: 9px; border-right: 2.2px solid currentColor; border-top: 2.2px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
.hcard-art { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; opacity: .55; pointer-events: none; }
.art-circle { background:
  radial-gradient(circle at 60% 55%, transparent 0 22%, var(--line) 22.5% 23%, transparent 23.5%),
  radial-gradient(circle at 60% 55%, color-mix(in srgb, var(--muted) 18%, transparent) 0 34%, transparent 34.5%),
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 100%; }
.art-sheets::before, .art-sheets::after { content: ""; position: absolute; width: 150px; height: 110px; border: 1px solid var(--muted); border-radius: 6px; background: var(--bg); right: 20px; top: 30px; transform: rotate(-12deg); opacity: .5; }
.art-sheets::after { right: -10px; top: 10px; transform: rotate(-22deg); border-style: dashed; }
.folder-art { width: 104px; height: 82px; margin-bottom: 40px; border: 2px solid var(--muted); border-radius: 8px; position: relative; opacity: .45; background: linear-gradient(var(--bg), var(--bg)); }
.folder-art::before { content: ""; position: absolute; left: -2px; top: -14px; width: 44px; height: 16px; border: 2px solid var(--muted); border-bottom: 0; border-radius: 7px 7px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.tile { position: relative; height: 128px; border-radius: 16px; overflow: hidden; text-align: left; color: #fff; }
.tile .badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); border-radius: 999px; padding: 3px 11px; font-size: 14px; font-weight: 500; }
.tile .badge svg.i { width: 14px; height: 14px; }
.tile .cap { position: absolute; left: 14px; bottom: 12px; right: 14px; font-size: 13.5px; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.tile.app { background: linear-gradient(180deg, #0e1a2b, #0b2b36); }
.tile.app::after { content: "$2,616  ·  $5,250  ·  $2,634"; position: absolute; left: 16px; top: 52px; font: 600 12px var(--mono); color: #8fd3c9; letter-spacing: .02em; }
.tile.slides { background: linear-gradient(135deg, #fdf3e1, #f6d9a8); color: #1c1c1a; }
.tile.slides .cap { text-shadow: none; }
.tile.slides::after { content: "Design Sprint"; position: absolute; left: 16px; top: 46px; font: 700 26px/1 var(--wordmark); color: #1c1c1a; }
.tile.research { background: linear-gradient(160deg, #f6a96b 0%, #e8786b 45%, #6c5b9e 100%); }
.composer-dock { position: sticky; bottom: 0; margin-top: 26px; padding: 0 0 22px; background: linear-gradient(transparent, var(--bg) 40%); }
.composer2 { border-radius: 22px; padding: 0; gap: 0; box-shadow: 0 6px 30px rgba(0,0,0,.06); }
.cmp-top { display: flex; align-items: center; gap: 18px; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text-2); }
.cmp-top button { display: inline-flex; align-items: center; gap: 7px; position: relative; }
.cmp-top button:hover { color: var(--text); }
.cmp-top svg.i { width: 19px; height: 19px; }
.cmp-top .proj-pop { left: 0; top: 30px; width: 260px; }
.composer2 textarea { padding: 16px 22px 4px; min-height: 64px; font-size: 17px; }
.composer2 .cmp-files { padding: 10px 18px 0; }
.composer2 .cmp-row { padding: 6px 14px 14px; gap: 8px; }
.round-btn { width: 38px; height: 38px; position: relative; }
.round-btn svg.i { width: 19px; height: 19px; }
.composer2 .send-btn { width: 38px; height: 38px; }
.mic-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.mic-btn:hover { background: var(--soft); }
.mic-btn.rec { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.attach-pop { bottom: 46px; left: 0; width: 240px; }
.tools-pop { bottom: 46px; left: 0; width: 290px; }
.tp-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; }
.tp-row .grow { flex: 1; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--soft-2); position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.switch.on { background: var(--link); }
.switch.on::after { left: 16px; }
.chip-proj { color: var(--link) !important; }

/* ---------- Pages: shared ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.page-head h1 { font-size: 24px; font-weight: 500; margin: 0; }
.page-tools { display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 42px; width: 320px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; background: var(--card); color: var(--muted); }
.search-box input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 15.5px; color: var(--text); min-width: 0; }
.tool-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); color: var(--text-2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--card); }
.seg button { width: 42px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.seg button.on { background: var(--soft); color: var(--text); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tabs.left { justify-content: flex-start; }
.tab-btn { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 16px; color: var(--muted); }
.tab-btn:hover { color: var(--text); }
.tab-btn.on { background: var(--soft-2); color: var(--text); font-weight: 500; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 100px 20px; gap: 6px; }
.empty .big-ic svg.i { width: 50px; height: 50px; stroke-width: 1.5; color: var(--text-2); margin-bottom: 18px; }
.empty h3 { margin: 0; font-size: 19px; font-weight: 500; }
.empty p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.btn.dark { background: var(--accent); color: var(--accent-text); border-color: var(--accent); height: 46px; padding: 0 20px; border-radius: 10px; font-size: 16px; gap: 8px; }
.btn.dark svg.i { width: 18px; height: 18px; }
.btn.light { background: var(--card); height: 40px; border-radius: 10px; gap: 6px; }

/* Library */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.lib-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; position: relative; }
.lib-thumb { height: 120px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-thumb .fc-icon { width: 46px; height: 46px; border-radius: 10px; font-size: 12px; }
.lib-meta { padding: 10px 12px; min-width: 0; }
.lib-actions { position: absolute; right: 8px; top: 8px; display: none; gap: 4px; }
.lib-card:hover .lib-actions, .lib-row:hover .lib-actions { display: flex; }
.lib-actions button, .lib-actions a { width: 30px; height: 30px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.lib-actions svg.i { width: 15px; height: 15px; }
.lib-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.lib-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.lib-row:last-child { border-bottom: 0; }
.lib-row .lib-actions { position: static; }
.drop-hint { border: 2px dashed var(--link); border-radius: 18px; }

/* Automations */
.auto-hero { text-align: center; margin: 30px 0 46px; }
.auto-hero h1 { font-size: 36px; font-weight: 500; margin: 0 0 12px; letter-spacing: -0.01em; }
.auto-hero p { color: var(--muted); font-size: 17px; margin: 0; }
.auto-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acard { border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; text-align: left; display: flex; flex-direction: column; cursor: pointer; }
.acard:hover { box-shadow: 0 8px 30px rgba(0,0,0,.07); }
.acard-art { background: var(--soft); padding: 46px 44px 28px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-height: 380px; }
.acard-body { padding: 22px 22px 26px; }
.acard-body h3 { margin: 0 0 8px; font-size: 21px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.acard-body p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.beta { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--soft); border-radius: 6px; padding: 1px 7px; }
.mini { background: var(--card); border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); padding: 16px; font-size: 14.5px; }
.mini .muted { color: var(--muted); }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.mini-cal b { font-size: 15px; color: var(--text); font-weight: 500; display: block; margin-top: 6px; }
.mini-cal b.sel { background: var(--accent); color: var(--accent-text); border-radius: 50%; width: 30px; height: 30px; line-height: 30px; margin: 4px auto 0; }
.mini-arrow { text-align: center; color: var(--muted); font-size: 15px; line-height: 1; }
.mini-file { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 7px; padding: 3px 9px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.mini-flow { display: grid; grid-template-columns: auto auto; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; font-size: 13px; }
.mini-flow span { padding: 4px 9px; border-radius: 7px; background: var(--soft); text-align: center; }
.mini-flow .y { background: #fdf3cf; color: #6b5310; } .mini-flow .g { background: #e3f6e8; color: #1d6b34; }
.auto-cta { display: flex; justify-content: center; margin: 34px 0 10px; }
.auto-cta .btn.dark { width: 420px; justify-content: center; }
.auto-list { display: flex; flex-direction: column; gap: 10px; }
.arow { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.arow .grow { flex: 1; min-width: 0; }
.arow .name { font-weight: 500; font-size: 15.5px; }
.arow .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.arow .runs { font-size: 12.5px; margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.arow .runs a { color: var(--link); text-decoration: none; }
.kind-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.form { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px 24px; max-width: 720px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.form input, .form textarea, .form select { font: inherit; font-size: 14.5px; font-weight: 400; color: var(--text); border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 9px 12px; outline: none; }
.form textarea { min-height: 96px; resize: vertical; }
.form .row { display: flex; gap: 12px; flex-wrap: wrap; }
.form .row > * { flex: 1; min-width: 140px; }
.form .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.form .kind-seg { display: flex; gap: 8px; }
.form .kind-seg button { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.form .kind-seg button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.code-line { font: 12.5px var(--mono); background: var(--soft); border-radius: 8px; padding: 8px 10px; word-break: break-all; color: var(--text); }

/* Plugins */
.plug-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.pf { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px; text-align: left; font-size: 17px; font-weight: 500; line-height: 1.45; min-height: 150px; display: flex; flex-direction: column; gap: 14px; }
.pf:hover { box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.plug-search { margin: 0 auto 16px; width: 100%; }
.plug-search .search-box { width: 100%; }
.plug-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plug { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); min-width: 0; }
.plug .grow { flex: 1; min-width: 0; }
.plug .name { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.plug .desc { font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plug-ic { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: none; font: 700 19px var(--wordmark); color: #fff; }
.plug-ic svg.i { width: 24px; height: 24px; }
.plug-add { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.plug-add.added { border-color: transparent; color: var(--muted); }
.plug-add:hover { background: var(--soft); }
.tag { font-size: 11.5px; font-weight: 500; color: var(--muted); background: var(--soft); border-radius: 6px; padding: 1px 7px; }
.tag.on { color: #1d6b34; background: #e3f6e8; }
.create-wrap { position: relative; }
.create-pop { right: 0; top: 48px; width: 240px; }

/* Usage */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px 18px; }
.stat .v { font-size: 26px; font-weight: 600; }
.stat .k { font-size: 13px; color: var(--muted); }
.utable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.utable th, .utable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.utable th { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.utable td.num, .utable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.utable a { color: var(--text); text-decoration: none; }
.utable a:hover { text-decoration: underline; }

/* Project page */
.proj-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.proj-head h1 { font-size: 26px; font-weight: 500; margin: 0; flex: 1; }
.proj-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 16px 18px; }
.panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.panel textarea { width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; outline: none; }
.ptask { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ptask:last-child { border-bottom: 0; }

/* Task view inside the new shell */
.task-header { height: 50px; }
.computer { margin-top: 0; }

@media (max-width: 1100px) {
  .home-cards { grid-template-columns: 1fr; }
  .hcard.tall { min-height: 160px; }
  .auto-cards, .plug-feature { grid-template-columns: 1fr; }
  .acard-art { min-height: 0; }
  .plug-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .plan-pill { display: none; }
  .hero-word { font-size: 46px; }
  .hero-mark { width: 52px; height: 52px; }
  .gallery { grid-template-columns: 1fr; }
  .search-box { width: 100%; }
  .page { padding: 4px 16px 30px; }
}
svg.i.xs { width: 12px; height: 12px; vertical-align: -1px; }
.brand-mark.sm { width: 20px; height: 20px; display: flex; margin-bottom: 6px; color: var(--text); }
.logo-mark { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--accent); color: var(--accent-text); padding: 10px 18px; border-radius: 12px; font-size: 14px; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,.2); transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-card2 { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plan-card2.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-card2 .pn { font-family: var(--wordmark); font-weight: 700; font-size: 20px; }
.plan-card2 .pd { font-weight: 500; }
.plan-card2 .pu { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.form .row label { flex: 1; }
.form .row .btn { height: auto; }
.mm-head { font-size: 12px; color: var(--muted); }
.modal-card:has(> .modal-body > .form), .modal-card:has(> .modal-body > .empty) { height: auto; max-height: 88vh; }
.modal-card:has(.form) { width: min(760px, 100%); }

/* ---------- Build / Create panels ---------- */
.home-panel { margin-top: 8px; }
.hp { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 20px; box-shadow: 0 6px 30px rgba(0,0,0,.05); }
.hp-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; padding: 0 2px 14px; }
.hp-tools { display: flex; gap: 2px; }
.hp-sub { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15.5px; margin: 18px 2px 10px; }
.hp-foot { font-size: 12.5px; color: var(--muted); margin: 14px 4px 0; }
.opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 12px; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.opt-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.opt:hover .opt-thumb { background: var(--soft-2); }
.opt-label { font-size: 15px; }
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.idea { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-align: left; font-size: 14.5px; line-height: 1.4; color: var(--text-2); background: var(--card); }
.idea:hover { background: var(--soft); color: var(--text); }
.idea svg.i { width: 18px; height: 18px; color: var(--text-2); }
.cat-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-row::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 170px; border-radius: 14px; background: var(--soft); border: 1.5px solid transparent; padding: 10px 10px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: hidden; }
.cat:hover { background: var(--soft-2); }
.cat.on { border-color: var(--link); background: color-mix(in srgb, var(--link) 6%, var(--soft)); }
.cat.on .cat-name { color: var(--link); }
.cat-name { font-size: 15px; font-weight: 500; }
.cat-thumb { width: 100%; height: 66px; }
.mode-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--link) 12%, transparent); color: var(--link); font-size: 14.5px; font-weight: 500; }
.mode-chip svg.i { width: 16px; height: 16px; }
.mode-chip button { display: inline-flex; color: inherit; opacity: .7; }
.mode-chip button:hover { opacity: 1; }
.mode-chip.ghost { background: var(--card); border: 1px solid var(--line); color: var(--text-2); padding: 0 12px; }
.mode-chip.sm { height: 20px; font-size: 11.5px; padding: 0 8px; margin-right: 6px; }
.mode-slot { display: inline-flex; gap: 8px; align-items: center; }
.import-pop { bottom: 44px; left: 0; width: 320px; }
.import-box { display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.import-url { height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: var(--card-2); outline: none; font-size: 14px; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.tab-btn.sm { height: 30px; padding: 0 11px; font-size: 13.5px; }
.genre-tabs { display: flex; gap: 2px; flex-wrap: wrap; }

/* game hero */
.game-hp { padding-top: 10px; }
.game-hero { text-align: center; }
.game-hero .hp-head { padding-bottom: 0; }
.game-title { font-family: var(--wordmark); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; margin-top: -10px; }
.game-sub { color: var(--muted); font-size: 15.5px; margin: 6px 0 16px; }
#snake { width: 480px; max-width: 100%; height: auto; border-radius: 12px; cursor: pointer; outline: none; image-rendering: pixelated; }
#snake:focus { box-shadow: 0 0 0 2px var(--link); }

/* option thumbnails (drawn with CSS) */
.oa { position: relative; width: 78%; height: 78%; }
.oa.site { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); overflow: hidden; }
.oa .dots { position: absolute; left: 6px; top: 5px; width: 22px; height: 5px; background: radial-gradient(circle, #f87171 2px, transparent 2.5px) 0 0/7px 5px repeat-x; }
.oa.site .l1 { position: absolute; left: 30%; right: 30%; top: 28%; height: 6px; background: #1c1c1a; border-radius: 3px; }
.oa.site .l2 { position: absolute; left: 22%; right: 22%; top: 42%; height: 4px; background: #d6d6d3; border-radius: 3px; }
.oa.site .btn-b { position: absolute; left: 42%; right: 42%; top: 54%; height: 7px; background: #1c1c1a; border-radius: 4px; }
.oa.site .band { position: absolute; left: 10%; right: 10%; bottom: 0; height: 22%; background: #93c5fd; border-radius: 4px 4px 0 0; }
.oa.chat { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.oa.chat .side { position: absolute; left: 0; top: 0; bottom: 0; width: 26%; background: #2b2b2e; border-radius: 6px 0 0 6px; }
.oa.chat span:not(.side) { position: absolute; height: 9px; border-radius: 5px; }
.oa.chat .b1 { left: 34%; top: 18%; width: 40%; background: #e5e7eb; }
.oa.chat .b2 { right: 8%; top: 40%; width: 34%; background: #2f7ff5; }
.oa.chat .b3 { left: 34%; top: 62%; width: 50%; background: #e5e7eb; }
.oa.phone { display: flex; justify-content: center; }
.oa.phone .frame { width: 34%; height: 100%; background: #fff; border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.15); padding: 8px 5px; display: flex; flex-direction: column; gap: 5px; }
.oa.phone .hd { height: 9px; background: #f59e0b; border-radius: 4px; }
.oa.phone .r { height: 12px; background: #f1f1ef; border-radius: 3px; }
.oa.game { border-radius: 6px; overflow: hidden; }
.oa.game .sky { position: absolute; inset: 0; background: linear-gradient(#7dd3fc, #bae6fd); }
.oa.game .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: repeating-linear-gradient(90deg, #65a30d 0 10px, #4d7c0f 10px 20px); }
.oa.game .p { position: absolute; height: 8px; background: #a16207; border-radius: 2px; }
.oa.game .p1 { left: 18%; bottom: 40%; width: 24%; } .oa.game .p2 { right: 14%; bottom: 58%; width: 22%; }
.oa.game .hero { position: absolute; left: 25%; bottom: 22%; width: 10px; height: 14px; background: #dc2626; border-radius: 2px; }
.oa.game .coin { position: absolute; right: 22%; bottom: 68%; width: 8px; height: 8px; background: #facc15; border-radius: 50%; }
.oa.flow .n { position: absolute; width: 22%; height: 30%; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-2); }
.oa.flow .n1 { left: 0; top: 35%; width: 16%; height: 24%; } .oa.flow .n2 { left: 36%; top: 32%; }
.oa.flow .n3 { right: 0; top: 8%; width: 16%; height: 24%; } .oa.flow .n4 { right: 0; bottom: 8%; width: 16%; height: 24%; background: #dcfce7; }
.oa.flow i { position: absolute; height: 2px; background: #93c5fd; }
.oa.flow .w1 { left: 16%; top: 47%; width: 20%; } .oa.flow .w2 { left: 58%; top: 40%; width: 26%; transform: rotate(-22deg); } .oa.flow .w3 { left: 58%; top: 58%; width: 26%; transform: rotate(22deg); }
.oa.nb { display: flex; flex-direction: column; gap: 6px; }
.oa.nb .cell { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.oa.nb em { font: 600 8px var(--mono); color: #2f7ff5; font-style: normal; }
.oa.nb b { height: 4px; background: #d6d6d3; border-radius: 2px; } .oa.nb b.s { width: 60%; }
.oa.nb .out { flex: 1; flex-direction: row; align-items: flex-end; gap: 6px; padding-bottom: 6px; }
.oa.nb .out span { flex: 1; background: #f37726; border-radius: 2px 2px 0 0; }
.oa.slides .deck, .oa.doc .page { background: #fff; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.14); height: 100%; position: relative; }
.oa.slides .t { position: absolute; left: 10%; top: 22%; width: 46%; height: 8px; background: #1c1c1a; border-radius: 3px; }
.oa.slides .s { position: absolute; left: 10%; top: 40%; width: 34%; height: 5px; background: #d6d6d3; border-radius: 3px; }
.oa.slides .pic { position: absolute; right: 9%; top: 18%; width: 30%; height: 60%; border-radius: 5px; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.oa.doc { display: flex; justify-content: center; }
.oa.doc .page { width: 48%; padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; }
.oa.doc b { height: 4px; background: #d6d6d3; border-radius: 2px; } .oa.doc b.t { height: 7px; width: 70%; background: #1c1c1a; } .oa.doc b.s { width: 65%; }
.oa.sheet .grid { height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #d6d6d3; border-radius: 5px; overflow: hidden; border: 1px solid #d6d6d3; }
.oa.sheet .grid span { background: #fff; } .oa.sheet .grid span:nth-child(-n+5) { background: #dcfce7; }
.oa.viz { display: flex; align-items: flex-end; gap: 7%; padding: 0 6% 4%; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.oa.viz span { flex: 1; background: #2f7ff5; border-radius: 3px 3px 0 0; opacity: .85; }
.oa.viz i { position: absolute; left: 4%; right: 4%; bottom: 4%; height: 1px; background: #d6d6d3; }
.ca { display: block; height: 100%; background: #fff; border-radius: 6px 6px 0 0; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.1); overflow: hidden; }
.ca .dots { position: absolute; left: 6px; top: 5px; width: 22px; height: 5px; background: radial-gradient(circle, #f87171 2px, transparent 2.5px) 0 0/7px 5px repeat-x; }
.ca b { position: absolute; left: 12%; top: 22px; width: 46%; height: 5px; background: #1c1c1a; border-radius: 3px; }
.ca b.s { top: 31px; width: 32%; background: #d6d6d3; }
.ca .blk { position: absolute; bottom: 6px; width: 20%; height: 16px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 3px; }
.ca .blk:nth-of-type(1) { left: 12%; } .ca .blk:nth-of-type(2) { left: 40%; } .ca .blk:nth-of-type(3) { left: 68%; }
.ca.landing .blk { display: none; } .ca.landing b { left: 25%; } .ca.landing b.s { left: 32%; }
.ca.dash .blk { height: 26px; background: #f1f5f9; border-color: #e2e8f0; }
.ca.games .blk { background: #fef3c7; border-color: #fcd34d; }
.ca.shop .blk { background: #fff7ed; border-color: #fed7aa; }

/* ---------- Jupyter notebook viewer ---------- */
.nb { max-width: 980px; margin: 0 auto; padding: 18px 22px 30px; }
.nb-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.nb-bar svg.i { width: 16px; height: 16px; color: #f37726; }
.nb-count { margin-left: auto; }
.nb-cell { display: grid; grid-template-columns: 74px 1fr; gap: 8px; margin: 6px 0; align-items: start; }
.nb-prompt { font: 12px var(--mono); color: #2f7ff5; text-align: right; padding-top: 9px; }
.nb-prompt.out { color: #d9453b; }
.nb-code { margin: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.nb-outwrap { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nb-out { margin: 0; padding: 4px 2px; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--text); }
.nb-out.warn { background: color-mix(in srgb, #f59e0b 10%, transparent); padding: 6px 10px; border-radius: 6px; }
.nb-out.err { background: color-mix(in srgb, var(--red) 9%, transparent); color: var(--red); padding: 6px 10px; border-radius: 6px; }
.nb-img { max-width: 100%; height: auto; background: #fff; border-radius: 4px; align-self: flex-start; }
.nb-html { width: 100%; border: 0; min-height: 40px; background: #fff; border-radius: 4px; }
.md-cell .md { padding: 4px 0; }
@media (max-width: 1100px) { .opt-grid { grid-template-columns: repeat(3, 1fr); } .idea-grid, .idea-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .opt-grid { grid-template-columns: 1fr 1fr; } .idea-grid, .idea-grid.three { grid-template-columns: 1fr; } .nb-cell { grid-template-columns: 1fr; } .nb-prompt { text-align: left; padding: 0; } }

/* Create: sections, media thumbnails, slide themes, visualization selectors, option dropdowns */
.opt-sec { font-size: 13.5px; color: var(--muted); margin: 4px 4px 10px; }
.opt-grid + .opt-sec { margin-top: 20px; }
.oa.image .ph { position: absolute; width: 52%; height: 62%; border-radius: 4px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.oa.image .p1 { left: 10%; top: 8%; background: linear-gradient(160deg, #fcd9b8, #b98262); transform: rotate(-6deg); }
.oa.image .p2 { right: 8%; bottom: 6%; background: linear-gradient(180deg, #9cc5e8 0 55%, #2e5e86 55%); transform: rotate(4deg); }
.oa.video { display: flex; align-items: center; justify-content: center; }
.oa.video .scr { width: 78%; height: 82%; border-radius: 4px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); background: linear-gradient(180deg, #a5c8e4 0 45%, #6b8199 45% 70%, #3f5468 70%); display: flex; align-items: center; justify-content: center; }
.oa.video .play { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.65); position: relative; }
.oa.video .play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.oa.audio { display: flex; align-items: center; gap: 3%; padding: 0 6%; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.oa.audio span { flex: 1; background: #8b5cf6; border-radius: 2px; }
.theme { flex: none; width: 168px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.theme-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; position: relative; overflow: hidden; border: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--line); }
.theme.on .theme-thumb { border-color: var(--link); }
.theme.on .cat-name { color: var(--link); }
.theme-thumb b { position: absolute; left: 12%; top: 26%; width: 52%; height: 9px; border-radius: 3px; }
.theme-thumb em { position: absolute; left: 12%; top: 44%; width: 36%; height: 5px; border-radius: 3px; opacity: .5; }
.theme-thumb i { position: absolute; right: 10%; top: 22%; width: 22%; height: 50%; border-radius: 6px; }
.theme-thumb.imported { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--soft); color: var(--text-2); font-size: 11.5px; padding: 6px; }
.theme-thumb.imported b { position: static; height: auto; width: auto; background: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fmt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.fmt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; color: var(--text-2); }
.fmt:hover { background: var(--soft); }
.fmt.on { border-color: var(--link); color: var(--link); background: color-mix(in srgb, var(--link) 6%, var(--card)); }
.fmt svg.i { width: 22px; height: 22px; }
.fmt.chart svg { width: 60px; height: 36px; fill: currentColor; stroke: currentColor; color: var(--muted); }
.fmt.chart.on svg { color: var(--link); }
.hint-inline { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.opt-pop { bottom: 44px; left: 0; width: 290px; }
.opt-choice { height: auto; min-height: 38px; padding: 7px 10px; justify-content: space-between; }
.opt-choice b { font-weight: 500; display: block; }
.oc-desc { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.opt-choice svg.i { color: var(--link); width: 16px; height: 16px; flex: none; }
.media-wrap { height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; background: #111; }
.media-wrap video { max-width: 100%; max-height: 100%; border-radius: 8px; }
.media-wrap.audio-wrap { background: var(--soft); flex-direction: column; gap: 18px; }
.media-wrap.audio-wrap svg.i { width: 64px; height: 64px; color: #8b5cf6; }
.media-wrap.audio-wrap audio { width: min(520px, 100%); }
.modal-card:has(.audio-wrap) { height: auto; }
.modal-card:has(.audio-wrap) .media-wrap { padding: 40px 20px; }
.plug-ic.logo { background: var(--card); color: var(--text); }
.plug-ic.logo svg { width: 26px; height: 26px; }
.pf .plug-ic.logo svg { width: 28px; height: 28px; }

/* Undo toast */
.toast { display: flex; align-items: center; gap: 14px; }
.toast-action { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.toast-action:hover { opacity: 1; }

/* Home cards: the gray drawing on the right gives a small shake on hover */
@keyframes card-wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-5deg); }
  40% { transform: rotate(4deg); }
  60% { transform: rotate(-2.5deg); }
  80% { transform: rotate(1deg); }
}
.hcard-art { transform-origin: 60% 55%; }
.hcard:hover .hcard-art { animation: card-wiggle .55s ease-in-out; }
.hcard .chev-r { transition: transform .2s ease; }
.hcard:hover .chev-r { transform: translateX(3px) rotate(45deg); }
.folder-art { transform-origin: 50% 70%; }
.hcard.tall:hover .folder-art { animation: card-wiggle .55s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  .hcard:hover .hcard-art, .hcard.tall:hover .folder-art { animation: none; }
  .hcard .chev-r { transition: none; }
}
.demo-banner { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 0 24px 8px; padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--link) 9%, var(--bg)); color: var(--text-2); font-size: 13.5px; }
.demo-banner b { color: var(--link); }
.replay-bar { display: flex; align-items: center; gap: 10px; margin: 0 auto 6px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--text-2); }
.replay-bar button { font-weight: 600; color: var(--link); padding: 2px 8px; }
