@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_AMS-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_AMS-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_AMS-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/katex/fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(/katex/fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),url(/katex/fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/katex/fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(/katex/fonts/KaTeX_Fraktur-Bold.woff) format("woff"),url(/katex/fonts/KaTeX_Fraktur-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Fraktur-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Fraktur-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/katex/fonts/KaTeX_Main-Bold.woff2) format("woff2"),url(/katex/fonts/KaTeX_Main-Bold.woff) format("woff"),url(/katex/fonts/KaTeX_Main-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/katex/fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(/katex/fonts/KaTeX_Main-BoldItalic.woff) format("woff"),url(/katex/fonts/KaTeX_Main-BoldItalic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/katex/fonts/KaTeX_Main-Italic.woff2) format("woff2"),url(/katex/fonts/KaTeX_Main-Italic.woff) format("woff"),url(/katex/fonts/KaTeX_Main-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Main-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Main-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Main-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/katex/fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(/katex/fonts/KaTeX_Math-BoldItalic.woff) format("woff"),url(/katex/fonts/KaTeX_Math-BoldItalic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/katex/fonts/KaTeX_Math-Italic.woff2) format("woff2"),url(/katex/fonts/KaTeX_Math-Italic.woff) format("woff"),url(/katex/fonts/KaTeX_Math-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(/katex/fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(/katex/fonts/KaTeX_SansSerif-Bold.woff) format("woff"),url(/katex/fonts/KaTeX_SansSerif-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(/katex/fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(/katex/fonts/KaTeX_SansSerif-Italic.woff) format("woff"),url(/katex/fonts/KaTeX_SansSerif-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_SansSerif-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_SansSerif-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Script-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Script-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Script-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Size1-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Size1-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Size1-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Size2-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Size2-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Size2-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Size3-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Size3-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Size3-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Size4-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Size4-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Size4-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/katex/fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(/katex/fonts/KaTeX_Typewriter-Regular.woff) format("woff"),url(/katex/fonts/KaTeX_Typewriter-Regular.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,math,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.18.11"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.katex-newline{display:block}.katex .katex-base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .katex-base,.katex .katex-strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .katex-vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .katex-thinbox{display:inline-flex;flex-direction:row;max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .katex-hdashline,.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-rule,.katex .katex-underline .underline-line,.katex .mfrac .frac-line{min-height:1px}.katex .mspace{display:inline-block}.katex .katex-smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.katex-inner,.katex .llap>.katex-inner,.katex .rlap>.katex-inner{position:absolute}.katex .clap>.katex-fix,.katex .llap>.katex-fix,.katex .rlap>.katex-fix{display:inline-block}.katex .llap>.katex-inner{right:0}.katex .clap>.katex-inner,.katex .rlap>.katex-inner{left:0}.katex .clap>.katex-inner>span{margin-left:-50%;margin-right:50%}.katex .katex-rule{border:0 solid;display:inline-block;position:relative}.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .katex-hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.katex-root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .katex-sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .katex-sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .katex-sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .katex-sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .katex-sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .katex-sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .katex-sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .katex-sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .katex-sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .katex-sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .katex-sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .katex-sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .katex-sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .katex-sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .katex-sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .katex-sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .katex-sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .katex-sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .katex-sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .katex-sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .katex-sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .katex-sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .katex-sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .katex-sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .katex-sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .katex-sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .katex-sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .katex-sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .katex-sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .katex-sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .katex-sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .katex-sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .katex-sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .katex-sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .katex-sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .katex-sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .katex-sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .katex-sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .katex-sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .katex-sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .katex-sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .katex-sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .katex-sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .katex-sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .katex-sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .katex-sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .katex-sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .katex-sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .katex-sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .katex-sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .katex-sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .katex-sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .katex-sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .katex-sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .katex-sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .katex-sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .katex-sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .katex-sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .katex-sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .katex-sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .katex-sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .katex-sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .katex-sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .katex-sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .katex-sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .katex-sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .katex-sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .katex-sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .katex-sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .katex-sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .katex-sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .katex-sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .katex-sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .katex-sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .katex-sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .katex-sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .katex-sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .katex-sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .katex-sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .katex-sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .katex-sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .katex-sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .katex-sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .katex-sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .katex-sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .katex-sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .katex-sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .katex-sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .katex-sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .katex-sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .katex-sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .katex-sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .katex-sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .katex-sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .katex-sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .katex-sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .katex-sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .katex-sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .katex-sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .katex-sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .katex-sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .katex-sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .katex-sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .katex-sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .katex-sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .katex-sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .katex-sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .katex-sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .katex-sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .katex-sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .katex-sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .katex-sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .katex-sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .katex-sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .katex-sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .katex-sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .katex-sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .katex-sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .katex-sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .katex-sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .katex-sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .katex-accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .katex-accent .accent-body{position:relative}.katex .katex-accent .accent-body:not(.accent-full){width:0}.katex .katex-overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .katex-stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .katex-stretchy:after,.katex .katex-stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .katex-sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .reflectbox{display:inline-block;transform:scaleX(-1)}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.katex-tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.katex-tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}

/* src/editors/slides.css */
.slide-thumb:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}
.slides-editor .native-chrome {
  flex: none;
  border-bottom: 1px solid var(--line);
}
.slides-editor .editor-menus {
  min-height: 29px;
  padding: 0 12px;
  gap: 5px;
}
.slides-editor .native-medium {
  min-height: 44px;
  margin: 0;
  padding: 5px 12px;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.slides-editor .native-medium > * {
  flex-shrink: 0;
}
.slides-editor .slide-status-actions .native-tool > span,
.slides-editor .slide-quick-insert .native-menu .menu-trigger > span {
  display: none;
}
.slides-editor .slide-status-actions .native-tool {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 5px;
}
.slides-editor .slide-quick-insert {
  display: flex;
  gap: 2px;
}
.slides-editor .ribbon-tabs {
  gap: 4px;
  padding: 0 12px;
  height: 32px;
}
.slides-editor .ribbon-tabs > button {
  position: relative;
  border-radius: 0;
  height: 32px;
  padding: 0 14px;
}
.slides-editor .ribbon-tabs > button.active {
  background: transparent;
}
.slides-editor .ribbon-tabs > button.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--fg);
}
.slides-editor .ribbon-tools {
  height: 94px;
  overflow: auto hidden;
  align-items: stretch;
  padding: 5px 8px 6px;
}
.slides-editor .ribbon-group {
  gap: 3px;
  padding: 0 12px;
}
.slides-editor .ribbon-group > div {
  flex: 1;
  height: 62px;
  gap: 6px;
}
.slides-editor .ribbon-group > span {
  text-align: center;
  font-size: 10px;
  line-height: 14px;
}
.slides-editor .ribbon-group .native-tool {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  height: 54px;
  min-width: 46px;
  font-size: 11px;
}
.slides-editor .ribbon-group .slide-control-row .native-tool {
  height: 28px;
  width: 30px;
  min-width: 0;
}
.slides-editor .ribbon-group .slide-control-row .native-tool > span {
  display: none;
}
.slide-control-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.slide-control-row {
  display: flex;
  align-items: center;
  gap: 3px;
}
.slide-font-controls {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.slides-editor .slide-font-controls select {
  width: 128px;
  max-width: 128px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
}
.slides-editor .slide-font-controls .field > span {
  display: none;
}
.slides-editor .slide-font-controls .field input {
  width: 44px;
  height: 27px;
}
.slides-editor .slide-list {
  width: 180px;
  min-width: 140px;
  padding: 0 8px 16px;
  background: var(--chrome);
  border-right: 1px solid var(--line);
}
.slide-list-heading {
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 11px;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--chrome);
}
.slides-editor .slide-thumb {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.slides-editor .slide-thumb > span {
  width: 16px;
  flex: none;
  font-size: 10px;
  text-align: right;
  padding-top: 3px;
}
.slides-editor .slide-thumb > div {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px #0002;
}
.slides-editor .slide-thumb.active > div {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
.slides-editor .slide-thumb:hover:not(.active) > div {
  outline: 1px solid var(--line);
  outline-offset: 2px;
}
.slides-editor .canvas-scroll {
  padding: 28px;
  background: var(--canvas);
}
.slides-editor .canvas-stage {
  box-shadow: 0 2px 12px #0002;
}
.slides-editor .notes-below {
  height: 100px;
  padding: 8px 16px;
}
.slides-editor .notes-below textarea {
  font-size: 13px;
}
.slide-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.slides-editor .editorstatus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
}
.slide-status-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.slide-status-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 7px;
}
.slide-zoom-value {
  min-width: 42px;
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.slide-templates {
  display: grid;
  gap: 14px;
  padding: 2px 2px 16px;
}
.slide-templates > p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}
.slide-template {
  display: grid;
  gap: 5px;
}
.slides-editor .slide-template-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}
.slides-editor .slide-template-cover:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px #0002;
}
.slides-editor .slide-template-cover::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);
}
.slides-editor .slide-template-cover:hover::before,
.slides-editor .slide-template-cover:focus-visible::before {
  opacity: 1;
  transition: opacity var(--motion-fill) var(--ease-fill);
}
.slide-template.current .slide-template-cover::before {
  display: none;
}
.slide-template.current .slide-template-cover,
.slide-template.choosing .slide-template-cover {
  box-shadow: 0 0 0 2px var(--fg);
}
.slide-template-cover img,
.slide-template-cover span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.slide-template-swatches {
  display: flex;
  gap: 3px;
}
.slide-template-swatches i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px #8886;
}
.slide-template > p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}
.slide-template-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.slides-editor .slide-template-actions button {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.slides-editor .slide-template-actions button:first-child {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}
.slide-theme {
  display: grid;
  gap: 8px;
  padding: 2px 2px 16px;
}
.slide-theme > p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}
.slide-theme h3 {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
}
.slide-theme-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}
.slide-theme-colors .color {
  height: 30px;
}
.slide-theme-colors .color-trigger {
  justify-content: space-between;
  width: 100%;
  font-size: 11px;
}
.slide-theme-fonts {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 8px;
  font-size: 11px;
}
.slide-theme-palettes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.slides-editor .slide-theme-palettes button {
  display: flex;
  height: 22px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.slides-editor .slide-theme-palettes button:hover {
  box-shadow: 0 0 0 1px var(--fg);
}
.slide-theme-palettes i {
  flex: 1;
}
.slides-editor .slide-theme-reset {
  height: 28px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.slide-chart {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 11px;
}
.slide-chart > label {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
}
.slide-chart > label.slide-chart-check {
  display: flex;
}
.slide-chart input:not([type=checkbox]),
.slide-chart select {
  min-width: 0;
  height: 24px;
  font-size: 11px;
}
.slide-chart-data {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.slide-chart-data table {
  border-collapse: collapse;
}
.slide-chart-data table.fit {
  width: 100%;
  table-layout: fixed;
}
.slide-chart-data table.fit thead th:first-child {
  width: 34%;
}
.slide-chart-data thead th:last-child {
  width: 22px;
}
.slide-chart-data th,
.slide-chart-data td {
  position: relative;
  padding: 1px;
  border-bottom: 1px solid var(--line);
  font-weight: normal;
}
.slide-chart-data input {
  width: 72px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  padding: 0 4px;
}
.slide-chart-data input.numeric {
  width: 56px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.slide-chart-data table.fit input,
.slide-chart-data table.fit input.numeric {
  width: 100%;
}
.slide-chart-data input:focus {
  outline: 2px solid var(--accent, #1a73e8);
  outline-offset: -2px;
  background: var(--bg);
}
.slide-chart-data thead input {
  font-weight: 600;
}
.slide-chart-series {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.slide-chart-series .color.color-icon,
.slide-chart-series .color.color-icon > .color-trigger {
  flex-shrink: 0;
  width: 16px;
  height: 22px;
}
.slide-chart-series .color-icon .color-bar {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.slide-chart-data .icon-button {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}
.slide-chart-data thead .slide-chart-series > .icon-button {
  position: absolute;
  right: 1px;
  display: none;
  background: var(--bg);
}
.slide-chart-data thead th:hover .slide-chart-series > .icon-button,
.slide-chart-data thead th:focus-within .slide-chart-series > .icon-button {
  display: inline-flex;
}
.slide-chart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.slides-editor .slide-chart-actions button {
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.slide-chart > p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .slides-editor .slide-template-cover {
    transition: none;
  }
}
@media (max-width: 1100px) {
  .slides-editor .slide-medium-extra {
    display: none;
  }
  .slides-editor .slide-list {
    width: 150px;
  }
}
@media (max-width: 800px) {
  .slides-editor .editorbody {
    position: relative;
  }
  .slides-editor .slide-list {
    width: 118px;
    min-width: 118px;
  }
  .slides-editor .inspector {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 4;
    border-left: 1px solid var(--line);
  }
}
.slides-editor .slide-font-controls .field {
  margin: 0;
  width: 44px;
  flex: none;
}
.presenter-view {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 20px;
  padding: 20px 20px 56px;
  color: #fff;
  font: 14px system-ui, sans-serif;
}
.presenter-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #000;
}
.presenter-current img,
.presenter-next img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.presenter-side {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
}
.presenter-next {
  display: grid;
  gap: 6px;
  aspect-ratio: 16 / 10;
  color: #aaa;
}
.presenter-end {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  color: #888;
}
.presenter-timer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.presenter-timer strong {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  margin-right: auto;
}
.presenter-timer span {
  color: #aaa;
}
.presenter-notes {
  overflow: auto;
  padding: 14px;
  border-radius: 6px;
  background: #151515;
  white-space: pre-wrap;
  font-size: 20px;
  line-height: 1.45;
}
.presenter-controls {
  display: flex;
  gap: 8px;
}
.presenter-view button {
  padding: 6px 12px;
  border: 1px solid #444;
  border-radius: 5px;
  background: #1c1c1c;
  color: #fff;
}
.graphics-center {
  position: relative;
}
.slide-sorter {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  align-content: start;
  gap: 22px;
  padding: 24px;
  overflow: auto;
  background: var(--canvas);
  outline: none;
}
.sorter-slide {
  display: grid;
  gap: 6px;
  cursor: grab;
}
.sorter-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.sorter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sorter-slide.active .sorter-thumb {
  box-shadow: 0 0 0 3px var(--fg);
}
.sorter-slide.skipped .sorter-thumb {
  opacity: 0.4;
}
.sorter-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* src/style.css */
: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,
#root {
  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;
}
button:disabled :is(img, canvas, video, .color-swatch) {
  opacity: 0.4;
}
::placeholder {
  color: var(--disabled);
  opacity: 1;
}
.paper ::placeholder {
  color: #757575;
}
button.active,
.active > button {
  background: var(--selection, var(--soft));
}
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,
.cm-content:focus,
.sheet-scroll:focus-visible,
.model-canvas:focus-visible {
  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);
}
.workspace {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tabbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 14px 0 0;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--chrome);
}
.brand {
  padding: 0 14px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 44px;
}
.tabs {
  display: flex;
  align-items: center;
  overflow: auto;
  gap: 0;
  scrollbar-width: none;
  flex: 1;
  height: 100%;
}
.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  max-width: 280px;
  min-width: 95px;
  height: 44px;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  position: relative;
}
.tab.selected {
  background: var(--bg);
  border-color: transparent;
}
.tab > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.tab > button {
  font-size: 14px;
  padding: 0;
  width: 24px;
  height: 26px;
}
.tab-actions {
  display: flex;
  gap: 12px;
  padding-left: 14px;
}
.tab-actions > .update-chip {
  width: 26px;
  height: 26px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--selection);
  color: var(--fg);
}
.tab-actions > .update-chip.ready,
.tab-actions > .update-chip.ready:hover {
  background: var(--accent, var(--fg));
  color: var(--accent-fg, var(--bg));
}
.tab-actions > .update-chip.ready:hover {
  opacity: 0.86;
}
.tab-actions > .update-chip.downloading {
  background:
    radial-gradient(
      circle,
      var(--chrome) 10px,
      transparent 10.5px),
    conic-gradient(var(--fg) calc(var(--progress) * 360deg), var(--selection) 0);
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .tab-actions > .update-chip {
    animation: update-chip-in var(--motion-slow) var(--ease-out);
  }
}
@keyframes update-chip-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
.documentbar {
  height: auto;
  min-height: 56px;
  border-bottom: 0;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  flex-shrink: 0;
}
.document-title {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.editorhost {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
}
.blankworkspace {
  flex: 1;
}
.editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 9px;
  min-height: 39px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  background: var(--chrome);
}
.toolbar button {
  height: 28px;
}
.divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 5px;
  flex-shrink: 0;
}
.color {
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
  white-space: nowrap;
  font-size: 11px;
}
.color > .color-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 3px;
  border: 0;
  border-radius: calc(4px * var(--radius, 1));
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.color > .color-trigger:hover,
.color > .color-trigger[aria-expanded=true] {
  background: var(--selection);
}
.color-swatch {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: calc(4px * var(--radius, 1));
  box-shadow: inset 0 0 0 1px var(--line);
}
.color-none .color-swatch,
.color-swatch.color-none,
.color-none .color-bar {
  background:
    linear-gradient(
      to top right,
      transparent calc(50% - 1px),
      #d93025 calc(50% - 1px) calc(50% + 1px),
      transparent calc(50% + 1px)) var(--bg) !important;
}
.color.color-icon {
  height: 30px;
}
.color.color-icon > .color-trigger {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 30px;
  height: 30px;
  padding: 0;
}
.color-icon .color-bar {
  width: 16px;
  height: 3px;
  border-radius: calc(1px * var(--radius, 1));
  box-shadow: inset 0 0 0 0.5px var(--line);
}
.color-popover {
  position: fixed;
  width: 252px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 8px 28px #0004;
  font-size: 11px;
}
.color-heading {
  display: block;
  margin: 8px 0 5px;
  color: var(--muted);
  font-size: 10.5px;
}
.color-swatches > .color-heading:first-child {
  margin-top: 0;
}
.color-grid,
.color-row {
  display: grid;
  grid-template-columns: repeat(10, 20px);
  gap: 3px;
  justify-content: space-between;
}
.color-grid > button:nth-child(10) {
  margin-bottom: 6px;
}
.color-swatch-button {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #8888;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out);
}
.color-swatch-button:hover {
  transform: scale(1.18);
}
.color-swatch-button[aria-pressed=true] {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--fg);
}
.color-swatch-button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.color-none-button,
.color-custom-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 3px 4px;
  border: 0;
  border-radius: calc(5px * var(--radius, 1));
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.color-custom-toggle {
  margin: 8px 0 0;
}
.color-none-button:hover,
.color-custom-toggle:hover {
  background: var(--hover);
}
.color-none-button .color-swatch,
.color-custom-toggle .color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.color-rainbow {
  background:
    conic-gradient(
      #e5383b,
      #f5c518,
      #2e9e5b,
      #13a3a3,
      #2f5bea,
      #7b4fe0,
      #d6409f,
      #e5383b);
}
.color-custom {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.color-area {
  position: relative;
  height: 128px;
  border-radius: calc(6px * var(--radius, 1));
  background-image:
    linear-gradient(
      to top,
      #000,
      transparent),
    linear-gradient(
      to right,
      #fff,
      transparent);
  cursor: crosshair;
  touch-action: none;
}
.color-area > i {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #0006;
  pointer-events: none;
}
.color-hue {
  width: 100%;
  height: 10px;
  margin: 0;
  border-radius: calc(5px * var(--radius, 1));
  appearance: none;
  background:
    linear-gradient(
      to right,
      #f00,
      #ff0,
      #0f0,
      #0ff,
      #00f,
      #f0f,
      #f00);
}
.color-hue::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: transparent;
  box-shadow: 0 0 0 1px #0006;
}
.color-hue::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px #0006;
}
.color-custom-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.color-custom-row input {
  flex: 1;
  min-width: 0;
  height: 26px;
  font-family:
    ui-monospace,
    Menlo,
    monospace;
  text-transform: uppercase;
}
.color-apply {
  height: 26px;
  padding: 0 10px;
}
.toolbar .field {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}
.toolbar .field input {
  width: 60px;
  height: 27px;
}
.editorbody {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.inspector {
  width: 268px;
  min-width: 215px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  overflow: auto;
  background: var(--panel);
  padding: 14px 12px;
}
.panel {
  padding: 0 0 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.field span {
  text-transform: capitalize;
  font-size: 11px;
  color: var(--muted);
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}
.property-grid input,
.property-grid select {
  width: 100%;
  min-width: 0;
}
.panel > input,
.panel > select,
.panel > textarea {
  max-width: 100%;
  width: 100%;
  margin-bottom: 8px;
}
.panel > .field input {
  max-width: 100%;
}
.panel > p {
  font-size: 11px;
  color: var(--muted);
}
.editorstatus {
  height: 34px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  background: var(--chrome);
}
.editorstatus select {
  margin-left: auto;
  height: 24px;
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
  color: inherit;
}
.editorstatus select:hover {
  background: var(--hover, var(--soft));
}
.notice {
  animation: atlas-fade var(--motion-base) var(--ease-out) both;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  font-size: 11px;
  line-height: 1.4;
  flex-shrink: 0;
}
.notice > button:last-child {
  margin-left: auto;
}
.notice > .notice-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.notice.error {
  color: #9a201d;
  background: #fff2f0;
}
.empty {
  display: grid;
  align-content: center;
  justify-content: center;
  flex: 1;
  padding: 36px;
  text-align: center;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  animation: atlas-toast var(--motion-base) var(--ease-out) both;
  max-width: 700px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: calc(6px * var(--radius, 1));
  box-shadow: 0 5px 30px #0002;
  z-index: 150;
  line-height: 1.5;
  cursor: pointer;
}
.toast-with-action {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.toast-action {
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: default;
  white-space: nowrap;
}
.scrim {
  position: fixed;
  inset: 0;
  background: #0005;
  animation: atlas-fade var(--motion-base) var(--ease-out) both;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: min(18vh, 160px);
  z-index: 2000;
}
.embedded-image-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #0008;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.embedded-image-window {
  width: 100%;
  height: 100%;
  max-width: 1600px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  overflow: hidden;
}
.embedded-image-window > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.embedded-image-window > header > strong {
  margin-right: auto;
}
#embedded-image-controls {
  display: flex;
  gap: 8px;
}
.embedded-image-window > .editor {
  flex: 1;
  min-height: 0;
}
.atlas-equation {
  display: inline-block;
  cursor: pointer;
  border-radius: 3px;
  padding: 0 1px;
}
.atlas-equation.display {
  display: block;
  text-align: center;
  margin: 4pt 0;
}
.atlas-equation .katex-display {
  margin: 0;
}
.atlas-equation:hover,
.atlas-equation.selected {
  background: rgb(66 133 244 / 14%);
}
.atlas-equation.selected {
  outline: 1px solid rgb(66 133 244 / 60%);
}
.equation-editor:focus {
  outline: none;
}
.atlas-equation.empty {
  color: var(--muted);
  font-style: italic;
}
.atlas-equation.error {
  color: #c4320a;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
.equation-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
}
:root {
  --keyboard-zindex: 600;
  --scrim-zindex: 600;
  --suggestion-zindex: 610;
  --ui-menu-z-index: 610;
}
.link-bubble {
  position: fixed;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: min(440px, calc(100vw - 16px));
  padding: 4px 4px 4px 6px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: calc(9px * var(--radius, 1));
  box-shadow: 0 8px 30px #0003;
  font: 13px/1.3 var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
}
.link-bubble button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: calc(6px * var(--radius, 1));
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.link-bubble button:hover,
.link-bubble button:focus-visible {
  background: var(--hover, #8882);
}
.link-bubble .link-bubble-url {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
}
.link-bubble-edit {
  display: flex;
  gap: 4px;
  align-items: center;
}
.link-bubble-edit input {
  width: 280px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.link-bubble .link-bubble-apply {
  padding: 0 10px;
  background: var(--accent, var(--fg));
  color: var(--accent-fg, var(--bg));
}
.equation-editor {
  position: fixed;
  width: min(560px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: calc(9px * var(--radius, 1));
  box-shadow: 0 15px 60px #0003;
}
.equation-editor > header {
  display: flex;
  align-items: center;
  gap: 4px;
}
.equation-spacer {
  flex: 1;
}
.equation-field math-field::part(virtual-keyboard-toggle) {
  display: none;
}
.equation-field math-field {
  display: block;
  width: 100%;
  min-height: 44px;
  font-size: 20px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
}
.equation-preview {
  display: block;
  min-height: 32px;
  padding: 6px 8px;
  text-align: center;
  cursor: default;
}
.equation-source {
  width: 100%;
  box-sizing: border-box;
  font: 13px/1.4 ui-monospace, monospace;
  resize: vertical;
}
.equation-error {
  margin: 0;
  color: #c4320a;
  font-size: 12px;
}
.equation-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.equation-ask {
  display: flex;
  gap: 6px;
}
.equation-ask input {
  flex: 1;
  min-width: 0;
}
.dialog {
  animation: atlas-settle var(--motion-slow) var(--ease-out) both;
  width: 420px;
  max-height: 75vh;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(9px * var(--radius, 1));
  padding: 24px;
  box-shadow: 0 15px 60px #0003;
}
.dialog > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.dialog > label select {
  max-width: 100%;
  width: 100%;
  height: 33px;
}
.dialog input {
  height: 34px;
}
.dialog > label.dialog-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.dialog > label.dialog-check input {
  height: auto;
  margin: 0;
}
.dialog textarea {
  min-height: 130px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 20px;
}
.dialog .primary,
.dialog .primary:hover:not(:disabled) {
  background: var(--accent, var(--fg));
  color: var(--accent-fg, var(--bg));
}
.dialog-message {
  margin: 0;
  line-height: 1.5;
}
.dialog .primary.danger,
.dialog .primary.danger:hover:not(:disabled) {
  background: var(--danger, #c0392b);
  color: #fff;
}
.dialog .primary:disabled {
  background: var(--hover, var(--soft));
  color: var(--disabled);
}
.dialog > label > .color {
  align-self: flex-start;
  margin-left: -3px;
  font-size: inherit;
}
.command-search {
  animation: atlas-settle var(--motion-slow) var(--ease-out) both;
  width: min(620px, calc(100vw - 32px));
  max-height: 65vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  border-radius: calc(8px * var(--radius, 1));
  border: 1px solid var(--line);
  box-shadow: 0 15px 60px #0003;
  overflow: hidden;
}
.command-search > input {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 14px;
  background: transparent;
  color: inherit;
}
.command-search > input:focus {
  outline: none;
  box-shadow: none;
}
.command-search > [role=listbox] {
  overflow: auto;
  padding: 5px;
}
.command-search-row {
  display: grid;
  grid-template-columns: 14px minmax(0, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-radius: calc(5px * var(--radius, 1));
  cursor: default;
  font-size: 13px;
}
.command-search-row.selected {
  background: var(--selection);
}
.command-search-row.disabled {
  color: var(--disabled);
  --fg: var(--disabled);
  --muted: var(--disabled);
}
.command-search-check {
  color: var(--muted);
}
.command-search-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.command-search-none .command-search-label {
  white-space: normal;
  grid-column: 1 / -1;
}
.command-search-path {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.command-search-keys {
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.search-menus-button {
  flex-shrink: 0;
}
.command-search-scrim {
  z-index: 2100;
}
.shortcut-find {
  display: flex;
  gap: 8px;
  align-items: center;
}
.shortcut-find > input {
  flex: 1;
  min-width: 0;
}
.command-book {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(760px, 100vw);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px #0002;
  animation: atlas-glide var(--motion-slow) var(--ease-out) both;
  font-size: 12.5px;
}
.command-book > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.command-book > header h2 {
  margin: 0;
  font-size: 15px;
  flex-shrink: 0;
}
.command-book > header input {
  flex: 1;
  min-width: 0;
}
.command-book-body {
  overflow: auto;
  padding: 4px 16px 24px;
}
.command-book h3 {
  margin: 18px 0 6px;
  font-size: 13px;
}
.command-book table {
  width: 100%;
  border-collapse: collapse;
}
.command-book th,
.command-book td {
  text-align: left;
  vertical-align: top;
  padding: 5px 8px 5px 0;
  border-bottom: 1px solid var(--line);
}
.command-book th {
  color: var(--muted);
  font-weight: 500;
}
.command-book td:is([data-column=label], [data-column=mac], [data-column=windows]) {
  white-space: nowrap;
}
.command-book td:is([data-column=path], [data-column=description], [data-column=summary]) {
  color: var(--muted);
}
@media print {
  html.printing-command-book body > :not(.command-book) {
    display: none !important;
  }
  html.printing-command-book .command-book {
    position: static;
    width: auto;
    box-shadow: none;
    border: 0;
    animation: none;
  }
  html.printing-command-book .command-book > header :is(input, button) {
    display: none;
  }
  html.printing-command-book .command-book-body {
    overflow: visible;
  }
}
.outline {
  width: 210px;
  flex-shrink: 0;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  overflow: auto;
  background: var(--panel);
}
.outline button {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
}
.document-scroll {
  flex: 1;
  overflow: auto;
  background: var(--canvas);
  padding: 0 32px 50px;
}
.ruler {
  margin: 0 auto;
  height: 24px;
  display: flex;
  justify-content: space-around;
  align-items: end;
  color: #666;
  font-size: 9px;
  border-bottom: 1px solid #aaa;
  background:
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 11px,
      #ccc 11px,
      #ccc 12px);
  background-size: auto 5px;
  background-repeat: repeat-x;
  background-position: bottom;
  padding-bottom: 7px;
}
.paper {
  margin: 15px auto 0;
  background: #fff;
  color: #202124;
  box-shadow: 0 0 0 1px #0002, 0 2px 5px #0001;
  position: relative;
  flex-shrink: 0;
  font: 11pt Arial;
  line-height: 1.15;
}
.paper > header {
  position: absolute;
  left: 72px;
  right: 72px;
  top: 30px;
  font-size: 10pt;
  color: #666;
}
.paper > footer {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 30px;
  font-size: 10pt;
  color: #666;
}
.rich-content {
  outline: none;
  min-height: 700px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.rich-content p {
  margin: 0 0 8px;
  line-height: 1.15;
}
.rich-content h1 {
  font-weight: 400;
  font-size: 20pt;
  margin: 20pt 0 6pt;
}
.rich-content h2 {
  font-weight: 400;
  font-size: 16pt;
  margin: 18pt 0 6pt;
}
.rich-content h3 {
  font-weight: 400;
  font-size: 14pt;
  color: inherit;
  margin: 16pt 0 6pt;
}
.rich-content table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  overflow: hidden;
}
.rich-content td,
.rich-content th {
  border: 1px solid #aaa;
  padding: 6px;
  min-width: 30px;
  position: relative;
  vertical-align: top;
}
.rich-content td > p,
.rich-content th > p {
  margin: 0;
}
.rich-content .selectedCell:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #b7cee966;
}
.rich-content .column-resize-handle {
  position: absolute;
  right: -2px;
  top: 0;
  bottom: -2px;
  width: 4px;
  background: #333;
  pointer-events: none;
}
.rich-content img {
  max-width: 100%;
  height: auto;
}
.rich-content a {
  color: #205db0;
  text-decoration: underline;
}
.rich-content ul,
.rich-content ol {
  margin-top: 0;
  margin-bottom: 0;
}
.rich-content ul[data-type=taskList] {
  list-style: none;
  padding: 0;
}
.rich-content ul[data-type=taskList] li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rich-content ul[data-type=taskList] li > div {
  flex: 1;
}
.rich-content .comment-anchor {
  background: #fff2a8;
}
.rich-content .is-empty:first-child:before {
  color: #757575;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}
.comment {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.comment p {
  white-space: pre-wrap;
}
.text-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.source {
  flex: 1;
  overflow: auto;
  background: var(--content-bg, var(--bg));
}
.text-editor .cm-editor {
  background: var(--content-bg, var(--bg));
  color: var(--content-fg, var(--fg));
}
.source > .cm-editor {
  height: 100%;
  font:
    13px/1.7 "SFMono-Regular",
    Consolas,
    monospace;
}
.cm-editor.cm-focused {
  outline: none;
}
.text-editor .cm-editor .cm-activeLine {
  background-color: var(--content-active);
}
.text-editor .cm-editor .cm-selectionBackground,
.text-editor .cm-editor.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground {
  background: color-mix(in srgb, var(--content-fg, var(--fg)) 28%, transparent) !important;
}
.cm-gutters {
  background: var(--soft) !important;
  border-right-color: var(--line) !important;
  color: var(--muted) !important;
}
.cm-content {
  padding: 24px 16px !important;
}
.markdown-preview {
  position: relative;
  flex: 1;
  overflow: auto;
  padding: 36px 48px;
  color: var(--content-fg, var(--fg));
  background: var(--content-bg, var(--bg));
  font-size: 15px;
  line-height: 1.6;
  max-width: 100%;
}
.markdown-preview p,
.markdown-preview li {
  max-width: 75ch;
}
.markdown-preview table {
  border-collapse: collapse;
}
.markdown-preview td,
.markdown-preview th {
  border: 1px solid var(--content-line, var(--line));
  padding: 6px 12px;
}
.markdown-preview img {
  max-width: 100%;
}
.markdown-preview pre {
  background: color-mix(in srgb, var(--content-fg, var(--fg)) 5%, var(--content-bg, var(--bg)));
  padding: 16px;
  white-space: pre-wrap;
}
.mode-source > .markdown-preview {
  display: none;
}
.mode-preview > .source {
  display: none;
}
.mode-split > .source {
  border-right: 1px solid var(--line);
}
.formula-bar {
  display: flex;
  height: 34px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  background: #fff;
  color: #202124;
}
.formula-bar > input:first-child {
  width: 100px;
  flex: none;
  border: 0;
  border-right: 1px solid #ddd;
  border-radius: 0;
  text-align: center;
  background: #fff;
}
.formula-bar > span {
  padding: 0 12px;
  color: #5f6368;
}
.formula-bar > input[aria-label="Formula bar"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: #fff;
}
.sheet-scroll {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background: #fff;
  color: #202124;
  outline: none;
  position: relative;
}
.sheet-grid {
  position: relative;
  user-select: none;
}
.gridcell,
.column-header,
.row-header,
.grid-corner {
  position: absolute;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.gridcell {
  align-content: end;
  display: block;
  line-height: 24px;
  padding: 3px 4px;
  border-right: 1px solid #e1e3e6;
  border-bottom: 1px solid #e1e3e6;
  cursor: cell;
}
.spreadsheet-editor .row-header,
.spreadsheet-editor .grid-corner {
  width: 46px;
}
.row-resize {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 7px;
  cursor: row-resize;
  z-index: 2;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  margin: 6px 0 12px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: calc(2px * var(--radius, 1));
}
.gridcell.selection:not(.anchor)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(26 115 232 / 10%);
  pointer-events: none;
}
.selection-range {
  position: absolute;
  z-index: 5;
  border: 1px solid #1a73e8;
  pointer-events: none;
}
.column-header.active,
.row-header.active {
  background: #d3e3fd;
  color: #0b57d0;
  font-weight: 600;
}
.gridcell.anchor {
  outline: 2px solid #1a73e8;
  outline-offset: -2px;
  z-index: 5 !important;
}
.gridcell .fill-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 7px;
  height: 7px;
  background: #1a73e8;
  border: 1px solid white;
  cursor: crosshair;
  z-index: 10;
}
.gridcell.cut-cell {
  outline: 1px dashed #1a73e8;
  outline-offset: -2px;
}
.gridcell > input:not([type=checkbox]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
  color: #202124;
  padding: 0 4px;
  border-radius: 0;
  outline: 2px solid #1a73e8;
  z-index: 10;
  font: inherit;
}
.gridcell > input[type=checkbox] {
  margin: 5px 2px;
  accent-color: #1a73e8;
}
.column-header,
.row-header {
  background: #f5f6f7;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  justify-content: center;
  color: #687079;
  font: 11px Arial;
}
.column-header {
  height: 28px;
}
.row-header {
  width: 48px;
}
.grid-corner {
  width: 48px;
  height: 28px;
  background: #edf0f2;
  z-index: 9;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.column-resize {
  position: absolute;
  right: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
}
.cell-note {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 5px solid #ad711e;
  border-left: 5px solid transparent;
}
.sheet-bottom {
  height: 38px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 3px 8px;
  gap: 5px;
  overflow: auto;
  flex-shrink: 0;
  background: var(--chrome);
}
.selection-summary {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.audit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: normal;
  text-align: left;
  gap: 6px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.audit code {
  word-break: break-all;
  font-size: 10px;
}
.chart {
  padding: 12px 0;
}
.chart svg {
  width: 100%;
  margin-top: 12px;
}
.canvas-scroll {
  flex: 1;
  min-width: 0;
  overflow: auto;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 35px;
  background: var(--canvas);
}
.canvas-stage {
  box-shadow: 0 0 0 1px #0002, 0 3px 15px #0002;
  background-image:
    linear-gradient(
      45deg,
      #ccc 25%,
      transparent 25%),
    linear-gradient(
      -45deg,
      #ccc 25%,
      transparent 25%),
    linear-gradient(
      45deg,
      transparent 75%,
      #ccc 75%),
    linear-gradient(
      -45deg,
      transparent 75%,
      #ccc 75%);
  background-size: 16px 16px;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-color: white;
}
.slide-list {
  width: 186px;
  flex-shrink: 0;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  overflow: auto;
  background: var(--panel);
}
.slide-thumb {
  display: flex;
  gap: 7px;
  padding: 7px 2px;
  cursor: pointer;
  align-items: flex-start;
}
.slide-thumb > span {
  font-size: 10px;
  color: var(--muted);
  padding-top: 3px;
}
.slide-thumb > div {
  width: 140px;
  border: 1px solid #ccc;
  padding: 6px 8px;
  color: #202124;
  overflow: hidden;
  box-shadow: 0 1px 3px #0001;
}
.slide-thumb.active > div {
  outline: 2px solid var(--fg);
}
.slide-thumb small {
  font: 8px Arial;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 3px 0;
}
.slide-list > button {
  margin-top: 8px;
  font-size: 11px;
}
.layer {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  height: 31px;
}
.layer > button:last-child {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.layer.active {
  background: var(--soft);
}
.pdf-pages {
  width: 90px;
  padding: 12px 5px;
  border-right: 1px solid var(--line);
  overflow: auto;
  flex-shrink: 0;
}
.pdf-pages > button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}
.pdf-viewport {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
}
.pdf-scroll {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background: var(--canvas);
}
.pdf-stack {
  display: flex;
  flex-direction: column;
  align-items: safe center;
  gap: 16px;
  width: fit-content;
  min-width: 100%;
  padding: 24px;
}
.pdf-page-slot {
  position: relative;
  flex: none;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 6%), 0 2px 10px rgb(0 0 0 / 12%);
}
.pdf-page-image {
  display: block;
  width: 100%;
  height: 100%;
}
.pdf-page-slot.sized > .pdf-sheet {
  position: absolute;
  inset: 0 auto auto 0;
}
.pdf-sheet > canvas {
  display: block;
}
.pdf-find-hits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pdf-find-hit {
  position: absolute;
  border-radius: calc(2px * var(--radius, 1));
  background: rgb(255 214 0 / 45%);
  mix-blend-mode: multiply;
}
.pdf-find-hit.current {
  background: rgb(255 140 0 / 60%);
}
.pdf-find {
  position: absolute;
  top: 10px;
  right: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
  box-shadow: 0 4px 16px rgb(0 0 0 / 14%);
}
.pdf-find input {
  width: 200px;
  height: 28px;
  border: 0;
  background: transparent;
}
.pdf-find-count {
  min-width: 64px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pdf-selection-bar {
  position: fixed;
  z-index: 1900;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 4px 16px rgb(0 0 0 / 14%);
}
.pdf-tools {
  gap: 4px;
}
.pdf-tools .pdf-tool[aria-pressed=true] {
  background: var(--selection);
}
.pdf-split {
  display: inline-flex;
  align-items: center;
}
.pdf-split > .icon-button {
  flex-direction: column;
  gap: 1px;
}
.pdf-split .color-bar {
  width: 16px;
  height: 3px;
  border-radius: calc(1px * var(--radius, 1));
  box-shadow: inset 0 0 0 0.5px var(--line);
}
.pdf-split > .pdf-split-more {
  justify-content: center;
  width: 14px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border-radius: calc(4px * var(--radius, 1));
  color: var(--muted);
}
.pdf-split > .pdf-split-more:hover,
.pdf-split > .pdf-split-more[aria-expanded=true] {
  background: var(--selection);
  color: var(--fg);
}
.pdf-mark-swatches {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
}
.pdf-mark-swatches button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.pdf-mark-swatches button[aria-checked=true] {
  outline: 2px solid var(--fg);
  outline-offset: 1px;
}
.pdf-tools-divider {
  flex: none;
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--line);
}
.pdf-bar-divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  margin: 3px 2px;
  background: var(--line);
}
.pdf-sheet {
  position: relative;
}
.pdf-sheet.armed-add-text .pdf-overlay {
  cursor: text;
}
.pdf-marquee {
  position: absolute;
  z-index: 8;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none;
}
.pdf-selection-bar button,
.pdf-text-strip button,
.pdf-object-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: calc(4px * var(--radius, 1));
  background: transparent;
  color: inherit;
}
.pdf-selection-bar button:hover,
.pdf-text-strip button:hover,
.pdf-text-strip button.active,
.pdf-object-bar button:hover {
  background: var(--hover);
}
.pdf-highlight {
  position: relative;
  display: flex;
}
.pdf-swatches {
  position: absolute;
  top: 100%;
  left: -4px;
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
  box-shadow: 0 5px 24px #0003;
}
.pdf-swatches button,
.pdf-object-bar .pdf-swatch {
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.pdf-object-bar .pdf-swatch {
  margin: 0 2px;
}
.pdf-block-hover {
  position: absolute;
  z-index: 3;
  outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 3px;
  border-radius: 1px;
  pointer-events: none;
  animation: atlas-fade var(--motion-fast) var(--ease-out);
}
.pdf-text-block {
  position: absolute;
  z-index: 7;
  outline: 1.5px solid var(--accent);
  border-radius: 1px;
  background: #fff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 9%, transparent);
}
.pdf-text-block.grew {
  outline-color: #c47a00;
}
.pdf-text-edit {
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  cursor: text;
}
.pdf-text-strip,
.pdf-object-bar {
  position: fixed;
  z-index: 1900;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 5px 24px #0003;
  font-size: 12px;
  white-space: nowrap;
  cursor: default;
}
.pdf-text-strip select {
  max-width: 150px;
  height: 24px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
}
.pdf-text-strip input[type=number] {
  width: 52px;
  height: 24px;
  padding: 0 4px;
}
.pdf-text-strip .b {
  font-weight: 700;
}
.pdf-text-strip .i {
  font-style: italic;
}
.pdf-text-strip .color.color-icon,
.pdf-text-strip .color.color-icon > .color-trigger {
  width: 26px;
  height: 26px;
}
.pdf-text-note {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  color: var(--muted);
}
.pdf-text-grew {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  padding: 3px 8px;
  border: 1px solid #e3b764;
  border-radius: calc(4px * var(--radius, 1));
  background: #fff4dc;
  color: #7a4b00;
  font-size: 11px;
  white-space: nowrap;
}
.pdf-object-handles {
  position: absolute;
  z-index: 7;
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
  cursor: move;
  touch-action: none;
}
.pdf-object-handles > .handle {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 1px;
  background: var(--bg);
}
.pdf-object-handles > .handle[data-dir=nw] {
  left: -5px;
  top: -5px;
  cursor: nwse-resize;
}
.pdf-object-handles > .handle[data-dir=n] {
  left: calc(50% - 4px);
  top: -5px;
  cursor: ns-resize;
}
.pdf-object-handles > .handle[data-dir=ne] {
  right: -5px;
  top: -5px;
  cursor: nesw-resize;
}
.pdf-object-handles > .handle[data-dir=e] {
  right: -5px;
  top: calc(50% - 4px);
  cursor: ew-resize;
}
.pdf-object-handles > .handle[data-dir=se] {
  right: -5px;
  bottom: -5px;
  cursor: nwse-resize;
}
.pdf-object-handles > .handle[data-dir=s] {
  left: calc(50% - 4px);
  bottom: -5px;
  cursor: ns-resize;
}
.pdf-object-handles > .handle[data-dir=sw] {
  left: -5px;
  bottom: -5px;
  cursor: nesw-resize;
}
.pdf-object-handles > .handle[data-dir=w] {
  left: -5px;
  top: calc(50% - 4px);
  cursor: ew-resize;
}
.pdf-redaction-mark {
  position: absolute;
  z-index: 2;
  background: rgb(0 0 0 / 55%);
  outline: 1px solid #000;
  pointer-events: none;
}
.pdf-scan-banner {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
  font-size: 12px;
}
.pdf-scan-banner .recognize {
  flex: none;
  height: 26px;
  margin-left: auto;
  padding: 0 12px;
  border: 0;
  border-radius: calc(4px * var(--radius, 1));
  background: var(--accent);
  color: var(--accent-fg, #fff);
}
.pdf-note-popover {
  position: fixed;
  z-index: 60;
  width: 264px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 5px 24px #0003;
}
.pdf-note-style {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.pdf-note-style input {
  width: 56px;
}
.pdf-note-style .b {
  font-weight: 700;
}
.pdf-note-style .i {
  font-style: italic;
}
.pdf-note-style button.active {
  background: var(--selection);
}
.pdf-note-popover textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  resize: vertical;
}
.pdf-note-popover > div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.pdf-strip-tabs {
  display: flex;
  gap: 2px;
  margin: -4px 0 12px;
  padding: 2px;
  border-radius: calc(6px * var(--radius, 1));
  background: var(--soft);
}
.pdf-pages .pdf-strip-tab {
  flex: 1;
  margin: 0;
  padding: 3px 4px;
  border-radius: calc(4px * var(--radius, 1));
  font-size: 11px;
}
.pdf-pages .pdf-strip-tab.active {
  background: var(--bg);
}
.pdf-pages .pdf-page-thumb.selected > img {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 2px;
}
.pdf-pages .pdf-page-thumb.drop-before {
  box-shadow: 0 -3px 0 var(--accent);
}
.pdf-thumb-empty {
  display: block;
  width: 90px;
  aspect-ratio: 612 / 792;
  margin: 0 auto 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.pdf-pages .pdf-strip-outline > button {
  display: block;
  margin: 0 0 4px;
  padding: 4px 6px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.pdf-strip-empty {
  color: var(--muted);
  font-size: 11px;
}
.signature-pad {
  width: 560px;
}
.signature-pad h2 {
  margin: 0 0 14px;
  font-size: 16px;
}
.signature-pad canvas {
  display: block;
  width: 100%;
  aspect-ratio: 960 / 280;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: linear-gradient(var(--line), var(--line)) 24px calc(100% - 44px) / calc(100% - 48px) 1px no-repeat, #fff;
  touch-action: none;
  cursor: crosshair;
}
.signature-pad input {
  width: 100%;
  margin-top: 10px;
}
.pdf-status {
  gap: 4px;
}
.pdf-armed-hint {
  margin-left: 12px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: atlas-fade var(--motion-fast) var(--ease-out);
}
.pdf-page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pdf-page-input {
  width: 42px;
  height: 24px;
  padding: 0 4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
}
.pdf-overlay.select {
  pointer-events: none;
}
.pdf-overlay.draw {
  cursor: crosshair;
  touch-action: none;
}
.pdf-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 11px;
  text-align: left;
}
.model-viewport {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #e4e7ea;
  overflow: hidden;
}
.model-viewport canvas {
  display: block;
}
.model-tree {
  width: 190px;
  flex-shrink: 0;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.model-tree button {
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-tree .feature {
  padding-left: 22px;
  font-size: 11px;
  color: var(--muted);
}
.video-editor {
  background: var(--bg);
}
.video-top {
  flex: 1;
  display: flex;
  min-height: 0;
}
.media-library {
  width: 190px;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  overflow: auto;
  flex-shrink: 0;
}
.media-library > button {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  white-space: normal;
  border-bottom: 1px solid var(--line);
  padding: 12px 5px;
  font-size: 11px;
}
.media-library small {
  display: block;
  width: 100%;
  color: var(--muted);
  margin-top: 6px;
}
.video-viewer {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #1b1b1b;
  color: white;
  padding: 15px;
}
.video-frame {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.video-frame video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-title {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 45%;
  text-align: center;
  pointer-events: none;
  white-space: pre-wrap;
}
.video-title.bottom {
  top: auto;
  bottom: 10%;
}
.video-title.top {
  top: 10%;
}
.playback {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  flex-shrink: 0;
}
.playback > input {
  flex: 1;
  padding: 0;
  accent-color: #ddd;
}
.playback > span {
  min-width: 110px;
  text-align: right;
}
.timeline {
  height: 255px;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.timeline-toolbar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.timeline-toolbar input {
  width: 130px;
  height: 18px;
  padding: 0;
  accent-color: var(--fg);
}
.timeline-scroll {
  flex: 1;
  overflow: auto;
}
.timeline-tracks {
  position: relative;
  min-height: 210px;
}
.timeline-ruler {
  height: 26px;
  position: relative;
  cursor: crosshair;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.timeline-ruler > span {
  position: absolute;
  top: 8px;
  font-size: 9px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 5px;
}
.timeline-lane {
  height: 43px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.timeline-lane > label {
  position: sticky;
  left: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  width: 100px;
  height: 100%;
  font-size: 10px;
  text-transform: capitalize;
  background: var(--bg);
  z-index: 4;
  border-right: 1px solid var(--line);
}
.timeline-clip,
.timeline-title {
  position: absolute;
  top: 6px;
  height: 30px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #8f9fae;
  background: #e2e8ed;
  color: #202124;
  font-size: 10px;
}
.lane-audio .timeline-clip {
  background: #dce8df;
  border-color: #a6baab;
}
.timeline-title {
  background: #e8e0eb;
  border-color: #b6a6bb;
}
.timeline-clip.active {
  outline: 2px solid var(--fg);
}
.timeline-transition {
  position: absolute;
  top: 10px;
  z-index: 3;
  height: 22px;
  padding: 0;
  border: 1px solid #5f6b76;
  border-radius: calc(3px * var(--radius, 1));
  background:
    linear-gradient(
      to bottom right,
      transparent 49%,
      #5f6b76 50%,
      transparent 51%),
    linear-gradient(
      to top right,
      transparent 49%,
      #5f6b76 50%,
      transparent 51%),
    #f4f6f8e6;
  cursor: pointer;
}
.timeline-transition:hover,
.timeline-transition:focus-visible {
  outline: 2px solid var(--fg);
}
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #a12e26;
  pointer-events: none;
  z-index: 5;
}
.timeline-marker {
  position: absolute;
  top: 0;
  padding: 0;
  font-size: 10px;
  color: #a36b1d;
  z-index: 6;
}
@media (max-width: 1000px) {
  .inspector {
    width: 205px;
    min-width: 190px;
  }
  .outline {
    width: 150px;
  }
  .document-scroll {
    padding: 0 18px 35px;
  }
  .tab-actions > button {
    font-size: 10px;
  }
  .toolbar {
    gap: 1px;
  }
  .video-editor .media-library {
    width: 140px;
  }
  .document-actions {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.atlas-mark {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.tabs {
  position: relative;
}
.tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--tab-w, 0);
  background: var(--accent, var(--fg));
  transform: translateX(var(--tab-x, 0));
  transition: transform var(--motion-base) var(--ease-move);
  pointer-events: none;
  z-index: 1;
}
.tab-indicator[hidden] {
  display: block;
  opacity: 0;
}
.tab-indicator.instant {
  transition: none;
}
.dirty-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
  flex-shrink: 0;
}
.tab-actions > button,
.document-actions > button {
  display: flex;
  align-items: center;
  gap: 5px;
}
.document-actions > button {
  border-color: var(--line);
  padding: 5px 12px;
}
.document-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  padding: 0;
  max-width: 270px;
  overflow: hidden;
  border: 0;
}
.document-identity strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-identity small {
  font-size: 10px;
  color: var(--muted);
  line-height: 14px;
}
.document-identity:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
}
#editor-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
#editor-header-controls > select {
  border: 0;
  background: transparent;
  height: 28px;
  max-width: 136px;
  font-weight: 500;
}
.native-chrome {
  background: var(--bg);
  flex-shrink: 0;
}
.native-tool {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  min-width: 48px;
  min-height: 28px;
  padding: 0 6px;
  border-radius: calc(4px * var(--radius, 1));
}
.native-tool:disabled {
  opacity: 0.3;
}
.native-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.menu-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 3px 0;
  border: 0;
  font-size: 12px;
  white-space: nowrap;
}
.menu-trigger .chevron {
  font-size: 10px;
  margin-left: 0;
}
.menu-popup {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 60;
  min-width: 185px;
  max-height: 60vh;
  overflow: visible;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: calc(6px * var(--radius, 1));
  box-shadow: 0 5px 24px #0003;
  font-size: 12px;
  animation: atlas-rise var(--motion-fast) var(--ease-out) both;
}
.menu-popup > button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  min-height: 27px;
}
.menu-popup hr {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 5px 3px;
}
.menu-sub {
  position: relative;
  cursor: default;
  padding: 6px 10px;
}
.menu-sub > span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.menu-sub:hover,
.menu-sub:focus {
  background: var(--hover);
}
.menu-popup [role=menuitem]:focus-visible {
  background: var(--hover);
  outline: none;
}
.menu-sub > .sub {
  display: none;
  left: 100%;
  top: 0;
}
.menu-sub:hover > .sub,
.menu-sub:focus-within > .sub {
  display: block;
}
.editor-menus {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  padding: 0 10px 4px;
  min-height: 28px;
  flex-shrink: 0;
  font-size: 13px;
}
.menubar-item .menu-trigger {
  padding: 3px 8px;
  min-height: 24px;
  font-size: 13px;
  border-radius: calc(4px * var(--radius, 1));
}
.menubar-item .menu-trigger:hover,
.menubar-item .menu-trigger[aria-expanded=true] {
  background: var(--hover);
}
.menu-keys {
  float: right;
  margin-left: 28px;
  font: inherit;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.editor-toolbar {
  position: relative;
  height: 40px;
  min-height: 40px;
  padding: 0 8px;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.editor-toolbar > * {
  flex-shrink: 0;
}
.editor-toolbar > [data-folded] {
  display: none !important;
}
.toolbar-more {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.toolbar-more[hidden] {
  display: none;
}
.editor-toolbar select {
  border-color: transparent;
  background: transparent;
  height: 29px;
  max-width: 132px;
}
.editor-toolbar .divider {
  margin: 0 4px;
}
.editor-toolbar > button:not(.icon-button) {
  min-width: 28px;
  padding: 0 6px;
}
.editor-toolbar .native-tool > span,
.native-menu.compact .menu-trigger > span {
  display: none;
}
.editor-toolbar .native-tool {
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 5px;
}
.context-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 12px;
  background: var(--chrome);
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.context-strip > span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dictionary-search {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.dictionary-search input {
  flex: 1;
  min-width: 0;
}
.dictionary-entry h4 {
  margin: 4px 0 6px;
  font-size: 15px;
}
.dictionary-entry em {
  color: var(--muted);
  font-size: 12px;
}
.dictionary-entry ol {
  margin: 4px 0 10px;
  padding-left: 20px;
}
.dictionary-entry li {
  margin-bottom: 4px;
  line-height: 1.4;
}
.dictionary-source {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  padding: 5px;
  border: 0;
  border-radius: calc(4px * var(--radius, 1));
  background: transparent;
  color: var(--fg);
}
.icon-button:hover,
.icon-button.active {
  background: var(--selection);
}
.icon-button:disabled {
  opacity: 0.3;
}
.icon-button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}
.ribbon {
  background: var(--chrome);
  container: ribbon / inline-size;
}
@container ribbon (max-width: 1580px) {
  .ribbon-group .native-tool > span,
  .ribbon-group .native-menu .menu-trigger:has(svg) > span {
    display: none;
  }
}
@container ribbon (max-width: 1220px) {
  .ribbon .ribbon-group {
    padding: 0 6px;
  }
}
.ribbon-tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px;
  height: 28px;
  align-items: center;
}
.ribbon-tabs > button {
  padding: 0 12px;
  height: 28px;
  border: 0;
  font-size: 12px;
}
.ribbon-tabs > button.active {
  background: var(--selection);
  font-weight: 600;
}
.ribbon-spacer {
  flex: 1;
}
.excel-style .ribbon-tabs {
  height: 32px;
}
.ribbon-tools {
  display: flex;
  align-items: flex-start;
  height: 56px;
  padding: 4px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  gap: 0;
}
.excel-style .ribbon-tools {
  height: 66px;
  padding-bottom: 10px;
}
.ribbon-group {
  position: relative;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.ribbon-group:after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  bottom: 3px;
  width: 0.5px;
  background: var(--line);
}
.ribbon-group > div {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ribbon-group > span {
  font-size: 10px;
  color: var(--muted);
}
.ribbon-group button,
.ribbon-group select {
  font-size: 12px;
  height: 27px;
}
.ribbon-group select {
  background: transparent;
  border-color: transparent;
  max-width: 100px;
}
.ribbon-group .color:not(.color-icon) .color-name {
  display: none;
}
.rich-content:focus-visible {
  outline: none;
}
.kind-pdf,
.kind-markdown,
.kind-text {
  border-bottom: 1px solid var(--line);
}
.document-scroll .ruler {
  position: relative;
  background-color: var(--chrome);
  color: var(--muted);
  border-color: var(--line);
}
.ruler .ruler-tick {
  position: absolute;
  top: 0;
  height: 3px;
  border-left: 1px solid var(--muted);
  font-size: 10px;
  padding-top: 8px;
  text-indent: -3px;
  line-height: 12px;
}
.ruler .ruler-tick.half {
  height: 6px;
}
.ruler .ruler-tick.major {
  height: 8px;
}
.ruler .ruler-marker {
  position: absolute;
  transform: translateX(-50%);
  padding: 0;
  width: 12px;
  height: 12px;
  top: 5px;
  background: var(--fg);
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 50% 70%);
  cursor: ew-resize;
  touch-action: none;
  z-index: 1;
}
.ruler .ruler-marker.firstIndent {
  top: 18px;
  height: 4px;
  clip-path: none;
  width: 10px;
}
.ruler .ruler-marker:focus-visible {
  outline: 2px solid var(--accent);
  clip-path: none;
}
.paragraph-comparison {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.rich-editor .outline h3 {
  font-size: 13px;
  color: var(--fg);
}
.outline button {
  font-size: 12px;
  padding: 5px 0;
  line-height: 1.5;
  white-space: normal;
}
.spreadsheet-editor .inspector {
  width: 310px;
}
.graphics-editor .inspector {
  width: 260px;
}
.graphics-editor > .toolbar {
  min-height: 44px;
}
.graphics-editor .canvas-scroll {
  padding: 40px;
}
.notes-below {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 20px 12px;
  height: 95px;
  flex-shrink: 0;
}
.notes-below > label {
  font-size: 11px;
  color: var(--muted);
}
.notes-below > textarea {
  display: block;
  width: 100%;
  height: 55px;
  min-height: 0;
  resize: none;
  border: 0;
  padding: 5px 0;
  background: transparent;
  font-size: 12px;
}
.image-tools {
  width: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--chrome);
  padding: 8px 0;
  gap: 5px;
  overflow: auto;
}
.image-tools button {
  width: 31px;
  height: 31px;
  padding: 4px;
  font-size: 17px;
  display: grid;
  place-items: center;
}
.image-tools button.active {
  color: var(--accent-fg, var(--bg));
  background: var(--accent, var(--fg));
}
@media (max-width: 1050px) {
  .tab-actions {
    gap: 7px;
  }
  .ribbon-tools {
    overflow-x: auto;
    overflow-y: visible;
  }
  .ribbon-group {
    padding: 0 8px;
  }
}
.live-markdown-frame {
  border: 0;
  width: 100%;
  height: 100%;
  flex: 1;
  background: var(--bg);
}
.mode-live > .source,
.mode-read > .source {
  display: none;
}
.media-mode {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--chrome);
  border-radius: calc(6px * var(--radius, 1));
}
.media-mode > button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  font-size: 12px;
  font-weight: 500;
}
.media-mode > button.active {
  background: var(--selection);
}
.graphics-center {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.graphics-center > .canvas-scroll {
  flex: 1;
  min-height: 0;
}
.kind-video .document-identity small {
  font-variant-numeric: tabular-nums;
}
.video-viewer {
  padding: 0;
  background: #000;
}
.video-viewer .playback {
  background: var(--bg);
  color: var(--fg);
  padding: 0 14px;
  height: 44px;
}
.video-top .media-library {
  width: 220px;
  background: var(--panel);
}
.video-top .inspector {
  width: 254px;
}
.timeline-toolbar {
  height: 40px;
  gap: 8px;
  flex-shrink: 0;
}
.timeline-toolbar > select {
  max-width: 110px;
}
.pdf-pages {
  width: 126px;
  background: var(--chrome);
  padding: 16px 12px;
}
.pdf-pages button {
  margin-bottom: 18px;
  width: 100%;
  padding: 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.pdf-pages button > img {
  display: block;
  width: 90px;
  max-width: 100%;
  box-shadow: 0 0 0 1px var(--line);
  margin: 0 auto 8px;
}
.pdf-pages button.active > img {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
.pdf-pages button > span {
  font-size: 11px;
}
.pdf-editor .toolbar {
  padding: 8px 12px;
  min-height: 44px;
  gap: 8px;
  background: var(--bg);
}
.pdf-editor .toolbar .native-tool {
  font-size: 12px;
  min-height: 28px;
}
.pdf-editor .editorstatus {
  background: var(--bg);
  gap: 10px;
}
.paper {
  background-color: #fff;
  background-repeat: repeat-y;
}
.model-editor > .toolbar {
  height: 60px;
  background: var(--chrome);
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.model-editor > .toolbar .native-tool {
  font-size: 13px;
}
.model-tree {
  width: 210px;
  background: var(--panel);
}
.model-editor .inspector {
  width: 260px;
  background: var(--panel);
}
.model-editor > .toolbar {
  gap: 10px;
  overflow: visible;
}
.model-editor > .toolbar .native-tool {
  font-size: 12px;
}
.model-tool-label {
  color: var(--muted);
  font-size: 10px;
}
.model-toolbar-spacer {
  flex: 1;
  min-width: 0;
}
.model-viewport {
  position: relative;
  background: #e6ecf0;
}
.model-canvas {
  position: absolute;
  inset: 0;
  outline: none;
  touch-action: none;
}
.model-orthographic {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #58616a;
  font-size: 11px;
  background: #ffffffb8;
  padding: 5px 9px;
  border: 1px solid #ffffffb0;
  border-radius: calc(5px * var(--radius, 1));
  pointer-events: none;
}
.model-camera-controls,
.model-display-controls,
.model-navigation {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: #fffffff0;
  border: 1px solid #b7bec580;
  border-radius: calc(7px * var(--radius, 1));
  box-shadow: 0 1px 3px #00000010;
  color: #303840;
}
.model-camera-controls {
  top: 12px;
  right: 12px;
}
.model-camera-controls button,
.model-camera-controls select,
.model-display-controls button,
.model-navigation button {
  font-size: 10px;
  min-height: 24px;
  color: #303840;
  border-color: transparent;
  background: transparent;
  padding: 3px 6px;
}
.model-camera-controls select {
  max-width: 72px;
}
.model-camera-controls .divider,
.model-display-controls .divider {
  height: 16px;
  background: #ccd0d4;
  margin: 0 3px;
}
.model-camera-controls button:hover,
.model-display-controls button:hover,
.model-navigation button:hover {
  background: #dce5ef;
}
.model-display-controls button.active {
  background: #d4e3f4;
  color: #1769b4;
}
.model-display-controls {
  bottom: 12px;
  left: 12px;
}
.model-navigation {
  bottom: 12px;
  right: 12px;
}
.model-navigation .menu-popup {
  top: auto;
  bottom: 100%;
}
.model-dimension-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.model-dimension-labels button {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: #ffffffe8;
  border-radius: calc(3px * var(--radius, 1));
  padding: 2px 4px;
  font-size: 10px;
  color: #28323d;
  pointer-events: auto;
  white-space: nowrap;
}
.model-dimension-labels button:hover {
  background: #d8e7f8;
}
.model-selection-box {
  position: absolute;
  pointer-events: none;
  border: 1px solid #007aff;
  background: #007aff20;
}
.model-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #404b57;
  pointer-events: none;
  padding: 65px;
  text-align: center;
}
.model-empty h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
}
.model-empty p {
  margin: 0 0 4px;
  font-size: 12px;
  max-width: 300px;
}
.model-empty button {
  pointer-events: auto;
}
.model-tree {
  display: flex;
  flex-direction: column;
  padding: 15px 8px 0;
  width: 210px;
  font-size: 11px;
}
.model-tree.advanced {
  width: 232px;
}
.model-tree h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 9px 13px;
  font-size: 11px;
}
.model-tree h3 span,
.model-origin span {
  color: var(--muted);
  font-weight: 400;
}
.model-tree-content {
  flex: 1;
  overflow: auto;
}
.model-tree button {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  font-size: 11px;
}
.model-tree button.active {
  background: var(--active);
}
.model-part-row {
  display: flex;
}
.model-part-row > button:first-child {
  flex: 1;
  min-width: 0;
}
.model-part-row > button:last-child {
  flex: 0 0 24px;
  justify-content: center;
  color: var(--muted);
}
.model-tree .feature {
  padding-left: 28px;
  font-size: 10px;
}
.model-origin {
  margin: 12px 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.9;
}
.model-components {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.model-components h4 {
  margin: 12px 9px 5px;
  font-size: 10px;
  color: var(--muted);
}
.model-editor .model-inspector {
  padding: 18px;
  width: 260px;
  font-size: 11px;
  background: var(--bg);
}
.model-editor .model-inspector.simple {
  width: 240px;
}
.model-inspector-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.model-inspector-heading strong {
  font-size: 14px;
  font-weight: 600;
}
.model-inspector-heading small,
.model-feature-card small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.model-inspector-heading > button {
  border: none;
  background: transparent;
  padding: 0 4px;
  color: var(--muted);
}
.model-inspector h3 {
  font-size: 11px;
  font-weight: 600;
  margin: 10px 0;
}
.model-inspector hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 15px 0;
}
.model-dimensions > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0;
}
.model-feature-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 9px 0;
  background: transparent;
  border: none;
  font-size: 11px;
}
.model-feature-card span {
  flex: 1;
  min-width: 0;
}
.model-feature-card strong {
  font-weight: 500;
}
.model-inspector > button:last-of-type {
  margin-top: 8px;
  font-size: 11px;
}
.model-history {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow-x: auto;
  flex-shrink: 0;
}
.model-history > span {
  flex-shrink: 0;
  margin-right: 15px;
  font-size: 11px;
  font-weight: 600;
}
.model-history small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  margin-top: 3px;
}
.model-history button {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  padding: 7px 9px;
  font-size: 10px;
}
.model-editor .suppressed {
  opacity: 0.4;
}
.model-context {
  position: fixed;
  z-index: 1000;
  min-width: 235px;
}
.binary-editor {
  display: block;
  padding: 36px;
  overflow: auto;
  user-select: text;
}
.binary-editor h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px;
}
.binary-name {
  font-size: 17px;
  margin: 0 0 24px;
}
.binary-editor dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 13px 26px;
  font-size: 12px;
}
.binary-editor dt {
  color: var(--muted);
}
.binary-editor dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.binary-editor h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 26px 0 13px;
}
.binary-editor p {
  font-size: 12px;
}
.binary-editor .binary-name {
  font-size: 17px;
}
.binary-editor pre {
  padding: 18px;
  background: var(--panel);
  border-radius: calc(6px * var(--radius, 1));
  font:
    11px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow: auto;
}
@media (max-width: 1050px) {
  .model-editor > .toolbar {
    gap: 5px;
    padding: 0 10px;
  }
  .model-tool-label {
    display: none;
  }
  .model-camera-controls {
    gap: 0;
  }
  .model-camera-controls button {
    padding: 3px 4px;
  }
}
.model-editor {
  container: atlas-model / inline-size;
}
@container atlas-model (max-width: 900px) {
  .model-editor > .toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .model-editor > .toolbar > * {
    flex-shrink: 0;
  }
  .model-editor > .editorbody {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: minmax(160px, 1fr) auto;
    min-height: 0;
  }
  .model-editor .model-tree {
    width: auto;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }
  .model-editor .model-viewport {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
  }
  .model-editor .model-inspector {
    width: auto;
    max-height: 160px;
    overflow: auto;
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@container atlas-model (max-width: 520px) {
  .model-editor > .editorbody {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(220px, 1fr) auto;
    overflow: auto;
  }
  .model-editor .model-tree {
    grid-column: 1;
    grid-row: 1;
    max-height: 120px;
    overflow: auto;
  }
  .model-editor .model-viewport {
    grid-column: 1;
    grid-row: 2;
  }
  .model-editor .model-inspector {
    grid-column: 1;
    grid-row: 3;
  }
  .model-camera-controls {
    max-width: calc(100% - 24px);
    overflow-x: auto;
  }
}
.graphics-editor .image-font-size {
  width: 50px;
  height: 28px;
}
.graphics-editor > .toolbar .native-tool {
  min-width: 28px;
  padding: 4px;
}
.graphics-editor > .toolbar .native-tool > span {
  display: none;
}
.graphics-editor .inspector > .panel:first-child {
  min-height: 40%;
}
.image-tools .color-name {
  display: none;
}
.image-tools .color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.tracked-insert:not(.tracked-block) {
  color: #157a36;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.tracked-delete:not(.tracked-block) {
  color: #b32424;
  text-decoration: line-through;
  background: #ffe8e8;
}
.rich-content .tracked-block.tracked-insert::after,
.rich-content .tracked-block.tracked-delete::after {
  content: "\b6";
  display: inline-block;
  width: 0;
  pointer-events: none;
}
.rich-content .tracked-block.tracked-insert::after {
  color: #157a36;
}
.rich-content .tracked-block.tracked-delete::after {
  color: #b32424;
  text-decoration: line-through;
}
.panel .tracked-insert,
.panel .tracked-delete {
  color: var(--fg);
  background: none;
  text-decoration-thickness: 2px;
}
.panel .tracked-insert {
  text-decoration-color: #157a36;
}
.panel .tracked-delete {
  text-decoration-color: #b32424;
}
.note-reference {
  color: #202124;
  cursor: pointer;
  font: 9pt Georgia;
  vertical-align: super;
}
.document-notes {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #777;
  color: #202124;
  font: 9pt Georgia;
}
.document-notes p {
  white-space: pre-wrap;
}
.rich-content {
  position: relative;
  min-height: 0;
}
.page-flow-fragment {
  position: relative;
  left: var(--flow-x, 0);
  top: var(--flow-y, 0);
}
.measuring-flow .page-flow-fragment {
  left: 0 !important;
  top: 0 !important;
}
.flow-fragmented {
  pointer-events: none;
}
.flow-paint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.flow-paint > div > div {
  position: absolute;
}
.flow-paint-selection {
  background: Highlight;
}
.flow-paint-selection.inactive {
  background: color-mix(in srgb, GrayText 28%, transparent);
}
.flow-paint-host .flow-fragmented,
.flow-paint-host .flow-fragmented :not(.page-flow-fragment, .page-flow-fragment *):has(.page-flow-fragment) {
  background-color: transparent !important;
  border-color: transparent !important;
}
.flow-paint-border {
  box-sizing: border-box;
}
.flow-paint-resize {
  background: #333;
}
.rich-content.resize-cursor,
.rich-content.resize-cursor * {
  cursor: col-resize;
}
.flow-paint-host .flow-fragmented:not(.flow-table-layout) ::selection,
.flow-paint-host.flow-selecting .flow-table-layout ::selection {
  background: transparent;
}
.flow-fragmented .page-flow-fragment,
.flow-fragmented .rich-toc-entry {
  pointer-events: auto;
}
.page-footnotes {
  position: absolute;
  color: #202124;
  border-top: 1px solid #777;
  padding-top: 8px;
  font: 9pt/1.2 Georgia;
}
.page-footnotes:empty {
  display: none;
}
.page-footnotes p,
.note-continuation p {
  margin: 0 0 6px;
  white-space: pre-wrap;
  font: 9pt/1.2 Georgia;
}
.note-continuation {
  color: #202124;
  font: 9pt/1.2 Georgia;
}
.page-header,
.page-footer {
  white-space: pre-wrap;
}
.rich-content {
  height: 100%;
}
.pdf-text-layer {
  position: absolute;
  inset: 0;
  overflow: clip;
  line-height: 1;
  text-align: initial;
  letter-spacing: normal;
  word-spacing: normal;
  text-size-adjust: none;
  forced-color-adjust: none;
  transform-origin: 0 0;
  --scale-round-x: 1px;
  --scale-round-y: 1px;
  --min-font-size: 1;
  --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
  --min-font-size-inv: calc(1 / var(--min-font-size));
}
.pdf-text-layer :is(span, br) {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0 0;
  user-select: text;
}
.pdf-text-layer > :not(.markedContent),
.pdf-text-layer .markedContent span:not(.markedContent) {
  z-index: 1;
  --font-height: 0;
  font-size: calc(var(--text-scale-factor) * var(--font-height));
  --scale-x: 1;
  --rotate: 0deg;
  transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}
.pdf-text-layer .markedContent {
  display: contents;
}
.pdf-text-layer ::selection {
  background: #307ddd66;
}
.pdf-editor .toolbar > .native-menu > button {
  background: var(--soft);
  border-radius: calc(5px * var(--radius, 1));
}
.pdf-editor .toolbar > .native-menu > button::after {
  content: "\2304";
  font-size: 11px;
  margin-left: 5px;
}
.video-top .media-library {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.video-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
}
.video-sidebar-heading h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.media-library > input {
  margin: 0 10px 10px;
  width: calc(100% - 20px);
}
.media-items {
  flex: 1;
  overflow: auto;
  padding: 8px;
  min-height: 0;
}
.media-items article {
  border: 1px solid transparent;
  border-radius: calc(7px * var(--radius, 1));
  padding: 8px;
  margin-bottom: 4px;
  cursor: default;
}
.media-items article.active {
  border-color: var(--line);
  background: var(--selection);
}
.media-thumbnail {
  height: 100px;
  background: #000;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-thumbnail > span {
  font-size: 28px;
}
.media-thumbnail small {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #000;
  color: white;
  padding: 3px;
  font: 9px ui-monospace, monospace;
}
.media-items strong {
  display: block;
  margin: 7px 0;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-actions {
  display: flex;
  gap: 8px;
}
.media-actions button {
  padding: 3px 0;
  font-size: 10px;
}
.media-waveform {
  width: 100%;
  height: 28px;
  color: var(--fg);
}
.media-waveform path,
.timeline-clip svg path {
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
}
.media-missing {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}
.media-library > button {
  padding: 12px;
  font-size: 11px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.video-composite {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}
.video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 14px;
  pointer-events: none;
}
.video-empty > span {
  font-size: 45px;
  font-weight: 200;
}
.video-empty > strong {
  font-size: 21px;
  font-weight: 500;
}
.video-empty p {
  font-size: 12px;
  margin: 0;
}
.video-empty button {
  pointer-events: auto;
  border: 1px solid #777;
  padding: 6px 10px;
  color: #fff;
}
.video-inspector {
  padding: 0;
  overflow: auto;
  background: var(--panel);
}
.video-inspector .video-sidebar-heading {
  padding: 14px;
}
.video-inspector fieldset {
  border: 0;
  margin: 0;
  padding: 0 14px 14px;
  min-width: 0;
}
.video-inspector .panel {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  font-size: 11px;
}
.video-inspector .panel h3 {
  font-size: 11px;
  margin: 0 0 10px;
}
.video-inspector .panel > button {
  display: block;
  text-align: left;
  margin: 7px 0;
  font-size: 11px;
}
.video-inspector .panel p {
  line-height: 1.45;
  color: var(--muted);
  font-size: 11px;
}
.video-inspector textarea {
  width: 100%;
  min-height: 90px;
  font-size: 14px;
  resize: vertical;
}
.video-inspector .panel > label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.video-inspector .numberfield {
  font-size: 11px;
}
.video-control-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}
.video-control-row button {
  font-size: 10px;
}
.video-clip-name {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.video-viewer .playback {
  gap: 12px;
  height: 45px;
}
.video-viewer .playback > span {
  min-width: 0;
  font: 11px ui-monospace, monospace;
  white-space: nowrap;
}
.video-viewer .playback > button {
  padding: 3px;
}
.video-editor .timeline {
  height: 258px;
}
.video-editor .timeline-clip,
.video-editor .timeline-title {
  border-color: var(--line);
  background: var(--panel);
  color: var(--fg);
  border-radius: calc(3px * var(--radius, 1));
  height: 36px;
  padding: 3px 8px;
  touch-action: none;
}
.video-editor .timeline-title.active {
  outline: 2px solid var(--fg);
}
.video-editor .timeline-clip .clip-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 18px;
  font-size: 10px;
}
.video-editor .timeline-clip svg {
  display: block;
  width: 100%;
  height: 14px;
}
.video-editor .timeline-clip:has(svg) .clip-name {
  line-height: 14px;
}
.video-editor .timeline-lane {
  height: 46px;
}
.video-editor .timeline-lane.lane-primary {
  background: color-mix(in srgb, var(--fg) 8%, var(--bg));
}
.clip-trim {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  cursor: ew-resize;
  opacity: 0;
  background: var(--fg);
}
.trim-in {
  left: 0;
}
.trim-out {
  right: 0;
}
.timeline-clip.active .clip-trim,
.timeline-clip:hover .clip-trim,
.clip-trim:focus {
  opacity: 0.45;
}
.video-export-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px;
  font-size: 12px;
}
.video-export-progress progress {
  width: 260px;
  accent-color: var(--fg);
}
.video-export-progress > button {
  margin-left: auto;
}
.video-fullscreen {
  position: fixed !important;
  inset: 0;
  z-index: 1000;
}
.video-fullscreen .media-library,
.video-fullscreen .inspector,
.video-fullscreen .timeline {
  display: none;
}
@media (max-width: 1050px) {
  .video-top .media-library {
    width: 180px;
  }
  .video-top .inspector {
    width: 230px;
  }
  .video-viewer .playback {
    gap: 6px;
    padding: 0 8px;
  }
}
.video-inspector .field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
}
.video-inspector .field input {
  width: 78px;
  text-align: right;
}
.video-inspector .panel > .video-adjustment {
  display: block;
  margin: 10px 0;
  font-size: 10px;
}
.video-adjustment > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.video-adjustment output {
  font-variant-numeric: tabular-nums;
}
.video-adjustment input {
  width: 100%;
  height: 18px;
  padding: 0;
  accent-color: var(--fg);
}
.video-editor .timeline-ruler {
  height: 28px;
  background: color-mix(in srgb, var(--fg) 8%, var(--bg));
}
.video-editor .timeline-ruler > label {
  position: sticky;
  left: 0;
  display: flex;
  align-items: center;
  height: 28px;
  width: 76px;
  padding-left: 12px;
  background: var(--bg);
  z-index: 6;
  font-size: 10px;
}
.video-editor .timeline-ruler > span {
  top: 8px;
  font: 9px ui-monospace, monospace;
}
.video-editor .timeline-ruler i {
  display: block;
  width: 1px;
  height: 6px;
  background: var(--fg);
  opacity: 0.5;
}
.video-editor .timeline-lane > label {
  width: 76px;
  font-size: 10px;
  padding-left: 12px;
}
.video-editor .lane-titles {
  height: 32px;
}
.video-editor .lane-overlay {
  height: 42px;
}
.video-editor .lane-primary {
  height: 66px;
}
.video-editor .lane-audio {
  height: 44px;
}
.video-editor .timeline-title {
  top: 4px;
  height: 24px;
  min-width: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 0 6px;
  white-space: nowrap;
}
.video-editor .timeline-clip {
  top: 3px;
  height: 36px;
  padding: 0;
  border-width: 0.5px;
}
.video-editor .lane-primary .timeline-clip {
  height: 60px;
}
.video-editor .lane-audio .timeline-clip {
  height: 38px;
}
.video-editor .timeline-clip.active,
.video-editor .timeline-title.active {
  outline: none;
  border: 2.5px solid var(--fg);
}
.clip-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
}
.video-editor .timeline-clip .clip-name {
  position: relative;
  z-index: 1;
  padding: 3px 5px;
  line-height: 12px;
  font-size: 9px;
  font-weight: 500;
  background: #000b;
  color: #fff;
  max-width: 100%;
  width: max-content;
}
.video-editor .lane-audio .clip-name {
  color: var(--fg);
  background: var(--bg);
}
.video-editor .timeline-clip svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  color: #fff;
}
.video-editor .lane-audio .timeline-clip svg {
  color: var(--fg);
}
.video-editor .playhead {
  background: var(--fg);
}
.video-editor .playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid var(--fg);
}
.video-editor .timeline-marker {
  top: 17px;
  color: var(--fg);
}
.video-editor .clip-trim {
  z-index: 3;
}
.model-feature-dialog {
  width: 560px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  max-height: min(80vh, 820px);
}
.model-dialog-scroll {
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
}
.model-dialog-scroll fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.model-dialog-scroll label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
}
.model-dialog-scroll input:not([type=checkbox]),
.model-dialog-scroll select {
  width: 160px;
  min-width: 0;
  text-align: right;
}
.model-dialog-scroll .model-dimension input {
  margin-left: auto;
}
.model-dialog-scroll .model-dimension small {
  width: 22px;
  color: var(--muted);
}
.model-dialog-scroll .model-toggle {
  justify-content: flex-start;
}
.model-dialog-scroll p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.model-dialog-scroll details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
}
.model-dialog-scroll details summary {
  cursor: pointer;
  font-size: 12px;
}
.model-profile-preview {
  width: 100%;
  height: 120px;
  background: var(--panel);
  border-radius: calc(6px * var(--radius, 1));
}
.model-profile-preview circle,
.model-profile-preview rect {
  fill: #387bc61a;
  stroke: #387bc6;
  stroke-width: 1.5;
}
.model-sketch-canvas {
  width: 100%;
  height: 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  touch-action: none;
}
.model-sketch-canvas circle {
  cursor: crosshair;
}
.model-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.model-dialog-scroll .model-inline label {
  flex: 1;
  min-width: 60px;
  flex-direction: column;
  align-items: stretch;
}
.model-dialog-scroll .model-inline input,
.model-dialog-scroll .model-inline select {
  width: 100%;
}
.model-dialog-scroll .model-list-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin: 6px 0;
}
.model-feature-dialog > .dialog-actions {
  margin-top: 20px;
  flex-shrink: 0;
}
.model-parameters-dialog {
  width: 650px;
}
.model-feature-dialog > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.model-parameter-row {
  display: grid;
  grid-template-columns: 145px minmax(100px, 1fr) 80px 28px;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 12px;
}
.model-dialog-scroll .model-parameter-row input {
  width: 100%;
  text-align: left;
}
.model-parameter-row output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.model-assembly-dialog {
  width: 800px;
}
.model-assembly-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  min-height: 250px;
}
.model-dialog-scroll .model-assembly-list,
.model-dialog-scroll .model-assembly-form {
  min-width: 0;
  overflow: auto;
}
.model-assembly-list button {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  text-align: left;
}
.model-dialog-scroll .model-assembly-form .model-dimension input {
  width: 105px;
}
.model-dialog-scroll h3 {
  font-size: 12px;
  margin: 16px 0 10px;
}
.dialog input[aria-invalid=true] {
  border-color: #b42318;
}
.model-inspection-dialog {
  width: 660px;
}
.model-inspection-results {
  height: 190px;
  overflow: auto;
  margin: 14px 0;
}
.model-inspection-results [role=listitem] {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-variant-numeric: tabular-nums;
}
.model-inspection-results small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.model-inspection-results .error {
  color: #b42318;
}
.model-measure-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.model-drawing-scrim {
  align-items: center;
  padding: 20px;
}
.model-drawing-dialog {
  width: min(1050px, calc(100vw - 40px));
  height: min(700px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  gap: 14px;
}
.model-drawing-dialog header,
.model-drawing-dialog footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.model-drawing-dialog header h2 {
  margin: 0 0 4px;
}
.model-drawing-dialog header p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.model-drawing-dialog footer {
  justify-content: space-between;
}
.model-drawing-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  min-height: 0;
  flex: 1;
}
.model-drawing-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.model-drawing-view > .model-inline input {
  width: 130px;
}
.model-drawing-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  background: var(--panel);
  padding: 8px;
}
.model-drawing-scroll > p {
  font-size: 13px;
  padding: 40px;
  color: var(--muted);
}
.model-drawing-preview {
  background: white;
  box-shadow: 0 1px 5px #0002;
}
.model-drawing-preview svg {
  display: block;
  width: 100%;
  height: auto;
}
.model-drawing-preview text {
  font-family: system-ui, sans-serif;
}
.model-drawing-settings {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.model-drawing-settings label {
  align-items: stretch;
  flex-direction: column;
}
.model-drawing-settings input:not([type=checkbox]),
.model-drawing-settings select,
.model-drawing-settings textarea {
  width: 100%;
  text-align: left;
}
.model-drawing-settings .model-toggle {
  flex-direction: row;
  align-items: center;
}
.model-drawing-dimension {
  background: var(--panel);
  border-radius: calc(5px * var(--radius, 1));
  padding: 8px;
  margin: 10px 0;
}
@media (max-width: 1050px) {
  .model-drawing-body {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 12px;
  }
}
.atlas-settings.dialog {
  width: 660px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
}
.atlas-settings header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.atlas-settings header h2 {
  margin: 0;
  font-size: 24px;
}
.atlas-settings header > span,
.atlas-settings .dialog-actions > span {
  flex: 1;
}
.settings-interface,
.settings-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.atlas-settings .settings-theme {
  flex-direction: row;
}
.atlas-settings .settings-theme > select {
  flex: none;
  width: 260px;
}
.settings-updates > small,
.settings-account > small {
  flex: 1;
  text-align: right;
  font-size: 11px;
}
.atlas-settings > .settings-crash-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.atlas-settings > .settings-crash-note a {
  color: inherit;
  text-decoration: underline;
}
.atlas-settings > .settings-auto-update {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.settings-ai-folders {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.settings-ai-folders li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
}
.settings-ai-folders li > span {
  display: grid;
  flex: 1;
  min-width: 0;
}
.settings-ai-folders small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.settings-auto-update input {
  height: auto;
  margin: 0;
}
.atlas-settings p {
  font-size: 11px;
  line-height: 1.5;
  margin: 9px 0;
}
.atlas-settings h3 {
  font-size: 16px;
  margin: 16px 0 10px;
}
.atlas-settings hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 15px 0;
}
.atlas-settings > select {
  width: 100%;
  margin-bottom: 3px;
}
.atlas-settings > input {
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0;
}
.shortcut-rows {
  height: 295px;
  overflow: auto;
  padding: 4px;
}
.shortcut-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 38px 38px 42px 25px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-size: 11px;
}
.shortcut-row small {
  font-size: 10px;
  color: var(--muted);
}
.atlas-settings .shortcut-row label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 11px;
}
.atlas-settings .shortcut-row input[type=checkbox] {
  width: 12px;
  height: 12px;
  margin: 0;
}
.atlas-settings .shortcut-row > input {
  width: 42px;
  box-sizing: border-box;
  padding: 4px;
  text-align: center;
}
.shortcut-row > button {
  border: 0;
  background: transparent;
  padding: 3px;
}
.atlas-settings .dialog-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.tab-context.menu-popup {
  position: fixed;
  z-index: 1000;
  min-width: 210px;
}
.tab [aria-label="Pinned tab"] {
  font-size: 13px;
  color: var(--muted);
}
.scrim.settings-scrim {
  padding: 24px;
  align-items: center;
  box-sizing: border-box;
}
.atlas-settings.dialog {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.atlas-settings.dialog > *:not(.shortcut-rows) {
  flex-shrink: 0;
}
.atlas-settings .shortcut-rows {
  flex: 1 1 295px;
  min-height: 120px;
}
.tab [aria-label="Pinned tab"] {
  flex: 0 0 auto !important;
  padding: 0 3px;
}
.atlas-settings input[type=checkbox] {
  accent-color: var(--fg);
}
.editor-context.menu-popup {
  z-index: 1900;
  min-width: 210px;
  max-height: calc(100vh - 16px);
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.editor-context > button[aria-haspopup] {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.editor-context .menu-sub:focus-within > .menu-popup.sub {
  display: block;
}
.editor-context .menu-sub > [role=menuitem] {
  outline: none;
  cursor: default;
}
.editor-context .menu-sub > [role=menuitem]:focus {
  background: var(--selection);
}
.editor-context.submenu-left .menu-popup.sub {
  left: auto;
  right: 100%;
}
.flow-list-item {
  position: relative;
  left: var(--list-flow-x, 0);
  top: var(--list-flow-y, 0);
}
.measuring-flow .flow-list-item {
  left: 0 !important;
  top: 0 !important;
}
.rich-content .flow-table-layout td,
.rich-content .flow-table-layout th {
  background: transparent !important;
  border-color: transparent !important;
  position: static;
}
.rich-content .flow-table-layout table,
.rich-content table.flow-table-layout {
  overflow: visible;
}
.rich-content .measuring-flow.flow-table-layout td,
.rich-content .measuring-flow.flow-table-layout th,
.rich-content .measuring-flow .flow-table-layout td,
.rich-content .measuring-flow .flow-table-layout th {
  border-color: #aaa !important;
}
.rich-content .flow-table-layout {
  background: transparent !important;
}
.flow-table-piece [data-selected=true] {
  box-shadow: inset 0 0 0 10000px #b7cee966;
}
.rich-content .flow-table-layout .selectedCell:after,
.rich-content .flow-table-layout .column-resize-handle {
  display: none;
}
.rich-content ul[data-type=taskList] {
  list-style: none;
  padding-left: 1.5em;
}
.rich-content li[data-type=taskItem] {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}
.rich-content li[data-type=taskItem] > label {
  flex: 0 0 auto;
  user-select: none;
}
.rich-content li[data-type=taskItem] > div {
  flex: 1;
  min-width: 0;
}
.rich-content input[type=checkbox] {
  accent-color: #202124;
  color-scheme: light;
  background: #fff;
  border-color: #767676;
}
.spreadsheet-editor .inspector {
  position: relative;
}
.spreadsheet-editor .sheet-inspector-close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 24px;
  height: 24px;
  padding: 0;
}
.spreadsheet-editor .inspector fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.spreadsheet-editor .inspector label {
  display: grid;
  gap: 5px;
}
.spreadsheet-editor .inspector label:has(> input[type=checkbox]) {
  display: flex;
  align-items: center;
  gap: 7px;
}
.spreadsheet-editor .inspector input:not([type=checkbox]):not([type=color]),
.spreadsheet-editor .inspector textarea {
  width: 100%;
  box-sizing: border-box;
}
.spreadsheet-editor .inspector textarea {
  min-height: 110px;
  resize: vertical;
}
.spreadsheet-editor .cell-dropdown {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 18px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.spreadsheet-editor .cell-dropdown::after {
  content: "\25be";
}
.spreadsheet-editor .inspector .color > .color-trigger {
  width: 100%;
  justify-content: space-between;
}
.rich-editor .review-author {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}
.rich-editor .review-author input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.rich-content .atlas-ghost {
  color: var(--muted);
  opacity: 0.6;
  white-space: pre-wrap;
  pointer-events: none;
  user-select: none;
}
.rich-content .atlas-ghost-key {
  margin-left: 0.4em;
  padding: 0 0.3em;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 600 0.62em/1.5 system-ui, sans-serif;
  vertical-align: 0.15em;
  color: var(--muted);
}
@media print {
  .rich-content .atlas-ghost {
    display: none;
  }
}
.rich-content .nonprinting-space {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='16' viewBox='0 0 8 16'%3E%3Ccircle cx='4' cy='9' r='1' fill='%23888'/%3E%3C/svg%3E") center / 0.5em 1em no-repeat;
}
.rich-content .nonprinting-tab {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cpath d='M2 9h14m-4-4 4 4-4 4' stroke='%23888' fill='none'/%3E%3C/svg%3E") center / 1.2em 1em no-repeat;
}
.rich-content .nonprinting-block::after {
  content: "\b6";
  display: inline-block;
  width: 0;
  color: #888;
  pointer-events: none;
}
.spelling-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}
.pdf-form-widgets {
  overflow: hidden;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.pdf-form-widgets > input,
.pdf-form-widgets > textarea,
.pdf-form-widgets > select {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 1px 3px;
  border: 1px solid #888;
  border-radius: 0;
  color: #111;
  background: #fff;
  color-scheme: light;
  accent-color: #202124;
  pointer-events: auto;
  min-width: 0;
  font-family: Arial, sans-serif;
  resize: none;
}
.pdf-form-widgets > :disabled {
  opacity: 0.65;
}
.workspace.with-sidebar {
  padding-left: 236px;
  position: relative;
}
.workspace.with-sidebar > .tabbar {
  margin-left: -236px;
  width: calc(100% + 236px);
}
.workspace-sidebar.atlas-drive-root {
  position: absolute;
  left: 0;
  top: 44px;
  bottom: 0;
  width: 236px;
  height: auto;
  z-index: 3;
}
@media (max-width: 760px) {
  .workspace.with-sidebar {
    padding-left: 64px;
  }
  .workspace.with-sidebar > .tabbar {
    margin-left: -64px;
    width: calc(100% + 64px);
  }
  .workspace-sidebar.atlas-drive-root {
    width: 64px;
  }
}
.workspace-row {
  container: atlas-ai-workspace / inline-size;
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.workspace-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.local-browser.atlas-drive-root,
.cloud-surface {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: var(--bg);
}
.showing-navigation > .status {
  display: none;
}
.tab {
  animation: tab-open var(--motion-base) var(--ease-out) both;
}
@keyframes tab-open {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
}
.tab > .atlas-drive-icon {
  opacity: 0.8;
}
.cloud-still {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}
.selected-image-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.selected-image-tools > span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.comment-rail {
  width: 304px;
  min-width: 260px;
  flex: none;
  overflow: auto;
  background: var(--panel);
  border-left: 1px solid var(--line);
  padding: 12px;
}
.comment-rail > header,
.comment-rail-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.comment-rail > header strong {
  font-size: 14px;
}
.comment-rail > header strong span {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
}
.comment-thread {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
  transition: border-color var(--motion-fast) var(--ease-out);
}
.comment-thread[data-active=true] {
  border-color: var(--fg);
}
.comment-thread[data-resolved=true] p {
  color: var(--muted);
}
.comment-author {
  display: flex;
  gap: 8px;
  align-items: center;
}
.comment-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--line);
}
.comment-author strong,
.comment-reply strong {
  font-size: 12px;
}
.comment-thread time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.comment-thread p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin: 10px 0;
}
.comment-thread-actions {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  font-size: 11px;
}
.comment-thread-actions button {
  min-height: 28px;
  padding: 4px 7px;
}
.comment-reply {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}
.comment-thread form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 12px;
}
.comment-thread textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: calc(5px * var(--radius, 1));
  padding: 8px;
  background: var(--panel);
}
.comment-empty {
  color: var(--muted);
  padding: 20px 4px;
  line-height: 1.5;
}
.comment-empty strong {
  color: var(--fg);
}
.citations-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.citations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.citations-head h3 {
  margin: 0;
  font-size: 14px;
}
.citations-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.citations-field input,
.citations-field select {
  width: 100%;
  max-width: none;
  min-width: 0;
  color: var(--fg);
}
.citations-icon {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
}
.citations-selected,
.citations-source {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
}
.citations-selected {
  border-color: var(--fg);
}
.citations-kicker,
.citations-source small,
.citations-meta {
  font-size: 11px;
  color: var(--muted);
}
.citations-words {
  margin: 0;
  font-size: 13px;
}
.citations-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.citations-add,
.citations-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.citations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.citations-source strong {
  font-size: 12px;
}
.citations-source p {
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.citations-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.citations-actions > button:first-child {
  margin-right: auto;
}
.citations-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.citations-foot p,
.citations-note {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.citations-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.citations-names {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.citations-names legend {
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
}
.citations-names small {
  font-size: 11px;
  color: var(--muted);
}
.citations-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: center;
}
.citations-name input {
  min-width: 0;
}
.citations-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.citations-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.citations-accessed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: end;
}
.citations-panel .primary {
  background: var(--accent, var(--fg));
  color: var(--accent-fg, var(--bg));
}
.rich-content .rich-citation {
  border-radius: 2px;
}
.rich-content .rich-citation:hover {
  background: #f1f3f4;
}
.rich-content .rich-citation.ProseMirror-selectednode {
  background: #e8eaed;
  outline: 1px solid #9aa0a6;
}
.citations-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.citations-stale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  background: var(--soft);
  font-size: 12px;
}
.citations-stale strong {
  font-weight: 600;
}
.citations-stale button {
  white-space: nowrap;
}
.citations-row {
  display: grid;
  gap: 8px;
}
.citations-row + .citations-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.citations-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.citations-panel .citations-two .citations-field select,
.citations-panel .citations-two .citations-field input {
  max-width: none;
  width: 100%;
  min-width: 0;
}
.citations-panel .citations-three {
  align-items: end;
}
.page-footnotes,
.note-continuation {
  z-index: 3;
}
.page-footnotes .rich-citation {
  border-radius: 2px;
}
.page-footnotes .rich-citation:hover {
  background: #f1f3f4;
}
.page-footnotes .rich-citation.selected {
  background: #e8eaed;
  outline: 1px solid #9aa0a6;
}
.inspector .note-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.page-marginal {
  display: flex;
  align-items: center;
  min-height: 28px;
  z-index: 2;
  gap: 8px;
}
.paper .page-marginal-target {
  flex: 1;
  min-height: 28px;
  padding: 3px 0;
  color: #666;
  text-align: left;
  white-space: pre-wrap;
  border: 1px solid transparent;
  font: inherit;
}
.paper .page-marginal-target {
  cursor: text;
}
.paper .page-marginal-target:focus-visible {
  border-color: #ccd0d7;
}
.paper .page-marginal-target:hover:not(:disabled) {
  background: transparent;
}
.paper .page-marginal-target:disabled {
  opacity: 1;
  color: #666;
  cursor: default;
}
.page-marginal-hint {
  opacity: 0;
  font-size: 10px;
  color: #5f6368;
  transition: opacity var(--motion-base) var(--ease-out) var(--motion-fill);
}
.page-marginal-target:not(:disabled):hover .page-marginal-hint,
.page-marginal-target:focus-visible .page-marginal-hint {
  opacity: 1;
}
.paper .page-marginal input {
  flex: 1;
  min-width: 0;
  color: #333;
  background: white;
  border: 1px solid #858c98;
  padding: 3px;
  font: inherit;
}
.page-number {
  margin-left: auto;
}
.rich-content ol,
.rich-content ul:not([data-type=taskList]) {
  list-style: none;
}
.rich-content li[data-marker] > :first-child::before,
.rich-content :is(h1, h2, h3, h4, h5, h6)[data-marker]::before {
  font-family: var(--atlas-marker-font, inherit);
  font-size: var(--atlas-marker-size, inherit);
  font-weight: var(--atlas-marker-weight, inherit);
  font-style: var(--atlas-marker-style, inherit);
}
.rich-content li[data-marker] > :first-child::before {
  content: var(--atlas-marker);
  display: inline-block;
  box-sizing: border-box;
  min-width: 40px;
  margin-left: -40px;
  padding-right: 0.5em;
  text-indent: 0;
  white-space: pre;
}
.rich-content li[data-marker-suffix=space] > :first-child::before {
  min-width: 0;
  padding-right: 0.3em;
}
.rich-content li[data-marker-suffix=nothing] > :first-child::before {
  min-width: 0;
  padding-right: 0;
}
.rich-content :is(h1, h2, h3, h4, h5, h6)[data-marker]::before {
  content: var(--atlas-marker);
  display: inline-block;
  min-width: var(--atlas-hang, 0);
  padding-right: 0.25in;
  white-space: pre;
}
.rich-content :is(h1, h2, h3, h4, h5, h6)[data-marker-suffix=space]::before {
  padding-right: 0.3em;
}
.rich-content :is(h1, h2, h3, h4, h5, h6)[data-marker-suffix=nothing]::before {
  min-width: 0;
  padding-right: 0;
}
.rich-content li[data-placeholder-item] > p:first-child {
  display: none;
}
.rich-content .rich-toc {
  margin: 0 0 12pt;
  cursor: default;
  user-select: none;
  border-radius: calc(2px * var(--radius, 1));
}
.rich-toc-caption {
  display: none;
  color: #5f6368;
  font-size: 9pt;
  margin-bottom: 4pt;
}
.rich-toc.selected {
  outline: 2px solid color-mix(in srgb, var(--accent, #1a73e8) 60%, transparent);
  outline-offset: 2px;
}
.rich-toc.selected.flow-fragmented {
  outline: none;
}
.rich-toc.selected.flow-fragmented .rich-toc-entry {
  background: color-mix(in srgb, var(--accent, #1a73e8) 14%, transparent);
}
.rich-toc.selected .rich-toc-caption,
.rich-toc:not(:has(.rich-toc-entry)) .rich-toc-caption {
  display: block;
}
.rich-toc-entry {
  position: relative;
  display: flex;
  align-items: baseline;
  cursor: pointer;
}
.rich-toc-entry::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: var(--toc-indent, 0px);
  cursor: default;
}
.measuring-flow .rich-toc-entry {
  transform: none !important;
}
.rich-toc-entry[data-level="1"] {
  font-weight: bold;
}
.rich-toc-marker {
  margin-right: 0.5em;
  white-space: nowrap;
}
.rich-toc-leader {
  flex: 1 1 auto;
  min-width: 1em;
  margin: 0 4px;
  border-bottom: 1px dotted currentColor;
}
.rich-toc-page {
  min-width: 1.5em;
  text-align: right;
}
@media (prefers-reduced-motion: reduce) {
  .comment-thread {
    transition: none;
  }
}
@media print {
  .page-marginal-hint {
    display: none;
  }
}
.rich-content [data-resize-container] {
  vertical-align: middle;
  max-width: 100%;
}
.rich-content [data-resize-handle] {
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1px solid #3976db;
  border-radius: 2px;
  opacity: 0;
  z-index: 3;
}
.rich-content [data-resize-container]:hover [data-resize-handle],
.rich-content .ProseMirror-selectednode [data-resize-handle] {
  opacity: 1;
}
.rich-content[contenteditable=false] [data-resize-handle] {
  display: none;
}
.rich-editor {
  position: relative;
}
.context-strips {
  position: absolute;
  z-index: 12;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  box-shadow: 0 8px 24px #0003;
}
.context-strips > .context-strip {
  border-top: 0;
  border-bottom: 0;
}
.context-strips > .context-strip + .context-strip {
  border-top: 1px solid var(--line);
}
.rich-editor.pressing .context-strips {
  pointer-events: none;
}
.drive-upload-split {
  display: inline-flex;
  align-items: stretch;
  flex: none;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  overflow: hidden;
  height: 30px;
}
.drive-upload-split > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}
.drive-upload-split > button + button {
  border-left: 1px solid var(--line);
  padding: 0 6px;
}
.documentbar {
  min-width: 0;
}
.document-actions {
  flex: none;
}
.document-identity {
  min-width: 80px;
}
@media (max-width: 1060px) {
  .drive-upload-split > button > span {
    display: none;
  }
}
.engine-notice {
  flex: none;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
}
.editor-menu-portal {
  z-index: 10000;
  min-width: 210px;
}
.editor-menu-portal .menu-sub {
  position: static;
}
.editor-menu-portal .menu-sub > .sub {
  position: static;
  margin: 0 0 0 8px;
  border: 0;
  box-shadow: none;
}
.text-editor > .text-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
}
.text-tools-divider {
  width: 1px;
  height: 18px;
  margin: 0 6px;
  background: var(--line);
}
.formula-assist {
  position: fixed;
  z-index: 10050;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 8px 24px #0003;
  font-size: 12px;
  overflow: hidden;
}
.formula-assist [role=option] {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 5px 10px;
  cursor: pointer;
}
.formula-assist [role=option][aria-selected=true],
.formula-assist [role=option]:hover {
  background: var(--selection, var(--soft));
}
.formula-assist [role=option] strong {
  min-width: 92px;
  font-family:
    ui-monospace,
    Menlo,
    monospace;
  font-weight: 600;
}
.formula-assist [role=option] span,
.formula-hint span {
  color: var(--muted);
}
.formula-hint {
  display: grid;
  gap: 3px;
  padding: 6px 10px;
}
.formula-hint code {
  font-family:
    ui-monospace,
    Menlo,
    monospace;
}
.formula-hint b {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc-templates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.doc-templates > p {
  margin: 0;
  font-size: 11px;
}
.doc-template {
  display: grid;
  gap: 4px;
  min-width: 0;
  white-space: normal;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.doc-template-page {
  position: relative;
  display: block;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(4px * var(--radius, 1));
  background: #fff;
  transition: box-shadow var(--motion-fast) var(--ease-out);
}
.doc-template:hover .doc-template-page,
.doc-template:focus-visible .doc-template-page {
  box-shadow: 0 0 0 2px var(--fg);
}
.doc-template-content {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 624px;
  color: #000;
  transform: scale(0.34);
  transform-origin: top left;
  pointer-events: none;
}
.doc-template-content table {
  border-collapse: collapse;
  table-layout: fixed;
}
.doc-template-content td,
.doc-template-content th {
  border: 1px solid #c8c8c8;
  padding: 2px 6px;
  vertical-align: top;
}
.doc-template-content hr {
  border: 0;
  border-top: 1px solid #999;
}
.doc-template > strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.doc-template > strong i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.doc-template > .muted {
  font-size: 10.5px;
  line-height: 1.4;
}
.doc-template-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc-template-starters button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: calc(5px * var(--radius, 1));
  font-size: 11px;
}
@media (prefers-reduced-motion: reduce) {
  .doc-template-page {
    transition: none;
  }
}
.sheet-template-preview {
  display: block;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(4px * var(--radius, 1));
  background: #fff;
  color: #202124;
  transition: box-shadow var(--motion-fast) var(--ease-out);
}
.doc-template:hover .sheet-template-preview,
.doc-template:focus-visible .sheet-template-preview {
  box-shadow: 0 0 0 2px var(--fg);
}
.sheet-template-preview table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 8px;
}
.sheet-template-preview td {
  height: 12px;
  padding: 0 3px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .sheet-template-preview {
    transition: none;
  }
}
.atlas-ai-row {
  container: atlas-ai-workspace / inline-size;
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  position: relative;
}
.atlas-ai-panel {
  width: clamp(280px, 26vw, 340px);
  min-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--panel, var(--bg));
  color: var(--fg);
  font-size: 12.5px;
}
.atlas-ai-panel > * {
  animation: atlas-glide var(--motion-base) var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 8) * 12ms);
}
.atlas-ai-panel > :nth-child(2) {
  --i: 1;
}
.atlas-ai-panel > :nth-child(3) {
  --i: 2;
}
.atlas-ai-panel > :nth-child(n+4) {
  --i: 3;
}
.atlas-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.atlas-ai-head strong {
  font-weight: 600;
  white-space: nowrap;
}
.atlas-ai-mark {
  display: inline-grid;
  place-items: center;
}
.atlas-ai-head .atlas-ai-modes {
  margin-left: 0;
}
.atlas-ai-meter {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.atlas-ai-meter i {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: calc(4px * var(--radius, 1));
  overflow: hidden;
  background: var(--soft);
}
.atlas-ai-meter b {
  display: block;
  height: 100%;
  background: var(--accent, var(--fg));
  border-radius: inherit;
}
.atlas-ai-icon,
.atlas-ai-send {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: calc(7px * var(--radius, 1));
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.atlas-ai-icon:hover,
.atlas-ai-icon.on {
  background: var(--soft);
}
.atlas-ai-icon:disabled {
  opacity: 0.4;
  cursor: default;
}
.atlas-ai-check {
  margin-left: auto;
}
.atlas-ai-meter + .atlas-ai-check {
  margin-left: 0;
}
.ai-personal {
  display: grid;
  gap: 10px;
  font-size: 12.5px;
}
.ai-personal p {
  margin: 0;
}
.ai-personal-field {
  display: grid;
  gap: 4px;
}
.ai-personal-field textarea {
  min-height: 90px;
  resize: vertical;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.ai-personal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ai-personal button {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.ai-personal button:hover:not(:disabled) {
  background: var(--soft);
}
.ai-personal button:disabled {
  cursor: default;
}
.ai-personal-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ai-personal-check input {
  margin-top: 2px;
}
.ai-personal-check > span,
.ai-personal-field > span {
  display: grid;
  gap: 2px;
}
.ai-personal-memories {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-personal-memories li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
}
.ai-personal-memories li > span {
  flex: 1;
}
.ai-personal-memories button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
}
.atlas-ai-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.atlas-ai-scope button {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill, 999px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.atlas-ai-scope button.on {
  border-color: var(--accent, var(--fg));
  color: var(--fg);
  background: var(--accent-soft, var(--soft));
}
.atlas-ai-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}
.atlas-ai-empty {
  color: var(--muted);
  line-height: 1.5;
}
.atlas-ai-empty p {
  margin: 0 0 10px;
}
.atlas-ai-signin .atlas-ai-head > .atlas-ai-icon {
  margin-left: auto;
}
.atlas-ai-signin-body {
  padding: 28px 6px 0;
}
.atlas-ai-signin-body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.atlas-ai-signin-primary {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 16px;
  border: 0;
  border-radius: calc(7px * var(--radius, 1));
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 550;
}
.atlas-ai-signin-quiet {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
}
.atlas-ai-signin-quiet:hover {
  color: var(--fg);
}
.atlas-ai-exchange + .atlas-ai-exchange {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.atlas-ai-question {
  margin: 0 0 8px;
  font-weight: 600;
  white-space: pre-wrap;
}
.atlas-ai-answer {
  line-height: 1.55;
}
.atlas-ai-answer p,
.atlas-ai-answer ul,
.atlas-ai-answer ol {
  margin: 0 0 8px;
}
.atlas-ai-answer table {
  border-collapse: collapse;
  margin: 0 0 8px;
}
.atlas-ai-answer th,
.atlas-ai-answer td {
  border: 1px solid var(--line);
  padding: 3px 6px;
}
.atlas-ai-cite {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin: 0 1px;
  padding: 0 3px;
  border: 1px solid var(--line);
  border-radius: calc(4px * var(--radius, 1));
  background: var(--soft);
  color: var(--fg);
  font: 600 10px/1 system-ui, sans-serif;
  vertical-align: 1px;
  cursor: pointer;
}
.atlas-ai-cite:hover {
  border-color: var(--fg);
}
.atlas-ai-status {
  color: var(--muted);
  margin: 4px 0;
}
.atlas-ai-error {
  color: var(--fg);
  margin: 4px 0;
  padding-left: 8px;
  border-left: 3px solid var(--danger, #c0392b);
}
.atlas-ai-sources {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.atlas-ai-sources button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 6px;
  border: 0;
  border-radius: calc(6px * var(--radius, 1));
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.atlas-ai-sources button:hover {
  background: var(--soft);
}
.atlas-ai-n {
  min-width: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.atlas-ai-sources li,
.atlas-ai-sources button {
  min-width: 0;
}
.atlas-ai-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-ai-sources small {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 6px;
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atlas-ai-read {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}
.atlas-ai-read summary {
  cursor: pointer;
}
.atlas-ai-read ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.atlas-ai-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.atlas-ai-quotes {
  flex-basis: 100%;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.atlas-ai-quotes li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 4px 5px 8px;
  border-left: 3px solid var(--atlas-ai);
  border-radius: calc(4px * var(--radius, 1));
  background: color-mix(in srgb, var(--atlas-ai) 8%, var(--bg));
  font-size: 12px;
  line-height: 1.4;
}
.atlas-ai-quotes li > svg {
  flex: none;
  margin-top: 2px;
  color: var(--muted);
}
.atlas-ai-quotes li > span {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.atlas-ai-quotes small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.atlas-ai-quotes button {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: calc(5px * var(--radius, 1));
  background: none;
  color: var(--muted);
}
.atlas-ai-quotes button:hover {
  background: var(--line);
  color: var(--fg);
}
.atlas-ai-quoted {
  margin: -4px 0 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}
.atlas-ai-quoted li {
  padding-left: 8px;
  border-left: 2px solid var(--line);
  white-space: pre-wrap;
}
.atlas-ai-quoted li + li {
  margin-top: 3px;
}
.atlas-ai-ask textarea {
  flex: 1;
  resize: none;
  min-height: 38px;
  max-height: 140px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: calc(9px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.atlas-ai-send {
  background: var(--accent, var(--fg));
  color: var(--accent-fg, var(--bg));
}
.atlas-ai-send:disabled {
  opacity: 0.35;
  cursor: default;
}
.atlas-ai-ask {
  position: relative;
}
.atlas-ai-level {
  color: var(--muted);
}
.atlas-ai-level:hover:not(:disabled),
.atlas-ai-level.on {
  background: var(--soft);
  color: var(--fg);
}
.atlas-ai-level:disabled {
  opacity: 0.45;
  cursor: default;
}
.atlas-ai-level-menu {
  left: auto;
  right: 12px;
  top: auto;
  bottom: calc(100% - 6px);
  width: min(268px, calc(100% - 24px));
}
.atlas-ai-level-menu > button {
  display: grid;
  grid-template-columns: 16px 18px 1fr;
  gap: 2px 8px;
  align-items: start;
  padding: 7px 10px;
  border-radius: calc(4px * var(--radius, 1));
}
.atlas-ai-level-menu > button > .check {
  grid-row: span 2;
  width: 16px;
  padding-top: 1px;
}
.atlas-ai-level-menu > button > svg {
  grid-row: span 2;
  margin-top: 1px;
}
.atlas-ai-level-menu > button > strong {
  font-weight: 600;
}
.atlas-ai-level-menu > button > small {
  grid-column: 3;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: normal;
}
.atlas-ai-level-menu > button:focus-visible {
  outline: none;
}
.atlas-ai-level-error {
  margin: 0 12px 6px;
}
@media (max-width: 760px) {
  .atlas-ai-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(100%, 360px);
    z-index: 30;
    box-shadow: -12px 0 30px rgb(0 0 0 / 0.25);
  }
}
@media print {
  .atlas-ai-panel {
    display: none;
  }
}
:root {
  --atlas-ai: #8b6cff;
}
.rich-content .atlas-ai-caret {
  position: relative;
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin: 0 -1px;
  vertical-align: text-bottom;
  pointer-events: none;
}
.rich-content .atlas-ai-caret::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--atlas-ai);
  animation: atlas-ai-blink 1s steps(2) infinite;
}
.rich-content .atlas-ai-caret-label {
  position: absolute;
  left: 0;
  bottom: 100%;
  padding: 1px 5px;
  border-radius: 4px 4px 4px 0;
  background: var(--atlas-ai);
  color: #fff;
  font: 600 10px/1.4 system-ui, sans-serif;
  white-space: nowrap;
  user-select: none;
}
.rich-content .atlas-ai-selecting {
  background: color-mix(in srgb, var(--atlas-ai) 28%, transparent);
}
@keyframes atlas-ai-blink {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rich-content .atlas-ai-caret::before {
    animation: none;
  }
}
@media print {
  .rich-content .atlas-ai-caret {
    display: none;
  }
}
.atlas-ai-modes {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
}
.atlas-ai-modes button {
  padding: 2px 9px;
  border: 0;
  border-radius: calc(6px * var(--radius, 1));
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.atlas-ai-modes button[aria-pressed=true] {
  background: var(--soft);
  color: var(--fg);
}
.atlas-ai-edited p {
  margin: 0 0 6px;
}
.atlas-ai-keep {
  display: flex;
  gap: 6px;
}
.atlas-ai-keep button {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: calc(7px * var(--radius, 1));
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.atlas-ai-keep button:first-child {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.atlas-ai-ran {
  margin: 6px 0 8px;
}
.atlas-ai-ran > p {
  margin: 0 0 2px;
}
.atlas-ai-ran ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.atlas-ai-ran li {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.atlas-ai-ran li b {
  color: var(--fg);
  font-weight: 500;
}
.atlas-ai-offer {
  margin: 10px 0 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
}
.atlas-ai-offer > p {
  margin: 0 0 6px;
  font-weight: 600;
}
.atlas-ai-offer-row + .atlas-ai-offer-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.atlas-ai-offer-row p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.atlas-ai-offer-row p b {
  color: var(--fg);
  font-weight: 500;
}
.atlas-ai-offer-row small {
  display: block;
  margin: 2px 0 7px;
  color: var(--muted);
  font-size: 12px;
}
.atlas-ai-offer-row .atlas-ai-offer-fill {
  color: var(--fg);
  overflow-wrap: anywhere;
}
.atlas-ai-offer-row small + .atlas-ai-offer-fill {
  margin-top: -4px;
}
.atlas-ai-offer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.atlas-ai-offer-actions button {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: calc(7px * var(--radius, 1));
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.atlas-ai-offer-actions button:last-child {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
:root {
  --flag-spelling: #e5484d;
  --flag-grammar: #3e8ef7;
  --flag-style: #30a46c;
  --flag-fact: #f76b15;
  --flag-verify: #e2b100;
  --flag-conflict: var(--atlas-ai);
  --flag-risk: #d6409f;
}
.rich-content .atlas-flag {
  text-decoration: underline wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: help;
}
.rich-content .atlas-flag.active {
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.rich-content .atlas-flag-spelling {
  text-decoration-color: var(--flag-spelling);
}
.rich-content .atlas-flag-grammar {
  text-decoration-color: var(--flag-grammar);
}
.rich-content .atlas-flag-style {
  text-decoration-color: var(--flag-style);
}
.rich-content .atlas-flag-fact {
  text-decoration-color: var(--flag-fact);
}
.rich-content .atlas-flag-verify {
  text-decoration-color: var(--flag-verify);
}
.rich-content .atlas-flag-conflict {
  text-decoration-color: var(--flag-conflict);
}
.rich-content .atlas-flag-risk {
  text-decoration-color: var(--flag-risk);
}
.rich-content .atlas-flag-reference {
  text-decoration-color: var(--flag-conflict);
}
@media print {
  .rich-content .atlas-flag {
    text-decoration: none;
  }
}
.atlas-ai-flags-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.atlas-ai-flags-head button,
.atlas-flag-source {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.atlas-ai-flags ol {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.atlas-flag-item > button:first-child {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 6px;
  border: 0;
  border-radius: calc(7px * var(--radius, 1));
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}
.atlas-flag-item > button:first-child:hover {
  background: var(--soft);
}
.atlas-flag-item small {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-flag-item span:last-child {
  min-width: 0;
}
.atlas-flag-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
}
.atlas-flag-spelling .atlas-flag-dot {
  background: var(--flag-spelling);
}
.atlas-flag-grammar .atlas-flag-dot {
  background: var(--flag-grammar);
}
.atlas-flag-style .atlas-flag-dot {
  background: var(--flag-style);
}
.atlas-flag-fact .atlas-flag-dot {
  background: var(--flag-fact);
}
.atlas-flag-verify .atlas-flag-dot {
  background: var(--flag-verify);
}
.atlas-flag-conflict .atlas-flag-dot {
  background: var(--flag-conflict);
}
.atlas-flag-risk .atlas-flag-dot {
  background: var(--flag-risk);
}
.atlas-flag-reference .atlas-flag-dot {
  background: var(--flag-conflict);
}
.atlas-flag-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 4px 23px;
}
.atlas-flag-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.atlas-flag-actions .atlas-flag-fix {
  color: var(--fg);
  font-weight: 600;
}
.atlas-flag-actions button:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.atlas-ai-flags-head {
  gap: 10px;
}
.atlas-ai-flags-head p {
  flex: 1;
}
button .check-label {
  margin-left: 5px;
  font-size: 12.5px;
  font-weight: 500;
}
.atlas-ai-check-hint {
  flex: 1;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
}
.atlas-ai-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: calc(9px * var(--radius, 1));
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.atlas-calc {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 360px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: calc(12px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.28);
  font-size: 12.5px;
  overflow: hidden;
}
.atlas-calc[style*=left] {
  right: auto;
  bottom: auto;
}
.atlas-calc > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  user-select: none;
}
.atlas-calc-tabs {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
}
.atlas-calc-tabs button {
  padding: 2px 10px;
  border: 0;
  border-radius: calc(6px * var(--radius, 1));
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.atlas-calc-tabs button[aria-selected=true] {
  background: var(--soft);
  color: var(--fg);
}
.atlas-calc-icon {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: calc(6px * var(--radius, 1));
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.atlas-calc-icon:hover {
  background: var(--soft);
}
.atlas-calc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  overflow: auto;
}
.atlas-calc-history {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 120px;
  overflow: auto;
  display: grid;
  gap: 2px;
}
.atlas-calc-history li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.atlas-calc-history button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-calc-history button:last-child {
  color: var(--fg);
  font-weight: 600;
}
.atlas-calc-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.atlas-calc-vars button {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill, 999px);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.atlas-calc-entry input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: calc(9px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  font:
    15px/1.3 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.atlas-calc-entry output {
  display: block;
  min-height: 18px;
  padding: 3px 2px 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.atlas-calc-keys {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.atlas-calc-keys button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--soft);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.atlas-calc-keys button.digit {
  background: var(--bg);
  font-size: 14px;
}
.atlas-calc-keys button.equals {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  font-weight: 600;
}
.atlas-calc-plots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.atlas-calc-plots li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.atlas-calc-plots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.atlas-calc-plots label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.atlas-calc-plots input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: calc(7px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  font:
    13px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.atlas-calc-error {
  width: 100%;
  color: var(--flag-error, #e5484d);
}
.atlas-calc-add {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.atlas-calc canvas {
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  cursor: grab;
  touch-action: none;
}
.atlas-calc-trace {
  margin: 0;
  min-height: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.atlas-calc-tools {
  display: flex;
  gap: 5px;
}
.atlas-calc-tools button {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: calc(7px * var(--radius, 1));
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.atlas-calc-tools button[aria-pressed=true] {
  background: var(--soft);
}
.atlas-calc-table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.atlas-calc-table th,
.atlas-calc-table td {
  padding: 2px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
@media print {
  .atlas-calc {
    display: none;
  }
}
: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;
}
button .replay-chip,
.replay-recording {
  color: var(--fg);
  white-space: nowrap;
}
button .replay-chip {
  margin-left: 5px;
  font-size: 12px;
  font-weight: 500;
}
button .replay-chip::before,
.replay-recording::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--replay-flag);
  vertical-align: 1px;
}
.atlas-replay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  outline: none;
}
.replay-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.replay-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.replay-head .spacer {
  flex: 1;
}
.replay-file {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replay-recording {
  font-weight: 500;
}
.replay-error,
.replay-status {
  margin: 24px;
}
.replay-error {
  color: var(--fg);
}
.replay-intro {
  max-width: 560px;
  margin: 48px auto;
  padding: 0 16px;
  line-height: 1.55;
}
.replay-intro h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.replay-start {
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: calc(6px * var(--radius, 1));
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.replay-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.replay-stats strong {
  color: var(--fg);
  font-weight: 600;
}
.replay-share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.replay-share .bar {
  display: flex;
  width: 120px;
  height: 8px;
  border-radius: calc(4px * var(--radius, 1));
  overflow: hidden;
  background: var(--line);
}
.replay-share .bar i.typed {
  background: var(--replay-typed);
}
.replay-share .bar i.outside {
  background: var(--replay-outside);
}
.replay-share .bar i.ai {
  background: var(--replay-ai);
}
.replay-share .bar i.earlier {
  background: var(--replay-away);
}
.replay-writers {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  align-items: baseline;
  gap: 4px 14px;
}
.replay-writers ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.replay-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.replay-doc {
  flex: 1;
  overflow: auto;
  padding: 32px max(24px, calc((100% - 720px) / 2));
  font:
    15px/1.6 Georgia,
    "Times New Roman",
    serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.replay-doc p {
  margin: 0 0 0.6em;
  min-height: 1em;
}
.replay-doc h1,
.replay-doc h2,
.replay-doc h3,
.replay-doc h4 {
  font-family: var(--font-heading, system-ui, sans-serif);
  margin: 0.8em 0 0.4em;
}
.replay-doc .replay-object {
  color: var(--muted);
}
.replay-outside {
  background: color-mix(in srgb, var(--replay-outside) 32%, transparent);
}
.replay-inside {
  background: color-mix(in srgb, var(--replay-inside) 26%, transparent);
}
.replay-ai {
  background: color-mix(in srgb, var(--replay-ai) 26%, transparent);
}
.replay-flags {
  width: 340px;
  flex-shrink: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  padding: 12px 14px;
}
.replay-flags h3 {
  margin: 0 0 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.replay-bang,
.replay-weight {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font: 700 12px system-ui, sans-serif;
  flex-shrink: 0;
}
.replay-flags ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.replay-flag {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.replay-flag.look .replay-weight {
  background: var(--replay-outside);
  color: #000;
}
.replay-flag.info .replay-weight {
  background: var(--line);
  color: var(--fg);
}
.replay-flag.reviewed {
  opacity: 0.6;
}
.replay-flag p {
  margin: 6px 0 0;
  line-height: 1.45;
}
.replay-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.replay-jump strong {
  flex: 1;
}
.replay-jump time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.replay-review {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
}
.replay-review button {
  padding: 3px 10px;
  border-radius: calc(5px * var(--radius, 1));
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.replay-muted {
  color: var(--muted);
}
.replay-note {
  font-size: 12px;
  margin-top: 12px;
}
.replay-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.replay-controls select {
  font: inherit;
}
.replay-timeline {
  position: relative;
  flex: 1;
  height: 34px;
  min-width: 120px;
}
.replay-timeline canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.replay-timeline input {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  margin: 0;
}
.replay-time {
  min-width: 150px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.replay-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.replay-legend {
  display: flex;
  gap: 14px;
  padding: 0 16px 10px;
  font-size: 12px;
}
.replay-legend span {
  padding: 1px 6px;
  border-radius: calc(3px * var(--radius, 1));
}
@media (max-width: 760px) {
  .replay-body {
    flex-direction: column;
  }
  .replay-flags {
    width: auto;
    max-height: 40%;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .replay-controls {
    flex-wrap: wrap;
  }
}
@media print {
  .atlas-replay {
    display: none;
  }
}
.replay-head .replay-share-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dialog.share-report {
  width: min(480px, calc(100vw - 32px));
}
.share-report .share-report-lead,
.share-report .share-report-made {
  margin: 0 0 14px;
  line-height: 1.5;
}
.share-report .share-report-made {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.share-report > label.dialog-check {
  align-items: flex-start;
  margin-bottom: 10px;
}
.share-report > label.dialog-check input {
  margin-top: 2px;
  flex: none;
}
.share-report .dialog-check small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.share-report .dialog-check:has(input:disabled),
.share-report .dialog-check:has(input:disabled) small {
  color: var(--disabled);
}
.share-report .share-report-never {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.share-report .share-report-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
}
.share-report .share-report-link input {
  flex: 1;
  min-width: 0;
  height: 32px;
  font:
    12px ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}
.share-report .share-report-open,
.share-report button.icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: inherit;
}
.share-report h3 {
  margin: 18px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.share-report-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
}
.share-report-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
}
.share-report-links li:first-child {
  border-top: 0;
}
.share-report-links li > span {
  flex: 1;
  min-width: 0;
}
.share-report-links li small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.share-report .share-report-status {
  min-height: 1em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.share-report .share-report-status:empty {
  margin: 0;
  min-height: 0;
}
.native-chrome {
  container: native-chrome / inline-size;
}
.documentbar {
  container: documentbar / inline-size;
}
@container documentbar (max-width: 820px) {
  .drive-upload-split > button > span,
  .document-actions .check-label {
    display: none;
  }
  .document-actions {
    gap: 4px;
  }
}
@media (max-width: 600px) {
  .documentbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    row-gap: 6px;
  }
}
@container documentbar (max-width: 600px) {
  .document-actions {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
  }
  #editor-header-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
  }
  #editor-header-controls > select {
    min-width: 0;
  }
}
.pdf-editor {
  container: pdf-editor / inline-size;
}
.pdf-editor .toolbar > .native-tool,
.pdf-editor .toolbar > .native-menu {
  flex-shrink: 0;
}
@container pdf-editor (max-width: 900px) {
  .pdf-editor .toolbar button:has(svg) > span:not(.chevron) {
    display: none;
  }
  .pdf-editor .toolbar {
    gap: 2px;
  }
  .pdf-editor .toolbar .native-tool {
    min-width: 30px;
  }
}
svg.atlas-mark,
svg.atlas-drive-icon {
  zoom: var(--icon-scale, 1);
}
.atlas-drive-library,
.atlas-drive-sidebar,
.local-browser {
  --icon-scale: calc(0.9 * var(--nav-scale, 1));
}
.atlas-drive-library .atlas-drive-art,
.local-browser .atlas-drive-art {
  zoom: var(--nav-scale, 1);
}
.sheet-grid,
.text-body,
.markdown-preview {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}
.paper {
  font-family: Arial, sans-serif;
}
.page-footnotes {
  font-family: Georgia;
}
.rich-content,
.page-header,
.page-footer,
.rich-toc,
.graphics-center {
  font-family: inherit;
}
.pdf-text-layer,
.pdf-form-widgets {
  font-family: Arial, sans-serif;
  color: #202124;
}
.document-identity strong,
.atlas-settings h2,
.atlas-settings h3,
.dialog h2,
.atlas-ai-head strong,
.atlas-drive-library h1,
.atlas-drive-library h2,
.atlas-drive-auth h1,
.atlas-drive-main h1,
.atlas-drive-main h2,
.atlas-quiz h1,
.atlas-quiz h2,
.replay-head h2,
.replay-intro h3,
.replay-flags h3 {
  font-family: var(--font-heading, inherit);
}
.rich-content :is(h1, h2, h3, h4, h5, h6),
.markdown-preview :is(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
  color: inherit;
}
.markdown-preview :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 600;
  margin: 1em 0 0.5em;
}
.markdown-preview h1 {
  font-size: 2em;
}
.markdown-preview h2 {
  font-size: 1.5em;
}
.markdown-preview h3 {
  font-size: 1.25em;
}
.markdown-preview h4 {
  font-size: 1.1em;
}
@keyframes atlas-rise {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes atlas-fade {
  from {
    opacity: 0;
  }
}
@keyframes atlas-settle {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@keyframes atlas-toast {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}
@keyframes atlas-glide {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}
.pdf-selection-bar,
.pdf-text-strip,
.pdf-object-bar,
.pdf-note-popover,
.pdf-scan-banner {
  animation: atlas-fade var(--motion-fast) var(--ease-out);
}
html[data-drive-cover] :is(.menu-popup, .dialog, .scrim, .command-book, .toast) {
  animation-play-state: paused;
}
.model-dimension-labels button:active:not(:disabled) {
  transform: translate(-50%, -50%);
}
.menu-popup > button,
.tab,
.doc-template {
  position: relative;
  isolation: isolate;
}
.menu-popup > button::before,
.tab::before,
.doc-template::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);
}
.menu-popup > button:hover:not(:disabled)::before,
.tab:hover::before,
.doc-template:hover::before,
.menu-popup > button:focus-visible::before,
.doc-template:focus-visible::before {
  opacity: 1;
  transition: opacity var(--motion-fill) var(--ease-fill);
}
.tab.selected::before,
.menu-popup > button[aria-pressed=true]::before {
  display: none;
}
.editor-toolbar .native-menu .menu-trigger:has(svg) > span {
  display: none;
}
.tabs.reordering > .tab:not(.dragging) {
  transition: transform var(--motion-base) var(--ease-out);
}
.tab.dragging {
  z-index: 2;
  cursor: grabbing;
  background: var(--bg);
  box-shadow: 0 1px 6px #0003;
}
.tabs.reordering .tab-indicator {
  visibility: hidden;
}
.tab {
  user-select: none;
}
@container atlas-ai-workspace (max-width: 760px) {
  .atlas-ai-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(100%, 360px);
    z-index: 30;
    box-shadow: -12px 0 30px rgb(0 0 0 / 0.25);
  }
}
.atlas-form-body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas, #ebebeb);
  color: var(--fg);
  font: 15px/1.5 var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}
.atlas-form-page {
  box-sizing: border-box;
  padding: 16px 16px 40px;
  color: var(--fg);
  font: 15px/1.5 var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
}
.atlas-form-page *,
.atlas-form-page *::before,
.atlas-form-page *::after {
  box-sizing: border-box;
}
.atlas-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.atlas-form-card {
  min-width: 0;
  margin: 0;
  padding: 22px 24px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--radius, 1));
}
.atlas-form-head {
  border-top: 10px solid var(--accent);
}
.atlas-form-card h1 {
  margin: 0 0 10px;
  font: 400 30px/1.2 var(--font-heading, var(--font-ui));
  overflow-wrap: anywhere;
}
.atlas-form-card h2 {
  margin: 0 0 4px;
  font: 500 20px/1.3 var(--font-ui);
  overflow-wrap: anywhere;
}
.atlas-form-card p {
  margin: 0;
  overflow-wrap: anywhere;
}
.atlas-form-card p + p {
  margin-top: 8px;
}
.atlas-form-meta {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.atlas-form-meta + .atlas-form-meta {
  margin-top: 4px !important;
  padding-top: 0;
  border-top: 0;
}
.atlas-form-meta a,
.atlas-form-links a {
  color: var(--fg);
}
.atlas-form-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.atlas-form-primary {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 20px;
  border-radius: calc(6px * var(--radius, 1));
  background: var(--accent);
  color: var(--accent-fg) !important;
  font-weight: 600;
  text-decoration: none;
}
.atlas-form-heading h2 {
  font-size: 18px;
}
.atlas-form-q legend {
  float: left;
  width: 100%;
  padding: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.atlas-form-q legend + * {
  clear: both;
}
.atlas-form-req {
  margin-left: 4px;
}
.atlas-form-help {
  margin: 6px 0 0 !important;
  color: var(--muted);
  font-size: 13px;
}
.atlas-form-text {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 15px/1.4 var(--font-ui);
}
.atlas-form-short {
  width: 50%;
  min-width: 200px;
}
textarea.atlas-form-text {
  min-height: 36px;
  resize: vertical;
}
.atlas-form-text:focus {
  outline: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
}
.atlas-form-text::placeholder {
  color: var(--muted);
  opacity: 1;
}
.atlas-form-text:disabled,
.atlas-form-select:disabled {
  color: var(--fg);
  opacity: 1;
}
.atlas-form-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 15px;
}
.atlas-form-choice > label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.atlas-form-choice input[type=radio],
.atlas-form-choice input[type=checkbox],
.atlas-form-scale input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.atlas-form-other .atlas-form-text {
  flex: 1;
  margin: 0;
}
.atlas-form-select {
  margin-top: 14px;
  min-width: 200px;
  max-width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: calc(4px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  font: 15px var(--font-ui);
}
.atlas-form-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-top: 14px;
  font-size: 14px;
}
.atlas-form-scale label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.atlas-form-end {
  padding-bottom: 1px;
}
.atlas-form-invalid {
  border-left: 3px solid var(--danger, #c5221f);
}
.atlas-form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px !important;
  color: var(--fg);
  font-size: 14px;
}
.atlas-form-error::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger, #c5221f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.atlas-form-problem {
  padding: 12px 18px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger, #c5221f);
  border-radius: calc(10px * var(--radius, 1));
  font-size: 14px;
}
.atlas-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.atlas-form-submit {
  height: 38px;
  padding: 0 24px;
  border: 0;
  border-radius: calc(6px * var(--radius, 1));
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 15px var(--font-ui);
  cursor: pointer;
}
.atlas-form-clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: 14px var(--font-ui);
  text-decoration: underline;
  cursor: pointer;
}
.atlas-form-answered {
  max-width: none;
}
.atlas-form-footer {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}
.atlas-form-footer a {
  color: var(--muted);
}
@media (max-width: 520px) {
  .atlas-form-card {
    padding: 18px 16px;
  }
  .atlas-form-card h1 {
    font-size: 24px;
  }
  .atlas-form-short {
    width: 100%;
  }
}
.form-editor {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--canvas);
}
.form-editor .native-chrome {
  flex: none;
  background: var(--bg);
}
.form-editor .form-send {
  flex: none;
  margin-left: auto;
  height: 28px;
  padding: 0 16px;
  border: 0;
  border-radius: calc(6px * var(--radius, 1));
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 13px var(--font-ui);
}
.form-editor .form-send:disabled {
  background: var(--selection);
  color: var(--disabled);
}
.form-tabs {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 2px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.form-tabs [role=tab] {
  padding: 9px 16px 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font: 500 13px var(--font-ui);
}
.form-tabs [role=tab][aria-selected=true] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.form-badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--selection);
  color: var(--fg);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.form-banner {
  flex: none;
  padding: 8px 16px;
  background: var(--panel);
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}
.form-canvas {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 16px 56px;
}
.form-column {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-card {
  position: relative;
  padding: 18px 24px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--radius, 1));
}
.form-card.question,
.form-heading-card {
  cursor: default;
}
.form-card.selected {
  box-shadow: inset 5px 0 0 var(--accent);
}
.form-head {
  border-top: 8px solid var(--accent);
}
.form-card h2 {
  margin: 0 0 4px;
  font: 600 15px var(--font-ui);
}
.form-input {
  display: block;
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 14px/1.4 var(--font-ui);
  resize: none;
}
.form-input:focus {
  outline: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
}
.form-input::placeholder {
  color: var(--muted);
  opacity: 1;
}
textarea.form-input {
  min-height: 0;
  overflow: hidden;
}
.form-input[readonly] {
  border-bottom-color: transparent;
}
.form-title-input {
  font-size: 26px;
  line-height: 1.25;
}
.form-small {
  margin-top: 6px;
  font-size: 13px;
}
.form-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.form-question-input {
  flex: 1;
  padding: 12px;
  background: var(--soft);
  font-size: 15px;
  border-radius: calc(4px * var(--radius, 1)) calc(4px * var(--radius, 1)) 0 0;
}
.form-question-input:focus {
  padding-bottom: 11px;
}
.form-top select {
  flex: none;
  min-width: 190px;
  height: 44px;
}
.form-drag {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  line-height: 0;
  cursor: grab;
}
.form-options {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.form-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
}
.form-option .form-input {
  flex: 1;
}
.form-option .icon-button {
  color: var(--muted);
}
.form-dot,
.form-box {
  flex: none;
  width: 17px;
  height: 17px;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
}
.form-box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
.form-number {
  flex: none;
  width: 17px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.form-other,
.form-add {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}
.form-text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  cursor: pointer;
}
.form-text-button:disabled {
  color: var(--disabled);
}
.form-scale-edit {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: start;
  align-items: center;
  gap: 10px 12px;
  margin-top: 14px;
  font-size: 14px;
}
.form-scale-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(360px, 100%);
}
.form-scale-label > span {
  width: 18px;
  color: var(--muted);
  text-align: right;
}
.form-preview-title,
.form-preview-heading {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.form-preview-heading {
  font-size: 18px;
  font-weight: 500;
}
.form-preview-help {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
}
.form-preview-line {
  width: 50%;
  margin-top: 14px;
  padding-bottom: 6px;
  border-bottom: 1px dotted var(--line);
  color: var(--muted);
  font-size: 13px;
}
.form-preview-line.wide {
  width: 75%;
}
.form-preview-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 14px;
}
.form-preview-option .form-dot,
.form-preview-option .form-box,
.form-scale-preview .form-dot {
  border-color: var(--line);
}
.form-scale-preview {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 12px;
  font-size: 13px;
}
.form-scale-n {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.form-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.form-foot .divider {
  width: 1px;
  height: 24px;
  margin: 0 10px;
  background: var(--line);
}
.form-required {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.form-local {
  padding: 30px 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.form-responses {
  padding-bottom: 16px;
}
.form-req {
  margin-left: 2px;
}
.form-responses-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-responses-top h2 {
  flex: 1;
  margin: 0;
  font: 400 24px var(--font-ui);
}
.form-sheet-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--bg);
  color: var(--fg);
  font: 500 13px var(--font-ui);
}
.form-sheet-button:disabled {
  color: var(--disabled);
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
}
.form-note {
  margin: 6px 0 0 26px;
  color: var(--muted);
  font-size: 13px;
}
.form-segment {
  display: inline-flex;
  align-self: center;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
}
.form-segment button {
  padding: 6px 18px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 13px var(--font-ui);
}
.form-segment button[aria-pressed=true] {
  background: var(--selection);
  color: var(--fg);
}
.form-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-count {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.form-bars {
  display: grid;
  grid-template-columns: minmax(120px, 32%) 1fr auto;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
}
.form-bar-label {
  overflow-wrap: anywhere;
}
.form-bar {
  height: 20px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 3px;
}
.form-bar > span {
  display: block;
  height: 100%;
  background: color-mix(in srgb, var(--fg) 58%, var(--bg));
}
.form-bar-count {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.form-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.form-list li {
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--soft);
  border-radius: calc(4px * var(--radius, 1));
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.form-more {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.form-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.form-when {
  flex: 1;
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}
.form-editor .atlas-form-page {
  padding: 0;
}
.form-answered .atlas-form {
  max-width: 760px;
}
.form-back {
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 14px;
}
.form-setting {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.form-card h2 + .form-setting {
  border-top: 0;
}
.form-setting input[type=checkbox] {
  margin-top: 3px;
}
.form-setting strong {
  display: block;
  font-weight: 500;
}
.form-setting-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.form-setting-block {
  display: block;
}
.form-setting-block textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  margin-top: 6px;
  padding: 8px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: calc(4px * var(--radius, 1));
  font: 14px var(--font-ui);
}

/*
 * Atlas Drive — one design for the website and the desktop app. Colours
 * come only from the palette tokens:
 * --bg --fg --chrome --panel --canvas --line --muted --hover --selection.
 */
: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));
  /* Red text (late or missing grades, a low quiz timer, errors): darker on
     light pages, lighter on dark ones, so it reads at 4.5:1 or better. */
  --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;
}
/* Drive's own focus ring; the editor has its own rules (writing surfaces,
   grids and canvases show only the caret and selection, never a box). */
.atlas-drive-root
  :is(button, [tabindex], input):not(
    :where(.atlas-cloud-editor *)
  ):focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}
.atlas-drive-icon {
  flex: none;
  display: block;
}
.atlas-drive-spacer {
  flex: 1;
}
/* File artwork tones; identical fractions to ART_TONES in icons.ts. */
.atlas-drive-art {
  flex: none;
  display: block;
  overflow: visible;
}
.atlas-drive-art-page {
  fill: color-mix(in srgb, var(--fg) 6%, var(--bg));
  stroke: color-mix(in srgb, var(--fg) 42%, var(--bg));
}
.atlas-drive-art-fold {
  fill: color-mix(in srgb, var(--fg) 18%, var(--bg));
  stroke: color-mix(in srgb, var(--fg) 42%, var(--bg));
}
.atlas-drive-art-glyph {
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 90%, var(--bg));
}
.atlas-drive-art-dot {
  fill: color-mix(in srgb, var(--fg) 90%, var(--bg));
}
.atlas-drive-art-back {
  fill: color-mix(in srgb, var(--fg) 34%, var(--bg));
}
.atlas-drive-art-front {
  fill: color-mix(in srgb, var(--fg) 21%, var(--bg));
}
.atlas-drive-art-lip {
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 42%, var(--bg));
}

/* ── Top bar (website only; the desktop tab bar sits in the same 44px band) ── */
.atlas-drive-topbar {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 0;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.atlas-drive-topbar-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;
}
.atlas-drive-topbar-brand svg {
  width: 24px;
  height: 20px;
  fill: currentColor;
}
.atlas-drive-topbar a.atlas-drive-topbar-link,
.atlas-drive-topbar .atlas-drive-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: calc(7px * var(--radius, 1));
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  transition:
    background var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
}
.atlas-drive-topbar a.atlas-drive-topbar-link:hover,
.atlas-drive-topbar .atlas-drive-topbar-link:hover {
  background: var(--atlas-drive-soft);
  color: var(--fg);
}
.atlas-drive-avatar {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--fg);
}
.atlas-drive-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atlas-drive-avatar.atlas-drive-avatar-xs {
  width: 18px;
  height: 18px;
  font-size: 9px;
  margin: 0 -0.5px;
}
.atlas-drive-root .atlas-drive-item.atlas-drive-account {
  height: 34px;
}

/* ── Body ── */
.atlas-drive-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

/* ── Sidebar ── */
.atlas-drive-sidebar {
  width: 236px;
  flex: none;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  min-height: 0;
  background: var(--chrome);
  border-right: 1px solid var(--line);
}
.atlas-drive-sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 10px 10px;
  scrollbar-width: none;
}
.atlas-drive-sidebar-scroll::-webkit-scrollbar {
  display: none;
}
.atlas-drive-root .atlas-drive-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px 0 12px;
  margin: 0 0 10px 2px;
  border-radius: calc(9px * var(--radius, 1));
  background: var(--accent, var(--fg));
  color: var(--accent-fg, var(--bg));
  font-weight: 600;
  font-size: 13px;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--bg) 25%, transparent) inset,
    0 6px 16px -8px rgb(0 0 0 / 0.5);
  transition:
    transform var(--motion-fast) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out);
}
.atlas-drive-root .atlas-drive-new:hover:not(:disabled) {
  background: var(--fg);
  opacity: 0.9;
}
.atlas-drive-root .atlas-drive-new:active:not(:disabled) {
  transform: scale(0.97);
}
.atlas-drive-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.atlas-drive-indicator {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  border-radius: calc(7px * var(--radius, 1));
  background: var(--selection);
  opacity: 0;
  pointer-events: none;
  /* Moves and stretches on transform only (no height animation). */
  transform-origin: top;
  transform: translateY(var(--atlas-drive-y, 0))
    scaleY(var(--atlas-drive-scale, 1));
  transition:
    transform var(--motion-base) var(--ease-move),
    opacity var(--motion-base) var(--ease-out);
}
.atlas-drive-indicator.atlas-drive-visible {
  opacity: 1;
}
.atlas-drive-indicator.atlas-drive-instant {
  transition: none;
}
.atlas-drive-label {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 10px 10px 0;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.atlas-drive-row {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
}
.atlas-drive-root .atlas-drive-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border-radius: calc(7px * var(--radius, 1));
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  transition: background var(--motion-fast) var(--ease-out);
}
.atlas-drive-root .atlas-drive-item:hover:not(:disabled) {
  background: var(--atlas-drive-soft);
}
.atlas-drive-root .atlas-drive-item[aria-current="page"],
.atlas-drive-root .atlas-drive-item[aria-current="page"]:hover {
  background: transparent;
  font-weight: 500;
}
.atlas-drive-nav:not(.atlas-drive-has-indicator)
  .atlas-drive-item[aria-current="page"] {
  background: var(--selection);
}
.atlas-drive-item .atlas-drive-icon {
  width: 17px;
  height: 17px;
  opacity: 0.82;
}
.atlas-drive-item[aria-current="page"] .atlas-drive-icon {
  opacity: 1;
}
.atlas-drive-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-drive-root .atlas-drive-item.atlas-drive-sub {
  padding-left: 37px;
  gap: 9px;
  font-size: 12.5px;
}
.atlas-drive-monogram {
  width: 17px;
  height: 17px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: calc(5px * var(--radius, 1));
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 650;
}
.atlas-drive-item.atlas-drive-quiet {
  color: var(--muted);
}
.atlas-drive-root .atlas-drive-row-action {
  position: absolute;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: calc(6px * var(--radius, 1));
  color: var(--muted);
  opacity: 0;
  transition:
    opacity var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}
.atlas-drive-row:hover .atlas-drive-row-action,
.atlas-drive-row:focus-within .atlas-drive-row-action {
  opacity: 1;
}
.atlas-drive-root .atlas-drive-row-action:hover:not(:disabled) {
  background: var(--hover);
  color: var(--fg);
}
.atlas-drive-sidebar-foot {
  flex: none;
  padding: 10px 10px 10px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.atlas-drive-storage {
  padding: 4px 10px 10px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.atlas-drive-meter {
  height: 4px;
  margin: 0 0 7px;
  border-radius: calc(4px * var(--radius, 1));
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 12%, var(--chrome));
}
.atlas-drive-meter > i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--accent, var(--fg));
  transform-origin: left center;
  animation: atlas-drive-meter var(--motion-slow) var(--ease-out) both;
}
.atlas-drive-note {
  padding: 2px 10px 6px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Main ── */
.atlas-drive-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}
.atlas-drive-toolbar {
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 16px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-fast) var(--ease-out);
}
.atlas-drive-main.atlas-drive-scrolled .atlas-drive-toolbar {
  border-bottom-color: var(--line);
}
.atlas-drive-crumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 2px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.atlas-drive-root .atlas-drive-crumb {
  /* A block of text, not flex, so a long name ends in an ellipsis. */
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  height: 32px;
  line-height: 32px;
  white-space: nowrap;
  padding: 0 8px;
  border-radius: calc(7px * var(--radius, 1));
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  transition:
    background var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
}
.atlas-drive-root .atlas-drive-crumb:hover:not(:disabled) {
  background: var(--atlas-drive-soft);
  color: var(--fg);
}
.atlas-drive-root .atlas-drive-crumb:last-child {
  color: var(--fg);
}
.atlas-drive-crumb-sep {
  width: 14px;
  height: 14px;
  color: var(--muted);
  opacity: 0.7;
  flex: none;
}
.atlas-drive-root .atlas-drive-nav-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: calc(7px * var(--radius, 1));
  color: var(--muted);
}
.atlas-drive-root .atlas-drive-nav-arrow:hover:not(:disabled) {
  background: var(--atlas-drive-soft);
  color: var(--fg);
}
.atlas-drive-root .atlas-drive-nav-arrow:disabled {
  opacity: 0.35;
}
.atlas-drive-root .atlas-drive-search {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  width: min(280px, 32vw);
  height: 32px;
  padding: 0 8px 0 10px;
  gap: 8px;
  border-radius: calc(8px * var(--radius, 1));
  border: 1px solid var(--line);
  background: var(--atlas-drive-raised);
  color: var(--muted);
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}
.atlas-drive-search:focus-within {
  border-color: color-mix(in srgb, var(--fg) 45%, var(--bg));
  background: var(--bg);
  width: min(340px, 38vw);
}
.atlas-drive-search .atlas-drive-icon {
  width: 15px;
  height: 15px;
}
.atlas-drive-root .atlas-drive-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}
.atlas-drive-root .atlas-drive-search input:focus-visible {
  outline: none;
}
.atlas-drive-search input::placeholder {
  color: var(--muted);
}
.atlas-drive-search input::-webkit-search-cancel-button {
  display: none;
}
.atlas-drive-kbd {
  flex: none;
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: calc(4px * var(--radius, 1));
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.4;
}
.atlas-drive-search:focus-within .atlas-drive-kbd {
  opacity: 0;
}
.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);
}
/* A disabled blue button is a grey button, as Docs draws it. */
.atlas-drive-root .atlas-drive-btn.atlas-drive-primary:disabled {
  background: var(--hover);
  color: var(--disabled);
  border-color: transparent;
}
.atlas-drive-btn .atlas-drive-icon {
  width: 15px;
  height: 15px;
}
.atlas-drive-root .atlas-drive-btn.atlas-drive-square {
  width: 32px;
  padding: 0;
  justify-content: center;
}
.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-segment {
  position: relative;
  display: inline-flex;
  height: 32px;
  padding: 2px;
  border-radius: calc(8px * var(--radius, 1));
  border: 1px solid var(--line);
  isolation: isolate;
}
.atlas-drive-segment-thumb {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: 30px;
  border-radius: calc(6px * var(--radius, 1));
  background: var(--selection);
  z-index: -1;
  transition: transform var(--motion-base) var(--ease-move);
}
.atlas-drive-segment[data-value="list"] .atlas-drive-segment-thumb {
  transform: translateX(30px);
}
.atlas-drive-root .atlas-drive-segment button {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: calc(6px * var(--radius, 1));
  color: var(--muted);
  transition: color var(--motion-fast) var(--ease-out);
}
.atlas-drive-root .atlas-drive-segment button[aria-pressed="true"] {
  color: var(--fg);
}
.atlas-drive-segment .atlas-drive-icon {
  width: 15px;
  height: 15px;
}

.atlas-drive-content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 16px 28px;
  outline: none;
}
/* Box selection (B04): drawn while dragging over empty space. */
.atlas-drive-marquee {
  position: absolute;
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent);
  background: color-mix(in srgb, var(--selection) 55%, transparent);
  border-radius: 2px;
  pointer-events: none;
}
/* What a group drag shows under the pointer. */
.atlas-drive-drag-count {
  position: fixed;
  top: -100px;
  left: -100px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fg, #1f1f1f);
  color: var(--bg, #fff);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.atlas-drive-section-title {
  margin: 14px 8px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* Grid */
.atlas-drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(124px * var(--nav-scale, 1)), 1fr));
  gap: 4px;
  align-content: start;
}
.atlas-drive-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 11px;
  border-radius: calc(11px * var(--radius, 1));
  border: 1px solid transparent;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  transition:
    background var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}
