*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--background);
  color: var(--ink);
  font: 16px/24.7px var(--body-font);
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #5487df;
  outline-offset: 3px;
}
button svg,
span[data-icon] svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "OffBit", monospace;
  font-weight: 700;
  letter-spacing: 0;
}
a {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 20000;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: white;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #c9ccd3;
  border-radius: 6px;
  background: #f9f9fb;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover,
.icon-button:hover {
  background: #eef2fb;
  border-color: #aabddd;
}
.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.button.primary:hover {
  background: #003ea9;
}
.button.small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 13px;
}
.button.danger {
  color: #a5293c;
  background: #fff5f6;
  border-color: #e6c9ce;
}
.button.ghost {
  background: transparent;
  border-color: transparent;
}
.icon-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 9px;
  background: transparent;
  border-color: transparent;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.icon-button[aria-pressed="true"] {
  color: var(--blue);
  background: #dae6fd;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.6;
}
.pixel-cross {
  color: var(--blue);
  font-size: 17px;
}
.sequence-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding: 32px 36px 24px;
}
.sequence-intro {
  min-width: 0;
  max-width: 850px;
}
.title-button {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  max-width: 100%;
}
.title-button h1 {
  margin: 7px 0 8px;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.title-button > span {
  opacity: 0;
  transition: opacity 0.15s;
}
.title-button:hover > span {
  opacity: 0.6;
}
.sequence-intro > p {
  color: var(--muted);
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.connection-badge {
  border: 1px solid #c9ccd3;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 400;
  letter-spacing: 0.2px;
  font-size: 10px;
}
.connection-badge.online {
  color: #166444;
  background: #e4f2e9;
  border-color: #b6d6c3;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-self: center;
}
.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.meta-chip {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid #cdd1d8;
  border-radius: 4px;
  color: #475366;
  background: #eef0f4;
}
.objectives {
  margin: 0 36px 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  background: #f2f5fb;
  white-space: pre-wrap;
  font-size: 13px;
}
.objectives strong {
  display: block;
  color: var(--blue);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.notice {
  margin: 0 36px 15px;
  padding: 12px 16px;
  border: 1px solid #c1d1ef;
  background: #edf3ff;
  color: #244875;
  border-radius: 6px;
  font-size: 13px;
}
.notice.error {
  border-color: #e5c7cb;
  background: #fff3f5;
  color: #963343;
}
.view-menu {
  position: fixed;
  inset: auto 20px 88px auto;
  margin: 0;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 170px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #c8cdd6;
  border-radius: 12px;
  background: #f7f8fb;
  color: var(--ink);
  box-shadow: 0 12px 40px #172b4c25;
}
.view-menu h2 {
  margin-bottom: 14px;
  font-size: 26px;
}
.view-menu .layout-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.view-menu .layout-switch button span:not([data-icon]) {
  display: inline;
}
.view-menu .board-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 16px;
}
.view-menu .search-field {
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.view-menu .search-field input {
  width: 100%;
  font-size: 14px;
}
.view-menu .board-filters select {
  max-width: none;
  flex: 1;
  font-size: 14px;
}
.view-menu #presence {
  font-size: 12px;
  color: var(--muted);
}
#sequence-app {
  padding-bottom: 100px;
}
@media (max-width: 760px) {
  #sequence-app {
    padding-bottom: 135px;
  }
  .view-menu {
    right: 12px;
    bottom: 125px;
  }
}
.sequence-dock #view-button span:not([data-icon]) {
  display: inline;
}
.layout-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #c8cdd6;
  border-radius: 7px;
}
.layout-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}
.layout-switch button[aria-pressed="true"] {
  background: #f9fafc;
  color: var(--blue);
  box-shadow: 0 1px 4px #172b4c16;
}
.layout-switch button svg {
  width: 15px;
  height: 15px;
}
.board-filters {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #727b8b;
}
.search-field input {
  border: 0;
  background: transparent;
  font-size: 12px;
  outline-offset: 0;
  width: 190px;
  min-width: 90px;
  padding: 8px 3px;
}
.board-filters select {
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  max-width: 132px;
  padding: 8px 3px;
}
.canvas-viewport {
  overflow: auto;
  min-height: 420px;
  margin-top: 0;
  background-color: #fff;
}
#board {
  padding: 28px 36px 22px;
  min-height: 420px;
  --card-width: 300px;
}
.board-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 100%;
  width: max-content;
}
.board-column {
  width: var(--card-width);
  flex: none;
  min-height: 260px;
}
.column-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  border-top: 3px solid var(--column-color, var(--blue));
  padding-top: 13px;
}
.column-number {
  font:
    700 23px/1 "OffBit",
    monospace;
  color: var(--column-color, var(--blue));
}
.column-heading h2 {
  font-size: 23px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  flex: 1;
}
.column-count {
  color: #687182;
  font-size: 11px;
}
.column-heading .icon-button {
  height: 27px;
  width: 27px;
  min-height: 27px;
  padding: 5px;
}
.column-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 25px;
}
.add-to-column {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 1px dashed #afb7c7;
  border-radius: 7px;
  background: #e9ecf277;
  color: #586579;
  font-size: 12px;
}
.add-to-column:hover {
  background: #edf3ff;
  border-color: var(--blue);
  color: var(--blue);
}
.column-empty {
  padding: 30px 18px 26px;
  text-align: center;
  background: #eef0f480;
  border: 1px solid #d4d8e0;
  border-radius: 8px;
  color: #657184;
}
.column-empty svg {
  width: 26px;
  height: 26px;
  margin: 0 auto 13px;
  color: #9cacc7;
}
.column-empty p {
  font-size: 12px;
  max-width: 200px;
  margin: auto;
}
.column-empty h3 {
  font-size: 21px;
  color: #4f607c;
  margin-bottom: 5px;
}
.capsule {
  position: relative;
  border: 1px solid #fff;
  border-radius: 8px;
  background: var(--card-color, #f9f9fb);
  box-shadow: 0 2px 3px #192c4a06;
  overflow: hidden;
  overflow-wrap: anywhere;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
  min-width: 0;
}
.capsule:hover {
  box-shadow: 0 4px 16px #1b366112;
}
.capsule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 15px 0;
}
.capsule-type {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1px;
  color: #637188;
}
.capsule-type svg {
  width: 13px;
  height: 13px;
}
.capsule-top .icon-button {
  min-height: 25px;
  width: 27px;
  height: 25px;
  padding: 4px;
}
.capsule-heading {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 11px 17px 5px;
}
.capsule h3 {
  font-size: 25px;
  line-height: 1.16;
}
.capsule-body {
  padding: 6px 17px 15px;
  font-size: 13px;
  line-height: 1.65;
  white-space: normal;
}
.capsule-body p {
  margin: 0 0 8px;
}
.capsule-body p:last-child {
  margin: 0;
}
.capsule-body ul,
.capsule-body ol {
  padding-left: 20px;
}
.capsule-body h4 {
  font: 700 16px/1.3 var(--body-font);
  margin: 8px 0;
}
.capsule-body blockquote {
  border-left: 3px solid #9aabc8;
  margin: 6px 0;
  padding-left: 10px;
  color: #5d6b80;
}
.capsule-body code {
  background: #0d295610;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 12px;
}
.capsule-body .check-line {
  display: block;
}
.capsule-body a {
  overflow-wrap: anywhere;
}
.capsule .body-preview {
  max-height: 230px;
  overflow: hidden;
}
.media-preview {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin: auto;
  background: #eef0f5;
}
.capsule img.media-preview {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
}
.capsule audio {
  width: calc(100% - 24px);
  margin: 10px 12px;
  height: 40px;
}
.capsule video {
  width: 100%;
  max-height: 280px;
}
.attachment-link {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 6px 16px 14px;
  padding: 11px;
  border: 1px solid #c6cfdf;
  border-radius: 5px;
  color: var(--blue);
  text-decoration: none;
  font-size: 12px;
}
.attachment-link > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.attachment-link svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.capsule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 16px 10px;
}
.capsule-tags span {
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 6px;
  background: #ffffff88;
  color: #45628c;
}
.capsule-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: space-between;
  border-top: 1px solid #697f9d20;
  padding: 8px 13px;
  color: #60708a;
  font-size: 10px;
}
.capsule-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 145px;
}
.capsule-interactions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.capsule-interactions button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  font-size: 11px;
  color: #52647d;
  padding: 3px;
}
.capsule-interactions button svg {
  width: 13px;
  height: 13px;
}
.capsule-interactions button.active {
  color: var(--blue);
}
.status-tag {
  font-size: 9px;
  background: #fff0c8;
  color: #775116;
  padding: 3px 6px;
  border-radius: 3px;
}
.board-wall {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, var(--card-width)), 1fr)
  );
  gap: 18px;
  align-items: start;
}
.board-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 1000px;
  margin: auto;
}
.board-list .capsule {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.board-list .capsule-top {
  grid-column: 1/-1;
}
.board-list .capsule-body {
  max-height: 170px;
}
.board-list .capsule-footer,
.board-list .capsule-tags {
  grid-column: 1/-1;
}
.board-list .media-preview {
  max-height: 180px;
}
.board-free {
  position: relative;
  min-width: 1800px !important;
  min-height: 1300px !important;
}
.board-free .capsule {
  position: absolute;
  width: var(--card-width);
  touch-action: auto;
}
.board-free .capsule-top {
  cursor: grab;
  touch-action: none;
}
.board-free .capsule.dragging {
  z-index: 10;
  box-shadow: 0 10px 25px #173c5533;
}
.board-free .connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.board-free .connections line {
  stroke: #587ab3;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.empty-board {
  grid-column: 1/-1;
  text-align: center;
  max-width: 460px;
  margin: 45px auto;
  color: var(--muted);
}
.empty-board h2 {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 10px;
}
.empty-board p {
  margin-bottom: 20px;
  font-size: 14px;
}
.board-footnote {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 36px 115px;
  color: #687588;
  font-size: 10px;
}
.sequence-dock {
  position: fixed;
  z-index: 50;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  background: #fff;
  border-top: 1px solid #d0d5df;
}
.sequence-dock > div {
  display: flex;
  gap: 7px;
  align-items: center;
}
.sequence-dock .button:not(.primary) {
  background: transparent;
  border-color: transparent;
}
.count-dot {
  min-width: 16px;
  padding: 1px 4px;
  border-radius: 8px;
  background: #dbe7ff;
  color: var(--blue);
  font-size: 10px;
}
.drop-target {
  outline: 2px dashed var(--blue);
  outline-offset: 4px;
  border-radius: 7px;
}
.toast {
  position: fixed;
  z-index: 30000;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  max-width: min(580px, 90vw);
  padding: 12px 20px;
  border: 1px solid #c6d5ec;
  border-radius: 7px;
  background: #f8fbff;
  color: #244675;
  box-shadow: 0 5px 25px #15365921;
  font-size: 13px;
}
.toast.error {
  background: #fff3f5;
  color: #963343;
  border-color: #e5c7cb;
}
dialog {
  width: min(700px, calc(100vw - 28px));
  max-height: calc(100svh - 40px);
  padding: 28px;
  border: 1px solid white;
  border-radius: 12px;
  background: #f9fafc;
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 20px 70px #172f5530;
}
dialog::backdrop {
  background: #1a284d65;
  backdrop-filter: blur(4px);
}
dialog.wide {
  width: min(980px, calc(100vw - 28px));
}
dialog.narrow {
  width: min(500px, calc(100vw - 28px));
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 34px;
  line-height: 1.1;
  color: var(--blue);
  margin-top: 5px;
}
.dialog-heading > .icon-button {
  flex: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label.field,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.field input:not([type="checkbox"]):not([type="color"]),
.field select,
.field textarea,
input.text-input,
textarea.text-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9d0dd;
  border-radius: 5px;
  background: white;
  font-size: 14px;
  font-weight: 400;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field input[type="color"] {
  width: 48px;
  height: 36px;
  border: 1px solid #ccd2dc;
  border-radius: 4px;
  padding: 3px;
  background: white;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
  color: #66758b;
  margin: 7px 0 14px;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  margin: 11px 0;
}
.check-field input {
  accent-color: var(--blue);
  margin-top: 4px;
  flex: none;
}
.check-field span small {
  display: block;
  color: #68768a;
  margin-top: 3px;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid #d7dce5;
}
.dialog-actions > div {
  display: flex;
  gap: 9px;
}
.form-error {
  font-size: 13px;
  color: #a12940;
  margin-top: 13px;
}
.kind-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kind-options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 68px;
  flex: 1;
  padding: 12px 7px;
  border: 1px solid #d2d9e5;
  border-radius: 6px;
  background: transparent;
  color: #62718b;
  font-size: 10px;
}
.kind-options button[aria-pressed="true"] {
  background: #e8effd;
  border-color: #729ce3;
  color: var(--blue);
}
.kind-options button svg {
  width: 21px;
  height: 21px;
}
.formatting-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #f0f3f8;
  border: 1px solid #c9d0dd;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.formatting-toolbar button {
  height: 28px;
  min-width: 30px;
  border: 0;
  background: transparent;
  color: #566989;
  border-radius: 3px;
  font-size: 12px;
}
.formatting-toolbar button:hover {
  background: #dee7f7;
}
.formatting-toolbar + textarea {
  border-radius: 0 0 5px 5px !important;
  margin-top: -6px;
}
.palette {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.swatch {
  height: 26px;
  width: 26px;
  border: 1px solid #9eacc270;
  border-radius: 50%;
  padding: 0;
}
.swatch[aria-pressed="true"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.file-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  border: 1px dashed #94a9c9;
  border-radius: 6px;
  background: #eef3fc;
  color: #3d6197;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
}
.file-zone input {
  width: 100%;
  max-width: 260px;
}
.file-zone > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.file-attached {
  padding: 8px 12px;
  background: #edf4ee;
  border: 1px solid #c5d9cc;
  color: #336043;
  border-radius: 4px;
  font-size: 12px;
}
.recording-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.recording-dot {
  width: 9px;
  height: 9px;
  background: #b22c44;
  border-radius: 50%;
  display: inline-block;
}
.drawing-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 9px 0;
}
.drawing-canvas {
  display: block;
  width: 100%;
  height: 260px;
  background: white;
  border: 1px solid #c5cede;
  border-radius: 5px;
  touch-action: none;
}
.settings-section {
  padding: 17px 0;
  border-bottom: 1px solid #d7dce6;
}
.settings-section:first-child {
  padding-top: 0;
}
.settings-section h3 {
  font-size: 24px;
  margin-bottom: 15px;
}
.settings-tabs {
  display: flex;
  gap: 18px;
  margin: 0 0 23px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4dce9;
  color: #5c7090;
  font-size: 12px;
}
.settings-tabs a {
  text-decoration: none;
}
.template-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.template-card,
.library-card {
  padding: 18px;
  border: 1px solid #d0d9e8;
  border-radius: 7px;
  background: white;
  text-align: left;
  min-width: 0;
  color: var(--ink);
}
.template-card:hover,
.library-card:hover {
  border-color: var(--blue);
  background: #f2f6fe;
}
.template-card h3,
.library-card h3 {
  font-size: 26px;
  color: var(--blue);
  overflow-wrap: anywhere;
}
.template-card p,
.library-card p {
  font-size: 12px;
  color: #69778d;
  margin-top: 6px;
}
.library-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 22px 0 12px;
}
.library-section-heading h3 {
  font-size: 24px;
}
.library-card small {
  color: #69778d;
  font-size: 10px;
}
.export-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.export-option {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 1px solid #d4dce8;
  border-radius: 7px;
  padding: 17px;
  background: white;
}
.export-option:hover {
  background: #edf3ff;
  border-color: #a3bee9;
}
.export-option > svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}
.export-option strong {
  display: block;
  font-size: 14px;
}
.export-option small {
  display: block;
  font-size: 12px;
  color: #63748d;
  margin-top: 3px;
}
.share-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 15px;
}
.share-link input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  padding: 10px;
  border: 1px solid #c6d1e2;
  border-radius: 5px;
  background: white;
}
.share-kind {
  padding: 16px 0;
  border-bottom: 1px solid #d9e0eb;
}
.share-kind h3 {
  font-size: 25px;
}
.share-kind > p {
  font-size: 12px;
  color: #61738d;
  margin-top: 5px;
}
.qr-container {
  display: grid;
  place-items: center;
  margin: 16px auto;
  max-width: 230px;
}
.qr-container svg,
.qr-container canvas {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.card-detail .capsule-body {
  padding: 0;
  margin: 15px 0;
  font-size: 15px;
  max-height: none;
}
.card-detail h3 {
  font-size: 26px;
  margin: 10px 0;
}
.card-detail .media-preview {
  border-radius: 7px;
  max-height: 440px;
}
.card-detail audio {
  width: 100%;
  margin: 12px 0;
}
.embed-box {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid #c7d1e1;
  border-radius: 6px;
}
.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #657590;
}
.reaction-bar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.reaction-bar button {
  background: white;
  border: 1px solid #d1dbea;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 15px;
}
.reaction-bar button.active {
  border-color: var(--blue);
  background: #e4edff;
}
.comments-section {
  border-top: 1px solid #d4dce8;
  padding-top: 18px;
  margin-top: 18px;
}
.comments-section h3 {
  font-size: 25px;
  margin-bottom: 15px;
}
.comment {
  padding: 11px 13px;
  border-radius: 6px;
  background: #edf1f7;
  margin-bottom: 9px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #536c92;
  margin-bottom: 5px;
}
.comment-header button {
  border: 0;
  background: transparent;
  color: #536c92;
  padding: 2px 4px;
  font-size: 11px;
}
.comment-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 12px;
}
.comment-form label {
  flex: 1;
  min-width: 0;
}
.comment-form textarea {
  min-height: 72px;
}
.more-grid {
  display: grid;
  gap: 8px;
}
.more-grid > .button {
  justify-content: flex-start;
  padding: 13px;
}
.presentation {
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 25px 40px;
  background: #f3f5f9;
}
.presentation-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--blue);
  font:
    700 24px/1.2 "OffBit",
    monospace;
}
.presentation-top > div {
  display: flex;
  gap: 10px;
}
#slide {
  height: calc(100% - 140px);
  max-width: 980px;
  margin: 20px auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
}
#slide h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  color: var(--blue);
  margin: 12px 0 22px;
}
#slide .capsule-body {
  font-size: clamp(18px, 2vw, 25px);
  padding: 0;
  max-height: none;
}
#slide .slide-group {
  font-size: 13px;
  color: #657a9d;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
