/* Hootag 0.8.9.1 · UX Stabilization
   Minimal differential override: native modules remain authoritative. */

/* The app shell should feel suspended rather than painted edge-to-edge. */
.r-shell.ui-v6{min-height:100dvh!important;align-items:stretch!important;background:var(--ds-bg,var(--app-bg,#f4f7fb))!important}
.r-shell.ui-v6>.r-sidebar{margin:12px 0 12px 12px!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;border:1px solid var(--ds-border,var(--border,#dbe3ec))!important;border-radius:24px!important;overflow:hidden auto!important;box-shadow:var(--ds-shadow-sm,0 18px 48px rgba(20,35,55,.09))!important}
.r-shell.ui-v6 .r-content{min-height:100dvh!important}
.r-shell.ui-v6 .unified-topbar{top:12px!important;margin:12px 18px 0!important;width:auto!important;border:1px solid var(--ds-border,var(--border,#dbe3ec))!important;border-radius:20px!important;box-shadow:var(--ds-shadow-sm,0 14px 38px rgba(20,35,55,.09))!important;overflow:visible!important}
.r-shell.ui-v6 .r-main{min-height:0!important;padding-bottom:34px!important}
.r-shell.ui-v6 .sidebar-user{margin-top:auto!important}
.r-shell.ui-v6 .nav-row{border-radius:13px!important;margin-inline:5px!important;width:calc(100% - 10px)!important}
.r-shell.ui-v6 .sidebar-org-brand,.r-shell.ui-v6 .organization-switcher{border-radius:18px!important}

/* Agency must never inherit legal/light surfaces. */
.r-shell.ui-v6.org-agency .r-card,
.r-shell.ui-v6.org-agency .core-stat-card,
.r-shell.ui-v6.org-agency .r-callout,
.r-shell.ui-v6.org-agency .r-toolbar,
.r-shell.ui-v6.org-agency .responsive-table-wrap,
.r-shell.ui-v6.org-agency .r-table,
.r-shell.ui-v6.org-agency .r-table th,
.r-shell.ui-v6.org-agency .r-table td,
.r-shell.ui-v6.org-agency .r-empty,
.r-shell.ui-v6.org-agency .empty-state{background:var(--ds-surface)!important;color:var(--ds-text)!important;border-color:var(--ds-border)!important}
.r-shell.ui-v6.org-agency .r-muted,
.r-shell.ui-v6.org-agency .r-card small,
.r-shell.ui-v6.org-agency .r-table small{color:var(--ds-muted)!important}
.r-shell.ui-v6.org-agency input,
.r-shell.ui-v6.org-agency select,
.r-shell.ui-v6.org-agency textarea{background:var(--ds-surface-2)!important;color:var(--ds-text)!important;border-color:var(--ds-border)!important}
.r-shell.ui-v6.org-agency .r-btn.ghost{background:color-mix(in srgb,var(--ds-surface-2) 88%,transparent)!important;color:var(--ds-text)!important;border-color:var(--ds-border)!important}

/* Native project board is the canonical Notion-like workspace in 0.8.9.1. */
.r-shell.ui-v6 .project-board{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(280px,340px)!important;grid-template-columns:none!important;gap:14px!important;overflow-x:auto!important;align-items:start!important;padding:4px 2px 14px!important;scroll-snap-type:x proximity}
.r-shell.ui-v6 .project-column{min-height:220px!important;border:1px solid var(--ds-border)!important;border-radius:18px!important;background:color-mix(in srgb,var(--ds-surface-2) 86%,transparent)!important;scroll-snap-align:start!important;overflow:hidden!important}
.r-shell.ui-v6 .project-column>header{position:sticky;top:0;z-index:2;padding:12px 14px!important;background:color-mix(in srgb,var(--ds-surface) 92%,transparent)!important;border-bottom:1px solid var(--ds-border)!important;backdrop-filter:blur(14px)}
.r-shell.ui-v6 .kanban-project{margin:10px!important;border:1px solid var(--ds-border)!important;border-radius:15px!important;background:var(--ds-surface)!important;box-shadow:var(--ds-shadow-xs)!important}
.r-shell.ui-v6 .kanban-project.dragging{opacity:.55!important;transform:scale(.985)}
.r-shell.ui-v6 .kanban-drag-handle{cursor:grab!important}

@media(max-width:900px){
 .r-shell.ui-v6>.r-sidebar{margin:0!important;height:100dvh!important;max-height:100dvh!important;border-radius:0 22px 22px 0!important}
 .r-shell.ui-v6 .unified-topbar{margin:8px 10px 0!important;top:8px!important;border-radius:17px!important}
}

/* 0.8.9.1 reusable Project Workspace Board */
.ux89-project-board{margin:18px 0 24px;padding:18px;border:1px solid var(--ds-border);border-radius:22px;background:color-mix(in srgb,var(--ds-surface) 94%,transparent);box-shadow:var(--ds-shadow-xs)}
.ux89-board-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}.ux89-board-head small{color:var(--ds-muted);font-weight:850;letter-spacing:.1em}.ux89-board-head h2{margin:3px 0 2px}.ux89-board-head p{margin:0;color:var(--ds-muted)}
.ux89-board-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(270px,330px);gap:12px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity}.ux89-column{border:1px solid var(--ds-border);border-radius:17px;background:var(--ds-surface-2);overflow:hidden;scroll-snap-align:start}.ux89-column>header{display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border-bottom:1px solid var(--ds-border);background:color-mix(in srgb,var(--ds-surface) 92%,transparent)}.ux89-column>header span{min-width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--ds-border);border-radius:999px;color:var(--ds-muted);font-size:.72rem}.ux89-card{margin:9px;padding:12px;border:1px solid var(--ds-border);border-radius:14px;background:var(--ds-surface);box-shadow:var(--ds-shadow-xs)}.ux89-card>a{display:grid;gap:5px;color:var(--ds-text);text-decoration:none}.ux89-card>a small{color:var(--ds-muted)}.ux89-meta{display:flex;gap:7px;flex-wrap:wrap;color:var(--ds-muted);font-size:.72rem}.ux89-card>a>i{height:4px;border-radius:99px;background:var(--ds-surface-2);overflow:hidden}.ux89-card>a>i>em{display:block;height:100%;background:var(--ds-primary);border-radius:inherit}.ux89-expand,.ux89-card-inline>button{width:100%;margin-top:9px;padding:8px 10px;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface-2);color:var(--ds-text);font-weight:750;cursor:pointer}.ux89-legal,.ux89-card-inline>div{display:grid;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--ds-border)}.ux89-legal>div{display:grid;gap:3px}.ux89-legal a,.ux89-card-inline a{color:var(--ds-text);text-decoration:none}.ux89-legal span,.ux89-card-inline small{display:block;color:var(--ds-muted);font-size:.72rem;line-height:1.4}.ux89-card-inline{padding:0 10px 10px}.ux89-card-inline p{margin:0;padding:7px 0;border-top:1px solid var(--ds-border)}
