/* ============================================================
   «Сегодня» — дневник дня. Тёмная тема в духе iOS.
   ============================================================ */

:root {
  --green:   #34c759;
  --orange:  #f7911e;
  --indigo:  #7b7cf0;
  --magenta: #e040d0;
  --red:     #f0454e;
  --blue:    #1a8cf5;

  /* цвета календарных разделов — как в оригинале */
  --blue-bright: #2f86f6;   /* впереди */
  --blue-dark:   #1f3a5c;   /* уже прошло */
  --red-today:   #f8434f;   /* сегодня */

  --bg:      #000;
  --panel:   rgba(28,28,30,.92);
  --hair:    rgba(255,255,255,.10);
  --text:    #fff;
  --muted:   rgba(255,255,255,.55);
  --r:       22px;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  overscroll-behavior-y: none;
}

body { -webkit-user-select: none; user-select: none; }

#app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 14px) 12px 0;
}

/* Внутри Telegram свой заголовок сверху — отступ под статус-бар не нужен */
body.in-telegram #app { padding-top: 12px; }
body.in-telegram .dock { padding-bottom: 0; }

/* ---------- Шапка ---------- */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
}
.topbar h1 {
  margin: 0;
  font: 700 28px/1.12 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  letter-spacing: -.4px;
}
.hint-badge {
  vertical-align: middle;
  margin-left: 7px;
  width: 17px; height: 17px;
  border: 0; border-radius: 50%;
  background: var(--blue-bright);
  color: #fff;
  font: 600 11px/17px -apple-system, sans-serif;
  padding: 0;
  cursor: pointer;
}
.hint-badge[hidden] { display: none; }