#slide .media-preview {
  max-height: 40svh;
}
#slide audio {
  width: 100%;
}
.presentation-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  font-size: 13px;
  color: #65758b;
}
.student-mode .sequence-heading {
  border-bottom: 3px solid #d1ddf5;
}
.offbit-content .capsule-body {
  font-family: "OffBit", monospace;
  font-size: 17px;
}
.help-steps p {
  margin-bottom: 14px;
  font-size: 14px;
}
.help-steps strong {
  color: var(--blue);
}
.help-steps h3 {
  font-size: 25px;
  margin: 18px 0 8px;
}
.group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d0daea;
  border-radius: 5px;
  margin-top: 7px;
}
.group-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.group-row > div {
  display: flex;
  gap: 4px;
}
.hidden-column {
  opacity: 0.65;
}
.rating-select {
  width: 140px;
  padding: 8px;
  border: 1px solid #c9d3e3;
  border-radius: 5px;
  background: white;
}
.local-warning {
  padding: 11px 14px;
  border-radius: 5px;
  background: #eef2fa;
  color: #556d91;
  font-size: 12px;
  margin-bottom: 15px;
}
.view-banner {
  background: #e0eaff;
  border: 1px solid #b6ccef;
  padding: 10px 15px;
  border-radius: 5px;
  color: var(--blue);
  font-size: 13px;
}
.import-preview {
  border: 1px solid #c9d7ec;
  padding: 18px;
  border-radius: 7px;
  background: #eff4fc;
}
.import-preview h3 {
  font-size: 26px;
  color: var(--blue);
}
.import-preview p {
  font-size: 13px;
  margin: 8px 0;
}
.busy {
  opacity: 0.65;
  pointer-events: none;
}
@media (min-width: 1450px) {
  .board-column {
    width: var(--card-width);
  }
  .sequence-heading {
    padding-top: 39px;
    padding-bottom: 28px;
  }
  .canvas-viewport {
    min-height: 480px;
  }
}
@media (max-width: 1100px) {
  .board-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .board-filters {
    flex: 1;
    justify-content: flex-end;
  }
  .search-field input {
    width: 165px;
  }
  .layout-switch button {
    padding: 7px 8px;
  }
  .layout-switch button span:not([data-icon]) {
    display: none;
  }
  .sequence-heading {
    gap: 15px;
  }
  .heading-actions .button {
    padding-inline: 11px;
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .sequence-heading {
    padding: 23px 20px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .heading-actions {
    align-self: flex-start;
  }
  .sequence-intro {
    max-width: 100%;
    width: 100%;
  }
  .title-button h1 {
    font-size: 38px;
  }
  .title-button > span {
    display: none;
  }
  .sequence-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 0.7px;
  }
  .board-toolbar {
    margin-inline: 20px;
  }
  .board-filters {
    gap: 6px;
  }
  .board-filters select {
    max-width: 102px;
    font-size: 11px;
  }
  .search-field input {
    width: 150px;
  }
  .canvas-viewport {
    min-height: 400px;
  }
  #board {
    padding: 24px 20px 20px;
    --card-width: 290px !important;
  }
  .board-column {
    width: 290px;
  }
  .board-footnote {
    padding: 10px 20px 140px;
  }
  .board-footnote > span:last-child {
    display: none;
  }
  .objectives,
  .notice {
    margin-inline: 20px;
  }
  .sequence-dock {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .sequence-dock > div {
    gap: 2px;
  }
  .sequence-dock .button.primary {
    font-size: 12px;
    min-height: 39px;
    padding: 9px 12px;
  }
  .sequence-dock .button.small {
    font-size: 11px;
    padding-inline: 8px;
  }
  .sequence-dock #new-group-button span:not([data-icon]) {
    display: none;
  }
  dialog {
    padding: 21px;
  }
  .dialog-heading h2 {
    font-size: 30px;
  }
  .presentation {
    padding: 20px;
  }
  .presentation-top {
    font-size: 21px;
  }
  .board-list .capsule {
    display: block;
  }
  .form-grid {
    gap: 13px;
  }
  .header-actions .button.small {
    font-size: 11px;
    gap: 5px;
    padding-inline: 7px;
  }
  .header-actions .button.small svg {
    width: 15px;
    height: 15px;
  }
}
@media (max-width: 470px) {
  .board-filters {
    width: 100%;
    justify-content: space-between;
  }
  .board-toolbar {
    gap: 10px;
  }
  .layout-switch button span:not([data-icon]) {
    display: inline;
  }
  .layout-switch {
    width: 100%;
    justify-content: space-between;
  }
  .layout-switch button {
    flex: 1;
    justify-content: center;
  }
  .search-field input {
    width: 145px;
  }
  .board-filters select {
    max-width: 90px;
  }
  .sequence-dock > div:last-child {
    justify-content: space-between;
    flex: 1;
  }
  .sequence-dock .button.small span:not([data-icon]) {
    display: none;
  }
  .sequence-dock #chat-count {
    display: inline;
  }
  .sequence-dock .button.small {
    padding: 8px;
  }
  .sequence-dock .icon-button {
    width: 33px;
  }
  .sequence-dock #new-group-button {
    display: none;
  }
  .sequence-dock .button.primary {
    gap: 5px;
    font-size: 11px;
    padding: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .kind-options button {
    min-width: 56px;
    flex: none;
    font-size: 9px;
    padding: 9px;
  }
  .template-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions > div {
    margin-left: auto;
  }
  .share-link {
    flex-wrap: wrap;
  }
  .share-link input {
    flex-basis: 100%;
  }
  .presentation-controls .button {
    font-size: 12px;
    padding-inline: 10px;
  }
  .board-footnote {
    padding-bottom: 105px;
  }
  .connection-badge {
    font-size: 9px;
  }
  .header-actions > [data-action="help"] {
    display: none;
  }
  .header-actions .button.small span:not([data-icon]) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  body {
    background: white !important;
    font-size: 11px;
  }
  .compact-header,
  .heading-actions,
  .board-toolbar,
  .sequence-dock,
  .capsule-top .icon-button,
  .add-to-column,
  .column-heading .icon-button,
  .board-footnote,
  .notice,
  .toast,
  dialog,
  .capsule-interactions,
  .column-empty {
    display: none !important;
  }
  .sequence-heading {
    padding: 0 0 14px;
  }
  .sequence-heading h1 {
    font-size: 32px;
  }
  .eyebrow .connection-badge {
    display: none;
  }
  .objectives {
    margin: 0 0 14px;
  }
  .canvas-viewport {
    overflow: visible;
    background: none;
    min-height: 0;
  }
  #board {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0;
  }
  .board-column {
    display: inline-block;
    vertical-align: top;
    width: calc(25% - 12px) !important;
    margin-right: 10px;
  }
  .capsule {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    border: 1px solid #bbc6d8;
    break-inside: avoid;
    margin-bottom: 12px;
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .capsule-body,
  .capsule .body-preview {
    max-height: none;
    overflow: visible;
  }
  .column-heading {
    break-after: avoid;
  }
  .capsule h3 {
    font-size: 22px;
  }
  .board-wall .capsule,
  .board-list .capsule,
  .board-free .capsule {
    display: inline-block !important;
    vertical-align: top;
    width: calc(33% - 12px) !important;
    margin-right: 10px;
  }
  .connections {
    display: none !important;
  }
  .title-button > span {
    display: none;
  }
  .board-column.hidden-column {
    display: none;
  }
}

