/* src/components/jr/add/add.css — SJ2 Add your own.

   Transcribed from art-source/design-sj2-2026-09-12/screens/SJ2 Add.dc.html. Her frame carries
   its geometry inline; each declaration below is moved out of one of her style attributes
   unchanged. The entrance keeps her movement and drops her fade (plan ruling 3).

   This screen and SJ2 Read are the two places a grown-up types, and they are behind the four
   digits. The child's side has no field anywhere.
*/

.jr-add {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff9e9;
  color: #13251f;
  font-family: var(--sj-font);
}
.jr-add * { box-sizing: border-box; }
.jr-add button,
.jr-add input,
.jr-add select,
.jr-add textarea { font-family: var(--sj-font); }
.jr-add input::placeholder,
.jr-add textarea::placeholder { color: #9b8f78; opacity: 1; }

/* ---------------------------------------------------------------- the bar */
.jr-add-bar {
  flex: none; height: 76px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 28px; background: #fffdf6; border-bottom: 1px solid #eadfc9;
}
.jr-add-bar-left { flex: none; display: flex; align-items: center; gap: 14px; }
.jr-add-bar-right { flex: none; display: flex; align-items: center; gap: 10px; }
.jr-add-back {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff9e9;
  border: 1px solid #eadfc9; display: flex; align-items: center; justify-content: center; color: #13251f;
}
.jr-add-word { white-space: nowrap; font-weight: 700; font-size: 25px; color: #13251f; letter-spacing: -.01em; }
.jr-add-word span { color: #42a9c8; }
.jr-add-tag {
  white-space: nowrap; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  letter-spacing: .11em; text-transform: uppercase; color: #19776f; background: #e3f5f8;
  border: 1px solid #cfe8e8; border-radius: 999px; padding: 7px 15px;
}
.jr-add-storage { white-space: nowrap; font-weight: 500; font-size: 15px; color: #13251f; }
.jr-add-done {
  flex: none; display: flex; align-items: center; min-height: 46px; padding: 0 20px;
  border-radius: 999px; white-space: nowrap; background: #fff9e9; border: 1.5px solid #eadfc9;
  font-weight: 600; font-size: 16px; color: #13251f; text-decoration: none;
}

/* ---------------------------------------------------------------- the stage */
.jr-add-stage {
  flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 24px 34px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
/* Transform-only. Her sj2-rise fades from opacity 0 as well. */
@keyframes sj-add-rise {
  from { transform: translateY(12px); }
  to { transform: none; }
}
.jr-add-rise { animation: sj-add-rise 320ms cubic-bezier(.2, .75, .25, 1) both; }

/* ---------------------------------------------------------------- the privacy card */
.jr-add-privacy-wrap { flex: 1 1 auto; min-height: 0; display: flex; gap: 24px; }
.jr-add-privacy {
  flex: 1 1 auto; min-width: 0; background: #fffdf6; border: 2px solid #cfe8e8; border-radius: 26px;
  box-shadow: 0 14px 34px rgba(35, 50, 44, .12); padding: 28px 34px;
  display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
}
.jr-add-kicker {
  align-self: flex-start; font-weight: 600; font-size: 13px; letter-spacing: .13em;
  text-transform: uppercase; color: #19776f; background: #e3f5f8; border: 1px solid #cfe8e8;
  border-radius: 999px; padding: 6px 13px;
}
.jr-add-privacy h1 { margin: 0; font-weight: 700; font-size: 38px; line-height: 1.06; color: #13251f; text-wrap: pretty; }
.jr-add-rows { display: flex; flex-direction: column; gap: 10px; }
.jr-add-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-radius: 18px;
  background: #fff9e9; border: 1px solid #eadfc9;
}
.jr-add-glyph {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.jr-add-row-text { flex: 1 1 auto; min-width: 0; }
.jr-add-row-text strong { display: block; font-weight: 600; font-size: 19px; color: #13251f; }
.jr-add-row-text span { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; color: #13251f; text-wrap: pretty; }
.jr-add-privacy-actions { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; }

/* ---------------------------------------------------------------- the head */
.jr-add-head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.jr-add-head h1 { margin: 0 0 5px; font-weight: 700; font-size: 40px; line-height: 1.04; color: #13251f; }
.jr-add-head p { margin: 0; font-size: 20px; font-weight: 500; color: #13251f; text-wrap: pretty; }
.jr-add-kids { flex: none; display: flex; align-items: center; gap: 10px; }
.jr-add-kid {
  appearance: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 4px 20px 4px 5px; border-radius: 999px;
  background: #fffdf6; border: 2px solid #eadfc9;
}
.jr-add-kid.on { background: #e3f5f8; border-color: #42a9c8; }
.jr-add-kid-face {
  width: 40px; height: 40px; border-radius: 50%; display: block;
  background-color: #eadfc9; background-size: cover; background-position: center;
}
.jr-add-kid-name { font-weight: 600; font-size: 18px; color: #13251f; }
.jr-add-kid.on .jr-add-kid-name { color: #19776f; }

/* ---------------------------------------------------------------- the five kinds */
.jr-add-kinds { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.jr-add-kind {
  appearance: none; cursor: pointer; text-align: left; min-height: 104px; padding: 14px 16px;
  border-radius: 20px; background: #fffdf6; border: 2px solid #eadfc9; box-shadow: 0 5px 0 #eadfc9;
  display: flex; flex-direction: column; gap: 5px;
}
.jr-add-kind.on { background: #e3f5f8; border-color: #42a9c8; box-shadow: 0 5px 0 #cfe8e8; }
.jr-add-kind:active { transform: translateY(4px); box-shadow: 0 1px 0 #eadfc9; }
.jr-add-kind strong { font-weight: 600; font-size: 18px; line-height: 1.15; color: #13251f; text-wrap: pretty; }
.jr-add-kind span { font-size: 15px; font-weight: 500; line-height: 1.35; color: #13251f; text-wrap: pretty; }

/* ---------------------------------------------------------------- the two panels */
.jr-add-cols { flex: 1 1 auto; min-height: 0; display: flex; gap: 18px; }

.jr-add-form {
  flex: 1 1 0; min-width: 0; background: #fffdf6; border: 2px solid #cfe8e8; border-radius: 24px;
  box-shadow: 0 12px 30px rgba(35, 50, 44, .1); padding: 22px 26px;
  display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
}
.jr-add-form-head { display: flex; align-items: baseline; gap: 12px; }
.jr-add-form-head strong { font-weight: 700; font-size: 24px; color: #13251f; }
.jr-add-form-head .fill { flex: 1 1 auto; }
.jr-add-form-head span { font-weight: 500; font-size: 15px; color: #13251f; }

.jr-add-pick-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jr-add-file {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 24px;
  border-radius: 18px; background: #e3f5f8; border: 2px solid #cfe8e8; cursor: pointer;
  font-weight: 600; font-size: 19px; color: #19776f;
}
.jr-add-file input { display: none; }
.jr-add-filename {
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: #246c3c;
  background: #eaf7ef; border: 1px solid #bfe2cd; border-radius: 999px; padding: 10px 16px;
}
.jr-add-preview {
  flex: none; height: 180px; border-radius: 16px; border: 1px solid #eadfc9; background: #fff9e9;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.jr-add-preview span {
  width: 100%; height: 100%; display: block; background-color: #eadfc9;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}

.jr-add-words {
  width: 100%; min-height: 96px; resize: none; font-family: var(--sj-font-story);
  font-size: 20px; line-height: 1.5; padding: 12px 15px; border-radius: 14px;
  border: 2px solid #eadfc9; background: #fff9e9; color: #13251f; outline: none;
}
.jr-add-words:focus { border-color: #cfe8e8; }
.jr-add-link {
  width: 100%; font-size: 19px; font-weight: 600; padding: 14px 16px; border-radius: 14px;
  border: 2px solid #eadfc9; background: #fff9e9; color: #13251f; outline: none;
}
.jr-add-link:focus { border-color: #cfe8e8; }

.jr-add-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.jr-add-field { display: flex; flex-direction: column; gap: 5px; }
.jr-add-field.grow { flex: 1 1 240px; min-width: 0; }
.jr-add-field.subject { flex: 0 0 190px; }
.jr-add-field.due { flex: 0 0 170px; }
.jr-add-field-label {
  font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #13251f;
}
.jr-add-field input,
.jr-add-field select {
  width: 100%; font-size: 18px; font-weight: 600; padding: 12px 14px; border-radius: 14px;
  border: 2px solid #eadfc9; background: #fff9e9; color: #13251f; outline: none;
}
.jr-add-field input:focus,
.jr-add-field select:focus { border-color: #cfe8e8; }

.jr-add-save-row { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.jr-add-save {
  appearance: none; border: none; cursor: pointer; min-height: 60px; padding: 0 26px;
  border-radius: 18px; background: #f36b35; color: #fffdf6; font-weight: 600; font-size: 19px;
  box-shadow: 0 4px 0 #c84a22;
}
.jr-add-save:active { transform: translateY(4px); box-shadow: none; }
.jr-add-cta {
  appearance: none; border: none; cursor: pointer; min-height: 60px; padding: 0 28px;
  border-radius: 18px; background: #f36b35; color: #fffdf6; font-weight: 700; font-size: 20px;
  box-shadow: 0 4px 0 #c84a22; text-decoration: none; display: inline-flex; align-items: center;
}
.jr-add-cta:active { transform: translateY(4px); box-shadow: none; }
.jr-add-quiet {
  display: inline-flex; align-items: center; min-height: 60px; padding: 0 22px; border-radius: 18px;
  background: #fffdf6; border: 1.5px solid #eadfc9; font-weight: 600; font-size: 18px;
  color: #13251f; text-decoration: none; cursor: pointer;
}
.jr-add-note { font-size: 16px; font-weight: 600; color: #c84a22; text-wrap: pretty; }
.jr-add-note.ok { color: #246c3c; }

/* ---------------------------------------------------------------- the list */
.jr-add-list {
  flex: 0 0 452px; background: #fffdf6; border: 1px solid #eadfc9; border-radius: 24px;
  box-shadow: 0 12px 30px rgba(35, 50, 44, .1); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.jr-add-list-head { display: flex; align-items: baseline; gap: 10px; }
.jr-add-list-head strong { font-weight: 700; font-size: 22px; color: #13251f; }
.jr-add-list-head .fill { flex: 1 1 auto; }
.jr-add-list-head span { font-weight: 500; font-size: 15px; color: #13251f; }
.jr-add-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.jr-add-item {
  flex: none; padding: 14px 16px; border-radius: 18px; background: #fffdf6; border: 1.5px solid #eadfc9;
  display: flex; flex-direction: column; gap: 8px;
}
.jr-add-item.used { background: #f4faf6; border-color: #bfe2cd; }
.jr-add-item-top { display: flex; align-items: baseline; gap: 10px; }
.jr-add-item-kind {
  font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #19776f;
}
.jr-add-item-top .fill { flex: 1 1 auto; }
.jr-add-item-when { font-weight: 500; font-size: 14px; color: #13251f; }
.jr-add-item-title { font-weight: 600; font-size: 19px; line-height: 1.2; color: #13251f; text-wrap: pretty; }
.jr-add-item-detail { font-size: 16px; font-weight: 500; color: #13251f; text-wrap: pretty; word-break: break-word; }
.jr-add-item-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.jr-add-read {
  appearance: none; cursor: pointer; min-height: 48px; padding: 0 18px; border-radius: 14px;
  background: #e3f5f8; border: 2px solid #cfe8e8; font-weight: 600; font-size: 16px; color: #19776f;
  text-decoration: none; display: inline-flex; align-items: center;
}
.jr-add-use {
  appearance: none; border: none; cursor: pointer; min-height: 48px; padding: 0 18px;
  border-radius: 14px; background: #f36b35; color: #fffdf6; font-weight: 700; font-size: 16px;
  box-shadow: 0 3px 0 #c84a22;
}
.jr-add-use:active { transform: translateY(3px); box-shadow: none; }
.jr-add-used {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px;
  background: #eaf7ef; border: 1px solid #bfe2cd; font-weight: 600; font-size: 16px; color: #246c3c;
}
.jr-add-drop {
  appearance: none; cursor: pointer; min-height: 48px; padding: 0 16px; border-radius: 14px;
  background: #fffdf6; border: 1.5px solid #eadfc9; font-weight: 500; font-size: 16px; color: #13251f;
}
.jr-add-empty {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  border-radius: 18px; border: 2px dashed #e2d8c5; background: #fff9e9; padding: 22px;
}
.jr-add-empty strong { font-weight: 600; font-size: 20px; color: #13251f; }
.jr-add-empty span { font-size: 17px; font-weight: 500; line-height: 1.4; color: #13251f; text-wrap: pretty; }
.jr-add-foot {
  flex: none; padding-top: 12px; border-top: 1px solid #f0ebe0; display: flex; align-items: center; gap: 12px;
}
.jr-add-foot span { flex: 1 1 auto; font-size: 15px; font-weight: 500; line-height: 1.4; color: #13251f; text-wrap: pretty; }
.jr-add-wipe {
  flex: none; appearance: none; cursor: pointer; min-height: 44px; padding: 0 14px; border-radius: 12px;
  background: #fffdf6; border: 1.5px solid #e2d8c5; font-weight: 500; font-size: 15px;
  color: #13251f; white-space: nowrap;
}
.jr-add-wipe.armed { background: #ffe7d6; border-color: #f36b35; color: #9c4009; }

/* ---------------------------------------------------------------- phones (DECISIONS #164)
   SHE DREW NO PHONE FRAME FOR ADD. Minimum honest stacking only: her two columns become one,
   her five kind-cards become two per row, fields and buttons go full width. Anything beyond
   this waits on her frames. */
@media (max-width: 767px) {
  .jr-phone-natural .jr-add-bar {
    height: auto;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  }
  .jr-phone-natural .jr-add-body { padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); overflow: visible; }
  .jr-phone-natural .jr-add-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .jr-phone-natural .jr-add-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .jr-phone-natural .jr-add-cols,
  .jr-phone-natural .jr-add-privacy-wrap { display: block; }
  .jr-phone-natural .jr-add-cols > *,
  .jr-phone-natural .jr-add-privacy-wrap > * {
    width: 100%;
    max-width: 100%;
    flex: none;
    overflow: visible;
    margin-bottom: 14px;
  }
  .jr-phone-natural .jr-add-pick-row { align-items: stretch; flex-direction: column; }
  .jr-phone-natural .jr-add input,
  .jr-phone-natural .jr-add select,
  .jr-phone-natural .jr-add textarea { width: 100%; max-width: 100%; }
  .jr-phone-natural .jr-add-privacy-actions { flex-direction: column; align-items: stretch; }
  .jr-phone-natural .jr-add-privacy-actions > * { width: 100%; justify-content: center; }
}
