:root {
  color-scheme: light;
  --ink: #17362f;
  --ink-2: #294d44;
  --muted: #536a61;
  --line: #dce2dc;
  --line-strong: #c9d2cb;
  --canvas: #f3f1e9;
  --paper: #fffefa;
  --paper-soft: #faf8f1;
  --green: #1d705d;
  --green-dark: #155343;
  --green-soft: #e5f2ed;
  --coral: #b94832;
  --coral-dark: #84311f;
  --coral-soft: #fbe9e3;
  --gold: #e8b94e;
  --gold-soft: #fff5d6;
  --blue-soft: #eaf1f6;
  --gender-female: #cf3f7f;
  --gender-male: #2f70bd;
  --shadow-sm: 0 1px 2px rgb(23 54 47 / 7%), 0 5px 15px rgb(23 54 47 / 4%);
  --shadow-md: 0 16px 44px rgb(23 54 47 / 11%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar-width: 222px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% -20%, rgb(232 185 78 / 12%), transparent 30rem),
    var(--canvas);
  font-size: 15px;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="color"],
input[type="checkbox"] {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: .52;
}

button,
input,
select,
textarea {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #765400;
  outline-offset: 2px;
}

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

h1,
h2,
h3 {
  letter-spacing: -.025em;
  line-height: 1.12;
}

h1 {
  margin-bottom: .55rem;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

h2 {
  margin-bottom: .35rem;
  font-size: 1.25rem;
}

p {
  color: var(--muted);
}

a {
  color: var(--green);
}

.site-legal-link {
  position: fixed;
  z-index: 19;
  right: .7rem;
  bottom: .7rem;
  padding: .3rem .55rem;
  border: 1px solid rgb(23 54 47 / 12%);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgb(255 254 250 / 88%);
  box-shadow: var(--shadow-sm);
  font-size: .68rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.site-legal-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

hr {
  width: 100%;
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  vertical-align: -.19em;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.print-only {
  display: none;
}

.eyebrow {
  margin-bottom: .4rem;
  color: var(--green);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.subtle {
  color: var(--muted);
  font-size: .84rem;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .68rem 1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-weight: 720;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button-primary {
  border-color: #196652;
  color: #fff;
  background: linear-gradient(145deg, #388f75 0%, #237761 46%, #155b4a 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 24%),
    0 7px 16px rgb(21 83 67 / 24%);
}

.button-primary:not(:disabled):hover {
  border-color: #124d3f;
  background: linear-gradient(145deg, #3a987b 0%, #257c65 43%, #124f40 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 28%),
    0 9px 20px rgb(21 83 67 / 30%);
  filter: saturate(1.06);
  transform: translateY(-1px);
}

.button-quiet,
.button-ghost {
  border-color: var(--line-strong);
  background: var(--paper);
}

.button-quiet:not(:disabled):hover,
.button-ghost:not(:disabled):hover {
  border-color: #aebcb3;
  background: #fff;
}

.button-danger {
  border-color: var(--coral);
  color: #fff;
  background: var(--coral);
}

.button-danger:hover {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
}

.button-large {
  min-height: 52px;
  padding-inline: 1.35rem;
  font-size: 1rem;
}

.link-button {
  padding: .25rem;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: .83rem;
  font-weight: 720;
}

.link-button:hover {
  text-decoration: underline;
}

.danger-link,
.negative-text {
  color: var(--coral-dark) !important;
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.icon-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

label {
  display: grid;
  gap: .42rem;
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 720;
}

input:not([type="checkbox"]):not([type="color"]),
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: .67rem .78rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: .93rem;
  font-weight: 520;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

input:hover,
select:hover,
textarea:hover {
  border-color: #a8b8ae;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(29 112 93 / 10%);
}

label small {
  color: var(--muted);
  font-size: .73rem;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

/* Welcome */

.welcome-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  background: var(--canvas);
}

.welcome-copy {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7.5rem);
  background:
    radial-gradient(circle at 22% 76%, rgb(232 185 78 / 20%) 0 4%, transparent 4.3%),
    radial-gradient(circle at 80% 18%, rgb(121 184 167 / 20%) 0 6%, transparent 6.3%),
    linear-gradient(150deg, #173d33 0%, #102c26 100%);
}

.welcome-copy,
.welcome-copy p,
.welcome-copy .eyebrow {
  color: #fff;
}

.welcome-copy .eyebrow {
  margin-top: clamp(3rem, 8vh, 6rem);
  color: #f4cd74;
}

.welcome-copy h1 {
  max-width: 690px;
  margin-bottom: 1.2rem;
  color: #fffdf7;
  font-size: clamp(2.55rem, 5.2vw, 5rem);
  letter-spacing: -.052em;
}

.welcome-lead {
  max-width: 610px;
  color: rgb(255 255 255 / 76%) !important;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: .68rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand-large {
  align-self: flex-start;
  color: #fff;
  font-size: 1.15rem;
}

.brand-large img {
  width: 42px;
  height: 42px;
}

.principle-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.2rem 0 2rem;
}

.principle-list span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .75rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: rgb(255 255 255 / 85%);
  background: rgb(255 255 255 / 7%);
  font-size: .82rem;
}

.principle-list b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #f4cd74;
  font-size: .7rem;
}

.welcome-copy .button-ghost {
  align-self: flex-start;
  border-color: rgb(255 255 255 / 25%);
  color: #fff;
  background: rgb(255 255 255 / 8%);
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.welcome-copy .button-ghost:hover {
  background: rgb(255 255 255 / 14%);
}

.welcome-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  background:
    linear-gradient(rgb(23 54 47 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 54 47 / 3%) 1px, transparent 1px),
    var(--canvas);
  background-size: 28px 28px;
}

.create-class-form {
  display: grid;
  width: min(100%, 560px);
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgb(23 54 47 / 8%);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.dialog-heading {
  position: relative;
  margin-bottom: .25rem;
}

.dialog-heading h2 {
  margin-bottom: .5rem;
  font-size: 1.7rem;
}

.dialog-heading p:last-child {
  margin-bottom: 0;
}

.island-source-choices {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.island-source-choices legend {
  margin-bottom: .15rem;
  font-size: .78rem;
  font-weight: 800;
}

.island-source-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-soft);
  cursor: pointer;
}

.island-source-choice:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 2px rgb(42 157 143 / 10%);
}

.island-source-choice input {
  margin-top: .15rem;
}

.island-source-choice span,
.shared-island-option > span:last-child {
  display: grid;
  gap: .14rem;
}

.island-source-choice small,
.shared-island-option small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 500;
}

.shared-island-picker {
  display: grid;
  max-height: 280px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  padding: .25rem;
  overflow: auto;
}

.shared-island-option {
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr);
  gap: .5rem;
  align-items: center;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.shared-island-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--island), #20342f 18%);
}

.shared-island-swatch {
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 9px;
  background: var(--island);
  box-shadow: 0 0 0 1px var(--line);
}

.shared-island-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-island-count,
.new-shared-island-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: .7rem;
}

.new-island-count {
  grid-template-columns: minmax(0, 220px);
}

[data-island-source-panel][hidden] {
  display: none;
}

.empty-shared-islands {
  display: flex;
  gap: .6rem;
  padding: .75rem;
  border-radius: 10px;
  color: var(--ink-2);
  background: var(--blue-soft);
  font-size: .76rem;
}

.empty-shared-islands .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Shell */

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

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 1.4rem 1rem 1rem;
  border-right: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
  background: #16382f;
}

.sidebar .brand {
  margin: 0 .55rem 2rem;
  color: #fff;
}

.sidebar nav {
  display: grid;
  gap: .35rem;
}

.nav-item {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: .75rem;
  padding: .7rem .8rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgb(255 255 255 / 68%);
  background: transparent;
  font-size: .9rem;
  font-weight: 680;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-item .icon {
  width: 20px;
  height: 20px;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

.nav-item.active {
  box-shadow: inset 3px 0 #efc767;
}

.sidebar-bottom {
  display: grid;
  gap: .8rem;
  margin-top: auto;
}

.sidebar-bottom > .nav-item {
  border-color: rgb(255 255 255 / 12%);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .75rem;
  color: rgb(255 255 255 / 72%);
  font-size: .7rem;
  line-height: 1.3;
}

.workspace {
  min-width: 0;
  grid-column: 2;
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1.1rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgb(23 54 47 / 9%);
  background: rgb(255 254 250 / 90%);
  backdrop-filter: blur(14px);
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: .5rem;
}

.class-picker-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .55rem;
}

.mobile-create-class {
  display: inline-flex;
  white-space: nowrap;
}

.mobile-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.class-picker {
  display: flex;
  align-items: baseline;
  gap: .7rem;
}

.class-picker select {
  width: auto;
  min-width: 125px;
  min-height: 38px;
  padding: .35rem 2rem .35rem .15rem;
  border: 0;
  color: var(--ink);
  background-color: transparent;
  font-size: 1.05rem;
  font-weight: 800;
}

.class-picker span:last-child {
  color: var(--muted);
  font-size: .77rem;
  font-weight: 550;
}

.topbar-actions,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 620;
}

.save-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3e9a6b;
  box-shadow: 0 0 0 3px rgb(62 154 107 / 11%);
}

.save-state.saving i {
  background: var(--gold);
}

.save-state.error {
  color: var(--coral-dark);
}

.save-state.error i {
  background: var(--coral);
}

.cloud-state {
  --cloud-state-color: var(--green-dark);
  --cloud-state-bg: var(--green-soft);
  --cloud-state-border: #b8d9cd;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: .38rem;
  padding: .35rem .58rem;
  border: 1px solid var(--cloud-state-border);
  border-radius: 999px;
  color: var(--cloud-state-color);
  background: var(--cloud-state-bg);
  font-size: .7rem;
  font-weight: 720;
  line-height: 1.15;
  white-space: nowrap;
}

.cloud-state .icon {
  width: 15px;
  height: 15px;
}

.cloud-state.synced,
.cloud-state.disconnected {
  --cloud-state-color: var(--green-dark);
  --cloud-state-bg: var(--green-soft);
  --cloud-state-border: #b8d9cd;
}

.cloud-state.checking,
.cloud-state.syncing {
  --cloud-state-color: #295b70;
  --cloud-state-bg: var(--blue-soft);
  --cloud-state-border: #c5d9e5;
}

.cloud-state.queued,
.cloud-state.permission,
.cloud-state.paused {
  --cloud-state-color: #76530d;
  --cloud-state-bg: var(--gold-soft);
  --cloud-state-border: #e7ca7e;
}

.cloud-state.conflict,
.cloud-state.error {
  --cloud-state-color: var(--coral-dark);
  --cloud-state-bg: var(--coral-soft);
  --cloud-state-border: #e2ad9f;
}

.cloud-state.checking .icon,
.cloud-state.syncing .icon,
.cloud-panel[aria-busy="true"] .sync-status-icon {
  animation: cloud-pulse 1.25s ease-in-out infinite;
}

@keyframes cloud-pulse {
  0%,
  100% {
    opacity: .58;
    transform: scale(.94);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.main-content {
  width: 100%;
}

.page {
  width: min(100%, 1780px);
  margin: 0 auto;
  padding: clamp(1.35rem, 3vw, 2.4rem);
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.page-header p:last-child {
  margin-bottom: 0;
}

.panel {
  border: 1px solid rgb(23 54 47 / 9%);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1.25rem;
}

.panel-heading.split {
  justify-content: space-between;
}

.panel-heading p,
.panel-heading h2 {
  margin-bottom: .2rem;
}

/* Start page */

.start-layout {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 1.2rem;
}

.start-form,
.method-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.start-form {
  display: grid;
  gap: 1.1rem;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.rules-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .75rem;
  border-radius: 11px;
  background: var(--paper-soft);
}

.rules-summary span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .5rem;
  color: var(--ink-2);
  font-size: .78rem;
}

.form-warning {
  margin: 0;
  padding: .7rem .8rem;
  border-radius: 9px;
  color: #795915;
  background: var(--gold-soft);
  font-size: .82rem;
}

.method-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 5%, rgb(232 185 78 / 21%), transparent 10rem),
    var(--paper);
}

.method-card > h2 {
  margin-bottom: 1.3rem;
  font-size: 1.6rem;
}

