/* ==========================================================================
   摆烂社 · sticker / paper / deadline board
   Palette follows the cover: warm paper, heavy ink, orange, cyan, sun yellow.
   ========================================================================== */

:root {
  --paper: #f2f0ea;
  --paper-deep: #e9e6dd;
  --card: #fffdf7;
  --ink: #141414;
  --ink-soft: #3d3a34;
  --muted: #6f695e;
  --line: rgba(20, 20, 20, 0.16);
  --orange: #ff7a1a;
  --orange-deep: #c95a08;
  --orange-soft: #ffe2cb;
  --cyan: #35c6d8;
  --cyan-soft: #c9f3f6;
  --yellow: #f6b93b;
  --yellow-soft: #fff0c9;
  --red: #e8502f;
  --red-soft: #ffe1d8;
  --white: #ffffff;
  --shadow-hard: 5px 6px 0 var(--ink);
  --shadow-soft: 0 18px 40px rgba(20, 20, 20, 0.07);
  --radius-card: 24px;
  --radius-sm: 14px;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", "Microsoft YaHei UI", "Microsoft YaHei",
    sans-serif;
  --font-hand: "Segoe Print", "Bradley Hand", "KaiTi", "STKaiti", cursive;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 760px at 12% -12%, rgba(255, 255, 255, 0.8), transparent 62%),
    radial-gradient(900px 620px at 102% 2%, rgba(255, 255, 255, 0.55), transparent 58%),
    radial-gradient(760px 560px at 50% 118%, rgba(255, 255, 255, 0.6), transparent 60%);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px dashed var(--orange);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 999px;
}

@supports (scrollbar-color: auto) {
  * {
    scrollbar-color: var(--ink) var(--paper);
    scrollbar-width: thin;
  }
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  top: 0;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  font-weight: 800;
  text-align: center;
}

.icon {
  flex: none;
  display: inline-block;
  vertical-align: -0.16em;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-kicker {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.prewrap {
  white-space: pre-wrap;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1.5px var(--ink);
}

/* --------------------------------------------------------------------------
   Shared paper stickers & controls
   -------------------------------------------------------------------------- */

.sticker-card {
  position: relative;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard), var(--shadow-soft);
}

.card-tape {
  position: absolute;
  top: -13px;
  left: 34px;
  width: 86px;
  height: 23px;
  z-index: 2;
  transform: rotate(-3deg);
  background:
    linear-gradient(100deg, rgba(246, 185, 59, 0.62), rgba(255, 214, 122, 0.44)),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(20, 20, 20, 0.045) 9px 10px);
  border-left: 1px dashed rgba(20, 20, 20, 0.18);
  border-right: 1px dashed rgba(20, 20, 20, 0.18);
  clip-path: polygon(2% 0, 98% 2%, 100% 100%, 0 96%);
}

.tilt-orange {
  transform: rotate(-0.65deg);
}

.tilt-cyan {
  transform: rotate(0.55deg);
}

.tilt-yellow {
  transform: rotate(-0.35deg);
}

.tilt-gray {
  transform: rotate(0.7deg);
}

