/* Taxio — gaya umum (layout, header, tab, node, panel, tombol) */
        :root {
            --ink: #0F1419; --ink-2: #2b2f3a; --ink-3: #64748B; --ink-4: #94A3B8;
            --surface: #FAFAFC; --surface-2: #F1F5F9; --surface-3: #E2E8F0; --white: #ffffff;
            --accent: #F97316; --accent-2: #FF6B4A; --accent-light: rgba(249, 115, 22, 0.12); --accent-ink: #2B1400;
            --accent-blue: #1D4ED8; --accent-blue-light: rgba(29, 78, 216, 0.1);
            --accent-sky: #38BDF8; --accent-sky-light: #E0F2FE; --accent-sky-ink: #0369A1;
            --gold: #F59E0B; --gold-light: #FEF3C7; --gold-ink: #92400E; --teal: #0f7b6c; --teal-light: #d3eeeb;
            --green: #16A34A; --red: #DC2626; --border: rgba(0,0,0,0.06); --border-strong: rgba(0,0,0,0.12);
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
            --radius: 8px; --radius-lg: 12px; --mono: 'DM Mono', monospace;
            --sidebar-navy: #0F172A;
            --heading-font: 'Space Grotesk', sans-serif;
            --text-xs: 11px; --text-sm: 12.5px; --text-base: 13.5px; --text-md: 15px; --text-lg: 17px; --text-xl: 22px; --text-2xl: 26px;
            --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 28px;
            /* Global overlay stacking order (low to high). Local/self-contained stacking — frozen-pane
               table corner cells, the fixed sidebar — intentionally stays outside this scale; those only
               need to be ordered relative to their own siblings, not to app-wide overlays. */
            --z-dropdown: 500;        /* toolbar menus, autocomplete/combobox popovers, column-toggle popovers */
            --z-tooltip: 1200;        /* hover tooltips: presence list, chart edge tooltip */
            --z-modal-backdrop: 9998; /* full-viewport modal backdrop (modal content paints above it via DOM order) */
            --z-system-overlay: 10000; /* must render above an open modal: pre-auth login gate, in-editor slash command menu */
            --z-toast: 10001;         /* toast notifications — always the topmost user-facing layer */
        }
        /* Respect the OS-level "reduce motion" setting everywhere: every @keyframes animation
           (modal entrance, tab fade, node-selection glow, toast, etc.) and CSS transition in the
           app collapses to a near-instant, single-iteration state instead of being disabled outright
           — content still reaches its end state, it just doesn't animate there. */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--surface); color: var(--ink); overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
        /* Baseline keyboard-focus ring for every element. Many custom inputs/selects/role="button"
           rows suppress the native outline in favor of their own :focus treatment (border/background
           tint) — this box-shadow ring is the guaranteed fallback for the many that don't, so tabbing
           through the app never goes invisible. Uses box-shadow (not outline) so it isn't blocked by
           the several `outline: none !important` rules on custom controls. :focus-visible only (not
           :focus) so it shows for keyboard navigation, not mouse clicks. */
        :focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-light); }
        #group-title { cursor: pointer; outline: none; }
        #group-title:focus-visible { box-shadow: 0 0 0 3px var(--accent-light); border-radius: 4px; }
        .tab-content { display: none; flex: 1; overflow: hidden; }
        .tab-content.active { display: flex; }
        #chart-container { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        #toolbar { min-height: 44px; background: var(--white); border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; padding: 6px 16px; gap: 8px; flex-shrink: 0; }
        .legend-group { display: flex; align-items: center; gap: 18px; flex: 1; }
        .legend-item { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.03em; text-transform: uppercase; }
        .legend-pip { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
        .legend-pip.circle { border-radius: 50%; }
        #canvas-legend { position: absolute; top: 12px; left: 12px; z-index: 5; background: rgba(255,255,255,0.96); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-md); padding: 8px 11px 9px; display: flex; flex-direction: column; gap: 5px; }
        #canvas-legend .legend-item { text-transform: uppercase; font-size: 10.5px; }
        #canvas-legend .cl-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 3px; }
        #canvas-legend .cl-head span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
        #canvas-legend .cl-x { border: none; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-4); padding: 0 2px; }
        #canvas-legend .cl-x:hover { color: var(--ink-1); }
        #legend-show-btn { position: absolute; top: 12px; left: 12px; z-index: 5; background: rgba(255,255,255,0.96); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-md); padding: 6px 10px; font-size: 11px; cursor: pointer; color: var(--ink-2); }
        .l-owner      { background: #b5892a; }
        .l-holding    { background: #1E3A5F; }
        .l-subholding { background: #2b5797; }
        .l-operating  { background: #0D9488; }
        .l-individual { background: #15803D; }
        .l-dormant    { background: #c8c4bc; border: 1px solid #a8a49c; }
        .l-other      { background: #78716C; }
        .export-item { padding: 8px 14px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
        .export-item:hover { background: var(--surface-2); }
        .grp-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); padding: 4px 6px; cursor: pointer; border-radius: 4px; }
        .grp-item:hover { background: var(--surface-2); }
        .toolbar-sep { width: 1px; height: 22px; background: var(--border-strong); }
        .view-toggle { display: flex; background: var(--surface-2); border-radius: 6px; padding: 2px; gap: 1px; }
        .vt-btn { padding: 4px 12px; border: none; border-radius: 4px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 500; color: var(--ink-3); cursor: pointer; background: transparent; transition: all .15s; letter-spacing: .02em; }
        .vt-btn.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
        #svg-canvas { flex: 1; background: var(--surface); background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px); background-size: 24px 24px; overflow: hidden; position: relative; }
        #svg-canvas svg { width: 100%; height: 100%; cursor: grab; }
        #svg-canvas svg:active { cursor: grabbing; }
        .d3-node rect, .d3-node ellipse { transition: opacity .28s ease; }
        .d3-node:hover rect, .d3-node:hover ellipse { opacity: .82; cursor: pointer; }
        .d3-node.dimmed { opacity: .1; }
        .d3-edge { transition: opacity .28s ease; }
        .d3-edge.dimmed { opacity: .04; }
        .d3-edge.highlighted path { stroke: #2b5797 !important; stroke-width: 2px !important; }
        .d3-node.highlighted rect, .d3-node.highlighted ellipse { stroke: var(--gold) !important; stroke-width: 2px !important; }
        @keyframes selPulse { 0%,100% { filter: drop-shadow(0 0 8px rgba(181,137,42,0.65)); } 50% { filter: drop-shadow(0 0 16px rgba(181,137,42,1)); } }
        .d3-node.selected-node .node-body { stroke: var(--gold) !important; stroke-width: 2.6px !important; animation: selPulse 1.8s ease-in-out infinite; }
        
        .pct-badge { font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 500; }
        
        #sidebar { position: relative; width: 460px; background: var(--white); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; }
        #sidebar.closed { margin-right: -480px; opacity: 0; border-left: none; }
        #sidebar-resizer { position: absolute; left: 0; top: 0; width: 7px; height: 100%; cursor: col-resize; z-index: 6; background: transparent; }
        #sidebar-resizer:hover { background: linear-gradient(90deg, rgba(43,87,151,0.28), transparent); }
        .sidebar-header { padding: 14px 18px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; }
        .sidebar-header h3 { font-family: var(--heading-font); font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
        .close-sidebar-btn { background: transparent; border: none; font-size: 20px; color: var(--ink-4); cursor: pointer; transition: color 0.15s; line-height: 1; padding: 0 4px; }
        .close-sidebar-btn:hover { color: var(--red); }
        #panel-content { flex: 1; overflow-y: auto; padding: 14px 18px; }
        .panel-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 10px; color: var(--ink-3); }
        .panel-empty-icon { width: 44px; height: 44px; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 18px; }
        .panel-empty p { font-size: 12px; text-align: center; line-height: 1.6; max-width: 180px; }
        .entity-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
        .entity-badge.Owner      { background: var(--gold-light); color: var(--gold-ink); }
        .entity-badge.Holding    { background: var(--accent-blue-light); color: var(--accent-blue); }
        .entity-badge.Subholding { background: var(--accent-sky-light); color: var(--accent-sky-ink); }
        .entity-badge.Operating  { background: var(--teal-light);   color: var(--teal); }
        .entity-badge.Individual { background: #d5ead9; color: var(--green); }
        .entity-badge.Dormant    { background: var(--surface-2); color: var(--ink-3); }
        .entity-badge.Other      { background: #f5ecea; color: #78716C; }
        .entity-name { font-family: var(--heading-font); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 3px; letter-spacing: -0.01em; }
        .entity-code { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 14px; }
        .detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px; }
        .detail-card-title { padding: 7px 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--border); background: var(--white); }
        .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 500; border: none; border-radius: var(--radius); cursor: pointer; transition: all .15s; letter-spacing: .01em; white-space: nowrap; }
        /* Strips native <button> chrome so a real button can stand in for a "clickable card/row"
           div without changing its layout — keyboard/screen-reader affordance without visual cost. */
        .reset-btn { appearance: none; background: none; border: none; margin: 0; padding: 0; font: inherit; color: inherit; text-align: inherit; display: block; width: 100%; }
        .btn-outline { background: var(--white); color: var(--ink-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
        .btn-outline:hover { background: var(--surface); border-color: var(--ink-4); }
        /* The one primary-action button color in the app — reserved for the single most important
           action in a dialog (Save/Apply/Export). Dark ink label (not white) keeps it at 6.2:1 contrast
           against the accent's bright orange, well past WCAG AA, without darkening the brand hue itself. */
        .btn-accent { background: var(--accent); color: var(--accent-ink); }
        .btn-accent:hover { background: var(--accent-2); }
        .btn-danger { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
        .btn-danger:hover { background: #fee2e2; }
        .btn-save { background: var(--teal); color: var(--white); padding: 9px 20px; font-weight: 600; font-size: 13px; margin-top: 20px; box-shadow: var(--shadow-md); }
        .btn-save:hover { background: #0d6b5e; }
        .btn-add { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--border-strong); margin-top: 10px; }
        .btn-add:hover { background: var(--surface-3); }

/* Taxio — gaya tabel (editor, list, detail, sticky header, search & sort) */
        .editor-table thead th { position: sticky; top: 0; z-index: 5; background: var(--surface-2); box-shadow: 0 1px 0 var(--border-strong); }
        .list-table thead th { position: sticky; top: 0; z-index: 999; background: var(--white); box-shadow: 0 1px 0 var(--border); }
        #sidebar .list-table thead th { position: static !important; }
        .table-editor-container { overflow: auto; }
        table.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        table.detail-table tr:not(:last-child) { border-bottom: 1px solid var(--border); }
        table.detail-table th { padding: 8px 12px; color: var(--ink-3); font-weight: 500; width: 44%; text-align: left; background: var(--surface); }
        table.detail-table td { padding: 8px 12px; color: var(--ink); font-weight: 500; }
        table.detail-table td.mono { font-family: var(--mono); font-size: 11px; }
        table.detail-table td.pct  { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-2); }
        .list-table-wrap { overflow-x: auto; }
        table.list-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
        table.list-table th { padding: 6px 10px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: var(--white); border-bottom: 1px solid var(--border); }
        table.list-table td { padding: 7px 10px; color: var(--ink-2); border-bottom: 1px solid var(--border); }
        table.list-table tr:last-child td { border-bottom: none; }
        table.list-table tr:hover td { background: var(--surface); }
        table.list-table td.name { font-weight: 600; color: var(--ink); }
        table.list-table td.num  { font-family: var(--mono); font-size: 10.5px; text-align: right; }
        table.list-table td.pct-cell { font-family: var(--mono); font-weight: 600; color: var(--accent-2); text-align: right; }
        .section-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 7px; display: flex; align-items: center; gap: 8px; }
        .section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
        .table-editor-container { width: 100%; height: 100%; padding: 28px 32px; overflow-y: auto; background: var(--white); }
        .editor-heading { font-family: var(--heading-font); font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 5px; }
        .editor-sub { font-size: var(--text-base); color: var(--ink-3); margin-bottom: 24px; line-height: 1.5; }

        /* Shared page toolbar row: search + filters + primary action, reused across every data page */
        .taxio-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .taxio-toolbar-search { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--white); border: 1px solid var(--border-strong); border-radius: 10px; min-width: 220px; }
        .taxio-toolbar-search input { border: none; outline: none; background: transparent; font-size: var(--text-sm); color: var(--ink); width: 100%; font-family: inherit; }
        .taxio-toolbar-search input::placeholder { color: var(--ink-3); }
        .taxio-toolbar-search i { color: var(--ink-4); flex-shrink: 0; }
        .taxio-toolbar select, .taxio-toolbar .clean-select-box { font-size: var(--text-sm); padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--white); color: var(--ink-2); outline: none; cursor: pointer; font-family: inherit; }
        .taxio-toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

        /* Primary action button (rounded, solid accent) shared with the dashboard's "+ Task" button */
        .taxio-btn-primary, .taxio-dashboard-btn-primary {
            display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
            background: var(--accent); border: none; border-radius: 10px; color: #ffffff;
            font-size: var(--text-base); font-weight: 600; cursor: pointer; white-space: nowrap;
            box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28); transition: all 0.15s; font-family: inherit;
        }
        .taxio-btn-primary:hover, .taxio-dashboard-btn-primary:hover { background: #EA580C; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35); }

        /* Generic status/value chip — replaces ad-hoc <select>/checkbox styling for read-only status values */
        .taxio-chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.01em; }
        .taxio-chip-green { background: #dcfce7; color: #166534; }
        .taxio-chip-amber { background: #fef3c7; color: #92400e; }
        .taxio-chip-red { background: #fee2e2; color: #991b1b; }
        .taxio-chip-blue { background: #e8f0fe; color: #1d4ed8; }
        .taxio-chip-purple { background: #ede9fe; color: #5b21b6; }
        .taxio-chip-gray { background: var(--surface-2); color: var(--ink-3); }

        /* Shared KPI stat row (top of a data page) — reuses the dash-stat visual, generalized beyond the dashboard */
        .taxio-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
        .taxio-stat-row .dash-stat .v.accent { color: var(--accent); }
        .taxio-stat-row .dash-stat .v.green { color: var(--green); }
        .taxio-stat-row .dash-stat .v.red { color: var(--red); }

        /* Applied-filter chip row: "Filters" trigger + removable chips + result count */
        .taxio-filter-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; padding: 5px 8px 5px 11px; border-radius: 20px; background: var(--surface-2); color: var(--ink-2); }
        .taxio-filter-chip button { border: none; background: transparent; color: var(--ink-4); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px; display: flex; }
        .taxio-filter-chip button:hover { color: var(--red); }
        .taxio-filter-count { font-size: var(--text-xs); color: var(--ink-3); margin-left: auto; white-space: nowrap; }

        /* Entity card grid (Entities page) */
        .entity-cardgrid-group { margin-bottom: 22px; }
        .entity-cardgrid-group-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
        .entity-cardgrid-group-label .cnt { color: var(--ink-3); font-weight: 600; }
        .entity-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
        .entity-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s, transform .15s; }
        .entity-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-1px); }
        .entity-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
        .entity-card-code { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
        .entity-card-name { font-family: var(--heading-font); font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
        .entity-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
        .entity-card-type { font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-lg); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
        .entity-card-group { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        .editor-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
        .editor-table thead th { padding: 12px 14px; background: var(--surface); color: var(--ink-3); font-weight: 600; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 2px solid var(--border-strong); text-align: left; }
        .editor-table tbody td { border-bottom: 1px solid var(--border); }
        .editor-table tbody tr:hover td { background: var(--surface); }
        .editor-table tbody td { padding: 10px 14px; font-size: 13px; }
        .editor-table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; color: var(--ink); }
        .editor-table td.name { font-weight: 600; color: var(--ink); }
        .editor-table input, .editor-table select { width: 100%; padding: 5px 9px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; color: var(--ink); background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; transition: border-color .15s, box-shadow .15s; }
        .editor-table input:focus, .editor-table select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(43,87,151,.1); }
        .editor-table input[disabled] { background: var(--surface-2); color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
        /* SEARCH & SORT TABLE STYLES */
        .table-search-input { width: 100%; padding: 7px 10px 7px 30px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: var(--ink); background: var(--white); border: none; border-bottom: 1px solid var(--border); outline: none; transition: border-color .15s; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%238891a8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>'); background-repeat: no-repeat; background-position: 10px center; }
        .table-search-input:focus { border-bottom-color: var(--accent-2); }
        .editor-search { border: 1px solid var(--border-strong); border-radius: var(--radius); border-bottom: 1px solid var(--border-strong); }
        .editor-search:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(43,87,151,.1); }
        
        .sortable-table th { cursor: pointer; user-select: none; position: relative; padding-right: 18px !important; transition: background 0.15s; }
        .sortable-table th:hover { background: var(--surface-2) !important; color: var(--ink) !important; }
        .sortable-table th::after { content: '↕'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--border-strong); font-size: 10px; }
        .sortable-table th.sort-asc::after { content: '▲'; color: var(--accent-2); }
        .sortable-table th.sort-desc::after { content: '▼'; color: var(--accent-2); }
        .sortable-table th.no-sort { cursor: default; }
        .sortable-table th.no-sort::after { display: none; }
        .sortable-table th.no-sort:hover { background: var(--surface) !important; color: var(--ink-3) !important; }
/* Taxio — gaya modal & rich-text & pane-tabs */
        .rt-wrap { border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
        .rt-tb { display: none; gap: 2px; padding: 4px 6px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
        .rt-contextual:focus-within .rt-tb { display: flex; }
        .rt-tb button { border: 1px solid var(--border); background: var(--white); border-radius: 4px; min-width: 26px; height: 24px; font-size: 12px; cursor: pointer; color: var(--ink-2); }
        .rt-tb button:hover { background: var(--surface-2); }
        .rt-tb-hint { font-size: 10.5px; color: var(--ink-3); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .rt-tb-hint code { font-family: var(--mono); background: var(--surface-2); border-radius: 3px; padding: 1px 4px; }
        .rt-ed { min-height: 80px; max-height: 220px; overflow: auto; padding: 8px 10px; font-size: 13px; color: var(--ink-1); background: var(--white); line-height: 1.5; }
        .rt-ed:focus { outline: none; }
        .rt-ed:empty::before { content: attr(data-placeholder); color: var(--ink-3); pointer-events: none; }

        /* Discussion callout ("/discussion:" lines) + aggregated key-points summary */
        .discuss-callout { display: flex; align-items: flex-start; gap: 7px; background: #FFF7ED; border: 1px solid #FDE1C8; border-radius: 7px; padding: 6px 9px; margin: 4px 0; color: #9A3412; font-weight: 600; font-size: 12.5px; }
        .discuss-callout i { color: var(--accent); margin-top: 2px; }
        /* Neutral by design: this box holds a content summary, not a call to action or a status,
           so it stays off the accent-orange family entirely — see .kp-discussion/.kp-decision
           below for how individual points are told apart without repainting the whole container. */
        .discuss-keypoints { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; margin-bottom: 10px; }
        .discuss-keypoints-title { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
        .discuss-keypoints ul { margin: 0; padding-left: 18px; }

        /* Chat-style comment thread (used in the Threads peek panel) */
        .chat-thread { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
        .chat-msg { display: flex; gap: 9px; align-items: flex-start; }
        .chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(150deg,var(--accent),var(--accent-2)); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .chat-bubble-col { flex: 1; min-width: 0; }
        .chat-bubble-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; }
        .chat-bubble-author { font-size: 12.5px; font-weight: 700; color: var(--ink); }
        .chat-bubble-time { font-size: 10.5px; color: var(--ink-3); }
        .chat-bubble { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); display: inline-block; max-width: 100%; overflow-wrap: break-word; }
        .chat-empty { font-size: 12px; color: var(--ink-3); font-style: italic; padding: 4px 0; }
        .chat-composer { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
        .chat-composer input { flex: 1; padding: 9px 13px; background: var(--surface-2); border: 1px solid transparent; border-radius: 20px; font-size: 12.5px; outline: none; font-family: inherit; }
        .chat-composer input:focus { background: var(--white); border-color: var(--border-strong); }
        .chat-composer button { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
        .chat-composer button:hover { background: #EA580C; }
        .pane-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0 12px; border-bottom: 1px solid var(--border); }
        .pane-tab { border: none; background: transparent; padding: 6px 10px; font-size: 11px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; }
        .pane-tab:hover { color: var(--ink-2); }
        .pane-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
        #edit-modal-overlay { position: fixed; inset: 0; background: rgba(15,17,23,0.45); z-index: var(--z-modal-backdrop); display: flex; align-items: center; justify-content: center; }
        #edit-modal { background: var(--white); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); width: min(820px,94vw); max-height: 88vh; overflow: auto; }
        #edit-modal .em-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); }
        #edit-modal .em-head span { font-weight: 700; font-size: 14px; color: var(--ink-1); }
        #edit-modal .em-x { border: none; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-4); }
        #edit-modal .em-body { padding: 16px 18px 18px; }
        #edit-modal .em-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
        #edit-modal .em-f { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
        #edit-modal .em-f input[type=text], #edit-modal .em-f select { padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 13px; color: var(--ink-1); width: 100%; box-sizing: border-box; }
        #edit-modal .em-check { flex-direction: row; align-items: center; gap: 7px; }
        #edit-modal .em-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

        /* Task modal — compact property list + inline action cards */
        .dsc-title-input { width: 100%; border: none; outline: none; background: transparent; font-family: inherit; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; padding: 2px 0 14px; box-sizing: border-box; }
        .dsc-title-input::placeholder { color: var(--ink-3); font-weight: 700; }
        .dsc-prop-list { display: flex; flex-direction: column; }
        .dsc-prop-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
        .dsc-prop-row:last-child { border-bottom: none; }
        .dsc-prop-row-top { align-items: flex-start; }
        .dsc-prop-row-top .dsc-prop-icon { margin-top: 8px; }
        .dsc-prop-icon { width: 15px; height: 15px; color: var(--ink-4); flex-shrink: 0; }
        .dsc-prop-label { width: 76px; flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
        .dsc-prop-value { flex: 1; min-width: 0; }
        .dsc-prop-input, .dsc-prop-select { width: 100%; border: none; outline: none; background: transparent; font-family: inherit; font-size: 13px; color: var(--ink-1); padding: 3px 0; box-sizing: border-box; }
        .dsc-prop-select { cursor: pointer; }
        .dsc-prop-input::placeholder { color: var(--ink-3); }
        .dsc-source-tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--accent-light); color: var(--accent); }
        .dsc-divider { height: 1px; background: var(--border); margin: 16px 0 4px; }

        .dsc-action-list { display: flex; flex-direction: column; gap: 8px; }
        .dsc-action-card { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; background: var(--white); }
        .dsc-action-row1 { display: flex; align-items: center; gap: 8px; }
        .dsc-action-row1 input[type=checkbox] { width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
        .dsc-action-title { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); padding: 2px 0; }
        .dsc-action-title::placeholder { color: var(--ink-3); font-weight: 500; }
        .dsc-action-title.done { text-decoration: line-through; color: var(--ink-3); font-weight: 500; }
        .dsc-action-del { border: none; background: none; color: var(--ink-4); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; flex-shrink: 0; }
        .dsc-action-del:hover { color: var(--red); }
        .dsc-action-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; padding-left: 23px; }
        .dsc-action-field { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border-radius: 14px; padding: 3px 9px 3px 8px; }
        .dsc-action-field i { width: 11px; height: 11px; color: var(--ink-4); flex-shrink: 0; }
        .dsc-action-field input { border: none; outline: none; background: transparent; font-family: inherit; font-size: 11.5px; font-weight: 500; color: var(--ink-2); padding: 0; }
        .dsc-action-field input[type=text] { width: 84px; }
        .dsc-action-field input[type=date] { width: 106px; }
        .dsc-action-field select { border: none; outline: none; background: transparent; font-family: inherit; font-size: 11px; font-weight: 600; color: inherit; padding: 0; cursor: pointer; }
        .dsc-action-notes-toggle { border: 1px dashed var(--border-strong); background: none; border-radius: 14px; padding: 3px 9px; font-size: 11.5px; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
        .dsc-action-notes-toggle:hover { color: var(--ink-2); border-color: var(--ink-4); }
        .dsc-action-notes { margin-top: 7px; padding-left: 23px; }
        .dsc-action-notes input { width: 100%; padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; box-sizing: border-box; font-family: inherit; }

/* Taxio - grid compliance (freeze pane: header + kolom entitas) */
.comp-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--border); border-radius: 8px; }
.comp-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 11.5px; }
.comp-table th, .comp-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; white-space: nowrap; background: var(--white); }
.comp-table thead th { position: sticky; background: var(--surface-2); z-index: 2; font-weight: 600; color: var(--ink-3); }
.comp-table thead tr:first-child th { top: 0; }
.comp-table thead tr:nth-child(2) th { top: 29px; }
.comp-table .comp-ent { position: sticky; left: 0; text-align: left; background: var(--white); z-index: 3; min-width: 150px; }
.comp-table thead .comp-ent { z-index: 6; background: var(--surface-2); }
.comp-table tbody tr:hover td { background: var(--surface); }
.comp-table tbody tr:hover .comp-ent { background: var(--surface); }
.comp-table input[type=text] { width: 88px; padding: 3px 5px; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 4px; }

/* Taxio - freeze pane tabel editor (scroll terpisah, heading & tombol diam) */
.table-editor-container:has(> .editor-scroll) { display: flex; flex-direction: column; overflow: hidden; }
.editor-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.table-editor-container:has(> .editor-scroll) > .btn { align-self: flex-start; }
.table-editor-container:has(> .editor-scroll) > .editor-scroll { margin-top: 0; }

/* Taxio - Compliance data-grid (freeze pane header+kolom, sort, filter, status) */
.cgrid-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--border); border-radius: 8px; position: relative; }
.cgrid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 11.5px; }
.cgrid th, .cgrid td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 4px 7px; text-align: center; white-space: nowrap; }
.cgrid td { background: var(--white); }
.cgrid thead th { position: sticky; background: var(--surface-2); z-index: 3; color: var(--ink-3); font-weight: 600; }
.cgrid thead tr.cg-h1 th { top: 0; height: 30px; }
.cgrid thead tr.cg-h2 th { top: 30px; height: 26px; }
.cgrid thead tr.cg-h3 th { top: 56px; height: 26px; }
.cgrid thead tr.cg-hf th { top: 82px; height: 32px; background: var(--surface); }
.cgrid .cg-sort { cursor: pointer; user-select: none; }
.cgrid .cg-sort:hover { background: var(--surface-3); color: var(--ink); }
.cgrid .cg-ent { position: sticky; left: 0; text-align: left; background: var(--white); z-index: 2; min-width: 150px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.cgrid thead .cg-ent { z-index: 6; background: var(--surface-2); }
.cgrid thead tr.cg-hf .cg-ent { background: var(--surface); }
.cgrid tbody tr.cg-st-vf td { background: #f4fcf6; }
.cgrid tbody tr.cg-st-cp td { background: #f4f8ff; }
.cgrid tbody tr.cg-st-ip td { background: #fffdf4; }
.cg-fil { width: 100%; box-sizing: border-box; font-size: 11.5px; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--white); font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink-2); outline: none; transition: border-color .15s, box-shadow .15s; }
.cg-fil:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.cg-fil::placeholder { color: var(--ink-3); }
tr.cg-hf { background: var(--surface); }
.cgrid td input[type=text] { width: 92px; padding: 3px 5px; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 4px; }
.cg-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; display: inline-block; }
.cgrid { user-select: none; -webkit-user-select: none; }
.cgrid input[type=text] { user-select: text; -webkit-user-select: text; }

/* Taxio - Compliance tri-state cell (kosong / centang / nihil) */
.cg-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    color: transparent;
    background: #ffffff;
    transition: all 0.15s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.cg-cell:hover:not(.cg-dis) {
    border-color: var(--accent);
    background: #FAF8F5;
}
.cg-cell.cg-y {
    background: rgba(22, 163, 74, 0.08) !important;
    border-color: rgba(22, 163, 74, 0.35) !important;
    color: #16A34A !important;
    font-weight: 700;
}
.cg-cell.cg-n {
    background: rgba(220, 38, 38, 0.06) !important;
    border-color: rgba(220, 38, 38, 0.25) !important;
    color: #DC2626 !important;
    font-weight: 700;
}
.cg-cell.cg-dis {
    background: #F8FAFC !important;
    border-color: rgba(0,0,0,0.06) !important;
    color: #94A3B8 !important;
    cursor: not-allowed;
}

/* Taxio Online - mode hanya-baca (viewer) */
body.ro-mode .btn-save,
body.ro-mode .btn-add,
body.ro-mode .btn-danger,
body.ro-mode .row-edit-btn,
body.ro-mode [onclick*="importFromExcel"],
body.ro-mode [onclick*="resetData"],
body.ro-mode [onclick*="addCompMonth"],
body.ro-mode [onclick*="addCompEntities"],
body.ro-mode [onclick*="removeCompEntity"],
body.ro-mode [onclick*="verifyComp"],
body.ro-mode [onclick*="unverifyComp"] { display: none !important; }
body.ro-mode .cg-cell:not(.cg-dis) { pointer-events: none; }
body.ro-mode .editor-table input, body.ro-mode .editor-table select,
body.ro-mode .cgrid input, body.ro-mode #panel-content input,
body.ro-mode #panel-content select, body.ro-mode #panel-content .cg-cell { pointer-events: none; background: var(--surface-2); }

/* Taxio Online - Dashboard ala Notion */
.dash-wrap { max-width: 1080px; }
.dash-seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; margin-bottom: 20px; }
.dash-seg button { border: none; background: transparent; padding: 6px 18px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); border-radius: 7px; cursor: pointer; transition: all .15s; }
.dash-seg button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.dash-stat { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.dash-stat .v { font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.dash-stat .l { font-size: 11px; color: var(--ink-3); margin-top: 5px; letter-spacing: 0.02em; }
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.dash-card-h { display: flex; align-items: center; gap: 9px; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.dash-card-h .ic { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; flex-shrink: 0; }
.dash-card .list-table th { background: var(--white); color: var(--ink-3); }
.dash-card .list-table td { padding: 9px 14px; }
.dash-card .list-table th { padding: 9px 14px; }
.dash-card .list-table tr:hover td { background: var(--surface); }
.dash-pad { padding: 16px; }
.dash-bar-wrap { margin-bottom: 14px; }
.dash-bar-wrap:last-child { margin-bottom: 0; }
.dash-bar-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.dash-bar { height: 8px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.dash-bar > div { height: 100%; border-radius: 6px; transition: width .3s; }
.dash-empty { padding: 16px; color: var(--ink-3); font-size: 12.5px; }

/* Taxio - toast notifikasi (ganti alert) */
#toast-host { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; font-size: 13px; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; max-width: 320px; line-height: 1.45; }
.toast.show { opacity: 1; transform: none; }

/* Pastikan kontainer tab dan tabel memiliki background putih solid */
.tab-content.active {
    background: #ffffff !important;
    position: relative;
    z-index: 1;
}

/* Memastikan area scroll tabel tidak transparan dan memiliki tinggi tetap untuk freeze pane */
.editor-scroll {
    background: #ffffff !important;
    position: relative;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Memastikan baris tabel menutupi elemen di belakangnya saat di-scroll */
.editor-table tbody tr {
    background: #ffffff !important;
    position: relative;
    z-index: 2;
}

/* Memastikan header tabel (sticky) tetap solid dan berada di lapisan paling atas */
.editor-table thead th {
    background: var(--surface) !important;
}
.editor-table thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 100 !important; /* Harus lebih tinggi dari tbody tr */
}
.editor-table thead tr:nth-child(2) th,
.editor-table thead tr.cg-hf th {
    position: sticky;
    top: 35px;
    z-index: 99 !important;
}
/* --- FITUR RESIZE KOLOM TABEL --- */
.cgrid th {
    position: relative; /* Wajib agar handle menempel di dalam kolom */
}

.cg-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize; /* Mengubah kursor panah menjadi panah kiri-kanan */
    user-select: none;
    z-index: 20;
}

/* Munculkan warna biru halus saat perbatasan kolom disorot/ditarik */
.cg-resizer:hover, .cg-resizer.resizing {
    background-color: var(--accent-2); 
    opacity: 0.5;
}

/* Memastikan teks yang terlalu kecil terpotong rapi dengan titik-titik (...) */
.cgrid th, .cgrid td {
    overflow: hidden;
    text-overflow: ellipsis;
}
/* =========================================================================
   ACTION CENTER v2 — card-based redesign (scan-friendly, Linear/Notion style)
   ========================================================================= */
.ac-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ac-stat { background: var(--white); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; }
.ac-stat .v { font-size: 19px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.ac-stat .l { font-size: 9.5px; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.04em; text-transform: uppercase; }
.ac-stat.s-blue .v { color: var(--accent-blue); }
.ac-stat.s-green .v { color: var(--green); }
.ac-stat.s-gold .v { color: var(--gold-ink); }
.ac-stat.s-red .v { color: var(--red); }

.ac-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ac-toolbar .ac-tb-grow { flex: 1; min-width: 180px; }
.ac-toolbar select { font-size: 12px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--white); color: var(--ink-2); outline: none; cursor: pointer; }
.ac-toolbar select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(43,87,151,.1); }

.ac-card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; align-items: start; }
.ac-task-stack { display: flex; flex-direction: column; gap: 8px; }
.ac-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s; overflow: hidden; }
.ac-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.ac-card-top { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; cursor: pointer; }
.ac-chevron { font-size: 11px; color: var(--ink-4); width: 12px; padding-top: 3px; flex-shrink: 0; user-select: none; }
.ac-card-titlewrap { flex: 1; min-width: 0; }
.ac-card-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ac-card-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ac-source-tag { flex-shrink: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.ac-card-entities { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ac-chip-entity { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; font-family: var(--mono); padding: 1px 8px; border-radius: 20px; background: var(--accent-sky-light); color: var(--accent-sky-ink); white-space: nowrap; cursor: default; }
.ac-chip-manager { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; padding: 1px 8px; border-radius: 20px; background: var(--accent-blue-light); color: var(--accent-blue); white-space: nowrap; }

/* Meeting card (Meetings sub-tab) */
.ac-meeting-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.ac-meeting-head { padding: 12px 14px 10px; cursor: pointer; }
.ac-meeting-head-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ac-meeting-cal-icon { width: 15px; height: 15px; color: var(--accent-blue); flex-shrink: 0; }
.ac-meeting-id { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ac-meeting-code { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--ink-3); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.ac-meeting-date { font-size: 12px; color: var(--ink-3); }
.ac-meeting-head-top .ac-chevron { width: auto; padding-top: 0; font-size: 12px; }
.ac-meeting-agenda { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 5px; padding-left: 22px; }
.ac-meeting-body { padding: 0 14px 14px; }
.ac-card-top-right { display: flex; align-items: center; gap: 5px; flex-shrink: 0; margin-top: 1px; }
.ac-status-badge { flex-shrink: 0; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.ac-status-open { background: var(--surface-2); color: var(--ink-3); }
.ac-status-progress { background: #fef3c7; color: #92400e; }
.ac-status-review { background: #ede9fe; color: #5b21b6; }
.ac-status-completed { background: #dcfce7; color: #166534; }
.ac-status-overdue { background: #fee2e2; color: #991b1b; }
.ac-status-none { background: var(--surface-2); color: var(--ink-4); }
.ac-icon-btn { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); background: var(--white); border-radius: 6px; font-size: 11px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0; }
.ac-icon-btn:hover { background: var(--surface); }
.ac-icon-btn-danger { color: var(--red); border-color: #fecaca; }
.ac-icon-btn-danger:hover { background: #fee2e2; }

.ac-card-body { padding: 10px 18px 16px; border-top: 1px solid var(--border); }
.ac-empty-note { font-size: 11px; color: var(--ink-3); font-style: italic; padding: 8px 0; }

/* Compact description preview */
.ac-card-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; padding: 8px 0 10px; }
.ac-showmore-link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ac-showmore-link:hover { text-decoration: underline; }

/* Compact inline checklist rows */
.ac-action-list { display: flex; flex-direction: column; padding-top: 4px; border-top: 1px solid var(--border-strong); }
.ac-checklist-row { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-bottom: 1px solid var(--surface-2); }
.ac-checklist-row:last-child { border-bottom: none; }
.ac-checklist-row input[type=checkbox] { width: 14px; height: 14px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.ac-checklist-title { flex: 1; font-size: 13px; font-weight: 500; color: var(--ink); min-width: 0; }
.ac-checklist-title.done { text-decoration: line-through; color: var(--ink-3); font-weight: 400; }
.ac-checklist-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Fixed width + right-align so the PIC initials line up as a column down the list instead of
   sliding left/right depending on how wide the adjacent status badge happens to be. */
.ac-checklist-pic { font-size: 11.5px; color: var(--ink-3); min-width: 30px; text-align: right; }
.ac-checklist-due { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.ac-checklist-due.late { color: var(--accent-2); font-weight: 700; }
.ac-checklist-status-select { border: none; border-radius: 12px; padding: 2px 20px 2px 8px; font-size: 10.5px; font-weight: 600; font-family: inherit; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; }

.ac-add-action-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: none; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.ac-add-action-btn:hover { text-decoration: underline; }

/* Compact rollup: done-count pill + assignee avatar stack, lives inline in the card header */
.ac-avatar-stack { display: flex; align-items: center; }
.ac-avatar-chip { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 8.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); margin-left: -6px; flex-shrink: 0; }
.ac-avatar-chip:first-child { margin-left: 0; }

/* --- Taxio App Shell Layout --- */
.taxio-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--surface);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--ink);
}

.taxio-sidebar {
    width: 264px;
    flex-shrink: 0;
    height: 100%;
    background: var(--sidebar-navy);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.taxio-sidebar.collapsed {
    width: 68px;
}

.taxio-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 8px 4px;
    overflow: hidden;
}

.taxio-sidebar-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.02em;
    color: #ffffff;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.taxio-sidebar.collapsed .taxio-sidebar-logo-text,
.taxio-sidebar.collapsed .taxio-hide-on-collapsed {
    display: none !important;
}

.taxio-sidebar-nav {
    margin-top: 14px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Scrollbar styles for sidebar */
.taxio-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}
.taxio-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.taxio-sidebar-group-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
    padding: 10px 10px 4px;
}

.taxio-sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.taxio-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(4px);
}

.taxio-sidebar-link.active {
    background: rgba(249, 115, 22, 0.16);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(249, 115, 22, 0.2);
    position: relative;
}

.taxio-sidebar-link.active i {
    color: #F97316 !important;
}

.taxio-sidebar-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #F97316;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 20px;
    padding: 1px 7px;
    margin-left: auto;
}

.taxio-sidebar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F59E0B;
    margin-left: auto;
}

.taxio-main {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FAFAFC;
}

.taxio-top-header {
    height: 58px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px 0 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    z-index: 8;
}

.taxio-top-header-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    color: #64748B;
}

.taxio-top-header-btn:hover {
    background: #F1F5F9;
    color: #0F1419;
}

.taxio-top-header-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.taxio-top-header-breadcrumbs .faint {
    color: #64748B;
}

.taxio-top-header-breadcrumbs .current {
    font-weight: 600;
    color: #0F1419;
}

.taxio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.tx-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.tx-scroll::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.tx-scroll::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
    background-clip: content-box;
}

/* --- Dashboard Specific Styling --- */
.taxio-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.taxio-dashboard-greeting {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.taxio-dashboard-greeting h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0F1419;
}

.taxio-dashboard-greeting p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748B;
    font-style: italic;
}

.taxio-dashboard-btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #F97316;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28);
    transition: all 0.15s;
}

.taxio-dashboard-btn-primary:hover {
    background: #EA580C;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.taxio-dashboard-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .taxio-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.taxio-card-radial {
    background: rgba(249, 115, 22, 0.04);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.taxio-radial-ring-container {
    position: relative;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taxio-radial-inner {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.taxio-radial-percentage {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: #0F1419;
    line-height: 1;
}

.taxio-radial-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #64748B;
    margin-top: 3px;
}

.taxio-card-radial-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0F1419;
}

.taxio-card-radial-info p {
    margin: 6px 0 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #64748B;
}

.taxio-card-radial-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.taxio-radial-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #0F1419;
}

.taxio-radial-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.taxio-card-white {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.taxio-calendar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.taxio-calendar-header h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #0F1419;
}

.taxio-calendar-day-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.taxio-calendar-day-header-cell {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #64748B;
    padding-bottom: 6px;
}

.taxio-calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.taxio-calendar-cell {
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}

.taxio-calendar-cell:hover {
    background: #F8FAFC;
}

.taxio-calendar-cell-today {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #F97316;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

.taxio-calendar-cell-num {
    font-size: 13.5px;
    color: #1E293B;
    font-weight: 500;
}

.taxio-calendar-dots {
    display: flex;
    gap: 3px;
    height: 5px;
}

.taxio-calendar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.taxio-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.taxio-calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748B;
}

.taxio-calendar-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* Kanban Widget styles */
.taxio-kanban-container {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 18px;
}

.taxio-kanban-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 2px 4px 14px;
}

.taxio-kanban-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0F1419;
}