.atlas-drive-card:hover {
  background: var(--atlas-drive-soft);
}
.atlas-drive-card[aria-selected="true"] {
  background: var(--selection);
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
}
.atlas-drive-card:focus-visible {
  border-color: var(--fg);
}
.atlas-drive-card .atlas-drive-art {
  width: 60px;
  height: 60px;
  transition: transform var(--motion-base) var(--ease-out);
}
.atlas-drive-card:hover .atlas-drive-art {
  transform: translateY(-2px);
}
.atlas-drive-card:active .atlas-drive-art {
  transform: scale(0.96);
}
.atlas-drive-card-name {
  width: 100%;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atlas-drive-card-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.atlas-drive-star {
  position: absolute;
  top: 50px;
  left: calc(50% + 15px);
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  fill: var(--bg);
  background: var(--fg);
  box-shadow: 0 0 0 2px var(--bg);
}
/* Card overlay button: the whole card is one hit target. */
.atlas-drive-card .atlas-drive-card-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  border-radius: inherit;
  white-space: normal;
}
.atlas-drive-list-row .atlas-drive-card-open {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: calc(6px * var(--radius, 1));
}
.atlas-drive-card .atlas-drive-card-open:focus-visible,
.atlas-drive-list-row .atlas-drive-card-open:focus-visible {
  outline: none;
}
.atlas-drive-card:has(.atlas-drive-card-open:focus-visible),
.atlas-drive-list-row:has(.atlas-drive-card-open:focus-visible) {
  border-color: var(--fg);
}