.tilt-orange:hover,
.tilt-cyan:hover,
.tilt-yellow:hover,
.tilt-gray:hover {
  transform: rotate(0);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.pill-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.pill-orange {
  background: var(--orange);
  color: var(--ink);
}

.pill-cyan {
  background: var(--cyan-soft);
  color: var(--ink);
}

.pill-yellow {
  background: var(--yellow-soft);
  color: var(--ink);
}

.pill-gray {
  background: #f0eee8;
  color: var(--ink-soft);
  border-color: rgba(20, 20, 20, 0.24);
}

.type-tag {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.tone-orange {
  background: var(--orange-soft);
  color: var(--ink);
}

.tone-cyan {
  background: var(--cyan-soft);
  color: var(--ink);
}

.tone-yellow {
  background: var(--yellow-soft);
  color: var(--ink);
}

.tone-gray {
  background: #efede7;
  color: var(--ink-soft);
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1.5px solid rgba(20, 20, 20, 0.28);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.countdown-pill.tone-soon {
  border-color: var(--ink);
  background: var(--yellow-soft);
  color: var(--ink);
}

.countdown-pill.tone-urgent {
  border-color: var(--ink);
  background: var(--orange);
  color: var(--ink);
  transform: rotate(-1.5deg);
}

.countdown-pill.tone-overdue {
  border-color: var(--ink);
  background: var(--red);
  color: var(--white);
}

.countdown-pill.tone-none {
  border-color: rgba(20, 20, 20, 0.18);
  background: #f1efe9;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 13px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--orange);
}

.btn-cyan {
  background: var(--cyan);
}

.btn-danger {
  background: var(--red);
  color: var(--white);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--red);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.btn-ghost:hover {
  background: rgba(255, 253, 247, 0.7);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
}

.btn-sm {
  padding: 7px 11px;
  border-width: 2px;
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 11px;
}

.btn-lg {
  padding: 13px 21px;
  border-radius: 15px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 31px;
  height: 31px;
  flex: none;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.icon-btn.is-danger:hover {
  background: var(--red-soft);
}

.icon-btn.is-active {
  background: var(--yellow-soft);
  border-color: var(--ink);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.mini-btn:hover {
  transform: translate(-1px, -1px);
  background: var(--yellow-soft);
}

.mini-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 var(--ink);
}

.mini-complete {
  background: var(--orange);
}

.mini-btn.is-saved {
  background: var(--cyan-soft);
}

.chip {
  padding: 5px 11px;
  border: 1.5px solid rgba(20, 20, 20, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
}

.segmented button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.segmented button.is-active {
  background: var(--orange);
  color: var(--ink);
}

.text-link,
.muted-link {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.text-link:hover,
.muted-link:hover {
  color: var(--orange-deep);
}

.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea,
.composer textarea,
#nickname-form input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.6;
  outline: 0;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.field textarea,
.composer textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.composer textarea:focus,
#nickname-form input:focus {
  box-shadow: 3px 3px 0 var(--ink);
  background: #fffefb;
}

.field input::placeholder,
.field textarea::placeholder,
.composer textarea::placeholder {
  color: #a39d91;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-type {
  margin-top: 6px;
}

.hint {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

.form-error {
  display: none;
  padding: 7px 10px;
  border: 1.5px solid var(--red);
  border-radius: 8px;
  background: var(--red-soft);
  color: #7e1d08;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.form-error.is-visible {
  display: block;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon > .icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.input-icon input {
  padding-left: 37px;
  padding-right: 38px;
}

.password-toggle {
  position: absolute;
  right: 5px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.check-line input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-art {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--white);
  color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.check-line input:checked + .checkbox-art {
  background: var(--ink);
  color: var(--white);
}

.check-line input:focus-visible + .checkbox-art {
  outline: 3px dashed var(--orange);
  outline-offset: 2px;
}

.check-line a {
  color: var(--ink);
  text-decoration: underline;
}

.check-small {
  font-size: 11px;
  font-weight: 700;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.switch-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-box {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  transition: background 0.15s ease;
}

.switch-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.15s ease;
}

.switch-line input:checked + .switch-box {
  background: var(--orange);
}

.switch-line input:checked + .switch-box::after {
  transform: translateX(16px);
}

.switch-line input:focus-visible + .switch-box {
  outline: 3px dashed var(--orange);
  outline-offset: 2px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}

.avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.avatar-md {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.avatar-lg {
  width: 54px;
  height: 54px;
  font-size: 19px;
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

.app-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 258px;
  height: 100vh;
  flex: none;
  padding: 14px;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 28px);
  padding: 20px 16px 16px;
  border-radius: 26px;
  overflow: hidden;
}

.sidebar-inner::after {
  content: "";
  position: absolute;
  left: -34px;
  bottom: 82px;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(20, 20, 20, 0.12);
  border-radius: 50%;
  background: var(--cyan-soft);
  opacity: 0.55;
  pointer-events: none;
}

.brand {
  display: block;
  margin: 0 2px 6px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 184px;
  height: auto;
  transform: rotate(-1.5deg);
}

.side-bubble {
  position: relative;
  width: fit-content;
  margin: 4px 2px 18px 8px;
  padding: 5px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow-soft);
  font-size: 10.5px;
  font-weight: 800;
  transform: rotate(-2deg);
}

.side-bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -6px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--yellow-soft);
  transform: rotate(45deg);
}

.side-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.side-link:hover {
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  transform: translate(-1px, -1px);
}

.side-link.is-active {
  background: var(--orange);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
}

.side-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
}

.side-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.side-link.is-active .side-icon {
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(-4deg);
}

.side-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: transparent;
}

.side-link.is-active .side-dot {
  background: var(--ink);
}

.side-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 2px 10px;
}

.side-meta-note {
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.side-sticker {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 8px 0 12px;
  border-top: 1.5px dashed var(--line);
}

.side-sticker-label {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-soft);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: rotate(-2deg);
}

.side-sticker-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  height: 105px;
  margin-top: 2px;
}

.side-sticker-art img {
  display: block;
  height: auto;
  filter: drop-shadow(2px 4px 0 rgba(20, 20, 20, 0.1));
}

.side-coffee {
  width: 66px;
  transform: rotate(-7deg) translateY(3px);
}

.side-lazy {
  width: 103px;
  transform: rotate(3deg) translateX(-4px);
}

.side-user {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line);
}

.side-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.side-user-info strong {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user .icon-btn {
  margin-left: auto;
}

.main {
  min-width: 0;
  flex: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
  padding: 0 30px;
  border-bottom: 2px dashed var(--line);
  background: rgba(242, 240, 234, 0.84);
  backdrop-filter: blur(12px);
}

.mobile-brand {
  display: none;
  text-decoration: none;
}

.mobile-brand img {
  display: block;
  width: 108px;
  height: auto;
}

.topbar-date {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--muted);
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1.5px dashed rgba(20, 20, 20, 0.28);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 7px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-soft);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.coin-pill:hover {
  transform: translate(-1px, -1px);
}

.coin-pill img {
  width: 23px;
  height: 21px;
  object-fit: contain;
}

.coin-pill strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.coin-pill span {
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
}

.topbar-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1.5px solid rgba(20, 20, 20, 0.24);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-check.is-done {
  background: var(--cyan-soft);
  border-color: rgba(20, 20, 20, 0.2);
}

.main-view {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 26px 30px 96px;
  outline: 0;
}

.bottom-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Page scaffold
   -------------------------------------------------------------------------- */

.page {
  animation: page-in 0.32s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  margin: 2px 0 22px;
}

.page-head-copy h1 {
  margin: 5px 0 7px;
  font-size: clamp(35px, 3.8vw, 54px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.page-head-copy > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.page-head-art {
  width: auto;
  max-width: 230px;
  max-height: 150px;
  object-fit: contain;
  transform: rotate(-2deg);
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.13));
}

.page-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.page-footnote {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.page-footnote .icon {
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Empty / loading / errors
   -------------------------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
}

.empty-state.is-compact {
  padding: 22px 14px;
}

.empty-art {
  width: auto;
  max-width: 190px;
  max-height: 150px;
  margin-bottom: 12px;
  object-fit: contain;
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.12));
}

.empty-state.is-compact .empty-art {
  max-height: 110px;
  max-width: 140px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 380px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.empty-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 42px 18px;
  text-align: center;
}