.method-card ol {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.method-card li {
  position: relative;
  display: grid;
  gap: .18rem;
  min-height: 48px;
  padding-left: 3.3rem;
  counter-increment: method;
}

.method-card li::before {
  content: counter(method);
  position: absolute;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d9c488;
  border-radius: 50%;
  color: #735919;
  background: var(--gold-soft);
  font-weight: 800;
}

.method-card li span {
  color: var(--muted);
  font-size: .86rem;
}

/* Board */

.board-page {
  position: relative;
  isolation: isolate;
}

.board-page::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(57vw, 760px);
  height: 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 170'%3E%3Cg fill='none' stroke='%237b8f86' stroke-opacity='.34' stroke-width='1'%3E%3Cpath d='M72 0 130 46l78-26 61 58 72-42 78 46 71-60 65 52 91-39 57 62 57-22'/%3E%3Cpath d='m142 0 66 20 18 77 115-61 37 98 112-112 22 92 134-79 28 96'/%3E%3Cpath d='m44 77 86-31 96 51 43-19 109 56 41-52 93 32 43-40 119 57 86-32'/%3E%3Cpath d='m269 78-21 82m93-124 37 98 44 30m68-142 65 52 25-74m66 35 28 96 86 18'/%3E%3C/g%3E%3Cg fill='%237b8f86' fill-opacity='.43'%3E%3Ccircle cx='130' cy='46' r='4'/%3E%3Ccircle cx='208' cy='20' r='5'/%3E%3Ccircle cx='226' cy='97' r='4'/%3E%3Ccircle cx='269' cy='78' r='5'/%3E%3Ccircle cx='341' cy='36' r='6'/%3E%3Ccircle cx='378' cy='134' r='5'/%3E%3Ccircle cx='419' cy='82' r='4'/%3E%3Ccircle cx='490' cy='22' r='4'/%3E%3Ccircle cx='512' cy='114' r='6'/%3E%3Ccircle cx='555' cy='74' r='4'/%3E%3Ccircle cx='646' cy='35' r='5'/%3E%3Ccircle cx='674' cy='131' r='6'/%3E%3Ccircle cx='703' cy='97' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 100% auto;
  content: "";
  opacity: .72;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 36%, #000 100%);
}

.board-page > * {
  position: relative;
  z-index: 1;
}

.board-header h1 {
  margin-bottom: .35rem;
}

.topbar [data-action="toggle-projector"],
.board-header [data-action="open-new-session"] {
  border-color: #196652;
  color: #fff;
  background: linear-gradient(145deg, #388f75 0%, #237761 46%, #155b4a 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 24%),
    0 7px 16px rgb(21 83 67 / 22%);
}

.topbar [data-action="toggle-projector"]:hover:not(:disabled),
.board-header [data-action="open-new-session"]:hover:not(:disabled) {
  border-color: #124d3f;
  background: linear-gradient(145deg, #3a987b 0%, #257c65 43%, #124f40 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 28%),
    0 9px 20px rgb(21 83 67 / 29%);
  transform: translateY(-1px);
}

.session-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .7rem;
}

.round-picker,
.session-picker {
  display: block;
}

.round-picker {
  min-width: min(260px, 45vw);
}

.session-picker {
  min-width: min(360px, 60vw);
}

.round-picker select,
.session-picker select {
  min-height: 42px;
  border-color: #b9c8bf;
  color: var(--ink);
  background: var(--paper);
  font-weight: 760;
  box-shadow: var(--shadow-sm);
}

.board-round-only-controls {
  margin: 0 0 1rem;
}

.closed-round-banner {
  border-color: #c7d2cc;
  background: #f2f5f3;
}

.session-projector-label {
  display: none;
}

.session-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #d9bd6d;
  border-radius: 13px;
  background: var(--gold-soft);
  box-shadow: var(--shadow-sm);
}

.session-context-banner > div {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.session-context-banner > div > .icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: #76530d;
}

.session-context-banner strong,
.session-context-banner p {
  margin: 0;
}

.session-context-banner p {
  font-size: .76rem;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.island-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 1rem;
}

.island-card {
  --island-border-gradient: linear-gradient(
    180deg,
    var(--island) 0%,
    color-mix(in srgb, var(--island) 82%, transparent) 28%,
    color-mix(in srgb, var(--island) 44%, transparent) 68%,
    color-mix(in srgb, var(--island) 10%, transparent) 100%
  );
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 4px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--island-border-gradient) border-box;
  box-shadow:
    0 1px 2px rgb(23 54 47 / 6%),
    0 10px 28px color-mix(in srgb, var(--island), transparent 91%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.island-card:hover {
  border-color: transparent;
  box-shadow:
    0 2px 4px rgb(23 54 47 / 7%),
    0 15px 38px color-mix(in srgb, var(--island), transparent 86%);
}

.island-card.winner {
  border-color: transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--island), transparent 78%), var(--shadow-md);
}

.island-grid.has-winner .island-card:not(.winner) {
  --island-border-gradient: linear-gradient(
    180deg,
    color-mix(in srgb, var(--island) 25%, transparent) 0%,
    color-mix(in srgb, var(--island) 10%, transparent) 52%,
    color-mix(in srgb, var(--island) 3%, transparent) 100%
  );
}

.island-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem 1rem .85rem;
}

.island-title {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: .75rem;
}

.island-title-content {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: .65rem;
}

.island-name-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .35rem;
}

.island-header h2 {
  overflow: hidden;
  margin: 0;
  color: #151b19;
  font-size: 1.35rem;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.island-card-image {
  display: block;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: contain;
}

.island-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--island);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--island), transparent 84%);
  filter: saturate(1.35) contrast(1.04);
}

.score-main {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: .14rem;
  text-align: right;
  white-space: nowrap;
}

.score-main-group {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(78px, auto));
  align-items: center;
  gap: 0;
  min-width: 182px;
  padding: .3rem;
  border: 1px solid color-mix(in srgb, var(--island) 16%, var(--line));
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--island), #fff 97%));
  box-shadow: 0 5px 16px rgb(23 54 47 / 8%);
}

.score-main-button {
  min-height: 62px;
  padding: .35rem .55rem;
  border: 0;
  border-radius: 10px;
  color: inherit;
  background: transparent;
}

.score-main-button:hover {
  background: var(--paper-soft);
}

.score-main-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--island), transparent 70%);
  outline-offset: 1px;
}

.session-score-main {
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.session-score-main.positive strong {
  color: #078463;
  text-shadow: 0 1px 0 rgb(255 255 255 / 70%);
}

.session-score-main.negative strong {
  color: #d14938;
  text-shadow: 0 1px 0 rgb(255 255 255 / 70%);
}

.session-score-main.neutral strong {
  color: #326f60;
}

.score-main strong {
  font-size: 2.05rem;
  letter-spacing: -.06em;
  line-height: 1;
}

.round-score-main strong {
  color: var(--island);
  filter: saturate(1.2) contrast(1.04);
}

.score-main-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .2rem;
  color: var(--muted);
  line-height: 1;
}

.score-main-unit {
  font-size: .72rem;
  font-weight: 650;
  line-height: 1;
}

.score-main small {
  display: block;
  width: 100%;
  margin: 0;
  font-size: .55rem;
  font-weight: 720;
  letter-spacing: .03em;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.score-track {
  width: 100%;
  height: 8px;
  margin: 0;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--island), #fff 86%);
  box-shadow: inset 0 1px 2px rgb(23 54 47 / 10%);
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--island);
  filter: saturate(1.35) contrast(1.04);
  transition: width 220ms ease;
}

.score-track-projector {
  display: none;
}

.malus-count {
  color: var(--coral-dark);
}

.students {
  margin-top: .8rem;
  padding: .7rem 1rem .85rem;
  border-block: 1px solid color-mix(in srgb, var(--island), #fff 84%);
  background: color-mix(in srgb, var(--island), var(--paper) 98%);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .38rem;
  margin-bottom: .6rem;
  color: var(--island);
  font-size: .7rem;
  font-weight: 830;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.section-label .icon {
  width: 17px;
  height: 17px;
}

.section-label small {
  color: #60736a;
  font-size: .62rem;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

.student-list {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--island), var(--line) 86%);
  border-radius: 12px;
  background: rgb(255 255 255 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 82%);
}

.student-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(5, auto);
  align-items: center;
  gap: .38rem;
  min-height: 43px;
  padding: .18rem .42rem;
}

.student-row + .student-row {
  border-top: 1px solid color-mix(in srgb, var(--island), #e8ece6 91%);
}

.student-row.absent > :not(.attendance-button) {
  opacity: .3;
}

.student-row.absent .student-display-name {
  text-decoration: line-through;
}

.student-name {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  padding: .25rem .3rem;
  overflow: hidden;
  font-size: .83rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .3rem;
}

.student-labelled-name {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .32rem;
  vertical-align: middle;
}

.student-display-name {
  min-width: 0;
}

.student-gender {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-gender.female,
.gender-icon-select.female {
  color: var(--gender-female);
}

.student-gender.male,
.gender-icon-select.male {
  color: var(--gender-male);
}

.student-gender.unspecified {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: .62rem;
}

.student-final-score {
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--island), #fff 55%);
  border-radius: 50%;
  color: color-mix(in srgb, var(--island), #17362f 55%);
  background: color-mix(in srgb, var(--island), #fff 84%);
  font-size: .72rem;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 75%),
    0 1px 3px color-mix(in srgb, var(--island), transparent 82%);
}

.student-final-score.not-evaluated {
  border-color: var(--line);
  color: var(--muted);
  background: #edf0ed;
}

.student-points-button {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.student-points-button:hover {
  background: color-mix(in srgb, var(--island), #fff 96%);
}

.student-points-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--island), transparent 76%);
  outline-offset: 1px;
}

.student-points-hint {
  color: var(--muted);
  font-size: .61rem;
  font-weight: 650;
  white-space: nowrap;
}

.student-row .icon-button {
  width: 31px;
  height: 31px;
  border-color: #d8dfdc;
  border-radius: 50%;
  background: #fff;
  font-size: .9rem;
  font-weight: 820;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 3px rgb(23 54 47 / 8%);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.student-row .icon-button:hover:not(:disabled) {
  border-color: #c4d1c9;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgb(23 54 47 / 12%);
  transform: translateY(-1px);
}

.student-row .attendance-button {
  display: grid;
  place-items: center;
  border-color: #cddbd4;
  background: #f7faf8;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgb(23 54 47 / 7%);
}

.student-row .attendance-button::before {
  width: 14px;
  height: 14px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #36a66d;
  box-shadow: 0 0 0 1px rgb(27 97 72 / 14%), inset 0 1px 1px rgb(255 255 255 / 28%);
  content: "";
  transition: filter 150ms ease, transform 150ms ease;
}

.student-row .attendance-button.present::before {
  background: #36a66d;
}

.student-row .attendance-button.absent::before {
  background: var(--coral);
}

.student-row .attendance-button.absent {
  border-color: #efd0ca;
  background: #fff8f6;
}

.student-row .attendance-button:hover:not(:disabled) {
  border-color: #a9cdbd;
  background: #f0f8f4;
}

.student-row .attendance-button.absent:hover:not(:disabled) {
  border-color: #e4b3a7;
  background: #f9e2dc;
}

.student-row .attendance-button:hover:not(:disabled)::before {
  filter: brightness(1.08);
  transform: scale(1.12);
}

.student-row .move-student-button {
  color: #3f6895;
  background: #f7faff;
  border-color: #d2ddea;
}

.student-row .reward-student-button .icon {
  width: 15px;
  height: 15px;
}

.student-row .move-student-button .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.student-row .reward-student-button {
  border-color: #e7d9b8;
  color: #9a6812;
  background: #fffdf7;
}

.student-row .bonus-subtle {
  border-color: #d5e6de;
  color: #16745b;
  background: #f2faf6;
}

.student-row .danger-subtle {
  border-color: #efd1ca;
  color: #bd4937;
  background: #fff8f6;
}

.student-row .bonus-subtle,
.student-row .danger-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1;
}

.danger-subtle,
.individual-malus {
  color: var(--coral-dark);
}

.bonus-subtle,
.individual-bonus {
  color: var(--green-dark);
}

.individual-totals {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .24rem;
}

.individual-malus,
.individual-bonus,
.migration-adjustment,
.score-frozen-label {
  display: inline-grid;
  min-width: 26px;
  min-height: 22px;
  place-items: center;
  padding: .08rem .34rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .67rem;
  font-weight: 830;
  line-height: 1;
}

.migration-adjustment {
  border-color: #cddbeb;
  color: #315f97;
  background: #edf4fb;
}

.score-frozen-label {
  border-color: #ead9a7;
  color: #6e4e0d;
  background: var(--gold-soft);
  white-space: nowrap;
}

.individual-malus {
  border-color: #f0d2cb;
  background: #fff1ed;
  font-weight: 600;
}

.individual-bonus {
  border-color: #cae2d8;
  background: #edf8f3;
  font-weight: 600;
}

.empty-inline {
  margin: .5rem 0;
  font-size: .78rem;
  font-style: italic;
}

.empty-inline.no-present {
  padding: .45rem .55rem;
  border-radius: 7px;
  color: #6e4e0d;
  background: var(--gold-soft);
  font-style: normal;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin-top: auto;
  padding: .65rem 1rem .5rem;
}

.quick-actions button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  gap: .35rem;
  padding: .35rem .48rem;
  border: 1px solid #cfddd6;
  border-radius: 11px;
  color: var(--green-dark);
  background: #f5faf7;
  font-size: .64rem;
  font-weight: 680;
  line-height: 1.1;
  text-align: left;
}