.atlas-drive-root .atlas-drive-card-more {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: calc(7px * var(--radius, 1));
  color: var(--muted);
  opacity: 0;
  transition:
    opacity var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}
.atlas-drive-card:hover .atlas-drive-card-more,
.atlas-drive-card:focus-within .atlas-drive-card-more,
.atlas-drive-card[aria-selected="true"] .atlas-drive-card-more {
  opacity: 1;
}
.atlas-drive-root .atlas-drive-card-more:hover:not(:disabled) {
  background: var(--hover);
  color: var(--fg);
}
.atlas-drive-drop-target {
  background: var(--selection) !important;
  border-color: var(--fg) !important;
}
/* Places without a border (sidebar items, crumbs) draw the ring the border
   gives a folder card, so a lit place doesn't look like "you are here". */
.atlas-drive-item.atlas-drive-drop-target,
.atlas-drive-crumb.atlas-drive-drop-target {
  box-shadow: inset 0 0 0 1px var(--fg);
}

/* List */
.atlas-drive-list {
  display: flex;
  flex-direction: column;
}
.atlas-drive-list-head,
.atlas-drive-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 110px 34px;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}
.atlas-drive-list-head {
  height: 30px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.atlas-drive-list-row {
  height: 40px;
  border-radius: calc(8px * var(--radius, 1));
  border: 1px solid transparent;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background var(--motion-fast) var(--ease-out);
}
.atlas-drive-list-row:hover {
  background: var(--atlas-drive-soft);
}
.atlas-drive-list-row[aria-selected="true"] {
  background: var(--selection);
}
.atlas-drive-list-row:focus-visible {
  border-color: var(--fg);
}
.atlas-drive-list-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.atlas-drive-list-name .atlas-drive-art {
  width: 28px;
  height: 28px;
  flex: none;
}
.atlas-drive-list-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}
.atlas-drive-list-cell {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.atlas-drive-list-row .atlas-drive-card-more {
  position: static;
  opacity: 0;
}
.atlas-drive-list-row:hover .atlas-drive-card-more,
.atlas-drive-list-row:focus-within .atlas-drive-card-more,
.atlas-drive-list-row[aria-selected="true"] .atlas-drive-card-more {
  opacity: 1;
}

/* Shared drive cards */
.atlas-drive-org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  padding: 6px 4px;
}
.atlas-drive-root .atlas-drive-org {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 150px;
  padding: 16px;
  border-radius: calc(12px * var(--radius, 1));
  border: 1px solid var(--line);
  background: var(--atlas-drive-raised);
  white-space: normal;
  text-align: left;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    transform var(--motion-base) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}
