* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #172b42;
  --secondary: #52647a;
  --accent: #0866d6;
  --wash: #e8f2ff;
  --line: #dce5ee;
  --paper: #fff;
  --shell: rgba(249,252,255,.81);
  --focus: #006ace;
  --radius: 20px;
  --shade: 0 8px 30px #263f6710;
  --side: 228px;
  font: 14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,"PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink);
  background: #f2f6fb;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 13% -5%,#d7eaff 0,transparent 39%),radial-gradient(ellipse at 98% 6%,#e7f2ff 0,transparent 36%),#f4f7fb;
  background-attachment: fixed;
  min-height: 100vh;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button,input,textarea,select {
  font: inherit;
  color: inherit;
}
button,a,select,input,textarea {
  touch-action: manipulation;
}
button,.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--paper);
  border: 1px solid #d5dfea;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 15px;
  cursor: pointer;
  line-height: 1.4;
  min-height: 36px;
}
button:hover,.button:hover {
  background: #f1f6fb;
  border-color: #a9bdd6;
}
.primary {
  background: linear-gradient(180deg,#1178ec,#0561d1);
  color: white;
  border-color: #0763d4;
  box-shadow: inset 0 1px #ffffff44,0 3px 9px #0063cb21;
}
.primary:hover {
  background: #075bbd;
  color: white;
}
.danger {
  color: #a8302b;
}
.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--secondary);
}
.iconbtn {
  padding: 8px;
  border-radius: 12px;
}
.linklike {
  min-height: auto;
  padding: 0;
  color: var(--accent);
  border: 0;
  background: none;
}
.ic {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.65;
}
.primary .ic {
  stroke-width: 2;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  z-index: 99;
  top: -70px;
  left: 8px;
  padding: 6px 12px;
  background: white;
}
.skip:focus {
  top: 8px;
}
button:disabled,input:disabled {
  opacity: .55;
  cursor: default;
}
.glass {
  background: var(--shell);
  border: 1px solid #ffffffdd;
  box-shadow: var(--shade),inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
aside.nav {
  position: fixed;
  inset: 14px auto 14px 14px;
  width: var(--side);
  display: flex;
  flex-direction: column;
  border-radius: 23px;
  z-index: 8;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  padding: 24px 19px 19px;
  font-size: 19px;
  font-weight: 740;
  letter-spacing: -.6px;
}
.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px #0a4c9822);
}
.brand small {
  display: block;
  color: #566b82;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 530;
  margin-top: -1px;
}
nav {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 6px;
  scrollbar-width: thin;
}
.nav-group {
  font-weight: 650;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #5a7088;
  padding: 16px 12px 6px;
}
.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  color: #40536a;
  border-radius: 11px;
  line-height: 1.4;
  min-height: 35px;
}
.nav-item:hover {
  background: #e9f1fa;
}
.nav-item.active {
  background: linear-gradient(120deg,#dcedff,#e4f1ff);
  color: #075bb9;
  box-shadow: inset 0 0 0 1px #c7e0fc;
  font-weight: 650;
}
.navfoot {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar,.tileicon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e4efff;
  color: #1c5fa8;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.navfoot .profile {
  min-width: 0;
  flex: 1;
}
.profile strong,.profile small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile strong {
  font-size: 12px;
}
.profile small {
  font-size: 11px;
  color: var(--secondary);
}
#workspace {
  margin-left: calc(var(--side) + 30px);
  padding: 14px 26px 36px 0;
  max-width: 2250px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 6;
  border-radius: 18px;
  padding: 9px 12px;
  gap: 14px;
  margin-bottom: 29px;
}
.tools,.row,.actions,.tabs,.filterbar,.hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.top-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  max-width: 490px;
}
.top-search input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  padding: 5px 0;
}
.top-search kbd {
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  color: var(--secondary);
  white-space: nowrap;
  padding: 0 5px;
  font-family: inherit;
  font-size: 11px;
}
.topbar .divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
[data-collapsed=true] {
  --side: 64px;
}
[data-collapsed=true] .brand {
  padding: 18px 11px;
}
[data-collapsed=true] .brand span,[data-collapsed=true] .navfoot .profile,[data-collapsed=true] .nav-group,[data-collapsed=true] .nav-item span,[data-collapsed=true] .navfoot .avatar {
  display: none;
}
[data-collapsed=true] .nav-item {
  justify-content: center;
  padding: 11px;
}
h1,h2,h3,h4,p {
  margin: 0;
}
h1 {
  font-size: clamp(25px,2vw,30px);
  line-height: 1.3;
  letter-spacing: -.75px;
  font-weight: 680;
}
h2 {
  font-size: 18px;
  font-weight: 670;
  letter-spacing: -.25px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p,.muted,.hint,.minor {
  color: var(--secondary);
}
.hint,.minor,small {
  font-size: 12px;
}
.lead {
  margin-top: 5px;
}
.pagehead,.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pagehead {
  margin: 0 0 20px;
}
.pagehead .actions,.actions {
  flex-wrap: wrap;
}
.block,.panel,.asset,.metric,.skilltile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 2px 6px #1a365403;
}
.block,.panel {
  padding: 21px;
}
.sectionhead {
  margin-bottom: 16px;
}
.block+.block,.spaced {
  margin-top: 18px;
}
.sectionhead>a {
  font-size: 13px;
}
.crumbs {
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 9px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  padding: 28px 30px;
  background: radial-gradient(ellipse at 74% 100%,#d9edff,transparent 50%),linear-gradient(110deg,#fbfdff,#e8f4ff 57%,#d7eafe);
  border: 1px solid #cddff3;
  min-height: 147px;
  display: flex;
  align-items: center;
}
.hero h1 {
  font-size: 30px;
}
.hero p {
  margin: 5px 0 15px;
}
.hero-art {
  position: absolute;
  right: 6%;
  top: 50%;
  width: 170px;
  height: 118px;
  transform: translateY(-50%);
  z-index: -1;
}
.hero-art i {
  position: absolute;
  width: 117px;
  height: 85px;
  border: 1px solid #ffffffd9;
  border-radius: 14px;
  transform: rotate(-31deg) skew(16deg,5deg);
  box-shadow: 4px 8px 12px #1468b41a,inset 1px 2px 3px #ffffffc0;
  background: linear-gradient(135deg,#e7f8ffa8,#7ebfecae);
}
.hero-art i:nth-child(1) {
  left: 30px;
  top: 41px;
  background: linear-gradient(125deg,#40a4ed,#126bbf);
}
.hero-art i:nth-child(2) {
  left: 23px;
  top: 27px;
}
.hero-art i:nth-child(3) {
  left: 16px;
  top: 13px;
  background: linear-gradient(130deg,#ffffffe3,#a8d6fcb3);
}
.hero-art i:nth-child(3):after {
  content: "";
  display: block;
  margin: 20px;
  width: 65%;
  height: 7px;
  background: #ffffffb3;
  border-radius: 7px;
  box-shadow: 0 16px 0 #ffffff88;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin: 18px 0 24px;
}
.metric {
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  color: inherit;
}
.metric b {
  display: block;
  font: 650 23px/1.15 system-ui;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.6px;
}
.metric small {
  display: block;
  margin-top: 4px;
  color: var(--secondary);
}
.metric .tileicon {
  width: 40px;
  height: 40px;
}
.t1 {
  background: #e6f1ff;
  color: #1267bc;
}
.t2 {
  background: #e3f5ef;
  color: #19765d;
}
.t3 {
  background: #fff0d9;
  color: #926000;
}
.t4 {
  background: #ececfa;
  color: #555f97;
}
.split {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,215px),1fr));
  gap: 14px;
}
.asset {
  overflow: hidden;
  color: inherit;
  position: relative;
  border-radius: 16px;
  min-width: 0;
  transition: box-shadow .15s,transform .15s;
}
.asset:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px #26487614;
}
.asset .thumb {
  aspect-ratio: 2.05;
  display: grid;
  place-items: center;
  background: #f0f5fa;
  border-bottom: 1px solid var(--line);
  color: #6d88a1;
}
.asset .thumb .ic {
  width: 34px;
  height: 34px;
  stroke-width: 1.25;
}
.asset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.asset-body {
  padding: 12px 14px;
}
.asset h3,.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-body .row {
  margin-top: 8px;
  font-size: 12px;
  color: var(--secondary);
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 2px 7px;
  background: #eef3f9;
  color: #44566d;
  font-size: 11px;
  font-weight: 600;
}
.tag.good {
  background: #e3f3ec;
  color: #186548;
}
.tag.warn {
  background: #fff0d5;
  color: #805000;
}
.tag.bad {
  background: #ffebe7;
  color: #a3342d;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 28px 16px;
  color: var(--secondary);
  min-height: 110px;
}
.empty>.ic {
  width: 25px;
  height: 25px;
  color: #6887a6;
  margin-bottom: 3px;
}
.empty strong {
  color: #425974;
  font-size: 14px;
}
.empty a,.empty button {
  margin-top: 6px;
}
.compactrow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.compactrow:first-child {
  border-top: 0;
}
.grow {
  min-width: 0;
  flex: 1;
}
.compactrow small {
  display: block;
  color: var(--secondary);
}
.align-right {
  margin-left: auto;
}
.filterbar,.tabs,.actions,.wrap {
  flex-wrap: wrap;
}
.filterbar {
  margin-bottom: 16px;
}
.filterbar form {
  display: contents;
}
.tabs {
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  margin-bottom: 17px;
}
.tabs a,.tabs button {
  background: none;
  border: 0;
  border-radius: 9px;
  min-height: 32px;
  padding: 6px 11px;
  color: #52647a;
  font-weight: 520;
}
.tabs .chosen {
  background: var(--wash);
  color: #0659af;
  font-weight: 650;
}
input:not([type=checkbox]):not([type=file]),select,textarea {
  border: 1px solid #cdd9e6;
  background: white;
  padding: 8px 11px;
  border-radius: 10px;
  max-width: 100%;
  min-height: 37px;
}
.top-search input:not([type=checkbox]) {
  border: 0;
  background: transparent;
}
textarea {
  min-height: 78px;
  resize: vertical;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 13px;
  font-weight: 580;
}
label.field>small {
  font-weight: 400;
}
.field input,.field textarea,.field select {
  width: 100%;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 13px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}
