/* KIT STOCK: a light oak display case for real, privately owned records. */
#app.layout {
  grid-template-columns: minmax(0, 1fr);
}
.profile-owner .profile-layout {
  display: block;
  padding-bottom: 110px;
}
.wood-app {
  --wood-ink: #102b43;
  --wood-teal: #087a8b;
  --wood-paper: #faf9f6;
  color: var(--wood-ink);
  background: var(--wood-paper);
}
.wood-app #main {
  padding-bottom: 110px;
}
.wood-app .topbar-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wood-app .topbar-brand {
  display: block;
  color: var(--wood-ink);
  font-size: 15px;
  font-weight: 800;
}
.wood-app .main-content {
  max-width: 1040px;
  margin: auto;
}
.wood-surface {
  max-width: 900px;
  margin: 0 auto;
  color: var(--wood-ink);
}
.wood-create-intro {
  color: #526572;
  line-height: 1.8;
}
.wood-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}
.wood-create-fields {
  padding: 24px;
  background: #fff;
  border: 1px solid #dddcd5;
  border-radius: 16px;
}
.wood-create-fields > label,
.wood-create-kinds legend {
  font-weight: 700;
}
.wood-create-required {
  color: #875431;
  font-size: 0.75rem;
  margin-left: 8px;
}
.wood-create-fields > input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #9ba9af;
  border-radius: 8px;
}
.wood-create-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 28px 0 12px;
  border: 0;
}
.wood-create-kinds legend {
  margin-bottom: 12px;
}
.wood-create-kinds label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid #c9d0d6;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.wood-create-kinds label:has(input:checked) {
  background: #e9f4f3;
  border-color: #087a8b;
  color: #086777;
}
.wood-create-kinds input[type="radio"] {
  min-height: 0;
  width: auto;
  margin: 0;
  accent-color: #087a8b;
}
.wood-create-eyebrow {
  font-size: 0.8rem;
  color: #526572;
}
.wood-create-preview h2 {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.wood-create-preview > p {
  color: #526572;
}
.wood-create-preview .wood-grid {
  margin-top: 16px;
}
.wood-create-placeholder {
  display: grid;
  place-items: center;
  height: 64px;
  color: #8b6a43;
  font-size: 1.3rem;
}
.wood-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 28px 0;
  padding-top: 24px;
  border-top: 1px solid #dddcd5;
}
@media (max-width: 700px) {
  .wood-create-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .wood-create-fields { padding: 20px 16px; }
  .wood-create-actions button { flex: 1; }
}
.wood-surface h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.25;
  margin: 14px 0 22px;
  letter-spacing: 0.02em;
}
.wood-surface button,
.wood-surface select,
.wood-surface input,
.wood-surface a {
  min-height: 44px;
}
.wood-surface button,
.wood-surface input,
.wood-surface select,
.wood-surface textarea {
  font: inherit;
}
.wood-surface button {
  color: var(--wood-ink);
  border: 1px solid #c9d0d6;
  border-radius: 12px;
  background: #fff;
  padding: 10px 15px;
  cursor: pointer;
}
.wood-surface button:disabled {
  opacity: 0.48;
  cursor: default;
}
.wood-surface .primary {
  background: var(--wood-teal);
  color: #fff;
  border-color: var(--wood-teal);
}
.wood-surface :is(button, a, input, select, textarea):focus-visible,
.wood-bottom-nav button:focus-visible {
  outline: 3px solid #d49225;
  outline-offset: 3px;
}
.wood-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd0d7;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
}
.wood-shelf-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wood-shelf-name h2 {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(1rem, 3vw, 1.3rem);
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.wood-shelf-name button {
  flex-shrink: 0;
  border: 0;
  padding: 5px 10px;
  font-size: 0.9rem;
  background: transparent;
}
.wood-kind-select {
  flex-shrink: 0;
}
.wood-kind-select select {
  width: auto;
  margin: 0;
  padding: 8px;
  font-size: 0.85rem;
  border: 1px solid #ded6c8;
  background: #fffdf8;
}
.wood-shelf-name .wood-shelf-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 0;
  font-size: 1.5rem;
}
.wood-condition-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wood-teal);
}
.wood-search-controls,
.wood-shelf-actions {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ded6c8;
  border-radius: 12px;
  background: #fffdf8;
}
.wood-shelf-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.wood-shelf-view [hidden] {
  display: none !important;
}
.wood-shelf-view button[aria-expanded="true"] {
  background: #e9f4f3;
  border-color: var(--wood-teal);
  color: var(--wood-teal);
}
.wood-rename {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.wood-rename label {
  flex: 1;
  min-width: 180px;
}
.wood-rename input {
  display: block;
  width: 100%;
}
.wood-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.wood-toolbar select {
  width: 100%;
  border: 1px solid #cbd0d7;
  border-radius: 10px;
  background: white;
  padding: 8px;
}
.wood-toolbar > span {
  align-self: center;
}
.wood-notice:empty,
.wood-surface .error:empty {
  display: none;
}
.wood-notice {
  color: #157060;
}
.wood-surface .error {
  color: #a52727;
  white-space: pre-wrap;
}
.wood-search-controls .hint {
  margin-bottom: 8px;
}
.wood-pages {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #bda480 #eee;
  touch-action: pan-x pan-y;
  align-items: start;
}
.wood-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 0 0 8px;
}
.wood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  padding: 20px 24px 0;
  border: 14px solid #dcb786;
  border-top-width: 18px;
  border-bottom-width: 20px;
  border-radius: 3px;
  background:
    linear-gradient(
      90deg,
      #9d795333,
      #f3e8d633 8%,
      #decdb380 48%,
      #f4e8d2 94%,
      #95734766
    ),
    repeating-linear-gradient(
      1deg,
      #dfccaa 0,
      #e5d4b6 3px,
      #ddcaaa 4px,
      #dfccaa 9px
    );
  box-shadow:
    inset 6px 8px 13px #4f351b45,
    0 5px 8px #593f262e;
  position: relative;
}
.wood-slot {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 0 4px 25px;
  margin: 0 0 16px;
  isolation: isolate;
}
.wood-slot:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -36px;
  right: -36px;
  bottom: 0;
  height: 23px;
  border-top: 3px solid #f8dfb7;
  border-bottom: 3px solid #b58b5b;
  background: repeating-linear-gradient(
    1deg,
    #d2ac78 0,
    #e2bd8a 3px,
    #dcba88 4px,
    #e6c593 6px
  );
  box-shadow: 0 8px 7px #61411e38;
}
.wood-card {
  display: block !important;
  padding: 7px !important;
  width: 100%;
  border-radius: 2px !important;
  border: 1px solid #e4e0d9 !important;
  background: #fffcf5 !important;
  box-shadow: 0 3px 6px #503c2530;
  text-align: left;
  overflow: hidden;
}
.wood-card:focus-visible {
  outline-offset: 1px;
}
/* Animate only the visible shelf; syncing the same cards does not replay it. */
@media (prefers-reduced-motion: no-preference) {
  .wood-card {
    transition: transform 160ms ease-out;
  }
  .wood-page:not([inert]) .wood-card {
    animation: wood-card-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .wood-page .wood-slot:nth-child(2) .wood-card { animation-delay: 35ms; }
  .wood-page .wood-slot:nth-child(3) .wood-card { animation-delay: 70ms; }
  .wood-page .wood-slot:nth-child(4) .wood-card { animation-delay: 105ms; }
  .wood-page .wood-slot:nth-child(5) .wood-card { animation-delay: 140ms; }
  .wood-page .wood-slot:nth-child(6) .wood-card { animation-delay: 175ms; }
  .wood-page .wood-photo-loadframe:not(.is-loading) > img {
    animation: wood-photo-reveal 240ms ease-out;
  }
  .wood-card .wood-photo img {
    transition: transform 240ms ease-out;
  }
  .wood-card:focus-visible {
    transform: translateY(-3px);
  }
  @media (hover: hover) and (pointer: fine) {
    .wood-card:hover {
      transform: translateY(-3px);
    }
    .wood-card:hover .wood-photo img {
      transform: scale(1.025);
    }
  }
  .wood-card:not(:disabled):active {
    transform: scale(0.98);
  }
}
@keyframes wood-card-enter {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes wood-photo-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wood-photo {
  aspect-ratio: 1.45;
  overflow: hidden;
  background: #f0ede7;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.wood-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wood-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  padding: 12px;
  color: #647381;
  background: linear-gradient(140deg, #edeae4, #faf9f6);
  font-size: 0.8rem;
  text-align: center;
}
.wood-photo-placeholder > span {
  font-size: 2.4rem;
  color: #a1afa9;
  line-height: 1.2;
}
.wood-card-label {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
  padding: 9px 3px 2px;
  min-width: 0;
}
.wood-card-label strong {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wood-card-label .badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 3px 8px;
  background: #d8eae5;
  color: #173b43;
  border-radius: 999px;
}
.wood-card-label .building {
  background: #f9e6ca;
}
.wood-card-label .unbuilt {
  background: #dfe6f3;
}
.wood-empty-slot {
  min-height: 180px;
  align-items: center;
  justify-content: center;
}
.wood-empty-slot button {
  border: 1px dashed #a68b65;
  background: #fffcf555;
  color: #715c40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.wood-empty-slot button > span {
  font-size: 0.85rem;
}
.wood-reorder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #fff;
  padding: 5px;
}
.wood-reorder button {
  font-size: 0.75rem;
  padding: 5px;
  border-radius: 5px;
}
.wood-reorder label {
  grid-column: 1/-1;
  min-width: 0;
}
.wood-reorder select {
  width: 100%;
  font-size: 0.8rem;
}
.wood-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
}
.wood-pager > span {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}
.wood-pager button {
  color: var(--wood-teal);
  border-color: var(--wood-teal);
}
.wood-pager-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #62727f;
  margin: 8px 0 20px;
}
.wood-bottom-nav {
  position: fixed;
  z-index: 30;
  left: 0;
  bottom: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fffffff5;
  border-top: 1px solid #d6d7d4;
  box-shadow: 0 -3px 15px #172b3a08;
  padding: 6px max(10px, calc((100vw - 850px) / 2))
    max(6px, env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}
.wood-bottom-nav :is(button, a) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: none;
  border: 0;
  color: #223950;
  min-height: 64px;
  min-width: 0;
  padding: 8px 3px;
  white-space: nowrap;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  justify-content: center;
}
.wood-bottom-nav :is(button, a) > span {
  font-size: 1.9rem;
  line-height: 1.1;
  margin-bottom: 5px;
}
.wood-bottom-nav :is(button, a)[aria-current="page"] {
  color: var(--wood-teal);
}
.wood-menu > h2 {
  color: var(--wood-teal);
  font-size: 1.3rem;
  margin-top: 28px;
}
.wood-menu-group {
  border: 1px solid #cbd0d7;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.wood-menu-group > a,
.wood-menu-group > button {
  display: block;
  position: relative;
  width: 100%;
  padding: 17px 44px 17px 20px;
  text-align: left;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e1e3e4;
  text-decoration: none;
  color: var(--wood-ink);
  font-size: 1.05rem;
  font-weight: 650;
  background: white;
}
.wood-menu-group > :last-child {
  border-bottom: 0;
}
.wood-menu-group small {
  display: block;
  color: #647487;
  font-size: 0.85rem;
  font-weight: 400;
}
.wood-menu-group span {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #7b8898;
}
.wood-menu-group a:hover,
.wood-menu-group button:hover {
  background: #f4f8f7;
}
.wood-menu .wood-logout {
  width: 100%;
  margin: 28px 0;
  background: #eeede9;
  color: #5f6e7d;
  border: 0;
}
.wood-menu > p {
  color: #647487;
}
.wood-detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.wood-detail-top h1 {
  font-size: 1.4rem;
  margin: 16px 0;
}
.wood-detail-top button {
  border: 0;
  background: none;
  color: var(--wood-teal);
  padding: 8px;
}
.wood-detail-photo {
  position: relative;
  margin: 12px 0 25px;
  padding: 7px 7px 20px;
  background: #fff;
  border-bottom: 18px solid #ddba87;
  box-shadow: 0 7px 10px #67492022;
}
.wood-detail-photo > img,
.wood-detail-photo > .wood-photo-loadframe > img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f1eee8;
}
.wood-photo-loadframe { display: block; position: relative; width: 100%; min-width: 0; }
.wood-photo > .wood-photo-loadframe { height: 100%; }
.wood-detail-photo > .wood-photo-loadframe.is-loading { min-height: 240px; }
.wood-photo-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; color: #435562; background: #efeee9; font-size: .8rem; text-align: center; }
.wood-detail-photo .wood-photo-placeholder {
  min-height: 240px;
}
.wood-detail-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 29px;
  padding: 5px 12px;
  background: #263432ae;
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
}
.wood-detail-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.wood-detail-name h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  overflow-wrap: anywhere;
  margin: 10px 0;
}
.wood-share-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #637585;
  font-size: 0.85rem;
}
.wood-reference-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.wood-reference-buttons button {
  color: var(--wood-teal);
  border-color: var(--wood-teal);
  font-weight: 700;
}
.wood-reference-list,
.wood-share-settings {
  padding: 18px;
  border: 1px solid #d6dedb;
  border-radius: 12px;
  background: white;
  margin-bottom: 22px;
}
.wood-share-settings > button {
  margin: 6px;
}
.wood-share-settings fieldset > label {
  display: block;
  padding: 8px;
}
.wood-share-settings input[type="checkbox"] {
  min-height: 0;
}
.wood-share-settings input[readonly] {
  width: 100%;
}
.wood-share-settings h2 {
  font-size: 1.25rem;
}
.wood-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dadcd9;
  padding-top: 18px;
}
.wood-section-title h2 {
  font-size: 1.7rem;
  margin: 8px 0 15px;
}
.wood-section-title > span {
  font-size: 0.9rem;
  color: #71818e;
}
.wood-progress-card {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 17px;
  border: 1px solid #d2d7d9;
  border-radius: 14px;
  background: #fff;
  margin-top: 15px;
}
.wood-progress-card time {
  color: #74818e;
  font-size: 0.85rem;
}
.wood-progress-card:has(.wood-log-photos:empty) {
  grid-template-columns: 1fr;
}
.wood-progress-card .wood-log-photos:empty {
  display: none;
}
.wood-preserve-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wood-log-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wood-log-photos > img,
.wood-log-photos > div {
  width: 100%;
  object-fit: cover;
  max-height: 200px;
  border-radius: 5px;
}
.wood-log-photos > div > img {
  max-width: 100%;
  max-height: 200px;
}
.wood-progress-card .wood-log-photos > img:not(:first-child) {
  width: calc(50% - 4px);
}
.wood-small-action {
  font-size: 0.8rem !important;
  color: #6b747b !important;
}
.wood-progress-editor {
  padding: 20px;
  border: 1px solid #c9dbd7;
  border-radius: 14px;
  background: #fff;
}
.wood-progress-editor > label {
  display: block;
  margin: 15px 0;
}
.wood-progress-editor textarea {
  width: 100%;
  display: block;
  padding: 10px;
}
.wood-progress-editor fieldset > label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wood-progress-editor input[type="checkbox"] {
  min-height: 0;
}
.wood-progress-editor details {
  margin: 15px 0;
}
.wood-progress-editor .wood-log-photos > div {
  width: calc(50% - 4px);
  max-height: none;
}
.wood-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.wood-empty {
  padding: 30px 15px;
  text-align: center;
  color: #667784;
  line-height: 1.8;
}
.wood-legacy-detail {
  margin: 30px 0;
  border-top: 1px solid #d0d7d8;
  padding-top: 20px;
}
.wood-legacy-detail summary {
  cursor: pointer;
  padding: 12px 0;
}
.wood-legacy-detail #kit-detail-title {
  font-size: 1.2rem;
}
/* Kit details: keep the name, photo and saved information together. */
.wood-kit-detail .wood-detail-top {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ded6c8;
}
.wood-kit-detail :is(button, input, select, textarea, summary, a) {
  scroll-margin-block: 100px 120px;
}
.wood-kit-detail #kit-detail-title {
  margin: 0;
  font-size: 1rem;
  color: #526572;
}
.wood-kit-heading {
  margin-bottom: 24px;
}
.wood-kit-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.wood-kit-status.badges {
  margin: 0;
}
.wood-kit-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.wood-kit-overview > .wood-detail-photo {
  margin: 0;
  padding: 8px;
  border-bottom-width: 10px;
  border-radius: 12px;
  overflow: hidden;
}
.wood-kit-overview .wood-detail-photo > .wood-photo-loadframe {
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: #f1eee8;
}
.wood-kit-overview .wood-detail-photo > .wood-photo-loadframe > img {
  height: 100%;
  max-height: none;
}
.wood-kit-overview .wood-detail-photo .wood-photo-placeholder {
  min-height: 0;
  aspect-ratio: 4 / 3;
}
.wood-kit-overview .wood-detail-photo figcaption {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 4px 0;
  background: none;
  color: #526572;
  border-radius: 0;
  font-size: 0.8rem;
}
.wood-kit-overview figcaption button {
  padding: 6px 8px;
  border: 0;
  color: var(--wood-teal);
  font-size: 0.8rem;
}
.wood-kit-information {
  min-width: 0;
  padding: 22px;
  border: 1px solid #ded6c8;
  border-radius: 16px;
  background: #fff;
}
.wood-kit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin: 0;
}
.wood-kit-fields dt {
  margin-bottom: 5px;
  color: #526572;
  font-size: 0.75rem;
}
.wood-kit-fields dd {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.wood-kit-fields .wood-field-empty {
  color: #667784;
}
.wood-kit-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 16px;
  padding-top: 18px;
  border-top: 1px solid #eee9e0;
}
.wood-kit-edit-actions button {
  flex: 1 1 auto;
  padding: 10px;
  font-size: 0.85rem;
}
.wood-kit-dates {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #526572;
  font-size: 0.72rem;
}
.wood-kit-dates > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.wood-kit-dates dd {
  margin: 0;
}
.wood-kit-note {
  margin: 24px 0;
  padding: 18px 20px;
  background: #f2eee5;
  border-radius: 12px;
}
.wood-kit-note h2 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.wood-kit-note p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.wood-kit-note p:last-child {
  margin-bottom: 0;
}
.wood-kit-detail .wood-progress {
  margin-top: 32px;
}
.wood-kit-detail .wood-section-title {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.wood-kit-detail .wood-section-title h2 {
  margin: 0 0 5px;
  font-size: 1.4rem;
}
.wood-kit-detail .wood-section-title p {
  margin: 0;
  color: #526572;
  font-size: 0.8rem;
}
.wood-kit-detail .wood-reference-buttons {
  margin: 16px 0;
}
.wood-kit-detail .wood-progress-card .wood-log-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.wood-kit-detail .wood-progress-card .wood-log-photos > .wood-photo-loadframe:first-child {
  grid-column: 1 / -1;
}
.wood-kit-detail .wood-progress-card .wood-log-photos img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 6px;
  background: #f1eee8;
}
.wood-kit-detail .wood-progress-card > div {
  min-width: 0;
}
.wood-kit-detail .wood-progress-card .wood-preserve-text {
  margin: 12px 0;
}
.wood-kit-detail .wood-legacy-detail {
  padding: 0 18px;
  border: 1px solid #ded6c8;
  border-radius: 12px;
  background: #fff;
}
.wood-kit-detail .wood-legacy-detail summary {
  padding: 16px 0;
  font-weight: 600;
}
.wood-kit-detail .kit-heading-actions {
  flex-wrap: wrap;
  flex-shrink: 1;
}
.wood-kit-detail .danger-outline {
  color: #a52c31;
  border-color: #ddb8bb;
}
.wood-kit-detail .wood-share-summary > p:last-child:empty {
  display: none;
}
@media (max-width: 700px) {
  .wood-kit-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .wood-kit-heading {
    margin-bottom: 18px;
  }
  .wood-kit-information {
    padding: 18px 16px;
  }
  .wood-kit-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .wood-kit-fields > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
  }
  .wood-kit-fields dt {
    margin: 0;
  }
  .wood-kit-detail .wood-progress-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
}
@media (min-width: 1000px) {
  .wood-photo {
    aspect-ratio: 1.65;
  }
}
@media (max-width: 700px) {
  .wood-app .content {
    padding: 12px 16px;
  }
  .wood-app .topbar {
    background: #faf9f6;
  }
  .wood-app .site-footer {
    margin-bottom: 15px;
  }
  .wood-grid {
    gap: 0 14px;
    padding: 16px 11px 0;
    border-width: 10px;
    border-top-width: 14px;
    border-bottom-width: 14px;
  }
  .wood-slot {
    padding: 0 1px 18px;
    margin-bottom: 13px;
  }
  .wood-slot:after {
    left: -22px;
    right: -22px;
    height: 19px;
  }
  .wood-card {
    padding: 5px !important;
  }
  .wood-card-label {
    display: block;
    padding: 6px 2px 0;
  }
  .wood-card-label strong {
    display: block;
    font-size: 0.82rem;
  }
  .wood-card-label .badge {
    display: inline-block;
    font-size: 0.65rem;
    margin-top: 4px;
  }
  .wood-toolbar {
    gap: 6px;
    font-size: 0.83rem;
  }
  .wood-toolbar button {
    padding: 8px;
  }
  .wood-empty-slot {
    min-height: 162px;
  }
  .wood-photo-placeholder {
    font-size: 0.68rem;
    padding: 7px;
    min-height: 100px;
  }
  .wood-detail-top {
    gap: 3px;
  }
  .wood-detail-top h1 {
    font-size: 1.15rem;
  }
  .wood-reference-buttons {
    gap: 8px;
  }
  .wood-reference-buttons button {
    font-size: 0.88rem;
    padding: 9px 4px;
  }
  .wood-progress-card {
    gap: 10px;
    padding: 10px;
  }
  .wood-progress-card time {
    font-size: 0.72rem;
  }
  .wood-progress-card p {
    font-size: 0.9rem;
  }
  .wood-share-row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wood-card {
    transition: none;
  }
  .wood-pages {
    scroll-behavior: auto;
  }
}
.wood-unassigned,
.wood-share-summary,
.wood-shelf-editor section {
  background: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 16px;
  padding: 18px;
  margin: 20px 0;
}
.wood-unassigned ul,
.wood-editor-items {
  list-style: none;
  padding: 0;
}
.wood-unassigned li + li {
  margin-top: 8px;
}
.wood-unassigned li button {
  text-align: left;
  width: 100%;
  overflow-wrap: anywhere;
}
.wood-unassigned summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  font-weight: 700;
}
.wood-unassigned summary span {
  color: #62727f;
  margin-left: 8px;
  font-weight: 400;
}
.wood-unassigned[open] summary {
  margin-bottom: 12px;
}
.wood-unassigned summary:focus-visible {
  outline: 3px solid #d49225;
  outline-offset: 3px;
}
.wood-shelf-editor label {
  display: grid;
  gap: 6px;
}
.wood-shelf-editor input,
.wood-shelf-editor select,
.wood-share-summary input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.wood-shelf-editor h1 {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
}
.wood-editor-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #e6e1d8;
}
.wood-editor-items li:last-child {
  border-bottom: 0;
}
.wood-editor-items strong {
  overflow-wrap: anywhere;
}
.wood-editor-items small {
  display: block;
  color: #556777;
}
.wood-editor-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  width: 100%;
}
.wood-editor-item-actions .wood-move-target {
  flex: 1 1 180px;
}
.wood-editor-save {
  position: sticky;
  bottom: 88px;
  z-index: 3;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #faf9f6f5;
  border: 1px solid #c9d0d6;
  border-radius: 12px;
  box-shadow: 0 3px 15px #102b4320;
}
.wood-share-summary .wood-share-row {
  flex-wrap: wrap;
}
.wood-share-summary input {
  font-size: 16px;
}
@media (max-width: 480px) {
  .wood-shelf-editor section {
    padding: 12px;
  }
  .wood-editor-save {
    bottom: 80px;
  }
  .wood-editor-save button {
    width: 100%;
  }
  .wood-shelf-editor .wood-detail-top {
    flex-wrap: wrap;
  }
  .wood-shelf-editor .wood-move-target {
    width: 100%;
  }
}
