:root { --ink: #2b2140; --soft: #6b6280; --bg: #fff8ef; --card: #fff; --pink: #ff5078; --orange: #ffaa00;
        --green: #28c850; --blue: #00a0ff; --line: #eadfd0; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .7rem 1.2rem; background: var(--ink); }
header a { color: #fff; text-decoration: none; }
.brand { font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.dots { display: grid; grid-template-columns: 8px 8px; gap: 2px; }
.dots i { width: 8px; height: 8px; display: block; }
.dots i:nth-child(1) { background: var(--pink); } .dots i:nth-child(2) { background: var(--orange); }
.dots i:nth-child(3) { background: var(--green); } .dots i:nth-child(4) { background: var(--blue); }
nav { display: flex; flex-wrap: wrap; gap: 1rem; flex: 1; align-items: center; }
nav a:hover { text-decoration: underline; }
.me { margin-left: auto; color: #ccc; display: flex; gap: .7rem; align-items: center; }
main { max-width: 860px; margin: 0 auto; padding: 1.2rem; }
h1 { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
h1 small.live { font-size: .7rem; background: var(--green); color: #fff; padding: .1rem .5rem; border-radius: 1rem; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
a { color: #6a3fd0; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.narrow { max-width: 380px; }
.hello { text-align: center; } .hello .card { margin: 1rem auto; text-align: left; }
button, .button { font: inherit; font-weight: 600; background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  padding: .45rem 1rem; cursor: pointer; text-decoration: none; display: inline-block; box-shadow: 0 3px 0 #0077bb; }
button:active, .button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0077bb; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.small, .button.small { font-size: .85rem; padding: .2rem .6rem; }
button.danger { background: var(--pink); box-shadow: 0 3px 0 #c02850; }
button.link { background: none; box-shadow: none; color: #ccc; padding: 0; font-weight: normal; }
form.inline { display: inline; } form.danger { margin-top: 2rem; }
input, select, textarea { font: inherit; padding: .35rem .5rem; border: 2px solid var(--line); border-radius: 8px; max-width: 100%; }
label { font-weight: 600; } .helptext { display: block; color: var(--soft); font-size: .85rem; }
ul.errorlist { color: var(--pink); padding-left: 1rem; }
.msg { padding: .6rem 1rem; border-radius: 10px; background: #e6f7ff; }
.msg.error { background: #ffe3ea; } .msg.success { background: #e3f9e8; }
.hint, .meta, small { color: var(--soft); } .empty { color: var(--soft); font-style: italic; }
.error { color: #c02850; } .working { color: var(--orange); }
code { font-size: .85em; background: #f3ecff; padding: 0 .25rem; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
img.px { image-rendering: pixelated; background: #000; border-radius: 4px; vertical-align: middle; }
.events { list-style: none; padding: 0; }
.events li { padding: .45rem .6rem; border-left: 4px solid var(--line); margin: .3rem 0; background: var(--card); border-radius: 0 8px 8px 0; }
.events li.fresh { animation: pop 1.2s; }
@keyframes pop { from { background: #fff1b8; } }
.events time { color: var(--soft); font-size: .85rem; margin-right: .5rem; }
.ev-cardtap { border-left-color: var(--orange) !important; }
.ev-trackready { border-left-color: var(--green) !important; }
.ev-trackfailed { border-left-color: var(--pink) !important; }
.chip { font-size: .8rem; background: #f3ecff; border-radius: 1rem; padding: 0 .5rem; margin-left: .3rem; text-decoration: none; }
.chip.todo, .todo { background: #fff1b8; }
.inbox { background: #fff1b8; border-radius: 14px; padding: .5rem 1.2rem; }
.albums, .cards { padding-left: 1.2rem; } .albums li { margin: .4rem 0; } .albums small { display: block; }
.tracks { list-style: none; padding: 0; counter-reset: t; }
.track { display: flex; gap: .8rem; align-items: flex-start; background: var(--card); border: 2px solid var(--line);
  border-radius: 12px; padding: .6rem; margin: .5rem 0; }
.track .body { flex: 1; } .track audio { width: 100%; height: 36px; margin: .3rem 0 0; }
.track.status-processing, .track.status-uploading { border-style: dashed; }
.track.status-failed { border-color: var(--pink); }
.inline-edit { display: flex; gap: .4rem; flex-wrap: wrap; } .inline-edit input { flex: 1; min-width: 10rem; }
.icons { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .8rem; }
.icons li a { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-decoration: none;
  background: var(--card); border-radius: 12px; padding: .6rem; border: 2px solid var(--line); }
.icons.small { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
#upload-progress { list-style: none; padding: 0; }
progress { width: 100%; } .big { font-size: 1.2rem; }
