:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#17304c;background:#f5f8fc}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #e2e9f0;display:flex;align-items:center;justify-content:space-between;padding:18px max(24px,calc((100vw - 1050px)/2))}header a{color:#123456;text-decoration:none}nav a{margin-left:20px}.brand{font-size:24px;font-weight:800;color:#146e81}.brand small{font-size:12px;font-weight:500;color:#718198}main{max-width:1050px;margin:auto;padding:35px 24px 65px}.hero{padding:25px 0 20px;max-width:720px}.hero h1{font-size:clamp(32px,5vw,53px);line-height:1.12;margin:8px 0}.hero p{font-size:17px;color:#596e81}.eyebrow{letter-spacing:.14em;font-size:11px;color:#18839a;font-weight:800}.panel,.paper{background:white;border:1px solid #e2eaf1;border-radius:16px;padding:28px;margin:20px 0;box-shadow:0 5px 24px #14283c08}.narrow{max-width:540px}label{display:block;font-size:13px;font-weight:700;margin:14px 0;color:#2a4158}input,select{display:block;width:100%;padding:12px 13px;margin-top:7px;border:1px solid #cbd8e4;border-radius:9px;font:inherit;background:#fff;color:#17304c}button,.button{display:inline-block;background:#147c90;color:white;border:0;border-radius:9px;padding:12px 20px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}.outline{background:white;border:1px solid #147c90;color:#147c90}.actions{display:flex;gap:12px;margin-top:20px}.two,.three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.muted{color:#718198;font-size:13px}.alert{background:#fff3e3;border:1px solid #ffd9a1;padding:14px;border-radius:10px;color:#6b4b18}.heading{display:flex;justify-content:space-between;align-items:center}.paper{max-width:820px}.paper h2{text-align:center}.question{margin:22px 0;line-height:1.65}.question ol{margin-top:7px}footer{text-align:center;color:#7b8b99;padding:22px;font-size:12px}@media(max-width:600px){.two,.three{grid-template-columns:1fr}.heading{display:block}.panel{padding:20px}header{padding:16px 20px}.brand{font-size:19px}}

/* PaperCraft v0.6 library */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.stat{background:#fff;border:1px solid #e2eaf1;border-radius:12px;padding:19px}.stat span{display:block;color:#64788a;font-size:13px}.stat strong{display:block;font-size:32px;margin-top:7px;color:#147c90}.library{margin-top:34px}.library-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.library-search label{flex:1;min-width:220px}.library-search button,.library-search .button{margin-bottom:14px}.table-scroll{overflow-x:auto}.library-table{border-collapse:collapse;width:100%;font-size:13px;min-width:850px}.library-table th{text-align:left;color:#617487;border-bottom:2px solid #e2eaf1;padding:13px 9px}.library-table td{vertical-align:top;padding:15px 9px;border-bottom:1px solid #e9eef4}.library-actions{min-width:170px}.library-actions a{display:inline-block;margin:0 9px 7px 0;color:#126e84;font-weight:600}.library-pages{display:flex;justify-content:space-between;gap:16px;margin-top:20px}.library-pages a{color:#126e84}@media(max-width:650px){.stats{grid-template-columns:1fr}.actions{flex-wrap:wrap}}

/* v0.7 dashboard accessibility */
.library-table{min-width:850px}.library-actions{min-width:180px}.library-actions a{display:inline-block;padding:5px 8px;margin:3px;border:1px solid #cbd5e1;border-radius:6px;white-space:nowrap}.table-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}.paper{overflow-wrap:anywhere}

/* v0.7.1 protected full-paper preview */
.preview-intro h2{margin:4px 0 10px}.preview-facts{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 22px}.preview-facts span{background:#edf7f9;border:1px solid #d6ebef;border-radius:10px;padding:12px 18px;color:#3c6070}.preview-facts strong{font-size:20px;color:#0c7186;margin-right:5px}.preview-paper-heading{text-align:center;border-bottom:1px solid #e5edf2;padding-bottom:18px}.preview-paper-heading h2{margin:8px 0}.preview-section-title{margin:26px 0 12px;color:#24455b}.preview-visible{padding:12px 0;border-bottom:1px solid #edf1f5}.preview-locked{border:1px solid #e2eaf1;background:#fafcfe;border-radius:12px;padding:16px 18px;margin:14px 0}.locked-question-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.lock-label{margin-left:auto;color:#64788a;font-size:12px;font-weight:700}.preview-skeleton{filter:blur(2.5px);opacity:.56;pointer-events:none;margin-top:14px}.preview-skeleton span{display:block;background:#b5c4d1;height:11px;border-radius:6px;margin:10px 0;width:89%}.preview-skeleton span:nth-child(2n){width:67%}.preview-skeleton span:nth-child(3n){width:76%}.preview-unlock{text-align:center;padding:26px 18px;margin-top:24px;background:#eef8fa;border:1px solid #cce6eb;border-radius:14px}.preview-unlock p{color:#587184}.preview-unlock .button{margin-top:8px}@media(max-width:600px){.preview-facts{gap:8px}.preview-facts span{padding:9px 12px}.lock-label{margin-left:0}}

/* v0.8 paper library - responsive cards, no horizontal table overflow */
.pc-paper-list{display:grid;gap:14px;margin-top:18px}.pc-paper-card{border:1px solid #dbe4eb;border-radius:14px;padding:18px;background:#fff;min-width:0}.pc-paper-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.pc-paper-head strong{font-size:1.05rem;overflow-wrap:anywhere}.pc-status{border-radius:50px;padding:5px 12px;font-size:.8rem;font-weight:700;white-space:nowrap;background:#e9edf3;color:#34445a}.pc-status-paid{background:#dff5e9;color:#176341}.pc-status-unpaid{background:#fff2d6;color:#85530b}.pc-paper-meta{display:grid;grid-template-columns:2fr 2fr 1fr;gap:14px;margin:16px 0}.pc-paper-meta>div{overflow-wrap:anywhere}.pc-paper-meta small{display:block;color:#657589;font-weight:700;margin-bottom:4px}.pc-paper-actions{display:flex;flex-wrap:wrap;gap:8px}.pc-paper-actions a{display:inline-flex;padding:8px 12px;border:1px solid #c5dce2;border-radius:8px;text-decoration:none;font-weight:700;font-size:.85rem;color:#0d7385}.pc-paper-actions a.pc-pay{background:#0f8290;color:white;border-color:#0f8290}@media(max-width:640px){.pc-paper-meta{grid-template-columns:1fr}.pc-paper-card{padding:14px}.pc-paper-head{flex-wrap:wrap}}
/* PaperCraft - Question editor */

.question-editor textarea,
textarea[name="question"],
textarea[name="question_text"] {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid #c7d7e8;
    border-radius: 10px;
    background: #fff;
    color: #17324d;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.question-editor textarea:focus,
textarea[name="question"]:focus,
textarea[name="question_text"]:focus {
    outline: 2px solid #13869a;
    outline-offset: 1px;
}