/* storage's own additions to rc.css (tokens, buttons, inputs, the header come from there). */
.rc-main.wide { max-width: 760px; }
.bar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin: 0 0 var(--s3); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; min-width: 0; font-size: var(--t-h2); }
.crumbs a { text-decoration: none; }
.crumbs strong { font-weight: 650; overflow-wrap: anywhere; }
.sep { color: var(--muted); }
.actions { display: flex; gap: var(--s2); }
.namer { display: flex; gap: var(--s2); margin: 0 0 var(--s3); }
.namer input { flex: 1; min-width: 0; }

.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list:empty { display: none; }
.row { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s3); border-top: 1px solid var(--line); min-height: 56px; }
.row:first-child { border-top: 0; }
.row.note { color: var(--muted); font-size: var(--t-small); justify-content: space-between; }
.icon { width: 32px; height: 32px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center;
  font: 600 0.62rem/1 var(--mono); text-transform: uppercase; color: var(--muted); background: var(--sunk); }
.icon.folder { background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 4px 10px 6px 6px; }
.icon.image { background: color-mix(in srgb, #6f8fd8 25%, var(--sunk)); color: var(--fg); }
.icon.media { background: color-mix(in srgb, #c77fb0 25%, var(--sunk)); color: var(--fg); }
.icon.pic { overflow: hidden; padding: 0; }
.icon.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon.doc { background: color-mix(in srgb, var(--warn) 22%, var(--sunk)); color: var(--fg); }
.text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.name { overflow-wrap: anywhere; color: var(--fg); text-decoration: none; }
a.name:hover { color: var(--accent); text-decoration: underline; }
.meta { color: var(--muted); font-size: var(--t-small); }
.badge { font-size: 0.75rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 1px 8px; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 1.2rem; line-height: 1; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--sunk); }
.pop { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 190px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s1); box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.pop button { border: 0; justify-content: flex-start; background: transparent; }
.pop button:hover { background: var(--sunk); }

.progress { margin: var(--s2) 0; font-size: var(--t-small); color: var(--muted); }
.track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: var(--s1); }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.foot { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--t-small); padding: var(--s3) 2px var(--s8); }

.toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  width: min(560px, calc(100vw - 32px)); display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4);
  background: var(--fg); color: var(--bg); border-radius: var(--radius); box-shadow: 0 8px 28px rgb(0 0 0 / .25); font-size: var(--t-small); }
.toast > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast a, .toast .link { color: var(--bg); font-weight: 600; }
.toast.bad { background: var(--bad); color: #fff; }
.toast .linkbox { flex: 2; min-height: 32px; padding: 4px 8px; }

/* a share link opened in a browser */
.shared-by { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.shared-by .rc-who img { width: 24px; height: 24px; }
.shared-name { overflow-wrap: anywhere; margin-bottom: var(--s1); }
.shared-img { display: block; max-width: 100%; max-height: 70vh; border-radius: var(--radius); border: 1px solid var(--line); margin: var(--s3) 0; background: var(--sunk); }
.shared-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3);
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; margin: var(--s3) 0; font-size: var(--t-small); }
.shared-actions { display: flex; gap: var(--s2); margin: var(--s4) 0; }
.actions > * { height: 42px; }

/* Apps/<App>/data: what a copy is, and what you can do with it */
.datanote { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; justify-content: space-between; margin: 0 0 var(--s3); }
.datanote p { margin: 0; flex: 1 1 240px; overflow-wrap: anywhere; }
.datanote .bad { color: var(--bad); flex-basis: 100%; }
.datanote .muted { flex-basis: 100%; }
.dataacts { display: flex; gap: var(--s2); }

/* /usage, for the platform's owners */
.totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.totals div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.totals dt { color: var(--muted); font-size: var(--t-small); }
.totals dd { margin: 0; font-size: 1.4rem; font-weight: 650; font-variant-numeric: tabular-nums; }
table.usage { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
table.usage th, table.usage td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.usage .num { text-align: right; font-variant-numeric: tabular-nums; }
.ownerlink { margin-left: var(--s2); }
