/* Jungle Joy Studio r06 — styles for the added screens («Σήμερα», «Έφτιαξα», «Νέα προσφορά», profiles, morning brief)
   and a few targeted readability fixes for the existing interface.
   Brand colours follow the Studio: fuchsia, lime, ink. Text on colour keeps a contrast of 4.5:1 or more. */

:root {
  --jj-pink: #ec008b;
  --jj-pink-deep: #cf007a;   /* white text on this: 5.3:1 */
  --jj-pink-soft: #fde6f3;
  --jj-lime: #d3f143;
  --jj-lime-soft: #f4fbd3;
  --jj-ink: #24212c;
  --jj-text: #4a4553;        /* on white: 9:1 */
  --jj-quiet: #5f5a6b;       /* on white: 6.6:1 */
  --jj-line: #e3dfe9;
  --jj-paper: #f7f7fa;
  --jj-warn: #8a4b00;
  --jj-warn-soft: #fff3df;
}

/* ---------- readability fixes for the existing interface ---------- */

/* The small explanations under form fields were light lilac at 12–13px. */
.field small { color: var(--jj-quiet); font-size: 14px; line-height: 1.5; }

/* iPhone zooms the page when a field's text is under 16px. */
.field input, .field textarea, .field select, .toolbar select, .toolbar input,
input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], textarea, select {
  font-size: 16px;
}

/* «Το έκανα» is the action used most by people who are not at ease with the screen. */
.simple-done { font-size: 16px; font-weight: 650; min-height: 48px; padding: 12px 16px; color: #3f5a10; }
.btn { min-height: 46px; }
.btn.small { min-height: 40px; }

/* The side-menu group label is one line of spaced capitals; at 13px it broke in two. */
.nav-group { font-size: 12px; letter-spacing: 1.2px; }

/* ---------- dock: the three added buttons ---------- */

.jj-dock { position: fixed; z-index: 20; display: none; gap: 10px; font-family: inherit; }
.jj-dock.is-on { display: flex; }
.jj-dock button {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 10px 18px; border-radius: 16px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--jj-ink);
  background: #fff; border: 1.5px solid var(--jj-line); box-shadow: 0 6px 22px rgba(36, 33, 44, .12);
}
.jj-dock button:hover { border-color: var(--jj-pink); }
.jj-dock button:focus-visible, .jj-sheet button:focus-visible, .jj-sheet input:focus-visible,
.jj-sheet select:focus-visible, .jj-sheet textarea:focus-visible { outline: 3px solid var(--jj-pink); outline-offset: 2px; }
.jj-dock .jj-made { background: var(--jj-lime); border-color: #c3e02f; }
.jj-dock svg { width: 22px; height: 22px; flex: none; }
.jj-count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--jj-pink-deep); color: #fff; font-size: 15px; font-weight: 800;
}
.jj-count.is-zero { background: #eceaf0; color: var(--jj-quiet); }

/* A bar along the bottom edge. The side menu of the Studio sits above it on wide screens,
   so the three buttons are kept to the right, clear of the menu. */
.jj-dock { left: 0; right: 0; bottom: 0; justify-content: flex-end; padding: 10px 24px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--jj-line); }
html.jj-has-dock body { padding-bottom: 76px; }
html.jj-has-dock .toast { bottom: 92px; }
@media (width > 760px) {
  .jj-dock button { min-height: 50px; box-shadow: none; }
}
@media (width <= 760px) {
  .jj-dock { gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(36, 33, 44, .08); }
  .jj-dock button {
    flex: 1 1 0; flex-direction: column; gap: 3px; min-height: 58px; padding: 6px 4px; border-radius: 12px;
    border-color: transparent; box-shadow: none; font-size: 14px; line-height: 1.2; position: relative;
  }
  .jj-dock .jj-made { margin: 0 4px; }
  .jj-dock .jj-count { position: absolute; top: 3px; left: calc(50% + 8px); min-width: 22px; height: 22px; font-size: 13px; }
  html.jj-has-dock body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html.jj-has-dock .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ---------- sheets ---------- */

.jj-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(36, 33, 44, .45); display: flex; justify-content: center; align-items: flex-end; }
.jj-sheet {
  width: 100%; max-width: 640px; max-height: 100dvh; display: flex; flex-direction: column;
  background: #fff; color: var(--jj-text); border-radius: 22px 22px 0 0; font-size: 17px; line-height: 1.5;
  box-shadow: 0 -12px 50px rgba(36, 33, 44, .25);
}
@media (width > 760px) {
  .jj-scrim { align-items: center; padding: 24px; }
  .jj-sheet { border-radius: 22px; max-height: min(880px, calc(100dvh - 48px)); }
}
.jj-sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--jj-line); }
.jj-sheet-head h2 { flex: 1; margin: 0; font-size: 24px; line-height: 1.25; color: var(--jj-ink); font-weight: 750; }
.jj-sheet-head p { margin: 4px 0 0; font-size: 17px; color: var(--jj-text); }
.jj-sheet-head h2:focus { outline: none; }
.jj-close {
  flex: none; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--jj-line); background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--jj-ink);
}
.jj-close svg { width: 22px; height: 22px; }
.jj-sheet-body { padding: 18px 20px 26px; overflow-y: auto; overscroll-behavior: contain; }
.jj-sheet-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--jj-line); display: flex; gap: 10px; flex-wrap: wrap; }
.jj-sheet-foot .jj-btn { flex: 1 1 200px; }

