.magic-stock{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.magic-stock>div{border:1px solid #64735866;border-radius:6px;padding:14px;min-width:0}.magic-stock h4{color:#d8c292;margin:0 0 8px}.magic-stock dl{margin:0}.magic-stock dl>div{display:flex;justify-content:space-between;gap:8px;font-size:.88rem}.magic-stock dd{margin:0;color:#e0d8c6}.magic-stock dt{overflow-wrap:anywhere}.magic-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.magic-form label{display:grid;gap:6px}.magic-form input,.magic-form select,.magic-pending input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #64735899;border-radius:5px;background:#101b14;color:#eadfc7;padding:10px;font:inherit}.magic-outcome,.magic-pending{padding:16px;margin-top:14px;border:1px solid #73836188;border-radius:6px;background:#19271b55;overflow-wrap:anywhere}.magic-outcome h4{margin:0 0 8px}.magic-outcome p{white-space:pre-line;line-height:1.65}.magic-outcome.is-rupture{border-color:#ac796b;background:#3a201a44}.magic-pending form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.magic-check{display:flex;gap:10px;align-items:center;margin:12px 0}.magic-saved{margin-top:20px}#magicMasterPanel details,#magicCharacterPanel details{margin-top:16px}#magicMasterPanel summary{cursor:pointer;color:#d8c292}#magicCharacterPanel[hidden],#magicMasterPanel[hidden]{display:none!important}#magicMasterPanel select{max-width:100%}
@media(max-width:600px){.magic-stock{grid-template-columns:1fr}.magic-stock dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}.magic-form{grid-template-columns:1fr}.magic-pending form{display:grid;grid-template-columns:1fr}}


/* Entry to the spell workbench from the character sheet. */
.magic-compose-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  box-sizing: border-box;
  margin: 20px 0 8px;
  padding: 18px 20px;
  border: 1px solid #ad95636b;
  border-radius: 10px;
  background: radial-gradient(ellipse at 0 50%, #6d835522, transparent 70%), linear-gradient(120deg, #1d3526, #111f18);
  color: #dfc99f;
  text-decoration: none;
  text-align: left;
  box-shadow: inset 0 1px 0 #ead6aa0d, 0 6px 18px #0003;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.magic-compose-sigil {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: #cbb182;
}
.magic-compose-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 5px;
}
.magic-compose-copy strong {
  color: #eddbb4;
  font: 600 1.55rem/1.15 var(--font-serif, Georgia, serif);
}
.magic-compose-copy > span {
  color: #c1c7b6;
  font-size: .78rem;
  line-height: 1.5;
}
.magic-compose-arrow {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  transition: transform .2s ease;
}
.magic-compose-link:hover {
  border-color: #d1b37cb3;
  box-shadow: inset 0 1px 0 #ead6aa14, 0 8px 24px #0004, 0 0 20px #7d985014;
  transform: translateY(-1px);
}
.magic-compose-link:hover .magic-compose-arrow { transform: translateX(3px); }
.magic-compose-link:focus-visible { outline: 2px solid #e5c68e; outline-offset: 4px; }
.magic-compose-link:active { transform: translateY(0); }
@media (max-width: 600px) {
  .magic-compose-link { gap: 10px; min-height: 84px; padding: 14px 12px; }
  .magic-compose-sigil { flex-basis: 38px; width: 38px; height: 38px; }
  .magic-compose-copy strong { font-size: 1.3rem; }
  .magic-compose-copy > span { font-size: .72rem; }
  .magic-compose-arrow { flex-basis: 18px; width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .magic-compose-link, .magic-compose-arrow { transition: none; }
  .magic-compose-link:hover, .magic-compose-link:hover .magic-compose-arrow { transform: none; }
}
