:root {
    font-family: Inter, Pretendard, "Noto Sans KR", Arial, sans-serif;
    color: #161822;
    background: #f2f4f9;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
.page-shell { width: min(1500px, calc(100% - 32px)); margin: 22px auto 54px; }
.seller-header, .panel { background: #fff; border: 1px solid #e5e8f1; border-radius: 20px; box-shadow: 0 8px 28px rgba(31, 42, 75, .06); }
.seller-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 26px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 5px; color: #5c68ef; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
h1 { margin: 0; font-size: 25px; }
.token-box { display: flex; gap: 8px; width: min(520px, 100%); }
input { width: 100%; min-height: 48px; border: 1px solid #d8ddea; border-radius: 11px; padding: 0 14px; color: #171923; background: #fff; }
input:focus { outline: 3px solid rgba(92, 104, 239, .13); border-color: #5c68ef; }
.btn { min-height: 44px; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: wait; }
.primary { color: #fff; background: #5c68ef; }
.primary:hover { background: #4855dc; }
.dark { color: #fff; background: #222631; }
.outline { color: #535b6d; background: #fff; border: 1px solid #cfd4df; }
.panel { padding: 24px 26px; margin-bottom: 18px; }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-title h2 { margin: 0; color: #5967ee; font-size: 22px; }
.panel-title p { margin: 8px 0 0; color: #687084; line-height: 1.55; }
.issue-grid { display: grid; grid-template-columns: 1.15fr .9fr 1fr 1.1fr auto; gap: 14px; align-items: end; }
label span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.issue-grid .btn { min-height: 48px; padding-inline: 26px; }
.issued-key { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 18px; margin-top: 18px; padding: 16px; border-radius: 12px; background: #eff1ff; border: 1px solid #d7dbff; }
.issued-key[hidden] { display: none; }
.issued-key p { margin: 5px 0 0; color: #626b80; font-size: 13px; }
.issued-key code { font-size: 18px; color: #303a9c; font-weight: 900; letter-spacing: .04em; }
.ledger-title { align-items: center; }
.ledger-controls { display: flex; gap: 8px; width: min(440px, 100%); }
.ledger-controls input { min-height: 44px; }
.message { min-height: 0; margin-bottom: 10px; color: #a12626; font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1000px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
th { color: #6b7384; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: #fafbfc; }
td { font-size: 14px; }
.buyer strong { display: block; }
.buyer small, .subtle { color: #858c9b; font-size: 12px; }
.key-hint, .hwid { font-family: Consolas, monospace; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 850; }
.badge.active { color: #0f7547; background: #e6f8ee; }
.badge.revoked { color: #a12626; background: #ffeded; }
.badge.expired { color: #8b5b00; background: #fff4da; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.row-actions button { min-height: 32px; border-radius: 7px; border: 1px solid #d5d9e2; background: #fff; color: #4f5768; font-size: 12px; cursor: pointer; }
.row-actions .danger { color: #ad2929; }
.empty { padding: 48px; text-align: center; color: #8a91a0; }

@media (max-width: 1100px) {
    .issue-grid { grid-template-columns: 1fr 1fr; }
    .issue-grid .btn { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .page-shell { width: min(100% - 18px, 1500px); margin-top: 9px; }
    .seller-header, .panel { padding: 19px 16px; border-radius: 15px; }
    .seller-header, .panel-title { flex-direction: column; }
    .token-box, .ledger-controls { width: 100%; }
    .issue-grid { grid-template-columns: 1fr; }
    .issued-key { grid-template-columns: 1fr; }
}
