/* DJ panel: extends home.css (sticker-book theme) */
.hidden { display: none !important; }
.dim { color: var(--ink-soft); }
.wrap > .panel, #dash > .panel, #dash .tools > .panel { margin-bottom: 0; }
.panel h3 { font-size: 1.35rem; }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 12px; border: 3px solid var(--line); border-radius: 999px; background: var(--bubble); color: #1d1033; font-family: var(--body); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border: 3px solid var(--line); border-radius: 14px; background: var(--tomato); color: #fff; font-weight: 900;
  text-shadow: 1px 1px 0 rgba(29, 16, 51, .4); box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.btn.ghost { background: var(--paper); color: var(--ink); text-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* login */
.login { max-width: 480px; margin: 5vh auto; text-align: center; background: var(--sun); color: #1d1033; transform: rotate(-1deg); }
.login .dim { color: #3d2a5e; font-weight: 800; }
.login h1 { font-size: 2.3rem; margin: 12px 0 8px; }
.login .ico { width: 72px; height: 72px; display: inline-block; animation: wob 3s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-8deg) scale(1.08); } }
.msg { min-height: 1.4em; font-weight: 900; margin-top: 12px; }
.msg.err { color: #8a1500; } .msg.ok { color: #0a6b4c; }

/* dashboard */
.tools { display: grid; grid-template-columns: 1.1fr 2fr; gap: 24px; margin-bottom: 24px; }
.months { display: flex; align-items: baseline; gap: 10px; }
.months output { font-family: var(--display); font-weight: 900; font-size: 3.6rem; color: var(--tomato); line-height: 1; min-width: 2ch; }
.crates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.crate {
  text-align: left; border: 4px solid var(--line); border-radius: 22px; padding: 18px; background: var(--c); color: #1d1033;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.crate:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 6px 6px 0 var(--ink); }
.crate[aria-pressed=true] { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink), inset 0 0 0 4px #fff; }
.crate .n { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1.1; }
.crate .l { font-weight: 900; }
.crate small { font-weight: 800; }
.list { margin-top: 24px; }
.tbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.scroll { max-height: 56vh; overflow: auto; border: 3px solid var(--line); border-radius: 18px; background: var(--cream); }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; background: var(--ink); color: var(--cream); text-align: left; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 10px; }
td { padding: 11px 10px; border-top: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); }
tr:hover td { background: color-mix(in srgb, var(--sun) 28%, transparent); }
td b { overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 3px 11px; border: 3px solid var(--line); border-radius: 999px; background: var(--c); color: #1d1033; font-size: .78rem; font-weight: 900; white-space: nowrap; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--tomato); cursor: pointer; }
.empty { text-align: center; padding: 42px 10px; color: var(--ink-soft); font-weight: 800; }
.empty big { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--tomato); }
.audit { margin-top: 24px; }
.audit li { list-style: none; padding: 9px 0; border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); font-size: .95rem; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 60; background: var(--ink); color: var(--cream); border: 3px solid var(--line); border-radius: 16px; padding: 14px 20px; font-weight: 900; box-shadow: var(--shadow); max-width: calc(100% - 32px); animation: rise .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
dialog { border: 4px solid var(--line); border-radius: 26px; background: var(--paper); color: var(--ink); padding: 26px; max-width: 460px; box-shadow: 10px 10px 0 var(--ink); }
dialog::backdrop { background: rgba(29, 16, 51, .6); }
dialog h3 { font-size: 1.5rem; }
dialog menu { display: flex; gap: 10px; justify-content: flex-end; padding: 0; margin-top: 22px; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--ink-soft); border-top-color: var(--tomato); animation: spin .8s linear infinite; vertical-align: -4px; margin-right: 8px; }

@media (max-width: 860px) {
  .tools, .crates { grid-template-columns: 1fr; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}
@media (max-width: 520px) { .badge { display: none; } }