.quick-actions button:hover:not(:disabled) {
  border-color: #9fc4b5;
  background: var(--green-soft);
}

.quick-actions .quick-reason-button:not(.quick-other) {
  border-color: color-mix(in srgb, var(--reason-color) 52%, var(--line));
  background: color-mix(in srgb, var(--reason-color) 8%, #fff);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%);
}

.quick-actions .quick-reason-button:not(.quick-other):hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--reason-color) 56%, var(--line));
  background: color-mix(in srgb, var(--reason-color) 15%, #fff);
}

.quick-reason-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .35rem;
}

.quick-reason-emoji {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}

.quick-reason-label {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quick-reason-value {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 99px;
  color: #fff;
  background: var(--green);
  font-size: .67rem;
  font-weight: 850;
}

.quick-actions .quick-other {
  border-style: dashed;
  color: var(--muted);
  background: var(--paper-soft);
}

.quick-actions .quick-other .quick-reason-value {
  color: var(--green-dark);
  background: var(--green-soft);
}

.card-footer {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .55rem 1rem .65rem;
  border-top: 1px solid #edf0eb;
}

.card-footer .link-button {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  padding: .48rem .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgb(23 54 47 / 4%);
}

.card-footer .link-button:hover:not(:disabled) {
  background: var(--paper-soft);
  text-decoration: none;
}

.card-footer .points-link {
  border-color: #d7e1ed;
  color: #264e7b;
  background: linear-gradient(135deg, #fff, #fbfdff);
}

.points-link .icon {
  width: 18px;
  height: 18px;
}

.card-footer .reward-link {
  border-color: #eadfc5;
  color: #a26808;
  background: linear-gradient(135deg, #fff, #fffdf8);
}

.card-footer .danger-link {
  border-color: #efd5cf;
  color: #b43e31 !important;
  background: linear-gradient(135deg, #fff, #fffafa);
}

.card-footer .reward-link .icon,
.card-footer .danger-link .icon {
  width: 18px;
  height: 18px;
}

.threshold-banner,
.info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border: 1px solid #cfd99f;
  border-radius: 13px;
  background: #f7f6d8;
  box-shadow: var(--shadow-sm);
}

.threshold-banner > div:first-child {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.threshold-banner p,
.threshold-banner strong {
  margin: 0;
}

.threshold-banner p {
  font-size: .75rem;
}

.celebration {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #7f962b;
  font-weight: 850;
}

/* Classroom */

.info-banner {
  justify-content: flex-start;
  border-color: #cddce5;
  color: #3e6274;
  background: var(--blue-soft);
  font-size: .82rem;
}

.class-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 1.2rem;
  align-items: start;
}

.main-stack {
  display: grid;
  gap: 1.2rem;
}

.class-layout .panel,
.settings-content > .panel,
.settings-data-stack > .panel {
  padding: 1.25rem;
}

.group-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
}

.group-method-note {
  margin: .9rem 0 0;
}

.group-editor {
  position: relative;
  min-height: 130px;
  padding: .8rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--island);
  border-radius: 11px;
  background: var(--paper-soft);
}

.group-editor-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: .4rem;
}

.shared-island-usage {
  display: inline-flex;
  margin-top: .15rem;
  padding: .16rem .42rem;
  border-radius: 999px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--island), #fff 84%);
  font-size: .61rem;
  font-weight: 750;
}

.group-name-input {
  min-height: 33px !important;
  padding: .3rem .38rem !important;
  border-color: transparent !important;
  background: transparent !important;
  font-weight: 780 !important;
}

.group-editor input[type="color"] {
  width: 30px;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.group-editor p {
  margin: .45rem 0 0;
  font-size: .7rem;
}

.group-image-editor {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: .6rem;
  margin-top: .55rem;
  padding: .4rem;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: rgb(255 255 255 / 50%);
}

.group-image-editor > img,
.group-image-editor > span {
  display: grid;
  width: 68px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: var(--canvas);
  object-fit: contain;
}

.group-image-editor .icon {
  width: 22px;
  height: 22px;
}

.group-image-actions {
  display: grid;
  justify-items: start;
  gap: .2rem;
}

.group-image-actions .link-button {
  min-height: 24px;
  padding: 0;
  font-size: .68rem;
  text-align: left;
}

.group-image-note {
  margin: .9rem 0 0;
}

.student-badge-list {
  display: grid;
  justify-items: start;
  gap: .35rem;
  margin-top: .7rem;
}

.student-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: .28rem .48rem;
  border: 1px solid color-mix(in srgb, var(--island), #fff 65%);
  border-radius: 999px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--island), #fff 84%);
  font-size: .67rem;
  font-weight: 750;
}

.student-badge .student-display-name {
  overflow-wrap: anywhere;
}

.remove-group {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  width: 28px;
  height: 28px;
  color: var(--coral-dark);
  background: transparent;
}

.student-table-wrap,
.score-table-wrap {
  overflow: auto;
}

.student-table,
.score-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.student-table th,
.score-table th {
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 790;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.student-table td,
.score-table td {
  padding: .55rem .7rem;
  border-bottom: 1px solid #e9ece8;
  vertical-align: middle;
}

.student-table tr:last-child td,
.score-table tr:last-child td {
  border-bottom: 0;
}

.student-table input,
.student-table select {
  min-width: 125px;
  min-height: 36px !important;
  padding-block: .35rem !important;
  border-color: transparent !important;
  background-color: transparent;
}

.student-name-field {
  display: flex;
  min-width: 180px;
  align-items: center;
  gap: .25rem;
}

.student-name-field input {
  min-width: 150px;
  flex: 1 1 auto;
}

.student-table .student-gender-column {
  width: 70px;
  min-width: 70px;
  padding-inline: .45rem;
  text-align: center;
}

.gender-icon-select {
  font-family: monospace, sans-serif;
  font-size: 1.35rem;
  font-weight: 200;
  line-height: 1;
}

.gender-icon-select option[value="female"] {
  color: var(--gender-female);
}

.gender-icon-select option[value="male"] {
  color: var(--gender-male);
}

.student-table .gender-icon-select {
  width: 58px;
  min-width: 58px;
  padding: .35rem .45rem !important;
  text-align: center;
}

.student-table tr:hover input,
.student-table tr:hover select,
.student-table input:focus,
.student-table select:focus {
  border-color: var(--line) !important;
  background-color: #fff;
}

.student-table tr.inactive {
  opacity: .48;
}

.switch {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: .45rem;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: #c8cfcb;
  transition: background 150ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
  transition: transform 150ms ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(15px);
}

.switch input:focus-visible + span {
  outline: 3px solid #765400;
  outline-offset: 2px;
}

.switch em {
  color: var(--muted);
  font-size: .7rem;
  font-style: normal;
  font-weight: 600;
}

.side-form {
  position: sticky;
  top: 92px;
}

.side-form form {
  display: grid;
  gap: .75rem;
}

.new-student-fields {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: .6rem;
  align-items: end;
}

.new-student-fields label {
  min-width: 0;
}

.new-student-gender-field .gender-icon-select {
  height: 44px;
  min-height: 44px;
  padding-block: 0;
  min-width: 0;
  padding-inline: .45rem;
  text-align: center;
}

.privacy-callout {
  display: flex;
  gap: .55rem;
  margin-top: 1.2rem;
  padding: .75rem;
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.privacy-callout p {
  margin: 0;
  color: inherit;
  font-size: .72rem;
}

/* History */

.history-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.round-list {
  display: grid;
  gap: .45rem;
}

.round-list-current,
.archived-rounds > div {
  display: grid;
  gap: .45rem;
}

.round-list-empty {
  margin: 0;
  padding: .75rem;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  font-size: .7rem;
}

.archived-rounds {
  margin-top: .25rem;
  border-top: 1px solid var(--line);
}

.archived-rounds summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
  padding: .75rem .55rem .55rem;
  color: var(--muted);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 760;
  list-style: none;
}

.archived-rounds summary::-webkit-details-marker {
  display: none;
}

.archived-rounds summary .icon {
  width: 16px;
  height: 16px;
}

.archived-rounds summary b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-2);
  background: #e8ece9;
  font-size: .62rem;
}

.round-list-item.archived {
  background: rgb(237 240 237 / 55%);
}

.round-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .75rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  text-align: left;
}

.round-list-item:hover,
.round-list-item.active {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.round-list-item span:nth-child(2) {
  min-width: 0;
}

.round-list-item strong,
.round-list-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-list-item strong {
  font-size: .83rem;
}

.round-list-item small {
  color: var(--muted);
  font-size: .66rem;
}

.round-list-item > b {
  color: var(--muted);
  font-size: .72rem;
}

.round-list-item > .round-winner-name {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .3rem;
  max-width: 7.5rem;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-active-dot {
  width: .43rem;
  height: .43rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #df8b18;
  box-shadow: 0 0 0 2px rgb(223 139 24 / 14%);
}

.round-average-indicator {
  display: grid;
  min-width: 24px;
  place-items: center;
}

.round-average-indicator .competency-indicator {
  gap: 0;
}

.round-average-indicator .competency-dot {
  width: 9px;
  height: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.status-dot.closed {
  background: #65a683;
}

.status-dot.neutral {
  display: block;
  background: #aab4af;
}

.report {
  overflow: hidden;
}

.report-header,
.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
}

.report-header {
  border-bottom: 1px solid var(--line);
}

.report-header h2 {
  margin: .35rem 0 .15rem;
  font-size: 1.55rem;
}

.report-header p {
  margin: 0;
  font-size: .75rem;
}

.report-score-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding: .75rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--green-soft) 55%, var(--paper));
}

.report-competency-legend {
  display: grid;
  gap: .35rem;
}

.report-competency-legend > small {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 760;
}

.report-competency-legend > div {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
}

.competency-indicator {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: max-content;
  line-height: 1;
  vertical-align: middle;
}

.competency-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.competency-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--competency-color) 82%, #17362f);
  border-radius: 50%;
  background: var(--competency-color);
  box-shadow: inset 0 1px rgb(255 255 255 / 30%);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.competency-green {
  --competency-color: #218866;
}

.competency-orange {
  --competency-color: #df8b18;
}

.competency-red {
  --competency-color: #c94f3d;
}

.competency-label {
  color: var(--ink-2);
  font-size: .62rem;
  font-weight: 720;
  white-space: nowrap;
}

