/* Shared administration surfaces, measured against the W02, W07, W10 and W13 masters. */
:root {
  --blue: #4939df;
  --teal: #5141d9;
  --ink: #141832;
  --muted: #686b85;
  --paper: #f1f0fc;
  --line: #dedff1;
  --shadow: 0 3px 10px #3431640c, 0 1px 3px #34316408;
  --radius: 14px;
  font-size: 14px
}

body {
  background: linear-gradient(125deg, #f6f5fe, #edecfc);
  color: var(--ink)
}

.desk {
  grid-template-columns: clamp(208px, 16vw, 224px) minmax(0, 1fr)
}

.desk-main,
.work,
.work>*:not(dialog),
.config-layout>*,
.dashboard-grid>*,
.service-layout>* {
  min-width: 0
}

.rail {
  z-index: 3;
  color: white;
  border: 0;
  background: linear-gradient(156deg, #20244a 12%, #222348 48%, #343278);
  padding: 23px 14px
}

.desk-brand {
  padding: 0 4px 32px;
  white-space: nowrap
}

.desk-brand>.icon,
.login-art strong>.icon {
  box-sizing: content-box;
  background: #48477f;
  padding: 7px;
  border-radius: 50%;
  width: 22px;
  height: 22px
}

.desk-brand strong {
  font-size: 17px;
  color: white
}

.rail nav a {
  color: #eeedf9;
  font-weight: 500;
  padding: 12px 17px
}

.rail nav a:hover {
  background: #37365f;
  text-decoration: none
}

.rail nav a[aria-current] {
  background: #504b98;
  box-shadow: inset 3px 0 #7770ca
}

.rail-bottom {
  color: #cbc9e2;
  padding: 15px 4px 0;
  border-top: 1px solid #ffffff20
}

.desk-head {
  height: 56px;
  padding: 0 24px;
  gap: 24px;
  background: #faf9ffdc;
  border-bottom: 1px solid var(--line);
  justify-content: flex-start
}

.crumbs {
  white-space: nowrap;
  color: var(--muted)
}

.crumbs a {
  color: inherit
}

.crumbs b {
  color: var(--ink)
}

.activity-picker,
.account-actions,
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap
}

.activity-picker {
  font-size: 12px;
  color: var(--muted)
}

.activity-picker select {
  max-width: 230px;
  padding: 5px 9px;
  color: var(--ink)
}

.account-actions {
  margin-left: auto;
  gap: 20px
}

.notice-link {
  color: var(--ink)
}

.account-menu {
  position: relative
}

.account-menu summary {
  cursor: pointer
}

.account-menu summary>.icon {
  background: #e6e3fa;
  color: #655cc9;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  padding: 4px
}

.account-menu>div {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  min-width: 120px;
  box-shadow: var(--shadow)
}

.account-menu button {
  margin-top: 8px;
  width: 100%
}

.work {
  padding: 20px 24px 30px;
  gap: 16px;
  max-width: none;
  grid-template-columns: minmax(0, 1fr)
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.page-heading h1 {
  font-size: 28px;
  letter-spacing: -.035em
}

.panel,
#config {
  background: #fdfdff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px
}

.panel h2 {
  font-size: 19px
}

.desk .primary,
dialog .primary,
.auth-box .primary,
.grad {
  background: #4939df;
  color: white;
  border: 1px solid #4435d3;
  box-shadow: 0 2px 4px #4435d220
}

.light {
  background: #f4f2ff;
  color: var(--blue);
  border-color: #c8c4eb
}

button,
.button {
  font-weight: 550;
  border-radius: 7px
}

.desk a.text-btn,
button.text-btn {
  color: var(--blue);
  background: transparent;
  border: none;
  padding: 3px 4px
}

.desk .pill,
dialog .pill {
  background: #eeedf8;
  color: #63617d;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  font-size: 12px
}

.desk .good {
  color: #21643f;
  background: #e1f5e7
}

.desk .warn {
  color: #945e18;
  background: #fff0d9
}

.desk .bad {
  color: #ae3747;
  background: #fce8ed
}

.event-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px
}

.event-strip>img {
  width: 145px;
  height: 91px;
  object-fit: cover;
  border-radius: 10px
}

.event-info {
  display: grid;
  gap: 7px;
  flex: 1
}

.event-tools,
.ranges {
  display: flex;
  align-items: center;
  gap: 6px
}

.event-tools {
  flex-wrap: wrap
}

