/* The web client's page before the first frame (craft::WINDOW, the window's grey; muted-fg from
   design::color; the sidebar's text from Theme::sidebar_text; SIDEBAR_WIDTH). */
html, body { margin: 0; height: 100%; overflow: hidden; background: #eff0f1; }
canvas { display: block; width: 100%; height: 100%; outline: none; }
#status { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; text-align: center; font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Inter, sans-serif; color: #737373; pointer-events: none; }
#status:empty { display: none; }
.sk { position: fixed; inset: 0; z-index: 1; display: flex; font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Inter, sans-serif; transition: opacity 0.3s ease; --grey: rgba(31, 34, 37, 0.07); --light: rgba(255, 255, 255, 0.75); --person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='9' cy='6' r='2.75'/%3E%3Cpath d='M3.9 14.5C3.9 11.7 6.15 10.25 9 10.25S14.1 11.7 14.1 14.5'/%3E%3C/svg%3E"); --updown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5.75 11.5 9 14.75 12.25 11.5'/%3E%3Cpolyline points='5.75 6.5 9 3.25 12.25 6.5'/%3E%3C/svg%3E"); }
.sk.out { opacity: 0; pointer-events: none; }
/* Laid out as src/sidebar.rs draws it, measured off the editor's frame at 1280×800: the header's two
   buttons centred 24 down at 32 and 66, a folder's heading every 30 + 1 + 12 (ROW_H, ROW_GAP, TOP_GAP) from 44,
   its name 8 in from SB_X in SemiBold #333739 (Theme::sidebar_section) with a 12px chevron after it. */
.sk .side { width: 280px; flex: none; box-sizing: border-box; padding: 0 14px; overflow: hidden; color: rgba(31, 34, 37, 0.85); background: #eff0f1; display: flex; flex-direction: column; animation: sk-in 0.35s ease both; font: 400 13px/30px QuietInter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
.sk .side.pic { padding: 0; animation-name: sk-fade; }
.sk .side.pic::after { display: none; }
.sk .head { height: 44px; flex: none; position: relative; }
.sk .head span { position: absolute; top: 17px; width: 14px; height: 14px; border-radius: 4px; background: var(--grey); }
.sk .head span:first-child { left: 11px; } .sk .head span:last-child { left: 45px; }
.sk .folder { height: 30px; margin-bottom: 13px; padding-left: 8px; display: flex; align-items: center; gap: 4px; flex: none; color: #333739; font-weight: 600; }
.sk .folder .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk .folder i { width: 5px; height: 5px; flex: none; border: solid currentColor; border-width: 0 1.25px 1.25px 0; transform: translateY(-2px) rotate(45deg); opacity: 0.55; margin-left: 4px; }
.sk .row { height: 30px; display: flex; align-items: center; padding: 0 8px; gap: 10px; flex: none; margin-bottom: 1px; }
.sk .row::before { content: ""; width: 16px; height: 16px; border-radius: 4px; background: var(--grey); flex: none; }
.sk .row span, .sk .foot .bar, .sk .page span { display: block; height: 10px; border-radius: 5px; background: var(--grey); }
.sk .foot { height: 44px; margin: auto 0 10px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 6px; flex: none; line-height: 18px; font-weight: 500; }
.sk .foot .bar { width: 46%; }
.sk .avatar { width: 28px; height: 28px; border-radius: 50%; background: #e5e5e5; color: #171717; font-size: 13px; display: grid; place-items: center; flex: none; position: relative; overflow: hidden; }
.sk .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sk .avatar.blank { background: var(--grey); }
.sk .person { width: 28px; height: 28px; flex: none; background: currentColor; opacity: 0.6; -webkit-mask: var(--person) center / 18px no-repeat; mask: var(--person) center / 18px no-repeat; }
.sk .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sk .ud { width: 16px; height: 16px; flex: none; background: currentColor; opacity: 0.6; -webkit-mask: var(--updown) center / 16px no-repeat; mask: var(--updown) center / 16px no-repeat; }
.sk .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk .email { font-size: 12px; line-height: 16px; font-weight: 400; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk .note { flex: 1; background: #fff; position: relative; overflow: hidden; }
/* The drifting light over the grey, as the app's own loading layer (src/loading.rs). */
.sk .note::after, .sk .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, var(--light) 50%, transparent 70%); background-size: 250% 100%; animation: sk-light 1.6s ease-in-out infinite; pointer-events: none; }
.sk .side { position: relative; }
.sk .page { max-width: 720px; margin: 96px auto 0; padding: 0 48px; display: flex; flex-direction: column; gap: 14px; animation: sk-in 0.45s 0.1s ease both; }
.sk .page .title { height: 26px; width: 42%; border-radius: 7px; margin-bottom: 18px; }
.sk .page .gap { height: 8px; background: none; }
.sk .track { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; z-index: 1; }
.sk .track i { display: block; height: 100%; background: #2f6fed; transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease-out; box-shadow: 0 0 6px rgba(47, 111, 237, 0.6); }
.sk .track.starting i { transform: scaleX(1) !important; background: linear-gradient(90deg, rgba(47, 111, 237, 0.35), #2f6fed, rgba(47, 111, 237, 0.35)); background-size: 200% 100%; animation: sk-bar 1s linear infinite; }
@keyframes sk-light { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes sk-bar { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes sk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sk-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#status:not(:empty) { animation: sk-in 0.3s ease both; }
@media (max-width: 640px) { .sk .side { display: none; } .sk .page { padding: 0 20px; margin-top: 72px; } }
@media (prefers-reduced-motion: reduce) { .sk *, .sk *::after, .sk::after { animation: none !important; } }
@media (prefers-color-scheme: dark) {
  html, body { background: #1c1c1c; } #status { color: #a1a1a1; }
  .sk { --grey: rgba(255, 255, 255, 0.08); --light: rgba(255, 255, 255, 0.06); }
  .sk .side { color: #e5e5e5; background: #1c1c1c; } .sk .folder { color: #e5e5e5; } .sk .note { background: #232323; }
  .sk .avatar { background: #404040; color: #f5f5f5; }
}