.taxio-kanban-header span {
    font-size: 12.5px;
    color: #64748B;
}

.taxio-kanban-columns {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 8px;
}

@media (max-width: 1100px) {
    .taxio-kanban-columns {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .taxio-kanban-columns {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
}

.taxio-kanban-col {
    background: #F8FAFC;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 10px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.15s, border-color 0.15s;
}

.taxio-kanban-col.drag-over {
    background: rgba(249, 115, 22, 0.08) !important;
    border-color: #F97316 !important;
}

.taxio-kanban-col-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 2px 4px 4px;
}

.taxio-kanban-col-head-dot {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    flex-shrink: 0;
}

.taxio-kanban-col-head-title {
    font-size: 12px;
    font-weight: 600;
    color: #0F1419;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taxio-kanban-col-head-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    margin-left: auto;
}

.taxio-kanban-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 10px;
    cursor: grab;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: box-shadow 0.15s, transform 0.15s;
}

.taxio-kanban-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.taxio-kanban-card.dragging {
    opacity: 0.45;
}

.taxio-kanban-card-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #0F1419;
    line-height: 1.35;
    margin-bottom: 6px;
}

.taxio-kanban-card-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.taxio-kanban-card-chip {
    font-size: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 2px 6px;
}

.taxio-kanban-card-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.taxio-kanban-card-entity {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    background: #F1F5F9;
    border-radius: 5px;
    padding: 1px 6px;
}

