Files
flowdeck/static/css/app.css
T
bruno c809a864e6
FlowDeck CI / test (push) Failing after 20s
FlowDeck CI / docker (push) Skipped
feat(editor): v4.8.0 Bloc Tableau simple (edition Notion via /table)
- Bloc table editable: slash /table, cellules contenteditable, auto-save
- Colonnes: poignee par colonne -> Insert left/right, Duplicate, Clear, Delete
- Lignes: + Row (bas) + menu contextuel -> Insert above/below, Dup, Clear, Del
- md2b importe les tableaux GFM pipe en bloc table (au lieu de paragraphes)
- Roundtrip markdown (JS + export Python MD/HTML/PDF)
- CSS .ftable-editor + menu flottant (app.css?v=4.8.0)
- VERSION/CHANGELOG/ROADMAP bump 4.8.0 (Collaboration -> v4.9.0, Agent -> v4.10.0)
2026-09-03 14:55:25 -04:00

4489 lines
104 KiB
CSS

/* ═══════════════════════════════════════════════════════════
FlowDeck Notion UI — Design System
Référence: Notion Light Mode (par défaut)
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* ===== LIGHT THEME (default) ===== */
:root {
--bg-primary: #FFFFFF;
--bg-secondary: #FBFBFA;
--bg-sidebar: #F7F6F3;
--bg-tertiary: #EDEDEC;
--bg-hover: #EFEFED;
--bg-active: #E8E7E4;
--bg-modal: #FFFFFF;
--text-primary: #37352F;
--text-secondary: #6B6B6B;
--text-dim: #9B9A97;
--text-muted: #B0B0B0;
--text: #37352F;
--border: #EDEDED;
--border-color: rgba(0,0,0,0.06);
--border-light: #EDEDEC;
--border-strong: #D3D3D0;
/* ===== Couleurs d'accent Notion ===== */
--accent: #2383E2;
--accent-hover: #1a6bc0;
--danger: #E03E3E;
--danger-hover: #C93535;
--blue: #3366CC;
--blue-bg: #E8F0FE;
--green: #00CC66;
--green-bg: #E6F4EA;
--yellow: #FFD700;
--orange: #D9730D;
--red: #E03E3E;
--purple: #9B72F0;
--pink: #E255A1;
--gray: #787774;
--brown: #9D6E4A;
/* ===== Typographie ===== */
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-mono: 'SF Mono', 'Fira Code', monospace;
--font-h1: 40px;
--font-h2: 30px;
--font-h3: 24px;
--font-body: 16px;
--font-small: 14px;
--font-tiny: 12px;
/* ===== Dimensions ===== */
--sidebar-width: 240px;
--sidebar-collapsed: 0px;
--topbar-height: 45px;
--radius-sm: 3px;
--radius-md: 4px;
--radius-lg: 6px;
--radius: 6px;
/* ===== Espacements ===== */
--space-xs: 4px;
--space-sm: 8px;
--space-md: 12px;
--space-lg: 16px;
--space-xl: 24px;
/* ===== Ombres ===== */
--shadow-popover: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.08);
--shadow-modal: 0 12px 32px rgba(0,0,0,0.12);
--shadow-drag: 0 8px 24px rgba(0,0,0,0.12);
/* ===== Transitions ===== */
--transition: 0.1s ease;
--transition-slow: 0.2s ease;
/* ===== Toast colors ===== */
--toast-success-bg: #0F7B6C;
--toast-success-text: #FFFFFF;
--toast-error-bg: #E03E3E;
--toast-error-text: #FFFFFF;
--toast-info-bg: #2383E2;
--toast-info-text: #FFFFFF;
}
/* ===== DARK THEME ===== */
[data-theme="dark"] {
--bg-primary: #191919;
--bg-secondary: #1F1F1F;
--bg-sidebar: #202020;
--bg-tertiary: #2D2D2D;
--bg-hover: #2A2A2A;
--bg-active: #2F2E2E;
--bg-modal: #252525;
--text-primary: #FFFFFF;
--text-secondary: #A0A0A0;
--text-dim: #6B6B6B;
--text-muted: #4A4A4A;
--text: #FFFFFF;
--border: #333333;
--border-color: rgba(255,255,255,0.06);
--border-light: #3a3a3a;
--border-strong: #4A4A4A;
--blue-bg: #1a2744;
--green-bg: #1a332a;
}
/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
height: 100%;
overflow: hidden;
font-family: var(--font-sans);
font-size: 14px;
color: var(--text-primary);
background: var(--bg-primary);
-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
/* ===== Layout Principal ===== */
.app-layout {
display: flex;
height: 100vh;
width: 100vw;
}
/* ═══════════════════════════════════════════════════════════
SIDEBAR
═══════════════════════════════════════════════════════════ */
.sidebar {
width: var(--sidebar-width);
min-width: var(--sidebar-width);
height: 100vh;
background: var(--bg-sidebar);
display: flex;
flex-direction: column;
overflow: visible;
flex-shrink: 0;
user-select: none;
}
.sidebar-scroll {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding-bottom: var(--space-sm);
}
.sidebar.collapsed {
width: 0;
min-width: 0;
overflow: hidden;
padding: 0;
}
/* Workspace header — Notion style */
.sidebar-workspace-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 8px;
margin: 4px 8px;
border-radius: 6px;
cursor: pointer;
transition: background 150ms;
min-height: 32px;
position: relative;
}
.sidebar-workspace-header:hover,
.sidebar-workspace-header.hover {
background: var(--bg-hover);
}
.sidebar-collapse-inline {
width: 22px; height: 22px;
display: flex; align-items: center; justify-content: center;
background: none; border: none; border-radius: 4px;
color: var(--text-dim); cursor: pointer; flex-shrink: 0;
opacity: 0; transition: opacity 150ms;
}
.sidebar-workspace-header:hover .sidebar-collapse-inline,
.sidebar-workspace-header.hover .sidebar-collapse-inline {
opacity: 1;
}
.sidebar-collapse-inline:hover {
background: var(--bg-active);
color: var(--text);
}
.sidebar-workspace {
/* keep for backward compat */
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-sm) var(--space-md);
min-height: var(--topbar-height);
}
.workspace-info {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.workspace-avatar {
width: 22px;
height: 22px;
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
}
.workspace-name {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
}
.workspace-chevron {
font-size: 10px;
color: var(--text-dim);
transition: transform 0.2s ease;
}
.workspace-chevron.open {
transform: rotate(180deg);
}
/* User menu dropdown */
.user-menu-dropdown {
position: absolute;
top: 100%;
left: 8px;
right: 8px;
margin-top: 4px;
background: var(--bg-primary);
border: 1px solid var(--border-strong);
border-radius: 10px;
box-shadow: var(--shadow-modal);
z-index: 400;
padding: 4px 0;
overflow: hidden;
}
.um-user-info {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
}
.um-avatar {
width: 28px; height: 28px;
background: var(--bg-tertiary);
border-radius: 6px;
display: flex; align-items: center; justify-content: center;
font-size: 14px; font-weight: 600; color: var(--text);
flex-shrink: 0;
}
.um-name { font-size: 14px; font-weight: 600; color: var(--text); }
.um-plan { font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.um-sep { height: 1px; background: var(--border); margin: 3px 0; }
.um-item {
display: flex; align-items: center; gap: 8px;
padding: 7px 14px; font-size: 13px; color: var(--text);
text-decoration: none; cursor: pointer; transition: background 100ms;
}
.um-item svg { flex-shrink: 0; }
.um-item:hover { background: var(--bg-hover); }
.um-danger { color: var(--danger); }
.um-danger:hover { background: rgba(255,80,80,.1); }
.um-version { font-size: 11px; color: var(--text-dim); padding: 4px 14px 2px; }
.um-section-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; padding: 4px 14px 2px; }
.sidebar-actions {
display: flex;
align-items: center;
gap: 2px;
}
.sidebar-action-btn {
width: 28px;
height: 28px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
font-size: 14px;
transition: background var(--transition);
}
.sidebar-action-btn:hover {
background: var(--bg-hover);
}
/* Navigation items */
.sidebar-nav {
display: flex;
align-items: center;
gap: var(--space-xs);
padding: 0 var(--space-md);
margin-bottom: var(--space-xs);
}
.sidebar-nav-item {
flex: 1;
display: flex;
align-items: center;
gap: var(--space-sm);
padding: 6px 8px;
border-radius: var(--radius-md);
font-size: 14px;
color: var(--text-primary);
transition: background var(--transition);
white-space: nowrap;
}
.sidebar-nav-item:hover {
background: var(--bg-hover);
}
.sidebar-nav-item.active {
background: var(--bg-active);
}
.sidebar-nav-item .nav-icon {
font-size: 16px;
width: 20px;
text-align: center;
flex-shrink: 0;
}
/* Navigation icon row (Notion top bar) */
.sidebar-nav-row {
display: flex; align-items: center; gap: 3px;
padding: 6px 6px; margin: 0 2px;
}
.nav-icon-btn {
display: flex; align-items: center; gap: 8px;
padding: 6px; border-radius: 6px;
color: var(--text-secondary); transition: background 0.15s, color 0.15s;
}
.nav-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-icon-btn.active { background: var(--bg-active); color: var(--text-primary); }
/* Home button: icon + text */
.nav-icon-btn.home-btn {
padding: 6px 8px; gap: 8px;
font-size: 14px; font-weight: 500;
}
/* Collapse button on the right */
.nav-icon-btn.collapse-btn { margin-left: auto; }
/* Empty hint */
.sidebar-item.empty-hint { color: var(--text-dim); font-size: 12px; cursor: default; }
.sidebar-item.empty-hint:hover { background: none; }
.sidebar-item.empty-hint .page-name { font-size: 12px; }
/* Sections */
.sidebar-section {
padding: var(--space-xs) var(--space-md);
}
.sidebar-section-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 6px;
border-radius: var(--radius-sm);
cursor: pointer;
transition: background var(--transition);
user-select: none;
}
.sidebar-section-header:hover {
background: var(--bg-hover);
}
.sidebar-section-header:active {
background: var(--bg-active);
transform: scale(0.995);
}
.sidebar-section-title {
display: flex;
align-items: center;
gap: 3px;
font-size: 12px;
font-weight: 600;
color: var(--text-dim);
text-transform: none;
letter-spacing: 0;
min-width: 0;
}
.sidebar-section-title .chevron {
font-size: 8px;
width: 14px;
height: 14px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
color: var(--text-muted);
transition: transform 180ms ease, color var(--transition);
will-change: transform;
}
.sidebar-section-title .chevron.open {
transform: rotate(90deg);
color: var(--text-secondary);
}
.sidebar-section-title .section-icon {
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
color: var(--text-muted);
transition: color var(--transition);
}
.sidebar-section-header:hover .section-icon {
color: var(--text-secondary);
}
.sidebar-section-title .section-label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-dim);
transition: color var(--transition);
}
.sidebar-section-header:hover .section-label {
color: var(--text-secondary);
}
.sidebar-section-actions {
display: flex;
align-items: center;
gap: 1px;
opacity: 0;
transition: opacity 120ms ease;
}
.sidebar-section-header:hover .sidebar-section-actions {
opacity: 1;
}
.section-action-btn {
width: 22px;
height: 22px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
font-size: 14px;
background: none;
border: none;
cursor: pointer;
transition: background var(--transition), color var(--transition);
}
.section-action-btn:hover {
background: var(--bg-tertiary);
color: var(--text);
}
/* Section menu (⋮) button */
.section-menu-btn {
font-size: 16px;
font-weight: 700;
letter-spacing: 1px;
opacity: 0.6;
}
.section-menu-btn:hover {
opacity: 1;
}
/* Section menu dropdown */
.section-menu-overlay {
position: fixed;
inset: 0;
z-index: 999;
}
.section-menu {
position: fixed;
z-index: 1000;
min-width: 200px;
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: 8px;
padding: 4px;
box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.15);
}
.section-menu-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border-radius: 5px;
cursor: pointer;
font-size: 13px;
color: var(--text);
transition: background 120ms;
}
.section-menu-item:hover {
background: var(--bg-hover);
}
.section-menu-item .smi-icon {
width: 18px;
text-align: center;
font-size: 14px;
flex-shrink: 0;
}
.section-menu-item .smi-label {
flex: 1;
}
.section-menu-item .smi-check {
color: var(--accent);
font-size: 14px;
}
.section-menu-sep {
height: 1px;
background: var(--border);
margin: 4px 8px;
}
.section-menu-customize {
border-top: 1px solid var(--border);
margin-top: 2px;
padding-top: 8px;
}
/* Customize Sidebar Panel */
.sidebar-customize-panel {
padding: 8px 12px;
}
.scp-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
padding: 4px 0;
}
.scp-title {
font-size: 14px;
font-weight: 600;
color: var(--text);
}
.scp-done {
font-size: 13px;
color: var(--accent);
background: none;
border: none;
cursor: pointer;
padding: 4px 12px;
border-radius: 6px;
transition: background 120ms;
font-weight: 500;
}
.scp-done:hover {
background: var(--bg-hover);
}
.scp-list {
display: flex;
flex-direction: column;
gap: 1px;
}
.scp-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 8px;
border-radius: 6px;
cursor: pointer;
transition: background 120ms;
}
.scp-item:hover {
background: var(--bg-hover);
}
.scp-item-left {
display: flex;
align-items: center;
gap: 8px;
}
.scp-item-icon {
font-size: 16px;
width: 22px;
text-align: center;
flex-shrink: 0;
}
.scp-item-name {
font-size: 13px;
color: var(--text);
}
.scp-item-eye {
font-size: 16px;
opacity: 0.7;
}
.scp-item-eye-off {
opacity: 0.3;
}
.customize-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.3);
z-index: 998;
}
/* x-cloak for Alpine.js */
[x-cloak] { display: none !important; }
/* Sidebar items (pages) */
.sidebar-items {
list-style: none;
}
.sidebar-item {
position: relative;
display: flex;
align-items: center;
gap: 4px;
padding: 2px 4px;
padding-left: 4px;
border-radius: var(--radius-sm);
font-size: 13px;
color: var(--text-primary);
cursor: pointer;
transition: background var(--transition);
min-height: 24px;
}
.sidebar-item:hover {
background: var(--bg-hover);
}
.sidebar-item.active {
background: var(--bg-active);
}
/* Tree toggle button (▶/▼ chevron) */
.tree-toggle {
width: 18px;
height: 18px;
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
font-size: 9px;
flex-shrink: 0;
transition: transform 0.15s ease, background var(--transition);
padding: 0;
margin: 0;
background: none;
border: none;
}
.tree-toggle:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.tree-toggle.expanded {
transform: rotate(90deg);
}
.tree-toggle-placeholder {
width: 18px;
height: 18px;
flex-shrink: 0;
}
/* Tree children wrapper */
.tree-children-wrapper {
list-style: none;
}
.tree-children-wrapper .sidebar-items {
padding-left: 0;
}
.sidebar-item .page-icon {
font-size: 14px;
width: 18px;
text-align: center;
flex-shrink: 0;
cursor: grab;
}
/* Outline SVG icons (from _icons.html / getSvgIcon) */
.page-icon-svg {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
flex-shrink: 0;
}
.page-icon-svg svg {
vertical-align: middle;
}
.nav-icon-inline { margin-right: 6px; vertical-align: middle; display: inline-flex; align-items: center; }
.nav-icon-inline svg { vertical-align: middle; }
.empty-state-icon { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.sidebar-item:active .page-icon {
cursor: grabbing;
}
.sidebar-item .page-name {
flex: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--text);
text-decoration: none;
font-size: 13px;
}
/* Tree chevron for expand/collapse */
.tree-chevron {
width: 16px;
height: 16px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
font-size: 8px;
padding: 0;
border-radius: 3px;
transition: transform 150ms, color 100ms;
}
.tree-chevron:hover {
color: var(--text);
background: var(--bg-hover);
}
.tree-chevron.open {
transform: rotate(90deg);
}
/* Folder link styling */
.tree-folder-link {
flex: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--text);
font-size: 13px;
cursor: pointer;
font-weight: 500;
}
.tree-folder-link:hover {
color: var(--accent);
}
.sidebar-item .item-actions {
display: flex;
align-items: center;
gap: 2px;
opacity: 0;
transition: opacity var(--transition);
}
.sidebar-item:hover .item-actions {
opacity: 1;
}
.item-action-btn {
width: 22px;
height: 22px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
font-size: 14px;
transition: background var(--transition);
}
.item-action-btn:hover {
background: var(--bg-tertiary);
}
/* Sidebar footer */
.sidebar-footer {
margin-top: auto;
padding: var(--space-sm) var(--space-md);
}
.sidebar-invite {
background: var(--bg-hover);
border-radius: var(--radius-md);
padding: var(--space-sm) var(--space-md);
margin-bottom: var(--space-sm);
position: relative;
}
.sidebar-invite-title {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 2px;
}
.sidebar-invite-desc {
font-size: 12px;
color: var(--text-secondary);
}
.sidebar-invite-close {
position: absolute;
top: 6px;
right: 6px;
width: 20px;
height: 20px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
font-size: 12px;
}
.sidebar-new-chat {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px var(--space-md);
background: var(--bg-hover);
border-radius: var(--radius-md);
font-size: 14px;
color: var(--text-primary);
width: 100%;
transition: background var(--transition);
}
.sidebar-new-chat:hover {
background: var(--bg-tertiary);
}
.sidebar-new-chat .shortcut {
font-size: 12px;
color: var(--text-secondary);
}
/* ═══════════════════════════════════════════════════════════
CONTEXT MENU
═══════════════════════════════════════════════════════════ */
.context-menu {
position: fixed;
background: var(--bg-modal);
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
box-shadow: 0 8px 24px rgba(0,0,0,0.4);
width: max-content;
max-width: 240px;
padding: var(--space-xs) 0;
z-index: 1000;
display: none;
}
.context-menu.visible {
display: block;
}
.context-menu-section {
padding: 2px 0;
}
.context-menu-section + .context-menu-section {
border-top: 1px solid var(--border);
}
.context-menu-item {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: 6px var(--space-md);
font-size: 13px;
color: var(--text-primary);
cursor: pointer;
transition: background var(--transition);
white-space: nowrap;
}
.context-menu-item:hover {
background: var(--bg-hover);
}
.context-menu-item .menu-icon {
width: 18px;
text-align: center;
font-size: 14px;
}
.context-menu-item .menu-shortcut {
margin-left: auto;
color: var(--text-dim);
font-size: 12px;
}
.context-menu-label {
padding: 4px var(--space-md);
font-size: 11px;
color: var(--text-dim);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* ═══════════════════════════════════════════════════════════
TOOLTIP
═══════════════════════════════════════════════════════════ */
.tooltip {
position: fixed;
background: var(--bg-modal);
border: 1px solid var(--border-light);
border-radius: var(--radius-sm);
padding: 4px 8px;
font-size: 12px;
color: var(--text-primary);
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
z-index: 2000;
pointer-events: none;
display: none;
white-space: nowrap;
}
/* ═══════════════════════════════════════════════════════════
MAIN CONTENT
═══════════════════════════════════════════════════════════ */
.main-wrapper {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 0;
}
/* Topbar */
.topbar {
display: flex;
align-items: center;
height: var(--topbar-height);
min-height: var(--topbar-height);
padding: 0 var(--space-lg);
gap: var(--space-md);
flex-shrink: 0;
}
.topbar-left {
display: flex;
align-items: center;
gap: var(--space-sm);
flex-shrink: 0;
}
.topbar-center {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
min-width: 0;
}
.topbar-page-title {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: 14px;
color: var(--text-primary);
}
.topbar-page-title .page-icon {
font-size: 16px;
}
.topbar-page-status {
font-size: 12px;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 4px;
}
.topbar-right {
display: flex;
align-items: center;
gap: var(--space-xs);
flex-shrink: 0;
}
.topbar-btn {
height: 28px;
min-width: 28px;
padding: 0 8px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
gap: 4px;
font-size: 13px;
color: var(--text-secondary);
transition: background var(--transition), color var(--transition);
}
.topbar-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.topbar-btn.share-btn {
background: var(--bg-tertiary);
color: var(--text-primary);
padding: 0 12px;
}
.topbar-btn.share-btn:hover {
background: var(--bg-hover);
}
.topbar-breadcrumb {
display: flex;
align-items: center;
gap: 4px;
font-size: 14px;
color: var(--text-secondary);
}
/* ── Unified Header Breadcrumb ── */
.header-breadcrumb {
display: flex;
align-items: center;
gap: 2px;
font-size: 13px;
overflow: visible;
flex: 1;
min-width: 0;
}
.crumb-cell {
display: inline-flex;
align-items: center;
min-width: 0;
}
.crumb-anchor {
position: relative;
display: inline-flex;
align-items: center;
}
.header-page-icon {
font-size: 16px;
flex-shrink: 0;
margin-right: 2px;
}
.breadcrumb-link {
color: var(--text-secondary);
text-decoration: none;
white-space: nowrap;
flex-shrink: 0;
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
padding: 2px 6px;
border: none;
background: transparent;
font: inherit;
font-size: 13px;
line-height: 1.4;
cursor: pointer;
border-radius: 4px;
transition: background 100ms, color 100ms;
}
.breadcrumb-link:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.breadcrumb-link.disabled {
cursor: default;
opacity: 0.6;
}
.crumb-ellipsis {
font-weight: 600;
letter-spacing: 1px;
}
.breadcrumb-sep {
color: var(--text-tertiary);
flex-shrink: 0;
font-size: 13px;
margin: 0 1px;
user-select: none;
}
.breadcrumb-current {
color: var(--text-primary);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
button.breadcrumb-current { max-width: 260px; }
.header-actions {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
}
/* ── Breadcrumb navigation dropdown (Notion-style) ── */
.fd-nav-menu {
position: absolute;
top: calc(100% + 4px);
left: 0;
min-width: 200px;
max-width: 280px;
overflow: visible;
background: var(--bg-modal, #fff);
border: 1px solid var(--border);
border-radius: var(--radius-lg, 8px);
box-shadow: var(--shadow-popover, 0 6px 24px rgba(0,0,0,0.25));
z-index: 2000;
padding: 4px;
}
.fd-nav-submenu {
top: -4px;
left: calc(100% + 2px);
}
.fd-nav-section {
padding: 3px 8px 4px;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.02em;
color: var(--text-tertiary);
text-transform: none;
}
.fd-nav-empty {
padding: 6px 8px;
font-size: 12px;
color: var(--text-tertiary);
}
.fd-nav-item {
position: relative;
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
border-radius: 6px;
font-size: 13px;
color: var(--text-primary);
cursor: pointer;
white-space: nowrap;
transition: background 100ms;
}
.fd-nav-item:hover {
background: var(--bg-hover);
}
.fd-nav-ico {
font-size: 14px;
width: 18px;
text-align: center;
flex-shrink: 0;
}
.fd-nav-label {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
}
.fd-nav-arrow {
color: var(--text-tertiary);
font-size: 14px;
flex-shrink: 0;
margin-left: 2px;
}
/* ── Dropdown panel (reusable) ── */
.dropdown-panel {
position: absolute;
top: 100%;
left: 0;
display: none;
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-popover);
z-index: 1000;
padding: 4px 0;
min-width: 180px;
}
.dropdown-panel.visible {
display: block;
}
.dropdown-option {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: 6px 12px;
font-size: 13px;
color: var(--text-primary);
cursor: pointer;
white-space: nowrap;
transition: background var(--transition);
}
.dropdown-option:hover {
background: var(--bg-hover);
}
.option-icon {
font-size: 16px;
width: 20px;
text-align: center;
}
.topbar-breadcrumb a:hover {
color: var(--text-primary);
}
/* Content area */
.content-area {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 0;
}
/* Page header */
.page-header {
padding: var(--space-xl) var(--space-xl) var(--space-md);
}
.page-cover {
width: 100%;
height: 160px;
background: linear-gradient(135deg, var(--bg-tertiary), var(--border-strong));
border-radius: 0;
position: relative;
margin-bottom: 0;
}
.page-cover-actions {
position: absolute;
top: var(--space-sm);
right: var(--space-sm);
display: flex;
gap: var(--space-xs);
}
.cover-btn {
padding: 4px 10px;
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
font-size: 12px;
color: var(--text-primary);
transition: background var(--transition);
}
.cover-btn:hover {
background: var(--bg-hover);
}
.page-title-area {
padding: 0 var(--space-xl);
margin-bottom: var(--space-sm);
}
.page-title {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.page-title .page-icon-lg {
font-size: 32px;
}
.page-title h1 {
font-size: 32px;
font-weight: 700;
color: var(--text-primary);
border: none;
background: none;
outline: none;
padding: 4px 0;
}
.page-description {
padding: 0 var(--space-xl);
margin-bottom: var(--space-md);
font-size: 14px;
color: var(--text-secondary);
line-height: 1.6;
max-width: 800px;
}
/* View tabs */
.view-tabs {
display: flex;
align-items: center;
gap: 2px;
padding: 0 var(--space-xl);
margin-bottom: var(--space-xs);
border-bottom: 1px solid var(--border);
overflow-x: auto;
}
.view-tab {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
font-size: 13px;
color: var(--text-secondary);
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
transition: background var(--transition), color var(--transition);
white-space: nowrap;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
}
.view-tab:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.view-tab.active {
color: var(--text-primary);
background: var(--bg-tertiary);
border-bottom-color: var(--text-primary);
}
.view-tab .tab-icon {
font-size: 14px;
}
.view-toolbar {
display: flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-xl);
flex-shrink: 0;
}
.view-toolbar-spacer {
flex: 1;
}
.toolbar-btn {
height: 28px;
min-width: 28px;
padding: 0 8px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
gap: 4px;
font-size: 13px;
color: var(--text-secondary);
transition: background var(--transition), color var(--transition);
}
.toolbar-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.toolbar-btn.active {
background: var(--bg-active);
color: var(--text-primary);
}
.btn-new {
background: var(--blue) !important;
color: #FFFFFF !important;
padding: 6px 12px !important;
border-radius: var(--radius-sm);
font-weight: 500;
height: 28px;
}
.btn-new:hover {
opacity: 0.9;
}
/* ═══════════════════════════════════════════════════════════
KANBAN
═══════════════════════════════════════════════════════════ */
.kanban-container {
display: flex;
gap: 0;
padding: 0 var(--space-sm);
overflow-x: auto;
overflow-y: hidden;
flex: 1;
min-height: 0;
}
.kanban-column {
min-width: 260px;
max-width: 320px;
flex: 1;
display: flex;
flex-direction: column;
padding: 0 var(--space-xs);
}
.kanban-column-header {
display: flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-xs) var(--space-sm);
font-size: 13px;
font-weight: 600;
color: var(--text-secondary);
cursor: pointer;
border-radius: var(--radius-sm);
transition: background var(--transition);
}
.kanban-column-header:hover {
background: var(--bg-hover);
}
.kanban-column-header .col-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.kanban-column-header .col-count {
font-weight: 400;
color: var(--text-dim);
margin-left: auto;
}
/* Group headers */
.kanban-group-header {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-xs) var(--space-sm);
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
border-radius: var(--radius-sm);
cursor: pointer;
transition: background var(--transition);
margin-top: var(--space-sm);
}
.kanban-group-header:hover {
background: var(--bg-hover);
}
.kanban-group-header .group-chevron {
font-size: 10px;
transition: transform var(--transition);
color: var(--text-dim);
}
.kanban-group-header .group-count {
font-weight: 400;
color: var(--text-dim);
margin-left: auto;
}
/* Cards */
.kanban-cards {
display: flex;
flex-direction: column;
gap: var(--space-xs);
padding: var(--space-xs) 0;
min-height: 20px;
}
.kanban-card {
padding: var(--space-sm) var(--space-md);
border-radius: var(--radius-md);
background: var(--bg-secondary);
border: 1px solid var(--border);
cursor: grab;
transition: box-shadow var(--transition), border-color var(--transition);
position: relative;
}
.kanban-card:hover {
border-color: var(--border-light);
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.kanban-card:active {
cursor: grabbing;
}
.kanban-card .card-header {
display: flex;
align-items: flex-start;
gap: var(--space-sm);
margin-bottom: 8px;
}
.kanban-card .card-icon {
font-size: 16px;
flex-shrink: 0;
margin-top: 1px;
}
.kanban-card .card-title {
font-size: 14px;
font-weight: 500;
color: var(--text-primary);
line-height: 1.4;
word-break: break-word;
}
.kanban-card .card-meta {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: 12px;
color: var(--text-secondary);
margin-top: var(--space-xs);
}
.kanban-card .card-assignee {
display: flex;
align-items: center;
gap: 4px;
}
.kanban-card .card-avatar {
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--bg-tertiary);
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 600;
}
.kanban-card .card-date {
display: flex;
align-items: center;
gap: 4px;
}
.kanban-card .card-tag {
display: inline-flex;
align-items: center;
padding: 1px 6px;
border-radius: var(--radius-sm);
font-size: 11px;
font-weight: 500;
}
/* Card colors by status */
.card-status-todo {
background: var(--bg-secondary);
border-left: 3px solid var(--gray);
}
.card-status-progress {
background: var(--blue-bg);
border-left: 3px solid var(--blue);
}
.card-status-complete {
background: var(--green-bg);
border-left: 3px solid var(--green);
}
/* New card button */
.kanban-new-card {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-xs) var(--space-md);
color: var(--text-secondary);
font-size: 13px;
cursor: pointer;
border-radius: var(--radius-sm);
transition: background var(--transition), color var(--transition);
}
.kanban-new-card:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.kanban-new-group {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
color: var(--text-secondary);
font-size: 13px;
cursor: pointer;
border-radius: var(--radius-sm);
transition: background var(--transition);
margin-top: var(--space-sm);
}
.kanban-new-group:hover {
background: var(--bg-hover);
}
/* ═══════════════════════════════════════════════════════════
TABLE VIEW
═══════════════════════════════════════════════════════════ */
.table-container {
padding: 0 var(--space-xl);
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th {
text-align: left;
padding: var(--space-sm) var(--space-md);
font-size: 12px;
font-weight: 600;
color: var(--text-dim);
border-bottom: 1px solid var(--border);
cursor: pointer;
white-space: nowrap;
user-select: none;
}
.data-table th:hover {
color: var(--text-primary);
}
.data-table th .th-icon {
margin-right: 4px;
}
.data-table td {
padding: var(--space-sm) var(--space-md);
font-size: 14px;
border-bottom: 1px solid var(--border);
}
.data-table tr:hover td {
background: var(--bg-hover);
}
.table-name-cell {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.table-name-cell .item-icon {
font-size: 16px;
}
/* ═══════════════════════════════════════════════════════════
STATUS OVERVIEW (Donut Chart)
═══════════════════════════════════════════════════════════ */
.status-overview {
display: flex;
flex-direction: column;
align-items: center;
padding: var(--space-xl);
gap: var(--space-xl);
}
.donut-container {
position: relative;
width: 200px;
height: 200px;
}
.donut-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.donut-total {
font-size: 36px;
font-weight: 700;
color: var(--text-primary);
}
.donut-label {
font-size: 12px;
color: var(--text-secondary);
}
.status-legend {
display: flex;
flex-wrap: wrap;
gap: var(--space-md);
justify-content: center;
}
.legend-item {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: 13px;
color: var(--text-secondary);
}
.legend-dot {
width: 10px;
height: 10px;
border-radius: 50%;
}
/* ═══════════════════════════════════════════════════════════
TEAM LOAD (Barres)
═══════════════════════════════════════════════════════════ */
.team-load {
display: flex;
align-items: flex-end;
gap: var(--space-xl);
padding: var(--space-xl);
min-height: 300px;
}
.team-member {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
}
.team-bar-stack {
display: flex;
flex-direction: column-reverse;
width: 48px;
border-radius: var(--radius-sm);
overflow: hidden;
min-height: 40px;
}
.team-bar-segment {
width: 100%;
transition: height var(--transition);
}
.team-bar-segment.todo { background: var(--blue); }
.team-bar-segment.progress { background: var(--orange); }
.team-bar-segment.done { background: var(--green); }
.team-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--bg-tertiary);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
}
.team-count {
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
}
/* ═══════════════════════════════════════════════════════════
FILTERS & SORT PANELS
═══════════════════════════════════════════════════════════ */
.filter-bar {
display: flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-xl);
flex-wrap: wrap;
min-height: 32px;
}
.filter-pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
font-size: 12px;
color: var(--text-primary);
cursor: pointer;
transition: background var(--transition);
}
.filter-pill:hover {
background: var(--bg-hover);
}
.filter-pill .remove-filter {
font-size: 14px;
opacity: 0.6;
}
.filter-pill .remove-filter:hover {
opacity: 1;
}
.filter-add-btn {
padding: 3px 8px;
font-size: 12px;
color: var(--text-secondary);
border-radius: var(--radius-sm);
transition: background var(--transition), color var(--transition);
}
.filter-add-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.filter-reset-btn {
margin-left: auto;
padding: 3px 8px;
font-size: 12px;
color: var(--text-secondary);
border-radius: var(--radius-sm);
transition: color var(--transition);
}
.filter-reset-btn:hover {
color: var(--red);
}
/* Panel dropdown helpers */
.dropdown-search {
padding: var(--space-sm);
}
.dropdown-search input {
width: 100%;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 6px var(--space-sm);
font-size: 13px;
color: var(--text-primary);
outline: none;
}
.dropdown-search input:focus {
border-color: var(--blue);
}
.dropdown-option-list {
max-height: 240px;
overflow-y: auto;
}
.dropdown-option {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: 6px var(--space-md);
font-size: 13px;
color: var(--text-primary);
cursor: pointer;
transition: background var(--transition);
}
.dropdown-option:hover {
background: var(--bg-hover);
}
.dropdown-option .option-icon {
width: 18px;
text-align: center;
}
.dropdown-option .option-checkbox {
width: 16px;
height: 16px;
border: 1px solid var(--text-dim);
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
transition: background var(--transition), border-color var(--transition);
}
.dropdown-option.selected .option-checkbox {
background: var(--blue);
border-color: var(--blue);
}
.dropdown-option .option-color-dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.dropdown-footer {
padding: var(--space-sm) var(--space-md);
border-top: 1px solid var(--border);
}
.dropdown-footer button {
font-size: 12px;
color: var(--text-secondary);
cursor: pointer;
}
.dropdown-footer button:hover {
color: var(--text-primary);
}
/* Sort panel */
.sort-panel {
position: relative;
}
.sort-list {
padding: var(--space-xs) 0;
}
.sort-item {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: 6px var(--space-md);
}
.sort-item .sort-field {
display: flex;
align-items: center;
gap: var(--space-sm);
flex: 1;
font-size: 13px;
}
.sort-item .sort-direction {
font-size: 12px;
color: var(--text-secondary);
cursor: pointer;
padding: 2px 6px;
border-radius: var(--radius-sm);
}
.sort-item .sort-direction:hover {
background: var(--bg-hover);
}
.sort-delete {
color: var(--text-dim);
cursor: pointer;
font-size: 14px;
padding: 2px 4px;
}
.sort-delete:hover {
color: var(--red);
}
/* ═══════════════════════════════════════════════════════════
MODAL / DIALOG
═══════════════════════════════════════════════════════════ */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 500;
}
.modal-container {
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-modal);
max-width: 600px;
width: 90%;
max-height: 80vh;
display: flex;
flex-direction: column;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-md) var(--space-lg);
border-bottom: 1px solid var(--border);
}
.modal-header h3 {
font-size: 16px;
font-weight: 600;
}
.modal-close {
width: 28px;
height: 28px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: var(--text-secondary);
cursor: pointer;
transition: background var(--transition);
}
.modal-close:hover {
background: var(--bg-hover);
}
.modal-body {
padding: var(--space-lg);
overflow-y: auto;
}
/* ═══════════════════════════════════════════════════════════
UTILITIES
═══════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.text-dim { color: var(--text-secondary); }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.font-semibold { font-weight: 600; }
/* Library table */
.library-table-header {
display: flex; padding: 8px 12px; border-bottom: 1px solid var(--border);
font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.library-table-row {
display: flex; align-items: center; padding: 8px 12px; text-decoration: none;
color: var(--text-primary); border-radius: 6px; transition: background 0.15s;
}
.library-table-row:hover { background: var(--bg-hover); }
.lib-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-col-name { flex: 1.5; display: flex; align-items: center; gap: 10px; }
.lib-col-author { width: 140px; font-size: 13px; color: var(--text-dim); }
.lib-col-source { width: 120px; font-size: 13px; color: var(--text-dim); }
.lib-col-edited { width: 140px; font-size: 13px; color: var(--text-dim); }
.lib-col-visited { width: 140px; font-size: 13px; color: var(--text-dim); }
.lib-empty { text-align: center; padding: 48px; color: var(--text-dim); }
.lib-empty h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-primary); }
.lib-empty p { font-size: 13px; }
/* Trash */
.trash-filter {
display: flex; align-items: center; gap: 6px;
padding: 6px 12px; border-radius: 6px;
font-size: 13px; color: var(--text-primary);
background: var(--bg-tertiary); transition: background 0.15s;
}
.trash-filter:hover { background: var(--bg-hover); }
.trash-filter.active { color: var(--accent); background: rgba(35,131,226,0.1); }
.trash-item {
display: flex; align-items: center; gap: 12px;
padding: 10px 12px; border-radius: 6px; transition: background 0.15s;
}
.trash-item:hover { background: var(--bg-hover); }
.trash-item-icon { font-size: 18px; flex-shrink: 0; }
.trash-item-info { flex: 1; min-width: 0; }
.trash-item-name { display: block; font-size: 14px; color: var(--text-primary); font-weight: 500; }
.trash-item-path { display: block; font-size: 12px; color: var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.trash-item-btn {
width: 32px; height: 32px; border-radius: 6px;
display: flex; align-items: center; justify-content: center;
font-size: 14px; color: var(--text-secondary); transition: background 0.15s;
}
.trash-item-btn:hover { background: var(--bg-tertiary); }
.ml-auto { margin-left: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
/* Sortable ghost */
.sortable-ghost { opacity: 0.4; }
.sortable-drag { box-shadow: var(--shadow-drag) !important; }
/* ═══════════════════════════════════════════════════════════
NOTION-STYLE BLOCK EDITOR
═══════════════════════════════════════════════════════════ */
/* Editor wrapper */
.page-editor-wrapper {
flex: 1;
overflow-y: auto;
padding: 0;
min-height: 0;
}
/* Page title area */
.page-cover-area {
padding: 48px 64px 12px;
max-width: 900px;
margin: 0 auto;
}
.page-title-block {
display: flex;
align-items: flex-start;
gap: 8px;
}
.page-icon-emoji {
font-size: 36px;
cursor: pointer;
flex-shrink: 0;
padding-top: 2px;
user-select: none;
}
.page-title-input {
flex: 1;
font-size: 40px;
font-weight: 700;
line-height: 1.2;
color: var(--text-primary);
outline: none;
min-height: 50px;
padding: 0;
border: none;
word-break: break-word;
}
.page-title-input:empty::before {
content: 'New page';
color: var(--text-dim);
pointer-events: none;
}
/* Blocks container */
.blocks-container {
padding: 8px 64px 96px;
max-width: 900px;
margin: 0 auto;
min-height: 300px;
}
.blocks-empty {
padding: 40px 0;
text-align: center;
}
.blocks-empty-hint {
color: var(--text-dim);
font-size: 15px;
}
/* Block wrapper */
.block-wrapper {
position: relative;
display: flex;
align-items: flex-start;
gap: 4px;
padding: 2px 0;
margin: 1px 0;
border-radius: 4px;
transition: background 0.1s ease;
}
.block-wrapper:hover {
background: rgba(0,0,0,0.02);
}
/* 6-dot drag handle */
.block-handle {
position: absolute;
left: -40px;
top: 4px;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
cursor: grab;
opacity: 0;
transition: opacity 0.15s ease;
border-radius: 3px;
fill: var(--text-dim);
}
.block-handle.visible {
opacity: 1;
}
.block-handle:hover {
background: var(--bg-hover);
fill: var(--text-secondary);
}
.block-handle:active {
cursor: grabbing;
}
/* Block actions (+ button) */
.block-actions {
position: absolute;
right: -60px;
top: 2px;
display: flex;
gap: 2px;
opacity: 0;
transition: opacity 0.15s ease;
}
.block-actions.visible {
opacity: 1;
}
.block-add-btn {
width: 22px;
height: 22px;
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-dim);
font-size: 16px;
cursor: pointer;
transition: background 0.1s;
}
.block-add-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.block-drag-btn {
width: 22px;
height: 22px;
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-dim);
font-size: 11px;
cursor: grab;
transition: background 0.1s;
}
.block-drag-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
/* Block content (base) */
.block-content {
flex: 1;
font-size: 16px;
line-height: 1.6;
color: var(--text-primary);
outline: none;
padding: 3px 2px;
min-height: 28px;
word-break: break-word;
}
.block-content.empty::before {
content: attr(data-placeholder);
color: var(--text-dim);
pointer-events: none;
font-style: normal;
}
/* Headings */
.block-h1 {
font-size: 32px;
font-weight: 700;
line-height: 1.2;
padding: 8px 2px 4px;
}
.block-h2 {
font-size: 24px;
font-weight: 600;
line-height: 1.3;
padding: 6px 2px 3px;
}
.block-h3 {
font-size: 20px;
font-weight: 600;
line-height: 1.3;
padding: 4px 2px 2px;
}
.block-h4 {
font-size: 16px;
font-weight: 600;
line-height: 1.4;
padding: 4px 2px 2px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-dim);
}
/* Bulleted list */
.block-bullet {
padding-left: 18px;
position: relative;
}
.block-bullet::before {
content: '\2022';
position: absolute;
left: 2px;
top: 3px;
color: var(--text-primary);
font-size: 16px;
}
/* Numbered list */
.block-numbered {
padding-left: 22px;
position: relative;
}
/* To-do */
.block-todo {
display: flex;
align-items: flex-start;
gap: 6px;
padding: 2px 2px;
}
.block-todo .todo-checkbox {
margin-top: 5px;
width: 16px;
height: 16px;
accent-color: var(--blue);
cursor: pointer;
flex-shrink: 0;
}
.block-todo div {
flex: 1;
outline: none;
font-size: 16px;
line-height: 1.6;
min-height: 26px;
word-break: break-word;
}
/* Toggle */
.block-toggle {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 2px;
}
.toggle-title-row {
display: flex;
align-items: flex-start;
gap: 4px;
}
.toggle-chevron {
width: 20px;
height: 20px;
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-primary);
font-size: 10px;
cursor: pointer;
flex-shrink: 0;
margin-top: 4px;
transition: transform 0.2s ease;
}
.toggle-chevron.open {
transform: rotate(90deg);
}
.toggle-chevron:hover {
background: var(--bg-hover);
}
.block-toggle .toggle-title {
flex: 1;
outline: none;
font-size: 16px;
line-height: 1.6;
min-height: 26px;
word-break: break-word;
}
/* Quote */
.block-quote {
border-left: 3px solid var(--text-primary);
padding: 4px 14px;
margin: 4px 0;
}
/* Code block */
.block-code {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 4px;
margin: 8px 0;
overflow: hidden;
}
.code-lang-label {
padding: 4px 12px;
font-size: 12px;
color: var(--text-dim);
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border);
}
.block-code pre {
margin: 0;
padding: 12px 16px;
overflow-x: auto;
}
.block-code code {
outline: none;
font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
font-size: 14px;
line-height: 1.5;
color: var(--text-primary);
white-space: pre-wrap;
word-break: break-word;
display: block;
min-height: 28px;
}
.block-code code:empty::before {
content: 'Type code...';
color: var(--text-dim);
}
/* Divider */
.block-divider {
border: none;
border-top: 1px solid var(--border);
margin: 8px 0;
width: 100%;
}
/* Callout */
.block-callout {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 14px 16px;
border-radius: 4px;
margin: 4px 0;
position: relative;
}
.block-callout .callout-icon {
font-size: 20px;
flex-shrink: 0;
cursor: pointer;
transition: transform .1s ease;
}
.block-callout .callout-icon:hover {
transform: scale(1.1);
}
.block-callout > div[data-bid] {
flex: 1;
outline: none;
font-size: 16px;
line-height: 1.6;
min-height: 24px;
}
.callout-icon-picker {
position: absolute;
top: calc(100% + 4px);
left: 12px;
z-index: 50;
display: flex;
flex-wrap: wrap;
gap: 2px;
width: 236px;
max-width: 90%;
padding: 8px;
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: var(--shadow-modal);
}
.callout-icon-opt {
background: transparent;
border: none;
font-size: 18px;
width: 34px;
height: 34px;
border-radius: 5px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.callout-icon-opt:hover {
background: var(--bg-hover);
}
/* Toggle children */
.toggle-children {
margin-left: 22px;
padding-left: 12px;
border-left: 1px solid var(--border);
margin-top: 2px;
}
/* Table of Contents */
.block-toc {
border: 1px solid var(--border);
border-radius: 8px;
padding: 16px 20px;
margin: 4px 0;
}
.block-toc-title {
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .5px;
color: var(--text-dim);
margin-bottom: 10px;
}
.block-toc-item {
font-size: 14px;
color: var(--text-primary);
padding: 5px 8px;
border-radius: 4px;
cursor: pointer;
line-height: 1.4;
}
.block-toc-item:hover {
background: var(--bg-hover);
color: var(--accent);
}
.block-toc-empty {
color: var(--text-dim);
font-size: 14px;
font-style: italic;
padding: 12px 16px;
}
/* Math block */
.block-math {
margin: 8px 0;
}
.math-display {
min-height: 40px;
padding: 10px 14px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 6px;
overflow-x: auto;
font-size: 15px;
}
.math-editor {
width: 100%;
margin-top: 6px;
padding: 8px 10px;
background: var(--bg-tertiary);
border: 1px dashed var(--border);
border-radius: 6px;
color: var(--text-primary);
font-family: 'SF Mono', 'Fira Code', monospace;
font-size: 13px;
outline: none;
resize: vertical;
min-height: 40px;
box-sizing: border-box;
}
.math-editor:focus {
border-color: var(--accent);
}
/* Column list */
.block-columns {
margin: 8px 0 16px;
}
.columns-add-bar {
margin-bottom: 4px;
}
.columns-add-btn {
background: transparent;
border: 1px dashed var(--border);
color: var(--text-dim);
padding: 6px 14px;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
transition: border-color .15s, color .15s;
}
.columns-add-btn:hover {
border-color: var(--accent);
color: var(--accent);
}
.columns-row {
display: flex;
gap: 12px;
align-items: stretch;
}
.column-cell {
flex: 1;
min-width: 0;
}
.block-column-wrapper {
position: relative;
padding: 10px 12px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
height: 100%;
box-sizing: border-box;
}
.block-column-wrapper:hover .block-handle {
opacity: 1;
}
.block-column-wrapper .block-actions {
right: -8px;
top: -8px;
}
.block-column-wrapper .block-add-btn {
background: var(--bg-modal);
border: 1px solid var(--border);
width: 20px;
height: 20px;
font-size: 13px;
border-radius: 50%;
line-height: 1;
}
.block-column {
outline: none;
min-height: 24px;
font-size: 15px;
line-height: 1.6;
color: var(--text-primary);
word-break: break-word;
}
.block-columns .block-wrapper {
margin: 0;
background: transparent;
}
.block-columns .block-handle {
opacity: 0;
}
.block-nested {
outline: none;
min-height: 24px;
font-size: 15px;
line-height: 1.6;
color: var(--text-primary);
word-break: break-word;
}
.nested-block {
margin: 2px 0;
}
.nested-block .block-handle {
display: none;
}
/* Image block */
.block-image-wrapper {
margin: 8px 0;
}
.image-placeholder {
display: flex;
align-items: center;
justify-content: center;
min-height: 120px;
background: var(--bg-secondary);
border: 1px dashed var(--border);
border-radius: 4px;
color: var(--text-dim);
cursor: pointer;
transition: background 0.15s;
}
.image-placeholder:hover {
background: var(--bg-hover);
}
/* SLASH COMMAND MENU */
.slash-menu {
position: fixed;
z-index: 999;
background: var(--bg-modal);
border: 1px solid var(--border-light);
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
width: 320px;
max-height: 400px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.slash-search {
padding: 8px;
border-bottom: 1px solid var(--border);
}
.slash-search input {
width: 100%;
padding: 6px 10px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-primary);
font-size: 14px;
outline: none;
}
.slash-search input:focus {
border-color: var(--blue);
}
.slash-groups {
overflow-y: auto;
padding: 4px 0;
}
.slash-group {
padding: 0;
}
.slash-group + .slash-group {
border-top: 1px solid var(--border);
}
.slash-group-label {
padding: 6px 12px 4px;
font-size: 11px;
font-weight: 600;
color: var(--text-dim);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.slash-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 8px 12px;
font-size: 14px;
color: var(--text-primary);
text-align: left;
cursor: pointer;
transition: background 0.1s;
border-radius: 0;
}
.slash-item:hover,
.slash-item.selected {
background: var(--bg-hover);
}
.slash-item-icon {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
background: var(--bg-secondary);
border-radius: 4px;
flex-shrink: 0;
}
.slash-item-info {
flex: 1;
display: flex;
flex-direction: column;
}
.slash-item-name {
font-weight: 500;
font-size: 14px;
}
.slash-item-desc {
font-size: 12px;
color: var(--text-dim);
}
.slash-item-shortcut {
font-size: 12px;
color: var(--text-dim);
font-family: var(--font-mono);
flex-shrink: 0;
}
/* FORMAT TOOLBAR (FLOATING) */
.format-toolbar {
position: fixed;
z-index: 998;
display: flex;
align-items: center;
gap: 2px;
background: var(--bg-modal);
border: 1px solid var(--border-light);
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
padding: 4px 6px;
}
.format-toolbar button {
width: 30px;
height: 28px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-primary);
font-size: 14px;
cursor: pointer;
transition: background 0.1s;
}
.format-toolbar button:hover {
background: var(--bg-hover);
}
.format-separator {
width: 1px;
height: 18px;
background: var(--border);
margin: 0 4px;
}
/* EDITOR STATUSBAR */
.editor-statusbar {
position: fixed;
bottom: 0;
right: 0;
left: var(--sidebar-width);
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 16px;
background: var(--bg-primary);
border-top: 1px solid var(--border);
font-size: 12px;
color: var(--text-dim);
z-index: 50;
height: 28px;
}
.statusbar-right {
display: flex;
gap: 16px;
}
/* Inline formatting inside blocks */
.block-content strong { font-weight: 700; }
.block-content em { font-style: italic; }
.block-content code {
background: var(--bg-tertiary);
padding: 1px 4px;
border-radius: 3px;
font-size: 0.9em;
font-family: var(--font-mono);
color: var(--pink);
}
.block-content s { text-decoration: line-through; }
.block-content u { text-decoration: underline; }
.block-content a { color: var(--blue); text-decoration: underline; }
/* Mobile adjustments */
@media (max-width: 768px) {
.page-cover-area { padding: 32px 16px 8px; }
.page-title-input { font-size: 28px; }
.blocks-container { padding: 8px 16px 96px; }
.block-handle { display: none; }
.block-actions { display: none; }
.editor-statusbar { left: 0; }
}
/* ═══════════ Get Started Toolbar (bottom, pill buttons) ═══════════ */
.get-started-toolbar {
position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
display: flex; align-items: center; gap: 8px;
padding: 12px 0 16px; flex-wrap: wrap;
justify-content: center; z-index: 10;
pointer-events: auto;
}
.gs-label {
font-size: 13px; color: var(--text-dim); margin-right: 4px;
}
.gs-pill {
display: inline-flex; align-items: center; gap: 6px;
padding: 8px 16px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: 9999px;
color: var(--text-primary); font-size: 13px; cursor: pointer;
white-space: nowrap; transition: background 0.15s;
}
.gs-pill:hover { background: var(--bg-hover); }
.gs-icon { font-size: 15px; }
.gs-pill .chevron-down { font-size: 10px; opacity: 0.5; }
.gs-more-dropdown {
position: absolute; bottom: 100%; left: 0; margin-bottom: 4px;
background: var(--bg-secondary); border: 1px solid var(--border);
border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
min-width: 180px; z-index: 100; padding: 4px 0;
}
.gs-more-item {
padding: 8px 14px; font-size: 13px; color: var(--text-primary);
cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.gs-more-item:hover { background: var(--bg-hover); }
.gs-more-sep { height: 1px; background: var(--border); margin: 4px 0; }
/* ═══════════ Page Editor — Top Bar ═══════════ */
.page-topbar {
display: flex; align-items: center; justify-content: flex-end;
padding: 6px 0; min-height: 36px;
}
.page-topbar-right {
display: flex; align-items: center; gap: 4px; position: relative;
}
.topbar-edited {
font-size: 12px; color: var(--text-dim); margin-right: 8px;
}
.page-action-btn {
display: inline-flex; align-items: center; gap: 4px;
padding: 5px 10px; border: none; border-radius: 6px;
background: transparent; color: var(--text-primary);
font-size: 13px; cursor: pointer; white-space: nowrap;
}
.page-action-btn:hover { background: var(--bg-hover); }
.share-btn { font-weight: 500; }
.page-action-btn .chevron-down { font-size: 9px; opacity: 0.5; margin-left: 2px; }
.star-btn { font-size: 16px; padding: 4px 8px; }
.star-btn .starred { color: var(--yellow); }
/* ═══════════ Share / Publish Dialog ═══════════ */
.share-dialog {
position: absolute; top: calc(100% + 8px); right: 72px;
width: 440px; max-height: 65vh; overflow-y: auto;
background: var(--bg-modal); border: 1px solid var(--border);
border-radius: var(--radius-lg); box-shadow: var(--shadow-modal);
z-index: 999;
}
/* Page editor: these popovers are children of .page-editor-wrapper (a scroll
container), so absolute top:100% anchored them BELOW the viewport. Pin them
fixed under the topbar instead. Scoped to the editor wrapper so other pages
(library, local_workspace) keep their relative-positioned .more-menu. */
.page-editor-wrapper > .share-dialog,
.page-editor-wrapper > .more-menu,
.page-editor-wrapper > .activity-popover,
.page-editor-wrapper > .move-dialog {
position: fixed !important;
top: calc(var(--topbar-height) + 6px) !important;
}
.page-editor-wrapper > .share-dialog { right: 72px; }
.page-editor-wrapper > .more-menu { right: 16px; }
.page-editor-wrapper > .activity-popover,
.page-editor-wrapper > .move-dialog { right: 16px !important; }
@media (max-width: 768px) {
/* Keep editor popovers centered/stacked on mobile (base.html media rule
uses !important; mirror the specificity so it still wins here). */
.page-editor-wrapper > .share-dialog,
.page-editor-wrapper > .more-menu,
.page-editor-wrapper > .activity-popover,
.page-editor-wrapper > .move-dialog {
right: auto !important;
top: 50% !important;
width: 92vw !important;
max-width: 400px;
transform: translate(-50%, -50%) !important;
}
.page-editor-wrapper > .more-menu,
.page-editor-wrapper > .activity-popover { top: 60px !important; transform: none !important; left: auto !important; right: 12px !important; width: auto !important; }
}
/* Header with tabs */
.sd-header {
display: flex; align-items: center; height: 56px;
padding: 0 8px; border-bottom: 1px solid var(--border);
}
.sd-tab {
height: 56px; padding: 0 14px; display: flex; align-items: center; gap: 6px;
font-size: 14px; font-weight: 500; cursor: pointer;
background: none; border: none;
color: var(--text-dim); position: relative;
transition: color var(--transition);
}
.sd-tab.active { color: var(--text-primary); }
.sd-tab.active::after {
content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
height: 2px; background: var(--text-primary); transition: var(--transition);
}
.sd-tab:hover { color: var(--text-secondary); }
.sd-badge {
width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
display: inline-block;
}
.sd-close {
margin-left: auto; background: none; border: none;
color: var(--text-dim); font-size: 16px; cursor: pointer;
padding: 8px; border-radius: var(--radius-sm);
}
.sd-close:hover { background: var(--bg-hover); color: var(--text-primary); }
/* Body */
.sd-body { padding: 16px 20px; }
/* Invite row */
.sd-invite-row { display: flex; gap: 8px; margin-bottom: 12px; }
.sd-input {
flex: 1; height: 40px; padding: 0 14px;
background: var(--bg-secondary); border: 1px solid var(--border);
border-radius: var(--radius-md); color: var(--text-primary); font-size: 13px; outline: none;
transition: border-color var(--transition), box-shadow var(--transition);
}
.sd-input::placeholder { color: var(--text-dim); }
.sd-input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sd-btn-primary {
height: 40px; padding: 0 16px; background: var(--accent); color: #fff;
border: none; border-radius: var(--radius-md); font-size: 13px; font-weight: 500;
cursor: pointer; transition: background var(--transition); white-space: nowrap;
}
.sd-btn-primary:hover { background: var(--accent-hover); }
.sd-btn-full { width: 100%; height: 46px; font-size: 14px; }
/* Context card */
.sd-context-card {
background: var(--bg-secondary); border-radius: var(--radius-md);
padding: 12px; font-size: 13px; color: var(--text-secondary);
margin-bottom: 12px;
}
/* Section */
.sd-section { margin: 8px 0; }
.sd-section-title {
font-size: 12px; color: var(--text-secondary); margin-bottom: 6px;
}
.sd-sep { height: 1px; background: var(--border); margin: 12px 0; }
/* Access button */
.sd-access-btn {
width: 100%; display: flex; align-items: center; justify-content: space-between;
padding: 10px 14px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: var(--radius-md);
color: var(--text-primary); font-size: 13px; cursor: pointer;
}
.sd-access-btn:hover { background: var(--bg-hover); }
.sd-access-menu {
position: absolute; top: calc(100% + 2px); left: 0; right: 0;
background: var(--bg-modal) !important; border: 1px solid var(--border);
border-radius: var(--radius-lg); box-shadow: var(--shadow-popover);
z-index: 999; padding: 4px 0;
}
.sd-access-option {
padding: 8px 14px; font-size: 13px; color: var(--text-primary);
cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.sd-access-option:hover { background: var(--bg-hover); }
.sd-access-option.active { background: rgba(35,131,226,.15); }
/* Permissions */
.sd-select-sm {
padding: 4px 8px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: var(--radius-sm);
color: var(--text-primary); font-size: 12px; outline: none;
}
/* Participants */
.sd-participants { margin-bottom: 8px; }
.sd-participant {
display: flex; align-items: center; justify-content: space-between;
padding: 8px 0;
}
.sd-participant-info { display: flex; align-items: center; gap: 10px; }
.sd-avatar {
width: 32px; height: 32px; border-radius: 50%;
background: var(--accent); color: #fff;
display: flex; align-items: center; justify-content: center;
font-size: 13px; font-weight: 600;
}
.sd-participant-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.sd-participant-email { font-size: 13px; color: var(--text-secondary); }
.sd-perm-btn {
padding: 4px 10px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: var(--radius-sm);
color: var(--text-secondary); font-size: 12px; cursor: pointer;
}
.sd-perm-btn:hover { background: var(--bg-hover); }
.sd-perm-menu {
position: absolute; top: 100%; right: 0; width: 280px;
background: var(--bg-modal); border: 1px solid var(--border);
border-radius: var(--radius-lg); box-shadow: var(--shadow-popover);
z-index: 211; padding: 4px 0;
}
.sd-perm-option {
padding: 10px 16px; cursor: pointer;
display: flex; flex-direction: column;
}
.sd-perm-option span:first-child { font-size: 14px; color: var(--text-primary); }
.sd-perm-option:hover { background: var(--bg-hover); }
.sd-perm-option.active { background: rgba(35,131,226,.15); }
.sd-perm-option.danger:hover { background: rgba(224,62,62,.15); }
.sd-perm-option.danger span:first-child { color: var(--danger); }
.sd-perm-desc { font-size: 12px !important; color: var(--text-dim) !important; margin-top: 2px; }
.sd-perm-sep { height: 1px; background: var(--border); margin: 4px 0; }
/* Footer */
.sd-footer {
display: flex; align-items: center; justify-content: space-between;
}
.sd-footer-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.sd-footer-link:hover { color: var(--text-primary); }
.sd-footer-action {
padding: 6px 14px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: var(--radius-md);
color: var(--text-primary); font-size: 13px; cursor: pointer;
display: flex; align-items: center; gap: 6px;
}
.sd-footer-action:hover { background: var(--bg-hover); }
/* Publish tab */
.sd-publish-hero {
display: flex; flex-direction: column; align-items: center;
text-align: center; padding: 16px 0;
}
.sd-publish-preview {
width: 100%; height: 200px; background: var(--bg-secondary);
border-radius: var(--radius-md); margin-bottom: 20px;
display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sd-preview-bar {
width: 100%; height: 32px; background: var(--bg-tertiary);
border-radius: var(--radius-md) var(--radius-md) 0 0; display: flex; align-items: center; padding: 0 12px;
gap: 6px;
}
.sd-preview-title { font-size: 16px; color: var(--text-secondary); margin-top: 20px; }
.sd-publish-heading { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0 0 8px; }
.sd-publish-desc { font-size: 13px; color: var(--text-secondary); margin: 0 0 16px; line-height: 1.5; }
.sd-publish-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; }
/* URL bar (after publish) */
.sd-url-bar {
display: flex; align-items: center; gap: 8px;
padding: 8px; background: var(--bg-secondary);
border-radius: var(--radius-md);
}
.sd-url-input {
flex: 1; height: 32px; padding: 0 10px;
background: transparent; border: none;
color: var(--text-secondary); font-size: 13px; outline: none;
}
/* Settings rows */
.sd-settings { margin: 4px 0; }
.sd-setting-row {
display: flex; align-items: center; justify-content: space-between;
height: 40px; padding: 0 4px;
font-size: 14px; color: var(--text-primary); cursor: pointer;
border-radius: var(--radius-sm);
}
.sd-setting-row:hover { background: var(--bg-hover); }
.sd-danger-btn {
width: 100%; padding: 10px; background: none;
border: 1px solid var(--border); border-radius: var(--radius-md);
color: var(--text-secondary); font-size: 13px; cursor: pointer;
}
.sd-danger-btn:hover { background: rgba(224,62,62,.1); color: var(--danger); }
/* Toast */
.sd-toast {
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
background: var(--bg-secondary); color: var(--text-primary); padding: 10px 18px;
border-radius: var(--radius-md); font-size: 13px; z-index: 300;
}
/* ── More menu dropdown ── */
.more-menu {
position: absolute; top: calc(100% + 4px); right: 0;
background: var(--bg-modal); border: 1px solid var(--border);
border-radius: var(--radius-md); box-shadow: var(--shadow-popover);
min-width: unset; width: max-content; z-index: 100; padding: 4px 0;
}
.more-menu-item {
padding: 8px 14px; font-size: 13px; color: var(--text-primary);
cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.more-menu-item:hover { background: var(--bg-hover); }
.more-menu-item.danger { color: var(--danger); }
.more-menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
/* ── More menu sub-section (e.g. Export formats) ── */
.more-menu-sub {
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background: var(--bg-secondary);
margin: 2px 0; padding: 2px 0 2px 6px;
}
.more-menu-sub .more-menu-item { font-size: 12.5px; padding: 6px 12px; }
/* ── Toggle switch ── */
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch.sm { width: 32px; height: 18px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
position: absolute; inset: 0; cursor: pointer;
background: var(--text-dim); border-radius: 20px;
transition: background var(--transition);
}
.toggle-slider:before {
content: ''; position: absolute; height: 16px; width: 16px;
left: 2px; bottom: 2px; background: #fff;
border-radius: 50%; transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(16px); }
.toggle-switch.sm { width: 32px; height: 18px; }
.toggle-switch.sm .toggle-slider:before { height: 14px; width: 14px; }
.toggle-switch.sm input:checked + .toggle-slider:before { transform: translateX(14px); }
/* ═══════════ Empty Page Toolbar ═══════════ */
.empty-page-toolbar {
display: flex; align-items: center; gap: 6px;
padding: 12px 0; flex-wrap: wrap;
}
.empty-toolbar-label {
font-size: 13px; color: var(--text-dim); margin-right: 6px;
}
.empty-toolbar-item {
padding: 6px 12px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: 6px;
color: var(--text-primary); font-size: 13px; cursor: pointer;
white-space: nowrap;
}
.empty-toolbar-item:hover { background: var(--bg-hover); border-color: var(--text-dim); }
/* ═══════════════════════════════════════════════════════════
RESPONSIVE — MOBILE-FIRST DESIGN SYSTEM
Breakpoints: ≤480px phone | ≤768px tablet | ≤1024px small desktop
═══════════════════════════════════════════════════════════ */
/* ── Hamburger Menu Button ── */
.hamburger-btn {
display: none;
width: 36px; height: 36px;
border-radius: var(--radius-sm);
align-items: center; justify-content: center;
color: var(--text-primary); font-size: 20px;
cursor: pointer; flex-shrink: 0;
transition: background var(--transition);
}
.hamburger-btn:hover { background: var(--bg-hover); }
/* ── Mobile Sidebar Overlay ── */
.sidebar-overlay {
display: none;
position: fixed; inset: 0;
background: rgba(0,0,0,0.5);
z-index: 998;
opacity: 0; transition: opacity 0.2s ease;
pointer-events: none;
}
.sidebar-overlay.visible {
opacity: 1; pointer-events: auto;
}
/* ── Sidebar Back Button (mobile) ── */
.sidebar-back-btn {
display: none;
width: 36px; height: 36px;
border-radius: var(--radius-sm);
align-items: center; justify-content: center;
color: var(--text-primary); font-size: 18px;
cursor: pointer; transition: background var(--transition);
}
.sidebar-back-btn:hover { background: var(--bg-hover); }
/* ── Topbar mobile spacer ── */
.topbar-mobile-spacer { flex: 1; min-width: 0; }
/* ═══════════════════════════════════════════════════════════
TABLET (≤1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
:root {
--sidebar-width: 220px;
--space-xl: 20px;
}
.page-cover-area { padding: 32px 32px 8px; }
.blocks-container { padding: 8px 32px 80px; }
.block-handle { left: -32px; }
.page-title-input { font-size: 32px; }
.kanban-column { min-width: 240px; max-width: 300px; }
.data-table { font-size: 13px; }
.data-table th, .data-table td { padding: 6px 8px; }
.status-overview { padding: var(--space-lg); }
.team-load { padding: var(--space-lg); gap: var(--space-lg); }
}
/* ═══════════════════════════════════════════════════════════
TABLET PORTRAIT / PHONE LARGE (≤768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
/* ── Layout ── */
html, body { overflow: auto; }
.app-layout { position: relative; }
.hamburger-btn { display: flex; }
.sidebar-overlay { display: block; }
/* ── Sidebar mobile ── */
.sidebar {
display: block;
position: fixed !important;
top: 0; left: 0;
bottom: 0; width: 85vw; max-width: 320px;
z-index: 999;
transform: translateX(-100%);
transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}
.sidebar.mobile-open {
transform: translateX(0);
}
.sidebar.collapsed {
width: 85vw; max-width: 320px;
min-width: 0; padding: 0; overflow: hidden;
}
.sidebar-back-btn { display: flex; }
.sidebar-uncollapse-btn { display: none !important; }
/* ── Topbar ── */
.topbar {
padding: 0 12px;
gap: 8px;
height: 48px; min-height: 48px;
}
.topbar-left {
flex-shrink: 1;
min-width: 0;
max-width: 40%;
}
.topbar-center { display: none; }
.topbar-right {
flex-shrink: 0;
gap: 2px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.topbar-right .topbar-btn {
min-width: 36px; height: 36px;
padding: 0 6px;
font-size: 14px;
}
.topbar-right .topbar-btn.share-btn {
font-size: 11px; padding: 0 8px;
}
.topbar-right span.text-xs { display: none; }
.topbar-breadcrumb { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── Content ── */
.content-area { overflow-y: auto; }
.page-cover-area { padding: 24px 16px 8px; }
.page-title-input { font-size: 24px; }
.blocks-container { padding: 8px 16px 96px; }
.block-handle { display: none; }
.block-actions { display: none; }
.editor-statusbar { left: 0; }
/* ── View Tabs ── */
.view-tabs {
padding: 0 12px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.view-tab { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.view-toolbar { padding: 8px 12px; flex-wrap: wrap; gap: 4px; }
/* ── Kanban ── */
.kanban-container {
padding: 0 4px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scroll-snap-type: x mandatory;
}
.kanban-column {
min-width: 85vw;
max-width: 85vw;
padding: 0 4px;
scroll-snap-align: start;
}
.kanban-column-header { padding: 10px 8px; font-size: 14px; }
.kanban-card { padding: 10px 12px; }
.kanban-card .card-title { font-size: 14px; }
.kanban-new-card { padding: 10px 12px; }
/* ── Table ── */
.table-container {
padding: 0 4px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.data-table { min-width: 600px; }
.data-table th { font-size: 11px; padding: 6px; }
.data-table td { font-size: 13px; padding: 8px 6px; }
/* ── Status / Team Load ── */
.status-overview { padding: 16px; }
.donut-container { width: 160px; height: 160px; }
.donut-total { font-size: 28px; }
.team-load { padding: 16px; gap: 12px; flex-wrap: wrap; min-height: auto; }
.team-bar-stack { width: 40px; }
.status-legend { gap: 8px; }
/* ── Filters ── */
.filter-bar { padding: 8px 12px; flex-wrap: wrap; gap: 4px; }
.filter-pill { font-size: 11px; padding: 4px 8px; }
/* ── Modal ── */
.modal-container { width: 95%; max-width: 95%; max-height: 90vh; border-radius: var(--radius-md); }
.modal-header { padding: 12px; }
.modal-body { padding: 12px; }
/* ── Library ── */
.library-table-header { font-size: 11px; padding: 8px 8px; }
.library-table-row { padding: 8px; }
.lib-col-author, .lib-col-source, .lib-col-edited, .lib-col-visited { display: none; }
.lib-col-name { flex: 1; }
/* ── Dashboard ── */
.project-grid { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
/* ── Share Dialog ── */
.share-dialog {
width: 92vw; max-width: 92vw;
right: -16px; max-height: 80vh;
border-radius: 14px;
}
/* ── Get Started Toolbar ── */
.get-started-toolbar {
flex-wrap: wrap; justify-content: center;
padding: 8px 12px 12px; gap: 6px;
}
.gs-pill { font-size: 12px; padding: 6px 12px; }
/* ── Slash Menu ── */
.slash-menu { width: 90vw; max-width: 90vw; left: 5vw !important; }
/* ── Format Toolbar ── */
.format-toolbar { left: 8px !important; right: 8px; flex-wrap: wrap; justify-content: center; }
}
/* ═══════════════════════════════════════════════════════════
PHONE (≤480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
:root {
--space-xl: 16px;
--space-lg: 12px;
}
.sidebar { width: 90vw; max-width: 300px; }
.sidebar.mobile-open { width: 90vw; max-width: 300px; }
.hamburger-btn { width: 44px; height: 44px; }
.topbar {
padding: 0 8px;
height: 48px; min-height: 48px;
}
.topbar-btn { min-width: 40px; height: 40px; }
.page-cover-area { padding: 20px 12px 6px; }
.page-title-input { font-size: 22px; }
.blocks-container { padding: 6px 12px 80px; }
.page-icon-emoji { font-size: 28px; }
.kanban-column {
min-width: 92vw;
max-width: 92vw;
}
.data-table { min-width: 500px; font-size: 12px; }
.donut-container { width: 140px; height: 140px; }
.donut-total { font-size: 24px; }
.modal-container { width: 100%; max-width: 100%; border-radius: 0; }
.sidebar-item { min-height: 44px; padding: 8px 8px; }
.sidebar-nav-item { min-height: 40px; }
.sidebar-section-header { padding: 8px 6px; min-height: 40px; }
.tree-toggle { width: 32px; height: 32px; }
.view-tab { padding: 8px; font-size: 11px; }
.btn-new { height: 36px; padding: 8px 12px !important; }
}
/* ══════════ Uncollapse sidebar button ══════════ */
.sidebar-uncollapse-btn {
position: fixed; top: 60px; left: 12px; z-index: 1001;
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
background: var(--bg-secondary); border: 1px solid var(--border);
border-radius: 8px; color: var(--text-secondary); cursor: pointer;
}
.sidebar-uncollapse-btn:hover { background: var(--bg-hover); color: var(--text); }
/* ═══════════════════════════════════════════════════════════
SHARED COMPONENTS (migrated from design-tokens.css)
═══════════════════════════════════════════════════════════ */
[x-cloak] { display: none !important; }
/* Skeleton */
.skeleton {
background: var(--bg-tertiary);
animation: skeleton-pulse 1.5s ease-in-out infinite;
border-radius: 4px;
}
@keyframes skeleton-pulse {
0%, 100% { opacity: 1; }
50% { opacity: .5; }
}
.skeleton-card {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
pointer-events: none;
}
.skeleton-card .skeleton-line {
height: 14px;
margin-bottom: 10px;
border-radius: 4px;
}
.skeleton-card .skeleton-line:last-child { margin-bottom: 0; }
.skeleton-file {
padding: 16px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg-secondary);
max-height: 70vh;
overflow: hidden;
}
.skeleton-line {
background: var(--bg-tertiary);
animation: skeleton-pulse 1.5s ease-in-out infinite;
border-radius: 4px;
}
.skeleton-table { overflow: hidden; }
.skeleton-table .skeleton-line {
height: 40px;
margin-bottom: 2px;
border-radius: 0;
}
/* Toast */
.toast-container {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 8px;
pointer-events: none;
}
.toast {
padding: 12px 20px;
border-radius: 8px;
font-size: 13px;
font-weight: 500;
font-family: var(--font-sans);
max-width: 400px;
box-shadow: 0 8px 24px rgba(0,0,0,.4);
pointer-events: auto;
animation: toast-slide-in 0.25s ease-out;
backdrop-filter: blur(4px);
}
.toast-success {
background: var(--toast-success-bg);
color: var(--toast-success-text);
}
.toast-error {
background: var(--toast-error-bg);
color: var(--toast-error-text);
}
.toast-info {
background: var(--toast-info-bg);
color: var(--toast-info-text);
}
@keyframes toast-slide-in {
from {
opacity: 0;
transform: translateY(12px) scale(0.96);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Buttons */
.btn {
padding: 8px 16px;
border-radius: var(--radius-md);
font-size: 13px;
cursor: pointer;
font-weight: 500;
border: 1px solid var(--border);
background: transparent;
color: var(--text-dim);
font-family: var(--font-sans);
transition: background var(--transition), color var(--transition);
}
.btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.btn-primary {
padding: 8px 16px;
border-radius: var(--radius-md);
font-size: 13px;
cursor: pointer;
border: none;
font-weight: 500;
font-family: var(--font-sans);
background: var(--accent);
color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-danger {
background: rgba(255,80,80,.15);
color: var(--danger);
border: none;
padding: 8px 16px;
border-radius: var(--radius-md);
font-size: 13px;
cursor: pointer;
font-weight: 500;
font-family: var(--font-sans);
}
.btn-danger:hover { background: rgba(255,80,80,.25); }
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border);
padding: 8px 16px;
border-radius: var(--radius-md);
font-size: 13px;
cursor: pointer;
font-weight: 500;
font-family: var(--font-sans);
transition: background var(--transition);
}
.btn-secondary:hover { background: var(--bg-hover); }
.btn-sm {
padding: 4px 8px;
font-size: 11px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: transparent;
color: var(--text-dim);
cursor: pointer;
font-family: var(--font-sans);
}
.btn-sm:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.btn-sm-danger {
color: var(--danger);
border-color: rgba(255,80,80,.3);
}
/* Forms */
.settings-input {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
font-size: 13px;
padding: 6px 10px;
outline: none;
width: 100%;
font-family: var(--font-sans);
}
.settings-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px rgba(35,131,226,.15);
}
.settings-select {
background: var(--bg-secondary);
color: var(--text-primary);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 6px 10px;
font-size: 13px;
outline: none;
cursor: pointer;
min-width: 140px;
font-family: var(--font-sans);
}
.settings-select:focus { border-color: var(--accent); }
/* Dialog */
.dialog-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 500;
}
.dialog-box {
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
width: 400px;
max-width: 90vw;
box-shadow: var(--shadow-modal);
}
.dialog-box h3 {
margin-bottom: 16px;
color: var(--text-primary);
}
.dialog-input {
width: 100%;
padding: 10px 12px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
font-size: 14px;
margin-bottom: 12px;
outline: none;
font-family: var(--font-sans);
}
.dialog-input:focus { border-color: var(--accent); }
.dialog-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
}
.modal-box {
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
min-width: 320px;
max-width: 90vw;
box-shadow: var(--shadow-modal);
}
/* Empty state */
.empty-state {
text-align: center;
padding: 60px 20px;
color: var(--text-dim);
}
.empty-state h2 {
font-size: 18px;
margin-bottom: 8px;
color: var(--text-primary);
}
/* Text utilities */
.text-dim { color: var(--text-dim); }
.text-xs { font-size: 12px; }
.text-secondary { color: var(--text-secondary); }
/* Password toggle */
.pw-wrapper {
position: relative;
display: flex;
align-items: center;
}
.pw-toggle {
position: absolute;
right: 6px;
background: none;
border: none;
cursor: pointer;
font-size: 16px;
padding: 4px;
color: var(--text-dim);
font-family: var(--font-sans);
}
/* ═══════════════════════════════════════════════════════════
Database Table View (Notion-style)
═══════════════════════════════════════════════════════════ */
.database-table-container {
width: 100%;
max-width: 100%;
padding: 0 96px;
margin-top: 24px;
box-sizing: border-box;
}
/* ── View Bar ── */
.db-view-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 0 8px 0;
border-bottom: 1px solid var(--border);
margin-bottom: 0;
}
.db-view-tabs {
display: flex;
align-items: center;
gap: 2px;
}
.db-view-tab {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 6px;
border: none;
background: transparent;
color: var(--text-secondary);
font-size: 14px;
font-family: var(--font-sans);
cursor: pointer;
transition: background 0.15s;
}
.db-view-tab.active {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.db-view-tab:hover { background: var(--bg-hover); }
.db-view-add {
display: flex;
align-items: center;
justify-content: center;
width: 28px; height: 28px;
border-radius: 6px;
border: none;
background: transparent;
color: var(--text-dim);
cursor: pointer;
font-size: 14px;
font-family: var(--font-sans);
}
.db-view-add:hover { background: var(--bg-hover); }
.db-view-actions {
display: flex;
align-items: center;
gap: 8px;
}
.db-btn-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px; height: 28px;
border-radius: 6px;
border: none;
background: transparent;
color: var(--text-dim);
cursor: pointer;
}
.db-btn-icon:hover { background: var(--bg-hover); }
.db-btn-new {
display: flex;
align-items: center;
gap: 4px;
padding: 5px 12px;
border-radius: 6px;
border: none;
background: var(--accent);
color: white;
font-size: 13px;
font-family: var(--font-sans);
cursor: pointer;
transition: background 0.15s;
}
.db-btn-new:hover { opacity: 0.9; }
.db-new-icon { display: flex; align-items: center; }
/* ── Table ── */
.db-table-wrapper {
overflow-x: auto;
border-radius: 4px;
}
.db-table {
width: 100%;
border-collapse: collapse;
table-layout: auto;
}
.db-header-row {
border-bottom: 1px solid var(--border);
}
.db-th {
padding: 0;
vertical-align: middle;
position: relative;
}
.db-th-handle {
width: 32px;
min-width: 32px;
}
.db-th-property {
min-width: 200px;
border-right: 1px solid var(--border);
}
.db-th-content {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 8px;
font-size: 12px;
color: var(--text-dim);
font-weight: 500;
font-family: var(--font-sans);
}
.db-prop-type-icon {
font-size: 11px;
color: var(--text-dim);
}
.db-prop-name {
white-space: nowrap;
}
.db-th-add-prop {
min-width: 140px;
}
.db-add-prop-btn {
display: flex;
align-items: center;
gap: 4px;
padding: 5px 8px;
border: none;
background: transparent;
color: var(--text-dim);
font-size: 12px;
font-family: var(--font-sans);
cursor: pointer;
white-space: nowrap;
transition: color 0.15s;
}
.db-add-prop-btn:hover { color: var(--text-primary); }
/* ── Rows ── */
.db-row {
border-bottom: 1px solid var(--border-light, #EDEDEC);
transition: background 0.1s;
}
.db-row:hover { background: var(--bg-hover); }
.db-row-new { border-bottom: 1px solid var(--border); }
.db-row-empty { height: 32px; }
.db-row-selected { background: var(--bg-active); }
.db-td {
padding: 3px 8px;
vertical-align: middle;
position: relative;
height: 32px;
}
.db-td-handle {
width: 32px;
min-width: 32px;
text-align: center;
padding: 3px 0;
}
.db-drag-handle {
display: inline-flex;
align-items: center;
justify-content: center;
cursor: grab;
color: var(--text-dim);
opacity: 0.6;
transition: opacity 0.1s;
}
.db-drag-handle:hover { opacity: 1; }
.db-plus-icon {
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-dim);
}
.db-new-page-btn {
display: flex;
align-items: center;
width: 100%;
padding: 6px 8px;
border: none;
background: transparent;
color: var(--text-dim);
font-size: 14px;
font-family: var(--font-sans);
cursor: pointer;
text-align: left;
}
.db-new-page-btn:hover { color: var(--text-primary); }
.db-td-cell {
min-width: 200px;
border-right: 1px solid var(--border);
cursor: pointer;
}
.db-cell-content {
display: flex;
align-items: center;
min-height: 22px;
padding: 0 2px;
border-radius: 3px;
}
.db-cell-content:hover { background: var(--bg-hover); }
.db-cell-editing .db-cell-value { display: none; }
.db-cell-value {
font-size: 14px;
color: var(--text-primary);
font-family: var(--font-sans);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.db-cell-input {
width: 100%;
padding: 3px 6px;
border: 1px solid var(--accent, #2383E2);
border-radius: 3px;
font-size: 14px;
font-family: var(--font-sans);
color: var(--text-primary);
background: var(--bg-primary);
outline: none;
box-sizing: border-box;
}
.db-td-open {
width: 40px;
min-width: 40px;
text-align: center;
padding: 3px 0;
}
.db-open-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px; height: 28px;
border-radius: 4px;
border: none;
background: transparent;
color: var(--text-dim);
cursor: pointer;
}
.db-open-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
/* ── Dropdown ── */
.db-dropdown {
position: absolute;
top: 100%;
left: 0;
margin-top: 4px;
min-width: 200px;
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
z-index: 500;
padding: 4px 0;
}
.db-dropdown-header {
padding: 6px 12px;
font-size: 11px;
color: var(--text-dim);
text-transform: uppercase;
letter-spacing: 0.5px;
font-family: var(--font-sans);
}
.db-dropdown-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
font-size: 14px;
color: var(--text-primary);
font-family: var(--font-sans);
cursor: pointer;
transition: background 0.1s;
}
.db-dropdown-item:hover { background: var(--bg-hover); }
/* ── Modal ── */
.db-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.3);
z-index: 500;
display: flex;
align-items: center;
justify-content: center;
}
.db-modal {
background: var(--bg-modal);
border-radius: 8px;
box-shadow: 0 8px 30px rgba(0,0,0,0.15);
width: 420px;
max-width: 90vw;
overflow: hidden;
}
.db-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
}
.db-modal-header h3 {
margin: 0;
font-size: 14px;
font-weight: 600;
font-family: var(--font-sans);
color: var(--text-primary);
}
.db-modal-header button {
display: flex;
align-items: center;
justify-content: center;
width: 28px; height: 28px;
border-radius: 6px;
border: none;
background: transparent;
cursor: pointer;
color: var(--text-dim);
}
.db-modal-header button:hover { background: var(--bg-hover); }
.db-modal-body { padding: 16px; }
.db-modal-field {
margin-bottom: 12px;
}
.db-modal-field label {
display: block;
margin-bottom: 4px;
font-size: 12px;
color: var(--text-dim);
font-family: var(--font-sans);
}
.db-modal-field input,
.db-modal-field select {
width: 100%;
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font-size: 14px;
font-family: var(--font-sans);
color: var(--text-primary);
background: var(--bg-primary);
outline: none;
box-sizing: border-box;
}
.db-modal-field input:focus,
.db-modal-field select:focus {
border-color: var(--accent, #2383E2);
}
.db-modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 16px;
}
.db-btn-cancel {
padding: 6px 14px;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--bg-primary);
color: var(--text-secondary);
font-size: 13px;
font-family: var(--font-sans);
cursor: pointer;
}
.db-btn-cancel:hover { background: var(--bg-hover); }
.db-btn-create {
padding: 6px 14px;
border-radius: 6px;
border: none;
background: var(--accent, #2383E2);
color: white;
font-size: 13px;
font-family: var(--font-sans);
cursor: pointer;
}
.db-btn-create:hover { opacity: 0.9; }
/* ── Column Resize Handle ── */
.db-col-resize-handle {
position: absolute;
top: 0; right: 0;
width: 5px; height: 100%;
cursor: col-resize;
z-index: 2;
transition: background 0.1s;
}
.db-col-resize-handle:hover,
.db-col-resize-handle:active {
background: var(--accent, #2383E2);
}
/* ── Column Header Context Menu ── */
.db-col-menu {
position: fixed;
min-width: 240px;
max-width: 320px;
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0,0,0,0.14);
z-index: 800;
padding: 4px 0;
font-family: var(--font-sans);
font-size: 13px;
color: var(--text-primary);
}
.db-col-menu-header {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
font-weight: 600;
}
.db-col-menu-icon { display: flex; align-items: center; color: var(--text-dim); }
.db-col-menu-name { flex: 1; }
.db-col-menu-info { font-size: 11px; color: var(--text-dim); }
.db-col-menu-sep {
height: 1px;
background: var(--border);
margin: 4px 0;
}
.db-col-menu-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
cursor: pointer;
transition: background 0.1s;
position: relative;
}
.db-col-menu-item:hover { background: var(--bg-hover); }
.db-col-menu-item.has-sub { justify-content: space-between; }
.db-col-menu-toggle { font-size: 11px; font-weight: 600; }
.db-col-menu-toggle.on { color: var(--accent, #2383E2); }
.db-col-menu-toggle.off { color: var(--text-dim); }
.db-col-menu-hint { font-size: 11px; color: var(--text-dim); margin-left: auto; margin-right: 4px; }
.db-col-menu-arrow { font-size: 14px; color: var(--text-dim); }
.db-col-menu-tag {
font-size: 10px;
background: var(--accent, #2383E2);
color: white;
padding: 1px 6px;
border-radius: 8px;
margin-left: auto;
}
.db-col-menu-sub {
border-left: 1px solid var(--border);
margin-left: 0;
}
.db-col-menu-sub .sub-item { padding-left: 28px; }
.db-col-menu-sub .sub-item.checked { font-weight: 600; }
.db-col-menu-subnote {
padding: 4px 12px 4px 28px;
font-size: 11px;
color: var(--text-dim);
line-height: 1.4;
}
/* ── Responsive ── */
@media (max-width: 768px) {
.database-table-container { padding: 0 16px; }
.db-th-property { min-width: 120px; }
.db-td-cell { min-width: 120px; }
}
/* ── Database Side Peek Panel ── */
.db-side-peek {
position: fixed; top: 0; right: 0;
width: 560px; height: 100vh;
background: var(--bg-primary);
box-shadow: -4px 0 20px rgba(0,0,0,0.12);
z-index: 900;
display: flex; flex-direction: column;
}
.db-side-peek-resize {
position: absolute; top: 0; left: 0;
width: 6px; height: 100%;
cursor: col-resize;
z-index: 2;
}
.db-side-peek-resize:hover { background: var(--accent, #2383E2); }
.db-side-peek-header {
display: flex; align-items: center; justify-content: space-between;
padding: 8px 12px; border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.db-side-peek-close, .db-side-peek-full {
display: flex; align-items: center; justify-content: center;
width: 28px; height: 28px; border-radius: 6px;
border: none; background: transparent; cursor: pointer;
font-size: 18px; color: var(--text-dim);
}
.db-side-peek-close:hover, .db-side-peek-full:hover { background: var(--bg-hover); }
.db-side-peek iframe { flex: 1; }
/* ─── Simple Table block (v4.8.0) ─── */
.ftable-editor { flex: 1; min-width: 0; min-height: 0; padding: 4px 2px; }
.ftable-editor table.ftable-edit { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
.ftable-edit th.ftable-cell, .ftable-edit td.ftable-cell {
border: 1px solid var(--border); padding: 6px 10px; vertical-align: top;
font-size: 15px; line-height: 1.5; color: var(--text-primary);
outline: none; text-align: left; word-break: break-word; overflow-wrap: break-word;
}
.ftable-edit th.ftable-cell { background: var(--bg-secondary); font-weight: 600; }
.ftable-edit .ftable-cell:hover { background: var(--bg-hover); }
.ftable-edit .ftable-cell:focus { background: var(--bg-hover); box-shadow: inset 0 0 0 1px var(--blue); }
.ftable-editor .ftable-colbar { display: flex; margin: 0 0 3px; }
.ftable-editor .ftable-colcell { flex: 1 1 0; min-width: 0; display: flex; justify-content: flex-end; }
.ftable-editor .ftable-colgrip {
width: 22px; height: 22px; margin: 0 2px 0 auto; display: flex; align-items: center;
justify-content: center; color: var(--text-dim); cursor: pointer; border-radius: 4px;
background: transparent; border: none; opacity: 0; transition: opacity .12s ease;
}
.ftable-editor .ftable-colcell:hover .ftable-colgrip,
.ftable-editor .ftable-colgrip:hover,
.ftable-editor .ftable-colgrip:focus-visible { opacity: 1; }
.ftable-editor .ftable-colgrip:hover { background: var(--bg-hover); color: var(--text-secondary); }
.ftable-editor .ftable-rowbar { display: flex; justify-content: center; margin-top: 2px; opacity: 0; transition: opacity .12s ease; }
.ftable-editor:hover .ftable-rowbar { opacity: 1; }
.ftable-editor .ftable-addrow {
border: none; background: transparent; color: var(--text-dim); cursor: pointer;
font-size: 13px; padding: 4px 12px; border-radius: 6px;
}
.ftable-editor .ftable-addrow:hover { background: var(--bg-hover); color: var(--text-primary); }
.ftable-menu {
min-width: 190px; background: var(--bg-modal); border: 1px solid var(--border);
border-radius: 8px; box-shadow: var(--shadow-modal); padding: 4px;
font-size: 13.5px; color: var(--text-primary);
}
.ftable-menu-item { padding: 6px 12px; border-radius: 5px; cursor: pointer; user-select: none; }
.ftable-menu-item:hover { background: var(--bg-hover); }
.ftable-menu-item.danger { color: var(--danger); }
.ftable-menu-item.danger:hover { background: rgba(229,72,77,.1); }
.ftable-menu-sep { height: 1px; background: var(--border); margin: 4px 8px; }
@media (max-width: 768px) {
.ftable-editor .ftable-colgrip { opacity: 1; }
.ftable-editor .ftable-rowbar { opacity: 1; }
}