@font-face {
  font-family: "DM Sans";
  src: url("/dm-sans.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #172b44;
  background: #f0f5fb;
  font-synthesis: none;
  --navy: #112033;
  --nav-text: #a8b8cc;
  --ink: #172b44;
  --muted: #5d7087;
  --line: #dce5ef;
  --blue: #236bb1;
  --blue-deep: #185696;
  --blue-soft: #e7f0fc;
  --paper: #fff;
  --surface: #f2f6fb;
  --shadow: 0 3px 12px #1c3b6011, 0 1px 2px #1c3b6009;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { cursor: default; opacity: .43; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: var(--blue-deep); text-decoration: none; }
img { display: block; max-width: 100%; }
svg { vertical-align: middle; flex-shrink: 0; }
h1,h2,h3,p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #3684ce;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.button {
  min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 650; white-space: nowrap; background: #fff;
}
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: #edf4fb; color: var(--blue-deep); }
.button.primary { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 1px 2px #14579730; }
.button.primary:hover:not(:disabled) { background: var(--blue-deep); color: white; }
.button.quiet { background: transparent; border-color: transparent; box-shadow: none; }
.button.danger { color: #a62c45; }
.icon-button { display: inline-grid; place-items: center; width: 37px; height: 37px; padding: 0; border-radius: 8px; color: #506783; flex: none; }
.icon-button.active { color: var(--blue-deep); background: #e3effe; }
.app-shell { height: 100dvh; min-height: 440px; display: grid; grid-template-columns: 235px minmax(0,1fr); overflow: hidden; }
.sidebar { background: var(--navy); color: var(--nav-text); display: flex; flex-direction: column; min-height: 0; padding: 20px 15px 13px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; width: 100%; padding: 1px 5px; text-align: left; color: #fff; }
.brand-logo { display: grid; place-items: center; width: 50px; height: 39px; background: #fff; border-radius: 7px; overflow: hidden; flex: none; }
.brand-logo img { width: 43px; height: 31px; object-fit: contain; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.025em; line-height: 1.25; }
.brand small { display: block; font-size: 11px; color: #a8bed4; margin-top: 2px; }
.sidebar-main { display: flex; flex-direction: column; min-height: 0; flex: 1; gap: 21px; }
.side-section { min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.side-heading { display: flex; align-items: center; justify-content: space-between; min-height: 27px; padding: 0 8px; margin-bottom: 2px; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .105em; color: #93aac4; }
.sidebar .icon-button { color: #a6b9d1; }
.sidebar .icon-button:hover { color: #fff; background: #203750; }
.side-heading .icon-button { width: 27px; height: 27px; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 39px; padding: 8px 10px; border-radius: 7px; color: #b7c6d8; text-align: left; font-size: 13px; }
.side-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link:hover { background: #20344d; color: #fff; }
.side-link.active { background: #213e5d; color: #e9f5ff; box-shadow: inset 2px 0 #62a7ed; }
.side-link.active svg { color: #8cc5ff; }
.board-nav { display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.side-footer { margin-top: auto; border-top: 1px solid #2b3d53; padding-top: 12px; }
.profile { display: flex; gap: 9px; align-items: center; padding: 8px 2px 1px; }
.profile div { min-width: 0; flex: 1; }
.profile strong, .profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile strong { font-size: 12px; font-weight: 650; color: #eff5ff; }
.profile small { font-size: 10px; color: #a6bad1; margin-top: 1px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 10px; font-weight: 800; background: #dceafd; color: #245790; flex: none; }
.avatar-stack { display: flex; align-items: center; padding-left: 4px; }
.avatar-stack .avatar { border: 2px solid #fff; margin-left: -4px; background: hsl(var(--hue,215) 62% 91%); color: hsl(var(--hue,215) 58% 31%); }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.topbar { display: flex; min-height: 69px; gap: 16px; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); padding: 0 23px; z-index: 8; }
.board-heading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.board-heading .icon-button { display: none; }
.heading-symbol { width: 38px; height: 38px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 9px; flex: none; }
.breadcrumb { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; line-height: 1; margin-bottom: 4px; }
.board-heading h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 750; letter-spacing: -.028em; }
.top-actions, .top-group { display: flex; align-items: center; gap: 7px; }
.top-actions { gap: 15px; flex-shrink: 0; }
.top-group { gap: 2px; }
.top-separator { width: 1px; height: 25px; background: var(--line); }
.save-indicator { display: flex; align-items: center; gap: 5px; color: #567088; font-size: 11px; white-space: nowrap; }
.save-indicator svg { color: #22815d; }
.save-indicator.offline svg { color: #ad701a; }
.work-area { min-height: 0; min-width: 0; flex: 1; display: flex; position: relative; background: #f2f6fb; }
.canvas { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; user-select: none; isolation: isolate; }
.canvas-grid { position: absolute; inset: 0; pointer-events: none; background-color: #f3f7fc; background-image: radial-gradient(circle, #cad7e7 1px, transparent 1.35px); background-size: 23px 23px; }
.canvas[data-tool=hand], .canvas[data-tool=hand] .node { cursor: grab; }
.canvas[data-tool=hand]:active, .canvas[data-tool=hand]:active .node { cursor: grabbing; }
.canvas:not([data-tool=select]):not([data-tool=hand]), .canvas:not([data-tool=select]):not([data-tool=hand]) .node { cursor: crosshair; }
.world { position: absolute; inset: 0; transform-origin: 0 0; pointer-events: none; }
.node { position: absolute; pointer-events: auto; cursor: move; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: stretch; }
.node-content { flex: 1; min-width: 0; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.28; }
.node-note { background: var(--node-color); padding: 15px 14px; font-weight: 570; box-shadow: 0 2px 5px #1a355218, inset 0 -2px 0 #1a355209; }
.node-rect,.node-ellipse { background: var(--node-color); align-items: center; text-align: center; padding: 10px; border-color: #25456625; }
.node-ellipse { border-radius: 50%; }
.node-text { border-radius: 5px; letter-spacing: -.025em; }
.node-text.bold,.node.bold { font-weight: 800; }
.node-frame { background: color-mix(in srgb,var(--node-color) 44%,white); border-color: #c5d4e5; border-radius: 13px; box-shadow: 0 3px 9px #23436308; }
.node-frame > .node-content { padding: 12px 16px; height: 42px; border-radius: 12px 12px 0 0; background: var(--node-color); font-size: .88em; font-weight: 750; color: #233b55; }
.node-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.node.selected { outline: 2px solid #327dd0; outline-offset: 2px; }
.node.locked { cursor: default; }
.resize-handle { position: absolute; z-index: 3; width: 12px; height: 12px; border: 2px solid #327dd0; background: #fff; border-radius: 3px; bottom: -6px; right: -6px; cursor: nwse-resize; }
.lock-marker { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 5px; background: #ffffffa8; color: #47637d; }
.vote-marker,.comment-marker { position: absolute; right: 7px; bottom: 7px; border-radius: 14px; background: #ffffffd9; border: 1px solid #abc6e2; padding: 3px 6px; font-size: 11px; font-weight: 750; color: var(--blue-deep); line-height: 1.1; }
.vote-marker { right: auto; left: 7px; }
.vote-marker.mine { background: #2a73ba; color: white; border-color: #2a73ba; }
.vote-marker:disabled { opacity: 1; }
.canvas-lines { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.canvas-line { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.line-hit { fill: none; stroke: transparent; stroke-width: 15; pointer-events: stroke; cursor: move; }
.cursor-layer { position: absolute; inset: 0; pointer-events: none; }
.peer-cursor { position: absolute; color: var(--peer); display: flex; align-items: flex-start; gap: 1px; }
.peer-cursor svg { fill: var(--peer); stroke: white; }
.peer-cursor span { color: #fff; background: var(--peer); padding: 4px 7px; border-radius: 5px; font-size: 11px; white-space: nowrap; margin-top: 12px; }
.marquee { position: absolute; border: 1px solid #3a85d4; background: #4589da20; pointer-events: none; }
.canvas-float { position: absolute; left: 16px; top: 19px; display: flex; flex-direction: column; gap: 10px; z-index: 4; }
.toolbar,.tool-history,.zoom-box,.selection-bar { display: flex; align-items: center; background: #fff; border: 1px solid #d9e4ef; border-radius: 11px; box-shadow: var(--shadow); }
.toolbar,.tool-history { flex-direction: column; padding: 4px; gap: 2px; }
.toolbar .icon-button,.tool-history .icon-button { width: 38px; height: 38px; border-radius: 7px; }
.tool-divider { width: 26px; height: 1px; margin: 3px 0; background: var(--line); }
.tool-flyout { position: absolute; left: 54px; top: 158px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 9px; padding: 5px; min-width: 130px; }
.tool-flyout button { width: 100%; display: flex; gap: 8px; text-align: left; align-items: center; padding: 8px; border-radius: 6px; font-size: 12px; }
.tool-flyout button:hover { background: var(--blue-soft); }
.zoom-box { position: absolute; right: 17px; bottom: 18px; gap: 0; padding: 3px; z-index: 4; }
.zoom-box .icon-button { width: 32px; height: 31px; }
.zoom-box > span { background: var(--line); height: 20px; width: 1px; margin: 0 3px; }
.zoom-number { min-width: 49px; padding: 6px 2px; font-size: 12px; font-weight: 700; }
.minimap { display: block; position: absolute; right: 17px; bottom: 67px; z-index: 3; width: 145px; aspect-ratio: 1.7; border: 1px solid #d3dfec; border-radius: 10px; overflow: hidden; padding: 0; background: #fff; box-shadow: var(--shadow); }
.minimap svg { width: 100%; height: 100%; display: block; }
.selection-bar { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); gap: 4px; padding: 4px; white-space: nowrap; }
.selection-bar .icon-button { width: 32px; height: 31px; }
.selection-bar .separator { width: 1px; height: 21px; background: var(--line); margin: 0 3px; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #b3c0cf; background: var(--swatch); padding: 0; }
.swatch:hover { outline: 2px solid var(--blue); outline-offset: 1px; }
.canvas-empty { position: absolute; top: 43%; left: 50%; transform: translate(-50%,-50%); width: max-content; max-width: 80%; display: grid; gap: 7px; justify-items: center; text-align: center; pointer-events: none; }
.canvas-empty > div { display: grid; place-items: center; width: 61px; height: 61px; margin-bottom: 4px; border-radius: 16px; color: var(--blue); background: #e4eefb; }
.canvas-empty strong { font-size: 21px; letter-spacing: -.025em; }
.canvas-empty span { color: var(--muted); font-size: 13px; }
.canvas-hint { position: absolute; bottom: 20px; left: 19px; z-index: 3; pointer-events: none; font-size: 11px; color: #5d748d; display: flex; align-items: center; gap: 6px; background: #f3f7fce8; padding: 6px 7px; border-radius: 5px; }
kbd { padding: 1px 5px; border: 1px solid #cbd9e8; background: #fff; border-radius: 4px; font-size: 10px; font-family: inherit; font-weight: 650; }
.workshop-badges { position: absolute; top: 17px; right: 17px; z-index: 5; display: flex; gap: 8px; align-items: center; }
.workshop-badge { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); padding: 8px 11px; font-size: 13px; font-weight: 700; color: var(--blue-deep); }
.side-panel { width: 300px; flex: none; min-height: 0; border-left: 1px solid var(--line); background: white; display: flex; flex-direction: column; z-index: 6; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 15px; font-weight: 750; }
.panel-body { padding: 13px 15px; min-height: 0; overflow: auto; flex: 1; }
.panel-body p,.panel-empty { font-size: 13px; line-height: 1.55; color: var(--muted); }
.comment-card { padding: 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 9px; background: #f8fafd; }
.comment-card header { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.comment-card header strong { font-size: 12px; }
.comment-card header time { margin-left: auto; font-size: 10px; color: var(--muted); }
.comment-card p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.comment-card.resolved { opacity: .65; }
.comment-card button { padding: 6px 0 0; font-size: 11px; color: var(--blue-deep); }
.panel-compose { border-top: 1px solid var(--line); padding: 12px 15px; display: grid; gap: 9px; }
.panel-compose textarea { min-height: 76px; }
.frame-link { display: flex; gap: 10px; align-items: center; width: 100%; padding: 11px 9px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; text-align: left; font-size: 13px; }
.frame-link:hover { background: var(--blue-soft); }
.frame-link i { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.dropdown { position: absolute; right: 20px; top: 59px; z-index: 12; min-width: 214px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 12px 30px #172b4426; padding: 5px; }
.dropdown .button { border: 0; width: 100%; justify-content: flex-start; box-shadow: none; }
.mobile-scrim { display: none; }
.overview { flex: 1; min-height: 0; overflow: auto; padding: 36px clamp(20px,4vw,56px); background: #f4f7fb; }
.overview-content { max-width: 1240px; margin: 0 auto; }
.overview-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.overview-title h2 { font-size: clamp(24px,3vw,34px); letter-spacing: -.045em; }
.overview-title p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.overview-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.search-box { display: flex; gap: 8px; align-items: center; padding: 0 11px; border: 1px solid var(--line); background: #fff; border-radius: 8px; color: var(--muted); min-width: 0; width: 270px; }
.search-box input#board-search { width: 100%; min-width: 0; border: none; background: transparent; padding: 9px 0; outline: none; }
.board-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(226px,1fr)); gap: 17px; }
.board-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; text-align: left; padding: 0; box-shadow: var(--shadow); }
.board-card:hover { border-color: #91bce6; box-shadow: 0 5px 15px #3262941a; }
.board-card-body { padding: 15px; }
.board-card h3 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card p { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 32px; overflow-wrap: anywhere; }
.board-card small { display: flex; justify-content: space-between; gap: 7px; color: var(--muted); font-size: 11px; margin-top: 9px; }
.thumbnail { display: flex; align-items: stretch; justify-content: center; gap: 7px; padding: 21px 19px; height: 132px; background-color: #edf3fc; background-image: radial-gradient(#c9d8ea 1px,transparent 1.3px); background-size: 12px 12px; }
.thumbnail > div { border: 1px solid #b9cbdf; border-radius: 5px; display: flex; flex-direction: column; gap: 4px; padding: 7px; width: 31%; background: #f8fbff; }
.thumbnail > div span { border-radius: 2px; width: 100%; height: 19px; background: #cee7fb; }
.thumbnail > div:nth-child(2) span { background: #ffe9a9; }
.thumbnail > div:nth-child(3) span { background: #e8ddfa; }
.thumbnail.retro > div:nth-child(1) span,.thumbnail.kanban > div:nth-child(3) span { background: #d2f0de; }
.thumbnail.retro > div:nth-child(2) span { background: #fbdce5; }
.thumbnail.blank { align-items: center; color: #6183ac; }
.thumbnail.mindmap { align-items: center; }
.thumbnail.mindmap > div { height: 48px; align-self: flex-start; }
.thumbnail.mindmap > div:nth-child(2) { align-self: center; height: 44px; }
.thumbnail.mindmap > div:nth-child(3) { align-self: flex-end; }
.empty-list { padding: 45px 20px; border: 1px dashed #b7cada; border-radius: 13px; text-align: center; color: var(--muted); background: #f9fbfe; font-size: 14px; }
.focus-mode { grid-template-columns: 1fr; }
.focus-mode .sidebar { display: none; }
.focus-mode .canvas-float,.focus-mode .canvas-hint,.focus-mode .selection-bar { display: none; }
dialog { width: min(510px,calc(100vw - 26px)); max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #d8e4f0; border-radius: 15px; color: var(--ink); box-shadow: 0 25px 100px #142e5040; overflow: auto; }
dialog.wide { width: min(704px,calc(100vw - 26px)); }
dialog::backdrop { background: #10233b69; backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 19px; border-bottom: 1px solid var(--line); background: white; position: sticky; top: 0; z-index: 2; }
.dialog-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -.025em; }
.dialog-body { padding: 20px; display: grid; gap: 15px; }
.dialog-body > p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 13px 19px; border-top: 1px solid var(--line); }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
input:not([type=radio]):not([type=color]),textarea,select { border: 1px solid #d2dfec; border-radius: 8px; padding: 9px 10px; background: #fcfdff; color: var(--ink); font-size: 13px; min-width: 0; }
textarea { width: 100%; min-height: 94px; resize: vertical; line-height: 1.5; }
input[type=color] { width: 45px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; }
.form-row { display: flex; align-items: end; gap: 11px; flex-wrap: wrap; }
.form-row > .field { flex: 1; }
.form-error { background: #fff0f1; color: #932644; border: 1px solid #f2ccd4; border-radius: 7px; padding: 9px 11px; font-size: 12px; }
.template-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.template-choice { position: relative; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; color: var(--ink); }
.template-choice:has(input:checked) { outline: 2px solid var(--blue); outline-offset: -1px; }
.template-choice input { position: absolute; top: 3px; right: 3px; accent-color: var(--blue); }
.template-choice .thumbnail { height: 65px; padding: 9px; }
.template-choice .thumbnail > div { padding: 4px; gap: 2px; }
.template-choice .thumbnail > div span { height: 8px; }
.template-choice strong { display: block; padding: 7px 8px; font-size: 11px; }
.member-row,.version-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e9eff6; min-width: 0; }
.member-row .member-name,.version-row > div { flex: 1; min-width: 0; }
.member-row strong,.version-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.member-row small,.version-row small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.member-row select { max-width: 112px; }
.member-row .button { min-height: 33px; font-size: 11px; padding: 5px 8px; }
.dialog-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.kbd-list { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 14px; font-size: 13px; }
#toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: calc(100vw - 34px); border-radius: 9px; background: var(--navy); color: #fff; padding: 10px 15px; box-shadow: var(--shadow); font-size: 13px; pointer-events: none; }
#toast:empty { display: none; }
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(310px,.92fr) minmax(400px,1.08fr); background: white; }
.login-brand { display: flex; flex-direction: column; gap: 28px; justify-content: center; padding: clamp(32px,7vw,110px); background: radial-gradient(ellipse at 90% 20%,#1d4b78 0,transparent 55%),#112033; color: #fff; }
.login-brand img { width: 143px; height: 70px; background: #fff; object-fit: contain; padding: 9px 13px; border-radius: 10px; }
.login-brand h1 { font-size: clamp(37px,5vw,67px); font-weight: 800; letter-spacing: -.06em; line-height: 1.02; }
.login-brand p { color: #b6cce4; font-size: 17px; line-height: 1.5; max-width: 430px; }
.login-side { display: grid; place-items: center; padding: 36px; }
.login-card { width: min(100%,388px); display: grid; gap: 16px; }
.login-card h2 { font-size: 28px; letter-spacing: -.045em; }
.login-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.login-card form { display: grid; gap: 12px; }
.login-card summary { color: var(--blue-deep); font-size: 13px; cursor: pointer; margin-bottom: 12px; }
.microsoft { display: grid; grid-template-columns: repeat(2,7px); gap: 2px; }
.microsoft i { width: 7px; height: 7px; background: #f25022; }
.microsoft i:nth-child(2) { background: #7fba00; }
.microsoft i:nth-child(3) { background: #00a4ef; }
.microsoft i:nth-child(4) { background: #ffb900; }
.loading { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; color: var(--muted); }
.loading img { width: 90px; }
@media(max-height:720px) {
  .toolbar .icon-button,.tool-history .icon-button { height: 33px; }
  .canvas-float { top: 11px; gap: 7px; }
}
@media(max-width:1080px) {
  .app-shell { grid-template-columns: 199px minmax(0,1fr); }
  .focus-mode { grid-template-columns: 1fr; }
  .topbar { padding: 0 15px; gap: 10px; }
  .top-actions { gap: 8px; }
  .save-indicator span { display: none; }
}
@media(max-width:800px) {
  .app-shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { display: none; position: fixed; top: 0; bottom: 0; left: 0; width: 230px; z-index: 13; }
  .app-shell.nav-open .sidebar { display: flex; }
  .app-shell.nav-open .mobile-scrim { display: block; position: fixed; inset: 0; background: #14223870; z-index: 12; }
  .board-heading .icon-button { display: inline-grid; }
  .board-heading { gap: 7px; }
  .heading-symbol { display: none; }
  .topbar { min-height: 61px; padding: 0 10px; }
  .top-actions .avatar-stack,.top-separator { display: none; }
  .side-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px,85vw); box-shadow: -8px 0 22px #183d6218; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 33px 25px; gap: 16px; }
  .login-brand img { width: 90px; height: 46px; padding: 5px; }
  .login-brand h1 { font-size: 37px; }
  .login-brand p { font-size: 14px; }
  .login-side { padding: 30px 22px; }
}
@media(max-width:540px) {
  .topbar { min-height: 58px; }
  .top-actions { gap: 3px; }
  .top-actions .icon-button { width: 32px; height: 33px; }
  .top-actions .button { padding: 7px 9px; min-height: 33px; font-size: 11px; }
  .top-actions .button svg { display: none; }
  .top-actions .top-group { display: none; }
  .top-actions .save-indicator { display: none; }
  .board-heading h1 { font-size: 14px; }
  .breadcrumb { font-size: 10px; }
  .canvas-float { top: 10px; left: 8px; gap: 6px; }
  .toolbar,.tool-history { padding: 3px; }
  .toolbar .icon-button,.tool-history .icon-button { width: 33px; height: 33px; }
  .canvas-hint,.minimap { display: none; }
  .zoom-box { right: 9px; bottom: 10px; }
  .selection-bar { bottom: 55px; max-width: calc(100% - 20px); flex-wrap: wrap; justify-content: center; }
  .workshop-badges { top: 10px; right: 9px; }
  .overview { padding: 23px 15px; }
  .overview-title { align-items: start; flex-direction: column; }
  .template-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-row select { max-width: 94px; }
}
