:root {
  color-scheme: light;
  --blue: #5b6eff;
  --blue-pressed: #495cff;
  --canvas: #f7f7f7;
  --card: #ffffff;
  --field: #f4f4f4;
  --line: #ededed;
  --ink-rgb: 0 0 0;
  --title-text: rgb(var(--ink-rgb) / .8);
  --subtitle-text: rgb(var(--ink-rgb) / .7);
  --body-text: rgb(var(--ink-rgb) / .6);
  --caption-text: rgb(var(--ink-rgb) / .5);
  --faint-text: rgb(var(--ink-rgb) / .36);
  --text: var(--title-text);
  --muted: var(--body-text);
  --faint: var(--faint-text);
  --shadow: 0 10px 30px rgba(33, 35, 41, 0.08);
  --bar-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: 54px;
  --bottom-nav-gap: 12px;
  --bottom-nav-reserved: calc(var(--bottom-nav-height) + var(--bottom-nav-gap) + var(--safe-bottom));
  --stacked-bottom-offset: calc(var(--bottom-nav-reserved) + 10px);
  --dual-bottom-reserved: calc(var(--bottom-nav-reserved) + 78px);
  --edge-pad: 18px;
  --glass-card: rgb(255 255 255 / .58);
  --glass-card-strong: rgb(255 255 255 / .72);
  --glass-line: rgb(255 255 255 / .36);
  --glass-shadow: 0 18px 44px rgb(38 31 25 / .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  scrollbar-gutter: stable;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.page-topbar strong,
.title-button,
.calendar-sheet-title,
.editor-head strong,
.sheet-title,
.row-label,
.category-title,
.manager-row .row-label {
  color: var(--title-text);
}

.row-value,
.count,
.form-row label,
.field-label,
.settings-row .row-value {
  color: var(--subtitle-text);
}

body,
input,
textarea,
select,
.calendar-sheet-option,
.bottom-option {
  color: var(--body-text);
}

.hint,
.stat-label,
small {
  color: var(--caption-text);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--blue), transparent 20%);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  background: var(--canvas);
}

.icon-sprite,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.runtime-file-input {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

.screen {
  --app-width: min(100vw, 980px);
  --nav-width: min(860px, calc(var(--app-width) - 28px));
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--bottom-nav-reserved);
  background: var(--canvas);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  align-items: center;
  min-height: 64px;
  padding: 16px 14px 10px;
  background: color-mix(in srgb, var(--canvas), transparent 5%);
  backdrop-filter: blur(18px);
}

.screen[data-screen="outfits"][data-page="home"] .topbar {
  grid-template-columns: 54px minmax(76px, 1fr) max-content;
  column-gap: 6px;
}

.screen[data-screen="outfits"][data-page="home"] .toolbar-actions {
  flex: 0 0 auto;
  gap: 4px;
}

.screen[data-screen="outfits"][data-page="home"] .icon-button {
  width: 28px;
  height: 28px;
}

.top-settings-button {
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  color: rgb(0 0 0 / .72);
  font-size: 13px;
  font-weight: 800;
}

.top-settings-button.active,
.top-settings-button:hover {
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
}

.title-button {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  max-width: 100%;
  gap: 3px;
  padding: 6px 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0;
}

.topbar-title {
  justify-self: center;
  color: rgb(0 0 0 / .82);
  font-size: 15px;
  font-weight: 850;
}

.title-button::after {
  content: "";
  width: 0;
  height: 0;
  margin-top: 3px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #4a4d55;
}

.toolbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #4d5057;
}

.icon-button:hover {
  background: #eeeeef;
}

.icon-button svg,
.nav-item svg,
.row-icon svg,
.mini-icon svg,
.sublist-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-scroll {
  padding: 0 var(--edge-pad) 18px;
}

.category-card {
  position: relative;
  min-height: 105px;
  margin-bottom: 11px;
  padding: 12px 12px 11px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  gap: 10px;
}

.category-title {
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: #4b4d54;
}

.category-title.stacked-title {
  display: grid;
  justify-items: start;
  gap: 2px;
}

.category-title .count {
  color: #9c9fa8;
  font-weight: 600;
}

.subcategory-title {
  display: grid;
  justify-items: start;
  gap: 2px;
}

.sublist-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #a4a8af;
  border-radius: 5px;
  background: #f0f1f3;
}

.sublist-button svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  grid-auto-rows: 64px;
  align-items: start;
  gap: 10px;
  margin-top: 8px;
}

.empty-tile,
.item-tile,
.outfit-tile,
.inspiration-tile {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 5px;
  background: #f7f7f8;
}

.empty-tile {
  display: grid;
  place-items: center;
  color: #d6d7dc;
}

.empty-tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
}

.item-tile img,
.inspiration-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #b7bac3;
  background: linear-gradient(135deg, #f7f7f8, #ededf0);
}

.outfit-tile {
  display: block;
  background: linear-gradient(145deg, rgba(244, 239, 230, .9), rgba(230, 240, 239, .82));
}

.outfit-editorial-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .2)),
    linear-gradient(145deg, rgba(230, 238, 238, .92), rgba(245, 237, 225, .78));
}

.outfit-editorial-preview::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

.outfit-preview-surface {
  position: absolute;
  inset: 16% 12%;
  border-radius: 5px;
  background: rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.outfit-preview-layer {
  position: absolute;
  width: 42%;
  height: 64%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(35, 39, 48, .18);
}

.outfit-editorial-preview .layer-1 {
  left: 23%;
  top: 19%;
  transform: rotate(-5deg);
}

.outfit-editorial-preview .layer-2 {
  left: 43%;
  top: 27%;
  transform: rotate(4deg);
}

.outfit-editorial-preview .layer-3 {
  left: 56%;
  top: 13%;
  width: 30%;
  height: 48%;
  transform: rotate(2deg);
}

.outfit-editorial-preview.layer-count-1 .layer-1 {
  left: 26%;
  top: 13%;
  width: 48%;
  height: 72%;
  transform: rotate(-2deg);
}

.outfit-editorial-preview.empty {
  display: grid;
  place-items: center;
  color: rgb(0 0 0 / .34);
}

.outfit-editorial-preview.empty span {
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, .44);
}

.outfit-editorial-preview.collage-preview::before {
  display: none;
}

.outfit-collage-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, .42);
}

.live-collage-preview {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .96);
}

.outfit-collage-preview-stage {
  position: relative;
  height: 100%;
  width: 80%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #fff;
}

.outfit-collage-layer {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  min-width: 12px;
  min-height: 12px;
  transform: translate(-50%, -50%);
}

.outfit-collage-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outfit-collage-layer.text-layer {
  display: grid;
  place-items: center;
  color: var(--text-color);
  font-family: var(--text-font);
  font-size: max(8px, var(--text-size));
  font-style: var(--text-style);
  font-weight: var(--text-weight);
  text-align: var(--text-align);
}

.outfit-collage-layer.text-layer.outlined span {
  -webkit-text-stroke: 1px #fff;
  paint-order: stroke fill;
}

.outfit-tile img {
  display: block;
}

.fab {
  position: fixed;
  right: 18px;
  bottom: calc(var(--bottom-nav-reserved) + 14px);
  z-index: 30;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
  box-shadow: 0 9px 20px rgba(91, 126, 20, 0.28);
}

.screen:not([data-page="home"]) .fab {
  bottom: calc(var(--stacked-bottom-offset) + 58px);
}

.fab:active {
  background: #91e600;
  transform: translateY(1px);
}

.fab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.tabbar {
  position: fixed;
  right: auto;
  bottom: calc(var(--bottom-nav-gap) + var(--safe-bottom));
  left: calc((100vw - var(--app-width)) / 2 + (var(--app-width) - var(--nav-width)) / 2);
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(var(--tab-count, 4), 1fr);
  width: var(--nav-width);
  min-height: 54px;
  padding: 6px;
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: 4px;
  background: rgb(255 255 255 / .86);
  box-shadow: 0 16px 35px rgba(52, 65, 24, .14);
  backdrop-filter: blur(18px);
  transform: none;
}

.tabbar[data-tab-count="5"] .nav-item {
  font-size: 13px;
}

.nav-item {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  height: 42px;
  border-radius: 3px;
  color: rgb(0 0 0 / .62);
  font-size: 14px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.nav-item.active {
  color: rgb(0 0 0 / .84);
  background: #a8ff00;
}

.nav-item .badge {
  display: none;
}

.calendar-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0 4px;
}

.calendar-stack {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.calendar-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.calendar-card .calendar-head {
  padding: 12px 14px 6px;
}

.calendar-month-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
}

.calendar-month {
  font-weight: 800;
  font-size: 18px;
}

.calendar-year {
  color: #555963;
  font-weight: 700;
  font-size: 15px;
}

.calendar-month-nav,
.calendar-today-button {
  display: inline-grid;
  place-items: center;
  height: 34px;
  border-radius: 8px;
  font-weight: 800;
}

.calendar-month-nav {
  width: 34px;
  background: #f4f5f7;
  color: #3b3f47;
  font-size: 18px;
}

.calendar-today-button {
  margin-left: auto;
  padding: 0 12px;
  background: #a8ff00;
  color: rgb(0 0 0 / .84);
  font-size: 13px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-top: 4px;
  padding: 4px 0 10px;
}

.calendar-card .calendar-grid {
  padding: 4px 10px 14px;
}

.weekday,
.day-cell {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: #5f626a;
  font-size: 13px;
  font-weight: 600;
}

.weekday {
  min-height: 30px;
  color: #a5a8b0;
  font-size: 11px;
}

.day-cell.other {
  color: #c8cbd1;
}

.day-cell button {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.day-cell.selected button {
  color: #fff;
  background: var(--blue);
}

.day-cell.has-record button::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  margin-top: 21px;
  border-radius: 50%;
  background: currentColor;
}

.record-panel {
  min-height: 415px;
  margin: 0 -14px;
  padding: 14px 14px;
  border-top: 1px solid #eeeeef;
  background: #fff;
}

.calendar-date-card,
.calendar-card .record-panel {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  border-top: 0;
  background: var(--card);
}

.calendar-record-card {
  min-height: auto;
  margin: 0;
  border-top: 0;
}

.record-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  font-weight: 800;
  font-size: 16px;
}

.record-title-actions {
  display: flex;
  gap: 8px;
}

.soft-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #bcc0c7;
  background: #f2f3f5;
}

.soft-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 320px;
  text-align: center;
}

.empty-state strong {
  color: #4c4f57;
  font-size: 15px;
  line-height: 1.5;
}

.empty-state span {
  color: #b4b7bf;
  font-size: 12px;
}

.calendar-empty-actions {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.calendar-add-more-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.calendar-empty-actions button {
  min-width: 82px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  background: rgb(255 255 255 / .72);
  font-size: 12px;
  font-weight: 820;
  box-shadow: inset 0 0 0 1px rgb(12 20 30 / .05);
}

.calendar-empty-actions button:first-child {
  color: #16380c;
  background: var(--accent);
}

.calendar-linked-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.calendar-stack > .calendar-linked-section {
  margin-top: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--card);
}

.calendar-linked-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.calendar-linked-section header strong {
  font-size: 14px;
  font-weight: 850;
}

.calendar-linked-section header span,
.calendar-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.calendar-section-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.calendar-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-section-actions button {
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--text);
  background: rgb(255 255 255 / .7);
  font-size: 12px;
  font-weight: 820;
  box-shadow: inset 0 0 0 1px rgb(12 20 30 / .06);
}

.history-refresh {
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--text);
  background: rgb(255 255 255 / .7);
  font-size: 12px;
  font-weight: 820;
  box-shadow: inset 0 0 0 1px rgb(12 20 30 / .06);
}

.history-event-list {
  display: grid;
  gap: 8px;
}

.history-event {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgb(255 255 255 / .68);
  box-shadow: inset 0 0 0 1px rgb(12 20 30 / .05);
}