/* Reading text uses the shared Vie2profs paragraph typography. */
.sequence-intro > p,
.objectives,
.capsule-body,
.card-detail .capsule-body,
.help-steps p {
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  color: var(--ink);
}

#image-search-panel {
  margin-top: 16px;
}
#image-search-panel summary {
  font-size: 13px;
  color: var(--blue);
  cursor: pointer;
}
.image-search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.image-search-result {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: white;
  border: 1px solid #cbd7e8;
  border-radius: 6px;
  text-align: left;
  min-width: 0;
}
.image-search-result:hover {
  border-color: var(--blue);
}
.image-search-result img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: 4px;
}
.image-search-result span {
  font-size: 11px;
  overflow: hidden;
  max-height: 3em;
}
.image-search-result small {
  font-size: 9px;
  color: #69788e;
}
@media (max-width: 470px) {
  .image-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.title-button:disabled {
  opacity: 1;
  cursor: default;
}

.presence-button {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--blue);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The same compact sheet layout as Emploi du temps. */
@media screen {
  body.sequence-page {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #sequence-app {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
  }
  .sequence-sheet {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 10px 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #c9ced8;
    border-radius: 8px;
    box-shadow: 0 3px 12px #17171703;
  }
  .sequence-heading {
    flex: none;
    padding: 12px 10px;
    max-height: 30%;
    overflow: auto;
  }
  .sequence-intro {
    width: 100%;
    max-width: none;
  }
  .title-button { color: var(--ink); gap: 10px; }
  .title-button h1 { margin: 0; font-size: 22px; line-height: 1.2; }
  .sequence-intro > p:not(:empty) { margin-top: 8px; }
  .board-meta { margin-top: 8px; }
  .board-meta:empty,
  .sequence-intro > p:empty { display: none; }
  .sequence-sheet > .objectives,
  .sequence-sheet > .notice {
    flex: none;
    max-height: 20%;
    overflow: auto;
    margin: 0 10px 10px;
  }
  .canvas-viewport {
    flex: 1;
    min-height: 0;
    min-width: 0;
    border: 0;
    border-radius: 4px;
    overscroll-behavior: contain;
  }
  #board { min-height: 100%; padding: 20px; }
  .sequence-dock {
    position: relative;
    inset: auto;
    flex: none;
    padding: 10px 24px max(10px, env(safe-area-inset-bottom));
  }
}
@media screen and (max-width: 760px) {
  #sequence-app { padding: 10px 16px; }
  .sequence-dock { padding-inline: 16px; }
  .sequence-page .header-actions { gap: 4px; }
  .sequence-page .header-actions .button { width: 36px; padding: 8px; }
  .sequence-page .header-actions .button span:not([data-icon]) { display: none; }
  .sequence-heading { gap: 0; }
  #board { padding: 16px 12px; }
}
@media screen and (max-width: 420px) {
  #sequence-app { padding: 8px; }
  .sequence-sheet { padding: 0 6px 6px; }
  .sequence-page .header-actions { gap: 0; }
  .sequence-page .header-actions .button,
  .sequence-page .header-actions .icon-button { width: 32px; min-width: 32px; padding: 7px; }
  .sequence-page .compact-header .page-home-link { font-size: 20px; gap: 4px; }
  .sequence-page .compact-header .page-home-link > img { width: 24px; height: 24px; }
}
@media print {
  #sequence-app { padding: 0; }
  .view-menu { display: none !important; }
}