.atlas-drive-root .atlas-drive-org:hover:not(:disabled) {
  background: var(--atlas-drive-raised);
  border-color: color-mix(in srgb, var(--fg) 35%, var(--bg));
  transform: translateY(-2px);
}
.atlas-drive-org .atlas-drive-art {
  width: 52px;
  height: 52px;
  margin: -4px 0 8px -4px;
}
.atlas-drive-org strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.atlas-drive-org small {
  font-size: 11.5px;
  color: var(--muted);
}
.atlas-drive-root .atlas-drive-org.atlas-drive-org-new {
  border-style: dashed;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: transparent;
}
.atlas-drive-org-new .atlas-drive-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  color: var(--muted);
}

/* Empty, loading and drop states */
.atlas-drive-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 72px;
  gap: 6px;
}
.atlas-drive-empty .atlas-drive-art {
  width: 84px;
  height: 84px;
  margin-bottom: 10px;
  opacity: 0.85;
}
.atlas-drive-empty h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.atlas-drive-empty p {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.5;
}
.atlas-drive-empty-actions {
  display: flex;
  gap: 8px;
}
.atlas-drive-skeleton-card {
  height: 128px;
  border-radius: calc(11px * var(--radius, 1));
  background:
    linear-gradient(
        100deg,
        transparent 30%,
        color-mix(in srgb, var(--fg) 5%, transparent) 50%,
        transparent 70%
      )
      0 0 / 300% 100%,
    color-mix(in srgb, var(--fg) 3.5%, var(--bg));
  animation: atlas-drive-shimmer 1.4s linear infinite;
}
.atlas-drive-drop {
  position: absolute;
  inset: 10px;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  border-radius: calc(14px * var(--radius, 1));
  border: 1.5px dashed var(--fg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(2px);
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
}
.atlas-drive-drop.atlas-drive-visible {
  opacity: 1;
  transform: none;
}
.atlas-drive-drop span {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Status bar */
.atlas-drive-gone {
  display: none !important;
}
.atlas-drive-status {
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px 0 24px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}
.atlas-drive-status-path {
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  text-align: left;
}

/* Popover menus */
.atlas-drive-menu {
  position: fixed;
  z-index: 10000;
  min-width: 212px;
  max-width: 300px;
  padding: 5px;
  border-radius: calc(11px * var(--radius, 1));
  border: 1px solid var(--line);
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  box-shadow: var(--atlas-drive-shadow, 0 18px 50px -12px rgb(0 0 0 / 0.45));
  font: 13px/1.4
    var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
  transform-origin: var(--atlas-drive-origin, top left);
  animation: atlas-drive-pop var(--motion-fast) var(--ease-out) both;
  outline: none;
}
.atlas-drive-menu.atlas-drive-closing {
  animation: atlas-drive-pop-out var(--motion-fast) var(--ease-in) both;
}
.atlas-drive-root .atlas-drive-menu-item,
.atlas-drive-menu .atlas-drive-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: calc(7px * var(--radius, 1));
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: default;
}
.atlas-drive-menu .atlas-drive-menu-item:hover,
.atlas-drive-menu .atlas-drive-menu-item:focus-visible,
.atlas-drive-menu .atlas-drive-menu-item.atlas-drive-active {
  background: var(--selection);
  outline: none;
}
.atlas-drive-menu .atlas-drive-menu-item:disabled {
  color: var(--disabled);
  --fg: var(--disabled);
  --muted: var(--disabled);
}
.atlas-drive-menu .atlas-drive-menu-item .atlas-drive-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}
.atlas-drive-menu .atlas-drive-menu-item.atlas-drive-danger {
  color: inherit;
}
.atlas-drive-check-space {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
}
.atlas-drive-menu-hint {
  margin-left: auto;
  padding-left: 18px;
  font-size: 11px;
  color: var(--muted);
}
.atlas-drive-menu-sep {
  height: 1px;
  margin: 5px 6px;
  background: var(--line);
}
.atlas-drive-menu-title {
  padding: 7px 10px 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Narrow enough to stay within the sidebar on desktop, where cloud content is
   a separate native view that a menu cannot overlap. */
.atlas-drive-new-menu {
  width: 224px;
  min-width: 0;
  max-width: none;
  padding: 6px;
}
.atlas-drive-new-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.atlas-drive-menu .atlas-drive-new-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  height: 74px;
  padding: 8px 2px 6px;
  border: 0;
  border-radius: calc(9px * var(--radius, 1));
  background: none;
  color: inherit;
  font: inherit;
  font-size: 11.5px;
  cursor: default;
}
.atlas-drive-menu .atlas-drive-new-tile:hover,
.atlas-drive-menu .atlas-drive-new-tile:focus-visible,
.atlas-drive-menu .atlas-drive-new-tile.atlas-drive-active {
  background: var(--selection);
  outline: none;
}
.atlas-drive-new-tile span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: -0.005em;
}
.atlas-drive-new-tile .atlas-drive-art {
  width: 40px;
  height: 40px;
  transition: transform var(--motion-base) var(--ease-out);
}
.atlas-drive-new-tile:hover .atlas-drive-art {
  transform: translateY(-2px);
}