.history-event time {
  color: var(--title-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.history-event span {
  color: var(--body-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.calendar-section-actions button.danger {
  color: #b42318;
}

.calendar-entry-strip,
.calendar-history-list {
  display: grid;
  gap: 8px;
}

.calendar-entry-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / .58);
  text-align: left;
}

.calendar-entry-thumb {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 7px;
  background: rgb(255 255 255 / .52);
}

.calendar-entry-thumb > img,
.calendar-entry-thumb > .outfit-editorial-preview {
  width: 100%;
  height: 100%;
}

.calendar-entry-thumb > img {
  object-fit: cover;
}

.calendar-entry-thumb > .outfit-editorial-preview {
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.calendar-entry-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.calendar-entry-copy strong,
.calendar-entry-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-entry-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.calendar-entry-copy small,
.history-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.history-empty {
  margin: 0;
  padding: 12px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / .42);
}

.settings-page {
  padding-bottom: 10px;
}

.auth-screen {
  padding-bottom: 0;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(168,255,0,.28), transparent 34%),
    linear-gradient(180deg, #f7f7f3, #eceee6);
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 24px 60px rgb(0 0 0 / .1);
  backdrop-filter: blur(18px);
}

.auth-brand {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.auth-brand span {
  color: rgb(0 0 0 / .62);
  font-size: 14px;
  font-weight: 800;
}

.auth-brand strong {
  color: rgb(0 0 0 / .82);
  font-size: 26px;
  line-height: 1.1;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: rgb(0 0 0 / .64);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  min-height: 44px;
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: 4px;
  padding: 0 12px;
  background: rgb(255 255 255 / .9);
}

.auth-submit {
  min-height: 46px;
  margin-top: 4px;
  border-radius: 4px;
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
  font-size: 15px;
  font-weight: 900;
}

.auth-mode-button {
  width: 100%;
  margin-top: 16px;
  color: rgb(0 0 0 / .62);
  font-size: 13px;
  font-weight: 800;
}

.auth-error {
  margin: -2px 0 0;
  color: rgb(200 0 0 / .76);
  font-size: 12px;
  font-weight: 800;
}

.admin-users-page {
  display: grid;
  gap: 14px;
  padding: 24px 0 calc(var(--bar-height) + 34px);
}

.admin-users-hero,
.admin-user-card {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .54);
  box-shadow: 0 18px 44px rgba(38, 31, 25, .08);
  backdrop-filter: blur(16px);
}

.admin-users-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 22px 22px 20px;
}

.admin-users-hero span {
  color: rgb(0 0 0 / .5);
  font-size: 12px;
  font-weight: 850;
}

.admin-users-hero h1 {
  margin: 6px 0 0;
  color: rgb(0 0 0 / .82);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.04;
  font-weight: 880;
  letter-spacing: 0;
}

.admin-users-hero p {
  margin: 8px 0 0;
  color: rgb(0 0 0 / .58);
  font-size: 13px;
  font-weight: 750;
}

.admin-users-hero aside {
  display: grid;
  justify-items: end;
  color: rgb(0 0 0 / .72);
}

.admin-users-hero aside strong {
  color: rgb(0 0 0 / .82);
  font-size: 56px;
  line-height: .9;
  font-weight: 520;
}

.admin-users-hero aside small {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-card {
  overflow: hidden;
}

.admin-user-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
}

.admin-user-card header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-card header strong {
  overflow: hidden;
  color: rgb(0 0 0 / .8);
  font-size: 18px;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card header small {
  color: rgb(0 0 0 / .48);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-card header span {
  flex: 0 0 auto;
  color: rgb(0 0 0 / .62);
  font-size: 13px;
  font-weight: 850;
}

.admin-user-card dl {
  display: grid;
  margin: 0;
}

.admin-user-field {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-top: 1px solid rgba(255, 255, 255, .36);
}

.admin-user-field:first-child {
  border-top: 0;
}

.admin-user-field dt,
.admin-user-field dd {
  margin: 0;
  min-width: 0;
}

.admin-user-field dt {
  color: rgb(0 0 0 / .54);
  font-size: 13px;
  font-weight: 820;
}

.admin-user-field dd {
  overflow-wrap: anywhere;
  color: rgb(0 0 0 / .76);
  font-size: 14px;
  font-weight: 760;
  text-align: right;
}

.admin-user-field.password dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.bb-settings-page {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.settings-panel-block h2 {
  margin: 0 4px 6px;
  color: rgb(0 0 0 / .8);
  font-size: 16px;
  font-weight: 850;
}

.settings-group {
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.stats-card {
  padding: 14px 12px 12px;
}

.stats-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  font-weight: 700;
  font-size: 14px;
}

.stats-title > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.stats-title svg,
.chev svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-number {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
}

.stat-label {
  margin-top: 4px;
  color: #979ba4;
  font-size: 11px;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 var(--edge-pad);
  gap: 6px;
  text-align: left;
}

.settings-row + .settings-row {
  border-top: 1px solid #f3f3f4;
}

.row-icon {
  color: #6f737b;
}

.row-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.row-label {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #a0a4ad;
  font-size: 13px;
  white-space: nowrap;
}

.settings-row .chev {
  color: #c4c7ce;
  font-size: 20px;
  line-height: 1;
}

.settings-row .chev svg {
  width: 16px;
  height: 16px;
}

.settings-row[data-action="logout"] .row-label {
  color: #e64b4b;
}

.upgrade-pill {
  min-width: 48px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.red-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: #ff4242;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.image-preview-backdrop {
  z-index: 80;
  padding: 0;
  background: rgb(0 0 0 / .86);
}

.image-preview-panel {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
}

.image-preview-panel img {
  max-width: 100%;
  max-height: calc(100vh - 112px - var(--safe-bottom));
  object-fit: contain;
}

.image-preview-actions {
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--safe-bottom));
  display: flex;
  gap: 10px;
}

.image-preview-save {
  min-width: 70px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / .82);
  border-radius: 999px;
  color: #fff;
  background: rgb(0 0 0 / .42);
  font-size: 15px;
  font-weight: 800;
}

.action-sheet {
  width: min(100%, 162px);
  padding: 13px 9px 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.calendar-alert-backdrop {
  place-items: center;
  padding: 16px;
}

.calendar-action-sheet {
  display: grid;
  gap: 12px;
  width: min(520px, calc(100% - 24px));
  padding: 34px 32px 30px;
  border-radius: 32px;
  background: #f8f8f8;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

.calendar-sheet-title {
  margin-bottom: 14px;
  text-align: center;
  font-size: 25px;
  font-weight: 760;
}

.calendar-sheet-option {
  min-height: 54px;
  border-radius: 26px;
  background: #dedede;
  color: #22242a;
  font-size: 25px;
  font-weight: 650;
  text-align: center;
}

.sheet-title {
  margin-bottom: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
}

.sheet-action {
  display: block;
  width: 100%;
  height: 21px;
  margin-top: 5px;
  border-radius: 999px;
  background: #e3e3e4;
  color: #3f4249;
  font-size: 11px;
  font-weight: 650;
}

.sheet-action.cancel {
  margin-top: 8px;
  background: #f1f1f2;
}

.editor-card {
  width: min(100%, 430px);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.editor-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  border-bottom: 1px solid #f1f1f2;
  background: #fff;
}

.editor-head strong {
  text-align: center;
  font-size: 16px;
}

.editor-head button {
  color: var(--blue);
  font-weight: 700;
}

.editor-head button:first-child {
  justify-self: start;
  color: #6a6e77;
}

.editor-form {
  padding: 14px 14px 18px;
}

.refined-option-editor {
  width: min(92vw, 460px);
  border-radius: 14px;
}

.option-editor-body {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8f8f8;
}

.option-edit-field,
.option-sync-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}

.option-edit-caption {
  color: rgb(0 0 0 / .5);
  font-size: 12px;
  font-weight: 800;
}

.option-edit-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.option-edit-input-wrap .wide-input {
  min-height: 44px;
  padding: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 850;
}

.option-edit-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--dot);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12);
}

.option-sync-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.option-sync-card span {
  display: grid;
  gap: 3px;
}

.option-sync-card strong {
  font-size: 13px;
  font-weight: 900;
}

.option-sync-card small {
  color: rgb(0 0 0 / .48);
  font-size: 11px;
  font-weight: 700;
}

.photo-box {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 8px;
  color: #c8cbd2;
  background: #f6f6f7;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-box svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 var(--edge-pad);
  border-top: 1px solid #f2f2f3;
}

button.form-row {
  width: 100%;
  text-align: left;
}

.form-row label {
  color: #747882;
  font-size: 14px;
  font-weight: 650;
}

.form-row .field-label {
  color: #747882;
  font-size: 14px;
  font-weight: 650;
}

.form-row .field-value {
  min-width: 0;
  color: var(--text);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: right;
}

.form-row textarea {
  min-height: 70px;
  padding: 12px 0;
  resize: vertical;
}

.form-row input[type="date"] {
  text-align: right;
}

.form-row input[type="date"]::-webkit-date-and-time-value {
  display: block;
  width: 100%;
  margin: 0;
  text-align: right;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-reserved) + 68px);
  z-index: 70;
  transform: translateX(-50%);
  min-width: 156px;
  max-width: calc(100vw - 40px);
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: rgba(33, 35, 42, 0.86);
  text-align: center;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.search-box input {
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: #f4f4f5;
}

.search-box button {
  width: 58px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 10px;
}

.full-page > .list-grid:first-of-type,
.full-page > .home-grid:first-of-type,
.full-page > .category-subgrid:first-of-type {
  margin-top: 24px;
}

.list-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.list-card .preview {
  aspect-ratio: 1;
  background: #f5f5f6;
}

.list-card > .preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card strong {
  display: block;
  padding: 9px 10px 3px;
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-card span {
  display: block;
  padding: 0 10px 10px;
  color: #9ba0a8;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-card[draggable="true"] {
  cursor: grab;
}

.list-card.dragging,
.manager-row.dragging {
  opacity: .42;
}

.list-card.long-dragging {
  z-index: 140;
  opacity: .92;
  cursor: grabbing;
  pointer-events: none;
  transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) scale(.98);
  box-shadow: 0 18px 38px rgb(0 0 0 / .24);
}

.list-card.drag-over-target {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.list-card.selected {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.item-detail-page {
  display: grid;
  gap: 12px;
  padding: 0 12px var(--dual-bottom-reserved);
}

.item-hero-preview {
  min-height: min(72vh, 760px);
}

.image-preview-trigger {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border-radius: inherit;
}

.image-preview-trigger svg {
  width: 54px;
  height: 54px;
  color: var(--faint);
  fill: none;
  stroke: currentColor;
}

.item-hero-preview img {
  max-width: 82%;
  max-height: 70vh;
  object-fit: contain;
}

.inspiration-hero-preview {
  display: grid;
  place-items: center;
  min-height: min(58vh, 620px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.inspiration-hero-preview img {
  width: 100%;
  height: 100%;
  max-height: min(58vh, 620px);
  object-fit: contain;
}

.item-detail-fields {
  display: grid;
  gap: 10px;
}

.item-field-group {
  margin: 0;
}

.item-detail-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 var(--edge-pad);
  gap: 8px;
  text-align: left;
}

.item-detail-row.editable-row {
  grid-template-columns: 86px minmax(0, 1fr);
}

.item-detail-row + .item-detail-row {
  border-top: 1px solid var(--line);
}

.item-detail-row .field-label,
.item-note-card .field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.item-detail-row .field-value {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-detail-input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.item-detail-input::placeholder {
  color: var(--muted);
}

.item-detail-input[type="number"] {
  -moz-appearance: textfield;
}

.item-detail-input[type="number"]::-webkit-outer-spin-button,
.item-detail-input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.item-detail-row select.item-detail-input {
  appearance: none;
  padding-right: 0;
}

.item-inline-selects {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.item-inline-selects select {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgb(255 255 255 / .5);
}

.editable-note-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.editable-note-card textarea {
  min-height: 70px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  line-height: 1.45;
}

.item-detail-row .field-value.empty {
  color: var(--muted);
}

.item-detail-row .chev {
  color: var(--muted);
}

.item-detail-row .chev svg,
.item-relation-head svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.item-note-card {
  display: grid;
  gap: 6px;
  min-height: 70px;
  margin: 0;
  padding: 11px 10px;
  text-align: left;
}

.item-note-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.item-wear-stats {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
}

.item-wear-stats header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.item-wear-stats header strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 860;
}

.item-wear-stats header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.item-wear-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.item-wear-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / .5);
}

.item-wear-stat small,
.item-wear-stat em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-wear-stat strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-wear-history {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(255 255 255 / .32);
}

.item-wear-history-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--text);
  text-align: left;
}