.jj-sheet h3 { margin: 26px 0 10px; font-size: 19px; line-height: 1.3; color: var(--jj-ink); font-weight: 750; }
.jj-sheet h3:first-child { margin-top: 4px; }
.jj-sheet p { margin: 0 0 10px; }
.jj-quiet { color: var(--jj-quiet); font-size: 16px; }
.jj-step { display: block; margin: 24px 0 10px; font-size: 19px; font-weight: 750; color: var(--jj-ink); }
.jj-step:first-child { margin-top: 2px; }
.jj-hint { display: block; margin: -4px 0 10px; font-size: 16px; color: var(--jj-quiet); font-weight: 400; }

.jj-btn {
  min-height: 52px; padding: 12px 20px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700;
  border: 1.5px solid var(--jj-line); background: #fff; color: var(--jj-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.jj-btn:hover { border-color: var(--jj-pink); }
.jj-btn.is-main { background: var(--jj-pink-deep); border-color: var(--jj-pink-deep); color: #fff; }
.jj-btn.is-main:hover { background: #b8006c; }
.jj-btn.is-lime { background: var(--jj-lime); border-color: #c3e02f; }
.jj-btn.is-small { min-height: 46px; padding: 8px 16px; font-size: 16px; }
.jj-btn[disabled] { opacity: .55; cursor: default; }
.jj-link { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 16px; color: var(--jj-pink-deep); font-weight: 650; text-decoration: underline; cursor: pointer; min-height: 44px; }

.jj-card { border: 1.5px solid var(--jj-line); border-radius: 16px; padding: 16px; margin: 0 0 12px; background: #fff; }
.jj-card.is-late { border-color: #f1b5c4; background: #fff7f9; }
.jj-card.is-decision { border-color: #c3e02f; background: var(--jj-lime-soft); }
.jj-card strong { color: var(--jj-ink); font-weight: 700; }
.jj-card .jj-title { display: block; font-size: 18px; font-weight: 700; color: var(--jj-ink); margin-bottom: 2px; overflow-wrap: anywhere; }
.jj-card .jj-meta { display: block; font-size: 16px; color: var(--jj-quiet); margin-bottom: 10px; }
.jj-card .jj-quote { margin: 6px 0 12px; padding: 10px 14px; border-left: 4px solid var(--jj-pink); background: var(--jj-paper); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.jj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.jj-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--jj-pink-soft); color: #8f0055; margin-right: 6px; }
.jj-tag.is-late { background: #ffe1e6; color: #9a1230; }
.jj-change { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 10px 0 0; padding: 12px 14px; background: #fff; border-radius: 12px; border: 1px solid var(--jj-line); }
.jj-change dt { color: var(--jj-text); overflow-wrap: anywhere; }
.jj-change dd { margin: 0; font-weight: 700; color: var(--jj-ink); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.jj-empty { text-align: center; padding: 26px 10px 10px; }
.jj-empty strong { display: block; font-size: 21px; color: var(--jj-ink); margin-bottom: 4px; }
.jj-note { padding: 12px 14px; border-radius: 12px; background: var(--jj-paper); font-size: 16px; color: var(--jj-text); margin: 14px 0 0; }
.jj-note .jj-link { min-height: 0; padding: 0; }
.jj-note.is-warn { background: var(--jj-warn-soft); color: var(--jj-warn); }
.jj-error { padding: 12px 14px; border-radius: 12px; background: #ffe9ec; color: #8f1029; font-weight: 650; margin: 0 0 14px; }
.jj-done { text-align: center; padding: 22px 8px 6px; }
.jj-done .jj-tick { width: 68px; height: 68px; border-radius: 50%; background: var(--jj-lime); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--jj-ink); }
.jj-done .jj-tick svg { width: 34px; height: 34px; }
.jj-done strong { display: block; font-size: 23px; color: var(--jj-ink); margin-bottom: 6px; }

/* form controls inside the sheets */
.jj-sheet input[type="text"], .jj-sheet input[type="number"], .jj-sheet input[type="date"], .jj-sheet input[type="search"], .jj-sheet select, .jj-sheet textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #cfc9d8; background: #fff;
  font: inherit; font-size: 18px; color: var(--jj-ink); box-sizing: border-box;
}
.jj-sheet textarea { min-height: 96px; resize: vertical; }
.jj-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.jj-row > * { flex: 1 1 140px; }
.jj-row > .jj-fixed { flex: 0 0 auto; }
.jj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jj-chip {
  min-height: 50px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #cfc9d8; background: #fff; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 650; color: var(--jj-ink);
}
.jj-chip[aria-pressed="true"] { background: var(--jj-pink-soft); border-color: var(--jj-pink); color: #8f0055; }
.jj-stepper { display: flex; align-items: center; gap: 12px; }
.jj-stepper button { width: 60px; height: 60px; border-radius: 18px; border: 1.5px solid #cfc9d8; background: #fff; font-size: 30px; font-weight: 600; color: var(--jj-ink); cursor: pointer; line-height: 1; }
.jj-stepper input { width: 110px !important; text-align: center; font-size: 26px !important; font-weight: 750; }
.jj-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; max-height: 318px; overflow-y: auto; padding: 2px; margin-top: 10px; }
.jj-product {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 14px; border: 1.5px solid var(--jj-line);
  background: #fff; cursor: pointer; font: inherit; font-size: 15px; font-weight: 650; color: var(--jj-ink); text-align: center; line-height: 1.25; min-height: 132px;
}
.jj-product img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; background: var(--jj-paper); }
.jj-product .jj-noimg { width: 76px; height: 76px; border-radius: 12px; background: var(--jj-lime-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #6c8212; }
.jj-product[aria-pressed="true"] { border-color: var(--jj-pink); background: var(--jj-pink-soft); box-shadow: inset 0 0 0 1.5px var(--jj-pink); }
.jj-sum { margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--jj-lime-soft); border: 1.5px solid #dbee8f; font-size: 18px; color: var(--jj-ink); font-weight: 650; }
.jj-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border: 1.5px solid var(--jj-line); border-radius: 14px; cursor: pointer; }
.jj-check input { width: 26px; height: 26px; margin: 1px 0 0; flex: none; accent-color: var(--jj-pink-deep); }
.jj-history { list-style: none; margin: 0; padding: 0; }
.jj-history li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--jj-line); }
.jj-history li.is-void span { text-decoration: line-through; color: var(--jj-quiet); }
.jj-sheet details { margin-top: 22px; border-top: 1px solid var(--jj-line); padding-top: 6px; }
.jj-sheet summary { cursor: pointer; font-size: 17px; font-weight: 700; color: var(--jj-ink); padding: 12px 0; min-height: 44px; }
.jj-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.jj-table th, .jj-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--jj-line); vertical-align: top; }
.jj-table th { font-weight: 700; color: var(--jj-ink); }
.jj-table td.is-num, .jj-table th.is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .jj-sheet { animation: jj-rise .18s ease-out; }
  @keyframes jj-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- r06: dock labels, team, profile, morning brief ---------- */

.jj-short { display: none; }
@media (width <= 760px) {
  .jj-dock .jj-long { display: none; }
  .jj-dock .jj-short { display: inline; }
  .jj-dock button { font-size: 13.5px; }
}

.jj-brief-card { display: flex; gap: 14px; align-items: center; padding: 16px; margin: 0 0 18px; border-radius: 18px; background: linear-gradient(120deg, var(--jj-lime-soft), #fff 70%); border: 1.5px solid #dbee8f; }
.jj-brief-card .jj-sun { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--jj-lime); display: flex; align-items: center; justify-content: center; color: var(--jj-ink); }
.jj-brief-card .jj-sun svg { width: 28px; height: 28px; }
.jj-brief-card div { flex: 1; min-width: 0; }
.jj-brief-card strong { display: block; font-size: 19px; color: var(--jj-ink); }
.jj-brief-card span { color: var(--jj-text); font-size: 16px; }

.jj-brief ul { margin: 0 0 6px; padding-left: 22px; list-style: disc; }
.jj-brief li::marker { color: var(--jj-pink); }
.jj-brief li { margin: 0 0 9px; }
.jj-brief .jj-sources { list-style: none; padding: 0; font-size: 16px; }
.jj-brief .jj-sources a { color: var(--jj-pink-deep); font-weight: 650; overflow-wrap: anywhere; }
.jj-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; font-size: 14px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #8f0055; }
.jj-divider::after { content: ""; flex: 1; height: 2px; background: var(--jj-pink-soft); }
.jj-divider:first-child { margin-top: 2px; }

.jj-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.jj-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 14px 18px; border-radius: 20px; border: 1.5px solid var(--jj-line); background: #fff; cursor: pointer; font: inherit; color: var(--jj-text); }
.jj-person:hover { border-color: var(--jj-pink); }
.jj-person strong { font-size: 21px; color: var(--jj-ink); }
.jj-person .jj-role { font-size: 15px; color: var(--jj-quiet); line-height: 1.4; }
.jj-person .jj-line { font-size: 16px; font-style: italic; color: var(--jj-ink); line-height: 1.45; }
.jj-person.tone-0 { background: linear-gradient(180deg, var(--jj-pink-soft), #fff 62%); }
.jj-person.tone-1 { background: linear-gradient(180deg, #efe7fb, #fff 62%); }
.jj-person.tone-2 { background: linear-gradient(180deg, var(--jj-lime-soft), #fff 62%); }

.jj-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #fff; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(36, 33, 44, .16); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: var(--jj-ink); flex: none; }
.jj-avatar.is-big { width: 148px; height: 148px; font-size: 62px; border-width: 5px; }
.jj-avatar.tone-0 { background: #f9c6e3; } .jj-avatar.tone-1 { background: #dccdf6; } .jj-avatar.tone-2 { background: var(--jj-lime); }

.jj-hero { margin: -18px -20px 0; padding: 30px 20px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jj-hero.tone-0 { background: linear-gradient(180deg, #fbd3ea, #fff); }
.jj-hero.tone-1 { background: linear-gradient(180deg, #e4d8f8, #fff); }
.jj-hero.tone-2 { background: linear-gradient(180deg, #e4f590, #fff); }
.jj-hero h3 { margin: 12px 0 0; font-size: 30px; line-height: 1.2; color: var(--jj-ink); }
.jj-hero p { margin: 0; font-size: 17px; color: var(--jj-text); max-width: 460px; }
.jj-saying { position: relative; margin: 8px 0 4px; padding: 20px 22px 20px 62px; border-radius: 18px; background: var(--jj-paper); font-size: 21px; line-height: 1.45; font-style: italic; color: var(--jj-ink); overflow-wrap: anywhere; }
.jj-saying::before { content: "\00AB"; position: absolute; left: 14px; top: 10px; font-size: 52px; line-height: 1; font-style: normal; font-weight: 800; color: var(--jj-pink); }
.jj-facts { display: grid; gap: 12px; margin: 18px 0 0; }
.jj-facts div { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--jj-line); }
.jj-facts dt { font-size: 14px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #8f0055; margin-bottom: 3px; }
.jj-facts dd { margin: 0; color: var(--jj-ink); overflow-wrap: anywhere; }
.jj-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.jj-tile { padding: 16px 14px; border-radius: 16px; background: var(--jj-lime-soft); border: 1.5px solid #dbee8f; }
.jj-tile b { display: block; font-size: 34px; line-height: 1.1; color: var(--jj-ink); font-variant-numeric: tabular-nums; }
.jj-tile span { font-size: 16px; color: var(--jj-text); }
.jj-tile small { display: block; font-size: 14px; color: var(--jj-quiet); margin-top: 2px; }
.jj-plain { list-style: none; margin: 0; padding: 0; }
.jj-plain li { padding: 10px 0; border-bottom: 1px solid var(--jj-line); overflow-wrap: anywhere; }
.jj-photo-pick { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.jj-pick { display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; margin-right: 12px; }
.jj-pick:focus-within { outline: 3px solid var(--jj-pink); outline-offset: 2px; }
.jj-hidden-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.jj-sheet-foot .jj-btn.is-side { flex: 0 1 auto; padding-inline: 16px; }
.jj-sheet-foot:has(.is-side) .jj-btn.is-main { flex-basis: 150px; }
.jj-counter { display: block; text-align: right; font-size: 14px; color: var(--jj-quiet); margin-top: 4px; }
