:root {
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color: #39324a;
  background: #f8f2e9;
  --lav: #8876ae;
  --muted: #756d80;
  --card: #fffdf9;
  --line: #e9e0d8;
  --shadow: 0 12px 34px #4e3b5f17;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 20% 5%, #fffaf2 0 20%, transparent 48%),
    linear-gradient(#f5eee8, #f8f4ed);
  -webkit-tap-highlight-color: transparent;
}
.shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: auto;
  padding: max(20px, env(safe-area-inset-top)) 18px
    calc(158px + env(safe-area-inset-bottom));
}
.login-view {
  min-height: calc(100svh - 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mascot {
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 14px 18px #59436f1f);
}
.brand {
  text-align: center;
  margin-bottom: 26px;
}
.brand h1,
.topbar h1,
.section-heading h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.brand h1 {
  font-size: 38px;
  margin: 5px;
}
.brand p {
  margin: 0;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--lav) !important;
  margin: 0;
}
.card {
  background: #fffdf9ee;
  border: 1px solid #ffffffd9;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.login-card {
  padding: 22px;
}
.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}
.login-card input {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 0 14px;
  color: inherit;
  font: inherit;
}
.login-card input:focus,
select:focus {
  outline: 3px solid #8876ae24;
  border-color: var(--lav);
}
button,
select,
input {
  font: inherit;
}
button {
  min-height: 48px;
  border: 0;
  cursor: pointer;
}
.primary {
  width: 100%;
  border-radius: 16px;
  background: var(--lav);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px #67578333;
}
button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.fine {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  margin: 13px 0 0;
}
.credential-help {
  margin: 12px 0 0;
  color: var(--lav);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 2px 22px;
}
.topbar h1 {
  font-size: 28px;
  margin: 2px 0;
}
.pill {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
  border-radius: 99px;
  background: #e9f1e8;
  color: #4e7654;
}
.pill.offline {
  background: #f4e6e3;
  color: #995764;
}
.offline-banner {
  background: #6e607f;
  color: #fff;
  padding: 11px;
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  margin: -9px 0 16px;
}
.feedback {
  font-size: 13px;
  text-align: center;
  margin: 0 0 12px;
}
.feedback:not(:empty) {
  padding: 10px;
  border-radius: 12px;
  background: #edf4eb;
  color: #59735d;
}
.feedback.error:not(:empty) {
  background: #f8e9e8;
  color: #9e4f5b;
}
.status-card {
  text-align: center;
  padding: 24px 20px;
}
.status-art {
  font-family: Georgia, serif;
  font-size: 68px;
  line-height: 0.8;
  color: #dac98c;
  height: 65px;
}
.status-art span {
  font-family: system-ui;
  font-size: 48px;
  color: #e8e0ee;
  margin-left: -25px;
}
.status-card h2 {
  font-size: 24px;
  margin: 5px 0;
}
.status-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.chips span {
  padding: 7px 11px;
  border-radius: 99px;
  background: #eee8f4;
  font-size: 12px;
  font-weight: 700;
  color: #675783;
}
.clip-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  margin-top: 12px;
  border-color: #efd3d3;
}
.clip-card b {
  font-size: 24px;
  color: #b9606c;
}
.clip-card p,
.timer-card p,
.restore-card p,
.more-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 0;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 12px 0;
}
.action-card {
  height: 118px;
  text-align: left;
  border-radius: 22px;
  padding: 15px;
  background: var(--card);
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid #fff;
}
.action-card i,
.action-card strong,
.action-card small {
  display: block;
}
.action-card i {
  color: var(--lav);
  font-size: 25px;
  height: 35px;
  font-style: normal;
}
.action-card strong {
  font-size: 14px;
}
.action-card small {
  color: var(--muted);
  margin-top: 3px;
}
.timer-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
}
.level-card {
  padding: 16px;
  margin: 12px 0;
}
.level-card label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.level-card label span,
.level-card label small,
.setting-card label small {
  display: block;
}
.level-card label small,
.setting-card label small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.level-card select {
  height: 46px;
  max-width: 52%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 0 8px;
  color: inherit;
}
.level-card button {
  width: 100%;
  margin-top: 12px;
}
.timer-card select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 0 8px;
  color: inherit;
}
.timer-card button {
  grid-column: 1/-1;
}
.soft {
  border-radius: 14px;
  padding: 0 16px;
  background: #eee8f4;
  color: #675783;
  font-weight: 800;
}
.section-heading {
  margin: 8px 3px 20px;
}
.section-heading h2 {
  font-size: 28px;
  margin: 4px 0;
}
.section-heading > p:last-child {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.settings-list {
  display: grid;
  gap: 11px;
}
.setting-card {
  padding: 16px;
}
.setting-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}
.setting-card select {
  height: 46px;
  max-width: 53%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 0 9px;
  color: inherit;
}
.setting-card button,
.restore-card button {
  width: 100%;
  margin-top: 12px;
}
.restore-card,
.more-card {
  padding: 18px;
  margin-top: 13px;
}
.danger {
  background: #f7e9e8;
  color: #9f5260;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 7px;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch span {
  width: 48px;
  height: 28px;
  border-radius: 20px;
  background: #d8d2d2;
  padding: 3px;
}
.switch span:before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--lav);
}
.switch input:checked + span:before {
  transform: translateX(20px);
}
.switch em {
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.text-button {
  display: block;
  background: transparent;
  color: #a34f5b;
  margin: 24px auto;
  font-weight: 800;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  height: calc(74px + env(safe-area-inset-bottom));
  padding: 7px 29px env(safe-area-inset-bottom);
  display: flex;
  justify-content: space-between;
  background: #fffdf9f5;
  border-top: 1px solid #eee4dd;
  backdrop-filter: blur(16px);
  z-index: 9;
}
.bottom-nav button {
  min-width: 70px;
  background: transparent;
  color: #978f99;
  font-size: 11px;
  font-weight: 700;
}
.bottom-nav span {
  display: block;
  font-size: 20px;
}
.bottom-nav button.active {
  color: #675783;
}
.stop-button {
  position: fixed;
  z-index: 10;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 444px);
  height: 54px;
  border-radius: 18px;
  background: #fff4f1;
  color: #a34f5b;
  border: 1px solid #edcfca;
  font-weight: 900;
  box-shadow: 0 10px 28px #743a4426;
}
[hidden] {
  display: none !important;
}
@media (min-width: 600px) {
  body {
    padding: 25px 0;
  }
  .shell {
    border-radius: 38px;
    background: #f8f2e9;
    box-shadow: 0 30px 90px #584a6630;
  }
  .bottom-nav {
    border-radius: 0 0 38px 38px;
  }
}
