@charset "UTF-8";

:root {
  color-scheme: light;
  --ui-bg: #fff;
  --ui-text: #1e1e1e;
  --ui-secondary: #808080;
  --ui-faint: #aaa;
  --ui-border: #e6e6e6;
  --ui-hover: #f5f5f5;
  --ui-input: #f5f5f5;
  --ui-blue: #0d99ff;
  --ui-blue-text: #007be5;
  --ui-blue-soft: #e5f4ff;
  --ui-purple: #9747ff;
  --ui-canvas: #f5f5f5;
  --dialog-width: 448px;
  --dialog-padding: 24px;
  --dialog-section-gap: 24px;
  --dialog-radius: 12px;
  --menu-radius: 8px;
  --control-radius: 6px;
  --dialog-copy: #666;
  --surface-shadow: 0 8px 24px #00000014, 0 2px 6px #0000000a;
  --rail-width: 56px;
  --left-width: 236px;
  --right-width: 268px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: var(--ui-text); background: var(--ui-canvas); }
button, input { font: inherit; color: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; appearance: none; border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible, canvas:focus-visible { outline: 2px solid var(--ui-blue); outline-offset: 2px; }
button:disabled:hover { background: none; }
input { min-width: 0; width: 100%; border: 0; background: transparent; outline: none; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
[hidden] { display: none !important; }
svg { display: block; width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-button { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 5px; }
.icon-button:hover { background: var(--ui-hover); }
.icon-button.compact { width: 24px; height: 24px; }
.row-spacer { flex: 1; }
.heading-actions { display: flex; gap: 2px; align-items: center; }

#editor-app { position: relative; display: grid; grid-template-columns: var(--rail-width) var(--left-width) minmax(0,1fr) var(--right-width); grid-template-rows: minmax(0,1fr); width: 100%; height: 100%; min-height: 0; }
.editor-combat-overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 55; pointer-events: none; }
.tool-slot { display: flex; align-items: center; position: relative; }
.tool-pair.is-missing-tool, .tool-slot.is-missing-tool { border-radius: 6px; background: repeating-linear-gradient(135deg,#fff 0 6px,#f5eaee 6px 8px); box-shadow: inset 0 0 0 1px #d8b4c0; }
.tool-pair.is-missing-tool .tool-chevron { background: #fff9; }
#position-section, #fill-section, #layers-list { position: relative; }
.has-combat-damage > :not(.panel-damage-note) { visibility: hidden; pointer-events: none; }
.has-combat-damage { min-height: 92px; background: repeating-linear-gradient(0deg,#fff 0 15px,#faf5f7 15px 16px); }
.panel-damage-note { position: absolute; top: 18px; left: 12px; right: 12px; padding: 12px 10px; border: 1px dashed #cf9aa9; border-radius: 5px; color: #9b526c; font-size: 11px; line-height: 16px; background: #fff8fb; text-align: center; pointer-events: none; }
#layers-list.has-combat-damage > .layer-row { visibility: visible; transform-origin: 6px 4px; transform: translateY(4px) rotate(4deg); opacity: .52; background: #f7e7ea; }
#layers-list.has-combat-damage > .layer-row:nth-child(even) { transform: translate(5px,7px) rotate(-3deg); }
#layers-list.has-combat-damage > .panel-damage-note { position: relative; inset: auto; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  #layers-list.has-combat-damage > .layer-row { animation: layer-swing .42s ease-out; }
  @keyframes layer-swing { 35% { transform: translateY(8px) rotate(10deg); } }
}
.panel-damage-note::after { content: ''; display: block; height: 13px; margin: 10px 5px 0; background: linear-gradient(90deg,#ecd6de 0 19%,transparent 19% 25%,#f1dfe6 25% 64%,transparent 64% 71%,#ecd6de 71% 100%); opacity: .7; }
.navigation-rail { position: relative; z-index: 30; display: flex; flex-direction: column; align-items: center; background: var(--ui-bg); border-right: 1px solid var(--ui-border); padding: 10px 0 12px; min-height: 0; }
.rail-logo { width: 36px; height: 34px; }
.rail-logo svg { width: 21px; height: 24px; }
.rail-divider { height: 1px; width: 24px; margin: 10px auto 8px; background: var(--ui-border); flex: 0 0 auto; }
.rail-main { display: flex; flex-direction: column; align-items: center; width: 100%; }
.rail-button { display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 62px; padding: 4px 0 6px; font-size: 10px; line-height: 14px; }
.rail-icon { display: flex; align-items: center; justify-content: center; position: relative; width: 32px; height: 32px; border-radius: 6px; }
.rail-icon svg { width: 19px; height: 19px; stroke-width: 1.55; }
.rail-button:hover .rail-icon { background: var(--ui-hover); }
.rail-button.is-active .rail-icon, .rail-button.active .rail-icon, .rail-button[aria-pressed="true"] .rail-icon { color: var(--ui-blue-text); background: var(--ui-blue-soft); }
.rail-button.is-active, .rail-button[aria-pressed="true"] { font-weight: 500; }
.rail-notification { position: absolute; right: 3px; top: 3px; width: 5px; height: 5px; background: var(--ui-purple); border-radius: 50%; }
.rail-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: auto; padding-top: 24px; }
.rail-bottom svg { width: 20px; height: 20px; }
.notification-dot { position: absolute; top: 3px; right: 2px; width: 5px; height: 5px; background: var(--ui-blue); border-radius: 50%; border: 1px solid #fff; }

.left-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ui-bg); border-right: 1px solid var(--ui-border); position: relative; z-index: 25; }
.file-header { flex: 0 0 auto; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--ui-border); }
.file-title-row { display: flex; align-items: center; min-height: 26px; gap: 4px; }
#file-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; font-size: 12px; }
.minimize-button { margin-left: auto; }
.file-location { gap: 3px; margin-top: 4px; padding: 2px 0; color: var(--ui-secondary); font-size: 11px; }
.file-location svg { width: 11px; height: 11px; }
.file-location:hover { color: var(--ui-text); }
.sidebar-content { min-height: 0; overflow: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #ddd transparent; }
.sidebar-section { padding: 12px 8px; }
.pages-section { border-bottom: 1px solid var(--ui-border); padding-bottom: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 28px; padding: 0 4px; font-weight: 600; }
.section-heading > span { display: inline-flex; align-items: center; gap: 3px; }
.section-heading .disclosure { width: 10px; height: 10px; color: #aaa; margin-left: -4px; }
.page-row { display: flex; justify-content: flex-start; padding: 0 12px; width: 100%; height: 28px; margin-top: 8px; border-radius: 5px; font-weight: 500; }
.page-row.is-active { background: #f5f5f5; }
.layers-section { padding-top: 9px; }
.layers-list { margin-top: 8px; }
.layer-row, #layers-list > button { display: flex; align-items: center; justify-content: flex-start; width: 100%; height: 30px; min-width: 0; padding: 0 8px; gap: 8px; border-radius: 5px; text-align: left; }
.layer-row:hover, #layers-list > button:hover { background: var(--ui-hover); }
.layer-row.is-selected, .layer-row.selected, .layer-row[aria-selected="true"], #layers-list > button.is-selected, #layers-list > button.selected { background: var(--ui-blue-soft); }
.layer-row.locked .layer-name { color: var(--ui-secondary); }
.layer-icon { width: 14px; height: 14px; flex-shrink: 0; }
.layer-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer-select { display: flex; flex: 1; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; height: 30px; padding: 0; text-align: left; background: transparent; }
.layer-lock { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 23px; height: 23px; padding: 0; border-radius: 4px; color: #888; }
.layer-lock svg { width: 16px; height: 16px; }
.layer-lock:hover { background: #00000008; color: #555; }
.layer-lock[aria-pressed="true"], .layer-lock.is-active { color: var(--ui-blue-text); }
.layer-lock.is-locked { color: var(--ui-blue); }
.layer-meta { margin-left: auto; white-space: nowrap; color: #8c8c8c; font-size: 10px; }
.layer-visibility { margin-left: auto; width: 12px; height: 12px; opacity: 0; }
.layer-row:hover .layer-visibility { opacity: 1; }
.layer-row.enemy, .layer-row.is-enemy { color: var(--ui-purple); }
.sidebar-bottom { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 8px 14px; margin-top: auto; color: #999; font-size: 10px; border-top: 1px solid #f5f5f5; }
.file-saved-dot { width: 4px; height: 4px; background: #85a390; border-radius: 50%; }
.agent-panel { display: flex; flex-direction: column; padding: 10px 12px; }
.agent-chat-title { display: flex; align-items: center; gap: 7px; padding: 10px 5px 13px; border-bottom: 1px solid var(--ui-border); }
.agent-chat-title svg { color: var(--ui-purple); width: 14px; height: 14px; }
.chat-owner { margin-left: auto; color: var(--ui-secondary); font-size: 10px; }
.agent-conversation { padding: 20px 3px 12px; overflow-wrap: anywhere; }
.chat-person { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.chat-time { margin-left: auto; color: #999; font-size: 10px; font-weight: 400; }
.user-message { background: #f5f5f5; border-radius: 9px 9px 3px 9px; padding: 10px 11px; margin: 9px 0 24px 24px; line-height: 1.6; }
.agent-response-heading { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.agent-response-heading svg { width: 15px; height: 15px; }
.agent-status { margin-left: auto; color: var(--ui-secondary); font-size: 10px; font-weight: 400; }
.agent-response { margin-top: 10px; line-height: 1.65; font-size: 11px; white-space: pre-wrap; color: #555; }
.chat-composer { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; color: #888; border: 1px solid #ddd; border-radius: 10px; padding: 10px; min-height: 84px; margin-top: auto; }
.composer-send { width: 23px; height: 23px; align-self: flex-end; color: #fff; background: #b5b5b5; border-radius: 5px; font-size: 17px; }
.sidebar-search { display: flex; align-items: center; gap: 8px; margin: 14px 12px; color: #999; background: #f5f5f5; border-radius: 5px; height: 30px; padding: 0 9px; }
.sidebar-search svg { width: 14px; height: 14px; }
.panel-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px; }
.panel-empty > svg { width: 28px; height: 28px; color: #aaa; margin-bottom: 12px; }
.panel-empty h2 { font-size: 11px; margin: 0 0 7px; font-weight: 500; }
.panel-empty p { font-size: 11px; color: #888; line-height: 1.6; margin: 0; }

.canvas-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--ui-canvas); }
/* Bitmap dimensions must never contribute to the editor's grid sizing. */
#game-canvas { will-change: transform; position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; outline-offset: -2px; }
.canvas-overlays { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
/* Dialogs share one shell and explicit body/footer spacing, with or without a tutorial. */
.scene-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px 24px 96px; pointer-events: auto; background: rgba(245,245,245,.64); backdrop-filter: blur(2px); }
.editor-dialog { display: flex; flex-direction: column; width: min(100%,var(--dialog-width)); min-width: 0; min-height: 0; max-height: 100%; overflow: hidden; background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: var(--dialog-radius); box-shadow: var(--surface-shadow); text-align: left; }
.dialog-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--dialog-padding); scrollbar-width: thin; scrollbar-color: #d4d4d4 transparent; }
.dialog-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--dialog-padding); border-bottom: 1px solid var(--ui-border); }
.editor-dialog h1, .editor-dialog h2 { margin: 0 0 8px; color: var(--ui-text); font-size: 18px; line-height: 24px; letter-spacing: -.2px; font-weight: 600; overflow-wrap: anywhere; }
.editor-dialog .dialog-header h2 { margin: 0; }
.editor-dialog p { margin: 0; color: var(--dialog-copy); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.dialog-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px var(--dialog-padding); border-top: 1px solid var(--ui-border); background: var(--ui-bg); }
.dialog-footer-stack { flex-direction: column; align-items: stretch; gap: 12px; }
.encounter-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: var(--dialog-section-gap); font-size: 12px; line-height: 16px; font-weight: 500; }
.file-symbol { color: var(--ui-blue-text); }
.file-symbol svg { width: 16px; height: 16px; }
#start-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playable-badge { flex: 0 0 auto; margin-left: auto; color: #777; font-size: 12px; line-height: 16px; font-weight: 400; }
.encounter-rules { display: grid; gap: 16px; margin-top: var(--dialog-section-gap); }
.encounter-rules > div { display: flex; align-items: flex-start; gap: 12px; color: var(--dialog-copy); font-size: 13px; line-height: 20px; }
.encounter-rules svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: #777; }
.encounter-rules strong { display: block; margin-bottom: 4px; color: var(--ui-text); font-size: 13px; line-height: 20px; font-weight: 600; }
.encounter-rules kbd { margin-left: 6px; color: #777; }
.primary-button, .secondary-button { flex: 0 0 auto; gap: 8px; min-height: 32px; padding: 6px 12px; border: 1px solid transparent; border-radius: var(--control-radius); font-size: 12px; line-height: 18px; font-weight: 500; }
.primary-button { background: var(--ui-blue); border-color: var(--ui-blue); color: #fff; }
.primary-button:hover { background: #0087e9; border-color: #0087e9; }
.secondary-button { border-color: var(--ui-border); background: var(--ui-bg); }
.secondary-button:hover { background: var(--ui-hover); }
.start-button { width: 100%; justify-content: center; }
.shortcut-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; color: #777; font-size: 11px; line-height: 16px; }
.shortcut-footer > span { display: flex; align-items: center; gap: 4px; }
kbd { font-family: inherit; font-size: 10px; font-weight: 400; color: #999; white-space: nowrap; }
.shortcut-footer kbd, .shortcut-list kbd { display: inline-block; padding: 2px 4px; border-radius: 4px; background: var(--ui-hover); color: #666; font-size: 11px; line-height: 16px; }
.result-symbol, .pause-mark { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; margin: 0 0 16px; border-radius: var(--control-radius); color: #20935b; background: #e9f6ee; }
.result-symbol svg { width: 18px; height: 18px; }
.result-symbol.is-loss { color: #b36341; background: #fcf0e8; }
.pause-mark { padding: 8px; color: #777; background: var(--ui-hover); }
.result-stats { display: grid; grid-template-columns: 1.2fr 1.2fr .7fr; gap: 16px; margin: var(--dialog-section-gap) 0 16px; padding: 16px 0; border-block: 1px solid var(--ui-border); }
.result-stats dt { color: #777; font-size: 12px; line-height: 16px; }
.result-stats dd { margin: 8px 0 0; color: var(--ui-text); font-size: 18px; line-height: 24px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.editor-dialog .result-record-note { font-size: 12px; line-height: 18px; }
.result-buttons { flex-wrap: wrap; }
.desktop-note { display: none; position: absolute; top: 12px; left: 12px; right: 12px; align-items: center; gap: 9px; padding: 10px 12px; z-index: 24; font-size: 11px; line-height: 1.5; color: #666; background: #fffffff2; border: 1px solid #e6e6e6; border-radius: 8px; pointer-events: none; }
.desktop-note svg { color: var(--ui-blue-text); }

.floating-toolbar { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: 52px; padding: 6px; border: 1px solid #dedede; border-radius: 13px; background: #fff; z-index: 40; box-shadow: 0 2px 6px #00000014, 0 7px 20px #0000000b; white-space: nowrap; }
.interaction-hint { position: absolute; bottom: 85px; left: 18px; right: 18px; text-align: center; pointer-events: none; color: #939393; font-size: 10px; line-height: 1.5; z-index: 21; }
.canvas-wrap:has(.scene-overlay:not([hidden])) .interaction-hint { visibility: hidden; }
.tool-pair { display: flex; gap: 0; align-items: center; }
.tool-button { position: relative; width: 34px; height: 38px; flex-shrink: 0; border-radius: 7px; }
.tool-button > svg { width: 22px; height: 22px; stroke-width: 1.55; }
.tool-button:hover, .tool-chevron:hover { background: #f5f5f5; }
.tool-button.is-active, .tool-button.active, .tool-button[aria-pressed="true"] { color: #fff; background: var(--ui-blue); }
.tool-chevron { width: 15px; height: 32px; border-radius: 5px; }
.tool-chevron svg { width: 13px; height: 13px; stroke-width: 2; }
.mode-switcher { display: flex; align-items: center; padding: 3px; height: 36px; margin-left: 5px; gap: 1px; border-radius: 7px; background: #f5f5f5; position: relative; }
.mode-switcher::before { content: ""; height: 52px; width: 1px; position: absolute; left: -8px; top: -9px; background: #e6e6e6; }
.mode-button { width: 29px; height: 29px; border-radius: 5px; color: #888; }
.mode-button svg { width: 19px; height: 19px; }
.mode-button:hover { color: #555; }
.mode-button.is-active { color: var(--ui-blue-text); background: #fff; box-shadow: 0 1px 4px #00000026; border: 1px solid #e5e5e5; }
.popup-menu { position: absolute; bottom: calc(100% + 8px); min-width: 200px; max-width: calc(100vw - 24px); padding: 4px; background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: var(--menu-radius); color: var(--ui-text); box-shadow: var(--surface-shadow); white-space: normal; font-size: 12px; line-height: 18px; }
.pen-menu { left: 168px; width: 236px; }
.canvas-text-editor { position: absolute; z-index: 32; resize: none; overflow: hidden; border: 1px solid var(--ui-blue, #0d99ff); border-radius: 0; outline: 1px solid #fff; padding: 0; margin: 0; background: #ffffffed; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 400; white-space: pre; transform-origin: 0 0; box-shadow: 0 0 0 1px #0d99ff24; }
.canvas-text-editor::placeholder { color: #a2a2a2; }
.text-content-field { display: flex; flex-direction: column; gap: 8px; color: #777; font-size: 11px; margin-bottom: 12px; }
.text-content-field textarea { width: 100%; min-height: 64px; padding: 8px; border: 1px solid var(--ui-border); border-radius: var(--control-radius); background: var(--ui-bg); color: var(--ui-text); font: 12px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.text-content-field textarea:focus { outline: 1px solid #0d99ff; border-color: #0d99ff; }
.typeface-label { align-self: center; font-size: 11px; color: #777; }
.alignment-row button:disabled { opacity: .3; cursor: default; }
.shape-menu { left: 99px; }
.actions-menu { right: 86px; min-width: 220px; }
.menu-item { display: flex; width: 100%; min-height: 32px; justify-content: flex-start; padding: 6px 8px; gap: 8px; border-radius: 4px; text-align: left; }
.menu-item:hover { background: var(--ui-blue); color: #fff; }
.menu-item svg { width: 15px; height: 15px; }
.menu-item kbd, .menu-detail { margin-left: auto; color: #999; font-size: 10px; }
.menu-item:hover kbd, .menu-item:hover .menu-detail { color: #ffffffb0; }
.menu-separator { height: 1px; margin: 4px -4px; background: var(--ui-border); }
.menu-caption { max-width: 230px; padding: 8px; font-size: 11px; line-height: 16px; color: #777; }
.menu-heading { padding: 6px 8px 7px; color: #999; font-size: 10px; }
.editor-context-menu { position: fixed; z-index: 100; min-width: 220px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 4px; border: 1px solid var(--ui-border); border-radius: var(--menu-radius); background: var(--ui-bg); color: var(--ui-text); box-shadow: var(--surface-shadow); font-size: 12px; line-height: 18px; }
.editor-context-menu button { display: flex; width: 100%; min-height: 32px; align-items: center; justify-content: space-between; gap: 24px; padding: 6px 8px; border-radius: 4px; text-align: left; }
.editor-context-menu button:hover { background: var(--ui-blue-soft); }
.editor-context-menu button:disabled { color: #aaa; }
.editor-context-menu span { color: #777; }

.right-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; border-left: 1px solid var(--ui-border); position: relative; z-index: 25; overflow: auto; scrollbar-width: thin; scrollbar-color: #ddd transparent; }
.properties-header { position: sticky; top: 0; z-index: 3; background: #fff; flex-shrink: 0; border-bottom: 1px solid var(--ui-border); }
.collaboration-row { display: flex; align-items: center; gap: 3px; padding: 12px 12px 8px; min-height: 54px; }
.avatar-stack { display: flex; align-items: center; padding-left: 0; gap: 5px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 500; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.avatar.small { width: 20px; height: 20px; font-size: 10px; }
.avatar-echo { background: #d2b8ff; color: #5820a5; }
.avatar-you { background: #ffcf37; color: #39301a; }
.present-button { width: 27px; margin-right: 3px; }
.present-button svg { width: 19px; height: 19px; }
.share-button { min-width: 50px; height: 30px; padding: 0 11px; color: #fff; background: var(--ui-blue); border-radius: 6px; font-weight: 500; }
.share-button:hover { background: #0087e9; }
.properties-tabs { display: flex; align-items: center; gap: 5px; padding: 0 10px 10px; }
.property-tab { height: 28px; border-radius: 5px; padding: 0 8px; color: #888; font-size: 11px; }
.property-tab.is-active { color: #1e1e1e; background: #f5f5f5; font-weight: 600; }
.property-tab:hover { background: #f5f5f5; }
.zoom-control { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: auto; padding: 0 3px; }
.zoom-control svg { width: 13px; height: 13px; }
.property-section { padding: 12px 14px 15px; border-bottom: 1px solid var(--ui-border); }
.property-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 24px; margin-bottom: 9px; }
.property-heading h2 { margin: 0; font-size: 11px; font-weight: 600; }
.property-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.property-field { display: flex; align-items: center; gap: 8px; min-width: 0; height: 28px; background: #f5f5f5; border: 1px solid transparent; border-radius: 5px; padding: 0 8px; }
.property-field > span:first-child { flex-shrink: 0; color: #888; min-width: 9px; font-size: 10px; }
.property-field > svg { width: 13px; height: 13px; color: #888; }
.property-field:focus-within { border-color: var(--ui-blue); background: #fff; }
.property-field input { height: 24px; font-size: 11px; outline: none; }
.property-field:has(input:disabled) { opacity: .5; }
.field-suffix { color: #999; margin-left: auto; }
.name-field { display: block; }
.name-field input { height: 27px; padding: 0 6px; margin-left: -6px; border: 1px solid transparent; border-radius: 4px; color: #666; }
.name-field input:focus { border-color: var(--ui-blue); }
.alignment-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 2px; margin-bottom: 12px; }
.alignment-row button { height: 27px; background: #f5f5f5; border-radius: 4px; color: #555; }
.alignment-row button:hover { background: #eaeaea; }
.alignment-row svg { width: 15px; height: 15px; }
.color-row { display: flex; align-items: center; gap: 8px; height: 28px; font-size: 11px; }
.color-swatch { width: 22px; height: 22px; border: 1px solid #00000015; border-radius: 3px; flex-shrink: 0; }
.page-swatch { background: #f5f5f5; }
.shape-swatch { background: #d9d9d9; }
.fill-picker { appearance: none; width: 22px; height: 22px; flex: 0 0 22px; padding: 0; border: 1px solid #0002; border-radius: 3px; cursor: pointer; background: none; }
.fill-picker::-webkit-color-swatch-wrapper { padding: 0; }
.fill-picker::-webkit-color-swatch { border: 0; border-radius: 2px; }
.fill-hex { width: 72px; height: 26px; padding: 0 4px; font-size: 11px; border: 1px solid transparent; border-radius: 4px; text-transform: uppercase; }
.fill-hex:focus { outline: none; border-color: var(--ui-blue); }
.fill-picker:disabled, .fill-hex:disabled { opacity: .55; cursor: default; }
.clip-content-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; cursor: pointer; }
.clip-content-row input { width: 13px; height: 13px; accent-color: #0d99ff; }
.layer-row.is-child .layer-select { padding-left: 23px; }
.layer-row.is-child .layer-icon { opacity: .85; }
.frame-menu { left: 62px; }
.property-field:has(input[readonly]) { color: #999; }
.color-opacity { margin-left: auto; color: #888; padding-right: 4px; font-size: 10px; }
.color-row > svg { width: 13px; height: 13px; color: #777; }
.empty-styles { font-size: 11px; color: #999; margin: 1px 0 0; }
.selection-guidance { text-align: center; font-size: 11px; line-height: 1.6; color: #aaa; margin: 34px 12px; }
.compact-section { padding-top: 8px; padding-bottom: 8px; }
.compact-section .property-heading { margin: 0; }
#prop-lock.is-active, #prop-lock.locked, #prop-lock[aria-pressed="true"] { background: var(--ui-blue-soft); color: var(--ui-blue-text); }
.readonly-field { cursor: default; }

.status-toast { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: max-content; max-width: min(520px,calc(100% - 32px)); padding: 10px 14px; background: #2c2c2c; color: #fff; border-radius: 7px; font-size: 11px; line-height: 1.5; box-shadow: 0 3px 12px #00000026; z-index: 30; text-align: center; pointer-events: none; }
.file-browser { position: fixed; inset: 0; display: grid; grid-template-columns: 224px minmax(0,1fr); background: #fff; z-index: 80; }
.browser-sidebar { display: flex; flex-direction: column; background: #f9f9f9; border-right: 1px solid #e7e7e7; padding: 15px 12px; min-width: 0; }
.browser-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 21px; font-weight: 600; font-size: 13px; }
.browser-brand > button { justify-content: flex-start; gap: 8px; border-radius: var(--control-radius); padding: 4px; margin: -4px; }
.browser-brand > button:hover { background: #eee; }
.browser-brand > button > svg { width: 20px; height: 24px; }
.browser-brand .avatar { margin-left: auto; }
.browser-search { display: flex; align-items: center; gap: 8px; color: #888; border: 1px solid #ddd; border-radius: 6px; height: 30px; padding: 0 8px; margin-bottom: 16px; }
.browser-search > svg { width: 13px; height: 13px; }
.browser-search kbd { margin-left: auto; font-size: 9px; }
.browser-navigation { display: grid; gap: 3px; }
.browser-navigation button, .browser-trash { width: 100%; justify-content: flex-start; gap: 10px; height: 34px; padding: 0 10px; border-radius: 6px; font-size: 11px; }
.browser-navigation button:hover, .browser-trash:hover { background: #eee; }
.browser-navigation button.is-active, .browser-navigation button[aria-current="page"] { background: #e5e5e5; font-weight: 500; }
.browser-navigation svg, .browser-trash svg { width: 15px; height: 15px; }
.browser-team-label { color: #888; font-size: 10px; padding: 26px 10px 12px; }
.browser-workspace { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 11px; }
.workspace-symbol { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #e1ddf0; color: #786293; border-radius: 5px; font-size: 11px; font-weight: 600; }
.browser-trash { margin-top: auto; color: #777; }
.browser-main { overflow-y: auto; min-width: 0; padding: 26px 36px 36px; }
.browser-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.browser-header h1 { font-size: 22px; letter-spacing: -.4px; font-weight: 600; margin: 0; }
.browser-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.browser-count { color: #777; font-size: 11px; white-space: nowrap; }
.browser-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 29px 0 16px; }
.browser-toolbar > span { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.browser-toolbar svg { width: 13px; height: 13px; }
.browser-sort { color: #888; }
.browser-sort > svg:last-child { margin-left: 18px; width: 16px; height: 16px; }
.file-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 22px; }
.file-card { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; text-align: left; border: 1px solid #e6e6e6; border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.file-card:hover { border-color: #b4dfff; box-shadow: 0 3px 12px #00000008; }
.file-card.playable-file:hover { border-color: var(--ui-blue); }
.file-thumbnail { height: 180px; background: #f1f1f1; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.file-state-badge { position: absolute; top: 10px; left: 10px; font-size: 9px; line-height: 20px; height: 20px; padding: 0 7px; background: #ffffffed; color: #888; border: 1px solid #e7e7e7; border-radius: 4px; }
.playable-file .file-state-badge { color: var(--ui-blue-text); border-color: #c9e8ff; background: #f0f9ff; }
.file-card-info { display: flex; gap: 8px; align-items: center; padding: 14px 13px; min-width: 0; }
.file-card-info > svg { width: 18px; height: 18px; color: var(--ui-blue-text); }
.file-card-info > div { min-width: 0; }
.file-card-info strong { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card-info > div > span { display: block; color: #999; margin-top: 5px; font-size: 10px; }
.file-open-arrow { margin-left: auto; color: #999; font-size: 16px; }
.browser-footnote { font-size: 11px; color: #777; line-height: 18px; margin: 24px 0 0; }
.browser-empty { display: flex; flex-direction: column; align-items: center; padding: 64px 24px; border: 1px solid var(--ui-border); border-radius: var(--dialog-radius); text-align: center; }
.browser-empty > svg { width: 24px; height: 24px; margin-bottom: 16px; color: #777; }
.browser-empty h2 { margin: 0 0 8px; font-size: 16px; line-height: 24px; font-weight: 600; }
.browser-empty p { margin: 0; color: var(--dialog-copy); font-size: 13px; line-height: 20px; }
.browser-empty > button { margin-top: 24px; }
.mini-artboard { position: relative; width: 72%; height: 60%; border: 1px solid #e8e8e8; background: #fff; box-shadow: 0 2px 6px #00000004; }
.mini-tank { position: absolute; width: 22px; height: 30px; top: 36%; left: 14%; background: #9c90b6; border: 3px solid #70657f; border-radius: 3px; }
.mini-tank::after { content: ""; position: absolute; width: 16px; height: 4px; background: #70657f; top: 10px; left: 8px; }
.mini-tank span { position: absolute; width: 11px; height: 12px; left: 3px; top: 6px; background: #b9aed0; border-radius: 3px; }
.mini-barrier { position: absolute; left: 9%; top: 23%; width: 41px; height: 54px; border: 2px solid #4ca6ef; }
.mini-design { position: absolute; right: 10%; top: 18%; width: 41%; height: 66%; border: 1px solid #c1d6ef; background: #f7faff; padding: 8px; }
.mini-design i, .mini-design b, .mini-design em { display: block; background: #cedff3; margin-bottom: 5px; height: 4px; }
.mini-design b { height: 22px; background: #e1ebf8; }
.mini-design em { width: 60%; background: #a1c5ed; }
.mini-cursor { position: absolute; left: 45%; top: 22%; width: 0; height: 0; border-left: 7px solid #af79da; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transform: rotate(-35deg); }
.mini-sheet { position: absolute; width: 56px; height: 73px; border: 1px solid #c6bcdf; background: #f7f3ff; box-shadow: 0 1px 3px #00000005; }
.sheet-one { transform: translate(-29px,-14px); }.sheet-two { transform: translate(0,0); }.sheet-three { transform: translate(29px,14px); }
.mini-sheet::after { content: ""; display: block; width: 30px; height: 4px; background: #ddd4ef; margin: 16px auto; box-shadow: 0 12px #e6def2, 0 24px #e6def2; }
.thumbnail-duplicate { background: #f2f0f5; }
.thumbnail-layout { background: #f0f2f3; }
.layout-mini { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; width: 74%; height: 74px; border: 1px solid #c3ccd3; background: #fff; }
.layout-mini i { width: 16px; height: 42px; background: #d1dbe3; }.layout-mini i:nth-child(2n) { height: 26px; }
.thumbnail-fixed { background: #f4f2ed; }
.fixed-mini { display: grid; grid-template-columns: repeat(2,37px); gap: 8px; transform: rotate(-7deg); padding: 13px; border: 1px solid #d8cdbb; background: #fff; }
.fixed-mini span { height: 26px; background: #e4d8c3; }.fixed-mini span:nth-child(3) { transform: rotate(15deg) translate(-8px,4px); background: #bba987; }
.thumbnail-optimize { background: #edf2f0; }
.optimize-mini { display: grid; gap: 8px; width: 55%; padding: 15px; border: 1px solid #c2d2ca; background: #fff; }
.optimize-mini i { width: 100%; height: 7px; background: #c3d6cc; }.optimize-mini i:nth-child(2) { width: 80%; }.optimize-mini i:nth-child(3) { width: 55%; }.optimize-mini i:nth-child(4) { width: 31%; }
.thumbnail-final { background: #f3f1ed; }
.final-mini { position: relative; width: 65%; height: 105px; background: #fff; border: 1px solid #ded9d1; padding: 13px; }
.final-mini > span { font-size: 18px; letter-spacing: -1px; color: #b2a998; font-weight: 600; }
.final-mini > div { height: 5px; width: 83%; margin-top: 8px; background: #ebe7e0; }.final-mini > div:nth-of-type(2) { width: 56%; }
.final-mini i { position: absolute; right: 14px; bottom: 13px; width: 16px; height: 16px; border: 1px solid #d2c5ae; border-radius: 50%; }

.modal-backdrop { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; background: #00000025; backdrop-filter: blur(2px); }
.help-card { max-height: 100%; }
.shortcut-list { padding: 0; margin: var(--dialog-section-gap) 0; }
.shortcut-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; padding: 8px 0; border-bottom: 1px solid var(--ui-border); font-size: 12px; line-height: 18px; }
.shortcut-list dt { color: var(--ui-text); }
.shortcut-list dd { margin: 0; text-align: right; font-size: 12px; line-height: 18px; color: #777; }
.help-note { display: flex; gap: 12px; padding: 16px; background: var(--ui-hover); border-radius: var(--menu-radius); margin: var(--dialog-section-gap) 0 16px; }
.help-note svg { color: #777; margin-top: 2px; }
.editor-dialog .help-footnote { font-size: 12px; line-height: 18px; }

@media (min-width: 1500px) {
  :root { --left-width: 248px; --right-width: 280px; }
  .file-grid { gap: 28px; }
  .file-thumbnail { height: 218px; }
}
@media (max-height: 720px) {
  .floating-toolbar { bottom: 14px; }
  .rail-button { min-height: 57px; }
}
@media (max-width: 1150px) and (min-width: 901px) {
  :root { --left-width: 205px; --right-width: 240px; }
  .floating-toolbar { gap: 1px; }
  .tool-button { width: 30px; }
  .tool-chevron { width: 12px; }
  .mode-button { width: 25px; }
  .properties-tabs { gap: 2px; }
  .property-tab { padding: 0 6px; }
  .file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  #editor-app { grid-template-columns: 56px minmax(0,1fr); }
  .left-sidebar, .right-sidebar { display: none; }
  .desktop-note { display: flex; }
  .status-toast { top: 68px; }
  .scene-overlay { padding-top: 82px; }
  .file-browser { grid-template-columns: 168px minmax(0,1fr); }
  .browser-main { padding: 24px; }
  .file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .file-thumbnail { height: 155px; }
}
@media (max-width: 580px) {
  :root { --rail-width: 48px; }
  #editor-app { grid-template-columns: 48px minmax(0,1fr); }
  .rail-button { font-size: 9px; min-height: 58px; }
  .rail-icon { width: 30px; height: 30px; }
  .rail-bottom { gap: 12px; }
  .floating-toolbar { max-width: calc(100% - 20px); bottom: 13px; gap: 5px; padding: 5px; height: 48px; }
  .floating-toolbar .optional-tool, .mode-switcher { display: none; }
  .tool-button { width: 35px; height: 35px; }
  .tool-chevron { width: 15px; }
  .shape-menu { left: -30px; }
  .actions-menu { right: -7px; min-width: 206px; }
  .scene-overlay { padding: 78px 12px 82px; align-items: center; }
  .editor-dialog { --dialog-padding: 16px; }
  .dialog-header { padding-block: 12px; }
  .dialog-footer { padding-block: 12px; }
  .result-stats { gap: 8px; }
  .result-stats dd { font-size: 16px; }
  .modal-backdrop { padding: 16px; }
  .file-browser { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
  .browser-sidebar { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--ui-border); }
  .browser-brand { padding: 0; }
  .browser-brand > .avatar, .browser-search, .browser-team-label, .browser-workspace, .browser-trash, .browser-navigation button[data-unavailable] { display: none; }
  .browser-navigation { display: flex; margin-left: auto; gap: 4px; }
  .browser-navigation button { width: auto; gap: 6px; padding: 0 8px; }
  .browser-main { height: auto; padding: 20px 16px; }
  .browser-header { align-items: flex-start; gap: 12px; }
  .browser-header-actions { gap: 8px; }
  .browser-empty { padding: 40px 16px; }
  .browser-header h1 { font-size: 20px; }
  .browser-toolbar { padding-top: 20px; }
  .file-grid { grid-template-columns: 1fr; gap: 17px; }
  .file-thumbnail { height: 160px; }
  .browser-footnote { line-height: 1.6; }
  .shortcut-list > div { gap: 8px; }
  .status-toast { top: 76px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }

/* Attempt records sit with file metadata, clear of the canvas tools. */
.run-summary { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--ui-border); }
.run-clock { display: flex; align-items: center; gap: 7px; color: #454545; }
.run-clock svg { width: 14px; height: 14px; color: #888; }
.run-clock time { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .25px; }
.run-clock > span { margin-left: auto; color: #888; font-size: 11px; }
.run-details { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; color: #808080; font-size: 10px; font-variant-numeric: tabular-nums; }
.file-records { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 13px; padding: 12px 0 10px; border-top: 1px solid #f0f0f0; }
.file-records dt { color: #888; font-size: 10px; }
.file-records dd { margin: 5px 0 0; color: #333; font-size: 15px; font-variant-numeric: tabular-nums; }
.file-last { margin: 0 13px 13px; color: #888; font-size: 10px; }
.file-previous { margin: 0 13px 13px; padding-top: 8px; border-top: 1px solid var(--ui-border); color: #888; font-size: 10px; line-height: 15px; }
.file-card { justify-content: flex-start; }
.file-card:disabled { cursor: default; opacity: 1; }

/* Campaign controls preserve the editor's visual language. */
.toolbar-grip { width: 13px; height: 34px; flex-shrink: 0; cursor: grab; color: #b5b5b5; touch-action: none; }
.toolbar-grip:active { cursor: grabbing; }
.toolbar-grip svg { width: 12px; height: 24px; }
.floating-toolbar.is-carried { box-shadow: 0 5px 18px #9747ff27, 0 1px 5px #0002; border-color: #c6a7ee; }
.tool-button.control-cut, .menu-item.control-cut { visibility: hidden; pointer-events: none; }
.shape-tool-pair:has(.control-cut) { background: repeating-linear-gradient(135deg,#fff 0 5px,#f9ecee 5px 7px); border-radius: 6px; outline: 1px dashed #cf8c98; }
.tool-interrupted { background: #fff0ed; color: #a55648; }
.live-collaboration { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ui-border); }
.collaboration-heading { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 16px; }
.collaboration-heading > svg { width: 14px; height: 14px; color: var(--ui-purple); }
.collaboration-heading strong { font-weight: 500; }
.collaboration-heading > span { margin-left: auto; color: #777; font-size: 10px; }
.live-command { margin: 8px 0 0; padding: 9px 10px; min-height: 48px; border-radius: 7px; background: #f5f1fa; color: #5d4773; font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.live-command.is-typing::after, .agent-command.is-typing p::after { content: ''; display: inline-block; width: 1px; height: 12px; margin-left: 3px; vertical-align: -2px; background: currentColor; animation: typing-caret .75s steps(1) infinite; }
@keyframes typing-caret { 50% { opacity: 0; } }
.battle-summary { color: #777; font-size: 10px; line-height: 15px; margin: 7px 0 0; }
.sabotage-status { display: grid; gap: 4px; margin-top: 8px; font-size: 10px; line-height: 15px; }
.sabotage-status > span { display: block; padding-left: 7px; border-left: 2px solid #d49a56; color: #875d2e; }
.sabotage-status > .effect-permanent { border-color: #cf7c83; color: #98636a; }
.agent-command-log { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; flex: 1 1 auto; min-height: 80px; padding: 0 3px 14px; overscroll-behavior: contain; }
.agent-conversation { flex: 0 0 auto; padding-top: 14px; }
.agent-command { flex: 0 0 auto; }
.agent-command-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; line-height: 16px; color: #888; }
.agent-command-meta > span:first-child { color: #555; font-weight: 500; }
.agent-command p { margin: 5px 0 0; padding: 9px 10px; border-radius: 7px; background: #f4f4f4; color: #464646; font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.agent-command.is-typing p { background: #f5f1fa; color: #71528d; }
.floating-toolbar.shortcuts-off kbd { opacity: .35; text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .live-command.is-typing::after, .agent-command.is-typing p::after { animation: none; } }
.layer-disclosure { width: 15px; height: 27px; flex: 0 0 15px; color: #777; font-size: 15px; }
.layer-group { display: flex; align-items: center; min-height: 30px; padding: 0 8px; font-weight: 500; }
.layer-group > button:last-child { display: flex; flex: 1; justify-content: space-between; text-align: left; min-height: 30px; }
.layer-group span { color: #999; font-weight: 400; }
.action-search-field { position: sticky; top: 0; z-index: 1; display: flex; gap: 8px; align-items: center; min-height: 40px; padding: 4px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--ui-border); background: var(--ui-bg); }
.action-search-field input { font-size: 12px; line-height: 18px; height: 28px; }
.action-search-field svg { color: #777; }
.action-search-field kbd { white-space: nowrap; color: #777; font-size: 11px; }
.actions-menu { min-width: 290px; max-height: min(480px,calc(100dvh - 160px)); overflow-y: auto; overscroll-behavior: contain; }
.action-results { max-height: 256px; overflow-y: auto; overscroll-behavior: contain; }
.action-results button { display: flex; width: 100%; min-height: 32px; align-items: center; justify-content: space-between; text-align: left; gap: 12px; padding: 6px 8px; border-radius: 4px; font-size: 12px; line-height: 18px; }
.action-results button:hover, .action-results button.is-key-selected { background: var(--ui-blue-soft); }
.action-results kbd { color: #777; font-size: 11px; white-space: nowrap; }
.action-empty { padding: 12px 8px; color: #777; font-size: 12px; line-height: 18px; }
.playtest-toggle { display: flex; align-items: center; gap: 7px; color: #777; font-size: 11px; cursor: pointer; }
.playtest-toggle input { appearance: auto; width: 13px; height: 13px; accent-color: #0d99ff; }
.campaign-thumbnail { width: min(100%,260px); height: 140px; }
.file-card.is-locked .campaign-thumbnail { opacity: .6; }
.file-card.is-locked .file-state-badge { background: #fff; color: #858585; }
.file-card .file-last { min-height: 14px; }
.collaborator-activity { margin-top: 12px; padding: 10px; border: 1px solid #e5d6f5; border-radius: var(--control-radius); background: #faf7fd; }
.collaborator-activity > div { display: flex; align-items: flex-start; gap: 6px; color: #76559b; }
.collaborator-activity svg { width: 14px; height: 14px; flex: 0 0 14px; }
.collaborator-activity strong { font-size: 10px; line-height: 15px; font-weight: 500; }
.collaborator-activity p { margin: 6px 0 8px; color: #797080; font-size: 10px; line-height: 15px; overflow-wrap: anywhere; }
.activity-track { display: block; height: 2px; overflow: hidden; background: #e9ddf6; }
.activity-track > span { display: block; height: 100%; background: #9470be; transform-origin: left; }
.layer-row.is-targeted { box-shadow: inset 2px 0 #d37779; background: #fff2f1; }
.layer-row.is-targeted .layer-meta { color: #b45259; }
.generated-group { color: #8b659f; }
.recovery-overlay { background: rgba(245,245,245,.38); backdrop-filter: none; }
.recovery-source { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 18px; color: #777; }
.recovery-source svg { width: 16px; height: 16px; color: #9770b8; }
.recovery-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: var(--control-radius); background: var(--ui-hover); color: #777; font-size: 11px; line-height: 16px; }
.recovery-note svg { width: 14px; height: 14px; flex: 0 0 14px; }
.recovery-card .dialog-footer { flex-wrap: wrap; }
.recovery-card .primary-button kbd { margin-left: 12px; color: #d9efff; font-size: 11px; }
.inspector-obstruction { padding: 28px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--ui-border); }
.inspector-obstruction .folded-panel-icon { width: 28px; height: 28px; color: #9670b8; }
.inspector-obstruction h2 { margin: 0; font-size: 13px; line-height: 20px; font-weight: 500; }
.inspector-obstruction p { margin: 0; font-size: 11px; line-height: 17px; color: #777; }
.inspector-obstruction > span { color: #999; font-size: 10px; font-variant-numeric: tabular-nums; }
.right-sidebar.inspector-folded > #selection-empty, .right-sidebar.inspector-folded > #selection-properties { display: none; }
.properties-header.is-targeted { box-shadow: inset 0 -2px #9d72bf; background: #faf7fd; }
.file-card:disabled:hover { border-color: #e6e6e6; box-shadow: none; }
.storage-note { margin-top: 8px; }
