.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.side { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; border-right: 1px solid var(--line); background: rgba(6,5,5,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: auto; }
.brand { padding: 2px 6px 16px; }
.brand img.word { height: 34px; }
.new { justify-content: flex-start; height: 42px; padding: 0 16px; border-radius: 12px; margin-bottom: 10px; font-size: 14px; width: fit-content; min-width: 120px; }
.new .plus svg { width: 18px; height: 18px; display: block; }
nav { display: flex; flex-direction: column; gap: 1px; }
nav button, .apps a { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; text-decoration: none; color: var(--text); }
nav button svg { width: 18px; height: 18px; color: var(--muted); }
nav button:hover, .apps a:hover { background: rgba(255,236,228,.06); }
nav button.on { background: rgba(226,54,31,.16); color: #ffd9cf; }
nav button.on svg { color: #ff8f73; }
.apps { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 1px; }
.cap { font: 500 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 12px 6px; }
.apps a .kind { width: 20px; height: 20px; }

.main { overflow: auto; padding: 0 34px 60px; }
.bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; height: 64px; margin: 0 -34px; padding: 0 34px; background: linear-gradient(rgba(6,5,5,.85), rgba(6,5,5,.6) 70%, transparent); }
.search { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid var(--line2); background: rgba(10,8,7,.65); backdrop-filter: blur(12px); }
.search:focus-within { border-color: rgba(226,54,31,.6); }
.search svg { width: 18px; height: 18px; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; height: 100%; }
.grow { flex: 1; }
.me { cursor: pointer; margin: 0; width: 34px; height: 34px; }

.hero { padding: 34px 4px 10px; }
.greet { font: 400 clamp(18px, 2.1vw, 26px) var(--display); letter-spacing: .01em; color: #eadfda; }
.clock { font: 700 clamp(76px, 11.5vw, 160px)/1 var(--display); letter-spacing: -.01em; color: #fff; -webkit-text-stroke: 4px #ff4a1c; paint-order: stroke fill; margin: 8px 0 6px; white-space: nowrap; }
.date { font: 400 14px var(--display); color: var(--muted); letter-spacing: .03em; }

.start { margin-top: 36px; }
.start .cap { padding-left: 2px; }
.starts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 6px; }
.tpl { display: flex; flex-direction: column; gap: 9px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.tpl .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line2); background: rgba(16,12,11,.72); backdrop-filter: blur(10px); overflow: hidden; display: grid; place-items: center; transition: border-color .15s, transform .15s; }
.tpl:hover .thumb { border-color: rgba(255,122,26,.65); transform: translateY(-2px); }
.tpl .thumb .kind { width: 34px; height: 34px; }
.tpl .thumb .plus { position: absolute; right: 9px; bottom: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,236,228,.08); }
.tpl .thumb .plus svg { width: 14px; height: 14px; }
.tpl .thumb .art { position: absolute; inset: 14px; display: flex; flex-direction: column; gap: 5px; opacity: .55; }
.tpl .thumb .art i { display: block; height: 4px; border-radius: 2px; background: rgba(255,236,228,.4); }
.tpl b { font-weight: 500; }
.tpl span.m { font-size: 12px; color: var(--muted); margin-top: -6px; }

.files { margin-top: 38px; }
.crumbs { display: flex; align-items: center; gap: 4px; min-height: 36px; font: 500 15px var(--display); }
.crumbs button { border: 0; background: none; padding: 4px 8px; border-radius: 7px; cursor: pointer; font: inherit; }
.crumbs button:hover { background: rgba(255,236,228,.07); }
.crumbs .slash { color: var(--faint); }
.crumbs .cnt { margin-left: 8px; font: 400 12px var(--sans); color: var(--faint); }

table.flist { width: 100%; border-collapse: collapse; margin-top: 8px; }
.flist th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.flist td { padding: 0 10px; height: 46px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.flist tr.f { cursor: pointer; }
.flist tr.f:hover td { background: rgba(255,236,228,.035); }
.flist tr.f:focus-visible { outline: 2px solid rgba(226,54,31,.6); outline-offset: -2px; }
.flist .nm { display: flex; align-items: center; gap: 12px; max-width: 46vw; }
.flist .nm span { overflow: hidden; text-overflow: ellipsis; }
.flist .st svg { width: 14px; height: 14px; color: var(--amber); vertical-align: -2px; margin-left: 6px; fill: var(--amber); }
.flist td.mu { color: var(--muted); font-size: 13px; }
.flist td.act { width: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 10px; }
.gcard { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line); background: rgba(16,12,11,.72); backdrop-filter: blur(10px); overflow: hidden; cursor: pointer; text-align: left; padding: 0; }
.gcard:hover { border-color: var(--line2); }
.gcard .pv { height: 110px; display: grid; place-items: center; background: rgba(255,236,228,.025); border-bottom: 1px solid var(--line); }
.gcard .pv .kind { width: 40px; height: 40px; }
.gcard .info { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.gcard .info .t { flex: 1; min-width: 0; }
.gcard .info .t b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .info .t span { font-size: 12px; color: var(--muted); }
.gcard .info .kind { width: 18px; height: 18px; }
.empty { padding: 50px 10px; text-align: center; color: var(--muted); }
.empty b { display: block; font: 500 16px var(--display); color: var(--text); margin-bottom: 6px; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 0 16px 40px; }
  .bar { margin: 0 -16px; padding: 0 16px; }
  .flist .hide-sm { display: none; }
}

/* entrance animations */
@keyframes cbIn { from { opacity: 0; transform: translateY(8px); } }
.hero, .start, .files { animation: cbIn .4s cubic-bezier(.2,.8,.2,1) both; }
.start { animation-delay: .05s; } .files { animation-delay: .1s; }
.starts > * { animation: cbIn .35s cubic-bezier(.2,.8,.2,1) both; }
.starts > *:nth-child(2) { animation-delay: .04s; } .starts > *:nth-child(3) { animation-delay: .08s; } .starts > *:nth-child(4) { animation-delay: .12s; } .starts > *:nth-child(n+5) { animation-delay: .16s; }
#list tbody tr, #list .grid > * { animation: cbIn .3s ease-out both; }
.apps a, nav button { transition: background .15s, transform .15s; } .apps a:hover, nav button:hover { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .hero, .start, .files, .starts > *, #list tbody tr, #list .grid > * { animation: none !important; } }
.apps a[hidden] { display: none; }
/* same single glass frame as the other pages */
body:has(> .shell) { display: flow-root; height: 100vh; }
.shell { margin: 10px; height: calc(100vh - 20px); border-radius: 26px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 45%), var(--glass-thick);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255, 236, 228, .12), inset 0 1px 0 rgba(255, 255, 255, .18); }
.side { background: transparent !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; scrollbar-width: none; }
.side > *, .apps > *, .hub-school > * { flex-shrink: 0; }
.main { margin: 10px 10px 10px 0; border-radius: 20px; padding: 0 26px 40px; background: rgba(8, 6, 6, .62); box-shadow: inset 0 0 0 1px rgba(255, 236, 228, .07), inset 0 10px 30px rgba(0, 0, 0, .35); scrollbar-width: thin; scrollbar-color: rgba(255, 236, 228, .18) transparent; }
.bar { margin: 0 -26px; padding: 0 26px; border-radius: 20px 20px 0 0; background: linear-gradient(rgba(10, 7, 7, .92), rgba(10, 7, 7, .7) 70%, transparent) !important; }
.side .hub-school { display: flex; flex-direction: column; gap: 2px; }
.side .hub-school a { display: flex; align-items: center; gap: 11px; }
.side .hub-school a svg { width: 17px; height: 17px; color: var(--orange); }
.side .hub-school a.sub { margin-left: 22px; font-size: 13px; color: var(--muted); }
.hub-dot { width: 10px; height: 10px; border-radius: 4px; flex: none; margin: 0 4px 0 3px; }
@media (max-width: 860px) { .shell { margin: 0; border-radius: 0; height: 100vh; } .main { margin: 0; border-radius: 0; } }