.item-wear-history-row + .item-wear-history-row {
  border-top: 1px solid var(--line);
}

.item-wear-history-row span,
.item-wear-history-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.item-wear-history-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-wear-empty {
  margin: 0;
  padding: 6px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.item-relation-card {
  margin: 0;
  padding: 0 10px 12px;
}

.item-relation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.item-relation-head span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
}

.item-relation-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.item-relation-strip button {
  flex: 0 0 auto;
  width: 54px;
  height: 72px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--field);
}

.item-relation-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--stacked-bottom-offset);
  z-index: 24;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #eeeeef;
  backdrop-filter: blur(18px);
}

.detail-actionbar button {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.selection-mark {
  position: absolute;
  right: 9px;
  top: 9px;
  display: grid !important;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0 !important;
  border-radius: 50%;
  border: 2px solid rgba(91, 110, 255, .9);
  color: #fff !important;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(43, 76, 255, .2);
  font-size: 13px !important;
  font-weight: 900;
}

.selection-mark.checked {
  border-color: #fff;
  background: var(--blue);
}

@media (min-width: 860px) {
  body {
    display: grid;
    place-items: start center;
  }

  .app-shell {
    width: min(100vw, 980px);
    min-height: 100vh;
    border-right: 1px solid #efeff0;
    border-left: 1px solid #efeff0;
  }

  .tabbar {
    left: calc((100vw - var(--app-width)) / 2 + (var(--app-width) - var(--nav-width)) / 2);
    right: auto;
    width: var(--nav-width);
    transform: none;
  }

  .main-scroll {
    padding-right: var(--edge-pad);
    padding-left: var(--edge-pad);
  }

  .category-card {
    min-height: 132px;
  }

  .tile-row {
    grid-template-columns: repeat(auto-fill, 78px);
    grid-auto-rows: 78px;
  }

  .empty-tile,
  .item-tile,
  .outfit-tile,
  .inspiration-tile {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink-rgb: 0 0 0;
    --canvas: #f7f7f7;
    --card: #ffffff;
    --field: #f4f4f4;
    --line: #ededed;
    --text: var(--title-text);
    --muted: var(--body-text);
    --faint: var(--faint-text);
  }

  .topbar,
  .tabbar {
    background: rgba(247, 247, 247, 0.92);
  }

  .tabbar {
    background: rgb(255 255 255 / .86);
  }

  .icon-button:hover,
  .sublist-button,
  .soft-icon,
  .settings-group,
  .record-panel,
  .editor-head,
  .editor-card,
  .search-box,
  .list-card,
  .action-sheet {
    background: var(--card);
  }

  .empty-tile,
  .item-tile,
  .outfit-tile,
  .inspiration-tile,
  .photo-box,
  .search-box input {
    background: var(--field);
  }

  .sheet-action {
    background: #e3e3e4;
    color: var(--body-text);
  }
}

.page-scroll {
  padding: 0 0 calc(var(--bottom-nav-reserved) + 28px);
}

.full-page {
  min-height: calc(100vh - var(--bottom-nav-reserved));
  background: var(--canvas);
}

.page-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 12px 8px;
  background: color-mix(in srgb, var(--card), transparent 8%);
  backdrop-filter: blur(18px);
}

.screen[data-page="category-subpage"] .page-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 10px 26px rgba(25, 29, 38, .08);
}

.page-topbar strong {
  min-width: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.plain-back {
  justify-self: start;
  width: auto;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 4px 12px rgb(116 175 0 / .18);
}

.plain-back.cancel-back {
  width: auto;
  padding: 0 10px;
  color: rgb(0 0 0 / .82);
  font-size: 13px;
  font-weight: 850;
}

.plain-back.close-back {
  width: auto;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}

.page-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.text-button {
  color: var(--blue);
  font-weight: 750;
  font-size: 13px;
}

.page-topbar .text-button,
.primary-text-button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
  font-weight: 850;
  box-shadow: 0 4px 12px rgb(116 175 0 / .18);
}

.page-topbar .danger-text-button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  color: rgb(128 28 28 / .9);
  background: rgb(255 255 255 / .62);
  font-weight: 850;
  box-shadow: 0 4px 12px rgb(60 20 20 / .08);
}

.compact-icon {
  width: 30px;
  height: 30px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.category-subgrid {
  margin: 18px 12px 0;
}

.home-grid .category-card {
  min-height: 156px;
}

.home-grid .tile-row {
  grid-template-columns: 1fr;
  grid-auto-rows: 108px;
}

.home-grid .empty-tile,
.home-grid .item-tile,
.home-grid .outfit-tile,
.home-grid .inspiration-tile {
  width: 100%;
  height: 108px;
}

.screen[data-screen="outfits"][data-page="home"] .main-scroll {
  padding-top: 24px;
}

.screen[data-screen][data-page="home"] {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--canvas);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.screen[data-screen][data-page="home"] .topbar {
  position: relative;
  top: auto;
  width: min(860px, calc(100% - 28px));
  min-height: 54px;
  margin: 22px auto 0;
  padding: 10px 18px;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .56);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 35px rgba(38, 31, 25, .12);
  backdrop-filter: blur(16px);
}

.screen[data-screen="settings"][data-page="home"] .topbar {
  position: relative;
  top: auto;
  width: min(860px, calc(100% - 28px));
  min-height: 54px;
  margin: 22px auto 0;
  padding: 10px 18px;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .46);
  background: rgb(255 255 255 / .82);
  box-shadow: 0 14px 35px rgba(38, 31, 25, .1);
  backdrop-filter: blur(16px);
}

.screen[data-screen][data-page="home"] .top-settings-button {
  justify-self: start;
  color: rgb(0 0 0 / .72);
}

.screen[data-screen][data-page="home"] .title-button,
.screen[data-screen="calendar"][data-page="home"] .topbar-title,
.screen[data-screen="settings"][data-page="home"] .topbar-title,
.screen[data-screen="users"][data-page="home"] .topbar-title {
  justify-self: center;
  justify-content: center;
  min-width: 160px;
  min-height: 32px;
  padding: 0 18px;
  border-radius: 4px;
  color: rgb(0 0 0 / .8) !important;
  background: #a8ff00;
  font-size: 13px;
  font-weight: 850;
}

.screen[data-screen][data-page="home"] .title-button::after {
  border-top-color: rgb(0 0 0 / .7);
}

.screen[data-screen][data-page="home"] .toolbar-actions {
  justify-self: end;
}

.screen[data-screen][data-page="home"] .icon-button {
  color: rgb(0 0 0 / .78);
  border-radius: 4px;
}

.screen[data-screen][data-page="home"] .icon-button:hover {
  background: rgb(0 0 0 / .06);
}

.screen[data-screen][data-page="home"] .main-scroll {
  width: min(860px, calc(100% - (var(--edge-pad) * 2)));
  margin: 0 auto;
  padding: 0 0 calc(var(--bottom-nav-reserved) + 30px);
}

.screen[data-screen="inspiration"][data-page="home"] .main-scroll {
  padding-top: 24px;
}

.screen[data-screen="inspiration"][data-page="home"] .memory-home {
  padding-top: 0;
}

.memory-home {
  position: relative;
  min-height: calc(100vh - 160px);
  padding: 28px 14px 28px;
}

.memory-photo-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.memory-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(.85);
  opacity: .56;
  transform: scale(1.08);
}

.memory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding: 22px 16px 36px;
  color: rgb(0 0 0 / .8);
}

.memory-hero h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
  color: rgb(0 0 0 / .8);
}

.memory-hero p {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgb(0 0 0 / .62);
}

.memory-hero aside {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: baseline;
  gap: 5px;
  min-width: 148px;
  color: rgb(0 0 0 / .72);
}

.memory-hero aside span,
.memory-hero aside em {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.memory-hero aside strong {
  font-size: clamp(48px, 7vw, 72px);
  line-height: .92;
  font-weight: 500;
  color: rgb(0 0 0 / .82);
}

.memory-category-list {
  display: grid;
  gap: 12px;
}

.memory-category-row {
  position: relative;
  min-height: 88px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, .31);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}

.memory-category-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  padding: 16px 64px 16px 26px;
  text-align: left;
}

.memory-thumb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 3px;
  color: rgb(0 0 0 / .42);
  background: rgba(255, 255, 255, .34);
}

.memory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-thumb svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.memory-row-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.memory-row-copy strong {
  color: rgb(0 0 0 / .78);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 850;
}

.memory-row-copy small {
  overflow: hidden;
  color: rgb(0 0 0 / .55);
  font-size: 13px;
  line-height: 1.16;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-row-count {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: rgb(0 0 0 / .78);
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
}

.memory-row-menu {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: rgb(0 0 0 / .52);
  transform: translateY(-50%);
}

.memory-row-menu:hover {
  background: rgb(255 255 255 / .32);
}

.memory-row-menu svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.memory-hidden-note {
  margin: 8px 0 0;
  color: rgb(0 0 0 / .48);
  font-size: 12px;
  font-weight: 700;
}

.screen[data-screen][data-page="home"] .fab {
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(55, 70, 25, .22);
}

.category-title {
  text-align: left;
}

.sortbar {
  position: sticky;
  top: 64px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 14px 6px;
  background: var(--canvas);
}

.sortbar > button:first-child {
  color: #6f737b;
  font-size: 12px;
  font-weight: 750;
}

.sortbar-spacer {
  flex: 1;
}

.list-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.top-action-pill {
  display: inline-grid;
  grid-template-columns: 14px auto;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  color: rgb(0 0 0 / .66);
  background: rgb(255 255 255 / .74);
  font-size: 11px;
  font-weight: 850;
}

.top-action-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.empty-page {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: calc(100vh - 220px);
  text-align: center;
}

.empty-page strong {
  color: #4c4f57;
  font-size: 15px;
}

.empty-page span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.selection-toolbar {
  position: fixed;
  right: 0;
  bottom: var(--stacked-bottom-offset);
  left: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 62px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #eeeeef;
  backdrop-filter: blur(18px);
}

.selection-toolbar button {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 0;
  color: #a3a7af;
  font-size: 12px;
  font-weight: 700;
}

.panel-list {
  margin: 0 12px 10px;
}

.panel-list h3 {
  margin: 0;
  padding: 14px 12px 8px;
  color: #5b5e66;
  font-size: 13px;
}

.switch-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.switch-row .row-label {
  display: grid;
  gap: 3px;
  white-space: normal;
}

.switch-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.switch {
  position: relative;
  justify-self: end;
  width: 41px;
  height: 24px;
  border-radius: 999px;
  background: #e1e2e6;
  transition: background .18s ease;
}

.screen[data-screen="settings"] .full-page {
  min-height: auto;
  padding-bottom: calc(var(--bottom-nav-reserved) + 24px);
}

.display-settings-page .panel-list {
  margin-right: 0;
  margin-left: 0;
  padding: 2px 0;
}

.display-settings-page {
  display: grid;
  align-content: start;
  gap: 12px;
  width: min(520px, calc(100% - 24px));
  max-width: 100%;
  margin: 14px auto 0;
  padding: 0 0 calc(var(--bottom-nav-reserved) + 18px);
}

.display-settings-page .subsection {
  margin: 0;
}

.full-page > .settings-group:first-of-type,
.full-page > .detail-page:first-of-type,
.full-page > .option-form-page:first-of-type,
.full-page > .web-import-page:first-of-type,
.full-page > .search-page:first-of-type,
.full-page > .form-page:first-of-type {
  margin-top: 12px;
}

.option-form-page {
  width: 100%;
  gap: 14px;
  margin: 0 auto;
  padding: 2px 12px 20px;
}

.option-form-page .tiny-photo {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 7px;
}

.option-native-form {
  gap: 14px;
}

.option-inline-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.option-inline-input {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--field);
  color: var(--body-text);
  text-align: left;
}

.option-inline-input::placeholder {
  color: var(--caption-text);
}

