/* Add people and Keep in touch.  Crème cards, oval primary buttons.
   Motion is transform and opacity only, so it can stay on the compositor. */

.kit-page,
body.is-kit-screen {
  background: #f6f1ea;
  color: #1d1a17;
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}

.kit-frame {
  min-height: 100vh;
  background: #f6f1ea;
  color: #1d1a17;
}

.kit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  background: #141210;
  color: #f4efe8;
}

.kit-bar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.kit-back {
  border: 1px solid #4a433d;
  border-radius: 999px;
  background: transparent;
  color: #f4efe8;
  font: inherit;
  font-size: 14px;
  min-height: 34px;
  padding: 0 14px;
  cursor: pointer;
  flex: none;
}

.kit-back:hover {
  background: #2a2622;
}

.kit-bar h1 {
  flex: 1;
  min-width: 0;
}

.kit-brand {
  color: #c9bfb4;
  font-size: 13px;
}

.kit-scroll {
  padding: 16px 14px 108px;
}

.kit-card,
.kit-banner {
  background: #fffdfb;
  border: 1px solid #eadfd3;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(60, 30, 20, 0.04);
}

.kit-card + .kit-card,
.kit-banner + .kit-card,
.kit-card + .kit-banner {
  margin-top: 12px;
}

.kit-card {
  animation: kit-in 180ms linear both;
  will-change: transform, opacity;
}

.kit-banner {
  background: #f8f1e8;
  color: #3f3832;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.kit-person {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kit-person .kit-id {
  flex: 1;
  min-width: 0;
}

.kit-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2a2622;
  color: #f6f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
  flex: none;
}

.kit-av.is-soft {
  background: #e7d7c8;
  color: transparent;
}

.kit-av.is-dashed {
  background: transparent;
  border: 1.5px dashed #d9c7b6;
}

.kit-av {
  position: relative;
  overflow: hidden;
}

.kit-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.kit-av.is-small {
  width: 40px;
  height: 40px;
  font-size: 12px;
  background: #e7d7c8;
  color: #3f3832;
}

.kit-av.is-quiet {
  background: #6d675f;
}

.kit-name {
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kit-line,
.kit-copy,
.kit-body,
.kit-draft,
.kit-note,
.kit-sub,
.kit-detail {
  white-space: pre-wrap;
}

.kit-line,
.kit-sub {
  margin-top: 2px;
  color: #5c5148;
  font-size: 13.5px;
  line-height: 1.35;
}

.kit-kicker {
  margin: 16px 0 8px;
  color: #8a7d72;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.kit-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f3ebe3;
  border-radius: 999px;
}

.kit-seg button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #5c5148;
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: transform 160ms linear, background-color 160ms linear, color 160ms linear;
}

.kit-seg button.is-on {
  background: #1c1917;
  color: #f7f3ee;
}

.kit-seg button:active {
  transform: scale(0.98);
}

.kit-note,
.kit-draft,
.kit-field {
  background: #fbf3ea;
  border: 1px solid #f0e4d8;
  border-radius: 14px;
  color: #3f3832;
  font-size: 14.5px;
  line-height: 1.45;
}

.kit-note,
.kit-draft {
  padding: 12px 14px;
}

.kit-field {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  min-height: 88px;
}

.kit-field:focus {
  outline: 2px solid #1c1917;
  outline-offset: 1px;
}

.kit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.kit-primary,
.kit-ghost,
.kit-ink {
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: transform 160ms linear, background-color 160ms linear;
}

.kit-primary {
  border: 0;
  background: #9b3d2a;
  color: #fffaf6;
}

.kit-primary:hover {
  background: #7d3122;
}

/* Same oval as the red primary, in the app's ink (#1d1d1f). Done uses this
   so Send stays the only red action on the added screen. The hairline keeps
   the oval visible on the leather dock. */
.kit-ink {
  border: 1px solid #6d675f;
  background: #1d1d1f;
  color: #fffaf6;
  box-sizing: border-box;
}

