:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #d9dee8;
  --border-strong: #c4cedd;
  --primary: #315efb;
  --primary-dark: #2649c7;
  --primary-soft: #eef2ff;
  --quiz-accent: #315efb;
  --quiz-soft: #eef2ff;
  --poll-accent: #047857;
  --poll-soft: #ecfdf3;
  --wordcloud-accent: #0e7490;
  --wordcloud-soft: #ecfeff;
  --resource-accent: #7c3aed;
  --resource-soft: #f3e8ff;
  --pdf-accent: #d92d20;
  --pdf-soft: #ffffff;
  --icebreaker-accent: #0f766e;
  --icebreaker-soft: #ecfdf5;
  --success: #027a48;
  --warning: #b54708;
  --text: #1d2840;
  --muted: #5f6f95;
  --shadow: 0 14px 36px rgba(21, 31, 54, 0.1);
  --tool-shadow: 0 8px 22px rgba(21, 31, 54, 0.06);
  --premium-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --settle-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

img,
svg,
canvas {
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 1800px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.app[hidden],
.login-view[hidden] {
  display: none;
}

.login-view {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.auth-mode-tab,
.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-mode-tab {
  min-height: 36px;
  border-radius: 6px;
}

.auth-mode-tab.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--tool-shadow);
}

.auth-mode-tab:disabled {
  cursor: default;
  opacity: 0.55;
}