.option-sync-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  border-top: 0;
}

.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .12);
  transition: transform .18s ease;
}

.switch.on {
  background: var(--blue);
}

.switch.on span {
  transform: translateX(17px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 14px 7px;
}

.section-head h3,
.filter-section h3,
.web-import-page h3 {
  margin: 0;
  color: #555963;
  font-size: 12px;
  font-weight: 800;
}

.section-head button {
  color: #8f939b;
  font-size: 12px;
  font-weight: 750;
}

.compact-rows .settings-row {
  min-height: 39px;
}

.drag-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.drag-handle {
  color: #c9ccd3;
  font-size: 18px;
  font-weight: 900;
}

.check-row {
  grid-template-columns: 26px minmax(0, 1fr) auto;
}

.fake-checkbox {
  display: grid !important;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0 !important;
  border-radius: 4px;
  border: 1.5px solid #cdd1d8;
  color: #fff !important;
  background: #fff;
  font-size: 12px !important;
  font-weight: 900;
}

.fake-checkbox.checked {
  border-color: var(--blue);
  background: var(--blue);
}

.manager-list {
  margin: 0 12px;
  padding-bottom: 0;
}

.manager-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid #f3f3f4;
}

.manager-row.with-chevron {
  grid-template-columns: minmax(0, 1fr) 40px 20px;
}

.inline-actions-row,
.inline-editing-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  padding-right: 8px;
}

.inline-editing-row {
  padding-top: 4px;
  padding-bottom: 4px;
}

.inline-actions-row .manager-main-button {
  min-width: 0;
}

.manager-row[draggable="true"] {
  cursor: grab;
}

.manager-row[draggable="true"] .drag-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.manager-row:first-child {
  border-top: 0;
}

.manager-row > button:first-child {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  padding: 0 6px 0 12px;
  gap: 8px;
  text-align: left;
}

.wardrobe-list .manager-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  padding-right: 8px;
}

.wardrobe-list .manager-row.editing {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 4px 8px 4px 0;
}

.wardrobe-list .manager-row > button:first-child {
  grid-template-columns: minmax(0, 1fr) auto;
}

.wardrobe-inline-field {
  min-width: 0;
  padding-left: 12px;
}

.wardrobe-inline-field input {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  padding: 0 10px;
  color: var(--title-text);
  background: rgb(255 255 255 / .74);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.wardrobe-inline-field input:focus {
  box-shadow: inset 0 0 0 2px #a8ff00;
}

.mini-text {
  min-width: 38px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  color: rgb(0 0 0 / .62);
  background: rgb(0 0 0 / .045);
  font-size: 12px;
  font-weight: 800;
}

.mini-text.primary {
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
}

.mini-text.danger {
  color: #e64b4b;
}

.mini-text:disabled {
  color: rgb(0 0 0 / .24);
}

.mini-more {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  margin-right: 10px;
  border-radius: 6px;
  color: #a8abb2;
  background: #f0f1f3;
}

.manager-row.with-chevron .mini-more {
  margin-right: 0;
}

.mini-more svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.manager-chevron {
  display: grid;
  place-items: center;
  width: 20px;
  height: 100%;
  color: var(--faint);
}

.manager-chevron svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.segmented {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented button {
  min-width: 70px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  color: #7d818a;
  background: #f0f1f3;
  font-size: 12px;
  font-weight: 800;
}

.segmented button.active {
  color: rgb(0 0 0 / .8);
  background: var(--blue);
}

.segmented.compact {
  padding: 10px 0 0;
}

.manager-tabs {
  width: min(520px, calc(100% - 24px));
  margin: 12px auto 10px;
  padding: 6px;
  border-radius: 8px;
  background: var(--glass-card);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.manager-tabs button {
  flex: 1 1 0;
  border-radius: 4px;
}

.fixed-bottom {
  position: fixed;
  left: 50%;
  bottom: var(--stacked-bottom-offset);
  z-index: 26;
  transform: translateX(-50%);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  backdrop-filter: blur(18px);
}

.web-import-page,
.search-page,
.form-page,
.detail-page {
  padding: 0 12px calc(var(--bottom-nav-reserved) + 24px);
}

.web-import-page,
.search-full-page {
  padding-bottom: var(--dual-bottom-reserved);
}

.currency-page,
.outfit-detail-page {
  padding: 0 12px var(--dual-bottom-reserved);
}

.currency-search {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
  background: var(--field);
}

.currency-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.currency-search input {
  min-width: 0;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.currency-list {
  display: grid;
  gap: 2px;
}

.currency-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-align: left;
}

.currency-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: rgb(0 0 0 / .78);
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08);
  font-size: 13px;
  font-weight: 900;
}

.currency-copy strong,
.currency-copy small {
  display: block;
}

.currency-copy strong {
  font-size: 13px;
}

.currency-copy small {
  color: var(--muted);
  font-size: 11px;
}

.radio-dot {
  justify-self: end;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--faint);
}

.radio-dot.checked {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 3px var(--card);
  background: var(--blue);
}

.outfit-hero-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(72vh, 760px);
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.outfit-hero-preview > img {
  max-width: 76%;
  max-height: 70vh;
  object-fit: contain;
}

.outfit-hero-preview > .outfit-editorial-preview {
  width: min(76%, 420px);
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.image-edit-corner {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--blue);
  background: rgba(255, 255, 255, .85);
}

.image-edit-corner svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.outfit-detail-fields {
  overflow: hidden;
}

.outfit-detail-fields .form-row {
  padding: 0 var(--edge-pad);
}

.outfit-field-row {
  grid-template-columns: 84px minmax(0, 1fr);
}

.outfit-wear-dates {
  display: grid;
  gap: 10px;
  padding: 12px var(--edge-pad) 14px;
}

.outfit-wear-dates header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.outfit-wear-dates header span {
  display: grid;
  gap: 2px;
}

.outfit-wear-dates strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 860;
}

.outfit-wear-dates small,
.outfit-date-empty {
  color: var(--muted);
  font-size: 11px;
}

.outfit-wear-date-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.outfit-wear-date-add input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: var(--field);
}

.outfit-wear-date-add button {
  height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  color: #16380c;
  background: var(--accent);
  font-size: 12px;
  font-weight: 860;
}

.outfit-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outfit-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgb(255 255 255 / .72);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgb(12 20 30 / .06);
}

.outfit-date-chip b {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.field-option-sheet .bottom-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 10px;
  min-height: 42px;
  color: var(--text);
  font-weight: 760;
}

.outfit-text-card textarea {
  min-height: 150px;
  padding: 12px;
  text-align: left;
  background: var(--field);
}

.entry-form-page {
  display: grid;
  gap: 12px;
}

.wardrobe-init-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f8f8f8;
}

.wardrobe-init-head {
  display: grid;
  gap: 4px;
}

.wardrobe-init-head strong {
  font-size: 15px;
  font-weight: 900;
}

.wardrobe-init-head span {
  color: rgb(0 0 0 / .52);
  font-size: 12px;
  font-weight: 750;
}

.wardrobe-init-options {
  display: grid;
  gap: 8px;
}

.init-option-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.init-option-card.selected {
  border-color: #a8ff00;
  background: color-mix(in srgb, #a8ff00 10%, #fff);
}

.init-option-card span:first-child {
  display: grid;
  gap: 4px;
}

.init-option-card strong {
  font-size: 13px;
  font-weight: 900;
}

.init-option-card small {
  color: rgb(0 0 0 / .52);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.wardrobe-copy-source {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.wardrobe-copy-source > strong {
  font-size: 13px;
  font-weight: 900;
}

.wardrobe-copy-source > div {
  display: grid;
  gap: 6px;
}

.wardrobe-copy-source button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 7px;
  background: #f5f5f5;
  text-align: left;
  font-weight: 800;
}

.wardrobe-copy-source button.selected {
  background: color-mix(in srgb, #a8ff00 13%, #fff);
  box-shadow: inset 0 0 0 2px #a8ff00;
}

.entry-form-page.outfit-entry-form {
  gap: 10px;
}

.entry-form-page > .photo-box {
  justify-self: center;
  width: min(38vw, 142px);
  height: min(38vw, 142px);
  margin-top: 6px;
}

.entry-photo-wrap {
  position: relative;
  justify-self: center;
  width: min(70vw, 320px);
  margin-top: 8px;
}

.entry-form-page.item-entry-form {
  gap: 16px;
}

.item-entry-form .entry-photo-wrap > .photo-box {
  width: 100%;
  height: min(48vh, 420px);
  margin: 0;
  border-radius: 8px;
}

.item-entry-form .entry-photo-wrap > .photo-box img {
  object-fit: contain;
}

.entry-image-corner {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgb(0 0 0 / .7) !important;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  backdrop-filter: blur(12px);
}

.entry-image-corner svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.outfit-form-preview {
  justify-self: stretch;
  display: grid;
  place-items: center;
  min-height: min(58vh, 680px);
  margin: 0 12px;
  border-radius: 8px;
  background: #fff;
  color: #b8bdc7;
}

.outfit-form-preview > img {
  width: auto;
  max-width: min(74%, 420px);
  max-height: min(50vh, 560px);
  object-fit: contain;
}

.outfit-form-preview > .outfit-editorial-preview {
  width: min(74%, 420px);
  aspect-ratio: 4 / 5;
  max-height: min(50vh, 560px);
  border-radius: 8px;
}

.outfit-form-preview .outfit-preview-layer {
  width: 42%;
  height: 64%;
}

.outfit-form-preview .outfit-editorial-preview.layer-count-1 .layer-1 {
  width: 48%;
  height: 72%;
}

.outfit-entry-form .panel-list {
  margin-top: 0;
}

.field-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px 10px;
  color: var(--text);
}

.field-picker-left,
.field-picker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-picker-left strong {
  font-size: 15px;
  font-weight: 850;
}

.field-picker-left button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue), transparent 88%);
}

.field-picker-left svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.field-picker-head > button,
.field-picker-actions button {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.field-option-sheet .radio-dot {
  align-self: center;
}

.note-row {
  align-items: start;
  padding-top: 12px;
}

.note-row textarea {
  min-height: 76px;
  padding: 0 0 12px;
  color: var(--muted);
  text-align: right;
  resize: vertical;
}

.detail-actionbar {
  position: fixed;
  right: 0;
  bottom: var(--stacked-bottom-offset);
  left: 0;
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  min-height: calc(52px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--card);
  box-shadow: 0 -1px 0 var(--line);
}

.detail-actionbar button {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.search-full-page {
  min-height: 100%;
  padding-top: 10px;
}

.search-line {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
}

.search-line svg,
.filter-input svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #b4b8c0;
  stroke-width: 2;
}

.search-line input,
.filter-input input,
.wide-input,
.range-row input,
.wide-textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text);
}

.search-line input {
  height: 34px;
  background: transparent;
}

.search-line button {
  color: var(--blue);
  font-weight: 750;
}

.app-search-line {
  min-height: 38px;
  background: #f3f4f6;
}

.app-search-line input {
  font-size: 14px;
}

.app-search-line button {
  color: #33363d;
}

.search-history h3 {
  margin-top: 14px;
}

.search-type-tabs {
  position: fixed;
  right: 0;
  bottom: var(--stacked-bottom-offset);
  left: 0;
  justify-content: center;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .06);
}

.subsection {
  margin-top: 14px;
}

.subsection h3 {
  margin: 0 0 9px;
  color: #545862;
  font-size: 13px;
}

.empty-state.tight {
  min-height: 140px;
}

.wide-input {
  height: 38px;
  padding: 0 11px;
  color: var(--text);
  background: var(--field);
  caret-color: var(--blue);
}

.wide-textarea {
  min-height: 160px;
  padding: 12px;
  resize: vertical;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 15px;
  gap: 6px;
  border-radius: 7px;
  color: #555963;
  background: #f4f4f5;
  font-size: 12px;
  font-weight: 750;
}

.choice-chip.selected,
.choice-chip:active {
  color: #fff;
  background: var(--blue);
}

.choice-chip.bordered {
  border: 1px solid #d7d9df;
  background: #fff;
}

.option-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot, #cfd2d8);
  border: 1px solid rgba(0, 0, 0, .06);
}