th,td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  color: #53647b;
  font-weight: 600;
  background: #f7f9fc;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
td.wraptext {
  white-space: normal;
  min-width: 90px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(235px,302px);
  gap: 16px;
  align-items: start;
}
.facts {
  margin: 0;
}
.facts div {
  padding: 8px 0;
  display: grid;
  grid-template-columns: minmax(74px,.7fr) minmax(0,1.3fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.facts div:last-child {
  border-bottom: 0;
}
.facts dt {
  color: var(--secondary);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.code,pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: 12px/1.6 ui-monospace,Consolas,monospace;
  color: #263c55;
}
.filelist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-height: 340px;
  overflow: auto;
}
.filelist button {
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.previewbox {
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  overflow: auto;
  text-align: center;
  min-height: 180px;
}
.previewbox iframe {
  height: 400px;
  max-width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
}
.previewbox .cbot-frame {
  display: block;
  width: min(100%, 768px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
}
.previewbox .cbot-frame[data-ratio="9:16"] {
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
}
.previewbox img {
  max-width: 100%;
  max-height: 400px;
}
.form-error,.warning {
  padding: 9px 12px;
  background: #fff1e9;
  color: #803511;
  border: 1px solid #f2dac7;
  border-radius: 10px;
  margin: 8px 0;
}
.form-error:empty {
  display: none;
}
.mobile-only {
  display: none;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 17px 0;
}
dialog {
  color: var(--ink);
  border: 1px solid #dce6f2;
  border-radius: 22px;
  box-shadow: 0 25px 85px #15284142;
  max-width: min(550px,94vw);
  width: 100%;
  max-height: 90dvh;
  padding: 24px;
}
dialog::backdrop {
  background: #20364a4f;
}
dialog h2 {
  margin-bottom: 14px;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 16px;
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: #253b50;
  color: white;
  box-shadow: var(--shade);
  border-radius: 10px;
  padding: 10px 15px;
  max-width: 90vw;
}
#notice:empty {
  display: none;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: min(100%,418px);
  border-radius: 25px;
  padding: 34px;
}
.login-card .brand {
  padding: 0 0 22px;
}
.login-card h1 {
  font-size: 25px;
}
.login-card form {
  margin-top: 22px;
}
.login-card .primary {
  width: 100%;
}
.skilltile {
  padding: 18px;
}
.skilltile .tileicon {
  margin-bottom: 10px;
}
.skilltile p {
  margin: 5px 0 12px;
}
.skilltile ul {
  padding-left: 18px;
  color: var(--secondary);
}
.steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 0 0 18px;
}
.steps li {
  border-radius: 8px;
  padding: 5px 10px;
  color: #536780;
  background: #edf2f8;
}
.steps .current {
  background: #dcecff;
  color: #0758aa;
  font-weight: 650;
}
.upload-zone {
  display: block;
  border: 1.5px dashed #92b7dc;
  border-radius: 15px;
  padding: 25px;
  background: #f3f8ff;
  text-align: center;
  margin-bottom: 15px;
}
.upload-zone span {
  display: block;
  margin-bottom: 10px;
}
.upload-zone input {
  max-width: 100%;
}
.source-layout {
  display: grid;
  grid-template-columns: minmax(130px,25%) minmax(0,1fr);
  gap: 10px;
}
@supports not (backdrop-filter:blur(1px)) {
  .glass {
    background: #f5f9fe;
  }
}
[data-reduced=true] .glass {
  background: #f5f9fe;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media(prefers-reduced-transparency:reduce) {
  .glass {
    background: #f5f9fe;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}
@media(max-height:800px) and (min-width:769px) {
  .nav-group {
    padding-top: 8px;
  }
  .nav-item {
    padding-top: 6px;
    padding-bottom: 6px;
    min-height: 30px;
  }
  .brand {
    padding-top: 16px;
    padding-bottom: 12px;
  }
}
@media(max-width:1100px) {
  :root {
    --side: 198px;
  }
  .metric {
    padding: 12px;
  }
  .metrics {
    gap: 8px;
  }
  #workspace {
    padding-right: 16px;
  }
  .two-col {
    grid-template-columns: minmax(0,1fr) 235px;
  }
}
@media(max-width:880px) {
  .two-col,.split {
    grid-template-columns: 1fr;
  }
  .hero-art {
    right: 0;
    opacity: .7;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media(max-width:768px) {
  body {
    overflow-x: hidden;
  }
  #workspace {
    margin: 0;
    padding: 8px 12px 24px;
  }
  aside.nav {
    display: none;
    inset: 8px auto 8px 8px;
    width: min(82vw,258px);
  }
  [data-menu=open] aside.nav {
    display: flex;
  }
  body[data-menu=open]:before {
    content: "";
    position: fixed;
    inset: 0;
    background: #28415c38;
    z-index: 7;
  }
  .mobile-only {
    display: inline-flex;
  }
  .desk-only,.top-search kbd,.topbar .divider,.hero-art {
    display: none;
  }
  .topbar {
    position: sticky;
    top: 4px;
    padding: 6px;
    gap: 4px;
    margin-bottom: 18px;
  }
  .tools,.top-search {
    gap: 4px;
  }
  .top-search input {
    font-size: 13px;
  }
  .topbar .primary {
    padding: 7px 11px;
    white-space: nowrap;
  }
  .hero {
    padding: 21px;
    min-height: 140px;
  }
  .hero h1 {
    font-size: 25px;
  }
  .pagehead {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .block,.panel {
    padding: 15px;
  }
  .metric {
    gap: 8px;
  }
  .metrics {
    margin: 12px 0 16px;
  }
  .formgrid,.source-layout {
    grid-template-columns: 1fr;
  }
  .filterbar input,.filterbar select {
    min-width: 0;
    max-width: 100%;
  }
  .grid {
    grid-template-columns: repeat(auto-fill,minmax(min(145px,100%),1fr));
  }
  .asset .thumb {
    aspect-ratio: 1.65;
  }
  .split {
    gap: 12px;
  }
  .one-col-mobile {
    flex-direction: column;
    align-items: stretch;
  }
  .login-card {
    padding: 24px;
  }
  .inspector summary {
    cursor: pointer;
  }
  .tabs {
    gap: 1px;
  }
  .tabs a,.tabs button {
    padding: 6px 8px;
  }
}
@media(min-width:769px) {
  .inspector>summary {
    display: none;
  }
}
.split>.block+.block,.two-col>.block+.block {
  margin-top: 0;
}
.thumb {
  overflow: hidden;
}
.thumb img {
  min-height: 0;
}
.thumb-fallback { display: grid; justify-items: center; gap: 6px; color: var(--secondary); }
.asset-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-top: 4px; color: var(--secondary); font-size: 12px; }
.asset-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-version { margin-left: auto; font-variant-numeric: tabular-nums; }
.gallery .pagehead { margin-bottom: 12px; align-items: center; }
.gallery-title, .gallery-pages { display: flex; align-items: baseline; gap: 12px; }
.gallery-title > span, .gallery-pages > span { font-size: 13px; color: var(--secondary); }
.gallery-toolbar { margin-bottom: 15px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: var(--shell); box-shadow: inset 0 1px #fff, var(--shade); }
.gallery-quick, .gallery-query, .gallery-selects, .gallery-advanced { display: flex; align-items: center; gap: 7px; }
.gallery-quick { flex-wrap: wrap; }
.gallery-query { min-width: 240px; flex: 1 1 280px; padding-left: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--secondary); }
.gallery-query input[type=search]:not([type=file]) { flex: 1 1 80px; width: 0; min-width: 20px; padding: 5px 0; border: 0; background: transparent; }
.gallery-query select { flex: none; min-height: 30px; padding: 4px; border: 0; background: transparent; font-size: 13px; }
.gallery-query button { min-height: 30px; margin-right: 3px; padding: 4px 12px; color: #194f86; background: var(--wash); border: 0; border-radius: 7px; }
.gallery-selects { flex-wrap: wrap; }
.gallery-selects select { min-width: 0; max-width: 158px; }
.gallery-selects select, .gallery-more { padding: 6px 9px; border-radius: 9px; min-height: 34px; font-size: 13px; }
.gallery-more[aria-expanded=true] { background: var(--wash); color: var(--accent); }
.gallery-advanced { flex-wrap: wrap; margin-top: 7px; border-top: 1px solid var(--line); padding: 7px 3px 0; }
.gallery-advanced[hidden] { display: none; }
.gallery-shortcuts { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; margin: -7px 0 9px; }
.gallery-shortcuts a { white-space: nowrap; padding: 4px 11px; color: var(--secondary); border-radius: 999px; font-size: 13px; }
.gallery-shortcuts a[aria-current], .gallery-shortcuts a:hover { color: #115b9c; background: #e0eeff; }
.gallery-groups { margin-top: 0; }
.gallery-groups a { padding-block: 7px; }
.gallery-categories { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--shell); }
.gallery-categories a { padding: 4px 9px; border-radius: 999px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); font-size: 13px; }
.gallery-categories a[aria-current], .gallery-categories a:hover { color: #115b9c; background: #e0eeff; border-color: #bacfed; }
.gallery-groups a > span, .gallery-categories a > span { color: var(--secondary); font-variant-numeric: tabular-nums; font-size: .88em; }
.gallery #search-mode-note { margin: -5px 0 10px; }
.gallery-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,305px),1fr)); gap: 16px; }
.gallery-grid > :only-child { max-width: 580px; }
.gallery-grid .asset { border-radius: 18px; display: flex; flex-direction: column; }
.gallery-grid .thumb { position: relative; aspect-ratio: 1.6; background: #e9eff4; }
.gallery-grid .thumb img { position: absolute; inset: 0; object-fit: contain; }
.gallery-grid .asset-body { padding: 10px 14px 12px; }
.gallery-grid h3 { font-size: 16px; }
.gallery-pages { justify-content: center; align-items: center; margin-top: 22px; }
@media(max-width:768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); gap: 11px; }
  .gallery-title { gap: 7px; }
  .gallery-query { min-width: 0; flex-basis: 100%; }
  .gallery-selects { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1fr) auto; gap: 4px; width: 100%; }
  .gallery-selects select { max-width: none; width: 100%; padding-inline: 4px; }
  .gallery-advanced input { min-width: 0; width: 130px; }
}
@media(prefers-reduced-transparency:reduce) { .gallery-toolbar { background: var(--paper); } }
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.color-chip i {
  width: 25px;
  height: 25px;
  border: 1px solid #b4c4d5;
  border-radius: 7px;
}
.readme {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  line-height: 1.7;
}
.file-kind {
  color: #52647b;
}
.topbar .top-search {
  margin-right: auto;
}
.gallery-grid .gallery-audio { padding: 0 12px 12px; margin-top: auto; }
.gallery-audio audio { display: block; width: 100%; height: 44px; min-width: 168px; }