/* Dialogs */
.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);
}
/* A dialog's stacked lists are as wide as its text fields: the editor's
   global select max-width (150 px) cut "Their own copy of a file (below)"
   and the like. Lists inside a row (sharing, members) keep their widths. */
.atlas-drive-dialog form > select {
  max-width: 100%;
}
/* Checkboxes in dialogs: a box beside its words, not a text field. */
.atlas-drive-dialog .atlas-drive-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--fg);
}
.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;
}
/* A save that failed: the dialog stays open with what was typed. */
.atlas-drive-dialog-error {
  margin: 14px 0 0;
  padding: 8px 10px;
  border-radius: calc(6px * var(--radius, 1));
  background: color-mix(in srgb, #d33b3b 12%, var(--bg));
  color: var(--fg);
  font-size: 12.5px;
}
.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;
}
/* The go-live rename note's list (old → new). */
.atlas-drive-renames {
  max-height: 240px;
  overflow: auto;
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
}

/* Toasts */
.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;
}

/* Motion: short enough that content is never waiting on it. */
.atlas-drive-enter > * {
  animation: atlas-drive-rise var(--motion-base) var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 8) * 12ms);
}
.atlas-drive-fade-in {
  animation: atlas-drive-fade var(--motion-base) var(--ease-out) both;
}
@keyframes atlas-drive-rise {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}
@keyframes atlas-drive-fade {
  from {
    opacity: 0;
  }
}
@keyframes atlas-drive-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes atlas-drive-pop-out {
  to {
    opacity: 0;
  }
}
@keyframes atlas-drive-dialog {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@keyframes atlas-drive-meter {
  from {
    transform: scaleX(0);
  }
}
@keyframes atlas-drive-shimmer {
  to {
    background-position:
      -150% 0,
      0 0;
  }
}

/* A tablet-sized window has room for the full search/actions row, but not
 * for that row and a course/folder path side by side. Keep the path reachable
 * above the controls rather than shrinking it underneath the search field. */
@media (min-width: 761px) and (max-width: 1100px) {
  .atlas-drive-toolbar {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .atlas-drive-crumbs {
    flex: 1 0 100%;
  }
  .atlas-drive-toolbar > .atlas-drive-spacer {
    display: none;
  }
  .atlas-drive-root .atlas-drive-toolbar > .atlas-drive-search {
    flex: 1;
    min-width: 80px;
    max-width: 280px;
  }
}

/* Narrow windows */
@media (max-width: 760px) {
  .atlas-drive-sidebar {
    width: 64px;
  }
  .atlas-drive-sidebar-scroll {
    padding: 12px 8px;
  }
  .atlas-drive-root .atlas-drive-new {
    width: 46px;
    padding: 0;
    justify-content: center;
    margin-left: 1px;
  }
  .atlas-drive-new span,
  .atlas-drive-item-text,
  .atlas-drive-label,
  .atlas-drive-item.atlas-drive-sub,
  .atlas-drive-storage,
  .atlas-drive-note,
  .atlas-drive-row-action {
    display: none !important;
  }
  .atlas-drive-root .atlas-drive-item {
    justify-content: center;
    padding: 0;
  }
  .atlas-drive-toolbar {
    padding: 0 10px;
    gap: 6px;
  }
  .atlas-drive-crumbs {
    font-size: 15px;
  }
  .atlas-drive-root .atlas-drive-crumb:not(:last-child),
  .atlas-drive-crumb-sep {
    display: none;
  }
  .atlas-drive-root .atlas-drive-search {
    width: 40px;
    padding: 0 11px;
  }
  .atlas-drive-root .atlas-drive-search:focus-within {
    width: min(220px, 50vw);
  }
  .atlas-drive-kbd,
  .atlas-drive-btn-label {
    display: none;
  }
  .atlas-drive-root .atlas-drive-btn {
    padding: 0 9px;
  }
  .atlas-drive-content {
    padding: 4px 8px 20px;
  }
  .atlas-drive-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }
  .atlas-drive-list-head,
  .atlas-drive-list-row {
    grid-template-columns: minmax(0, 1fr) 34px;
  }
  .atlas-drive-list-cell {
    display: none;
  }
  .atlas-drive-status-hint {
    display: none;
  }
  .atlas-drive-card-more {
    opacity: 1 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-drive-root *,
  .atlas-drive-root *::before,
  .atlas-drive-root *::after,
  .atlas-drive-menu,
  .atlas-drive-menu *,
  .atlas-drive-dialog,
  .atlas-drive-dialog::backdrop,
  .atlas-drive-toast {
    animation: none !important;
    transition: none !important;
  }
}

/* The hover fill: the ordinary hover colour at once, then the accent's soft
   colour fills the item slowly (--motion-fill); leaving is quicker. Tint
   (opacity) everywhere; a wipe from the left on quiz answers and the primary
   button. Selected, active and pressed items keep their own colour. */
.atlas-drive-card,
.atlas-drive-list-row,
.atlas-drive-root .atlas-drive-item,
.atlas-drive-root .atlas-drive-crumb,
.atlas-drive-root .atlas-drive-btn,
.atlas-drive-menu .atlas-drive-menu-item,
.atlas-drive-new-tile,
.atlas-drive-root .atlas-drive-org,
.atlas-quiz-options label {
  position: relative;
  isolation: isolate;
}
.atlas-drive-card::before,
.atlas-drive-list-row::before,
.atlas-drive-root .atlas-drive-item::before,
.atlas-drive-root .atlas-drive-crumb::before,
.atlas-drive-root .atlas-drive-btn::before,
.atlas-drive-menu .atlas-drive-menu-item::before,
.atlas-drive-new-tile::before,
.atlas-drive-root .atlas-drive-org::before,
.atlas-quiz-options label::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-card:hover::before,
.atlas-drive-list-row:hover::before,
.atlas-drive-root .atlas-drive-item:hover::before,
.atlas-drive-root .atlas-drive-crumb:hover::before,
.atlas-drive-root .atlas-drive-btn:hover:not(:disabled)::before,
.atlas-drive-menu .atlas-drive-menu-item:hover::before,
.atlas-drive-new-tile:hover::before,
.atlas-drive-root .atlas-drive-org:hover::before,
.atlas-drive-card:focus-visible::before,
.atlas-drive-list-row:focus-visible::before,
.atlas-drive-root .atlas-drive-item:focus-visible::before,
.atlas-drive-root .atlas-drive-btn:focus-visible::before,
.atlas-drive-menu .atlas-drive-menu-item:focus-visible::before {
  opacity: 1;
  transition: opacity var(--motion-fill) var(--ease-fill);
}
.atlas-quiz-options label::before,
.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-quiz-options label:hover::before,
.atlas-quiz-options label:focus-within::before,
.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-card[aria-selected="true"]::before,
.atlas-drive-list-row[aria-selected="true"]::before,
.atlas-drive-root .atlas-drive-item.atlas-drive-active::before,
.atlas-drive-root .atlas-drive-item[aria-current="page"]::before,
.atlas-drive-menu .atlas-drive-menu-item.atlas-drive-active::before,
.atlas-drive-root .atlas-drive-btn[aria-pressed="true"]::before {
  display: none;
}

/* ── Classes ── */
.atlas-drive-class-loading,
.atlas-drive-muted {
  color: var(--muted);
}
.atlas-drive-class-loading {
  padding: 24px 8px;
}
.atlas-drive-class {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 4px 24px;
  max-width: 980px;
}
.atlas-drive-class-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.atlas-drive-class-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.atlas-drive-class-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.atlas-drive-root .atlas-drive-class-code {
  padding: 8px 12px;
  border-radius: calc(10px * var(--radius, 1));
  border: 1px solid var(--line);
  background: var(--atlas-drive-raised);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.atlas-drive-class-code strong {
  margin-left: 6px;
  color: var(--fg);
  font-size: 16px;
  letter-spacing: 0.08em;
}
/* A class: its pages in a list beside the panel (Canvas-style), a row of
   tabs when the window is narrow. */
.atlas-drive-class {
  width: 100%;
  container-type: inline-size;
}
.atlas-drive-class-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.atlas-drive-class-tabs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: sticky;
  top: 0;
}
.atlas-drive-root .atlas-drive-class-tabs button {
  padding: 6px 10px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 calc(6px * var(--radius, 1)) calc(6px * var(--radius, 1)) 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.atlas-drive-root .atlas-drive-class-tabs button:hover {
  background: var(--atlas-drive-soft);
  color: var(--fg);
}
.atlas-drive-root .atlas-drive-class-tabs button[aria-selected="true"] {
  color: var(--fg);
  border-left-color: var(--fg);
  font-weight: 600;
}
.atlas-drive-root .atlas-drive-class-tabs button.hidden-tab {
  opacity: 0.55;
}
@container (max-width: 640px) {
  .atlas-drive-class-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .atlas-drive-class-tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .atlas-drive-root .atlas-drive-class-tabs button {
    flex: none;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }
  .atlas-drive-root .atlas-drive-class-tabs button[aria-selected="true"] {
    border-bottom-color: var(--fg);
  }
}
.atlas-drive-class-panel {
  min-width: 0;
}
.atlas-drive-class-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px dashed var(--fg);
  border-radius: calc(8px * var(--radius, 1));
}
.atlas-drive-class-preview span {
  flex: 1;
  color: var(--muted);
}
.atlas-drive-class-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.atlas-drive-class-soon {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
}
.atlas-drive-class-soon h3 {
  margin: 0 0 6px;
}
.atlas-drive-class-soon ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.atlas-drive-class-soon li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}
.atlas-drive-class-soon small {
  color: var(--muted);
}
/* Text-like buttons that open something (module items, files, due dates). */
.atlas-drive-root .atlas-drive-module-open {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.atlas-drive-root .atlas-drive-module-open:hover {
  text-decoration: underline;
}
.atlas-drive-module {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  overflow: hidden;
}
.atlas-drive-module.unpublished {
  border-style: dashed;
}
.atlas-drive-module header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--atlas-drive-soft);
}
.atlas-drive-module header h3 {
  margin: 0;
  font-size: 14px;
}
.atlas-drive-module ul,
.atlas-drive-class-files {
  list-style: none;
  margin: 0;
  padding: 0;
}
.atlas-drive-module-item,
.atlas-drive-class-files li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
}
.atlas-drive-module-item {
  padding-left: calc(10px + var(--indent, 0) * 22px);
}
.atlas-drive-class-files li {
  padding-left: 4px;
}
.atlas-drive-module-item small,
.atlas-drive-class-files small {
  color: var(--muted);
}
.atlas-drive-module-item.header strong {
  font-size: 13px;
}
.atlas-drive-module ul > li.atlas-drive-muted {
  padding: 8px 10px;
}
.atlas-drive-class-compose-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.atlas-drive-class-compose-options .atlas-drive-checkbox {
  margin: 0;
}
.atlas-drive-class-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.atlas-drive-class-inline input {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
}
/* The gradebook: compact cells that open the grade, a column's group under
   its title, late/missing/excused marks. */