.taxio-kanban-card-pic {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* Bottom Toggle Section */
.taxio-bottom-section {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 16px 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.taxio-segmented-toggle {
    display: inline-flex;
    background: #F1F5F9;
    border-radius: 9px;
    padding: 3px;
}

.taxio-segmented-toggle-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: transparent;
    color: #64748B;
    font-weight: 500;
    transition: all 0.15s;
}

.taxio-segmented-toggle-btn.active {
    background: #ffffff;
    color: #0F1419;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    font-weight: 600;
}

.taxio-bottom-content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .taxio-bottom-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Notion Style Property list in modals */
.notion-property-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    min-height: 38px;
    box-sizing: border-box;
}
.notion-property-label {
    width: 170px;
    font-size: 12.5px;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    user-select: none;
}
.notion-property-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 13.5px;
    color: #0F1419;
    padding: 4px 6px;
    background: transparent;
    box-sizing: border-box;
    font-family: inherit;
}
.notion-property-input:focus {
    background: #F1F5F9;
    border-radius: 4px;
}
.notion-property-input:disabled {
    background: transparent;
    color: #94A3B8;
    cursor: not-allowed;
}
.notion-property-textarea {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 13.5px;
    color: #0F1419;
    padding: 6px;
    background: transparent;
    box-sizing: border-box;
    font-family: inherit;
    min-height: 60px;
    resize: vertical;
}
.notion-property-textarea:focus {
    background: #F1F5F9;
    border-radius: 4px;
}
.clean-select {
    border: none !important;
    outline: none !important;
    background: transparent;
    font-size: 13.5px;
    color: #0F1419;
    font-family: inherit;
    padding: 4px 0;
    cursor: pointer;
    width: 100%;
}
.dropdown-item-btn:hover {
    background: #F1F5F9 !important;
}