.event-tools a {
  white-space: nowrap
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px
}

.metric.panel,
.work-stats>a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px 14px
}

.metric b,
.work-stats b {
  font-size: 25px;
  line-height: 1.28;
  color: var(--ink)
}

.metric small {
  color: var(--ink)
}

.metric>.icon,
.desk .work-stats .icon,
.task-grid .icon,
.panel h2>.icon,
.service-card>.icon {
  box-sizing: content-box;
  border-radius: 10px;
  padding: 8px;
  width: 21px;
  height: 21px;
  background: #eeebff;
  color: #5b43dc
}

.metric:nth-child(3n + 2)>.icon,
.desk .work-stats a:nth-child(2) .icon {
  background: #fff0df;
  color: #c27822
}

.dashboard-metrics .metric:nth-child(2)>.icon,
.desk .work-stats a:last-child .icon {
  background: #e4f6eb;
  color: #318958
}

.metric:nth-child(6)>.icon {
  background: #fbe9ed;
  color: #c54157
}

.dashboard-grid,
.supplement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px
}

.dashboard-grid .panel h2 {
  display: flex;
  align-items: center;
  gap: 8px
}

.dashboard-grid .panel h2>.icon {
  background: none;
  color: var(--ink);
  padding: 0
}

.dashboard-grid table {
  margin-top: 15px
}

.dashboard-grid progress {
  display: block;
  accent-color: var(--blue);
  width: 100%;
  height: 7px
}

.ranges {
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-wrap: nowrap
}

.ranges a {
  color: #464459;
  background: none;
  font-size: 12px;
  white-space: nowrap;
  padding: 3px 9px
}

.ranges a.on {
  background: var(--blue);
  color: white;
  border-radius: 6px
}

#trend svg {
  width: 100%;
  display: block;
  height: 225px;
  margin-top: 14px
}

.legend {
  margin: 0;
  display: block;
  color: var(--muted);
  text-align: center
}

.task-grid,
.service-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 0
}

.task-grid a,
.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9ff
}

.task-grid b {
  margin-left: auto;
  color: var(--blue);
  background: #ebe8ff;
  padding: 1px 8px;
  border-radius: 12px
}

.tabs,
.desk .config-tabs,
.service-tabs {
  display: flex;
  align-items: stretch;
  flex-flow: row nowrap;
  overflow: auto;
  gap: 14px;
  background: #fdfdff;
  padding: 0 12px;
  border-bottom: 1px solid var(--line)
}

.tabs a,
.desk .config-tabs button,
.service-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #47465d;
  background: transparent;
  padding: 12px 10px;
  line-height: 1.6
}

.desk .config-tabs button.active,
.tabs a.on,
.service-tabs a[aria-current] {
  color: var(--blue);
  background: none;
  border-bottom: 3px solid var(--blue);
  font-weight: 700
}

.desk .config-tabs .icon {
  display: none
}

.desk .config-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px
}

.desk .config-tabs {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow)
}

.config-studio .config-layout,
.desk .config-studio:is([data-active]) .config-layout {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  align-items: start
}

.desk .config-studio[data-active=regions] .config-layout {
  grid-template-columns: 1fr
}

.config-content {
  gap: 16px
}

.fields label:not(.check) {
  grid-template-columns: minmax(94px, 22%) minmax(0, 1fr);
  gap: 12px
}

.field-thumb,
.cover-field img {
  width: 130px;
  height: 75px;
  object-fit: cover;
  border-radius: 7px
}

.field-thumb {
  grid-column: 2
}

.fields .field-thumb+input {
  grid-column: 2
}

.fields,
.rule-form,
.rule-inputs {
  gap: 16px
}

#group-enroll {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

#group-enroll label:not(.check) {
  grid-template-columns: 1fr
}

.rule-form fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0;
  padding: 14px 16px;
  background: #fbfaff
}

.rule-form legend {
  padding: 0 7px;
  font-size: 17px
}

.rule-inputs {
  grid-template-columns: 1fr 1fr
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  max-width: 170px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden
}

.stepper button,
.stepper input[type=number] {
  margin: 0;
  border: 0;
  background: #f8f7ff;
  text-align: center;
  border-radius: 0;
  padding: 4px 12px
}

.stepper input[type=number] {
  appearance: textfield;
  border-inline: 1px solid var(--line);
  background: white
}

.stepper input::-webkit-inner-spin-button {
  appearance: none
}

.rule-preview ul {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 14px
}

