/* Stack design system tokens — include verbatim in every app */ :root { --navy: #1a1a2e; --navy-dark: #0f0f20; --gold: #c9a84c; --gold-light: #e8c96d; --surface: rgba(255,255,255,0.07); --surface-2: rgba(255,255,255,0.08); --text: rgba(255,255,255,0.88); --text-muted: rgba(255,255,255,0.48); --body-bg: #f4f5f7; --card-bg: #ffffff; --card-border: #e4e8ee; --text-dark: #1e293b; --text-mid: #64748b; --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04); --shadow-md: 0 4px 12px rgba(0,0,0,0.08); --danger: #dc2626; --radius: 10px; --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; } body { background: var(--body-bg); color: var(--text-dark); font-family: var(--font); } /* App theme + semantic tokens */ :root { --app-primary: #0d9488; --app-primary-light: #14b8a6; --prio-low: #64748b; --prio-medium: #2563eb; --prio-high: #dc2626; --st-todo: #64748b; --st-doing: #2563eb; --st-done: #16a34a; --danger-bg: #fef2f2; --warn-bg: #fffbeb; --ok-bg: #f0fdf4; --sidebar-w: 240px; --topbar-h: 56px; } *, *::before, *::after { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; font-size: 14px; } ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 2px; } /* ── App shell ─────────────────────────────────────────────── */ .app-shell { display: flex; height: 100vh; overflow: hidden; } .sidebar { width: var(--sidebar-w); background: var(--navy); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; } .sidebar-logo { padding: 20px 16px 12px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; } .sidebar-logo svg { opacity: .8; } .sidebar-nav { flex: 1; padding: 8px 0; } .sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text-muted); text-decoration: none; font-size: 13.5px; transition: background .15s, color .15s; } .sidebar-nav a:hover { background: var(--surface); color: var(--text); } .sidebar-nav a.active { background: rgba(201,168,76,.1); color: var(--gold); } .sidebar-user { padding: 12px 16px; border-top: 1px solid var(--surface-2); color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .top-bar { display: none; height: var(--topbar-h); background: var(--navy); color: var(--text); align-items: center; padding: 0 12px; gap: 10px; flex-shrink: 0; } .top-bar-title { flex: 1; font-size: 15px; font-weight: 600; color: var(--gold); } .top-bar-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; } .top-bar-nav::-webkit-scrollbar { display: none; } .top-bar-nav a { color: var(--text-muted); padding: 6px 8px; border-radius: 6px; text-decoration: none; font-size: 12px; white-space: nowrap; } .top-bar-nav a.active { color: var(--gold); } .page-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; } @media (max-width: 768px) { .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; transform: translateX(calc(-1 * var(--sidebar-w))); transition: transform 0.25s ease; } .app-shell.menu-open .sidebar { transform: translateX(0); } .top-bar { display: flex; } .app-shell { flex-direction: column; } .field-row { flex-direction: column; } } .menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; } .top-bar-burger { background: none; border: none; color: var(--text); cursor: pointer; display: flex; align-items: center; padding: 4px; flex-shrink: 0; } /* ── Page chrome ───────────────────────────────────────────── */ .page { padding: 20px; max-width: 1100px; width: 100%; margin: 0 auto; } .page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; } .page-header h1 { font-size: 18px; margin: 0; flex: 1; } /* ── Buttons ───────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text-dark); border-radius: var(--radius); padding: 7px 14px; font-size: 13px; cursor: pointer; font-family: var(--font); transition: background .12s, border-color .12s; } .btn:hover { border-color: var(--text-mid); } .btn:disabled { opacity: .5; cursor: default; } .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; } .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); } .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; } /* ── Forms ─────────────────────────────────────────────────── */ .field { margin-bottom: 12px; } .field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 4px; } .field input[type="text"], .field input[type="email"], .field input[type="date"], .field input[type="number"], .field select, .field textarea { width: 100%; border: 1px solid var(--card-border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; font-family: var(--font); color: var(--text-dark); background: var(--card-bg); } .field textarea { min-height: 72px; resize: vertical; } .field-row { display: flex; gap: 12px; } .field-row > .field { flex: 1; } .field-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; } .field-check input { width: 16px; height: 16px; accent-color: var(--gold); } .field-hint { font-size: 11.5px; color: var(--text-mid); margin-top: 3px; } /* ── Cards & lists ─────────────────────────────────────────── */ .card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 10px; } .task-card { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; transition: box-shadow .12s; } .task-card:hover { box-shadow: var(--shadow-md); } .task-card.high { border-left: 4px solid var(--prio-high); } .task-card.done { opacity: .55; } .task-card-main { flex: 1; min-width: 0; } .task-card-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .task-card-meta { font-size: 12px; color: var(--text-mid); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .task-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; } /* ── Badges ────────────────────────────────────────────────── */ .badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 2px 9px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; } .badge-prio-low { background: var(--prio-low); } .badge-prio-medium { background: var(--prio-medium); } .badge-prio-high { background: var(--prio-high); } .badge-st-todo { background: var(--st-todo); } .badge-st-doing { background: var(--st-doing); } .badge-st-done { background: var(--st-done); } .badge-outline { background: transparent; border: 1px solid var(--card-border); color: var(--text-mid); font-weight: 500; } .badge-unusable { background: var(--danger); } /* ── Filter chips ──────────────────────────────────────────── */ .filter-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; } .filter-row .filter-section { flex: 1; min-width: 0; margin-bottom: 0; } .filter-row .sort-chip { flex-shrink: 0; align-self: center; white-space: nowrap; } .filter-section { margin-bottom: 10px; } .filter-section-header { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--card-bg); border: 1px solid var(--card-border); cursor: pointer; user-select: none; font-size: 12px; color: var(--text-mid); transition: border-color .12s; } .filter-section-header:hover { border-color: var(--gold); } .filter-section-label { font-weight: 600; color: var(--text-dark); white-space: nowrap; } .filter-section-summary { flex: 1; color: var(--gold); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .filter-section-summary.muted { color: var(--text-mid); font-weight: 400; } .filter-section-chevron { flex-shrink: 0; transition: transform .18s; } .filter-section-chevron.open { transform: rotate(180deg); } .chip-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; align-items: center; } .chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--card-border); background: var(--card-bg); cursor: pointer; font-size: 12px; color: var(--text-mid); user-select: none; font-family: var(--font); transition: all .12s; } .chip:hover { border-color: var(--gold); color: var(--text-dark); } .chip.active { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; } /* ── Modal ─────────────────────────────────────────────────── */ .modal-overlay { position: fixed; inset: 0; background: rgba(15,15,32,.55); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; z-index: 100; overflow-y: auto; } .modal { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; max-width: 680px; padding: 20px; margin: auto 0; } .modal-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; } .modal-header h2 { font-size: 16px; margin: 0; flex: 1; } .modal-close { background: none; border: none; cursor: pointer; color: var(--text-mid); padding: 2px; display: flex; } .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; } .modal-footer-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--card-border); } .btn-ghost-sm { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; border: none; background: none; font-size: 12px; color: var(--text-mid); cursor: pointer; font-family: var(--font); transition: color .12s, background .12s; } .btn-ghost-sm:hover { color: var(--text-dark); background: var(--card-border); } .btn-ghost-danger { color: var(--danger); } .btn-ghost-danger:hover { color: var(--danger); background: var(--danger-bg); } /* ── Timeline / thread ─────────────────────────────────────── */ .timeline { margin: 8px 0; } .timeline-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--card-border); font-size: 13px; } .timeline-item:last-child { border-bottom: none; } .timeline-icon { color: var(--text-mid); flex-shrink: 0; margin-top: 1px; } .timeline-body { flex: 1; min-width: 0; } .timeline-note { white-space: pre-wrap; } .timeline-meta { font-size: 11.5px; color: var(--text-mid); margin-top: 2px; } .timeline-photo-link { color: var(--gold); cursor: pointer; font-size: 12px; font-weight: 500; } .timeline-photo-link:hover { text-decoration: underline; } /* ── Photos ────────────────────────────────────────────────── */ .photo-grid { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } .photo-thumb { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; border: 1px solid var(--card-border); cursor: pointer; } .photo-thumb-uploading { display: flex; align-items: center; justify-content: center; background: var(--card-border); color: var(--text-mid); } @keyframes spin { to { transform: rotate(360deg); } } .spin { animation: spin .75s linear infinite; } .photo-thumb-wrap { position: relative; } .photo-del { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; } /* ── Lightbox ──────────────────────────────────────────────── */ .lightbox-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 16px; } .lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; } .lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; transition: background .12s; } .lightbox-close:hover { background: rgba(255,255,255,.28); } /* ── Tables ────────────────────────────────────────────────── */ .table-wrap { overflow-x: auto; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); } table.data { width: 100%; border-collapse: collapse; font-size: 13px; } table.data th { text-align: left; padding: 9px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mid); border-bottom: 1px solid var(--card-border); white-space: nowrap; } table.data td { padding: 9px 12px; border-bottom: 1px solid var(--card-border); vertical-align: top; } table.data tr:last-child td { border-bottom: none; } table.data tr.clickable { cursor: pointer; } table.data tr.clickable:hover td { background: var(--body-bg); } /* ── Stats strip ───────────────────────────────────────────── */ .stats-strip { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .stat-box { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 10px 16px; min-width: 110px; } .stat-box .stat-value { font-size: 18px; font-weight: 700; } .stat-box .stat-label { font-size: 11px; color: var(--text-mid); text-transform: uppercase; letter-spacing: .04em; } /* ── Misc ──────────────────────────────────────────────────── */ .empty-state { text-align: center; color: var(--text-mid); padding: 40px 16px; font-size: 13.5px; } .error-banner { background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; font-size: 13px; } .section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mid); margin: 18px 0 8px; } .muted { color: var(--text-mid); } .overdue { color: var(--danger); font-weight: 600; } /* Sidebar scrollbar */ .nav-scroll::-webkit-scrollbar, .sidebar::-webkit-scrollbar, .sidebar-nav::-webkit-scrollbar { width: 4px; } .nav-scroll::-webkit-scrollbar-track, .sidebar::-webkit-scrollbar-track, .sidebar-nav::-webkit-scrollbar-track { background: transparent; } .nav-scroll::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb, .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 2px; } .nav-scroll::-webkit-scrollbar-thumb:hover, .sidebar::-webkit-scrollbar-thumb:hover, .sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.65); } .nav-scroll, .sidebar, .sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(201,168,76,0.35) transparent; } /* ── Tasks: list nav (in sidebar) ──────────────────────────── */ .list-nav { padding: 4px 0 8px; border-top: 1px solid var(--surface-2); margin-top: 4px; } .list-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 4px; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; } .list-nav-add { background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; padding: 2px; } .list-nav-add:hover { color: var(--gold); } .list-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 16px; color: var(--text-muted); text-decoration: none; font-size: 13.5px; } .list-nav a:hover { background: var(--surface); color: var(--text); } .list-nav a.active { background: rgba(201,168,76,.1); color: var(--gold); } .list-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; } .list-nav a .list-count { margin-left: auto; font-size: 11px; color: var(--text-muted); } /* ── Tasks: inline add + rows ──────────────────────────────── */ .task-add { display: flex; align-items: center; gap: 8px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 4px 10px; margin-bottom: 12px; } .task-add input { flex: 1; border: none; outline: none; background: none; font-size: 14px; font-family: var(--font); color: var(--text-dark); padding: 8px 0; } .task-row { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 10px 14px; margin-bottom: 6px; cursor: pointer; transition: box-shadow .12s; } .task-row:hover { box-shadow: var(--shadow-md); } .task-row.high { border-left: 3px solid var(--prio-high); } .task-row.done .task-row-title { text-decoration: line-through; color: var(--text-mid); } .task-row-main { flex: 1; min-width: 0; } .task-row-title { font-size: 14px; font-weight: 500; } .task-row-meta { font-size: 11.5px; color: var(--text-mid); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; align-items: center; } .task-row-drag { color: var(--card-border); cursor: grab; display: flex; } .task-row.dragging { opacity: .4; } /* Round checkbox */ .check { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--card-border); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; padding: 0; transition: background .12s, border-color .12s; } .check:hover { border-color: var(--st-done); } .check.checked { background: var(--st-done); border-color: var(--st-done); } .check.doing { border-color: var(--st-doing); color: var(--st-doing); } .due-chip { color: var(--text-mid); } .due-chip.overdue { color: var(--danger); font-weight: 600; } /* ── Slide-over drawer (task detail) ───────────────────────── */ .drawer-overlay { position: fixed; inset: 0; background: rgba(15,15,32,.4); z-index: 150; } .drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 151; width: 440px; max-width: 100vw; background: var(--body-bg); box-shadow: -4px 0 24px rgba(0,0,0,.15); display: flex; flex-direction: column; overflow-y: auto; animation: drawer-in .2s ease; } @keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } } .drawer-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px; background: var(--card-bg); border-bottom: 1px solid var(--card-border); } .drawer-head h2 { font-size: 16px; margin: 0; flex: 1; } .drawer-body { padding: 16px; flex: 1; } /* Checklist */ .checklist-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; } .checklist-item .check { width: 18px; height: 18px; } .checklist-item.done span { text-decoration: line-through; color: var(--text-mid); } .checklist-item span { flex: 1; font-size: 13.5px; } .checklist-del { background: none; border: none; color: var(--text-mid); cursor: pointer; display: flex; padding: 2px; } .checklist-del:hover { color: var(--danger); } .checklist-progress { height: 5px; background: var(--card-border); border-radius: 3px; overflow: hidden; margin: 6px 0 10px; } .checklist-progress > div { height: 100%; background: var(--st-done); } /* ── Board (kanban) ────────────────────────────────────────── */ .board { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; } .board-col { flex: 1; min-width: 240px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 10px; } .board-col.drop-target { border-color: var(--gold); background: var(--warn-bg); } .board-col-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mid); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; } .board-col-count { margin-left: auto; font-weight: 500; } /* Agenda groups (Today view) */ .agenda-group-title { font-size: 13px; font-weight: 700; color: var(--text-dark); margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; } .agenda-group-title.overdue { color: var(--danger); }