/* New GUI 1 (app/gui.py): the one-screen Today (templates/today_new1.html) and the dock of five.
   Bold Bento look: the --t-* colour tiles, black pill buttons, big headlines with a grey second word. */
.n1 { display: grid; gap: 22px; max-width: 1080px; margin: 0 auto; min-width: 0; }
.n1 h2 { margin: 0; flex-wrap: wrap; font-size: 1.35rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
:root .n1 .n1-hello h1 { margin: 0; font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
:root .n1 .n1-hello h1 span { color: var(--text-3); }
.n1-hello p { margin: 10px 0 0; font-size: 1.05rem; color: var(--text-2); max-width: 62ch; }
.n1-hello p b { color: var(--text); }

.n1-value { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 16px 20px; border-radius: 22px; background: var(--t-ink, #12151a); color: #fff; }
.n1-value .n1-lbl { width: 100%; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.n1-value div { display: grid; min-width: 0; }
.n1-value strong { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.n1-value small { font-size: .8rem; opacity: .75; }
.n1-value a { margin-left: auto; color: #fff; opacity: .8; font-size: .85rem; }

.n1-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.n1-tile { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 16px 18px; border-radius: 22px; color: #fff; text-decoration: none; }
.n1-tile.t-ink { background: var(--t-ink, #12151a); } .n1-tile.t-violet { background: var(--t-violet, #6d28d9); } .n1-tile.t-blue { background: var(--t-blue, #3446f2); }
.n1-tile small { font-size: .82rem; opacity: .85; }
.n1-tile strong { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n1-delta { justify-self: start; font-style: normal; font-size: .75rem; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.n1-spark { width: 100%; height: 30px; margin-top: 4px; }
.n1-spark polyline { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.n1-moves { display: grid; gap: 10px; }
.n1-moves h2 i { font-style: normal; font-size: .8rem; padding: 1px 9px; border-radius: 999px; background: var(--text); color: var(--bg); }
.n1-move { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.n1-move.learning { grid-template-columns: 72px minmax(0, 1fr); opacity: .78; }
.n1-thumb { position: relative; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.n1-thumb img { width: 100%; height: 100%; object-fit: cover; }
.n1-thumb.src-meta, .n1-thumb.src-google { background: var(--t-blue, #3446f2); } .n1-thumb.src-business { background: var(--t-ink, #12151a); }
.learning .n1-thumb { filter: grayscale(1); }
.n1-thumb.play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 16px solid rgba(255, 255, 255, .95); border-top: 10px solid transparent; border-bottom: 10px solid transparent; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.n1-move-text { display: grid; gap: 3px; min-width: 0; }
.n1-move-text b { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.n1-move-text p { margin: 0; color: var(--text-2); font-size: .88rem; overflow-wrap: anywhere; }
.n1-chip { justify-self: start; font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; background: var(--t-ink, #12151a); }
.n1-chip.src-meta, .n1-chip.src-google { background: #3446f2; }
.n1-chip.grey { background: var(--line-strong, rgba(120, 120, 140, .25)); color: var(--text-2); }
.n1-gain { font-size: .8rem; font-weight: 600; color: var(--good, #0b8a5a); }
.n1-acts { display: grid; gap: 6px; justify-items: end; }
.n1-acts .btn { white-space: nowrap; }
.n1-why, .n1-more { font-size: .85rem; font-weight: 600; }
.n1-more { justify-self: start; }
.n1-empty { margin: 0; color: var(--text-2); }

.n1-card { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.n1-card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.n1-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 130px; align-items: end; }
.n1-bar { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; min-width: 0; }
.n1-bar span { align-self: end; border-radius: 10px 10px 4px 4px; background: rgba(139, 92, 246, .35); }
.n1-bar.best span { background: #8b5cf6; }
.n1-bar small { font-size: .75rem; color: var(--text-3); text-transform: capitalize; }
.n1-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .8rem; color: var(--text-2); }
.n1-key i { display: inline-block; width: 12px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.n1-key .k-day { background: rgba(139, 92, 246, .35); } .n1-key .k-best { background: #8b5cf6; }
.n1-outcome { margin: 0; font-size: .92rem; }

.n1-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.n1-setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.n1-setup a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.n1-ask { display: flex; gap: 8px; }
.n1-ask input { flex: 1; min-width: 0; }
.n1-answer summary { cursor: pointer; font-weight: 600; }
.n1-answer p { white-space: pre-line; color: var(--text-2); }
.n1-all { text-align: center; margin: 0; }

/* the GUI chip in the top bar */
.gui-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; background: #8b5cf6; color: #fff; }
.gui-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ee0a1; }
.gui-chip-alt { padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .35); font-weight: 500; opacity: .85; }
.gui-chip.try { background: transparent; color: var(--text); border: 1px dashed var(--line-strong, rgba(120, 120, 140, .4)); }

@media (max-width: 760px) {
  .n1-tiles { grid-template-columns: 1fr 1fr; }
  .n1-tiles .n1-tile:first-child { grid-column: 1 / -1; }
  .n1-move { grid-template-columns: 56px minmax(0, 1fr); }
  .n1-move .n1-thumb { width: 56px; height: 56px; }
  .n1-acts { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
  .n1-acts form .btn { width: 100%; }
  .n1-value a { margin-left: 0; }
}
@media (max-width: 440px) { .gv-top .gui-chip { display: none; } }  /* the account menu has the switch on a phone */
@media (max-width: 380px) { .n1-tiles { grid-template-columns: 1fr; } }