.rule-preview li {
  padding: 8px 0
}

.rule-preview li:before {
  content: "•";
  color: var(--blue);
  margin-right: 9px
}

.rule-preview li b {
  color: var(--blue);
  background: #efedff;
  border-radius: 5px;
  padding: 2px 6px
}

.switches input:checked {
  background: var(--blue)
}

.config-save {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 12px
}

.config-save small {
  margin-right: auto
}

.preview iframe {
  background: white;
  height: 490px;
  border-color: var(--line)
}

.tier-group {
  min-width: 0
}

.tier-group h3 {
  margin: 8px 0
}

.rule-tiles>div,
.tier-summary>div,
.cloud-center .cloud-metrics {
  background: #f4f2fc
}

.preview h2 small {
  background: #eeebff;
  color: var(--blue);
  padding: 2px 6px
}

.table-wrap {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: auto
}

table {
  font-size: 13px
}

td,
th {
  padding: 11px 10px;
  border-color: #e9e8f4
}

th {
  color: #39394e;
  background: #f1f0fa;
  white-space: nowrap
}

tbody tr:last-child td {
  border-bottom: 0
}

tbody tr:hover {
  background: #f8f7ff
}

.pager b {
  color: white;
  background: var(--blue)
}

.desk .work-stats {
  margin: 0;
  background: none;
  border: 0;
  gap: 12px
}

.desk .work-stats>a {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfdff;
  box-shadow: var(--shadow)
}

.work-stats a>div {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px
}

.desk .work-stats small {
  color: var(--ink)
}

.desk .work-views {
  gap: 6px;
  border: 0
}

.desk .work-views a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #45445b
}

.desk .work-views [aria-current] {
  background: var(--blue);
  color: white
}

.desk .work-table td:last-child {
  white-space: nowrap
}

.participant-work details>summary {
  color: var(--blue);
  cursor: pointer
}

.participant-work .work-tools {
  border-color: var(--line)
}

dialog {
  width: min(540px, 94vw);
  border-radius: 14px;
  padding: 24px;
  background: #fdfdff;
  box-shadow: 0 18px 65px #201b4a44
}

dialog::backdrop,
.drawer::backdrop {
  background: #24254465;
  backdrop-filter: none
}

dialog h2 {
  font-size: 21px;
  margin-bottom: 16px
}

dialog .close {
  color: var(--muted);
  border: 0;
  background: transparent
}

.drawer {
  width: min(590px, 97vw);
  padding: 24px;
  border-radius: 14px 0 0 14px
}

.drawer img {
  background: #f3f2fc
}

.drawer dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden
}

.drawer dt,
.drawer dd {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  margin: 0
}

.drawer dt {
  background: #f3f2fc
}

.compare-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.compare-photos figure {
  margin: 0
}

.compare-photos img {
  width: 100%;
  height: 280px;
  max-height: none;
  object-fit: contain
}

.compare-photos figcaption {
  font-weight: 600
}

#poster-box,
#import-box,
#original-box {
  width: min(820px, 94vw)
}

.file-zone {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 115px;
  border: 1px dashed #bcb6e2;
  border-radius: 9px;
  background: #f7f5ff;
  color: var(--blue);
  cursor: pointer
}

.file-zone input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer
}

.file-zone:focus-within {
  outline: 2px solid var(--blue)
}

.batch-counts,
.summary-counts {
  display: flex;
  gap: 12px
}

.batch-counts>div,
.summary-counts>div {
  flex: 1;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 10px;
  background: #faf9ff
}

.batch-counts b,
.summary-counts b {
  display: block;
  font-size: 23px
}

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px
}

.service-tabs {
  border-radius: 12px
}

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

.service-card {
  background: #fdfdff;
  box-shadow: var(--shadow);
  padding: 24px
}

.service-card strong,
.service-card small {
  display: block
}

.service-card span {
  margin-left: auto;
  color: var(--blue)
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 16px;
  align-items: start
}

.service-layout details {
  border-top: 1px solid var(--line);
  padding: 10px 0
}

.service-layout summary {
  cursor: pointer;
  font-weight: 600
}

.service-layout .fields {
  margin-top: 16px
}

.risk-chart {
  display: block;
  width: 100%;
  height: 150px;
  color: var(--blue)
}

.risk-days span {
  background: transparent;
  padding: 0;
  font-size: 12px
}

.settlement-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  list-style: none;
  padding: 16px 0;
  counter-reset: phase
}

