/* ComposerX: same family as the staff portal, in blue */
:root { --paper:#EDF1F7; --panel:#fff; --ink:#18212E; --muted:#5B6878; --line:#D5DCE8; --blue:#1F5FBF; --blue-dark:#174A96; --tint:#E6EEFA; --green:#1E7A4D; --amber:#B5791F; --red:#A5301F; --radius:4px; }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--paper); color:var(--ink); }
body { font: 15px/1.55 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { color: var(--blue); } a:hover { color: var(--blue-dark); }
h1 { font: 600 1.7rem Georgia, serif; margin: 0 0 14px; } h2 { font-size: 1.05rem; margin: 0 0 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 20px 60px; }
.top { display:flex; align-items:center; gap:24px; padding:12px 24px; background:var(--panel); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--blue); } .brand img { height:22px; width:auto; display:block; } .brand b { font:600 .85rem Inter, sans-serif; letter-spacing:.18em; text-transform:uppercase; color:var(--ink); border-left:1px solid var(--line); padding-left:10px; }
.top nav { display:flex; gap:4px; } .top nav a { text-decoration:none; color:var(--muted); padding:6px 12px; border-radius:var(--radius); } .top nav a.on, .top nav a:hover { background:var(--tint); color:var(--blue-dark); }
.who { margin-left:auto; color:var(--muted); font-size:.9rem; } .who a { margin-left:10px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; margin:0 0 18px; }
.small-panel { padding:10px 16px; }
.count { font-size:.8rem; color:var(--muted); background:var(--tint); padding:1px 8px; border-radius:10px; }
.tbl { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--line); margin:0 0 18px; }
.panel .tbl { border:0; margin:0 0 10px; }
.tbl th { text-align:left; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); padding:9px 12px; border-bottom:1px solid var(--line); }
.tbl td { padding:10px 12px; border-bottom:1px solid #EAEFF6; vertical-align:top; } .tbl tr.dim td { opacity:.55; }
.actions { display:flex; gap:6px; flex-wrap:wrap; align-items:flex-start; }
/* buttons inside a table cell sit side by side on one line (a flex table cell would stack them) */
td.actions { display:table-cell; white-space:nowrap; }
td.actions > a, td.actions > form, td.actions > details { display:inline-block; vertical-align:middle; margin:0 6px 4px 0; }
td.actions > details[open] { display:block; white-space:normal; }
.small { font-size:.85rem; } .muted { color:var(--muted); } .pre { white-space:pre-wrap; margin:0; } .crumb { margin:0 0 4px; color:var(--muted); }
.err { color: var(--red); }
.btn { display:inline-block; border:1px solid var(--blue); background:var(--blue); color:#fff; padding:8px 16px; border-radius:var(--radius); font:inherit; font-weight:500; cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--blue-dark); color:#fff; } .btn:disabled { opacity:.6; cursor:default; }
.btn-small { padding:4px 10px; font-size:.85rem; } .btn-ghost { background:transparent; color:var(--blue); } .btn-ghost:hover { background:var(--tint); color:var(--blue-dark); }
.btn-green { background:var(--green); border-color:var(--green); } .btn-green:hover { background:#17613c; }
.badge { display:inline-block; padding:1px 9px; border-radius:10px; font-size:.78rem; font-weight:500; vertical-align:middle; }
.b-green { background:#DDF1E6; color:#17613c; } .b-amber { background:#FBEBCB; color:#8a5a10; } .b-blue { background:var(--tint); color:var(--blue-dark); } .b-red { background:#F7E0DC; color:var(--red); } .b-grey { background:#E8ECF2; color:var(--muted); }
.flash { padding:10px 14px; border-radius:var(--radius); margin:0 0 16px; background:#DDF1E6; color:#17613c; } .flash-err { background:#F7E0DC; color:var(--red); } .flash-warn { background:#FBEBCB; color:#8a5a10; }
label { display:block; font-size:.9rem; font-weight:500; margin:0 0 12px; }
input, select, textarea { display:block; width:100%; margin-top:4px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius); font:inherit; background:#fff; color:var(--ink); }
input[type=checkbox] { display:inline; width:auto; margin:0 6px 0 0; } label.check { display:inline-block; margin-right:16px; font-weight:400; }
fieldset { border:1px solid var(--line); border-radius:var(--radius); margin:0 0 12px; padding:8px 12px; } legend { font-size:.9rem; font-weight:500; padding:0 6px; }
.grid-form { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; } .grid-form .wide { grid-column:1 / -1; }
.stack { display:block; } .row-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; } .row-form input, .row-form select { width:auto; margin:0; min-width:200px; }
form.inline, details.inline { display:inline-block; margin:0; } details.inline summary { list-style:none; cursor:pointer; } details.inline[open] { display:block; width:100%; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:18px; } @media (max-width:760px) { .two, .grid-form { grid-template-columns:1fr; } }
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.card { display:block; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; text-decoration:none; color:var(--ink); } .card:hover { border-color:var(--blue); } .card h3 { margin:0 0 4px; }
.tabs { display:flex; gap:4px; margin:0 0 12px; } .tabs a { padding:5px 14px; border-radius:var(--radius); text-decoration:none; color:var(--muted); background:#E3E9F3; } .tabs a.on { background:var(--blue); color:#fff; }
.callout { background:var(--tint); border-left:4px solid var(--blue); padding:12px 16px; margin:12px 0; border-radius:var(--radius); }
.feed { list-style:none; margin:0; padding:0; } .feed li { padding:4px 0; border-bottom:1px solid #EAEFF6; }
.auth-card { max-width:380px; margin:8vh auto 0; background:var(--panel); border:1px solid var(--line); padding:26px 28px; border-radius:var(--radius); } .auth-card h1 { font-size:1.4rem; text-align:center; } .auth-card h1 .logo { display:block; width:min(250px,80%); height:auto; margin:0 auto 10px; }
.auth-card h1 span { display:block; font:600 .85rem Inter, sans-serif; letter-spacing:.2em; text-transform:uppercase; color:var(--blue); }
code { background:var(--tint); padding:1px 5px; border-radius:3px; }
/* player */
.transport { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:12px; } .time { font-variant-numeric: tabular-nums; font-weight:600; }
.seek { position:relative; height:34px; background:#E3E9F3; border-radius:var(--radius); cursor:pointer; overflow:hidden; user-select:none; }
.seek .bar { position:absolute; left:0; top:0; bottom:0; width:0; background:rgba(31,95,191,.35); border-right:2px solid var(--blue); }
.mk { position:absolute; top:0; bottom:0; width:3px; margin-left:-1px; background:var(--amber); } .mk.composer { background:var(--green); }
.notes { list-style:none; margin:0 0 14px; padding:0; } .notes li { display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid #EAEFF6; }
.notes .ts { flex:0 0 auto; min-width:62px; text-align:center; background:var(--tint); color:var(--blue-dark); border:0; border-radius:var(--radius); padding:3px 8px; font-weight:600; font-size:.85rem; cursor:pointer; } .notes .ts.none { background:#E8ECF2; color:var(--muted); cursor:default; font-weight:500; }
.notes .nb { flex:1; } .notes .draft { background:#FFFBEF; } .notes .x { border:0; background:none; font-size:1.3rem; color:var(--muted); cursor:pointer; }
.note-form textarea { margin-bottom:8px; } .note-top { display:flex; gap:12px; align-items:center; margin-bottom:6px; }
.progress { height:8px; background:#E3E9F3; border-radius:4px; overflow:hidden; margin:8px 0; } .progress div { height:100%; width:0; background:var(--blue); transition:width .2s; }