.atlas-drive-gradebook th small {
  color: var(--muted);
  font-weight: 400;
}
.atlas-drive-gradebook-group {
  display: block;
}
.atlas-drive-root .atlas-drive-gradebook-cell {
  min-width: 3em;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: calc(6px * var(--radius, 1));
  background: none;
  color: var(--fg);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.atlas-drive-root .atlas-drive-gradebook-cell:hover {
  border-color: var(--line);
}
.atlas-drive-root .atlas-drive-gradebook-cell.missing,
.atlas-drive-root .atlas-drive-gradebook-cell.late {
  color: var(--atlas-drive-red-text);
}
.atlas-drive-root .atlas-drive-gradebook-cell.final {
  font-weight: 600;
}
.atlas-drive-root .atlas-drive-gradebook-cell.overridden {
  text-decoration: underline dotted;
}
.atlas-drive-whatif {
  width: 6em;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
}
.atlas-drive-class-total {
  font-size: 15px;
}
/* The grader: students on the left, the work in the middle, the grade,
   rubric and comments on the right; stacked when narrow. */
.atlas-drive-grader {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: calc(100vh - 120px);
  min-height: 480px;
  container-type: inline-size;
}
.atlas-drive-grader-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.atlas-drive-grader-head h2 {
  margin: 0;
  font-size: 17px;
}
.atlas-drive-grader-head select {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
}
.atlas-drive-grader-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  gap: 12px;
}
.atlas-drive-grader-students,
.atlas-drive-grader-panel,
.atlas-drive-grader-work {
  min-height: 0;
  overflow: auto;
}
.atlas-drive-grader-students {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.atlas-drive-root .atlas-drive-grader-students button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: calc(6px * var(--radius, 1));
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.atlas-drive-root .atlas-drive-grader-students button > span:first-child {
  flex: 1 0 100%;
  /* A long name without spaces ends in an ellipsis (whole name as tooltip), as in the gradebook. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-drive-root .atlas-drive-grader-students button:hover,
.atlas-drive-root .atlas-drive-grader-students button[aria-current="true"] {
  background: var(--atlas-drive-soft);
}
.atlas-drive-grader-work {
  display: flex;
  flex-direction: column;
}
.atlas-drive-grader-frame {
  flex: 1;
  width: 100%;
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--bg);
}
.atlas-drive-grader-tries.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.atlas-drive-grader-panel section {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.atlas-drive-grader-panel h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.atlas-drive-grader-grade {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.atlas-drive-grader-grade input[type="number"],
.atlas-drive-grader-panel textarea,
.atlas-drive-grader-panel fieldset input {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
}
.atlas-drive-grader-grade input[type="number"] {
  width: 6em;
}
.atlas-drive-grader-panel textarea,
.atlas-drive-grader-panel fieldset input {
  width: 100%;
  box-sizing: border-box;
}
.atlas-drive-grader-panel fieldset {
  margin: 0 0 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
}
.atlas-drive-grader-panel legend small,
.atlas-drive-grader-ratings small {
  color: var(--muted);
}
.atlas-drive-grader-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 6px;
}
.atlas-drive-root .atlas-drive-grader-ratings button {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 7em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: none;
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.atlas-drive-root .atlas-drive-grader-ratings button small {
  font-weight: 400;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.atlas-drive-root .atlas-drive-grader-ratings button[aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--atlas-drive-soft);
}
.atlas-drive-grader-library {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.atlas-drive-grader-library .atlas-drive-chip {
  cursor: pointer;
  background: none;
  font: inherit;
  font-size: 12px;
}
@container (max-width: 900px) {
  .atlas-drive-grader-body {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }
  .atlas-drive-grader-students {
    flex-direction: row;
    overflow-x: auto;
  }
}
.atlas-drive-group-move {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}
.atlas-drive-group-move summary {
  cursor: pointer;
  color: var(--muted);
}
.atlas-drive-group-move label {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}
.atlas-drive-group-move select {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
}
.atlas-drive-pairing {
  margin: 12px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* Attendance: a mark per student (P L A E), or the seating chart. */
.atlas-drive-roll li {
  align-items: center;
}
.atlas-drive-root .atlas-drive-attendance-mark {
  width: 30px;
  height: 28px;
  /* The letter in the middle (Drive's buttons inherit the row's left alignment). */
  text-align: center;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.atlas-drive-root .atlas-drive-attendance-mark[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
}
.atlas-drive-root .atlas-drive-attendance-mark.present[aria-pressed="true"],
.atlas-drive-seat.present {
  /* White on it reads at 5.3:1 (plan 71: #2e8b57 was 4.25:1). */
  background: #237a4b;
}
.atlas-drive-root .atlas-drive-attendance-mark.late[aria-pressed="true"],
.atlas-drive-seat.late {
  /* 5.2:1 with white (#c98a12 was 2.95:1). */
  background: #946200;
}
.atlas-drive-root .atlas-drive-attendance-mark.absent[aria-pressed="true"],
.atlas-drive-seat.absent {
  background: #d33b3b;
}
.atlas-drive-root .atlas-drive-attendance-mark.excused[aria-pressed="true"],
.atlas-drive-seat.excused {
  background: #5b6b8c;
}
.atlas-drive-seats {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 8px;
  max-width: 820px;
}
.atlas-drive-root .atlas-drive-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: none;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.atlas-drive-root .atlas-drive-seat.present,
.atlas-drive-root .atlas-drive-seat.late,
.atlas-drive-root .atlas-drive-seat.absent,
.atlas-drive-root .atlas-drive-seat.excused {
  color: #fff;
  border-color: transparent;
}
.atlas-drive-seat.empty {
  border-style: dashed;
  cursor: default;
}
/* Faded only on an unmarked seat: white faded on a status colour drops under 4.5:1. */
.atlas-drive-seat:not(.present, .late, .absent, .excused) small {
  opacity: 0.85;
}
.atlas-drive-segment-lite {
  display: inline-flex;
  gap: 2px;
}
.atlas-drive-root .atlas-drive-segment-lite [aria-pressed="true"] {
  background: var(--atlas-drive-soft);
  font-weight: 600;
}
/* A discussion: the prompt, then posts with their replies nested. */
.atlas-drive-discussion h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.atlas-drive-discussion-thread,
.atlas-drive-discussion-thread ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.atlas-drive-discussion-thread ul {
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.atlas-drive-discussion-entry {
  padding: 10px 0 4px;
}
.atlas-drive-discussion-entry > header {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.atlas-drive-discussion-entry > header time {
  color: var(--muted);
  font-size: 12px;
}
.atlas-drive-discussion-entry > p {
  margin: 4px 0;
  white-space: pre-wrap;
  line-height: 1.5;
}
.atlas-drive-discussion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.atlas-drive-discussion-actions .atlas-drive-btn {
  padding: 2px 8px;
  font-size: 12px;
}
.atlas-drive-root .atlas-drive-discussion-actions [aria-pressed="true"] {
  color: var(--atlas-drive-red-text);
}
/* Class notifications, locks and the to-do list. */
.atlas-drive-bell {
  position: relative;
}
.atlas-drive-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill, 999px);
  background: #d33b3b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.atlas-drive-module.locked header,
.atlas-drive-module-item.locked {
  opacity: 0.6;
}
.atlas-drive-module-item .atlas-drive-chip {
  margin-left: auto;
}
.atlas-drive-module-item .atlas-drive-chip + .atlas-drive-btn {
  margin-left: 0;
}
.atlas-drive-root .atlas-drive-calendar-day button.event {
  background: none;
  border: 1px solid var(--line);
}
.atlas-drive-class-todo {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--radius, 1));
  max-width: 980px;
}
.atlas-drive-class-todo h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.atlas-drive-class-todo .atlas-drive-chip {
  margin-left: auto;
}
/* Text a student turned in, as the teacher reads it. */
.atlas-drive-class-work {
  max-height: 50vh;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  white-space: pre-wrap;
  line-height: 1.55;
}
.atlas-drive-class-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.atlas-drive-class-comments {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--line);
}
.atlas-drive-class-comments li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
}
.atlas-drive-class-reply {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.atlas-drive-class-reply input,
.atlas-drive-class-people select {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
}
.atlas-drive-class-reply input {
  flex: 1;
  min-width: 0;
}
.atlas-drive-calendar-head h3 {
  margin: 0;
  min-width: 10em;
  text-align: center;
}
.atlas-drive-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.atlas-drive-calendar-name {
  padding: 4px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.atlas-drive-calendar-day {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  padding: 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.atlas-drive-calendar-day > span {
  font-size: 12px;
  color: var(--muted);
}
.atlas-drive-calendar-day.other > span {
  opacity: 0.45;
}
.atlas-drive-calendar-day.today > span {
  color: var(--fg);
  font-weight: 700;
}
.atlas-drive-root .atlas-drive-calendar-day button {
  padding: 1px 5px;
  border: 0;
  border-radius: calc(4px * var(--radius, 1));
  background: var(--atlas-drive-soft);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.atlas-drive-class-panel h3 {
  margin: 14px 0 6px;
  font-size: 14px;
}
.atlas-drive-class-assignments,
.atlas-drive-class-people {
  list-style: none;
  margin: 0;
  padding: 0;
}
.atlas-drive-class-assignments li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.atlas-drive-class-assignment {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.atlas-drive-class-assignment small {
  color: var(--muted);
}
.atlas-drive-class-assignment p {
  margin: 4px 0 0;
  color: var(--muted);
}
.atlas-drive-class-people li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 4px;
}
.atlas-drive-class-people small {
  color: var(--muted);
}
.atlas-drive-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.atlas-drive-chip.done {
  color: var(--fg);
}
/* A Materials draft (hidden from students): a small quiet tag. */
.atlas-drive-chip.atlas-drive-draft,
.atlas-drive-list-name span.atlas-drive-draft {
  flex: none;
  padding: 0 7px;
  font-size: 11px;
  line-height: 17px;
  overflow: visible;
}
.atlas-drive-card-meta .atlas-drive-draft {
  margin-right: 2px;
}
.atlas-drive-chip.late {
  color: var(--fg);
  border-color: color-mix(in srgb, #d33b3b 40%, var(--line));
}
.atlas-drive-class-table-wrap {
  overflow-x: auto;
}
.atlas-drive-class-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.atlas-drive-class-table th,
.atlas-drive-class-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.atlas-drive-class-table thead th {
  color: var(--muted);
  font-weight: 500;
}
.atlas-drive-class-table tbody th {
  font-weight: 600;
  /* Long names wrap between words so the actions stay on screen. */
  white-space: normal;
  min-width: 120px;
  max-width: 220px;
  overflow-wrap: break-word;
}
/* The gradebook scrolls sideways: names stay whole and in view, and
   assignment titles wrap within their column so more columns fit. */
.atlas-drive-gradebook tbody th,
.atlas-drive-gradebook thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 160px;
  white-space: nowrap;
  background: var(--bg);
}
/* A long name without spaces ends in an ellipsis inside its column (the
   whole name is the cell's tooltip) instead of running over the scores. */
.atlas-drive-gradebook tbody th {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atlas-drive-gradebook thead th:not(:first-child) {
  min-width: 96px;
  max-width: 170px;
  white-space: normal;
  vertical-align: bottom;
}
/* A table cell (flex would take it out of the row and break its lines). */
.atlas-drive-class-table td.atlas-drive-class-actions {
  text-align: right;
  white-space: nowrap;
}
.atlas-drive-class-actions > * {
  vertical-align: middle;
}
.atlas-drive-class-actions > * + * {
  margin-left: 6px;
}
.atlas-drive-class-flags {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--r-pill, 999px);
  background: #e2b100;
  color: #000;
  font-weight: 700;
  font-size: 12px;
}
.atlas-drive-class-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--atlas-drive-raised, var(--bg));
  font-size: 13px;
}
.atlas-drive-class-strip .atlas-drive-spacer {
  flex: 1;
}
/* Group work (plan 14, round 2): the student's group under an assignment,
   the group in the class strip, group and member rows in Review work, and
   the Grader's group line and Whole group checkbox. */
.atlas-drive-class-assignment .atlas-drive-class-group {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.atlas-drive-class-strip .atlas-drive-class-group-name {
  color: var(--muted);
}
.atlas-drive-class-table tr.atlas-drive-class-group-row > th,
.atlas-drive-class-table tr.atlas-drive-class-group-row > td {
  background: var(--atlas-drive-soft);
  border-top: 1px solid var(--line);
}
.atlas-drive-class-table tr.atlas-drive-class-group-row th small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted);
}
.atlas-drive-class-table tr.atlas-drive-class-member-row > th {
  padding-left: 28px;
  font-weight: 400;
}
.atlas-drive-grader-whole {
  margin: 0 0 8px;
}
.atlas-drive-grader-students button small.atlas-drive-class-group {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.atlas-drive-class-comments {
  flex-basis: 100%;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
  color: var(--muted);
}
@media (max-width: 640px) {
  .atlas-drive-class-assignments li {
    flex-wrap: wrap;
  }
}

/* ── Quizzes ── */
.atlas-drive-root.atlas-quiz {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  padding: 0 16px 48px;
}
.atlas-quiz-loading {
  padding: 32px 0;
  text-align: center;
}
.atlas-quiz-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.atlas-quiz-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.atlas-quiz-head .atlas-drive-spacer {
  flex: 1;
}
.atlas-quiz-timer {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.atlas-quiz-timer.low {
  color: var(--atlas-drive-red-text);
  font-weight: 600;
}
.atlas-quiz-instructions,
.atlas-quiz-notice,
.atlas-quiz-questions {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.atlas-quiz-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.atlas-quiz-questions {
  padding: 0 0 0 22px;
}
.atlas-quiz-questions > li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.atlas-quiz-prompt {
  margin: 0 0 10px;
  white-space: pre-wrap;
  line-height: 1.5;
}
.atlas-quiz-prompt small {
  color: var(--muted);
  margin-left: 6px;
}
.atlas-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* A math answer, typed in MathLive. */
.atlas-quiz-math math-field {
  display: block;
  width: 100%;
  max-width: 520px;
  min-height: 40px;
  font-size: 20px;
  padding: 4px 9px;
  border-radius: calc(6px * var(--radius, 1));
  border: 1px solid var(--line);
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
}
.atlas-quiz-options label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.atlas-quiz-questions input:not([type]),
.atlas-quiz-questions input[inputmode],
.atlas-quiz-questions textarea {
  width: 100%;
  max-width: 520px;
  padding: 7px 9px;
  border-radius: calc(6px * var(--radius, 1));
  border: 1px solid var(--line);
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
}
.atlas-quiz-questions textarea {
  max-width: 100%;
  resize: vertical;
}
.atlas-quiz-saved {
  display: block;
  min-height: 1em;
  margin-top: 4px;
  color: var(--muted);
}
.atlas-quiz-done {
  max-width: 520px;
  margin: 72px auto;
  text-align: center;
}
.atlas-quiz-score {
  font-size: 20px;
  font-weight: 600;
}
/* Retakes (plan 14): the attempts line and Try again beside Back on the done page. */
.atlas-quiz-tries {
  margin: 4px 0 16px;
}
.atlas-quiz-done-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
/* New quiz's Write with Atlas AI (plan 14): the Questions label with its
   button, and the panel above the Questions box. */
.atlas-quiz-label-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.atlas-quiz-label-row label {
  margin-bottom: 6px;
}
.atlas-quiz-ai {
  display: grid;
  gap: 8px;
  margin: 2px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  background: var(--atlas-drive-raised, var(--bg));
}
.atlas-drive-dialog .atlas-quiz-ai p {
  margin: 0;
}
.atlas-quiz-ai-files {
  max-height: 12rem;
  overflow: auto;
  margin: 0;
  padding: 2px 10px 6px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
}
.atlas-quiz-ai-files legend {
  padding: 0 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.atlas-quiz-ai-files h4 {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.atlas-drive-dialog .atlas-quiz-ai-files .atlas-drive-checkbox {
  margin: 4px 0;
}
.atlas-quiz-ai-files small {
  margin-left: 6px;
  color: var(--muted);
}
.atlas-quiz-ai-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.atlas-quiz-ai-row > span {
  display: block;
}
.atlas-quiz-ai-row > span.grow {
  flex: 1 1 200px;
}
.atlas-drive-dialog .atlas-quiz-ai-row label {
  margin: 0 0 4px;
}
.atlas-quiz-ai-row select {
  width: 90px;
}
.atlas-drive-dialog .atlas-quiz-ai-status,
.atlas-drive-dialog .atlas-quiz-ai-limit {
  font-size: 12px;
  color: var(--muted);
}
.atlas-drive-dialog .atlas-quiz-ai-status:empty {
  display: none;
}
/* The log's Attempt 1 · Attempt 2 switch. */
.atlas-quiz-attempt-switch {
  margin: 0 0 10px;
}
/* Where a question's answer is (a source: line), under it in item analysis and results. */
.atlas-quiz-source {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  white-space: normal;
}
/* In a student's results, under "Right answer:" (its own row, never beside the points). */
.atlas-quiz-answers li .atlas-quiz-source {
  grid-column: 1 / -1;
}
/* Flags wrap within their column (the table's cells don't wrap otherwise). */
.atlas-drive-class-table td.atlas-quiz-flags {
  white-space: normal;
  min-width: 180px;
}
.atlas-quiz-flags .atlas-drive-class-flags {
  display: inline-block;
  margin: 2px 4px 2px 0;
  font-weight: 600;
}
.atlas-quiz-log,
.atlas-quiz-answers {
  max-height: 260px;
  overflow: auto;
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
  font-size: 13px;
}
.atlas-quiz-log li {
  position: relative;
  padding: 3px 0 3px 13px;
}
.atlas-quiz-log time {
  display: inline-block;
  min-width: 44px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.atlas-quiz-log .atlas-quiz-log-away,
.atlas-quiz-log .atlas-quiz-log-paste,
.atlas-quiz-log .atlas-quiz-log-device {
  color: var(--fg);
  font-weight: 600;
}
/* The flag is a yellow dot; the words stay readable on every theme. */
.atlas-quiz-log .atlas-quiz-log-away::before,
.atlas-quiz-log .atlas-quiz-log-paste::before,
.atlas-quiz-log .atlas-quiz-log-device::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(3px + 0.7em - 3.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b58900;
}
.atlas-quiz-answers li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.atlas-quiz-answers span {
  color: var(--muted);
}
.atlas-quiz-answers small,
.atlas-quiz-answers .atlas-quiz-essay-points {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}
/* The teacher's points for an essay answer. */
.atlas-drive-dialog .atlas-quiz-essay-points {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.atlas-drive-dialog .atlas-quiz-essay-points input {
  width: 64px;
  height: 30px;
}
.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;
}
.atlas-drive-class-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.atlas-drive-class-people li .atlas-drive-btn {
  margin-left: auto;
}
.atlas-drive-class-assignments li .atlas-drive-square {
  flex-shrink: 0;
}
.atlas-drive-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.atlas-drive-class-compose {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin: 12px 0;
}
.atlas-drive-class-compose textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: calc(10px * var(--radius, 1));
  border: 1px solid var(--line);
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
  resize: vertical;
}
.atlas-drive-class-stream {
  list-style: none;
  margin: 0;
  padding: 0;
}
.atlas-drive-class-stream > li {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.atlas-drive-class-stream header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.atlas-drive-class-stream time {
  color: var(--muted);
  font-size: 12px;
}
.atlas-drive-class-stream header .atlas-drive-btn {
  margin-left: auto;
}
.atlas-drive-class-stream p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  line-height: 1.5;
}
.atlas-drive-class-pending {
  margin-top: 6px;
  color: var(--fg);
}
/* Quiz question kinds: a passage above, matching and ordering, a dropdown
   in the sentence, one question at a time, and results after turning in. */
.atlas-quiz-passage {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--line);
  color: var(--fg);
  white-space: pre-wrap;
  line-height: 1.55;
}
.atlas-quiz-prompt select,
.atlas-quiz-match select {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--radius, 1));
  background: var(--atlas-drive-raised, var(--bg));
  color: var(--fg);
  font: inherit;
}
.atlas-quiz-match {
  display: grid;
  gap: 6px;
}
.atlas-quiz-match label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.atlas-quiz-match label > span {
  min-width: 8em;
}
.atlas-quiz-order {
  margin: 0;
  padding-left: 22px;
}
.atlas-quiz-order li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.atlas-quiz-order li > span {
  flex: 1;
}
.atlas-quiz-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 760px;
  margin: 12px auto 0;
}
.atlas-quiz-results {
  text-align: left;
  margin: 18px 0;
}
.atlas-quiz-answers li span.atlas-drive-muted {
  display: block;
}
.atlas-quiz-right {
  font-weight: 700;
}
/* Lockdown and screen recording: the start page, the Recording sign, the
   hidden questions while sharing is off, and the teacher's player. */
.atlas-quiz-gate {
  max-width: 560px;
  margin: 56px auto;
}
.atlas-quiz-gate h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
}
.atlas-quiz-gate h2 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 600;
}
.atlas-quiz-gate ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.55;
}
.atlas-quiz-gate li + li {
  margin-top: 6px;
}
.atlas-quiz-gate .atlas-quiz-instructions {
  white-space: pre-wrap;
}
.atlas-quiz-gate-error:empty {
  display: none;
}
.atlas-quiz-gate-error {
  color: var(--atlas-drive-red-text);
  line-height: 1.45;
}
.atlas-quiz-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.atlas-quiz-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-pill, 999px);
  background: #d33b3b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.atlas-quiz-rec.off {
  background: var(--muted);
  color: var(--bg);
}
.atlas-quiz-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: atlas-rec-pulse 1.4s ease-in-out infinite;
}
.atlas-quiz-rec.off .atlas-quiz-rec-dot {
  animation: none;
}
@keyframes atlas-rec-pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-quiz-rec-dot {
    animation: none;
  }
}
.atlas-quiz-paused {
  max-width: 760px;
  margin: 16px auto;
  padding: 14px 16px;
  border: 1px solid #d33b3b;
  border-radius: calc(8px * var(--radius, 1));
}
.atlas-quiz-paused p {
  margin: 0 0 10px;
}
.atlas-quiz-hidden {
  filter: blur(9px);
  user-select: none;
}
.atlas-quiz-log-expand {
  display: inline;
  margin-left: 6px;
}
.atlas-quiz-log-expand summary {
  display: inline;
  cursor: pointer;
  color: var(--muted);
}
.atlas-quiz-log-expand p {
  margin: 4px 0 0;
  color: var(--muted);
}
.atlas-quiz-player {
  margin: 12px 0 0;
}
.atlas-quiz-video {
  display: block;
  width: min(880px, 80vw);
  max-width: 100%;
  max-height: 60vh;
  border-radius: calc(8px * var(--radius, 1));
  background: #000;
}
.atlas-quiz-player-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.atlas-drive-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 4px;
  cursor: pointer;
  line-height: 1.4;
}
.atlas-drive-checkbox input[type="checkbox"] {
  margin: 2px 0 0;
}
.atlas-quiz-log-app_switch,
.atlas-quiz-log-screen_share,
.atlas-quiz-log-vm_detected,
.atlas-quiz-log-kiosk_exit,
.atlas-quiz-log-multi_monitor,
.atlas-quiz-log-second_tab,
.atlas-quiz-log-devtools,
.atlas-quiz-log-sleep,
.atlas-quiz-log-screen_recording_stop {
  color: #d33b3b;
}

