/* Life Tracker — calme, chaleureux, lisible. Mobile d'abord (une main), puis rail latéral sur PC.
   Une teinte d'accent unique pour les données : l'intensité exprime « plus nourri », jamais « mauvais ». */
:root {
  --bg: #f6f1e9; --surface: #fffdf9; --surface2: #efe8dc; --ink: #2b2a26; --muted: #7a7468; --line: #e3dacb;
  --accent: #2f6b57; --accent-ink: #fff; --accent-soft: #dcebe4; --warm: #b9692f; --warm-soft: #f6e4d3; --gold: #b8913a;
  --shadow: 0 1px 2px rgba(60, 45, 20, .06), 0 6px 18px rgba(60, 45, 20, .06);
  --r: 18px; --tap: 48px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #181714; --surface: #221f1b; --surface2: #2b2823; --ink: #ece6da; --muted: #9d968a; --line: #38342d; --accent: #6fb89c; --accent-ink: #10231c; --accent-soft: #233a31; --warm: #e0985f; --warm-soft: #3a2b1d; --gold: #d6b25a; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.25); } }
:root[data-theme="dark"] { --bg: #181714; --surface: #221f1b; --surface2: #2b2823; --ink: #ece6da; --muted: #9d968a; --line: #38342d; --accent: #6fb89c; --accent-ink: #10231c; --accent-soft: #233a31; --warm: #e0985f; --warm-soft: #3a2b1d; --gold: #d6b25a; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.25); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .grow { flex: 1; }
.eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: block; }
.err { color: var(--warm); min-height: 1.4em; font-size: .9rem; }

/* ----- Structure */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
#shell { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#top { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
#main { padding: 4px 16px calc(96px + env(safe-area-inset-bottom)); outline: none; }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
#rail { display: none; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.navbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: .72rem; color: var(--muted); border-radius: 12px; min-height: var(--tap); justify-content: center; }
.navbtn.on { color: var(--accent); font-weight: 600; }
.ibtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--muted); }
.ibtn:hover, .ibtn.on { color: var(--accent); background: var(--accent-soft); }
#top .ibtn.on { color: var(--accent); }
.page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; animation: rise .22s ease-out; }
.page.narrow { max-width: 560px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 900px) {
  #app { flex-direction: row; }
  #tabs { display: none; }
  #top .row .ibtn { display: none; } #top .brand { display: none; } #top { justify-content: flex-end; padding: 8px 16px; min-height: 0; position: static; }
  #rail { display: flex; flex-direction: column; gap: 4px; width: 220px; padding: 22px 14px; position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line); background: var(--surface); }
  #rail .brand { padding: 0 8px 18px; }
  #rail .navbtn { flex-direction: row; gap: 12px; font-size: .95rem; padding: 10px 12px; justify-content: flex-start; min-height: 0; }
  #rail .navbtn:hover { background: var(--surface2); } #rail .navbtn.on { background: var(--accent-soft); }
  #main { padding: 8px 32px 48px; }
  #top { display: none; }
}

