/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: "Segoe UI", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .\!container {
    width: 100% !important;
  }

  @media (min-width: 40rem) {
    .\!container {
      max-width: 40rem !important;
    }
  }

  @media (min-width: 48rem) {
    .\!container {
      max-width: 48rem !important;
    }
  }

  @media (min-width: 64rem) {
    .\!container {
      max-width: 64rem !important;
    }
  }

  @media (min-width: 80rem) {
    .\!container {
      max-width: 80rem !important;
    }
  }

  @media (min-width: 96rem) {
    .\!container {
      max-width: 96rem !important;
    }
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .hidden {
    display: none;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .italic {
    font-style: italic;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

:root {
  --ink: #123e61;
  --muted: #2e4353;
  --green: #087c8f;
  --line: #e0e9ef;
  --cream: #f4f8fb;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  color: var(--ink);
  background: var(--cream);
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  font-size: 14px;
}

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

button {
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

button:disabled {
  cursor: default;
  opacity: .45;
}

button:focus-visible, a:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #8ab7be;
}

.search-box:focus-within, .chat-input:focus-within {
  border-color: #087c8f;
}

input, select, textarea {
  color: var(--ink);
  background: #fff;
  border: 1px solid #dadfe2;
  border-radius: 8px;
  width: 100%;
  padding: 9px 11px;
}

textarea {
  resize: vertical;
  line-height: 1.65;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

button svg {
  flex-shrink: 0;
}

.app-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  align-items: center;
  gap: 36px;
  height: 76px;
  padding: 0 28px;
  display: flex;
}

.brand {
  align-items: center;
  gap: 12px;
  min-width: 245px;
  display: flex;
}

.brand-icon {
  color: #fff;
  background: var(--green);
  border-radius: 12px;
  place-items: center;
  width: 39px;
  height: 39px;
  display: grid;
  transform: rotate(-4deg);
}

.brand h1 {
  letter-spacing: -.7px;
  margin: 0;
  font-size: 20px;
  font-weight: 750;
}

.brand h1 span {
  color: #007484;
}

.brand-logo {
  object-fit: contain;
  width: 62px;
  height: 62px;
}

.about-logo {
  object-fit: contain;
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
}

.brand p {
  color: var(--muted);
  letter-spacing: .3px;
  margin: 3px 0 0;
  font-size: 10px;
}

.main-nav {
  gap: 27px;
  height: 100%;
  display: flex;
}

.main-nav button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 550;
  position: relative;
}

.main-nav .active {
  color: var(--green);
}

.main-nav .active:after {
  content: "";
  background: var(--green);
  border-radius: 2px;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.header-right {
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex;
}

.header-tools, .header-account {
  border: 1px solid var(--line);
  align-items: center;
  gap: 2px;
  padding: 3px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .header-tools, .header-account {
    border: 1px solid color-mix(in srgb, var(--line) 88%, #9bb8c4);
  }
}

.header-tools, .header-account {
  background: #fff;
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  .header-tools, .header-account {
    background: color-mix(in srgb, #fff 82%, var(--cream));
  }
}

.header-tool {
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  place-items: center;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
  display: grid;
}

.header-tool:hover {
  color: var(--green);
  background: #e7f2f4;
}

.header-tool.active {
  color: var(--green);
  background: #d8eef1;
}

.header-tool:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #8ab7be;
}

.header-account {
  gap: 4px;
  padding-left: 3px;
  padding-right: 3px;
}

.header-account-chip {
  min-width: 0;
  max-width: 160px;
  color: var(--ink);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  text-decoration: none;
  transition: background .15s, color .15s;
  display: flex;
}

.header-account-chip:hover, .header-account-chip.active {
  color: var(--green);
  background: #e7f2f4;
}

.header-account-avatar {
  letter-spacing: .02em;
  color: #f4fbfc;
  background: linear-gradient(145deg, #0f8a9a 0%, #156f8f 100%);
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.header-account-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -.01em;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
}

.header-logout:hover {
  color: #9b3b3b;
  background: #f3e8e8;
}

.local-pill {
  color: var(--muted);
  background: #f5f9fa;
  border: 1px solid #dae3e8;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  display: flex;
}

.avatar {
  color: var(--muted);
  background: #edeedc;
  border: 1px solid #dedfc9;
  border-radius: 50%;
  place-items: center;
  width: 35px;
  height: 35px;
  font-size: 11px;
  font-weight: 600;
  display: grid;
}

.breadcrumb-bar {
  height: 57px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #fcfcf9;
  align-items: center;
  gap: 9px;
  padding: 0 28px;
  font-size: 11px;
  display: flex;
}

.breadcrumb-bar strong {
  color: var(--muted);
  font-weight: 600;
}

.breadcrumb-bar .save-state {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  margin-left: auto;
  display: flex;
}

.workbench {
  height: calc(100dvh - 133px);
  min-height: 630px;
  display: flex;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-width, 235px);
  background: #f6f9fa;
  flex-shrink: 0;
  padding: 23px 17px;
  overflow: auto;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.sidebar label {
  margin-bottom: 10px;
  display: block;
}

.class-select {
  background: #fff;
  border-radius: 9px;
  margin: 11px 0 22px;
  font-weight: 600;
}

.sidebar-title {
  justify-content: space-between;
  align-items: center;
  margin: 0 0 13px;
  display: flex;
}

.sidebar-title h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.counter {
  color: var(--muted);
  background: #e2e9ec;
  border-radius: 5px;
  margin-left: 4px;
  padding: 3px 7px;
  font-size: 10px;
}

.icon-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 7px;
  place-items: center;
  padding: 6px;
  display: grid;
}

.search-box {
  color: var(--muted);
  background: #fff;
  border: 1px solid #dde3e6;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 0 8px;
  display: flex;
}

.search-box input {
  background: none;
  border: 0;
  padding: 8px 0;
  font-size: 11px;
}

.student-list {
  flex-direction: column;
  gap: 7px;
  display: flex;
}

.student-card {
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 10px;
  display: flex;
}

.student-card:hover {
  background: #e8eef1;
}

.student-card.selected {
  background: #e6edf0;
  border-color: #ccd9df;
}

.student-symbol {
  width: 31px;
  height: 34px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #dce4e8;
  border-radius: 7px;
  place-items: center;
  display: grid;
}

.student-card.selected .student-symbol {
  color: var(--muted);
  background: #d1e4e7;
  border: 0;
}

.student-info {
  flex: 1;
  min-width: 0;
}

.student-info strong {
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 650;
  display: block;
  overflow: hidden;
}

.student-info p {
  color: var(--muted);
  align-items: center;
  gap: 4px;
  margin: 5px 0 0;
  font-size: 9px;
  display: flex;
}

.status-dot {
  background: #bcab62;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  display: inline-block;
}

.status-dot.approved {
  background: #23975d;
}

.student-score {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.upload-card {
  width: 100%;
  color: var(--muted);
  background: #eef5f6;
  border: 1px dashed #c0ccd2;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 21px;
  padding: 20px 10px;
  display: flex;
}

.editor .upload-card {
  margin-top: 0;
  margin-bottom: 16px;
}

.upload-card strong {
  font-size: 11px;
  font-weight: 600;
}

.upload-card small {
  color: var(--muted);
  font-size: 9px;
}

.upload-card:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sidebar-note {
  color: var(--muted);
  background: #e8eef1;
  border-radius: 9px;
  margin-top: 28px;
  padding: 14px 12px;
  font-size: 10px;
  line-height: 1.6;
}

.sidebar-note h3 {
  color: var(--muted);
  gap: 6px;
  margin: 0 0 5px;
  font-size: 11px;
  display: flex;
}

.sidebar-tools {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  display: flex;
}

.text-button {
  color: var(--muted);
  background: none;
  border: 0;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  font-size: 10px;
  display: inline-flex;
}

.divider {
  border-left: 1px solid var(--line);
  cursor: col-resize;
  touch-action: none;
  background: #edf2f4;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 5px;
  display: flex;
}

.divider:after {
  content: "";
  background: #c5d0d5;
  border-radius: 3px;
  width: 2px;
  height: 26px;
}

.divider:hover {
  background: #d8e3e8;
}

.editor {
  width: var(--editor-width, 450px);
  background: #fff;
  flex-shrink: 0;
  min-width: 330px;
  padding: 25px 25px 20px;
  overflow: auto;
}

.editor-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  display: flex;
}

.editor-heading h2 {
  letter-spacing: -.7px;
  margin: 6px 0 7px;
  font-size: 25px;
  font-weight: 650;
}

.editor-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.status-pill {
  color: #786943;
  white-space: nowrap;
  background: #fbf7eb;
  border: 1px solid #eee5ca;
  border-radius: 20px;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  font-size: 10px;
  display: flex;
}

.status-pill.approved {
  color: var(--muted);
  background: #edf5f6;
  border-color: #cfe2e5;
}

.editor-toolbar {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 10px;
  display: flex;
}

.tabs {
  border-bottom: 1px solid var(--line);
  gap: 3px;
  margin-bottom: 21px;
  display: flex;
}

.tabs button {
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 5px;
  padding: 11px 10px;
  font-size: 11px;
  font-weight: 550;
  display: flex;
}

.tabs button.active {
  color: var(--green);
  border-color: var(--green);
}

.total-card {
  background: #edf6f7;
  border: 1px solid #d5e0e5;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px;
  display: flex;
}

.total-card .total-number {
  letter-spacing: -1px;
  font-size: 36px;
  font-weight: 650;
  line-height: 1;
}

.total-card .total-number span {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 400;
}

.total-card .total-caption {
  color: var(--muted);
  margin-top: 7px;
  font-size: 10px;
}

.grade-tile {
  text-align: center;
  background: #fff;
  border: 1px solid #d7e2e8;
  border-radius: 9px;
  padding: 9px 17px;
}

.grade-tile span {
  color: var(--muted);
  margin-bottom: 2px;
  font-size: 9px;
  display: block;
}

.grade-tile strong {
  font-size: 25px;
  font-weight: 650;
  line-height: 1.1;
}

.section-heading {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
}

.section-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.criteria-card {
  border: 1px solid #dfe5e8;
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
}

.score-row {
  border-bottom: 1px solid #e8edf0;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 12px;
  display: flex;
}

.score-row:last-child {
  border-bottom: 0;
}

.score-label {
  align-items: center;
  gap: 8px;
  font-size: 11px;
  display: flex;
}

.score-label svg {
  color: var(--muted);
  width: 14px;
}

.score-label small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 9px;
  display: block;
}

.score-input {
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  display: flex;
}

.score-input input {
  width: 48px;
  color: var(--muted);
  text-align: center;
  background: #f5f9fa;
  border: 1px solid #d9e1e5;
  border-radius: 5px;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 650;
}

.score-input input::-webkit-inner-spin-button {
  opacity: 1;
}

.score-input button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 2px;
}

.score-input span {
  min-width: 20px;
}

.notice {
  color: #756649;
  background: #fffaf0;
  border: 1px solid #eee5c9;
  border-radius: 8px;
  margin: 12px 0;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.6;
}

.notice.info {
  color: var(--muted);
  background: #f1f6f6;
  border-color: #e0eaea;
}

.notice.error {
  color: #9b5644;
  background: #fff2ed;
  border-color: #efcfc0;
}

.notice svg {
  vertical-align: middle;
  margin-right: 5px;
  display: inline;
}

.notice-link, .notice a {
  color: #0f7584;
  text-underline-offset: 2px;
  font-weight: 650;
  text-decoration: underline;
}

.notice-link:hover, .notice a:hover {
  color: #0a5c68;
}

.notice-link:focus-visible, .notice a:focus-visible {
  outline-offset: 2px;
  border-radius: 3px;
  outline: 2px solid #08788a;
}

.feedback-label {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 600;
  display: block;
}

.feedback-input {
  background: #fcfcf9;
  min-height: 88px;
  font-size: 11px;
}

.manual-grade {
  align-items: center;
  gap: 9px;
  margin: 13px 0;
  font-size: 11px;
  display: flex;
}

.manual-grade select {
  width: 155px;
  padding: 7px;
  font-size: 11px;
}

.primary-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 550;
  display: flex;
}

.primary-button:hover {
  background: #0d6672;
}

.secondary-button {
  color: var(--muted);
  background: #fff;
  border: 1px solid #d8e1e5;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: 11px;
  display: inline-flex;
}

.secondary-button:hover {
  background: #f0f6f7;
}

.full-width {
  width: 100%;
}

.approval-check {
  color: var(--muted);
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-size: 10px;
  line-height: 1.5;
  display: flex;
}

.approval-check input {
  flex-shrink: 0;
  margin-top: 0;
}

.settings-subheading {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 650;
}

.signature-editor {
  gap: 10px;
  margin: 4px 0 12px;
  display: grid;
}

.signature-pad {
  aspect-ratio: 420 / 140;
  touch-action: none;
  cursor: crosshair;
  background: #fff;
  border: 1px solid #d5dee3;
  border-radius: 10px;
  width: 100%;
  max-width: 420px;
  height: auto;
  box-shadow: inset 0 1px #fff;
}

.signature-qr-hint {
  background: #f4f8fb;
  border: 1px solid #d5e3e9;
  border-radius: 12px;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  padding: 12px 14px;
  display: flex;
}

.signature-qr-code {
  background: #fff;
  border-radius: 8px;
  flex-shrink: 0;
  width: 112px;
  height: 112px;
}

.signature-qr-hint strong {
  color: #1f2a28;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: inline-flex;
}

.signature-qr-hint p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.signature-mobile-summary {
  gap: 12px;
  display: grid;
}

.signature-preview {
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border: 1px solid #d5dee3;
  border-radius: 10px;
  width: 100%;
  max-height: 88px;
  padding: 8px 12px;
}

.signature-fullscreen {
  z-index: 80;
  padding: max(4px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  background: #f3f7f9;
  flex-direction: column;
  gap: 6px;
  display: flex;
  position: fixed;
  inset: 0;
}

.signature-fullscreen-bar {
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  display: flex;
}

.signature-fullscreen-bar strong {
  color: #1f2a28;
  font-size: 15px;
  font-weight: 650;
}

.signature-fullscreen-pad {
  flex: 1;
  min-height: 0;
  display: flex;
}

.signature-fullscreen .signature-pad {
  aspect-ratio: auto;
  border-width: 1px;
  border-radius: 8px;
  width: 100%;
  max-width: none;
  height: 100%;
}

.signature-fullscreen .signature-actions {
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 6px;
  margin: 0;
}

.signature-fullscreen .signature-actions .primary-button, .signature-fullscreen .signature-actions .secondary-button {
  flex: 1;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

@media (max-width: 700px) {
  .signature-qr-hint {
    display: none;
  }
}

@media (max-height: 700px) and (hover: none) {
  .signature-qr-hint {
    display: none;
  }
}

.assistant-block {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 19px;
}

.assistant-heading {
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  display: flex;
}

.assistant-symbol {
  color: var(--muted);
  background: #eaf0f3;
  border-radius: 8px;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.assistant-heading h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}

.assistant-heading small {
  color: var(--muted);
  font-size: 9px;
}

.mock-badge {
  color: var(--muted);
  letter-spacing: .6px;
  background: #f1f1e8;
  border-radius: 4px;
  margin-left: auto;
  padding: 4px 6px;
  font-size: 8px;
  font-weight: 650;
}

.chat-welcome {
  color: #20374a;
  background: #f5f9fa;
  border: 1px solid #e1e9ed;
  border-radius: 0 9px 9px;
  padding: 13px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
}

.chat-welcome strong {
  color: var(--muted);
  font-weight: 600;
}

.chat-suggestions {
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0;
  display: flex;
}

.chat-suggestions button {
  color: var(--muted);
  background: #fff;
  border: 1px solid #dde5e9;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 9px;
}

.chat-message-wrap {
  margin: 8px 0;
  position: relative;
}

.chat-message-wrap.assistant {
  padding-right: 28px;
}

.chat-message {
  color: #20374a;
  white-space: pre-wrap;
  background: #f1f5f7;
  border-radius: 9px;
  margin: 0;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}

.chat-message.user {
  color: #20374a;
  background: #e9f2f3;
  margin-left: 25px;
}

.chat-copy-button {
  color: #6d8594;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  position: absolute;
  top: 6px;
  right: 0;
}

.chat-copy-button:hover {
  color: #087c8f;
  background: #e9f2f3;
}

.chat-copy-button:focus-visible {
  outline-offset: 1px;
  outline: 2px solid #08788a;
}

.chat-thinking {
  color: #5a7383;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  font-weight: 550;
  display: inline-flex;
}

.chat-thinking-dots {
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.chat-thinking-dots i {
  opacity: .35;
  background: #087c8f;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  animation: 1.05s ease-in-out infinite chat-thinking-bounce;
}

.chat-thinking-dots i:nth-child(2) {
  animation-delay: .15s;
}

.chat-thinking-dots i:nth-child(3) {
  animation-delay: .3s;
}

.chat-caret {
  vertical-align: -1px;
  background: #087c8f;
  width: 2px;
  height: .95em;
  margin-left: 2px;
  animation: 1s step-end infinite chat-caret-blink;
  display: inline-block;
}

@keyframes chat-thinking-bounce {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes chat-caret-blink {
  0%, 45% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-thinking-dots i, .chat-caret {
    opacity: .7;
    animation: none;
  }
}

.chat-markdown {
  white-space: normal;
  overflow-wrap: anywhere;
}

.chat-markdown p {
  margin: 10px 0;
}

.chat-markdown > :first-child {
  margin-top: 0;
}

.chat-markdown > :last-child {
  margin-bottom: 0;
}

.chat-markdown strong {
  font-weight: 700;
}

.chat-markdown ul, .chat-markdown ol {
  margin: 10px 0;
  padding-left: 22px;
}

.chat-markdown ul {
  list-style: outside;
}

.chat-markdown ol {
  list-style: decimal;
}

.chat-markdown li, .chat-markdown li p {
  margin: 4px 0;
}

.chat-markdown h1, .chat-markdown h2, .chat-markdown h3, .chat-markdown h4, .chat-markdown h5, .chat-markdown h6 {
  margin: 14px 0 6px;
  font-size: 1.1em;
  font-weight: 700;
}

.chat-markdown a {
  color: #006879;
  text-decoration: underline;
}

.chat-markdown blockquote {
  border-left: 3px solid #7aaeb7;
  margin: 10px 0;
  padding-left: 12px;
}

.chat-markdown code {
  background: #e1e9ed;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: .95em;
}

.chat-markdown pre {
  white-space: pre-wrap;
  background: #e1e9ed;
  border-radius: 6px;
  margin: 10px 0;
  padding: 10px;
}

.chat-markdown pre code {
  padding: 0;
}

.chat-markdown hr {
  border: 0;
  border-top: 1px solid #bccdd7;
  margin: 14px 0;
}

.chat-markdown table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 10.5px;
  display: block;
  overflow-x: auto;
}

.chat-markdown thead, .chat-markdown tbody {
  width: 100%;
  min-width: 320px;
  display: table;
}

.chat-markdown th, .chat-markdown td {
  text-align: left;
  vertical-align: top;
  border: 1px solid #d5e0e6;
  padding: 6px 8px;
}

.chat-markdown th {
  color: #20374a;
  background: #e9f2f3;
  font-weight: 650;
}

.chat-markdown tr:nth-child(2n) td {
  background: #f7fafb;
}

.chat-input {
  border: 1px solid #d5e0e6;
  border-radius: 9px;
  align-items: center;
  gap: 5px;
  padding: 5px 6px 5px 10px;
  display: flex;
}

.chat-input input {
  border: 0;
  padding: 8px 0;
  font-size: 11px;
}

.chat-input button {
  color: #fff;
  background: #2e626a;
  border: 0;
  border-radius: 6px;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  display: grid;
}

.assistant-footer {
  color: var(--muted);
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  font-size: 8px;
  display: flex;
}

.proposal-card {
  background: #f7fbfc;
  border: 1px solid #d5e1e7;
  border-radius: 9px;
  margin: 9px 0;
  padding: 12px;
}

.proposal-card h4 {
  margin: 0 0 7px;
  font-size: 11px;
}

.proposal-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.proposal-card input {
  margin: 7px 0;
  font-size: 10px;
}

.button-row {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}

.transcript-input {
  background: #fcfcfa;
  min-height: 340px;
  font-size: 12px;
}

.highlight-editor {
  position: relative;
}

.highlight-editor .highlight-backdrop, .highlight-editor .transcript-input {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
  tab-size: 4;
  border: 1px solid #dadfe2;
  border-radius: 8px;
  margin: 0;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.65;
}

.highlight-editor .highlight-backdrop {
  pointer-events: none;
  color: var(--ink);
  background: #fcfcfa;
  border-color: #0000;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.highlight-editor .transcript-input {
  z-index: 1;
  color: #0000;
  width: 100%;
  caret-color: var(--ink);
  resize: vertical;
  background: none;
  display: block;
  position: relative;
}

.highlight-editor .transcript-input::placeholder {
  color: #3d4f5e;
}

.highlight-editor .transcript-input::selection {
  color: #0000;
  background: #087c8f47;
}

.highlight-editor .uncertain-mark {
  color: #b42318;
  font: inherit;
  background: none;
  padding: 0;
}

.small-caption {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.image-strip {
  gap: 8px;
  margin: 14px 0;
  display: flex;
  overflow: auto;
}

.image-strip a {
  color: var(--muted);
  flex: 0 0 90px;
  font-size: 9px;
  text-decoration: none;
  display: block;
}

.image-strip img {
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 90px;
  height: 116px;
}

.annotation-card {
  border: 1px solid #dfe6e9;
  border-radius: 9px;
  margin: 10px 0;
  padding: 12px;
}

.annotation-card .annotation-title {
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.annotation-card p {
  color: #2a3e4c;
  margin: 8px 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.annotation-card label {
  color: var(--muted);
  margin: 7px 0 3px;
  font-size: 9px;
  display: block;
}

.annotation-card input, .annotation-card select {
  font-size: 11px;
}

.kind-badge {
  color: #63451f;
  background: #f6f2e8;
  border-radius: 4px;
  padding: 4px 5px;
  font-size: 8px;
  font-weight: 600;
}

.kind-badge.grammar, .kind-badge.negative {
  color: #7f352c;
  background: #fbefea;
}

.kind-badge.positive {
  color: #24495f;
  background: #ecf4fa;
}

.sentence-review {
  border: 1px solid #dae3e8;
  border-radius: 10px;
  margin-top: 18px;
  padding: 12px;
}

.sentence-review h3 {
  margin: 0 0 12px;
  font-size: 11px;
}

.step-row {
  border-bottom: 1px solid #e8eef1;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: 10px;
  display: flex;
}

.step-row span {
  color: #5d6b72;
  flex: 1;
  line-height: 1.55;
}

.step-row select {
  width: 46px;
  padding: 3px;
  font-size: 10px;
}

.preview {
  background: #ebeff1;
  flex-direction: column;
  flex: 1;
  min-width: 300px;
  display: flex;
  overflow: hidden;
}

.preview.expanded {
  z-index: 40;
  position: fixed;
  inset: 0;
}

.preview-toolbar {
  background: #f4f8f9;
  border-bottom: 1px solid #d7e0e4;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 0 21px;
  display: flex;
}

.preview-title {
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
}

.live-dot {
  background: #678493;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  box-shadow: 0 0 0 4px #e8f2f3;
}

.html-badge {
  color: #5f6d73;
  border: 1px solid #d2dde3;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 8px;
  font-weight: 500;
}

.preview-actions {
  gap: 7px;
  display: flex;
}

.preview-actions button {
  padding: 8px 10px;
  font-size: 10px;
}

.page-control {
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 13px 20px;
  display: flex;
}

.page-tabs {
  background: #dfe6e9;
  border-radius: 7px;
  gap: 4px;
  padding: 4px;
  display: flex;
}

.page-tabs button {
  color: #5c6b73;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 9px;
}

.page-tabs .active {
  color: #4c6673;
  background: #fff;
  box-shadow: 0 1px 2px #a0b4be33;
}

.zoom-controls {
  color: #5c6b73;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  display: flex;
}

.zoom-controls button {
  color: #5c6b73;
  background: none;
  border: 0;
  padding: 3px;
  display: flex;
}

.preview-canvas {
  scrollbar-gutter: stable;
  flex: 1;
  padding: 8px 20px 26px;
  overflow: scroll;
}

.paper-wrapper {
  margin: 0 auto;
  position: relative;
}

.preview-canvas .a4-page {
  transform-origin: 0 0;
  position: absolute;
  box-shadow: 0 3px 16px #3d556114, 0 0 0 1px #d4dde1;
}

.preview-bottom {
  height: 36px;
  color: var(--muted);
  background: #f3f6f8;
  border-top: 1px solid #d9e2e6;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  display: flex;
}

.preview-warning {
  color: #8d5d3f;
  background: #fff6e8;
  padding: 8px 20px;
  font-size: 10px;
}

.modal-backdrop {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 60;
  background: #1e343744;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal {
  background: #fff;
  border: 1px solid #d9e3e8;
  border-radius: 15px;
  width: min(650px, 95vw);
  max-height: 85vh;
  padding: 25px;
  overflow: auto;
  box-shadow: 0 20px 60px #1b363a25;
}

.modal-heading {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  display: flex;
}

.modal h2 {
  letter-spacing: -.4px;
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}

.modal h3 {
  margin: 20px 0 8px;
  font-size: 12px;
}

.modal p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal label {
  color: #5d6b72;
  margin: 12px 0 5px;
  font-size: 11px;
  display: block;
}

.modal input, .modal textarea {
  font-size: 12px;
}

.modal .button-row {
  margin-top: 20px;
}

.rubric-fields {
  gap: 14px;
  display: flex;
}

.rubric-fields label {
  flex: 1;
}

.grade-bands {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  display: grid;
}

.grade-bands input {
  margin-top: 4px;
}

.rubric-editor-container {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.rubric-history-modal {
  flex-direction: column;
  width: min(520px, 95vw);
  display: flex;
  overflow: hidden;
}

.rubric-history-modal > p {
  flex-shrink: 0;
  margin: 0 0 8px;
}

.rubric-history-modal .rubric-version-list {
  flex: auto;
  min-height: 0;
  max-height: min(55vh, 520px);
  overflow: auto;
}

.rubric-version {
  border-top: 1px solid #d5e1e7;
  padding: 18px 0;
}

.rubric-version h3 {
  align-items: center;
  gap: 10px;
  margin: 0;
  display: flex;
}

.rubric-version p {
  margin: 10px 0 14px;
}

.rubric-current-version {
  color: #116a45;
  background: #e4f4e9;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
}

.grade-slider {
  margin: 12px 0 24px;
}

.grade-slider-track {
  margin: 20px 25px 0;
  position: relative;
}

.grade-slider-colors {
  border-radius: 8px;
  height: 28px;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #0002;
}

.grade-slider-colors span {
  flex-shrink: 0;
}

.grade-slider-handle {
  cursor: ew-resize;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1;
  pointer-events: none;
  outline: none;
  width: 48px;
  margin-left: -24px;
  position: absolute;
}

.grade-slider-circle {
  border: 3px solid var(--grade-color);
  color: #17374c;
  background: #fff;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  box-shadow: 0 2px 5px #17374c20;
}

.grade-slider-circle small {
  font-size: 9px;
  line-height: 1;
}

.grade-slider-circle, .grade-slider-pin {
  pointer-events: auto;
}

.grade-slider-pin {
  width: 2px;
  height: var(--pin-length);
  background: var(--grade-color);
  border: 1px solid #17374c;
  border-radius: 0 0 3px 3px;
  margin: 0 auto;
  display: block;
}

.grade-slider-handle:focus-visible:not([data-pointer-focus]) .grade-slider-circle {
  outline-offset: 3px;
  outline: 3px solid #10476b;
}

.grade-slider-scale {
  color: var(--muted);
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  display: flex;
}

.grade-slider-legend {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  display: grid;
}

.grade-slider-legend > span {
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 3px 7px;
  font-size: 12px;
  display: grid;
}

.grade-slider-legend i {
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.grade-slider-legend small {
  color: var(--muted);
  grid-column: 2;
  font-size: 11px;
}

.competence-slider-legend {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.competence-slider-legend > span {
  grid-template-columns: 44px 1fr;
}

.competence-slider-legend .plant-symbol {
  grid-row: span 2;
  width: 42px;
  height: 42px;
}

@media (max-width: 650px) {
  .grade-slider-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 8px;
  }

  .competence-slider-legend > span {
    grid-template-columns: 34px 1fr;
    gap: 3px 4px;
  }

  .competence-slider-legend .plant-symbol {
    width: 32px;
    height: 32px;
  }
}

.overview-row {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  font-size: 11px;
  display: flex;
}

.overview-row strong {
  flex: 1;
}

.overview-row span {
  color: var(--muted);
}

.history-list {
  padding: 0;
  list-style: none;
}

.history-list li {
  border-bottom: 1px solid #e7edf0;
  padding: 11px 0;
}

.history-list small {
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 9px;
  display: block;
}

.history-list b {
  font-size: 11px;
  font-weight: 500;
}

.toast {
  color: #fff;
  z-index: 100;
  background: #27464b;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 12px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 3px 20px #16333722;
}

.loading-screen {
  color: #576e7a;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 100vh;
  display: flex;
}

.empty-editor {
  text-align: center;
  color: #5c6b73;
  padding: 60px 25px;
}

.a4-page {
  color: #243039;
  background: #fff;
  flex-shrink: 0;
  width: 210mm;
  height: 297mm;
  padding: 13mm 14mm 12mm;
  font-family: Segoe UI, Arial, sans-serif;
  position: relative;
  overflow: visible;
}

.document-content {
  flex-direction: column;
  width: 182mm;
  height: 266mm;
  font-size: 10pt;
  display: flex;
  position: relative;
  overflow: hidden;
}

.document-footer {
  color: #97a095;
  border-top: 1px solid #ecede8;
  justify-content: space-between;
  padding-top: 2mm;
  font-size: 7pt;
  display: flex;
  position: absolute;
  bottom: 5mm;
  left: 14mm;
  right: 14mm;
}

.correction-sheet {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.doc-student {
  text-align: right;
  color: #455343;
  flex-shrink: 0;
  margin-bottom: 2mm;
  font-size: 8pt;
}

.correction-title {
  margin: 2mm 0 9mm;
  font-size: 19pt;
  font-weight: 600;
}

.essay-lines {
  flex: 1;
}

.essay-line {
  justify-content: space-between;
  align-items: baseline;
  gap: 5mm;
  font-size: 11pt;
  line-height: 1.5;
  display: flex;
}

.essay-line > div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
}

.intro-line {
  margin: 0 0 3mm;
  font-size: 10pt;
}

.intro-line:first-child {
  margin-bottom: 5mm;
  font-size: 14pt;
}

.empty-line {
  min-height: 4mm;
  margin: 0;
}

.body-line {
  margin-bottom: 7mm;
  padding-top: 4mm;
}

.page-2 .body-line {
  margin-bottom: 4.2mm;
  padding-top: 3.5mm;
}

.compact .body-line {
  margin-bottom: 2mm;
  padding-top: 2mm;
  font-size: 9pt;
}

.compact-correction .correction-title {
  margin: 1mm 0 4mm;
  font-size: 16pt;
}

.compact-correction .intro-line {
  margin-bottom: .8mm;
  font-size: 9pt;
  line-height: 1.25;
}

.compact-correction .intro-line:first-child {
  margin-bottom: 2mm;
  font-size: 12pt;
}

.compact-correction .empty-feedback-fields {
  gap: 2mm;
  margin-top: 3mm;
}

.compact-correction .empty-feedback-fields > div {
  height: 11mm;
  padding: 1.8mm;
}

.compact-correction .doc-score-summary {
  margin-top: 2mm;
  font-size: 8.5pt;
  line-height: 1.45;
}

.marked {
  line-height: 1.5;
  display: inline-block;
  position: relative;
}

.mark-text {
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.mark-label {
  white-space: nowrap;
  gap: 4px;
  font-size: 7.5pt;
  line-height: 1.1;
  text-decoration: none;
  display: flex;
  position: absolute;
  top: -1.15em;
  left: 0;
}

.marked.spelling .mark-text, .mark-label .spelling, .marked.spelling > .mark-label {
  color: #c97315;
}

.marked.grammar .mark-text, .mark-label .grammar, .marked.grammar > .mark-label, .marked.repetition .mark-text, .mark-label .repetition, .marked.repetition > .mark-label {
  color: #d13e40;
}

.marked.positive .mark-text, .mark-label .positive, .marked.positive > .mark-label {
  color: #0765cc;
}

.marked.negative .mark-text, .mark-label .negative, .marked.negative > .mark-label {
  color: #d13e40;
}

.mark-text {
  color: inherit !important;
}

.spelling .mark-text {
  text-decoration-color: #db8a28;
}

.grammar .mark-text, .negative .mark-text, .repetition .mark-text {
  text-decoration-color: #d13e40;
}

.positive .mark-text {
  text-decoration-color: #0765cc;
}

.content-point {
  color: #0765cc;
  text-align: right;
  min-width: 5mm;
  font-size: 11pt;
  font-weight: 650;
}

.content-point.zero {
  color: #d13e40;
}

.empty-feedback-fields {
  flex-direction: column;
  gap: 3mm;
  margin-top: 5mm;
  display: flex;
}

.empty-feedback-fields > div {
  border: 1px solid #c9cec7;
  border-radius: 2mm;
  height: 14mm;
  padding: 2.5mm;
  font-size: 9pt;
}

.empty-feedback-fields .green {
  color: #268152;
  border-color: #268152;
}

.empty-feedback-fields .blue {
  color: #0765cc;
  border-color: #0765cc;
}

.doc-score-summary {
  color: #0765cc;
  margin-top: 3mm;
  font-size: 9pt;
  line-height: 1.7;
}

.doc-score-summary p {
  margin: 0;
}

.doc-score-summary strong {
  color: #33434a;
  font-weight: 650;
}

.feedback-sheet {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.feedback-sheet > h1 {
  text-align: center;
  color: #1d2c17;
  background: #e0efc1;
  border: 1px solid #80af35;
  border-radius: 4mm;
  flex-shrink: 0;
  margin: 0 0 5mm;
  padding: 4mm 1mm;
  font-size: 23pt;
  font-weight: 750;
}

.doc-name-row {
  flex-shrink: 0;
  gap: 9mm;
  margin-bottom: 3mm;
  font-size: 11pt;
  font-weight: 600;
  display: flex;
}

.doc-name-row > span {
  flex: 1;
  align-items: flex-end;
  gap: 2mm;
  display: flex;
}

.doc-name-row i, .doc-name-row .doc-line-value, .doc-name-row .doc-line-input {
  min-width: 0;
  height: 6mm;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid #3f4946;
  border-radius: 0;
  flex: 1;
  padding: 0;
  font-weight: 600;
}

.doc-name-row .doc-line-value {
  align-items: flex-end;
  font-style: normal;
  display: flex;
}

.doc-name-row .doc-line-input:focus {
  border-bottom-color: #0765cc;
  outline: none;
}

.rubric-table {
  border: 1px solid;
  border-radius: 0 0 3mm 3mm;
  flex-shrink: 0;
  margin-bottom: 4mm;
  overflow: hidden;
}

.green-table {
  color: #23402c;
  background: #f0f8e8;
  border-color: #7bc344;
}

.blue-table {
  color: #234b64;
  background: #eaf7fd;
  border-color: #49b0df;
}

.rubric-heading {
  grid-template-columns: minmax(0, 1fr) 28mm repeat(3, 17mm);
  align-items: center;
  gap: 0;
  padding: 1.5mm 0;
  display: grid;
}

.green-table .rubric-heading {
  background: #d5efba;
}

.blue-table .rubric-heading {
  background: #c5eaf9;
}

.rubric-heading h2 {
  min-width: 0;
  margin: 0;
  padding: 0 3mm;
  font-size: 18pt;
  font-weight: 750;
}

.rubric-heading b {
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 9pt;
  display: flex;
}

.plant-symbol {
  width: 10mm;
  height: 10mm;
  margin: auto;
}

.rubric-row {
  border-top: 1px solid;
  grid-template-columns: minmax(0, 1fr) 28mm repeat(3, 17mm);
  min-height: 14mm;
  display: grid;
}

.green-table .rubric-row {
  border-color: #7bc344;
}

.blue-table .rubric-row {
  border-color: #49b0df;
}

.rubric-row > div:first-child {
  min-width: 0;
  padding: 2mm 3mm;
}

.rubric-row h3 {
  margin: 0 0 1mm;
  font-size: 10.5pt;
  font-weight: 700;
}

.rubric-row p {
  margin: 0;
  font-size: 8pt;
}

.rubric-points {
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  align-items: center;
  gap: .35ch;
  width: 100%;
  height: 100%;
  font-size: 10pt;
  display: flex;
}

.cross-cell {
  border-left: 1px solid #8dcf6c;
  place-items: center;
  display: grid;
}

.blue-table .cross-cell {
  border-color: #86cde9;
}

.cross-box {
  color: #d73946;
  background: #fff;
  border: 1px solid #4f5e59;
  border-radius: .5mm;
  justify-content: center;
  align-items: center;
  width: 5mm;
  height: 5mm;
  font-family: Arial, sans-serif;
  font-size: 20pt;
  font-weight: 400;
  line-height: 1;
  display: flex;
}

.rubric-subtotal {
  border-top: 1px solid;
  grid-template-columns: minmax(0, 1fr) 28mm repeat(3, 17mm);
  align-items: center;
  padding: 3mm 0;
  font-size: 11pt;
  display: grid;
}

.green-table .rubric-subtotal {
  border-color: #7bc344;
}

.blue-table .rubric-subtotal {
  border-color: #49b0df;
}

.rubric-subtotal > b {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  padding: 0 3mm;
  overflow: hidden;
}

.rubric-subtotal > .rubric-points {
  grid-column: 2;
  font-size: 11pt;
}

.doc-total {
  color: #4d3340;
  background: #fbdcea;
  border: 1px solid #ed78a2;
  border-radius: 3mm;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 2mm;
  margin-bottom: 4mm;
  padding: 3mm;
  font-size: 12pt;
  display: flex;
}

.doc-total-grade {
  font-size: 16pt;
}

.doc-feedback {
  color: #45432e;
  background: #fff8d6;
  border: 1px solid #dec046;
  border-radius: 3mm;
  flex: none;
  min-height: 12mm;
  margin-bottom: 4mm;
  padding: 3mm 4mm;
}

.doc-feedback h3 {
  margin: 0 0 4mm;
  font-size: 12pt;
  font-weight: 650;
}

.doc-feedback p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 10pt;
  line-height: 1.45;
}

.doc-signatures {
  flex-shrink: 0;
  gap: 8mm;
  margin-top: auto;
  padding-top: 5mm;
  font-size: 8pt;
  display: flex;
}

.doc-signature-slot {
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
  min-height: 16mm;
  display: flex;
}

.doc-signature-image-wrap {
  justify-content: flex-start;
  align-items: flex-end;
  min-height: 12mm;
  margin-bottom: 1mm;
  display: flex;
}

.doc-signature-image {
  object-fit: contain;
  object-position: left bottom;
  max-width: 100%;
  max-height: 12mm;
}

.doc-signature-label {
  border-top: 1px solid #45514c;
  padding-top: 2mm;
}

.doc-footnote {
  color: #8e998b;
  flex-shrink: 0;
  margin: 3mm 0 0;
  font-size: 6.5pt;
  line-height: 1.4;
}

.compact-feedback > h1 {
  margin-bottom: 3.5mm;
  padding: 3mm 1mm;
  font-size: 18pt;
}

.compact-feedback .rubric-heading {
  padding: 1mm 0;
}

.compact-feedback .rubric-heading h2 {
  font-size: 14pt;
}

.compact-feedback .plant-symbol {
  width: 8mm;
  height: 8mm;
}

.compact-feedback .rubric-row {
  min-height: 9.5mm;
}

.compact-feedback .rubric-row > div:first-child {
  padding: 1.2mm 2.5mm;
}

.compact-feedback .rubric-row h3 {
  margin-bottom: .4mm;
  font-size: 9.5pt;
  line-height: 1.15;
}

.compact-feedback .rubric-row p {
  font-size: 7.5pt;
  line-height: 1.2;
}

.compact-feedback .rubric-table {
  margin-bottom: 2mm;
}

.compact-feedback .rubric-subtotal {
  padding: 1.4mm 0;
  font-size: 10pt;
}

.compact-feedback .doc-total {
  margin-bottom: 2mm;
  padding: 2mm 3mm;
  font-size: 11pt;
}

.compact-feedback .doc-feedback {
  min-height: 10mm;
  margin-bottom: 2mm;
  padding: 2mm 3mm;
}

.compact-feedback .doc-feedback h3 {
  margin-bottom: 1.5mm;
  font-size: 10.5pt;
}

.compact-feedback .doc-feedback p {
  font-size: 9pt;
  line-height: 1.3;
}

.compact-feedback .doc-signatures {
  padding-top: 2mm;
}

.compact-feedback .doc-signature-slot {
  min-height: 12mm;
}

.compact-feedback .doc-signature-image-wrap {
  min-height: 9mm;
}

.compact-feedback .doc-signature-image {
  max-height: 9mm;
}

.compact-feedback .grade-deviation {
  margin: 0 0 2mm;
  font-size: 8pt;
}

.dense-feedback > h1 {
  margin-bottom: 2.5mm;
  padding: 2mm 1mm;
  font-size: 15pt;
}

.dense-feedback .doc-name-row {
  margin-bottom: 1.5mm;
  font-size: 10pt;
}

.dense-feedback .rubric-heading h2 {
  font-size: 12pt;
}

.dense-feedback .plant-symbol {
  width: 7mm;
  height: 7mm;
}

.dense-feedback .rubric-row {
  min-height: 8mm;
}

.dense-feedback .rubric-row h3 {
  font-size: 8.5pt;
}

.dense-feedback .rubric-row p {
  display: none;
}

.dense-feedback .rubric-table {
  margin-bottom: 1.5mm;
}

.dense-feedback .rubric-subtotal {
  padding: 1mm 0;
  font-size: 9pt;
}

.dense-feedback .doc-total {
  margin-bottom: 1.5mm;
  padding: 1.5mm 2.5mm;
  font-size: 10pt;
}

.dense-feedback .doc-feedback {
  margin-bottom: 1.5mm;
  padding: 1.5mm 2.5mm;
}

.dense-feedback .doc-feedback h3 {
  margin-bottom: 1mm;
  font-size: 9.5pt;
}

.dense-feedback .doc-feedback p {
  font-size: 8pt;
  line-height: 1.25;
}

.dense-feedback .doc-signatures {
  padding-top: 1.5mm;
}

.dense-feedback .doc-signature-slot {
  min-height: 10mm;
}

.dense-feedback .doc-footnote {
  margin-top: 1.5mm;
}

.grade-deviation {
  color: #a4595b;
  flex-shrink: 0;
  margin: 0 0 3mm;
  font-size: 8pt;
}

.doc-empty {
  color: #a7ada2;
  padding: 15mm;
}

.print-root {
  background: #e9ede4;
}

.print-root .a4-page {
  margin: 10px auto;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  html, body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .print-root {
    background: #fff;
    margin: 0;
    padding: 0;
  }

  .print-root .a4-page {
    box-shadow: none;
    break-after: page;
    break-inside: avoid;
    margin: 0 !important;
  }

  .print-root .a4-page:last-child {
    break-after: auto;
  }
}

@media (max-width: 1200px) {
  .app-header {
    gap: 23px;
    padding: 0 18px;
  }

  .brand {
    min-width: 220px;
  }

  .main-nav {
    gap: 17px;
  }

  .editor {
    padding: 22px 18px;
    width: 370px !important;
  }

  .preview-toolbar {
    padding: 0 12px;
  }

  .preview-actions .expand-label {
    display: none;
  }

  .page-control {
    flex-wrap: wrap;
    padding: 12px;
  }

  .page-tabs button {
    padding: 5px;
  }
}

@media (max-width: 900px) {
  .header-right .local-pill {
    display: none;
  }

  .main-nav {
    gap: 13px;
  }

  .main-nav button {
    font-size: 11px;
  }

  .editor {
    min-width: 320px;
    padding: 20px 14px;
    width: 320px !important;
  }

  .workbench {
    overflow-x: auto;
  }

  .preview {
    min-width: 360px;
  }
}

@media (max-width: 640px) {
  .app-header {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    min-height: 80px;
    padding: 0 14px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .header-right {
    margin-left: 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    height: 28px;
  }

  .main-nav button {
    font-size: 10px;
  }

  .breadcrumb-bar {
    height: 44px;
    padding: 0 14px;
    font-size: 9px;
  }

  .workbench {
    height: calc(100dvh - 124px);
  }

  .upload-card {
    padding: 13px 5px;
  }

  .editor {
    min-width: 310px;
    width: 310px !important;
  }

  .divider {
    display: none;
  }
}

input:focus, textarea:focus, select:focus {
  border-color: #087c8f;
  outline: none;
}

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

.auth-page {
  isolation: isolate;
  background: linear-gradient(160deg, #e8f4f6c7 0%, #faf9f5b8 45%, #eef3f7cc 100%), url("/branding/auth-classroom.jpg") center / cover no-repeat;
  place-items: center;
  min-height: 100dvh;
  padding: 28px 16px;
  display: grid;
  position: relative;
}

.auth-card {
  border: 1px solid var(--line);
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  width: min(440px, 100%);
  padding: 28px 26px 24px;
  position: relative;
  box-shadow: 0 18px 50px #123e6124;
}

.auth-card.wide {
  width: min(720px, 100%);
}

.auth-card > .brand-logo {
  margin: 0 auto;
  display: block;
}

.auth-card h1 {
  letter-spacing: -.8px;
  text-align: center;
  margin: 10px 0 4px;
  font-size: 28px;
}

.auth-card h1 span {
  color: #007484;
}

.auth-lead {
  color: var(--muted);
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.5;
}

.auth-form {
  gap: 12px;
  display: grid;
}

.auth-form label {
  color: var(--muted);
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

.auth-form .field-hint {
  opacity: .85;
  font-size: 10px;
  font-weight: 500;
}

.auth-form .auth-submit, .auth-form > .primary-button {
  margin-top: 10px;
}

.auth-switch {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 13px;
}

.auth-switch a {
  color: var(--green);
  font-weight: 600;
}

.onboarding-modes {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.onboarding-modes button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f7fafb;
  border-radius: 999px;
  padding: 8px 12px;
}

.onboarding-modes button.active {
  color: var(--green);
  background: #e7f5f7;
  border-color: #9ecbd3;
  font-weight: 650;
}

.school-combobox {
  color: var(--muted);
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  position: relative;
}

.school-combobox-field {
  font-weight: 500;
  display: block;
  position: relative;
}

.school-combobox-field input {
  padding-right: 36px;
}

.school-combobox-chevron {
  color: var(--muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.school-combobox-menu {
  z-index: 8;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  max-height: 220px;
  margin: 0;
  padding: 4px;
  list-style: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  overflow: auto;
  box-shadow: 0 14px 34px #123e6124;
}

.school-combobox-menu button {
  text-align: left;
  width: 100%;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 8px;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  display: flex;
}

.school-combobox-menu button:hover, .school-combobox-menu button.active {
  background: #eef8fa;
}

.school-combobox-name {
  font-size: 13px;
  font-weight: 600;
}

.school-combobox-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.school-combobox-empty {
  color: var(--muted);
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.school-combobox-menu .school-combobox-create {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  white-space: nowrap;
  border-radius: 8px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
}

.school-combobox-menu .school-combobox-create:hover, .school-combobox-menu .school-combobox-create.active {
  color: #fff;
  background: #0d6672;
  border-color: #0d6672;
}

.create-school-modal {
  width: min(440px, 95vw);
}

.create-school-modal .auth-form {
  margin-top: 4px;
}

.create-school-modal .form-row {
  grid-template-columns: 7rem 1fr;
  gap: 10px;
  display: grid;
}

.create-school-modal .button-row {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.school-switcher select {
  width: auto;
  min-width: 140px;
  max-width: 200px;
  padding: 7px 10px;
  font-size: 12px;
}

.avv-page h2 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.avv-page p {
  color: var(--muted);
  line-height: 1.55;
}

.text-link-button {
  color: var(--green);
  cursor: pointer;
  font-weight: 650;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  display: inline;
}

.text-link-button:hover {
  color: #005f6b;
}

.avv-modal {
  width: min(560px, 95vw);
}

.avv-body h3 {
  color: var(--ink);
  margin: 16px 0 6px;
  font-size: 13px;
}

.avv-body p {
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.55;
}

.auth-form .approval-check {
  color: var(--ink);
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.45;
  display: flex;
}

.auth-form .approval-check input {
  flex-shrink: 0;
  margin-top: 2px;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

/* [project]/src/app/management.css [app-client] (css) */
.app-chrome {
  z-index: 30;
  background: #fff;
  position: sticky;
  top: 0;
  box-shadow: 0 3px 12px #123e6105;
}

.connection-summary {
  background: #eff8fa;
  border-radius: 12px;
  margin: 24px 0;
  padding: 20px;
}

.connection-summary > strong {
  color: var(--green);
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  display: flex;
}

.chatgpt-signin {
  color: #fff;
  cursor: pointer;
  background: #111;
  border: 1px solid #111;
  border-radius: 9px;
  margin-top: 16px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}

.chatgpt-signin:hover {
  background: #333;
}

.assistant-footer a {
  color: #087c8f;
  text-decoration: underline;
}

.openai-card .notice {
  margin: 16px 0;
}

.chatgpt-welcome p {
  margin: 16px 0 24px;
}

.preview-view-switch {
  flex-shrink: 0;
  gap: 8px;
  padding: 12px 20px 0;
  display: flex;
}

.preview-view-switch button {
  color: var(--muted);
  background: #f7fafc;
  border: 1px solid #d5e3e9;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: 11px;
  display: flex;
}

.preview-view-switch button.active {
  color: #087c8f;
  background: #fff;
  border-color: #087c8f;
  font-weight: 600;
}

.original-image {
  object-fit: contain;
  background: #fff;
  max-width: none;
  margin: 0 auto;
  display: block;
  box-shadow: 0 3px 16px #3d556114, 0 0 0 1px #d4dde1;
}

.redaction-overlay {
  background: #fff;
  max-width: none;
  margin: 0 auto;
  line-height: 0;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 16px #3d556114, 0 0 0 1px #d4dde1;
}

.redaction-overlay img {
  object-fit: contain;
  width: 100%;
  max-width: none;
  height: 100%;
  display: block;
}

.redaction-overlay-box {
  pointer-events: none;
  background: #000;
  position: absolute;
}

.original-thumbnail .redaction-overlay {
  width: 110px;
  height: 142px;
  box-shadow: none;
  border: 1px solid var(--line);
  background: #e8eef1;
  border-radius: 7px;
  margin: 0;
}

.photo-open-redact .redaction-overlay, .desktop-draft-list .redaction-overlay {
  width: 100%;
  height: 135px;
  box-shadow: none;
  background: #e8eef1;
  border: 1px solid #dce7ed;
  border-radius: 8px;
  margin: 0;
}

.desktop-draft-list .redaction-overlay {
  height: 120px;
}

.original-page-tabs {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.original-page-tabs button {
  white-space: nowrap;
  flex-shrink: 0;
}

.page-control {
  flex-wrap: wrap;
}

.image-strip button {
  color: var(--muted);
  text-align: left;
  background: none;
  border: 0;
  flex: 0 0 90px;
  padding: 0;
  font-size: 9px;
  display: block;
}

.image-strip button span {
  margin-top: 5px;
  display: block;
}

.image-strip button.active img {
  outline-offset: -2px;
  outline: 2px solid #087c8f;
}

.chat-input input {
  min-width: 0;
}

.chat-input button {
  flex-shrink: 0;
  min-width: 36px;
  min-height: 36px;
}

.chat-input .dictation-button {
  color: #087c8f;
  background: #edf6f8;
}

.chat-input .dictation-button.listening {
  color: #fff;
  background: #a63b35;
}

.dictation-help, .dictation-notice, .dictation-status {
  color: var(--muted);
  margin: 10px 0;
  font-size: 10px;
  line-height: 1.6;
}

.dictation-status {
  color: #9c342f;
  align-items: center;
  gap: 7px;
  display: flex;
}

.recording-dot {
  background: #a63b35;
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

@media (max-width: 700px) {
  .chat-input button {
    min-width: 44px;
    min-height: 44px;
  }

  .chat-input input {
    font-size: 16px;
  }

  .preview-view-switch {
    padding: 10px 12px 0;
  }
}

.mobile-capture-container, .mobile-mode-bar {
  display: none;
}

.transcription-progress {
  color: #315a70;
  background: #eef7f9;
  border: 1px solid #d1e5eb;
  border-radius: 10px;
  margin: 18px 0;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.transcription-progress p {
  margin: 0 0 12px;
}

.transcription-progress p:last-child {
  margin-bottom: 0;
}

.transcription-status {
  align-items: center;
  gap: 10px;
  display: flex;
}

.loading-spinner {
  color: #087c8f;
  flex-shrink: 0;
  animation: 1s linear infinite transcription-spin;
}

@keyframes transcription-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
}

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

.transcript-page-heading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.transcript-page-heading > div {
  gap: 8px;
  display: flex;
}

.transcript-page-tabs {
  gap: 8px;
  padding: 2px 0 14px;
  display: flex;
  overflow: auto;
}

.transcript-page-tabs button {
  white-space: nowrap;
  color: #315a70;
  background: #f4f9fa;
  border: 1px solid #d1e5eb;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 12px;
}

.transcript-page-tabs button.active {
  color: #fff;
  background: #087c8f;
  border-color: #087c8f;
}

.transcript-field {
  margin-top: 10px;
  position: relative;
}

.transcript-field .highlight-editor, .transcript-field textarea {
  width: 100%;
  display: block;
}

.transcript-loading {
  z-index: 2;
  text-align: center;
  color: #315a70;
  background: #f4fafcee;
  border: 1px solid #d1e5eb;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 28px;
  display: flex;
  position: absolute;
  inset: 0;
}

.transcript-loading span {
  font-size: 12px;
  line-height: 1.6;
}

.transcript-continuation {
  margin: 15px 0;
  font-size: 12px;
  display: block;
}

.transcript-continuation select {
  margin-top: 8px;
}

.legacy-transcript {
  background: #fffaf0;
  border: 1px solid #e4dcc7;
  border-radius: 10px;
  margin: 16px 0;
  padding: 16px;
  font-size: 12px;
  line-height: 1.7;
}

.legacy-transcript p {
  margin: 0 0 14px;
}

.legacy-transcript pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 14px 0;
  font-family: inherit;
}

.legacy-transcript details {
  margin-bottom: 14px;
}

.legacy-transcript summary {
  cursor: pointer;
  font-weight: 600;
}

.correction-progress > button {
  margin: 8px 10px 8px 0;
}

.assessment-suggestion {
  border-top: 1px solid #d1e5eb;
  margin: 18px 0;
  padding-top: 15px;
}

.assessment-suggestion p {
  margin-top: 16px;
}

.assessment-suggestion ol {
  margin: 16px 0;
  padding-left: 22px;
  list-style: decimal;
}

.assessment-suggestion li {
  padding: 4px 0;
}

.suggested-feedback {
  white-space: pre-wrap;
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}

@media (max-width: 700px) {
  .transcript-page-tabs button, .transcript-page-heading button {
    min-width: 44px;
    min-height: 44px;
  }

  .transcript-continuation select {
    font-size: 16px;
  }
}

.transcription-progress.error {
  background: #fff8ec;
  border-color: #e8d9bb;
}

.transcription-progress pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 16px 0;
  font-family: inherit;
}

.transcription-progress summary {
  cursor: pointer;
  font-weight: 600;
}

.transcription-progress .button-row {
  flex-wrap: wrap;
  gap: 14px;
}

.original-thumbnail {
  flex: 0 0 110px;
}

.original-thumbnail > button:first-child {
  text-align: left;
  font-size: 10px;
  display: block;
}

.image-strip .original-thumbnail img {
  width: 110px;
  height: 142px;
}

.image-remove-button {
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11px;
  display: flex;
}

.image-remove-confirm {
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  display: flex;
}

.image-remove-confirm button {
  justify-content: center;
  width: 100%;
}

.pending-photos {
  border-top: 1px solid #dce7ed;
  margin: 24px 0;
  padding-top: 22px;
}

.photo-card {
  min-width: 0;
}

.photo-card a, .photo-card .photo-open-redact {
  text-align: left;
  width: 100%;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  display: block;
}

.photo-card .image-remove-button {
  width: 100%;
  padding: 6px 2px;
  font-size: 11px;
}

.redact-button {
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 11px;
}

.desktop-pending-photos {
  margin-top: 14px;
  padding: 12px 0 0;
}

.desktop-pending-photos h3 {
  margin: 0 0 10px;
  font-size: 12px;
}

.desktop-draft-list {
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.desktop-draft-list span {
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
  display: block;
}

.redaction-editor-overlay {
  z-index: 120;
  background: #122028b8;
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.redaction-editor-panel {
  background: #f7fbfd;
  border: 1px solid #c9dbe3;
  border-radius: 14px;
  flex-direction: column;
  width: min(920px, 100%);
  height: min(96dvh, 1100px);
  max-height: min(96dvh, 1100px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 18px 48px #14283247;
}

.redaction-editor-header {
  border-bottom: 1px solid #d7e5ec;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px 12px;
  display: flex;
}

.redaction-editor-header h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 650;
}

.redaction-editor-header p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.redaction-editor-header .icon-button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
}

.redaction-editor-stage {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: crosshair;
  background: #e4e4e4;
  border-radius: 10px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 14px 18px;
  position: relative;
  overflow: hidden;
}

.redaction-editor-image {
  pointer-events: none;
  display: block;
  position: absolute;
}

.redaction-editor-measure-img {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  position: absolute;
}

.redaction-editor-frame {
  pointer-events: none;
  position: absolute;
}

.redaction-box {
  box-sizing: border-box;
  background: #000;
  border: 1px solid #ffffff59;
  position: absolute;
}

.redaction-box.drafting {
  background: #000000d1;
  border-style: dashed;
}

.redaction-editor-footer {
  border-top: 1px solid #d7e5ec;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 16px;
  display: flex;
}

@media (max-width: 700px) {
  .redaction-editor-overlay {
    align-items: stretch;
    padding: 0;
  }

  .redaction-editor-panel {
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .redaction-editor-footer {
    flex-direction: column;
  }

  .redaction-editor-footer button {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }
}

.page-order {
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.page-order button {
  color: #315a70;
  background: #eef7f9;
  border: 1px solid #d1e5eb;
  border-radius: 6px;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  display: flex;
}

.image-strip .image-remove-button {
  flex: initial;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  font-size: 11px;
  display: flex;
}

.image-strip .image-remove-confirm button {
  flex: initial;
  min-height: 30px;
}

.image-strip .image-remove-confirm .danger-button {
  color: #fff;
  background: #ad554b;
  border-radius: 6px;
  padding: 6px;
}

@media (max-width: 700px) {
  .mobile-capture-container {
    display: block;
  }

  .mobile-capture-container.hidden-view {
    display: none;
  }

  .mobile-capture-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 22px 16px 26px;
  }

  .mobile-capture-heading {
    margin-bottom: 22px;
  }

  .mobile-capture-heading h1 {
    margin: 9px 0;
    font-size: 25px;
    font-weight: 650;
  }

  .mobile-capture-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }

  .mobile-capture-card {
    background: #fff;
    border: 1px solid #dce7ed;
    border-radius: 14px;
    margin-bottom: 18px;
    padding: 20px;
  }

  .mobile-capture-card h2 {
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 650;
    display: flex;
  }

  .mobile-capture-card label {
    margin: 0 0 17px;
    font-size: 13px;
    display: block;
  }

  .mobile-capture-card label input, .mobile-capture-card label select {
    min-height: 48px;
    margin-top: 9px;
    font-size: 16px;
  }

  .mobile-capture-card p, .mobile-capture-footer {
    color: var(--muted);
    margin: 15px 0;
    font-size: 12px;
    line-height: 1.7;
  }

  .mobile-capture-card button {
    min-height: 48px;
    font-size: 14px;
  }

  .mobile-capture-modes {
    gap: 8px;
    margin: 0 0 18px;
    display: flex;
  }

  .mobile-capture-modes button {
    min-height: 48px;
    color: var(--muted);
    background: #fff;
    border: 1px solid #d5e3e9;
    border-radius: 9px;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    display: flex;
  }

  .mobile-capture-modes button.active {
    color: #087c8f;
    background: #edf7f9;
    border-color: #087c8f;
  }

  .mobile-photo-actions {
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    display: flex;
  }

  .mobile-photo-actions button {
    justify-content: center;
    padding: 14px;
  }

  .mobile-photo-summary {
    border-top: 1px solid #e0e9ef;
    margin-top: 23px;
    padding-top: 22px;
  }

  .mobile-photo-summary h2 {
    margin: 0 0 8px;
  }

  .mobile-photo-summary p {
    color: #087c8f;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    display: flex;
  }

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

  .mobile-photo-grid a {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
  }

  .mobile-photo-grid img {
    object-fit: cover;
    border: 1px solid #dce7ed;
    border-radius: 8px;
    width: 100%;
    height: 135px;
  }

  .mobile-photo-grid span {
    margin-top: 5px;
    display: block;
  }

  .mobile-review-link {
    margin-top: 20px;
  }

  .mobile-mode-bar {
    background: #f4f8fb;
    border-top: 1px solid #dce7ed;
    gap: 7px;
    padding: 10px 16px;
    display: flex;
  }

  .mobile-mode-bar button {
    min-height: 44px;
    color: var(--muted);
    background: #fff;
    border: 1px solid #d5e3e9;
    border-radius: 8px;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    display: flex;
  }

  .mobile-mode-bar button.active {
    color: #087c8f;
    border-color: #087c8f;
  }

  .workbench.mobile-capture {
    display: none;
  }

  .workbench.mobile-editor, .workbench.mobile-preview {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
  }

  .workbench .divider {
    display: none;
  }

  .workbench.mobile-editor .editor {
    width: 100%;
    min-width: 0;
    padding: 23px 18px;
    display: block;
    overflow: visible;
  }

  .workbench.mobile-editor .preview, .workbench.mobile-preview .editor {
    display: none;
  }

  .workbench.mobile-preview .preview {
    width: 100%;
    min-width: 0;
    height: calc(100dvh - var(--app-chrome-height, 143px) - 65px);
    display: flex;
  }

  .workbench.mobile-preview .preview.expanded {
    height: 100dvh;
  }

  .editor .tabs {
    gap: 10px;
  }

  .editor .tabs button {
    padding: 10px 5px;
    font-size: 12px;
  }

  .editor .transcript-input, .editor .feedback-input {
    font-size: 16px;
  }

  .editor-heading {
    gap: 10px;
  }

  .editor-heading h2 {
    font-size: 25px;
  }

  .header-right {
    gap: 8px;
  }

  .header-account-name {
    display: none;
  }

  .header-account-chip {
    padding: 3px;
  }

  .brand p {
    display: none;
  }

  .brand-logo {
    width: 43px;
    height: 43px;
  }

  .brand h1 {
    font-size: 16px;
  }

  .brand {
    gap: 6px;
  }
}

.home-welcome {
  background: #eff8fa;
  border: 1px solid #dcebf0;
  border-radius: 12px;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
  padding: 24px;
  display: flex;
}

.home-welcome .entity-icon {
  background: #fff;
  margin: 0;
}

.home-welcome h2 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 600;
}

.home-welcome p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.home-welcome .local-pill {
  white-space: nowrap;
  margin-left: auto;
}

.home-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 36px;
  display: grid;
}

.home-page .page-heading {
  margin-bottom: 32px;
}

.home-page .page-stats {
  gap: 22px;
  margin-bottom: 34px;
}

.home-actions .entity-card {
  padding: 26px;
}

.home-page .page-section-heading {
  margin-bottom: 20px;
}

.workbench {
  height: calc(100dvh - var(--app-chrome-height, 133px));
}

.brand {
  color: inherit;
  text-decoration: none;
}

.main-nav a {
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  display: flex;
  position: relative;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--green);
}

.breadcrumb-item {
  align-items: center;
  gap: 9px;
  min-width: 0;
  display: inline-flex;
}

.breadcrumb-bar {
  overflow-x: auto;
}

.breadcrumb-bar a {
  color: var(--muted);
  white-space: nowrap;
  border-radius: 4px;
  align-items: center;
  text-decoration: none;
  display: inline-flex;
}

.breadcrumb-bar a:hover {
  color: var(--green);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.breadcrumb-bar a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.management-page {
  max-width: 1400px;
  min-height: calc(100dvh - 133px);
  margin: 0 auto;
  padding: 34px 40px 60px;
}

.page-heading {
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  display: flex;
}

.page-heading-media {
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 16px;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.page-heading > .button-row {
  flex-shrink: 0;
  margin-left: auto;
}

.page-heading h1 {
  letter-spacing: -.8px;
  margin: 8px 0 9px;
  font-size: 31px;
  font-weight: 650;
  line-height: 1.3;
}

.page-heading p {
  color: var(--muted);
  max-width: 680px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.page-heading .primary-button, .page-heading .secondary-button {
  padding: 11px 14px;
  font-size: 12px;
}

.page-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  display: grid;
}

.stat-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  gap: 14px;
  padding: 21px;
  display: flex;
}

.stat-card strong {
  letter-spacing: -.5px;
  font-size: 29px;
  font-weight: 650;
  line-height: 1;
}

.stat-card p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 11px;
}

.entity-icon {
  color: #1d7380;
  background: #eef7f9;
  border-radius: 11px;
  flex-shrink: 0;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 16px;
  display: grid;
}

.stat-card .entity-icon, .management-row .entity-icon, .management-row .entity-thumb {
  margin-bottom: 0;
}

.entity-thumb {
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 11px;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
}

.entity-card-image {
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: block;
}

.class-image-editor {
  gap: 10px;
  margin: 4px 0 12px;
  display: grid;
}

.class-image-preview-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  display: flex;
}

.class-image-preview, .entity-card-image, .entity-thumb, .page-heading-media {
  background: #fff;
  border: 1px solid #d5dee3;
}

.class-image-preview {
  object-fit: cover;
  border-radius: 18px;
  width: 96px;
  height: 96px;
}

.class-image-placeholder {
  color: #1d7380;
  background: #f4f8fb;
  border: 1px dashed #b7c8d0;
  border-radius: 18px;
  place-items: center;
  width: 96px;
  height: 96px;
  display: grid;
}

.class-image-actions {
  margin: 0;
}

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

.page-section-heading h2 {
  letter-spacing: -.2px;
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.page-section-heading .text-button {
  font-size: 11px;
}

.child-panel-toolbar {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  display: flex;
}

.child-panel-toolbar > .primary-button, .child-panel-toolbar > .secondary-button {
  flex: none;
  margin-left: auto;
}

.child-panel-desc {
  color: var(--muted);
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.school-year-filter {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  display: flex;
}

.school-year-filter-sep {
  background: var(--line);
  flex: none;
  width: 1px;
  height: 22px;
  margin: 0 4px;
}

.school-year-chip {
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  background: #fff;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
}

.school-year-chip[aria-pressed="true"] {
  color: #007c8e;
  background: #e9f6f8;
  border-color: #7ebcc8;
}

.school-year-chip:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #08788a;
}

.school-year-chip-subtle {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 550;
}

.earlier-corrections {
  margin: 8px 0 24px;
}

.earlier-corrections-toggle {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

.earlier-corrections-toggle svg {
  transition: transform .15s;
}

.earlier-corrections-toggle svg.expanded {
  transform: rotate(180deg);
}

.earlier-corrections-toggle:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #08788a;
}

.project-tabs {
  border-bottom: 1px solid var(--line);
  gap: 0;
  margin: 8px 0 24px;
  display: flex;
}

.project-tabs button {
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid #0000;
  border-radius: 7px 7px 0 0;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.project-tabs button:hover {
  color: #315a70;
  background: #f3f8fa;
}

.project-tabs button[aria-selected="true"] {
  color: #007c8e;
  background: #e9f6f8;
  border-bottom-color: #0098aa;
}

.project-tabs button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #08788a;
}

.project-tab-panel[hidden] {
  display: none !important;
}

.project-statistics {
  margin-top: 0;
  padding-top: 0;
}

.project-statistics .page-section-heading p, .statistics-scope {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.project-statistics .page-section-heading label {
  min-width: 220px;
}

.statistics-summary, .statistics-charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
  display: grid;
}

.project-statistics .settings-card {
  min-width: 0;
  margin: 0;
}

.statistics-summary strong {
  margin: 15px 0;
  font-size: 32px;
  font-weight: 700;
  display: block;
}

.statistics-summary h3, .statistics-charts h3, .project-statistics h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.statistics-controls {
  gap: 12px;
  margin: 16px 0;
  display: flex;
}

.statistics-controls label {
  flex: 1;
  min-width: 0;
}

.statistics-controls select {
  width: 100%;
}

.grade-distribution {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 12px;
  display: grid;
}

.grade-distribution-column {
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  display: flex;
}

.grade-distribution-column > strong {
  font-size: 18px;
}

.grade-distribution-track {
  background: repeating-linear-gradient(to top, #0000 0 36px, #e5edf1 37px 38px);
  border-bottom: 1px solid #80939e;
  align-items: flex-end;
  width: 100%;
  height: 150px;
  display: flex;
}

.grade-distribution-track span {
  border-radius: 5px 5px 0 0;
  width: 100%;
  display: block;
}

.grade-distribution-column small {
  color: var(--muted);
  font-size: 11px;
}

.result-axis {
  color: var(--muted);
  justify-content: space-between;
  margin: 18px 66px 7px 137px;
  font-size: 10px;
  display: flex;
}

.result-bars {
  max-height: 520px;
  padding-right: 3px;
  overflow: auto;
}

.result-bar-row {
  color: var(--ink);
  grid-template-columns: 125px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 11px;
  text-decoration: none;
  display: grid;
}

.result-bar-row:hover {
  background: #edf7f8;
}

.result-bar-row:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #08788a;
}

.result-bar-row > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.result-bar-row > b {
  text-align: right;
}

.result-bar-track {
  background: repeating-linear-gradient(to right, #f3f7f9 0 calc(25% - 1px), #d8e3e9 calc(25% - 1px) 25%);
  border-left: 1px solid #7c929f;
  height: 22px;
}

.result-bar-track span {
  border-radius: 0 3px 3px 0;
  height: 100%;
  display: block;
}

.competence-chart-row {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 8px 20px;
  margin: 20px 0;
  font-size: 12px;
  display: grid;
}

.competence-chart-row small {
  color: var(--muted);
  grid-column: 2;
  font-size: 11px;
}

.competence-stacked-bar {
  border-radius: 5px;
  height: 34px;
  display: flex;
  overflow: hidden;
}

.competence-stacked-bar span {
  color: #203b2b;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  display: flex;
}

.competence-stacked-bar .plant-symbol {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
}

@media (max-width: 1000px) {
  .statistics-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-tabs {
    gap: 0;
  }

  .project-tabs button {
    flex: 1;
    gap: 6px;
    padding: 10px 7px;
    font-size: 11px;
  }

  .project-statistics .page-section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .statistics-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .statistics-controls {
    flex-direction: column;
  }

  .grade-distribution {
    gap: 6px;
  }

  .grade-distribution-column {
    font-size: 10px;
  }

  .result-axis {
    margin-left: 0;
  }

  .result-bar-row {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 5px 12px;
    margin-bottom: 6px;
  }

  .result-bar-row > strong {
    grid-column: 1 / -1;
  }

  .competence-chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .competence-chart-row small {
    grid-column: 1;
  }
}

.entity-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  display: grid;
}

.entity-card {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
  display: block;
}

.entity-card:hover {
  border-color: #97cbd6;
  box-shadow: 0 4px 18px #123e6109;
}

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

.entity-card-top .entity-icon {
  margin-bottom: 0;
}

.project-card-stats {
  text-align: right;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  display: flex;
}

.project-card-stats > div {
  align-items: baseline;
  gap: 6px;
  display: flex;
}

.project-card-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.project-card-stats strong {
  color: var(--ink);
  letter-spacing: -.2px;
  font-size: 13px;
  font-weight: 650;
}

.entity-card h2 {
  letter-spacing: -.3px;
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
}

.entity-card p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.entity-card-footer {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 10px;
  display: flex;
}

.project-progress {
  background: #edf4f7;
  border-radius: 6px;
  height: 5px;
  margin-top: 22px;
  overflow: hidden;
}

.entity-card .project-created-date {
  color: var(--muted);
  margin-top: 9px;
  font-size: 10px;
}

.project-created-heading {
  color: var(--muted);
  margin: -14px 0 24px;
  font-size: 11px;
}

.project-progress > div {
  background: #16a2b4;
  border-radius: 6px;
  height: 100%;
}

.settings-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  min-width: 0;
  margin-bottom: 20px;
  padding: 25px;
}

.settings-card h2 {
  letter-spacing: -.2px;
  margin: 0 0 13px;
  font-size: 16px;
  font-weight: 650;
}

.settings-card h3 {
  margin: 25px 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.settings-card p {
  color: var(--muted);
  margin: 8px 0 16px;
  font-size: 11px;
  line-height: 1.8;
}

.settings-card label {
  color: var(--muted);
  margin: 15px 0 7px;
  font-size: 11px;
  font-weight: 500;
  display: block;
}

.settings-card label > input, .settings-card label > select, .settings-card label > textarea {
  margin-top: 7px;
  font-size: 12px;
}

.settings-card form > .primary-button {
  margin-top: 17px;
}

.settings-card .approval-check {
  font-size: 11px;
  display: flex;
}

.settings-card .approval-check input {
  margin-top: 2px;
}

.settings-card .button-row {
  margin-top: 18px;
}

.settings-card .page-section-heading {
  margin-top: 0;
}

.settings-card .page-section-heading h2 {
  margin: 0;
}

.inline-create-form {
  align-items: flex-end;
  gap: 14px;
  display: flex;
}

.inline-create-form label {
  flex: 1;
  margin: 0;
}

.inline-create-form .primary-button {
  min-height: 39px;
  margin: 0;
}

.create-project-card {
  background: #fafdfe;
  border-style: dashed;
  margin-top: 27px;
}

.wizard-launch {
  color: #fff;
  background: radial-gradient(80% 120% at 0 0, #1a9eae33, #0000 55%), linear-gradient(135deg, #0d5f6a 0%, #147a87 48%, #1a8f7a 100%);
  border-radius: 22px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 28px 30px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px #0d5f6a33;
}

.wizard-launch:before {
  content: "";
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(circle at 12% 80%, #fff3 0 2px, #0000 3px), radial-gradient(circle at 88% 22%, #fff2 0 1.5px, #0000 2.5px), radial-gradient(circle at 70% 78%, #fff2 0 1px, #0000 2px);
  position: absolute;
  inset: 0;
}

.wizard-launch-art {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  position: relative;
}

.wizard-launch-orb {
  color: #0f7584;
  background: #fff;
  border-radius: 28px;
  place-items: center;
  animation: 3.2s ease-in-out infinite wizard-bob;
  display: grid;
  position: absolute;
  inset: 12px;
  box-shadow: 0 10px 24px #06343a44;
}

.wizard-launch-chip {
  color: #0f7584;
  background: #ffffffea;
  border-radius: 12px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
  position: absolute;
  box-shadow: 0 6px 14px #06343a33;
}

.wizard-launch-chip:nth-child(2) {
  animation: 2.8s ease-in-out infinite wizard-float;
  top: 0;
  right: 4px;
}

.wizard-launch-chip:nth-child(3) {
  animation: 3.4s ease-in-out .4s infinite wizard-float;
  bottom: 2px;
  left: 0;
}

.wizard-launch-chip:nth-child(4) {
  animation: 3s ease-in-out .8s infinite wizard-float;
  top: 8px;
  left: -6px;
}

.wizard-launch-chip:nth-child(5) {
  animation: 2.6s ease-in-out 1.1s infinite wizard-float;
  bottom: 8px;
  right: -4px;
}

.wizard-launch-copy {
  min-width: 0;
  position: relative;
}

.wizard-launch-copy h2 {
  letter-spacing: -.6px;
  color: #fff;
  margin: 4px 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.wizard-launch-copy > p:not(.wizard-eyebrow) {
  color: #d7f0f3;
  max-width: 42ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.wizard-eyebrow {
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9ed7de;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.wizard-launch .wizard-eyebrow {
  color: #b7e8ed;
}

.wizard-launch-steps {
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.wizard-launch-steps li {
  color: #eaf8fa;
  background: #ffffff1f;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.wizard-launch-button {
  color: #0d5f6a;
  background: #fff;
  border-color: #fff;
  border-radius: 12px;
  flex-shrink: 0;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 13px;
  position: relative;
  box-shadow: 0 8px 20px #06343a33;
}

.wizard-launch-button:hover {
  background: #eef8fa;
}

.wizard-overlay {
  z-index: 90;
  place-items: center;
  padding: 18px;
  animation: .28s ease-out wizard-fade-in;
  display: grid;
  position: fixed;
  inset: 0;
}

.wizard-backdrop {
  pointer-events: none;
  background: linear-gradient(160deg, #0a3d46 0%, #125f6a 42%, #1a7468 100%);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wizard-blob {
  filter: blur(40px);
  opacity: .45;
  pointer-events: none;
  border-radius: 50%;
  position: absolute;
}

.wizard-blob-1 {
  background: #2ec4b6;
  width: 420px;
  height: 420px;
  animation: 14s ease-in-out infinite wizard-drift;
  top: -120px;
  left: -80px;
}

.wizard-blob-2 {
  opacity: .28;
  background: #f0b429;
  width: 360px;
  height: 360px;
  animation: 18s ease-in-out .8s infinite reverse wizard-drift;
  bottom: -100px;
  right: -60px;
}

.wizard-blob-3 {
  opacity: .22;
  background: #7ad4e0;
  width: 280px;
  height: 280px;
  animation: 12s ease-in-out 1.4s infinite wizard-drift;
  top: 40%;
  left: 55%;
}

.wizard-confetti {
  pointer-events: none;
  color: #fff5;
  position: absolute;
  inset: 0;
}

.wizard-confetti > svg {
  width: 28px;
  height: 28px;
  animation: 5s ease-in-out infinite wizard-float;
  position: absolute;
}

.wizard-confetti > svg:first-child {
  animation-delay: 0s;
  top: 12%;
  left: 8%;
}

.wizard-confetti > svg:nth-child(2) {
  width: 22px;
  animation-delay: .6s;
  top: 18%;
  right: 12%;
}

.wizard-confetti > svg:nth-child(3) {
  width: 24px;
  animation-delay: 1.1s;
  bottom: 16%;
  left: 14%;
}

.wizard-confetti > svg:nth-child(4) {
  width: 20px;
  animation-delay: 1.7s;
  top: 42%;
  left: 4%;
}

.wizard-confetti > svg:nth-child(5) {
  animation-delay: .3s;
  bottom: 22%;
  right: 8%;
}

.wizard-confetti > svg:nth-child(6) {
  width: 18px;
  animation-delay: 2s;
  top: 8%;
  left: 42%;
}

.wizard-confetti > svg:nth-child(7) {
  width: 22px;
  animation-delay: 1.4s;
  bottom: 10%;
  left: 48%;
}

.wizard-confetti > svg:nth-child(8) {
  width: 26px;
  animation-delay: .9s;
  top: 55%;
  right: 5%;
}

.wizard-shell {
  z-index: 1;
  background: #f7fbfd;
  border: 1px solid #fff5;
  border-radius: 24px;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(92dvh, 920px);
  animation: .34s cubic-bezier(.2, .8, .2, 1) wizard-rise;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px #04222866;
}

.wizard-topbar {
  background: #fff;
  border-bottom: 1px solid #d7e6eb;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 12px;
  display: flex;
}

.wizard-brand {
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.wizard-brand-badge {
  color: #fff;
  background: linear-gradient(145deg, #0f7584, #1a9e8f);
  border-radius: 16px;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  display: grid;
  transform: rotate(-3deg);
  box-shadow: 0 8px 18px #0f758440;
}

.wizard-brand h2 {
  letter-spacing: -.4px;
  color: var(--ink);
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.wizard-brand .wizard-eyebrow {
  color: #5f8892;
}

.wizard-close {
  width: 40px;
  height: 40px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #d5e3e9;
  border-radius: 12px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.wizard-close:hover:not(:disabled) {
  color: var(--ink);
  background: #eef5f7;
}

.wizard-rail {
  background: #fff;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 16px 22px 14px;
  list-style: none;
  display: flex;
  overflow-x: auto;
}

.wizard-rail li {
  color: #7a9099;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.wizard-rail-icon {
  color: #4d6670;
  background: #e8f0f3;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  transition: background .2s, color .2s, box-shadow .2s;
  display: grid;
}

.wizard-rail-label {
  white-space: nowrap;
}

.wizard-rail-line {
  background: #d5e3e9;
  border-radius: 2px;
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  margin: 0 10px;
}

.wizard-rail li.active {
  color: #0f7584;
}

.wizard-rail li.active .wizard-rail-icon {
  color: #fff;
  background: #0f7584;
  box-shadow: 0 0 0 3px #dff0f4, 0 0 0 5px #0f758433;
}

.wizard-rail li.done {
  color: #2f6b45;
}

.wizard-rail li.done .wizard-rail-icon {
  color: #fff;
  background: #3d8f5c;
}

.wizard-rail li.done .wizard-rail-line {
  background: #3d8f5c;
}

.wizard-body {
  flex: 1;
  min-height: 0;
  padding: 18px 22px 8px;
  overflow: auto;
}

.wizard-panel {
  flex-direction: column;
  gap: 16px;
  animation: .28s ease-out wizard-panel-in;
  display: flex;
}

.wizard-lead {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.wizard-field {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.wizard-field > input, .wizard-field > select {
  border-radius: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 14px;
}

.wizard-hero-panel {
  align-items: stretch;
}

.wizard-hero-art {
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  display: flex;
}

.wizard-hero-art span {
  color: #0f7584;
  background: #fff;
  border: 1px solid #d5e3e9;
  border-radius: 16px;
  place-items: center;
  width: 52px;
  height: 52px;
  display: grid;
  box-shadow: 0 6px 14px #123e610c;
}

.wizard-hero-art span:nth-child(2) {
  color: #1a8f7a;
}

.wizard-hero-art span:nth-child(3) {
  color: #c9891a;
}

.wizard-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.wizard-choice {
  text-align: left;
  min-height: 168px;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  border: 1px solid #d5e3e9;
  border-radius: 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
}

.wizard-choice:hover:not(:disabled) {
  border-color: #97cbd6;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px #123e610f;
}

.wizard-choice.active {
  background: #f3fafb;
  border-color: #0f7584;
  box-shadow: 0 0 0 2px #0f7584, 0 12px 24px #0f758422;
}

.wizard-choice:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.wizard-choice-icon {
  color: #0f7584;
  background: linear-gradient(145deg, #e8f6f8, #dff0f0);
  border-radius: 16px;
  place-items: center;
  width: 52px;
  height: 52px;
  display: grid;
}

.wizard-choice.active .wizard-choice-icon {
  color: #fff;
  background: linear-gradient(145deg, #0f7584, #1a9e8f);
}

.wizard-choice strong {
  font-size: 15px;
}

.wizard-choice > span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wizard-upload {
  color: var(--ink);
  cursor: pointer;
  background: radial-gradient(circle at 20% 20%, #e8f8fa, #0000 40%), radial-gradient(circle at 80% 80%, #eef6ea, #0000 42%), #fff;
  border: 2px dashed #a9c9d2;
  border-radius: 20px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 18px;
  transition: border-color .15s, transform .15s;
  display: flex;
}

.wizard-upload:hover:not(:disabled) {
  border-color: #0f7584;
  transform: translateY(-1px);
}

.wizard-upload:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.wizard-upload-icons {
  color: #0f7584;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 4px;
  display: flex;
}

.wizard-upload-icons svg:nth-child(2) {
  color: #1a8f7a;
  transform: translateY(4px);
}

.wizard-upload-icons svg:nth-child(3) {
  color: #c9891a;
  transform: translateY(-2px);
}

.wizard-upload strong {
  font-size: 15px;
}

.wizard-upload > span {
  color: var(--muted);
  font-size: 12px;
}

.wizard-preview-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  display: grid;
}

.wizard-preview-card {
  background: #fff;
  border: 1px solid #e0ebef;
  border-radius: 12px;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  display: flex;
}

.wizard-preview-thumb {
  cursor: zoom-in;
  background: #e8eef1;
  border: 0;
  border-radius: 8px;
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
}

.wizard-preview-thumb .redaction-overlay {
  width: 100%;
  height: 110px;
  box-shadow: none;
  background: #e8eef1;
  border: 0;
  border-radius: 8px;
  margin: 0;
}

.wizard-preview-thumb:hover {
  outline-offset: 1px;
  outline: 2px solid #0f7584;
}

.wizard-preview-card span {
  font-size: 12px;
  font-weight: 600;
}

.wizard-preview-actions {
  align-items: center;
  gap: 6px;
  display: flex;
}

.wizard-redact-button {
  flex: 1;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 11px;
}

.wizard-preview-remove {
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 8px;
  flex-shrink: 0;
  place-items: center;
  padding: 0;
  display: grid;
}

.wizard-preview-remove:hover {
  color: #9b5644;
  background: #f1f5f7;
}

.wizard-zoom {
  z-index: 110;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  background: #042228cc;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 28px;
  display: flex;
  position: fixed;
  inset: 0;
}

.wizard-zoom-frame {
  cursor: default;
  background: #fff;
  border-radius: 12px;
  width: min(920px, 100vw - 56px);
  height: min(88dvh, 100dvh - 56px);
  overflow: hidden;
  box-shadow: 0 24px 60px #0008;
}

.wizard-zoom-frame .redaction-overlay {
  width: 100%;
  height: 100%;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  margin: 0;
}

.wizard-zoom-close {
  z-index: 111;
  color: #fff;
  background: #fff2;
  border: 1px solid #fff4;
  border-radius: 12px;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  position: fixed;
  top: 18px;
  right: 18px;
}

.wizard-zoom-close:hover {
  background: #fff3;
}

.wizard-groups {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.wizard-group {
  background: #f7fbfc;
  border: 1px solid #cfe0e6;
  border-radius: 14px;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  display: flex;
}

.wizard-group.dragging {
  opacity: .55;
}

.wizard-group.drop-before {
  box-shadow: inset 0 3px #0f7584;
}

.wizard-group.drop-after {
  box-shadow: inset 0 -3px #0f7584;
}

.wizard-group-heading {
  align-items: end;
  gap: 8px;
  display: flex;
}

.wizard-group-name {
  flex: 1;
  margin: 0;
}

.wizard-drag-handle {
  width: 38px;
  height: 38px;
  color: var(--muted);
  cursor: grab;
  background: #fff;
  border: 1px solid #d5e3e9;
  border-radius: 8px;
  flex-shrink: 0;
  place-items: center;
  padding: 0;
  display: grid;
}

.wizard-drag-handle:active {
  cursor: grabbing;
}

.wizard-criteria {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.wizard-criterion {
  background: #fff;
  border: 1px solid #e0ebef;
  border-radius: 10px;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  display: flex;
}

.wizard-criterion.dragging {
  opacity: .55;
}

.wizard-criterion.drop-before {
  box-shadow: inset 0 3px #0f7584;
}

.wizard-criterion.drop-after {
  box-shadow: inset 0 -3px #0f7584;
}

.wizard-criterion-row {
  grid-template-columns: 38px minmax(0, 1fr) 96px 38px;
  align-items: end;
  gap: 10px;
  display: grid;
}

.wizard-criterion-points {
  min-width: 0;
}

.wizard-criterion-action {
  flex-direction: column;
  gap: 6px;
  min-width: 38px;
  display: flex;
}

.wizard-criterion-action-spacer {
  visibility: hidden;
  height: 1.2em;
  font-size: 12px;
  line-height: 1.2;
}

.wizard-criterion-action .icon-action {
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
}

.wizard-criterion small {
  color: var(--muted);
  margin-left: 48px;
}

.wizard-review-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.wizard-actions {
  background: #fff;
  border-top: 1px solid #d7e6eb;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 18px;
  display: flex;
}

.wizard-next {
  border-radius: 11px;
  min-width: 160px;
  min-height: 42px;
  font-size: 13px;
}

.wizard-thinking {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 28px 16px;
  display: flex;
}

.wizard-thinking-stage {
  width: 220px;
  height: 220px;
  margin-bottom: 8px;
  position: relative;
}

.wizard-thinking-core {
  z-index: 2;
  color: #0f7584;
  background: linear-gradient(145deg, #fff, #e8f6f8);
  border: 1px solid #cfe3e8;
  border-radius: 28px;
  place-items: center;
  display: grid;
  position: absolute;
  inset: 58px;
  box-shadow: 0 14px 30px #0f758425;
}

.wizard-pen {
  transform-origin: 70% 90%;
  animation: 1.1s ease-in-out infinite wizard-pen-wiggle;
}

.wizard-scribble {
  pointer-events: none;
  width: 72px;
  height: 28px;
  margin-left: -36px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  overflow: visible;
}

.wizard-scribble path {
  stroke: #0f7584;
  stroke-width: 2.5px;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 90;
  stroke-dashoffset: 90px;
  animation: 2.2s ease-in-out infinite wizard-scribble;
}

.wizard-orbit {
  z-index: 1;
  animation: 7s linear infinite wizard-orbit-spin;
  position: absolute;
  inset: 0;
}

.wizard-orbit > span {
  color: #0f7584;
  background: #fff;
  border: 1px solid #d5e3e9;
  border-radius: 14px;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  animation: 7s linear infinite reverse wizard-orbit-spin;
  display: grid;
  position: absolute;
  top: 8px;
  left: 50%;
  box-shadow: 0 8px 16px #123e6114;
}

.wizard-orbit-a, .wizard-orbit-a > span {
  animation-delay: 0s;
}

.wizard-orbit-b, .wizard-orbit-b > span {
  color: #1a8f7a;
  animation-delay: -1.75s;
}

.wizard-orbit-c, .wizard-orbit-c > span {
  color: #c9891a;
  animation-delay: -3.5s;
}

.wizard-orbit-d, .wizard-orbit-d > span {
  color: #3d8f5c;
  animation-delay: -5.25s;
}

.wizard-thinking-title {
  letter-spacing: -.4px;
  color: var(--ink);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.wizard-thinking-line {
  min-height: 1.5em;
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  animation: .4s ease-out wizard-line-in;
}

@keyframes wizard-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes wizard-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wizard-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wizard-bob {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes wizard-float {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

@keyframes wizard-drift {
  0%, 100% {
    transform: translate(0);
  }

  50% {
    transform: translate(24px, -18px);
  }
}

@keyframes wizard-pen-wiggle {
  0%, 100% {
    transform: rotate(-8deg) translateY(0);
  }

  50% {
    transform: rotate(10deg) translateY(2px);
  }
}

@keyframes wizard-scribble {
  0% {
    stroke-dashoffset: 90px;
    opacity: .2;
  }

  40% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -90px;
    opacity: .15;
  }
}

@keyframes wizard-orbit-spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes wizard-line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-launch-orb, .wizard-launch-chip, .wizard-blob, .wizard-confetti > svg, .wizard-pen, .wizard-scribble path, .wizard-orbit, .wizard-orbit > span, .wizard-thinking-line, .wizard-overlay, .wizard-shell, .wizard-panel {
    animation: none !important;
  }

  .wizard-orbit-a {
    transform: rotate(0);
  }

  .wizard-orbit-b {
    transform: rotate(90deg);
  }

  .wizard-orbit-c {
    transform: rotate(180deg);
  }

  .wizard-orbit-d {
    transform: rotate(270deg);
  }

  .wizard-orbit-a > span {
    transform: rotate(0);
  }

  .wizard-orbit-b > span {
    transform: rotate(-90deg);
  }

  .wizard-orbit-c > span {
    transform: rotate(-180deg);
  }

  .wizard-orbit-d > span {
    transform: rotate(-270deg);
  }
}

.subject-tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
  display: grid;
}

.subject-tile {
  border: 1px solid var(--line);
  min-height: 260px;
  color: var(--ink);
  background: #fff;
  border-radius: 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 28px 26px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
}

.subject-tile:hover {
  border-color: #97cbd6;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px #123e610f;
}

.subject-tile-icon {
  border-radius: 22px;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 4px;
  display: grid;
}

.subject-tile-deutsch .subject-tile-icon {
  color: #1a6f7c;
  background: #e8f4f7;
}

.subject-tile-mathe .subject-tile-icon {
  color: #3a5680;
  background: #eef2f8;
}

.subject-tile-sachunterricht .subject-tile-icon {
  color: #3f6b38;
  background: #eef6ea;
}

.subject-tile h2 {
  letter-spacing: -.6px;
  margin: 0;
  font-size: 28px;
  font-weight: 650;
}

.subject-tile p {
  color: var(--muted);
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.subject-tile-footer {
  color: #0f7584;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

.subject-view-heading {
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.children-layout {
  margin-top: 16px;
}

.children-recent {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  display: flex;
}

.children-recent-label {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
}

.children-recent-link {
  color: #0f7584;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #f7fbfc;
  border: 1px solid #d7e4e8;
  border-radius: 999px;
  align-items: center;
  max-width: 140px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  overflow: hidden;
}

.children-recent-link:hover {
  background: #e9f6f8;
  border-color: #7ebcc8;
}

.children-recent-link:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #08788a;
}

.children-list {
  border: 1px solid #e7eff3;
  border-radius: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.children-list > li {
  border-bottom: 1px solid #edf2f5;
}

.children-list > li:last-child {
  border-bottom: 0;
}

.children-list-row {
  width: 100%;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  background: #fff;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  font-size: 12px;
  text-decoration: none;
  transition: background .12s;
  display: flex;
}

.children-list-row:hover {
  background: #f3fafb;
}

.children-list-row.selected {
  background: #e9f6f8;
}

.children-list-row:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #08788a;
}

.children-list-main {
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.children-list-main > svg {
  color: var(--muted);
  flex: none;
}

.children-list-text {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.children-list-text strong {
  font-size: 14px;
  font-weight: 600;
}

.children-list-text span {
  color: var(--muted);
  font-size: 11px;
}

.children-list-chevron {
  color: #9bb0bb;
  flex: none;
}

.children-list-row:hover .children-list-chevron, .children-list-row.selected .children-list-chevron {
  color: #0f7584;
}

.children-list-row.disabled, .children-list-row:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #f7fafb;
}

.children-list-row.disabled:hover, .children-list-row:disabled:hover {
  background: #f7fafb;
}

.new-essay-dialog {
  width: min(520px, 95vw);
}

.new-essay-dialog .student-combobox {
  margin: 14px 0 8px;
  position: relative;
}

.new-essay-dialog .student-combobox .search-box {
  margin-bottom: 0;
}

.student-combobox-menu {
  z-index: 20;
  background: #fff;
  border: 1px solid #e7eff3;
  border-radius: 10px;
  max-height: 240px;
  margin: 0;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  overflow: auto;
  box-shadow: 0 14px 34px #123e612e;
}

.student-combobox-menu .children-list-row.disabled, .student-combobox-menu .children-list-row:disabled {
  opacity: 1;
  color: #8a9aa3;
  background: #f7fafb;
}

.student-combobox-menu .children-list-row.disabled strong, .student-combobox-menu .children-list-row:disabled strong {
  color: #8a9aa3;
}

.student-combobox-empty {
  color: var(--muted);
  background: #fff;
  padding: 14px 16px;
  font-size: 12px;
}

.student-combobox-footer {
  background: #fff;
  border-top: 1px solid #edf2f5;
  padding: 8px;
  position: sticky;
  bottom: 0;
}

.student-combobox-create {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  width: 100%;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 8px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
}

.student-combobox-create:hover:not(:disabled) {
  background: #0d6672;
  border-color: #0d6672;
}

.student-combobox-create:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.new-essay-upload, .new-essay-upload .upload-card {
  margin-top: 8px;
}

.new-essay-thumbs {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 4px;
  display: grid;
}

.new-essay-thumb-card {
  cursor: grab;
  background: #fff;
  border: 1px solid #e0ebef;
  border-radius: 10px;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 6px;
  display: flex;
}

.new-essay-thumb-card.dragging {
  opacity: .55;
  cursor: grabbing;
}

.new-essay-thumb-card.drop-target {
  border-color: #0f7584;
  box-shadow: 0 0 0 2px #0f75842e;
}

.new-essay-thumb-top {
  align-items: center;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.new-essay-thumb-top > span:last-child {
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
}

.new-essay-drag-handle {
  color: #9bb0bb;
  flex: none;
  display: inline-flex;
}

.new-essay-thumb {
  cursor: pointer;
  background: #e8eef1;
  border: 1px solid #dce7ed;
  border-radius: 8px;
  width: 100%;
  padding: 0;
  line-height: 0;
  display: block;
  overflow: hidden;
}

.new-essay-thumb .redaction-overlay {
  width: 100%;
  height: 120px;
  box-shadow: none;
  background: #e8eef1;
  border: 0;
  border-radius: 0;
  margin: 0;
}

.new-essay-thumb:hover {
  outline-offset: 1px;
  outline: 2px solid #0f7584;
}

.new-essay-thumb:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.new-essay-thumb-actions {
  align-items: center;
  gap: 4px;
  display: flex;
}

.new-essay-thumb-actions .secondary-button {
  flex: 1;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 6px;
  font-size: 11px;
}

.new-essay-upload-actions {
  margin-top: 10px;
}

.new-essay-redact-hint {
  color: #8a4b12;
  background: #fff6e8;
  border: 1px solid #f0c48a;
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.child-detail-page {
  min-width: 0;
}

.child-detail-tabs {
  margin: 0 0 16px;
}

.class-children {
  padding-top: 18px;
}

.child-detail-empty {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.student-journal {
  gap: 14px;
  display: grid;
}

.student-journal-modal {
  gap: 14px;
  width: min(560px, 100%);
  display: grid;
}

.student-journal-modal .simple-rich-text-surface, .student-journal-modal .simple-rich-text-editor {
  min-height: 140px;
}

.student-journal-list {
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.student-journal-entry {
  background: #f8fbfc;
  border: 1px solid #d7e4ea;
  border-radius: 10px;
  gap: 8px;
  padding: 12px 14px 14px;
  display: grid;
}

.student-journal-meta {
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 11px;
  display: flex;
}

.student-journal-meta time {
  color: #315a70;
  font-weight: 650;
}

.student-journal-actions {
  gap: 10px;
  margin-left: auto;
  display: flex;
}

.student-journal-body {
  color: #24343c;
  font-size: 13px;
  line-height: 1.55;
}

.student-journal-body p {
  margin: 0 0 .55em;
}

.student-journal-body p:last-child {
  margin-bottom: 0;
}

.student-journal-body ul, .student-journal-body ol, .simple-rich-text-editor ul, .simple-rich-text-editor ol {
  margin: .35em 0 .55em;
  padding-left: 1.4em;
  list-style-position: outside;
}

.student-journal-body ul, .simple-rich-text-editor ul {
  list-style-type: disc;
}

.student-journal-body ol, .simple-rich-text-editor ol {
  list-style-type: decimal;
}

.student-journal-body li, .simple-rich-text-editor li {
  display: list-item;
}

.student-journal-edit {
  gap: 10px;
  display: grid;
}

.student-journal-edit-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.simple-rich-text {
  background: #fff;
  border: 1px solid #d5e3e9;
  border-radius: 8px;
  overflow: hidden;
}

.simple-rich-text.is-disabled {
  opacity: .65;
}

.simple-rich-text-toolbar {
  background: #f7fafc;
  border-bottom: 1px solid #e7eff3;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  display: flex;
}

.simple-rich-text-tool {
  color: #315a70;
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 28px;
  display: inline-flex;
}

.simple-rich-text-tool:hover:not(:disabled) {
  background: #e8f2f4;
}

.simple-rich-text-tool:disabled {
  opacity: .5;
}

.simple-rich-text-color {
  position: relative;
}

.simple-rich-text-color-menu {
  z-index: 5;
  background: #fff;
  border: 1px solid #d5e3e9;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 4px;
  width: 120px;
  padding: 6px;
  display: flex;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  box-shadow: 0 6px 18px #24343c1f;
}

.simple-rich-text-color-swatch {
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
}

.simple-rich-text-color-swatch:hover:not(:disabled) {
  background: #e8f2f4;
}

.simple-rich-text-color-swatch span {
  background: #24343c;
  border: 1px solid #24343c33;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: block;
}

.simple-rich-text-color-swatch span.is-default {
  background: linear-gradient(135deg, #fff 46%, #c0392b 46% 54%, #fff 54%);
  border-color: #9aabb4;
}

.simple-rich-text-surface {
  min-height: 96px;
  position: relative;
}

.simple-rich-text-placeholder {
  color: #9aabb4;
  pointer-events: none;
  font-size: 13px;
  line-height: 1.5;
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
}

.simple-rich-text-editor {
  color: #24343c;
  outline: none;
  min-height: 96px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
}

.simple-rich-text-editor:focus {
  box-shadow: inset 0 0 0 1px #087c8f33;
}

.simple-rich-text-editor p {
  margin: 0 0 .45em;
}

.sources-panel {
  gap: 12px;
  display: grid;
}

.sources-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.sources-toolbar .search-box {
  flex: 1;
  min-width: 180px;
  margin: 0;
}

.sources-toolbar label {
  color: var(--muted);
  gap: 4px;
  min-width: 160px;
  font-size: 11px;
  display: grid;
}

.sources-toolbar select {
  font-size: 12px;
}

.source-upload-modal {
  width: min(560px, 95vw);
}

.source-upload-modal select, .source-upload-modal input[type="text"] {
  width: 100%;
  font-size: 12px;
}

.source-upload-files-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
  display: flex;
}

.source-upload-files-head strong {
  color: #5d6b72;
  font-size: 12px;
  font-weight: 650;
}

.source-upload-draft-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: min(42vh, 360px);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow: auto;
}

.source-upload-draft-card {
  background: #f7fafc;
  border: 1px solid #e7eff3;
  border-radius: 10px;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  display: flex;
}

.source-upload-thumb {
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
}

.source-upload-thumb .redaction-overlay {
  width: 100%;
  height: 110px;
  box-shadow: none;
  background: #e8eef1;
  border: 0;
  border-radius: 8px;
  margin: 0;
}

.source-upload-thumb:hover {
  outline-offset: 1px;
  outline: 2px solid #0f7584;
}

.source-upload-thumb:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.source-upload-doc-thumb {
  color: #087c8f;
  background: #eef5f7;
  border-radius: 8px;
  place-items: center;
  height: 110px;
  display: grid;
}

.source-upload-draft-meta {
  min-width: 0;
}

.source-upload-draft-meta strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  display: block;
  overflow: hidden;
}

.source-upload-draft-meta span {
  color: var(--muted);
  font-size: 10px;
}

.source-upload-draft-actions {
  align-items: center;
  gap: 4px;
  display: flex;
}

.source-upload-draft-actions .secondary-button {
  flex: 1;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 6px;
  font-size: 11px;
}

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

.sources-layout.has-preview {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
}

.sources-layout-list {
  min-width: 0;
}

.sources-list {
  background: #fff;
  border: 1px solid #e7eff3;
  border-radius: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.sources-row {
  border-bottom: 1px solid #edf2f5;
  align-items: stretch;
  gap: 0;
  display: flex;
}

.sources-row:last-child {
  border-bottom: 0;
}

.sources-row.selected {
  background: #e9f6f8;
}

.sources-row-select {
  appearance: none;
  min-width: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.sources-row-select:hover {
  background: #f3fafb;
}

.sources-row.selected .sources-row-select:hover {
  background: #e9f6f8;
}

.sources-row-select:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #08788a;
}

.sources-row-actions {
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 0 8px 0 0;
  display: flex;
}

.sources-row-icon {
  color: #087c8f;
  flex: none;
}

.sources-file-icon--pdf {
  color: #c43c2c;
}

.sources-file-icon--docx {
  color: #2b579a;
}

.sources-file-icon--sheet {
  color: #217346;
}

.sources-file-icon--image {
  color: #087c8f;
}

.sources-file-icon--file {
  color: #5a6b75;
}

.sources-row-main {
  flex: 1;
  min-width: 0;
}

.sources-row-main strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  display: block;
  overflow: hidden;
}

.sources-row-main span {
  color: var(--muted);
  font-size: 11px;
  display: block;
}

.sources-row-dates {
  margin-top: 2px;
  line-height: 1.35;
}

.source-preview-pane {
  z-index: 2;
  background: #fafcfd;
  border: 1px solid #e7eff3;
  border-radius: 10px;
  flex-direction: column;
  min-width: 0;
  min-height: 280px;
  max-height: min(72vh, 820px);
  padding: 12px 14px;
  display: flex;
  position: sticky;
  top: 12px;
}

.source-preview-pane.maximized {
  z-index: 80;
  width: auto;
  max-height: none;
  position: fixed;
  inset: 18px;
  box-shadow: 0 18px 48px #123e6138;
}

.source-preview-maximize-backdrop {
  z-index: 70;
  background: #122a3a59;
  position: fixed;
  inset: 0;
}

.source-preview-pane-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 8px;
  display: flex;
}

.source-preview-pane-head h4 {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
}

.source-preview-toolbar {
  flex-wrap: wrap;
  flex: none;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  display: flex;
}

.source-preview-toolbar-divider {
  background: #d5e2e8;
  flex: none;
  width: 1px;
  height: 16px;
  margin: 0 4px;
}

.source-preview-page-label, .source-preview-zoom-label {
  appearance: none;
  font: inherit;
  color: #315a70;
  text-align: center;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  min-width: 3.4rem;
  padding: 4px 2px;
  font-size: 11px;
  font-weight: 600;
}

.source-preview-zoom-label:hover {
  color: #0f7584;
  background: #e9f6f8;
}

.source-preview-pane .source-preview-body {
  scrollbar-gutter: stable;
  flex: 1;
  min-height: 0;
  margin-top: 0;
  overflow: auto;
}

.source-preview-pane .source-preview-frame {
  height: min(58vh, 640px);
}

.source-preview-pane .source-preview-text {
  max-height: none;
}

.portfolio-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: start;
  gap: 20px;
  display: grid;
}

.portfolio-chat {
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
  display: flex;
}

.portfolio-chat .chat-thread {
  flex: 1;
  min-height: 220px;
  max-height: min(58vh, 560px);
  overflow: auto;
}

.portfolio-notes textarea {
  width: 100%;
  min-height: 90px;
  font-size: 13px;
  line-height: 1.5;
}

.portfolio-sources-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  display: flex;
}

.portfolio-sources-head h2 {
  margin: 0;
}

.portfolio-sources-head p {
  margin: 4px 0 0;
}

.portfolio-sources-actions {
  flex: none;
  gap: 2px;
  display: flex;
}

.portfolio-sources-toolbar {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.portfolio-sources-toolbar .search-box {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.portfolio-sources-toolbar select {
  flex: none;
  width: 140px;
  padding: 7px 8px;
  font-size: 11px;
}

.portfolio-source-picker {
  background: #fff;
  border: 1px solid #e7eff3;
  border-radius: 8px;
  gap: 6px;
  max-height: 220px;
  padding: 8px;
  display: grid;
  overflow: auto;
}

.portfolio-source-row {
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.portfolio-source-row input[type="checkbox"] {
  flex: none;
  margin-top: 3px;
}

.portfolio-source-open {
  appearance: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 4px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.portfolio-source-open:hover strong {
  color: #0f7584;
  text-underline-offset: 2px;
  text-decoration: underline;
}

.portfolio-source-open:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #08788a;
}

.portfolio-source-open strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  display: block;
  overflow: hidden;
}

.portfolio-source-open span {
  color: var(--muted);
  font-size: 11px;
}

.source-preview-modal {
  flex-direction: column;
  width: min(960px, 96vw);
  height: min(88vh, 900px);
  max-height: min(88vh, 900px);
  padding-bottom: 18px;
  display: flex;
  overflow: hidden;
}

.source-preview-heading-text {
  flex: 1;
  min-width: 0;
}

.source-preview-heading-text h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.source-preview-count {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 11px;
}

.source-preview-heading-actions {
  flex: none;
  align-items: center;
  gap: 2px;
  display: flex;
}

.source-preview-body {
  background: #eef4f7;
  border-radius: 8px;
  flex: 1;
  min-height: 0;
  margin-top: 4px;
  padding: 10px;
  overflow: auto;
}

.source-preview-image {
  background: #fff;
  border: 1px solid #cfdce3;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.source-preview-body > .redaction-overlay.source-preview-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  box-shadow: none;
  border: 1px solid #cfdce3;
  border-radius: 6px;
}

.source-preview-body > .redaction-overlay.source-preview-image img {
  object-fit: contain;
  width: 100%;
  height: auto;
}

.source-preview-redact-button {
  flex: none;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

.source-preview-redact-hint {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.45;
}

.source-preview-frame {
  background: #fff;
  border: 1px solid #e7eff3;
  border-radius: 8px;
  width: 100%;
  height: min(70vh, 720px);
}

.source-preview-text {
  white-space: pre-wrap;
  background: #f7fafb;
  border: 1px solid #e7eff3;
  border-radius: 8px;
  max-height: min(70vh, 720px);
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  overflow: auto;
}

.source-preview-seamless {
  min-width: 0;
}

.source-preview-width-probe {
  pointer-events: none;
  width: 100%;
  height: 0;
  overflow: hidden;
}

.source-preview-creating {
  background: #f7fafb;
  border: 1px solid #e7eff3;
  border-radius: 8px;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  display: flex;
}

.source-preview-creating strong {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 650;
  display: block;
}

.source-preview-creating span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  display: block;
}

.source-preview-pages {
  background: none;
  border: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  padding: 0;
  display: flex;
}

.source-preview-page-slot {
  background: #fff;
  border: 1px solid #c5d4dc;
  border-radius: 2px;
  flex: none;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px #123e611a;
}

.source-preview-page {
  width: 100%;
  max-width: none;
  height: 100%;
  box-shadow: none;
  background: #fff;
  border: 0;
  border-radius: 0;
  flex: none;
  display: block;
}

.portfolio-batch-card {
  background: #fff;
  border: 1px solid #e7eff3;
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.portfolio-batch-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .portfolio-layout {
    grid-template-columns: 1fr;
  }
}

.child-essay-list {
  background: #fff;
  border: 1px solid #e7eff3;
  border-radius: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.child-essay-list > li {
  border-bottom: 1px solid #edf2f5;
}

.child-essay-list > li:last-child {
  border-bottom: 0;
}

.child-essay-row {
  color: inherit;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
}

button.child-essay-row {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
}

.child-essay-row:hover {
  background: #f3fafb;
}

.child-essay-row strong {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.child-essay-row span {
  color: var(--muted);
  font-size: 11px;
}

.child-essay-row svg {
  color: #9bb0bb;
  flex: none;
}

.child-name-button {
  appearance: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 4px;
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 650;
}

.page-heading h1 .child-name-button {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.child-name-button:hover {
  color: #0f7584;
  text-underline-offset: 3px;
  text-decoration: underline;
}

.child-name-button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #08788a;
}

.child-name-inline {
  width: min(100%, 320px);
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.page-heading h1 .child-name-inline {
  font-size: inherit;
  font-weight: inherit;
  width: min(100%, 420px);
}

.page-empty {
  text-align: center;
  background: #fafdfe;
  border: 1px dashed #d8e6ed;
  border-radius: 10px;
  padding: 30px 22px;
}

.page-empty h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.page-empty p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.7;
}

.page-empty .primary-button, .page-empty .secondary-button {
  display: inline-flex;
}

.page-search {
  max-width: 420px;
  margin-bottom: 24px;
  padding: 3px 12px;
}

.page-search input {
  font-size: 12px;
}

.overview-layout, .settings-overview-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 23px;
  display: grid;
}

.rubric-page-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 23px;
  display: grid;
}

.rubric-live-stats {
  border-top: 1px solid #edf2f5;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  display: grid;
}

.rubric-live-stats > div {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.rubric-live-stats dt {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  font-weight: 500;
}

.rubric-live-stats dd {
  color: var(--ink);
  letter-spacing: -.2px;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.rubric-live-stats-caption {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.page-aside {
  top: calc(var(--app-chrome-height, 133px) + 22px);
  position: sticky;
}

.page-aside .settings-card {
  padding: 23px;
}

.page-aside .settings-card > .secondary-button.full-width {
  margin-top: 16px;
}

.results-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  margin: 18px 0;
  display: flex;
}

.results-toolbar .search-box {
  flex: 1;
  margin: 0;
}

.results-toolbar select {
  width: 165px;
  padding: 8px;
  font-size: 11px;
}

.results-table {
  overflow-x: auto;
}

.results-table-header, .results-table-row {
  grid-template-columns: minmax(135px, 1fr) 145px 87px 35px 66px;
  align-items: center;
  gap: 10px;
  min-width: 550px;
  display: grid;
}

.results-table-header {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  font-size: 10px;
  font-weight: 550;
}

.results-table-row {
  border-bottom: 1px solid #edf2f5;
  padding: 18px 8px;
  font-size: 12px;
}

.results-table-row:last-child {
  border-bottom: 0;
}

.results-table-row .status-pill {
  width: fit-content;
  font-size: 9px;
}

.results-table-row b {
  font-size: 11px;
  font-weight: 550;
}

.results-table-row .text-button {
  color: #117484;
  font-size: 11px;
}

.settings-nav {
  border-bottom: 1px solid var(--line);
  gap: 8px;
  margin-bottom: 28px;
  display: flex;
}

.settings-nav a {
  color: var(--muted);
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 8px;
  padding: 12px 17px 14px;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  display: flex;
}

.settings-nav a.active {
  color: #097484;
  border-color: #09a0b3;
}

.settings-nav a:hover {
  color: var(--green);
}

.management-row {
  border-bottom: 1px solid #edf2f5;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  display: flex;
}

.management-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.management-row-info {
  flex: 1;
  min-width: 0;
}

.management-row-info h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 600;
}

.management-row-info p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
}

.danger-card {
  background: #fffdfc;
  border-color: #ecdfdd;
}

.danger-button {
  color: #fff;
  background: #ad554b;
  border: 1px solid #ad554b;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 550;
  display: inline-flex;
}

.danger-button:hover {
  background: #984a41;
}

.danger-button.full-width {
  width: 100%;
  display: flex;
}

.inline-confirm {
  background: #fff8f6;
  border: 1px solid #efdad5;
  border-radius: 8px;
  padding: 12px;
}

.rubric-editor .grade-bands {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rubric-editor .rubric-fields {
  gap: 18px;
}

.rubric-editor h3 {
  border-top: 1px solid #edf2f5;
  margin-top: 30px;
  padding-top: 18px;
}

.rubric-criterion-block {
  border-bottom: 1px solid #edf2f5;
  padding: 4px 0 10px;
}

.rubric-criterion-block:last-of-type {
  border-bottom: 0;
}

.rubric-criterion-title {
  font-size: 14px;
  border: 0 !important;
  margin: 18px 0 8px !important;
  padding: 0 !important;
}

.rubric-field-row {
  border-bottom: 1px solid #edf2f5;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 0;
  display: flex;
}

.rubric-field-row > label {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.rubric-criterion-block .rubric-field-row {
  border: 0;
  padding: 0;
}

.rubric-criterion-label {
  flex: 1;
  min-width: 0;
}

.rubric-criterion-points {
  flex: 0 100px;
  width: 100px;
  max-width: 100px;
}

.rubric-criterion-points input {
  width: 100%;
  max-width: 100px;
}

.rubric-editor .icon-action {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 0;
}

.page-form-actions {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 15px 0 0;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -10px 12px #fffd;
}

.page-global-error {
  max-width: 1320px;
  margin: 18px auto 0;
}

.help-page {
  max-width: 850px;
}

.help-page h2 {
  margin-top: 25px;
}

.zoom-controls .zoom-divider {
  background: #d2e0e7;
  width: 1px;
  height: 15px;
  margin: 0 3px;
}

.zoom-controls button[aria-pressed] {
  border-radius: 5px;
  padding: 5px;
}

.zoom-controls button.active {
  color: #0a7583;
  background: #daedf2;
}

@media (max-width: 1200px) {
  .main-nav a {
    font-size: 11px;
  }

  .header-right {
    gap: 10px;
  }

  .brand {
    min-width: 210px;
  }

  .main-nav {
    gap: 17px;
  }

  .management-page {
    padding: 28px 25px 50px;
  }

  .page-stats {
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .overview-layout, .settings-overview-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }

  .rubric-page-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }

  .settings-card, .page-aside .settings-card {
    padding: 20px;
  }
}

@media (max-width: 950px) {
  .header-right .local-pill {
    display: none;
  }

  .app-header {
    gap: 20px;
  }

  .brand {
    min-width: 190px;
  }

  .main-nav {
    gap: 13px;
  }

  .overview-layout, .settings-overview-layout, .rubric-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    display: grid;
    position: static;
  }

  .page-aside .settings-card {
    margin: 0;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 27px;
  }

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

  .subject-tile-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .subject-tile {
    flex-flow: wrap;
    align-items: center;
    gap: 18px;
    min-height: 0;
    padding: 22px 20px;
  }

  .subject-tile-icon {
    border-radius: 18px;
    width: 72px;
    height: 72px;
    margin-bottom: 0;
  }

  .subject-tile h2 {
    flex: 1;
    min-width: 120px;
    font-size: 22px;
  }

  .subject-tile p {
    flex: 100%;
  }
}

@media (max-width: 700px) {
  .home-actions {
    grid-template-columns: 1fr;
  }

  .home-welcome {
    align-items: flex-start;
  }

  .home-welcome .local-pill {
    display: none;
  }

  .app-header {
    flex-wrap: wrap;
    gap: 4px;
    height: auto;
    min-height: 96px;
    padding: 4px 15px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .main-nav {
    order: 3;
    gap: 20px;
    width: 100%;
    height: 32px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .main-nav a svg {
    display: none;
  }

  .header-right {
    margin-left: 0;
  }

  .breadcrumb-bar {
    gap: 7px;
    height: 47px;
    padding: 0 15px;
    font-size: 9px;
  }

  .breadcrumb-item {
    gap: 6px;
  }

  .breadcrumb-bar .save-state {
    min-width: fit-content;
  }

  .management-page {
    padding: 24px 16px 40px;
  }

  .page-heading {
    flex-direction: column;
    gap: 17px;
  }

  .page-heading h1 {
    font-size: 25px;
  }

  .page-heading p {
    font-size: 11px;
  }

  .page-aside {
    grid-template-columns: 1fr;
  }

  .inline-create-form {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-choice-grid {
    grid-template-columns: 1fr;
  }

  .wizard-criterion-row {
    grid-template-columns: 38px minmax(0, 1fr) 72px 38px;
  }

  .wizard-criterion small {
    margin-left: 0;
  }

  .stat-card {
    gap: 11px;
    padding: 14px;
  }

  .stat-card strong {
    font-size: 25px;
  }

  .stat-card .entity-icon {
    width: 34px;
    height: 34px;
  }

  .wizard-launch {
    text-align: left;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .wizard-launch-art {
    width: 96px;
    height: 96px;
  }

  .wizard-launch-button {
    justify-content: center;
    width: 100%;
  }

  .wizard-overlay {
    padding: 0;
  }

  .wizard-shell {
    border-radius: 0;
    width: 100%;
    max-height: 100dvh;
  }

  .wizard-confetti {
    display: none;
  }

  .wizard-rail-line {
    width: 16px;
    margin: 0 6px;
  }

  .wizard-brand h2 {
    font-size: 17px;
  }

  .rubric-editor .grade-bands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rubric-fields {
    flex-direction: column;
    gap: 0;
  }

  .management-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .management-row .secondary-button {
    padding: 7px;
  }

  .rubric-editor .icon-action {
    width: 36px;
    height: 36px;
  }

  .entity-grid {
    grid-template-columns: 1fr;
  }

  .settings-nav a {
    padding: 12px;
  }

  .workbench {
    height: calc(100dvh - 143px);
  }

  .zoom-controls {
    gap: 3px;
  }

  .subject-tile-icon {
    width: 64px;
    height: 64px;
  }

  .subject-tile-icon svg {
    width: 40px;
    height: 40px;
  }

  .child-name-inline {
    width: 100%;
  }

  .sources-layout.has-preview {
    grid-template-columns: 1fr;
  }

  .source-preview-pane {
    max-height: none;
    position: static;
  }
}

.media-library-picker-modal {
  flex-direction: column;
  width: min(760px, 96vw);
  max-height: min(88vh, 860px);
  display: flex;
}

.media-library-picker-search {
  margin: 0 0 8px;
}

.media-library-picker-count {
  color: var(--muted);
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: 12px;
}

.media-library-picker-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  min-height: 180px;
  padding: 2px 2px 8px;
  display: grid;
  overflow: auto;
}

.media-library-picker-item {
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e7eff3;
  border-radius: 10px;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  display: flex;
}

.media-library-picker-item:hover:not(:disabled) {
  background: #f7fbfc;
  border-color: #97cbd6;
}

.media-library-picker-frame {
  aspect-ratio: 1;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #cfdce3;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
  overflow: hidden;
}

.media-library-picker-frame img {
  object-fit: contain;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
}

.media-library-picker-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
}

.media-library-toolbar {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
}

.media-library-toolbar-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  display: flex;
}

.media-library-search {
  flex: 1;
  min-width: 220px;
  margin: 0;
}

.media-library-count {
  color: var(--muted);
  min-height: 1.2em;
  margin: 0;
  font-size: 12px;
}

.media-library-size {
  background: #fff;
  border: 1px solid #d7e3e8;
  border-radius: 10px;
  gap: 4px;
  padding: 3px;
  display: inline-flex;
}

.media-size-chip {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 550;
}

.media-size-chip[aria-pressed="true"], .media-size-chip:hover {
  color: #0d5f6a;
  background: #edf6f7;
}

.media-library-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  display: flex;
}

.media-tag-chip {
  color: var(--muted);
  cursor: pointer;
  background: #fff;
  border: 1px solid #d7e3e8;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 550;
  display: inline-flex;
}

.media-tag-chip span {
  color: #097484;
  font-variant-numeric: tabular-nums;
}

.media-tag-chip.active, .media-tag-chip:hover {
  color: #0d5f6a;
  background: #f3fafb;
  border-color: #97cbd6;
}

.media-tag-chip.compact {
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 9px;
  line-height: 1.2;
}

.media-library-grid {
  justify-content: start;
  gap: 16px;
  display: grid;
}

.media-library-grid.size-small {
  grid-template-columns: repeat(auto-fill, 148px);
  gap: 12px;
}

.media-library-grid.size-medium {
  grid-template-columns: repeat(auto-fill, 220px);
  gap: 16px;
}

.media-library-grid.size-large {
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 20px;
}

.media-library-card {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  width: 100%;
  display: flex;
  overflow: hidden;
}

.media-library-thumb {
  aspect-ratio: 1;
  box-sizing: border-box;
  cursor: zoom-in;
  background: #fff;
  border: 0;
  flex: none;
  grid-template: 1fr / 1fr;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 10px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.media-library-frame {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #cfdce3;
  border-radius: 6px;
  grid-area: 1 / 1;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.media-library-frame img {
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
}

.media-library-zoom {
  z-index: 1;
  color: #fff;
  opacity: 0;
  background: #122a3447;
  grid-area: 1 / 1;
  place-items: center;
  transition: opacity .15s;
  display: grid;
  position: relative;
}

.media-library-thumb:hover .media-library-zoom, .media-library-thumb:focus-visible .media-library-zoom {
  opacity: 1;
}

.media-library-zoom svg {
  color: #0d5f6a;
  background: #ffffffeb;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  padding: 10px;
  box-shadow: 0 6px 18px #123e612e;
}

.media-library-card-body {
  box-sizing: border-box;
  flex-direction: column;
  flex: none;
  gap: 5px;
  height: 96px;
  padding: 10px 12px 12px;
  display: flex;
  position: relative;
}

.media-library-grid.size-small .media-library-card-body {
  gap: 4px;
  height: 84px;
  padding: 10px;
}

.media-library-grid.size-medium .media-library-card-body {
  height: 108px;
}

.media-library-grid.size-large .media-library-card-body {
  height: 120px;
  padding: 12px 14px 14px;
}

.media-library-card-body h2 {
  letter-spacing: -.2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: none;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
}

.media-library-grid.size-small .media-library-card-body h2 {
  font-size: 13px;
}

.media-library-grid.size-large .media-library-card-body h2 {
  font-size: 17px;
}

.media-library-card-body > p {
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: none;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
}

.media-library-card-tags {
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  min-height: 22px;
  display: flex;
  overflow: hidden;
}

.media-library-card-actions {
  opacity: 0;
  pointer-events: none;
  gap: 8px;
  transition: opacity .12s;
  display: flex;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.media-library-card-body:hover .media-library-card-actions, .media-library-card-body:focus-within .media-library-card-actions {
  opacity: 1;
  pointer-events: auto;
}

.media-library-download-btn {
  width: 28px;
  height: 28px;
  color: var(--muted);
  cursor: pointer;
  background: #fff;
  border: 1px solid #d8e1e5;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  display: inline-flex;
  box-shadow: 0 4px 12px #123e611f;
}

.media-library-download-btn svg {
  width: 13px;
  height: 13px;
}

.media-library-download-btn:hover {
  color: #0d5f6a;
  background: #f0f6f7;
  border-color: #97cbd6;
}

@media (hover: none) {
  .media-library-card-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

.media-library-lightbox {
  z-index: 140;
  background: #122028b8;
  justify-content: center;
  align-items: center;
  padding: 18px;
  display: flex;
  position: fixed;
  inset: 0;
}

.media-library-lightbox-panel {
  background: #fff;
  border-radius: 14px;
  flex-direction: column;
  width: min(920px, 96vw);
  max-height: min(90vh, 920px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 24px 60px #081e2847;
}

.media-library-lightbox-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  display: flex;
}

.media-library-lightbox-head h2 {
  letter-spacing: -.3px;
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.media-library-lightbox-head p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
}

.media-library-lightbox-actions {
  flex: none;
  gap: 8px;
  display: flex;
}

.media-library-lightbox-actions .media-library-download-btn {
  width: 34px;
  height: 34px;
}

.media-library-lightbox-actions .media-library-download-btn svg {
  width: 15px;
  height: 15px;
}

.media-library-lightbox-image {
  background: #fff;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 18px;
  display: flex;
  overflow: auto;
}

.media-library-lightbox-frame {
  aspect-ratio: 1;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #cfdce3;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: min(100%, min(72vh, 760px));
  max-height: min(72vh, 760px);
  display: flex;
  overflow: hidden;
}

.media-library-lightbox-frame img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}

@media (max-width: 720px) {
  .media-library-grid.size-small {
    grid-template-columns: repeat(auto-fill, 132px);
    gap: 10px;
  }

  .media-library-grid.size-medium {
    grid-template-columns: repeat(auto-fill, 168px);
    gap: 12px;
  }

  .media-library-grid.size-large {
    grid-template-columns: repeat(auto-fill, 220px);
    gap: 14px;
  }

  .media-library-grid.size-small .media-library-card-body {
    height: 80px;
  }

  .media-library-grid.size-medium .media-library-card-body {
    height: 100px;
  }

  .media-library-grid.size-large .media-library-card-body {
    height: 112px;
  }

  .media-library-lightbox {
    padding: 0;
  }

  .media-library-lightbox-panel {
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
}

input::placeholder, textarea::placeholder {
  color: #3d4f5e;
  opacity: 1;
  font-weight: 400;
}

.page-heading p, .settings-card p, .entity-card p, .page-empty p {
  color: var(--muted);
}

/*# sourceMappingURL=src_app_0jxjnumpq8-xf._.css.map*/