.topbar p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.topbar-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.sync-badge {
  margin-top: 7px;
  border: 0;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font: 400 11px/1 -apple-system, sans-serif;
  padding: 5px 9px 5px 20px;
  position: relative;
  cursor: pointer;
}
.sync-badge::before {
  content: '';
  position: absolute;
  left: 9px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.sync-badge[data-state="ok"]::before      { background: var(--green); }
.sync-badge[data-state="pending"]::before { background: var(--orange); }
.sync-badge[data-state="error"]::before   { background: var(--red); }

.round-btn {
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: var(--accent, #2f6df6);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
}
.round-btn:active { transform: scale(.94); }
.round-btn[hidden] { display: none; }   /* иначе display:grid перебивает hidden */
.round-btn.avatar {
  background: #3a3a3c center/cover no-repeat;
  font-size: 18px;
}

/* ---------- Навигация по датам ---------- */
.datenav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 4px 10px;
}
.datenav[hidden] { display: none; }
.datenav-btn {
  width: 38px; height: 32px;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer;
}
.datenav-today {
  flex: 1;
  height: 32px;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.datenav-btn:active, .datenav-today:active { background: rgba(255,255,255,.2); }

/* ---------- Экраны ---------- */
#screens { flex: 1; }
.screen[hidden] { display: none; }

/* ---------- Сетка карточек ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: var(--r);
  padding: 16px 16px 14px;
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform .12s ease;
}
.card:active { transform: scale(.985); }
.card-half { grid-column: span 1; min-height: 168px; }
.card-half.short { min-height: 104px; }
.card-full  { grid-column: span 2; }

.c-green   { background: var(--green); }
.c-orange  { background: var(--orange); }
.c-indigo  { background: var(--indigo); }
.c-magenta { background: var(--magenta); }
.c-red     { background: var(--red); }
.c-blue    { background: var(--blue); }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.card-title {
  font: 700 21px/1.15 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  letter-spacing: -.2px;
}
.ic {
  width: 22px; height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
}
.ic circle { fill: #fff; stroke: none; }

.card-body {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.card-body.filled { color: #fff; }
.card-foot {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* задачи в превью */
.task-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.task-preview li {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px;
}
.task-preview .circle {
  width: 21px; height: 21px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
}
.task-preview .circle.on { background: rgba(255,255,255,.9); color: var(--indigo); border-color: transparent; }
.task-preview .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-preview li.done .t { text-decoration: line-through; opacity: .65; }
.task-preview .empty { color: rgba(255,255,255,.7); font-size: 15px; }

/* привычки в превью */
.habit-preview { display: grid; gap: 8px; }
.habit-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; }
.habit-row .n {
  font-size: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hbar { height: 9px; border-radius: 5px; background: rgba(255,255,255,.30); overflow: hidden; }
.hbar > i { display: block; height: 100%; background: #fff; border-radius: 5px; }

/* фото-превью */
.photo-strip { display: flex; gap: 6px; margin-top: 2px; }
.photo-strip img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }

/* ---------- Панели статистики (неделя/месяц/год/жизнь) ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.stat {
  background: var(--panel);
  border-radius: 16px;
  padding: 12px 12px 11px;
  text-align: center;
}
.stat .v { font: 700 24px/1 -apple-system, "SF Pro Display", sans-serif; }
.stat .k { margin-top: 5px; font-size: 12px; color: var(--muted); }

.panel {
  background: var(--panel);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
}
.panel-title {
  font: 600 15px/1.2 -apple-system, sans-serif;
  color: var(--muted);
  margin-bottom: 12px;
}

.legend {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 12px;
  font-size: 12px; color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-block;
}
.dot.filled { background: #fff; }
.dot.c-green { background: var(--green); }
.dot.c-orange { background: var(--orange); }
.dot.c-indigo { background: var(--indigo); }
.dot.c-magenta { background: var(--magenta); }

/* ---------- Неделя: плашка на каждый день ---------- */
.daylist { display: grid; gap: 10px; }
.dayrow {
  border: 0;
  border-radius: 14px;
  padding: 11px 14px 13px;
  min-height: 62px;
  text-align: left;
  color: #fff;
  font: inherit;
  cursor: pointer;
  display: block;
}
.dayrow .dr-date {
  font: 600 10.5px/1.2 -apple-system, sans-serif;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.dayrow .dr-body {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #fff;
  white-space: pre-wrap;
}
.dayrow.future { background: var(--blue-bright); }
.dayrow.today  { background: var(--red-today); }
.dayrow.past   { background: var(--blue-dark); }

/* ---------- Месяц: кружки-числа ---------- */
.cal-head {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px; margin: 4px 0 12px;
  font: 400 13px/1 -apple-system, sans-serif;
  color: #fff; text-align: center;
}
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px 6px; }
.cell-wrap { display: grid; justify-items: center; gap: 4px; }
.cell {
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font: 500 13px/1 -apple-system, sans-serif;
  display: grid; place-items: center;
  cursor: pointer;
  padding: 0;
}
.cell.blank { background: none; cursor: default; }
.cell.future { background: var(--blue-bright); }
.cell.today  { background: var(--red-today); }
.mark { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.mark.on { background: var(--blue-bright); }
.mark.on.today { background: var(--red-today); }

/* ---------- Год: двенадцать блоков по дням ---------- */
.yeargrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
.ymonth .ym-name {
  font: 400 13px/1 -apple-system, sans-serif;
  color: #fff;
  margin-bottom: 7px;
}
.ym-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ym-days i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-dark);
  display: block;
}
.ym-days i.future { background: var(--blue-bright); }
.ym-days i.today  { background: var(--red-today); }
.ym-days i.marked { background: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }

/* ---------- Жизнь: один круг равен году ---------- */
.lifegrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.lifegrid b {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-dark);
  display: grid;
  place-items: center;
  font: 400 15px/1 -apple-system, sans-serif;
  cursor: pointer;
}
.lifegrid b.future { background: var(--blue-bright); }
.lifegrid b.now    { background: var(--red-today); }

/* ---------- Нижний блок ---------- */
.dock {
  position: sticky;
  bottom: 0;
  margin-top: 14px;
  padding-top: 8px;
  background: #000;
}
/* мягкая кромка, чтобы карточки уходили под блок без резкой линии */
.dock::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  height: 22px;
  background: linear-gradient(to top, #000, rgba(0,0,0,0));
  pointer-events: none;
}

