* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: #f7f8fa;
  color: #1f2430;
  font-family: Heebo, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

a { color: #2f6fed; }
a:hover { color: #1d4fd0; }

.shell {
  display: flex;
  min-height: 100vh;
}

.side {
  width: 232px;
  flex: none;
  background: #fff;
  border-inline-end: 1px solid #eceef2;
  padding: 18px 14px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  color: #1f2430;
  text-decoration: none;
  padding: 4px 0 14px;
  text-align: center;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
  background: #2f6fed;
  color: #fff;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.nav-add:hover,
.nav-add.active {
  background: #1d4fd0;
  color: #fff;
}

.side-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.side-foot a {
  color: #3a4150;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.side-foot a:hover { background: #f4f6f8; }

.legal {
  color: #5b6b82;
  font-size: 13px;
  font-weight: 400;
}

.logout {
  background: #fff;
  color: #3a4150;
  border: 1px solid #e3e6ec;
}

.logout:hover { background: #f4f6f8; color: #1f2430; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3a4150;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.nav-count {
  margin-inline-start: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #2f6fed;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

.nav a svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav a:hover { background: #f4f6f8; color: #1f2430; }

.nav a.active {
  background: #e8f1ff;
  color: #1f2430;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 22px 28px 64px;
}

h1 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}

h2 {
  margin: 28px 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.add-switch {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
}

.add-switch a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d5deea;
  color: #314056;
  font-weight: 500;
}

.add-switch a.on {
  background: #2f5fe0;
  border-color: #2f5fe0;
  color: #fff;
}

.lead, .note, .empty, .meta, .by {
  color: #5c6b80;
}

.lead { margin: -8px 0 18px; }

.empty {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 28px 18px;
  text-align: center;
}

label.field {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #314056;
}

.secret { position: relative; display: block; }
.secret input { padding-left: 42px; }
.eye {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5b6b82;
  display: grid;
  place-items: center;
}
.eye:hover { color: #2f6fed; background: #f4f7fb; }
.eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seller { margin: 2px 0 0; font-size: 13px; color: #1f2430; font-weight: 500; }

input, select, textarea {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid #2f5fe0;
  border-color: #2f5fe0;
}

button, .btn {
  font: inherit;
  background: #2f6fed;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 500;
}

button:hover, .btn:hover { background: #1d4fd0; }

.form-actions { display: flex; align-items: center; gap: 12px; }
.account-extra { margin: 14px 0 0; }
a.icon-act { text-decoration: none; }

.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0 0 16px;
  max-width: 480px;
}
.identity-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8f1ff;
  color: #2f6fed;
  display: grid;
  place-items: center;
  flex: none;
}
.identity-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.identity-name { flex: 1; min-width: 0; font-weight: 500; }
.identity input { width: auto; flex: 1; min-width: 0; padding: 8px 10px; }
.identity .icon-act { flex: none; }
.account-delete { flex-wrap: wrap; margin: 32px 0 0; }
.account-delete .error { flex-basis: 100%; margin: 0; }
.account-delete input { min-width: 120px; }
.follow-list { display: grid; gap: 8px; }
.follow-row { margin: 0; }
.cat-follow { display: flex; justify-content: flex-start; margin: 4px 0 -8px; }
.icon-act.follow.on { border-color: #2f6fed; color: #2f6fed; }

button.linkish {
  background: none;
  color: #2f5fe0;
  padding: 0;
  border-radius: 0;
  text-decoration: underline;
}

.search-panel {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 8px;
  box-shadow: none;
}

.search-bar { position: relative; }

.search-line {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-combo {
  width: min(320px, 100%);
  flex: 0 1 320px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  padding: 0 6px;
  height: 34px;
  min-height: 0;
}

.search-combo:focus-within {
  border-color: #c5ceda;
  outline: none;
}

.search-grow { flex: 1; min-width: 0; position: relative; }

.search-grow input {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  padding-inline: 4px;
}

.search-combo input:focus { outline: none; }

.search-go {
  width: 26px;
  height: 26px;
  padding: 0;
  flex: none;
  background: transparent;
  color: #8b93a1;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.search-go:hover { background: transparent; color: #1f2430; }

.search-go svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

#search-suggest .suggest {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  inset-inline: 8px;
  margin: 0;
  box-shadow: 0 10px 28px rgba(20, 36, 70, 0.08);
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.cat {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  background: #fff;
  color: #314056;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  font-size: 14px;
}

.cat-count {
  margin-inline-start: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #8b97a8;
}

.cat.on,
.cat:hover {
  background: #e8eefe;
  color: #2f6fed;
  border-color: #c5d4f8;
}

.cat.on .cat-count,
.cat:hover .cat-count { color: #7a94c9; }

.search-line > .filter-toggle {
  height: 34px;
  padding-inline: 12px;
  flex: none;
  font-size: 13px;
  border-radius: 8px;
}

.filter-toggle {
  background: #fff;
  color: #314056;
  border: 1px solid #d5deea;
}

.filter-toggle.on,
.filter-toggle:hover {
  background: #e8eefe;
  color: #2f5fe0;
  border-color: #c5d4f8;
}

.filter-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 12px 0 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 10px;
}

.filter-menu .field { margin: 0; }

.filter-clear { justify-self: start; }

button.linkish:hover { background: none; color: #1d45b8; }

.suggest {
  border: 1px solid #d5deea;
  background: #fff;
  margin-top: 6px;
  border-radius: 12px;
  overflow: hidden;
}

.suggest button {
  display: block;
  width: 100%;
  text-align: right;
  background: #fff;
  color: #1b2430;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e6ebf2;
  padding: 8px 10px;
}

.suggest button:last-child { border-bottom: 0; }
.suggest button:hover { background: #f3f6ff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.card:hover { border-color: #d5deea; }

.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.card.mini {
  flex: 0 0 128px;
  padding: 8px;
  scroll-snap-align: start;
}
.card.mini h3 {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card.mini .price { margin-top: 4px; font-size: 13px; }

.card h3 {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.by, .meta, .price, .mail { margin: 0; }

.by { font-size: 13px; margin-top: 2px; }
.detail h2 .by {
  margin: 0 6px 0 0;
  font-weight: 400;
  color: #5b6b82;
}
.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.card-foot .price,
.card-foot .meta { margin-top: 0; }
.meta { font-size: 12px; margin-top: 2px; }
.msg-count { display: block; margin-top: 6px; color: #5b6b82; }
.price { margin-top: 6px; font-weight: 700; font-size: 15px; }
.swap { font-size: 11px; font-weight: 400; color: #5c6b80; }
.mail { margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.mail a { text-decoration: none; }
.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.card-actions.halves {
  gap: 6px;
  align-items: stretch;
}
.card-actions.halves > button {
  flex: 1 1 0;
  width: 0;
  margin-top: 0;
  padding: 7px 4px;
  border-radius: 0;
}
.card-actions.halves > button:first-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.card-actions.halves > button:last-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.sold-mark { color: #8a1f1f; font-size: 16px; }

.sold-flag {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #8a1f1f;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  padding: 9px 0;
}

.card.sold .cover,
.detail.sold .detail-cover { opacity: 0.5; }

.detail-cover-wrap { width: 140px; }
.detail-cover-wrap .detail-cover { width: 100%; display: block; }

.cover-wrap { position: relative; }

.cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1f6;
  box-shadow: none;
  border: 1px solid #eceef2;
}

.detail-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 36, 70, 0.35);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 16px;
}
.detail {
  position: relative;
  width: min(420px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px 18px;
}
.detail-close {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #3a4150;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  padding: 6px 10px;
}
.detail-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.detail-close:hover { background: #f4f6f8; }
.detail-cover {
  width: 140px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1f6;
}
.detail h2 { margin: 14px 0 0; font-size: 22px; }
.detail-line { margin: 10px 0 0; font-size: 14px; }
.detail-line > span:first-child {
  display: block;
  color: #5b6b82;
  font-size: 12px;
}
.seller-link { color: #2f6fed; text-decoration: none; font-weight: 500; }
.seller-link:hover { text-decoration: underline; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f6fed;
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
}
.badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seller-head { max-width: none; }
.seller-head .badge { margin-inline-start: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eceef2;
}
.detail-share .icon-act { text-decoration: none; font-size: 14px; }

.digest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.digest-row > svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #2f6fed;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.digest-row > span { flex: 1 1 240px; color: #5c6b80; font-size: 14px; }

body.plain {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  font-family: "Heebo", Arial, sans-serif;
}
.plain-card {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.plain-card p { margin: 0; font-weight: 500; color: #1f2430; }
.plain-card .icon-act { text-decoration: none; }
.icon-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1f2430;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  padding: 8px 12px;
}
.icon-act svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-act:hover { background: #f4f7fb; color: #2f6fed; }
.icon-act.primary { background: #2f6fed; color: #fff; border-color: #2f6fed; }
.icon-act.primary:hover { background: #1d4fd0; color: #fff; }
.wait-mark {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 38 14;
  animation: wait-turn 0.8s linear infinite;
}
@keyframes wait-turn {
  to { transform: rotate(360deg); }
}
button.busy, .icon-act.busy, button:disabled, .icon-act:disabled {
  cursor: wait;
  pointer-events: none;
}
button.busy:hover, .icon-act.primary.busy:hover {
  background: #2f6fed;
  color: #fff;
}

.wish, .msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.wish svg, .msg svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wish {
  margin-top: 8px;
  width: 100%;
  background: #fff;
  color: #2f6fed;
  border: 1px solid #e3e6ec;
  padding: 7px 10px;
}

.wish.on {
  background: #2f6fed;
  color: #fff;
  border-color: #2f6fed;
}

.wish:hover { background: #e8f1ff; }
.wish.on:hover { background: #1d4fd0; color: #fff; }
.msg {
  margin-top: 8px;
  width: 100%;
  background: #fff;
  color: #3a4150;
  border: 1px solid #e3e6ec;
}

.msg:hover { background: #f3f6ff; color: #314056; }

.compose-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 36, 70, 0.35);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 16px;
}

.popup-back { z-index: 40; }

.popup {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 14px 16px;
  width: min(440px, 100%);
}

.popup-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid #e3e6ec;
  border-radius: 50%;
  background: #fff;
  color: #2f6fed;
}

.popup-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.popup p {
  margin: 0;
  flex: 1;
  font-weight: 500;
}

.popup .icon-act { flex: none; }

.consent { flex-wrap: wrap; }
.consent p { flex-basis: 100%; }
.consent-back { z-index: 50; }
.verify-remind { z-index: 45; }
.verify-remind .verify-line { flex-basis: 100%; }
.verify-remind .error { flex-basis: 100%; margin: 0; }

.verify-bar {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.verify-bar p { margin: 0 0 12px; }
.verify-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.verify-line input {
  width: 180px;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}
.check-line input { width: auto; }

.seek-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.seek-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.seek-form .field, .seek-form .form-actions { margin: 0; }
.seek-form .field:has(input[type='file']) { grid-column: span 2; }
.seek-preview { grid-column: 1 / -1; width: 72px; margin: 0; box-shadow: none; border: 1px solid #eceef2; }
.seek-head { margin: 8px 0 10px; font-size: 17px; }
.seek-thumb {
  width: 40px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eceef2;
  flex: none;
}
.want { cursor: default; display: flex; flex-direction: column; }
.want:hover { border-color: #eceef2; }
.want .meta { margin-top: 4px; color: #5c6b80; }
.want-btn { margin-top: auto; justify-content: center; width: 100%; }
.want h3 + .by + .meta { margin-bottom: 10px; }
.want-flag {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: #fff;
  color: #2f6fed;
  border: 1px solid #c5d4f8;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
}
.want-top { margin: 0 0 16px; }
.seek-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.seek-text span { color: #5c6b80; font-size: 14px; }
.notice-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: right;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font: inherit;
  color: #1f2430;
  cursor: pointer;
}
.notice-open:hover { border-color: #2f6fed; }

@media (max-width: 720px) {
  .seek-form { grid-template-columns: 1fr; }
}

.compose {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: min(440px, 100%);
  max-width: none;
  max-height: calc(100vh - 32px);
  min-height: 0;
  overflow: auto;
  border: 1px solid #eceef2;
}

.compose h2 { margin-top: 0; }
.compose h2::after { display: none; }

.compose-actions { display: flex; gap: 8px; }
.compose-actions .wish { width: auto; margin: 0; }

.letter {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 10px;
  box-shadow: 0 8px 20px rgba(20, 36, 70, 0.04);
}

.letter-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #1f2430;
  text-decoration: none;
  font-size: 14px;
}

.mail-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-head svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: #2f6fed;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.letter-mail svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #2f6fed;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#have-form, #join-form, #enter-form {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 20px;
  max-width: 560px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 4px 0 14px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checks input { width: auto; }

.photo-preview {
  display: block;
  width: 120px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 14px;
  box-shadow: 0 10px 22px rgba(20, 36, 70, 0.14);
}

.error { color: #8a1f1f; margin: 0 0 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
.stat {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 14px 16px;
}
.stat b {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  color: #2f6fed;
  font-weight: 700;
  line-height: 1;
}
.stat-books b, .stat-books .stat-mark { color: #0e7490; }
.stat-books .stat-mark { border-color: #b7dde4; }
.stat-sold b, .stat-sold .stat-mark { color: #1f8a4c; }
.stat-sold .stat-mark { border-color: #b7e0c6; }
.stat-users b, .stat-users .stat-mark { color: #c47b12; }
.stat-users .stat-mark { border-color: #f0d7b0; }
.stat-mail b, .stat-mail .stat-mark { color: #c4453c; }
.stat-mail .stat-mark { border-color: #f0c4c0; }
.admin-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.admin-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 8px;
}
.admin-stats .stat b { margin-top: 0; font-size: 22px; }
.admin-stats .stat span { font-size: 12px; }
.admin-stats .stat-mark { width: 22px; height: 22px; margin: 0; }
.admin-stats .stat-mark svg { width: 14px; height: 14px; }
.stat span { color: #5b6b82; font-size: 13px; line-height: 1.3; }
.stat-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stat-mark {
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f6fed;
  background: #fff;
}
.stat-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.3fr;
  gap: 10px;
  margin: 0 0 18px;
}
.dash-hero .stats { margin: 0; grid-template-columns: 1fr 1fr; }
.city-hero {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
}
.city-hero .kicker { color: #5b6b82; font-size: 13px; }
.city-hero strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #2f6fed;
}
.city-count { margin-top: 8px; color: #5b6b82; font-size: 14px; }
.city-count b { color: #1f2430; font-size: 14px; font-weight: 700; }
.leaders { margin: 0 0 22px; }
.leaders h2 { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.leader-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.leader {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.leader.first { border-color: #2f6fed; }
.rank {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #e3e6ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f6fed;
  font-weight: 700;
}
.leader.first .rank { background: #e8f1ff; border-color: #2f6fed; }
.leader-name { min-width: 0; }
.leader .who { font-weight: 700; }
.leader .meta { color: #5b6b82; font-size: 13px; }
.score { margin-inline-start: auto; text-align: end; flex: none; }
.score b { display: block; color: #2f6fed; font-size: 22px; font-weight: 700; line-height: 1; }
.score span { color: #5b6b82; font-size: 12px; }
.dash-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 36, 70, 0.35);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 16px;
}
.dash-pop {
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #f7f8fa;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 52px 18px 18px;
}
.dash-pop h2 { margin: 0 0 14px; font-size: 18px; }
.dash-pop .leaders { margin-bottom: 0; }
.board-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  margin: 0 0 22px;
}
.board { width: 100%; border-collapse: collapse; }
.board th, .board td {
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid #eceef2;
  font-size: 14px;
  vertical-align: top;
}
.board tr:last-child td { border-bottom: 0; }
.board th { color: #5b6b82; font-weight: 500; background: #f7f8fa; }
.board .meta { color: #5b6b82; }
.board .msg-cell { max-width: 320px; white-space: pre-wrap; }

.admin-block {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  overflow: hidden;
}
.admin-block .board-wrap {
  border: 0;
  border-radius: 0;
  margin: 0;
}
.day-log { margin: 0 0 22px; }
.day-log h2 { margin: 4px 0 10px; }
.day-log .board-wrap { max-height: 320px; overflow: auto; }
.day-log th { position: sticky; top: 0; z-index: 1; }
.board td.zero { color: #c5cad3; }

.admin-sub { margin: 8px 0 10px; font-size: 17px; }
.an-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.an-head .an-range { margin: 0; }
.an-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  margin-inline-start: auto;
  background: #fff;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  font-size: 14px;
  color: #314056;
}
.an-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6fed;
  box-shadow: 0 0 0 4px #e8eefe;
}
.an-refresh { height: 34px; }
.an-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.an-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}
.an-kpi b { font-size: 26px; line-height: 1.1; color: #1c2a3f; font-weight: 700; }
.an-label { font-size: 13px; color: #5b6b82; }
.an-hint { font-size: 12px; color: #8b97a8; line-height: 1.4; }
.an-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #8b97a8;
}
.an-change svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.an-change.up { color: #1f8a4c; }
.an-change.down { color: #c4453c; }
.an-note { margin: 8px 0 14px; font-size: 12px; color: #8b97a8; }
.an-card {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 14px;
  min-width: 0;
}
.an-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.an-card-head h2 { margin: 0; font-size: 15px; }
.an-chart svg { display: block; width: 100%; height: 180px; }
.an-bar-views { fill: #dce6fd; }
.an-bar-people { fill: #2f6fed; }
.an-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5b6b82; }
.an-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-inline-start: 8px; }
.an-legend i.people { background: #2f6fed; }
.an-legend i.views { background: #dce6fd; }
.an-axis { position: relative; height: 20px; margin-top: 6px; }
.an-axis span {
  position: absolute;
  top: 0;
  transform: translateX(50%);
  font-size: 11px;
  color: #8b97a8;
  white-space: nowrap;
}
.an-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.an-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.an-rank li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}
.an-fill { position: absolute; inset-block: 0; inset-inline-start: 0; background: #eef3fe; border-radius: 8px; }
.an-name, .an-count { position: relative; }
.an-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #314056; }
.an-count { flex: none; font-weight: 600; color: #1c2a3f; }
.an-count small { font-weight: 400; color: #8b97a8; margin-inline-start: 6px; }
.an-rank .an-none { color: #8b97a8; justify-content: flex-start; }
.an-acts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.an-act {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #f7f8fa;
  border-radius: 8px;
}
.an-act b { font-size: 22px; color: #2f6fed; line-height: 1.1; }
.an-act span { font-size: 13px; color: #5b6b82; }
.an-act .an-change { font-size: 12px; }

@media (max-width: 1100px) {
  .an-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-grid { grid-template-columns: 1fr; }
  .an-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-live { margin-inline-start: 0; }
}

.policy {
  max-width: 640px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 4px 18px 18px;
}
.policy h2 { margin: 16px 0 4px; font-size: 15px; }
.policy p { margin: 0; }
.note a { text-decoration: none; }

@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .side {
    width: auto;
    height: auto;
    position: sticky;
    z-index: 4;
    border-inline-end: 0;
    border-bottom: 1px solid #eceef2;
    padding: 12px;
    gap: 8px;
  }
  .brand {
    align-items: center;
    margin: 0;
    padding: 2px 0 8px;
    width: 100%;
  }
  .mark { width: 52px; height: 52px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-add { width: auto; margin: 0; }
  .filter-menu { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}

@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats .stat b { font-size: 16px; }
  .admin-stats .stat span { font-size: 11px; }
  .dash-hero, .leader-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .search-line { flex-wrap: wrap; }
  .search-combo { flex-basis: 100%; }
}
