File size: 6,528 Bytes
65d68f5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | /* ==========================================================================
DocDoe AI β Workspace UI hardening (app routes, not marketing landing)
Fixes: clickability, contrast, focus rings, tap targets, overlay safety
========================================================================== */
/* Workspace routes: avoid viewport-height scroll trap from root html h-full */
html:has(.docdoe-workspace),
html:has(.docdoe-workspace) body {
height: auto;
min-height: 100%;
overflow: hidden;
}
.docdoe-workspace {
position: relative;
z-index: 10;
isolation: isolate;
}
/* Readable muted text floor on dark surfaces */
.docdoe-workspace {
--text-ghost: rgba(245, 245, 240, 0.38);
--text-muted: rgba(245, 245, 240, 0.52);
--text-secondary: rgba(245, 245, 240, 0.72);
}
/* Interactive elements always receive pointer events */
.docdoe-workspace a[href],
.docdoe-workspace button:not(:disabled),
.docdoe-workspace [role="button"]:not([aria-disabled="true"]),
.docdoe-workspace input:not(:disabled),
.docdoe-workspace select:not(:disabled),
.docdoe-workspace textarea:not(:disabled),
.docdoe-workspace label[for],
.docdoe-workspace summary {
pointer-events: auto;
}
.docdoe-workspace button:disabled,
.docdoe-workspace [aria-disabled="true"] {
pointer-events: none;
cursor: not-allowed;
}
/* Decorative layers never steal clicks */
.docdoe-workspace [aria-hidden="true"]:is(.absolute, .fixed, [class*="inset-0"], [class*="inset-x-0"]) {
pointer-events: none !important;
}
/* Premium panels: content above optional glow blobs */
.premium-panel,
.workspace-card {
position: relative;
z-index: 1;
}
.premium-panel > :not([aria-hidden="true"]),
.workspace-card > :not([aria-hidden="true"]) {
position: relative;
z-index: 2;
}
/* Minimum tap targets (WCAG) */
.docdoe-workspace button,
.docdoe-workspace a.btn-primary,
.docdoe-workspace a.btn-secondary,
.docdoe-workspace a.btn-hero,
.docdoe-workspace input:not([type="checkbox"]):not([type="radio"]),
.docdoe-workspace select {
min-height: 44px;
}
.docdoe-workspace button.size-icon-only,
.docdoe-workspace .icon-btn-44 {
min-height: 44px;
min-width: 44px;
}
/* Focus visibility β white ring in workspace context */
.docdoe-workspace :focus-visible {
outline: 2px solid rgba(255, 255, 255, 0.28);
outline-offset: 2px;
}
/* Form controls β readable on dark */
.docdoe-workspace input,
.docdoe-workspace select,
.docdoe-workspace textarea {
color: var(--text-primary);
}
.docdoe-workspace input::placeholder,
.docdoe-workspace textarea::placeholder {
color: var(--text-muted);
}
.docdoe-workspace option {
background: #0c0c0e;
color: #f5f5f0;
}
/* Kill invisible gradient-only text in workspace */
.docdoe-workspace .bg-clip-text.text-transparent:not(.docdoe-allow-gradient-text) {
color: var(--text-primary) !important;
-webkit-text-fill-color: var(--text-primary);
background-image: none !important;
}
/* Page container consistency */
.docdoe-page {
width: 100%;
max-width: 80rem;
margin-inline: auto;
padding-inline: 1rem;
}
/* A few older source/video routes still live inside the light Student OS shell
but use the original dark-workspace tokens in their utility classes. Keep
those routes readable without changing the tokens used by dark standalone
tools elsewhere in the app. */
.docdoe-student-os .legacy-light-page {
--bg-root: #f7f7f5;
--bg-surface: #ffffff;
--bg-elevated: #f0f0ed;
--bg-panel: #ffffff;
--bg-hover: rgba(23, 24, 27, 0.045);
--bg-active: rgba(23, 24, 27, 0.07);
--bg-glass: rgba(255, 255, 255, 0.82);
--bg-glass-hover: #ffffff;
--bg-glass-strong: rgba(255, 255, 255, 0.96);
--border-subtle: #e5e5e1;
--border-medium: #cfcfca;
--border-focus: #17181b;
--text-primary: #17181b;
--text-secondary: #45474d;
--text-muted: #5c6170;
--text-ghost: #747783;
--accent-primary: #17181b;
--accent-primary-light: rgba(23, 24, 27, 0.08);
--accent-primary-hover: #303136;
--accent-emerald: #147a5a;
--glow-emerald: rgba(20, 122, 90, 0.1);
color: var(--text-primary);
}
@media (min-width: 640px) {
.docdoe-page {
padding-inline: 1.5rem;
}
}
@media (min-width: 1024px) {
.docdoe-page {
padding-inline: 2rem;
}
}
/* ββ Mobile responsiveness utilities ββ */
/* Ensure all select elements stay within parent on mobile */
select {
max-width: 100%;
}
/* Prevent long text from causing overflow in cards */
.docdoe-page h1,
.docdoe-page h2,
.docdoe-page h3,
.docdoe-page h4 {
overflow-wrap: break-word;
word-break: break-word;
}
/* Consistent min tap target for interactive elements */
.docdoe-page button:not([aria-hidden]),
.docdoe-page a[href] {
min-height: 36px;
}
/* Prevent video from overflowing on small screens */
.docdoe-page video {
max-width: 100%;
height: auto;
}
/* Scrollable chip rows shouldn't overflow parent */
.docdoe-page .overflow-x-auto {
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.docdoe-page .overflow-x-auto::-webkit-scrollbar {
display: none;
}
/* ββ Knowledge brain /home workspace ββ */
.kb-workspace {
--kb-surface: rgba(255, 255, 255, 0.028);
--kb-border: rgba(255, 255, 255, 0.085);
}
.kb-composer-hero {
box-shadow:
0 22px 80px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(255, 255, 255, 0.05),
0 0 0 1px rgba(255, 255, 255, 0.03);
}
.kb-composer-hero:focus-within {
box-shadow:
0 26px 90px rgba(0, 0, 0, 0.5),
inset 0 1px 0 rgba(255, 255, 255, 0.06),
0 0 0 1px rgba(255, 255, 255, 0.08);
}
.kb-composer-dock {
box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
}
.kb-empty-scroll,
.kb-thread-scroll {
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
}
@keyframes kb-empty-rise {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.kb-empty-enter {
animation: kb-empty-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.kb-empty-enter-d1 { animation-delay: 0.06s; }
.kb-empty-enter-d2 { animation-delay: 0.12s; }
.kb-empty-enter-d3 { animation-delay: 0.18s; }
.kb-empty-enter-d4 { animation-delay: 0.24s; }
.kb-empty-enter-d5 { animation-delay: 0.3s; }
.kb-quick-actions {
scroll-snap-type: x proximity;
}
.kb-quick-actions button {
scroll-snap-align: start;
}
@media (prefers-reduced-motion: reduce) {
.kb-empty-enter,
.kb-empty-enter-d1,
.kb-empty-enter-d2,
.kb-empty-enter-d3,
.kb-empty-enter-d4,
.kb-empty-enter-d5 {
animation: none;
opacity: 1;
transform: none;
}
}
|