/* ---------- Остаток времени ---------- */
.remaining { padding: 6px 6px 10px; }
.remaining-label { font-size: 14px; color: var(--muted); }
.remaining-value {
  font: 700 22px/1.2 -apple-system, "SF Pro Display", sans-serif;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 8px;
}
.remaining-track { height: 12px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.remaining-fill { height: 100%; background: #2f6df6; border-radius: 6px; transition: width .4s linear; }

/* ---------- Табы ---------- */
.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 4px;
  margin: 0 0 calc(var(--safe-b) + 8px);
  background: rgba(28,28,30,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
}
.tab {
  border: 0; border-radius: 10px;
  background: none;
  color: var(--muted);
  font: 400 15px/1 -apple-system, sans-serif;
  padding: 11px 0;
  cursor: pointer;
}
.tab.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 500; }

/* ---------- Модальный лист: как экраны разделов в оригинале ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-wrap[hidden] { display: none; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  animation: fade .2s ease;
}
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 560px; margin: 0 auto;
  max-height: 94vh;
  display: flex; flex-direction: column;
  background: #0d0d0f;
  border-radius: 20px 20px 0 0;
  padding: 10px 14px calc(var(--safe-b) + 12px);
  animation: rise .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { transform: translateY(100%) } }

.sheet-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 30px;
}
.sheet-left {
  border: 0; background: none;
  color: #2f8df6;
  font: 400 14px/1 -apple-system, sans-serif;
  padding: 4px 0; cursor: pointer;
}
.sheet-left[hidden] { display: none; }
.sheet-close {
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.75);
  font-size: 13px; line-height: 1;
  cursor: pointer;
  margin-left: auto;
}
.sheet-title {
  margin: 6px 0 0;
  font: 700 25px/1.15 -apple-system, "SF Pro Display", sans-serif;
  letter-spacing: -.3px;
  color: var(--sheet-accent, #fff);
}
.sheet-date {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.sheet-body {
  margin-top: 14px;
  padding-bottom: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.sheet-footer { padding-top: 10px; }
.sheet-footer[hidden] { display: none; }

/* кнопка «Создать …» снизу, в тон раздела */
.create-btn {
  width: 100%;
  border: 0; border-radius: 14px;
  background: var(--sheet-soft, rgba(255,255,255,.10));
  color: #fff;
  font: 500 15px/1 -apple-system, sans-serif;
  padding: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.create-btn:active { filter: brightness(1.25); }
.create-btn .plus {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sheet-accent, #fff);
  color: #000;
  font-size: 12px; line-height: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* поля внутри листа */
textarea.field, input.field {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--hair);
  border-radius: 14px;
  color: #fff;
  font: 400 17px/1.4 -apple-system, sans-serif;
  padding: 13px 14px;
  -webkit-user-select: text; user-select: text;
}
textarea.field { min-height: 190px; resize: vertical; }
input.field { -webkit-appearance: none; }
.field:focus { outline: none; border-color: rgba(255,255,255,.3); }

.hint { color: var(--muted); font-size: 13px; margin: 10px 2px 0; }

.add-row { display: flex; gap: 8px; margin-bottom: 14px; }
.add-row input.field { flex: 1; }
.add-btn {
  width: 48px; border: 0; border-radius: 14px;
  background: #2f6df6; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
}

.list { display: grid; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 12px;
  background: #1c1c1e;
  border-radius: 14px;
  padding: 15px 14px;
}
.item .num {
  text-align: right; flex-shrink: 0;
  font: 600 15px/1.1 -apple-system, sans-serif;
}
.item .num span {
  display: block;
  font: 400 11px/1.2 -apple-system, sans-serif;
  color: var(--muted);
}
.item .check {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1.7px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: none;
  display: grid; place-items: center;
  color: #000; font-size: 13px;
  cursor: pointer;
}
.item .check.on { background: var(--green); border-color: var(--green); }
.item .label { flex: 1; font-size: 16px; }
.item.done .label { text-decoration: line-through; color: var(--muted); }
.item .del {
  border: 0; background: none; color: rgba(255,255,255,.35);
  font-size: 20px; cursor: pointer; padding: 0 2px;
}

/* привычки внутри листа */
.hitem {
  background: #1c1c1e;
  border-radius: 14px;
  padding: 12px 14px;
}
.hitem-top { display: flex; align-items: center; gap: 10px; }
.hitem .hname { flex: 1; font-size: 16px; }
.hitem .hcount { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--muted); min-width: 54px; text-align: right; }
.step {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer;
}
.step:active { background: rgba(255,255,255,.3); }
.hitem .hbar { margin-top: 10px; background: rgba(255,255,255,.12); }
.hitem .hbar > i { background: var(--magenta); }
.hitem.full .hbar > i { background: var(--green); }

.mood-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mood {
  aspect-ratio: 1;
  border: 0; border-radius: 16px;
  background: rgba(255,255,255,.07);
  font-size: 30px;
  cursor: pointer;
}
.mood.on { background: #2f6df6; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid figure { position: relative; margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.photo-grid .rm {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 1;
  cursor: pointer;
}
.big-btn {
  width: 100%; border: 0; border-radius: 16px;
  background: #2f6df6; color: #fff;
  font: 600 17px/1 -apple-system, sans-serif;
  padding: 16px; margin-bottom: 14px;
  cursor: pointer;
}
.ghost-btn {
  width: 100%; border: 1px solid var(--hair); border-radius: 16px;
  background: none; color: #fff;
  font: 400 16px/1 -apple-system, sans-serif;
  padding: 14px; margin-top: 10px;
  cursor: pointer;
}
.field-label { font-size: 13px; color: var(--muted); margin: 14px 2px 6px; }
.field-label:first-child { margin-top: 0; }

/* ---------- Свёрнутая секция («Позже» в задачах) ---------- */
.fold {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 14px 0 8px;
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  font: 400 12px/1 -apple-system, sans-serif;
  padding: 6px 9px;
  cursor: pointer;
}
.fold .chev { transition: transform .15s ease; display: inline-block; }
.fold.open .chev { transform: rotate(90deg); }

/* ---------- Настройки ---------- */
.set-group { margin-bottom: 22px; }
.set-group-title {
  font: 400 11.5px/1 -apple-system, sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 4px 8px;
}
.set-list { border-radius: 14px; overflow: hidden; background: #1c1c1e; }
.set-row {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  border: 0; background: none;
  color: #fff;
  font: 400 16px/1.2 -apple-system, sans-serif;
  padding: 15px 14px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.set-row:last-child { border-bottom: 0; }
.set-row .set-ic { width: 20px; text-align: center; flex-shrink: 0; opacity: .8; }
.set-row .set-label { flex: 1; }
.set-row .set-value { color: var(--muted); font-size: 15px; }
.set-row .set-chev { color: rgba(255,255,255,.3); font-size: 17px; }

/* переключатель */
.switch {
  width: 51px; height: 31px; flex-shrink: 0;
  border: 0; border-radius: 16px;
  background: rgba(255,255,255,.18);
  position: relative;
  cursor: pointer;
  transition: background .18s ease;
}
.switch.on { background: var(--green); }
.switch::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.switch.on::after { transform: translateX(20px); }

/* палитра акцентных цветов в профиле */
.swatches { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}
.swatch.none {
  background: none; color: #fff;
  display: grid; place-items: center; font-size: 15px;
}
.swatch.on { border-color: #fff; }

/* Таймер выключен в настройках — остаётся только полоса табов */
.dock.no-timer .remaining { display: none; }

/* Процент внутри полосы остатка */
.remaining-fill {
  display: flex; align-items: center; justify-content: flex-end;
  min-width: 34px;
  padding-right: 6px;
}
.remaining-fill span {
  font: 600 10px/1 -apple-system, sans-serif;
  color: #fff;
}
.remaining-track { height: 15px; border-radius: 8px; }
.remaining-fill { border-radius: 8px; background: var(--accent, #2f6df6); }
.tab.active { background: rgba(255,255,255,.14); }

/* ---------- Код на вход ---------- */
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 10px 0 6px; }
.pin-dots i {
  width: 13px; height: 13px; border-radius: 50%;
  background: none;
  box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.55);
}
.pin-dots i.on { background: #fff; box-shadow: none; }

.pin-error {
  min-height: 18px; margin: 0 0 10px;
  text-align: center; font-size: 13px; color: var(--red);
}

.pin-pad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; max-width: 300px; margin: 0 auto;
}
.pin-key {
  aspect-ratio: 1.35;
  border: 0; border-radius: 14px;
  background: #1c1c1e;
  color: #fff;
  font: 400 24px/1 -apple-system, sans-serif;
  cursor: pointer;
}
.pin-key:active { background: #2c2c2e; }