.auth-disabled-note {
  margin: -4px 0 0;
  padding: 9px 11px;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.login-kicker {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-field {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 10px 11px;
}

.field-helper {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-secondary-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 24px;
}

.text-btn {
  padding: 0;
  font-size: 0.85rem;
}

.text-btn:hover {
  color: var(--primary);
}

.login-error {
  min-height: 1.2rem;
  margin: 0;
  color: #b42318;
  font-size: 0.85rem;
  line-height: 1.4;
}

.login-success {
  min-height: 1.2rem;
  margin: 0;
  color: var(--success);
  font-size: 0.85rem;
  line-height: 1.4;
}

.host-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.host-brand {
  display: grid;
  gap: 4px;
}

.host-kicker,
.upload-kicker,
.deck-mode-kicker,
.presenter-kicker {
  margin: 0;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.host-brand h1 {
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
}

.host-account-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.host-account-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.host-username {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
  cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-panel-section {
  display: grid;
  gap: 9px;
}

.account-danger-section {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.account-panel-title,
.account-panel-meta,
.account-message {
  margin: 0;
}

.account-panel-title {
  font-size: 0.82rem;
  font-weight: 850;
}

.account-panel-meta,
.account-message {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.account-message.is-error {
  color: #b42318;
}

.account-message.is-success {
  color: var(--success);
}

.account-form {
  display: grid;
  gap: 9px;
}

.account-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.workflow-steps {
  margin-bottom: 12px;
}

.workflow-step-list {
  list-style: none;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0 4px;
  background: transparent;
}

.workflow-step {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 2px 4px;
  background: transparent;
  color: var(--muted);
  opacity: 0.72;
}

.workflow-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.workflow-step strong,
.workflow-step small {
  overflow-wrap: anywhere;
}

.workflow-step strong {
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.1;
}

.workflow-step small {
  display: none;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
}

.workflow-label-short {
  display: none;
}

.workflow-number {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(95, 111, 149, 0.22);
  background: rgba(248, 250, 252, 0.72);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.workflow-step.is-active {
  color: var(--muted);
  opacity: 1;
}

.workflow-step.is-active .workflow-number {
  border-color: rgba(49, 94, 251, 0.34);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.workflow-step.is-complete {
  color: var(--muted);
}

.upload-panel {
  min-height: 72vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 14px;
}

.upload-panel[hidden] {
  display: none;
}

.upload-intro {
  display: grid;
  gap: 6px;
}

.upload-intro h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.upload-panel.is-compact {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 620px);
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--tool-shadow);
  text-align: left;
}

.upload-panel.is-compact .drop-zone {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 4px 12px;
  padding: 12px;
  border-width: 1px;
  border-radius: 10px;
  box-shadow: none;
}

.upload-panel.is-compact .drop-title {
  font-size: 0.9rem;
}

.upload-panel.is-compact .drop-hint {
  grid-column: 1;
  font-size: 0.78rem;
}

.upload-panel.is-compact .button-like {
  grid-column: 2;
  grid-row: 1 / 3;
}

.status-shell {
  display: grid;
  gap: 7px;
}

.upload-panel.is-compact .status-shell {
  grid-column: 1 / -1;
}

.conversion-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebfb;
}

.conversion-progress[hidden] {
  display: none;
}

.conversion-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #11b800);
  transition: width 160ms ease;
}

.deck-layout {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(288px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.deck-layout[hidden] {
  display: none;
}

.deck-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.master-panel {
  border-color: rgba(49, 94, 251, 0.34);
  box-shadow: 0 20px 46px rgba(21, 31, 54, 0.14);
}

.deck-layout.is-locked-mode .master-panel {
  border-color: rgba(49, 94, 251, 0.48);
  box-shadow: 0 24px 54px rgba(49, 94, 251, 0.14);
}

.library-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  padding: 4px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.deck-layout.is-locked-mode .library-panel {
  align-content: start;
}

.deck-layout.is-locked-mode .library-panel > :not(.stage-view-toolbar) {
  display: none;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.master-panel > .panel-header {
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(196, 206, 221, 0.72);
}

.master-heading {
  display: grid;
  gap: 5px;
}

.master-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-header .master-title-row h2 {
  margin: 0;
}

.panel-header > div {
  min-width: 0;
}

.panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.panel-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.master-heading .panel-helper {
  font-size: 0.84rem;
  line-height: 1.35;
}

.panel-size {
  font-size: 0.85rem;
}

.master-heading .panel-size {
  font-size: 0.8rem;
}

.deck-summary {
  flex: 1 1 360px;
  min-width: min(100%, 360px);
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
}

.deck-summary-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.deck-summary-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.deck-summary-meta span[hidden] {
  display: none !important;
}

.deck-summary-meta span + span::before {
  content: "\00b7";
  color: rgba(95, 111, 149, 0.72);
  font-weight: 700;
}

.deck-summary-warning {
  color: var(--warning);
}

.deck-present-control {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 10px 8px 13px;
  border: 1px solid rgba(196, 206, 221, 0.82);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: 0 10px 24px rgba(21, 31, 54, 0.07);
  transform-origin: center;
  --lock-reveal-edge: rgba(255, 255, 255, 0.78);
  --lock-reveal-tint: rgba(49, 94, 251, 0.08);
  transition:
    border-color 0.38s var(--premium-ease),
    box-shadow 0.38s var(--premium-ease),
    background 0.38s var(--premium-ease);
}

.deck-present-control::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0%, var(--lock-reveal-edge) 44%, transparent 100%),
    linear-gradient(90deg, var(--lock-reveal-tint), rgba(255, 255, 255, 0));
  clip-path: inset(0 100% 0 0 round 18px);
  opacity: 0;
  pointer-events: none;
}

.deck-present-control.is-locking {
  --lock-reveal-edge: rgba(255, 255, 255, 0.82);
  --lock-reveal-tint: rgba(49, 94, 251, 0.1);
}

.deck-present-control.is-unlocking {
  --lock-reveal-edge: rgba(255, 255, 255, 0.78);
  --lock-reveal-tint: rgba(2, 122, 72, 0.08);
}

.deck-present-control.is-ready {
  border-color: rgba(2, 122, 72, 0.26);
  background:
    linear-gradient(135deg, rgba(247, 255, 251, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow:
    0 15px 32px rgba(2, 122, 72, 0.08),
    0 6px 16px rgba(21, 31, 54, 0.06);
}

.deck-present-control.is-locked {
  border-color: rgba(49, 94, 251, 0.28);
  background:
    linear-gradient(135deg, rgba(246, 249, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.deck-present-control.is-attention {
  border-color: rgba(181, 71, 8, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.98), rgba(255, 255, 255, 0.94));
}

.deck-present-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.deck-summary-status {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  overflow-wrap: anywhere;
}

.deck-summary-status.is-draft {
  color: var(--primary);
}

.deck-summary-status.is-locked {
  color: var(--primary);
}

.deck-summary-status.is-ready,
.deck-summary-status.is-live {
  color: var(--success);
}

.deck-summary-status.is-attention {
  color: var(--warning);
}

.deck-present-helper {
  min-width: 0;
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.deck-present-control.is-ready .deck-present-helper {
  color: #4f6f61;
}

.deck-present-control.is-locked .deck-present-helper {
  color: #596b92;
}

.deck-present-control.is-attention .deck-present-helper {
  color: #9a5b1c;
}

.deck-lock-toggle {
  min-width: 0;
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(196, 206, 221, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 7px 16px rgba(21, 31, 54, 0.07);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transform-origin: center;
  --lock-reveal-edge: rgba(255, 255, 255, 0.86);
  --lock-reveal-tint: rgba(49, 94, 251, 0.14);
  transition:
    border-color 0.34s var(--premium-ease),
    box-shadow 0.34s var(--premium-ease),
    transform 0.34s var(--premium-ease),
    background 0.34s var(--premium-ease);
}

.deck-lock-toggle::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.deck-lock-toggle:hover:not(:disabled) {
  border-color: rgba(49, 94, 251, 0.38);
  box-shadow: 0 12px 26px rgba(21, 31, 54, 0.12);
  transform: translateY(-1px);
}

.deck-lock-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  box-shadow: none;
}

.deck-lock-rail {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 32px;
  border: 1px solid rgba(196, 206, 221, 0.82);
  border-radius: 999px;
  overflow: hidden;
  background: #e9eef6;
  box-shadow: inset 0 1px 3px rgba(21, 31, 54, 0.12);
  transition:
    background 0.42s var(--premium-ease),
    border-color 0.42s var(--premium-ease);
}

.deck-lock-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--lock-reveal-tint), var(--lock-reveal-edge), var(--lock-reveal-tint));
  clip-path: inset(0 100% 0 0 round 999px);
  opacity: 0;
  pointer-events: none;
}

.deck-lock-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  box-shadow:
    0 5px 12px rgba(21, 31, 54, 0.18),
    0 0 0 1px rgba(21, 31, 54, 0.06);
  will-change: transform;
  transition:
    color 0.32s var(--premium-ease),
    transform 0.46s var(--settle-ease);
}

.deck-lock-icon {
  position: relative;
  width: 12px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transition: color 0.32s var(--premium-ease);
}

.deck-lock-icon::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 4px;
  width: 7px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: rotate(24deg);
  transform-origin: left bottom;
  transition:
    left 0.38s var(--premium-ease),
    top 0.38s var(--premium-ease),
    transform 0.38s var(--premium-ease);
}

.deck-lock-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.deck-lock-title {
  min-width: 0;
  display: inline-block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 0.32s var(--premium-ease);
}

.deck-lock-toggle.is-ready {
  border-color: rgba(2, 122, 72, 0.28);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(2, 122, 72, 0.11);
  --lock-reveal-edge: rgba(255, 255, 255, 0.84);
  --lock-reveal-tint: rgba(2, 122, 72, 0.14);
}

.deck-lock-toggle.is-ready .deck-lock-rail {
  border-color: rgba(2, 122, 72, 0.22);
  background: #dff7ea;
}

.deck-lock-toggle.is-ready .deck-lock-thumb {
  color: var(--success);
}

.deck-lock-toggle.is-ready:hover:not(:disabled) .deck-lock-thumb {
  transform: translateX(4px);
}

.deck-lock-toggle.is-attention {
  border-color: rgba(181, 71, 8, 0.3);
  background: #fffaf4;
}

.deck-lock-toggle.is-attention .deck-lock-rail {
  border-color: rgba(181, 71, 8, 0.22);
  background: #ffedd5;
}

.deck-lock-toggle.is-attention .deck-lock-thumb {
  color: var(--warning);
}

.deck-lock-toggle.is-locked {
  border-color: rgba(49, 94, 251, 0.34);
  background: #f6f9ff;
  box-shadow: 0 12px 28px rgba(49, 94, 251, 0.14);
  --lock-reveal-edge: rgba(255, 255, 255, 0.88);
  --lock-reveal-tint: rgba(49, 94, 251, 0.16);
}

.deck-lock-toggle.is-locked .deck-lock-rail {
  border-color: rgba(49, 94, 251, 0.48);
  background: linear-gradient(135deg, var(--primary), #5f7cff);
}

.deck-lock-toggle.is-locked .deck-lock-thumb {
  color: var(--primary);
  transform: translateX(26px);
}

.deck-lock-toggle.is-locked .deck-lock-icon::before {
  top: -9px;
  left: 0;
  transform: rotate(0);
}

.deck-lock-toggle.is-locked .deck-lock-title {
  color: var(--primary);
}

.deck-lock-toggle.is-locked.is-attention {
  border-color: rgba(181, 71, 8, 0.34);
  background: #fffaf4;
  box-shadow: 0 12px 28px rgba(181, 71, 8, 0.12);
}

.deck-lock-toggle.is-locked.is-attention .deck-lock-rail {
  border-color: rgba(181, 71, 8, 0.34);
  background: #ffedd5;
}

.deck-lock-toggle.is-locked.is-attention .deck-lock-thumb,
.deck-lock-toggle.is-locked.is-attention .deck-lock-title {
  color: var(--warning);
}

@media (prefers-reduced-motion: no-preference) {
  .deck-present-control.is-locking::before {
    animation: deck-present-reveal-ltr 860ms var(--premium-ease);
  }

  .deck-present-control.is-unlocking::before {
    animation: deck-present-reveal-rtl 860ms var(--premium-ease);
  }

  .deck-present-control.is-locking .deck-summary-status,
  .deck-present-control.is-locking .deck-present-helper {
    animation: deck-copy-reveal-ltr 680ms var(--premium-ease);
  }

  .deck-present-control.is-unlocking .deck-summary-status,
  .deck-present-control.is-unlocking .deck-present-helper {
    animation: deck-copy-reveal-rtl 680ms var(--premium-ease);
  }

  .deck-lock-toggle.is-locking .deck-lock-rail::before {
    animation: deck-rail-reveal-ltr 760ms var(--premium-ease);
  }

  .deck-lock-toggle.is-unlocking .deck-lock-rail::before {
    animation: deck-rail-reveal-rtl 760ms var(--premium-ease);
  }

  .deck-lock-toggle.is-locking .deck-lock-thumb {
    animation: deck-thumb-lock 760ms var(--settle-ease) both;
  }

  .deck-lock-toggle.is-unlocking .deck-lock-thumb {
    animation: deck-thumb-unlock 760ms var(--settle-ease) both;
  }

  .deck-lock-toggle.is-locking .deck-lock-icon::before {
    animation: deck-shackle-close 620ms var(--premium-ease) both;
  }

  .deck-lock-toggle.is-unlocking .deck-lock-icon::before {
    animation: deck-shackle-open 620ms var(--premium-ease) both;
  }

  .deck-lock-toggle.is-locking .deck-lock-title {
    animation: deck-copy-reveal-ltr 600ms var(--premium-ease);
  }

  .deck-lock-toggle.is-unlocking .deck-lock-title {
    animation: deck-copy-reveal-rtl 600ms var(--premium-ease);
  }

  @keyframes deck-present-reveal-ltr {
    0% {
      opacity: 0;
      clip-path: inset(0 100% 0 0 round 18px);
    }

    18% {
      opacity: 0.82;
    }

    64% {
      opacity: 0.38;
      clip-path: inset(0 0 0 0 round 18px);
    }

    to {
      opacity: 0;
      clip-path: inset(0 0 0 0 round 18px);
    }
  }

  @keyframes deck-present-reveal-rtl {
    0% {
      opacity: 0;
      clip-path: inset(0 0 0 100% round 18px);
    }

    18% {
      opacity: 0.82;
    }

    64% {
      opacity: 0.38;
      clip-path: inset(0 0 0 0 round 18px);
    }

    to {
      opacity: 0;
      clip-path: inset(0 0 0 0 round 18px);
    }
  }

  @keyframes deck-rail-reveal-ltr {
    0% {
      opacity: 0;
      clip-path: inset(0 100% 0 0 round 999px);
    }

    20% {
      opacity: 0.86;
    }

    68% {
      opacity: 0.46;
      clip-path: inset(0 0 0 0 round 999px);
    }

    to {
      opacity: 0;
      clip-path: inset(0 0 0 0 round 999px);
    }
  }

  @keyframes deck-rail-reveal-rtl {
    0% {
      opacity: 0;
      clip-path: inset(0 0 0 100% round 999px);
    }

    20% {
      opacity: 0.86;
    }

    68% {
      opacity: 0.46;
      clip-path: inset(0 0 0 0 round 999px);
    }

    to {
      opacity: 0;
      clip-path: inset(0 0 0 0 round 999px);
    }
  }

  @keyframes deck-thumb-lock {
    0% {
      transform: translateX(0);
    }

    70% {
      transform: translateX(26px);
    }

    to {
      transform: translateX(26px);
    }
  }

  @keyframes deck-thumb-unlock {
    0% {
      transform: translateX(26px);
    }

    70% {
      transform: translateX(0);
    }

    to {
      transform: translateX(0);
    }
  }

  @keyframes deck-shackle-close {
    0% {
      top: -9px;
      left: 4px;
      transform: rotate(24deg);
    }

    56% {
      top: -10px;
      left: 1px;
      transform: rotate(5deg);
    }

    to {
      top: -9px;
      left: 0;
      transform: rotate(0);
    }
  }

  @keyframes deck-shackle-open {
    0% {
      top: -9px;
      left: 0;
      transform: rotate(0);
    }

    46% {
      top: -10px;
      left: 1px;
      transform: rotate(5deg);
    }

    to {
      top: -9px;
      left: 4px;
      transform: rotate(24deg);
    }
  }

  @keyframes deck-copy-reveal-ltr {
    0% {
      clip-path: inset(0 100% 0 0);
      opacity: 0;
      transform: translateX(-4px);
    }

    72% {
      clip-path: inset(0 0 0 0);
      opacity: 1;
      transform: translateX(0);
    }

    to {
      clip-path: inset(0 0 0 0);
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes deck-copy-reveal-rtl {
    0% {
      clip-path: inset(0 0 0 100%);
      opacity: 0;
      transform: translateX(4px);
    }

    72% {
      clip-path: inset(0 0 0 0);
      opacity: 1;
      transform: translateX(0);
    }

    to {
      clip-path: inset(0 0 0 0);
      opacity: 1;
      transform: translateX(0);
    }
  }
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.library-panel .panel-header {
  flex-direction: column;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--tool-shadow);
}

.library-panel .panel-actions,
.library-panel .panel-actions .button-like {
  width: 100%;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.drop-zone {
  width: min(92vw, 680px);
  border: 2px dashed var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 34px 24px;
  display: grid;
  justify-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.drop-zone.drag-active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

#pdf-input,
#library-input,
#project-import-input {
  display: none;
}

.drop-title {
  font-weight: 700;
  font-size: 1.08rem;
}

.drop-hint {
  color: var(--muted);
}

.button-like,
.download-btn {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: normal;
}

.button-label-full,
.button-label-short {
  min-width: 0;
  overflow-wrap: anywhere;
}

.button-label-short {
  display: none;
}

.button-like {
  padding: 8px 14px;
}

.button-like.secondary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(49, 94, 251, 0.3);
}

.button-like.secondary:hover {
  background: #dde6ff;
}

.button-like.is-disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  border-color: var(--border);
}

.download-btn {
  padding: 8px 12px;
  text-align: center;
}

.button-like:hover,
.download-btn:hover {
  background: var(--primary-dark);
}

.master-replace-button {
  appearance: none;
  min-width: 0;
  min-height: 24px;
  padding: 3px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7a869d;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.master-replace-button:hover:not(:disabled) {
  background: #f1f4f8;
  color: #46556f;
}

.master-replace-button[hidden] {
  display: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.drop-zone:focus-within {
  outline: 3px solid rgba(49, 94, 251, 0.34);
  outline-offset: 3px;
}

.status {
  margin: 0;
  min-height: 1.2rem;
  color: var(--muted);
}

.status.error {
  color: #b42318;
}

.deck-status-shell {
  margin: -4px 0 12px;
}

.deck-status-shell .status {
  font-size: 0.82rem;
}

.sidebar-panel {
  margin: 0;
  border: 1px solid rgba(196, 206, 221, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--tool-shadow);
}

.project-panel {
  overflow: hidden;
}

.project-panel[open],
.slide-size-panel[open],
.interaction-panel:focus-within {
  border-color: rgba(49, 94, 251, 0.28);
}

.project-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  min-height: 58px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}

.project-summary::-webkit-details-marker,
.slide-size-panel summary::-webkit-details-marker {
  display: none;
}

.project-summary > span:first-child {
  display: grid;
  gap: 2px;
}

.project-summary strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.15;
}

.project-summary-helper {
  color: var(--muted);
  font-size: 0.72rem;
}

.project-panel > div {
  min-width: 0;
}

.details-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.details-label::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.project-panel[open] .details-label::after,
.slide-size-panel[open] .details-label::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.project-summary:hover,
.slide-size-panel summary:hover {
  background: rgba(248, 250, 252, 0.9);
}

.project-summary .details-label {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.project-status {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.project-status.has-warning {
  color: #92400e;
}

.project-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.project-actions .download-btn {
  width: 100%;
  min-height: 34px;
  font-size: 0.8rem;
}

.project-danger-zone {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 10px;
  border-top: 1px solid rgba(180, 35, 24, 0.16);
  background: rgba(254, 243, 242, 0.58);
}

.project-danger-zone > span {
  display: grid;
  gap: 2px;
  color: #b42318;
  font-size: 0.78rem;
  line-height: 1.35;
}

.project-danger-zone strong {
  font-size: 0.82rem;
}

.stage-view-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
  padding: 12px;
  border: 1px solid rgba(49, 94, 251, 0.18);
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 8px 22px rgba(29, 40, 64, 0.08);
}

.stage-view-toolbar.is-live {
  border-color: rgba(2, 122, 72, 0.3);
  background: rgba(248, 255, 251, 0.98);
  box-shadow: 0 10px 26px rgba(2, 122, 72, 0.12);
}

.deck-layout.is-locked-mode .stage-view-toolbar {
  overflow: hidden;
  border-color: rgba(49, 94, 251, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98)),
    linear-gradient(135deg, rgba(49, 94, 251, 0.12), rgba(2, 122, 72, 0.08));
  margin: 0;
  padding: 18px 16px 16px;
  border-radius: 14px;
  box-shadow:
    0 22px 44px rgba(26, 39, 72, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.deck-layout.is-locked-mode .stage-view-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #00a76f);
}

.deck-layout.is-locked-mode .stage-view-toolbar::after {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.86);
  pointer-events: none;
}

.deck-layout.is-locked-mode .stage-view-toolbar.is-live {
  border-color: rgba(2, 122, 72, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 255, 249, 0.98)),
    linear-gradient(135deg, rgba(2, 122, 72, 0.12), rgba(49, 94, 251, 0.08));
  box-shadow: 0 16px 36px rgba(2, 122, 72, 0.14);
}

.stage-view-toolbar[hidden] {
  display: none;
}

.deck-layout.is-locked-mode .library-panel .stage-view-toolbar {
  top: 16px;
  gap: 14px;
}

.deck-layout.is-locked-mode .library-panel .presenter-toolbar-header {
  display: grid;
  gap: 11px;
  padding-bottom: 2px;
}

.deck-layout.is-locked-mode .library-panel .presenter-kicker {
  color: #244ae8;
}

.deck-layout.is-locked-mode .library-panel .presenter-helper {
  max-width: 26ch;
  color: #536386;
  font-size: 0.84rem;
}

.deck-layout.is-locked-mode .library-panel .session-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 2px 0 0;
  border-top: 1px solid rgba(49, 94, 251, 0.14);
  border-bottom: 1px solid rgba(49, 94, 251, 0.14);
}

.deck-layout.is-locked-mode .library-panel .session-pill.is-ready {
  display: none;
}

.deck-layout.is-locked-mode .library-panel .session-meta {
  min-width: 0;
  padding: 7px 0;
  border-top: 1px solid rgba(49, 94, 251, 0.09);
  color: #3f4f73;
  font-size: 0.84rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.deck-layout.is-locked-mode .library-panel .session-meta:first-of-type {
  border-top: 0;
}

.deck-layout.is-locked-mode
  .library-panel
  .session-pill.is-ready
  + .session-meta {
  border-top: 0;
}

.deck-layout.is-locked-mode .library-panel .session-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.deck-layout.is-locked-mode .library-panel .session-actions .download-btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-radius: 10px;
  flex: none;
  font-weight: 850;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.deck-layout.is-locked-mode
  .library-panel
  .session-actions
  .presenter-primary-btn {
  flex-basis: auto;
  min-height: 54px;
  background: linear-gradient(180deg, #4168ff, #244ae8);
  box-shadow:
    0 14px 28px rgba(49, 94, 251, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.deck-layout.is-locked-mode
  .library-panel
  .session-actions
  .presenter-primary-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.deck-layout.is-locked-mode
  .library-panel
  .session-actions
  .presenter-primary-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #315efb, #1e3fd0);
  box-shadow:
    0 18px 34px rgba(49, 94, 251, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.deck-layout.is-locked-mode
  .library-panel
  .session-actions
  .presenter-secondary-btn {
  border: 1px solid rgba(49, 94, 251, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: #244ae8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.deck-layout.is-locked-mode
  .library-panel
  .session-actions
  .presenter-secondary-btn:hover:not(:disabled) {
  border-color: rgba(49, 94, 251, 0.42);
  background: #eef3ff;
  color: #1f3fbf;
}

.deck-layout.is-locked-mode .library-panel .session-actions .reset-btn {
  border: 1px solid rgba(145, 159, 184, 0.3);
  background: rgba(255, 255, 255, 0.84);
  color: #455575;
}

.deck-layout.is-locked-mode .library-panel .session-actions .danger-btn {
  background: #b42318;
  color: #fff;
}

.deck-layout.is-locked-mode .library-panel .session-qr-panel {
  grid-template-columns: 1fr;
  justify-items: start;
  padding-top: 12px;
  border-top-color: rgba(49, 94, 251, 0.14);
}

.presenter-toolbar-header,
.session-summary,
.session-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.presenter-toolbar-header {
  justify-content: space-between;
}

.presenter-helper {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.session-summary {
  min-width: 0;
  justify-content: flex-start;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.session-pill.is-live {
  background: #ecfdf3;
  color: #027a48;
}

.session-pill.is-ready {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(49, 94, 251, 0.18);
}

.session-pill.is-ended {
  background: #fef3f2;
  color: #b42318;
}

.session-pill.is-review {
  background: #fff7ed;
  color: var(--warning);
}

.session-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.session-actions .download-btn {
  flex: 1 1 128px;
  min-width: 112px;
}

.session-actions .presenter-primary-btn {
  flex-basis: 176px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(49, 94, 251, 0.18);
}

.deck-layout.is-locked-mode .session-actions .presenter-primary-btn {
  flex-basis: 220px;
  min-height: 48px;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px rgba(49, 94, 251, 0.22);
}

.session-actions .presenter-secondary-btn {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(49, 94, 251, 0.32);
  box-shadow: none;
}

.session-actions .presenter-secondary-btn:hover:not(:disabled) {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.session-actions .download-btn[hidden] {
  display: none;
}

.session-actions .danger-btn {
  background: #b42318;
}

.session-actions .danger-btn:hover {
  background: #912018;
}

.session-qr-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(49, 94, 251, 0.16);
}

.session-qr-panel[hidden] {
  display: none;
}

.session-qr-card {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.session-presenter-qr-card {
  padding: 8px;
  border: 1px solid rgba(2, 122, 72, 0.18);
  border-radius: 10px;
  background: #f6fef9;
}

.session-qr-code {
  width: 112px;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.session-qr-code svg,
.stage-qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

.session-qr-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.session-qr-label {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.session-controller-link {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.session-controller-link:hover {
  text-decoration: underline;
}

.slides-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
}

.deck-layout.is-locked-mode .slides-toolbar {
  border-color: rgba(196, 206, 221, 0.68);
  background: #f7f9fc;
}

.deck-layout.is-locked-mode .slides-toolbar,
.deck-layout.is-locked-mode .library-panel .panel-actions,
.deck-layout.is-locked-mode .project-actions,
.deck-layout.is-locked-mode .project-danger-zone,
.deck-layout.is-locked-mode .slide-size-content,
.deck-layout.is-locked-mode .interaction-actions {
  opacity: 0.68;
}

.deck-layout.is-locked-mode .library-panel .panel-header,
.deck-layout.is-locked-mode .project-panel,
.deck-layout.is-locked-mode .slide-size-panel,
.deck-layout.is-locked-mode .interaction-panel {
  border-color: rgba(196, 206, 221, 0.7);
  background: rgba(248, 250, 252, 0.72);
  box-shadow: none;
}

.slides-toolbar-label {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.slides-helper {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.library-lock-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.interaction-panel {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.sidebar-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-panel-header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.interaction-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.15;
}

.icebreaker-panel {
  border-color: rgba(15, 118, 110, 0.18);
}

.icebreaker-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(196, 206, 221, 0.88);
  border-radius: 8px;
  background: var(--surface);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.icebreaker-card.is-selected {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(180deg, #ffffff, #f6fffb);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.icebreaker-preview {
  align-self: start;
  width: 54px;
  height: 54px;
  position: relative;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18px 17px, rgba(20, 184, 166, 0.2), transparent 17px),
    linear-gradient(135deg, #f0fdfa, #ffffff);
}

.icebreaker-preview span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--icebreaker-accent);
  box-shadow: 0 5px 12px rgba(15, 118, 110, 0.18);
}

.icebreaker-preview span:nth-child(1) {
  left: 11px;
  top: 11px;
}

.icebreaker-preview span:nth-child(2) {
  right: 10px;
  top: 21px;
  background: #315efb;
}

.icebreaker-preview span:nth-child(3) {
  left: 21px;
  bottom: 9px;
  background: #7c3aed;
}

.icebreaker-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.icebreaker-card h4,
.icebreaker-card small {
  margin: 0;
}

.icebreaker-card h4 {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.18;
}

.icebreaker-card small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.icebreaker-card small.is-selected {
  background: var(--icebreaker-soft);
  color: var(--icebreaker-accent);
}

.icebreaker-card-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.icebreaker-card-actions .button-like,
.icebreaker-card-actions .download-btn {
  min-height: 38px;
  font-size: 0.82rem;
  font-weight: 800;
}

.interaction-badge.is-icebreaker,
.presenter-lock-type-badge.is-icebreaker {
  border-color: rgba(15, 118, 110, 0.26);
  background: var(--icebreaker-soft);
  color: var(--icebreaker-accent);
}

.slide-size-panel {
  overflow: hidden;
}

.slide-size-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}

.slide-size-content {
  display: grid;
  gap: 9px;
  padding: 0 12px 12px;
}

.size-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.size-label {
  color: var(--text);
  font-weight: 600;
}

.size-select {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.size-select select {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}

.size-helper {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.interaction-helper,
.interaction-lock-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.interaction-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.interaction-btn {
  width: 100%;
}

.interaction-action-card {
  position: relative;
  overflow: hidden;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(196, 206, 221, 0.9);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.button-like.secondary.interaction-action-card {
  border-color: rgba(196, 206, 221, 0.9);
  background: var(--surface);
}

.interaction-action-card::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: currentColor;
  opacity: 0.8;
}

.interaction-action-card.is-quiz {
  color: var(--quiz-accent);
}

.interaction-action-card.is-poll {
  color: var(--poll-accent);
}

.interaction-action-card.is-wordcloud {
  color: var(--wordcloud-accent);
}

.interaction-action-card.is-resource {
  color: var(--resource-accent);
}

.interaction-action-card:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(21, 31, 54, 0.08);
}

.interaction-action-card.is-quiz:hover:not(:disabled) {
  border-color: rgba(49, 94, 251, 0.38);
  background: #f8faff;
}

.interaction-action-card.is-poll:hover:not(:disabled) {
  border-color: rgba(4, 120, 87, 0.38);
  background: #f8fffb;
}

.interaction-action-card.is-wordcloud:hover:not(:disabled) {
  border-color: rgba(14, 116, 144, 0.36);
  background: #f4fdff;
}

.interaction-action-card.is-resource:hover:not(:disabled) {
  border-color: rgba(124, 58, 237, 0.36);
  background: #fcfaff;
}

.interaction-action-icon {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 206, 221, 0.76);
  border-radius: 8px;
  background: currentColor;
  font-size: 0.9rem;
  font-weight: 900;
}

.quiz-icon {
  color: var(--quiz-accent);
  background: var(--quiz-soft);
  border-color: rgba(49, 94, 251, 0.24);
}

.quiz-icon-question {
  display: inline-block;
  transform: translate(-2px, -1px);
  font-size: 1.05rem;
  line-height: 1;
}

.quiz-icon-check {
  position: absolute;
  right: 8px;
  bottom: 9px;
  width: 11px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.poll-icon {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  color: var(--poll-accent);
  background: var(--poll-soft);
  border-color: rgba(4, 120, 87, 0.24);
}

.poll-icon span {
  width: 5px;
  border-radius: 999px;
  background: currentColor;
}

.poll-icon span:nth-child(1) {
  height: 12px;
}

.poll-icon span:nth-child(2) {
  height: 18px;
}

.poll-icon span:nth-child(3) {
  height: 9px;
}

.wordcloud-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 3px;
  padding: 5px;
  color: var(--wordcloud-accent);
  background: var(--wordcloud-soft);
  border-color: rgba(14, 116, 144, 0.24);
}

.wordcloud-icon span {
  max-width: 100%;
  padding: 1px 3px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.12);
  color: currentColor;
  font-size: 0.42rem;
  font-weight: 900;
  line-height: 1.2;
}

.resource-icon {
  color: var(--resource-accent);
  background: var(--resource-soft);
  border-color: rgba(124, 58, 237, 0.24);
}

.resource-icon span {
  position: absolute;
  width: 18px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.resource-icon span:nth-child(1) {
  top: 9px;
  left: 10px;
}

.resource-icon span:nth-child(2) {
  right: 8px;
  bottom: 9px;
  background: rgba(255, 255, 255, 0.9);
}

.interaction-action-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.interaction-action-copy strong,
.interaction-action-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.interaction-action-copy strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.15;
}

.interaction-action-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

.interaction-action-plus {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: currentColor;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

button.button-like.interaction-action-card:disabled,
button.button-like.interaction-action-card.is-disabled {
  border-color: var(--border);
  background: #f1f4f8;
  color: var(--muted);
  transform: none;
  box-shadow: none;
}

button.button-like.interaction-action-card:disabled .interaction-action-icon,
button.button-like.interaction-action-card.is-disabled .interaction-action-icon {
  border-color: var(--border-strong);
  background: #e8edf5;
  color: var(--muted);
}

button.button-like.interaction-action-card:disabled .interaction-action-plus,
button.button-like.interaction-action-card.is-disabled .interaction-action-plus {
  background: #e8edf5;
}

button.button-like.interaction-action-card:disabled .poll-icon span,
button.button-like.interaction-action-card.is-disabled .poll-icon span {
  background: currentColor;
}

.interaction-overview {
  display: grid;
  gap: 7px;
}

.interaction-empty {
  margin: 0;
  padding: 9px 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.interaction-overview-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interaction-overview-list li {
  min-width: 0;
}

.interaction-overview-item {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid rgba(196, 206, 221, 0.84);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.interaction-overview-item.is-quiz:hover {
  border-color: rgba(49, 94, 251, 0.38);
  background: #f7f9ff;
}

.interaction-overview-item.is-poll:hover {
  border-color: rgba(4, 120, 87, 0.38);
  background: #f6fdf9;
}

.interaction-overview-item.is-wordcloud:hover {
  border-color: rgba(14, 116, 144, 0.38);
  background: #f2fcfe;
}

.interaction-overview-item.is-resource:hover {
  border-color: rgba(124, 58, 237, 0.38);
  background: #fbf7ff;
}

.interaction-overview-position {
  color: #485a7a;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.interaction-overview-type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px 4px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.interaction-overview-item.is-quiz .interaction-overview-type {
  background: var(--quiz-soft);
  color: var(--quiz-accent);
}

.interaction-overview-item.is-poll .interaction-overview-type {
  background: var(--poll-soft);
  color: var(--poll-accent);
}

.interaction-overview-item.is-wordcloud .interaction-overview-type {
  background: var(--wordcloud-soft);
  color: var(--wordcloud-accent);
}

.interaction-overview-item.is-resource .interaction-overview-type {
  background: var(--resource-soft);
  color: var(--resource-accent);
}

.interaction-overview-title {
  min-width: 0;
  color: var(--text);
  font-size: 0.81rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

button.button-like:disabled,
button.button-like.is-disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  border-color: var(--border);
}

button.download-btn:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.reset-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.reset-btn:hover {
  background: var(--primary-soft);
}

.danger-outline-btn {
  background: transparent;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.54);
}

.danger-outline-btn:hover {
  background: #fef3f2;
  color: #912018;
}

button.download-btn.reset-btn:disabled {
  border-color: var(--border);
}

button.download-btn.danger-outline-btn:disabled {
  border-color: var(--border);
}

.slides-toolbar .download-btn {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
}

.slides-toolbar .download-btn:hover {
  border-color: rgba(49, 94, 251, 0.42);
  background: var(--primary-soft);
  color: var(--primary);
}

.slides-toolbar #reset-order {
  border-color: rgba(181, 71, 8, 0.28);
  background: #fffaf4;
  color: var(--warning);
}

.slides-toolbar #reset-order:hover:not(:disabled) {
  border-color: rgba(181, 71, 8, 0.42);
  background: #fff7ed;
  color: #92400e;
}

.slides-toolbar .download-btn:disabled {
  border-color: var(--border);
  background: #eef1f5;
  color: var(--muted);
}

.project-danger-zone .danger-outline-btn {
  width: 100%;
  min-height: 34px;
  font-size: 0.8rem;
}

.slides-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.library-list {
  display: grid;
  gap: 18px;
}

.library-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.library-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.library-deck-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.deck-count {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.deck-meta-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.library-deck-delete {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.deck-size {
  font-size: 0.8rem;
  color: var(--muted);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.library-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(29, 40, 64, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
}

.library-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #f0f4ff;
}

.library-card-body {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.library-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.add-btn {
  width: 100%;
}

.slide-card {
  min-width: 0;
  scroll-margin: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(29, 40, 64, 0.1);
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.slide-card.is-locked {
  cursor: default;
}

.slide-card.is-locked:hover {
  box-shadow: 0 8px 26px rgba(29, 40, 64, 0.08);
  transform: none;
}

.slide-card:hover {
  box-shadow: 0 12px 28px rgba(29, 40, 64, 0.14);
  transform: translateY(-2px);
}

.slide-card:active {
  cursor: grabbing;
}

.slide-card.dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.slide-card.drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.2);
}

.slide-card.is-newly-added {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(49, 94, 251, 0.18),
    0 18px 34px rgba(49, 94, 251, 0.16);
}

.interaction-card.is-poll.is-newly-added {
  border-color: var(--poll-accent);
  box-shadow:
    0 0 0 4px rgba(4, 120, 87, 0.18),
    0 18px 34px rgba(4, 120, 87, 0.14);
}

.interaction-card.is-resource.is-newly-added {
  border-color: var(--resource-accent);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.16),
    0 18px 34px rgba(124, 58, 237, 0.13);
}

.new-item-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.interaction-card.is-poll .new-item-chip {
  background: var(--poll-accent);
}

.interaction-card.is-resource .new-item-chip {
  background: var(--resource-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .slide-card.is-newly-added {
    animation: deck-item-added 680ms ease-out;
  }

  .new-item-chip {
    animation: new-item-chip-added 220ms ease-out;
  }
}

@keyframes deck-item-added {
  0% {
    transform: translateY(10px);
  }

  55% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes new-item-chip-added {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

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

.slide-card.is-session-current {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(49, 94, 251, 0.18),
    0 12px 28px rgba(49, 94, 251, 0.14);
}

.icebreaker-deck-card {
  border-color: rgba(15, 118, 110, 0.24);
  border-left: 5px solid var(--icebreaker-accent);
  background: #fbfffd;
  cursor: default;
}

.icebreaker-deck-card:hover,
.icebreaker-deck-card:active {
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
  transform: none;
  cursor: default;
}

.icebreaker-deck-card.is-session-current {
  border-color: var(--icebreaker-accent);
  border-left-color: var(--icebreaker-accent);
  box-shadow:
    0 0 0 3px rgba(15, 118, 110, 0.16),
    0 12px 28px rgba(15, 118, 110, 0.12);
}

.slide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.icebreaker-deck-card-header {
  background: #f0fdfa;
  border-bottom-color: rgba(15, 118, 110, 0.18);
}

.slide-card-header-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.drag-handle {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  cursor: grab;
}

.slide-card.is-locked .drag-handle {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.icebreaker-pre-slide-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--icebreaker-accent);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.icebreaker-position-badge {
  color: var(--icebreaker-accent);
  font-weight: 850;
}

.slide-remove-button {
  appearance: none;
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #9a3412;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.slide-remove-button::before,
.slide-remove-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.slide-remove-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.slide-remove-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.slide-remove-button:hover {
  border-color: rgba(180, 35, 24, 0.38);
  background: #fff7f5;
  color: #b42318;
  box-shadow:
    0 8px 16px rgba(180, 35, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.slide-remove-button:focus-visible {
  outline: 3px solid rgba(180, 35, 24, 0.18);
  outline-offset: 2px;
}

.slide-card img,
.slide-missing-asset {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #f3f6ff;
}

.slide-card img {
  object-fit: contain;
}

.icebreaker-deck-card-body {
  min-height: 178px;
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: minmax(96px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-block: 1px solid rgba(15, 118, 110, 0.12);
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(49, 94, 251, 0.05)),
    #f8fffb;
}

.icebreaker-deck-preview {
  position: relative;
  min-width: 0;
  width: min(112px, 100%);
  aspect-ratio: 1;
  justify-self: center;
}

.icebreaker-deck-preview span {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.66), transparent 30%),
    var(--preview-blob-color, var(--icebreaker-accent));
  box-shadow:
    0 10px 22px rgba(15, 118, 110, 0.14),
    0 0 0 8px
      color-mix(
        in srgb,
        var(--preview-blob-color, var(--icebreaker-accent)),
        transparent 84%
      );
}

.icebreaker-deck-preview span:nth-child(1) {
  top: 10%;
  left: 12%;
}

.icebreaker-deck-preview span:nth-child(2) {
  top: 34%;
  right: 6%;
}

.icebreaker-deck-preview span:nth-child(3) {
  bottom: 8%;
  left: 28%;
}

.icebreaker-deck-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.slide-missing-asset {
  display: grid;
  place-items: center;
  padding: 18px;
  border-block: 1px solid var(--border);
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.interaction-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fbfcff;
  border-left: 5px solid var(--quiz-accent);
}

.interaction-card.is-quiz {
  border-color: rgba(49, 94, 251, 0.28);
  border-left-color: var(--quiz-accent);
}

.interaction-card.is-poll {
  border-color: rgba(4, 120, 87, 0.3);
  border-left-color: var(--poll-accent);
}

.interaction-card.is-wordcloud {
  border-color: rgba(14, 116, 144, 0.28);
  border-left-color: var(--wordcloud-accent);
}

.interaction-card.is-resource {
  border-color: rgba(124, 58, 237, 0.28);
  border-left-color: var(--resource-accent);
}

.interaction-card.is-runtime-current {
  border-color: var(--primary);
}

.interaction-card.is-poll.is-runtime-current {
  border-color: var(--poll-accent);
}

.interaction-card.is-wordcloud.is-runtime-current {
  border-color: var(--wordcloud-accent);
}

.interaction-card.is-resource.is-runtime-current {
  border-color: var(--resource-accent);
}

.interaction-card-header {
  align-items: center;
  background: #f8fbff;
}

.interaction-card.is-poll .interaction-card-header {
  background: #f6fdf9;
}

.interaction-card.is-wordcloud .interaction-card-header {
  background: #f2fcfe;
}

.interaction-card.is-resource .interaction-card-header {
  background: #fbf7ff;
}

.interaction-card-header-badges {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-drag-handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid rgba(49, 94, 251, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1;
}

.interaction-card.is-poll .compact-drag-handle {
  border-color: rgba(4, 120, 87, 0.2);
  color: var(--poll-accent);
}

.interaction-card.is-wordcloud .compact-drag-handle {
  border-color: rgba(14, 116, 144, 0.22);
  color: var(--wordcloud-accent);
}

.interaction-card.is-resource .compact-drag-handle {
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--resource-accent);
}

.compact-drag-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: currentColor;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.4px);
  background-position: 1px 1px;
  background-size: 6px 6px;
  background-repeat: repeat;
  opacity: 0.86;
}

.compact-drag-icon.is-locked {
  position: relative;
  background: none;
  opacity: 0.74;
}

.compact-drag-icon.is-locked::before,
.compact-drag-icon.is-locked::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.compact-drag-icon.is-locked::before {
  bottom: 3px;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.compact-drag-icon.is-locked::after {
  top: 2px;
  width: 8px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.interaction-position-badge {
  min-height: 24px;
  padding: 4px 8px;
  color: var(--text);
  font-weight: 850;
}

.interaction-card-body {
  min-height: 178px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 11px;
  background:
    linear-gradient(135deg, rgba(49, 94, 251, 0.09), rgba(14, 116, 144, 0.05)),
    #f8fbff;
}

.interaction-card-body.poll {
  background:
    linear-gradient(135deg, rgba(4, 120, 87, 0.1), rgba(245, 158, 11, 0.07)),
    #f8fffb;
}

.interaction-card-body.wordcloud {
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(49, 94, 251, 0.05)),
    #f4fdff;
}

.interaction-card-body.resource {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(49, 94, 251, 0.05)),
    #fbf7ff;
}

.interaction-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(49, 94, 251, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.interaction-badge.is-quiz {
  background: var(--quiz-soft);
  color: var(--quiz-accent);
  border-color: rgba(49, 94, 251, 0.26);
}

.interaction-badge.is-poll {
  background: var(--poll-soft);
  color: var(--poll-accent);
  border-color: rgba(4, 120, 87, 0.28);
}

.interaction-badge.is-wordcloud {
  background: var(--wordcloud-soft);
  color: var(--wordcloud-accent);
  border-color: rgba(14, 116, 144, 0.28);
}

.interaction-badge.is-resource {
  background: var(--resource-soft);
  color: var(--resource-accent);
  border-color: rgba(124, 58, 237, 0.28);
}

.interaction-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.interaction-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.interaction-card-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.interaction-detail-chip,
.interaction-status-chip,
.interaction-runtime-chip {
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.interaction-detail-chip.is-quiz {
  border-color: rgba(49, 94, 251, 0.24);
  background: var(--quiz-soft);
  color: var(--quiz-accent);
}

.interaction-detail-chip.is-poll {
  border-color: rgba(4, 120, 87, 0.28);
  background: var(--poll-soft);
  color: var(--poll-accent);
}

.interaction-detail-chip.is-wordcloud {
  border-color: rgba(14, 116, 144, 0.28);
  background: var(--wordcloud-soft);
  color: var(--wordcloud-accent);
}

.interaction-detail-chip.is-resource {
  border-color: rgba(124, 58, 237, 0.28);
  background: var(--resource-soft);
  color: var(--resource-accent);
}

.interaction-status-chip.is-draft {
  border-color: rgba(49, 94, 251, 0.2);
  background: var(--surface);
  color: var(--primary);
}

.interaction-status-chip.is-locked {
  border-color: rgba(181, 71, 8, 0.26);
  background: #fff7ed;
  color: var(--warning);
}

.interaction-status-chip.is-live {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.interaction-status-chip.is-completed {
  border-color: rgba(2, 122, 72, 0.28);
  background: #ecfdf3;
  color: var(--success);
}

.interaction-runtime-chip {
  color: var(--muted);
}

.interaction-card-actions {
  display: grid;
  gap: 8px;
}

.interaction-card-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 0.46fr);
  gap: 8px;
}

.interaction-card.is-locked .interaction-card-action-row {
  grid-template-columns: 1fr;
}

.interaction-card-actions .download-btn {
  width: 100%;
}

.interaction-runtime-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(49, 94, 251, 0.2);
  border-radius: 10px;
  background: #f7f9ff;
}

.interaction-card.is-runtime-current .interaction-runtime-controls {
  box-shadow: inset 0 0 0 1px rgba(49, 94, 251, 0.08);
}

.interaction-card.is-poll .interaction-runtime-controls {
  border-color: rgba(4, 120, 87, 0.22);
  background: #f6fdf9;
}

.interaction-card.is-wordcloud .interaction-runtime-controls {
  border-color: rgba(14, 116, 144, 0.22);
  background: #f2fcfe;
}

.interaction-card.is-poll.is-runtime-current .interaction-runtime-controls {
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.1);
}

.interaction-card.is-wordcloud.is-runtime-current .interaction-runtime-controls {
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.1);
}

.interaction-runtime-btn {
  min-height: 36px;
  font-size: 0.8rem;
  font-weight: 850;
}

.interaction-edit-btn:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.interaction-delete-btn {
  border-color: rgba(180, 35, 24, 0.3);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.interaction-delete-btn:hover {
  border-color: rgba(180, 35, 24, 0.46);
  background: #fff7f6;
  color: #912018;
}

.poll-results {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.78);
}

.poll-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.poll-result-list {
  display: grid;
  gap: 8px;
}

.poll-result-row {
  display: grid;
  gap: 5px;
}

.poll-result-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.poll-result-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
}

.poll-result-value {
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.poll-result-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
}

.poll-result-bar {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #315efb);
  transition: width 180ms ease;
}

.wordcloud-results {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(14, 116, 144, 0.24);
  border-radius: 10px;
  background: #fbfdff;
}

.wordcloud-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--wordcloud-accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wordcloud-term-list {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 128px;
  padding: 12px;
  border-radius: 10px;
  background: #f6fbfc;
}

.wordcloud-term {
  --word-weight: 0.5;
  --word-tilt: 0deg;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 4px;
  color: var(--wordcloud-accent);
  font-size: calc(0.88rem + (var(--word-weight) * 0.88rem));
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(var(--word-tilt));
  transform-origin: center;
}

.wordcloud-term:nth-child(5n + 1) {
  --word-tilt: -5deg;
  color: #0e7490;
}

.wordcloud-term:nth-child(5n + 2) {
  --word-tilt: 4deg;
  color: #315efb;
}

.wordcloud-term:nth-child(5n + 3) {
  --word-tilt: -2deg;
  color: #b45309;
}

.wordcloud-term:nth-child(5n + 4) {
  --word-tilt: 6deg;
  color: #027a48;
}

.wordcloud-term:nth-child(5n) {
  --word-tilt: -7deg;
  color: #be123c;
}

.wordcloud-empty {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.stage-wordcloud-results .wordcloud-term-list {
  min-height: min(48vh, 460px);
  gap: 16px 24px;
  padding: clamp(18px, 3vw, 38px);
}

.stage-wordcloud-results .wordcloud-term {
  min-height: 38px;
  padding: 2px 8px;
  font-size: calc(1.2rem + (var(--word-weight) * 2.4rem));
}

.quiz-results {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(49, 94, 251, 0.24);
  border-radius: 10px;
  background: rgba(238, 243, 255, 0.78);
}

.quiz-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quiz-result-list {
  display: grid;
  gap: 8px;
}

.quiz-result-row {
  display: grid;
  gap: 5px;
}

.quiz-result-row.is-correct {
  padding: 8px;
  border: 1px solid rgba(2, 122, 72, 0.22);
  border-radius: 9px;
  background: rgba(236, 253, 243, 0.86);
}

.quiz-result-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.quiz-result-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
}

.quiz-result-row.is-correct .quiz-result-label::after {
  content: " correct";
  color: #027a48;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-result-value {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.quiz-result-row.is-correct .quiz-result-value {
  color: #027a48;
}

.quiz-result-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 94, 251, 0.16);
}

.quiz-result-bar {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #315efb, #11b800);
  transition: width 180ms ease;
}

.slides-grid.is-presenter-timeline-mode {
  display: block;
}

.presenter-lock-view {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.presenter-current-shell {
  min-width: 0;
}

.presenter-current-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.presenter-current-card.is-current {
  border-color: var(--primary);
}

.presenter-current-card.is-quiz {
  border-left: 5px solid var(--quiz-accent);
}

.presenter-current-card.is-poll {
  border-left: 5px solid var(--poll-accent);
}

.presenter-current-card.is-wordcloud {
  border-left: 5px solid var(--wordcloud-accent);
}

.presenter-current-card.is-resource {
  border-left: 5px solid var(--resource-accent);
}

.presenter-current-card.is-icebreaker {
  border-left: 5px solid var(--icebreaker-accent);
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}

.presenter-lock-current-header {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfcff;
}

.presenter-lock-current-title-group {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.presenter-lock-current-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.presenter-lock-current-position {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.presenter-lock-type-badge {
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(49, 94, 251, 0.22);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.presenter-lock-type-badge.is-poll {
  border-color: rgba(4, 120, 87, 0.28);
  background: var(--poll-soft);
  color: var(--poll-accent);
}

.presenter-lock-type-badge.is-wordcloud {
  border-color: rgba(14, 116, 144, 0.28);
  background: var(--wordcloud-soft);
  color: var(--wordcloud-accent);
}

.presenter-lock-type-badge.is-resource {
  border-color: rgba(124, 58, 237, 0.28);
  background: var(--resource-soft);
  color: var(--resource-accent);
}

.presenter-lock-type-badge.is-icebreaker {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--icebreaker-soft);
  color: var(--icebreaker-accent);
}

.presenter-lock-type-badge.is-compact {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 0.68rem;
}

.presenter-current-media,
.presenter-timeline-thumbnail {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #f3f6ff;
}

.presenter-current-media {
  max-height: 64vh;
  object-fit: contain;
}

.presenter-timeline-thumbnail {
  object-fit: contain;
}

.presenter-missing-asset {
  display: grid;
  place-items: center;
  padding: 16px;
  color: #92400e;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.presenter-current-interaction {
  min-width: 0;
  min-height: 320px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(49, 94, 251, 0.08), rgba(14, 116, 144, 0.05)),
    #f8fbff;
}

.presenter-current-interaction.is-poll {
  background:
    linear-gradient(135deg, rgba(4, 120, 87, 0.09), rgba(245, 158, 11, 0.06)),
    #f8fffb;
}

.presenter-current-interaction.is-wordcloud {
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.09), rgba(49, 94, 251, 0.05)),
    #f4fdff;
}

.presenter-current-interaction.is-resource {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.09), rgba(49, 94, 251, 0.05)),
    #fbf7ff;
}

.presenter-lock-current-interaction-header,
.presenter-lock-current-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.presenter-lock-current-copy {
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.presenter-lock-current-meta {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fbfcff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.presenter-current-interaction .presenter-lock-current-meta {
  padding: 0;
  border-top: 0;
  background: transparent;
}

.presenter-current-interaction .poll-results,
.presenter-current-interaction .quiz-results,
.presenter-current-interaction .wordcloud-results {
  margin-top: 0;
}

.presenter-current-interaction .interaction-runtime-controls {
  max-width: 560px;
}

.presenter-timeline {
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-color: var(--border-strong) transparent;
}

.presenter-timeline-list {
  width: max-content;
  min-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 220px);
  gap: 10px;
  margin: 0;
  padding: 2px 2px 8px;
  list-style: none;
}

.presenter-timeline-item {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--tool-shadow);
}

.presenter-timeline-item.is-current {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(49, 94, 251, 0.14),
    var(--tool-shadow);
}

.presenter-timeline-item.is-past {
  background: #f8fafc;
}

.presenter-timeline-item.is-future {
  opacity: 0.86;
}

.presenter-timeline-item.is-poll.is-current {
  border-color: var(--poll-accent);
  box-shadow:
    0 0 0 3px rgba(4, 120, 87, 0.14),
    var(--tool-shadow);
}

.presenter-timeline-item.is-wordcloud.is-current {
  border-color: var(--wordcloud-accent);
  box-shadow:
    0 0 0 3px rgba(14, 116, 144, 0.14),
    var(--tool-shadow);
}

.presenter-timeline-item.is-resource.is-current {
  border-color: var(--resource-accent);
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.14),
    var(--tool-shadow);
}

.presenter-timeline-item.is-icebreaker.is-current {
  border-color: var(--icebreaker-accent);
  box-shadow:
    0 0 0 3px rgba(15, 118, 110, 0.14),
    var(--tool-shadow);
}

.presenter-timeline-thumbnail {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.presenter-timeline-interaction-preview {
  display: grid;
  place-items: center;
  padding: 10px;
  background: var(--quiz-soft);
  color: var(--quiz-accent);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.presenter-timeline-interaction-preview.is-poll {
  background: var(--poll-soft);
  color: var(--poll-accent);
}

.presenter-timeline-interaction-preview.is-wordcloud {
  background: var(--wordcloud-soft);
  color: var(--wordcloud-accent);
}

.presenter-timeline-interaction-preview.is-resource {
  background: var(--resource-soft);
  color: var(--resource-accent);
}

.presenter-timeline-interaction-preview.is-icebreaker {
  background: linear-gradient(135deg, var(--icebreaker-soft), #fff7ed);
  color: var(--icebreaker-accent);
}

.presenter-timeline-meta {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.presenter-timeline-topline {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.presenter-timeline-position {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.presenter-timeline-title {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.interaction-delete-btn {
  padding-inline: 10px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 40, 64, 0.38);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(29, 40, 64, 0.28);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.modal-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.modal-title-block {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.modal-title-block h2 {
  margin: 0;
}

.modal-type-badge {
  width: fit-content;
}

.modal-close {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.editor-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  align-items: start;
  gap: 16px;
}

.editor-form {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.editor-preview-shell {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
}

.editor-preview-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.editor-preview-root {
  min-width: 0;
}

.editor-deck-preview-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(49, 94, 251, 0.24);
  border-left: 5px solid var(--quiz-accent);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(49, 94, 251, 0.08), rgba(14, 116, 144, 0.04)),
    #f8fbff;
}

.editor-deck-preview-card.is-poll {
  border-color: rgba(4, 120, 87, 0.28);
  border-left-color: var(--poll-accent);
  background:
    linear-gradient(135deg, rgba(4, 120, 87, 0.1), rgba(245, 158, 11, 0.06)),
    #f8fffb;
}

.editor-deck-preview-card.is-wordcloud {
  border-color: rgba(14, 116, 144, 0.28);
  border-left-color: var(--wordcloud-accent);
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(49, 94, 251, 0.05)),
    #f4fdff;
}

.editor-deck-preview-card.is-resource {
  border-color: rgba(124, 58, 237, 0.28);
  border-left-color: var(--resource-preview-color, var(--resource-accent));
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(49, 94, 251, 0.05)),
    #fbf7ff;
}

.editor-preview-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
}

.editor-preview-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.editor-preview-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.editor-field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.editor-visibility-field {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.86);
}

.editor-field span {
  color: var(--text);
  font-weight: 700;
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 9px 10px;
}

.editor-field textarea {
  min-height: 76px;
  resize: vertical;
}

.editor-field input[aria-invalid="true"],
.editor-field textarea[aria-invalid="true"],
.editor-field select[aria-invalid="true"],
.quiz-option-row input[aria-invalid="true"],
.poll-option-row input[aria-invalid="true"],
.resource-entry-editor input[aria-invalid="true"],
.resource-entry-editor textarea[aria-invalid="true"] {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.field-error {
  margin: 0;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.field-error[hidden] {
  display: none;
}

.quiz-questions-list {
  display: grid;
  gap: 14px;
}

.quiz-question-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
}

.quiz-question-editor.is-invalid {
  border-color: rgba(217, 45, 32, 0.34);
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
}

.quiz-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-question-header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.quiz-options-list {
  display: grid;
  gap: 8px;
}

.quiz-options-heading,
.poll-options-heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: -4px;
}

.quiz-options-heading p,
.poll-options-heading p {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 850;
}

.quiz-options-heading small,
.poll-options-heading small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.quiz-option-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.quiz-option-row.is-correct {
  border-color: rgba(2, 122, 72, 0.28);
  background: rgba(236, 253, 243, 0.64);
}

.quiz-option-row.is-invalid,
.poll-option-row.is-invalid {
  border-color: rgba(217, 45, 32, 0.34);
  background: #fffafa;
}

.resource-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.32fr);
  gap: 12px;
}

.resource-color-field input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.resource-entries-list {
  display: grid;
  gap: 12px;
}

.resource-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.resource-entry-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbf7ff;
}

.resource-entry-editor.is-invalid {
  border-color: rgba(217, 45, 32, 0.34);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
}

.resource-entry-header,
.resource-entry-type-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource-entry-header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.resource-entry-type-row {
  align-items: start;
}

.resource-entry-type-row .editor-field {
  flex: 1 1 160px;
}

.resource-file-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.resource-add-entry {
  justify-self: start;
}

.editor-option-letter {
  min-width: 32px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(49, 94, 251, 0.24);
  border-radius: 8px;
  background: var(--quiz-soft);
  color: var(--quiz-accent);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.poll-option-label {
  min-width: 78px;
  border-color: rgba(4, 120, 87, 0.28);
  background: var(--poll-soft);
  color: var(--poll-accent);
}

.quiz-option-row input[type="text"],
.poll-option-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 9px 10px;
}

.quiz-option-correct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.quiz-option-correct.is-selected {
  border-color: rgba(2, 122, 72, 0.32);
  background: #ecfdf3;
  color: var(--success);
}

.quiz-option-correct.is-invalid {
  border-color: rgba(217, 45, 32, 0.34);
  background: #fffafa;
  color: #b42318;
}

.quiz-option-correct input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--success);
}

.quiz-option-row > .field-error,
.poll-option-row > .field-error {
  grid-column: 2 / -1;
}

.quiz-question-error,
.editor-list-error {
  width: fit-content;
}

.quiz-question-actions,
.quiz-option-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quiz-add-question {
  justify-self: start;
}

.poll-options-editor-list {
  display: grid;
  gap: 8px;
}

.poll-option-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.poll-add-option {
  justify-self: start;
}

.editor-remove-btn {
  min-height: 32px;
  padding: 5px 8px;
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.editor-remove-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-muted);
  color: var(--text);
}

.editor-remove-btn:disabled {
  border-color: var(--border);
  color: var(--muted);
  opacity: 0.68;
}

.editor-error {
  min-height: 1.2rem;
  margin: 0;
  color: #b42318;
  font-size: 0.85rem;
}

body.stage-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #05070d;
  color: #fff;
}

body.controller-page {
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(circle at top, #eef3ff, var(--bg) 52%);
}

body.presenter-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef6f1 100%);
}

.presenter-app {
  width: min(760px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 12px;
}

.presenter-remote-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 2px;
}

.presenter-remote-header > div {
  min-width: 0;
}

.presenter-remote-header h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.presenter-remote-kicker {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.presenter-room {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 8px 10px;
  border: 1px solid rgba(2, 122, 72, 0.24);
  border-radius: 8px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.presenter-status-panel,
.presenter-current-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(29, 40, 64, 0.08);
}

.presenter-status-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.presenter-status-row,
.presenter-metrics,
.presenter-current-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.presenter-status {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 850;
}

.presenter-status.is-connected {
  background: #ecfdf3;
  color: #027a48;
}

.presenter-status.is-error {
  background: #fef3f2;
  color: #b42318;
}

.presenter-session-copy,
.presenter-metric,
.presenter-current-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.presenter-metrics {
  gap: 8px;
}

.presenter-metric {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 800;
}

.presenter-current-panel {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  cursor: pointer;
}

.presenter-current-panel::after {
  content: attr(data-tap-indicator);
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(2, 122, 72, 0.9);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.presenter-current-panel.is-tap-previous::after {
  right: auto;
  left: 16px;
  background: rgba(29, 40, 64, 0.9);
}

.presenter-current-panel.is-tap-next::after,
.presenter-current-panel.is-tap-previous::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.presenter-current-header {
  align-items: flex-start;
}

.presenter-current-header h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.presenter-type-badge {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(49, 94, 251, 0.22);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.presenter-type-badge.is-poll {
  border-color: rgba(4, 120, 87, 0.22);
  background: var(--poll-soft);
  color: var(--poll-accent);
}

.presenter-type-badge.is-resource {
  border-color: rgba(124, 58, 237, 0.22);
  background: var(--resource-soft);
  color: var(--resource-accent);
}

.presenter-item-content {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 2px;
}

.presenter-question-block {
  display: grid;
  gap: 10px;
}

.presenter-question-block h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.presenter-option-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.presenter-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.presenter-option-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.presenter-poll-results,
.presenter-quiz-results {
  margin-top: 0;
  border-radius: 8px;
}

.presenter-slide-preview {
  width: 100%;
  max-height: min(46vh, 520px);
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(29, 40, 64, 0.08);
  user-select: none;
  -webkit-user-drag: none;
}

.presenter-resource-preparing {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(29, 40, 64, 0.86);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 8px 18px rgba(29, 40, 64, 0.2);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transform: translateX(-50%);
}

.presenter-resource-preparing[hidden] {
  display: none;
}

.presenter-empty-note {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  line-height: 1.4;
}

.presenter-resource-list {
  display: grid;
  gap: 10px;
}

.presenter-resource-link {
  display: grid;
  min-height: 44px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-left: 5px solid var(--resource-accent);
  border-radius: 8px;
  background: #fbf7ff;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.presenter-resource-link:hover {
  border-color: rgba(124, 58, 237, 0.42);
}

.presenter-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.presenter-nav-button,
.presenter-end-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.presenter-nav-button {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto auto;
  place-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 12px;
  background: #1d2840;
  color: #fff;
  box-shadow: 0 10px 20px rgba(29, 40, 64, 0.14);
}

.presenter-nav-button.is-previous {
  border: 1px solid rgba(29, 40, 64, 0.16);
  background: var(--surface-muted);
  color: #1d2840;
  box-shadow: none;
}

.presenter-nav-button span {
  font-size: 1.8rem;
  line-height: 0.85;
}

.presenter-nav-button small {
  font-size: 0.82rem;
}

.presenter-nav-button.is-previous small {
  font-size: 0.78rem;
}

.presenter-nav-button:not(:disabled):active,
.presenter-end-button:not(:disabled):active {
  transform: translateY(1px);
}

.presenter-end-button {
  min-height: 48px;
  padding: 12px 14px;
  background: #b42318;
  color: #fff;
  box-shadow: 0 10px 22px rgba(180, 35, 24, 0.18);
}

.presenter-nav-button:disabled,
.presenter-end-button:disabled {
  background: #d9dee8;
  color: #5f6f95;
  box-shadow: none;
  cursor: not-allowed;
}

.presenter-nav-button.is-previous:disabled {
  border-color: rgba(95, 111, 149, 0.22);
}

@media (min-width: 720px) {
  .presenter-app {
    padding-inline: 22px;
  }

  .presenter-current-header h2 {
    font-size: 1.4rem;
  }
}

.controller-app {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 18px 14px calc(28px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 14px;
}

.controller-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 2px;
}

.controller-header > div {
  min-width: 0;
}

.controller-header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.controller-header h1 {
  margin: 0;
  font-size: 1.7rem;
  overflow-wrap: anywhere;
}

.controller-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.controller-room {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(49, 94, 251, 0.26);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.controller-resource-menu[hidden] {
  display: none;
}

.controller-resource-menu {
  position: relative;
  flex: 0 0 auto;
}

.controller-resource-menu summary {
  width: 38px;
  height: 38px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}

.controller-resource-menu summary::-webkit-details-marker {
  display: none;
}

.controller-resource-menu summary span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
}

.controller-resource-menu-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(29, 40, 64, 0.14);
}

.controller-resource-menu-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.controller-resource-menu-panel a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.controller-waiting,
.controller-interaction-header,
.controller-question-card,
.controller-maze {
  border: 1px solid
    color-mix(
      in srgb,
      var(--controller-blob-color, var(--icebreaker-accent)),
      transparent 72%
    );
  border-radius: 8px;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 4px
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 92%
      ),
    0 10px 24px rgba(29, 40, 64, 0.08);
}

.controller-status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.controller-status::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.controller-status.is-connected {
  background: transparent;
  color: #027a48;
}

.controller-status.is-error {
  background: transparent;
  color: #b42318;
}

.controller-waiting p,
.controller-interaction-header p,
.controller-maze p,
.controller-submitted-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.controller-content {
  display: grid;
  gap: 12px;
}

.controller-waiting,
.controller-interaction-header,
.controller-question-card,
.controller-maze {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.controller-waiting h2,
.controller-interaction-header h2,
.controller-maze h2,
.controller-question-card h3 {
  margin: 0;
}

.controller-waiting h2,
.controller-interaction-header h2,
.controller-maze h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.controller-session-ended {
  gap: 14px;
  padding: 18px;
}

.controller-maze-color {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid
    color-mix(
      in srgb,
      var(--controller-blob-color, var(--icebreaker-accent)),
      transparent 72%
    );
  border-radius: 8px;
  background: color-mix(
    in srgb,
    var(--controller-blob-color, var(--icebreaker-accent)),
    #ffffff 88%
  );
}

.controller-maze-color-swatch {
  width: 34px;
  aspect-ratio: 1;
  flex: 0 0 34px;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.72), transparent 34%),
    var(--controller-blob-color, var(--icebreaker-accent));
  box-shadow: 0 8px 18px
    color-mix(
      in srgb,
      var(--controller-blob-color, var(--icebreaker-accent)),
      transparent 68%
    );
}

.controller-maze-color strong,
.controller-maze-color small {
  display: block;
}

.controller-maze-color strong {
  color: #111827;
  font-size: 0.9rem;
  line-height: 1.1;
}

.controller-maze-color small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.controller-maze-status {
  width: fit-content;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--icebreaker-soft);
  color: var(--icebreaker-accent) !important;
  font-size: 0.78rem !important;
  font-weight: 850;
}

.controller-maze-calibrate {
  width: 100%;
  justify-content: center;
}

.controller-maze-motion-button {
  width: 100%;
  min-height: 82px;
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid
    color-mix(
      in srgb,
      var(--controller-blob-color, var(--icebreaker-accent)),
      transparent 34%
    );
  border-radius: 8px;
  background: var(--controller-blob-color, var(--icebreaker-accent));
  color: #fff;
  box-shadow:
    0 18px 34px
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 68%
      ),
    0 0 0 0
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 70%
      );
  cursor: pointer;
  font: inherit;
  text-align: center;
  touch-action: manipulation;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.controller-maze-motion-button::after {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--controller-blob-color, var(--icebreaker-accent));
  border-radius: 12px;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.controller-maze-motion-button:active {
  transform: scale(0.98);
}

.controller-maze-motion-button.is-pulsing {
  animation: controller-motion-pulse 1.15s ease-in-out infinite;
}

.controller-maze-motion-button.is-pulsing::after {
  animation: controller-motion-ring 1.15s ease-out infinite;
}

.controller-maze-motion-button.is-working {
  background: #111827;
  border-color: rgba(17, 24, 39, 0.28);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.16);
}

.controller-maze-motion-button.is-ready {
  background: #027a48;
  border-color: rgba(2, 122, 72, 0.3);
  box-shadow:
    0 14px 28px rgba(2, 122, 72, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.controller-maze-motion-primary,
.controller-maze-motion-secondary {
  display: block;
}

.controller-maze-motion-primary {
  font-size: clamp(1.45rem, 8vw, 2.3rem);
  font-weight: 950;
  line-height: 1;
}

.controller-maze-motion-secondary {
  max-width: 22em;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

@keyframes controller-motion-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

@keyframes controller-motion-ring {
  0% {
    opacity: 0.46;
    transform: scale(0.98);
  }

  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

.controller-maze-pad {
  position: relative;
  width: min(100%, 190px);
  min-height: 132px;
  display: grid;
  justify-self: center;
  place-items: center;
  overflow: hidden;
  border: 1px solid
    color-mix(
      in srgb,
      var(--controller-blob-color, var(--icebreaker-accent)),
      transparent 68%
    );
  border-radius: 12px;
  background:
    radial-gradient(
      circle at 25% 24%,
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 82%
      ),
      transparent 28%
    ),
    radial-gradient(circle at 72% 68%, rgba(49, 94, 251, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fbff, #fff);
  touch-action: none;
  user-select: none;
}

.controller-maze-directions {
  position: absolute;
  inset: 12px;
  display: grid;
  grid-template-areas:
    ". up ."
    "left . right"
    ". down .";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  pointer-events: none;
}

.controller-maze-direction {
  align-self: center;
  justify-self: center;
  min-width: 42px;
  padding: 4px 6px;
  border: 1px solid
    color-mix(
      in srgb,
      var(--controller-blob-color, var(--icebreaker-accent)),
      transparent 74%
    );
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: color-mix(
    in srgb,
    var(--controller-blob-color, var(--icebreaker-accent)),
    #111827 26%
  );
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    scale 120ms ease;
}

.controller-maze-direction.is-hot {
  border-color: var(--controller-blob-color, var(--icebreaker-accent));
  background: var(--controller-blob-color, var(--icebreaker-accent));
  color: #fff;
  scale: 1.08;
}

.controller-maze-direction[data-direction="up"] {
  grid-area: up;
}

.controller-maze-direction[data-direction="left"] {
  grid-area: left;
}

.controller-maze-direction[data-direction="right"] {
  grid-area: right;
}

.controller-maze-direction[data-direction="down"] {
  grid-area: down;
}

.controller-maze-dot {
  width: 38px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.66), transparent 30%),
    var(--controller-blob-color, var(--icebreaker-accent));
  box-shadow:
    0 10px 20px
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 70%
      ),
    0 0 0 7px
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 88%
      );
  transition:
    transform 80ms linear,
    scale 120ms ease,
    box-shadow 120ms ease;
}

.controller-maze.is-active .controller-maze-dot {
  scale: 1.08;
  box-shadow:
    0 12px 24px
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 62%
      ),
    0 0 0 9px
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 84%
      );
}

.controller-maze.is-winner {
  min-height: min(68vh, 560px);
  position: relative;
  place-items: center;
  overflow: hidden;
  padding-bottom: 76px;
  background:
    radial-gradient(
      circle at 50% 30%,
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        transparent 42%
      ),
      transparent 38%
    ),
    linear-gradient(
      160deg,
      color-mix(
        in srgb,
        var(--controller-blob-color, var(--icebreaker-accent)),
        #ffffff 18%
      ),
      #ffffff
    );
  text-align: center;
}

.controller-maze.is-winner h2 {
  color: #052e2b;
  font-size: clamp(2rem, 14vw, 4.2rem);
}

.controller-maze.is-winner p {
  color: #134e4a;
  font-weight: 850;
}

.controller-maze-starts-soon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(5, 46, 43, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: #052e2b !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
}

.controller-maze-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.controller-maze-burst span {
  --angle: calc(var(--spark-index) * 20deg);

  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background: var(--controller-blob-color, var(--icebreaker-accent));
  transform: rotate(var(--angle)) translateY(-42vw);
  transform-origin: center;
  opacity: 0.82;
}

.controller-question-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.controller-type-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(49, 94, 251, 0.24);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.controller-options {
  display: grid;
  gap: 10px;
}

.controller-option {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
}

.controller-option:active {
  transform: translateY(1px);
}

.controller-option.is-selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.controller-option.is-correct {
  border-color: rgba(2, 122, 72, 0.36);
  background: #ecfdf3;
  color: #027a48;
}

.controller-option.is-incorrect {
  border-color: rgba(180, 35, 24, 0.34);
  background: #fef3f2;
  color: #b42318;
}

.controller-option:disabled {
  cursor: default;
  opacity: 0.72;
}

.controller-option.is-selected:disabled {
  opacity: 1;
}

.controller-wordcloud-form,
.controller-wordcloud-label {
  display: grid;
  gap: 8px;
}

.controller-wordcloud-label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.controller-wordcloud-label textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  padding: 12px 14px;
}

