/* The palettes. Colours, the top bar and chips come from shared/theme.css. */
body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
#main { flex: 1; overflow: auto; padding: 26px 24px 80px; }
.page { max-width: 1120px; margin: 0 auto; }
h1 { font: 600 42px/1.05 "Cormorant Garamond", Georgia, serif; margin: 0 0 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 14px 0 22px; }
.row { display: flex; flex-wrap: wrap; gap: 6px; }
#q { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); font-size: 16px; outline: none; width: 220px; }
#q:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
section.cat { margin-bottom: 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px; }
.pal h3 { font: 600 22px/1.1 "Cormorant Garamond", Georgia, serif; margin: 0 0 10px; display: flex; justify-content: space-between; gap: 8px; }
.pal h3 a { color: inherit; text-decoration: none; }
.pal h3 a:hover { color: var(--link); }
.label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 8px 0 4px; }
.sw { display: flex; gap: 6px; flex-wrap: wrap; }
.s { width: 64px; cursor: pointer; text-align: left; border: 0; background: none; padding: 0; }
.s i { display: block; height: 46px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); background: var(--c); }
.s b { display: block; font-weight: 500; font-size: 12.5px; line-height: 1.15; margin-top: 4px; }
.s small { display: block; font: 11px Consolas, monospace; color: var(--muted); }
.bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.bar button { border: 0; padding: 0; cursor: pointer; background: var(--c); }
.pend { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.pend svg { flex: none; }
.tools { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tools .chip { font-size: 14px; padding: 2px 10px; }
a.chip { text-decoration: none; color: var(--link); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg);
  padding: 8px 16px; border-radius: 999px; font-size: 15px; box-shadow: 0 10px 30px var(--shadow); }
@media (max-width: 760px) {
  #main { padding: 18px 16px 60px; }
  h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
}