.competency-range {
  color: var(--muted);
  font-size: .56rem;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.competency-indicator-legend .competency-dot {
  width: 9px;
  height: 9px;
}

.competency-indicator-legend .competency-label {
  font-size: .6rem;
}

.report-final-score-average {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.report-final-score-average > span,
.report-final-score-average small {
  display: block;
}

.report-final-score-average small {
  color: var(--muted);
  font-size: .68rem;
}

.report-final-score-average strong {
  display: block;
  margin-top: .08rem;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.report-average-value {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .08rem;
}

.report-final-score-average .report-average-value strong {
  margin-top: 0;
}

.report-final-score-average strong em {
  margin-left: .2rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .7rem;
  font-style: normal;
}

.round-progression {
  padding: 1.15rem 1.2rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 96% 4%, rgb(233 196 106 / 18%), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--green-soft), #fff 60%), #fff);
}

.round-progression-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.round-progression-heading {
  margin-bottom: .85rem;
}

.round-progression-heading h3 {
  margin: .12rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.round-progression-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
}

.progression-target {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .35rem;
  padding: .48rem .65rem;
  border: 1px solid rgb(170 126 24 / 18%);
  border-radius: 99px;
  color: #715510;
  background: var(--gold-soft);
  font-size: .7rem;
}

.progression-target .icon {
  width: 15px;
  height: 15px;
}

.progression-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .65rem;
}

.progression-legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto auto;
  align-items: center;
  gap: .35rem;
  appearance: none;
  padding: .38rem .48rem;
  border: 1px solid color-mix(in srgb, var(--island), var(--line) 70%);
  border-radius: 9px;
  color: var(--ink);
  background: color-mix(in srgb, var(--island), #fff 94%);
  cursor: pointer;
  font-family: inherit;
  font-size: .68rem;
  text-align: left;
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.progression-legend-item.is-highlighted,
.progression-legend-item:focus-visible {
  border-color: var(--island);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--island), transparent 68%);
  outline: 0;
}

.progression-legend-item.is-muted {
  opacity: .34;
}

.progression-legend-item i,
.progression-legend-item img {
  width: 20px;
  height: 20px;
}

.progression-legend-item i {
  border: 4px solid color-mix(in srgb, var(--island), #fff 68%);
  border-radius: 50%;
  background: var(--island);
}

.progression-legend-item img {
  object-fit: contain;
}

.progression-legend-item strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progression-legend-item small {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 700;
}

.progression-legend-item b {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  background: color-mix(in srgb, var(--island), #fff 76%);
  font-size: .7rem;
}

.progression-comparison {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 4px 14px rgb(23 54 47 / 4%);
}

.progression-chart-scroll {
  max-width: 100%;
  overflow: hidden;
}

.progression-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.progression-grid-line {
  stroke: #e4e9e5;
  stroke-width: 1;
}

.progression-axis-label {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-anchor: middle;
}

.progression-target-line {
  stroke: #d2a52f;
  stroke-dasharray: 5 5;
  stroke-width: 1.5;
}

.progression-target-label {
  fill: #8a6818;
  font-size: 9px;
  font-weight: 800;
  text-anchor: middle;
}

.progression-session-line {
  stroke: #e7ebe7;
  stroke-dasharray: 2 5;
  stroke-width: 1;
}

.progression-path {
  fill: none;
  stroke: var(--island);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
  filter: drop-shadow(0 2px 2px rgb(23 54 47 / 12%));
}

.progression-path-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 18;
  pointer-events: stroke;
}

.progression-series {
  cursor: pointer;
  transition: opacity .18s ease;
}

.progression-series:focus {
  outline: none;
}

.progression-series.is-muted {
  opacity: .12;
}

.progression-series.is-highlighted .progression-path,
.progression-series:focus .progression-path {
  stroke-width: 5;
}

.progression-point circle {
  fill: var(--island);
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 3px 3px rgb(23 54 47 / 18%));
}

.progression-point-score {
  fill: #fff;
  font-size: 8px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgb(23 54 47 / 28%);
  stroke-width: 2px;
  text-anchor: middle;
}

.progression-session-title,
.progression-session-date {
  text-anchor: middle;
}

.progression-session-title {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 780;
}

.progression-session-date {
  fill: var(--muted);
  font-size: 9px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .22rem .48rem;
  border-radius: 99px;
  color: #50625a;
  background: #edf0ed;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pill.active {
  color: #7a5a12;
  background: var(--gold-soft);
}

.pill.archived {
  color: #46564f;
  background: #e4e9e6;
}

.pill.archived .icon {
  width: 13px;
  height: 13px;
}

.report-notice {
  display: flex;
  gap: .6rem;
  margin: 1rem;
  padding: .75rem;
  border-radius: 10px;
  color: #3e6274;
  background: var(--blue-soft);
}

.report-notice p {
  margin: 0;
  color: inherit;
  font-size: .74rem;
}

.island-report-list {
  display: grid;
  gap: 1rem;
  padding: 0 1rem;
}

.island-report-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--island);
  border-radius: 13px;
  background: #fff;
}

.island-report-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--island), #fff 93%);
}

.island-report-summary h3 {
  margin: 0;
  font-size: 1rem;
}

.island-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(94px, auto));
  gap: .45rem;
}

.island-report-metrics > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .15rem .55rem;
  padding: .4rem .55rem;
  border: 1px solid rgb(23 54 47 / 7%);
  border-radius: 8px;
  background: rgb(255 255 255 / 72%);
}

.island-report-metrics small {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 700;
  line-height: 1.15;
}

.island-report-metrics b:not(.result-badge) {
  font-size: .82rem;
}

.table-island {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-weight: 760;
}

.table-island i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--island);
}

.report-island-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.result-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 850;
}

.student-score-table-wrap {
  overflow: auto;
}

.student-score-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.student-score-table thead th {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--paper-soft);
  font-size: .61rem;
  font-weight: 790;
  letter-spacing: .045em;
  white-space: nowrap;
  text-transform: uppercase;
}

.student-score-table thead th:not(:first-child),
.student-score-table tbody td {
  text-align: right;
}

.student-score-table tbody th,
.student-score-table tbody td {
  padding: .65rem .75rem;
  border-bottom: 1px solid #e9ece8;
  vertical-align: middle;
}

.student-score-table tbody tr:last-child > * {
  border-bottom: 0;
}

.student-score-table tbody tr:hover {
  background: color-mix(in srgb, var(--island), #fff 97%);
}

.student-score-row > th {
  min-width: 150px;
  font-size: .78rem;
}

.student-report-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.student-score-row > th strong,
.student-score-row > th small,
.attendance-summary small,
.mark-breakdown {
  display: block;
}

.student-score-row > th small {
  margin-top: .1rem;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 600;
}

.student-score-row.not-evaluated {
  color: var(--muted);
  background: #f5f6f3;
}

.attendance-summary {
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
}

.attendance-summary small,
.mark-breakdown {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 560;
  white-space: nowrap;
}

.score-adjustment {
  display: inline-flex;
  min-width: 30px;
  justify-content: center;
  padding: .2rem .38rem;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 820;
}

.score-adjustment.positive {
  color: var(--green-dark);
  background: var(--green-soft);
}

.score-adjustment.negative {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.score-adjustment.neutral {
  color: var(--muted);
  background: #eef0ed;
}

.student-result-badge {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: auto;
  place-items: center;
  border: 1px solid #bad7cc;
  border-radius: 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: .86rem;
  font-weight: 850;
}

.not-evaluated .student-result-badge {
  border-color: var(--line);
  color: var(--muted);
  background: #eef0ed;
}

.score-history-button {
  min-height: 32px;
  padding: .35rem .55rem;
  font-size: .68rem;
  white-space: nowrap;
}

.report-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}

.report-footer strong,
.report-footer span {
  display: block;
}

.report-footer span {
  color: var(--muted);
  font-size: .7rem;
}

.empty-state {
  display: grid;
  min-height: 370px;
  place-items: center;
  align-content: center;
  gap: .7rem;
  padding: 2rem;
  text-align: center;
}

.empty-state > .icon {
  width: 38px;
  height: 38px;
  color: #8da098;
}

.empty-state h2,
.empty-state p {
  max-width: 430px;
  margin: 0;
}

/* Settings */

.settings-layout {
  display: grid;
  max-width: 1370px;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem;
}

.settings-navigation {
  position: sticky;
  top: 90px;
  display: grid;
  gap: .8rem;
  padding: .65rem;
  border: 1px solid rgb(23 54 47 / 9%);
  border-radius: var(--radius);
  background: rgb(255 254 250 / 78%);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.settings-nav-group {
  display: grid;
  gap: .25rem;
}

.settings-nav-group + .settings-nav-group {
  padding-top: .7rem;
  border-top: 1px solid var(--line);
}

.settings-nav-group-title {
  margin: 0 .55rem .2rem;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.settings-nav-button {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  padding: .65rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink-2);
  background: transparent;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.settings-nav-button > .icon {
  width: 19px;
  height: 19px;
  margin: auto;
  color: var(--muted);
}

.settings-nav-button > span {
  display: grid;
  min-width: 0;
  gap: .05rem;
}

.settings-nav-button strong,
.settings-nav-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-nav-button strong {
  font-size: .78rem;
}

.settings-nav-button small {
  color: var(--muted);
  font-size: .66rem;
}

.settings-nav-button:hover {
  border-color: var(--line);
  background: var(--paper-soft);
}

.settings-nav-button.active {
  border-color: #b8d4ca;
  color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: inset 3px 0 var(--green);
}

.settings-nav-button.active > .icon {
  color: var(--green);
}

.settings-content {
  min-width: 0;
  scroll-margin-top: 90px;
}

.settings-data-stack {
  display: grid;
  gap: 1rem;
}

.settings-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: .25rem;
  margin-top: .2rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.settings-tabs button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem .75rem;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: .75rem;
  font-weight: 760;
}

.settings-tabs button.active {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 1px 5px rgb(23 54 47 / 10%);
}

.settings-tabs button > span {
  display: inline-grid;
  min-width: 1.4rem;
  min-height: 1.4rem;
  place-items: center;
  padding: .1rem .35rem;
  border-radius: 999px;
  color: var(--muted);
  background: var(--line);
  font-size: .62rem;
}

.settings-tabs button.active > span {
  color: var(--green-dark);
  background: var(--green-soft);
}

.projection-surprise-settings-panel {
  display: grid;
  gap: 1rem;
}

.projection-surprise-options {
  display: grid;
  gap: 1rem;
}

.projection-surprise-options[hidden] {
  display: none;
}

.projection-surprise-settings-panel > p,
.projection-surprise-settings-panel h3,
.projection-surprise-settings-panel small {
  margin: 0;
}

.projection-surprise-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid #cfe0d8;
  border-radius: 12px;
  background: #f2f8f5;
}

.projection-surprise-toggle input,
.projection-surprise-image-card > input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.projection-surprise-toggle span,
.projection-surprise-image-card span {
  display: grid;
  min-width: 0;
  gap: .12rem;
}

.projection-surprise-toggle small,
.projection-surprise-image-card small,
.projection-surprise-images-heading small,
.projection-surprise-upload small,
.projection-surprise-note {
  color: var(--muted);
  font-size: .75rem;
  font-style: normal;
}

.projection-surprise-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.projection-surprise-number-grid > label {
  display: grid;
  gap: .4rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-soft);
  font-size: .78rem;
  font-weight: 760;
}

.projection-surprise-number-input {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 620;
}

.projection-surprise-number-input input {
  width: 72px;
  min-width: 0;
  padding: .55rem .45rem;
  text-align: center;
}

.projection-surprise-number-input em {
  font-style: normal;
}

.projection-surprise-images-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .2rem;
}

.projection-surprise-images-heading h3 {
  font-size: .95rem;
}

.projection-surprise-images-heading > div {
  display: grid;
  gap: .15rem;
}

.projection-surprise-images-heading > span {
  padding: .25rem .55rem;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: .69rem;
  font-weight: 780;
  white-space: nowrap;
}

.projection-surprise-images-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.projection-surprise-image-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-soft);
}

.projection-surprise-image-card.default-image {
  grid-template-columns: auto 58px minmax(0, 1fr);
}