.kit-ink:hover {
  background: #2a2622;
  border-color: #8a7d72;
}

.kit-primary:active,
.kit-ghost:active,
.kit-ink:active {
  transform: scale(0.98);
}

.kit-primary:disabled {
  background: #e4d5cc;
  color: #8a7d72;
  cursor: default;
  transform: none;
}

.kit-ghost {
  border: 1.5px solid #1c1917;
  background: #fffdfb;
  color: #1c1917;
}

.kit-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f6e6dc;
  color: #8a4032;
  font-size: 12.5px;
  white-space: nowrap;
}

.kit-badge.is-green {
  background: #e5f2e4;
  color: #2f6a3a;
}

.kit-badge.is-muted {
  background: #ece7e1;
  color: #5c5148;
}

.kit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.kit-row + .kit-row {
  border-top: 1px solid #f0e4d8;
}

.kit-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #c9a898;
  background: #fffdfb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: transparent;
}

button.kit-check {
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.kit-check.is-on {
  background: #1c1917;
  border-color: #1c1917;
  color: #f7f3ee;
}

.kit-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kit-source {
  border: 1px solid #eadfd3;
  background: #fffdfb;
  border-radius: 14px;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms linear, border-color 160ms linear;
}

.kit-source.is-on {
  border: 1.5px solid #1c1917;
  font-weight: 650;
}

.kit-source:active {
  transform: scale(0.98);
}

.kit-option {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid #eadfd3;
  background: #fffdfb;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kit-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.kit-option-name {
  font-size: 14px;
  font-weight: 650;
  color: #1c1917;
}

.kit-option-place {
  font-size: 12px;
  color: #8a7d72;
}

.kit-option.is-on {
  border: 1.5px solid #1c1917;
}

.kit-count {
  margin-top: 6px;
  text-align: right;
  color: #8a7d72;
  font-size: 12px;
}

.kit-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: #141210;
  color: #f4efe8;
  transform: translateZ(0);
}

.kit-dock .kit-primary,
.kit-dock .kit-ink {
  margin-left: auto;
}

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

.kit-link {
  color: #7d3122;
  font-weight: 650;
  text-decoration: none;
}

.kit-url {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  border: 1px solid #eadfd3;
  border-radius: 12px;
  background: #fffdfb;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

#add-people-link {
  margin: 0 0 10px;
}

#kit-relationship {
  margin-top: 12px;
}

.kit-last {
  margin-top: 12px;
}

.kit-error {
  color: #9b3d2a;
  font-size: 13px;
  margin-top: 8px;
  white-space: pre-wrap;
}

.kit-dock.is-busy .kit-primary {
  background: #e4d5cc;
  color: #5d534b;
}

/* Laptop and wider: the standalone page uses the full window, with the
   content and the dock lined up on one 840px column. */
@media (min-width: 900px) {
  body.is-kit-screen .kit-bar {
    padding-left: max(32px, calc((100% - 840px) / 2));
    padding-right: max(32px, calc((100% - 840px) / 2));
    min-height: 60px;
  }
  body.is-kit-screen .kit-bar h1 {
    font-size: 20px;
  }
  body.is-kit-screen .kit-scroll {
    max-width: 840px;
    margin: 0 auto;
    padding: 32px 0 120px;
  }
  body.is-kit-screen .kit-card {
    padding: 24px 28px;
  }
  body.is-kit-screen .kit-sources {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  body.is-kit-screen .kit-source {
    text-align: center;
  }
  body.is-kit-screen textarea.kit-field[rows="8"] {
    min-height: 220px;
  }
  body.is-kit-screen .kit-dock {
    padding-left: max(32px, calc((100% - 840px) / 2));
    padding-right: max(32px, calc((100% - 840px) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .kit-card,
  .kit-seg button,
  .kit-primary,
  .kit-ghost,
  .kit-ink,
  .kit-source {
    animation: none;
    transition: none;
  }
}

@keyframes kit-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
