/* Layout and interactions for this SelShelf UI. */
/* The same font family is supplied by local-fonts.css. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Zen Kaku Gothic New',sans-serif;
  animation: waterFlow 15s ease infinite;
  overflow-x: hidden;
}

.surface-glare {
  position: fixed;
  inset: 0;
  opacity: .72;
  pointer-events: none;
  z-index: 0;
}

.caustics {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  opacity: .14;
  filter: blur(10px);
  animation: causticMove 18s ease-in-out infinite alternate;
}

.shell {
  width: min(100%,1000px);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.brand {
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 6px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.brand-title {
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-sub {
  font-size: .72rem;
  margin-top: 2px;
  letter-spacing: .04em;
}

.mode-pill {
  font-size: .69rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  padding: 7px 11px;
  border-radius: 999px;
}

.pond-wrap {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pond-container {
  position: relative;
  width: 100%;
  padding: 24px 16px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.liquid-card {
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: all .5s cubic-bezier(.25,1,.5,1);
  isolation: isolate;
  overflow: visible;
}

.liquid-card::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  opacity: 0;
  transform: scale(.8);
  pointer-events: none;
  z-index: -1;
}

.liquid-card:hover::before {
  animation: ripple 1.5s linear infinite;
}

.liquid-card.selected {
  animation: none;
}

.liquid-card.selected::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 11px;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.app-icon {
  font-size: 2rem;
  transition: transform .3s,filter .3s;
}

.liquid-card.selected .app-icon {
  transform: scale(1.16);
}

.card-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
  transform: scale(1.02);
  transition: transform .55s ease,filter .45s ease;
  filter: saturate(1.02) contrast(1.02);
}

.liquid-card.selected .card-art {
  transform: scale(1.07);
}

.card-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px 11px 13px;
}

.app-name {
  font-size: .85rem;
  font-weight: 700;
}

.liquid-card:not(.new-card) .app-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: calc(100% - 24px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.liquid-card.has-art .app-name {
  max-width: 100%;
}

.splash-drop {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
}

.click-ring {
  position: fixed;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%,-50%) scale(.5);
  animation: clickRing .85s cubic-bezier(.16,1,.3,1) forwards;
}

.click-ring.r2 {
  animation-delay: .08s;
}

.click-ring.r3 {
  animation-delay: .16s;
}

.detail-panel {
  position: relative;
  width: min(100%,790px);
  margin: 4px auto 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .52s ease,transform .82s cubic-bezier(.16,1,.3,1),filter .72s ease,clip-path .86s cubic-bezier(.16,1,.3,1),background .65s ease,border-color .55s ease,box-shadow .55s ease;
  overflow: hidden;
}

.detail-panel.forming {
  transform: translateY(18px) scale(.985);
  filter: blur(12px);
  clip-path: inset(28% 38% 28% 38% round 44px);
}

.detail-panel.show {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block: 16px;
}

.detail-panel.show .item-detail-grid {
  animation-delay: .08s;
}

.detail-panel.show .panel-actions {
  animation-delay: .16s;
}

.formation-blob {
  position: fixed;
  z-index: 146;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  will-change: transform,width,height,left,top,border-radius,opacity,filter;
}

.formation-blob::after {
  content: '';
  position: absolute;
  inset: -20%;
  animation: blobShimmer .65s ease-in-out infinite alternate;
}

.condense-drop {
  position: fixed;
  z-index: 147;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform,opacity,filter;
}

.formation-wave {
  position: fixed;
  z-index: 145;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(.2);
  animation: formationWave 1s cubic-bezier(.16,1,.3,1) forwards;
}

.detail-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-115%);
}

.detail-panel.show::before {
  animation: panelScan .95s .1s cubic-bezier(.16,1,.3,1) both;
}

.detail-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 26px 28px 22px;
}

.detail-icon {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
}

.detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-content {
  min-width: 0;
  flex: 1;
}

.detail-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.detail-desc {
  font-size: .9rem;
  line-height: 1.65;
  margin-top: 7px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  padding: 16px 20px;
}

.quick-item {
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 0;
}

.quick-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.quick-value {
  font-size: .82rem;
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 20px 16px;
}

.item-detail-card {
  border-radius: 17px;
  padding: 13px 14px;
  min-width: 0;
}

.item-detail-card.full {
  grid-column: 1/-1;
}

.item-detail-label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.item-detail-value {
  font-size: .88rem;
  line-height: 1.6;
  word-break: break-word;
}

.item-detail-value.empty {
  font-weight: 500;
}

.item-detail-link {
  text-decoration: none;
  word-break: break-all;
}

.item-detail-link:hover {
  text-decoration: underline;
}

.item-memo {
  white-space: pre-wrap;
}

.tabs {
  display: flex;
  gap: 5px;
  padding: 14px 18px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.tab-page {
  display: none;
  padding: 16px 22px 23px;
}

.tab-page.active {
  display: block;
  animation: tabIn .32s ease both;
}

.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-card {
  border-radius: 17px;
  padding: 13px 14px;
  min-width: 0;
}

.info-card.full {
  grid-column: 1/-1;
}

.info-label {
  font-size: .66rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: .04em;
}

.info-value {
  font-size: .86rem;
  line-height: 1.55;
  word-break: break-word;
}

.info-link {
  text-decoration: none;
}

.info-link:hover {
  text-decoration: underline;
}

.memo-box {
  border-radius: 18px;
  padding: 14px 15px;
  font-size: .86rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.empty {
  font-weight: 500;
}

.history-item {
  display: flex;
  gap: 12px;
  padding: 10px 2px;
}

.history-date {
  font-size: .72rem;
  white-space: nowrap;
  padding-top: 2px;
}

.history-text {
  font-size: .84rem;
  line-height: 1.55;
}

.panel-actions {
  display: flex;
  gap: 8px;
  padding: 0 22px 20px;
}

.soft-btn {
  backdrop-filter: blur(8px);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  backdrop-filter: blur(9px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  width: min(100%,660px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 26px;
  padding: 22px;
}

.modal h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-size: .68rem;
  font-weight: 700;
}

.field input,.field textarea,.field select {
  width: 100%;
  font: inherit;
  font-size: .83rem;
  border-radius: 12px;
  padding: 9px 10px;
  outline: none;
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

body,.surface-glare,.caustics,.liquid-card,.detail-panel,.quick-item,.info-card,.memo-box,.soft-btn,.modal,.modal-backdrop,.tab,.mode-pill {
  transition: background .65s ease,border-color .55s ease,box-shadow .55s ease,color .45s ease,opacity .55s ease,filter .55s ease;
}

.mode-pill {
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  appearance: none;
  outline: none;
}

.mode-pill:hover {
  transform: translateY(-1px);
}

.mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.theme-flash {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0);
  opacity: .85;
  animation: themeBloom .85s cubic-bezier(.16,1,.3,1) forwards;
}

body[data-theme="dark"] {
  animation-duration: 20s;
}

body[data-theme="dark"] .caustics {
  opacity: .07;
  filter: blur(16px) saturate(1.25);
  mix-blend-mode: screen;
}

body[data-theme="dark"] .liquid-card.selected::after {
  filter: blur(6px);
}

body[data-theme="dark"] .splash-drop {
  width: 8px;
  height: 8px;
}

.image-picker {
  grid-column: 1/-1;
}

.image-picker-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.image-preview {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: .74rem;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.file-btn input {
  display: none;
}

.image-note {
  font-size: .72rem;
  margin-top: 5px;
}

@media(max-width:720px) {
  .shell {
    padding: 20px 14px 38px;
}

  .brand {
    padding: 0 4px;
}

  .brand-sub {
    display: none;
}

  .pond-container {
    gap: 18px;
    padding: 22px 4px 26px;
}

  .app-icon {
    font-size: 1.8rem;
}

  .detail-panel {
    border-radius: 24px;
}

  .detail-hero {
    padding: 22px 20px 18px;
    gap: 15px;
}

  .detail-icon {
    font-size: 2.7rem;
}

  .detail-title {
    font-size: 1.28rem;
}

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
}

  .tab-page {
    padding: 14px 15px 20px;
}

  .info-list {
    grid-template-columns: 1fr;
}

  .info-card.full {
    grid-column: auto;
}

  .form-grid {
    grid-template-columns: 1fr;
}

  .field.full {
    grid-column: auto;
}
}

@media(max-width:430px) {

  .mode-pill {
    font-size: .62rem;
}

  .quick-grid {
    gap: 8px;
}

  .quick-item {
    padding: 9px 10px;
}

  .item-detail-grid {
    grid-template-columns: 1fr;
    padding: 14px 13px 12px;
}

  .item-detail-card.full {
    grid-column: auto;
}
}

.waterline {
  display: none;
}

@media (max-width:600px) {
  html,body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

  body {
    height: 100dvh;
    min-height: 100dvh;
}

  .shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 12px 12px 10px;
    display: grid;
    grid-template-rows: auto minmax(0,48fr) 24px minmax(0,52fr);
    align-items: stretch;
    overflow: hidden;
}

  .brand {
    margin-bottom: 4px;
    padding: 0 2px 6px;
    min-height: 42px;
}

  .brand-sub {
    display: none;
}

  .brand-title {
    font-size: .84rem;
}

  .mode-pill {
    font-size: .61rem;
    padding: 6px 9px;
}

  .pond-wrap {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: block;
    position: relative;
}

  .pond-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    justify-items: center;
    align-content: start;
    gap: 18px 12px;
    padding: 18px 10px 38px;
    scrollbar-width: none;
}

  .pond-container::-webkit-scrollbar {
    display: none;
}

  .app-name {
    font-size: .80rem;
}

  .card-meta {
    padding: 11px 11px 13px;
}

  .waterline {
    display: block;
    position: relative;
    height: 24px;
    margin: 0 -12px;
    z-index: 12;
    pointer-events: none;
    overflow: visible;
}

  .waterline::before {
    content: '';
    position: absolute;
    left: -5%;
    right: -5%;
    top: 7px;
    height: 10px;
    border-radius: 50%;
    filter: blur(.25px);
    opacity: .92;
    animation: mobileWaterDrift 5.8s ease-in-out infinite alternate;
}

  .waterline::after {
    content: '';
    position: absolute;
    left: -8%;
    right: -8%;
    top: 10px;
    height: 2px;
    border-radius: 999px;
    animation: mobileWaterShimmer 4.4s ease-in-out infinite alternate;
}

  .waterline-glint {
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 38px;
    filter: blur(5px);
}

  .detail-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0 auto;
    border-radius: 24px 24px 20px 20px;
}

  .detail-panel.show {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

  .detail-panel.show::-webkit-scrollbar {
    display: none;
}

  .detail-panel.forming {
    overflow: hidden;
}

  .detail-hero {
    padding: 18px 17px 14px;
    gap: 12px;
}

  .detail-icon {
    font-size: 2.35rem;
}

  .detail-title {
    font-size: 1.16rem;
}

  .detail-desc {
    font-size: .82rem;
    line-height: 1.55;
    margin-top: 5px;
}

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    padding: 11px;
    gap: 7px;
}

  .quick-item {
    padding: 8px 9px;
}

  .quick-value {
    font-size: .77rem;
}

  .tabs {
    padding: 8px 9px 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

  .tabs::-webkit-scrollbar {
    display: none;
}

  .tab {
    flex: 0 0 auto;
    font-size: .75rem;
    padding: 7px 9px;
}

  .tab-page {
    padding: 11px 12px 16px;
}

  .panel-actions {
    padding: 0 12px 15px;
}

  body[data-theme="dark"] .waterline::before {
    opacity: .78;
}
}

@media (max-width:600px) and (max-height:700px) {
  .shell {
    grid-template-rows: auto minmax(0,46fr) 22px minmax(0,54fr);
}

  .pond-container {
    gap: 14px 10px;
    padding-top: 12px;
}
}

@media (min-width:601px) {
  html,body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

  body {
    height: 100dvh;
    min-height: 100dvh;
}

  .shell {
    width: min(100%,1080px);
    height: 100dvh;
    min-height: 100dvh;
    padding: 24px 24px 20px;
    display: grid;
    grid-template-rows: auto minmax(0,42dvh) 30px minmax(0,1fr);
    align-items: stretch;
    overflow: hidden;
}

  .brand {
    margin-bottom: 6px;
    padding: 0 4px 4px;
}

  .pond-wrap {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: block;
    position: relative;
}

  .pond-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px 12px 84px;
    gap: 26px 30px;
    justify-content: center;
    align-content: start;
    scrollbar-width: none;
}

  .pond-container::-webkit-scrollbar {
    display: none;
}

  .waterline {
    display: block;
    position: relative;
    height: 30px;
    margin: 0 -18px;
    z-index: 12;
    pointer-events: none;
    overflow: visible;
}

  .waterline::before {
    content: '';
    position: absolute;
    left: -4%;
    right: -4%;
    top: 9px;
    height: 12px;
    border-radius: 50%;
    opacity: .96;
    filter: blur(.3px);
    animation: desktopWaterDrift 6.1s ease-in-out infinite alternate;
}

  .waterline::after {
    content: '';
    position: absolute;
    left: -6%;
    right: -6%;
    top: 12px;
    height: 2px;
    border-radius: 999px;
    animation: desktopWaterShimmer 4.8s ease-in-out infinite alternate;
}

  .waterline-glint {
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 46px;
    filter: blur(6px);
}

  .detail-panel {
    width: min(100%,920px);
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0 auto;
    border-radius: 28px 28px 22px 22px;
}

  .detail-panel.show {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

  .detail-panel.show::-webkit-scrollbar {
    display: none;
}

  .detail-panel.forming {
    overflow: hidden;
}

  body[data-theme="dark"] .waterline::before {
    opacity: .82;
}
}

@media (display-mode: standalone) {
  .page-art::before,
  .page-art::after {
    content: none !important;
    display: none !important;
}

  html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

  body {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

  .shell {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding-top: calc(env(safe-area-inset-top) + 14px);
    padding-bottom: 0 !important;
    padding-left: max(12px,calc(env(safe-area-inset-left) + 10px));
    padding-right: max(12px,calc(env(safe-area-inset-right) + 10px));
}
}

@media (display-mode: standalone) and (max-width:600px) {
  .shell {
    grid-template-rows: auto
      minmax(0,48fr)
      24px
      minmax(0,52fr);
}

  .detail-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    margin: 0;
    border-radius: 24px 24px 0 0;
}

  .detail-panel.show {
    height: 100%;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
}

  .panel-actions {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
}

  .tab-page {
    scroll-margin-bottom: calc(env(safe-area-inset-bottom) + 16px);
}
}

@media (display-mode: standalone) and (min-width:601px) {
  .shell {
    padding-top: calc(env(safe-area-inset-top) + 18px);
    padding-bottom: 0 !important;
}

  .detail-panel {
    height: 100%;
    max-height: none;
    margin: 0 auto;
    border-radius: 28px 28px 0 0;
}

  .panel-actions {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
}
}

.header-tools {
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.count-pill,.search-submit{
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .22s ease,background .22s ease,box-shadow .22s ease;
}
.search-toggle{
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .22s ease,background .22s ease,box-shadow .22s ease;
}

.count-pill {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}


.search-toggle{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 700;
}

.count-pill:active,.search-submit:active{
  transform: scale(.94);
}
.search-toggle:active{
  transform: scale(.94);
}

.search-drawer {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  overflow: hidden;
  pointer-events: none;
  margin: 0 3px;
  padding: 0 12px;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: max-height .46s cubic-bezier(.16,1,.3,1),opacity .28s ease,transform .46s cubic-bezier(.16,1,.3,1),padding .36s ease,margin .36s ease,border-color .3s ease,box-shadow .3s ease;
  z-index: 20;
}

.search-drawer.open {
  max-height: 148px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  margin: 2px 3px 7px;
  padding: 10px 12px 11px;
}

.search-copy {
  font-size: .64rem;
  line-height: 1.45;
  margin: 0 2px 7px;
}

.search-row {
  display: flex;
  gap: 7px;
  align-items: center;
}

.search-box {
  height: 35px;
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
}

.search-box-icon {
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.search-box input {
  min-width: 0;
  flex: 1;
  outline: 0 !important;
  padding: 0 !important;
  font: inherit;
  font-size: .72rem;
}

.search-submit {
  height: 35px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
}

.search-result-line {
  font-size: .61rem;
  font-weight: 700;
  text-align: right;
  margin: 6px 3px 0;
}

.search-empty {
  grid-column: 1/-1;
  width: 100%;
  text-align: center;
  font-size: .76rem;
  line-height: 1.6;
  padding: 22px 12px 8px;
}

@media(max-width:600px) {
  .shell {
    grid-template-rows: auto auto minmax(0,48fr) 24px minmax(0,52fr);
}
}

@media(min-width:601px) {
  .shell {
    grid-template-rows: auto auto minmax(0,42dvh) 30px minmax(0,1fr);
}
}

@media(max-width:600px) and (max-height:700px) {
  .shell {
    grid-template-rows: auto auto minmax(0,46fr) 22px minmax(0,54fr);
}
}

@media(display-mode:standalone) and (max-width:600px) {
  .shell {
    grid-template-rows: auto auto minmax(0,48fr) 24px minmax(0,52fr);
}
}

@media(max-width:430px) {
  .brand {
    gap: 8px;
}

  .brand-left {
    min-width: 0;
}

  .brand-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

  .header-tools {
    gap: 6px;
}

  .count-pill {
    height: 31px;
    padding: 0 9px;
    font-size: .61rem;
}

  
.search-toggle{
    width: 31px;
    height: 31px;
    font-size: 1.16rem;
}

  .search-drawer.open {
    max-height: 150px;
    padding: 9px 10px 10px;
}

  .search-copy {
    font-size: .6rem;
}

  .search-submit {
    padding: 0 11px;
}

  .search-box input {
    font-size: .68rem;
}
}

.panel-actions {
  justify-content: flex-start !important;
}

.detail-icon.is-zoomable {
  cursor: zoom-in;
  position: relative;
  transition: transform .25s ease,box-shadow .25s ease;
}

.detail-icon.is-zoomable::after {
  content: '↗';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .65rem;
  font-weight: 700;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: .86;
}

.detail-icon.is-zoomable:active {
  transform: scale(.96);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  visibility: hidden;
}

.image-viewer.open {
  pointer-events: auto;
  visibility: visible;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  opacity: 0;
}

.viewer-stage {
  position: fixed;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  will-change: left,top,width,height,border-radius,opacity,filter,transform;
}

.viewer-stage::before {
  content: '';
  position: absolute;
  inset: -35%;
  z-index: 0;
}

.viewer-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  transform: translateX(-125%);
}

.viewer-stage img {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
}

.viewer-caption {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 14px;
  max-width: calc(100% - 36px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: .92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-scan {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  height: 1px;
  top: 8%;
  animation: viewerScan 2.7s ease-in-out infinite;
}

.viewer-close {
  position: fixed;
  z-index: 905;
  right: max(18px,env(safe-area-inset-right));
  top: calc(max(18px,env(safe-area-inset-top)) + 2px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: scale(.8);
  cursor: pointer;
}

.viewer-orbit {
  position: fixed;
  z-index: 899;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.viewer-orbit.orbit-a {
  width: 180px;
  height: 180px;
}

.viewer-orbit.orbit-b {
  width: 260px;
  height: 260px;
}

.image-viewer.open .viewer-orbit {
  animation: viewerOrbit .95s cubic-bezier(.16,1,.3,1) both;
}

.image-viewer.open .orbit-b {
  animation-delay: .08s;
}

@media(max-width:600px) {
  .viewer-stage img {
    padding: 8px;
}

  .viewer-caption {
    left: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    font-size: .68rem;
}

  .viewer-close {
    width: 39px;
    height: 39px;
    font-size: 1.35rem;
}
}

@media(prefers-reduced-motion:reduce) {
  .viewer-stage::before,.viewer-stage::after,.viewer-scan,.viewer-orbit {
    animation: none !important;
}
}

.brand-item-title {
  align-items: flex-start !important;
}

.brand-item-title>div {
  min-width: 0;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-choice {
  appearance: none;
  font: inherit;
  font-size: .56rem;
  font-weight: 700;
  line-height: 1;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s ease,color .22s ease,box-shadow .22s ease,transform .18s ease;
}

.theme-choice:active {
  transform: scale(.94);
}

.modal-actions {
  justify-content: flex-start !important;
}

.image-preview.is-zoomable {
  cursor: zoom-in;
  position: relative;
  transition: transform .22s ease,box-shadow .22s ease;
}

.image-preview.is-zoomable::after {
  content: '↗';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .65rem;
  font-weight: 700;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.image-preview.is-zoomable:active {
  transform: scale(.97);
}

@media(max-width:430px) {
  .theme-switch {
    margin-top: 4px;
}

  .brand-title {
    font-size: .82rem !important;
}
}

.utility-drawers {
  min-height: 0;
  position: relative;
  z-index: 20;
}

.count-pill,.search-submit,.settings-save{
  font-family: inherit;
}
.search-toggle,.settings-toggle{
  font-family: inherit;
}


.settings-toggle{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .22s ease,background .22s ease,box-shadow .22s ease,color .22s ease,border-color .22s ease;
}


.settings-toggle:active{
  transform: scale(.94);
}

.settings-drawer {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  overflow: hidden;
  pointer-events: none;
  margin: 0 3px;
  padding: 0 12px;
  border-radius: 18px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: max-height .46s cubic-bezier(.16,1,.3,1),opacity .28s ease,transform .46s cubic-bezier(.16,1,.3,1),padding .36s ease,margin .36s ease,border-color .3s ease,box-shadow .3s ease;
}

.settings-drawer.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  margin: 2px 3px 7px;
  padding: 11px 12px 12px;
}

.settings-heading {
  font-size: .72rem;
  font-weight: 700;
  margin: 0 2px 2px;
}

.settings-copy {
  font-size: .61rem;
  line-height: 1.45;
  margin: 0 2px 9px;
}

.settings-title-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.settings-title-field {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.settings-title-field>span,.settings-label {
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.settings-title-field input {
  height: 36px;
  width: 100%;
  border-radius: 12px;
  padding: 0 10px;
  font: inherit;
  font-size: .74rem;
  outline: none;
}

.settings-save {
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}

.settings-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.settings-status {
  min-height: 14px;
  margin: 5px 2px 0;
  font-size: .57rem;
  font-weight: 700;
  text-align: right;
}

.theme-switch {
  margin-top: 0 !important;
}

.viewer-stage::before {
  animation: none !important;
}

.viewer-stage::after {
  animation: none !important;
  opacity: 0 !important;
}

.viewer-scan {
  display: none !important;
}

@media(max-width:430px) {
  
.settings-toggle{
    width: 31px;
    height: 31px;
    font-size: .92rem;
}

  .settings-drawer.open {
    padding: 10px;
}

  .settings-title-row {
    gap: 6px;
}

  .settings-save {
    padding: 0 10px;
}

  .settings-theme-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

  .theme-choice {
    font-size: .54rem;
    height: 23px;
    padding: 0 7px;
}
}

html {
  scroll-behavior: auto !important;
}

*,*::before,*::after {
  animation: none !important;
  transition: none !important;
}

.surface-glare,.caustics {
  animation: none !important;
  transform: none !important;
}

.liquid-card {
  --card-radius: 24px !important;
  transform: none !important;
  animation: none !important;
}

.liquid-card::before,.liquid-card::after {
  display: none !important;
}

.liquid-card:hover,.liquid-card:active,.liquid-card.selected {
  transform: none !important;
}

.card-frame,.card-art {
  border-radius: inherit !important;
}

.card-art,.liquid-card.selected .card-art {
  transform: none !important;
}

.app-icon,.liquid-card.selected .app-icon {
  transform: none !important;
}

.detail-panel {
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
}

.detail-panel.forming {
  opacity: 0 !important;
  pointer-events: none !important;
}

.detail-panel.show {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  pointer-events: auto !important;
}

.detail-panel::before,.formation-blob,.formation-wave,.condense-drop,.click-ring,.splash-drop,.theme-flash {
  display: none !important;
}

.detail-panel.show .detail-hero,.detail-panel.show .item-detail-grid,.detail-panel.show .panel-actions {
  animation: none !important;
}

.search-drawer,.settings-drawer,.modal,.modal-backdrop,.soft-btn,.theme-choice,.count-pill,.search-submit{
  transition: none !important;
}
.settings-toggle,.search-toggle{
  transition: none !important;
}

.viewer-stage::before,.viewer-stage::after,.viewer-scan,.viewer-orbit {
  display: none !important;
}

.image-viewer,.viewer-backdrop,.viewer-stage,.viewer-close {
  transition: none !important;
  animation: none !important;
}

.image-preview.is-zoomable:active,.detail-icon.is-zoomable:active {
  transform: none !important;
}

.modal {
  transform: none !important;
}

.page-art::before {
  content: '';
  position: fixed;
  left: -8%;
  bottom: 5%;
  width: 40vw;
  height: 40vw;
  max-width: 350px;
  max-height: 350px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.page-art::after {
  content: '';
  position: fixed;
  right: -9%;
  top: 7%;
  width: 34vw;
  height: 34vw;
  max-width: 300px;
  max-height: 300px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.liquid-card.has-art .card-frame,.liquid-card.has-art .card-art,.liquid-card.has-art .card-overlay {
  border-radius: inherit;
}

.liquid-card.selected {
  transform: none !important;
}

.waterline-glint {
  top: -7px;
  height: 20px;
  filter: blur(7px);
}

body[data-theme="dark"] .page-art::before {
  content: '';
  position: fixed;
  left: -8%;
  bottom: 5%;
  width: 40vw;
  height: 40vw;
  max-width: 350px;
  max-height: 350px;
  border-radius: 50%;
  filter: blur(13px);
  pointer-events: none;
  z-index: -1;
}

body[data-theme="dark"] .page-art::after {
  content: '';
  position: fixed;
  right: -9%;
  top: 7%;
  width: 34vw;
  height: 34vw;
  max-width: 300px;
  max-height: 300px;
  border-radius: 50%;
  filter: blur(13px);
  pointer-events: none;
  z-index: -1;
}

body[data-theme="dark"] .surface-glare {
  opacity: 1;
}

body[data-theme="dark"] .liquid-card {
  border-radius: 32px !important;
}

body[data-theme="dark"] .waterline-glint {
  top: -7px;
  height: 20px;
  filter: blur(8px);
}

.pond-container {
  gap: 12px !important;
}

.liquid-card {
  border-radius: 34px !important;
}

.liquid-card.has-art .card-frame,
.liquid-card.has-art .card-art,
.liquid-card.has-art .card-overlay {
  border-radius: inherit !important;
}

@media(max-width:430px) {
  .pond-container {
    gap: 12px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

  .liquid-card {
    border-radius: 32px !important;
}

  .app-name {
    font-size: .9rem !important;
}

  .card-meta {
    padding: 11px 12px 13px !important;
}
}

.settings-drawer.open {
  max-height: 430px !important;
}

.settings-backup-block {
  margin-top: 11px;
  padding-top: 11px;
}

.settings-backup-copy {
  margin: 4px 0 8px;
  font-size: .64rem;
  line-height: 1.55;
}

.settings-backup-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.settings-backup-btn {
  min-height: 34px;
  padding: 0 13px;
  font-size: .66rem;
  font-weight: 700;
}

@media(max-width:430px) {
  .settings-drawer.open {
    max-height: 460px !important;
}

  .settings-backup-row {
    gap: 7px;
}

  .settings-backup-btn {
    min-height: 33px;
    padding: 0 11px;
    font-size: .62rem;
}
}


.sort-toggle{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font: 700 1rem/1 system-ui,-apple-system,sans-serif;
  cursor: pointer;
}

.sort-drawer {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  overflow: hidden;
  pointer-events: none;
  margin: 0 3px;
  padding: 0 12px;
  border-radius: 18px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: max-height .40s cubic-bezier(.16,1,.3,1),opacity .24s ease,transform .40s cubic-bezier(.16,1,.3,1),padding .32s ease,margin .32s ease,border-color .3s ease,box-shadow .3s ease;
}

.sort-drawer.open {
  max-height: 560px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  margin: 2px 3px 7px;
  padding: 11px 12px 12px;
}

.sort-heading {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.sort-copy {
  font-size: .67rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.sort-choice {
  appearance: none;
  font: 700 .68rem/1 system-ui,-apple-system,sans-serif;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.manual-reorder-wrap {
  margin-top: 10px;
  padding-top: 9px;
}

.manual-reorder-note {
  font-size: .65rem;
  line-height: 1.5;
  margin-bottom: 7px;
}

.manual-reorder-list {
  display: grid;
  gap: 6px;
  max-height: 255px;
  overflow: auto;
  padding-right: 2px;
}

.manual-reorder-item {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
}

.manual-reorder-name {
  font-size: .72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manual-reorder-actions {
  display: flex;
  gap: 4px;
}

.manual-move-btn {
  border-radius: 9px;
  font: 800 .72rem/1 system-ui,-apple-system,sans-serif;
  cursor: pointer;
}

.manual-move-btn:disabled {
  opacity: .28;
  cursor: default;
}

@media(max-width:430px) {
  .sort-drawer.open {
    max-height: 600px;
}

  .manual-reorder-list {
    max-height: 235px;
}
}

.brand {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: start !important;
  column-gap: 10px !important;
}

.brand-item-title {
  min-width: 0 !important;
  padding-top: 5px !important;
}

.header-tools {
  display: flex !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.brand-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

@media(max-width:430px) {
  .brand {
    column-gap: 8px !important;
}

  .brand-item-title {
    padding-top: 4px !important;
}
}

.title-limit-note {
  display: block;
  font-size: .65rem;
  line-height: 1.5;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0;
}


.sort-toggle .sort-icon{
  width: 18px;
  height: 18px;
  display: block;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.header-tools .ui-icon,.search-box-icon .ui-icon {
  width: 19px;
  height: 19px;
  display: block;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}


.settings-toggle .ui-icon{
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}


.sort-toggle .ui-icon{
  width: 19px;
  height: 19px;
}

.search-box-icon {
  display: grid;
  place-items: center;
}


.sort-toggle{
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}


.sort-toggle .ui-icon,.sort-toggle .sort-icon{
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  display: block !important;
  align-self: center !important;
  justify-self: center !important;
}

.sort-options {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
}

.sort-choice {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
}

.manual-reorder-wrap {
  width: 100% !important;
}

.manual-reorder-list {
  width: 100% !important;
}

.manual-reorder-item {
  width: 100% !important;
  grid-template-columns: minmax(0,1fr) auto !important;
}

.manual-reorder-name {
  min-width: 0 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

.manual-move-btn {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  line-height: 1 !important;
}

.manual-move-btn .move-icon {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  display: block !important;
  stroke-width: 2.15 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}

.search-submit:active,.settings-save:active {
  transform: scale(.96) !important;
}

@media(max-width:430px) {
  .sort-drawer.open {
    padding: 12px !important;
}

  .sort-options {
    gap: 8px !important;
}

  .sort-choice {
    font-size: .68rem !important;
    padding: 9px 11px !important;
}

  .manual-reorder-item {
    padding: 8px 9px !important;
    gap: 9px !important;
}
}

@media(max-width:430px) {
  .search-clear {
    width: 22px;
    height: 22px;
}
}

.rating-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rating-control {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  flex-wrap: wrap;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px 4px;
  border-radius: 14px;
}

.rating-star-btn {
  appearance: none;
  font: inherit;
  font-size: 1.95rem;
  line-height: 1;
  min-width: 39px;
  min-height: 44px;
  padding: 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
  transition: transform .12s ease,color .16s ease,background .16s ease;
}

.rating-star-btn:active {
  transform: scale(.90);
}

.rating-star-btn:focus-visible {
  outline: 2px solid var(--selshelf-rating-accent);
  outline-offset: 2px;
}

.rating-reset-btn {
  appearance: none;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
}

.rating-caption {
  font-size: .7rem;
  font-weight: 700;
  min-width: 2.4em;
  text-align: center;
}

.rating-display {
  font-size: 1.05rem;
  letter-spacing: .08em;
  white-space: nowrap;
  font-weight: 700;
}

@media(max-width:430px) {
  .rating-star-btn {
    font-size: 1.85rem;
    min-width: 37px;
    min-height: 44px;
}

  .rating-control {
    gap: 1px;
}

  .rating-reset-btn {
    margin-left: 2px;
}
}

html body .pond-container > .liquid-card {
  border-radius: var(--ss-card-radius) !important;
  box-sizing: border-box;
  --ss-card-size: clamp(72px,calc((100vw - 48px)/2),var(--ss-card-max));
  width: var(--ss-card-size);
  height: calc(var(--ss-card-size) / var(--ss-card-ratio));
  aspect-ratio: var(--ss-card-ratio);
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  justify-self: center;
  align-self: start;
}

@media(max-width:600px) {
  html body .pond-container {
    grid-template-columns: repeat(2,minmax(0,1fr));
    justify-items: center;
    column-gap: 12px;
    padding-left: 4px;
    padding-right: 4px;
}
  html body .pond-container > .liquid-card {
    --ss-card-size: calc((100vw - 48px)/2);
}
}
@supports(width:1cqw) {
  @media(max-width:600px) {
    html body .pond-container {container-type:inline-size;
}
    html body .pond-container > .liquid-card {--ss-card-size:calc((100cqw - 24px)/2);
}
  }
}

html {
  min-height: 100%;
}

.new-card {
  -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
  backdrop-filter: blur(16px) saturate(1.15) !important;
  gap: 8px !important;
  opacity: .94;
}

.new-card .app-icon {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  font-size: 1.35rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  filter: none !important;
  transform: none !important;
}

.new-card .app-name {
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  line-height: 1.2 !important;
  opacity: .90;
}

.new-card:active {
  transform: scale(.985) !important;
}

.search-box {
  position: relative !important;
  padding-right: 8px !important;
}

.search-clear {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease,background .18s ease,color .18s ease,opacity .18s ease;
}

.search-clear[hidden] {
  display: none !important;
}

.search-clear:active {
  transform: scale(.92);
}

.search-clear .ui-icon {
  width: 12px;
  height: 12px;
  display: block;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.pond-wrap {
  position: relative !important;
  z-index: 1 !important;
}

.waterline {
  position: relative !important;
  z-index: 40 !important;
  height: 35px !important;
  margin: 0 -18px -10px !important;
  transform: translateY(-10px) !important;
  pointer-events: none !important;
}

.waterline::before {
  content: none !important;
}

.waterline::after {
  top: 14px !important;
  height: 2px !important;
  opacity: .74 !important;
  filter: blur(.65px) !important;
}

body[data-theme="dark"] .waterline::after {
  opacity: .80 !important;
}

html,body {
  min-height: 100dvh;
}

.shell {
  position: relative;
  z-index: 1;
}

.pond-container {
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 calc(100% - 86px),rgba(0,0,0,.985) calc(100% - 68px),rgba(0,0,0,.90) calc(100% - 52px),rgba(0,0,0,.70) calc(100% - 36px),rgba(0,0,0,.42) calc(100% - 20px),rgba(0,0,0,.16) calc(100% - 8px),transparent 100%);
  mask-image: linear-gradient(to bottom,#000 0%,#000 calc(100% - 86px),rgba(0,0,0,.985) calc(100% - 68px),rgba(0,0,0,.90) calc(100% - 52px),rgba(0,0,0,.70) calc(100% - 36px),rgba(0,0,0,.42) calc(100% - 20px),rgba(0,0,0,.16) calc(100% - 8px),transparent 100%);
}

@media(max-width:600px) {
  .shell {
    padding-bottom: 0 !important;
}

  .brand {
    z-index: 80 !important;
}

  .utility-drawers {
    position: relative !important;
    z-index: 60 !important;
    min-height: 0 !important;
}

  .pond-wrap {
    min-height: 0 !important;
}

  .detail-panel {
    min-height: 0 !important;
}

  .detail-panel.show {
    border-radius: 24px 24px 0 0 !important;
}
}

@media(display-mode:standalone) and (max-width:600px) {
  html,body {
    height: 100vh !important;
    min-height: 100vh !important;
}

  body {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
}

  .shell {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
}
}

@media(max-width:600px) {
  .shell {
    --ss-header-overlap: 0px;
}

  .pond-wrap {
    margin-top: calc(-1 * var(--ss-header-overlap)) !important;
    height: calc(100% + var(--ss-header-overlap)) !important;
    -webkit-mask-image: linear-gradient(to bottom,transparent 0px,rgba(0,0,0,.38) 8px,#000 24px);
    mask-image: linear-gradient(to bottom,transparent 0px,rgba(0,0,0,.38) 8px,#000 24px);
}

  .pond-container {
    padding-top: calc(18px + var(--ss-header-overlap)) !important;
}

  .brand {
    isolation: isolate;
}

  .brand::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 -14px -12px;
    pointer-events: none;
    opacity: 0;
    -webkit-mask-image: linear-gradient(to bottom,transparent 0px,rgba(0,0,0,.42) 7px,#000 17px,#000 calc(100% - 12px),transparent 100%);
    mask-image: linear-gradient(to bottom,transparent 0px,rgba(0,0,0,.42) 7px,#000 17px,#000 calc(100% - 12px),transparent 100%);
    transition: opacity .18s ease;
}

  .shell.is-pond-scrolled .brand::before {
    opacity: 1;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
}

.header-slot {
  display: contents;
}

@media(max-width:600px) {
  .shell {
    grid-template-columns: minmax(0,1fr);
    min-width: 0;
    max-width: 100%;
}

  .shell>* {
    min-width: 0;
}

  .utility-drawers,.search-drawer,.settings-drawer,.sort-drawer {
    min-width: 0;
    max-width: 100%;
}

  .search-box,.settings-title-field {
    flex: 1 1 0%;
    min-width: 0;
}

  #searchInput {
    width: 0;
    flex: 1 1 0%;
}

  #galleryTitleInput {
    min-width: 0;
    max-width: 100%;
}

  #searchInput,#galleryTitleInput {
    font-size: 16px !important;
}

  .header-slot {
    display: block;
    height: var(--ss-header-height,46px);
}

  .brand {
    position: fixed !important;
    top: var(--ss-header-top,14px);
    left: var(--ss-header-left,12px);
    width: var(--ss-header-width,calc(100% - 24px));
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
}
