/* The cube pages: layout only, tokens only (fraction-ds owns the colours). */
.cube-icon { flex: none; color: var(--ink-3); }
.cube-icon--quiet { color: var(--ink-3); }
.cube-icon--lead { color: var(--ink-2); }
.cubebox__head { display: flex; align-items: center; gap: var(--s4, 16px); flex-wrap: wrap; }
.cubebox__head h1 { margin: 0; }
.cubes, .cubebox { display: grid; gap: var(--s4, 16px); max-width: 880px; width: 100%; margin-inline: auto; padding: var(--pad-main, 24px); box-sizing: border-box; }
.cubes .grow, .cubebox .grow { flex: 1; min-width: 0; }
.cubebox__actions { display: flex; gap: var(--s2, 8px); align-items: center; }
.cubebox__lock { margin: 0; padding: var(--s3, 12px); border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--bg-2); }
.cubebox__key { display: grid; gap: var(--s2, 8px); }
.cubebox__keyrow { display: flex; gap: var(--s2, 8px); align-items: stretch; }
.cubebox__keytext { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font-size: 12.5px; }
.cube-drop { display: grid; justify-items: center; gap: 4px; padding: var(--s5, 24px); border: 2px dashed var(--line-2); border-radius: var(--radius, 10px); text-align: center; color: var(--ink-2); }
.cube-drop--over { border-color: var(--ink-3); background: var(--ldu-wash); color: var(--ink); }
.cube-drop p { margin: 0; }
.cubebox__status { min-height: 1.4em; margin: 0; }
.cubebox__status[data-kind="error"] { color: var(--danger); }
.cubebox__status[data-kind="ok"] { color: var(--ok); }
.cubebox__files { width: 100%; border-collapse: collapse; font-size: 14px; }
.cubebox__files th, .cubebox__files td { padding: 9px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cubebox__files thead th { border-top: 0; color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.cubebox__files td.num { text-align: right; white-space: nowrap; }
.cubebox__name { font-weight: 600; }
.cubebox__none { text-align: center; margin: 0; padding: var(--s4, 16px); }
.cubebox__share { display: grid; gap: var(--s2, 8px); }
.cubebox__made { display: grid; gap: var(--s2, 8px); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* The row list (Jane's row-card / box-folders design, ported from cli/vault_viewer/vault.css so the site and the app look alike): a folder is a list, one header row, rows with icons only. */
.row-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-2, 8px); background: var(--bg); width: 100%; color: inherit; }
.row-card + .row-card { margin-top: 8px; }
.row-card__lead { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.row-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-card__title { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.row-card__sub { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-card__end { flex: none; margin-left: auto; display: flex; align-items: center; gap: 12px; }
.stored { display: flex; gap: 10px; }
.stored__item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 40px; }
.stored__dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-3, var(--line-2)); }
.stored__dot .icon { width: 14px; height: 14px; }
.stored__label { font-size: 12px; color: var(--ink-3); line-height: 1; }
.stored__item--active .stored__dot { background: var(--ldu-wash); color: var(--ink); border-color: var(--ink-3); }
.stored__item--active .stored__label { color: var(--ink); }
.stored__item--skeleton .stored__dot { border-style: dashed; color: var(--ink-4); background: transparent; }
.stored__item--skeleton .stored__label { color: var(--ink-4); }
.row-list { --stored-col: 64px; display: flex; flex-direction: column; }
.row-list__head, .row-list .row-card { display: grid; grid-template-columns: 32px minmax(0, 1fr) repeat(3, var(--stored-col)); align-items: center; column-gap: 12px; }
.row-list__head { padding: 0 12px 6px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.row-list__head span:nth-child(n+3) { text-align: center; }
.row-list .row-card__end, .row-list .stored { display: contents; }
.row-list .stored__item { justify-self: center; }
.row-list .stored__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row-list--scan .row-list__head, .row-list--scan .row-card { grid-template-columns: 32px minmax(0, 1fr) 150px repeat(3, var(--stored-col)); }
.row-list--scan .row-list__head span:nth-child(3) { text-align: left; }
.row-list__folder { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; }
.row-list__folder .icon, .row-list__folder .cube-icon { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.row-list__folder small { color: var(--ink-3); font-size: 13px; margin-left: 4px; }
@media (max-width: 560px) { .row-list { --stored-col: 44px; } .row-list .row-card { column-gap: 8px; } .row-list--scan .row-list__head, .row-list--scan .row-card { grid-template-columns: 32px minmax(0, 1fr) 110px repeat(3, var(--stored-col)); } }
.row-list .cubebox__none { display: none; }
.row-list:not(:has(.row-card)) .cubebox__none { display: block; }
.row-list:not(:has(.row-card)) .row-list__head { display: none; }
.row-list__folder--inner { padding-top: var(--s3, 12px); }
.row-list__folder--inner strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.row-list__folder[hidden] { display: none; }
.row-list__head { order: -2; }
/* A file's name wraps instead of being cut at "tes…": on a narrow pane (the room's Sandbox storage tab is one) the row becomes a two-line card: the name across the top, the check and the three places below. */
.row-list--scan .row-card__title, .row-list--scan .row-card__sub { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .row-list--scan .row-list__head { display: none; }
  .row-list--scan .row-card { grid-template-columns: 32px minmax(0, 1fr) repeat(3, 40px); row-gap: 8px; align-items: center; }
  .row-list--scan .row-card__lead { grid-row: 1; }
  .row-list--scan .row-card__body { grid-column: 2 / -1; }
  .row-list--scan .row-card__check { grid-column: 1 / 3; }
}