.browser-placeholder {
  min-height: 55vh;
}

.page-actions {
  position: fixed;
  right: 0;
  bottom: var(--stacked-bottom-offset);
  left: 0;
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: calc(52px + var(--safe-bottom));
  padding: 6px 12px calc(6px + var(--safe-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #eeeeef;
  backdrop-filter: blur(18px);
}

.soft-action {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #9aa0a8;
  background: #f2f3f5;
  font-size: 22px;
}

.primary-action {
  min-width: 66px;
  min-height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.modal-backdrop.transparent {
  place-items: start end;
  padding: 72px 12px 0;
  background: rgba(0, 0, 0, .32);
}

.popover-menu {
  min-width: 154px;
  overflow: hidden;
  border-radius: 14px;
  background: #f8f8f8;
  color: #262931;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.popover-menu button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  gap: 9px;
  text-align: left;
  font-size: 13px;
  font-weight: 850;
  color: inherit;
}

.popover-menu button + button {
  border-top: 1px solid #f1f1f2;
}

.popover-menu button.danger {
  color: #ff3b30;
}

.popover-menu svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.popover-menu button > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: rgb(0 0 0 / .62);
}

.confirm-card {
  width: min(330px, calc(100vw - 48px));
  padding: 22px 20px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.confirm-card strong {
  color: #20232a;
  font-size: 17px;
}

.confirm-card p {
  margin: 12px 0 18px;
  color: #767b85;
  font-size: 13px;
  line-height: 1.55;
}

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

.confirm-actions button {
  min-height: 38px;
  border-radius: 9px;
  color: #20232a;
  background: #f1f2f4;
  font-weight: 800;
}

.confirm-actions .danger {
  color: #fff;
  background: #ff3b30;
}

.confirm-actions .danger.pale {
  color: #ff3b30;
  background: #ffd8dc;
}

.wardrobe-backdrop {
  background: rgb(0 0 0 / .22);
}

.wardrobe-sheet {
  width: min(860px, calc(100% - 28px));
  max-width: none;
  min-height: 250px;
  margin: 0 auto calc(12px + var(--safe-bottom));
  padding: 10px 18px calc(22px + var(--safe-bottom));
  border-radius: 18px;
  background: #f8f8f8;
  box-shadow: 0 -18px 46px rgb(0 0 0 / .16);
}

.sheet-grabber {
  width: 38px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / .14);
}

.wardrobe-sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  gap: 14px;
  padding: 0 2px 14px;
}

.wardrobe-sheet-head strong {
  display: block;
  color: var(--title-text);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

.wardrobe-sheet-head span {
  display: block;
  margin-top: 3px;
  color: var(--caption-text);
  font-size: 12px;
  font-weight: 650;
}

.wardrobe-actions {
  display: flex;
  gap: 8px;
}

.wardrobe-sheet-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: rgb(0 0 0 / .78);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06);
}

.wardrobe-sheet-head svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.wardrobe-option-list {
  display: grid;
  gap: 10px;
}

.wardrobe-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--title-text);
  background: #fff;
  text-align: left;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .04);
}

.wardrobe-option.selected {
  border-color: #a8ff00;
  background: color-mix(in srgb, #a8ff00 12%, #fff);
}

.wardrobe-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: rgb(0 0 0 / .78);
  background: rgb(0 0 0 / .05);
}

.wardrobe-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.wardrobe-copy {
  min-width: 0;
}

.wardrobe-name,
.wardrobe-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wardrobe-name {
  color: var(--title-text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

.wardrobe-meta {
  margin-top: 2px;
  color: var(--caption-text);
  font-size: 12px;
  font-weight: 650;
}

.wardrobe-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgb(0 0 0 / .16);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.wardrobe-option.selected .wardrobe-check {
  border-color: rgb(0 0 0 / .75);
  background: rgb(0 0 0 / .75);
}

.bottom-align {
  place-items: end stretch;
  padding: 0;
}

.bottom-sheet {
  width: 100%;
  max-height: min(62vh, 520px);
  overflow: auto;
  padding: 13px 0 calc(16px + var(--safe-bottom));
  border-radius: 14px 14px 0 0;
  background: #f8f8f8;
  color: var(--text);
  box-shadow: 0 -18px 46px rgba(0, 0, 0, .16);
}

.bottom-sheet.wardrobe-sheet {
  justify-self: center;
  width: min(860px, calc(100% - 28px));
  max-width: none;
  padding: 10px 18px calc(22px + var(--safe-bottom));
  border-radius: 18px;
}

.bulk-edit-sheet {
  max-height: min(76vh, 720px);
  padding-bottom: calc(14px + var(--safe-bottom));
  overflow: auto;
}

.bulk-edit-fields {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px;
}

.bulk-edit-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  gap: 10px;
}

.bulk-edit-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.bulk-edit-row select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--field);
  font-size: 13px;
  font-weight: 760;
}

.bulk-save-action {
  width: calc(100% - 28px);
  margin: 2px 14px 0;
}

.sheet-title.left,
.sheet-title.split {
  padding: 0 14px 9px;
  text-align: left;
}

.sheet-title.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title.split button {
  color: var(--blue);
  font-weight: 800;
}

.bottom-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 37px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 750;
}

.bottom-option.selected::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--blue);
}

.field-option-sheet .bottom-option.selected::after {
  content: none;
  display: none;
}

.tag-picker-groups {
  display: grid;
  gap: 18px;
  padding: 4px 14px 18px;
}

.tag-picker-group {
  display: grid;
  gap: 10px;
}

.tag-picker-group h3 {
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}

.tag-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-picker-chip {
  min-width: 70px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--field);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.tag-picker-chip.selected {
  background: color-mix(in srgb, var(--blue) 18%, var(--field));
  color: var(--blue);
}

.panel-overlay {
  align-items: start;
  justify-items: stretch;
  padding: 104px 0 0;
  background: rgba(0, 0, 0, .28);
}

.filter-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 104px);
  background: #fff;
}

.filter-content {
  overflow: auto;
  padding: 13px 12px 90px;
}

.filter-section {
  margin-top: 17px;
}

.filter-section h3 {
  margin-bottom: 9px;
}

.filter-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.filter-field-card {
  display: grid;
  min-width: 0;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid rgba(43, 48, 57, .08);
  border-radius: 8px;
  background: rgba(246, 247, 249, .92);
  text-align: left;
}

.filter-field-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.filter-field-card strong {
  align-self: end;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-field-card.selected {
  border-color: rgba(75, 110, 255, .34);
  background: rgba(75, 110, 255, .1);
}

.filter-input {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f4f4f5;
}

.filter-input input {
  height: 30px;
  background: transparent;
}

.color-chip .option-dot {
  width: 13px;
  height: 13px;
}

.filter-option-panel .filter-content {
  padding-bottom: 82px;
}

.filter-option-chips,
.filter-option-tree .chip-row {
  gap: 9px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.range-row input {
  height: 34px;
  text-align: center;
}

.range-row span {
  color: #c2c5cc;
}

.filter-range-row {
  margin-top: 18px;
}

.panel-actions {
  position: fixed;
  right: 0;
  bottom: var(--stacked-bottom-offset);
  left: 0;
  display: flex;
  justify-content: center;
  gap: min(28vw, 210px);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #f0f0f1;
  backdrop-filter: blur(18px);
}

.panel-actions > button:first-child {
  min-width: 66px;
  height: 31px;
  border-radius: 999px;
  border: 1px solid #d9dbe1;
  font-weight: 800;
}

.date-jump {
  min-height: 190px;
}

.weather-strip {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
  margin: 8px 14px 0;
  padding: 0 10px;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
  color: #4f5662;
  text-align: left;
}

.weather-strip svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.weather-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.weather-strip em {
  color: #8e949e;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.weather-summary {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f5f6f8;
}

.weather-summary span,
.weather-summary small {
  color: #7c828d;
  font-size: 12px;
}

.picker-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 28px;
  color: #5b5f68;
  text-align: center;
  font-weight: 800;
}

.picker-row.muted {
  color: #bec2ca;
}

.picker-row.selected {
  border-radius: 7px;
  margin: 0 8px;
  background: #f2f3f5;
  color: #4d5058;
}

.date-jump {
  display: grid;
  gap: 14px;
}

.date-jump-year {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
}

.date-jump-year strong {
  text-align: center;
  font-size: 20px;
}

.date-jump-year button,
.date-jump-actions button,
.date-jump-month-grid button {
  border-radius: 8px;
  background: #f4f5f7;
  color: #343840;
  font-weight: 800;
}

.date-jump-year button {
  height: 40px;
  font-size: 20px;
}

.date-jump-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 8px;
}

.date-jump-month-grid button {
  min-height: 42px;
  font-size: 14px;
}

.date-jump-month-grid button.selected {
  background: #a8ff00;
  color: rgb(0 0 0 / .84);
}

.date-jump-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 8px 4px;
}

.date-jump-actions button {
  min-height: 40px;
  font-size: 13px;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d3d6dd;
}

.radio-dot.active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--blue);
}

.related-row button {
  justify-self: end;
  color: #6d7480;
  font-weight: 750;
  max-width: 220px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-row button.has-value {
  color: #2f6d00;
}

.related-picker-backdrop {
  z-index: 65;
  background: rgba(0, 0, 0, .24);
}

.related-picker {
  max-height: min(56vh, 460px);
  background: #f8f8f8;
}

.related-option {
  justify-content: space-between;
  gap: 12px;
}

.related-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 10px;
}

.related-categories button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  color: #59606b;
  background: #f2f3f6;
  font-size: 13px;
  font-weight: 750;
}

.related-categories button.active {
  color: #fff;
  background: var(--blue);
}

.related-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding: 0 14px 18px;
}

.related-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.related-card.selected {
  box-shadow: inset 0 0 0 2px #a8ff00;
}

.related-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 7px;
  color: #b2b7c1;
  background: #fff;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-name,
.related-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-name {
  color: #30343c;
  font-size: 12px;
  font-weight: 750;
}

.related-meta {
  color: #969ca6;
  font-size: 11px;
}

.related-card .fake-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
}

.empty-related {
  padding: 22px 14px 28px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.help-text {
  margin: 4px 12px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.membership-card {
  display: grid;
  gap: 10px;
  margin: 0 12px;
  padding: 16px;
  border-radius: 8px;
  background: var(--card);
}

.membership-card strong {
  font-size: 17px;
}

.membership-card span {
  color: var(--muted);
  line-height: 1.5;
}

.stats-card {
  width: 100%;
  color: inherit;
  text-align: left;
}

.stats-grid.large {
  margin: 0 12px;
  padding: 18px 12px;
  border-radius: 8px;
  background: var(--card);
}

.compact-form,
.data-manager-page,
.theme-settings-page,
.card-bg-page {
  display: grid;
  gap: 12px;
  width: min(520px, calc(100% - 24px));
  max-width: 100%;
  margin: 14px auto 0;
  overflow-x: hidden;
}

.compact-form {
  align-content: start;
}

.full-page > .compact-form,
.full-page > .detail-page {
  min-height: 0;
}

.wardrobe-form-page {
  gap: 20px;
}

.inline-input-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 0 var(--edge-pad);
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
  color: rgb(0 0 0 / .68);
  font-size: 13px;
  font-weight: 750;
}

.range-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(0 0 0 / .8);
}

.range-row em {
  font-style: normal;
  color: rgb(0 0 0 / .8);
  font-size: 12px;
}

.occasion-settings-pill {
  display: inline-flex;
  min-width: 64px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgb(255 255 255 / .58);
  color: rgb(0 0 0 / .72);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.inline-input-row input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: right;
  color: rgb(0 0 0 / .72);
}

.option-name-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-sync-card {
  margin: 0;
}

.wide-action {
  width: 100%;
  min-height: 34px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
}

.data-manager-page .primary-action,
.theme-settings-page .primary-action,
.password-page .primary-action {
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
}

.secondary-action {
  color: rgb(0 0 0 / .72);
  background: var(--card);
}

.backup-note {
  margin: 0;
  padding: 0 12px;
  text-align: center;
}

.range-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
  font-weight: 800;
}

.range-row input {
  accent-color: #7be600;
}