.projection-surprise-image-card img {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  background:
    linear-gradient(45deg, #edf0ed 25%, transparent 25%, transparent 75%, #edf0ed 75%),
    linear-gradient(45deg, #edf0ed 25%, #fff 25%, #fff 75%, #edf0ed 75%);
  background-position: 0 0, 7px 7px;
  background-size: 14px 14px;
  object-fit: contain;
}

.projection-surprise-image-card strong {
  overflow: hidden;
  font-size: .79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projection-surprise-image-card .icon-button {
  width: 34px;
  height: 34px;
}

.projection-surprise-upload {
  display: grid;
  gap: .28rem;
  padding: .75rem;
  border: 1px dashed #aebfb6;
  border-radius: 11px;
  background: #fbfcf9;
}

.projection-surprise-upload > span {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--green-dark);
  font-size: .8rem;
  font-weight: 780;
}

.projection-surprise-upload input {
  width: 100%;
  margin-top: .25rem;
  font-size: .76rem;
}

.projection-surprise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.charter-settings-panel > p {
  color: var(--muted);
  font-size: .8rem;
}

.charter-settings-list {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.charter-list-heading {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.charter-list-heading {
  justify-content: space-between;
}

.charter-list-heading h3 {
  margin: 0;
  font-size: .95rem;
}

.charter-reason-row {
  display: grid;
  gap: .4rem;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  box-shadow: inset 4px 0 var(--reason-color);
}

.charter-reason-fields {
  display: grid;
  grid-template-columns: 42px 46px minmax(0, 1fr);
  gap: .4rem;
}

.charter-reason-fields input {
  min-width: 0;
  padding: .56rem .65rem;
  font-size: .77rem;
}

.charter-reason-fields .charter-emoji-input {
  width: 46px;
  padding-inline: .25rem;
  background: #fff;
  font-size: 1.1rem;
  text-align: center;
}

.charter-emoji-controls {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-end;
}

.charter-emoji-controls label {
  min-width: 0;
}

.emoji-picker {
  position: relative;
  width: 0;
  flex: 0 0 0;
}

.emoji-picker.open {
  z-index: 20;
}

.emoji-picker-popover {
  position: fixed;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  width: min(420px, calc(100vw - 1.5rem));
  max-height: min(560px, calc(100vh - 1.5rem));
  gap: .55rem;
  padding: .75rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgb(23 54 47 / 18%);
}

.emoji-picker-popover[hidden],
.emoji-picker-item[hidden] {
  display: none;
}

.emoji-picker-heading,
.emoji-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.emoji-picker-heading > strong {
  font-size: .78rem;
}

.emoji-picker-heading > button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 1.2rem;
}

.emoji-picker-heading > button:hover {
  background: var(--paper-soft);
}

.emoji-picker-search input {
  width: 100%;
  min-height: 39px;
  padding: .55rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-size: .78rem;
}

.emoji-picker-themes {
  display: flex;
  gap: .35rem;
  padding-bottom: .15rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.emoji-picker-themes button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: .35rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: .68rem;
  font-weight: 750;
  white-space: nowrap;
}

.emoji-picker-themes button[aria-pressed="true"] {
  border-color: #8eb8aa;
  color: var(--green-dark);
  background: var(--green-soft);
}

.emoji-picker-results {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-block: 1px solid var(--line);
  padding-block: .55rem;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .3rem;
}

.emoji-picker-item {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  font-size: 1.2rem;
}

.emoji-picker-item:hover,
.emoji-picker-item[aria-pressed="true"] {
  border-color: #8eb8aa;
  background: var(--green-soft);
}

.emoji-picker-empty {
  margin: 2rem auto;
  font-size: .75rem;
  text-align: center;
}

.emoji-picker-clear {
  min-height: 34px;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: .74rem;
  font-weight: 750;
}

.emoji-picker-footer > small,
.emoji-picker-popover > small {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
}

.charter-reason-fields .charter-color-input,
.charter-create-color {
  width: 100%;
  min-height: 38px;
  padding: .2rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.charter-color-input::-webkit-color-swatch,
.charter-create-color::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.charter-reason-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
}

.charter-button-switch {
  min-width: 0;
  margin-right: auto;
}

.charter-button-switch em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charter-reason-row .icon-button {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.charter-reason-create-fields {
  display: grid;
  grid-template-columns: 72px 90px minmax(0, 1fr);
  gap: .7rem;
}

.charter-create-emoji {
  width: 88px;
  font-size: 1.15rem;
  text-align: center;
}

.charter-create-emoji-field > span {
  display: block;
  margin-bottom: .35rem;
  font-size: .78rem;
  font-weight: 720;
}

.charter-add-button-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper-soft);
}

.charter-add-button-choice input {
  margin-top: .2rem;
}

.charter-add-button-choice span {
  display: grid;
  gap: .15rem;
}

.charter-add-button-choice small {
  color: var(--muted);
  line-height: 1.35;
}

.competency-settings-panel,
.data-panel {
  display: grid;
  gap: .85rem;
}

.settings-content > .panel > .panel-heading {
  justify-content: space-between;
}

.competency-settings-panel .panel-heading {
  justify-content: space-between;
}

.competency-settings-panel .panel-heading > .icon {
  width: 27px;
  height: 27px;
  color: var(--green);
}

.competency-settings-panel > p {
  color: var(--muted);
  font-size: .8rem;
}

.competency-threshold-fields {
  display: grid;
  gap: .55rem;
}

.competency-threshold-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.competency-threshold-level {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.competency-threshold-label-input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: .35rem .55rem;
  color: var(--ink-2);
  font-size: .75rem;
  font-weight: 700;
}

.competency-threshold-input {
  display: grid;
  grid-template-columns: auto 64px auto;
  align-items: center;
  gap: .4rem;
}

.competency-threshold-input small,
.competency-threshold-input em {
  color: var(--muted);
  font-size: .65rem;
  font-style: normal;
  font-weight: 650;
}

.competency-threshold-input input {
  min-height: 38px;
  padding: .35rem .45rem;
  text-align: center;
}

.competency-threshold-field-readonly {
  background: color-mix(in srgb, var(--paper-soft) 72%, var(--line));
}

.competency-threshold-field-readonly .competency-threshold-input input {
  color: var(--muted);
  background: var(--paper-soft);
  cursor: default;
}

.competency-threshold-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  padding: .7rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.competency-settings-panel .competency-settings-note {
  margin: 0;
  padding: .65rem .7rem;
  border-radius: 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: .7rem;
}

.competency-settings-panel > .button {
  justify-self: start;
}

.data-panel .panel-heading {
  justify-content: space-between;
}

.data-panel .panel-heading > .icon {
  width: 27px;
  height: 27px;
  color: var(--green);
}

.data-panel > p {
  margin: 0;
  font-size: .8rem;
}

.local-data-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  padding: .8rem;
  border: 1px solid #c8dfd6;
  border-radius: 12px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.local-data-status > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--green);
}

.local-data-status > span .icon {
  width: 19px;
  height: 19px;
}

.local-data-status > div {
  display: grid;
  gap: .05rem;
}

.local-data-status small {
  color: var(--muted);
  font-size: .72rem;
}

.data-actions {
  display: grid;
  gap: .55rem;
}

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

.cloud-panel {
  display: grid;
  gap: .9rem;
  border-color: #cbdcd5;
  background:
    linear-gradient(145deg, rgb(229 242 237 / 54%), transparent 46%),
    var(--paper);
}

.cloud-panel[aria-busy="true"] {
  cursor: progress;
}

.cloud-panel .panel-heading {
  justify-content: space-between;
}

.cloud-panel .panel-heading > .icon {
  width: 29px;
  height: 29px;
  color: var(--green);
}

.cloud-panel > p {
  margin-bottom: 0;
  font-size: .81rem;
}

.cloud-panel > .subtle {
  padding-top: .72rem;
  border-top: 1px solid rgb(201 210 203 / 65%);
}

.cloud-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cloud-step;
}

.cloud-steps li {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: .5rem;
  padding: .68rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  background: rgb(255 255 255 / 76%);
  font-size: .75rem;
  line-height: 1.42;
  counter-increment: cloud-step;
}

.cloud-steps li::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  content: counter(cloud-step);
  font-size: .72rem;
  font-weight: 820;
}

.cloud-steps code {
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font: 700 .72rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.cloud-help {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .38rem;
  padding: .18rem .1rem;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 720;
  text-underline-offset: .2em;
}

.cloud-help:hover {
  color: var(--green);
  text-decoration-thickness: 2px;
}

.cloud-help .icon {
  width: 14px;
  height: 14px;
}

.sync-status-card {
  --sync-color: var(--green-dark);
  --sync-bg: var(--green-soft);
  --sync-border: #b7d9cc;
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: .72rem;
  padding: .78rem;
  border: 1px solid var(--sync-border);
  border-radius: 12px;
  color: var(--sync-color);
  background: var(--sync-bg);
}

.sync-status-card.ok {
  --sync-color: var(--green-dark);
  --sync-bg: var(--green-soft);
  --sync-border: #b7d9cc;
}

.sync-status-card.error {
  --sync-color: var(--coral-dark);
  --sync-bg: #fcece7;
  --sync-border: #e5b3a6;
}

.sync-status-card.conflict {
  --sync-color: #74291d;
  --sync-bg: #fbe5df;
  --sync-border: #d9917f;
}

.sync-status-card.permission {
  --sync-color: #704b08;
  --sync-bg: #fff2cc;
  --sync-border: #e3c16b;
}

.sync-status-card.paused {
  --sync-color: #66500a;
  --sync-bg: var(--gold-soft);
  --sync-border: #e5ca7e;
}

.sync-status-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--sync-color) 26%, transparent);
  border-radius: 11px;
  color: #fff;
  background: var(--sync-color);
  box-shadow: 0 5px 13px color-mix(in srgb, var(--sync-color) 17%, transparent);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.sync-status-card > div {
  display: grid;
  min-width: 0;
  gap: .16rem;
}

.sync-status-card strong,
.sync-status-card small {
  overflow-wrap: anywhere;
}

.sync-status-card strong {
  color: inherit;
  font-size: .82rem;
}

.sync-status-card small {
  color: color-mix(in srgb, var(--sync-color) 82%, #30423c);
  font-size: .7rem;
  line-height: 1.35;
}

.sync-notice {
  display: grid;
  gap: .4rem;
  padding: .72rem .78rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-2);
  background: var(--paper-soft);
  font-size: .76rem;
  font-weight: 560;
  line-height: 1.45;
}

.sync-notice.warning {
  border-color: #e3c16b;
  color: #674b12;
  background: var(--gold-soft);
}

.sync-notice.danger {
  border-color: #dfa28f;
  color: #762d20;
  background: var(--coral-soft);
}

.sync-notice .link-button {
  width: fit-content;
  margin: .05rem 0 0 -.25rem;
  color: inherit;
  text-align: left;
}

.sync-device-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .65rem;
  padding: .72rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(255 255 255 / 68%);
}

.sync-device-form .button {
  min-height: 44px;
}

/* Dialogs */

.app-dialog {
  width: min(calc(100% - 2rem), 610px);
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgb(9 30 24 / 32%);
}

.app-dialog.app-dialog-wide {
  width: min(calc(100% - 2rem), 980px);
}

.app-dialog.app-dialog-charter {
  width: min(calc(100% - 2rem), 720px);
}

.app-dialog::backdrop {
  background: rgb(9 30 24 / 57%);
  backdrop-filter: blur(4px);
}

.app-dialog .create-class-form {
  width: 100%;
  border: 0;
  box-shadow: none;
}

.dialog-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 4vw, 2rem);
}

.dialog-form h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
}

.dialog-form > p:not(.eyebrow):not(.dialog-warning) {
  margin-bottom: 0;
}

[data-custom-reason][hidden] {
  display: none;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: .8rem;
  right: .8rem;
  border-color: transparent;
  font-size: 1.35rem;
}

.dialog-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 1.45rem;
  font-weight: 850;
}

.dialog-danger .dialog-icon {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.dialog-warning {
  margin: 0;
  padding: .75rem;
  border-radius: 9px;
  color: #7f3d2d;
  background: var(--coral-soft);
  font-size: .76rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: .25rem;
}

.class-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
  padding: .85rem 0 0;
  border-top: 1px solid var(--line);
}

.class-danger-zone > div {
  display: grid;
  gap: .08rem;
}

.class-danger-zone strong {
  color: var(--coral-dark);
  font-size: .78rem;
}

.class-danger-zone small {
  color: var(--muted);
  font-size: .68rem;
}

.points-dialog {
  gap: 1.3rem;
}

.points-dialog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 2.2rem;
}

.points-dialog-header h2,
.points-dialog-header p {
  margin-bottom: 0;
}

.points-dialog-filters {
  display: grid;
  width: min(610px, 64%);
  flex: 0 0 auto;
  grid-template-columns: minmax(210px, 1.2fr) minmax(180px, 1fr);
  gap: .65rem;
}

.points-dialog-filters .points-target-picker,
.points-dialog-filters .points-session-picker {
  width: auto;
}

.points-target-picker {
  width: min(360px, 48%);
  flex: 0 0 auto;
}