.hub-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 2px 2px 4px; }
.hub-side .hub-tiles a, .side .hub-tiles a { flex-direction: column; justify-content: center; gap: 4px; height: 54px; padding: 4px 2px; border-radius: 14px; margin: 0;
  background: rgba(226, 54, 31, .11); border: 1px solid rgba(255, 150, 120, .12); font-size: 11.5px; font-weight: 600; text-align: center; }
.hub-side .hub-tiles a:hover, .side .hub-tiles a:hover { transform: translateY(-1px); background: rgba(226, 54, 31, .2); }
.hub-side .hub-tiles a.on, .side .hub-tiles a.on { background: rgba(226, 54, 31, .32) !important; border-color: rgba(255, 150, 120, .35); }
.hub-tiles a svg, .hub-tiles a .kind { width: 19px !important; height: 19px !important; color: #ff8f73 !important; flex: none; }
.hub-tiles a span { max-width: 100%; }
.hub-tiles.office a { background: rgba(255, 236, 228, .05); border-color: rgba(255, 236, 228, .08); }
.hub-side { gap: 1px; } .hub-side a:not(.sub) { height: 32px; } .hub-side .cap, .hub-school .cap { margin-top: 10px; }
.side .hub-school a, .side .hub-tiles a { text-decoration: none; color: var(--text); }
.side .hub-school { margin: 10px 0 4px; }
