@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=Outfit:wght@400;500;600&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*:not(input):not(textarea):not(select) {
  -webkit-text-fill-color: currentColor !important;
}

html,
body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

html,
body,
#app {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

#app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

#netlify-badge,
.netlify-badge,
[class*="netlify-badge"],
[id*="netlify-badge"],
a[href*="netlify.com"]:not(.keep-netlify) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body {
  background: var(--paper, #e9e4db);
  color: var(--ink, #141618);
}

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

button {
  -webkit-appearance: none;
  appearance: none;
}

img {
  max-width: 100%;
  display: block;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus,
a:any-link,
a:-webkit-any-link,
:any-link,
:-webkit-any-link {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: none !important;
}

a[x-apple-data-detectors],
a[x-apple-data-detectors]:link,
a[x-apple-data-detectors]:visited,
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:active,
span[x-apple-data-detectors],
.apple-data-detectors,
.apple-data-detectors * {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: none !important;
  background-color: transparent !important;
  border: 0 !important;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.stow-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.22em;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
}

.app {
  width: 100%;
  max-width: 430px;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--paper, #e9e4db);
  color: var(--ink, #141618);
  position: relative;
  overflow: hidden;
}

@media (min-width: 431px) {
  html,
  html.concept-a,
  html.concept-b,
  body,
  html.concept-a body,
  html.concept-b body {
    background: #111214;
  }
}

.screen-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.screen-body:focus {
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 12px;
  cursor: pointer;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent, #8f4e32);
  outline-offset: 3px;
}

.btn:disabled,
.btn-primary:disabled {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--line, #d8d1c6);
  border-color: var(--line, #d8d1c6);
  color: var(--muted, #6a645c);
}

.btn-primary {
  background: #141618;
  color: #f4f4f0;
  border-color: #141618;
}

.btn-secondary {
  border-color: rgba(20, 22, 24, 0.22);
  color: #141618;
  background: rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  letter-spacing: 0.04em;
  min-height: 44px;
}

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

.btn-row .btn {
  flex: 1;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line, #d8d6d0);
  background: color-mix(in srgb, var(--paper, #eceae4) 88%, #fff);
  flex-shrink: 0;
  position: relative;
  z-index: 12;
}

.tab {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 48px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6a6e67;
  cursor: pointer;
  border-radius: 12px;
}

.tab.is-on {
  color: #141618;
}

.tab-ic {
  position: relative;
  display: grid;
  place-items: center;
  height: 22px;
}

.tab-badge {
  position: absolute;
  top: -3px;
  right: -8px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: #9b2335;
  color: #fff;
  font-size: 9px;
  line-height: 14px;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(14, 16, 18, 0.42);
}

.sheet {
  position: relative;
  background: #f7f5f0;
  border-radius: 22px 22px 0 0;
  padding: 8px 20px calc(28px + env(safe-area-inset-bottom));
  max-height: 86%;
  overflow: auto;
  animation: sheet-up 0.2s ease;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}

@keyframes sheet-up {
  from {
    transform: translateY(32px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet {
    animation: none;
  }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #c9c7c0;
  margin: 6px auto 10px;
}

.sheet-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6a6e67;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sheet h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.sheet-body {
  color: #3f433e;
  line-height: 1.5;
}

.sheet-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.sheet-actions .btn {
  flex: 1;
}

.field {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line, #d3d1cb);
  background: #fff;
  border-radius: 12px;
  padding: 0 14px;
}

.seg {
  display: flex;
  padding: 3px;
  background: rgba(20, 22, 24, 0.06);
  border-radius: 12px;
  gap: 2px;
}

.seg button {
  flex: 1;
  min-height: 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #5c605a;
}

.seg button.is-on {
  background: #fff;
  color: #141618;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

