@charset "UTF-8";
/*
  KIT STOCK design refresh (2026-10-27).
  Visual layer only. It is loaded after every other stylesheet and never changes
  the structure the app depends on (grid, scroll-snap, inert, hidden).
  Everything that moves lives inside prefers-reduced-motion: no-preference.
  Individual transform properties (translate / scale / rotate) are used for
  animation so they compose with the transforms already set by older rules.
*/

@property --dr-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --dr-ink: #0d2536;
  --dr-navy: #0f2c3f;
  --dr-navy-2: #16394f;
  --dr-teal: #0aa59a;
  --dr-teal-deep: #087a8b;
  --dr-blue: #4f7cff;
  --dr-amber: #ffb12b;
  --dr-orange: #ff8a3d;
  --dr-coral: #ff5d6c;
  --dr-mint: #2fd6a6;
  --dr-brand: linear-gradient(135deg, #0aa59a 0%, #087a8b 48%, #4f7cff 100%);
  --dr-hot: linear-gradient(135deg, #ffb12b 0%, #ff7a45 55%, #ff5d6c 100%);
  --dr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dr-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

::selection {
  background: #0aa59a3d;
}

/* ------------------------------------------------------------------ */
/* Stage: a warm, lit backdrop behind the shelf                        */
/* ------------------------------------------------------------------ */
.wood-app {
  position: relative;
  isolation: isolate;
  background: #f8f4ec;
}
.wood-app::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 8%, #ffd88a66, transparent 70%),
    radial-gradient(38% 34% at 92% 18%, #7d8fff40, transparent 70%),
    radial-gradient(46% 40% at 78% 96%, #19c9b838, transparent 70%),
    radial-gradient(36% 30% at 6% 82%, #ff9b6a30, transparent 70%);
}
.wood-app .topbar {
  background: #fffdf8cc;
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid #ffffffb0;
  box-shadow:
    0 1px 0 #0f2c3f12,
    0 10px 30px -18px #0f2c3f55;
}
.wood-app .topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.16em;
  background: var(--dr-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wood-app .topbar-brand::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--dr-brand);
  box-shadow: 0 4px 10px -2px #087a8b99;
  -webkit-text-fill-color: initial;
}
.sync-status .dot {
  width: 8px;
  height: 8px;
  background: var(--dr-mint);
}
.sync-status .dot.offline {
  background: var(--dr-amber);
}

/* ------------------------------------------------------------------ */
/* Controls                                                            */
/* ------------------------------------------------------------------ */
button.primary,
.wood-surface .primary,
.wood-surface a.primary {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-color: transparent;
  background-color: #087a8b;
  background-image:
    linear-gradient(105deg, #fff0 35%, #ffffff66 50%, #fff0 65%),
    linear-gradient(120deg, #0aa59a, #087a8b 50%, #4f7cff);
  background-size: 250% 100%, 160% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
  box-shadow:
    0 10px 22px -8px #087a8bcc,
    inset 0 1px 0 #ffffff40;
}
button.primary:hover:not(:disabled),
.wood-surface .primary:hover:not(:disabled) {
  background-color: #087a8b;
  background-position: -30% 0, 100% 0;
}
button.danger {
  font-weight: 750;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--dr-teal);
  box-shadow: 0 0 0 4px #0aa59a22;
  outline: none;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d49225;
  outline-offset: 2px;
}
.wood-search input,
.wood-kind-select select,
.wood-toolbar select {
  border-radius: 14px;
  background: #fffffff0;
}
.wood-kind-select select {
  font-weight: 800;
  border-color: #ead9bd;
}
.wood-shelf-name {
  gap: 4px;
}
.wood-shelf-name h2 {
  padding-left: 14px;
  font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--dr-ink);
  background: linear-gradient(#ff8a3d, #ff5d6c) no-repeat left center / 5px 72%;
}
.wood-shelf-name .wood-shelf-icon {
  border-radius: 14px;
  transition: background-color 0.25s;
}
.wood-shelf-name .wood-shelf-icon:hover {
  background: #0aa59a1c;
}
.wood-search-controls,
.wood-shelf-actions {
  border-radius: 18px;
  border-color: #ffffffb0;
  background: #fffdf8ee;
  box-shadow: 0 14px 30px -20px #0f2c3f77;
}

/* ------------------------------------------------------------------ */
/* The shelf: lit display case                                         */
/* ------------------------------------------------------------------ */
.wood-grid {
  border-radius: 12px;
  border-color: #e4be84;
  box-shadow:
    inset 6px 8px 13px #4f351b45,
    0 26px 40px -22px #593f26b3,
    0 2px 0 #ffffff80;
}
.wood-grid::before,
.wood-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}
.wood-grid::before {
  background: radial-gradient(
    90% 62% at 50% -10%,
    #ffe9a655 0%,
    #ffe9a600 72%
  );
}
.wood-grid::after {
  background-image: linear-gradient(
    115deg,
    #fff0 38%,
    #ffffff4d 48%,
    #fff0 56%
  );
  background-size: 300% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
}

.wood-app .wood-card {
  position: relative;
  border-radius: 6px !important;
  border: 1px solid #ffffffb8 !important;
  background: linear-gradient(180deg, #fffefa, #fbf4e6) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 9px 14px -7px #503c2570,
    0 2px 4px #503c2530;
}
/* status ribbon along the top edge of each kit card */
.wood-app .wood-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dr-ribbon, linear-gradient(90deg, #cfd8dc, #eceff1));
}
.wood-app .wood-card:has(.badge.unbuilt) {
  --dr-ribbon: linear-gradient(90deg, #4f7cff, #22d3ee);
}
.wood-app .wood-card:has(.badge.building) {
  --dr-ribbon: repeating-linear-gradient(
    135deg,
    #ffb12b 0 8px,
    #ff7a45 8px 16px
  );
}
.wood-app .wood-card:has(.badge.completed) {
  --dr-ribbon: linear-gradient(90deg, #2fd6a6, #0aa59a, #4f7cff);
}
/* glare that follows the pointer (position written by static/motion.js) */
.wood-app .wood-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    240px circle at var(--dr-mx, 50%) var(--dr-my, 0%),
    #ffffff59,
    #fff0 62%
  );
  transition: opacity 0.3s;
}
.wood-photo {
  position: relative;
}
.wood-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px #0f2c3f14;
}
.wood-card-label strong {
  font-weight: 850;
  color: var(--dr-ink);
}
.wood-app .wood-card-label .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background-color: #e8eef0;
  color: #2f4452;
}
.wood-app .wood-card-label .badge::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.wood-app .badge.unbuilt {
  background-color: #e3ebff;
  color: #2748b5;
}
.wood-app .badge.building {
  background-color: #ffefcf;
  color: #9a5300;
}
.wood-app .badge.completed {
  background-color: #d3f7e8;
  color: #0a6b50;
}

.wood-app .wood-empty-slot button {
  border: 2px dashed #b9915c;
  border-radius: 12px;
  background: #fffaf0b3;
  color: #7a5a30;
  font-weight: 800;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.wood-app .wood-empty-slot button:hover:not(:disabled) {
  background: #ffe9bd;
  border-color: #e0932f;
  color: #8a4b00;
}
.wood-surface .wood-pager button {
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--dr-teal-deep);
  font-weight: 800;
  box-shadow: 0 6px 14px -6px #0f2c3f55;
}
.wood-surface .wood-pager button:hover:not(:disabled) {
  background-image: var(--dr-brand);
  color: #fff;
}
.wood-pager > span {
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ */
/* Bottom dock                                                         */
/* ------------------------------------------------------------------ */
.wood-app #main,
.wood-app .main-content {
  padding-bottom: 128px;
}
.wood-bottom-nav {
  left: 0;
  right: 0;
  width: min(calc(100% - 24px), 540px);
  margin-inline: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  gap: 4px;
  padding: 8px;
  border: 1px solid #ffffff1f;
  border-radius: 28px;
  background: linear-gradient(180deg, #17384ef2, #0d2536f7);
  box-shadow:
    0 22px 44px -14px #0a1e2dcc,
    0 6px 14px #0a1e2d55,
    inset 0 1px 0 #ffffff29;
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}
.wood-bottom-nav > :is(button, a) {
  position: relative;
  min-height: 58px;
  padding: 8px 2px 6px;
  gap: 2px;
  border-radius: 20px;
  color: #a9c0cc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    color 0.25s,
    background-color 0.25s;
}
.wood-bottom-nav > :is(button, a) > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 0;
  line-height: 1;
}
.wood-bottom-nav svg {
  width: 24px;
  height: 24px;
  display: block;
}
.wood-bottom-nav > :is(button, a):hover {
  color: #fff;
  background: #ffffff14;
}
.wood-bottom-nav > :is(button, a)[aria-current="page"] {
  color: #fff;
  background-image: linear-gradient(135deg, #0aa59a, #4f7cff);
  box-shadow:
    0 8px 18px -6px #4f7cffcc,
    inset 0 1px 0 #ffffff40;
}
/* the centre action is a raised, glowing button */
.wood-bottom-nav > :nth-child(3) {
  overflow: visible;
  color: #ffd9b8;
}
.wood-bottom-nav > :nth-child(3) > span {
  position: relative;
  width: 46px;
  height: 46px;
  margin-top: -24px;
  border-radius: 50%;
  color: #fff;
  background: var(--dr-hot);
  box-shadow:
    0 10px 20px -4px #ff7a45cc,
    0 0 0 5px #0f2c3f,
    inset 0 1px 0 #ffffff66;
}
.wood-bottom-nav > :nth-child(3) svg {
  stroke-width: 2.6;
}
.wood-bottom-nav > :nth-child(3)[aria-current="page"],
.wood-bottom-nav > :nth-child(3):hover {
  background: none;
  box-shadow: none;
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* Menu                                                                */
/* ------------------------------------------------------------------ */
.wood-menu > h1 {
  font-weight: 900;
  background: var(--dr-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wood-menu > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--dr-ink);
}
.wood-menu > h2::before {
  content: "";
  width: 22px;
  height: 5px;
  border-radius: 5px;
  background: var(--dr-hot);
}
.wood-menu-group {
  border: 0;
  border-radius: 24px;
  background: #ffffffe0;
  box-shadow:
    0 16px 36px -20px #0f2c3f77,
    0 0 0 1px #0f2c3f12;
}
.wood-menu-group > :is(a, button) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 6px;
  min-height: 68px;
  padding: 14px 44px 14px 70px;
  background: transparent;
  border-bottom-color: #0f2c3f10;
  font-weight: 800;
  transition:
    background-color 0.25s,
    padding-left 0.3s var(--dr-ease);
}
.wood-menu-group > :is(a, button):hover {
  background: #0aa59a12;
}
.wood-menu-group small {
  flex-basis: 100%;
}
.wood-menu-group > :is(a, button) > span {
  top: 50%;
  right: 20px;
  translate: 0 -50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #8a98a6;
  transition:
    right 0.3s var(--dr-ease),
    color 0.25s;
}
.wood-menu-group > :is(a, button):hover > span {
  right: 14px;
  color: var(--dr-teal-deep);
}
.wood-menu-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  translate: 0 -50%;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 13px;
  color: #fff;
  background: var(--dr-ico, var(--dr-brand));
  box-shadow: 0 8px 14px -6px #0f2c3f66;
}
.wood-menu-group > :nth-child(4n + 2) .wood-menu-ico {
  --dr-ico: var(--dr-hot);
}
.wood-menu-group > :nth-child(4n + 3) .wood-menu-ico {
  --dr-ico: linear-gradient(135deg, #8a6bff, #4f7cff);
}
.wood-menu-group > :nth-child(4n + 4) .wood-menu-ico {
  --dr-ico: linear-gradient(135deg, #2fd6a6, #0aa59a);
}
.wood-menu .wood-logout {
  border-radius: 18px;
  background: #fff;
  color: #b3283a;
  border: 1px solid #f3c9cf;
  font-weight: 800;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.wood-menu .wood-logout:hover {
  background: #fff0f1;
}

/* ------------------------------------------------------------------ */
/* Kit detail                                                          */
/* ------------------------------------------------------------------ */
.wood-kit-heading h2 {
  font-weight: 900;
  background: linear-gradient(120deg, var(--dr-ink), #1d6f86 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wood-kit-overview > .wood-detail-photo {
  border-radius: 18px;
  box-shadow:
    0 26px 40px -22px #67492099,
    0 0 0 1px #ffffffb0;
}
.wood-kit-information {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #ffffffe6;
  box-shadow:
    0 20px 40px -24px #0f2c3f88,
    0 0 0 1px #0f2c3f12;
}
.wood-kit-information::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dr-brand);
}
.wood-kit-fields dt {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--dr-teal-deep);
}
.wood-kit-fields dd {
  font-weight: 650;
}
.wood-kit-edit-actions button {
  border-radius: 999px;
  font-weight: 800;
  transition:
    background-color 0.25s,
    border-color 0.25s;
}
.wood-kit-edit-actions button:hover:not(:disabled) {
  background: #0aa59a14;
  border-color: var(--dr-teal);
}
.wood-section-title h2 {
  font-weight: 900;
}
.wood-progress-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #ffffffe6;
  box-shadow:
    0 16px 32px -22px #0f2c3f88,
    0 0 0 1px #0f2c3f12;
}
.wood-progress-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(#ffb12b, #ff5d6c);
}

/* ------------------------------------------------------------------ */
/* Dialogs and toast                                                   */
/* ------------------------------------------------------------------ */
dialog {
  border-radius: 28px;
  box-shadow:
    0 40px 100px -20px #0a1e2d99,
    0 0 0 1px #ffffff40;
}
dialog::backdrop {
  background: radial-gradient(circle at 50% 28%, #16394f99, #0a1e2dcc);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dialog-top {
  border-bottom-color: #0aa59a33;
}
.toast {
  bottom: calc(104px + env(safe-area-inset-bottom));
  z-index: 50;
  border: 1px solid #ffffff22;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2c3f, #16394f);
  font-weight: 700;
  box-shadow: 0 18px 40px -12px #0a1e2dcc;
}

/* ------------------------------------------------------------------ */
/* Welcome / sign-in                                                   */
/* ------------------------------------------------------------------ */
.auth-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 12% 8%, #19c9b866, transparent 65%),
    radial-gradient(50% 46% at 92% 14%, #5b7cff77, transparent 65%),
    radial-gradient(60% 50% at 78% 98%, #ff8a3d55, transparent 65%),
    linear-gradient(160deg, #0a1e2d, #0f2c3f 50%, #12384c);
}
.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.auth-shell::before {
  width: 46vmax;
  height: 46vmax;
  left: -14vmax;
  top: -18vmax;
  background: radial-gradient(circle at 30% 30%, #2fd6a655, transparent 62%);
}
.auth-shell::after {
  width: 52vmax;
  height: 52vmax;
  right: -18vmax;
  bottom: -22vmax;
  background: radial-gradient(circle at 60% 40%, #ff8a3d4d, transparent 62%);
}
.auth-card {
  position: relative;
  border-radius: 30px;
  background: #fffffffa;
  box-shadow:
    0 40px 120px -20px #000000aa,
    0 0 0 1px #ffffff55;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
/* a thin ring of light around the card */
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--dr-angle),
    #0aa59a,
    #4f7cff,
    #ff8a3d,
    #ff5d6c,
    #0aa59a
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.auth-card .brand {
  font-weight: 900;
  letter-spacing: 0.14em;
}
#welcome-intro h1,
.wood-kit-heading h2,
.community-heading h1 {
  text-wrap: balance;
  word-break: auto-phrase;
}
#welcome-intro h1 {
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  background: linear-gradient(
    90deg,
    var(--dr-ink),
    #0aa59a,
    #4f7cff,
    var(--dr-ink)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#welcome-intro .eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dr-teal-deep);
}
#welcome-intro > p {
  font-size: 14px;
}
.intro-preview {
  border: 0;
  border-radius: 26px;
  background: #fff;
  box-shadow:
    0 0 0 6px #0f2c3f,
    0 28px 44px -16px #0f2c3f99;
}
.intro-sample-photo {
  background: linear-gradient(135deg, #d8f3ef, #e5ebff 60%, #ffeed8);
}
.intro-sample-photo > span {
  display: inline-block;
  color: #0aa59a;
}
#intro-signup {
  min-height: 56px;
  border-radius: 16px;
  font-size: 1.05rem;
}
#intro-login {
  display: block;
  width: 100%;
  margin-top: 10px;
  border-radius: 16px;
  border-color: #0f2c3f26;
  font-weight: 800;
}

/* ------------------------------------------------------------------ */
/* Registration dialog: same palette as the rest of the app            */
/* ------------------------------------------------------------------ */
#editor[data-registration-mode] .registration-modes button {
  border-radius: 16px;
}
/* registration.css is injected by the React shell after this file, so these
   selectors carry the same #editor prefix to keep the cascade predictable. */
html #editor[data-registration-mode="auto"] [data-mode="auto"] {
  border-color: transparent;
  background-color: #ff7a45;
  background-image: var(--dr-hot);
  box-shadow: 0 12px 22px -10px #ff5d6ccc;
}
#editor .registration-steps li {
  border-radius: 14px;
  background: #e9f6f4;
  color: #0f3c4a;
}
#editor .registration-steps[data-stage="photo"] li:first-child,
#editor .registration-steps[data-stage="recognize"] li:nth-child(2),
#editor .registration-steps[data-stage="review"] li:last-child {
  background: #d4f1ec;
  box-shadow: inset 0 0 0 2px var(--dr-teal);
}
.registration-tabs {
  border-radius: 20px;
  background: #e6f1ef;
}
.registration-tabs button {
  border-radius: 15px;
  color: #35635d;
}
.registration-tabs button[aria-pressed="true"] {
  background-color: #087a8b;
  background-image: var(--dr-brand);
  box-shadow: 0 8px 16px -6px #087a8bcc;
}
.photo-panel {
  border-radius: 20px;
  background: #eef7f5;
}
.photo-image-button {
  border-radius: 20px;
  border-color: #a6d9d0;
  background: #e2f5f1;
}
.recognize-button {
  border-radius: 18px;
  background-image: var(--dr-brand);
  border-color: transparent;
}
.soft-button {
  border-radius: 12px;
  background: #e2f5f1;
  color: var(--dr-teal-deep);
  border-color: #bfe6df;
}

/* ------------------------------------------------------------------ */
/* Everyone's shelves                                                  */
/* ------------------------------------------------------------------ */
.community-page {
  background: #f8f4ec;
}
.community-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fffdf8cc;
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid #ffffffb0;
  box-shadow:
    0 1px 0 #0f2c3f12,
    0 10px 30px -18px #0f2c3f55;
}
.community-topbar a:first-child {
  font-weight: 900;
  letter-spacing: 0.16em;
  background: var(--dr-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.community-eyebrow {
  font-weight: 800;
  color: var(--dr-teal-deep);
}
.community-heading h1 {
  font-weight: 900;
  background: linear-gradient(120deg, var(--dr-ink), #1d6f86 70%, #4f7cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.community-kind-filter :is(button, a) {
  font-weight: 800;
  transition:
    background-color 0.25s,
    color 0.25s,
    box-shadow 0.3s;
}
.community-kind-filter :is(button, a):hover {
  border-color: var(--dr-teal);
  color: var(--dr-teal-deep);
}
.community-kind-filter button[aria-pressed="true"],
.community-kind-filter a[aria-current="true"] {
  border-color: transparent;
  color: #fff;
  background-image: var(--dr-brand);
  box-shadow: 0 10px 20px -8px #087a8bcc;
}
.community-search-row input {
  border-radius: 14px;
}
.community-search-row button {
  border-radius: 14px;
  font-weight: 800;
  background-image: var(--dr-brand);
}
.community-card {
  position: relative;
  border: 0;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow:
    0 18px 38px -22px #0f2c3f99,
    0 0 0 1px #0f2c3f14;
  transition:
    box-shadow 0.35s var(--dr-ease),
    translate 0.35s var(--dr-spring);
}
.community-card:hover {
  box-shadow:
    0 32px 52px -26px #0f2c3fb3,
    0 0 0 1px #0aa59a66;
}
.community-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--dr-mx, 50%) var(--dr-my, 0%),
    #ffffff59,
    #fff0 62%
  );
  transition: opacity 0.3s;
}
.community-kind {
  font-weight: 800;
  color: #fff;
  background-image: var(--dr-brand);
}
.community-card-caption h2 {
  font-weight: 900;
}
.community-empty {
  border-radius: 24px;
  border-color: #0aa59a66;
  background: #fffdf8e6;
}
.community-empty h2::before {
  content: "◇";
  display: block;
  margin-bottom: 8px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--dr-teal);
}
.community-pagination :is(button, a) {
  border-radius: 999px;
  font-weight: 800;
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  /* ambient light drifts slowly behind the page */
  .wood-app::before {
    animation: dr-drift 28s ease-in-out infinite alternate;
  }
  .sync-status .dot:not(.offline) {
    animation: dr-pulse 2.4s ease-out infinite;
  }
  button:not(:disabled):active {
    scale: 0.97;
  }
  button.primary,
  .wood-surface .primary {
    transition:
      background-position 0.8s var(--dr-ease),
      box-shadow 0.3s,
      translate 0.3s var(--dr-spring),
      scale 0.2s;
  }
  button.primary:hover:not(:disabled),
  .wood-surface .primary:hover:not(:disabled) {
    translate: 0 -2px;
    box-shadow:
      0 16px 28px -8px #087a8bd9,
      inset 0 1px 0 #ffffff40;
  }

  /* page content settles in */
  .wood-surface {
    animation: dr-surface-in 0.6s var(--dr-ease) backwards;
  }

  /* cards rise onto the shelf one after another */
  .wood-app .wood-page:not([inert]) .wood-card {
    animation: dr-card-in 0.7s var(--dr-spring) backwards;
  }
  .wood-app .wood-page .wood-slot:nth-child(2) .wood-card { animation-delay: 70ms; }
  .wood-app .wood-page .wood-slot:nth-child(3) .wood-card { animation-delay: 140ms; }
  .wood-app .wood-page .wood-slot:nth-child(4) .wood-card { animation-delay: 210ms; }
  .wood-app .wood-page .wood-slot:nth-child(5) .wood-card { animation-delay: 280ms; }
  .wood-app .wood-page .wood-slot:nth-child(6) .wood-card { animation-delay: 350ms; }
  .wood-app .wood-card {
    transition:
      transform 0.5s var(--dr-spring),
      box-shadow 0.4s var(--dr-ease);
  }
  .wood-app .wood-card:focus-visible {
    transform: perspective(800px) translateY(-5px);
  }
  @media (hover: hover) and (pointer: fine) {
    .wood-app .wood-page .wood-card:hover {
      z-index: 4;
      transition:
        transform 0.12s ease-out,
        box-shadow 0.4s var(--dr-ease);
      transform: perspective(800px) translateY(-7px)
        rotateX(var(--dr-rx, 0deg)) rotateY(var(--dr-ry, 0deg)) scale(1.03);
      box-shadow:
        inset 0 1px 0 #fff,
        0 28px 30px -14px #503c25b3,
        0 8px 12px #503c2544;
    }
    .wood-app .wood-card:hover::after {
      opacity: 1;
    }
    .community-card:hover {
      translate: 0 -6px;
    }
    .community-card:hover::after {
      opacity: 1;
    }
  }
  .wood-app .wood-card:not(:disabled):active {
    transform: perspective(800px) scale(0.97);
  }

  /* building kits get a moving barber-pole ribbon, finished kits a foil shine */
  .wood-app .wood-card:has(.badge.building)::before {
    background-size: 22.6px 100%;
    animation: dr-stripes 1.2s linear infinite;
  }
  .wood-app .wood-card:has(.badge.completed)::before {
    background-size: 200% 100%;
    animation: dr-flow 3.5s linear infinite;
  }
  .wood-app .badge.building::before {
    animation: dr-blink 1.4s ease-in-out infinite;
  }
  .wood-app .wood-card-label .badge.completed {
    background-image: linear-gradient(
      110deg,
      #fff0 30%,
      #ffffffb3 50%,
      #fff0 70%
    );
    background-size: 250% 100%;
    background-repeat: no-repeat;
    animation: dr-shine 3.6s ease-in-out infinite;
  }

  /* showcase lighting */
  .wood-grid::before {
    animation: dr-lamp 6s ease-in-out infinite alternate;
  }
  .wood-page:not([inert]) .wood-grid::after {
    animation: dr-glass 9s ease-in-out 1.2s infinite;
  }
  .wood-app .wood-empty-slot button:not(:disabled) {
    animation: dr-breathe 3.2s ease-in-out infinite;
  }
  .wood-app .wood-empty-slot button:hover:not(:disabled) {
    animation: none;
    scale: 1.04;
  }

  /* dock */
  .wood-bottom-nav {
    animation: dr-dock-in 0.8s var(--dr-spring) 0.1s backwards;
  }
  .wood-bottom-nav svg {
    transition: transform 0.4s var(--dr-spring);
  }
  .wood-bottom-nav > :is(button, a):hover svg {
    transform: translateY(-2px) scale(1.12);
  }
  .wood-bottom-nav > :is(button, a)[aria-current="page"] svg {
    animation: dr-icon-pop 0.6s var(--dr-spring);
  }
  .wood-bottom-nav > :nth-child(3) > span::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #ff8a3d;
    animation: dr-ping 2.6s ease-out infinite;
  }
  .wood-bottom-nav > :nth-child(3):hover svg {
    transform: rotate(90deg) scale(1.1);
  }

  /* menu */
  .wood-menu-group > :is(a, button) {
    animation: dr-row-in 0.6s var(--dr-ease) backwards;
  }
  .wood-menu-group > :nth-child(2) { animation-delay: 60ms; }
  .wood-menu-group > :nth-child(3) { animation-delay: 120ms; }
  .wood-menu-group > :nth-child(4) { animation-delay: 180ms; }
  .wood-menu-group > :nth-child(5) { animation-delay: 240ms; }
  .wood-menu-group > :is(a, button):hover {
    padding-left: 76px;
  }
  .wood-menu-ico {
    transition: transform 0.4s var(--dr-spring);
  }
  .wood-menu-group > :is(a, button):hover .wood-menu-ico {
    transform: scale(1.12) rotate(-6deg);
  }

  /* detail */
  .wood-kit-overview > .wood-detail-photo {
    animation: dr-photo-in 0.8s var(--dr-spring) backwards;
  }
  .wood-kit-information {
    animation: dr-surface-in 0.7s var(--dr-ease) 0.12s backwards;
  }
  .wood-progress-card {
    transition:
      translate 0.35s var(--dr-spring),
      box-shadow 0.35s;
  }
  .wood-progress-card:hover {
    translate: 0 -3px;
    box-shadow:
      0 24px 40px -22px #0f2c3fa6,
      0 0 0 1px #0f2c3f12;
  }

  .photo-image-button {
    transition:
      translate 0.3s var(--dr-spring),
      box-shadow 0.3s;
  }
  .photo-image-button:hover:not(:disabled) {
    translate: 0 -3px;
    box-shadow: 0 14px 22px -12px #087a8b99;
  }

  /* dialogs and toast */
  dialog[open] {
    animation: dr-dialog-in 0.5s var(--dr-spring);
  }
  dialog[open]::backdrop {
    animation: dr-fade 0.35s ease-out;
  }
  .toast:not([hidden]) {
    animation: dr-toast-in 0.55s var(--dr-spring);
  }

  /* welcome */
  .auth-shell::before {
    animation: dr-float-a 18s ease-in-out infinite alternate;
  }
  .auth-shell::after {
    animation: dr-float-b 22s ease-in-out infinite alternate;
  }
  .auth-card {
    animation: dr-card-rise 0.9s var(--dr-ease) backwards;
  }
  .auth-card::before {
    animation: dr-spin-angle 7s linear infinite;
  }
  .auth-card .brand img {
    animation: dr-logo-in 0.9s var(--dr-spring) 0.2s backwards;
  }
  #welcome-intro h1 {
    animation: dr-flow 9s linear infinite;
  }
  #welcome-intro > * {
    animation: dr-row-in 0.7s var(--dr-ease) backwards;
  }
  #welcome-intro > :nth-child(2) { animation-delay: 80ms; }
  #welcome-intro > :nth-child(3) { animation-delay: 160ms; }
  #welcome-intro > :nth-child(4) { animation-delay: 240ms; }
  #welcome-intro > :nth-child(5) { animation-delay: 320ms; }
  #welcome-intro > :nth-child(6) { animation-delay: 400ms; }
  #welcome-intro > :nth-child(7) { animation-delay: 480ms; }
  .intro-preview {
    animation:
      dr-row-in 0.8s var(--dr-ease) 0.2s backwards,
      dr-float 6s ease-in-out 1s infinite;
  }
  .intro-sample-photo > span {
    animation: dr-spin-slow 16s linear infinite;
  }
  #intro-signup {
    animation: dr-glow 2.8s ease-in-out infinite;
  }

  /* everyone's shelves */
  .community-grid > .community-card {
    animation: dr-card-in 0.7s var(--dr-spring) backwards;
  }
  .community-grid > :nth-child(2) { animation-delay: 70ms; }
  .community-grid > :nth-child(3) { animation-delay: 140ms; }
  .community-grid > :nth-child(4) { animation-delay: 210ms; }
  .community-grid > :nth-child(5) { animation-delay: 280ms; }
  .community-grid > :nth-child(6) { animation-delay: 350ms; }
  .community-grid > :nth-child(n + 7) { animation-delay: 420ms; }
  .community-heading {
    animation: dr-surface-in 0.7s var(--dr-ease) backwards;
  }
  .community-empty h2::before {
    animation: dr-float 4s ease-in-out infinite;
  }

  /* below-the-fold blocks fade up as they scroll into view */
  @supports (animation-timeline: view()) {
    .wood-menu-group,
    .wood-progress-card,
    .community-footer {
      animation: dr-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes dr-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
@keyframes dr-pulse {
  0% { box-shadow: 0 0 0 0 #2fd6a68c; }
  70%, 100% { box-shadow: 0 0 0 9px #2fd6a600; }
}
@keyframes dr-surface-in {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes dr-card-in {
  from { opacity: 0; translate: 0 28px; scale: 0.9; rotate: -1.5deg; filter: blur(3px); }
  to { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; filter: blur(0); }
}
@keyframes dr-row-in {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes dr-photo-in {
  from { opacity: 0; scale: 0.94; rotate: -1deg; }
  to { opacity: 1; scale: 1; rotate: 0deg; }
}
@keyframes dr-reveal {
  from { opacity: 0; translate: 0 36px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes dr-stripes {
  to { background-position: 22.6px 0; }
}
@keyframes dr-flow {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}
@keyframes dr-shine {
  0%, 55% { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}
@keyframes dr-blink {
  0%, 100% { opacity: 1; scale: 1; }
  50% { opacity: 0.35; scale: 0.7; }
}
@keyframes dr-lamp {
  from { opacity: 0.65; }
  to { opacity: 1; }
}
@keyframes dr-glass {
  0%, 50% { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}
@keyframes dr-breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.035; }
}
@keyframes dr-dock-in {
  from { translate: 0 140%; opacity: 0; }
  to { translate: 0 0; opacity: 1; }
}
@keyframes dr-icon-pop {
  0% { transform: scale(0.6) rotate(-14deg); }
  60% { transform: scale(1.18) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes dr-ping {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes dr-dialog-in {
  from { opacity: 0; translate: 0 40px; scale: 0.94; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes dr-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dr-toast-in {
  from { opacity: 0; translate: 0 24px; scale: 0.9; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes dr-float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); }
}
@keyframes dr-float-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(-8vmax, -5vmax, 0) scale(0.95); }
}
@keyframes dr-card-rise {
  from { opacity: 0; translate: 0 40px; scale: 0.96; filter: blur(8px); }
  to { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }
}
@keyframes dr-spin-angle {
  to { --dr-angle: 360deg; }
}
@keyframes dr-spin-slow {
  to { rotate: 360deg; }
}
@keyframes dr-logo-in {
  from { opacity: 0; scale: 0.4; rotate: -90deg; }
  to { opacity: 1; scale: 1; rotate: 0deg; }
}
@keyframes dr-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes dr-glow {
  0%, 100% {
    box-shadow: 0 10px 22px -8px #087a8bcc, 0 0 0 0 #0aa59a55, inset 0 1px 0 #ffffff40;
  }
  50% {
    box-shadow: 0 14px 28px -8px #087a8bf2, 0 0 0 10px #0aa59a00, inset 0 1px 0 #ffffff40;
  }
}

/* Gradient text must stay readable when the OS forces its own colours. */
@media (forced-colors: active) {
  .wood-app .topbar-brand,
  .wood-menu > h1,
  .wood-kit-heading h2,
  #welcome-intro h1,
  .community-topbar a:first-child,
  .community-heading h1 {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

@media (max-width: 700px) {
  .wood-app #main,
  .wood-app .main-content {
    padding-bottom: 124px;
  }
  .wood-grid {
    border-radius: 10px;
  }
  .wood-menu-group > :is(a, button) {
    min-height: 64px;
    padding-left: 66px;
  }
}
