:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #1a3339;
  background: #f5f7f7;
  font-size: 14px;
  --green: #106a60;
  --dark: #13383c;
  --line: #dce5e4;
  --muted: #5c7075;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.btn {
  cursor: pointer;
  background: white;
  border: 1px solid #cbd9d7;
  padding: 8px 13px;
  border-radius: 7px;
  color: #23454a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.35;
}
button:hover,
.btn:hover {
  background: #eaf2f0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #53b8a7;
  outline-offset: 2px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #07594e;
}
.shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  background: var(--dark);
  color: white;
  padding: 25px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 18px;
  font-weight: 650;
  display: flex;
  gap: 10px;
  align-items: center;
  letter-spacing: 0.03em;
  padding: 0 7px;
  margin: 0 0 32px;
}
.mark {
  background: #97dfc5;
  color: #14393a;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  font-size: 20px;
}
.side nav {
  display: grid;
  gap: 5px;
}
.side nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  color: #c8d9d9;
  border-radius: 7px;
  font-weight: 520;
}
.side nav a.active {
  color: white;
  background: #295759;
}
.side nav a:hover {
  text-decoration: none;
  background: #214b4d;
}
.ico {
  display: inline-flex;
}
.ico svg {
  height: 18px;
  width: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidefoot {
  margin-top: auto;
  color: #c4d8d6;
  font-size: 12px;
  border-top: 1px solid #3b5a5e;
  padding: 16px 8px 0;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--muted);
}
.profile {
  border: 0;
  background: transparent;
  padding: 5px;
  font-size: 13px;
}
.avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #146157;
  background: #e0f2e9;
  font-weight: bold;
}
.main {
  padding: 26px 30px 46px;
  max-width: 1550px;
  margin: auto;
}
.pagehead,
.panelhead,
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 16px;
}
h3 {
  font-size: 14px;
}
.small,
.sub {
  color: var(--muted);
  font-size: 12px;
}
.sub {
  margin-top: 5px;
  line-height: 1.45;
}
.toolbar,
.tabs,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar input,
.toolbar select,
input,
textarea,
select {
  border: 1px solid #cedbd9;
  border-radius: 6px;
  background: #fff;
  color: #243d42;
  padding: 8px 10px;
  max-width: 100%;
}
.toolbar input {
  width: 190px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 18px;
  min-width: 0;
}
.metric:first-child {
  background: #e5f3ec;
  border-color: #c9e5d5;
}
.metric .value {
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.metric label {
  color: #546b69;
  font-size: 13px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
}
.panelhead {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.inside {
  padding: 16px;
}
.wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f6f8f8;
  font-size: 12px;
  font-weight: 550;
  color: #546b70;
  white-space: nowrap;
}
td,
th {
  padding: 11px 13px;
  border-bottom: 1px solid #e5eceb;
  vertical-align: middle;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #f8fbfa;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.strong {
  font-weight: 620;
}
.contract {
  min-width: 165px;
  max-width: 350px;
  overflow-wrap: anywhere;
}
.nowrap {
  white-space: nowrap;
}
.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 12px;
  white-space: nowrap;
  background: #edf1f2;
  color: #53666a;
}
.green {
  background: #e5f2e9;
  color: #246241;
}
.amber {
  background: #fff0cc;
  color: #80560b;
}
.red {
  background: #fce8e4;
  color: #a13f37;
}
.blue {
  background: #e4edf9;
  color: #325d92;
}
.tabs {
  margin: 16px 0 0;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.tabs button {
  padding: 9px 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
}
.tabs .on {
  border-color: var(--green);
  font-weight: 650;
  color: var(--green);
}
.empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: 16px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.facts div {
  overflow-wrap: anywhere;
}
.facts label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.timeline li {
  padding: 0 0 14px 5px;
  overflow-wrap: anywhere;
}
.note {
  padding: 10px 14px;
  background: #fff6dd;
  color: #79530f;
  border-radius: 7px;
  margin: 12px 0;
  line-height: 1.5;
}
.filterchip {
  font-size: 12px;
  color: var(--green);
}
.back {
  display: inline-block;
  margin-bottom: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.linkbtn {
  border: none;
  color: var(--green);
  padding: 3px;
  background: transparent;
}
.scrollcards {
  display: none;
}
.mobile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  width: min(550px, 94vw);
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 24px 80px #173a392b;
}
dialog::backdrop {
  background: #10272b70;
}
dialog header,
dialog footer {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
dialog footer {
  border: 0;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
}
.form {
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 6px;
}
.form textarea {
  width: 100%;
  min-height: 82px;
}
.form .json {
  min-height: 180px;
  font-family: monospace;
  font-size: 12px;
}
.x {
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 0 6px;
}
.error {
  color: #9a352d;
  white-space: pre-wrap;
}
.empty:empty {
  display: none;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #123d3c;
  color: #fff;
  padding: 11px 18px;
  border-radius: 8px;
  max-width: 92vw;
  z-index: 9;
}
.pick {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.login {
  max-width: 440px;
  margin: 10vh auto;
  padding: 24px;
  display: grid;
  gap: 16px;
}
.userlist {
  display: grid;
  gap: 8px;
}
.userlist button {
  justify-content: flex-start;
}
.bar {
  height: 5px;
  background: #e6ecea;
  border-radius: 3px;
  overflow: hidden;
  min-width: 55px;
  margin: 6px 0;
}
.bar i {
  display: block;
  background: #48977b;
  height: 100%;
}
.detail-actions {
  margin: 12px 0;
}
.paid-unknown {
  color: #80560b;
}
.num input {
  width: 18px;
}
.rowhead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rowhead .pick {
  flex: none;
}
.taskcard {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.taskcard:last-child {
  border: 0;
}
.spaced {
  margin-top: 12px;
}
textarea {
  resize: vertical;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: var(--green);
}
.statusline {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 158px 1fr;
  }
  .main {
    padding: 20px 16px;
  }
  .top {
    padding: 0 16px;
  }
  .metric {
    padding: 12px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 15px;
    gap: 5px;
  }
  .side {
    padding: 20px 8px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .side {
    height: auto;
    position: static;
    padding: 9px 12px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .brand {
    margin: 0;
    padding: 0;
  }
  .brandname {
    display: none;
  }
  .side nav {
    display: flex;
    gap: 2px;
  }
  .side nav a {
    padding: 8px 9px;
    font-size: 13px;
    gap: 4px;
  }
  .side nav .ico,
  .sidefoot {
    display: none;
  }
  .top {
    height: 40px;
  }
  .main {
    padding: 16px 12px 28px;
  }
  h1 {
    font-size: 21px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 12px 0;
  }
  .metric {
    padding: 10px;
  }
  .metric .value {
    font-size: 21px;
    margin-top: 4px;
  }
  .metric label {
    font-size: 12px;
  }
  .panelhead,
  .toolbar {
    padding: 10px;
  }
  .toolbar input {
    flex: 1 1 125px;
    min-width: 0;
  }
  .tableview {
    display: none;
  }
  .scrollcards {
    display: block;
  }
  .actions button,
  .actions .btn {
    padding: 7px 9px;
  }
  .grid2 {
    gap: 0;
  }
  .facts {
    gap: 10px;
  }
  .tabs {
    gap: 10px;
  }
  .login {
    margin: 4vh auto;
  }
  .pagehead .actions {
    gap: 4px;
  }
  .mobile-actions {
    gap: 5px;
  }
  .mobile-actions button {
    padding: 7px 9px;
  }
  .top .small {
    font-size: 11px;
  }
  .taskcard .contract {
    min-width: 0;
    max-width: none;
  }
  .note {
    font-size: 13px;
  }
}

/* Shared workbench proportions and palette from the Zhiyu desktop/H5 UI. */
:root {
  --green: #285346;
  --dark: #25303b;
  --muted: #63717d;
  --line: #dce2e7;
  --soft: #f7f8fa;
  --mint: #e8eeeb;
  color: var(--dark);
  background: var(--soft);
}
body {
  background: var(--soft);
}
.shell {
  grid-template-columns: 198px minmax(0, 1fr);
}
.workspace {
  min-width: 0;
}
.side {
  background: #fff;
  border-right: 1px solid var(--line);
  color: var(--dark);
  padding: 18px 12px 12px;
}
.brand {
  font-size: 18px;
  letter-spacing: 0.035em;
  margin-bottom: 22px;
  gap: 8px;
}
.mark,
.mobilemark {
  background: var(--green);
  color: white;
  width: 29px;
  height: 31px;
  border-radius: 8px 3px;
  font-size: 16px;
}
.mobilemark {
  display: none;
}
.side nav {
  gap: 3px;
}
.side nav a {
  min-height: 36px;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 10px;
  gap: 9px;
  border-radius: 6px;
  font-size: 13px;
}
.side nav a:hover {
  background: var(--soft);
  color: var(--green);
}
.side nav a.active {
  color: var(--green);
  background: var(--mint);
  font-weight: 650;
}
.sidefoot {
  color: var(--muted);
  border-color: var(--line);
}
.navcount {
  margin-left: auto;
  background: var(--mint);
  color: var(--green);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
}
.top {
  height: 46px;
  padding: 0 18px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.crumb i {
  font-style: normal;
  color: #a7b1b8;
}
.crumb b {
  font-weight: 550;
}
.main {
  padding: 14px 18px 30px;
  max-width: none;
}
.pagehead {
  margin-bottom: 9px;
}
h1 {
  font-size: 21px;
  font-weight: 630;
  line-height: 1.4;
  letter-spacing: 0;
}
h2 {
  font-size: 14px;
}
.primary {
  background: var(--green);
  border-color: var(--green);
}
button,
.btn {
  font-size: 13px;
  border-radius: 6px;
  padding: 6px 10px;
  min-height: 32px;
  color: var(--dark);
}
.primary {
  color: white;
}
input,
textarea,
select {
  color: var(--dark);
}
.metrics {
  gap: 7px;
  margin: 8px 0 10px;
}
.metric {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-radius: 6px;
  padding: 8px 11px;
}
.metric label {
  font-size: 12px;
  color: var(--muted);
}
.metric .value {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0;
}
.metric:first-child {
  background: #edf4ef;
  border-color: #d6e4da;
}
.panel {
  border-radius: 7px;
  margin: 9px 0;
}
.panelhead {
  min-height: 35px;
  padding: 7px 12px;
  gap: 8px;
}
.toolbar {
  padding: 7px 10px;
  gap: 7px;
}
.toolbar input,
.toolbar select {
  font-size: 13px;
  border-color: var(--line);
  min-height: 32px;
  padding: 5px 9px;
}
.toolbar input {
  width: clamp(170px, 23vw, 320px);
}
.toolbar select {
  min-width: 98px;
}
.toolbar .linkbtn {
  min-height: 28px;
  padding: 3px 6px;
}
.tag {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}
.blue {
  background: #e7f0ff;
  color: #285d9c;
}
.amber {
  background: #fff0cf;
  color: #84590b;
}
.green {
  background: #e0f1e5;
  color: #24643e;
}
.red {
  background: #fbe7e3;
  color: #a03930;
}
td,
th {
  padding: 8px 11px;
  border-color: var(--line);
}
th {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
td {
  line-height: 1.4;
}
.contract .sub {
  font-size: 11px;
  margin-top: 2px;
}
.row-end {
  text-align: right;
}
.row-action {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #d6dfda;
  border-radius: 5px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  min-height: 27px;
  align-items: center;
  white-space: nowrap;
}
.row-action:hover {
  background: var(--mint);
  text-decoration: none;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bulkbar {
  background: #f0f5f2;
}
.bulkbar > b {
  font-weight: 600;
  color: var(--green);
  font-size: 12px;
}
.tabs {
  margin: 9px 0 0;
  gap: 5px;
  border: 0;
}
.tabs button {
  border: 1px solid var(--line);
  background: white;
  padding: 5px 10px;
  min-height: 31px;
  border-radius: 5px;
  font-size: 12px;
}
.tabs button.on {
  color: var(--green);
  border-color: var(--green);
  background: var(--mint);
}
.back {
  margin-bottom: 6px;
  font-size: 12px;
}
.detail-actions {
  margin: 8px 0;
}
.grid2 {
  gap: 10px;
}
.inside {
  padding: 12px;
}
.facts {
  gap: 12px;
}
.more {
  position: relative;
  margin: 0;
}
.more summary {
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  list-style: none;
  min-height: 32px;
}
.more > div {
  display: grid;
  position: absolute;
  z-index: 4;
  right: 0;
  top: 100%;
  min-width: 128px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 6px 20px #25303b19;
}
.more > div button {
  border: 0;
  justify-content: flex-start;
}
.rowhead {
  min-width: 0;
}
.mobile-select {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
.mark,
.avatar,
.tag,
.pick {
  flex-shrink: 0;
}
@media (min-width: 651px) and (max-width: 1000px) {
  .shell {
    grid-template-columns: 156px minmax(0, 1fr);
  }
  .metric .value {
    font-size: 17px;
  }
  .metric {
    padding: 7px;
    flex-wrap: wrap;
  }
  .main {
    padding: 12px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
  .side {
    position: fixed;
    z-index: 5;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    height: auto;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 3px 8px calc(3px + env(safe-area-inset-bottom));
    background: #fff;
  }
  .side .brand,
  .sidefoot {
    display: none;
  }
  .side nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }
  .side nav a,
  .side nav a.active {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 4px 6px;
    min-height: 44px;
    font-size: 12px;
  }
  .side nav a.active {
    color: var(--green);
  }
  .side nav a.active .ico {
    background: var(--mint);
    border-radius: 7px;
  }
  .side nav .ico {
    display: inline-flex;
    padding: 1px 9px;
  }
  .side nav .navcount {
    position: absolute;
    left: calc(50% + 5px);
    top: 0;
    padding: 0 4px;
    line-height: 15px;
    font-size: 10px;
  }
  .top {
    height: 44px;
    padding: 0 12px;
  }
  .mobilemark {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 25px;
    font-size: 13px;
  }
  .main {
    padding: 10px 10px 20px;
  }
  .pagehead {
    margin-bottom: 6px;
  }
  h1 {
    font-size: 19px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 7px 0;
    gap: 5px;
  }
  .metric {
    min-height: 36px;
    padding: 6px 8px;
    flex-wrap: wrap;
    gap: 3px 5px;
  }
  .metric .value {
    font-size: 17px;
  }
  .metrics .metric:first-child {
    background: #edf4ef;
  }
  .panel {
    margin: 7px 0;
  }
  .panelhead {
    padding: 6px 9px;
    min-height: 31px;
  }
  .toolbar {
    gap: 5px;
    padding: 6px 8px;
  }
  .toolbar input {
    min-width: 145px;
  }
  .toolbar select {
    min-width: 75px;
  }
  .toolbar input,
  .toolbar select {
    min-height: 36px;
    font-size: 14px;
  }
  .taskcard {
    padding: 8px 10px;
    gap: 5px;
  }
  .taskcard .between {
    gap: 6px;
  }
  .taskcard .rowhead {
    max-width: 100%;
    flex: 1;
    min-width: 0;
  }
  .taskcard .contract {
    min-width: 0;
    max-width: 100%;
    line-height: 1.45;
  }
  .taskcard strong {
    font-size: 14px;
  }
  .row-action {
    min-height: 31px;
    padding: 4px 9px;
  }
  .tag {
    font-size: 11px;
  }
  .tabs {
    gap: 4px;
  }
  .tabs button {
    min-height: 35px;
    padding: 5px 8px;
  }
  .grid2 {
    display: block;
  }
  .grid2,
  .facts {
    min-width: 0;
  }
  .detail-actions:has(.primary) {
    position: sticky;
    top: 0;
    background: var(--soft);
    z-index: 2;
    padding: 5px 0;
  }
  .btn,
  .actions button,
  .mobile-actions button {
    min-height: 36px;
  }
  .small,
  .sub {
    line-height: 1.4;
  }
  .form {
    padding: 14px;
  }
  .top .profile {
    min-height: 36px;
  }
  #toast:not(:empty) {
    bottom: 74px;
  }
  .mobile-select {
    min-height: 34px;
  }
}
.nav-divider {
  width: calc(100% - 14px);
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px auto;
}
.side {
  overflow-y: auto;
}
.mobile-more {
  display: none;
}
.setting {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.token-field,
code {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.token-field {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.guide {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.guide p {
  padding: 9px 0;
  line-height: 1.55;
}
.form .inline {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.form fieldset {
  border: 1px solid var(--line);
  border-radius: 5px;
}
.allnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.allnav a {
  padding: 10px;
  background: var(--soft);
  border-radius: 5px;
}
@media (max-width: 650px) {
  .side {
    overflow: visible;
  }
  .side nav .nav-divider,
  .side nav a[data-nav] {
    display: none;
  }
  .side nav a[data-nav="batches"],
  .side nav a[data-nav="mine"],
  .side nav a[data-nav="reviews"],
  .side nav a[data-nav="results"] {
    display: flex;
  }
  .side nav .mobile-more {
    display: flex;
    flex: 1;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-direction: column;
    font-size: 12px;
    border: 0;
    color: var(--muted);
  }
}

.batch-scope{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:6px;background:var(--soft)}
.batch-scope button{background:transparent;border:0;border-radius:4px;min-height:28px;padding:4px 10px;font-size:13px;color:var(--muted)}
.batch-scope button[aria-pressed="true"]{background:var(--green);color:white}
@media(max-width:650px){.batch-scope button{min-height:34px}}

.evidence-img { display: block; max-width: 100%; max-height: 65vh; margin: 8px auto; object-fit: contain; }
.pager, .fieldrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fieldrow input { max-width: 6em; }
#private-note { width: 100%; min-height: 4em; }

.agent-hub {
  container-type: inline-size;
  --access-tint: #f1f6f3;
  --access-rule: #d6e1da;
}
.access-head, .access-heading, .access-actions, .access-inventory header, .device-empty {
  display:flex;align-items:center;gap:10px;
}
.access-head {justify-content:space-between;margin:0 0 14px}
.access-switch {display:inline-flex;padding:3px;background:#e7ece9;border-radius:8px;gap:3px}
.access-switch a {min-width:64px;text-align:center;padding:5px 13px;color:#50635b;font-weight:600;border-radius:5px}
.access-switch a[aria-current=page] {background:#fff;color:var(--green);box-shadow:0 1px 3px #203b2a20}
.access-setup, .access-inventory {background:#fff;border:1px solid var(--line);border-radius:9px;margin-bottom:14px}
.access-setup {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);overflow:clip}
.access-method,.access-pair {min-width:0;padding:17px 20px}
.access-pair {background:var(--access-tint);border-left:1px solid var(--access-rule)}
.access-heading h2,.access-inventory h2 {font-size:16px;line-height:1.4}
.access-icon {width:29px;height:29px;display:inline-grid;place-items:center;border-radius:7px;color:var(--green);background:#e4efe8}
.access-pair .access-icon {background:white;border:1px solid var(--access-rule)}
.access-hint,.skill-meta {font-size:13px;line-height:1.55;color:var(--muted);margin:6px 0 12px}
.access-actions {flex-wrap:wrap;gap:7px}
.access-actions>a:not(.btn),.access-more,.access-downloads {font-size:13px}
.access-more {display:inline-flex;gap:5px;min-height:30px;padding:2px 0;color:var(--green);border:0;background:none}
.access-more:hover {text-decoration:underline;background:none}
.access-method>.access-more {margin-top:7px}
.skill-entry+.skill-entry {margin-top:13px;border-top:1px solid var(--line);padding-top:12px}
.skill-entry h2 {line-height:1.45}
.skill-entry .access-actions .access-more {padding-inline:4px}
#agent-pair-form {display:flex;gap:6px;flex-wrap:wrap;align-items:center}
#devicecode {font-family:ui-monospace,monospace;letter-spacing:.08em;width:11em;max-width:100%;text-transform:uppercase;background:#fff;min-height:35px;border:1px solid #adbbb3;border-radius:5px;padding:5px 9px}
#devicecode::placeholder {font-family:inherit;color:#64746b;letter-spacing:normal}
#agent-pair-form button {min-height:35px;border-color:#94ac9f;color:var(--green)}
#code-error:not(:empty) {margin-top:6px;color:#973a2e;font-size:13px}
.access-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.access-inventory header {justify-content:space-between;padding:11px 16px;border-bottom:1px solid var(--line)}
.access-inventory h2 span {margin-left:4px;color:var(--muted);font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}
.agent-devices {width:100%;border-collapse:collapse;table-layout:fixed}
.agent-devices th,.agent-devices td {text-align:left;padding:9px 12px;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--line);font-size:13px}
.agent-devices thead th {color:var(--muted);background:var(--soft);font-weight:500}
.agent-devices th:first-child {width:32%}
.agent-devices th:nth-child(2) {width:13%}
.agent-devices th:last-child {width:70px}
.agent-devices tr:last-child td,.agent-devices tbody tr:last-child th {border-bottom:0}
.device-state {font-size:12px;color:var(--green);white-space:nowrap}
.device-state::before {content:"";width:6px;height:6px;margin-right:6px;display:inline-block;vertical-align:middle;border-radius:50%;background:currentColor}
.device-state.off {color:var(--muted)}
.device-empty {min-height:72px;justify-content:center;color:var(--muted);font-size:13px}
.access-downloads summary,.agent-disclosure summary {cursor:pointer;color:var(--green);width:fit-content;padding:6px 0}
.access-downloads div {display:flex;gap:18px;padding:6px 0}
.access-downloads summary:focus-visible,.agent-disclosure summary:focus-visible {outline:2px solid var(--green)}
.agent-tool-list {list-style:none;margin:0;padding:0}
.agent-tool-list li {border-top:1px solid var(--line);padding:8px 0}
.agent-tool-list li>div {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.agent-tool-list p,.agent-disclosure p {margin-top:4px;line-height:1.5;overflow-wrap:anywhere}
dialog .facts strong {overflow-wrap:anywhere}
@container (max-width:640px) {
  .access-setup {grid-template-columns:minmax(0,1fr)}
  .access-method,.access-pair {padding:12px 14px}
  .access-pair {border-left:0;border-top:1px solid var(--access-rule)}
  .access-head {margin-bottom:10px}
  .access-switch a {padding:6px 10px;min-width:50px}
  .access-inventory header {padding:9px 12px}
  .agent-devices,.agent-devices tbody {display:block}
  .agent-devices thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .agent-devices tr {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:9px 12px;border-bottom:1px solid var(--line)}
  .agent-devices tr:last-child {border-bottom:0}
  .agent-devices tbody td,.agent-devices tbody th {width:auto;border:0;padding:0}
  .agent-devices td[data-label] {grid-column:1;min-width:0;color:var(--muted)}
  .agent-devices td[data-label]::before {content:attr(data-label) "　";font-size:12px}
  .agent-devices td:last-child {grid-column:2;grid-row:2/4;align-self:center}
}
.agent-devices tbody th[scope="row"] {background:transparent;color:var(--dark)}
@container (max-width:640px) {
  .agent-devices tbody th[scope="row"] {width:auto;min-width:0}
}
.roster-table {width:100%;border-collapse:collapse;table-layout:fixed}
.roster-table :is(th,td) {text-align:left;padding:7px 12px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
.roster-table thead th {background:var(--soft);color:var(--muted);font-weight:550}
.roster-table tbody th {background:transparent;color:var(--dark)}
.roster-table th:nth-child(2){width:33%}
.roster-table th:last-child{width:84px}
.roster-table small {display:block;color:var(--muted);font-weight:400}
.roster-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;padding:9px 12px}
@media(max-width:680px){
.roster-tools input{width:100%}
.roster-table,.roster-table tbody{display:block}
.roster-table thead{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
.roster-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:9px 12px;border-bottom:1px solid var(--line)}
.roster-table tbody :is(th,td){border:0;width:auto;padding:0}
.roster-table td:nth-child(2),.roster-table td:nth-child(3){grid-column:1}
.roster-table td:nth-child(4){grid-column:2;grid-row:1}
.roster-table td:last-child{grid-column:2;grid-row:2 / 4;align-self:center}
.roster-table small{display:inline;margin-left:5px}
}
.roster-switch {display:inline-flex;align-items:center;gap:5px;background:transparent;border:0;font-size:13px;padding:4px 2px}
.roster-switch::before {content:"";width:25px;height:15px;border-radius:10px;background:radial-gradient(circle at 7.5px 50%, #fff 4.5px, transparent 5px),#78838a}
.roster-switch[aria-checked="true"]::before {background:radial-gradient(circle at 17.5px 50%, #fff 4.5px, transparent 5px),var(--green)}
.roster-switch:disabled {cursor:default}
