:root {
  --bg: #f5f8fc;
  --ink: #101722;
  --muted: #647386;
  --line: #d9e5f1;
  --panel: #ffffff;
  --field: #f8fbff;
  --blue: #1f5f99;
  --blue-2: #2f7ab8;
  --red: #b95146;
  --shadow: 0 18px 48px rgba(20, 46, 77, 0.13);
  --soft: 0 10px 26px rgba(20, 46, 77, 0.08);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app::-webkit-scrollbar,
.content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 252, 0.96)),
    linear-gradient(135deg, rgba(31, 95, 153, 0.1), transparent 42%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

#app,
.app,
.login {
  max-width: 100%;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  line-height: 1.05;
  overflow: hidden;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

button > span {
  min-width: 0;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.app {
  width: min(450px, 100%);
  margin: 0 auto;
  padding: 12px 12px 118px;
  overflow-x: hidden;
}

.hero,
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft);
}

.hero {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.brandBar {
  display: grid;
  min-height: 34px;
  place-items: center;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 950;
}

.dateBlock,
.panel,
.card {
  padding: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  display: grid;
  gap: 3px;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 0.98;
}

h1 span {
  color: var(--blue);
  font-size: 0.86rem;
}

h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1.08;
}

.muted {
  color: var(--muted);
  line-height: 1.45;
}

.dateNav,
.row,
.timeRow,
.durationPicker,
.stats {
  display: grid;
  gap: 8px;
}

.dateNav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
  border-top: 1px solid var(--line);
}

.dateNav button,
.primary,
.secondary,
.danger {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 950;
}

.iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.buttonIcon,
.navIcon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
}

.navIcon-home::before {
  content: "";
  position: absolute;
  inset: 6px 3px 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.navIcon-home::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.navIcon-star::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
}

.navIcon-poll::before,
.navIcon-poll::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 4px;
  border-radius: 2px;
  background: currentColor;
}

.navIcon-poll::before {
  left: 3px;
  height: 9px;
  box-shadow: 6px -5px 0 currentColor, 12px -2px 0 currentColor;
}

.navIcon-profile::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.navIcon-profile::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 2px;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 3px 3px;
}

.iconPrev::before,
.iconNext::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.iconPrev::before {
  left: 6px;
  transform: rotate(-45deg);
}

.iconNext::before {
  right: 6px;
  transform: rotate(135deg);
}

.iconToday::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.iconToday::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 4px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.iconLogout::before {
  content: "";
  position: absolute;
  inset: 3px 7px 3px 2px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.iconLogout::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 8px;
  width: 11px;
  height: 2px;
  background: currentColor;
  box-shadow: -3px -3px 0 -1px currentColor, -3px 3px 0 -1px currentColor;
}

.iconKey::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.iconKey::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 3px 3px 0 currentColor;
}

.primary {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  color: #fff;
}

.secondary {
  background: #fff;
  color: var(--ink);
}

.danger {
  background: #fff;
  color: var(--red);
}

.content {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.topLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.identity,
.personButton {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 950;
}

.identity strong,
.identity small,
.personButton strong,
.personButton small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity small,
.personButton small {
  color: var(--muted);
}

.scoreBox {
  display: grid;
  place-items: center;
  width: 86px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 6px;
  overflow: hidden;
}

.compactScore {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.compactScore strong {
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
}

.compactScore .stars {
  display: grid;
  grid-template-columns: repeat(5, 8px);
  gap: 1px;
  min-width: 0;
}

.compactScore .stars i {
  display: grid;
  width: 8px;
  height: 8px;
  place-items: center;
  border: 1px solid #d5e0eb;
  border-radius: 2px;
  background: #fff;
}

.compactScore .stars i::before {
  content: "";
  width: 5px;
  height: 5px;
  background: transparent;
  clip-path: polygon(50% 0%, 61% 34%, 97% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 3% 35%, 39% 34%);
}

.stars {
  display: grid;
  grid-template-columns: repeat(5, 22px);
  gap: 4px;
}

.stars i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #d5e0eb;
  border-radius: 7px;
  background: #fff;
}

.stars i::before {
  content: "";
  width: 12px;
  height: 12px;
  background: transparent;
  clip-path: polygon(50% 0%, 61% 34%, 97% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 3% 35%, 39% 34%);
}

.stars.negative .filled {
  border-color: var(--red);
  background: var(--red);
}

.stars.positive .filled {
  border-color: var(--blue);
  background: var(--blue);
}

.stars.neutral .filled {
  border-color: #6f7d8d;
  background: #6f7d8d;
}

.stars .filled::before {
  background: #fff;
}

.personCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
}

.personCard .identity {
  grid-column: 1;
  min-width: 0;
}

.personCard .scoreBox {
  grid-column: 2;
  grid-row: 1;
}

.personCard > .muted {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 0.84rem;
}

.personButton {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 10px;
}

.personButton.active {
  border-color: var(--blue);
  background: #fff;
  box-shadow: inset 4px 0 0 var(--blue);
}

label,
.fieldTitle {
  display: grid;
  gap: 7px;
  color: #46566a;
  font-size: 0.84rem;
  font-weight: 950;
}