.settlement-progress li {
  counter-increment: phase;
  display: grid;
  justify-items: center;
  flex: 1;
  gap: 5px;
  color: var(--muted);
  position: relative
}

.settlement-progress li:before {
  content: counter(phase);
  border-radius: 50%;
  background: #edecf7;
  color: #605c81;
  padding: 3px 10px;
  z-index: 1
}

.settlement-progress li:not(:last-child):after {
  content: "";
  height: 1px;
  background: var(--line);
  position: absolute;
  left: 50%;
  right: -50%;
  top: 13px
}

.settlement-progress .done:before {
  background: var(--blue);
  color: white
}

.settlement-step {
  margin: 14px 0;
  padding: 16px;
  border-radius: 9px;
  background: #f7f6fd
}

.login-layout {
  display: grid;
  grid-template-columns: 43% 1fr;
  align-items: center;
  min-height: 100dvh;
  background: radial-gradient(at 90% 10%, #eae7ff, transparent 65%), #f5f4ff
}

.login-art {
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7vh 9%;
  background: linear-gradient(145deg, #191d42, #282658 70%, #353076);
  color: white
}

.login-art:before,
.login-art:after {
  content: "";
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #ffffff18;
  z-index: -1;
  box-shadow: 0 0 0 36px #ffffff07, 0 0 0 75px #ffffff06, 0 0 0 115px #ffffff04;
  right: -35%;
  bottom: -15%
}

.login-art:after {
  right: auto;
  bottom: auto;
  top: 10%;
  left: -65%
}

.login-art strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px
}

.login-art small {
  color: #c0bcdf;
  letter-spacing: .08em
}

.login-art h1 {
  font-size: clamp(34px, 3.8vw, 68px);
  margin: 16px 0
}

.login-art p {
  color: #d6d2ed
}

.login-layout .auth-box,
.bootstrap-page .auth-box {
  justify-self: center;
  width: min(410px, 90%);
  padding: 32px
}

.auth-box>small:first-child {
  color: var(--blue);
  letter-spacing: .12em
}

.auth-box p:empty {
  display: none
}

.bootstrap-page {
  min-height: 100dvh;
  display: grid;
  place-items: center
}

@media(max-width:1200px) {
  .event-tools {
    max-width: 180px
  }

  .dashboard-metrics {
    gap: 7px
  }

  .metric.panel {
    gap: 7px;
    padding: 14px 9px
  }

  .desk .work-views {
    flex-wrap: wrap
  }

  .account-actions {
    gap: 8px
  }
}

@media(max-width:900px) {
  .desk {
    grid-template-columns: 165px minmax(0, 1fr)
  }

  .desk-brand strong {
    font-size: 14px
  }

  .rail {
    padding-inline: 8px
  }

  .work {
    padding: 14px
  }

  .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .desk .config-studio[data-active] .config-layout,
  .service-layout,
  .dashboard-grid {
    grid-template-columns: 1fr
  }

  .event-strip {
    flex-wrap: wrap
  }

  .event-tools {
    max-width: none
  }

  .activity-picker {
    max-width: 38%
  }

  .desk-head {
    gap: 10px
  }

  .service-cards {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:760px) {
  .desk {
    display: block
  }

  .rail {
    height: auto;
    position: static;
    display: block;
    padding: 8px 12px
  }

  .desk-brand,
  .rail-bottom {
    display: none
  }

  .rail nav {
    display: flex;
    overflow: auto;
    gap: 4px
  }

  .rail nav a {
    flex: 0 0 auto;
    gap: 5px;
    padding: 7px;
    font-size: 13px
  }

  .desk-head {
    height: 49px;
    padding: 0 12px
  }

  .desk-head .crumbs {
    display: none
  }

  .activity-picker {
    max-width: 65%;
    gap: 4px
  }

  .activity-picker select {
    max-width: 155px
  }

  .account-actions {
    gap: 6px
  }

  .work {
    padding: 14px 10px;
    gap: 10px
  }

  .panel,
  #config {
    padding: 14px
  }

  .page-heading h1 {
    font-size: 24px
  }

  .metric>.icon,
  .desk .work-stats .icon {
    width: 17px;
    height: 17px;
    padding: 5px
  }

  .metric b {
    font-size: 19px
  }

  .dashboard-grid,
  .task-grid,
  .supplement-grid,
  .service-cards {
    grid-template-columns: 1fr
  }

  .event-strip>img {
    width: 88px;
    height: 70px
  }

  .desk .config-tabs {
    flex-wrap: nowrap;
    overflow: auto
  }

  .desk .work-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px
  }

  .desk .work-stats>a {
    padding: 8px;
    gap: 5px
  }

  .desk .work-stats b {
    font-size: 18px
  }

  .desk .work-filters {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .desk .work-tools,
  .lifecycle,
  .desk .filters,
  .desk .actions {
    flex-wrap: wrap
  }

  .desk .work-tools {
    position: static
  }

  .desk .work-views {
    flex-wrap: nowrap
  }

  .fields label:not(.check),
  #group-enroll {
    grid-template-columns: 1fr
  }

  .field-thumb,
  .fields .field-thumb+input {
    grid-column: auto
  }

  .rule-inputs {
    gap: 8px
  }

  .login-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 16px
  }

  .login-art {
    min-height: 0;
    width: min(410px, 90vw);
    padding: 18px;
    border-radius: 14px
  }

  .login-art section,
  .login-art>small {
    display: none
  }

  .tabs,
  .service-tabs {
    gap: 4px
  }

  .settlement-progress {
    font-size: 11px
  }

  .desk .work-table {
    min-width: 950px
  }

  .desk .bar {
    flex-wrap: wrap
  }

  .batch-counts {
    gap: 6px
  }

  .batch-counts>div {
    padding: 8px
  }
}

