/* ==========================================================================
   Tactic Board (Timeline)
   ========================================================================== */
.tactic-board-section {
    margin-top: 40px;
}

.tactic-table-container {
    overflow-x: auto;
    max-height: none;
}

.tactic-table {
    width: 100%;
    border-collapse: separate;
    /* Changed from collapse to allow spacing if needed */
    border-spacing: 0;
    min-width: 800px;
    background: var(--card-background);
    table-layout: fixed;
    /* Enforce equal widths */
}

/* Stabilize table layout during drag operations */
.tactic-table-container.is-dragging .tactic-table {
    table-layout: fixed;
    width: 100%;
}

.tactic-table-container.is-dragging .tactic-cell {
    min-width: 150px;
    width: auto;
}

.tactic-table-container.is-dragging .col-turn {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
}

/* Lock column widths during drag */
.tactic-table-container.is-dragging .col-character {
    width: calc((100% - 48px) / var(--party-count, 5));
}

.tactic-table th,
.tactic-table td {
    padding: 12px 8px;
    vertical-align: top;
    /* Align top for better look with different content heights */
    box-sizing: border-box;
}

.tactic-table th {
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Vertical separator */
}

/* Hide header row - character headers are now in each cell */
.tactic-table thead {
    display: none;
}

.tactic-table th:last-child {
    border-right: none;
}

.col-character {
    width: auto;
    /* Will take equal remaining space */
}

