:root{
--motion-fast: 100ms;
--motion-base: 160ms;
--motion-slow: 240ms;
--motion-fill: 650ms;
--ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
--ease-in: cubic-bezier(0.4, 0, 1, 1);
--ease-move: cubic-bezier(0.4, 0, 0.2, 1);
--ease-fill: cubic-bezier(0.4, 0, 0.6, 1);
--bg: #fff;
--fg: #000;
--line: color-mix(in srgb, var(--fg) 17%, var(--bg));
--soft: color-mix(in srgb, var(--fg) 5%, var(--bg));
--muted: color-mix(in srgb, var(--fg) 62%, var(--bg));
--disabled: color-mix(in srgb, var(--fg) 52%, var(--bg));
font-family: var( --font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif );
font-size: 12px;
--icon-scale: 0.9;
accent-color: var(--accent, var(--fg));
color: var(--fg);
background: var(--bg);
font-synthesis: none;
}
@media (prefers-reduced-motion: reduce){:root{
--motion-fast: 0ms;
--motion-base: 0ms;
--motion-slow: 0ms;
--motion-fill: 0ms;
}}
*{
box-sizing: border-box;
}
html,body{
margin: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
button,input,select,textarea{
font: inherit;
color: inherit;
}
button{
cursor: pointer;
background: transparent;
border: 1px solid transparent;
border-radius: calc(4px * var(--radius, 1));
padding: 5px 8px;
white-space: nowrap;
transition: transform var(--motion-fast) var(--ease-out);
}
button:active:not(:disabled){
transform: scale(0.97);
}
button:hover:not(:disabled){
background: var(--hover, var(--soft));
}
button:disabled{
color: var(--disabled);
--fg: var(--disabled);
--muted: var(--disabled);
cursor: default;
}
::placeholder{
color: var(--disabled);
opacity: 1;
}
button:focus-visible,[tabindex]:focus-visible{
outline: 2px solid color-mix(in srgb, var(--fg) 45%, transparent);
outline-offset: -2px;
}
input:focus,select:focus,textarea:focus{
outline: none;
border-color: color-mix(in srgb, var(--fg) 55%, var(--bg));
}
[contenteditable]:focus{
outline: none;
}
input,select,textarea{
background: var(--bg);
border: 1px solid var(--line);
border-radius: calc(4px * var(--radius, 1));
padding: 5px 6px;
min-width: 0;
}
select{
height: 28px;
max-width: 150px;
}
textarea{
resize: vertical;
min-height: 80px;
}
p{
line-height: 1.5;
}
h2{
font-size: 18px;
margin: 0 0 20px;
font-weight: 600;
}
h3{
font-size: 12px;
font-weight: 600;
margin: 0 0 12px;
color: var(--muted);
}
:root{
--keyboard-zindex: 600;
--scrim-zindex: 600;
--suggestion-zindex: 610;
--ui-menu-z-index: 610;
}
@media (prefers-reduced-motion: reduce){*{
scroll-behavior: auto !important;
animation: none !important;
transition: none !important;
}}
:root{
--atlas-ai: #8b6cff;
}
:root{
--flag-spelling: #e5484d;
--flag-grammar: #3e8ef7;
--flag-style: #30a46c;
--flag-fact: #f76b15;
--flag-verify: #e2b100;
--flag-conflict: var(--atlas-ai);
--flag-risk: #d6409f;
}
:root{
--replay-typed: color-mix(in srgb, var(--fg) 45%, var(--bg));
--replay-outside: #e2b100;
--replay-inside: #3e8ef7;
--replay-ai: var(--atlas-ai);
--replay-away: color-mix(in srgb, var(--fg) 30%, var(--bg));
--replay-flag: #e5484d;
}
:root,.atlas-drive-root{
--atlas-drive-ease: var(--ease-out);
--atlas-drive-soft: color-mix(in srgb, var(--hover) 62%, transparent);
--atlas-drive-raised: color-mix(in srgb, var(--fg) 4%, var(--bg));
--atlas-drive-red-text: color-mix(in srgb, #d33b3b 72%, var(--fg));
--atlas-drive-shadow:
0 1px 0 color-mix(in srgb, var(--fg) 6%, transparent),
0 18px 50px -12px rgb(0 0 0 / 0.45);
}
.atlas-drive-root{
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
color: var(--fg);
background: var(--bg);
font: 13px/1.4
var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
-webkit-font-smoothing: antialiased;
font-synthesis: none;
}
.atlas-drive-root *,.atlas-drive-root *::before,.atlas-drive-root *::after{
box-sizing: border-box;
}
.atlas-drive-root button:not(:where(.atlas-cloud-editor *)){
font: inherit;
color: inherit;
background: none;
border: 0;
margin: 0;
padding: 0;
cursor: default;
text-align: inherit;
border-radius: 0;
white-space: nowrap;
}
.atlas-drive-root
button:not(:where(.atlas-cloud-editor *)):hover:not(:disabled){
background: none;
border-color: transparent;
}
.atlas-drive-root a:hover{
color: inherit;
}
.atlas-drive-root
:is(button, [tabindex], input):not(
:where(.atlas-cloud-editor *)
):focus-visible{
outline: 2px solid var(--fg);
outline-offset: -2px;
}
.atlas-drive-root .atlas-drive-btn{
display: inline-flex;
align-items: center;
gap: 7px;
height: 32px;
padding: 0 11px;
border-radius: calc(8px * var(--radius, 1));
border: 1px solid var(--line);
font-size: 12.5px;
color: var(--fg);
transition:
background var(--motion-fast) var(--ease-out),
border-color var(--motion-fast) var(--ease-out),
transform var(--motion-fast) var(--ease-out);
}
.atlas-drive-root .atlas-drive-btn:hover:not(:disabled){
background: var(--atlas-drive-soft);
border-color: color-mix(in srgb, var(--fg) 30%, var(--bg));
}
.atlas-drive-root .atlas-drive-btn:active:not(:disabled){
transform: scale(0.97);
}
.atlas-drive-root .atlas-drive-btn:disabled{
color: var(--disabled);
--fg: var(--disabled);
--muted: var(--disabled);
}
.atlas-drive-root .atlas-drive-btn.atlas-drive-primary:disabled{
background: var(--hover);
color: var(--disabled);
border-color: transparent;
}
.atlas-drive-root .atlas-drive-btn.atlas-drive-primary{
background: var(--accent, var(--fg));
color: var(--accent-fg, var(--bg));
border-color: transparent;
}
.atlas-drive-root .atlas-drive-btn.atlas-drive-primary:hover:not(:disabled){
background: var(--fg);
opacity: 0.88;
}
.atlas-drive-dialog{
width: min(440px, calc(100vw - 32px));
padding: 22px;
border-radius: calc(14px * var(--radius, 1));
border: 1px solid var(--line);
background: var(--bg);
color: var(--fg);
box-shadow: 0 30px 90px -20px rgb(0 0 0 / 0.55);
}
.atlas-drive-dialog[open]{
animation: atlas-drive-dialog var(--motion-slow) var(--ease-out) both;
}
.atlas-drive-dialog::backdrop{
background: rgb(0 0 0 / 0.32);
backdrop-filter: blur(3px);
animation: atlas-drive-fade var(--motion-base) var(--ease-out) both;
}
.atlas-drive-dialog h2{
margin: 0 0 6px;
font-size: 17px;
font-weight: 600;
letter-spacing: -0.015em;
}
.atlas-drive-dialog p{
margin: 0 0 12px;
font-size: 12.5px;
line-height: 1.55;
color: var(--muted);
}
.atlas-drive-dialog label{
display: block;
margin: 14px 0 6px;
font-size: 11.5px;
font-weight: 500;
color: var(--muted);
}
.atlas-drive-dialog input,.atlas-drive-dialog select{
display: block;
width: 100%;
height: 36px;
padding: 0 11px;
border-radius: calc(8px * var(--radius, 1));
border: 1px solid var(--line);
background: var(--atlas-drive-raised, var(--bg));
color: var(--fg);
font: inherit;
font-size: 13px;
transition: border-color var(--motion-fast) var(--ease-out);
}
.atlas-drive-dialog form > select{
max-width: 100%;
}
.atlas-drive-dialog input[type="checkbox"],.atlas-drive-dialog input[type="radio"]{
display: inline-block;
flex: none;
width: 15px;
height: 15px;
margin: 2px 0 0;
padding: 0;
}
.atlas-drive-dialog input:focus,.atlas-drive-dialog select:focus{
outline: none;
border-color: color-mix(in srgb, var(--fg) 55%, var(--bg));
}
.atlas-drive-dialog-actions{
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 22px;
}
.atlas-drive-toast{
position: fixed;
left: 50%;
bottom: 22px;
z-index: 10001;
display: flex;
align-items: center;
gap: 12px;
max-width: calc(100vw - 40px);
padding: 10px 14px;
border-radius: calc(10px * var(--radius, 1));
background: var(--fg);
color: var(--bg);
font-size: 12.5px;
box-shadow: 0 12px 34px -10px rgb(0 0 0 / 0.5);
transform: translate(-50%, 12px);
opacity: 0;
pointer-events: none;
transition:
opacity var(--motion-base) var(--ease-out),
transform var(--motion-base) var(--ease-out);
}
.atlas-drive-toast.atlas-drive-visible{
transform: translate(-50%, 0);
opacity: 1;
pointer-events: auto;
}
.atlas-drive-toast button{
font: inherit;
font-weight: 600;
color: inherit;
background: none;
border: 0;
padding: 0;
text-decoration: underline;
text-underline-offset: 3px;
cursor: default;
}
.atlas-drive-fade-in{
animation: atlas-drive-fade var(--motion-base) var(--ease-out) both;
}
@media (max-width: 760px){.atlas-drive-root .atlas-drive-btn{
padding: 0 9px;
}}
@media (prefers-reduced-motion: reduce){.atlas-drive-root *,.atlas-drive-root *::before,.atlas-drive-root *::after,.atlas-drive-dialog,.atlas-drive-dialog::backdrop,.atlas-drive-toast{
animation: none !important;
transition: none !important;
}}
.atlas-drive-root .atlas-drive-btn{
position: relative;
isolation: isolate;
}
.atlas-drive-root .atlas-drive-btn::before{
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: inherit;
background: var(--accent-soft, var(--selection));
pointer-events: none;
opacity: 0;
transition: opacity var(--motion-base) var(--ease-in);
}
.atlas-drive-root .atlas-drive-btn:hover:not(:disabled)::before,.atlas-drive-root .atlas-drive-btn:focus-visible::before{
opacity: 1;
transition: opacity var(--motion-fill) var(--ease-fill);
}
.atlas-drive-root .atlas-drive-btn.atlas-drive-primary::before{
opacity: 1;
transform: scaleX(0);
transform-origin: left center;
transition: transform var(--motion-base) var(--ease-in);
}
.atlas-drive-root .atlas-drive-btn.atlas-drive-primary::before{
background: color-mix(in srgb, var(--accent-fg, var(--bg)) 16%, transparent);
}
.atlas-drive-root .atlas-drive-btn.atlas-drive-primary:hover:not(:disabled)::before,.atlas-drive-root .atlas-drive-btn.atlas-drive-primary:focus-visible::before{
transform: scaleX(1);
transition: transform var(--motion-fill) var(--ease-fill);
}
.atlas-drive-root .atlas-drive-btn[aria-pressed="true"]::before{
display: none;
}
.atlas-drive-dialog textarea{
width: 100%;
font:
13px/1.45 ui-monospace,
SFMono-Regular,
Menlo,
monospace;
padding: 8px;
border-radius: calc(8px * var(--radius, 1));
border: 1px solid var(--line);
background: var(--atlas-drive-raised, var(--bg));
color: var(--fg);
resize: vertical;
}
@keyframes atlas-drive-fade {
from {
opacity: 0;
}
}
@keyframes atlas-drive-dialog {
from {
opacity: 0;
transform: translateY(8px) scale(0.98);
}
}
:root{
color-scheme: dark;
--bg: #000;
--fg: #fff;
--chrome: #0b0b0b;
--panel: #0b0b0b;
--line: #383838;
--muted: #adadad;
--disabled: #878787;
--hover: #212121;
--selection: #333;
}
[hidden]{
display: none !important;
}
body.drive{
margin: 0;
padding: 0;
height: 100svh;
overflow: hidden;
font: 13px/1.4
var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
background: var(--bg);
color: var(--fg);
}
.drive a{
color: inherit;
}
#work{
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
overflow: auto;
position: relative;
}
.editor-loading{
margin: auto;
display: flex;
gap: 7px;
}
.editor-loading span{
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--fg);
opacity: 0.25;
animation: atlas-drive-pulse 0.9s ease-in-out infinite alternate;
}
.editor-loading span:nth-child(2){
animation-delay: var(--motion-base);
}
.editor-loading span:nth-child(3){
animation-delay: var(--motion-slow);
}
#dialog .atlas-drive-btn{
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 32px;
padding: 0 12px;
border: 1px solid transparent;
border-radius: calc(8px * var(--radius, 1));
font: inherit;
font-size: 12.5px;
white-space: nowrap;
background: none;
color: var(--fg);
}
#dialog .atlas-drive-btn:hover:not(:disabled):not(.atlas-drive-primary){
background: var(--atlas-drive-soft);
}
#dialog .atlas-drive-btn:disabled{
color: var(--disabled);
--fg: var(--disabled);
--muted: var(--disabled);
}
#dialog .atlas-drive-btn.atlas-drive-primary:disabled{
background: var(--hover);
color: var(--disabled);
border-color: transparent;
}
#dialog .atlas-drive-btn.atlas-drive-primary{
background: var(--accent, var(--fg));
color: var(--accent-fg, var(--bg));
}
#dialog h3{
margin: 18px 0 4px;
font-size: 12px;
font-weight: 600;
}
@media (prefers-reduced-motion: reduce){body.drive *,body.drive *::before,body.drive *::after{
animation: none !important;
transition: none !important;
}}
@keyframes atlas-drive-pulse {
from {
opacity: 0.25;
}
to {
opacity: 0.9;
}
}
body.drive.open-file {
height: auto;
min-height: 100svh;
overflow: auto;
}
body.drive.open-file.has-file {
height: 100svh;
overflow: hidden;
}
body.drive.open-file > .open-root {
min-height: 100svh;
}
body.drive.open-file.has-file > .open-root {
height: 100%;
min-height: 0;
}
.when-in,
:root[data-session="in"] .when-out {
display: none !important;
}
:root[data-session="in"] .when-in {
display: inline-flex !important;
}
.open-bar {
position: sticky;
top: 0;
z-index: 5;
height: 44px;
flex: none;
display: flex;
align-items: center;
gap: 8px;
padding: 0 12px 0 0;
background: var(--chrome);
border-bottom: 1px solid var(--line);
}
.open-brand {
display: flex;
align-items: center;
gap: 10px;
height: 44px;
padding: 0 14px;
color: inherit;
text-decoration: none;
font-size: 13px;
font-weight: 600;
letter-spacing: -0.01em;
white-space: nowrap;
}
.open-brand svg {
width: 24px;
height: 20px;
fill: currentColor;
}
.open-spacer {
flex: 1;
}
.open-file-actions {
display: flex;
gap: 8px;
}
.open-file-actions[hidden] {
display: none;
}
.open-bar .atlas-drive-btn {
flex: none;
text-decoration: none;
white-space: nowrap;
}
.open-bar .atlas-drive-btn:focus-visible,
.open-empty :is(a, button):focus-visible {
outline: 2px solid var(--accent, var(--fg));
outline-offset: 2px;
}
body.drive.open-file #work {
overflow: visible;
}
body.drive.open-file.has-file #work {
overflow: hidden;
}
.open-editor {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.open-empty {
width: 100%;
max-width: 720px;
margin: 0 auto;
padding: 28px 24px 72px;
font-size: 14px;
line-height: 1.55;
}
.open-crumbs ol {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 0 0 28px;
padding: 0;
list-style: none;
font-size: 12.5px;
color: var(--muted);
}
.open-crumbs li + li::before {
content: "/";
margin-right: 6px;
opacity: 0.6;
}
.open-empty .open-crumbs a {
color: var(--muted);
text-decoration: none;
}
.open-empty .open-crumbs a:hover {
color: var(--fg);
}
.open-empty h1 {
margin: 0 0 22px;
font-family: var(--font-heading, var(--font-ui, inherit));
font-size: clamp(28px, 6vw, 40px);
font-weight: 650;
line-height: 1.12;
letter-spacing: -0.025em;
color: var(--fg);
}
.open-empty a {
color: var(--fg);
text-decoration: underline;
text-decoration-color: color-mix(in srgb, var(--fg) 35%, transparent);
text-underline-offset: 3px;
}
.open-empty a:hover {
text-decoration-color: currentColor;
}
.dropzone {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px 14px;
padding: 30px 24px;
border: 1.5px dashed color-mix(in srgb, var(--fg) 28%, var(--bg));
border-radius: calc(12px * var(--radius, 1));
background: var(--panel);
color: var(--muted);
font-size: 15px;
transition:
border-color var(--motion-fast) var(--ease-out),
background var(--motion-fast) var(--ease-out);
}
.dropzone:hover,
.dropzone:focus-within,
.dropzone.is-over {
border-color: var(--accent, var(--fg));
background: var(--accent-soft, var(--hover));
}
.open-empty .dropzone .atlas-drive-btn {
height: 34px;
padding: 0 14px;
background: var(--bg);
font-size: 13px;
}
.open-status {
margin: 12px 0 0;
font-size: 13.5px;
color: var(--fg);
}
.open-status:empty {
display: none;
}
.open-fine {
margin: 12px 0 0;
font-size: 13px;
color: var(--muted);
}
.open-samples a {
white-space: nowrap;
}
.open-about {
margin-top: 44px;
padding-top: 24px;
border-top: 1px solid var(--line);
}
.open-about h2 {
margin: 0 0 10px;
font-size: 15px;
font-weight: 600;
color: var(--fg);
}
.open-about p {
margin: 0 0 12px;
color: var(--muted);
}
.open-links {
display: flex;
flex-wrap: wrap;
gap: 8px 20px;
}
.open-noscript {
max-width: 720px;
margin: 0 auto;
padding: 0 24px 24px;
}
@media (max-width: 560px) {
.open-empty {
padding: 20px 16px 56px;
}
.dropzone {
padding: 22px 16px;
}
.open-bar {
gap: 6px;
padding-right: 8px;
}
.open-brand {
padding: 0 10px 0 14px;
}
.open-bar .atlas-drive-btn {
padding: 0 10px;
}
.has-file .open-brand span,
.has-file .open-bar > .when-in,
.has-file .open-bar > .when-out {
display: none !important;
}
}