.theme-section {
  display: grid;
  gap: 8px;
}

.theme-section h3 {
  margin: 0;
  color: rgb(0 0 0 / .6);
  font-size: 12px;
  font-weight: 850;
}

.theme-section h3 span {
  color: rgb(0 0 0 / .46);
  font-weight: 760;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 112px));
  gap: 10px;
  max-width: 100%;
}

.user-theme-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.theme-user-item {
  position: relative;
  min-width: 0;
}

.theme-user-item .theme-swatch {
  width: 100%;
}

.theme-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: rgb(0 0 0 / .7);
  background: rgb(255 255 255 / .76);
  box-shadow: 0 4px 12px rgb(0 0 0 / .12);
  backdrop-filter: blur(10px);
  font-size: 16px;
  font-weight: 850;
}

.theme-grid.default-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.theme-swatch {
  position: relative;
  display: grid;
  place-items: end start;
  aspect-ratio: 1.55;
  min-height: 70px;
  padding: 8px;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / .82);
  border-radius: 8px;
  background: var(--preview, rgb(255 255 255 / .48));
  background-size: cover;
  background-position: center;
  color: rgb(0 0 0 / .76);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08);
  font-size: 12px;
  font-weight: 900;
}

.theme-swatch i {
  position: absolute;
  right: 8px;
  top: 8px;
  color: rgb(0 0 0 / .48);
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
}

.theme-swatch.selected {
  border-color: #a8ff00;
}

.theme-swatch.selected::after {
  content: "✓";
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a8ff00;
}

.theme-swatch.empty {
  place-items: center;
  border-style: dashed;
  background: rgb(255 255 255 / .42);
  font-size: 22px;
}

.card-theme-section {
  padding: 12px;
  border-radius: 8px;
  background: #f8f8f8;
}

.card-color-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  gap: 8px;
  max-width: 100%;
}

.card-color {
  min-height: 38px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--swatch);
  color: rgb(0 0 0 / .78);
  font-size: 12px;
  font-weight: 900;
}

.card-color:nth-child(n+8) {
  color: #fff;
}

.card-color:last-child {
  color: rgb(0 0 0 / .78);
}

.card-color.selected {
  border-color: #a8ff00;
}

.tiny-photo {
  width: 38px;
  height: 38px;
  margin: 0 0 10px;
  border-radius: 8px;
}

.sync-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.as-button {
  color: inherit;
  text-align: left;
}

.list-card .preview > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #b7bac3;
}

.list-card .preview > span svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

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

.list-layout .list-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
}

.list-layout .preview {
  width: 66px;
  height: 66px;
}

.collage-page {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-rows: 84px auto 88px;
  align-content: start;
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-reserved);
  background: #fff;
}

.screen[data-page="collage-editor"] {
  height: 100vh;
  overflow: hidden;
  padding-bottom: 0;
}

.screen[data-page="collage-editor"] .main-scroll {
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.collage-topbar {
  display: grid;
  grid-template-columns: 58px 1fr 72px;
  align-items: center;
  padding: 18px 16px 0;
  border-bottom: 1px solid #f3f3f4;
}

.collage-topbar > button:first-child {
  justify-self: start;
  color: #565b65;
  font-size: 30px;
  line-height: 1;
}

.collage-topbar strong {
  justify-self: center;
  font-size: 15px;
}

.done-pill {
  justify-self: end;
  min-width: 44px;
  min-height: 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.collage-canvas {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-self: center;
  width: min(100vw, var(--app-width));
  aspect-ratio: 1;
  min-height: 0;
  background: var(--collage-bg, #fff);
}

.collage-objects {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.collage-object {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: var(--w, auto);
  height: var(--h, auto);
  min-width: 92px;
  min-height: 92px;
  transform: translate(-50%, -50%);
  border: 1px solid #e5e5e7;
  background: #eee;
  touch-action: none;
  user-select: none;
}

.collage-object[draggable],
.category-card[draggable],
.list-card[draggable] {
  cursor: grab;
}

.collage-object img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.text-object {
  min-width: 120px;
  min-height: 48px;
  padding: 10px 14px;
  overflow: visible;
  resize: none;
  color: var(--text-color, #22262d);
  background: rgba(255, 255, 255, .88);
  font-size: var(--text-size, 18px);
  font-family: var(--text-font, -apple-system, BlinkMacSystemFont, sans-serif);
  font-style: var(--text-style, normal);
  font-weight: var(--text-weight, 700);
}

.text-object.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.text-content {
  display: block;
  width: 100%;
  overflow: visible;
  white-space: pre-wrap;
  text-align: var(--text-align, center);
  line-height: 1.2;
  pointer-events: none;
}

.text-object.outlined .text-content {
  text-shadow:
    -1.5px -1.5px 0 #fff,
    1.5px -1.5px 0 #fff,
    -1.5px 1.5px 0 #fff,
    1.5px 1.5px 0 #fff,
    0 1.5px 0 #fff,
    1.5px 0 0 #fff,
    0 -1.5px 0 #fff,
    -1.5px 0 0 #fff;
}

.draft-text-object {
  border: 1.5px dashed rgba(91, 110, 255, .65);
  background: rgba(255, 255, 255, .38);
  backdrop-filter: blur(2px);
}

.resize-dot {
  position: absolute;
  right: -10px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cfd2d8;
  color: #5d626b;
  background: #fff;
  font-size: 11px;
  cursor: nwse-resize;
}

.collage-tool-panel {
  position: relative;
  z-index: 4;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(247, 248, 250, .96);
  box-shadow: 0 12px 30px rgba(26, 31, 42, .08);
}

.collage-swatches,
.collage-item-strip,
.action-panel,
.material-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.swatch-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.swatch-button.active {
  box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 2px rgba(91, 110, 255, .18);
}

.collage-thumb,
.collage-add {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 9px;
  color: #8a909b;
  background: #fff;
}

.collage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-add {
  width: auto;
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 750;
}

.collage-item-browser {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: rgba(0, 0, 0, .38);
}

.collage-browser-head {
  display: grid;
  grid-template-columns: auto 1fr auto 1px auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 0 16px;
  background: #fff;
}

.collage-browser-head button {
  color: #22262d;
  font-size: 18px;
  font-weight: 750;
}

.collage-browser-head i {
  width: 1px;
  height: 20px;
  background: #dedfe3;
}

.collage-browser-head svg {
  width: 23px;
  height: 23px;
}

.collage-sort-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 16px 18px;
  background: #fff;
}

.collage-category-rows {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
  background: #fff;
}

.collage-category-rows > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.collage-category-rows button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #333842;
  background: #f4f4f5;
  font-size: 13px;
  font-weight: 750;
}

.collage-category-rows button.selected {
  color: #fff;
  background: #5c6370;
}

.collage-sort-chips button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  color: #333842;
  background: #f4f4f5;
  font-size: 15px;
  font-weight: 750;
}

.collage-sort-chips button.selected {
  color: var(--blue);
  background: #e7e9ff;
}

.collage-item-list {
  height: calc(100% - 140px);
  overflow-y: auto;
  padding: 16px 16px 40px;
}

.collage-item-group {
  margin-bottom: 22px;
}

.collage-item-group h3 {
  margin: 0 0 12px;
  color: #22262d;
  font-size: 16px;
}

.collage-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.collage-picker-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 150px;
  overflow: hidden;
  border-radius: 9px;
  color: #aaaeb6;
  background: rgba(255, 255, 255, .24);
}

.collage-picker-card.selected {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.picker-check {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.collage-picker-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-empty-picker {
  padding-top: 120px;
  color: #fff;
  text-align: center;
  font-weight: 750;
}

.collage-selection-sheet {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--bottom-nav-reserved) + 100px);
  z-index: 18;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 12px 10px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 36px rgba(22, 27, 37, .18);
}

.collage-selection-sheet span {
  color: var(--subtitle-text);
  font-size: 16px;
  font-weight: 800;
}

.collage-selection-sheet button {
  min-width: 82px;
  min-height: 38px;
  border-radius: 999px;
  color: var(--title-text);
  background: var(--blue);
  font-size: 15px;
  font-weight: 850;
}

.action-panel button,
.material-panel button,
.collage-text-editor button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #343943;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.action-panel button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.collage-text-editor {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 8px 8px 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 28px rgba(28, 31, 40, .07);
}

.collage-text-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding-bottom: 9px;
}

.collage-text-input-row input {
  height: 36px;
}

.collage-text-input-row button {
  border-radius: 10px;
  background: #fff;
}

.collage-text-tools {
  display: grid;
  grid-template-columns: repeat(3, 44px) 1fr;
  align-items: center;
  gap: 5px;
  padding: 2px 0 8px;
  border-top: 1px solid #f0f0f2;
}

.collage-text-tools button {
  min-width: 34px;
  padding: 0;
  border-radius: 7px;
  color: #333842;
  background: transparent;
  font-size: 18px;
}

.collage-text-tools button.active {
  color: var(--blue);
}

.collage-text-tools svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.collage-text-colors,
.collage-font-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0;
}

.collage-font-strip button {
  flex: 0 0 38px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 6px;
  background: #f1f2f4;
  font-size: 17px;
  font-weight: 800;
}

.collage-font-strip button.active {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.collage-toolbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #f2f2f3;
  background: #fff;
}

.collage-toolbar button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #3f444d;
  font-size: 11px;
  font-weight: 750;
}

.collage-toolbar button.active {
  color: var(--blue);
}

.collage-toolbar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* Final text hierarchy: the app deliberately avoids white type, even on overlays. */
.screen,
.full-page,
.settings-group,
.editor-card,
.action-sheet,
.calendar-action-sheet,
.bottom-sheet,
.popover-menu,
.option-form-page,
.entry-form-page,
.item-detail-page,
.outfit-detail-page {
  color: var(--body-text) !important;
}

.page-topbar strong,
.topbar .title-button,
.calendar-sheet-title,
.editor-head strong,
.sheet-title,
.field-picker-head strong,
.category-title,
.manager-row .row-label,
.settings-row .row-label,
.list-card strong,
.empty-state strong,
.form-page h3,
.text-button {
  color: var(--title-text) !important;
}

.calendar-sheet-title {
  font-size: 25px;
  line-height: 1.18;
}

.calendar-sheet-option {
  color: var(--body-text) !important;
  font-size: 21px;
  line-height: 1.2;
}

.page-topbar .text-button {
  color: rgb(0 0 0 / .82) !important;
}

.row-value,
.count,
.form-row label,
.field-label,
.settings-row .row-value,
.manager-row .row-value,
.item-detail-row span:last-child,
.outfit-field-row .field-value,
.option-inline-input,
.wide-input,
.search-box input {
  color: var(--subtitle-text) !important;
}

body,
input,
textarea,
select,
.bottom-option,
.popover-menu button,
.sheet-action,
.collage-toolbar button,
.action-panel button,
.material-panel button,
.collage-text-editor button {
  color: var(--body-text) !important;
}

.hint,
.stat-label,
small,
.list-card span,
.empty-state p,
.form-row textarea::placeholder,
.form-row input::placeholder,
.option-inline-input::placeholder {
  color: var(--caption-text) !important;
}

.calendar-action-sheet,
.bottom-sheet,
.popover-menu,
.action-sheet,
.editor-card {
  background: #f8f8f8 !important;
}