.header-char {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-char-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.header-char-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Cell Character Header - replaces sticky header */
.cell-char-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    margin: -12px -8px 8px -8px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.cell-char-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.cell-char-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Auto-action prompt in cell header */
.auto-action-prompt {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.auto-action-prompt .prompt-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.auto-action-prompt .prompt-buttons {
    display: flex;
    gap: 4px;
}

.auto-action-prompt .btn-prompt-yes,
.auto-action-prompt .btn-prompt-no {
    padding: 2px 8px;
    font-size: 0.65rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auto-action-prompt .btn-prompt-yes {
    background: var(--accent-color, #8b5cf6);
    color: #fff;
}

.auto-action-prompt .btn-prompt-yes:hover {
    background: var(--accent-hover, #7c3aed);
}

.auto-action-prompt .btn-prompt-no {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.auto-action-prompt .btn-prompt-no:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.col-turn {
    width: 48px;
    /* Fixed width for turn column */
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.turn-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.turn-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #eee;
}

.btn-remove-turn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
}

.btn-remove-turn:hover {
    opacity: 1;
    color: #ff6b6b;
}

/* Separator between turns - only for data cells */
td.tactic-cell {
    background: rgba(0, 0, 0, 0.2);
    min-height: 100px;
    height: auto;
    /* Allow growth */
    transition: background 0.2s;
    border-bottom: 3px solid rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Vertical separator */
}

td.tactic-cell:last-child {
    border-right: none;
}

td.col-turn {
    border-bottom: 3px solid rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Vertical separator */
}

.tactic-cell:hover {
    background: rgba(255, 255, 255, 0.03);
}

.col-turn .btn-remove-turn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.col-turn:hover .btn-remove-turn {
    opacity: 1;
    pointer-events: auto;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 8px;
}

/* Hide controls in non-edit mode */
body:not(.tactic-edit-mode) .btn-add-turn,
body:not(.tactic-edit-mode) .btn-add-action,
body:not(.tactic-edit-mode) .btn-remove-turn,
body:not(.tactic-edit-mode) .btn-duplicate-turn,
body:not(.tactic-edit-mode) .turn-actions,
body:not(.tactic-edit-mode) .turn-drag-handle,
body:not(.tactic-edit-mode) .action-drag-handle,
body:not(.tactic-edit-mode) .action-actions {
    display: none !important;
    pointer-events: none !important;
}

/* Disable dragging and hover effects in non-edit mode */
body:not(.tactic-edit-mode) .action-item {
    cursor: default;
}

body:not(.tactic-edit-mode) .action-item:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body:not(.tactic-edit-mode) .turn-row {
    cursor: default;
}

/* Hide Wonder Persona Name */
.wonder-persona-display .action-persona-name {
    display: none !important;
}

.wonder-persona-display .action-persona-icon {
    margin-bottom: 0 !important;
}

.action-item {
    padding: 3px 10px 3px 4px;
    background: #222;
    /* background: linear-gradient(135deg, rgba(40, 40, 40, 0.9), rgba(30, 30, 30, 0.95));*/
    border: 0px solid rgba(255, 255, 255, 0.15);
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
}

.action-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--actor-color-tint, transparent);
    opacity: 1;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.action-item>* {
    position: relative;
    z-index: 1;
}

.action-main-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.action-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover Menu (Tooltip Style) */
.action-actions {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s, transform 0.1s;
    z-index: 1000;

    /* Box Styling - compact */
    padding: 3px 4px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.tactic-edit-mode .action-item:hover .action-actions {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

/* Important: Elevate hovered item so tooltip blocks neighbor's hover */
.action-item:hover {
    z-index: 2000;
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: var(--actor-color-border, var(--accent-color));
}

/* Invisible bridge for hover continuity */
.action-actions::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
}

/* Revert padding changes */
.tactic-edit-mode .action-item {
    padding-right: 10px;
    /* or unset/default */
}

/* Custom Dropdown Styles */
.custom-select-container {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.custom-select-trigger {
    width: 100%;
    padding: 0px 2px;
    background: rgba(0, 0, 0, 0);
    border: 0px solid rgba(255, 255, 255, 0.2);
    border-radius: 0px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 4px;
    height: 24px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.custom-select-trigger.active {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.6);
}

.custom-select-val {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.custom-select-icon {
    width: 16px;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.custom-select-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.15s;
}

/* Hide arrows by default in action items, show on hover */
.tactic-edit-mode .action-item .custom-select-arrow {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.tactic-edit-mode .action-item:hover .custom-select-arrow {
    opacity: 0.5;
    width: 12px;
}

.custom-select-options.show~.custom-select-trigger .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 220px;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    display: none;
    max-height: 240px;
    overflow-y: auto;
}

.custom-select-options.show {
    display: block;
}

.custom-option {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.custom-option.selected {
    background: rgba(209, 31, 31, 0.2);
    color: #fff;
}

.custom-option-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
}

.action-icon-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s ease;
}

.action-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

/* Active state for memo toggle button */
.action-icon-btn.active {
    border-color: rgba(78, 205, 196, 0.5);
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.action-icon-btn.active:hover {
    border-color: rgba(78, 205, 196, 0.7);
    background: rgba(78, 205, 196, 0.3);
}

.action-item.auto {
    border-left: 3px solid #4ecdc4;
}

.action-item.manual {
    border-left: 3px solid #ff6b6b;
}

.action-persona-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-bottom: 4px;
    object-fit: cover;
}

.action-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

.action-actor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-actor-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

.action-actor-name {
    font-size: 13px;
    font-weight: 500;
    opacity: 1;
    color: #fff;
}

/* Styled Non-Edit View */
/* Non-Edit View: Keep same look, remove interaction (but keep hover effect) */
body:not(.tactic-edit-mode) .custom-select-arrow {
    display: none !important;
}

body:not(.tactic-edit-mode) .custom-select-trigger {
    cursor: default;
    border-color: transparent;
    /* Optional: if we want to hide border unless hovered usually? */
}

/* Non-edit mode: allow tooltip hover on action dropdown skill descriptions */
body:not(.tactic-edit-mode) .action-dropdown .custom-select-val[data-tooltip] {
    cursor: help;
    pointer-events: auto;
}

/* Force Hide Wonder Persona Name - Global */
.action-item .wonder-persona-display .action-persona-name,
.wonder-persona-display .action-persona-name {
    display: none !important;
}

.action-type-badge {
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.action-memo {
    font-size: 0.75rem;
    color: #ccc;
    font-style: italic;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4px;
    padding-left: 26px;
    word-break: break-all;
}

/* Inline memo input in edit mode */
.action-memo-container {
    margin-top: 4px;
    padding-left: 26px;
    word-wrap: break-word;
    white-space: normal;
}

/* Hidden class for toggleable memo */
.action-memo-container.hidden {
    display: none;
}

.action-memo-inline {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-radius: 3px;
    color: #ccc;
    font-size: 0.75rem;
    font-style: italic;
    padding: 3px 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
    resize: none;
    overflow: hidden;
    min-height: 20px;
    font-family: inherit;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.action-memo-inline:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-memo-inline::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
}

/* Note memo input - full width without left padding */
.note-memo-input {
    font-style: normal;
}

.note-action-item .action-memo-container {
    padding-left: 0;
}

/* Note Action Item Style */
.note-action-item {
    background: linear-gradient(135deg, rgba(70, 70, 50, 0.9), rgba(50, 50, 40, 0.95)) !important;
    border-left: 3px solid #c9a227 !important;
}

.note-action-item::before {
    background: rgba(201, 162, 39, 0.15) !important;
}

.note-action-item .action-name {
    color: #e8d59c;
    font-style: italic;
    font-size: 0.5rem;
}

.note-action-item .action-memo {
    padding-left: 0;
    border-top: none;
    margin-top: 0;
}

.btn-add-action {
    width: 100%;
    padding: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    line-height: 1;
}

.btn-add-action:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.empty-state-row {
    height: 200px;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
}

/* Edit Mode Toggle */
.controls-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ==========================================================================
   Add Turn Button Styling
   ========================================================================== */
.btn-add-turn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-turn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.btn-add-turn:active {
    transform: translateY(0);
}

/* Hide Wonder Persona Name - Global */
.action-item .wonder-persona-display .action-persona-name,
.wonder-persona-display .action-persona-name {
    display: none !important;
}

.wonder-persona-display .action-persona-icon {
    margin-bottom: 0 !important;
}

/* Actor + Persona Wrapper - Fixed width for grid alignment */
.actor-persona-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 120px;
    width: 120px;
}

.actor-persona-wrapper .actor-dropdown {
    flex: 1;
    min-width: 0;
}

.actor-dropdown .custom-select-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

/* When has persona (Wonder), actor dropdown shrinks to make room for persona */
.actor-persona-wrapper.has-persona .actor-dropdown {
    flex: 0 0 82px;
    width: 82px;
    min-width: 82px;
}

/* Persona dropdown - hidden by default, visible when has-persona */
.action-item .persona-dropdown {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    display: none;
}

.actor-persona-wrapper.has-persona .persona-dropdown {
    display: flex;
}

/* Hide text in Persona Dropdown, show only icon */
.action-item .persona-dropdown .custom-select-trigger .custom-select-text {
    display: none !important;
}

/* Action dropdown takes remaining space */
.action-item .action-dropdown {
    flex: 1;
    min-width: 0;
}

/* Action dropdown skill icons (element icons) */
.action-item .action-dropdown .custom-select-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.action-item .action-dropdown .custom-option-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
}

/* ==========================================================================
   Action Item Drag & Drop
   ========================================================================== */

/* Dragging state - keep in place but visually indicate */
.action-item.dragging {
    opacity: 0.4;
    background: rgba(209, 31, 31, 0.1) !important;
    border-color: rgba(209, 31, 31, 0.3) !important;
}

/* Content wrapper - horizontal flex layout */
.action-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
    overflow: visible;
}

/* Drag Handle - left side */
.action-drag-handle {
    flex-shrink: 0;
    width: 0;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: rgba(255, 255, 255, 0);
    background: rgba(255, 255, 255, 0.00);
    border-right: 1px solid rgba(255, 255, 255, 0.00);
    transition: all 0.15s ease;
    overflow: hidden;
}

/* Show drag handle on hover in edit mode */
.tactic-edit-mode .action-item:hover .action-drag-handle {
    width: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.action-drag-handle:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.action-drag-handle:active {
    cursor: grabbing;
}

/* Drop Zone Styling - subtle highlight */
.tactic-cell.drag-over {
    background: rgba(209, 31, 31, 0.05) !important;
}

/* Drop Indicator Line - simple and clean */
.action-drop-indicator {
    height: 2px;
    background: var(--accent-color, #d11f1f);
    border-radius: 1px;
    margin: 2px 0;
    opacity: 0.8;
}

/* ==========================================================================
   Turn Drag & Drop
   ========================================================================== */

.turn-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.turn-drag-handle {
    cursor: grab;
    color: rgba(255, 255, 255, 0.3);
    padding: 4px;
    transition: all 0.15s ease;
    opacity: 0;
}

.tactic-edit-mode .col-turn:hover .turn-drag-handle {
    opacity: 1;
    color: rgba(255, 255, 255, 0.5);
}

.turn-drag-handle:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.turn-drag-handle:active {
    cursor: grabbing;
}

.turn-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tactic-edit-mode .col-turn:hover .turn-actions {
    opacity: 1;
}

.btn-turn-action {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-turn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-remove-turn:hover {
    background: rgba(209, 31, 31, 0.3) !important;
    border-color: rgba(209, 31, 31, 0.5) !important;
    color: #ff6b6b !important;
}

/* Turn row dragging state */
.turn-row.dragging-turn {
    opacity: 0.4;
}

.turn-row.drag-over-turn {
    background: rgba(209, 31, 31, 0.03);
}

/* Turn drop indicator - simple line */
.turn-drop-indicator {
    height: 0;
    padding: 0 !important;
}

.turn-drop-indicator td {
    padding: 0 !important;
    height: 2px !important;
}

.turn-drop-line {
    height: 2px;
    background: var(--accent-color, #d11f1f);
    opacity: 0.8;
}

/* ==========================================================================
   Responsive: Vertical layout for turn rows (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    body:not(.tactic-edit-mode) .tactic-table {
        display: block;
        min-width: 0;
    }

    body:not(.tactic-edit-mode) .tactic-table tbody {
        display: block;
    }

    body:not(.tactic-edit-mode) .turn-row {
        display: flex;
        flex-direction: column;
        border-bottom: 3px solid rgba(0, 0, 0, 0.3);
        margin-bottom: 12px;
        background: var(--card-background);
    }

    body:not(.tactic-edit-mode) .turn-row .col-turn {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body:not(.tactic-edit-mode) .turn-row .col-turn .turn-info {
        flex-direction: row;
        gap: 8px;
    }

    body:not(.tactic-edit-mode) .turn-row .col-turn .turn-number {
        font-size: 1rem;
    }

    body:not(.tactic-edit-mode) .turn-row .tactic-cell {
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-right: none;
    }

    body:not(.tactic-edit-mode) .turn-row .tactic-cell:last-child {
        border-bottom: none;
    }

    body:not(.tactic-edit-mode) .cell-char-header {
        background: rgba(0, 0, 0, 0.2);
    }
}

/* ==========================================================================
   Elucidator Prompt Header
   ========================================================================== */
.elucidator-prompt-header {
    margin-bottom: 4px;
}

.elucidator-prompt-header .cell-char-header {
    border-radius: 0;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid;
}

.elucidator-prompt-header .elucidator-temp-header {
    position: relative;
}

.elucidator-prompt-header .auto-action-prompt {
    margin-top: 8px;
}