# Implementation Plan: Phase 7 Stabilization and Polishing

## Phase 1: Fixing Core Integrity
- [x] Task: Fix Module Imports
    - [x] Update `src/discussion_entry_renderer.py` and `src/structural_editor_modal.py` to use absolute `src` imports.
    - [x] Validate with: `uv run python -c "from src import discussion_entry_renderer; print('ok')"`.
- [x] Task: Consolidate UI Helpers
    - [x] Ensure `src/ui_shared.py` contains all shared constants and non-circular helpers.

## Phase 2: Restoring UI Polish
- [x] Task: Definitive Table Layout Fix
    - [x] Refactor the `begin_group` and `dummy` logic in the discussion renderer to guarantee full width for Markdown blocks.
- [x] Task: Robust Entry Tinting
    - [x] Implement `draw_list.add_rect_filled` for entry backgrounds using a stable bounding box calculation.
- [x] Task: Theme Refactor
    - [x] Move hardcoded colors to `src/theme_2.py`.
    - [x] Replace literals in all renderers with `theme.get_role_tint()` or equivalent.

## Phase 3: Verification
- [x] Task: Final Validation
    - [x] Run `pytest tests/test_gui_text_viewer.py`.
    - [x] Run `pytest tests/test_gui_symbol_navigation.py`.
- [x] Task: Conductor - User Manual Verification 'Phase 3: Verification' (Protocol in workflow.md)