.loading-state img {
  width: auto;
  max-width: 190px;
  max-height: 160px;
  object-fit: contain;
  animation: bob 1.6s ease-in-out infinite;
}

.loading-line {
  display: flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.no-results img {
  width: 110px;
  margin-bottom: 8px;
}

.no-results h3 {
  font-size: 16px;
  font-weight: 900;
}

.no-results p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  margin: 8vh auto;
  padding: 38px 30px;
  text-align: center;
}

.error-state img {
  width: 130px;
  margin-bottom: 10px;
}

.error-state h1 {
  margin: 5px 0 8px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.error-state p:not(.eyebrow) {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.hero-copy {
  position: relative;
  min-width: 0;
  padding: 6px 0 2px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-greeting {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: clamp(48px, 5.6vw, 86px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

.marker {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.marker::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -9px;
  bottom: 7px;
  z-index: -1;
  height: 24px;
  border-radius: 4px;
  background: var(--yellow);
  transform: rotate(-1.8deg);
  opacity: 0.72;
}

.hero-lead {
  max-width: 570px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-checked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1.5px dashed var(--ink);
  border-radius: 999px;
  background: var(--cyan-soft);
  font-size: 10.5px;
  font-weight: 800;
}

.hero-bubble {
  position: absolute;
  top: -22px;
  right: -4px;
  z-index: 0;
  width: 148px;
  height: auto;
  transform: rotate(4deg);
  opacity: 0.95;
  pointer-events: none;
}

.hero-scribble {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 14px;
  transform: rotate(-1.4deg);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.clock-stage {
  position: relative;
  width: 100%;
  max-width: 405px;
  padding: 20px 16px 28px;
}

.clock-card {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 25px 23px 19px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 8px 9px 0 var(--ink), 0 24px 44px rgba(20, 20, 20, 0.08);
  transform: rotate(1.1deg);
}

.clock-ring {
  position: absolute;
  top: -17px;
  width: 19px;
  height: 35px;
  border: 3px solid var(--ink);
  border-radius: 9px;
  background: var(--white);
  z-index: 3;
}

.ring-one {
  left: 25%;
}

.ring-two {
  right: 25%;
}

.clock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #6f6a60;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.clock-tag {
  padding: 2px 6px;
  border: 1px solid #bdb8ae;
  border-radius: 999px;
  color: #8d877c;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.clock-digits {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 58px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
  line-height: 1;
  color: var(--ink);
}

.clock-digits i {
  color: #b9b4aa;
  font-style: normal;
  transform: translateY(-3px);
}

.clock-sec {
  color: #8f897e;
}

.clock-date {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1.5px dashed #d7d2c8;
  color: #6f6a60;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
}

.clock-next {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #5f5a51;
  font-size: 10px;
  line-height: 1.6;
}

.clock-next-label {
  color: #999287;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.clock-next strong {
  color: var(--ink);
  font-size: 11px;
}

.clock-next .countdown-pill {
  border-color: #c9c4b9;
  background: #f3f1eb;
  color: #3b3832;
  transform: none;
}

.clock-next-empty {
  color: #8d877c;
}

.clock-cat {
  position: absolute;
  left: -96px;
  bottom: -12px;
  z-index: 3;
  width: 140px;
  height: auto;
  transform: rotate(-9deg);
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.12));
  pointer-events: none;
}

.clock-trophy {
  position: absolute;
  top: -21px;
  right: -9px;
  z-index: 3;
  width: 88px;
  height: auto;
  transform: rotate(9deg);
  filter: drop-shadow(2px 4px 0 rgba(20, 20, 20, 0.1));
  pointer-events: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 88px;
  padding: 14px 15px;
  border-radius: 19px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
  transform: translate(-2px, -2px) rotate(0);
  box-shadow: 7px 8px 0 var(--ink), var(--shadow-soft);
}

.stat-art {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  transform: rotate(-3deg);
}

.stat-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 13px;
}

.stat-icon.tone-orange {
  background: var(--orange);
}

.stat-icon.tone-cyan {
  background: var(--cyan);
}

.stat-icon.tone-yellow {
  background: var(--yellow);
}

.stat-icon.tone-gray {
  background: #e9e6de;
}

.stat-card div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.stat-card span:not(.stat-icon) {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card em {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.panel {
  padding: 21px 22px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-head h2 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.deadline-list {
  margin-top: 4px;
}

.deadline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1.5px dashed var(--line);
}

.deadline-row:last-child {
  border-bottom: 0;
}

.deadline-row.is-overdue .type-tag {
  background: var(--red-soft);
}

.deadline-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.deadline-main strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deadline-main strong:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deadline-main span {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.deadline-row .mini-btn {
  padding: 5px 8px;
  font-size: 9.5px;
}

.radar-list {
  margin-top: 4px;
}

.radar-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1.5px dashed var(--line);
  background: transparent;
  text-align: left;
  transition: background 0.15s ease;
}

.radar-row:last-child {
  border-bottom: 0;
}

.radar-row:hover {
  background: rgba(246, 185, 59, 0.08);
}

.radar-icon {
  width: 34px;
  height: 32px;
  object-fit: contain;
}

.radar-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.radar-main strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1.5px dashed var(--line);
  color: var(--muted);
  font-size: 9.5px;
}

.checkin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(240px 180px at 94% 108%, rgba(255, 122, 26, 0.22), transparent 70%),
    var(--card);
}

.checkin-banner.is-done {
  background:
    radial-gradient(240px 180px at 94% 108%, rgba(53, 198, 216, 0.22), transparent 70%),
    var(--card);
}

.checkin-copy {
  position: relative;
  z-index: 1;
  max-width: 68%;
}

.checkin-copy h2 {
  margin-bottom: 7px;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.checkin-copy p:not(.panel-kicker) {
  max-width: 390px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.checkin-stamp {
  display: inline-block;
  padding: 5px 13px;
  border: 2.5px double var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

.checkin-art {
  width: 138px;
  max-height: 150px;
  flex: none;
  object-fit: contain;
  transform: rotate(5deg) translateY(7px);
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.1));
}

.circle-mini-list {
  margin-top: 4px;
}

.circle-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1.5px dashed var(--line);
  text-decoration: none;
}

.circle-mini:last-child {
  border-bottom: 0;
}

.circle-mini:hover .circle-mini-text {
  color: var(--ink);
}

.circle-mini-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.circle-mini-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.circle-mini-head strong {
  font-size: 11.5px;
  font-weight: 800;
}

.circle-mini-head time {
  color: var(--muted);
  font-size: 9px;
}

.circle-mini-text {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-teaser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.circle-teaser img {
  width: 108px;
  max-height: 90px;
  object-fit: contain;
  transform: rotate(-3deg);
}

.circle-teaser strong {
  font-size: 14px;
  font-weight: 900;
}

.circle-teaser p {
  max-width: 300px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Toolbar / list / calendar
   -------------------------------------------------------------------------- */

.toolbar {
  margin-bottom: 18px;
  padding: 15px 17px;
  border-radius: 21px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  max-width: 480px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 12px;
  outline: 0;
}

.search-box input::placeholder {
  color: #a8a296;
}

.view-toggle {
  display: inline-flex;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden;
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 0;
  border-right: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.view-toggle button:last-child {
  border-right: 0;
}

.view-toggle button.is-active {
  background: var(--ink);
  color: var(--white);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toolbar-total {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-left: auto;
  white-space: nowrap;
}

.toolbar-count {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.toolbar-count-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.task-card {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 19px 19px 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.task-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 8px 0 var(--ink), var(--shadow-soft);
}

.task-card:nth-child(4n + 2) {
  transform: rotate(0.25deg);
}

.task-card:nth-child(4n + 3) {
  transform: rotate(-0.3deg);
}

.task-card:nth-child(4n + 2):hover,
.task-card:nth-child(4n + 3):hover {
  transform: translate(-2px, -2px) rotate(0);
}

.task-card.is-done {
  background: #f6f3ec;
}

.task-card.is-done::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: calc(var(--radius-card) - 3px);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 12px,
    rgba(20, 20, 20, 0.018) 12px 13px
  );
  pointer-events: none;
}

.task-card > * {
  position: relative;
  z-index: 1;
}

.task-card.is-overdue {
  background: linear-gradient(180deg, #fff7f2, var(--card));
}

.task-card.is-overdue .card-tape {
  background: linear-gradient(100deg, rgba(232, 80, 47, 0.55), rgba(255, 160, 137, 0.42));
}

.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.done-stamp {
  padding: 2px 8px;
  border: 2px double var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.6;
  transform: rotate(-4deg);
}

.urgent-flag {
  padding: 2px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 9.5px;
  font-weight: 900;
  transform: rotate(-2deg);
}

.task-title {
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.027em;
  line-height: 1.35;
  word-break: break-word;
}

.task-title button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.task-title button:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.task-card.is-done .task-title {
  opacity: 0.62;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.deadline-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.task-remark {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.task-remark.is-empty {
  color: #a8a296;
  font-style: italic;
}

.task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1.5px dashed var(--line);
}

.reward-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
}

.reward-hint.is-got {
  color: var(--ink);
}

.task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}

.task-actions .mini-btn {
  margin-right: 2px;
}

.calendar-wrap {
  margin-bottom: 18px;
  padding: 18px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-hard), var(--shadow-soft);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-title h2 {
  min-width: 125px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
}

.cal-weekday {
  padding: 4px 0;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.cal-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 108px;
  padding: 7px;
  border: 1.5px solid rgba(20, 20, 20, 0.13);
  border-radius: 11px;
  background: var(--white);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cal-cell:hover {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.cal-cell.is-outside {
  opacity: 0.42;
  background: transparent;
}

.cal-cell.is-today {
  border: 2px solid var(--ink);
  background: #fff9e7;
}

.cal-date {
  align-self: flex-start;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 900;
}

.cal-cell.is-today .cal-date {
  background: var(--orange);
  border: 1.5px solid var(--ink);
}

.cal-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cal-chip {
  overflow: hidden;
  padding: 1px 5px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 4px;
  font-size: 8.8px;
  font-weight: 700;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-chip.is-done {
  opacity: 0.48;
  text-decoration: line-through;
}

.cal-more {
  padding-left: 3px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
}

.calendar-undated {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line);
}

.calendar-undated h3 {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 900;
}

.undated-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.undated-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.undated-item:hover {
  border-color: var(--ink);
  background: var(--white);
}

.day-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
}

.day-item.is-done {
  opacity: 0.62;
}

.day-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.day-main strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-main span {
  color: var(--muted);
  font-size: 9.5px;
}

/* --------------------------------------------------------------------------
   Competitions
   -------------------------------------------------------------------------- */

.comp-summary {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.summary-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1.5px solid rgba(20, 20, 20, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.6);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.summary-item.is-hot {
  border-color: var(--ink);
  background: var(--orange-soft);
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comp-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 19px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.comp-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 8px 0 var(--ink), var(--shadow-soft);
}

.comp-card.is-planned {
  background:
    radial-gradient(240px 200px at 100% 0, rgba(246, 185, 59, 0.17), transparent 70%),
    var(--card);
}

.comp-card.is-planned .card-tape {
  background: linear-gradient(100deg, rgba(246, 185, 59, 0.75), rgba(255, 224, 150, 0.5));
}

.comp-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comp-icon {
  width: 43px;
  height: 42px;
  flex: none;
  object-fit: contain;
  transform: rotate(-4deg);
}

.comp-title-wrap {
  min-width: 0;
}

.comp-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.comp-title-wrap h3 {
  font-size: 17.5px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.35;
  word-break: break-word;
}

.comp-title-wrap h3 button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.comp-title-wrap h3 button:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.comp-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
  padding: 9px 10px;
  border: 1.5px dashed rgba(20, 20, 20, 0.18);
  border-radius: 11px;
  background: #f7f5ef;
}

.comp-dates div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.comp-dates span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.comp-dates strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.comp-target {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.65;
}

.comp-target span {
  margin-right: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.comp-intro {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.comp-intro.is-empty {
  font-style: italic;
  color: #a8a296;
}

.comp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1.5px dashed var(--line);
}

.comp-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Circle
   -------------------------------------------------------------------------- */

.composer {
  margin-bottom: 16px;
  padding: 18px 20px;
}

.composer-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.composer-head div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.composer-head strong {
  font-size: 12.5px;
  font-weight: 900;
}

.composer-head span {
  color: var(--muted);
  font-size: 10.5px;
}

.composer textarea {
  width: 100%;
  min-height: 92px;
}

.composer-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.composer-attach {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 320px;
  padding: 6px 9px;
  border: 1.5px solid rgba(20, 20, 20, 0.24);
  border-radius: 9px;
  background: var(--white);
  color: var(--muted);
}

.composer-attach select {
  max-width: 260px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  outline: 0;
}

.composer-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.composer-hint {
  margin-top: 8px;
}

.circle-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 15px;
  border-radius: 16px;
}

.circle-filter .muted {
  font-size: 9.5px;
}

.circle-page {
  max-width: 980px;
  margin: 0 auto;
}

.post-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  padding: 17px 19px 13px;
}

.post-card:nth-child(odd) {
  transform: rotate(-0.15deg);
}

.post-card:nth-child(even) {
  transform: rotate(0.15deg);
}

.post-card:hover {
  transform: rotate(0);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.post-author {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
  line-height: 1.35;
}

.post-author strong {
  font-size: 12.5px;
  font-weight: 900;
}

.post-author time {
  color: var(--muted);
  font-size: 9.5px;
}

.post-reward {
  flex: none;
}

.post-delete {
  width: 27px;
  height: 27px;
}

.post-content {
  margin: 3px 0 11px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.share-card {
  margin: 9px 0 11px;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
}

.share-card.is-comp {
  background: #fff9e8;
}

.share-card-head {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.share-snapshot {
  margin-left: auto;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.share-card h3 {
  margin: 3px 0 5px;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.4;
  word-break: break-word;
}

.share-info {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.share-note {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.share-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1.5px dashed var(--line);
}

.share-card-foot .muted {
  font-size: 9px;
}

.share-owned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 9px;
  border-top: 1.5px dashed var(--line);
  color: var(--muted);
  font-size: 9px;
}

.post-foot span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  grid-column: 1 / -1;
  padding: 8px 0;
}

.feed-end {
  grid-column: 1 / -1;
  padding: 16px;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 13px;
  text-align: center;
  transform: rotate(-1deg);
}

.saved-celebrate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 8px;
  text-align: center;
}

.saved-celebrate img {
  max-width: 220px;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.12));
}

.saved-celebrate p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */

.profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 18px;
  margin-bottom: 18px;
}

.balance-card {
  padding: 22px 24px;
  overflow: hidden;
  background:
    radial-gradient(300px 220px at 100% 100%, rgba(246, 185, 59, 0.32), transparent 70%),
    linear-gradient(135deg, var(--card), #fff7e4);
}

.balance-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 14px;
}

.balance-label {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.balance-number {
  display: inline-block;
  margin-right: 5px;
  font-family: var(--font-display);
  font-size: clamp(51px, 6vw, 78px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 1;
}

.balance-unit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.balance-art {
  width: 110px;
  height: auto;
  object-fit: contain;
  transform: rotate(7deg) translateY(5px);
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.1));
}

.balance-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 11px;
  border-top: 1.5px dashed var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.balance-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.checkin-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(230px 180px at 100% 100%, rgba(53, 198, 216, 0.18), transparent 70%),
    var(--card);
}

.checkin-card.is-done {
  background:
    radial-gradient(230px 180px at 100% 100%, rgba(53, 198, 216, 0.3), transparent 70%),
    var(--card);
}

.checkin-card-art {
  width: 114px;
  max-height: 140px;
  flex: none;
  object-fit: contain;
  transform: rotate(-4deg);
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.1));
}

.checkin-card h2 {
  margin-bottom: 5px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.checkin-card p:not(.panel-kicker) {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.record-list {
  margin-top: 4px;
}

.record-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1.5px dashed var(--line);
}

.record-row:last-child {
  border-bottom: 0;
}

.record-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.record-icon.is-plus {
  background: var(--yellow-soft);
}

.record-icon.is-minus {
  background: #efede7;
  color: var(--muted);
}

.record-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.record-main strong {
  font-size: 11.5px;
  font-weight: 800;
}

.record-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-row time {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.record-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.record-amount.is-plus {
  color: var(--orange-deep);
}

.record-amount.is-minus {
  color: var(--muted);
}

.rule-list {
  margin-top: 5px;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1.5px dashed var(--line);
}

.rule-row:last-child {
  border-bottom: 0;
}

.rule-name {
  flex: none;
  min-width: 74px;
  font-size: 11px;
  font-weight: 900;
}

.rule-note {
  flex: 1;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.rule-list + .rule-note {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1.5px dashed var(--line);
  font-size: 9.5px;
  line-height: 1.7;
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 17px 21px;
  border-radius: 19px;
}

.account-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.account-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.45;
}

.account-info strong {
  font-size: 14px;
  font-weight: 900;
}

.account-info span {
  color: var(--muted);
  font-size: 10px;
}

.account-agreement {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  color: var(--ink-soft) !important;
  font-size: 9px !important;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Modal / toast / floating bits
   -------------------------------------------------------------------------- */

body.modal-open {
  overflow: hidden;
}

#modal-root {
  position: relative;
  z-index: 100;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.modal-layer.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.52);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: calc(100vh - 36px);
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 9px 10px 0 var(--ink), 0 30px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(14px) scale(0.985) rotate(-0.3deg);
  transition: transform 0.18s ease;
}

.modal-layer.is-open .modal-card {
  transform: translateY(0) scale(1) rotate(0);
}

.modal-sm {
  width: min(100%, 460px);
}

.modal-lg {
  width: min(100%, 820px);
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s ease;
}

.modal-close:hover {
  transform: rotate(8deg);
}

.modal-head {
  padding: 21px 23px 7px;
}

.modal-kicker {
  margin-bottom: 4px;
  color: var(--orange-deep);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-head h2 {
  padding-right: 32px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 23px 19px;
}

.modal-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 23px 18px;
  border-top: 1.5px dashed var(--line);
  border-radius: 0 0 23px 23px;
  background: var(--card);
}

.confirm-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 0 8px;
}

.confirm-body p {
  padding-top: 7px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.85;
}

.confirm-icon {
  width: 43px;
  height: 43px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--yellow-soft);
}

