:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #edf2ed; background: #101413; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, summary, .creator-button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
.creator-button[aria-disabled="true"] { cursor: default; opacity: .5; }
.creator-header { min-height: 72px; display: flex; gap: 24px; align-items: center; padding: 16px 28px; border-bottom: 1px solid #303934; background: #191e1c; }
.creator-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; white-space: nowrap; }
.creator-brand img { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; }
.creator-header nav { display: flex; flex: 1; gap: 24px; align-items: center; justify-content: center; font-size: 14px; }
.creator-header nav a:hover, .creator-footer a:hover, .download-links a:hover { color: #efcb62; }
.creator-header .wallet-connect { margin-left: auto; }
.creator-header .wallet-button { min-height: 40px; padding: 8px 14px; color: #edf2ed; background: #242a27; border: 1px solid #4b5850; border-radius: 6px; font-weight: 700; }
.creator-header .wallet-address { display: none; }
.creator-main { max-width: 920px; margin: auto; padding: 48px 28px 60px; }
.creator-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h1 { font-size: 30px; line-height: 1.25; margin: 8px 0 0; overflow-wrap: anywhere; }
h2 { font-size: 18px; margin: 0; }
.eyebrow { font-size: 11px; font-weight: 800; color: #efcb62; }
.connect-section { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-block: 1px solid #303934; }
.connection-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.connection-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; color: #e4e9e5; background: #242a27; border: 1px solid #46514a; border-radius: 6px; }
.connection-icon svg { width: 24px; height: 24px; }
.connection-state { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: #a8b4ac; font-size: 13px; }
.state-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #83908a; }
[data-state="authorized"] .state-dot { background: #8ad28b; }
[data-state="authorized"] { color: #a5d5a5; }
[data-state="error"] .state-dot { background: #ed8d81; }
[data-state="error"] { color: #edb3ab; }
.creator-button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; border: 1px solid #4b5850; border-radius: 6px; padding: 9px 14px; color: #edf2ed; background: #242a27; font-weight: 700; font-size: 14px; }
.creator-button.primary { color: #171913; background: #efcb62; border-color: #efcb62; }
.creator-button.primary:hover { background: #f5d87c; }
.creator-button.secondary { background: #242a27; }
.icon-button { width: 40px; height: 40px; min-height: 40px; flex: 0 0 40px; padding: 8px; }
svg { width: 18px; height: 18px; flex: 0 0 18px; }
.creator-status { min-height: 22px; margin: 12px 0 20px; font-size: 13px; line-height: 1.5; color: #b4c0b7; overflow-wrap: anywhere; }
.draft-section { border-bottom: 1px solid #303934; }
summary { font-weight: 600; font-size: 14px; padding: 15px 0; }
summary span { color: #a8b4ac; margin-left: 8px; font-weight: 400; }
.draft-list { list-style: none; margin: 0; padding: 0 0 12px; }
.draft-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #252f28; }
.draft-detail { flex: 1; min-width: 0; }
.draft-detail strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.draft-detail small { display: block; margin-top: 5px; color: #a8b4ac; font-size: 12px; }
.creator-footer { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 13px; }
.creator-footer a, .text-button { display: inline-flex; align-items: center; gap: 8px; }
.text-button { min-height: 40px; border: 0; padding: 8px 0; background: none; color: #b4c0b7; font-size: 13px; }
.creator-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 24px; border: 1px solid #4b5850; border-radius: 8px; background: #191e1c; color: #edf2ed; }
.creator-dialog::backdrop { background: rgb(0 0 0 / .68); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-state { font-size: 13px; color: #b4c0b7; margin: 16px 0; }
.dialog-actions { display: flex; gap: 12px; margin: 16px 0; align-items: center; }
.setup-request { display: block; width: 100%; min-height: 132px; resize: vertical; border: 1px solid #46514a; border-radius: 5px; padding: 12px; background: #101413; color: #c4d0c7; font-size: 12px; line-height: 1.6; }
.dialog-feedback { min-height: 20px; font-size: 12px; color: #efcb62; overflow-wrap: anywhere; }
.manual-options { border-top: 1px solid #303934; }
.command-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; align-items: center; gap: 8px; margin-top: 12px; }
.command-row label { color: #b4c0b7; font-size: 12px; }
.command-row input { width: 100%; min-width: 0; height: 40px; background: #101413; color: #c4d0c7; border: 1px solid #46514a; border-radius: 5px; padding: 8px; font: 12px ui-monospace, monospace; }
.download-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 12px; }
.download-links a { display: inline-flex; gap: 8px; align-items: center; }
.connection-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #303934; }
.connection-item div { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.connection-item small { display: block; margin-top: 6px; color: #a8b4ac; font-size: 12px; }
.empty-state { padding: 16px 0; color: #a8b4ac; font-size: 14px; }
.creator-consent { max-width: 560px; margin: 48px auto; padding: 24px; }
.creator-consent h1 { font-size: 26px; margin-bottom: 20px; }
.creator-consent dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
dd { margin: 0; overflow-wrap: anywhere; }
dt { color: #a8b4ac; }
.creator-scope { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.creator-warning { color: #efcb62; }
.creator-actions { display: flex; gap: 12px; margin-top: 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #efcb62; outline-offset: 3px; }
@media (max-width: 650px) {
  .creator-header { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .creator-header nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .creator-main { padding: 32px 16px 40px; }
  h1 { font-size: 26px; }
  .connect-section { align-items: stretch; flex-direction: column; gap: 24px; }
  .creator-footer { gap: 12px; flex-wrap: wrap; }
  .creator-dialog { padding: 20px 16px; }
}