.points-summary {
  display: grid;
  grid-template-columns: repeat(var(--points-summary-count, 3), minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.points-summary > span {
  display: grid;
  gap: .18rem;
  min-width: 0;
  padding: .75rem .7rem;
  border-right: 1px solid var(--line);
}

.points-summary > span:last-child {
  border-right: 0;
}

.points-summary small {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 680;
  line-height: 1.2;
}

.points-summary b {
  font-size: 1.15rem;
}

.points-summary-result b {
  color: var(--ink);
}

.points-final-score {
  background: color-mix(in srgb, var(--green-soft), #fff 35%);
}

.points-final-score b {
  color: var(--green-dark);
  font-size: 1.35rem;
}

.points-scope {
  display: grid;
  gap: .75rem;
}

.points-scope + .points-scope {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.points-scope-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.points-scope-heading h3,
.points-scope-heading p {
  margin-bottom: 0;
}

.points-scope-heading > span {
  color: var(--muted);
  font-size: .68rem;
}

.points-session-picker {
  width: min(280px, 46%);
  flex: 0 0 auto;
}

.points-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  align-items: start;
}

.point-category {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.point-category > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--line);
}

.point-category.positive > header {
  background: var(--green-soft);
}

.point-category.negative > header {
  background: var(--coral-soft);
}

.point-category h4 {
  margin: 0;
  font-size: .82rem;
}

.point-category > header > b {
  font-size: .9rem;
}

.point-category.positive > header > b {
  color: var(--green-dark);
}

.point-category.negative > header > b {
  color: var(--coral-dark);
}

.point-reason-card + .point-reason-card {
  border-top: 1px solid var(--line);
}

.point-reason-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .8rem .45rem;
  background: color-mix(in srgb, var(--reason-color) 12%, #fff);
  box-shadow: inset 4px 0 var(--reason-color);
}

.point-reason-heading strong {
  min-width: 0;
  font-size: .78rem;
}

.point-reason-heading span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .62rem;
}

.point-event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .5rem .65rem;
  border-top: 1px solid #eef0ec;
  background: var(--paper-soft);
}

.point-event-row.ignored {
  color: var(--muted);
  background: #f1f3ef;
}

.point-event-row.ignored .point-event-value {
  color: var(--muted);
  background: #e1e5df;
  text-decoration: line-through;
}

.point-event-value {
  display: grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  font-size: .7rem;
}

.point-event-row.positive .point-event-value {
  color: var(--green-dark);
  background: var(--green-soft);
}

.point-event-row.negative .point-event-value {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.point-event-context {
  display: grid;
  min-width: 0;
  gap: .08rem;
}

.point-event-context span {
  overflow: hidden;
  color: var(--ink);
  font-size: .66rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-event-context small {
  color: var(--muted);
  font-size: .59rem;
}

.point-event-actions {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.point-edit-button {
  min-height: 32px;
  padding: .35rem .5rem;
  font-size: .64rem;
}

.point-edit-button .icon {
  width: 14px;
  height: 14px;
}

.point-delete-button {
  width: 32px;
  height: 32px;
  border-color: transparent;
  color: var(--coral-dark);
  background: transparent;
}

.point-delete-button:hover {
  border-color: #efb8aa;
  background: var(--coral-soft);
}

.empty-points {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: var(--muted);
}

.empty-points > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #edf0ed;
  font-weight: 800;
}

.empty-points p {
  margin: 0;
  font-size: .72rem;
}

.points-student-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.points-student-row {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.points-student-row:hover {
  border-color: #a9c6ba;
  background: var(--paper-soft);
}

.points-student-row > span:first-child {
  display: grid;
  min-width: 0;
  gap: .08rem;
}

.points-student-row strong {
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-student-row small {
  color: var(--muted);
  font-size: .6rem;
}

.points-student-totals {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
}

.points-student-totals b {
  font-size: .73rem;
}

.migration-text {
  color: #486b7c;
}

.points-student-totals .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.migration-point-list {
  display: grid;
  gap: .5rem;
}

.migration-point-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  min-height: 64px;
  padding: .7rem .8rem;
  border: 1px solid #cddce5;
  border-radius: 10px;
  background: var(--blue-soft);
}

.migration-point-row.positive .point-event-value {
  color: var(--green-dark);
  background: var(--green-soft);
}

.migration-point-row.negative .point-event-value {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.migration-point-row.neutral .point-event-value {
  color: #486b7c;
  background: #e4edf2;
}

.migration-point-row > div {
  display: grid;
  min-width: 0;
  gap: .08rem;
}

.migration-point-row strong {
  overflow: hidden;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.migration-point-row span:not(.read-only-badge),
.migration-point-row small {
  color: var(--muted);
  font-size: .61rem;
}

.read-only-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .45rem;
  border-radius: 99px;
  color: #486b7c;
  background: rgb(255 255 255 / 72%);
  font-size: .59rem;
  font-weight: 750;
  white-space: nowrap;
}

.read-only-badge .icon {
  width: 12px;
  height: 12px;
}

.migration-empty {
  min-height: 72px;
  border: 1px dashed #cddce5;
  border-radius: 10px;
  background: var(--blue-soft);
}

.edit-score-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.edit-score-context > span {
  display: grid;
  gap: .2rem;
  padding: .75rem;
}

.edit-score-context > span + span {
  border-left: 1px solid var(--line);
}

.edit-score-context small {
  color: var(--muted);
  font-size: .62rem;
}

.edit-score-context strong {
  font-size: .78rem;
}

.edit-score-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .3rem;
}

.edit-score-footer > .danger-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.edit-score-footer > .danger-link .icon {
  width: 15px;
  height: 15px;
}

.move-student-dialog {
  width: min(560px, 92vw);
}

.migration-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
}

.migration-preview > div {
  display: grid;
  gap: .15rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.migration-preview span {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 700;
}

.migration-preview strong {
  font-size: 1rem;
}

.migration-arrow {
  font-size: 1.1rem !important;
}

.migration-preview .migration-compensation {
  grid-column: 1 / -1;
  border-color: #cddce5;
  background: var(--blue-soft);
}

.migration-preview.positive .migration-compensation strong {
  color: var(--green-dark);
}

.migration-preview.negative .migration-compensation strong {
  color: var(--coral-dark);
}

.migration-explanation {
  margin: -.45rem 0 0;
  color: var(--muted);
  font-size: .72rem;
}

.charter-dialog-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.charter-dialog-columns section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.charter-dialog-columns h3 {
  margin: 0 0 .65rem;
}

.charter-dialog-columns section > p:not(.empty-inline) {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-bottom: .5rem;
  padding: .45rem .55rem;
  border: 1px solid color-mix(in srgb, var(--reason-color) 35%, var(--line));
  border-radius: 8px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--reason-color) 13%, #fff);
  box-shadow: inset 4px 0 var(--reason-color);
  font-size: .82rem;
}

.charter-dialog-columns ol {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: .82rem;
}

.charter-reason-emoji {
  display: inline-block;
  min-width: 1.65rem;
  margin-right: .2rem;
  font-size: 1rem;
  text-align: center;
}

.reason-emoji {
  display: inline-block;
  margin-right: .35rem;
  font-size: 1em;
  font-style: normal;
}

.student-score-history-dialog {
  gap: .85rem;
}

.student-score-history-dialog > div:first-of-type p:last-child {
  margin: .35rem 0 0;
  font-size: .78rem;
}

.student-score-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.score-breakdown-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: .45rem;
}

.score-breakdown-summary > span {
  display: grid;
  align-content: center;
  gap: .2rem;
  min-height: 70px;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.score-breakdown-summary small {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.2;
}

.score-breakdown-summary b {
  font-size: .9rem;
}

.score-breakdown-summary .score-breakdown-result {
  border-color: #aed0c2;
  background: var(--green-soft);
}

.score-breakdown-result b {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.score-breakdown-result-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.competency-indicator-detail {
  gap: .38rem;
}

.competency-indicator-detail .competency-dot {
  width: 13px;
  height: 13px;
}

.competency-indicator-detail .competency-label {
  font-size: .68rem;
}

.score-bounds-note {
  margin: -.35rem 0 0;
  color: var(--muted);
  font-size: .64rem;
}

.attendance-freeze-note {
  margin: 0;
  padding: .55rem .7rem;
  border: 1px solid #ead5a1;
  border-radius: 9px;
  color: #6e4e0d;
  background: var(--gold-soft);
  font-size: .68rem;
  font-weight: 680;
}

.attendance-freeze-note-actionable {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.attendance-freeze-note-actionable > span {
  flex: 1 1 auto;
}

.attendance-freeze-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: .3rem .45rem;
  border: 0;
  color: #6e4e0d;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}

.attendance-freeze-action:hover,
.attendance-freeze-action:focus-visible {
  border-radius: 7px;
  background: rgb(110 78 13 / 10%);
}

.score-reasons-summary,
.score-history-section {
  display: grid;
  gap: .5rem;
}

.score-reasons-summary h3,
.score-history-section h3 {
  margin: 0;
  font-size: .82rem;
}

.score-reasons-summary > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .75rem;
}

.score-reasons-summary > header p {
  margin: 0;
  color: var(--muted);
  font-size: .64rem;
}

.score-reason-summary-groups {
  display: grid;
  gap: .75rem;
}

.score-reason-summary-group {
  --summary-scope-color: var(--green);
  display: grid;
  gap: .5rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--summary-scope-color);
  border-radius: 12px;
  background: var(--paper-soft);
}

.score-reason-summary-group[data-summary-scope="collective"] {
  --summary-scope-color: #356b8c;
}

.score-reason-summary-group[data-summary-scope="migration"] {
  --summary-scope-color: #9a6b13;
}

.score-reason-summary-group > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .2rem .75rem;
}

.score-reason-summary-group h4,
.score-reason-summary-group > header p {
  margin: 0;
}

.score-reason-summary-group h4 {
  color: var(--summary-scope-color);
  font-size: .76rem;
}

.score-reason-summary-group > header p {
  font-size: .58rem;
}

.score-reason-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}

.score-reason-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-width: 0;
  padding: .65rem .7rem;
  border: 1px solid color-mix(in srgb, var(--reason-color) 32%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--reason-color) 11%, #fff);
  box-shadow: inset 4px 0 var(--reason-color);
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease, color .16s ease, filter .16s ease, opacity .16s ease;
}

.score-reason-summary-item:hover {
  border-color: color-mix(in srgb, var(--reason-color) 62%, var(--line));
  transform: translateY(-1px);
}

.score-reason-summary-item[aria-pressed="true"] {
  border-color: var(--reason-color);
  box-shadow: inset 4px 0 var(--reason-color), 0 0 0 2px color-mix(in srgb, var(--reason-color) 24%, transparent);
}

.score-reason-summary-list.has-active-filter .score-reason-summary-item[aria-pressed="false"] {
  color: #66736e;
  border-color: #d7dcda;
  background: #eef0ee;
  box-shadow: inset 4px 0 #b8c0bc;
  filter: grayscale(1);
  opacity: .48;
}

.score-reason-summary-list.has-active-filter .score-reason-summary-item[aria-pressed="false"]:hover {
  opacity: .72;
}

.score-reason-summary-item > div {
  min-width: 0;
}

.score-reason-summary-item strong,
.score-reason-summary-item small {
  display: block;
}