/* Website-only frame for Atlas Drive. Shared library styles live in drive.css
   (generated from ../desktop/src/drive by `npm run build:cloud`). */
: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);
}
body.drive #app {
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.drive #app > .atlas-drive-root {
  flex: 1;
}
.drive a {
  color: inherit;
}

/* First paint: a quiet outline of the Drive while scripts load. */
.atlas-drive-boot {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* No delay: the first paint never waits on motion. */
  animation: atlas-drive-fade var(--motion-base) var(--ease-out) both;
}
.atlas-drive-boot-top {
  height: 44px;
  flex: none;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.atlas-drive-boot-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.atlas-drive-boot-side {
  width: 236px;
  flex: none;
  background: var(--chrome);
  border-right: 1px solid var(--line);
}
.atlas-drive-boot-main {
  flex: 1;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 4px;
  align-content: start;
}
.embedded-drive .atlas-drive-boot-top,
.embedded-drive .atlas-drive-boot-side,
.editor-boot .atlas-drive-boot-side {
  display: none;
}
.editor-boot .atlas-drive-boot-main {
  display: none;
}
@media (max-width: 760px) {
  .atlas-drive-boot-side {
    width: 64px;
  }
}

/* Editor mode */
.atlas-drive-root.atlas-drive-editor {
  display: flex;
  flex-direction: column;
}
.editor-bar {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 0;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.embedded-drive .editor-bar {
  height: 38px;
  padding-left: 8px;
}
.editor-bar .editor-brand {
  padding-right: 4px;
}
.editor-bar .atlas-drive-topbar-link {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
}
.editor-bar .atlas-drive-topbar-link .atlas-drive-icon {
  width: 15px;
  height: 15px;
}
.editor-name {
  display: none;
}
.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 0 10px;
  height: 24px;
  border-radius: calc(12px * var(--radius, 1));
  font-size: 11.5px;
  color: var(--muted);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}
.save-state::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.save-state[hidden] {
  display: none;
}
/* The words, in their own box: a message too long for the pill ends in an ellipsis (plan 71). */
.save-state-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.save-state[data-state="saved"]::before {
  background: var(--fg);
  opacity: 0.9;
}
.save-state[data-state="busy"]::before {
  animation: atlas-drive-pulse 1s ease-in-out infinite alternate;
}
.save-state[data-state="warn"] {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}
.editor-bar .editor-account {
  padding: 0 4px;
  margin-left: 2px;
}
.read-only {
  font-size: 11.5px;
  color: var(--muted);
  margin-right: 6px;
}
.read-only:empty {
  display: none;
}
.atlas-drive-root .editor-share {
  height: 28px;
  margin-left: 6px;
  padding: 0 11px;
  border-radius: calc(7px * var(--radius, 1));
}
.embedded-drive.editor-mode #back,
.embedded-drive .editor-brand {
  display: none;
}
.editor-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.editor-tools:empty {
  display: none;
}
.editor-work,
#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);
}
.atlas-cloud-editor {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex: 1;
  font-size: 12px;
}
.atlas-cloud-editor .editorhost {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.atlas-cloud-editor .document-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.atlas-cloud-editor #editor-header-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.atlas-cloud-editor .native-project {
  margin: auto;
  text-align: center;
  max-width: 430px;
  padding: 40px;
}
.native-project svg {
  margin: auto;
}
.native-project h2 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.native-project p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.preview-media {
  max-width: calc(100% - 48px);
  max-height: calc(100svh - 160px);
  object-fit: contain;
  margin: 24px auto;
  border-radius: calc(6px * var(--radius, 1));
  box-shadow: 0 12px 40px -18px rgb(0 0 0 / 0.5);
}
.preview-text {
  margin: 0;
  padding: 24px 28px;
  font:
    12.5px/1.6 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre-wrap;
}

/* Sign in, activation and access lock */
.atlas-drive-auth-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--bg);
}
.login-panel {
  width: min(380px, 100%);
  margin: 0 auto;
}
.atlas-drive-auth-mark {
  display: block;
  width: 34px;
  height: 28px;
  margin-bottom: 26px;
}
.atlas-drive-auth-mark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.login-panel h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.login-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
  font-size: 13px;
}
.login-panel label {
  font-size: 12px;
  display: block;
  margin: 16px 0 6px;
  color: var(--muted);
}
.login-panel input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: calc(9px * var(--radius, 1));
  background: color-mix(in srgb, var(--fg) 4%, var(--bg));
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--motion-fast) var(--ease-out);
}
.login-panel input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--fg) 55%, var(--bg));
}
.login-panel .primary,
.login-panel a.primary {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 22px;
  border: 0;
  border-radius: calc(9px * var(--radius, 1));
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  transition:
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}
.login-panel .primary:hover {
  opacity: 0.88;
}
/* Outranks Drive's button reset (drive.css: hover clears backgrounds), so the
   filled button stays filled under the pointer. */
