.coupon-entry{margin:12px 0 0;padding:0;border:0;background:transparent;text-align:left;color:var(--muted,#777);font-size:13px}
.coupon-entry summary{display:inline-flex;align-items:center;gap:5px;min-height:32px;cursor:pointer;list-style:none;font-size:13px;font-weight:400}
.coupon-entry summary::-webkit-details-marker{display:none}
.coupon-entry summary::after{content:"⌄";opacity:.65;font-size:12px}
.coupon-entry[open] summary::after{transform:rotate(180deg)}
.coupon-entry summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.coupon-body{max-width:480px;padding:8px 0 4px}
.coupon-redeem{display:flex;gap:8px;align-items:stretch}
.coupon-redeem input{flex:1;min-width:0;min-height:38px;font-size:14px;border-color:var(--border-strong,#ccc)}
.coupon-redeem button{flex:none;white-space:nowrap;min-height:38px;font-size:13px;padding:6px 14px}
.coupon-entry .note{margin:8px 0 0;font-size:12px}
.is-settings #dashboard .coupon-entry{grid-column:1;grid-row:2;margin:0}
.is-settings #dashboard .plan-panel{grid-row:1}
.is-settings #dashboard .device-panel{grid-row:3}
.is-settings #dashboard .email-panel{grid-row:4}
.is-settings #dashboard .logout-row{grid-row:5}
.coupon-entry .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.codes-page{max-width:1100px;margin:auto;padding:24px;font:16px/1.6 system-ui,"Microsoft YaHei",sans-serif;color:#172c41}
.codes-page header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}
.codes-page h1{margin:0;font-size:26px}
.codes-page h2{font-size:19px;margin:0 0 16px}
.codes-panel,.code-item{background:white;border:1px solid #dce1e5;border-radius:14px;padding:20px;margin-bottom:18px}
.codes-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}
.codes-fields label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.codes-page input:not([type=checkbox]){width:100%;box-sizing:border-box;min-width:0}
.codes-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.codes-enabled{display:flex;align-items:center;gap:8px}
.codes-enabled input{width:18px;height:18px}
.code-item h3{font-size:18px;margin:0 0 6px;overflow-wrap:anywhere}
.code-item p{margin:6px 0;color:#526579}
.codes-message{white-space:pre-wrap;overflow-wrap:anywhere}
.code-record{padding:10px 0;border-bottom:1px solid #e3e7ea;overflow-wrap:anywhere}
.codes-page nav{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}
@media(max-width:700px){.codes-page{padding:16px}.codes-fields{grid-template-columns:1fr}.codes-page header{align-items:flex-start}}