/* Premium Motion & Hover animations */
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.tab-content.active {
    display: flex !important;
    animation: tabFadeIn 0.24s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalZoomIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
#edit-modal-overlay {
    animation: overlayFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
#edit-modal {
    animation: modalZoomIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Button micro-interactions */
.btn:hover, .taxio-dashboard-btn-primary:hover, .taxio-top-header-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn:active, .taxio-dashboard-btn-primary:active, .taxio-top-header-btn:active {
    transform: translateY(0);
}

/* Presence Tooltip CSS trigger */
.online-presence-wrapper:hover .presence-hover-tooltip {
    display: block !important;
}
.presence-hover-tooltip {
    transition: opacity 0.15s ease-out;
}
#presence-icon-btn:hover {
    background: #F8FAFC !important;
    border-color: rgba(22, 163, 74, 0.3) !important;
}

/* Decision Callout Card: Soft blue background, rounded corners, check icon, generous padding */
.decision-callout {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--accent-blue-light, rgba(29, 78, 216, 0.08));
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 6px 0;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 12.5px;
}
.decision-callout i {
    color: var(--accent-blue, #1d4ed8);
    margin-top: 2px;
}

/* File Location Block: Store document paths or OneDrive locations */
.file-location-block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--surface-2, #F1F5F9);
    border: 1px solid var(--border-strong, rgba(0,0,0,0.12));
    border-radius: 8px;
    padding: 10px 14px;
    margin: 6px 0;
    color: var(--ink-2, #2b2f3a);
    font-family: var(--mono, monospace);
    font-size: 12px;
}
.file-location-block i {
    color: var(--ink-3, #64748B);
    margin-top: 2px;
}

/* Floating Notion-style slash command menu */
.slash-menu {
    position: absolute;
    z-index: var(--z-system-overlay);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
    min-width: 240px;
    max-width: 300px;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    display: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.slash-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.slash-menu-item:hover, .slash-menu-item.active {
    background: var(--surface-2, #F1F5F9);
}
.slash-menu-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--surface-2, #F1F5F9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2, #2b2f3a);
    flex-shrink: 0;
}
.slash-menu-item.active .slash-menu-item-icon {
    background: var(--white);
    color: var(--accent);
}
.slash-menu-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.slash-menu-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink, #0F1419);
}
.slash-menu-item-desc {
    font-size: 10.5px;
    color: var(--ink-3, #64748B);
}

/* Points of discussion list styling */
.discuss-keypoints ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.keypoint-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 6px 10px;
    border-radius: 6px;
}
.kp-discussion {
    color: var(--ink-2, #2b2f3a);
    background: transparent;
}
.kp-discussion i {
    color: var(--ink-3, #64748B);
}
/* No background/border here on purpose — a bordered pill nested inside the already-bordered
   .discuss-keypoints box is a card-in-a-card. Bold weight + color carry the "this is the decision"
   signal instead, matching the blue .decision-callout block editors see while writing one. */
.kp-decision {
    color: var(--accent-blue, #1d4ed8);
    background: transparent;
    font-weight: 600;
}
.kp-decision i {
    color: var(--accent-blue, #1d4ed8);
}
