.ink-editor{font-size:16px;font-weight:600;width:min(1280px,96vw);height:min(960px,94dvh);max-width:none;max-height:none;padding:0;border:1px solid #354333;border-radius:20px;background:#10151b;color:#edf1e9;overflow:hidden;box-shadow:0 30px 120px #000b}
.ink-editor[open]{display:flex;flex-direction:column}
.ink-editor::backdrop{background:#030709dc;backdrop-filter:blur(8px)}
.ink-editor button,.ink-editor input,.ink-editor select{font:inherit}
.ink-editor button{font-size:16px;font-weight:700;cursor:pointer;border:1px solid #36443e;border-radius:8px;padding:10px 14px;background:#202a31;color:#edf1e9}
.ink-editor button:disabled{opacity:.4;cursor:not-allowed}
.ink-editor .login{background:#c6f47d;color:#14210a;font-weight:750;justify-content:center}
.ink-editor .text-button{background:transparent;border:0;color:#bde984;padding:8px 0;text-align:left}
.ink-top{min-height:132px;flex-shrink:0;padding:20px 28px;gap:18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #29343b;box-sizing:border-box}
.ink-top h2{font-size:28px;font-weight:700;line-height:1.2;margin:7px 0;overflow-wrap:anywhere}.ink-top h2 span{color:#b1bdcb;font-size:18px;font-weight:600}.ink-top p{margin:0;color:#bac5d1;font-size:16px;font-weight:600}.ink-heading{display:block;font-size:20px;font-weight:700;line-height:1.3;color:#c6f47d}.ink-top>div{min-width:0}.ink-top>button{flex-shrink:0}
.ink-layout{display:grid;grid-template-columns:296px minmax(0,1fr);flex:1;min-height:0}
.ink-tools{padding:22px;overflow:auto;border-right:1px solid #29343b;display:flex;flex-direction:column;gap:16px}
.ink-balance{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;padding-bottom:14px;border-bottom:1px solid #29343b}.ink-balance strong{font-size:28px;font-weight:700;color:#cef492}.ink-balance span{font-size:16px;font-weight:600;color:#bbc7d2;grid-column:1}.ink-balance button{grid-column:2;grid-row:1/3}
.ink-tool-buttons{display:flex;gap:8px}.ink-tool-buttons button{flex:1;padding:10px 5px}.ink-tool-buttons button[aria-pressed=true]{border-color:#c6f47d;color:#c6f47d;background:#2c3926}
.ink-tools label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:16px;font-weight:700}.ink-tools input[type=color]{width:55px;height:34px;background:#10151b;border:1px solid #52644c;border-radius:6px;padding:2px}.ink-tools input[type=range]{width:100%;accent-color:#c6f47d}.ink-tools select{background:#202a31;color:#fff;border:1px solid #36443e;padding:6px 10px;border-radius:7px}.ink-tools output{font-weight:700;color:#c4d0db}
.ink-actions{display:grid;gap:10px}.ink-editor .ink-note{line-height:1.5;color:#b3c3d0;margin:0;font-size:14px;font-weight:600}#ink-draft-state{font-size:14px;font-weight:700;color:#b5e884}#ink-status{font-size:15px;font-weight:600;color:#c9ebad;line-height:1.6;margin:0;overflow-wrap:anywhere}#ink-status.error{color:#ffb8ad}
.ink-stage{container-type:size;overflow:auto;position:relative;padding:24px;background-color:#0b1015;background-image:radial-gradient(#283039 1px,transparent 1px);background-size:16px 16px;text-align:center}
.ink-paper{position:relative;width:min(100%,calc(100cqh * 734 / 1024),540px);aspect-ratio:734/1024;margin:0 auto;box-shadow:0 10px 35px #0008;flex-shrink:0}.ink-paper.zoomed{max-width:none;margin:0}.ink-paper img,.ink-paper canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.ink-paper img{object-fit:contain;pointer-events:none}.ink-paper canvas{touch-action:none;cursor:crosshair}
.ink-sheet{position:absolute;inset:0;background:#03070cce;display:flex;align-items:center;justify-content:center;padding:24px;z-index:3;box-sizing:border-box}.ink-sheet[hidden]{display:none}.ink-sheet-card{position:relative;max-width:650px;width:100%;max-height:100%;overflow:auto;background:#151d25;border:1px solid #415340;border-radius:16px;padding:28px;box-sizing:border-box;box-shadow:0 15px 60px #0008}.ink-sheet-card h3{font-size:26px;font-weight:700;margin:0 70px 22px 0}.ink-sheet-card p{font-size:16px;font-weight:600;line-height:1.6;color:#c8d4dc}.ink-sheet-card p strong{color:#d7f5ae}.ink-sheet-card .ink-cost{font-size:24px;font-weight:700}#ink-sheet-close{position:absolute;right:22px;top:18px}.ink-sheet-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.ink-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.ink-packs button{display:flex;flex-direction:column;gap:12px;align-items:center}.ink-packs span{font-size:16px;font-weight:600;color:#c3ced8}.ink-loading{padding:40px}.owned-caption [data-ink-card]{width:100%;margin-top:10px;font-size:13px}
@media(max-width:700px){.ink-editor{font-size:16px;font-weight:600;width:100vw;height:100dvh;border:0;border-radius:0}.ink-top{min-height:140px;padding:15px;gap:10px}.ink-heading{font-size:18px}.ink-top h2{font-size:23px}.ink-top p{font-size:14px}.ink-layout{grid-template-columns:180px minmax(0,1fr)}.ink-tools{padding:12px;gap:13px}.ink-stage{padding:12px}.ink-paper{width:100%}.ink-balance{grid-template-columns:1fr}.ink-balance button{grid-column:1;grid-row:auto}.ink-sheet{padding:12px}.ink-sheet-card{padding:22px}.ink-packs{grid-template-columns:1fr}}

/* Keep the draft price visible separately from the inventory balance. */
.ink-balance .ink-balance-label{grid-column:1;font-size:14px;font-weight:700}.ink-balance strong{grid-column:1}.ink-balance button{grid-row:1/4}
.ink-estimate{padding:12px 14px;border:1px solid #50663d;border-radius:9px;background:#1b261b;display:grid;gap:4px}.ink-estimate>span{font-size:16px;font-weight:700;color:#c1d2b5}.ink-estimate output{font-size:32px;font-weight:750;color:#d3fa9c}.ink-estimate small{font-size:14px;font-weight:600;color:#c0d0bd;line-height:1.5}.ink-estimate.insufficient{border-color:#aa7645}.ink-estimate.insufficient small{color:#ffd2a4}
.ink-paper canvas{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 22 4 15 17 2Q18 1 19 2L22 5Q23 6 22 7L9 20Z' fill='%23c6f47d' stroke='%230b1015' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='m4 15 5 5-7 2Z' fill='%23fff3d5' stroke='%230b1015' stroke-width='1'/%3E%3Cpath d='m15 4 5 5M2 22l1-3 2 2Z' fill='%230b1015' stroke='%230b1015' stroke-width='1'/%3E%3C/svg%3E") 2 22,crosshair}.ink-paper canvas.is-eraser{cursor:none}

/* Hollow footprint follows the actual card-space brush diameter at every zoom. */
.ink-cursor-outline{position:absolute;z-index:2;aspect-ratio:1;border:1px solid #fff;border-radius:50%;box-sizing:border-box;box-shadow:0 0 0 1px #10151b;transform:translate(-50%,-50%);pointer-events:none;background:transparent}.ink-cursor-outline[hidden]{display:none}
.ink-paper{overflow:hidden}.ink-coordinates{position:absolute}.ink-coordinates img{object-fit:fill}.ink-coordinates .ink-cursor-outline{aspect-ratio:auto}