.score-reason-summary-item strong {
  overflow: hidden;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-reason-summary-item small {
  margin-top: .12rem;
  color: var(--muted);
  font-size: .58rem;
}

.score-reason-summary-item b {
  flex: 0 0 auto;
  color: var(--coral-dark);
  font-size: .88rem;
}

.score-reason-summary-item.positive b {
  color: var(--green-dark);
}

.score-history-list {
  display: grid;
  max-height: min(430px, 55vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.score-history-list.show-ignored-only .score-history-event:not(.ignored) {
  display: none;
}

.score-history-event.filtered-by-reason {
  display: none;
}

.score-history-filter-status {
  margin: 0;
  padding: .4rem .55rem;
  border: 1px solid #c8d9e4;
  border-radius: 8px;
  color: #28536c;
  background: var(--blue-soft);
  font-size: .62rem;
  font-weight: 750;
}

.score-history-filter-status[hidden] {
  display: none;
}

.filtered-score-history-empty[hidden] {
  display: none;
}

.score-history-event {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .75rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--reason-color) 10%, #fff);
  box-shadow: inset 4px 0 var(--reason-color);
}

.score-history-event:last-child {
  border: 0;
}

.score-history-event.reversed {
  color: var(--muted);
  background: color-mix(in srgb, var(--reason-color) 5%, #f4f5f2);
}

.score-history-event.ignored {
  color: var(--muted);
  background: color-mix(in srgb, var(--reason-color) 5%, #f4f5f2);
}

.score-history-event.ignored .score-history-value {
  color: var(--muted);
  background: #e3e6e2;
  text-decoration: line-through;
}

.score-history-event.reversed strong {
  text-decoration: line-through;
}

.score-history-value {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-size: .74rem;
  font-weight: 850;
}

.score-history-event.positive .score-history-value {
  color: var(--green-dark);
  background: var(--green-soft);
}

.score-history-event.neutral .score-history-value {
  color: #486b7c;
  background: var(--blue-soft);
}

.score-history-event.reversed .score-history-value {
  color: var(--muted);
  background: #e3e6e2;
  text-decoration: line-through;
}

.score-history-event strong {
  display: block;
  font-size: .8rem;
}

.score-history-event p {
  margin: .12rem 0 0;
  font-size: .65rem;
}

.score-history-event small {
  display: inline-flex;
  margin-top: .25rem;
  padding: .1rem .35rem;
  border-radius: 99px;
  color: var(--muted);
  background: #e3e6e2;
  font-size: .58rem;
  font-weight: 750;
}

.score-history-event time {
  align-self: start;
  color: var(--muted);
  font-size: .62rem;
  white-space: nowrap;
}

.empty-score-history {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: .45rem;
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
}

.empty-score-history .icon {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.empty-score-history p,
.history-explanation {
  margin: 0;
  font-size: .7rem;
}

.history-explanation {
  padding: .7rem;
  border-radius: 9px;
  color: var(--muted);
  background: var(--paper-soft);
}

.close-round-dialog {
  width: 100%;
}

/* Récompenses globales */
.reward-settings-panel,
.charter-settings-panel {
  display: grid;
  gap: .9rem;
}

.reward-settings-panel > p,
.charter-settings-panel > p {
  margin: 0;
}

.reward-settings-panel > .panel-heading > .icon {
  width: 28px;
  height: 28px;
  color: #98751f;
}

.reward-panel-heading > .button {
  margin-left: auto;
}

[data-reward-malus-reason][hidden],
[data-reward-bonus-reason][hidden],
[data-reward-threshold][hidden],
[data-reward-group-note][hidden] {
  display: none !important;
}

.reward-settings-section {
  margin-top: .25rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.reward-settings-title,
.close-rewards-heading,
.round-rewards-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.reward-settings-title h3,
.close-rewards-heading h3,
.round-rewards-heading h3 {
  margin: 0;
}

.reward-settings-title small,
.reward-rule-copy small {
  color: var(--muted);
}

.reward-rule-preview {
  background: var(--green-soft);
  border-radius: 8px;
  color: var(--green-dark);
  display: block;
  font-size: .78rem;
  margin-top: .45rem;
  padding: .35rem .5rem;
}

.reward-catalog-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}

.reward-catalog-card,
.reward-rule-row,
.reward-grant-card {
  align-items: center;
  background: color-mix(in srgb, var(--gold-soft) 48%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--line));
  border-radius: 16px;
  display: flex;
  gap: .8rem;
  padding: .85rem;
}

.reward-catalog-card > div:nth-child(2),
.reward-rule-copy,
.reward-grant-card > div {
  flex: 1;
  min-width: 0;
}

.reward-catalog-card p,
.reward-rule-row p,
.reward-grant-card p,
.reward-grant-card em {
  color: var(--muted);
  display: block;
  font-size: .84rem;
  font-style: normal;
  margin: .18rem 0 0;
}

.reward-medal {
  align-items: center;
  background: var(--gold-soft);
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 2.9rem;
  font-size: 1.55rem;
  height: 2.9rem;
  justify-content: center;
  width: 2.9rem;
}

.reward-card-actions {
  display: flex;
  gap: .3rem;
}

.reward-rule-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.reward-rule-row.paused {
  opacity: .72;
}

.reward-calculation-note,
.reward-review-note {
  background: var(--paper-soft);
  border-radius: 12px;
  color: var(--muted);
  font-size: .86rem;
  margin: 1rem 0 0;
  padding: .75rem .9rem;
}

.reward-empty {
  align-items: center;
  background: var(--paper-soft);
  border: 1px dashed var(--line);
  border-radius: 14px;
  display: flex;
  gap: .9rem;
  margin-top: 1rem;
  padding: 1rem;
}

.reward-empty > span {
  font-size: 1.7rem;
}

.reward-empty p {
  color: var(--muted);
  margin: .2rem 0 0;
}

.close-rewards-section {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.reward-proposal-list {
  display: grid;
  gap: .65rem;
  margin-top: .85rem;
}

.reward-proposal {
  align-items: center;
  background: color-mix(in srgb, var(--gold-soft) 48%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--line));
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: .7rem;
  grid-template-columns: auto auto 1fr;
  padding: .75rem;
}

.reward-proposal > input {
  height: 1.15rem;
  width: 1.15rem;
}

.reward-proposal small,
.reward-proposal em {
  color: var(--muted);
  display: block;
  font-size: .8rem;
  font-style: normal;
  margin-top: .12rem;
}

.close-manual-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
}

.close-manual-rewards > strong {
  flex-basis: 100%;
  font-size: .84rem;
}

.close-manual-rewards > span {
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: 999px;
  font-size: .78rem;
  padding: .3rem .55rem;
}

.close-manual-rewards i {
  font-style: normal;
  margin-right: .3rem;
}

.round-rewards {
  background: linear-gradient(135deg, color-mix(in srgb, #e9a23b 8%, var(--paper)), var(--paper));
  border: 1px solid color-mix(in srgb, #e9a23b 25%, var(--line));
  border-radius: 20px;
  margin: 1.25rem 0;
  padding: 1.1rem;
}

.round-rewards-heading p {
  color: var(--muted);
  margin: .2rem 0 0;
}

.round-reward-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}

.reward-grant-card {
  align-items: flex-start;
}

.reward-grant-card strong,
.reward-grant-card b,
.reward-grant-card small {
  display: block;
}

.reward-grant-card b {
  color: var(--ink);
  font-size: .9rem;
  margin-top: .15rem;
}

.recipient-reward-badges {
  display: inline-flex;
  gap: .22rem;
  margin-left: .3rem;
}

.reward-student-button,
.reward-link {
  color: #8a6410;
}

.reward-history-list {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  min-width: 0;
  margin-left: .1rem;
}

.reward-history-item {
  position: relative;
  display: inline-grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  place-items: center;
  cursor: help;
  transition: background .16s ease, transform .16s ease;
}

button.reward-history-item {
  cursor: pointer;
}

button.reward-history-item:hover {
  background: var(--gold-soft);
  transform: translateY(-1px) scale(1.06);
}

button.reward-history-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.reward-history-item.previous {
  filter: grayscale(.7);
  opacity: .48;
}

.reward-history-emoji {
  font-size: 1.08rem;
  line-height: 1;
}

.reward-automatic-dot {
  position: absolute;
  bottom: -.27rem;
  left: 50%;
  width: .3rem;
  height: .3rem;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #477993;
  transform: translateX(-50%);
}

.points-reward-scope .recipient-reward-badges {
  margin: .65rem 0 0;
}

.student-reward-print-summary {
  display: grid;
  gap: .45rem;
  break-inside: avoid;
}

.student-reward-print-summary h3 {
  margin: 0;
  font-size: .82rem;
}

.student-reward-print-summary > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.student-reward-print-summary > div > strong {
  font-size: .7rem;
}

.student-reward-print-summary > div > span {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.reward-print-item {
  display: inline-flex;
  align-items: center;
  min-width: 9rem;
  gap: .4rem;
  padding: .38rem .48rem;
  border: 1px solid #d7dedb;
  border-radius: 7px;
  background: #fff;
  font-size: .68rem;
  break-inside: avoid;
}

.reward-print-item > i {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f5f7f6;
  font-size: .95rem;
  font-style: normal;
  place-items: center;
}

.reward-print-item strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .65rem;
  line-height: 1.15;
}

.reward-print-item small {
  display: block;
  color: var(--muted);
  font-size: .5rem;
}

.reward-print-empty {
  color: var(--muted);
  font-size: .68rem;
}

@media (max-width: 760px) {
  .reward-settings-title,
  .close-rewards-heading,
  .round-rewards-heading,
  .reward-rule-row {
    align-items: stretch;
    flex-direction: column;
  }

  .reward-rule-row {
    position: relative;
  }

}

@media print {
  .round-rewards {
    break-inside: avoid;
  }
}

.close-score-list {
  display: grid;
  max-height: 310px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.close-score-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto 34px;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
}

.close-score-list > div:last-child {
  border: 0;
}

.close-score-list > div > span:nth-of-type(n + 2) {
  color: var(--muted);
}

.close-score-list > div > b:last-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.confirm-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  font-size: .76rem;
  font-weight: 560;
}

.confirm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.sync-conflict-dialog .dialog-icon {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.version-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.version-compare > div {
  display: grid;
  min-width: 0;
  gap: .28rem;
  padding: .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper-soft);
}

.version-compare > div:first-child {
  border-color: #b9d8cc;
  background: var(--green-soft);
}

.version-compare > div:last-child {
  border-color: #c7d8e2;
  background: var(--blue-soft);
}

.version-compare span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.version-compare strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .96rem;
}

.version-compare small {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.4;
}

.conflict-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.conflict-actions .button {
  min-width: 0;
  padding-inline: .72rem;
  white-space: normal;
}

/* Toasts */

.toast-region {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: min(380px, calc(100% - 2rem));
  gap: .55rem;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
  padding: .72rem .8rem;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 12px;
  color: #fff;
  background: #17362f;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: #9ad0b9;
  font-weight: 850;
}

.toast.warning > span {
  background: #f2cf73;
}

.toast.error > span {
  background: #ef9c86;
}

.toast p {
  margin: 0;
  color: #fff;
  font-size: .78rem;
}

/* Projector */

.projection-surprise {
  position: fixed;
  z-index: 70;
  width: clamp(92px, 12vw, 168px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 14px 17px rgb(0 0 0 / 32%));
  opacity: 0;
  transform: scale(.42);
  transform-origin: center;
  transition: opacity 520ms ease, transform 650ms cubic-bezier(.2, 1.45, .4, 1);
  -webkit-tap-highlight-color: transparent;
}

.projection-surprise.is-visible {
  opacity: 1;
  transform: scale(1);
}

.projection-surprise.is-leaving {
  opacity: 0;
  transform: scale(.78);
  transition-duration: 1.4s;
  transition-timing-function: ease-in;
}

.projection-surprise.is-caught {
  opacity: 0;
  transform: scale(1.42) rotate(8deg);
  transition-duration: 720ms;
  transition-timing-function: cubic-bezier(.2, .8, .3, 1);
}

.projection-surprise img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 82%;
  user-select: none;
  animation: projection-surprise-squish 2.6s ease-in-out 900ms infinite;
}

.projection-surprise:focus-visible {
  outline-color: #ffe08a;
  outline-offset: 7px;
}

.projection-confetti {
  position: fixed;
  z-index: 90;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.projection-confetti.reduced-motion {
  animation: projection-confetti-fade 900ms ease-out forwards;
}

@keyframes projection-surprise-squish {
  0%, 66%, 100% { transform: translateY(0) scale(1); }
  73% { transform: translateY(7%) scale(1.09, .88); }
  80% { transform: translateY(-4%) scale(.94, 1.08); }
  87% { transform: translateY(2%) scale(1.035, .97); }
  93% { transform: translateY(0) scale(.99, 1.01); }
}

@keyframes projection-confetti-fade {
  0%, 55% { opacity: 1; }
  100% { opacity: 0; }
}

.projector-exit {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  border-color: rgb(255 255 255 / 22%);
  color: #fff;
  background: rgb(11 38 30 / 75%);
  opacity: .58;
}

.projector-exit:hover,
.projector-exit:focus-visible {
  opacity: 1;
}

body.projector-mode {
  color: #f7faf7;
  background: #0e2922;
}

.projector-mode .app-shell {
  display: block;
}

.projector-mode .sidebar,
.projector-mode .topbar,
.projector-mode .no-projector,
.projector-mode .projector-hidden {
  display: none !important;
}

.projector-mode .workspace {
  display: block;
}

.projector-mode .page {
  width: 100%;
  max-width: none;
  padding: clamp(1.4rem, 3vw, 3rem);
}

.projector-mode .page-header,
.projector-mode .page-header p,
.projector-mode .eyebrow {
  color: #f7faf7;
}

.projector-mode .page-header {
  margin-bottom: 1rem;
}

.projector-mode .session-projector-label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 750;
}

.projector-mode .board-layout {
  display: block;
}

.projector-mode .island-grid {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 1.3rem;
}

.projector-mode .island-count-4 {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.projector-mode .island-count-1 {
  max-width: 760px;
  grid-template-columns: 1fr;
  margin-inline: auto;
}

.projector-mode .island-card {
  border-color: var(--island);
  color: var(--ink);
  background: #fffefa;
  box-shadow: 0 18px 50px rgb(0 0 0 / 20%);
}

.projector-mode .island-grid.has-winner .island-card:not(.winner) {
  border-color: color-mix(in srgb, var(--island) 40%, transparent);
}

.projector-mode .island-card.winner {
  box-shadow: 0 0 10px var(--island);
}

.projector-mode .island-header {
  padding: 1.35rem;
}

.projector-mode .island-header h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.projector-mode .island-card-image {
  width: clamp(58px, 7vh, 82px);
  height: clamp(58px, 7vh, 82px);
  flex-basis: clamp(58px, 7vh, 82px);
}

.projector-mode .score-main strong {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.projector-mode .score-main-unit {
  font-size: 1rem;
}

.projector-mode .score-main small {
  font-size: .7rem;
}

.projector-mode .score-track-inline {
  display: none;
}

.projector-mode .score-track-projector {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0;
  border-radius: 0;
}

.projector-mode .threshold-banner {
  color: var(--ink);
}

/* Responsive */

@media (min-width: 1650px) {
  .board-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .island-grid {
    grid-template-columns: repeat(3, minmax(285px, 1fr));
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 190px;
  }

  .board-layout {
    grid-template-columns: 1fr;
  }

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

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

  .projector-mode .island-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 620px) {
  .projection-surprise-number-grid,
  .projection-surprise-images-list {
    grid-template-columns: 1fr;
  }

  .projection-surprise-number-input {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projection-surprise,
  .projection-surprise img {
    animation: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-legal-link {
    bottom: 76px;
  }

  .welcome-page {
    grid-template-columns: 1fr;
  }

  .welcome-copy {
    max-width: none;
    min-height: auto;
    padding: 2rem clamp(1.2rem, 5vw, 3rem) 2.5rem;
  }

  .welcome-copy .eyebrow {
    margin-top: 2.5rem;
  }

  .welcome-copy h1 {
    max-width: 720px;
    font-size: clamp(2.35rem, 8vw, 4rem);
  }

  .welcome-card {
    padding: 1.2rem;
  }

  .app-shell {
    display: block;
    padding-bottom: 70px;
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: block;
    width: auto;
    height: 68px;
    padding: .35rem max(.4rem, env(safe-area-inset-right)) max(.35rem, env(safe-area-inset-bottom)) max(.4rem, env(safe-area-inset-left));
    border-top: 1px solid rgb(255 255 255 / 12%);
    border-right: 0;
  }

  .sidebar > .brand,
  .sidebar-bottom {
    display: none;
  }

  .sidebar nav {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: .2rem;
  }

  .nav-item {
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: .15rem;
    padding: .2rem;
    font-size: .62rem;
    text-align: center;
  }

  .nav-item.active {
    box-shadow: inset 0 3px #efc767;
  }

  .nav-item .icon {
    width: 19px;
    height: 19px;
  }

  .workspace {
    grid-column: auto;
  }

  .topbar {
    min-height: 64px;
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-create-class {
    display: inline-flex;
    width: 38px;
    padding: 0;
  }

  .mobile-create-class > span {
    display: none;
  }

  .class-picker span:last-child,
  .save-state {
    display: none;
  }

  .cloud-state {
    width: 38px;
    height: 38px;
    min-height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
  }

  .cloud-state .icon {
    width: 18px;
    height: 18px;
  }

  .cloud-state > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .class-picker select {
    min-width: 100px;
    max-width: 150px;
  }

  .topbar-actions .button {
    padding-inline: .75rem;
    font-size: .78rem;
  }

  .page-header {
    align-items: flex-start;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-navigation {
    position: static;
    display: flex;
    gap: .35rem;
    padding: .45rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .settings-nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: .25rem;
  }

  .settings-nav-group + .settings-nav-group {
    padding: 0 0 0 .35rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .settings-nav-group-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .settings-nav-button {
    min-width: 170px;
  }

  .island-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .class-layout,
  .history-layout,
  .start-layout {
    grid-template-columns: 1fr;
  }

  .side-form {
    position: static;
  }

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

  .round-list-item {
    background: rgb(255 254 250 / 55%);
  }

  .report-header {
    align-items: flex-start;
  }

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

@media (max-width: 680px) {
  .competency-threshold-field {
    grid-template-columns: 1fr;
  }

  .competency-threshold-input {
    justify-self: end;
  }

  .settings-nav-button {
    min-width: auto;
    grid-template-columns: 28px auto;
    padding: .55rem .65rem;
  }

  .settings-nav-button small {
    display: none;
  }

  .settings-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-tabs button {
    min-width: 0;
    padding-inline: .45rem;
  }

  .settings-data-actions {
    grid-template-columns: 1fr;
  }

  .charter-settings-panel > .panel-heading {
    display: grid;
  }

  .charter-settings-panel > .panel-heading > .button {
    width: 100%;
  }

  .emoji-picker-popover {
    position: fixed;
    top: 50%;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    transform: translateY(-50%);
  }

  .charter-reason-create-fields {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .charter-reason-create-fields > label:last-child {
    grid-column: 1 / -1;
  }

  .topbar {
    gap: .45rem;
    padding-inline: .75rem;
  }

  .mobile-brand b {
    display: none;
  }

  .class-picker-group {
    margin-right: auto;
  }

  .topbar-actions .button {
    min-height: 38px;
  }

  .topbar-actions .button .icon {
    margin: 0;
  }

  .page {
    padding: 1.1rem .8rem 1.8rem;
  }

  .page-header {
    display: grid;
    gap: .8rem;
    margin-bottom: 1.1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions .button {
    flex: 1 1 auto;
  }

  .session-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .session-picker {
    min-width: 0;
  }

  .round-picker {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .session-controls > .button {
    grid-column: 1 / -1;
  }

  .session-context-banner {
    display: grid;
  }

  .session-context-banner > .button,
  .session-reminder-actions > .button {
    width: 100%;
  }

  .session-reminder-actions {
    flex-direction: column-reverse;
  }

  .form-row,
  .form-grid-3,
  .island-grid,
  .projector-mode .island-grid {
    grid-template-columns: 1fr;
  }

  .threshold-banner {
    display: grid;
  }

  .threshold-banner .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .group-editor-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .report-header,
  .report-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .island-report-summary {
    align-items: stretch;
    flex-direction: column;
  }

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

  .island-report-metrics > span {
    grid-template-columns: 1fr;
  }

  .report-actions {
    justify-content: flex-start;
  }

  .report-actions .button {
    flex: 1 1 auto;
  }

  .round-progression-heading {
    align-items: flex-start;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .class-danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  .points-dialog-header,
  .points-scope-heading,
  .edit-score-footer {
    display: grid;
    align-items: stretch;
  }

  .points-target-picker {
    width: 100%;
  }

  .points-session-picker {
    width: 100%;
  }

  .points-dialog-filters {
    width: 100%;
    grid-template-columns: 1fr;
  }

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

  .points-summary > span:nth-child(2n) {
    border-right: 0;
  }

  .points-category-grid,
  .points-student-list {
    grid-template-columns: 1fr;
  }

  .edit-score-context {
    grid-template-columns: 1fr;
  }

  .edit-score-context > span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .migration-point-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .migration-point-row .read-only-badge {
    grid-column: 2;
    justify-self: start;
  }

  .edit-score-footer > .danger-link {
    justify-self: start;
  }

  .edit-score-footer .dialog-actions {
    margin-top: 0;
  }

  .sync-device-form,
  .cloud-steps,
  .version-compare,
  .dialog-actions.conflict-actions {
    grid-template-columns: 1fr;
  }

  .sync-device-form .button,
  .conflict-actions .button {
    width: 100%;
  }

  .close-score-list > div {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .close-score-list > div > span:nth-of-type(2) {
    display: none;
  }

  .welcome-card .create-class-form {
    padding: 1.25rem;
  }
}

@media (max-width: 420px) {
  .shared-island-picker,
  .new-shared-island-fields {
    grid-template-columns: 1fr;
  }

  .charter-dialog-columns {
    grid-template-columns: 1fr;
  }

  .student-row {
    gap: .2rem;
  }

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

  .quick-actions {
    gap: .3rem;
  }

  .card-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
    padding-inline: .55rem;
  }

  .card-footer .link-button {
    padding-inline: .3rem;
    font-size: .64rem;
  }

  .island-report-list {
    padding-inline: .65rem;
  }

  .island-report-metrics {
    gap: .3rem;
  }

  .island-report-metrics > span {
    padding-inline: .4rem;
  }

  .round-progression {
    padding-inline: .65rem;
  }

  .round-progression-heading {
    display: grid;
  }

  .progression-target {
    justify-self: start;
  }

  .progression-legend-item small {
    display: none;
  }

  .score-history-event {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .55rem;
  }

  .score-history-event time {
    display: none;
  }

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

  .student-score-filters {
    grid-template-columns: 1fr;
  }

  .score-reason-summary-list {
    grid-template-columns: 1fr;
  }

  .score-breakdown-result {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    --canvas: #fff;
    --paper: #fff;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 10pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .no-print,
  .sidebar,
  .topbar,
  .round-list,
  .cloud-panel,
  .toast-region {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .print-class {
    margin: .4rem 0;
    color: #000;
    font-size: 9pt;
  }

  .app-shell,
  .workspace,
  .history-layout {
    display: block;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .page-header {
    margin-bottom: 1rem;
  }

  .report {
    border: 0;
    box-shadow: none;
  }

  .report-header,
  .report-footer {
    padding-inline: 0;
  }

  .report-notice {
    border: 1px solid #bbb;
    background: #fff;
  }

  .round-progression {
    padding-inline: 0;
    background: #fff;
    break-inside: avoid;
  }

  .progression-comparison {
    break-inside: avoid;
    box-shadow: none;
  }

  .progression-chart-scroll {
    overflow: visible;
  }

  .progression-chart {
    width: 100%;
    height: auto;
  }

  .score-table-wrap,
  .student-score-table-wrap {
    overflow: visible;
    padding: 0;
  }

  .score-table,
  .student-score-table {
    min-width: 0;
  }

  .score-table tr,
  .student-score-row,
  .island-report-group {
    break-inside: avoid;
  }

  .island-report-list {
    padding: 0;
  }

  .island-report-summary {
    padding-inline: .65rem;
  }

  .island-report-metrics > span {
    border: 0;
    background: transparent;
  }

  .student-score-table {
    font-size: 8pt;
  }

  .student-score-table thead th,
  .student-score-table tbody th,
  .student-score-table tbody td {
    padding: .4rem;
  }

  body.student-score-print .app-shell {
    display: none !important;
  }

  body.student-score-print .app-dialog[open] {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.student-score-print .app-dialog::backdrop,
  body.student-score-print .score-history-section {
    display: none !important;
  }

  body.student-score-print .student-score-history-dialog {
    gap: 12pt;
    padding: 0;
  }

  body.student-score-print .score-breakdown-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.student-score-print .score-breakdown-result {
    grid-column: auto;
  }

  body.student-score-print .score-reason-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.student-score-print .score-reason-summary-group {
    break-inside: avoid;
  }

  body.student-score-print .score-reason-summary-list.has-active-filter .score-reason-summary-item[aria-pressed="false"] {
    color: var(--ink);
    border-color: color-mix(in srgb, var(--reason-color) 32%, var(--line));
    background: color-mix(in srgb, var(--reason-color) 11%, #fff);
    box-shadow: inset 4px 0 var(--reason-color);
    filter: none;
    opacity: 1;
    transition: none;
  }
}
