/* ThatcherWardrobe — app-specific styles. Everything shared lives in kit/kit.css.
   Tint: burgundy (Danielle's colour), deep enough for white text; a lighter rose for dark mode. */
:root { --tk-tint-light: #8E2A45; --tk-tint-dark: #E07A93; }

.wd-signin-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 32px 28px; }
.wd-signin-head img { border-radius: 18px; margin-bottom: 10px; }
.wd-signin-head h1, .wd-signin-head p { margin: 0; }
.wd-signin-error { color: var(--tk-red); min-height: 1.2rem; }
.wd-offline, .wd-hud {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: calc(var(--tk-safe-t) + 6px);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap; font-size: 0.765rem; font-weight: 600; color: var(--tk-label-2);
  display: flex; align-items: center; gap: 6px;
}
.wd-offline .tk-icon { width: 14px; height: 14px; }
.wd-offline[hidden] { display: none; }
.wd-hud { top: auto; bottom: calc(var(--tk-safe-b) + 96px); font-size: 0.882rem; color: var(--tk-label); padding: 10px 18px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--tk-ease); transform: translate(-50%, 8px); }
.wd-hud.is-on { opacity: 1; transform: translate(-50%, 0); }
.wd-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; letter-spacing: .02em; }

/* Item rows: a square photo thumbnail like Mail's attachments / Photos' lists */
.tk-row.wd-item { gap: 12px; }
.wd-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--tk-fill-3); }
.wd-thumb.is-empty { display: grid; place-items: center; font: 600 0.706rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--tk-label-2); }

/* Today hero (Fitness Summary card) */
.wd-hero { flex-direction: row; align-items: center; gap: 16px; padding: 16px 4px 16px 20px; margin: 0 var(--tk-margin); }
.wd-hero-ring { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
.wd-hero-ring .tk-ring-label { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.wd-hero-list { flex: 1; min-width: 0; margin: 0; }
.wd-hero-list .tk-row { background: none; padding-left: 0; }
.wd-hero-list .tk-row-body { text-align: left; }

/* Stock filters (Mail / Photos style capsules) */
.wd-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--tk-margin) 16px; margin-top: -4px; }
.wd-chips::-webkit-scrollbar { display: none; }
.wd-chips button { flex: none; border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.882rem; font-weight: 600; background: var(--tk-fill-3); color: var(--tk-label); }
.wd-chips button span { font-weight: 400; color: var(--tk-label-2); margin-left: 2px; }
.wd-chips button[aria-checked="true"] { background: var(--tk-tint); color: #fff; }
.wd-chips button[aria-checked="true"] span { color: rgba(255,255,255,.8); }

/* Add / Edit */
.wd-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--tk-margin) 20px; }
.wd-strip::-webkit-scrollbar { display: none; }
.wd-photo { position: relative; flex: none; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--tk-bg-cell); }
.wd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-photo.is-add { border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--tk-tint); font: inherit; font-size: 0.765rem; font-weight: 600; }
.wd-photo.is-add .tk-icon { width: 26px; height: 26px; --tk-camera-lens: var(--tk-bg-cell); }
.wd-photo-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--tk-label); padding: 0; }
.wd-photo-x .tk-icon { width: 13px; height: 13px; }
.wd-seg { margin: 0 var(--tk-margin) 10px; }
.wd-seg .tk-segmented { width: 100%; }
.wd-form .tk-row input, .wd-form .tk-row select { text-align: right; }
.wd-form .tk-row > .tk-row-body { flex: none; }
.wd-form .tk-row > input { flex: 1; min-width: 0; }
.wd-money-input { display: inline-flex; align-items: center; gap: 2px; flex: 1; justify-content: flex-end; color: var(--tk-label-2); }
.tk-row .wd-money-input input { flex: none; text-align: right; width: 3ch; min-width: 2ch; max-width: 9ch; padding: 0; }
.wd-textarea textarea { width: 100%; border: 0; background: none; font: inherit; color: inherit; resize: none; padding: 4px 0; outline: none; }
.wd-actions { margin: 4px var(--tk-margin) 32px; }

/* Sold sheet: Settings-style checkmark choice */
.wd-tick { color: var(--tk-tint); opacity: 0; }
.wd-tick .tk-icon { width: 18px; height: 18px; }
.tk-row.is-chosen .wd-tick { opacity: 1; }

/* Item page */
.wd-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 var(--tk-margin); border-radius: var(--tk-r-card); background: var(--tk-bg-cell); aspect-ratio: 4 / 5; max-height: 62vh; }
.wd-carousel::-webkit-scrollbar { display: none; }
.wd-carousel img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.wd-carousel-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--tk-label-3); }
.wd-carousel-empty .tk-icon { width: 40px; height: 40px; --tk-camera-lens: var(--tk-bg-cell); }
.wd-pager { display: flex; justify-content: center; gap: 7px; margin: 10px 0 0; }
.wd-pager i { width: 7px; height: 7px; border-radius: 50%; background: var(--tk-label-3); }
.wd-pager i.is-on { background: var(--tk-label); }
.wd-head { margin: 16px var(--tk-margin) 16px; padding: 0 4px; }
.wd-head p { margin: 0; }
.wd-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wd-head-row h1 { margin: 0; }
.wd-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 var(--tk-margin) 24px; }
.wd-buttons .tk-button { gap: 6px; white-space: nowrap; font-size: 0.941rem; padding-left: 12px; padding-right: 12px; }
.wd-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 var(--tk-margin); }
.wd-proof figure { margin: 0; }
.wd-proof img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.wd-proof figcaption { margin-top: 4px; padding: 0 2px; }
.wd-select { user-select: text; -webkit-user-select: text; }

/* Pack */
.wd-done { display: inline-flex; align-items: center; gap: 4px; color: var(--tk-green); font-weight: 600; text-transform: none; float: right; }
.wd-done .tk-icon { width: 15px; height: 15px; }
.wd-step { position: relative; margin: 0 var(--tk-margin); border-radius: var(--tk-r-card); overflow: hidden; background: var(--tk-bg-cell); }
.wd-step img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.wd-retake { position: absolute; right: 12px; bottom: 12px; }
.wd-step-take { width: 100%; height: 132px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--tk-tint); font: inherit; font-weight: 600; }
.wd-step-take .tk-icon { width: 32px; height: 32px; --tk-camera-lens: var(--tk-bg-cell); }

/* Money */
.wd-stats { margin-bottom: 28px; }
.wd-stats .tk-card-value small { font-size: 0.6em; font-weight: 600; color: var(--tk-label-2); }
.wd-hmrc { padding: 16px 18px; display: block; }
.wd-hmrc-row { display: flex; justify-content: space-between; font-size: 0.941rem; }
.wd-hmrc-row + .wd-meter + .wd-hmrc-row { margin-top: 14px; }
.wd-meter { height: 8px; border-radius: 4px; background: var(--tk-fill-3); overflow: hidden; margin-top: 8px; }
.wd-meter i { display: block; height: 100%; border-radius: 4px; }
@media (min-width: 700px) { .wd-carousel { max-width: 480px; margin-inline: auto; } .wd-pager { margin-bottom: 4px; } }