.confirm-icon.is-danger {
  background: var(--red-soft);
  color: var(--red);
}

.ai-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--yellow-soft);
}

.ai-banner.is-free {
  background: var(--cyan-soft);
}

.ai-banner img {
  width: 66px;
  max-height: 58px;
  object-fit: contain;
  flex: none;
}

.ai-banner strong {
  display: block;
  font-size: 11.5px;
  font-weight: 900;
}

.ai-banner p {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1.6;
}

.ai-import {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ai-import-art {
  position: relative;
  padding: 4px;
  border: 1.5px dashed rgba(20, 20, 20, 0.2);
  border-radius: 15px;
  background: #f7f5ef;
  text-align: center;
}

.ai-import-art img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 126px;
  margin: 0 auto;
  object-fit: contain;
}

.ai-spark {
  position: absolute;
  top: 8px;
  right: 11px;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 900;
  transform: rotate(3deg);
}

.ai-cost-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 9.5px;
}

.ai-note {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

.share-preview {
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: #f7f5ef;
}

.share-preview h3 {
  margin: 5px 0 4px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.share-preview p {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.comp-detail-head {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.detail-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 4px;
  padding: 10px;
  border: 1.5px dashed var(--line);
  border-radius: 11px;
  background: #f7f5ef;
}

.detail-dates div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detail-dates span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.detail-dates strong {
  font-size: 10.5px;
  line-height: 1.5;
}

.detail-section {
  margin-top: 13px;
}

.detail-section h4 {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-section p {
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.85;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkin-celebrate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 8px 10px;
  text-align: center;
}

.checkin-celebrate img {
  max-width: 210px;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.12));
}

.checkin-reward {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.checkin-reward span {
  margin-left: 5px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.checkin-celebrate p {
  max-width: 310px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.agreement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
}

.agreement-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1.5px dashed var(--line);
  border-radius: 11px;
  background: var(--white);
}

.agreement-index {
  width: 25px;
  height: 25px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--yellow-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
}

.agreement-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 900;
}

.agreement-item p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.agreement-list.is-modal .agreement-item p {
  font-size: 11px;
}

.agreement-footnote {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.toast-root {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-left: 6px solid var(--ink);
  border-radius: 11px;
  background: var(--card);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-left-color: var(--cyan);
}

.toast-error {
  border-left-color: var(--red);
}

.toast-coin {
  border-left-color: var(--orange);
  background: #fff9e8;
}

.toast-icon {
  flex: none;
  display: grid;
  place-items: center;
}

.toast-success .toast-icon {
  color: #0d7f8d;
}

.toast-error .toast-icon {
  color: var(--red);
}

.toast-coin .toast-icon {
  color: var(--orange-deep);
}

.coin-float {
  position: fixed;
  z-index: 90;
  padding: 2px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
  transform: translate(-50%, -100%);
  animation: coin-float 1.35s ease-out forwards;
}

.coin-float.is-negative {
  background: var(--paper-deep);
  color: var(--muted);
}

@keyframes coin-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -110%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -260%) scale(1.02);
  }
}

