:root {
  --workshop-ink: #101b20;
  --workshop-muted: #4c5a61;
  --workshop-line: #dce2e5;
  --workshop-blue: #0879bd;
  --workshop-blue-soft: #eaf5fb;
  --workshop-yellow: #ffd83d;
  --workshop-green: #16845b;
  --workshop-purple: #7255b5;
  --workshop-bg: #f2f4f5;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
.flow-workshop-page {
  min-width: 980px;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  color: var(--workshop-ink);
  background: var(--workshop-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.flow-workshop-page [hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.connection-badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border: 1px solid var(--workshop-line); border-radius: 20px; color: #3b4a52; background: #f7f9fa; font-size: .78rem; }
.connection-badge span { width: 8px; height: 8px; border-radius: 50%; background: #f2b84b; box-shadow: 0 0 0 3px rgb(242 184 75 / 18%); }
.connection-badge.is-online span { background: #4fd395; box-shadow: 0 0 0 3px rgb(79 211 149 / 18%); }
.connection-badge.is-offline span { background: #aeb8bd; box-shadow: none; }

.workshop-shell { display: flex; flex-direction: column; width: 100%; height: 100vh; padding: 14px 20px 30px; overflow: hidden; }
.meeting-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px 18px;
  border: 1px solid var(--workshop-line);
  border-radius: 7px;
  background: #fff;
}
.meeting-info { display: grid; flex: 0 0 auto; gap: 8px; margin-bottom: 10px; }
.eyebrow { margin: 0 0 2px; color: var(--workshop-blue); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.meeting-title-row { display: flex; align-items: center; gap: 12px; }
.meeting-title-row h1 { margin: 0; padding: 2px 5px; border-radius: 4px; font-size: 1.28rem; line-height: 1.25; }
.meeting-title-row h1:focus { outline: 2px solid #91c9e9; background: #f6fbfe; }
.meeting-meta { display: flex; gap: 18px; margin: 5px 0 0 5px; color: var(--workshop-muted); font-size: .8rem; }
.save-state { padding: 3px 8px; border-radius: 20px; color: #33505f; background: #edf2f4; font-size: .75rem; }
.save-state.is-saving { color: #8a6411; background: #fff5ce; }
.save-state.is-saved { color: #126443; background: #e6f7ef; }
.meeting-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }

.workshop-actions { display: flex; flex-wrap: wrap; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 7px; }
.workshop-actions .save-state { margin-right: 2px; }
.plan-switch { display: flex; overflow: hidden; margin-right: 4px; border: 1px solid #aeb9bf; border-radius: 5px; background: #fff; }
.plan-button { min-height: 32px; padding: 5px 13px; border: 0; border-right: 1px solid #d4dcdf; color: #2b383e; background: #fff; font-size: .75rem; font-weight: 700; }
.plan-button:last-child { border-right: 0; }
.plan-button:hover { background: #eef6fa; }
.plan-button.is-active { color: #fff; background: var(--workshop-blue); }
.workshop-shell > .workshop-actions { margin-bottom: 8px; }
.actions-slot { display: flex; justify-content: flex-end; }

.button { min-height: 38px; padding: 8px 15px; border-radius: 5px; font-weight: 700; }
.button-secondary { border: 1px solid #aeb9bf; color: #2b383e; background: #fff; }
.button-secondary:hover { background: #f5f7f8; }
.button-primary { border: 1px solid #d3a900; color: #171717; background: var(--workshop-yellow); }
.button-primary:hover { background: #ffe36b; }
.button:disabled { cursor: not-allowed; opacity: .45; }

.presence-stack { display: flex; min-width: 32px; padding-right: 6px; }
.presence-avatar, .participant-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--avatar-color, #0879bd);
  font-weight: 800;
}
.presence-avatar { width: 31px; height: 31px; margin-right: -7px; border: 2px solid #fff; font-size: .68rem; }

.local-mode-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid #e7d790;
  border-radius: 6px;
  color: #695410;
  background: #fff9de;
  font-size: .82rem;
}
.local-mode-notice a { margin-left: auto; color: #695410; font-weight: 700; }

.workshop-grid {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 290px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--workshop-line);
  border-radius: 7px;
  background: #fff;
}
.workshop-grid.is-collaboration-hidden { grid-template-columns: minmax(0, 1fr); }
.workshop-grid.is-collaboration-hidden .collaboration-panel { display: none; }
.collaboration-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: #f9fafb; }
.collaboration-panel { border-left: 1px solid var(--workshop-line); }
.collaboration-panel > section { flex: 0 0 auto; padding: 17px 16px; border-bottom: 1px solid var(--workshop-line); }
.collaboration-panel .activity-section { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 140px; overflow: hidden; border-bottom: 0; }

.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 17px 16px 11px; }
.panel-heading.compact { padding: 0 0 10px; }
.panel-heading h2 { margin: 0; font-size: 1.05rem; }
.panel-heading.compact > span { color: var(--workshop-muted); font-size: .76rem; }
.participant-heading-actions { display: flex; align-items: center; gap: 8px; color: var(--workshop-muted); font-size: .7rem; }
.participant-heading-actions button { padding: 4px 8px; border: 1px solid #c4cdd1; border-radius: 4px; color: #3b4a52; background: #fff; font-size: .7rem; font-weight: 700; }
.participant-heading-actions button:hover { border-color: #7fb8d8; color: var(--workshop-blue); }
.show-collaboration-button { position: fixed; z-index: 85; top: 48%; right: 0; padding: 10px 7px; border: 1px solid #78afd0; border-right: 0; border-radius: 6px 0 0 6px; color: #075f91; background: #e9f6fd; box-shadow: 0 3px 12px rgb(29 60 76 / 18%); font-size: .7rem; font-weight: 800; writing-mode: vertical-rl; }
.show-collaboration-button:hover { background: #d8effb; }

.flow-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 18px 24px 20px; overflow: hidden; background: #fff; }
.flow-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--workshop-line); }
.flow-panel-identity { min-width: 0; }
.flow-panel-actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 10px 14px; }
.form-number { margin: 0 0 3px; color: var(--workshop-blue); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.flow-panel-header h2 { margin: 0; font-size: 1.35rem; }
.flow-panel-header h2 + p { margin: 5px 0 0; color: #7a5210; font-size: .78rem; }
.status-select { min-width: 108px; min-height: 32px; padding: 5px 26px 5px 9px; border: 1px solid #bfc9ce; border-radius: 4px; color: #243036; background: #fff; }

.flow-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 12px;
  padding: 6px 0;
}
.flow-board-toolbar > div { display: flex; align-items: center; gap: 7px; }
.compact-button { min-height: 32px; padding: 5px 10px; font-size: .75rem; }
.icon-button { min-width: 34px; padding: 4px 8px; font-size: 1rem; line-height: 1; }
.board-zoom-controls { display: flex; overflow: hidden; border: 1px solid #b9c4c9; border-radius: 5px; background: #fff; }
.board-zoom-controls button { min-width: 31px; height: 30px; padding: 0 8px; border: 0; border-right: 1px solid #d8dfe2; color: #34434a; background: #fff; font-weight: 800; }
.board-zoom-controls button:last-child { border-right: 0; }
.board-zoom-controls button:hover { background: #eef6fa; }
#zoom-reset-button { min-width: 56px; font-size: .68rem; }
.text-button { padding: 5px 7px; border: 0; color: var(--workshop-blue); background: transparent; font-size: .76rem; font-weight: 700; }
.text-button:hover { text-decoration: underline; }

.flow-board {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 4px 2px 10px;
  overflow: auto;
  overscroll-behavior: contain;
}
.flow-board-canvas {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  zoom: var(--board-zoom, 1);
}
.flow-board.is-dragover { outline: 2px dashed #70b5dc; outline-offset: 3px; background: #f5fbfe; }
.flow-board.is-auto-scrolling-left { box-shadow: inset 28px 0 24px -24px rgb(8 121 189 / 60%); }
.flow-board.is-auto-scrolling-right { box-shadow: inset -28px 0 24px -24px rgb(8 121 189 / 60%); }
.flow-column {
  flex: 0 0 600px;
  min-width: 540px;
  padding: 10px;
  border: 1px solid #d3dade;
  border-top: 4px solid var(--workshop-blue);
  border-radius: 7px;
  background: #f8fafb;
}
.flow-column[data-kind="confirmation"] { border-top-color: var(--workshop-purple); }
.flow-column[data-kind="custom"] { border-top-color: #d58a28; }
.flow-column.is-dragging { opacity: .45; }
.flow-column.is-group-target { transform: translateX(4px); box-shadow: -3px 0 0 #58a7d2; }
.flow-column-header { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 7px; }
.flow-column-handle { align-self: stretch; border: 0; color: #5c6a71; background: transparent; font-size: 1.15rem; cursor: grab; }
.flow-column-name { min-width: 0; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px; color: #243239; background: transparent; font-size: 1rem; font-weight: 800; }
.flow-column-name:hover, .flow-column-name:focus { border-color: #a9cfe4; outline: 0; background: #fff; }
.flow-column-menu { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; color: #97a3a9; background: transparent; font-size: 1rem; line-height: 1; }
.flow-column-menu:hover { color: #bf4444; background: #fdecec; }
.flow-column-meta { display: flex; align-items: center; justify-content: flex-end; min-height: 28px; padding: 0 2px 2px; }
.route-lane { min-height: 92px; padding: 5px 0; border-radius: 7px; }
.route-lane.is-dragover { outline: 2px dashed #70b5dc; outline-offset: 4px; background: #f5fbfe; }
.empty-route { min-height: 64px; border: 1px dashed #cbd5da; border-radius: 6px; background: #fafcfc; }
.route-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 28px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  padding: 7px 8px 7px 4px;
  border: 1px solid #d3dade;
  border-left: 4px solid var(--workshop-blue);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(29 46 55 / 5%);
}
.flow-column[data-kind="confirmation"] .route-card { border-left-color: var(--workshop-purple); }
.flow-column[data-kind="custom"] .route-card { border-left-color: #d58a28; }
.route-card.is-dragging { opacity: .42; }
.route-card.is-drop-target { transform: translateY(3px); border-top-color: var(--workshop-blue); }
.drag-handle { align-self: stretch; border: 0; color: #5c6a71; background: transparent; font-size: 1.25rem; cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.step-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: #607580; font-size: .72rem; font-weight: 800; }
.route-card-fields { display: grid; grid-template-columns: minmax(100px, .72fr) minmax(130px, .82fr) minmax(196px, 1.6fr); align-items: center; gap: 8px; }
.route-card-fields label { display: grid; }
.route-card-fields input, .route-card-fields select { min-width: 0; height: 34px; padding: 5px 8px; border: 1px solid #c8d1d5; border-radius: 4px; color: #2b383e; background: #fff; }
.route-card-fields input:focus, .route-card-fields select:focus, .form-memo textarea:focus { outline: 2px solid #b3daf0; border-color: #6db1d8; }
.assignee-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-height: 34px;
  padding: 4px;
  border: 1px solid #c8d1d5;
  border-radius: 4px;
  background: #fff;
}
.assignee-field:focus-within { border-color: #6db1d8; outline: 2px solid #b3daf0; }
.assignee-field.is-drop-target { border-color: #1a8fd0; background: #edf8fe; }
.assignee-tags { display: contents; }
.assignee-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 3px 2px 9px;
  border: 1px solid #cfe0ea;
  border-radius: 6px;
  color: #17414f;
  background: #eef7fc;
  font-size: .88rem;
  white-space: nowrap;
}
.assignee-tag > span { overflow: hidden; text-overflow: ellipsis; }
.assignee-tag-remove { flex: 0 0 auto; width: 19px; height: 19px; padding: 0; border: 0; border-radius: 50%; color: #63808f; background: transparent; font-size: .9rem; line-height: 1; }
.assignee-tag-remove:hover { color: #c43c3c; background: #fbe2e2; }
.route-card-fields .route-assignee { width: 100%; min-width: 0; height: 25px; padding: 2px 5px; border: 0; border-radius: 3px; background: transparent; font-size: .85rem; }
.route-card-fields .route-assignee:focus { outline: 0; }
.remove-route { align-self: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; color: #97a3a9; background: transparent; font-size: 1rem; line-height: 1; }
.remove-route:hover { color: #c43c3c; background: #fdecec; }

.form-memo { display: grid; flex: 0 0 auto; margin: 0 0 8px; }
.memo-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 11px; border: 1px solid #aeb9bf; border-radius: 5px; color: #2b383e; background: #fff; font-size: .75rem; font-weight: 700; }
.memo-toggle:hover { border-color: #7fb8d8; color: #05598a; }
.memo-toggle.has-memo { border-color: #d8b24a; color: #6b530f; background: #fdf7e4; }
.memo-dot { width: 7px; height: 7px; border-radius: 50%; background: #d79b1b; }
.form-memo textarea { width: 100%; resize: vertical; padding: 9px 11px; border: 1px solid #c8d1d5; border-radius: 5px; color: #2b383e; background: #fff; font-weight: 400; }

.overview-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 24px 18px; overflow: hidden; background: #fff; }
.overview-panel .flow-panel-header { justify-content: flex-end; padding-bottom: 10px; }
.overview-body {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 362px;
  align-items: start;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  padding-bottom: 10px;
  overflow: auto;
  overscroll-behavior: contain;
}
.overview-card { display: grid; gap: 7px; padding: 9px 10px 11px; border: 1px solid #d3dade; border-top: 3px solid #9fb0b8; border-radius: 7px; background: #f8fafb; }
.overview-card.is-active { border-top-color: var(--workshop-blue); background: #fff; box-shadow: 0 0 0 2px rgb(8 121 189 / 22%); }
.overview-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 8px; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; text-align: left; }
.overview-card-head:hover .overview-card-name { color: #05598a; text-decoration: underline; }
.overview-card-number { color: #4f5e65; font-size: .68rem; }
.overview-card-name { overflow: hidden; color: var(--workshop-ink); font-size: .84rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.overview-flow { padding: 7px 9px 8px; border: 1px solid #dde3e6; border-left: 3px solid var(--workshop-blue); border-radius: 5px; background: #fff; }
.overview-flow[data-kind="confirmation"] { border-left-color: var(--workshop-purple); }
.overview-flow[data-kind="custom"] { border-left-color: #d58a28; }
.overview-flow h3 { margin: 0 0 4px; color: #35454c; font-size: .74rem; font-weight: 600; }
.overview-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.overview-step {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.02fr) minmax(0, 1.12fr);
  align-items: baseline;
  gap: 8px;
  padding: 5px 1px;
  border-top: 1px solid #e7ecee;
  font-size: .74rem;
  font-weight: 400;
}
.overview-step:first-child { border-top: 0; }
.overview-step.is-empty { display: block; color: var(--workshop-muted); }
.overview-step > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-step-assignee { display: grid; gap: 1px; }
.overview-step-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-step-role { color: var(--workshop-ink); }
.overview-step-type { color: #56666e; }
.overview-step-assignee { color: #05598a; }
.overview-card-memo { margin: 0; padding: 7px 9px; border-radius: 5px; color: #4a4028; background: #fdf7e4; font-size: .72rem; }

.sheet-overview-button { align-self: stretch; padding: 0 13px; border: 0; border-right: 1px solid #c5ced2; color: #2c3b42; background: #dfe5e8; font-size: .72rem; font-weight: 800; }
.sheet-overview-button:hover { color: #05598a; background: #eaf5fb; }
.sheet-overview-button.is-active { color: #fff; background: var(--workshop-blue); }

.sheet-tabs-bar {
  z-index: 60;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto auto 28px minmax(0, 1fr) 28px;
  align-items: end;
  min-height: 38px;
  border: 1px solid #cbd3d7;
  border-top: 3px solid #9aa8af;
  background: #eef1f2;
  box-shadow: 0 -4px 12px rgb(28 43 50 / 9%);
}
.sheet-menu-wrap { position: relative; align-self: stretch; }
.sheet-menu-button { height: 100%; padding: 0 12px; border: 0; border-right: 1px solid #c5ced2; color: #2c3b42; background: #e5eaec; font-size: .72rem; font-weight: 800; }
.sheet-menu-button::after { margin-left: 5px; content: "▴"; }
.sheet-menu-button[aria-expanded="true"] { color: #075f91; background: #fff; }
.sheet-menu-popover { position: absolute; z-index: 90; bottom: calc(100% + 5px); left: 0; width: min(720px, calc(100vw - 70px)); max-height: min(520px, 70vh); overflow: auto; padding: 12px; border: 1px solid #aebbc1; border-radius: 7px; background: #fff; box-shadow: 0 12px 34px rgb(24 42 50 / 24%); }
#sheet-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 9px; margin: 0; padding: 0; list-style: none; }
#sheet-menu-list button { display: grid; grid-template-columns: 24px 1fr 7px; align-items: center; gap: 6px; width: 100%; padding: 6px 7px; border: 0; border-radius: 4px; color: #2c3b42; background: transparent; text-align: left; }
#sheet-menu-list button:hover, #sheet-menu-list button.is-active { color: #075f91; background: #eaf5fb; }
#sheet-menu-list .sheet-menu-number { color: #4f5e65; font-size: .66rem; font-weight: 800; }
#sheet-menu-list .sheet-menu-name { overflow: hidden; font-size: .74rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sheet-tabs-viewport { min-width: 0; padding-bottom: 9px; overflow-x: auto; scrollbar-width: thin; }
.form-list { display: flex; align-items: end; min-width: max-content; margin: 0; padding: 3px 2px 0; list-style: none; }
.form-list-item { flex: 0 0 auto; margin: 0 1px; }
.form-list-button {
  display: grid;
  grid-template-columns: auto minmax(62px, 132px) 7px;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 3px 7px;
  border: 1px solid #bdc7cc;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  color: #354449;
  background: #e1e6e8;
  text-align: left;
}
.form-list-button:hover { background: #f7f9fa; }
.form-list-button.is-active { border-color: #69add3; color: #173745; background: #fff; box-shadow: inset 0 3px 0 var(--workshop-blue); }
.agenda-number { color: #4f5e65; font-size: .62rem; font-weight: 800; }
.form-list-name { overflow: hidden; font-size: .69rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #aeb9be; }
.status-dot.reviewing { background: #f1b935; }
.status-dot.confirmed { background: #27a36d; }
.sheet-scroll-button { align-self: stretch; border: 0; color: #3a494f; background: #e7ebed; font-size: 1.45rem; }
.sheet-scroll-button:hover { color: var(--workshop-blue); background: #dce7ec; }

.participant-list, .activity-list { margin: 0; padding: 0; list-style: none; }
.participant-list { display: grid; gap: 9px; max-height: 176px; overflow-y: auto; }
.participant-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.participant-avatar { width: 34px; height: 34px; font-size: .72rem; }
.participant-name { display: block; font-size: .78rem; font-weight: 800; }
.participant-state { display: block; color: var(--workshop-muted); font-size: .7rem; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #39b97c; }

.assignee-palette { display: flex; flex-wrap: wrap; gap: 7px; max-height: 168px; overflow-y: auto; }
.assignee-chip { padding: 5px 9px; border: 1px solid #cbd6db; border-radius: 20px; color: #2f3f47; background: #fff; font-size: .74rem; cursor: grab; }
.assignee-chip:hover { border-color: #72b5d9; background: #f2f9fd; }

.activity-list { display: grid; flex: 1 1 auto; gap: 0; min-height: 0; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; }
.activity-item { position: relative; padding: 0 0 12px 17px; color: #39474e; font-size: .74rem; }
.activity-item::before { position: absolute; top: 5px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: #8bbbd6; content: ""; }
.activity-item::after { position: absolute; top: 12px; bottom: 0; left: 4px; width: 1px; background: #d8e1e5; content: ""; }
.activity-item:last-child::after { display: none; }
.activity-item strong { color: #243238; }
.activity-time { display: block; margin-top: 2px; color: #5f6d73; font-size: .66rem; }
.empty-activity { color: #54636a; font-size: .76rem; }

.remote-cursor { position: fixed; z-index: 90; left: 0; top: 0; pointer-events: none; transform: translate(8px, 10px); transition: transform 70ms linear; }
.remote-cursor::before { display: block; width: 11px; height: 15px; background: var(--cursor-color); clip-path: polygon(0 0, 0 100%, 35% 67%, 62% 100%, 77% 91%, 52% 59%, 100% 58%); content: ""; }
.remote-cursor span { display: block; margin: -1px 0 0 9px; padding: 2px 5px; border-radius: 3px; color: #fff; background: var(--cursor-color); white-space: nowrap; font-size: .6rem; }

.toast { display: flex; align-items: center; gap: 12px; position: fixed; right: 24px; bottom: 24px; z-index: 120; max-width: 420px; padding: 11px 16px; border-radius: 5px; color: #fff; background: #344850; box-shadow: 0 8px 24px rgb(0 0 0 / 22%); }
.toast-action { padding: 4px 10px; border: 1px solid #7f97a1; border-radius: 4px; color: #fff; background: transparent; font-size: .78rem; font-weight: 700; }
.toast-action:hover { background: rgb(255 255 255 / 14%); }
.auth-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgb(21 31 36 / 78%); backdrop-filter: blur(6px); }
.auth-card { width: min(440px, 100%); padding: 34px; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / 25%); }
.auth-card h1 { margin: 0 0 14px; font-size: 1.4rem; }
.display-name-input { width: 100%; height: 44px; padding: 8px 12px; border: 1px solid #bcc7cc; border-radius: 5px; color: var(--workshop-ink); background: #fff; font-size: 1.05rem; }
.display-name-input:focus { border-color: #6db1d8; outline: 2px solid #b3daf0; }
.join-button { width: 100%; margin-top: 12px; padding: 11px; border: 1px solid #d3a900; border-radius: 5px; color: #171717; background: var(--workshop-yellow); font-weight: 800; }
.join-button:hover { background: #ffe36b; }

@media (max-width: 1250px) {
  .workshop-grid { grid-template-columns: minmax(600px, 1fr) 260px; }
  .workshop-grid.is-collaboration-hidden { grid-template-columns: minmax(0, 1fr); }
  .flow-column { flex-basis: 560px; min-width: 520px; }
}

@media print {
  html, body, .flow-workshop-page, .workshop-shell { height: auto; overflow: visible; }
  .memo-toggle { display: none !important; }
  .form-memo textarea[hidden] { display: block !important; }
  .workshop-actions, .meeting-toolbar-actions, .local-mode-notice, .sheet-tabs-bar, .collaboration-panel, .text-button, .remove-route, .drag-handle, .flow-column-handle, .flow-column-menu { display: none !important; }
  .flow-workshop-page { min-width: 0; background: #fff; }
  .workshop-shell { padding: 0; }
  .meeting-toolbar { border: 0; }
  .workshop-grid { display: block; border: 0; }
  .flow-panel { padding: 12px 0; }
  .flow-board { display: block; overflow: visible; }
  .flow-board-canvas { display: block; zoom: 1; }
  .flow-column { margin-bottom: 15px; }
  .overview-body { display: block; overflow: visible; }
  .overview-card { page-break-inside: avoid; margin-bottom: 12px; }
}
