.character-daevanion { --daev-bg: #091923; --daev-line: #25414c; --daev-active: #81d7cb; --daev-gold: #d4ba83; --daev-muted: #91a9b1; }
.daev-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.daev-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 7px; }
.daev-board-tab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 58px; padding: 12px; color: var(--daev-muted); border: 1px solid transparent; border-radius: 5px; background: transparent; text-align: left; }
.daev-board-tab strong { font-size: 13px; overflow-wrap: anywhere; }
.daev-board-tab small { white-space: nowrap; font-size: 10px; font-variant-numeric: tabular-nums; }
.daev-board-tab[aria-selected="true"] { color: #edf9f7; border-color: var(--daev-line); background: #12303a; box-shadow: inset 3px 0 var(--daev-active); }
.daev-workspace { min-width: 0; }
.daev-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.daev-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.daev-filters button, .daev-zoom button, .daev-retry { color: #b5c8ce; border: 1px solid var(--daev-line, #25414c); background: transparent; padding: 7px 10px; border-radius: 5px; font: inherit; font-size: 11px; }
.daev-filters button[aria-pressed="true"] { color: #e4f7f3; background: #21444b; border-color: #5c918e; }
.daev-columns { display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 18px; align-items: stretch; }
.daev-stage { min-width: 0; padding: 16px 12px 12px; border: 1px solid var(--daev-line, #25414c); border-radius: 7px; background: #081720; }
.daev-viewport { position: relative; overflow: clip; overscroll-behavior: contain; width: 100%; height: clamp(360px, 78svh, 760px); touch-action: none; user-select: none; cursor: grab; }
.daev-viewport.is-dragging, .daev-viewport.is-dragging .daev-node { cursor: grabbing; }
.daev-grid { position: absolute; inset: 0 auto auto 0; display: grid; grid-template-columns: repeat(var(--daev-cols), 44px); grid-template-rows: repeat(var(--daev-rows), 44px); gap: 6px; width: max-content; padding: 8px; box-sizing: border-box; transform-origin: 0 0; }
.daev-node { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; padding: 3px; border: 1px solid #3b505b; border-radius: 3px; background: #182630; color: #879ba3; }
.daev-node > svg { width: 72%; height: 72%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.daev-node.is-active { color: #a6e7d9; background: #16473f; border-color: #61a08d; }
.daev-node.type-skill { border-radius: 50%; }
.daev-node.type-skill.is-active { color: #f0d69b; background: #5b482d; border-color: #c7a063; }
.daev-node.type-start { color: #cfdddf; background: transparent; border-color: transparent; }
.daev-node > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; }
.daev-node.is-inactive > img { opacity: .45; filter: grayscale(1); }
.daev-node.has-frame { border: 0; border-radius: 3px; padding: 0; background: transparent; }
.daev-node.has-frame > .daev-frame { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; filter: none; object-fit: contain; }
.daev-node.has-frame > .daev-skill-image { position: absolute; width: 66%; height: 66%; inset: 17%; border-radius: 2px; }
.daev-node.has-frame > .daev-start-image { position: absolute; width: 62%; height: 62%; inset: 19%; object-fit: contain; opacity: 1; filter: none; }
.daev-node[aria-pressed="true"] { outline: 2px solid #fff0c7; outline-offset: 2px; z-index: 1; }
.daev-grid .daev-node.is-dimmed { opacity: .18; }
.daev-grid .daev-node:hover, .daev-grid .daev-node:focus-visible { opacity: 1; }
.daev-tooltip { position: fixed; inset: auto; z-index: 1000; margin: 0; box-sizing: border-box; width: max-content; max-width: min(300px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 14px 16px; border: 1px solid #587681; border-radius: 7px; background: #10232d; color: #e6eff2; box-shadow: 0 8px 28px #0009; pointer-events: none; text-align: left; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.daev-tooltip[hidden] { display: none; }
.daev-tooltip::backdrop { background: transparent; pointer-events: none; }
.daev-tooltip-title { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.daev-tooltip-title strong { color: #fff1cf; font-size: 14px; }
.daev-tooltip-icon { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; flex: none; }
.daev-tooltip p { margin: 9px 0 0; color: #e6eff2; }
.daev-finder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 0 3px 15px; }
.daev-finder input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid #36505c; border-radius: 0; background: transparent; color: #e1eeef; padding: 8px 2px; font: inherit; font-size: 12px; outline-offset: 3px; }
.daev-finder input::placeholder { color: #91a9b1; }
.daev-search-count { color: #a7c7cc; font-size: 10px; }
.daev-zoom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--daev-muted); font-size: 11px; }
.daev-zoom output { min-width: 40px; font-variant-numeric: tabular-nums; text-align: center; }
.daev-gesture-hint { flex-basis: 100%; text-align: center; margin: 3px 0 0; line-height: 1.5; }
.daev-inspector { display: flex; flex-direction: column; min-width: 0; min-height: 0; contain: size; }
.daev-selection { padding: 14px 16px; border-left: 2px solid var(--daev-gold); background: #142630; min-height: 130px; }
.daev-selection small { color: #9ab1bb; font-size: 10px; }
.daev-selection h5 { margin: 7px 0; font-size: 16px; line-height: 1.4; color: #f1eee4; }
.daev-selection-title { display: flex; align-items: center; gap: 9px; margin: 5px 0; }
.daev-selection-title .daev-selection-icon { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; flex: none; }
.daev-node-status { font-size: 10px; color: #a9b4bc; }
.daev-node-status.is-active { color: #9cdebf; }
.daev-selection-effects p { font-size: 12px; line-height: 1.5; margin: 9px 0 0; color: #d7e6e9; }
.daev-effects-title { margin: 20px 0 10px; color: #dae9ec; font-size: 12px; }
.daev-effects { flex: 1; height: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #43656f transparent; }
.daev-effects h6 { font-size: 10px; color: #8ea6b2; margin: 14px 0 5px; }
.daev-effects h6:first-child { margin-top: 0; }
.daev-effect { display: flex; align-items: baseline; justify-content: space-between; width: 100%; text-align: left; gap: 8px; padding: 8px 0; border: 0; border-bottom: 1px solid #1b343f; background: transparent; color: #c6d8dd; font-size: 12px; line-height: 1.4; }
.daev-effect span { overflow-wrap: anywhere; }
.daev-effect .daev-effect-icon { width: 30px; height: 30px; flex: none; object-fit: cover; border-radius: 4px; align-self: center; }
.daev-effect-label { flex: 1; min-width: 0; }
.daev-effect-label small { display: block; color: #91a9b1; margin-top: 3px; font-size: 9px; font-variant-numeric: tabular-nums; }
.daev-effect[hidden] { display: none; }
.daev-effect strong { color: #9ad9cb; white-space: nowrap; font-variant-numeric: tabular-nums; }
.daev-effect:hover { background: #13323b; }
.daev-empty { padding: 32px 18px; text-align: center; color: #a5bcc5; font-size: 13px; }
.daev-source { color: #8ca4ae; font-size: 10px; margin: 16px 0 0; }
.character-daevanion button { cursor: pointer; }
.character-daevanion button:focus-visible { outline: 2px solid #f7dfac; outline-offset: 3px; }
@media (max-width: 1150px) {
  .daev-columns { grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; }
  .daev-stage { padding: 10px 7px; }
}
@media (max-width: 1000px) {
  .daev-columns { grid-template-columns: minmax(0, 1fr); }
  .daev-inspector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; contain: none; }
  .daev-selection { grid-row: 1 / 3; align-self: start; }
  .daev-effects-title { margin-top: 0; }
  .daev-effects { height: auto; overflow: visible; padding-right: 0; }
}
@media (max-width: 850px) {
  .daev-board-tab { min-height: 52px; padding: 9px 10px; }
}
@media (max-width: 620px) {
  .daev-inspector { display: grid; grid-template-columns: minmax(0, 1fr); }
  .daev-selection { min-height: 0; grid-row: auto; }
  .daev-effects-title { margin-top: 20px; }
  .daev-boards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daev-board-tab { flex-direction: column; align-items: flex-start; gap: 3px; }
  .daev-board-tab strong { font-size: 11px; }
}