/* --------------------------------------------------------------------------
   Auth (login + agreement) and poster
   -------------------------------------------------------------------------- */

.boot-screen {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.boot-sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.boot-sticker img {
  width: min(360px, 74vw);
  height: auto;
}

.boot-bar {
  width: 190px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.boot-bar span {
  display: block;
  width: 44%;
  height: 100%;
  background: var(--orange);
  animation: boot-bar 1.15s ease-in-out infinite;
}

@keyframes boot-bar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.boot-sticker p {
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 13px;
}

.fatal-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 22px;
}

.fatal-screen > img {
  width: min(320px, 70vw);
  height: auto;
}

.fatal-card {
  max-width: 500px;
  padding: 27px 30px;
  text-align: center;
}

.fatal-card h1 {
  margin: 4px 0 8px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.fatal-card p:not(.eyebrow) {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.fatal-note {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.auth-page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  width: 100%;
  max-width: 1520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 54px);
}

.auth-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

.poster-kicker {
  position: absolute;
  top: 4px;
  left: 4%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--orange);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transform: rotate(-2deg);
}

.poster-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 650px;
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 23px;
  background: var(--card);
  box-shadow: 10px 11px 0 var(--ink), 0 30px 60px rgba(20, 20, 20, 0.08);
  transform: rotate(-1.3deg);
}