input,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 0 11px;
}

textarea {
  min-height: 106px;
  padding: 11px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 153, 0.14);
}

.ratingReadout {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.ratingReadout strong {
  display: grid;
  min-height: 64px;
  place-items: center;
  border-radius: 8px;
  background: #101722;
  color: #fff;
  font-size: 2rem;
}

.scoreSlider {
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--blue);
}

.ticks,
.pollTimes {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.issueGrid,
.durationPicker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.issueGrid {
  display: grid;
  gap: 8px;
}

.issueGrid button,
.durationPicker button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.issueGrid .active,
.durationPicker .active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.optionRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.pollDateRow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pollDateRow input {
  min-height: 40px;
  padding: 0 8px;
  font-size: 0.84rem;
}

.xButton {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(185, 81, 70, 0.24);
  border-radius: 8px;
  background: #fff;
}

.xButton::before,
.xButton::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 19px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
}

.xButton::before {
  transform: rotate(45deg);
}

.xButton::after {
  transform: rotate(-45deg);
}

.pollOption {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
}

.pollOption.active {
  border-color: var(--blue);
  background: #eef6ff;
}

.optionLine {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 950;
}

.bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e3edf7;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

.pill {
  border: 1px solid rgba(31, 95, 153, 0.18);
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--blue);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 950;
}

.compactPanel,
.miniPoll,
.commentStack {
  display: grid;
  gap: 8px;
}