table .tier-line {
  display: table-row;
  border: 0
}

.issuance-title {
  margin: 20px 0 12px
}

.vote-filter {
  margin: 0
}

.service-tabs a.on {
  font-weight: 700;
  color: var(--blue);
  border-bottom-color: var(--blue)
}

.risk-rules label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px;
  border-bottom: 1px solid var(--line)
}

.risk-rules input[type=number] {
  max-width: 130px
}

.risk-rules button {
  justify-self: start
}

.risk-days {
  display: flex;
  justify-content: space-between
}

.desk .service-layout h2+.muted {
  margin-top: 5px
}

#poster-box .table-wrap {
  max-height: 28vh
}

.filter-fold>summary {
  list-style-position: inside
}

:root {
  --deep: #302955
}

.login-art:after {
  display: none
}

.login-art:before {
  width: 120%;
  right: -47%;
  bottom: -23%;
  box-shadow: 0 0 0 50px #ffffff08, 0 0 0 105px #ffffff06
}

.auth-box label input:focus-visible {
  outline: 2px solid #8073d7
}

.page-heading .config-save {
  padding: 0;
  border: 0
}

.config-save small {
  font-weight: 400
}

.config-studio[data-active=school] .preview iframe {
  height: 259px
}

.school-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 10px;
  display: grid;
  background: #322b5c;
  color: white
}

.school-card img {
  width: 100%;
  height: 175px;
  object-fit: cover
}

.school-card strong,
.school-card small {
  padding: 4px 12px
}

.school-card small {
  color: #eeebff
}

.share-cover {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px
}

.share-cover img {
  width: 35%;
  max-width: 156px;
  border-radius: 6px
}

.schedule li {
  white-space: nowrap
}

.schedule li:before {
  color: white;
  background: var(--blue)
}

#group-basic label:not(.check),
#group-basic .cover-field {
  display: grid;
  grid-template-columns: 1fr
}

#group-basic input[type=color] {
  width: 90px
}

.switches {
  display: grid;
  gap: 5px
}

.switches label {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  background: transparent;
  border: 0;
  padding: 7px;
  border-top: 1px solid var(--line)
}

.desk .rule-inputs .check input {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #c9c7d8;
  position: relative;
  cursor: pointer
}

.rule-inputs .check input:checked {
  background: var(--blue)
}

.rule-inputs .check input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  background: white;
  width: 14px;
  height: 14px;
  border-radius: 50%
}

.rule-inputs .check input:checked:after {
  transform: translateX(16px)
}

.desk .participant-toolbar {
  gap: 10px;
  margin-bottom: 8px
}

.desk .participant-toolbar .work-views {
  flex-wrap: wrap
}

.desk .work-table td:last-child button {
  display: inline-flex
}

.desk .work-table .inspect .icon,
.desk .work-table .eligibility .icon {
  width: 17px;
  height: 17px
}

.desk .work-tabs button[aria-selected=true],
.drawer .work-tabs button[aria-selected=true] {
  color: var(--blue);
  background: #efedff
}