.poster-image {
  position: relative;
  container-type: inline-size;
}

.poster-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.poster-live-clock {
  position: absolute;
  left: 85.2%;
  top: 47.1%;
  z-index: 3;
  display: flex;
  width: 13.8%;
  height: 6.4%;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(10deg);
  border-radius: 4px;
  background: transparent;
  color: #0d0d0d;
  font-family: "Arial Black", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-size: 3.9cqw;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.poster-clock-inner {
  display: flex;
  align-items: center;
  transform: scaleX(0.82);
  transform-origin: center;
}

.poster-clock-inner i {
  margin: 0 0.02em;
  font-style: normal;
  color: #111111;
}

.tape {
  position: absolute;
  z-index: 4;
  width: 82px;
  height: 22px;
  background:
    linear-gradient(100deg, rgba(246, 185, 59, 0.65), rgba(255, 225, 150, 0.45)),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(20, 20, 20, 0.04) 8px 9px);
  border-left: 1px dashed rgba(20, 20, 20, 0.16);
  border-right: 1px dashed rgba(20, 20, 20, 0.16);
  clip-path: polygon(2% 0, 98% 2%, 100% 100%, 0 96%);
}

.tape-one {
  top: -11px;
  left: 10%;
  transform: rotate(-5deg);
}

.tape-two {
  right: 8%;
  bottom: -11px;
  transform: rotate(4deg);
}