.controller-wordcloud-label textarea:disabled {
  color: var(--muted);
  background: #f1f4f8;
}

.controller-wordcloud-submit {
  min-height: 44px;
}

.controller-submitted-note {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #027a48;
  font-weight: 800;
}

.controller-submitted-note.is-correct {
  border: 1px solid rgba(2, 122, 72, 0.18);
  background: #ecfdf3;
  color: #027a48;
}

.controller-submitted-note.is-incorrect {
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: #fef3f2;
  color: #b42318;
}

.controller-resource-expiry,
.controller-resource-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.controller-resource-load-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  line-height: 1.45;
}

.controller-resource-load-error a {
  color: inherit;
  font-weight: 800;
}

.controller-resource-list {
  display: grid;
  gap: 9px;
}

.controller-resource-link {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(29, 40, 64, 0.06);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.controller-resource-link.is-master-deck {
  border-color: rgba(217, 45, 32, 0.24);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 24px rgba(29, 40, 64, 0.08);
}

.controller-resource-link:hover {
  border-color: rgba(124, 58, 237, 0.44);
  box-shadow: 0 14px 30px rgba(29, 40, 64, 0.1);
  transform: translateY(-1px);
}

.controller-resource-link.is-file:hover {
  border-color: rgba(217, 45, 32, 0.34);
}

.controller-resource-icon {
  position: relative;
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 94, 251, 0.18);
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  overflow: hidden;
}