.drawer dl {
  grid-template-columns: 105px 1fr 105px 1fr
}

.drawer dd {
  overflow-wrap: anywhere
}

.drawer dl dd:last-child {
  grid-column: auto / -1
}

.drawer #student-data>button {
  font-size: 12px;
  color: var(--blue)
}

#import-box,
#original-box {
  width: min(610px, 94vw)
}

.file-zone>.icon {
  width: 27px;
  height: 27px
}

.auth-box small:last-child {
  text-align: center
}

.risk-chart {
  background: repeating-linear-gradient(to top, transparent 0, transparent 24%, #e8e6f4 24.5%, transparent 25%)
}

.risk-days span {
  border: none
}

.service-layout .fields {
  gap: 9px
}

.service-layout .fields input:not([type=checkbox]),
.service-layout .fields select {
  padding: 5px 9px
}

.service-layout .fields button,
.service-layout [data-cloud-test] button {
  background: var(--blue);
  color: white
}

.service-tabs,
.work>nav.tabs {
  background: #fdfdff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px;
  margin: 0
}

.rank-scopes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 15px 0 3px
}

.rank-scopes a {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  padding: 4px 10px
}

.rank-scopes .on {
  background: var(--blue);
  color: white
}

.finished-flow {
  margin-bottom: 14px;
  color: var(--muted)
}

.finished-flow summary {
  cursor: pointer
}

.lifecycle {
  flex-wrap: wrap;
  gap: 10px
}

.lifecycle h2 {
  margin-right: auto
}

.work>.panel.vote-filter {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) repeat(5, minmax(72px, 1fr)) auto;
  gap: 8px
}

.vote-filter input,
.vote-filter select {
  max-width: none
}

.desk:has(.vote-filter [value=SUSPICIOUS]:checked) .vote-filter {
  order: 0
}

@media(max-width:900px) {
  .work>.panel.vote-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .desk .participant-toolbar .work-views {
    max-width: 100%
  }
}

@media(max-width:760px) {
  .drawer dl {
    grid-template-columns: 94px 1fr
  }

  .work>.panel.vote-filter {
    grid-template-columns: 1fr 1fr
  }

  .schedule {
    flex-wrap: wrap
  }

  .config-save small {
    display: none
  }

  .schedule li {
    white-space: normal
  }

  .drawer .compare-photos img {
    height: 170px
  }

  .page-heading .config-save {
    flex-shrink: 0
  }

  .desk .work-stats a {
    flex-wrap: wrap
  }
}

.task-grid small {
  display: block;
  margin-top: 3px
}

.rank-thumb {
  width: 31px;
  height: 33px;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 6px;
  margin-right: 8px
}

.rank-scopes+.filters {
  padding-top: 4px
}

.desk .work>nav.tabs {
  padding-block: 0
}

@media(min-width:901px) {
  #group-school {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }

  #group-school>label {
    grid-column: 1/-1
  }

  #group-school>label:has([name=school]),
  #group-school>label:has([name=short_name]),
  #group-school>label:has([type=file]) {
    grid-column: auto;
    grid-template-columns: 1fr
  }

  #group-school>label .field-thumb,
  #group-school>label .field-thumb+input {
    grid-column: auto
  }

  #group-school>.form-fold {
    grid-column: 1/-1
  }

  #group-school>label textarea:not([name=intro]) {
    min-height: 42px;
    height: 42px
  }

  .work:has(.vote-filter) form[data-op=review_votes] .table-wrap {
    max-height: 340px
  }

  .work:has(.vote-filter) form[data-op=review_votes] th {
    position: sticky;
    top: 0;
    z-index: 1
  }
}

.dialog-foot {
  align-items: center
}

.drawer .work-review {
  padding-top: 8px
}

dialog .pill.bad {
  background: #ffe8ed;
  color: #ab3b51
}

dialog .pill.warn {
  background: #fff0dc;
  color: #93621a
}

dialog .pill.good {
  background: #e0f4e8;
  color: #27663e
}

.panel .notice,
dialog .notice {
  background: #f1eeff;
  color: #483b76
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.create-actions button:first-child {
  color: var(--blue)
}

.reward-main .tier-group {
  margin: 18px 0
}

.reward-main aside h3 {
  margin-top: 18px
}

@media(max-width:760px) {
  .page-heading:has(.heading-actions) {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .heading-actions {
    flex-wrap: wrap;
    gap: 6px
  }

  .heading-actions button {
    font-size: 12px
  }
}