/* ----- Cartes, boutons, formulaires */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.card.list { padding: 4px 12px; gap: 0; }
.card.soft { background: var(--accent-soft); border-color: transparent; box-shadow: none; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.card.accent-card { border-color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.wrap { flex-wrap: wrap; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; }
.btn:hover { background: var(--surface2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; } .btn.primary:hover { filter: brightness(1.06); }
.btn.warn { background: var(--warm-soft); color: var(--warm); border-color: transparent; } .btn.ghost { background: none; border-color: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .9rem; } .btn.xl { min-height: 58px; font-size: 1.1rem; width: 100%; }
.btn.round { width: 48px; padding: 0; flex: none; } .btn.toggle.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.link { color: var(--accent); font-weight: 600; text-align: left; } .link.small { font-size: .85rem; }
input[type=text], input[type=search], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
textarea { resize: vertical; line-height: 1.45; }
input.big, textarea.big { font-size: 1.05rem; }
input[type=date].hidden-date { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; } .field > span { font-weight: 600; font-size: .95rem; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; } .check input { width: 20px; height: 20px; accent-color: var(--accent); }
.sec { margin-top: 6px; }
.seg { display: inline-flex; background: var(--surface2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg.wide { display: flex; } .seg.wide button { flex: 1; }
.seg button { min-height: 38px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .9rem; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.seg.small button { min-height: 32px; padding: 0 12px; font-size: .82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .tag, .pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; font-size: .82rem; }
.chip { min-height: 34px; padding: 0 12px; background: var(--surface2); position: relative; cursor: pointer; } .chip.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.tag { padding: 2px 10px; min-height: 28px; background: var(--accent-soft); color: var(--accent); font-weight: 500; } .tag.on { background: var(--accent); color: var(--accent-ink); } .tag.static { cursor: default; }
.tagrow:empty { display: none; }
.pill { padding: 1px 9px; background: var(--surface2); color: var(--muted); } .pill.late { background: var(--warm-soft); color: var(--warm); } .pill.hi { color: var(--warm); background: var(--warm-soft); } .pill.tg { background: var(--accent-soft); color: var(--accent); } .pill.streak { background: var(--accent-soft); color: var(--accent); }
.count { font-size: .8rem; color: var(--muted); background: var(--surface2); border-radius: 999px; padding: 1px 9px; }

/* ----- Accueil */
.hero { padding: 6px 2px 0; } .hero h1 { font-size: 1.9rem; } .hero h1::first-letter, .dn-label strong::first-letter, .day > header button::first-letter { text-transform: uppercase; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; }
.quote footer { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: 8px; }
.quote { position: relative; background: linear-gradient(160deg, var(--surface), var(--accent-soft)); } .qtools { display: flex; justify-content: flex-end; margin: -6px -8px -8px; }
.bty-t { font-family: var(--serif); font-size: 1.12rem; }
.cta { display: flex; flex-direction: column; gap: 6px; position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .cta { position: static; } }
.radar { width: 100%; max-width: 320px; margin: 0 auto; display: block; overflow: visible; }
.radar .ring { fill: none; stroke: var(--line); stroke-width: 1; } .radar .area { fill: var(--accent); fill-opacity: .22; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; } .radar .dot { fill: var(--accent); }
.radar .lbl { font-size: 11px; fill: var(--ink); font-family: var(--sans); } .radar .val { fill: var(--muted); font-size: 10px; }

/* ----- Aujourd'hui */
.datenav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dn-label { flex: 1; text-align: center; display: flex; flex-direction: column; position: relative; } .dn-label .muted::first-letter { text-transform: none; }
.intention { background: var(--warm-soft); border-radius: 14px; padding: 10px 14px; font-family: var(--serif); }
.progress { padding: 14px 16px; gap: 8px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; flex: 1; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .35s ease; } .bar.prio i { background: var(--gold); }
.group { padding: 8px 8px 12px; gap: 0; } .group > header { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 4px; }
.group > .btn { margin: 6px 8px 0; align-self: flex-start; }
.rt, .todo, .arow { display: flex; align-items: center; gap: 4px; min-height: 56px; border-radius: 14px; }
.rt + .rt, .todo + .todo, .arow + .arow { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.chk { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; margin: 0 4px 0 2px; background: var(--surface); color: transparent; transition: transform .12s, background .15s; }
.chk:active { transform: scale(.88); }
.chk.st-done, .chk.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chk.st-partial { border-color: var(--accent); } .chk .half { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border: 1.5px solid var(--accent); }
.chk.st-no { border-color: var(--muted); } .chk .dash { width: 14px; height: 2px; background: var(--muted); } .chk.st-na { border-style: dashed; color: var(--muted); } .chk .na { font-size: .62rem; }
.rt-main, .todo-main { flex: 1; text-align: left; min-height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 6px; border-radius: 12px; min-width: 0; }
.rt-name, .todo-t { overflow-wrap: anywhere; } .rt.done .rt-name { color: var(--muted); }
.todo.done .todo-t { text-decoration: line-through; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .8rem; color: var(--muted); }
.cmt, .note { font-style: italic; } .note { opacity: .85; }
.star { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.states { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-btn { min-height: 52px; border-radius: 14px; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 12px; } .st-btn.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.st-btn .ic { width: 28px; height: 28px; display: grid; place-items: center; } .st-btn .half { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border: 1.5px solid var(--accent); } .st-btn .dash { width: 12px; height: 2px; background: var(--muted); } .st-btn .na { font-size: .62rem; }
.todo-block { display: flex; flex-direction: column; gap: 10px; } .composer { gap: 8px; }
.done-det summary, .tsec summary, details.card summary { cursor: pointer; font-weight: 600; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; list-style: none; } summary::-webkit-details-marker { display: none; }
.tsec { display: flex; flex-direction: column; gap: 6px; } .tsec.late summary span:first-child { color: var(--warm); }

/* ----- Journal */
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding-left: 12px; color: var(--muted); } .searchbar input { border: 0; background: none; }
.mood-card { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.moods { display: flex; gap: 6px; } .mood { width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; display: grid; place-items: center; filter: grayscale(.7); opacity: .65; transition: transform .12s; } .mood.on { filter: none; opacity: 1; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.08); }
.day > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px 4px; } .day .dm { font-size: 1.3rem; }
.entry { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 6px 10px 12px; margin-bottom: 8px; align-items: flex-start; }
.etime { font-size: .75rem; color: var(--muted); width: 48px; flex: none; text-align: right; padding-top: 4px; line-height: 1.3; } .ebody { flex: 1; min-width: 0; } .etext { white-space: pre-wrap; overflow-wrap: anywhere; } .ehead { display: flex; gap: 6px; margin-bottom: 2px; align-items: center; }
.badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); } .badge.event { color: var(--warm); } .badge.muhasaba { color: var(--gold); } .src { font-size: .72rem; color: var(--muted); }
.entry.muhasaba { background: color-mix(in srgb, var(--gold) 9%, var(--surface)); } .muh p + p { margin-top: 4px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .dow { text-align: center; font-size: .72rem; color: var(--muted); padding-bottom: 2px; }
.cell { aspect-ratio: 1; min-height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) calc(var(--a, 0) * 100%), var(--surface2)); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .85rem; } .cell.void { background: none; }
.cell.today { box-shadow: inset 0 0 0 2px var(--accent); } .cell.future { opacity: .4; } .cell .cm { font-size: .8rem; line-height: 1; min-height: .8rem; } .dotmark { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cal-h strong::first-letter { text-transform: uppercase; }

/* ----- Rapports */
.keystats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; } .keystats.mini { grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; flex-direction: column; } .stat .sv { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; } .stat .sl { font-size: .78rem; color: var(--muted); } .stat .ss { font-size: .78rem; color: var(--accent); }
.stat.big { grid-column: 1 / -1; } .stat.big .sv { font-size: 2.8rem; color: var(--accent); }
.catbar, .catdet summary { display: grid; grid-template-columns: minmax(0, 1.2fr) 1.4fr 3.2rem; gap: 10px; align-items: center; } .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; } .cv { text-align: right; font-weight: 600; font-size: .9rem; }
.catdet { border-top: 1px solid var(--line); padding: 8px 0; } .prio-row { padding-bottom: 8px; }
.items { list-style: none; margin: 8px 0 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 4px; } .items li { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.two { display: grid; grid-template-columns: 1fr; gap: 14px; } @media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } }
.rank { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; } .rank li { padding-left: 4px; } .rank li::marker { color: var(--accent); font-weight: 700; } .rank.soft li::marker { color: var(--warm); } .rank li { display: list-item; } .rank li > span { display: inline; } .rank li b { float: right; font-weight: 600; margin-left: 10px; }
.moodstrip, .moodtrend { display: flex; justify-content: space-between; gap: 4px; } .mday, .moodtrend > div { display: flex; flex-direction: column; align-items: center; font-size: .72rem; color: var(--muted); } .mday .e, .moodtrend .e { font-size: 1.5rem; color: var(--ink); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .feed li { display: flex; gap: 10px; } .fd { width: 2.2rem; flex: none; font-size: .78rem; color: var(--muted); padding-top: 2px; } .fd::first-letter { text-transform: uppercase; }
.linechart { width: 100%; height: auto; } .linechart .grid { stroke: var(--line); stroke-dasharray: 3 4; } .linechart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; } .linechart .dot { fill: var(--accent); } .linechart .axis { font-size: 10px; fill: var(--muted); }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.heat-wrap { overflow-x: auto; } .heat { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .72rem; } .heat th { font-weight: 500; color: var(--muted); text-align: center; white-space: nowrap; padding: 0 2px; } .heat th[scope=row] { text-align: left; color: var(--ink); padding-right: 6px; }
.heat td { text-align: center; height: 30px; min-width: 28px; border-radius: 7px; background: color-mix(in srgb, var(--accent) calc(var(--a, 0) * 100%), var(--surface2)); color: var(--ink); } .heat td.empty { background: var(--surface2); opacity: .5; }
.gap { margin-top: 10px; }

/* ----- Réglages, feuilles, messages */
.srow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; min-height: 52px; } .srow select { width: auto; min-width: 9rem; } .linkrow { width: 100%; text-align: left; color: inherit; }
.arow { padding: 2px 0; justify-content: space-between; } .qrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 0; } .qrow + .qrow { border-top: 1px solid var(--line); } .qrow.off { opacity: .5; } .qtext { font-family: var(--serif); }
.sheet-ov { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 10, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .16s; } .sheet-ov.out { opacity: 0; transition: opacity .16s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateY(40px); opacity: .6; } }
.sheet > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
@media (min-width: 700px) { .sheet-ov { align-items: center; } .sheet { border-radius: 24px; } }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; z-index: 80; display: flex; gap: 14px; align-items: center; max-width: 92vw; font-size: .92rem; } .toast.in { opacity: 1; transform: translate(-50%, 0); } .toast .link { color: var(--accent-soft); }

/* ----- Verrouillage */
#lock { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 20px; overflow: auto; }
.lockbox { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; } .lockbox.welcome { max-width: 420px; }
.logo { width: 60px; height: 60px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.lock-note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: left; font-size: .92rem; }
.dots { display: flex; gap: 14px; height: 18px; margin: 6px 0; } .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); } .dots i.on { background: var(--accent); border-color: var(--accent); }
.dots.shake { animation: shake .35s; } @keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 280px; }
.key { height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 1.5rem; display: grid; place-items: center; width: 64px; justify-self: center; } .key:active { background: var(--accent-soft); } .key.txt { font-size: .85rem; border: 0; background: none; } .key.ok { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.code { display: block; background: var(--surface2); border-radius: 10px; padding: 8px 10px; font-size: .8rem; overflow-wrap: anywhere; user-select: all; }