.controller-resource-icon.is-pdf {
  border-color: rgba(217, 45, 32, 0.22);
  background: var(--pdf-soft);
  color: var(--pdf-accent);
}

.controller-resource-icon.is-pdf::before {
  position: absolute;
  inset: 7px 10px 7px 9px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: #fff;
  content: "";
}

.controller-resource-icon.is-pdf::after {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-bottom-left-radius: 2px;
  background: var(--pdf-soft);
  content: "";
}

.controller-resource-icon span {
  position: relative;
  z-index: 1;
  color: currentColor;
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.controller-resource-icon.is-pdf span {
  margin-top: 8px;
}

.controller-resource-link-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.controller-resource-kind {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  color: var(--resource-accent);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.controller-resource-link.is-file .controller-resource-kind {
  color: var(--pdf-accent);
}

.controller-resource-label {
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.controller-resource-link.is-master-deck .controller-resource-label {
  font-weight: 650;
}

.controller-resource-detail {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.controller-resource-action {
  min-width: 74px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(49, 94, 251, 0.2);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.controller-resource-link.is-file .controller-resource-action {
  border-color: rgba(217, 45, 32, 0.22);
  background: var(--pdf-soft);
  color: var(--pdf-accent);
}

.controller-poll-results {
  margin-top: 2px;
  padding: 10px;
}

.controller-poll-results .poll-results-header,
.controller-poll-results .poll-result-value {
  font-size: 0.76rem;
}

.controller-quiz-results {
  margin-top: 2px;
  padding: 10px;
}

.controller-quiz-results .quiz-results-header,
.controller-quiz-results .quiz-result-value {
  font-size: 0.76rem;
}

.controller-slide-viewer {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.controller-slide-timeline-panel {
  min-width: 0;
}

.controller-slide-timeline-header,
.controller-current-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.controller-slide-timeline-header {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 2px 5px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.controller-slide-timeline-header::-webkit-details-marker {
  display: none;
}

.controller-slide-timeline-header::after {
  color: var(--muted);
  font-size: 0.72rem;
  content: "⌄";
  transform: rotate(-90deg);
  transition: transform 120ms ease;
}

.controller-slide-timeline-panel[open]
  .controller-slide-timeline-header::after {
  transform: rotate(0deg);
}

.controller-slide-timeline-header span,
.controller-current-slide-header h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controller-slide-timeline {
  min-width: 0;
  display: flex;
  gap: 6px;
  padding: 1px 2px 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.controller-slide-thumbnail {
  position: relative;
  width: 62px;
  flex: 0 0 62px;
  display: grid;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: center;
}

.controller-slide-thumbnail.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.controller-slide-thumbnail.is-stage-current:not(.is-selected) {
  border-color: rgba(2, 122, 72, 0.52);
}

.controller-slide-thumbnail-preview {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #172033;
  color: #fff;
}

.controller-slide-thumbnail-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.controller-slide-thumbnail-preview.is-missing {
  padding: 3px;
  font-size: 0.52rem;
  line-height: 1.2;
  text-align: center;
}

.controller-slide-thumbnail-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.controller-current-slide {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(29, 40, 64, 0.08);
}

.controller-current-slide-header {
  min-width: 0;
}

.controller-current-slide-header h2 {
  font-size: 1rem;
}

.controller-slide-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff4e5;
  color: #b54708;
  font-size: 0.7rem;
  font-weight: 850;
}

.controller-slide-state.is-live {
  background: #ecfdf3;
  color: #027a48;
}

.controller-current-slide-frame {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #172033;
}

.controller-current-slide-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.controller-current-slide-frame.is-missing p {
  margin: 0;
  padding: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.controller-slide-sync {
  min-height: 44px;
  border-radius: 9px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.controller-slide-sync:disabled {
  cursor: default;
  opacity: 0.46;
}

.controller-slide-sync {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.controller-slide-sync.is-synced {
  border-color: rgba(2, 122, 72, 0.28);
  background: transparent;
  color: #027a48;
  cursor: default;
}

.controller-slide-sync:not(:disabled):active,
.controller-slide-thumbnail:active {
  transform: translateY(1px);
}

.stage-app {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.stage-empty,
.stage-slide-view,
.stage-interaction-view {
  width: 100vw;
  height: 100vh;
  height: 100svh;
}

.stage-empty[hidden],
.stage-slide-view[hidden],
.stage-interaction-view[hidden] {
  display: none;
}

.stage-empty {
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, #152348, #05070d 60%);
}

.stage-empty-panel {
  width: min(620px, 92vw);
  display: grid;
  gap: 10px;
  text-align: center;
  padding: 32px;
  border: 1px solid rgba(216, 226, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.stage-empty-kicker,
.stage-empty-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.stage-empty-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stage-empty h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
}

.stage-slide-view {
  display: grid;
  place-items: center;
  background: #000;
}

.stage-slide-image {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

.stage-slide-missing {
  width: min(760px, 86vw);
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(216, 226, 255, 0.36);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #92400e;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.stage-slide-missing[hidden] {
  display: none;
}

.stage-interaction-view {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
  background:
    radial-gradient(circle at top left, rgba(49, 94, 251, 0.16), transparent 34%),
    linear-gradient(180deg, #eef3ff, #f8fbff);
  color: var(--text);
}

.stage-interaction-card {
  width: min(1020px, 94vw);
  max-height: calc(100vh - 128px);
  max-height: calc(100svh - 128px);
  min-width: 0;
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(49, 94, 251, 0.22);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(29, 40, 64, 0.18);
}

.stage-interaction-card.poll {
  border-color: rgba(245, 158, 11, 0.32);
}

.stage-interaction-card.wordcloud {
  border-color: rgba(14, 116, 144, 0.3);
}

.stage-interaction-card.resource {
  border-color: rgba(124, 58, 237, 0.28);
}

.stage-interaction-type {
  width: fit-content;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(49, 94, 251, 0.22);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stage-interaction-card.poll .stage-interaction-type {
  border-color: rgba(245, 158, 11, 0.36);
  background: #fff7ed;
  color: #b45309;
}

.stage-interaction-card.wordcloud .stage-interaction-type {
  border-color: rgba(14, 116, 144, 0.34);
  background: var(--wordcloud-soft);
  color: var(--wordcloud-accent);
}

.stage-interaction-card.resource .stage-interaction-type {
  border-color: rgba(124, 58, 237, 0.34);
  background: var(--resource-soft);
  color: var(--resource-accent);
}

.stage-interaction-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.stage-runtime-state {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 800;
}

.stage-runtime-state[hidden] {
  display: none;
}

.stage-interaction-meta {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  overflow-wrap: anywhere;
}

.stage-progress-note {
  width: fit-content;
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  font-weight: 800;
}

.stage-interaction-content {
  display: grid;
  gap: 22px;
}

.stage-question-block {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.stage-question-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.stage-question-label {
  margin: 0;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stage-question-prompt {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 2.6rem);
  font-weight: 750;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.stage-options-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.stage-option {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--text);
}

.stage-option-label {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.stage-interaction-card.poll .stage-option-label {
  background: #f59e0b;
}

.stage-resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-resource-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-left: 5px solid var(--resource-accent);
  border-radius: 12px;
  background: #fbf7ff;
}

.stage-resource-label {
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.stage-resource-detail {
  color: var(--muted);
  font-size: clamp(0.86rem, 1.15vw, 1rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.stage-option-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 650;
}

.stage-poll-results {
  padding: clamp(16px, 2.5vw, 28px);
}

.stage-poll-results .poll-results-header {
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
}

.stage-poll-results .poll-result-list {
  gap: 16px;
}

.stage-poll-results .poll-result-label {
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
}

.stage-poll-results .poll-result-value {
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
}

.stage-poll-results .poll-result-track {
  height: 14px;
}

.stage-quiz-results {
  padding: clamp(16px, 2.5vw, 28px);
}

.stage-quiz-results .quiz-results-header {
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
}

.stage-quiz-results .quiz-result-list {
  gap: 16px;
}

.stage-quiz-results .quiz-result-label {
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
}

.stage-quiz-results .quiz-result-row.is-correct .quiz-result-label::after {
  font-size: clamp(0.75rem, 1vw, 0.95rem);
}

.stage-quiz-results .quiz-result-value {
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
}

.stage-quiz-results .quiz-result-track {
  height: 14px;
}

.stage-resource-preparing {
  position: fixed;
  left: 50%;
  bottom: 64px;
  z-index: 14;
  max-width: min(520px, calc(100vw - 40px));
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.78);
  color: #fff;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transform: translateX(-50%);
}

.stage-resource-preparing[hidden] {
  display: none;
}

.stage-icebreaker-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.stage-icebreaker-layer[hidden] {
  display: none;
}

.stage-icebreaker-active .stage-slide-view {
  background: #000;
}

.stage-icebreaker-active .stage-slide-image {
  filter: none;
}

.stage-icebreaker-chrome {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  gap: 3px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(5, 7, 13, 0.5);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.stage-icebreaker-kicker,
.stage-icebreaker-chrome h1 {
  margin: 0;
}

.stage-icebreaker-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-icebreaker-chrome h1 {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.stage-maze-status {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 750;
}

.stage-maze-rush {
  position: absolute;
  inset: 0;
}

.stage-maze-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-maze-hud {
  position: absolute;
  bottom: 78px;
  left: 50%;
  z-index: 2;
  width: min(760px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) minmax(140px, 1.2fr);
  gap: 6px;
  color: #fff;
  opacity: 0.72;
  transform: translateX(-50%);
}

.stage-maze-hud > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.22);
  backdrop-filter: blur(4px);
}

.stage-maze-hud span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-maze-pill-list,
.stage-maze-winner-list {
  min-height: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-maze-pill-list li,
.stage-maze-winner-list li {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: color-mix(in srgb, var(--player-color, #315efb), #020617 28%);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
}

.stage-maze-winner-list li {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.55), transparent 34%),
    var(--player-color, #14b8a6);
}

@media (max-width: 720px) {
  .stage-icebreaker-chrome {
    top: auto;
    right: 14px;
    bottom: 72px;
    left: 14px;
    max-width: none;
  }

  .stage-maze-hud {
    right: 14px;
    bottom: 150px;
    left: 14px;
    width: auto;
    grid-template-columns: 1fr;
    transform: none;
  }
}

.stage-counter {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 10;
  max-width: calc(50vw - 32px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.68);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.stage-session-pill {
  position: fixed;
  left: 20px;
  bottom: 18px;
  z-index: 10;
  max-width: calc(50vw - 32px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.68);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  backdrop-filter: blur(8px);
}

.stage-session-pill.is-live {
  border-color: rgba(4, 120, 87, 0.34);
  background: rgba(6, 95, 70, 0.82);
}

.stage-session-pill.is-ended {
  border-color: rgba(180, 35, 24, 0.34);
  background: rgba(127, 29, 29, 0.82);
}

.stage-qr-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 12;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: clamp(172px, 11vw, 220px);
  padding: 12px;
  border: 1px solid rgba(216, 226, 255, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(29, 40, 64, 0.2);
}

.stage-qr-panel[hidden] {
  display: none;
}

.stage-qr-code {
  width: clamp(140px, 9vw, 180px);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.stage-qr-room {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.slide-card-footer {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.slide-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  body.stage-has-live-qr .stage-interaction-view {
    padding-right: clamp(220px, 18vw, 320px);
  }
}

@media (max-height: 820px) and (min-width: 900px) {
  .stage-interaction-view {
    padding-block: 24px;
  }

  .stage-interaction-card {
    max-height: calc(100vh - 80px);
    max-height: calc(100svh - 80px);
    gap: 12px;
    padding: 24px 28px;
  }

  .stage-interaction-title {
    font-size: 3.05rem;
    line-height: 1.04;
  }

  .stage-runtime-state {
    font-size: 0.95rem;
  }

  .stage-interaction-meta {
    font-size: 1rem;
  }

  .stage-question-block {
    gap: 8px;
    padding-top: 12px;
  }

  .stage-question-prompt {
    font-size: 1.55rem;
    line-height: 1.16;
  }

  .stage-options-list {
    gap: 8px;
  }

  .stage-option {
    min-height: 48px;
    padding-block: 8px;
  }

  .stage-poll-results,
  .stage-quiz-results {
    padding: 14px;
  }

  .stage-poll-results .poll-result-list,
  .stage-quiz-results .quiz-result-list {
    gap: 10px;
  }

  .stage-poll-results .poll-result-label,
  .stage-quiz-results .quiz-result-label {
    font-size: 1.1rem;
  }

  .stage-poll-results .poll-result-value,
  .stage-quiz-results .quiz-result-value {
    font-size: 0.95rem;
  }

  .stage-poll-results .poll-result-track,
  .stage-quiz-results .quiz-result-track {
    height: 10px;
  }
}

@media (max-width: 1400px) {
  .slides-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .slides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app {
    padding: 24px 16px 40px;
  }

  .deck-layout {
    grid-template-columns: 1fr;
  }

  .deck-layout.is-locked-mode {
    grid-template-columns: 1fr;
  }

  .master-panel {
    order: 1;
  }

  .library-panel {
    order: 2;
    position: static;
  }

  .deck-layout.is-locked-mode .master-panel {
    order: 2;
  }

  .deck-layout.is-locked-mode .library-panel {
    order: 1;
  }

  .upload-panel.is-compact {
    grid-template-columns: 1fr;
  }

  .upload-panel.is-compact .status-shell {
    grid-column: auto;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .deck-summary {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .deck-present-control {
    width: 100%;
    justify-content: flex-end;
  }

  .panel-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .session-actions {
    align-items: stretch;
  }

  .slides-toolbar {
    justify-content: flex-start;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 16px 12px 32px;
  }

  .upload-panel {
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
  }

  .host-header {
    display: grid;
    gap: 12px;
  }

  .host-account-bar {
    justify-content: flex-start;
  }

  .workflow-steps {
    margin-bottom: 12px;
  }

  .workflow-step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 0;
  }

  .workflow-step {
    justify-content: center;
    gap: 4px;
    min-height: 26px;
    padding: 2px;
  }

  .workflow-step small {
    display: none !important;
  }

  .workflow-step strong {
    font-size: 0.72rem;
    line-height: 1.05;
    text-align: left;
  }

  .workflow-number {
    width: 17px;
    height: 17px;
    font-size: 0.62rem;
  }

  .workflow-label-full {
    display: none;
  }

  .workflow-label-short {
    display: inline;
  }

  .button-label-full {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .button-label-short {
    display: inline;
  }

  .upload-panel.is-compact {
    padding: 12px;
  }

  .upload-panel.is-compact .drop-zone {
    grid-template-columns: 1fr;
  }

  .upload-panel.is-compact .button-like {
    grid-column: auto;
    grid-row: auto;
  }

  .presenter-toolbar-header {
    align-items: stretch;
    flex-direction: column;
  }

  .project-summary {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .project-summary .details-label,
  .project-status {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .deck-panel {
    padding: 14px;
    border-radius: 12px;
  }

  .deck-summary {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 7px;
  }

  .deck-present-control {
    width: 100%;
    justify-content: space-between;
  }

  .deck-lock-toggle {
    justify-self: end;
    justify-content: flex-start;
  }

  .deck-summary-meta {
    justify-content: flex-start;
  }

  .interaction-panel {
    gap: 10px;
  }

  .interaction-actions {
    grid-template-columns: 1fr;
  }

  .interaction-action-card {
    min-height: 54px;
    align-items: center;
    gap: 8px;
    padding: 8px 9px 8px 11px;
  }

  .interaction-action-icon {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .quiz-icon-check {
    right: 6px;
    bottom: 7px;
    width: 9px;
    height: 5px;
  }

  .poll-icon {
    gap: 2px;
    padding: 7px;
  }

  .poll-icon span {
    width: 4px;
  }

  .poll-icon span:nth-child(1) {
    height: 9px;
  }

  .poll-icon span:nth-child(2) {
    height: 14px;
  }

  .poll-icon span:nth-child(3) {
    height: 7px;
  }

  .resource-icon span {
    width: 14px;
    height: 8px;
  }

  .resource-icon span:nth-child(1) {
    top: 7px;
    left: 7px;
  }

  .resource-icon span:nth-child(2) {
    right: 6px;
    bottom: 7px;
  }

  .interaction-action-copy {
    gap: 1px;
  }

  .interaction-action-copy strong {
    font-size: 0.84rem;
  }

  .interaction-action-copy small {
    font-size: 0.7rem;
  }

  .interaction-action-plus {
    width: 22px;
    height: 22px;
  }

  .interaction-overview-list {
    grid-template-columns: 1fr;
  }

  .interaction-overview-item {
    min-height: 44px;
  }

  .interaction-card-header {
    align-items: flex-start;
  }

  .interaction-card-header-badges {
    justify-content: flex-start;
  }

  .interaction-card-body {
    min-height: 0;
    padding: 14px;
  }

  .interaction-runtime-controls {
    grid-template-columns: 1fr;
  }

  .interaction-runtime-btn,
  .interaction-card-actions .download-btn {
    min-height: 44px;
  }

  .slides-grid {
    grid-template-columns: 1fr;
  }

  .slides-grid.is-presenter-timeline-mode {
    display: block;
  }

  .presenter-lock-view {
    gap: 12px;
  }

  .presenter-lock-current-header {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .presenter-lock-current-title {
    font-size: 1.08rem;
  }

  .presenter-lock-current-position {
    justify-self: start;
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.8rem;
  }

  .presenter-current-media {
    max-height: 54vh;
  }

  .presenter-current-interaction {
    min-height: 0;
    gap: 12px;
    padding: 16px;
  }

  .presenter-current-interaction .interaction-runtime-controls {
    max-width: none;
  }

  .presenter-lock-current-meta {
    padding: 10px 12px;
  }

  .presenter-timeline-list {
    grid-auto-columns: minmax(148px, 72vw);
    gap: 8px;
  }

  .presenter-timeline-item {
    padding: 7px;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-header,
  .modal-footer {
    padding: 14px 16px;
    gap: 10px;
  }

  .modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .modal-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .modal-footer .download-btn {
    width: 100%;
  }

  .modal-box {
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 12px;
  }

  .modal-body {
    padding: 14px;
  }

  .modal-close {
    min-height: 40px;
  }

  .project-actions .download-btn,
  .slides-toolbar .download-btn {
    width: 100%;
  }

  .slides-toolbar-label {
    width: 100%;
    margin-right: 0;
  }

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

  .session-actions .download-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: none;
  }

  .session-qr-code {
    width: 140px;
  }

  .quiz-option-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .poll-option-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .resource-settings-row,
  .resource-entry-type-row,
  .stage-resource-list {
    grid-template-columns: 1fr;
  }

  .resource-entry-header {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-entry-type-row {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-option-row > .field-error,
  .poll-option-row > .field-error {
    grid-column: 1;
  }

  .editor-option-letter,
  .poll-option-label {
    justify-self: start;
    min-width: 0;
    padding-inline: 10px;
  }

  .quiz-option-correct {
    justify-content: center;
  }

  .quiz-add-question,
  .poll-add-option,
  .resource-add-entry {
    width: 100%;
  }

  .quiz-question-header {
    align-items: stretch;
    flex-direction: column;
  }

  .session-qr-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .poll-result-topline,
  .quiz-result-topline {
    grid-template-columns: 1fr;
  }

  .poll-result-value,
  .quiz-result-value {
    white-space: normal;
  }

  body.stage-has-live-qr .stage-interaction-view {
    padding-top: 164px;
  }

  .stage-interaction-view {
    padding: 16px;
    align-items: start;
  }

  .stage-interaction-card {
    max-height: calc(100vh - 72px);
    gap: 14px;
    padding: 20px;
  }

  .stage-option {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .stage-counter {
    right: 12px;
    bottom: 12px;
    max-width: calc(50vw - 18px);
  }

  .stage-session-pill {
    left: 12px;
    bottom: 54px;
    max-width: calc(100vw - 24px);
  }

  .stage-qr-panel {
    top: 12px;
    right: 12px;
    width: 148px;
    padding: 8px;
  }

  .stage-qr-code {
    width: 124px;
    padding: 6px;
  }

  .stage-qr-room {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .button-like,
  .download-btn {
    min-height: 44px;
  }

  .deck-present-control {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .deck-lock-toggle {
    width: 100%;
    justify-content: flex-start;
    padding-right: 10px;
  }

  .interaction-action-card {
    min-height: 48px;
  }

  .compact-drag-label {
    display: none;
  }

  .interaction-card-action-row,
  .interaction-runtime-controls {
    grid-template-columns: 1fr;
  }

  .presenter-timeline-list {
    grid-auto-columns: minmax(144px, 78vw);
  }

  .modal-header {
    grid-template-columns: 1fr;
  }

  .modal-footer,
  .session-actions {
    grid-template-columns: 1fr;
  }

  .editor-preview-shell {
    padding: 10px;
  }

  .controller-app {
    padding-inline: 12px;
  }

  .controller-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .controller-header h1 {
    font-size: 1.45rem;
  }

  .controller-room {
    margin-left: auto;
  }

  .controller-waiting,
  .controller-interaction-header,
  .controller-question-card {
    padding: 14px;
  }

  .controller-option {
    min-height: 60px;
    padding: 14px;
  }
}

.share-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 249, 252, 0.94) 34%, #f3f6f8 100%),
    #f7f8fa;
  color: #171b25;
  --share-surface: #ffffff;
  --share-surface-muted: #f4f6f8;
  --share-border: #dfe4ec;
  --share-border-strong: #c8d0dc;
  --share-text: #171b25;
  --share-muted: #687284;
  --share-link: #2f5bef;
  --share-link-dark: #2446c2;
  --share-accent: #0f766e;
  --share-accent-soft: #ecfdf5;
  --share-success-soft: #eefbf3;
  --share-transition: 190ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.share-tool-page,
.share-public-page,
.share-stage-page {
  --share-legal-footer-space: calc(44px + env(safe-area-inset-bottom));
}

.share-shell {
  width: min(1280px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 20px 42px;
}

.share-tool-page .share-shell {
  padding-bottom: calc(42px + var(--share-legal-footer-space));
}

.share-landing {
  display: grid;
  align-items: start;
  justify-items: center;
  padding-top: clamp(48px, 12vh, 104px);
}

.share-landing-panel {
  width: min(620px, 100%);
  display: grid;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.share-kicker,
.share-stage-kicker,
.share-public-kicker {
  margin: 0;
  color: var(--share-link, var(--primary));
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.share-landing-panel .share-kicker,
.share-legal-panel .share-kicker {
  font-size: 0.72rem;
  font-weight: 780;
}

.share-landing h1,
.share-editor h1,
.share-public-header h1 {
  margin: 0;
  color: var(--share-text, var(--text));
  font-size: 3.05rem;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.share-landing h1 {
  max-width: 620px;
  font-size: clamp(2.35rem, 5.7vw, 3.55rem);
  font-weight: 760;
  line-height: 1.03;
}

.share-subtitle {
  max-width: 540px;
  margin: 0;
  color: var(--share-muted, var(--muted));
  font-size: 1rem;
  line-height: 1.5;
}

.share-create-form,
.share-hero-form,
.share-resource-panel,
.share-editor-main-column,
.share-editor-side-column,
.share-side-panel,
.share-preview-panel {
  display: grid;
  gap: 14px;
}

.share-create-form {
  gap: 10px;
  justify-items: start;
  margin-top: 4px;
}

.share-cta-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-create-form .share-primary-button {
  inline-size: auto;
  padding-inline: 18px;
  box-shadow: 0 6px 14px rgba(47, 91, 239, 0.16);
}

.share-trust-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--share-muted, var(--muted));
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.2;
}

.share-trust-line strong {
  color: var(--share-text, var(--text));
  font-weight: 820;
}

.share-trust-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--share-accent-soft, #ecfdf5);
  color: var(--share-accent, #0f766e);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.share-trust-icon::before {
  content: "\2713";
}

.share-legal-consent {
  max-width: 430px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #4b5565;
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.45;
}

.share-legal-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--share-link, var(--primary));
  cursor: pointer;
}

.share-legal-line {
  max-width: 430px;
  margin: 0;
  color: #7a8494;
  font-size: 0.7rem;
  line-height: 1.45;
}

.share-legal-consent a,
.share-legal-line a {
  color: inherit;
  font-weight: 740;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.share-legal-consent a:hover,
.share-legal-consent a:focus-visible,
.share-legal-line a:hover,
.share-legal-line a:focus-visible {
  color: var(--share-link-dark, var(--primary-dark));
}

.share-legal-footer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  justify-content: center;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(223, 228, 236, 0.82);
  background: rgba(255, 255, 255, 0.92);
  color: #6f7a8b;
  backdrop-filter: blur(12px);
}

.share-legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.25;
}

.share-legal-footer-nav a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.share-legal-footer-nav a:hover,
.share-legal-footer-nav a:focus-visible {
  color: var(--share-link-dark, var(--primary-dark));
}

.share-stage-page .share-legal-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 11, 0.78);
  color: rgba(255, 255, 255, 0.7);
}

.share-stage-page .share-legal-footer-nav a:hover,
.share-stage-page .share-legal-footer-nav a:focus-visible {
  color: #95f0c9;
}

.share-create-form .share-status:empty {
  min-height: 0;
}

.share-legal-page {
  display: grid;
  place-items: start center;
}

.share-legal-panel {
  width: min(760px, 100%);
  display: grid;
  gap: 20px;
  padding: clamp(20px, 5vw, 48px) 0;
}

.share-legal-panel h1 {
  margin: 0;
  color: var(--share-text, var(--text));
  font-size: 2.4rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.share-legal-panel .share-secondary-button {
  inline-size: fit-content;
}

.share-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-legal-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--share-border, var(--border));
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--share-surface, var(--surface));
  color: var(--share-text, var(--text));
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.1;
  text-decoration: none;
}

.share-legal-nav a:hover,
.share-legal-nav a:focus-visible,
.share-legal-nav a[aria-current="page"] {
  border-color: rgba(47, 91, 239, 0.34);
  background: rgba(47, 91, 239, 0.08);
  color: var(--share-link-dark, var(--primary-dark));
}

.share-legal-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--share-border, var(--border));
  padding-top: 18px;
}

.share-legal-section h2 {
  margin: 0;
  color: var(--share-text, var(--text));
  font-size: 1.05rem;
  line-height: 1.25;
}

.share-legal-section p,
.share-legal-section address {
  margin: 0;
  color: var(--share-muted, var(--muted));
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.share-legal-section a {
  color: var(--share-link-dark, var(--primary-dark));
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.share-legal-warning {
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 251, 235, 0.72);
}

.share-legal-warning h2,
.share-legal-warning p {
  color: #854d0e;
}

.share-primary-button,
.share-secondary-button,
.share-copy-button,
.share-danger-button {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--share-transition),
    border-color var(--share-transition),
    color var(--share-transition),
    box-shadow var(--share-transition),
    transform var(--share-transition);
}

.share-primary-button {
  border: 1px solid var(--share-link, var(--primary));
  background: var(--share-link, var(--primary));
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 91, 239, 0.18);
}

.share-primary-button:hover {
  background: var(--share-link-dark, var(--primary-dark));
  border-color: var(--share-link-dark, var(--primary-dark));
  transform: translateY(-1px);
}

.share-secondary-button,
.share-copy-button {
  border: 1px solid var(--share-border-strong, var(--border-strong));
  background: var(--share-surface, var(--surface));
  color: var(--share-text, var(--text));
}

.share-secondary-button:hover,
.share-copy-button:hover {
  border-color: var(--share-link, var(--primary));
  color: var(--share-link, var(--primary));
  transform: translateY(-1px);
}

.share-danger-button {
  border: 1px solid rgba(180, 35, 24, 0.32);
  background: #fff;
  color: #b42318;
}

.share-danger-button:hover {
  border-color: #b42318;
  background: #fef3f2;
  color: #912018;
  transform: translateY(-1px);
}

.share-primary-button:focus-visible,
.share-secondary-button:focus-visible,
.share-copy-button:focus-visible,
.share-danger-button:focus-visible {
  outline: 3px solid rgba(49, 94, 251, 0.18);
  outline-offset: 2px;
}

.share-primary-button:disabled,
.share-secondary-button:disabled,
.share-copy-button:disabled,
.share-danger-button:disabled {
  border-color: var(--share-border, var(--border));
  background: var(--share-border, var(--border));
  color: var(--share-muted, var(--muted));
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.share-button-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--share-muted, var(--muted));
  font-size: 0.86rem;
  line-height: 1.4;
}

.share-save-status {
  margin: 0;
}

.share-editor.is-onboarding .share-editor-header,
.share-editor.is-onboarding .share-editor-grid {
  display: none;
}

.share-editor.is-onboarding {
  min-height: auto;
  padding-top: 44px;
}

.share-start-panel {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 10px 0 28px;
  text-align: center;
}

.share-start-panel[hidden] {
  display: none;
}

.share-start-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.share-start-copy h1 {
  margin: 0;
  font-size: 4rem;
  font-weight: 880;
  line-height: 0.98;
}

.share-start-success-mark {
  position: relative;
  width: 172px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 2px auto 0;
}

.share-start-success-mark[hidden] {
  display: none;
}

.share-start-check {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #dcfce7;
  box-shadow: 0 12px 26px rgba(20, 184, 116, 0.14);
}

.share-start-check::before {
  position: absolute;
  top: 17px;
  left: 15px;
  width: 18px;
  height: 10px;
  border-bottom: 3px solid #10b981;
  border-left: 3px solid #10b981;
  content: "";
  transform: rotate(-45deg);
}

.share-start-confetti {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 1px;
}

.share-start-confetti.is-blue {
  background: #315efb;
}

.share-start-confetti.is-green {
  background: #13b981;
}

.share-start-confetti.is-yellow {
  background: #f5b51b;
}

.share-start-confetti.is-purple {
  background: #a78bfa;
}

.share-start-confetti.is-left {
  top: 17px;
  left: 14px;
  transform: rotate(18deg);
}

.share-start-confetti.is-left-mid {
  top: 7px;
  left: 44px;
  transform: rotate(24deg);
}

.share-start-confetti.is-top {
  top: 2px;
  left: 74px;
  transform: rotate(4deg);
}

.share-start-confetti.is-right-mid {
  top: 21px;
  right: 46px;
  transform: rotate(18deg);
}

.share-start-confetti.is-right {
  top: 9px;
  right: 22px;
  transform: rotate(-19deg);
}

.share-start-confetti.is-far-right {
  top: 31px;
  right: 4px;
  transform: rotate(16deg);
}

.share-start-copy .share-subtitle {
  font-size: 1.05rem;
  font-weight: 760;
}

.share-start-panel.has-resources .share-start-copy .share-subtitle {
  display: block;
  color: #687284;
  font-size: 0.86rem;
  font-weight: 680;
}

.share-start-panel.has-resources {
  width: min(450px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 14px;
  padding-top: 34px;
}

.share-start-panel.has-resources .share-start-copy {
  grid-column: 1;
  justify-items: center;
  gap: 8px;
}

.share-start-panel.has-resources .share-start-copy h1 {
  max-width: 100%;
  font-size: 1.9rem;
  line-height: 1.1;
}

.share-start-resource-composer,
.share-start-resource-list-shell,
.share-start-action-slot,
.share-start-next-note {
  width: min(720px, 100%);
}

.share-start-resource-composer {
  display: grid;
  gap: 12px;
  text-align: left;
}

.share-start-resource-composer:empty,
.share-start-action-slot:empty {
  display: none;
}

.share-start-panel .share-resource-composer {
  gap: 10px;
}

.share-editor:not(.is-stage-open) #share-resource-tab-text {
  display: none;
}

.share-editor:not(.is-stage-open) .share-resource-tabs {
  width: min(360px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
}

.share-start-panel .share-resource-add-panel {
  padding: 12px;
  box-shadow: 0 12px 30px rgba(23, 27, 37, 0.07);
}

.share-start-panel .share-file-dropzone {
  min-height: 132px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 24px 26px;
  border-width: 2px;
  border-color: rgba(49, 94, 251, 0.24);
  background: #f8fbff;
}

.share-start-panel .share-file-dropzone:hover,
.share-start-panel .share-file-dropzone.is-dragging {
  border-color: var(--share-link, var(--primary));
  background: #eef3ff;
  box-shadow: 0 10px 26px rgba(47, 91, 239, 0.1);
}

.share-start-panel .share-file-dropzone-icon {
  width: 54px;
  height: 54px;
}

.share-start-panel .share-file-dropzone-icon svg {
  width: 26px;
  height: 26px;
}

.share-start-panel .share-file-dropzone strong {
  font-size: 1.08rem;
}

.share-start-panel .share-file-dropzone span {
  margin-top: 3px;
  font-size: 0.86rem;
}

.share-start-panel .share-file-dropzone .share-copy-button {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 0.95rem;
}

.share-start-resource-list-shell {
  display: grid;
  gap: 8px;
  order: 4;
}

.share-start-panel.has-resources .share-start-resource-list-shell {
  grid-column: 1;
  grid-row: 2;
  width: min(300px, 100%);
  margin-top: 2px;
  order: 0;
}

.share-start-resource-list-shell[hidden] {
  display: none;
}

.share-start-resource-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-start-resource-item {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(200, 208, 220, 0.78);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 20px rgba(23, 27, 37, 0.05);
}

.share-start-panel.has-resources .share-start-resource-item {
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-color: rgba(225, 230, 238, 0.92);
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 27, 37, 0.1);
  opacity: 1;
}

.share-start-resource-item .share-resource-type-icon {
  width: 36px;
  height: 36px;
}

.share-start-resource-item .share-resource-type-icon svg {
  width: 19px;
  height: 19px;
}

.share-start-panel.has-resources .share-start-resource-item .share-resource-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.share-start-panel.has-resources .share-start-resource-item .share-resource-type-icon svg {
  width: 19px;
  height: 19px;
}

.share-start-resource-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.share-start-resource-copy strong,
.share-start-resource-copy span {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-start-resource-copy strong {
  color: var(--share-text, var(--text));
  font-size: 0.95rem;
  line-height: 1.2;
}

.share-start-resource-copy span {
  color: var(--share-muted, var(--muted));
  font-size: 0.8rem;
  font-weight: 720;
  line-height: 1.25;
}

.share-start-panel.has-resources .share-start-resource-copy {
  gap: 2px;
}

.share-start-panel.has-resources .share-start-resource-copy strong {
  font-size: 0.78rem;
  line-height: 1.15;
}

.share-start-panel.has-resources .share-start-resource-copy span {
  font-size: 0.68rem;
  line-height: 1.2;
}

.share-start-remove-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 7px;
  border-color: transparent;
  background: transparent;
  color: #5d687b;
}

.share-start-remove-button:hover,
.share-start-remove-button:focus-visible {
  background: var(--share-surface-muted, var(--surface-muted));
  color: #b42318;
  transform: none;
}

.share-start-remove-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-start-panel.has-resources .share-start-remove-button {
  display: none;
}

.share-start-action-slot {
  order: 3;
  display: flex;
  justify-content: center;
}

.share-start-panel.has-resources .share-start-action-slot {
  grid-column: 1;
  grid-row: 3;
  width: min(450px, 100%);
  margin-top: 8px;
  order: 0;
}

.share-start-action-slot .share-action-row {
  width: min(300px, 100%);
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.share-start-panel.has-resources .share-start-action-slot .share-action-row {
  width: 100%;
}

.share-start-next-note {
  order: 4;
  margin: 0;
  color: #8b95a7;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.share-start-panel.has-resources .share-start-next-note {
  grid-column: 1;
  grid-row: 4;
  width: min(300px, 100%);
  margin: -2px 0 0;
  order: 0;
  text-align: center;
}

.share-start-next-note[hidden] {
  display: none;
}

.share-editor:not(.is-stage-open) .share-copy-status {
  display: none;
}

.share-editor:not(.is-stage-open) .share-action-buttons {
  grid-template-columns: 1fr;
  justify-items: stretch;
}

.share-editor:not(.is-stage-open) .share-action-main-button {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding-inline: 18px 44px;
  font-size: 1rem;
}

.share-editor:not(.is-stage-open) .share-action-main-button::after {
  position: absolute;
  right: 18px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.share-editor:not(.is-stage-open) .share-stage-cta::after {
  content: none;
}

body.is-share-stage-launching {
  overflow: hidden;
}

.share-stage-launch {
  position: fixed;
  inset: 0;
  z-index: 90;
  color: var(--share-text, var(--text));
  pointer-events: none;
}

.share-stage-launch[hidden] {
  display: none;
}

.share-stage-launch::before {
  position: absolute;
  inset: 0;
  background: transparent;
  content: "";
  opacity: 0;
  transition: opacity 240ms ease;
}

.share-stage-launch.is-active::before {
  opacity: 1;
}

.share-stage-launch-countdown {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}

.share-stage-launch-countdown::before {
  width: min(42vw, 440px);
  max-width: calc(100vw - 32px);
  aspect-ratio: 1;
  grid-area: 1 / 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(23, 27, 37, 0.12);
  content: "";
}

.share-stage-launch-kicker {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: start;
  margin-top: clamp(28px, 8vw, 74px);
  display: inline-block;
  color: #33415c;
  font-size: clamp(0.78rem, 1.35vw, 0.94rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.92;
  text-transform: uppercase;
}

.share-stage-launch-number {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: center;
  display: block;
  color: var(--share-link, var(--primary));
  font-size: clamp(7.5rem, 22vw, 16rem);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.78;
  opacity: 0.92;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 20px 44px rgba(47, 91, 239, 0.18);
  transform-origin: center;
  animation: share-stage-count-pulse 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.share-stage-launch[data-stage-launch-seconds="0"] .share-stage-launch-number {
  color: var(--share-link, var(--primary));
  opacity: 1;
  animation: share-stage-count-zero 280ms cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.share-stage-launch.is-complete {
  animation: share-stage-launch-out 280ms ease forwards;
}

.share-editor.is-stage-launching .share-start-panel {
  animation: share-stage-start-out 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.share-editor.is-stage-launching.is-stage-open .share-editor-header {
  border-bottom-color: transparent;
  animation: share-stage-header-line-in 420ms ease 1080ms both;
}

.share-editor.is-stage-launching.is-stage-open .share-resource-panel {
  overflow: hidden;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  animation: share-stage-resource-shell-in 560ms ease 520ms both;
}

.share-editor.is-stage-launching.is-stage-open .share-resource-list-shell {
  opacity: 0;
  transform: translateY(14px);
  animation: share-stage-layout-block-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms both;
}

.share-editor.is-stage-launching.is-stage-open .share-resource-heading,
.share-editor.is-stage-launching.is-stage-open .share-resource-composer {
  opacity: 0;
  transform: translateY(-12px);
  animation: share-stage-layout-block-in 540ms cubic-bezier(0.2, 0.8, 0.2, 1) 560ms both;
}

.share-editor.is-stage-launching.is-stage-open .share-editor-hero {
  opacity: 0;
  transform: translateY(-14px);
  animation: share-stage-layout-block-in 580ms cubic-bezier(0.2, 0.8, 0.2, 1) 1040ms both;
}

.share-editor.is-stage-launching.is-stage-open .share-preview-panel {
  opacity: 0;
  transform: translateY(18px);
  animation: share-stage-layout-block-in 580ms cubic-bezier(0.2, 0.8, 0.2, 1) 1520ms both;
}

.share-editor.is-stage-launching.is-stage-open .share-action-row {
  opacity: 0;
  transform: translateY(-12px);
  animation: share-stage-layout-block-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1) 2000ms both;
}

@keyframes share-stage-count-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  38% {
    transform: scale(1.045);
  }
}

@keyframes share-stage-count-zero {
  0% {
    opacity: 0.86;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes share-stage-launch-out {
  to {
    opacity: 0;
  }
}

@keyframes share-stage-start-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
  }
}

@keyframes share-stage-layout-block-in {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: translateY(14px);
  }

  56% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes share-stage-resource-shell-in {
  0%,
  45% {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  100% {
    border-color: var(--share-border, var(--border));
    background: var(--share-surface, var(--surface));
    box-shadow: none;
  }
}

@keyframes share-stage-header-line-in {
  0% {
    border-bottom-color: transparent;
  }

  100% {
    border-bottom-color: rgba(200, 208, 220, 0.74);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-stage-launch-number,
  .share-stage-launch[data-stage-launch-seconds="0"] .share-stage-launch-number,
  .share-stage-launch.is-complete,
  .share-editor.is-stage-launching .share-start-panel,
  .share-editor.is-stage-launching.is-stage-open .share-editor-header,
  .share-editor.is-stage-launching.is-stage-open .share-resource-panel,
  .share-editor.is-stage-launching.is-stage-open .share-resource-list-shell,
  .share-editor.is-stage-launching.is-stage-open .share-resource-heading,
  .share-editor.is-stage-launching.is-stage-open .share-resource-composer,
  .share-editor.is-stage-launching.is-stage-open .share-editor-hero,
  .share-editor.is-stage-launching.is-stage-open .share-preview-panel,
  .share-editor.is-stage-launching.is-stage-open .share-action-row {
    animation: none;
  }

  .share-editor.is-stage-launching.is-stage-open .share-resource-panel {
    border-color: var(--share-border, var(--border));
    background: var(--share-surface, var(--surface));
  }

  .share-editor.is-stage-launching.is-stage-open .share-resource-list-shell,
  .share-editor.is-stage-launching.is-stage-open .share-resource-heading,
  .share-editor.is-stage-launching.is-stage-open .share-resource-composer,
  .share-editor.is-stage-launching.is-stage-open .share-editor-hero,
  .share-editor.is-stage-launching.is-stage-open .share-preview-panel,
  .share-editor.is-stage-launching.is-stage-open .share-action-row {
    clip-path: none;
    opacity: 1;
    transform: none;
  }
}

.share-editor {
  display: grid;
  align-content: start;
  gap: 16px;
}

.share-live-strip {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 96;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px max(10px, env(safe-area-inset-left)) 1px max(10px, env(safe-area-inset-right));
  border-bottom: 1px solid rgba(22, 163, 74, 0.16);
  background: rgba(236, 253, 245, 0.94);
  color: #065f46;
  box-shadow: 0 1px 4px rgba(17, 27, 46, 0.04);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.share-live-strip[hidden] {
  display: none;
}

.share-live-strip-countdown {
  width: min(1280px, 100%);
  justify-content: center;
  gap: 5px;
  color: inherit;
  font-size: 0.62rem;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

.share-live-strip-countdown .share-countdown-status {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.62rem;
  font-weight: 820;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: none;
}

.share-live-strip-countdown .share-countdown-clock {
  flex: 0 0 auto;
  gap: 4px;
}

.share-live-strip-countdown .share-countdown-unit {
  min-width: 0;
  gap: 1px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.share-live-strip-countdown .share-countdown-unit strong {
  min-width: 2ch;
  color: inherit;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.share-live-strip-countdown .share-countdown-unit span {
  color: inherit;
  font-size: 0.56rem;
  font-weight: 820;
  line-height: 1;
  text-transform: none;
}

.share-live-strip-countdown[data-share-countdown-state="expired"],
.share-live-strip-countdown[data-share-countdown-state="unavailable"] {
  color: #912018;
}

.share-editor-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(304px, 360px);
  align-items: flex-start;
  gap: 16px;
  padding: 2px 2px 16px;
  border-bottom: 1px solid rgba(200, 208, 220, 0.74);
}

.share-editor-header > div:first-child {
  min-width: 0;
}

.share-editor-hero {
  min-width: 0;
  display: grid;
  gap: 8px;
}

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

.share-hero-form {
  width: min(820px, 100%);
  gap: 8px;
}

.share-hero-title-field,
.share-hero-meta-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.share-hero-title-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.share-hero-meta-field > span {
  color: #44516a;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.share-hero-title-field textarea,
.share-hero-meta-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  color: var(--share-text, var(--text));
  font: inherit;
  letter-spacing: 0;
  transition:
    background-color var(--share-transition),
    border-color var(--share-transition),
    box-shadow var(--share-transition);
}

.share-hero-title-field textarea {
  min-height: 1.08em;
  padding: 0 0 5px;
  border-width: 0 0 2px;
  border-bottom-color: rgba(47, 91, 239, 0.18);
  border-radius: 0;
  background: transparent;
  font-size: clamp(1.85rem, 3.4vw, 2.95rem);
  font-weight: 880;
  line-height: 1.04;
  overflow: hidden;
  overflow-wrap: anywhere;
  cursor: text;
  resize: none;
}

.share-hero-title-field textarea::placeholder {
  color: rgba(104, 115, 133, 0.38);
  opacity: 1;
}

.share-hero-title-field textarea:hover {
  border-bottom-color: rgba(47, 91, 239, 0.36);
}

.share-hero-title-field textarea:focus {
  border-bottom-color: var(--share-link, var(--primary));
  outline: 0;
  box-shadow: 0 6px 0 -4px rgba(47, 91, 239, 0.32);
}

.share-hero-meta-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(170px, 0.65fr) 76px;
  gap: 8px;
  align-items: end;
}

.share-hero-meta-field input {
  min-height: 36px;
  padding: 8px 10px;
  border-color: rgba(200, 208, 220, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-weight: 760;
  box-shadow: 0 1px 2px rgba(17, 27, 46, 0.04);
}

.share-hero-meta-field input::placeholder {
  color: rgba(104, 115, 133, 0.38);
  font-weight: 680;
}

.share-hero-meta-field input:hover {
  border-color: #aebbd0;
  background: #fff;
}

.share-hero-meta-field input:focus {
  border-color: var(--share-link, var(--primary));
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 91, 239, 0.12);
}

.share-editor-hero .share-subtitle {
  margin-top: 1px;
  font-size: 0.9rem;
}

#share-editor-subtitle {
  position: relative;
  display: block;
  max-width: min(640px, 100%);
  margin: 14px 0 10px;
  padding-left: 18px;
  color: rgba(104, 115, 133, 0.38);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.42;
  opacity: 1;
}

#share-editor-subtitle::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.36);
  transform: translateY(-50%);
  animation: share-editor-live-dot-pulse 1.3s ease-out infinite;
}

@keyframes share-editor-live-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    transform: translateY(-50%) scale(0.92);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    transform: translateY(-50%) scale(1);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: translateY(-50%) scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  #share-editor-subtitle::before {
    animation: none;
  }
}

.share-editor-hero .share-save-status {
  margin-top: 0;
}

.share-action-row {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(200, 208, 220, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(23, 27, 37, 0.06);
}

.share-action-buttons {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.share-countdown {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--share-text, var(--text));
}

.share-countdown[hidden] {
  display: none;
}

.share-countdown-status {
  color: #047857;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.share-countdown-clock {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.share-countdown-unit {
  min-width: 38px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: #064e3b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.share-countdown-unit strong {
  min-width: 2ch;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.share-countdown-unit span {
  color: #047857;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.share-countdown-note {
  color: inherit;
  line-height: 1.35;
}

.share-countdown[data-share-countdown-state="expired"] .share-countdown-status,
.share-countdown[data-share-countdown-state="unavailable"]
  .share-countdown-status {
  color: #b42318;
}

.share-countdown[data-share-countdown-state="expired"] .share-countdown-unit,
.share-countdown[data-share-countdown-state="unavailable"] .share-countdown-unit {
  border-color: rgba(180, 35, 24, 0.22);
  color: #912018;
}

.share-countdown[data-share-countdown-state="expired"] .share-countdown-unit span,
.share-countdown[data-share-countdown-state="unavailable"]
  .share-countdown-unit
  span {
  color: #b42318;
}

.share-action-row .share-primary-button,
.share-action-row .share-secondary-button {
  min-height: 38px;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 820;
  white-space: nowrap;
}

.share-action-row .share-stage-cta {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 9px;
  padding: 8px 9px;
  border-color: rgba(49, 94, 251, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
  color: var(--share-text, var(--text));
  box-shadow:
    0 8px 18px rgba(47, 91, 239, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  text-align: left;
  white-space: normal;
}

.share-action-row .share-stage-cta:hover,
.share-action-row .share-stage-cta:focus-visible {
  border-color: rgba(49, 94, 251, 0.34);
  background: #fff;
  color: var(--share-text, var(--text));
  box-shadow:
    0 10px 22px rgba(47, 91, 239, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.share-stage-cta-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #245cff;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 6px 14px rgba(36, 92, 255, 0.22);
}

.share-stage-cta-icon .share-stage-qr-icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  fill: currentColor;
  stroke: none;
}

.share-stage-cta-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.share-stage-cta-label {
  min-width: 0;
  color: #123a9c;
  font-size: 0.82rem;
  font-weight: 880;
  line-height: 1.1;
}

.share-stage-cta-copy small {
  min-width: 0;
  max-width: 28rem;
  color: #5f6f8b;
  font-size: 0.58rem;
  font-weight: 720;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.share-stage-cta-open {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid rgba(49, 94, 251, 0.26);
  border-radius: 7px;
  background: rgba(49, 94, 251, 0.06);
  color: #245cff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.share-action-row .share-stage-cta:hover .share-stage-cta-open,
.share-action-row .share-stage-cta:focus-visible .share-stage-cta-open {
  border-color: rgba(49, 94, 251, 0.42);
  background: rgba(49, 94, 251, 0.1);
}

.share-stage-cta-open .share-button-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

.share-action-row .share-secondary-button {
  background: #fff;
  color: var(--share-text, var(--text));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.share-action-row .share-secondary-button:hover {
  background: #fff;
}

.share-action-row .share-secondary-button:disabled,
.share-action-row .share-secondary-button:disabled:hover {
  border-color: var(--share-border, var(--border));
  background: var(--share-border, var(--border));
  color: var(--share-muted, var(--muted));
  box-shadow: none;
  transform: none;
}

.share-copy-status {
  min-height: 0;
  padding: 0 2px;
  color: #5d687b;
  font-size: 0.78rem;
  text-align: right;
}

.share-copy-status:empty {
  display: none;
}

.share-alert {
  padding: 14px;
  border: 1px solid rgba(180, 35, 24, 0.34);
  border-radius: 8px;
  background: #fef3f2;
  color: #912018;
  font-weight: 750;
}

.share-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(304px, 360px);
  gap: 16px;
  align-items: start;
}

.share-editor-main-column,
.share-editor-side-column {
  min-width: 0;
  gap: 16px;
}

.share-editor-side-column {
  position: sticky;
  top: 18px;
}

.share-resource-panel {
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--share-border, var(--border));
  border-radius: 8px;
  background: var(--share-surface, var(--surface));
  box-shadow: none;
}

.share-autosave-pill {
  flex: 0 0 auto;
  inline-size: 76px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 2px 1px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #6b7586;
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1;
  box-shadow: none;
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease;
}

.share-autosave-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: none;
}

.share-autosave-pill.is-idle {
  color: #6b7586;
}

.share-autosave-pill.is-saving {
  color: #9a5a00;
}

.share-autosave-pill.is-saving::before {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.share-autosave-pill.is-saved {
  color: #047857;
}

.share-autosave-pill.is-error {
  color: #b42318;
}

.share-autosave-pill.is-error::before {
  background: #ef4444;
}

.share-autosave-pill.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.share-side-panel {
  padding: 18px;
  border: 1px solid var(--share-border, var(--border));
  border-radius: 8px;
  background: var(--share-surface, var(--surface));
  box-shadow: none;
}

.share-side-panel[hidden] {
  display: none;
}

.share-resource-panel {
  grid-column: 1 / -1;
}

.share-success-kicker {
  margin: 0;
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.share-field {
  display: grid;
  gap: 7px;
  color: var(--share-text, var(--text));
  font-size: 0.86rem;
  font-weight: 800;
}

.share-field input,
.share-field select,
.share-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--share-border, var(--border));
  border-radius: 8px;
  background: var(--share-surface, var(--surface));
  color: var(--share-text, var(--text));
  font: inherit;
  padding: 10px 11px;
  transition:
    border-color var(--share-transition),
    box-shadow var(--share-transition),
    background-color var(--share-transition);
}

.share-field textarea {
  min-height: 112px;
  line-height: 1.45;
  resize: vertical;
}

.share-field input:focus,
.share-field select:focus,
.share-field textarea:focus {
  border-color: var(--share-link, var(--primary));
  outline: 3px solid rgba(49, 94, 251, 0.14);
}

.share-section-heading h2 {
  color: var(--share-text, var(--text));
  font-weight: 850;
}

.share-delete-footer {
  display: flex;
  justify-content: flex-end;
  margin: -1px 1px 0;
  padding: 0;
}

.share-delete-footer[hidden] {
  display: none;
}

.share-delete-now-button {
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border-color: rgba(105, 117, 134, 0.2);
  background: rgba(248, 250, 252, 0.72);
  color: #697586;
  font-size: 0.68rem;
  font-weight: 760;
  box-shadow: none;
  white-space: nowrap;
}

.share-delete-now-button:hover {
  border-color: rgba(75, 85, 99, 0.34);
  background: #f8fafc;
  color: #4b5563;
  box-shadow: none;
}

.share-delete-now-button .share-button-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

.share-delete-button-copy {
  min-width: 0;
  display: block;
  line-height: 1.1;
  text-align: right;
}

.share-delete-now-button:disabled,
.share-delete-now-button:disabled:hover {
  border-color: var(--share-border, var(--border));
  background: var(--share-border, var(--border));
  color: var(--share-muted, var(--muted));
  box-shadow: none;
  transform: none;
}

body.share-delete-dialog-open {
  overflow: hidden;
}

.share-delete-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
  -webkit-overflow-scrolling: touch;
}

.share-delete-dialog[hidden] {
  display: none;
}

.share-delete-dialog-panel {
  width: min(462px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23, 27, 37, 0.22);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.share-delete-dialog-copy {
  display: grid;
  gap: 5px;
}

.share-delete-dialog-kicker,
.share-delete-dialog h2,
.share-delete-dialog p {
  margin: 0;
}

.share-delete-dialog-kicker {
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.share-delete-dialog h2 {
  color: var(--share-text, var(--text));
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.2;
}

.share-delete-dialog-copy p {
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.45;
}

.share-delete-summary-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-delete-summary-list li {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 0 0 7px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  color: #33415c;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.share-delete-summary-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.share-delete-summary-list strong {
  color: var(--share-text, var(--text));
  font-size: 0.78rem;
  font-weight: 850;
}

.share-delete-summary-list span {
  color: #8a94a6;
  font-size: 0.68rem;
  line-height: 1.35;
}

.share-delete-warning,
.share-delete-time-note {
  color: #912018;
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.35;
}

.share-delete-time-note {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 650;
}

.share-delete-countdown {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 6px;
  color: #33415c;
}

.share-delete-countdown .share-countdown-status {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
  text-transform: none;
  white-space: normal;
}

.share-delete-countdown .share-countdown-clock {
  gap: 5px;
}

.share-delete-countdown .share-countdown-unit {
  min-width: 0;
  gap: 1px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.share-delete-countdown .share-countdown-unit strong {
  min-width: 2ch;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.share-delete-countdown .share-countdown-unit span {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
  text-transform: none;
}

.share-delete-dialog-status:empty {
  display: none;
}

.share-delete-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

.share-section-heading h2 {
  margin: 0;
  font-size: 1.1rem;
}

.share-resource-heading {
  align-items: start;
}

.share-resource-heading-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.share-resource-title-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.share-resource-heading-copy p {
  margin: 0;
  color: var(--share-muted, var(--muted));
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.share-add-custom-button {
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  font-size: 0.86rem;
}

.share-add-custom-button .share-button-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.share-resource-composer {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.share-resource-tabs {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(200, 208, 220, 0.72);
  border-radius: 8px;
  background: #edf1f7;
}

.share-resource-tab {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5d687b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
}

.share-resource-tab .share-button-icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

.share-resource-tab:hover,
.share-resource-tab:focus-visible {
  color: var(--share-link, var(--primary));
  outline: 0;
}

.share-resource-tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.14);
}

.share-resource-tab.is-active {
  background: #fff;
  color: var(--share-link, var(--primary));
  box-shadow: 0 1px 4px rgba(23, 27, 37, 0.08);
}

.share-resource-add-panel {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(200, 208, 220, 0.64);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.share-link-add-form {
  display: grid;
  gap: 0;
}

.share-text-add-form,
.share-text-add-grid {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.share-text-add-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "body body"
    ". action";
  align-items: start;
  gap: 10px;
}

.share-text-title-field {
  grid-area: title;
}

.share-text-add-body-field {
  min-width: 0;
  grid-area: body;
}

.share-text-add-body-field textarea {
  min-height: 108px;
}

.share-text-add-grid .share-secondary-button {
  grid-area: action;
  justify-self: end;
  min-width: 86px;
  min-height: 40px;
  padding-inline: 12px;
}

.share-link-add-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.share-link-add-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(58px, auto);
  gap: 7px;
  align-items: center;
}

.share-link-detected-badge {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #edf2ff;
  color: var(--share-link, var(--primary));
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.share-link-add-control .share-secondary-button {
  min-height: 40px;
  padding-inline: 12px;
}

.share-field input[aria-invalid="true"],
.share-field textarea[aria-invalid="true"] {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.share-file-dropzone {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px dashed var(--share-border-strong, var(--border-strong));
  border-radius: 8px;
  background: var(--share-surface, var(--surface));
  color: var(--share-text, var(--text));
  transition:
    background-color var(--share-transition),
    border-color var(--share-transition),
    box-shadow var(--share-transition);
}

.share-file-dropzone:hover,
.share-file-dropzone.is-dragging {
  border-color: var(--share-link, var(--primary));
  background: #eef3ff;
}

.share-file-dropzone:focus-visible {
  outline: 3px solid rgba(49, 94, 251, 0.16);
  outline-offset: 2px;
}

.share-file-dropzone strong,
.share-file-dropzone span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.share-file-dropzone strong {
  font-size: 0.9rem;
}

.share-file-dropzone span {
  color: var(--share-muted, var(--muted));
  font-size: 0.78rem;
  font-weight: 750;
}

.share-file-dropzone-icon,
.share-resource-type-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #eaf0ff;
  color: var(--share-link, var(--primary));
}

.share-file-dropzone-icon {
  width: 36px;
  height: 36px;
}

.share-file-dropzone-icon svg,
.share-resource-type-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-file-dropzone-icon svg {
  width: 19px;
  height: 19px;
}

.share-file-dropzone .share-copy-button {
  min-height: 38px;
  padding: 8px 12px;
}

.share-resource-type-icon.is-compact {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.share-resource-type-icon.is-compact svg {
  width: 15px;
  height: 15px;
}

.share-file-dropzone input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.share-resource-list-shell {
  min-width: 0;
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.share-resource-list-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7586;
  font-size: 0.72rem;
  font-weight: 880;
  line-height: 1.2;
  text-transform: uppercase;
}

.share-resource-list-toolbar span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.share-resource-count-pill {
  min-width: 23px;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px 2px;
  border-radius: 999px;
  background: var(--share-surface-muted, var(--surface-muted));
  color: #5d687b;
  font-size: 0.72rem;
  font-weight: 880;
  line-height: 1;
}

.share-resource-list,
.share-public-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-resource-list {
  max-height: clamp(260px, 46vh, 560px);
  gap: 7px;
  padding-right: 2px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.share-resource-empty,
.share-public-empty {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px dashed var(--share-border-strong, var(--border-strong));
  border-radius: 8px;
  color: var(--share-muted, var(--muted));
  background: var(--share-surface-muted, var(--surface-muted));
}

.share-resource-empty strong {
  color: var(--share-text, var(--text));
}

.share-public-empty-title {
  color: var(--share-text, var(--text));
  font-weight: 850;
}

.share-resource-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(200, 208, 220, 0.72);
  border-radius: 8px;
  background: var(--share-surface, var(--surface));
  transition:
    background-color var(--share-transition),
    border-color var(--share-transition),
    box-shadow var(--share-transition);
}

.share-resource-item:hover {
  border-color: rgba(174, 187, 208, 0.96);
  background: #fff;
}

.share-resource-item.is-expanded {
  border-color: rgba(49, 94, 251, 0.36);
  box-shadow: 0 8px 20px rgba(23, 27, 37, 0.06);
}

.share-resource-item.is-error {
  border-color: rgba(180, 35, 24, 0.32);
  background: #fffbfa;
}

.share-resource-item span {
  min-width: 0;
  color: var(--share-muted, var(--muted));
  overflow-wrap: anywhere;
}

.share-resource-editor-item {
  align-items: stretch;
}

.share-resource-card-header {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: center;
}

.share-resource-card-header .share-resource-type-icon {
  width: 32px;
  height: 32px;
}

.share-resource-card-header .share-resource-type-icon svg {
  width: 18px;
  height: 18px;
}

.share-resource-card-summary {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.share-resource-card-meta {
  min-width: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.share-resource-type-badge,
.share-resource-status-badge {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--share-surface-muted, var(--surface-muted));
  color: #657084;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.share-resource-type-badge {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #687284;
  font-size: 0.67rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.share-resource-status-badge {
  background: var(--share-surface-muted, var(--surface-muted));
  color: var(--share-muted, var(--muted));
}

.share-resource-status-badge.is-ready {
  background: var(--share-success-soft);
  color: #067647;
}

.share-resource-status-badge.is-busy {
  background: #fff7ed;
  color: #b54708;
}

.share-resource-status-badge.is-error {
  background: #fef3f2;
  color: #b42318;
}

.share-resource-card-label {
  min-width: 0;
  color: var(--share-text, var(--text));
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.share-resource-card-title,
.share-resource-card-detail {
  min-width: 0;
  color: var(--share-muted, var(--muted));
  font-size: 0.8rem;
  line-height: 1.25;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-resource-toggle-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  align-self: center;
  padding: 7px;
  border-color: transparent;
  background: transparent;
  color: #5d687b;
}

.share-resource-toggle-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-resource-toggle-button:hover,
.share-resource-toggle-button:focus-visible {
  background: var(--share-surface-muted, var(--surface-muted));
  transform: none;
}

.share-resource-toggle-button[aria-expanded="true"] {
  border-color: rgba(49, 94, 251, 0.18);
  background: #edf2ff;
  color: var(--share-link, var(--primary));
}

.share-resource-card-title {
  color: var(--share-text, var(--text));
  font-weight: 760;
}

.share-resource-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid rgba(200, 208, 220, 0.68);
  border-radius: 0;
  background: transparent;
}

.share-resource-fields[hidden] {
  display: none;
}

.share-resource-description-field,
.share-resource-file-field,
.share-resource-text-field,
.share-remove-resource-button,
.share-resource-error {
  grid-column: 1 / -1;
}

.share-resource-fields .share-field input,
.share-resource-fields .share-field select,
.share-resource-fields .share-field textarea {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.share-resource-fields .share-field textarea {
  min-height: 112px;
}

.share-remove-resource-button {
  justify-self: start;
  min-height: 34px;
  padding: 7px 10px;
  border-color: rgba(180, 35, 24, 0.28);
  color: #b42318;
  font-size: 0.84rem;
}

.share-remove-resource-button:hover {
  border-color: #b42318;
  background: #fef3f2;
  color: #912018;
}

.share-resource-file-detail {
  min-height: 1.1rem;
  color: var(--share-muted, var(--muted));
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.share-resource-error {
  margin: -4px 0 0;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

.share-resource-type-icon.is-github {
  background: #eef0f3;
  color: #24292f;
}

.share-resource-type-icon.is-linkedin {
  background: #e8f3fb;
  color: #0a66c2;
}

.share-resource-type-icon.is-youtube {
  background: #fff1f0;
  color: #c4302b;
}

.share-resource-type-icon.is-figma {
  background: #fff0f6;
  color: #c11574;
}

.share-resource-type-icon.is-google_drive {
  background: #eef8f1;
  color: #188038;
}

.share-resource-type-icon.is-notion {
  background: #f1f3f5;
  color: #111827;
}

.share-resource-type-icon.is-slides,
.share-resource-type-icon.is-pdf,
.share-resource-type-icon.is-download {
  background: #ecfdf3;
  color: #067647;
}

.share-resource-type-icon.is-text {
  background: #fff7ed;
  color: #c2410c;
}

.share-resource-type-icon.is-x,
.share-resource-type-icon.is-bluesky,
.share-resource-type-icon.is-discord {
  background: #eef4ff;
  color: #3538cd;
}

.share-stage-page {
  min-height: 100vh;
  background: #08090b;
  color: #fff;
}

.share-stage-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 50vh);
  gap: 42px;
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.share-stage-page .share-stage-shell {
  padding-bottom: calc(
    clamp(24px, 5vw, 72px) + var(--share-legal-footer-space)
  );
}

.share-stage-copy {
  display: grid;
  gap: 16px;
}

.share-stage-kicker {
  color: #95f0c9;
}

.share-stage-copy h1 {
  margin: 0;
  font-size: 6.2rem;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.share-stage-meta,
.share-stage-url,
.share-stage-error {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.2rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.share-stage-countdown {
  width: min(620px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 2px;
  padding: 14px 16px;
  border: 1px solid rgba(149, 240, 201, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.share-stage-countdown .share-countdown-status {
  color: #95f0c9;
  font-size: 0.82rem;
}

.share-stage-countdown .share-countdown-clock {
  gap: 8px;
}

.share-stage-countdown .share-countdown-unit {
  min-width: 74px;
  padding: 10px 12px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}

.share-stage-countdown .share-countdown-unit strong {
  font-size: clamp(1.7rem, 4.5vw, 3.3rem);
}

.share-stage-countdown .share-countdown-unit span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

.share-stage-countdown .share-countdown-note {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.95rem;
}

.share-stage-countdown[data-share-countdown-state="expired"],
.share-stage-countdown[data-share-countdown-state="unavailable"] {
  border-color: rgba(254, 202, 202, 0.42);
}

.share-stage-countdown[data-share-countdown-state="expired"]
  .share-countdown-status,
.share-stage-countdown[data-share-countdown-state="unavailable"]
  .share-countdown-status,
.share-stage-countdown[data-share-countdown-state="expired"]
  .share-countdown-unit
  span,
.share-stage-countdown[data-share-countdown-state="unavailable"]
  .share-countdown-unit
  span {
  color: #fecaca;
}

.share-stage-countdown[data-share-countdown-state="expired"]
  .share-countdown-unit,
.share-stage-countdown[data-share-countdown-state="unavailable"]
  .share-countdown-unit {
  border-color: rgba(254, 202, 202, 0.22);
  color: #fff;
}

.share-stage-qr-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.share-stage-qr {
  inline-size: clamp(420px, 50vh, 560px);
  min-inline-size: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.share-stage-qr svg {
  width: 100%;
  height: 100%;
}

.share-stage-url {
  max-width: min(42vw, 560px);
  text-align: center;
  font-size: 0.9rem;
}

.share-stage-error {
  grid-column: 1 / -1;
  color: #fecaca;
}

.share-public-page {
  min-height: 100vh;
  background: #f7f8fa;
  --share-surface: #ffffff;
  --share-border: #dfe4ec;
  --share-text: #171b25;
  --share-muted: #687284;
  --share-transition: 190ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.share-public-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 16px 44px;
  display: grid;
  gap: 18px;
}

.share-public-page .share-public-shell {
  padding-bottom: calc(44px + var(--share-legal-footer-space));
}

.share-public-header {
  display: grid;
  gap: 10px;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--share-border, var(--border));
}

.share-public-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--share-theme, var(--primary));
}

.share-availability-countdown {
  display: inline-flex;
  align-items: center;
  color: #667085;
  font-size: 0.68rem;
  font-weight: 740;
  line-height: 1.2;
  text-transform: none;
  opacity: 0.62;
  white-space: nowrap;
}

.share-availability-countdown[hidden] {
  display: none;
}

.share-local-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0f7a55;
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.2;
  text-transform: none;
  opacity: 0.86;
}

.share-local-copy-badge[hidden] {
  display: none;
}

.share-local-copy-badge::before {
  content: "\2713";
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.55rem;
  line-height: 1;
}

.share-public-meta {
  margin: 0;
  color: var(--share-muted, var(--muted));
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.share-public-actions {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.share-public-actions[hidden] {
  display: none;
}

.share-public-save-button {
  appearance: none;
  min-width: 0;
  min-height: 50px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: 1px solid #f97316;
  border-radius: 8px;
  background: #f97316;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: none;
  text-align: center;
  box-shadow:
    0 10px 22px rgba(249, 115, 22, 0.2),
    0 0 0 0 rgba(249, 115, 22, 0.18);
  cursor: pointer;
  white-space: normal;
  animation: share-public-save-pulse 3s ease-in-out infinite;
  transition:
    background-color var(--share-transition),
    border-color var(--share-transition),
    box-shadow var(--share-transition),
    opacity var(--share-transition);
}

.share-public-save-button[hidden] {
  display: none;
}

.share-public-save-button:hover {
  animation: none;
  border-color: #ea580c;
  background: #ea580c;
  opacity: 1;
  box-shadow:
    0 12px 26px rgba(249, 115, 22, 0.24),
    0 0 0 4px rgba(249, 115, 22, 0.1);
}

.share-public-save-button:focus-visible {
  animation: none;
  outline: 3px solid rgba(249, 115, 22, 0.26);
  outline-offset: 3px;
}

.share-public-save-button:disabled {
  animation: none;
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.share-public-save-button .share-button-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes share-public-save-pulse {
  0%,
  100% {
    box-shadow:
      0 10px 22px rgba(249, 115, 22, 0.2),
      0 0 0 0 rgba(249, 115, 22, 0.18);
  }

  52% {
    box-shadow:
      0 14px 30px rgba(249, 115, 22, 0.25),
      0 0 0 7px rgba(249, 115, 22, 0.1);
  }

  74% {
    box-shadow:
      0 10px 22px rgba(249, 115, 22, 0.2),
      0 0 0 9px rgba(249, 115, 22, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-public-save-button {
    animation: none;
  }
}

.share-local-copy-status {
  max-width: min(100%, 360px);
  margin: 0;
  color: var(--share-muted, var(--muted));
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 1;
  text-align: left;
  overflow-wrap: anywhere;
  transition: opacity 10s linear;
}

.share-local-copy-status:empty {
  display: none;
}

.share-local-copy-status[data-status-tone="error"] {
  color: #b42318;
}

.share-local-copy-status[data-status-tone="success"] {
  color: #0f7a55;
  font-weight: 760;
}

.share-local-copy-status.is-fading-out {
  opacity: 0;
}

.share-public-delete-local-copy {
  appearance: none;
  position: fixed;
  inset-inline: 16px;
  bottom: calc(var(--share-legal-footer-space) + 14px);
  z-index: 94;
  justify-self: auto;
  min-width: 0;
  width: max-content;
  max-width: calc(100% - 32px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 auto;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a93a3;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--share-transition),
    opacity var(--share-transition);
}

.share-public-delete-local-copy[hidden] {
  display: none;
}

.share-public-delete-local-copy:hover,
.share-public-delete-local-copy:focus-visible {
  color: #5f6878;
}

.share-public-delete-local-copy:focus-visible {
  outline: 2px solid rgba(138, 147, 163, 0.34);
  outline-offset: 2px;
}

.share-public-delete-local-copy:disabled {
  cursor: wait;
  opacity: 0.58;
}

.share-public-delete-local-copy .share-button-icon {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-public-resource {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  gap: 7px;
  padding: 6px 7px;
  border: 1px solid rgba(200, 208, 220, 0.72);
  border-radius: 8px;
  background: var(--share-surface, var(--surface));
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  transition:
    background-color var(--share-transition),
    border-color var(--share-transition),
    box-shadow var(--share-transition);
}

.share-public-resource:hover {
  border-color: rgba(174, 187, 208, 0.96);
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 27, 37, 0.05);
}

.share-public-resource.is-static {
  cursor: pointer;
}

.share-public-resource.is-static:hover {
  border-color: rgba(174, 187, 208, 0.96);
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 27, 37, 0.05);
}

.share-public-resource.is-static:focus-visible {
  border-color: var(--share-theme, var(--primary));
  outline: 3px solid rgba(49, 94, 251, 0.14);
  outline-offset: 2px;
}

.share-public-resource > .share-resource-type-icon {
  width: 28px;
  height: 28px;
}

.share-public-resource > .share-resource-type-icon svg {
  width: 16px;
  height: 16px;
}

.share-public-resource-body {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.share-public-resource-top {
  min-width: 0;
  display: block;
}

.share-public-resource-type,
.share-public-resource-action {
  min-width: 0;
  color: #687284;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-public-resource-action {
  align-self: center;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 86px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--share-surface-muted, var(--surface-muted));
  color: var(--share-muted, var(--muted));
  font-size: 0.6rem;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-public-resource-actions {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.share-public-resource.is-expanded > .share-public-resource-actions {
  align-self: start;
  margin-top: 1px;
}

.share-public-resource-copy-button {
  min-height: 18px;
  max-width: 140px;
  padding: 1px 6px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--share-theme, var(--primary)) 12%, white);
  color: var(--share-theme, var(--primary));
  cursor: pointer;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.share-public-resource-copy-button[hidden] {
  display: none;
}

.share-public-resource-copy-button:hover {
  background: color-mix(in srgb, var(--share-theme, var(--primary)) 18%, white);
}

.share-public-resource-copy-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--share-theme, var(--primary)) 40%, white);
  outline-offset: 2px;
}

.share-public-resource-copy-button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.share-public-resource-copy-button[data-status-tone="success"] {
  color: #0f7a55;
}

.share-public-resource-copy-button[data-status-tone="error"] {
  color: #b42318;
}

.share-public-resource-label {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.share-public-resource-title {
  min-width: 0;
  color: var(--share-text, var(--text));
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.18;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-public-resource-detail {
  min-width: 0;
  color: var(--share-muted, var(--muted));
  font-size: 0.74rem;
  line-height: 1.18;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-public-resource.is-static:not(.is-expanded) .share-public-resource-detail {
  display: -webkit-box;
  max-height: calc(1.18em * 3);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: normal;
}

.share-preview-list .share-public-resource.is-static:not(.is-expanded)
  .share-public-resource-detail {
  max-height: calc(1.18em * 2);
  -webkit-line-clamp: 2;
}

.share-public-resource.is-static.is-expanded .share-public-resource-detail {
  display: block;
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
}

.share-preview-panel {
  min-width: 0;
}

.share-preview-phone {
  width: min(100%, 360px);
  justify-self: center;
  display: grid;
  gap: 10px;
  padding: 14px 12px 15px;
  border: 1px solid var(--share-border-strong, var(--border-strong));
  border-radius: 22px;
  background: var(--share-surface, var(--surface));
  box-shadow: 0 18px 42px rgba(23, 27, 37, 0.1);
}

.share-preview-header {
  padding: 2px 0 8px;
}

.share-preview-header h1 {
  font-size: 1.55rem;
  line-height: 1.08;
}

.share-preview-list {
  gap: 6px;
}

.share-preview-list .share-public-resource {
  min-height: 48px;
  padding: 6px 7px;
  box-shadow: none;
}

.share-preview-heading {
  align-items: start;
}

.share-preview-link-panel {
  min-width: 0;
  justify-self: end;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #7a8495;
  text-decoration: none;
}

.share-preview-link-label {
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: right;
}

.share-preview-link-panel .share-button-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

@media (max-width: 760px) {
  .share-shell {
    padding: 18px 14px 32px;
  }

  .share-tool-page .share-shell {
    padding-bottom: calc(32px + var(--share-legal-footer-space));
  }

  .share-editor.is-onboarding {
    padding-top: 24px;
  }

  .share-resource-panel,
  .share-side-panel {
    padding: 16px;
  }

  .share-landing-panel {
    padding: 10px 0;
  }

  .share-start-panel {
    gap: 12px;
    padding: 6px 0 24px;
  }

  .share-start-panel.has-resources {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .share-start-panel.has-resources .share-start-copy,
  .share-start-panel.has-resources .share-start-action-slot,
  .share-start-panel.has-resources .share-start-next-note,
  .share-start-panel.has-resources .share-start-resource-list-shell {
    grid-column: 1;
  }

  .share-start-panel.has-resources .share-start-resource-list-shell {
    grid-row: 2;
    width: min(300px, 100%);
  }

  .share-start-panel.has-resources .share-start-action-slot {
    grid-row: 3;
  }

  .share-start-panel.has-resources .share-start-next-note {
    grid-row: 4;
  }

  .share-start-copy h1 {
    font-size: 2.7rem;
  }

  .share-start-panel.has-resources .share-start-copy h1 {
    font-size: 1.55rem;
  }

  .share-stage-launch-countdown {
    gap: 8px;
    padding: 18px;
  }

  .share-stage-launch-countdown::before {
    width: min(82vw, 320px);
  }

  .share-stage-launch-kicker {
    font-size: 0.76rem;
    margin-top: clamp(24px, 13vw, 52px);
  }

  .share-stage-launch-number {
    font-size: clamp(6.2rem, 34vw, 10rem);
  }

  .share-start-panel .share-link-add-control {
    grid-template-columns: 1fr;
  }

  .share-start-panel .share-file-dropzone {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    min-height: 180px;
    padding: 22px 18px;
    text-align: center;
  }

  .share-start-panel .share-file-dropzone-icon {
    justify-self: center;
  }

  .share-start-panel .share-file-dropzone .share-copy-button {
    width: 100%;
  }

  .share-start-next-note {
    text-align: center;
  }

  .share-start-resource-item {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .share-start-action-slot .share-action-row {
    width: 100%;
  }

  .share-landing h1,
  .share-editor h1,
  .share-public-header h1 {
    font-size: 2.25rem;
  }

  .share-editor-header,
  .share-section-heading {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .share-hero-title-field textarea {
    font-size: 2.05rem;
  }

  .share-hero-meta-row {
    grid-template-columns: 1fr;
  }

  .share-autosave-pill {
    justify-self: start;
    min-height: 22px;
    padding-bottom: 2px;
  }

  .share-action-row {
    width: 100%;
    justify-self: stretch;
    justify-content: stretch;
    padding: 8px;
  }

  .share-action-buttons {
    grid-template-columns: 1fr;
  }

  .share-action-row .share-stage-cta {
    min-height: 56px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .share-stage-cta-icon {
    width: 30px;
    height: 30px;
  }

  .share-stage-cta-icon .share-stage-qr-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .share-stage-cta-label {
    font-size: 0.8rem;
  }

  .share-stage-cta-copy small {
    font-size: 0.56rem;
    line-height: 1.16;
  }

  .share-stage-cta-open {
    min-height: 28px;
    padding-inline: 7px;
    font-size: 0.7rem;
  }

  .share-copy-status {
    text-align: left;
  }

  .share-action-row > *,
  .share-section-heading > .share-secondary-button,
  .share-create-form .share-primary-button {
    width: 100%;
    inline-size: 100%;
  }

  .share-delete-footer {
    margin: -1px 1px 0;
  }

  .share-delete-dialog {
    align-items: end;
    padding: 14px;
  }

  .share-delete-dialog-panel {
    width: 100%;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 16px;
  }

  .share-delete-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .share-delete-dialog-actions .share-secondary-button,
  .share-delete-dialog-actions .share-danger-button {
    width: 100%;
  }

  .share-landing .share-create-form .share-primary-button {
    width: auto;
    inline-size: auto;
  }

  .share-link-add-control,
  .share-file-dropzone,
  .share-text-add-grid,
  .share-resource-fields {
    grid-template-columns: 1fr;
  }

  .share-text-add-grid {
    grid-template-areas:
      "title"
      "body"
      "action";
  }

  .share-text-add-grid .share-secondary-button {
    justify-self: stretch;
    width: 100%;
  }

  .share-resource-tabs {
    width: 100%;
  }

  .share-link-detected-badge {
    justify-content: flex-start;
  }

  .share-file-dropzone {
    justify-items: stretch;
  }

  .share-file-dropzone-icon {
    display: inline-grid;
    justify-self: start;
  }

  .share-editor-grid {
    grid-template-columns: 1fr;
  }

  .share-editor-side-column {
    position: static;
  }

  .share-resource-list {
    max-height: min(54vh, 520px);
  }

  .share-resource-card-header {
    grid-template-columns: 32px minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .share-resource-card-header .share-resource-type-icon {
    width: 32px;
    height: 32px;
  }

  .share-resource-toggle-button {
    width: 34px;
  }

  .share-resource-editor-item {
    grid-template-columns: 1fr;
  }

  .share-preview-phone {
    width: min(100%, 380px);
  }

  .share-preview-link-panel {
    justify-self: start;
  }

  .share-stage-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    text-align: center;
  }

  .share-stage-copy h1 {
    font-size: 3.55rem;
  }

  .share-stage-qr {
    inline-size: min(82vw, 52vh, 420px);
    min-inline-size: 0;
  }

  .share-stage-url {
    max-width: min(86vw, 420px);
  }

  .share-stage-countdown {
    justify-content: center;
    margin-inline: auto;
  }

  .share-stage-countdown .share-countdown-clock {
    width: 100%;
    justify-content: center;
  }

  .share-stage-countdown .share-countdown-unit {
    min-width: min(25vw, 74px);
  }

  .share-stage-countdown .share-countdown-note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .share-landing .share-create-form,
  .share-cta-row,
  .share-landing .share-create-form .share-primary-button {
    width: 100%;
    inline-size: 100%;
  }
}