.category-card,
.calendar-card,
.settings-group,
.stats-grid.large,
.membership-card,
.inline-input-row,
.wardrobe-init-card,
.wardrobe-copy-source,
.entry-form-page .panel-list,
.outfit-form-preview,
.item-detail-row,
.item-relation-card,
.item-wear-stats,
.range-row,
.card-theme-section,
.manager-list,
.manager-row,
.record-panel,
.calendar-date-card,
.calendar-stack > .calendar-linked-section,
.calendar-entry-card,
.history-event,
.history-empty,
.page-topbar,
.topbar,
.tabbar {
  border-color: var(--glass-line);
  background: var(--glass-card) !important;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.page-topbar,
.topbar,
.tabbar,
.outfit-form-preview,
.manager-list,
.settings-group {
  background: var(--glass-card-strong) !important;
}

.settings-row + .settings-row,
.manager-row + .manager-row,
.form-row,
.item-detail-row + .item-detail-row {
  border-color: rgb(255 255 255 / .38);
}

.popover-menu button.danger,
.delete-confirm,
.danger {
  color: rgb(0 0 0 / .7) !important;
}

@media (min-width: 860px) {
  .detail-actionbar,
  .selection-toolbar,
  .search-type-tabs,
  .panel-actions,
  .page-actions {
    left: 50%;
    width: min(100vw, 980px);
    transform: translateX(-50%);
  }

  .bottom-sheet {
    width: min(100vw, 980px);
    margin: 0 auto;
  }
}

.screen[data-page="home"] > .topbar {
  position: fixed;
  top: calc(22px + env(safe-area-inset-top, 0px));
  left: 50%;
  box-sizing: border-box;
  width: var(--nav-width);
  margin: 0;
  z-index: 120;
  transform: translateX(-50%);
}

.screen[data-page="home"] > .main-scroll {
  padding-top: calc(92px + env(safe-area-inset-top, 0px));
}

.screen[data-screen][data-page="home"] > .topbar {
  position: fixed;
  top: calc(22px + env(safe-area-inset-top, 0px));
  left: 50%;
  box-sizing: border-box;
  width: var(--nav-width);
  margin: 0;
  transform: translateX(-50%);
}

.screen[data-screen][data-page="home"] > .main-scroll {
  padding-top: calc(92px + env(safe-area-inset-top, 0px));
}

.screen:not([data-page="home"]) .page-topbar {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 50%;
  width: var(--app-width);
  z-index: 120;
  transform: translateX(-50%);
}

.screen:not([data-page="home"]) .full-page {
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

.screen[data-screen][data-page="home"] > .topbar {
  position: relative;
  top: auto;
  left: auto;
  width: min(860px, calc(100% - 28px));
  margin: 22px auto 0;
  transform: none;
  border-radius: 8px;
  background: rgb(255 255 255 / .82) !important;
}

.screen[data-screen][data-page="home"] > .main-scroll {
  padding-top: 0;
}

.screen[data-screen="closet"][data-page="home"] > .main-scroll {
  padding-top: 52px;
}

.task-quick-nav {
  position: fixed;
  top: calc(82px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 118;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: min(860px, calc(100% - 28px));
  padding: 6px;
  border: 1px solid rgb(255 255 255 / .5);
  border-radius: 8px;
  background: rgb(255 255 255 / .62);
  box-shadow: 0 16px 34px rgb(35 41 30 / .12);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transform: translateX(-50%);
}

.task-quick-nav button {
  min-width: 0;
  min-height: 34px;
  border-radius: 6px;
  color: rgb(0 0 0 / .72);
  font-size: 13px;
  font-weight: 900;
}

.task-quick-nav button.active {
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
}

.screen[data-screen="outfits"][data-page="home"] .main-scroll,
.screen[data-screen="calendar"][data-page="home"] .main-scroll,
.screen[data-screen="settings"][data-page="home"] .main-scroll {
  width: min(860px, calc(100% - (var(--edge-pad) * 2)));
  margin: 0 auto;
}

.screen[data-page="home"] .top-settings-button.active,
.screen[data-page="home"] .top-settings-button:hover,
.screen[data-page="home"] .top-action-pill,
.screen[data-page="home"] .calendar-today-button,
.screen[data-page="home"] .primary-action {
  color: rgb(0 0 0 / .82) !important;
  background: #a8ff00 !important;
}

.memory-category-row,
.category-card,
.list-card,
.calendar-card,
.record-panel,
.calendar-date-card,
.settings-group,
.manager-row {
  border: 1px solid rgb(255 255 255 / .34);
}

.task-masonry {
  display: block;
  column-width: 260px;
  column-gap: 12px;
}

.task-masonry .list-card {
  display: inline-block;
  width: 100%;
  min-height: 132px;
  margin: 0 0 12px;
  border-radius: 6px;
  background: rgb(255 255 255 / .46) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  break-inside: avoid;
}

.task-masonry .list-card:nth-child(3n + 1) {
  min-height: 178px;
}

.task-masonry .list-card:nth-child(3n + 2) {
  min-height: 146px;
}

.task-masonry .list-card .preview {
  display: none;
}

.task-masonry .list-card strong {
  padding: 22px 18px 8px;
  white-space: normal;
  font-size: 19px;
  line-height: 1.24;
  font-weight: 850;
}

.task-masonry .list-card span.card-attribute {
  padding: 0 18px 18px;
  white-space: normal;
  font-size: 13px;
  line-height: 1.4;
}

.task-board-home {
  display: grid;
  gap: 12px;
  width: min(1180px, calc(100% - 28px));
  min-height: calc(100vh - var(--bottom-nav-reserved) - 96px);
  margin: 0 auto;
  padding: 16px 0 calc(var(--bottom-nav-reserved) + 28px);
}

.task-waterfall-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - 28px) / 3));
  align-items: start;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.task-waterfall-board::-webkit-scrollbar {
  display: none;
}

.task-column {
  --task-tone: 214 229 255;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: min(72vh, 920px);
  padding: 14px;
  border: 1px solid rgb(255 255 255 / .42);
  border-radius: 8px;
  background: var(--task-column-bg);
  box-shadow: 0 18px 46px rgb(25 30 20 / .12);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  scroll-snap-align: start;
  transition: background .18s ease, transform .18s ease;
  cursor: grab;
}

.task-column.drag-over-target {
  background: rgb(168 255 0 / .28);
  transform: translateY(-2px);
}

.task-column.dragging {
  cursor: grabbing;
  opacity: .88;
}

.task-tone-blue,
.task-tone-orange,
.task-tone-yellow,
.task-tone-green,
.task-tone-cyan,
.task-tone-purple {
  --task-tone: 225 228 218;
}

.task-column-head {
  display: grid;
  grid-template-columns: minmax(0, auto) auto 32px;
  align-items: center;
  gap: 10px;
}

.task-column-title {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
}

.task-column-title span,
.task-card-kicker {
  display: block;
  max-width: 100%;
  padding: 4px 18px;
  overflow: hidden;
  border-radius: 999px;
  color: rgb(19 25 34 / .92);
  background: rgb(var(--task-tone) / .94);
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card-kicker {
  width: fit-content;
  padding: 4px 12px;
  font-size: 13px;
}

.task-column-head > strong {
  color: rgb(38 45 56 / .55);
  font-size: 22px;
  font-weight: 800;
}

.task-column-more {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: rgb(35 39 46 / .58);
  font-size: 22px;
  line-height: 1;
}

.task-column-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.task-board-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 88px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgb(180 188 200 / .48);
  border-radius: 8px;
  color: rgb(31 37 46 / .92);
  text-align: left;
  background: var(--card);
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.task-board-card strong {
  display: -webkit-box;
  overflow: hidden;
  max-height: calc(1.28em * 2);
  color: inherit;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
}

.task-board-card small {
  display: none;
  color: rgb(31 37 46 / .66);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 760;
}

.task-card-meta {
  display: none;
}

.task-board-card em {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 28px;
  height: 28px;
  padding: 3px 8px;
  border-radius: 0 8px 0 5px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  font-style: normal;
  font-weight: 900;
  background: #ffba14;
}

.task-board-card.dragging,
.task-board-card.long-dragging {
  z-index: 5;
  opacity: .9;
  cursor: grabbing;
  box-shadow: 0 18px 40px rgb(18 23 32 / .22);
}

.task-board-card.long-dragging {
  transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) scale(.98);
}

.task-board-card.drag-over-target {
  background: rgb(168 255 0 / .38);
  box-shadow: inset 0 0 0 2px rgb(168 255 0 / .9);
}

.task-board-empty {
  min-height: 88px;
  color: rgb(42 48 58 / .42);
  background: var(--card);
  cursor: pointer;
}

.task-waterfall-board .task-board-card,
.task-waterfall-board .task-board-empty {
  background: var(--card);
}

.task-column-add {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  color: rgb(34 39 48 / .66);
  background: rgb(255 255 255 / .08);
}

.task-column-add svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.personal-record-page {
  display: grid;
  gap: 14px;
  padding: 66px 0 calc(var(--bottom-nav-reserved) + 30px);
}

.record-view-tabs {
  position: fixed;
  top: calc(92px + env(safe-area-inset-top, 0px));
  left: calc((100vw - var(--app-width)) / 2 + (var(--app-width) - var(--nav-width)) / 2);
  z-index: 115;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: var(--nav-width);
  min-height: var(--bottom-nav-height);
  padding: 6px;
  gap: 0;
  border: 1px solid rgb(255 255 255 / .48);
  border-radius: 4px;
  background: rgb(255 255 255 / .68);
  box-shadow: 0 16px 34px rgb(35 41 30 / .12);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transform: none;
}

.record-view-tabs button {
  min-width: 0;
  border-radius: 5px;
  color: rgb(0 0 0 / .68);
  font-size: 13px;
  font-weight: 850;
}

.record-view-tabs button.active {
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
}

.record-form-panel {
  display: grid;
  gap: 12px;
}

.record-form-block {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / .36);
  border-radius: 8px;
  background: rgb(255 255 255 / .44);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.record-form-block > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  color: rgb(0 0 0 / .82);
  background: #a8ff00;
  font-weight: 900;
}

.record-form-block label {
  display: grid;
  gap: 10px;
}

.record-source-field {
  display: grid;
  gap: 12px;
}

.record-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.record-form-block strong {
  color: rgb(0 0 0 / .78);
  font-size: 18px;
}

.record-source-add {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.record-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.record-author-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding-left: 0;
  align-items: center;
  grid-column: 2;
  width: 100%;
  overflow-x: auto;
}

.record-author-chip,
.record-source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 64px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / .48);
  border-radius: 999px;
  color: rgb(0 0 0 / .68);
  background: rgb(255 255 255 / .48);
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
}

.record-author-chip.selected,
.record-author-chip:hover,
.record-source-chip.selected {
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
  box-shadow: 0 10px 22px rgb(55 70 25 / .16);
}

.record-form-block textarea,
.record-form-block input {
  width: 100%;
  border: 1px solid rgb(255 255 255 / .46);
  border-radius: 6px;
  background: rgb(255 255 255 / .58);
  color: rgb(0 0 0 / .78);
}

.record-form-block textarea {
  min-height: 190px;
  padding: 14px;
  resize: vertical;
}

.record-form-block input {
  min-height: 46px;
  padding: 0 14px;
}

.record-submit-button {
  justify-self: center;
  min-width: 132px;
  min-height: 42px;
  border-radius: 6px;
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
  font-weight: 900;
  box-shadow: 0 14px 30px rgb(55 70 25 / .22);
}

.record-table-panel,
.record-board-panel,
.record-album-panel {
  min-height: 220px;
}

.record-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .36);
  border-radius: 8px;
  background: rgb(255 255 255 / .46);
  backdrop-filter: blur(18px) saturate(1.12);
}

.record-table-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(88px, .7fr) minmax(110px, .9fr);
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  text-align: left;
  border-top: 1px solid rgb(255 255 255 / .35);
}

.record-table-row.head {
  border-top: 0;
  color: rgb(0 0 0 / .78);
  font-weight: 900;
  background: rgb(255 255 255 / .42);
}

.record-table-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-waterfall {
  column-width: 250px;
  column-gap: 12px;
}

.record-board-card {
  display: inline-grid;
  gap: 10px;
  width: 100%;
  min-height: 150px;
  margin: 0 0 12px;
  padding: 18px;
  break-inside: avoid;
  border: 1px solid rgb(255 255 255 / .34);
  border-radius: 8px;
  text-align: left;
  background: rgb(255 255 255 / .46);
  backdrop-filter: blur(18px) saturate(1.12);
}

.record-board-card:nth-child(3n + 1) {
  min-height: 206px;
}

.record-board-card strong,
.record-album-card strong {
  color: rgb(0 0 0 / .8);
  font-size: 18px;
  line-height: 1.25;
}

.record-board-card span,
.record-board-card p,
.record-album-card span {
  margin: 0;
  color: rgb(0 0 0 / .58);
  font-size: 13px;
  line-height: 1.42;
}

