/* Hoofprint Studio shell styles — shared by the launcher, admin, font center and app top bars. */
:root {
  --brand: #9b59b6;
  --brand-dark: #692784;
  --ink: #2c2f34;
  --paper: #ffffff;
  --page: #f6f4f8;
  --muted: #6b6f76;
  --line: #e2dde8;
  --ok: #1d7a46;
  --warn: #a15c00;
  --bad: #b3261e;
  --chip: #efe7f4;
  --focus: #7c3aed;
  --serif: "Source Serif 4", "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ece9f0; --paper: #1f1d23; --page: #17161a; --muted: #a7a2af; --line: #34303b; --chip: #2f2638;
    --ok: #57c48a; --warn: #f0a640; --bad: #ff8a80; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.45 var(--sans); color: var(--ink); background: var(--page); }
a { color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #c79be0; } }
button, .btn {
  font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: .45rem .9rem; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
button:hover, .btn:hover { border-color: var(--brand); }
button.primary, .btn.primary { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--brand); }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input, select, textarea { font: inherit; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }

/* Masthead / top bar */
.studio-bar {
  display: flex; align-items: center; gap: 1rem; padding: 0 1rem; height: 48px; background: var(--ink); color: #fff;
  border-bottom: 3px solid var(--brand);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .studio-bar { background: #0f0e11; } }
.studio-bar .mark { font: 700 1.05rem/1 var(--serif); letter-spacing: .14em; white-space: nowrap; color: #fff; text-decoration: none; }
.studio-bar .mark small { display: block; font: 600 .62rem/1.2 var(--sans); letter-spacing: .08em; color: #d9c4e6; }
.studio-bar nav { display: flex; gap: .15rem; overflow-x: auto; flex: none; scrollbar-width: none; }
.studio-bar > * { flex: none; }
.studio-bar > span:not(.spacer) { min-width: 0; }
.studio-bar .spacer + span { flex: 1 1 0; }
.studio-bar nav a { color: #e9e3ee; text-decoration: none; padding: .35rem .65rem; border-radius: 5px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.studio-bar nav a:hover { background: #ffffff1a; }
.studio-bar nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.studio-bar nav a.soon { opacity: .55; }
.studio-bar .spacer { flex: 1 1 0; min-width: 0; }
@media (max-width: 1500px) { .studio-bar .mark small { display: none; } }
.studio-bar .who { font-size: .85rem; color: #d9d3df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.studio-bar button, .studio-bar .btn { white-space: nowrap; }
.studio-bar button { background: transparent; color: #fff; border-color: #ffffff40; padding: .25rem .6rem; font-size: .85rem; }

main.wrap { max-width: 1080px; margin: 0 auto; padding: 1.5rem 16px 3rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.muted { color: var(--muted); }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: var(--chip); }
.chip.ok { color: var(--ok); } .chip.warn { color: var(--warn); } .chip.bad { color: var(--bad); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.notice { padding: .8rem 1rem; border-radius: 8px; background: var(--chip); border-left: 4px solid var(--brand); }
.notice.bad { border-left-color: var(--bad); }

/* Modal dialogs (Drive browser, lock/conflict prompts) */
dialog.studio { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px #0006; }
dialog.studio::backdrop { background: #0008; }
dialog.studio header { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
dialog.studio header h2 { margin: 0; font-size: 1.15rem; flex: 1; }
dialog.studio .body { padding: 1rem; overflow: auto; max-height: calc(100vh - 220px); }
dialog.studio footer { display: flex; justify-content: flex-end; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: .2rem; font-size: .9rem; margin-bottom: .6rem; }
.crumbs button { padding: .1rem .4rem; border: 0; background: none; color: var(--brand-dark); font-weight: 600; }
.files { list-style: none; margin: 0; padding: 0; }
.files li button { width: 100%; justify-content: flex-start; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .55rem .4rem; font-weight: 500; text-align: left; }
.files li button[aria-selected="true"] { background: var(--chip); }
.files .thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--chip); flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.files .meta { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; padding-left: .5rem; }
.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; z-index: 50; max-width: calc(100vw - 32px); }
