:root {
  --bg: #f4f7f5;
  --panel: #ffffff;
  --ink: #171b1f;
  --muted: #69757f;
  --line: #e3e8e5;
  --green: #10a36a;
  --green-soft: #e8f7ef;
  --green-deep: #08794c;
  --orange: #ff7a3d;
  --orange-soft: #fff0e8;
  --blue: #2f6fed;
  --blue-soft: #edf3ff;
  --red: #e04444;
  --red-soft: #ffecec;
  --gray-soft: #f0f3f2;
  --shadow: 0 10px 26px rgba(22, 33, 28, .07);
  font-family: "Pretendard Rounded", "Pretendard", "SUIT", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.session-locked {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.capture-watermark {
  position: fixed;
  inset: -22vh -24vw;
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(6, 270px);
  grid-auto-rows: 104px;
  gap: 28px 44px;
  align-content: start;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  transform: rotate(-24deg);
  mix-blend-mode: multiply;
}

.capture-watermark span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(8, 121, 76, .2);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  user-select: none;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 163, 106, .14);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background: #fdfefe;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand {
  min-height: 54px;
  padding: 8px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.brand span,
.account span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.brand span {
  overflow: hidden;
  background: transparent;
}

.brand img,
.home-brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand strong {
  font-size: 20px;
}

a.brand {
  text-decoration: none;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav button,
.account {
  min-height: 44px;
  padding: 10px 12px;
  background: transparent;
  color: #344047;
  text-align: left;
  font-weight: 800;
}

.side-nav button.active,
.side-nav button:hover {
  background: var(--green-soft);
  color: #08794c;
}

.account {
  margin-top: auto;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.account b,
.account small {
  display: block;
}

.account small {
  color: var(--muted);
  font-size: 12px;
}

.main {
  min-width: 0;
  padding: 22px 24px 34px;
}

.mobile-home {
  display: grid;
  gap: 14px;
}

.home-greeting {
  min-height: 96px;
  padding: 8px 2px 2px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.home-greeting span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.home-brand {
  gap: 7px;
}

.home-brand img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(16, 163, 106, .14);
}

.home-greeting h1 {
  max-width: 330px;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-subtitle {
  max-width: 340px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.home-greeting button {
  min-width: 54px;
  min-height: 38px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.home-overview {
  display: grid;
  gap: 10px;
}

.home-notice-summary,
.home-metrics button {
  width: 100%;
  min-height: 68px;
  padding: 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow:
    0 14px 30px rgba(22, 33, 28, .065),
    0 1px 0 #fff inset;
  text-align: left;
}

.home-notice-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label meta"
    "value meta";
  align-items: center;
  gap: 3px 10px;
}

.home-notice-summary.is-unread {
  border-color: rgba(16, 163, 106, .32);
  background:
    linear-gradient(135deg, rgba(232, 247, 239, .86), rgba(255, 255, 255, .98) 64%),
    #fff;
}

.home-notice-summary span,
.home-metrics span,
.recent-keywords > span {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.home-notice-summary span {
  grid-area: label;
}

.home-notice-summary b {
  grid-area: value;
  font-size: 18px;
}

.home-notice-summary small {
  grid-area: meta;
  min-width: 50px;
  min-height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

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

.home-metrics button {
  min-height: 74px;
}

.home-metrics span,
.home-metrics b {
  display: block;
}

.home-metrics b {
  margin-top: 7px;
  font-size: 23px;
}

.topbar {
  min-height: 56px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar strong {
  display: block;
  font-size: 24px;
}

.topbar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.top-actions button,
.section-title button,
.lookup-head button,
.row-actions button,
.attach-row button,
.segmented button,
.modal button,
.filter-panel label,
.my-menu button,
.admin-menu button,
.thread-list button {
  min-height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.top-actions button {
  position: relative;
  overflow: visible;
}

.top-actions button.has-badge {
  border-color: rgba(16, 163, 106, .34);
  box-shadow: 0 10px 22px rgba(8, 121, 76, .08);
}

.top-actions b {
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent),
    linear-gradient(135deg, #18b978, #08794c);
  color: #fff;
  box-shadow:
    0 9px 18px rgba(8, 121, 76, .18),
    0 1px 0 rgba(255, 255, 255, .36) inset;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.notice-badge i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

.notice-badge-inline {
  margin-left: 8px;
  vertical-align: 1px;
}

.notice-badge-count {
  position: absolute;
  top: -10px;
  right: -9px;
  min-width: 28px;
  height: 25px;
  padding: 0 8px;
}

.notice-badge-muted {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent),
    #e8eeeb;
  border-color: #dbe4df;
  color: #69757f;
  box-shadow: none;
}

.notice-badge-muted i {
  background: #a8b4ae;
  box-shadow: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.test-only,
.test-nav {
  display: none;
}

body[data-test-mode="core"] .test-only {
  display: block;
}

body[data-test-mode="core"] .test-nav {
  display: block;
}

.test-env-panel {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(16, 163, 106, .18);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.98), rgba(240,249,245,.94)),
    #fff;
  box-shadow: var(--shadow);
}

.live-proof-panel,
.admin-live-proof {
  padding: 16px;
  border: 1px solid rgba(16, 163, 106, .16);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .98), rgba(238, 249, 244, .92)),
    #fff;
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, .92) inset;
}

.admin-live-proof {
  margin-bottom: 16px;
}

.live-proof-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.live-proof-head span {
  display: block;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 950;
}

.live-proof-head h2 {
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.18;
}

.live-proof-head p {
  margin-top: 7px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.48;
}

.live-proof-head > b {
  min-width: 92px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.live-proof-head > b.ok {
  background: var(--green-soft);
  color: var(--green-deep);
}

.live-proof-head > b.warn {
  background: var(--orange-soft);
  color: #a74b19;
}

.live-proof-user,
.live-proof-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.live-proof-user article,
.live-proof-counts article {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(16, 163, 106, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
}

.live-proof-user span,
.live-proof-counts span,
.live-proof-user small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.live-proof-user b,
.live-proof-counts b {
  display: block;
  margin-top: 4px;
  color: #10251d;
  font-size: 19px;
  line-height: 1.18;
}

.live-proof-panel .row-actions,
.admin-live-proof .row-actions {
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-live-proof .live-proof-counts {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.test-env-panel > span {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.test-env-panel h2 {
  margin-top: 5px;
  font-size: 21px;
}

.test-env-panel p,
.test-env-panel small {
  color: var(--muted);
  line-height: 1.45;
}

.test-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
}

.test-steps button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-align: left;
  background: #f7fbf9;
  border-color: rgba(16, 163, 106, .14);
}

.test-steps b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
}

.test-steps span {
  font-weight: 900;
}

.lookup-panel,
.panel,
.toolbar,
.filter-panel,
.result-card,
.trade-card,
.notice-card,
.thread-list,
.chat-panel,
.status-grid button,
.ranking article,
.empty-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lookup-panel {
  padding: 16px;
  border-color: #d8efe2;
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 163, 106, .14), transparent 34%),
    #ffffff;
}

.lookup-head,
.section-title,
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 21px;
}

.lookup-head span,
.result-card > div > span,
.trade-card > span {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.lookup-head h1 {
  margin-top: 3px;
  font-size: 28px;
  line-height: 1.2;
}

.lookup-head h2 {
  margin-top: 2px;
  font-size: 19px;
}

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

.search-box input {
  min-height: 48px;
  padding: 0 14px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  background: #f8fbf9;
}

.search-box button,
.primary {
  min-height: 48px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  border-radius: 12px;
}

.chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-keywords {
  margin-top: 14px;
}

.recent-keywords > span {
  display: block;
  margin: 0 0 8px 2px;
}

.recent-keywords .chips {
  margin-top: 0;
}

.chips button {
  min-height: 34px;
  padding: 0 10px;
  background: #f5f8f6;
  border: 1px solid #e3ebe6;
  color: #3d4a42;
  font-weight: 800;
}

.chips button.active {
  background: var(--green-soft);
  border-color: #b9e8d0;
  color: #08794c;
}

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

.status-strip button {
  min-height: 76px;
  padding: 13px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(22, 33, 28, .045);
  text-align: left;
}

.status-strip span,
.quick-actions span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-strip b {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.quick-actions {
  display: grid;
  gap: 8px;
}

.quick-actions button {
  min-height: 72px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title badge"
    "desc badge";
  align-items: center;
  column-gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(22, 33, 28, .045);
  text-align: left;
}

.quick-actions b {
  grid-area: title;
  font-size: 18px;
}

.quick-actions span {
  grid-area: desc;
  margin-top: 4px;
}

.quick-actions em {
  grid-area: badge;
  min-width: 52px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
  font-style: normal;
  font-weight: 900;
}

.status-grid {
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-grid button {
  min-height: 112px;
  padding: 14px;
  text-align: left;
}

.status-grid span,
.status-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-grid b {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.two-col,
.search-layout,
.form-layout,
.message-layout,
.trade-layout,
.my-layout,
.admin-layout {
  display: grid;
  gap: 14px;
}

.two-col {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.list,
.ranking,
.point-rules,
.mini-feed,
.ledger,
.settings-list,
.flag-list,
.escrow {
  display: grid;
  gap: 10px;
}

.result-card {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 12px;
  align-items: start;
  border-radius: 16px;
  cursor: pointer;
}

.result-card h3 {
  margin-top: 5px;
  font-size: 19px;
}

.result-card em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  background: var(--gray-soft);
  color: #59636a;
}

.result-card.good em {
  background: var(--green-soft);
  color: #08794c;
}

.result-card.warn em {
  background: var(--orange-soft);
  color: #a64a19;
}

.result-card.gray em {
  background: var(--gray-soft);
  color: #59636a;
}

.result-card p,
.result-card small,
.trade-card p,
.notice-card small,
.thread-list small,
.chat-head span,
.empty-card p,
.panel p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.identity-preview {
  display: grid;
  gap: 5px;
  margin: 9px 0 6px;
}

.identity-preview span {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.identity-preview b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.identity-preview i {
  min-width: 0;
  overflow: visible;
  font-style: normal;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.result-card .linked-line {
  display: inline-flex;
  width: fit-content;
  margin: 8px 0 2px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(16, 163, 106, .1);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.linked-comment-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(16, 163, 106, .1);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.thread-comment-feed {
  margin: 12px 0;
  padding: 12px;
  border-radius: 18px;
  background: #f7fbf8;
  border: 1px solid rgba(16, 163, 106, .16);
}

.thread-comment-feed strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--green-deep);
}

.thread-comment-feed ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thread-comment-feed li {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(41, 53, 49, .08);
}

.thread-comment-feed li b {
  font-size: 12px;
  color: var(--ink);
}

.thread-comment-feed li span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.thread-comment-feed li small,
.thread-comment-feed p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.thread-comment-feed p {
  margin-top: 8px;
  font-weight: 800;
}

.subject-detail-sections {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.subject-detail-sections article {
  padding: 12px;
  border-radius: 16px;
  background: #f8fbf9;
  border: 1px solid rgba(16, 163, 106, .13);
}

.subject-detail-sections span,
.subject-detail-sections b,
.subject-detail-sections small {
  display: block;
}

.subject-detail-sections span {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.subject-detail-sections b {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
}

.subject-detail-sections small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

mark {
  padding: 0 2px;
  border-radius: 4px;
  background: #fff2a8;
  color: inherit;
}

.tag-row {
  margin: 9px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row b {
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #2455b8;
  font-size: 11px;
}

.tag-row b.match-note {
  background: var(--orange-soft);
  color: #a64a19;
}

.tag-row b.example-type {
  background: #e8f6ee;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(16, 163, 106, .18);
}

.message-mode-card {
  padding: 12px;
  border: 1px solid rgba(16, 163, 106, .14);
  border-radius: 16px;
  background: #f7fbf9;
}

.message-mode-card b,
.message-mode-card span {
  display: block;
}

.message-mode-card b {
  color: var(--green-deep);
  font-size: 15px;
}

.message-mode-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.message-list-head {
  display: grid;
  gap: 2px;
  padding: 0 2px 2px;
}

.message-list-head b {
  font-size: 17px;
}

.message-list-head small {
  color: var(--muted);
  font-weight: 800;
}

.thread-list button b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.thread-list button em {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-style: normal;
}

.inline-check {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.inline-check input {
  width: auto;
}

.result-refiners {
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.search-notice {
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid #cfeee0;
  border-radius: 8px;
  background: #f2fbf6;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

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

.refine-line > span {
  padding-top: 8px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.refine-line > div {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.refine-line > div::-webkit-scrollbar {
  display: none;
}

.refine-line button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #e3ebe6;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fbf9;
  color: #3d4a42;
  font-size: 13px;
  font-weight: 900;
}

.refine-line button.active {
  background: var(--green-soft);
  border-color: #b9e8d0;
  color: var(--green-deep);
}

.refine-line button small {
  min-width: 21px;
  min-height: 21px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.result-group {
  display: grid;
  gap: 10px;
}

.result-group + .result-group {
  margin-top: 18px;
}

.result-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.result-group-head span,
.result-group-head b,
.result-group-head small {
  display: block;
}

.result-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.result-group-head b {
  margin-top: 2px;
  font-size: 20px;
}

.result-group-head small {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.result-group.same-name .result-group-head small {
  background: var(--orange-soft);
  color: #a64a19;
}

.score-box {
  display: grid;
  gap: 8px;
}

.score-box strong {
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: #08794c;
  font-size: 22px;
}

.score-box button {
  min-height: 36px;
  background: var(--gray-soft);
  color: var(--ink);
  font-weight: 800;
}

.ranking article,
.mini-feed article,
.point-rules article,
.escrow article {
  min-height: 62px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ranking article > span,
.escrow b {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: #b04e1d;
  font-weight: 900;
}

.ranking p,
.mini-feed span,
.mini-feed small,
.point-rules span {
  color: var(--muted);
}

.toolbar {
  padding: 12px;
  margin-bottom: 14px;
}

.search-layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

.filter-panel {
  padding: 14px;
  align-content: start;
}

.filter-panel h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.filter-panel label {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-panel input,
.checks input,
.settings-list input {
  width: auto;
}

.form-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.panel {
  padding: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #39464e;
  font-size: 14px;
  font-weight: 900;
}

label input,
label select,
textarea {
  min-height: 46px;
  padding: 11px 12px;
  font-weight: 700;
}

label select {
  appearance: none;
  padding-right: 36px;
  background:
    linear-gradient(45deg, transparent 50%, #6d7a72 50%) calc(100% - 19px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #6d7a72 50%, transparent 50%) calc(100% - 14px) 50% / 7px 7px no-repeat,
    #fff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.checks,
.attach-row {
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

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

.attach-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.attach-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.message-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.thread-list {
  padding: 10px;
  align-content: start;
}

.thread-list button {
  width: 100%;
  margin-bottom: 8px;
  display: grid;
  gap: 3px;
  text-align: left;
}

.thread-list button.active {
  background: var(--green-soft);
  border-color: #b9e8d0;
}

.chat-panel {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chat-head {
  margin: 0;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.chat-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.chat-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.chat-head button {
  min-height: 36px;
  padding: 0 12px;
  background: #f3f7f5;
  color: var(--green-deep);
  font-weight: 900;
}

.chat-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

.chat-body article {
  max-width: min(420px, 86%);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--gray-soft);
}

.chat-body article.me {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
}

.chat-body span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: .72;
}

.chat-input {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
}

.chat-input input {
  min-height: 44px;
  padding: 0 12px;
}

.chat-input button {
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.trade-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.segmented {
  display: flex;
  gap: 6px;
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

.trade-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.trade-card,
.empty-card,
.notice-card {
  padding: 14px;
}

.trade-card h3 {
  margin: 6px 0;
  font-size: 18px;
}

.row-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions button {
  background: var(--gray-soft);
}

.my-layout,
.admin-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.admin-only-shell .main {
  max-width: 1240px;
  width: 100%;
}

.admin-standalone-panel {
  min-height: calc(100vh - 108px);
  padding: 22px;
}

.admin-only-shell .admin-menu {
  gap: 7px;
}

.admin-only-shell .admin-menu button {
  width: 100%;
}

.my-menu,
.admin-menu {
  display: grid;
  gap: 8px;
  align-content: start;
}

.my-menu button,
.admin-menu button {
  text-align: left;
}

.my-menu button.active,
.admin-menu button.active {
  background: var(--green-soft);
  border-color: #b9e8d0;
  color: #08794c;
}

.big-number {
  margin: 12px 0 4px;
  font-size: 42px;
  font-weight: 900;
}

.point-rate,
.point-ledger,
.admin-point-box,
.badge-overview,
.badge-progress,
.badge-rule-list {
  display: grid;
  gap: 10px;
}

.badge-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.badge-overview article,
.badge-progress,
.badge-admin-grid article,
.badge-rule-list article {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 163, 106, .14);
  background: #f8fbf9;
}

.badge-overview span,
.badge-progress span,
.badge-rule-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.badge-overview b,
.badge-progress b,
.badge-admin-grid b,
.badge-rule-list b {
  display: block;
  margin-top: 4px;
  color: var(--green-deep);
}

.badge-overview small,
.badge-rule-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.badge-progress {
  margin-top: 10px;
}

.badge-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-progress article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(10, 18, 14, .08);
}

.soft-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff8e7;
  color: #6f4b00;
  font-weight: 800;
  line-height: 1.45;
}

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

.badge-admin-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.badge-rule-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-rule-list article > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.badge-rule-list em {
  font-style: normal;
  color: #6f4b00;
  font-weight: 900;
}

.badge-rule-list button {
  min-height: 34px;
  padding: 0 12px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.review-safety-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.review-safety-grid article {
  padding: 12px;
  border-radius: 16px;
  background: #f8fbf9;
  border: 1px solid rgba(16, 163, 106, .14);
}

.review-safety-grid b,
.review-safety-grid span {
  display: block;
}

.review-safety-grid b {
  color: var(--green-deep);
}

.review-safety-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.roadmap-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.roadmap-board article,
.prep-lanes section {
  padding: 14px;
  border: 1px solid rgba(16, 163, 106, .14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 251, 249, .96)),
    #fff;
  box-shadow: 0 10px 24px rgba(22, 33, 28, .055);
}

.roadmap-board span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.roadmap-board b,
.roadmap-board small {
  display: block;
}

.roadmap-board b {
  margin-top: 10px;
  font-size: 20px;
}

.roadmap-board small {
  min-height: 44px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.roadmap-board button {
  min-height: 40px;
  margin-top: 12px;
  padding: 0 12px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.prep-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.prep-lanes h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.prep-lanes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #3f4c45;
  font-weight: 700;
}

.review-card .row-actions {
  margin-top: 10px;
}

.import-summary {
  margin: 12px 0 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.import-summary span {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #dce9e2;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #405149;
  font-size: 13px;
  font-weight: 900;
}

.import-summary b {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
}

.import-preview-card .field-map {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.import-preview-card .field-map i {
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f4f7f5;
  color: #526158;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.point-rate {
  margin: 14px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.point-rate article,
.point-ledger article,
.admin-point-box article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.point-rate b,
.point-rate span,
.point-ledger b,
.point-ledger span,
.point-ledger small,
.admin-point-box b,
.admin-point-box span,
.admin-point-box small {
  display: block;
}

.point-rate b {
  font-size: 19px;
}

.point-rate span,
.point-ledger small,
.admin-point-box small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.point-ledger b {
  font-size: 18px;
}

.point-ledger b.plus {
  color: var(--green-deep);
}

.point-ledger b.minus {
  color: var(--red);
}

.point-ledger span {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 900;
}

.admin-point-box {
  margin: 12px 0 14px;
}

.admin-point-box article b {
  font-size: 18px;
}

.admin-point-box article span {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 900;
}

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

.notice-card.server-notice {
  position: relative;
  overflow: hidden;
}

.notice-card.server-notice.is-unread {
  border-color: rgba(16, 163, 106, .35);
  background:
    linear-gradient(135deg, rgba(232, 247, 239, .9), rgba(255, 255, 255, .98) 64%),
    #fff;
}

.notice-card.server-notice.is-unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #18b978, #08794c);
}

.notice-card > em.notice-card-badge {
  justify-self: end;
}

.notice-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-title-badge {
  transform: translateY(1px);
}

.notice-card.danger {
  border-color: #ffc8c8;
  background: var(--red-soft);
}

.notice-card button {
  min-height: 36px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.admin-kpis article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-kpis b {
  display: block;
  font-size: 28px;
}

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

.flag-list button {
  min-height: 52px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
}

.flag-list b {
  color: var(--green);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 27, 31, .42);
}

.modal-backdrop.show {
  display: flex;
}

.modal-backdrop.is-required .modal-close {
  display: none;
}

.modal-backdrop.is-required .modal {
  width: min(430px, 100%);
  overflow: visible;
  border-radius: 24px;
}

.modal-backdrop.is-required .modal::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: -13px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 0 0 8px 0;
  transform: rotate(45deg);
  box-shadow: 16px 16px 34px rgba(0, 0, 0, .08);
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: var(--gray-soft);
}

.modal h2 {
  margin-right: 58px;
  margin-bottom: 8px;
}

.welcome-repair-modal {
  display: grid;
  gap: 12px;
}

.welcome-bubble-label {
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #08794c;
  font-size: 12px;
  font-weight: 900;
}

.welcome-repair-modal h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.16;
}

.welcome-repair-modal p {
  margin: 0;
  color: #33423b;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 800;
}

.welcome-repair-modal p b {
  color: #08794c;
}

.welcome-repair-modal small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.welcome-confirm {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(16, 163, 106, .22);
  font-size: 16px;
  font-weight: 900;
}

.modal-grid {
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-grid b,
.modal-grid span {
  display: block;
}

.modal-grid span {
  color: var(--muted);
}

.support-prompt > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.support-prompt h2 {
  margin: 12px 0 8px;
}

.support-prompt p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.support-reasons {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.support-reasons span {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #a64a19;
  font-size: 12px;
  font-weight: 900;
}

.support-prompt .row-actions button:first-child,
#submitSupportComment {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  transform: translateX(-50%) translateY(20px);
  min-height: 44px;
  max-width: min(520px, calc(100vw - 28px));
  padding: 11px 16px;
  display: grid;
  place-items: center;
  background: #151b1f;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.screen-report-button {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 34;
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 121, 76, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #08794c;
  box-shadow: 0 12px 34px rgba(18, 42, 34, .16);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.screen-report-button::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: #10a36a;
  box-shadow: 0 0 0 4px rgba(16, 163, 106, .13);
}

.screen-report-button.is-sending {
  pointer-events: none;
  color: #6b7470;
  background: rgba(244, 247, 245, .96);
}

.screen-report-button.is-sending::before {
  background: #9aa5a0;
  box-shadow: 0 0 0 4px rgba(154, 165, 160, .14);
}

body[data-shell="admin"] .screen-report-button {
  display: none;
}

.speed-hint {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wait-indicator {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 45;
  width: min(420px, calc(100vw - 36px));
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(23, 32, 28, .96);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(23, 32, 28, .2);
  transform: translateX(-50%);
}

.wait-indicator[hidden] {
  display: none;
}

.wait-indicator span,
.wait-indicator b {
  display: block;
}

.wait-indicator span {
  font-weight: 900;
}

.wait-indicator b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
}

.session-shield {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(244, 247, 245, .82), rgba(244, 247, 245, .9)),
    repeating-linear-gradient(-24deg, rgba(8, 121, 76, .13) 0 2px, transparent 2px 62px);
  backdrop-filter: blur(14px);
}

.session-shield[hidden] {
  display: none;
}

.session-card {
  width: min(420px, 100%);
  padding: 26px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(185, 232, 208, .9);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(22, 33, 28, .18);
  text-align: left;
}

.session-card span {
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 900;
}

.session-card h2 {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.2;
}

.session-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.session-card button {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(16, 163, 106, .25);
}

.secondary-action {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1020px) {
  .badge-overview,
  .badge-admin-grid {
    grid-template-columns: 1fr;
  }

  .badge-rule-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .badge-rule-list article > div:last-child {
    justify-content: space-between;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .main {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 14px 86px;
  }

  body[data-view-name="home"] .topbar {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 25;
    width: min(100%, 480px);
    min-height: 72px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
  }

  .bottom-nav button {
    min-width: 0;
    min-height: 54px;
    padding: 5px 2px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.05;
    font-weight: 900;
    white-space: nowrap;
  }

  .bottom-nav svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-nav span {
    display: block;
  }

  .bottom-nav button.active {
    background: var(--green-soft);
    color: #08794c;
  }

  .screen-report-button {
    right: max(14px, calc((100vw - 480px) / 2 + 14px));
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar strong {
    font-size: 22px;
  }

  .top-actions {
    flex-shrink: 0;
  }

  .lookup-head {
    align-items: flex-start;
  }

  .lookup-head h1 {
    font-size: 24px;
  }

  .search-box,
  .chat-input {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .status-grid,
  .two-col,
  .search-layout,
  .form-layout,
  .message-layout,
  .trade-layout,
  .my-layout,
  .admin-layout,
  .trade-toolbar,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    display: none;
  }

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

  .message-layout {
    gap: 10px;
  }

  .thread-list {
    display: flex;
    gap: 8px;
    overflow: auto;
  }

  .thread-list button {
    min-width: 150px;
    margin-bottom: 0;
  }

  .chat-panel {
    min-height: 520px;
  }

  .my-menu,
  .admin-menu {
    display: flex;
    overflow: auto;
  }

  .my-menu button,
  .admin-menu button {
    min-width: max-content;
  }

  .notice-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 440px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .lookup-panel,
  .panel,
  .toolbar,
  .result-card,
  .trade-card,
  .notice-card {
    padding: 12px;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .score-box {
    grid-template-columns: 70px 1fr 1fr;
    align-items: center;
  }

  .status-grid b {
    font-size: 22px;
  }
}

/* Mobile-first v43: calmer spacing and clearer paths */
.mobile-home {
  gap: 24px;
  padding-bottom: 18px;
}

.home-greeting {
  min-height: 118px;
  padding: 20px 4px 0;
}

.home-greeting span {
  min-height: auto;
  color: var(--green-deep);
  font-size: 14px;
}

.home-greeting h1 {
  max-width: 260px;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
}

.home-greeting button {
  min-width: 58px;
  min-height: 42px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(22, 33, 28, .045);
}

.lookup-panel {
  padding: 22px 18px 18px;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(9, 95, 59, .1);
}

.lookup-head {
  margin-bottom: 18px;
}

.lookup-head h2 {
  margin-top: 6px;
  max-width: 270px;
  font-size: 21px;
  line-height: 1.35;
}

.search-box {
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 10px;
}

.search-box input {
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 18px;
  background: #fbfdfc;
}

.search-box button,
.primary {
  min-height: 56px;
  border-radius: 16px;
}

.chips {
  margin-top: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

.home-summary {
  min-height: 84px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #17201c;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(23, 32, 28, .12);
}

.home-summary span,
.home-summary strong,
.home-summary small {
  display: block;
}

.home-summary span {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
}

.home-summary strong {
  font-size: 19px;
}

.home-summary small {
  flex: 0 0 auto;
  max-width: 128px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

.status-strip {
  margin-top: -14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-strip button {
  min-height: 86px;
  padding: 16px 14px;
  border-radius: 20px;
  box-shadow: none;
}

.status-strip span {
  font-size: 13px;
}

.status-strip b {
  margin-top: 10px;
  font-size: 24px;
}

.quick-actions {
  gap: 12px;
}

.quick-actions button {
  min-height: 92px;
  padding: 18px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title badge"
    "icon desc badge";
  border-radius: 24px;
  box-shadow: none;
}

.quick-actions i {
  grid-area: icon;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
  font-style: normal;
  font-weight: 900;
}

.quick-actions b {
  font-size: 19px;
}

.quick-actions span {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.35;
}

.quick-actions em {
  min-width: 54px;
  min-height: 36px;
}

.section-title {
  margin: 2px 2px 14px;
}

.section-title h2 {
  font-size: 24px;
}

.section-title button {
  min-height: 38px;
  border-radius: 999px;
}

.compact-list {
  gap: 12px;
}

.compact-list .result-card {
  min-height: 122px;
  padding: 18px;
  border-radius: 24px;
  box-shadow: none;
}

.compact-list .result-card:nth-child(n+4) {
  display: none;
}

.compact-list .tag-row {
  display: flex;
}

.compact-list .result-card h3 {
  margin-top: 7px;
  font-size: 21px;
}

.compact-list .result-card p {
  margin-top: 8px;
  font-size: 15px;
}

.compact-list .score-box {
  align-self: stretch;
  grid-template-rows: 52px 1fr;
}

.compact-list .score-box strong {
  height: 52px;
  border-radius: 18px;
}

.compact-list .score-box button {
  min-height: 38px;
  border-radius: 14px;
}

.compact-list .score-box button[data-message-subject] {
  display: none;
}

.ranking-section {
  padding-bottom: 8px;
}

.ranking {
  gap: 12px;
}

.ranking article {
  min-height: 72px;
  padding: 16px;
  border-radius: 20px;
  box-shadow: none;
}

@media (max-width: 1020px) {
  .main {
    max-width: 460px;
    padding: 14px 18px 94px;
  }

  .bottom-nav {
    width: min(100%, 460px);
    min-height: 76px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    gap: 4px;
    border-radius: 24px 24px 0 0;
  }

  .bottom-nav button {
    border-radius: 16px;
  }
}

@media (max-width: 440px) {
  .main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-greeting h1 {
    font-size: 31px;
  }

  .lookup-panel,
  .panel,
  .toolbar,
  .result-card,
  .trade-card,
  .notice-card {
    padding: 18px;
  }

  .search-box {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .quick-actions button {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 16px;
  }
}

/* v43 action feel: depth without slowing the PWA */
button {
  touch-action: manipulation;
  transition: transform .06s ease, box-shadow .06s ease, background-color .06s ease, border-color .06s ease;
}

button:active,
.tap-active {
  transform: translateY(1px) scale(.985);
}

.lookup-panel {
  box-shadow:
    0 24px 52px rgba(9, 95, 59, .14),
    0 2px 0 rgba(255, 255, 255, .9) inset;
}

.search-box button,
.primary,
.chat-input button {
  background: linear-gradient(180deg, #18b978, var(--green));
  box-shadow: 0 12px 24px rgba(16, 163, 106, .25);
}

.search-box button:active,
.primary:active,
.chat-input button:active {
  box-shadow: 0 6px 12px rgba(16, 163, 106, .2);
}

.chips button:active,
.section-title button:active,
.row-actions button:active {
  background: var(--green-soft);
  border-color: #b9e8d0;
  color: var(--green-deep);
}

.home-summary {
  box-shadow:
    0 22px 48px rgba(23, 32, 28, .18),
    0 1px 0 rgba(255, 255, 255, .14) inset;
}

.home-summary button {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset;
}

.status-strip button,
.quick-actions button,
.compact-list .result-card,
.ranking article,
.thread-list,
.chat-panel,
.panel,
.toolbar,
.trade-card,
.notice-card {
  box-shadow:
    0 14px 30px rgba(22, 33, 28, .075),
    0 1px 0 #fff inset;
}

.status-strip button:active,
.quick-actions button:active,
.compact-list .result-card:active,
.ranking article:active {
  box-shadow: 0 7px 16px rgba(22, 33, 28, .08);
}

.quick-actions button {
  position: relative;
  overflow: hidden;
}

.quick-actions button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.42), transparent);
  transform: translateX(-120%);
  transition: transform .12s ease;
  pointer-events: none;
}

.quick-actions button:active::after {
  transform: translateX(120%);
}

.quick-actions i,
.compact-list .score-box strong,
.ranking article > span {
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 8px 16px rgba(8, 121, 76, .08);
}

.bottom-nav {
  box-shadow: 0 -12px 34px rgba(22, 33, 28, .1);
}

.bottom-nav button.active {
  box-shadow: 0 8px 18px rgba(16, 163, 106, .12);
}

@media (prefers-reduced-motion: reduce) {
  button,
  .quick-actions button::after {
    transition: none;
  }

  button:active {
    transform: none;
  }
}

/* Easy registration flow */
.register-flow {
  display: grid;
  gap: 18px;
}

.register-hero {
  min-height: 126px;
  padding: 20px 4px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.register-hero span {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.register-hero h1 {
  max-width: 300px;
  margin-top: 9px;
  font-size: 31px;
  line-height: 1.18;
}

.register-hero button {
  min-width: 58px;
  min-height: 42px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 33, 28, .045);
}

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

.register-steps span {
  min-height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.register-steps span.active {
  background: var(--green-soft);
  border-color: #b9e8d0;
  color: var(--green-deep);
}

.easy-register {
  display: grid;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.form-section {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 14px 30px rgba(22, 33, 28, .075),
    0 1px 0 #fff inset;
}

.form-section-head {
  margin-bottom: 14px;
}

.form-section-head b,
.form-section-head small {
  display: block;
}

.form-section-head b {
  font-size: 20px;
}

.form-section-head small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.easy-register .field-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.region-select-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.region-select-group small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.region-select-group input[type="hidden"] {
  display: none;
}

.input-guide {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.input-guide[data-level="ok"] {
  color: var(--green-deep);
}

.input-guide[data-level="warn"] {
  color: #a35411;
}

.input-guide[data-level="error"] {
  color: var(--red);
}

.register-precheck {
  padding: 14px;
  border: 1px solid rgba(16, 163, 106, .14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 252, 250, .9)),
    #fff;
  box-shadow: 0 10px 22px rgba(28, 43, 36, .055), 0 1px 0 #fff inset;
}

.register-precheck span,
.register-precheck b,
.register-precheck small {
  display: block;
}

.register-precheck span {
  color: #5d6a63;
  font-size: 12px;
  font-weight: 900;
}

.register-precheck b {
  margin-top: 5px;
  color: #111a16;
  font-size: 17px;
}

.register-precheck small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.register-precheck[data-state="exists"] {
  border-color: rgba(224, 68, 68, .18);
  background: linear-gradient(180deg, #fff, var(--red-soft));
}

.register-precheck[data-state="check"] {
  border-color: rgba(245, 159, 40, .28);
  background: linear-gradient(180deg, #fff, var(--amber-soft));
}

.register-precheck[data-state="new"] {
  border-color: rgba(16, 163, 106, .22);
  background: linear-gradient(180deg, #fff, var(--green-soft));
}

.server-branch-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(38, 102, 82, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 250, 249, .94));
  box-shadow: 0 10px 20px rgba(28, 43, 36, .05);
}

.server-branch-panel > span,
.server-branch-panel > b,
.server-branch-panel > small {
  display: block;
}

.server-branch-panel > span {
  color: #5d6a63;
  font-size: 12px;
  font-weight: 900;
}

.server-branch-panel > b {
  margin-top: 5px;
  color: #111a16;
  font-size: 17px;
}

.server-branch-panel > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.server-branch-panel[data-state="incomplete"] {
  border-color: rgba(245, 159, 40, .26);
  background: linear-gradient(180deg, #fff, var(--amber-soft));
}

.server-branch-panel[data-state="complete"] {
  border-color: rgba(16, 163, 106, .22);
  background: linear-gradient(180deg, #fff, var(--green-soft));
}

.server-branch-panel[data-state="supplement"] {
  border-color: rgba(16, 163, 106, .26);
  background: linear-gradient(180deg, #fff, rgba(224, 247, 238, .95));
}

.server-branch-panel[data-state="comment"] {
  border-color: rgba(49, 108, 223, .24);
  background: linear-gradient(180deg, #fff, var(--blue-soft));
}

.branch-primary-action {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: #111a16;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(17, 26, 22, .16);
}

.easy-register label.field-locked {
  color: #7c8781;
}

.easy-register input:disabled,
.easy-register select:disabled,
.easy-register textarea:disabled {
  color: #66736d;
  border-color: rgba(35, 52, 45, .08);
  background: #f0f4f2;
  opacity: 1;
}

.easy-register label {
  font-size: 13px;
}

.easy-register input,
.easy-register select,
.easy-register textarea {
  min-height: 54px;
  border-radius: 16px;
  background: #fbfdfc;
  font-size: 17px;
}

.easy-register textarea {
  min-height: 128px;
  padding-top: 14px;
}

.quick-picks {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-picks::-webkit-scrollbar {
  display: none;
}

.quick-picks button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f5f8f6;
  border: 1px solid #e3ebe6;
  color: #3d4a42;
  font-weight: 900;
}

.easy-register .attach-row {
  margin-top: 14px;
  padding: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  background: #f8fbf9;
  border-radius: 18px;
}

.easy-register .attach-row button {
  border-radius: 14px;
  background: #fff;
}

.easy-register .checks {
  margin: 0;
  gap: 10px;
}

.easy-register .checks label {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  background: #f8fbf9;
}

.register-submit {
  width: 100%;
  margin-top: 14px;
}

.reward-panel {
  border-radius: 24px;
}

@media (min-width: 1021px) {
  .register-flow {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .register-hero,
  .register-steps,
  .easy-register {
    grid-column: 1;
  }

  .reward-panel {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

/* Preview mode: keep the PWA in phone shape even inside a wide desktop browser. */
body[data-preview="mobile"] {
  background:
    linear-gradient(90deg, rgba(8, 121, 76, .035), transparent 18%, transparent 82%, rgba(8, 121, 76, .035)),
    var(--bg);
}

body[data-preview="mobile"] .app-shell {
  grid-template-columns: 1fr;
}

body[data-preview="mobile"] .side {
  display: none;
}

body[data-preview="mobile"] .main {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 18px 94px;
  background: var(--bg);
}

body[data-preview="mobile"][data-view-name="home"] .topbar {
  display: none;
}

body[data-preview="mobile"] .bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 25;
  width: min(100%, 460px);
  min-height: 76px;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 34px rgba(22, 33, 28, .1);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

body[data-preview="mobile"] .bottom-nav button {
  min-width: 0;
  min-height: 54px;
  padding: 5px 2px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.05;
  font-weight: 900;
  white-space: nowrap;
}

body[data-preview="mobile"] .bottom-nav svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-preview="mobile"] .bottom-nav span {
  display: block;
}

body[data-preview="mobile"] .bottom-nav button.active {
  background: var(--green-soft);
  color: #08794c;
  box-shadow: 0 8px 18px rgba(16, 163, 106, .12);
}

body[data-preview="mobile"] .screen-report-button {
  right: max(14px, calc((100vw - 460px) / 2 + 14px));
  bottom: calc(88px + env(safe-area-inset-bottom));
}

body[data-preview="mobile"] .topbar {
  align-items: flex-start;
}

body[data-preview="mobile"] .topbar strong {
  font-size: 22px;
}

body[data-preview="mobile"] .top-actions {
  flex-shrink: 0;
}

body[data-preview="mobile"] .lookup-head {
  align-items: flex-start;
}

body[data-preview="mobile"] .search-box,
body[data-preview="mobile"] .chat-input {
  grid-template-columns: minmax(0, 1fr) 70px;
}

body[data-preview="mobile"] .status-grid,
body[data-preview="mobile"] .two-col,
body[data-preview="mobile"] .search-layout,
body[data-preview="mobile"] .register-flow,
body[data-preview="mobile"] .form-layout,
body[data-preview="mobile"] .message-layout,
body[data-preview="mobile"] .trade-layout,
body[data-preview="mobile"] .my-layout,
body[data-preview="mobile"] .admin-layout,
body[data-preview="mobile"] .trade-toolbar,
body[data-preview="mobile"] .field-grid {
  grid-template-columns: 1fr;
}

body[data-preview="mobile"] .filter-panel {
  display: none;
}

body[data-preview="mobile"] .status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-preview="mobile"] .thread-list {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow: auto;
  border-radius: 14px;
  box-shadow: none;
  scrollbar-width: thin;
}

body[data-preview="mobile"] .thread-list button {
  min-width: 148px;
  min-height: 66px;
  padding: 10px 11px;
  margin-bottom: 0;
}

body[data-preview="mobile"] .thread-list button b {
  font-size: 13px;
  line-height: 1.25;
}

body[data-preview="mobile"] .thread-list button small {
  max-height: 32px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
}

body[data-preview="mobile"][data-view-name="messages"] .topbar {
  display: none;
}

body[data-preview="mobile"][data-view-name="messages"] .main {
  padding-top: 8px;
}

body[data-preview="mobile"][data-view-name="messages"] .message-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-preview="mobile"][data-view-name="messages"] .message-list-head,
body[data-preview="mobile"][data-view-name="messages"] .message-mode-card {
  display: none;
}

body[data-preview="mobile"] .chat-panel {
  min-height: calc(100dvh - 190px);
  order: 2;
}

body[data-preview="mobile"][data-view-name="messages"] .thread-list {
  order: 1;
  min-height: 82px;
  max-height: 92px;
  align-items: stretch;
}

body[data-preview="mobile"] .chat-head {
  padding: 12px;
  align-items: flex-start;
}

body[data-preview="mobile"] .chat-head h2 {
  font-size: 18px;
}

body[data-preview="mobile"] .chat-head span {
  font-size: 12px;
}

body[data-preview="mobile"] .chat-head button {
  min-height: 34px;
  padding: 0 10px;
}

.register-lock-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e7;
  color: #6f4b00;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

body[data-preview="mobile"] .my-menu,
body[data-preview="mobile"] .admin-menu {
  display: flex;
  overflow: auto;
}

body[data-preview="mobile"] .my-menu button,
body[data-preview="mobile"] .admin-menu button {
  min-width: max-content;
}

body[data-preview="mobile"] .notice-card {
  grid-template-columns: 1fr;
}

body[data-preview="mobile"] .admin-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-preview="mobile"] .modal {
  width: min(430px, 100%);
}

body[data-preview="mobile"] .register-hero,
body[data-preview="mobile"] .register-steps,
body[data-preview="mobile"] .easy-register,
body[data-preview="mobile"] .reward-panel {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
}

body[data-preview="mobile"] .register-flow {
  gap: 16px;
}

body[data-preview="mobile"] .register-hero {
  min-height: 124px;
  padding: 18px 2px 2px;
}

body[data-preview="mobile"] .register-hero h1 {
  max-width: 300px;
  font-size: 29px;
}

body[data-preview="mobile"] .register-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-preview="mobile"] .form-section,
body[data-preview="mobile"] .reward-panel {
  padding: 16px;
  border-radius: 22px;
}

body[data-preview="mobile"] .form-section-head b {
  font-size: 19px;
}

body[data-preview="mobile"] .easy-register input,
body[data-preview="mobile"] .easy-register select,
body[data-preview="mobile"] .easy-register textarea {
  min-height: 54px;
}

/* v74 visual polish: calmer premium app surfaces */
:root {
  --surface: rgba(255, 255, 255, .9);
  --surface-strong: #ffffff;
  --ink-soft: #27322d;
  --amber: #f59f28;
  --amber-soft: #fff6e8;
  --mint-line: #d9eee4;
  --depth-soft: 0 16px 36px rgba(28, 43, 36, .08);
  --depth-lift: 0 24px 54px rgba(28, 43, 36, .12);
}

html,
body {
  background:
    linear-gradient(180deg, #f8fbf9 0%, #eef5f1 42%, #f6f8f7 100%);
}

body[data-preview="mobile"] .main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(244, 248, 246, .2) 28%, transparent 100%),
    var(--bg);
}

.home-greeting {
  min-height: 104px;
  padding-top: 18px;
}

.home-brand {
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(16, 163, 106, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 20px rgba(8, 121, 76, .06);
}

.home-greeting h1 {
  max-width: 310px;
  color: #101815;
  font-size: 30px;
  line-height: 1.12;
}

.home-greeting button {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(16, 163, 106, .18);
  box-shadow: 0 10px 22px rgba(18, 35, 28, .07);
  backdrop-filter: blur(12px);
}

.home-overview {
  gap: 12px;
}

.home-notice-summary,
.home-metrics button {
  position: relative;
  overflow: hidden;
  border-color: rgba(16, 163, 106, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 253, 251, .9)),
    var(--surface-strong);
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .95) inset;
}

.home-notice-summary::before,
.home-metrics button::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(16, 163, 106, .18), rgba(47, 111, 237, .1)),
    #f7fbf9;
  box-shadow: 0 10px 18px rgba(8, 121, 76, .08), 0 1px 0 #fff inset;
}

.home-notice-summary {
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon label meta"
    "icon value meta";
  column-gap: 12px;
}

.home-notice-summary::before {
  grid-area: icon;
}

.home-notice-summary b {
  font-size: 17px;
  letter-spacing: 0;
}

.home-notice-summary small {
  min-width: 58px;
  background: #10251d;
  color: #fff;
}

.home-metrics {
  gap: 12px;
}

.home-metrics button {
  min-height: 86px;
  padding: 14px 14px 13px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  column-gap: 12px;
  align-items: center;
}

.home-metrics button::before {
  grid-area: icon;
}

.home-metrics button:nth-child(2)::before {
  background:
    linear-gradient(145deg, rgba(245, 159, 40, .22), rgba(47, 111, 237, .08)),
    #fffaf1;
}

.home-metrics span {
  grid-area: label;
  color: #637067;
}

.home-metrics b {
  grid-area: value;
  margin-top: 2px;
  font-size: 22px;
}

.lookup-panel {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  border: 1px solid rgba(16, 163, 106, .18);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(247, 252, 249, .92) 62%, rgba(239, 248, 244, .92)),
    #fff;
  box-shadow: var(--depth-lift), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.lookup-panel::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
  opacity: .72;
}

.lookup-head span,
.recent-keywords > span,
.result-group-head span,
.refine-line > span {
  color: #56645c;
  font-size: 12px;
}

.lookup-head h2 {
  max-width: 330px;
  color: #111a16;
  font-size: 22px;
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: normal;
}

.search-box {
  position: relative;
  align-items: center;
}

.search-box::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(39, 50, 45, .42);
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

.search-box::after {
  content: "";
  position: absolute;
  left: 29px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(39, 50, 45, .42);
  transform: translate(2px, 7px) rotate(45deg);
  z-index: 1;
  pointer-events: none;
}

.search-box input {
  min-height: 58px;
  padding-left: 44px;
  border: 1px solid rgba(16, 163, 106, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}

.easy-register select {
  min-height: 54px;
  border-color: rgba(16, 163, 106, .16);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}

.search-box input::placeholder {
  color: #89958e;
  font-weight: 800;
}

.search-box button,
.primary,
.chat-input button {
  border-radius: 18px;
  background: linear-gradient(180deg, #18b978, #0d9864);
  box-shadow: 0 14px 28px rgba(16, 163, 106, .22), 0 1px 0 rgba(255, 255, 255, .28) inset;
}

.recent-keywords {
  margin-top: 16px;
}

.chips {
  gap: 9px;
}

.chips button {
  min-height: 38px;
  border-color: rgba(16, 163, 106, .14);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 18px rgba(23, 32, 28, .045);
}

.section-title {
  align-items: center;
}

.section-title h2 {
  color: #111a16;
  font-size: 22px;
  letter-spacing: 0;
}

.section-title button {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(16, 163, 106, .14);
}

.result-refiners {
  gap: 10px;
}

.refine-line {
  padding: 9px;
  border-color: rgba(16, 163, 106, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 20px rgba(28, 43, 36, .045);
}

.refine-line button {
  background: #fff;
  border-color: rgba(16, 163, 106, .14);
}

.refine-line button.active {
  background: #10251d;
  border-color: #10251d;
  color: #fff;
}

.result-group-head {
  padding: 2px 4px 0;
}

.result-group-head b {
  color: #111a16;
  font-size: 21px;
}

.result-group-head small {
  background: #10251d;
  color: #fff;
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  grid-template-columns: 6px minmax(0, 1fr) 88px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 253, 251, .94)),
    #fff;
  box-shadow: 0 12px 30px rgba(28, 43, 36, .07), 0 1px 0 #fff inset;
}

.result-card::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  width: 6px;
  min-height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), #7bd7a8);
}

.result-card.warn::before {
  background: linear-gradient(180deg, var(--amber), #ffd18b);
}

.result-card.gray::before {
  background: linear-gradient(180deg, #a9b4ae, #d6ded9);
}

.result-card > div:first-child {
  grid-column: 2;
  min-width: 0;
}

.result-card .score-box {
  grid-column: 3;
}

.result-card > div > span,
.trade-card > span {
  color: #657269;
}

.result-card h3 {
  color: #111a16;
  font-size: 20px;
  line-height: 1.28;
}

.result-card p {
  margin-top: 7px;
  color: #5f6b64;
}

.identity-preview {
  margin-top: 10px;
}

.identity-preview span {
  color: #36433c;
  font-weight: 800;
  font-size: 13px;
}

.identity-preview b {
  color: #718078;
}

.result-card small {
  display: inline-block;
  margin-top: 2px;
}

.tag-row {
  gap: 7px;
}

.tag-row b {
  min-height: 26px;
  padding: 4px 8px;
  background: #eef4ff;
  color: #2858b8;
  font-weight: 900;
}

.tag-row b.match-note {
  background: var(--amber-soft);
  color: #a35411;
}

.tag-row b.example-type {
  background: #e8f6ee;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(16, 163, 106, .18);
}

.tag-row b.pattern-note {
  background: #f0f4ff;
  color: #3157b7;
  box-shadow: inset 0 0 0 1px rgba(49, 87, 183, .16);
}

.pattern-signal {
  display: grid;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(49, 87, 183, .13);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 249, 255, .96), rgba(255, 255, 255, .92));
}

.pattern-signal b {
  color: #243e87;
  font-size: 13px;
  font-weight: 900;
}

.pattern-signal span {
  color: #5a6680;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.score-box {
  align-self: stretch;
  gap: 7px;
}

.score-box strong {
  height: 44px;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .32), transparent),
    var(--green-soft);
  color: var(--green-deep);
  font-size: 18px;
}

.score-box button {
  min-height: 36px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 13px;
  background: #f6faf8;
}

.compact-list {
  gap: 12px;
}

.compact-list .result-card {
  min-height: 118px;
  grid-template-columns: 6px minmax(0, 1fr) 78px;
  padding: 15px;
}

.compact-list .result-card h3 {
  font-size: 20px;
}

.compact-list .score-box strong {
  height: 48px;
  border-radius: 16px;
}

.toolbar,
.panel,
.trade-card,
.notice-card,
.chat-panel,
.thread-list,
.empty-card {
  border-color: rgba(16, 163, 106, .12);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .95) inset;
}

.bottom-nav {
  border-top-color: rgba(16, 163, 106, .12);
}

.bottom-nav button.active {
  background: #10251d;
  color: #fff;
}

body[data-preview="mobile"] .bottom-nav button.active {
  background: #10251d;
  color: #fff;
}

/* Admin is an operations workspace, so keep it tablet/desktop shaped even from mobile preview links. */
body[data-preview="mobile"][data-view-name="admin"] .app-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  grid-template-columns: 220px minmax(0, 1fr);
}

body[data-preview="mobile"][data-view-name="admin"] .side {
  display: flex;
  height: 100vh;
}

body[data-preview="mobile"][data-view-name="admin"] .side-nav .optional-nav {
  display: none;
}

body[data-preview="mobile"][data-view-name="admin"] .main {
  max-width: none;
  padding: 20px 24px 92px;
}

body[data-preview="mobile"][data-view-name="admin"] .topbar {
  display: flex;
  min-height: 68px;
  margin-bottom: 16px;
  align-items: center;
}

body[data-preview="mobile"][data-view-name="admin"] .admin-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body[data-preview="mobile"][data-view-name="admin"] .admin-menu {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 12px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .95) inset;
}

body[data-preview="mobile"][data-view-name="admin"] .admin-menu button {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
}

body[data-preview="mobile"][data-view-name="admin"] #adminPanel {
  min-height: 680px;
  padding: 22px;
  border-radius: 24px;
}

body[data-preview="mobile"][data-view-name="admin"] .admin-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-preview="mobile"][data-view-name="admin"] .review-safety-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-preview="mobile"][data-view-name="admin"] .roadmap-board,
body[data-preview="mobile"][data-view-name="admin"] .prep-lanes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-preview="mobile"][data-view-name="admin"] #adminPanel > .list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

body[data-preview="mobile"][data-view-name="admin"] .notice-card {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

body[data-preview="mobile"][data-view-name="admin"] .review-card .row-actions,
body[data-preview="mobile"][data-view-name="admin"] .import-preview-card .row-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

body[data-preview="mobile"][data-view-name="admin"] .bottom-nav {
  width: min(100%, 860px);
}

@media (max-width: 980px) {
  body[data-preview="mobile"][data-view-name="admin"] .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  body[data-preview="mobile"][data-view-name="admin"] .side {
    display: flex;
  }

  body[data-preview="mobile"][data-view-name="admin"] .main {
    padding: 18px 18px 92px;
  }

  body[data-preview="mobile"][data-view-name="admin"] .admin-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  body[data-preview="mobile"][data-view-name="admin"] .admin-menu {
    position: sticky;
    top: 14px;
    display: grid;
    overflow: visible;
  }

  body[data-preview="mobile"][data-view-name="admin"] .admin-menu button {
    min-width: 0;
  }

  body[data-preview="mobile"][data-view-name="admin"] .admin-kpis,
  body[data-preview="mobile"][data-view-name="admin"] .review-safety-grid,
  body[data-preview="mobile"][data-view-name="admin"] .roadmap-board,
  body[data-preview="mobile"][data-view-name="admin"] .prep-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body[data-preview="mobile"][data-view-name="admin"] .main {
    padding: 14px 14px 92px;
  }

  body[data-preview="mobile"][data-view-name="admin"] .admin-layout {
    grid-template-columns: 1fr;
  }

  body[data-preview="mobile"][data-view-name="admin"] .admin-menu {
    position: static;
    display: flex;
    overflow: auto;
  }

  body[data-preview="mobile"][data-view-name="admin"] .admin-menu button {
    min-width: max-content;
  }

  body[data-preview="mobile"][data-view-name="admin"] .admin-kpis,
  body[data-preview="mobile"][data-view-name="admin"] .review-safety-grid,
  body[data-preview="mobile"][data-view-name="admin"] .roadmap-board,
  body[data-preview="mobile"][data-view-name="admin"] .prep-lanes,
  body[data-preview="mobile"][data-view-name="admin"] #adminPanel > .list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .home-greeting h1 {
    font-size: 29px;
  }

  .lookup-head h2 {
    font-size: 20px;
  }

  .result-card,
  .compact-list .result-card {
    grid-template-columns: 5px minmax(0, 1fr);
  }

  .result-card::before {
    grid-column: 1;
  }

  .result-card > div:first-child {
    grid-column: 2;
  }

  .result-card .score-box {
    grid-column: 2;
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 12px;
  }

  .compact-list .score-box {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .compact-list .score-box button[data-message-subject] {
    display: none;
  }

  .region-select-group {
    grid-template-columns: 1fr;
  }
}

body[data-shell="admin"] .bottom-nav {
  display: none !important;
}

body[data-shell="admin"] .app-shell.admin-only-shell,
body[data-preview="mobile"][data-view-name="admin"] .app-shell.admin-only-shell {
  width: min(100%, 1320px);
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
}

body[data-shell="admin"] .main,
body[data-preview="mobile"][data-view-name="admin"] .main {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 22px 28px 56px;
}

body[data-shell="admin"] .admin-side,
body[data-preview="mobile"][data-view-name="admin"] .admin-side {
  position: fixed;
  inset: 14px 14px 14px auto;
  z-index: 80;
  display: flex;
  width: min(330px, calc(100vw - 28px));
  height: auto;
  transform: translateX(calc(100% + 24px));
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(16, 163, 106, .16);
  border-radius: 24px;
  background: rgba(251, 255, 252, .96);
  box-shadow: 0 26px 70px rgba(20, 50, 38, .22);
  backdrop-filter: blur(18px);
}

body[data-shell="admin"].admin-menu-open .admin-side,
body[data-preview="mobile"][data-view-name="admin"].admin-menu-open .admin-side {
  transform: translateX(0);
}

body[data-shell="admin"].admin-menu-open::after {
  position: fixed;
  inset: 0;
  z-index: 70;
  content: "";
  background: rgba(10, 18, 14, .18);
}

.admin-menu-toggle {
  min-width: 70px;
  border: 1px solid rgba(16, 163, 106, .18);
  background: #11251d;
  color: #fff;
  box-shadow: var(--depth-soft);
}

.admin-drawer-close {
  min-height: 40px;
  margin: 8px 0 4px;
  border: 1px solid rgba(16, 163, 106, .14);
  border-radius: 14px;
  background: #f2f8f5;
  color: #17382b;
  font-weight: 800;
}

body[data-shell="admin"] .admin-menu,
body[data-preview="mobile"][data-view-name="admin"] .admin-menu {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 8px 0;
}

body[data-shell="admin"] .admin-menu button,
body[data-preview="mobile"][data-view-name="admin"] .admin-menu button {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  border-radius: 15px;
  text-align: left;
}

.admin-section-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.admin-section-head p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-flow,
.admin-ops-grid,
.admin-review-list,
.risk-grid,
.user-ops-grid,
.bonus-grid {
  display: grid;
  gap: 14px;
}

.admin-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.admin-flow article,
.admin-ops-grid article,
.admin-review-card,
.admin-risk-card,
.admin-member-card,
.bonus-grid article {
  border: 1px solid rgba(16, 163, 106, .13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(247, 252, 249, .94));
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.admin-flow article {
  min-height: 154px;
  padding: 18px;
}

.admin-flow b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 13px;
  background: #11251d;
  color: #fff;
}

.admin-flow span,
.admin-ops-grid b,
.admin-review-card b,
.admin-risk-card b,
.admin-member-card b,
.bonus-grid b {
  display: block;
  font-size: 18px;
  color: #10251d;
}

.admin-flow small,
.admin-ops-grid p,
.bonus-grid p,
.admin-review-card p,
.admin-risk-card p,
.admin-member-card p {
  color: var(--muted);
  line-height: 1.6;
}

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

.admin-ops-grid article,
.bonus-grid article {
  padding: 18px;
}

.admin-ops-grid ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-review-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-review-card,
.admin-risk-card,
.admin-member-card {
  padding: 18px;
}

.admin-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-card-top span,
.admin-review-card span,
.admin-member-card small {
  color: var(--muted);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 163, 106, .1);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-pill.warn {
  background: #fff3d8;
  color: #8a5b00;
}

.admin-pill.hold {
  background: #eef2f6;
  color: #4e5f70;
}

.admin-pill.danger {
  background: #ffe6e2;
  color: #a43120;
}

.admin-pill.ok {
  background: #e8f8ef;
  color: #0f7a4e;
}

.admin-mini-map,
.admin-diff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.admin-mini-map span,
.admin-diff-list span {
  padding: 9px 11px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .76);
  color: #294239;
  font-size: 13px;
  line-height: 1.35;
}

.admin-compare-brief,
.admin-compare-modal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-compare-brief article,
.admin-compare-modal article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 16px;
  background: rgba(247, 252, 249, .82);
}

.admin-compare-brief small,
.admin-compare-modal span {
  color: var(--muted);
}

.admin-compare-modal small,
.admin-compare-modal b {
  display: block;
  margin-top: 7px;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-table-head,
.admin-table article {
  display: grid;
  grid-template-columns: 1.1fr 1.15fr minmax(180px, .8fr);
  gap: 12px;
  align-items: center;
}

.admin-table-head {
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-table article {
  padding: 14px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
}

.admin-table small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.migration-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.migration-hero article,
.migration-runbook article,
.migration-bundle-card {
  border: 1px solid rgba(16, 163, 106, .13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 252, 249, .94));
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.migration-hero article {
  min-height: 154px;
  padding: 18px;
}

.migration-hero span,
.migration-bundle-card .admin-card-top span {
  color: var(--muted);
  font-weight: 800;
}

.migration-hero b {
  display: block;
  margin: 8px 0;
  color: #10251d;
  font-size: 20px;
  line-height: 1.3;
}

.migration-hero small,
.migration-runbook small,
.migration-bundle-card p,
.migration-samples p {
  color: var(--muted);
  line-height: 1.62;
}

.migration-runbook,
.migration-bundles,
.migration-quality,
.migration-samples,
.precision-rules,
.copy-validation,
.suspicion-board {
  margin-top: 22px;
}

.migration-runbook h3,
.migration-bundles h3,
.migration-quality h3,
.migration-samples h3,
.precision-rules h3,
.copy-validation h3,
.suspicion-board h3 {
  margin: 0 0 12px;
  color: #10251d;
  font-size: 20px;
}

.migration-runbook > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.migration-runbook article {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 15px;
}

.migration-runbook article > b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  background: #11251d;
  color: #fff;
}

.migration-runbook span,
.migration-bundle-card .admin-card-top b {
  color: #10251d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.migration-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.migration-bundle-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.migration-bundle-card p {
  margin: 0;
}

.migration-bundle-card button {
  justify-self: start;
  min-height: 40px;
}

.precision-rules > p,
.copy-validation-head p {
  max-width: 860px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.62;
  font-weight: 800;
}

.precision-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.precision-rule-grid article {
  min-height: 156px;
  padding: 17px;
  border: 1px solid rgba(49, 87, 183, .12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 255, .92));
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.precision-rule-grid b,
.precision-rule-grid span,
.precision-rule-grid small {
  display: block;
}

.precision-rule-grid b {
  color: #10251d;
  font-size: 17px;
}

.precision-rule-grid span {
  margin-top: 9px;
  color: #30455d;
  font-weight: 900;
  line-height: 1.45;
}

.precision-rule-grid small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.copy-validation {
  padding: 18px;
  border: 1px solid rgba(16, 163, 106, .13);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 252, 249, .94));
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.copy-validation-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.copy-validation-head h3 {
  margin-bottom: 6px;
}

.copy-validation-head button {
  min-width: 132px;
  min-height: 42px;
  background: #11251d;
  color: #fff;
}

.preflight-report {
  display: grid;
  gap: 14px;
}

.preflight-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.preflight-summary article {
  min-height: 102px;
  padding: 14px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
}

.preflight-summary span,
.preflight-summary b,
.preflight-summary small {
  display: block;
}

.preflight-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.preflight-summary b {
  margin-top: 7px;
  color: #10251d;
  font-size: 22px;
}

.preflight-summary small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.suspicion-board {
  padding: 18px;
  border: 1px solid rgba(163, 81, 31, .15);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 249, 242, .9));
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.suspicion-board-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.suspicion-board-head p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-weight: 800;
}

.suspicion-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.suspicion-kpis span {
  min-width: 96px;
  padding: 12px;
  border: 1px solid rgba(163, 81, 31, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
}

.suspicion-kpis b,
.suspicion-kpis small {
  display: block;
}

.suspicion-kpis b {
  color: #7b3e13;
  font-size: 24px;
}

.suspicion-kpis small {
  color: var(--muted);
  font-weight: 900;
}

.suspicion-table .admin-table-head,
.suspicion-table article {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, .85fr) minmax(140px, .75fr) minmax(120px, .55fr);
}

.live-suspicion-report {
  border-color: rgba(163, 81, 31, .15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 250, 244, .93));
}

.suspicion-live-table .admin-table-head,
.suspicion-live-table article {
  grid-template-columns: minmax(170px, 1fr) minmax(100px, .45fr) minmax(120px, .5fr) minmax(220px, 1fr);
}

.suspicion-live-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.suspicion-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.suspicion-samples article {
  padding: 15px;
  border: 1px solid rgba(163, 81, 31, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
}

.suspicion-samples b {
  display: block;
  color: #7b3e13;
  font-size: 15px;
}

.suspicion-sample-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.suspicion-sample-list span {
  display: block;
  padding: 10px 11px;
  border-radius: 13px;
  background: rgba(255, 247, 238, .9);
  color: #183629;
  font-weight: 900;
  line-height: 1.35;
}

.suspicion-sample-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.suspicion-evidence-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.suspicion-evidence-list article {
  padding: 13px;
  border: 1px solid rgba(163, 81, 31, .14);
  border-radius: 16px;
  background: rgba(255, 250, 244, .92);
}

.suspicion-evidence-list b,
.suspicion-evidence-list span,
.suspicion-evidence-list small {
  display: block;
}

.suspicion-evidence-list b {
  color: #7b3e13;
}

.suspicion-evidence-list span {
  margin-top: 6px;
  color: #183629;
  font-weight: 900;
  line-height: 1.42;
}

.suspicion-evidence-list small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.server-control-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(220px, .9fr));
  gap: 14px;
}

.server-control-grid article,
.server-action-panel,
.server-api-result article {
  border: 1px solid rgba(16, 163, 106, .13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 252, 249, .94));
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.server-control-grid article,
.server-action-panel {
  padding: 18px;
}

.server-control-grid b,
.server-api-result b {
  display: block;
  color: #10251d;
  font-size: 18px;
}

.server-control-grid p,
.server-control-grid small,
.server-api-result span,
.server-api-result small {
  color: var(--muted);
  line-height: 1.58;
  font-weight: 800;
}

.server-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin: 13px 0 9px;
}

.server-key-row input {
  min-height: 48px;
  border: 1px solid rgba(16, 163, 106, .16);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .9);
}

.server-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.server-chip-row span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef8f3;
  color: #17382b;
  font-size: 12px;
  font-weight: 900;
}

.server-summary-row span {
  display: grid;
  gap: 2px;
  min-width: 128px;
  border-radius: 16px;
  background: #f4fbf7;
}

.server-summary-row strong {
  color: #10251d;
  font-size: 16px;
  line-height: 1.1;
}

.server-summary-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.server-action-panel {
  margin-top: 18px;
}

.server-api-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.server-api-result article {
  padding: 15px;
}

.server-result-main.ok {
  border-color: rgba(16, 163, 106, .26);
}

.server-result-main.warn {
  border-color: rgba(245, 159, 40, .32);
  background: linear-gradient(180deg, #fff, var(--amber-soft));
}

.server-result-main.danger {
  border-color: rgba(224, 68, 68, .22);
  background: linear-gradient(180deg, #fff, var(--red-soft));
}

.server-result-wide {
  grid-column: 1 / -1;
}

.server-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.server-mini-list span {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) 82px minmax(0, 1.4fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.server-mini-list i,
.server-mini-list em,
.server-mini-list small {
  font-style: normal;
}

.server-mini-list i,
.server-mini-list em {
  color: #10251d;
  font-weight: 900;
}

.migration-table .admin-table-head,
.migration-table article {
  grid-template-columns: 96px minmax(160px, .8fr) minmax(260px, 1.8fr);
}

.validation-table .admin-table-head,
.validation-table article {
  grid-template-columns: minmax(130px, .8fr) minmax(110px, .5fr) 96px minmax(260px, 1.6fr);
}

.modal-validation-table .admin-table-head,
.modal-validation-table article {
  grid-template-columns: minmax(130px, .9fr) 90px minmax(220px, 1.5fr);
}

.migration-samples {
  padding-top: 4px;
}

.migration-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.migration-modal-grid article {
  padding: 14px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 17px;
  background: rgba(247, 252, 249, .86);
}

.migration-modal-grid b {
  display: block;
  color: #10251d;
}

.migration-modal-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.risk-grid,
.user-ops-grid,
.bonus-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-user-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-user-tools input {
  min-height: 48px;
  border: 1px solid rgba(16, 163, 106, .16);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .9);
}

.admin-user-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
}

.admin-user-quick span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-user-quick button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(16, 163, 106, .14);
  border-radius: 999px;
  background: #f5fbf7;
  color: #17392b;
  font-size: 13px;
  font-weight: 900;
}

.admin-user-search-status {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 163, 106, .13);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(236, 250, 242, .94), rgba(255, 255, 255, .9));
  box-shadow: 0 10px 24px rgba(15, 78, 51, .07);
}

.admin-user-search-status b {
  color: #10251d;
  font-size: 16px;
}

.admin-user-search-status span,
.source-line {
  color: var(--muted);
  line-height: 1.55;
}

.refine-guide {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(16, 163, 106, .13);
  border-radius: 17px;
  background: rgba(247, 252, 249, .92);
  color: #17392b;
}

.refine-guide b {
  font-size: 14px;
}

.refine-guide span {
  color: var(--muted);
  line-height: 1.5;
}

.live-user-results {
  margin: 10px 0 20px;
}

.live-user-card {
  border-color: rgba(16, 163, 106, .2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(242, 250, 246, .95));
  box-shadow: 0 18px 38px rgba(17, 73, 48, .09), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.member-meta span {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f2f8f4;
  color: #183629;
  font-weight: 800;
}

.admin-timeline {
  display: grid;
  gap: 9px;
}

.admin-timeline article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(160px, .7fr);
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
}

.admin-timeline small {
  color: var(--muted);
}

.name-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #0f7a4e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  vertical-align: middle;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.admin-filter-row button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(16, 163, 106, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #244137;
  font-weight: 800;
}

.admin-filter-row button.active {
  background: #11251d;
  color: #fff;
}

.point-admin-layout {
  display: grid;
  grid-template-columns: minmax(220px, .74fr) minmax(0, 1.7fr);
  gap: 18px;
  align-items: start;
}

.point-member-list,
.point-workbench,
.point-rule-panel,
.point-ledger-panel,
.badge-display-preview {
  border: 1px solid rgba(16, 163, 106, .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--depth-soft), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.point-member-list,
.point-workbench,
.point-rule-panel,
.point-ledger-panel {
  padding: 20px;
}

.point-member-list h3,
.point-rule-panel h3,
.point-ledger-panel h3 {
  margin: 0 0 14px;
  color: #10251d;
}

.point-member-list {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 18px;
}

.point-member-list button {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 18px;
  background: #f8fcfa;
  text-align: left;
}

.point-member-list button.active {
  border-color: rgba(17, 37, 29, .45);
  background: #11251d;
  color: #fff;
}

.point-member-list span,
.point-member-list small {
  color: inherit;
  opacity: .78;
}

.point-workbench {
  display: grid;
  gap: 18px;
}

.point-workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.point-workbench-head span,
.point-workbench-head p {
  color: var(--muted);
}

.point-workbench-head h3 {
  margin: 4px 0;
  font-size: 26px;
}

.point-before-after {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.point-before-after article {
  min-height: 104px;
  padding: 16px;
  border-radius: 20px;
  background: #f4faf6;
}

.point-before-after span {
  color: var(--muted);
  font-weight: 800;
}

.point-before-after b {
  display: block;
  margin-top: 12px;
  font-size: 25px;
  color: #10251d;
}

.point-before-after .plus b {
  color: #0f7a4e;
}

.point-before-after .minus b {
  color: #ad3624;
}

.point-form-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 12px;
}

.point-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.point-form-grid input {
  min-height: 50px;
  border: 1px solid rgba(16, 163, 106, .15);
  border-radius: 16px;
  padding: 0 14px;
  background: #fff;
  color: #10251d;
  font-size: 17px;
}

.point-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.point-preset-row button {
  min-height: 42px;
  border: 1px solid rgba(16, 163, 106, .14);
  border-radius: 999px;
  background: #fff;
  color: #16352a;
  font-weight: 900;
}

.point-preset-row button.active {
  background: #11251d;
  color: #fff;
}

.point-reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.point-reason-grid button {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 13px;
  border: 1px solid rgba(16, 163, 106, .12);
  border-radius: 18px;
  background: #fbfefc;
  text-align: left;
}

.point-reason-grid button.active {
  border-color: rgba(16, 163, 106, .45);
  background: #eaf9f0;
}

.point-reason-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.point-confirm-box {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 20px;
  background: #11251d;
  color: #fff;
}

.point-confirm-box span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

.point-confirm-box button {
  min-width: 132px;
  background: #fff;
  color: #10251d;
}

.point-rule-panel,
.point-ledger-panel {
  margin-top: 18px;
}

.badge-display-preview {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  gap: 18px;
  margin: 16px 0;
  padding: 20px;
}

.badge-display-preview span,
.badge-display-preview p {
  color: var(--muted);
  line-height: 1.6;
}

.badge-display-preview h3 {
  margin: 6px 0 8px;
  font-size: 25px;
}

.badge-name-list {
  display: grid;
  gap: 10px;
}

.badge-name-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #f5fbf7;
}

.badge-name-list em {
  padding: 7px 10px;
  border-radius: 999px;
  background: #11251d;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.badge-name-list em.muted {
  background: #e9eef0;
  color: #68777a;
}

.badge-name-list small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.admin-standalone-panel {
  padding: clamp(22px, 3vw, 34px);
}

.admin-review-card,
.admin-risk-card,
.admin-member-card,
.bonus-grid article,
.notice-card,
.result-card,
.trade-card,
.chat-panel,
.thread-list {
  line-height: 1.58;
}

.admin-review-card,
.admin-risk-card,
.admin-member-card,
.bonus-grid article {
  padding: 22px;
}

.admin-review-list,
.risk-grid,
.user-ops-grid,
.bonus-grid {
  gap: 18px;
}

.result-card {
  padding: 20px;
}

.result-card h3,
.compact-list .result-card h3 {
  line-height: 1.22;
}

.result-card p,
.result-card small,
.notice-card span,
.notice-card small {
  line-height: 1.58;
}

@media (max-width: 920px) {
  body[data-shell="admin"] .main,
  body[data-preview="mobile"][data-view-name="admin"] .main {
    padding: 18px 18px 46px;
  }

  .admin-flow,
  .admin-ops-grid,
  .migration-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .migration-runbook > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .point-admin-layout,
  .badge-display-preview,
  .server-control-grid,
  .server-api-result {
    grid-template-columns: 1fr;
  }

  .point-member-list {
    position: static;
  }

  .admin-table-head,
  .admin-table article,
  .admin-timeline article,
  .validation-table .admin-table-head,
  .validation-table article,
  .modal-validation-table .admin-table-head,
  .modal-validation-table article,
  .suspicion-live-table .admin-table-head,
  .suspicion-live-table article,
  .suspicion-table .admin-table-head,
  .suspicion-table article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-section-head,
  .admin-card-top {
    display: grid;
  }

  .admin-flow,
  .admin-ops-grid,
  .admin-compare-brief,
  .admin-compare-modal,
  .migration-hero,
  .migration-runbook > div,
  .migration-modal-grid,
  .admin-user-tools,
  .point-before-after,
  .point-form-grid {
    grid-template-columns: 1fr;
  }

  .server-key-row,
  .server-mini-list span {
    grid-template-columns: 1fr;
  }

  .point-confirm-box,
  .point-workbench-head,
    .copy-validation-head,
    .suspicion-board-head {
    display: grid;
  }

  .suspicion-samples {
    grid-template-columns: 1fr;
  }

  .suspicion-kpis {
    justify-content: flex-start;
  }

  body[data-shell="admin"] .admin-side,
  body[data-preview="mobile"][data-view-name="admin"] .admin-side {
    inset: 8px 8px 8px auto;
    width: min(320px, calc(100vw - 16px));
    border-radius: 20px;
  }
}

@media (max-width: 1020px) {
  body[data-shell="admin"] .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body[data-shell="admin"] .side {
    display: flex;
  }

  body[data-shell="admin"] .main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 20px 34px;
  }

  body[data-shell="admin"] .topbar {
    display: flex;
  }
}

@media (max-width: 720px) {
  .live-proof-head {
    display: grid;
  }

  .live-proof-head > b {
    width: fit-content;
  }

  .live-proof-user,
  .live-proof-counts,
  .admin-live-proof .live-proof-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-shell="admin"] .app-shell {
    grid-template-columns: 1fr;
  }

  body[data-shell="admin"] .side {
    position: static;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-shell="admin"] .admin-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[data-shell="admin"] .admin-menu button {
    min-width: max-content;
  }

  body[data-shell="admin"] .account {
    display: none;
  }
}

body[data-shell="admin"] .app-shell.admin-only-shell,
body[data-preview="mobile"][data-view-name="admin"] .app-shell.admin-only-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-shell="admin"] .admin-side,
body[data-preview="mobile"][data-view-name="admin"] .admin-side {
  position: fixed !important;
  inset: 14px 14px 14px auto !important;
  display: flex !important;
  width: min(330px, calc(100vw - 28px)) !important;
  height: auto !important;
  transform: translateX(calc(100% + 24px));
  border-right: 0;
  border-bottom: 0;
}

body[data-shell="admin"].admin-menu-open .admin-side,
body[data-preview="mobile"][data-view-name="admin"].admin-menu-open .admin-side {
  transform: translateX(0);
}