.record-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.record-album-card {
  display: grid;
  gap: 9px;
  padding: 10px 10px 14px;
  border: 1px solid rgb(255 255 255 / .34);
  border-radius: 8px;
  text-align: left;
  background: rgb(255 255 255 / .46);
  backdrop-filter: blur(18px) saturate(1.12);
}

.record-album-card > div {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: rgb(255 255 255 / .36);
}

.record-album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-source-backdrop {
  align-items: stretch;
  padding: calc(176px + env(safe-area-inset-top, 0px)) 18px calc(var(--bottom-nav-reserved) + 18px);
  background: rgb(0 0 0 / .18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.record-source-editor {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(860px, 100%);
  max-height: none;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .34);
  border-radius: 8px;
  background: rgb(255 255 255 / .28);
  color: rgb(0 0 0 / .82);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(1.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
}

.record-source-editor header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  width: min(620px, calc(100% - 28px));
  min-height: 54px;
  margin: 0 auto 14px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / .56);
  border-radius: 8px;
  background: rgb(255 255 255 / .82);
  box-shadow: 0 14px 35px rgb(38 31 25 / .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.record-source-editor header strong {
  justify-self: center;
  min-height: 32px;
  min-width: 112px;
  padding: 5px 18px 0;
  border-radius: 4px;
  text-align: center;
  background: #a8ff00;
  font-size: 15px;
  font-weight: 850;
}

.record-source-editor header button {
  justify-self: end;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
  font-size: 13px;
  font-weight: 850;
}

.record-source-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: 14px;
  padding: 0 22px 16px;
}

.record-source-search-row label {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / .42);
  border-radius: 8px;
  background: rgb(255 255 255 / .48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.record-source-search-row svg {
  width: 24px;
  height: 24px;
  color: #8f96a2;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.record-source-search-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgb(0 0 0 / .78);
  font-size: 20px;
}

.record-source-search-row > button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: rgb(0 0 0 / .86);
  border-radius: 6px;
  background: #a8ff00;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.record-source-edit-list {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 0 22px 22px;
}

.record-source-edit-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / .34);
  border-radius: 8px;
  background: rgb(255 255 255 / .38);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.record-source-check {
  width: 34px;
  height: 34px;
  border: 2px solid #8d949e;
  border-radius: 50%;
}

.record-source-check.selected {
  border-color: #a8ff00;
  background: #a8ff00;
  box-shadow: inset 0 0 0 7px rgb(255 255 255 / .82);
}

.record-source-pill {
  justify-self: start;
  min-height: 36px;
  padding: 3px 18px 0;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 850;
}

.record-source-pill.source-0 {
  background: #c9f4ff;
}

.record-source-pill.source-1 {
  background: #dfe8ff;
}

.record-source-pill.source-2 {
  background: #ffe8ca;
}

.record-source-pill.source-3 {
  background: #c9f7ef;
}

.record-source-more {
  color: #8d949e;
  font-size: 30px;
  letter-spacing: 2px;
}

.personal-record-detail-page {
  display: grid;
  gap: 12px;
  padding: 0 12px calc(var(--bottom-nav-reserved) + 24px);
}

.record-detail-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / .34);
  border-radius: 8px;
  background: rgb(255 255 255 / .42);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.record-detail-field {
  display: grid;
  gap: 8px;
}

.detail-author-chips,
.record-detail-source {
  grid-column: 1 / -1;
}

.record-detail-source {
  display: grid;
  gap: 12px;
}

.record-detail-field span,
.record-detail-section-head strong {
  color: rgb(0 0 0 / .78);
  font-size: 15px;
  font-weight: 900;
}

.record-detail-field input,
.record-detail-field select,
.record-detail-field textarea,
.record-comment-edit input,
.record-comment-compose input {
  width: 100%;
  border: 1px solid rgb(255 255 255 / .46);
  border-radius: 6px;
  background: rgb(255 255 255 / .56);
  color: rgb(0 0 0 / .76);
}

.record-detail-field input,
.record-detail-field select,
.record-comment-edit input,
.record-comment-compose input {
  min-height: 44px;
  padding: 0 12px;
}

.record-detail-field textarea {
  min-height: 170px;
  padding: 12px;
  resize: vertical;
}

.record-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.record-detail-section-head span,
.record-history-list span,
.record-comment-list span {
  color: rgb(0 0 0 / .52);
  font-size: 12px;
  font-weight: 750;
}

.record-history-list,
.record-comment-list {
  display: grid;
  gap: 8px;
}

.record-history-list article,
.record-comment-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 6px;
  background: rgb(255 255 255 / .34);
}

.record-comment-item header,
.record-comment-item footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.record-comment-item footer {
  justify-content: flex-start;
}

.record-comment-item footer button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  color: rgb(0 0 0 / .7);
  background: rgb(255 255 255 / .34);
  font-size: 12px;
  font-weight: 850;
}

.record-comment-replies {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-left: 16px;
  border-left: 2px solid rgb(168 255 0 / .55);
}

.record-comment-item.reply {
  background: rgb(255 255 255 / .24);
}

.record-comment-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.record-comment-edit button {
  border-radius: 6px;
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
  font-weight: 900;
}

.record-history-list p,
.record-comment-list p {
  margin: 0;
  color: rgb(0 0 0 / .58);
}

.record-comment-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
}

.record-comment-compose button {
  border-radius: 6px;
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
  font-weight: 900;
}

.record-created-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.record-created-card span {
  color: rgb(0 0 0 / .62);
  font-size: 14px;
  font-weight: 850;
}

.record-created-card strong {
  color: rgb(0 0 0 / .78);
  font-size: 16px;
}

.task-detail-page {
  padding-top: 0;
}

.task-title-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-detail-field.full,
.task-title-card .task-detail-field:first-child {
  grid-column: 1 / -1;
}

.task-title-card .task-detail-field:first-child input {
  min-height: 52px;
  font-size: 20px;
  font-weight: 900;
}

.task-ai-hint {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: rgb(0 0 0 / .52);
  font-size: 13px;
  font-weight: 760;
}

.task-attachment-upload {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px dashed rgb(0 0 0 / .22);
  border-radius: 7px;
  color: rgb(0 0 0 / .78);
  background: rgb(168 255 0 / .54);
  font-weight: 900;
  cursor: pointer;
}

.task-attachment-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.task-add-submit {
  min-height: 48px;
  border-radius: 7px;
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgb(35 41 30 / .12);
}

.task-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-chip-list span {
  max-width: 100%;
  padding: 7px 10px;
  overflow: hidden;
  border-radius: 6px;
  color: rgb(0 0 0 / .72);
  background: rgb(255 255 255 / .42);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.task-chip-list p {
  margin: 0;
  color: rgb(0 0 0 / .58);
}

@media (max-width: 560px) {
  .task-title-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.task-subtask-list {
  display: grid;
  gap: 8px;
}

.task-subtask-row {
  display: grid;
  grid-template-columns: 28px 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: 7px;
  background: rgb(255 255 255 / .5);
}

.task-subtask-row.completed {
  opacity: .58;
}

.task-subtask-row.completed .task-subtask-title-input {
  color: rgb(0 0 0 / .46);
  text-decoration: line-through;
}

.task-subtask-check {
  width: 24px;
  height: 24px;
  border: 3px solid #87909c;
  border-radius: 2px;
  background: rgb(255 255 255 / .68);
}

.task-subtask-check[aria-pressed="true"] {
  border-color: #7a8a2a;
  background: #a8ff00;
  box-shadow: inset 0 0 0 4px rgb(255 255 255 / .8);
}

.task-subtask-lock {
  display: grid;
  place-items: center;
  color: rgb(0 0 0 / .52);
}

.task-subtask-lock svg {
  width: 20px;
  height: 20px;
}

.task-subtask-title-input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  overflow: hidden;
  color: rgb(0 0 0 / .82);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 850;
}

.task-subtask-title-input:focus {
  border-radius: 6px;
  background: rgb(255 255 255 / .52);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1);
}

.task-subtask-view {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: 8px;
  color: rgb(0 0 0 / .66);
  background: rgb(255 255 255 / .58);
  font-weight: 900;
}

.task-subtask-empty {
  margin: 0;
  color: rgb(0 0 0 / .58);
}

.task-subtask-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 10px;
}

.task-subtask-add input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / .46);
  border-radius: 6px;
  background: rgb(255 255 255 / .56);
  color: rgb(0 0 0 / .76);
}

.task-subtask-add button {
  border-radius: 6px;
  color: rgb(0 0 0 / .86);
  background: #a8ff00;
  font-weight: 900;
}

.task-settings-page {
  display: grid;
  gap: 12px;
  padding: 0 12px calc(var(--bottom-nav-reserved) + 24px);
}

.task-settings-card textarea {
  min-height: 150px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / .46);
  border-radius: 6px;
  background: rgb(255 255 255 / .56);
  color: rgb(0 0 0 / .76);
  line-height: 1.55;
  resize: vertical;
}

@media (max-width: 560px) {
  :root {
    --edge-pad: 10px;
    --bottom-nav-height: 50px;
    --bottom-nav-gap: 8px;
  }

  .screen {
    --app-width: 100vw;
    --nav-width: calc(100vw - 20px);
  }

  .screen[data-screen][data-page="home"] .topbar {
    grid-template-columns: 58px minmax(0, 1fr) 64px;
    width: var(--nav-width);
    min-height: 46px;
    margin-top: calc(10px + env(safe-area-inset-top, 0px));
    padding: 7px 8px;
  }

  .screen[data-screen][data-page="home"] .title-button,
  .screen[data-screen="calendar"][data-page="home"] .topbar-title,
  .screen[data-screen="settings"][data-page="home"] .topbar-title,
  .screen[data-screen="users"][data-page="home"] .topbar-title {
    min-width: 0;
    min-height: 30px;
    padding: 0 10px;
    font-size: 13px;
  }

  .screen[data-screen][data-page="home"] .top-settings-button {
    font-size: 12px;
  }

  .screen[data-screen][data-page="home"] .toolbar-actions {
    gap: 4px;
  }

  .screen[data-screen][data-page="home"] .icon-button {
    width: 30px;
    height: 30px;
  }

  .task-quick-nav {
    top: calc(64px + env(safe-area-inset-top, 0px));
    width: var(--nav-width);
    gap: 4px;
    padding: 4px;
  }

  .task-quick-nav button {
    min-height: 31px;
    border-radius: 5px;
    font-size: 12px;
  }

  .screen[data-screen="closet"][data-page="home"] > .main-scroll {
    padding-top: calc(102px + env(safe-area-inset-top, 0px));
  }

  .memory-home {
    width: 100%;
  }

  .task-waterfall-board {
    grid-auto-columns: minmax(252px, calc(100vw - 42px));
    gap: 10px;
    padding: 0 10px 12px;
    scroll-padding-inline: 10px;
  }

  .task-column {
    min-height: calc(100dvh - var(--bottom-nav-reserved) - 142px);
    padding: 10px;
    gap: 10px;
  }

  .task-column-head {
    grid-template-columns: minmax(0, auto) auto 28px;
    gap: 8px;
  }

  .task-column-title span {
    padding: 4px 14px;
    font-size: 20px;
  }

  .task-column-head > strong {
    font-size: 20px;
  }

  .task-column-more {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .task-column-list {
    gap: 9px;
  }

  .task-board-card {
    min-height: 72px;
  }

  .task-column-add {
    min-height: 48px;
  }

  .tabbar {
    left: 10px;
    width: calc(100vw - 20px);
    min-height: var(--bottom-nav-height);
    padding: 5px;
  }

  .nav-item {
    height: 38px;
    font-size: 12px;
  }

  .tabbar[data-tab-count="5"] .nav-item {
    font-size: 12px;
  }

  .fab {
    right: 14px;
    bottom: calc(var(--bottom-nav-reserved) + 10px);
    width: 42px;
    height: 42px;
  }

  .task-masonry {
    column-width: 100%;
  }

  .personal-record-page {
    padding-top: 62px;
  }

  .record-view-tabs {
    top: calc(86px + env(safe-area-inset-top, 0px));
    width: var(--nav-width);
  }

  .record-table-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 10px 14px;
  }

  .record-table-row.head {
    display: none;
  }
}