.poster-title-hand {
  position: absolute;
  top: -22px;
  right: 1%;
  z-index: 4;
  width: clamp(150px, 17vw, 220px);
  height: auto;
  transform: rotate(4deg);
  filter: drop-shadow(3px 5px 0 rgba(20, 20, 20, 0.13));
  pointer-events: none;
}

.poster-cat {
  position: absolute;
  bottom: -22px;
  left: 0;
  z-index: 4;
  width: clamp(140px, 16vw, 200px);
  height: auto;
  transform: rotate(-6deg);
  filter: drop-shadow(4px 6px 0 rgba(20, 20, 20, 0.12));
  pointer-events: none;
}

.poster-caption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 450px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.poster-caption-line {
  width: 34px;
  height: 3px;
  flex: none;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--ink);
}

.poster-scribble {
  position: absolute;
  right: 2%;
  bottom: 14px;
  z-index: 5;
  padding: 5px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow-soft);
  font-family: var(--font-hand);
  font-size: 13px;
  transform: rotate(-3deg);
}

.auth-card {
  width: 100%;
  max-width: 510px;
  justify-self: center;
  padding: clamp(23px, 3vw, 37px);
  border-radius: 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.auth-title {
  display: block;
  width: 150px;
  height: auto;
}

.auth-cat-mini {
  width: 64px;
  height: auto;
  object-fit: contain;
  transform: rotate(6deg);
}

.auth-card h1 {
  margin: 6px 0 9px;
  font-size: clamp(31px, 3.3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.auth-card .lead {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.auth-tabs {
  display: flex;
  width: 100%;
  margin: 19px 0 4px;
  padding: 3px;
}

.auth-tabs button {
  flex: 1;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.auth-footline span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.auth-footnote {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.agreement-card {
  max-width: 720px;
}

.agreement-card .auth-brand {
  justify-content: flex-start;
  gap: 12px;
}

.agreement-card h1 {
  font-size: clamp(28px, 3vw, 38px);
}

.agreement-card .agreement-list {
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 3px;
}

.agree-check-line {
  padding: 8px 0 2px;
  font-size: 11.5px;
}

.agreement-poster .poster-frame {
  transform: rotate(1.1deg);
}

.agreement-poster .poster-cat {
  bottom: -18px;
  left: 2%;
  width: 155px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-height: 760px) and (min-width: 901px) {
  .side-sticker {
    display: none;
  }
}

@media (max-width: 1280px) {
  .clock-cat {
    left: -36px;
    width: 120px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }

  .hero-bubble {
    width: 124px;
    top: -16px;
  }

  .sidebar {
    width: 242px;
  }

  .brand img {
    width: 170px;
  }

  .main-view {
    padding: 24px 24px 90px;
  }
}

@media (max-width: 1100px) {
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid,
  .home-lower,
  .profile-top,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .post-feed {
    grid-template-columns: 1fr;
  }

  .task-grid,
  .comp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-page {
    grid-template-columns: 1fr;
    max-width: 620px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .auth-poster {
    min-height: 0;
    display: none;
  }

  .auth-card {
    max-width: 560px;
  }

  .checkin-card-art {
    width: 96px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .topbar {
    height: 60px;
    padding: 0 15px;
  }

  .mobile-brand {
    display: block;
  }

  .topbar-date {
    display: none;
  }

  .member-pill {
    display: none;
  }

  .main-view {
    padding: 17px 15px 100px;
  }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    border-top: 2px solid var(--ink);
    background: rgba(255, 253, 247, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 0 rgba(20, 20, 20, 0.04);
  }

  .bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    text-decoration: none;
  }

  .bottom-icon {
    width: 34px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1.5px solid transparent;
    border-radius: 10px;
  }

  .bottom-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
  }

  .bottom-link.is-active {
    color: var(--ink);
  }

  .bottom-link.is-active .bottom-icon {
    border-color: var(--ink);
    background: var(--orange);
    transform: rotate(-3deg);
    box-shadow: 2px 2px 0 var(--ink);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .hero-copy {
    padding-top: 2px;
  }

  .hero h1 {
    font-size: clamp(48px, 11vw, 72px);
  }

  .hero-bubble {
    display: none;
  }

  .hero-visual {
    margin-top: 2px;
  }

  .clock-stage {
    max-width: 390px;
  }

  .clock-cat {
    width: 125px;
    left: 0;
  }

  .clock-next {
    padding-left: 108px;
  }

  .clock-trophy {
    width: 72px;
    right: 4px;
  }

  .page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }

  .page-head-art {
    display: none;
  }

  .page-head-actions {
    justify-content: flex-start;
  }

  .task-grid,
  .comp-grid {
    grid-template-columns: 1fr;
  }

  .post-feed {
    grid-template-columns: 1fr;
  }

  .post-card:nth-child(n) {
    transform: none;
  }

  .toolbar-count {
    margin-left: 0;
  }

  .checkin-banner {
    min-height: 160px;
    padding: 20px;
  }

  .checkin-art {
    width: 110px;
  }

  .checkin-copy h2 {
    font-size: 24px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .cal-cell {
    min-height: 88px;
    padding: 5px;
  }

  .cal-chip {
    font-size: 7.8px;
  }

  .auth-page {
    min-height: 100dvh;
    padding: 16px;
  }

  .auth-card {
    padding: 23px 20px;
    box-shadow: 6px 7px 0 var(--ink), var(--shadow-soft);
  }

  .toast-root {
    right: 10px;
    bottom: 82px;
    left: 10px;
    width: auto;
  }
}

@media (max-width: 680px) {
  .topbar-actions {
    gap: 5px;
  }

  .coin-pill span {
    display: none;
  }

  .coin-pill {
    padding-right: 8px;
  }

  .topbar-check {
    padding: 4px 7px;
  }

  .topbar .btn-sm {
    padding: 6px 9px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 64px);
    letter-spacing: -0.06em;
  }

  .hero-lead {
    font-size: 12.5px;
  }

  .stats-row {
    gap: 9px;
  }

  .stat-card {
    min-height: 78px;
    padding: 11px;
    gap: 8px;
  }

  .stat-art,
  .stat-icon {
    width: 36px;
    height: 36px;
  }

  .stat-card strong {
    font-size: 23px;
  }

  .stat-card span:not(.stat-icon) {
    font-size: 10px;
  }

  .stat-card em {
    font-size: 8.5px;
  }

  .panel {
    padding: 17px;
  }

  .panel-head h2 {
    font-size: 19px;
  }

  .deadline-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .deadline-row > .mini-btn {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 2px;
  }

  .radar-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .radar-row .pill {
    display: none;
  }

  .checkin-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkin-copy {
    max-width: 100%;
  }

  .checkin-art {
    position: absolute;
    right: 10px;
    bottom: 4px;
    width: 102px;
    opacity: 0.9;
  }

  .checkin-banner .btn,
  .checkin-stamp {
    position: relative;
    z-index: 2;
  }

  .calendar-wrap {
    padding: 13px 9px;
  }

  .calendar-title h2 {
    min-width: 104px;
    font-size: 16px;
  }

  .cal-weekday {
    font-size: 8.5px;
  }

  .cal-cell {
    min-height: 62px;
    border-radius: 8px;
    padding: 4px;
  }

  .cal-items {
    gap: 2px;
  }

  .cal-chip {
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--orange);
    font-size: 0;
    line-height: 0;
  }

  .cal-chip.tone-cyan {
    background: var(--cyan);
  }

  .cal-chip.tone-yellow {
    background: var(--yellow);
  }

  .cal-chip.tone-gray {
    background: #b5afa4;
  }

  .cal-more {
    display: none;
  }

  .cal-date {
    width: 20px;
    height: 20px;
    font-size: 9.5px;
  }

  .comp-dates,
  .detail-dates {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .comp-dates div,
  .detail-dates div {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
  }

  .comp-dates span,
  .detail-dates span {
    min-width: 52px;
  }

  .composer {
    padding: 15px;
  }

  .composer-row .btn {
    margin-left: auto;
  }

  .composer-attach {
    max-width: 100%;
    flex: 1;
  }

  .composer-attach select {
    max-width: 100%;
  }

  .circle-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-card {
    padding: 15px;
  }

  .share-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .record-row time {
    display: none;
  }

  .account-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-actions {
    width: 100%;
  }

  .account-actions .btn {
    flex: 1;
  }

  .auth-card {
    border-radius: 22px;
  }

  .auth-card h1 {
    font-size: 32px;
  }

  .auth-title {
    width: 132px;
  }

  .auth-cat-mini {
    width: 52px;
  }

  .field-row,
  .field-row.three,
  .field-row.two {
    grid-template-columns: 1fr;
  }

  .modal-layer {
    padding: 10px;
  }

  .modal-card {
    max-height: calc(100dvh - 20px);
    border-radius: 21px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .modal-head {
    padding: 18px 18px 6px;
  }

  .modal-head h2 {
    font-size: 20px;
  }

  .modal-body {
    padding: 9px 18px 16px;
  }

  .modal-foot {
    padding: 10px 18px 15px;
    border-radius: 0 0 18px 18px;
  }

  .modal-foot .btn {
    flex: 1;
  }

  .toast {
    font-size: 11px;
  }

  .agreement-card .agreement-list {
    max-height: none;
  }
}

@media (max-width: 420px) {
  .mobile-brand img {
    width: 92px;
  }

  .coin-pill img {
    width: 20px;
  }

  .topbar .btn-sm span {
    display: none;
  }

  .hero-actions .btn {
    padding: 10px 13px;
    font-size: 12px;
  }

  .hero-actions {
    gap: 7px;
  }

  .clock-digits {
    font-size: 42px;
  }

  .clock-card {
    padding: 22px 16px 16px;
  }

  .clock-cat {
    width: 106px;
    bottom: -14px;
  }

  .clock-trophy {
    width: 62px;
    top: -16px;
  }

  .checkin-copy h2 {
    font-size: 22px;
  }

  .page-head-copy h1 {
    font-size: 38px;
  }

  .auth-page {
    padding: 10px;
  }

  .auth-card {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}