.cardComments {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.flush {
  margin-bottom: 0;
}

.miniPoll {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 10px;
}

.miniPoll > strong {
  font-size: 0.94rem;
  line-height: 1.18;
}

.pollOption.mini {
  min-height: 48px;
  padding: 8px 10px;
}

.commentCard {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 10px;
}

.commentCard strong,
.commentCard small {
  display: block;
}

.commentCard small {
  color: var(--muted);
  font-weight: 800;
}

.commentCard p {
  margin: 5px 0 0;
  color: var(--ink);
  line-height: 1.35;
}

.scoreChip {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
}

.scoreChip.bad {
  background: var(--red);
}

.ratingHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notice {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(31, 95, 153, 0.18);
  border-radius: 8px;
  background: #eef6ff;
  color: var(--ink);
  padding: 10px;
}

.notice span {
  color: var(--muted);
  font-weight: 800;
}

.bottomNav {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: min(430px, calc(100% - 16px));
  max-width: calc(100dvw - 16px);
  transform: translateX(-50%);
  border: 1px solid rgba(16, 23, 34, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px;
  box-shadow: 0 18px 50px rgba(20, 46, 77, 0.18);
}

.bottomNav button {
  display: grid;
  grid-template-rows: 16px auto;
  gap: 3px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #566273;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  padding: 5px 2px;
}

.bottomNav .active {
  background: #101722;
  color: #fff;
}

.login {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 20px;
}

.login::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 95, 153, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 95, 153, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.loginCard {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  width: min(880px, 100%);
  overflow: hidden;
  border: 1px solid rgba(31, 95, 153, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 41, 70, 0.2);
}

.loginBrand {
  display: grid;
  align-content: space-between;
  gap: 34px;
  min-height: 520px;
  background:
    linear-gradient(145deg, rgba(16, 23, 34, 0.92), rgba(31, 95, 153, 0.92)),
    #101722;
  color: #fff;
  padding: 34px;
}

.loginBrand .eyebrow,
.loginBrand h1 span,
.loginBrand .muted {
  color: #cfe7fa;
}

.loginBrand h1 {
  color: #fff;
  font-size: 3.25rem;
}

.loginBadge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.loginBadge span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 950;
}

.loginBadge i {
  display: block;
  width: min(210px, 52%);
  height: 15px;
  border-top: 2px solid rgba(255, 255, 255, 0.42);
  border-bottom: 2px solid rgba(255, 255, 255, 0.42);
}

.stampGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stampGrid span {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.loginPanel {
  display: grid;
  align-content: center;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  padding: 34px;
}

.loginHeader h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.loginHeader .muted {
  margin-bottom: 0;
}

.loginPanel label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.loginPanel input {
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid rgba(31, 95, 153, 0.18);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.loginButton {
  min-height: 50px;
  margin-top: 2px;
}

.loginFoot {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 760px) {
  body {
    background: var(--bg);
  }

  button:hover {
    transform: none;
  }

  .app {
    width: 100%;
    min-height: 100dvh;
    padding: 0 0 calc(132px + env(safe-area-inset-bottom));
  }

  .hero {
    position: sticky;
    top: 0;
    z-index: 10;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 12px 26px rgba(20, 46, 77, 0.1);
  }

  .brandBar {
    min-height: 30px;
    font-size: 0.72rem;
  }

  .dateBlock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px 12px;
    padding: 8px 12px;
  }

  .dateBlock .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
    font-size: 0.68rem;
  }

  .dateBlock h1 {
    margin-bottom: 0;
    font-size: 1.42rem;
    line-height: 0.98;
  }

  .dateBlock h1 span {
    font-size: 0.78rem;
  }

  .dateYear,
  .dateBlock .muted {
    margin-bottom: 0;
    font-size: 0.86rem;
  }

  .dateNav {
    gap: 6px;
    padding: 7px 10px;
  }

  .dateNav button,
  .primary,
  .secondary,
  .danger {
    min-height: 38px;
    border-radius: 8px;
    padding: 0 7px;
    font-size: 0.8rem;
  }

  .content {
    gap: 10px;
    margin-top: 0;
    padding: 10px 10px calc(110px + env(safe-area-inset-bottom));
  }

  .panel,
  .card {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(20, 46, 77, 0.07);
  }

  .panel,
  .card,
  .dateBlock {
    padding: 12px;
  }

  .topLine {
    align-items: center;
  }

  .topLine h2 {
    font-size: 1.08rem;
  }

  .topLine .primary {
    min-width: 72px;
  }

  .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
  }

  .avatar {
    width: 38px;
    height: 38px;
    font-size: 0.7rem;
  }

  .identity,
  .personButton {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .card .identity {
    grid-column: 1;
    min-width: 0;
  }

  .scoreBox {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 74px;
    margin-top: 0;
    padding: 5px;
    text-align: center;
  }

  .compactScore {
    grid-template-columns: 1fr;
    gap: 3px;
    justify-items: center;
  }

  .compactScore strong {
    font-size: 0.84rem;
  }

  .card > .muted {
    grid-column: 1 / -1;
    margin-bottom: 0;
    font-size: 0.84rem;
  }

  .stars {
    grid-template-columns: repeat(5, 22px);
    gap: 4px;
  }

  .stars i {
    width: 22px;
    height: 22px;
  }

  .compactScore .stars {
    grid-template-columns: repeat(5, 7px);
    gap: 1px;
  }

  .compactScore .stars i {
    width: 7px;
    height: 7px;
  }

  .compactScore .stars i::before {
    width: 4px;
    height: 4px;
  }

  .ratingReadout {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 9px;
  }

  .ratingReadout strong {
    min-height: 48px;
    font-size: 1.38rem;
  }

  .scoreSlider {
    height: 34px;
  }

  .issueGrid,
  .durationPicker,
  .pollDateRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .issueGrid {
    gap: 7px;
  }

  .issueGrid button,
  .durationPicker button,
  .pollOption {
    border-radius: 8px;
    min-height: 38px;
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  label,
  .fieldTitle {
    font-size: 0.88rem;
  }

  textarea {
    min-height: 88px;
  }

  [data-action="submit-rating"],
  [data-action="create-poll"],
  [data-action="add-person"],
  [data-action="add-user"],
  [data-action="change-password"] {
    margin-bottom: 76px;
  }

  .bottomNav {
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 50%;
    width: calc(100% - 16px);
    max-width: calc(100dvw - 16px);
    transform: translateX(-50%);
    gap: 4px;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 10px 32px rgba(20, 46, 77, 0.18);
  }

  .bottomNav button {
    display: grid;
    grid-template-rows: 16px auto;
    gap: 3px;
    min-height: 44px;
    border-radius: 999px;
    font-size: 0.66rem;
    padding: 5px 1px;
  }

  .bottomNav .navIcon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    justify-self: center;
  }

  .bottomNav .active {
    background: linear-gradient(180deg, var(--blue-2), var(--blue));
  }

  .login {
    min-height: 100dvh;
    padding: 0;
    background: var(--bg);
  }

  .login::before {
    display: none;
  }

  .loginCard {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .loginBrand {
    min-height: 270px;
    padding: 24px;
  }

  .loginBrand h1 {
    font-size: 2.35rem;
  }

  .loginPanel {
    align-content: start;
    padding: 22px 24px calc(24px + env(safe-area-inset-bottom));
  }
}

.error {
  border: 1px solid rgba(185, 81, 70, 0.24);
  border-radius: 8px;
  background: #fff4f2;
  color: var(--red);
  padding: 10px;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

@media (max-width: 420px) {
  h2 {
    font-size: 1.24rem;
  }

  .panel,
  .card,
  .dateBlock {
    padding: 10px;
  }

  .identity strong,
  .personButton strong {
    font-size: 0.94rem;
  }

  .identity small,
  .personButton small,
  .muted {
    font-size: 0.82rem;
  }

  .stars {
    grid-template-columns: repeat(5, 19px);
  }

  .stars i {
    width: 19px;
    height: 19px;
  }

  .compactScore .stars {
    grid-template-columns: repeat(5, 7px);
  }

  .compactScore .stars i {
    width: 7px;
    height: 7px;
  }

  .stampGrid span {
    min-height: 64px;
    font-size: 0.72rem;
  }
}

@media (max-width: 340px) {
  .dateNav {
    grid-template-columns: 1fr 0.86fr 1fr;
  }

  .dateNav button,
  .primary,
  .secondary,
  .danger {
    font-size: 0.72rem;
  }

  .buttonIcon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .issueGrid,
  .durationPicker,
  .pollDateRow {
    grid-template-columns: 1fr;
  }
}
