:root {
  color-scheme: light;
  --ink: #192e30;
  --muted: #5c6f73;
  --line: #dce5e4;
  --bg: #f3f6f6;
  --green: #147663;
  --green-dark: #125b52;
  --soft: #e4f4ef;
  --radius: 17px;
  font-family: Inter, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button,
a.btn {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button,
a,
input,
select,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #27a78a;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  flex-shrink: 0;
}
button {
  border: 0;
  background: none;
}
b,
strong {
  font-weight: 650;
}
em,
i {
  font-style: normal;
}
select,
input:not([type='checkbox']) {
  background: white;
  color: var(--ink);
  border: 1px solid #cddbd8;
  border-radius: 8px;
  min-height: 42px;
  padding: 8px 11px;
  max-width: 100%;
}
input:focus,
select:focus {
  outline: 2px solid #62bca6;
  outline-offset: 1px;
}
input[type='checkbox'] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23547070' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
input:placeholder-shown {
  color: #657677;
}
input::placeholder {
  color: #778888;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
}
#side {
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: #153737;
  color: #dae9e5;
  padding: 33px 14px 16px;
  border-right: 1px solid #203e3d;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1px 11px 54px;
  color: #f3faf8;
}
.brand img {
  width: 44px;
  height: 44px;
}
.brand b {
  font-size: 1.26rem;
  letter-spacing: 0.02em;
  font-weight: 760;
}
.brand b span {
  font-size: 1.05rem;
}
.brand small,
.admin-id small {
  display: block;
  font-size: 0.76rem;
  color: #adc3bc;
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.navcap {
  font-size: 0.76rem;
  color: #a6beb9;
  letter-spacing: 0.08em;
  margin: 0 16px 11px;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border-radius: 9px;
  text-align: left;
  padding: 13px 15px;
  color: #c4d7d2;
  font-size: 0.94rem;
  margin: 3px 0;
  transition: background 0.15s;
}
.navitem:hover,
.phone-shortcut:hover {
  background: #214541;
}
.navitem.active {
  background: #2b554d;
  color: #e4fff3;
  box-shadow: inset 3px 0 #66dbac;
  font-weight: 650;
}
.navitem.active svg {
  color: #8ce5c4;
}
.sidebottom {
  margin-top: auto;
}
.phone-shortcut {
  color: #c8e5da;
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid #3c5c55;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  font-size: 0.91rem;
}
.admin-id {
  border-top: 1px solid #345451;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 6px 0;
  margin-top: 18px;
}
.admin-id strong {
  color: #eaf4ef;
  font-size: 0.9rem;
}
.admin-id small {
  margin-top: 2px;
  font-size: 0.74rem;
}
.av {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #3b625a;
  color: #dcf6e8;
  font-size: 0.9rem;
  font-weight: 700;
}
.shell main {
  min-width: 0;
}
.topbar {
  height: 66px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(20px, 3vw, 46px);
}
.crumb,
.top-tools,
.mode,
.hero-meta span,
.actions,
.rulemeta span {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 10px;
  font-size: 0.84rem;
  color: #627572;
}
.crumb svg {
  color: #47756d;
}
.crumb b {
  color: #2f4946;
}
.crumb i {
  color: #a0adaa;
}
.top-tools {
  gap: 11px;
  min-width: 0;
}
.top-tools select {
  font-weight: 550;
  font-size: 0.86rem;
  min-height: 35px;
  max-width: 295px;
}
.mode {
  gap: 6px;
  font-size: 0.8rem;
  color: #516a62;
  margin-right: 4px;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #566c69;
}
.iconbtn:hover {
  background: #edf4f1;
}
.mobile-menu,
.scrim {
  display: none;
}
.content {
  max-width: 1540px;
  margin: auto;
  padding: 28px clamp(20px, 3vw, 46px) 45px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 21px;
}
.pagehead h1 {
  font-size: clamp(1.75rem, 2.45vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.2;
}
.pagehead p,
.modal-head p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 0.91rem;
  line-height: 1.6;
}
.actions {
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cbd9d5;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 0.89rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 39px;
  background: #fff;
  color: #2a5049;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: #f0f6f3;
  border-color: #98b8ad;
}
.btn.primary {
  background: #16745f;
  color: white;
  border-color: #16745f;
  box-shadow: 0 2px 3px #16472f14;
}
.btn.primary:hover:not(:disabled) {
  background: #105e50;
}
.btn.text-btn,
.btn.danger-text {
  padding: 6px 3px;
  min-height: 30px;
  background: transparent;
  border: none;
  color: var(--green);
  box-shadow: none;
}
.btn.text-btn:hover,
.btn.danger-text:hover {
  background: transparent !important;
  text-decoration: underline;
}
.btn.danger-text {
  color: #a3413a;
}
.hero {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  color: #f5fffb;
  background: linear-gradient(108deg, #123e3c 2%, #15544b 62%, #1b6858);
  min-height: 164px;
  border-radius: var(--radius);
  padding: 22px clamp(20px, 3vw, 40px);
  box-shadow: 0 3px 10px #153b3210;
}
.hero-art {
  position: absolute;
  z-index: -1;
  top: -180px;
  bottom: -150px;
  right: -3%;
  width: 65%;
  opacity: 0.48;
  transform: rotate(-15deg);
  background: repeating-radial-gradient(
    ellipse at 90% 90%,
    transparent 0 22px,
    rgba(144, 224, 178, 0.22) 23px 24px,
    transparent 25px 39px
  );
  mask-image: linear-gradient(95deg, transparent, #000 38%);
}
.hero-text {
  min-width: 0;
  flex: 1;
  z-index: 1;
}
.hero-top,
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #d0e4d9;
  font-weight: 550;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: nowrap;
  font-weight: 600;
}
.badge.live {
  color: #126044;
  background: #ddf4e8;
}
.badge.frozen,
.badge.muted {
  color: #476461;
  background: #eaf0ef;
}
.hero .live,
.score-hero .live {
  color: #baf5d3;
  background: #35705b;
  border: 1px solid #488468;
}
.hero .frozen {
  background: #3e6b64;
  color: #e3f0ec;
}
.hero h2 {
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  letter-spacing: -0.045em;
  margin: 10px 0 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.hero-meta {
  color: #cae2d8;
  font-size: 0.82rem;
  gap: 18px;
}
.hero-meta span {
  gap: 7px;
}
.hero-ring {
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-right: 1.5%;
  padding-left: 12px;
  color: #d2ebdf;
  font-size: 0.79rem;
}
.ring {
  width: 87px;
  height: 87px;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, #92e9b7 0 var(--p), #ffffff24 var(--p) 100%);
}
.ring:before {
  content: '';
  position: absolute;
  inset: 7px;
  background: #205b4e;
  border-radius: 50%;
}
.ring strong {
  position: relative;
  font-size: 1.67rem;
  line-height: 1;
  color: #fcfff9;
  font-weight: 670;
  font-variant-numeric: tabular-nums;
}
.ring small {
  font-size: 0.75rem;
  margin-left: 2px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 17px 0 21px;
}
.stat,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px #18373105;
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 19px;
  min-width: 0;
}
.stat-icon,
.tool-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  width: 42px;
  height: 42px;
}
.stat-icon.mint {
  background: #e1f3e9;
  color: #278261;
}
.stat-icon.blue {
  background: #e5eef8;
  color: #4c7196;
}
.stat-icon.amber {
  background: #fff2df;
  color: #ae722a;
}
.stat-data > span {
  font-size: 0.86rem;
  color: #526764;
  font-weight: 550;
}
.stat-data > strong {
  display: block;
  font-size: 1.97rem;
  line-height: 1.2;
  letter-spacing: -0.06em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-data > strong small {
  font-size: 0.78rem;
  color: #657975;
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0;
}
.stat-data p {
  font-size: 0.77rem;
  color: #637773;
  margin-top: 4px;
}
.homegrid {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(260px, 1fr);
  gap: 17px;
  align-items: start;
}
.right-stack {
  display: grid;
  gap: 17px;
  min-width: 0;
}
.panel {
  min-width: 0;
  overflow: hidden;
}
.section-head {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 21px;
  border-bottom: 1px solid #e7eeeb;
}
.section-head h2 {
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}
.progress-list {
  padding: 0 20px;
}
.progress-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.8fr) minmax(50px, 1.4fr) 60px;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eaf0ee;
}
.progress-row:last-child,
.feed:last-child,
.tool-list button:last-child {
  border-bottom: 0;
}
.progress-row b,
.tool-list b {
  font-size: 0.89rem;
}
.progress-row small,
.feed small,
.tool-list small,
td small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  margin-top: 3px;
}
.progress-row > span:last-child {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 640;
  color: #315e52;
}
.progress-row em {
  color: #647873;
  font-weight: 400;
}
.bar {
  display: block;
  height: 6px;
  border-radius: 20px;
  background: #e8efec;
  overflow: hidden;
}
.bar i {
  display: block;
  background: #56a88a;
  border-radius: 20px;
  height: 100%;
}
.tool-list,
.feed {
  margin: 0 18px;
}
.tool-list button,
.feed {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 1px;
  text-align: left;
  border-bottom: 1px solid #eaf0ee;
}
.tool-list button:hover {
  background: #f6faf8;
}
.tool-icon {
  background: #edf5f0;
  color: #38755e;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.tool-list button > svg:last-child {
  margin-left: auto;
  color: #778b82;
}
.feed {
  width: auto;
  font-size: 0.84rem;
  min-height: 51px;
  padding: 9px 0;
}
.feed-mark {
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #edf5f0;
  color: #45886b;
}
.feed strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.feed em {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
}
.segments {
  display: inline-flex;
  padding: 3px;
  background: #edf2f0;
  border-radius: 9px;
  gap: 2px;
}
.segments button {
  font-size: 0.87rem;
  color: #58716a;
  border-radius: 7px;
  padding: 7px 12px;
  white-space: nowrap;
  font-weight: 550;
}
.segments .sel {
  background: white;
  box-shadow: 0 1px 4px #20362b20;
  color: #155f4d;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 11px;
  color: #748982;
}
.search input {
  padding-left: 33px;
  min-height: 36px;
  font-size: 0.85rem;
  max-width: 220px;
}
.tablewrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.89rem;
}
th {
  font-weight: 600;
  color: #5f746e;
  background: #f7faf8;
  font-size: 0.79rem;
  white-space: nowrap;
}
td,
th {
  padding: 12px 17px;
  border-bottom: 1px solid #e7eeeb;
}
td {
  line-height: 1.45;
}
tr:last-child td {
  border-bottom: 0;
}
.row-actions {
  white-space: nowrap;
}
.row-actions > * + * {
  margin-left: 11px;
}
.score-num {
  font-weight: 700;
  color: #18735d;
  font-variant-numeric: tabular-nums;
}
.empty,
.centered {
  padding: 28px;
  text-align: center;
  color: #617771;
}
.empty p,
.centered h3 {
  margin-top: 8px;
}
.rulegrid {
  display: grid;
  grid-template-columns: minmax(175px, 0.55fr) minmax(0, 1.9fr);
  gap: 17px;
  align-items: start;
}
.rolelist {
  padding: 12px;
}
.group-cap {
  font-size: 0.78rem;
  color: #6c8079;
  margin: 11px 10px 8px;
  font-weight: 600;
}
.rolelist button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 10px;
  text-align: left;
  border-radius: 7px;
  font-size: 0.89rem;
}
.rolelist button:hover {
  background: #f4f8f6;
}
.rolelist button.chosen {
  background: #e6f3eb;
  color: #136347;
  font-weight: 650;
}
.rolelist svg {
  color: #789483;
}
.rulemeta,
.rule-total,
.weight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rulemeta {
  flex-wrap: wrap;
  color: #5c736b;
  font-size: 0.84rem;
  padding: 14px 21px;
  background: #f8fbf9;
}
.rulemeta span {
  gap: 6px;
}
.weight-row {
  padding: 18px 21px;
  border-bottom: 1px solid #e8efeb;
}
.weight-row > div {
  flex: 1;
}
.weight-row b {
  font-size: 0.94rem;
}
.weight-row .bar {
  margin-top: 10px;
  max-width: 330px;
  height: 4px;
}
.weight-row > strong,
.rule-total strong {
  color: #176954;
  font-size: 1.24rem;
  font-variant-numeric: tabular-nums;
}
.weight-row em {
  font-size: 0.8rem;
  margin-left: 2px;
}
.rule-total {
  padding: 14px 21px;
  background: #f5faf7;
  font-size: 0.94rem;
}
.panel-note,
.form-note {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}
.panel-note {
  padding: 16px 21px;
}
.history {
  margin: 0;
  padding: 12px 22px;
  list-style: none;
}
.history li {
  padding: 7px 0;
}
.history span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 5px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.89rem;
  line-height: 1.6;
  color: #355e52;
  background: #eaf5ed;
  border: 1px solid #d7e8dd;
  padding: 12px 15px;
  border-radius: 10px;
  margin: 0 0 16px;
}
.notice svg {
  margin-top: 2px;
}
dialog {
  border: 1px solid #ceddd5;
  border-radius: 17px;
  color: var(--ink);
  padding: 0;
  max-width: min(540px, calc(100vw - 28px));
  width: 100%;
  max-height: 87dvh;
  box-shadow: 0 20px 90px #0a291f38;
  background: white;
}
dialog.wide {
  max-width: min(740px, calc(100vw - 28px));
}
dialog::backdrop {
  background: #0c292663;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 20px 23px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal-head h2 {
  font-size: 1.18rem;
}
.modal-head p {
  font-size: 0.85rem;
}
.modal-inner {
  padding: 19px 23px 21px;
}
.modal-error {
  background: #fff0e9;
  color: #9a412f;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.modal-error[hidden] {
  display: none;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 17px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.89rem;
  font-weight: 550;
}
.field select,
.field input {
  width: 100%;
  font-weight: 400;
}
.fieldgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkline {
  display: flex;
  gap: 8px;
  align-items: center;
  line-height: 1.6;
  font-size: 0.88rem;
}
.form-note {
  margin: 11px 0 4px;
}
.checkline small {
  color: var(--muted);
  font-size: 0.74rem;
}
.checkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 11px;
  padding: 11px;
}
.assign-group {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 9px;
}
.assign-group summary {
  cursor: pointer;
  background: #f6f9f7;
  padding: 11px;
  font-size: 0.88rem;
  border-radius: 9px;
}
.assign-group summary span {
  color: #577166;
  margin-left: 7px;
  font-size: 0.82rem;
}
.weight-input,
.weight-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 105px 35px;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
}
.weight-head {
  font-size: 0.83rem;
  color: var(--muted);
}
.weight-input input {
  width: 100%;
  font-size: 0.9rem;
}
.weight-input label {
  position: relative;
}
.weight-input label input {
  padding-right: 25px;
}
.weight-input label span {
  position: absolute;
  right: 9px;
  top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.weight-controls,
.review-list > div,
.detail-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.weight-controls {
  margin: 5px 0 12px;
}
.good {
  color: var(--green);
}
.warn-text,
.danger-text {
  color: #a64a32;
}
.confirm-body {
  line-height: 1.8;
  color: #475e55;
}
.detail-score {
  padding: 12px 16px;
  background: var(--soft);
  border-radius: 10px;
  margin-bottom: 14px;
}
.detail-score strong {
  font-size: 1.6rem;
  color: var(--green);
}
.modal-inner td,
.modal-inner th {
  padding: 10px 12px;
}
.review-list > div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.review-list strong {
  color: var(--green);
}
.remove-line {
  padding-top: 5px;
}
.boot,
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.gate-card {
  background: white;
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}
.gate-card h1 {
  font-size: 1.7rem;
  margin: 13px 0 8px;
}
.gate-card p {
  color: var(--muted);
  line-height: 1.7;
}
.gate-card .notice {
  margin-top: 16px;
  margin-bottom: 0;
}
#toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
  background: #163f35;
  color: white;
  border-radius: 10px;
  padding: 11px 17px;
  font-size: 0.88rem;
  box-shadow: 0 5px 25px #183c3326;
  transition: 0.15s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.score-shell {
  max-width: 610px;
  margin: auto;
  min-height: 100vh;
  padding: 12px 19px 90px;
}
.score-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  margin-bottom: 9px;
}
.score-brand img {
  width: 30px;
}
.score-brand b {
  font-size: 1.02rem;
}
.score-brand > span {
  margin-left: auto;
  color: #516b60;
  font-size: 0.88rem;
}
.score-hero {
  background: linear-gradient(115deg, #143b39, #1e6352);
  color: #f1fff6;
  border-radius: 17px;
  padding: 21px;
}
.score-hero h1 {
  margin: 11px 0 4px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.score-hero p,
.demo-text {
  color: #d0e4d9;
  font-size: 0.84rem;
}
.demo-text {
  margin-left: 10px;
}
.score-progress {
  display: flex;
  justify-content: space-between;
  margin: 22px 0 8px;
  font-size: 0.84rem;
}
.score-hero .bar {
  height: 5px;
  background: #ffffff3b;
}
.score-hero .bar i {
  background: #98e8bb;
}
.score-tabs {
  margin: 17px 0 10px;
}
.task-card {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 10px;
}
.task-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.task-top h3 {
  font-size: 1.08rem;
}
.task-top small,
.task-group,
.submitted small {
  font-size: 0.82rem;
  color: var(--muted);
}
.task-top small {
  display: block;
  margin-top: 4px;
}
.task-group {
  line-height: 1.6;
  margin: 10px 0;
}
.score-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #ebefec;
  padding-top: 10px;
  font-size: 0.9rem;
}
.score-input input {
  font-size: 1rem;
  text-align: center;
  margin-left: auto;
  max-width: 100px;
}
.score-input small {
  color: var(--muted);
}
.score-footer {
  position: sticky;
  bottom: max(7px, env(safe-area-inset-bottom));
  margin: 15px 0 0;
  padding: 9px;
  background: #f3f6f6ee;
  border-radius: 12px;
}
.score-footer .btn {
  width: 100%;
  min-height: 46px;
}
.submitted strong {
  font-size: 1.2rem;
  color: var(--green);
  margin-right: 6px;
}
@media (min-width: 1500px) {
  .shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .content {
    padding-top: 36px;
  }
  .hero {
    min-height: 185px;
  }
  .stat {
    padding: 22px;
  }
  .progress-row {
    padding: 13px 0;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 193px minmax(0, 1fr);
  }
  #side {
    padding-left: 10px;
    padding-right: 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px 12px;
    gap: 9px;
  }
  .stat-icon {
    width: 35px;
    height: 35px;
  }
  .homegrid {
    grid-template-columns: minmax(0, 1.24fr) minmax(245px, 0.9fr);
    gap: 12px;
  }
  .content {
    padding-left: 21px;
    padding-right: 21px;
  }
  .section-head {
    padding-left: 16px;
    padding-right: 16px;
  }
  .progress-list {
    padding: 0 15px;
  }
  .progress-row {
    gap: 8px;
    grid-template-columns: minmax(89px, 1fr) minmax(42px, 1.2fr) 48px;
  }
  .brand {
    margin-left: 8px;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  #side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 8;
    width: 228px;
    transform: translateX(-102%);
    transition: transform 0.18s;
  }
  .menu-open #side {
    transform: translateX(0);
  }
  .menu-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0d242754;
    z-index: 7;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .crumb > .mobile-menu + svg {
    display: none;
  }
  .topbar {
    padding: 0 16px;
    height: 57px;
  }
  .crumb {
    gap: 7px;
  }
  .content {
    padding-top: 20px;
  }
  .mode {
    display: none;
  }
  .homegrid {
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr);
  }
  .rulegrid {
    grid-template-columns: 168px minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .crumb > span,
  .crumb > i,
  .crumb > b {
    display: none;
  }
  .top-tools {
    gap: 4px;
  }
  .top-tools select {
    max-width: min(72vw, 260px);
    font-size: 0.81rem;
  }
  .topbar {
    padding: 0 10px;
  }
  .content {
    padding: 17px 12px 34px;
  }
  .pagehead {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
  }
  .pagehead h1 {
    font-size: 1.65rem;
  }
  .pagehead p {
    font-size: 0.82rem;
    margin-top: 4px;
    line-height: 1.45;
  }
  .pagehead .actions {
    justify-content: flex-end;
    gap: 4px;
  }
  .pagehead .btn {
    font-size: 0.8rem;
    padding: 6px 9px;
    min-height: 34px;
  }
  .hero {
    min-height: 142px;
    padding: 16px;
  }
  .hero h2 {
    font-size: 1.35rem;
    margin: 9px 0 11px;
  }
  .hero-meta {
    gap: 4px 9px;
    font-size: 0.76rem;
  }
  .hero-ring {
    padding-left: 8px;
    margin: 0;
    font-size: 0.73rem;
  }
  .ring {
    width: 64px;
    height: 64px;
  }
  .ring:before {
    inset: 5px;
  }
  .ring strong {
    font-size: 1.25rem;
  }
  .hero-top {
    gap: 6px;
  }
  .hero-eyebrow {
    font-size: 0.79rem;
  }
  .stats {
    gap: 6px;
    margin: 10px 0 12px;
  }
  .stat {
    display: block;
    padding: 12px 9px;
    border-radius: 12px;
  }
  .stat-icon {
    display: none;
  }
  .stat-data > span {
    font-size: 0.79rem;
  }
  .stat-data > strong {
    font-size: 1.45rem;
  }
  .stat-data p {
    font-size: 0.73rem;
    line-height: 1.45;
  }
  .homegrid {
    grid-template-columns: 1fr;
  }
  .progress-row {
    padding: 9px 0;
    grid-template-columns: 105px 1fr 65px;
  }
  .right-stack {
    gap: 12px;
  }
  .rulegrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rolelist {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 7px;
  }
  .rolelist button {
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
    padding: 8px;
  }
  .rolelist button svg,
  .rolelist .group-cap {
    display: none;
  }
  .toolbar {
    padding: 10px;
    gap: 8px;
  }
  .segments button {
    padding: 7px 8px;
  }
  .search,
  .search input {
    width: 100%;
    max-width: none;
  }
  th,
  td {
    padding: 9px 12px;
    white-space: nowrap;
  }
  .modal-inner td {
    white-space: normal;
  }
  .rulemeta,
  .weight-row,
  .rule-total {
    padding-left: 14px;
    padding-right: 14px;
  }
  .modal-head {
    padding: 15px;
  }
  .modal-inner {
    padding: 14px;
  }
  .modal-head h2 {
    font-size: 1.08rem;
  }
  .weight-input,
  .weight-head {
    grid-template-columns: minmax(0, 1fr) 76px 28px;
    gap: 3px;
  }
  .weight-input .iconbtn {
    width: 28px;
  }
  .checkgrid {
    gap: 3px;
    padding: 7px;
  }
  .fieldgrid {
    gap: 7px;
  }
  .score-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .badge {
    font-size: 0.73rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.lan-box {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6faf8;
}
.lan-box > div:first-child,
.lan-controls {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.lan-box strong {
  font-size: 0.92rem;
}
.lan-box p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 6px 0;
}
.lan-controls {
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 9px;
}
.lan-controls select {
  font-size: 0.85rem;
  flex: 1;
  min-width: 150px;
}
.trial-nav,
.trial-back {
  color: var(--green-dark);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.trial-nav {
  margin-left: auto;
  padding: 9px 12px;
  background: var(--soft);
}
.trial-back {
  padding: 4px;
}
@media (max-width: 620px) {
  .top-tools:has(.trial-back) select {
    max-width: min(58vw, 235px);
  }
}
