okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
0b3299a01
main
1/* Result-first Time-skip. The 400px rail shows one readable artifact at a time. */ 2. ts-panel { display : flex; flex-direction : column; min-width : 0 ; min-height : 0 ; border-left : 1 px solidvar ( --st-line ); background : var ( --st-surface ); color : var ( --st-ink ); container-type : inline-size; } 3. ts-scroll { flex : 1 ; min-height : 0 ; overflow-y : auto; overscroll-behavior : contain; padding : 24 px 20 px ; } 4. ts-content { width : 100 % ; max-width : 960 px ; margin-inline : auto; } 5. ts-heading { display : flex; align-items : center; gap : 12 px ; justify-content : space-between; } 6. ts-heading h2 { display : flex; align-items : center; gap : 10 px ; margin : 0 ; font-size : 17 px ; line-height : 1.4 ; font-weight : 500 ; letter-spacing : -.25 px ; } 7. ts-status-icon { display : grid; place-items : center; width : 32 px ; height : 32 px ; border-radius : 10 px ; color : var ( --st-accent-text ); background : var ( --st-accent-tint ); flex : none; border : 1 px solidcolor-mix ( in srgb, var ( --st-accent-text ) 12 % , transparent); } 8. ts-caption { font-size : 12 px ; line-height : 1.5 ; color : var ( --st-ink-muted ); margin : 7 px 0 22 px ; } 9. ts-switch-row { display : flex; align-items : center; gap : 10 px ; margin-bottom : 18 px ; } 10. ts-version-tabs { position : relative; display : flex; flex : 1 ; padding : 4 px ; background : var ( --st-surface-2 ); border : 1 px solidvar ( --st-line-soft ); border-radius : 10 px ; isolation : isolate; } 11. ts-tab-selection { position : absolute; z-index : -1 ; top : 4 px ; bottom : 4 px ; left : 4 px ; width : calc (( 100 % - 8 px ) / 2 ); border : 1 px solidvar ( --st-line-soft ); border-radius : 6 px ; background : var ( --st-surface ); box-shadow : 0 1 px 3 px color-mix ( in srgb, var ( --st-ink ) 6 % , transparent); transition : transformvar ( --st-t-local ) var ( --st-ease-standard ); } 12. ts-version-tabs [data-version = 'updated' ]. ts-tab-selection { transform : translateX ( 100 % ); } 13. ts-version-tabs button { display : flex; justify-content : center; align-items : center; gap : 6 px ; flex : 1 ; min-width : 0 ; min-height : 32 px ; border : 0 ; border-radius : 6 px ; padding : 6 px ; background : transparent; font : inherit; font-size : 12 px ; font-weight : 500 ; color : var ( --st-ink-muted ); cursor : pointer; transition : colorvar ( --st-t-control ) var ( --st-ease-standard ); } 14. ts-version-tabs button [aria-selected = 'true' ]{ color : var ( --st-ink ); } 15. ts-version-tabs button svg { flex : none; opacity : .7 ; } 16. ts-version-tabs button [aria-selected = 'true' ]svg { opacity : 1 ; } 17. ts-switch-row > . ts-compare-button { flex : none; gap : 5 px ; padding : 8 px ; font-weight : 500 ; font-size : 11 px ; color : var ( --st-ink-muted ); border : 1 px solidvar ( --st-line-soft ); border-radius : var ( --st-r-sm ); transition : backgroundvar ( --st-t-control ), colorvar ( --st-t-control ); } 18. ts-compare-button . st-icon { width : 13 px ; height : 13 px ; } 19. ts-switch-row > . ts-compare-button : hover { background : var ( --st-surface-2 ); color : var ( --st-ink ); } 20. ts-document { border : 1 px solidvar ( --st-line ); border-radius : var ( --st-r-md ); padding : 18 px 16 px 16 px ; background : var ( --st-surface ); overflow : hidden; box-shadow : 0 2 px 6 px color-mix ( in srgb, var ( --st-ink ) 2 % , transparent); } 21. ts-document > header { display : flex; align-items : center; gap : 8 px ; padding-bottom : 16 px ; margin-bottom : 14 px ; border-bottom : 1 px solidvar ( --st-line-soft ); } 22. ts-document > header > svg { color : var ( --st-ink-muted ); flex : none; } 23. ts-document h3 { margin : 0 ; font-size : 16 px ; line-height : 1.35 ; font-weight : 500 ; letter-spacing : -.15 px ; } 24. ts-doc-label { display : inline-flex; align-items : center; gap : 4 px ; margin-left : auto; font-size : 10 px ; color : var ( --st-ink-muted ); white-space : nowrap; } 25. ts-doc-label :: before { content : '' ; width : 4 px ; height : 4 px ; border-radius : 50 % ; background : var ( --st-line ); } 26. ts-document [data-updated ]. ts-doc-label :: before { background : var ( --st-accent-text ); } 27. ts-document ol { list-style : none; padding : 0 ; margin : 0 0 18 px ; display : grid; gap : 8 px ; } 28. ts-document li { display : flex; align-items : center; gap : 9 px ; min-height : 46 px ; padding : 8 px ; border-radius : var ( --st-r-sm ); font-size : 13 px ; line-height : 1.5 ; } 29. ts-document li [data-changed ]{ background : color-mix ( in srgb, var ( --st-accent-tint ) 65 % , var ( --st-surface )); } 30. ts-step-icon { display : grid; place-items : center; width : 24 px ; height : 24 px ; color : var ( --st-ink-muted ); flex : none; } 31. ts-document li [data-changed ]. ts-step-icon { color : var ( --st-accent-text ); } 32. ts-step-number { font-size : 10 px ; color : var ( --st-ink-muted ); margin-left : auto; flex : none; padding-left : 2 px ; font-variant-numeric : tabular-nums; opacity : .75 ; } 33. ts-selected . ts-document li { animation : st-entervar ( --st-t-local ) var ( --st-ease-enter ) both; animation-delay : calc ( var ( --ts-order ) * var ( --st-t-micro )); --st-from-y : 4 px ; } 34. ts-document pre [data-changed ]{ background : var ( --st-accent-tint ); border-radius : 3 px ; box-decoration-break : clone; -webkit-box-decoration-break : clone; padding : 3 px 4 px ; } 35. ts-success { padding : 14 px 12 px ; border : 1 px solidvar ( --st-line-soft ); border-radius : var ( --st-r-sm ); background : var ( --st-surface-2 ); } 36. ts-success h4 { display : flex; align-items : center; gap : 6 px ; font-size : 11 px ; font-weight : 500 ; margin : 0 0 8 px ; color : var ( --st-ink-muted ); } 37. ts-success h4 > span { font-size : 10 px ; margin-left : auto; font-weight : 400 ; } 38. ts-success p { font-size : 12 px ; line-height : 1.6 ; margin : 0 ; } 39. ts-success : not ( [data-defined ]) p { color : var ( --st-ink-muted ); } 40. ts-goal { display : flex; align-items : center; gap : 14 px ; margin-top : 12 px ; } 41. ts-goal > div { display : flex; gap : 4 px ; flex : 1 ; } 42. ts-goal i { display : block; flex : 1 ; height : 16 px ; border : 1 px solidvar ( --st-line ); border-radius : 3 px ; background : var ( --st-surface ); } 43. ts-goal i [data-filled ]{ background : color-mix ( in srgb, var ( --st-accent-text ) 65 % , var ( --st-surface )); border-color : transparent; } 44. ts-goal > span { font-size : 16 px ; font-weight : 500 ; letter-spacing : -.5 px ; font-variant-numeric : tabular-nums; } 45. ts-goal small { font-size : 11 px ; font-weight : 400 ; color : var ( --st-ink-muted ); } 46. ts-document pre { font-family : var ( --st-font-mono ); font-size : 11 px ; line-height : 1.9 ; overflow-x : auto; padding-bottom : 8 px ; margin-bottom : 18 px ; } 47. ts-document pre span [data-changed ]{ padding : 2 px 0 ; } 48. ts-image-result { margin : 0 ; } 49. ts-image-frame { position : relative; aspect-ratio : 4 / 3 ; overflow : hidden; border : 1 px solidvar ( --st-line-soft ); border-radius : var ( --st-r-sm ); background : var ( --st-surface-2 ); } 50. ts-image-frame > img { display : block; width : 100 % ; height : 100 % ; object-fit : contain; } 51. ts-image-frame > . ts-image-original { position : absolute; inset : 0 ; } 52. ts-image-labels { display : flex; justify-content : space-between; padding : 0 2 px 8 px ; color : var ( --st-ink-muted ); font-size : 10 px ; } 53. ts-image-divider { position : absolute; top : 0 ; bottom : 0 ; width : 2 px ; transform : translateX ( -50 % ); background : white; box-shadow : 0 0 0 1 px rgb ( 0 0 0 / .08 ); pointer-events : none; } 54. ts-image-divider > span { position : absolute; top : 50 % ; left : 50 % ; display : flex; align-items : center; justify-content : center; width : 28 px ; height : 28 px ; transform : translate ( -50 % , -50 % ); border : 1 px solidvar ( --st-line ); border-radius : 50 % ; background : var ( --st-surface ); color : var ( --st-ink ); box-shadow : 0 2 px 6 px rgb ( 0 0 0 / .12 ); } 55. ts-image-divider svg : first-child { transform : rotate ( 90 deg ); } 56. ts-image-divider svg : last-child { transform : rotate ( -90 deg ); } 57. ts-image-frame > input { position : absolute; inset : 0 ; width : 100 % ; height : 100 % ; margin : 0 ; opacity : 0 ; cursor : ew-resize; } 58. ts-image-frame : has ( input : focus-visible ) { outline : 2 px solidvar ( --st-accent-text ); outline-offset : 2 px ; } 59. ts-image-result figcaption { display : flex; justify-content : center; align-items : center; gap : 6 px ; font-size : 10 px ; line-height : 1.5 ; color : var ( --st-ink-muted ); margin-top : 10 px ; } 60. ts-switch-row > . ts-compare-button [aria-pressed = 'true' ]{ color : var ( --st-accent-text ); background : var ( --st-accent-tint ); } 61. ts-changes { padding : 22 px 0 18 px ; } 62. ts-changes h3 { display : flex; align-items : center; gap : 7 px ; font-size : 12 px ; margin : 0 0 10 px ; font-weight : 500 ; } 63. ts-changes h3 svg { color : var ( --st-ink-muted ); } 64. ts-changes h3 > span { margin-left : auto; font-size : 10 px ; font-weight : 400 ; color : var ( --st-ink-muted ); } 65. ts-changes ul { list-style : none; padding : 0 ; margin : 0 ; display : grid; } 66. ts-changes li { display : flex; align-items : center; gap : 9 px ; padding : 11 px 0 ; font-size : 12 px ; line-height : 1.5 ; } 67. ts-changes li + li { border-top : 1 px solidvar ( --st-line-soft ); } 68. ts-changes li svg { flex : none; color : var ( --st-ink-muted ); } 69. ts-changes li svg : last-child { margin-left : auto; color : var ( --st-accent-text ); } 70. ts-details { border-top : 1 px solidvar ( --st-line-soft ); } 71. ts-disclosure { display : flex; align-items : center; gap : 8 px ; width : 100 % ; padding : 16 px 0 ; border : 0 ; background : transparent; color : var ( --st-ink ); font : inherit; font-size : 12 px ; text-align : left; cursor : pointer; } 72. ts-disclosure > svg : first-child { color : var ( --st-ink-muted ); } 73. ts-disclosure > svg : last-child { color : var ( --st-ink-muted ); transition : transformvar ( --st-t-control ) var ( --st-ease ); } 74. ts-disclosure [aria-expanded = 'true' ]> svg : last-child { transform : rotate ( 180 deg ); } 75. ts-disclosure > strong { font-weight : 500 ; } 76. ts-disclosure > span { margin-left : auto; color : var ( --st-ink-muted ); font-size : 11 px ; } 77. ts-details-reveal { display : grid; grid-template-rows : 0 fr ; opacity : 0 ; transition : grid-template-rowsvar ( --st-t-local ) var ( --st-ease-standard ), opacityvar ( --st-t-control ) var ( --st-ease-standard ); } 78. ts-details-reveal [data-open ]{ grid-template-rows : 1 fr ; opacity : 1 ; } 79. ts-details-clip { min-height : 0 ; overflow : hidden; } 80. ts-details-content { font-size : 12 px ; line-height : 1.6 ; padding-bottom : 2 px ; } 81. ts-details-content > h4 { font-size : 12 px ; margin : 22 px 0 10 px ; font-weight : 700 ; } 82. ts-prompt { display : grid; gap : 4 px ; overflow-wrap : anywhere; margin-top : 16 px ; } 83. ts-prompt strong { font-weight : 500 ; color : var ( --st-ink-muted ); font-size : 11 px ; } 84. ts-check-table > div { display : grid; grid-template-columns : .85 fr 1 fr 1 fr ; gap : 10 px ; padding : 10 px 0 ; border-bottom : 1 px solidvar ( --st-line-soft ); font-size : 11 px ; } 85. ts-check-table [role = 'columnheader' ]{ color : var ( --st-ink-muted ); } 86. ts-check-table strong { font-weight : 500 ; } 87. ts-history { list-style : none; padding : 0 ; margin : 0 ; display : grid; gap : 14 px ; } 88. ts-history li { display : flex; align-items : flex-start; gap : 9 px ; } 89. ts-history svg { flex : none; margin-top : 2 px ; color : var ( --st-ink-muted ); } 90. ts-history li > span > span { display : block; color : var ( --st-ink-muted ); font-size : 11 px ; margin-top : 3 px ; } 91. ts-rejected { margin-top : 18 px ; } 92. ts-rejected summary { display : flex; justify-content : space-between; cursor : pointer; font-size : 11 px ; color : var ( --st-ink-muted ); padding-block : 8 px ; } 93. ts-rejected summary :: -webkit-details-marker { display : none; } 94. ts-rejected . ts-document { margin-top : 10 px ; } 95. ts-restored { display : flex; align-items : center; gap : 10 px ; padding : 12 px ; background : var ( --st-surface-2 ); font-size : 12 px ; border-radius : var ( --st-r-sm ); margin-bottom : 16 px ; } 96. ts-restored button { margin-left : auto; border : 0 ; background : transparent; color : var ( --st-accent-text ); font : inherit; font-weight : 500 ; cursor : pointer; padding : 4 px ; } 97. ts-footer { flex : none; padding : 16 px 20 px ; border-top : 1 px solidvar ( --st-line ); background : var ( --st-surface ); } 98. ts-footer > div { display : flex; align-items : center; gap : 10 px ; max-width : 960 px ; margin-inline : auto; } 99. ts-footer . st-btn--primary { flex : 1 ; min-height : 40 px ; gap : 7 px ; border-radius : var ( --st-r-sm ); font-size : 12 px ; font-weight : 500 ; } 100. ts-footer . st-btn--primary > svg : last-child { margin-left : auto; } 101. ts-footer . st-btn > svg : first-child { width : 15 px ; height : 15 px ; } 102. ts-footer . st-btn--icon { flex : none; border : 1 px solidvar ( --st-line ); border-radius : var ( --st-r-sm ); width : 40 px ; height : 40 px ; } 103. ts-building { min-height : 250 px ; padding : 32 px 24 px ; border : 1 px solidvar ( --st-line ); border-radius : var ( --st-r-md ); display : flex; align-items : center; justify-content : center; flex-direction : column; text-align : center; } 104. ts-building strong { font-size : 14 px ; margin-top : 18 px ; font-weight : 500 ; } 105. ts-building p { font-size : 12 px ; color : var ( --st-ink-muted ); line-height : 1.6 ; margin : 10 px 0 0 ; } 106. ts-building-visual { position : relative; width : 100 px ; height : 84 px ; margin-bottom : 4 px ; } 107. ts-paper { position : absolute; width : 54 px ; height : 70 px ; border : 1 px solidvar ( --st-line ); border-radius : 7 px ; background : var ( --st-surface ); display : flex; flex-direction : column; gap : 5 px ; padding : 10 px ; color : var ( --st-ink-muted ); } 108. ts-paper svg { margin-bottom : 5 px ; flex : none; } 109. ts-paper i { display : block; height : 2 px ; border-radius : 1 px ; background : var ( --st-line ); } 110. ts-paper i : last-child { width : 65 % ; } 111. ts-paper--saved { left : 9 px ; top : 2 px ; transform : rotate ( -9 deg ); } 112. ts-paper--update { right : 8 px ; top : 10 px ; transform : rotate ( 7 deg ); color : var ( --st-accent-text ); background : var ( --st-accent-tint ); } 113. ts-paper--update i { background : color-mix ( in srgb, var ( --st-accent-text ) 25 % , transparent); } 114. ts-activity { display : inline-block; flex : none; width : 13 px ; height : 13 px ; border : 1.5 px solidvar ( --st-line ); border-top-color : var ( --st-accent-text ); border-radius : 50 % ; animation : ts-spin1 s linear infinite; } 115@keyframes ts-spin{ to { transform : rotate ( 360 deg ); } } 116. ts-compare-heading { display : flex; align-items : center; justify-content : space-between; gap : 12 px ; margin : 32 px 0 18 px ; } 117. ts-compare-heading h3 { margin : 0 ; font-size : 16 px ; font-weight : 700 ; } 118. ts-compare-heading . st-btn { font-weight : 500 ; color : var ( --st-ink-muted ); } 119. ts-comparison { display : grid; grid-template-columns : minmax ( 0 , 1 fr ) minmax ( 0 , 1 fr ); gap : 24 px ; animation : st-entervar ( --st-t-surface ) var ( --st-ease-enter ) both; --st-from-y : 6 px ; } 120. ts-comparison-column { min-width : 0 ; display : flex; flex-direction : column; } 121. ts-column-heading { display : flex; align-items : center; justify-content : space-between; gap : 10 px ; margin-bottom : 12 px ; } 122. ts-column-heading h4 { margin : 0 ; font-size : 13 px ; font-weight : 500 ; } 123. ts-column-heading > span { display : flex; align-items : center; gap : 4 px ; font-size : 11 px ; color : var ( --st-ink-muted ); } 124. ts-comparison-column . ts-document { flex : 1 ; } 125. ts-switch-row [data-comparing ]{ display : none; } 126. ts-panel [data-expanded ]. ts-scroll { padding : 36 px 32 px ; } 127. ts-panel [data-expanded ]. ts-changes { padding-block : 28 px ; } 128. ts-panel [data-expanded ]. ts-changes ul { grid-template-columns : repeat ( auto-fit, minmax ( 240 px , 1 fr )); gap : 14 px ; } 129. ts-panel [data-expanded ]. ts-changes li { border : 1 px solidvar ( --st-line-soft ); border-radius : var ( --st-r-sm ); padding : 12 px ; } 130. dialog-body : has ( > . ts-panel ) { display : flex; flex-direction : column; padding : 0 ; overflow : hidden; min-height : 0 ; } 131. dialog-body > . ts-panel { flex : 1 ; border : 0 ; } 132. ts-dialog { width : min ( 480 px , calc ( 100 dvw - 24 px )); height : min ( 820 px , calc ( 100 dvh - 24 px )); max-height : calc ( 100 dvh - 24 px ); } 133. ts-dialog . dialog-surface--wide { width : min ( 1050 px , calc ( 100 dvw - 24 px )); } 134@container ( min-width : 651 px ) { 135. ts-panel [data-expanded ]. ts-footer { display : grid; grid-template-columns : minmax ( 0 , 1 fr ) auto; align-items : center; gap : 16 px ; padding : 16 px max ( 32 px , calc (( 100 cqw - 960 px ) / 2 )); } 136. ts-panel [data-expanded ]. ts-footer > div { grid-column : 2 ; grid-row : 1 ; margin : 0 ; } 137. ts-panel [data-expanded ]. ts-footer . st-btn--primary { flex : none; width : auto; min-width : 144 px ; } 138. ts-panel [data-expanded ]. ts-footer . st-btn--primary > svg : last-child { margin-left : 3 px ; } 139. ts-panel [data-expanded ]. ts-footer > div > . st-btn : not (. st-btn--icon ) { height : 40 px ; min-height : 40 px ; min-width : 144 px ; padding : 0 14 px ; font-size : 12 px ; font-weight : 500 ; } 140} 141@container ( max-width : 650 px ) { 142. ts-switch-row [data-comparing ]{ display : flex; } 143. ts-comparison { grid-template-columns : minmax ( 0 , 1 fr ); } 144. ts-comparison-column : not ( [data-selected ]) { display : none; } 145. ts-panel [data-expanded ]. ts-scroll { padding : 24 px 20 px ; } 146} 147@container ( max-width : 420 px ) { 148. ts-scroll , . ts-panel [data-expanded ]. ts-scroll { padding : 20 px 16 px 16 px ; } 149. ts-caption { margin-bottom : 14 px ; } 150. ts-switch-row { margin-bottom : 14 px ; } 151. ts-document { padding : 16 px 14 px 14 px ; } 152. ts-document > header { padding-bottom : 12 px ; margin-bottom : 10 px ; } 153. ts-document ol { gap : 6 px ; margin-bottom : 12 px ; } 154. ts-document li { min-height : 40 px ; padding : 6 px 8 px ; } 155. ts-success { padding : 12 px 10 px ; } 156. ts-goal { margin-top : 8 px ; } 157. ts-goal i { height : 12 px ; } 158. ts-goal > span { font-size : 14 px ; line-height : 18 px ; } 159. ts-changes , . ts-panel [data-expanded ]. ts-changes { padding-block : 18 px 12 px ; } 160. ts-changes h3 { margin-bottom : 6 px ; } 161. ts-changes li { padding-block : 8 px ; } 162. ts-disclosure { padding-block : 12 px ; } 163} 164@media ( max-width : 420 px ) { 165. ts-scroll , . ts-panel [data-expanded ]. ts-scroll { padding-inline : 16 px ; } 166. ts-footer { padding-inline : 16 px ; } 167. ts-heading h2 { font-size : 16 px ; } 168. ts-document { padding-inline : 14 px ; } 169. ts-disclosure { min-height : 40 px ; } 170. ts-version-tabs button { min-height : 36 px ; } 171} 172@media ( prefers-reduced-motion : reduce) { 173: root : not ( [data-motion = 'full' ]) . ts-activity , : root : not ( [data-motion = 'full' ]) . ts-selected . ts-document li , : root : not ( [data-motion = 'full' ]) . ts-comparison { animation : none; } 174: root : not ( [data-motion = 'full' ]) . ts-tab-selection , : root : not ( [data-motion = 'full' ]) . ts-details-reveal { transition : none; } 175} 176[data-motion = 'reduced' ]. ts-activity , [data-motion = 'reduced' ]. ts-selected . ts-document li , [data-motion = 'reduced' ]. ts-comparison { animation : none; } 177[data-motion = 'reduced' ]. ts-tab-selection , [data-motion = 'reduced' ]. ts-details-reveal { transition : none; }