.login-panel .primary:hover:not(:disabled) {
  background: var(--fg);
}
/* Drive draws a button's focus ring inside it, in the text colour, where this
   filled button's own fill would hide it: draw it outside. */
.login-panel .primary:focus-visible:not(:disabled) {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.login-panel .primary:active {
  transform: scale(0.985);
}
.login-panel .primary:disabled {
  background: var(--hover);
  color: var(--disabled);
  border-color: transparent;
}
#login-error:not(:empty),
#access-lock-status:not(:empty) {
  margin: 14px 0 0;
  color: var(--fg);
}
/* The export page's list of files that couldn't be exported. */
.atlas-drive-export-failures {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
  text-align: left;
  overflow-wrap: anywhere;
}
.atlas-drive-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px !important;
  font-size: 12.5px;
}
.atlas-drive-auth-links a,
.atlas-drive-auth-links button {
  color: var(--muted);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  cursor: default;
}
.atlas-drive-auth-links a:hover,
.atlas-drive-auth-links button:hover {
  color: var(--fg);
}
.login-panel > a:not(.primary) {
  font-size: 12.5px;
  color: var(--muted);
}
.access-lock {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  color: var(--fg);
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.access-lock button:not(.primary) {
  margin-top: 10px;
  width: 100%;
  height: 38px;
  border-radius: calc(9px * var(--radius, 1));
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font: inherit;
}

/* Dialog content */
#dialog.atlas-drive-dialog-wide {
  width: min(620px, calc(100vw - 32px));
}
/* Question banks (plan 14 round 2): the list in its dialog, and New quiz's
   Question bank panel (its modes and fields; the panel itself is the Atlas AI
   panel's box). */
#dialog .atlas-quiz-banks {
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius, 1));
  max-height: 22rem;
  overflow: auto;
}
#dialog .atlas-quiz-banks h4 {
  margin: 0;
  padding: 8px 10px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
#dialog .atlas-quiz-banks ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#dialog .atlas-quiz-banks li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}
#dialog .atlas-quiz-banks h4 + ul > li:first-child {
  border-top: 0;
}
#dialog .atlas-quiz-banks ul + h4 {
  border-top: 1px solid var(--line);
}
#dialog .atlas-quiz-banks li > span {
  flex: 1;
  min-width: 0;
}
#dialog .atlas-quiz-banks li strong {
  display: block;
  font-weight: 500;
}
#dialog .atlas-quiz-banks li small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
#dialog .atlas-quiz-banks .atlas-drive-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
#dialog .atlas-quiz-label-row .atlas-quiz-label-tools {
  display: flex;
  gap: 6px;
}
#dialog .atlas-quiz-bank-modes {
  display: flex;
  gap: 4px;
}
#dialog .atlas-quiz-bank-modes .atlas-drive-btn {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  border-color: var(--line);
}
#dialog .atlas-quiz-bank-modes .atlas-drive-btn[aria-pressed="true"] {
  background: var(--atlas-drive-soft);
  font-weight: 600;
}
#dialog .atlas-quiz-ai-row input[type="number"] {
  width: 70px;
}
#dialog .atlas-quiz-ai-row select.wide {
  width: auto;
  min-width: 150px;
}
#dialog .atlas-quiz-ai-row select.full {
  width: 100%;
  max-width: 100%;
}
#dialog .atlas-quiz-bank > p {
  margin: 0;
}
/* How many (only for Some at random) and Name (only for a new bank) hide
   with their attribute: the row's spans are display: block otherwise. */
#dialog .atlas-quiz-bank .atlas-quiz-ai-row > span[hidden],
#dialog .atlas-quiz-bank-count[hidden] {
  display: none;
}
/* Dialogs sit outside the Drive root: buttons keep their icon beside the
   words and the same size as the page's buttons. */
#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;
}
/* New quiz's Write with Atlas AI button (plan 14): outlined, pressed while its panel is open. */
#dialog .atlas-quiz-label-row .atlas-drive-btn {
  height: 28px;
  padding: 0 10px;
  margin-bottom: 4px;
  font-size: 12px;
  border-color: var(--line);
}
#dialog .atlas-quiz-label-row .atlas-drive-btn[aria-expanded="true"] {
  background: var(--atlas-drive-soft);
}
/* A quiz log's Attempt 1 · Attempt 2 switch (plan 14): outlined, the one shown pressed. */
#dialog .atlas-quiz-attempt-switch .atlas-drive-btn {
  border-color: var(--line);
}
#dialog .atlas-quiz-attempt-switch .atlas-drive-btn[aria-pressed="true"] {
  background: var(--atlas-drive-soft);
  font-weight: 600;
}
/* Grading periods (plan 12, round 2): the dialog's rows (name, starts,
   ends, remove) and its ready-made sets. */
#dialog .atlas-drive-periods-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
}
#dialog .atlas-drive-periods-start > span {
  margin-right: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
#dialog .atlas-drive-periods-start .atlas-drive-btn {
  border-color: var(--line);
}
#dialog .atlas-drive-periods {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
#dialog .atlas-drive-periods-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px 32px;
  gap: 8px;
  align-items: center;
}
#dialog .atlas-drive-periods-head {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
#dialog .atlas-drive-periods-row .atlas-drive-btn {
  width: 32px;
  padding: 0;
}
#dialog .atlas-drive-periods-add {
  margin-top: 10px;
}
@media (max-width: 560px) {
  #dialog .atlas-drive-periods-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
  }
  #dialog .atlas-drive-periods-row > :first-child {
    grid-column: 1 / -1;
  }
  #dialog .atlas-drive-periods-head {
    display: none;
  }
}
/* Inbox: subject, a two-line preview, and the date on one line. */
#dialog .atlas-drive-inbox li > button {
  flex: 0 1 auto;
  max-width: 42%;
  text-align: left;
}
#dialog .atlas-drive-inbox li > small:first-of-type {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#dialog .atlas-drive-inbox li > small:last-child {
  flex: none;
  white-space: nowrap;
}
#dialog .atlas-drive-btn.atlas-drive-primary {
  background: var(--accent, var(--fg));
  color: var(--accent-fg, var(--bg));
}
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(420px, 60vh);
  overflow: auto;
  margin: 10px -6px 0;
}
.menu-items button {
  text-align: left;
  height: 34px;
  padding: 0 10px;
  border-radius: calc(8px * var(--radius, 1));
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.menu-items button:hover,
.menu-items button:focus-visible {
  background: var(--selection);
  outline: none;
}
.collaborators,
.organization-members {
  list-style: none;
  margin: 14px 0 4px;
  padding: 0;
  max-height: 260px;
  overflow: auto;
}
.collaborators:empty {
  display: none;
}
.collaborators li,
.organization-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.member-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  font-size: 11px;
  font-weight: 600;
}
.member-role {
  flex: none;
  font-size: 12px;
  color: var(--muted);
}
.member-email {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}
#dialog .organization-member select {
  width: 112px;
  flex: none;
  height: 30px;
  font-size: 12px;
}
#dialog .organization-member .atlas-drive-btn,
#dialog .collaborators .atlas-drive-btn {
  height: 28px;
  font-size: 11.5px;
}
/* Share: add people, roles, general access and the link, like Docs. */
#dialog .member-role-select {
  width: 112px;
  flex: none;
  height: 30px;
  font-size: 12px;
}
#dialog h3 {
  margin: 18px 0 4px;
  font-size: 12px;
  font-weight: 600;
}
.share-add,
.share-general,
.share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
#dialog .share-add input,
#dialog .share-link-row input {
  flex: 1;
  min-width: 0;
}
#dialog .share-add select,
#dialog .share-general select {
  width: auto;
  height: 32px;
  font-size: 12.5px;
}
#dialog .share-general select:first-of-type {
  flex: 1;
}
.share-general-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 6%, var(--bg));
}
.share-general-hint {
  margin: 6px 0 0 38px;
  color: var(--muted);
  font-size: 12px;
}
#dialog .share-link-row .atlas-drive-btn {
  flex: none;
}
#rename-organization {
  margin-bottom: 4px;
}
#member-status:empty,
#share-status:empty {
  display: none;
}
#member-status,
#share-status {
  margin: 12px 0 0;
  color: var(--fg);
}

/* Embedded desktop surfaces own the outer chrome. */
.embedded-drive .atlas-drive-toolbar {
  padding-left: 14px;
}

@keyframes atlas-drive-pulse {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.9;
  }
}
@media (max-width: 760px) {
  .editor-bar .atlas-drive-topbar-link span,
  .read-only {
    display: none;
  }
  .save-state {
    max-width: 140px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.drive *,
  body.drive *::before,
  body.drive *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* The host bar stays a single aligned row even after editor CSS loads. */
.atlas-drive-editor > .editor-bar {
  min-height: 44px;
  height: auto;
  padding: 6px 12px;
  gap: 8px;
  flex-wrap: nowrap;
}
.atlas-drive-editor > .editor-bar .atlas-drive-topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  height: 32px;
  min-width: 32px;
  padding: 6px;
  white-space: nowrap;
  line-height: 1;
  border-radius: calc(5px * var(--radius, 1));
}
.atlas-drive-editor > .editor-bar .editor-icon-action > span {
  display: none;
}
.atlas-drive-editor > .editor-bar .editor-icon-action .atlas-drive-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.atlas-drive-editor > .editor-bar .editor-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 32px;
  margin: 0;
  padding: 0 11px;
  font-size: 12px;
}
/* Make a copy, beside "View only" (plan 28): drawn like Share, without its
   fill; on a narrow screen the symbol alone, with its tooltip. */
.atlas-drive-editor > .editor-bar .editor-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 32px;
  margin: 0;
  padding: 0 11px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .atlas-drive-editor > .editor-bar .editor-copy {
    padding: 0 8px;
  }
  .atlas-drive-editor > .editor-bar .editor-copy > span {
    display: none;
  }
}
/* On a phone a visitor's animal name gives way to its letter (the tooltip
   still says who they are), so Sign in stays in the bar beside Make a copy. */
@media (max-width: 640px) {
  .atlas-drive-editor > .editor-bar .editor-guest > span:last-child {
    display: none;
  }
}
/* Settings (⚙) in a file's bar: an icon, set off from the file's tools. */
.atlas-drive-editor > .editor-bar [data-settings] {
  flex: none;
  height: 32px;
  min-width: 32px;
  padding: 6px;
  margin-left: 3px;
}
/* Settings: the account row, as in the Mac app. */
.atlas-drive-settings-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.atlas-drive-settings-account span {
  font-weight: 600;
}
.atlas-drive-settings-account small {
  flex: 1;
  color: var(--muted);
}
/* The App row's Install is drawn like Manage… beside it (a <button> there reads as plain text). */
.atlas-drive-settings-app .atlas-drive-btn {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.atlas-drive-editor > .editor-bar .save-state {
  min-width: 0;
  flex-shrink: 1;
  margin: 0;
}
.atlas-drive-editor > .editor-bar .atlas-drive-spacer {
  min-width: 0;
}
@media (max-width: 640px) {
  .atlas-drive-editor > .editor-bar {
    gap: 4px;
    padding: 5px 8px;
  }
  .atlas-drive-editor > .editor-bar .save-state {
    max-width: 160px;
  }
  .atlas-drive-editor > .editor-bar .editor-brand {
    display: none;
  }
}
/* The shared document header owns the title; the host bar owns navigation/sync.
   Original-file previews have no document header, so they keep the host title. */
.atlas-drive-editor.has-document-header > .editor-bar .editor-name {
  display: none;
}

/* Who's here (editor bar) and the anonymous visitor's name. */
.editor-people {
  display: flex;
  align-items: center;
}
.editor-person {
  width: 26px;
  height: 26px;
  margin-left: -6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--person, var(--muted));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.editor-person:first-child {
  margin-left: 0;
}
.editor-person.more {
  background: color-mix(in srgb, var(--fg) 12%, var(--bg));
  color: var(--fg);
  font-size: 10px;
}
.editor-guest {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Import a class (plan 41, round 1): New class ▸ Import a class… and its
   steps, in the shared dialog. Theme tokens only, so every theme and light
   or dark works. */
#dialog .atlas-import-offer { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
#dialog .atlas-import-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
#dialog .atlas-import-link svg { flex: none; }
#dialog .atlas-import-drop { display: grid; justify-items: center; gap: 6px; margin: 4px 0 0; padding: 22px 16px; border: 1px dashed color-mix(in srgb, var(--fg) 28%, var(--bg)); border-radius: calc(10px * var(--radius, 1)); text-align: center; }
#dialog .atlas-import-drop.over { background: var(--atlas-drive-soft); border-color: var(--fg); }
#dialog .atlas-import-drop > svg { color: var(--muted); }
#dialog .atlas-import-drop strong { font-size: 13px; font-weight: 600; }
#dialog .atlas-import-drop span { font-size: 12px; color: var(--muted); }
#dialog .atlas-import-drop .atlas-drive-btn { margin-top: 6px; border-color: var(--line); }
#dialog .atlas-import-reading { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
#dialog details:is(.atlas-import-how, .atlas-import-changed, .atlas-import-left) { margin: 12px 0 0; font-size: 12.5px; }
#dialog details:is(.atlas-import-how, .atlas-import-changed, .atlas-import-left) > summary { cursor: pointer; color: var(--fg); font-weight: 500; padding: 4px 0; }
#dialog details:is(.atlas-import-how, .atlas-import-changed, .atlas-import-left) > summary::marker { color: var(--muted); }
#dialog .atlas-import-how dl { margin: 2px 0 0; }
#dialog .atlas-import-how dt { margin: 8px 0 0; font-weight: 600; color: var(--fg); }
#dialog .atlas-import-how dd { margin: 2px 0 0; color: var(--muted); line-height: 1.5; }
#dialog .atlas-import-classes { margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: calc(10px * var(--radius, 1)); }
#dialog .atlas-import-class { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg); cursor: pointer; }
#dialog .atlas-import-class:first-child { border-top: 0; }
#dialog .atlas-import-class strong { display: block; font-weight: 500; }
#dialog .atlas-import-class small { display: block; font-size: 11.5px; color: var(--muted); }
#dialog .atlas-import-fields { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 0 10px; }
#dialog .atlas-import-heading { margin: 16px 0 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
#dialog .atlas-import-kinds { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: calc(10px * var(--radius, 1)); }
#dialog .atlas-import-kind { border-top: 1px solid var(--line); }
#dialog .atlas-import-kind:first-child { border-top: 0; }
#dialog .atlas-import-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; }
#dialog .atlas-import-row > label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--fg); }
#dialog .atlas-import-count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#dialog .atlas-import-expand { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: calc(6px * var(--radius, 1)); background: none; color: var(--muted); }
#dialog .atlas-import-expand:hover { background: var(--atlas-drive-soft); color: var(--fg); }
#dialog .atlas-import-expand[aria-expanded="true"] svg { transform: rotate(90deg); }
#dialog .atlas-import-items { list-style: none; margin: 0; padding: 0 12px 8px 35px; max-height: 168px; overflow: auto; }
#dialog .atlas-import-item > label { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 4px 0; font-size: 12.5px; font-weight: 400; color: var(--fg); }
#dialog .atlas-import-item small { font-size: 11.5px; color: var(--muted); }
#dialog .atlas-import-item.folder > label { font-weight: 500; }
#dialog .atlas-import-item.inside { padding-left: 23px; }
#dialog .atlas-import-notes { margin: 6px 0 12px; padding-left: 18px; color: var(--muted); line-height: 1.55; }
#dialog .atlas-import-notes li { margin: 2px 0; }
#dialog .atlas-import-notes b { color: var(--fg); font-weight: 500; }
#dialog .atlas-import-storage { margin: 12px 0 0; }
#dialog .atlas-drive-dialog-actions.atlas-import-sticky { position: sticky; bottom: -22px; margin: 16px -22px -22px; padding: 12px 22px 22px; background: var(--bg); border-top: 1px solid var(--line); }
#dialog .atlas-import-storage.full { color: var(--atlas-drive-red-text); }
#dialog progress.atlas-import-progress { display: block; width: 100%; height: 6px; margin: 14px 0 8px; border: 0; border-radius: 3px; background: var(--hover); accent-color: var(--fg); appearance: none; overflow: hidden; }
#dialog progress.atlas-import-progress::-webkit-progress-bar { background: var(--hover); }
#dialog progress.atlas-import-progress::-webkit-progress-value { background: var(--fg); }
#dialog progress.atlas-import-progress::-moz-progress-bar { background: var(--fg); }
#dialog .atlas-import-status { font-variant-numeric: tabular-nums; color: var(--fg); }
#dialog .atlas-import-done h2 { display: flex; align-items: center; gap: 8px; }
#dialog .atlas-import-done p.lead { color: var(--fg); }
@media (max-width: 560px) { #dialog .atlas-import-fields { grid-template-columns: 1fr; } }

/* Teacher T3 round 2 (plan 41): outcomes and the Mastery view: the Grades
   view switch (Attendance's List | Seats style), the grid's meter and bold mastered cells, the class average,
   a student's own levels, the Grader's outcome mark, and the Outcomes and
   Rubric… dialogs' rows. Website only (classes are the website's pages). */
.atlas-grades-view {
  flex: none;
}
.atlas-drive-root .atlas-mastery-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.atlas-drive-root .atlas-mastery-cell .atlas-mastery-score {
  min-width: 1.6em;
  text-align: right;
}
.atlas-drive-root .atlas-mastery-cell.mastered .atlas-mastery-score {
  font-weight: 700;
}
.atlas-mastery-meter {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}
.atlas-mastery-meter i {
  display: block;
  width: 4px;
  height: 11px;
  border-radius: 1px;
  background: var(--line);
}
.atlas-mastery-meter i.on {
  background: currentColor;
}
.atlas-drive-mastery thead th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.atlas-mastery-class th, .atlas-mastery-class td {
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.atlas-mastery-class small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}
.atlas-mastery-empty {
  max-width: 560px;
  margin: 26px 0 0;
}
.atlas-mastery-empty p {
  margin: 0 0 12px;
  line-height: 1.5;
  color: var(--muted);
}
.atlas-mastery-mine th small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--muted);
}
.atlas-mastery-mine td.atlas-mastery-level {
  white-space: nowrap;
}
.atlas-mastery-mine td.atlas-mastery-level .mastered {
  font-weight: 700;
}
.atlas-mastery-mine td.atlas-mastery-level .atlas-mastery-meter {
  margin-left: 8px;
  vertical-align: -1px;
}
.atlas-mastery-mine td.atlas-mastery-scores {
  color: var(--muted);
}
.atlas-mastery-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 3px 0 0;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}
.atlas-mastery-tag::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
#dialog .atlas-outcomes {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
#dialog .atlas-outcomes-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 32px;
  gap: 8px;
  align-items: center;
}
#dialog .atlas-outcomes-head {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
#dialog .atlas-outcomes-row .atlas-drive-btn {
  width: 32px;
  padding: 0;
}
#dialog .atlas-outcomes-add {
  margin-top: 10px;
}
#dialog .atlas-outcomes-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
#dialog .atlas-rubric-outcomes {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
#dialog .atlas-rubric-outcomes > strong {
  display: block;
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
}
#dialog .atlas-rubric-outcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 3px 0;
  font-size: 13px;
}
#dialog .atlas-rubric-outcome-row select {
  margin: 0;
}
#dialog .atlas-rubric-outcomes p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 560px) {
  #dialog .atlas-outcomes-row {
    grid-template-columns: minmax(0, 1fr) 32px;
  }
  #dialog .atlas-outcomes-row > input:nth-child(2) {
    grid-column: 1;
  }
  #dialog .atlas-outcomes-head {
    display: none;
  }
  #dialog .atlas-rubric-outcome-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Teacher T3 round 3 (plan 41): anonymous grading. */
.atlas-anonymous-mark { display: inline-flex; flex: none; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.atlas-anonymous-mark .atlas-drive-icon { flex: none; }
.atlas-drive-gradebook th[data-anonymous] > .atlas-drive-icon { display: inline-block; margin: 0 2px 0 4px; vertical-align: -2px; color: var(--muted); }
.atlas-drive-root .atlas-drive-gradebook td.atlas-gradebook-hidden { background: var(--atlas-drive-soft); }
.atlas-anonymous-student { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
/* Graph and spreadsheet answers (plan 14 round 3, spec §1.2, §2.2, §4): the
   grid with its rows of coordinates, the table, and the pictures in results
   and the log (client/quiz-kinds.js). */
.atlas-quiz-graph { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; }
.atlas-quiz-graph-area { flex: 0 1 360px; max-width: 360px; min-width: 0; }
.atlas-quiz-graph-grid { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.atlas-quiz-graph-area .atlas-quiz-graph-grid { width: 100%; touch-action: none; cursor: crosshair; }
.atlas-quiz-graph-line { stroke: var(--line); stroke-width: 1; }
.atlas-quiz-graph-axis { stroke: var(--muted); stroke-width: 1.4; }
.atlas-quiz-graph-frame { fill: none; stroke: var(--line); }
.atlas-quiz-graph-label { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.atlas-quiz-graph-coord { fill: var(--fg); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.atlas-quiz-graph-grid.compact .atlas-quiz-graph-label { font-size: 17px; }
.atlas-quiz-graph-grid.compact .atlas-quiz-graph-coord { font-size: 18px; stroke-width: 5px; }
circle.atlas-quiz-graph-mine { fill: var(--fg); stroke: var(--bg); stroke-width: 2; cursor: grab; }
line.atlas-quiz-graph-mine { stroke: var(--fg); stroke-width: 2; }
circle.atlas-quiz-graph-right { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 3 2; }
line.atlas-quiz-graph-right { stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 6 4; }
.atlas-quiz-graph-side { display: grid; gap: 8px; align-content: start; }
.atlas-quiz-graph-rows { display: grid; gap: 6px; }
.atlas-quiz-graph-row { display: flex; align-items: center; gap: 8px; }
.atlas-quiz-graph-name { min-width: 54px; color: var(--muted); font-size: 12.5px; }
.atlas-quiz-graph-row label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.atlas-quiz-questions .atlas-quiz-graph-row input[inputmode] { width: 64px; padding: 5px 7px; font-variant-numeric: tabular-nums; }
.atlas-quiz-graph-row .atlas-drive-btn.atlas-drive-square { width: 26px; height: 26px; }
.atlas-quiz-graph-side > .atlas-drive-btn { justify-self: start; }
@media (max-width: 640px) { .atlas-quiz-graph-area { flex-basis: 100%; max-width: 100%; } }
.atlas-quiz-sheet-scroll { max-width: 100%; overflow-x: auto; }
.atlas-quiz-sheet-grid { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.atlas-quiz-sheet-grid th, .atlas-quiz-sheet-grid td { border: 1px solid var(--line); height: 28px; padding: 0 8px; text-align: left; white-space: nowrap; }
.atlas-quiz-sheet-grid thead th, .atlas-quiz-sheet-grid tbody th { min-width: 28px; background: var(--atlas-drive-soft); color: var(--muted); font-size: 11.5px; font-weight: 500; text-align: center; }
.atlas-quiz-sheet-grid td { min-width: 96px; background: var(--atlas-drive-raised, var(--bg)); color: var(--fg); }
.atlas-quiz-sheet-grid td.atlas-quiz-sheet-fill { padding: 0; background: var(--bg); }
.atlas-quiz-questions .atlas-quiz-sheet-grid input { display: block; width: 96px; min-width: 0; max-width: none; height: 28px; padding: 0 8px; border: 0; border-radius: 0; background: transparent; color: var(--fg); font: inherit; }
.atlas-quiz-sheet-grid input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.atlas-quiz-answers:has(.atlas-quiz-graph-grid, .atlas-quiz-sheet-picture) { max-height: none; }
.atlas-quiz-pictures { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: flex-start; margin-top: 4px; }
.atlas-quiz-pictures figure { display: grid; gap: 2px; margin: 0; }
.atlas-quiz-pictures figcaption { font-size: 11.5px; color: var(--muted); }
.atlas-quiz-sheet-picture { display: grid; gap: 4px; justify-items: start; margin-top: 4px; }
.atlas-quiz-sheet-picture td.atlas-quiz-sheet-fill { padding: 2px 8px; }
.atlas-quiz-sheet-picture td small { display: block; font-size: 10.5px; line-height: 1.1; color: var(--muted); }
.atlas-quiz-answers .atlas-quiz-sheet-value { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); }
.atlas-quiz-answers .atlas-quiz-mark { display: inline-flex; color: var(--muted); }
.atlas-quiz-answers .atlas-quiz-mark.wrong { color: var(--atlas-drive-red-text); }
.atlas-quiz-answers .atlas-quiz-right-label { margin-top: 4px; }
/* The quiz header spans the column; ‹ Class on one line (D20). */
/* Only the header: widening the questions' list stopped typing in a math field (MathLive) on the page. */
.atlas-quiz-head { width: 100%; box-sizing: border-box; }
.atlas-quiz-head > a { display: inline-flex; align-items: center; gap: 4px; }
/* Recordings (plan 12, round 3): the recorder (a student's Record dialog and
   a grader's Record a comment), and a recording's Play button in the grader,
   comment lists and Your work and comments. The red Recording sign is the
   quiz's .atlas-quiz-rec. */
.atlas-recorder {
  display: grid;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.atlas-recorder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.atlas-recorder-time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.atlas-recorder-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.atlas-recorder-player {
  width: 100%;
}
.atlas-recorder video,
.atlas-recording-video {
  width: 100%;
  max-height: 240px;
  border-radius: 8px;
  background: #000;
}
.atlas-recorder [data-record-kind],
#dialog .atlas-recorder [data-record-kind] {
  border-color: var(--line);
}
.atlas-recorder [data-record-kind][aria-pressed="true"],
#dialog .atlas-recorder [data-record-kind][aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--atlas-drive-soft);
  font-weight: 600;
}
.atlas-recording {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.atlas-recording > .atlas-drive-muted {
  font-variant-numeric: tabular-nums;
}
.atlas-drive-class-comments li.atlas-drive-class-comment-media {
  flex-wrap: wrap;
}
.atlas-drive-class-comments li.atlas-drive-class-comment-media > .atlas-recording {
  flex-basis: 100%;
}
.atlas-drive-grader-panel .atlas-recorder {
  margin-top: 8px;
}
/* A grader's Record a comment: the recorder, then Discard and Send, then what went wrong. */
.atlas-recorder-wrap {
  display: grid;
  gap: 8px;
}

/* Peer review (Teacher T3 round 4, plan 41 spec §4.1): the teachers' page reuses
   the class table and .atlas-drive-chip; the review page reuses the Grader's
   layout; a classmate's work never prints. Monochrome, both themes. */
.atlas-peer .atlas-peer-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.atlas-peer .atlas-peer-chip { cursor: pointer; background: transparent; gap: 4px; font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: var(--r-pill, 999px); padding: 2px 9px; min-height: 0; height: auto; line-height: inherit; }
.atlas-peer .atlas-peer-chip.done { color: var(--fg); }
.atlas-peer .atlas-peer-chip.hidden { text-decoration: line-through; color: var(--muted); }
.atlas-peer .atlas-peer-chip .atlas-peer-x { border: 0; background: none; color: var(--muted); padding: 0 0 0 2px; font: inherit; cursor: pointer; }
.atlas-peer .atlas-peer-add { font-size: 12px; padding: 2px 8px; min-height: 0; height: 22px; }
.atlas-peer-line { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.atlas-peer-review .atlas-drive-grader-body { grid-template-columns: 170px minmax(0, 1fr) 320px; }
.atlas-peer-work { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.atlas-peer-work > p { margin: 0; font-size: 12.5px; color: var(--muted); }
.atlas-peer-panel textarea { width: 100%; min-height: 140px; box-sizing: border-box; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: calc(6px * var(--radius, 1)); background: var(--bg); color: var(--fg); resize: vertical; }
.atlas-peer-panel h3 { margin: 0 0 6px; font-size: 13px; }
.atlas-peer-panel label { display: block; margin: 12px 0 4px; font-size: 12.5px; color: var(--muted); }
.atlas-peer-received { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.atlas-peer-received li { border: 1px solid var(--line); border-radius: calc(8px * var(--radius, 1)); padding: 10px 12px; }
.atlas-peer-received li header { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.atlas-peer-received li p { margin: 6px 0 0; }
.atlas-peer-levels { margin: 6px 0 0; padding: 0 0 0 18px; font-size: 12.5px; color: var(--muted); }
.atlas-peer-comment { white-space: pre-wrap; }
.atlas-peer-frame-root .editor-work { flex: 1; min-height: 0; }
.atlas-peer-print { display: none; }
@media print {
  .atlas-peer-work, body.atlas-peer-frame #work { visibility: hidden !important; }
  body.atlas-peer-frame .atlas-peer-print { display: block; visibility: visible; }
}
@media (max-width: 860px) {
  .atlas-peer-review .atlas-drive-grader-body { grid-template-columns: minmax(0, 1fr); }
}
