#resources-root{max-width:1450px;margin:0 auto;padding:30px 28px 48px}.resource-heading h1{margin:4px 0 10px}.resource-heading p{margin:0}.resource-eyebrow{font-size:11px;letter-spacing:.16em;font-weight:700;opacity:.7}.resource-controls{display:flex;gap:18px;flex-wrap:wrap;margin:28px 0 12px}.resource-controls label{display:grid;gap:7px;font-size:13px;min-width:250px}.resource-controls input,.resource-controls select{min-height:40px;width:100%}.resource-access{font-size:13px;line-height:1.6;opacity:.85}.resource-access a{margin-left:8px}.resource-tabs{display:flex;gap:8px;border-bottom:1px solid #657c8955;margin:22px 0;padding-bottom:12px;flex-wrap:wrap}.resource-tabs button{min-height:38px}.resource-tabs button[aria-pressed=true]{background:#506e7e;color:#fff;border-color:#829ca9}#resource-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:16px}.resource-card{padding:20px;border:1px solid #78909a55;border-radius:12px;background:#ffffff05;display:flex;flex-direction:column;gap:12px;min-width:0}.resource-card h2{font-size:18px;line-height:1.4;margin:0}.resource-card p{font-size:13px;line-height:1.6;margin:0;opacity:.8}.resource-badge{font-size:11px;letter-spacing:.04em;border-radius:20px;padding:4px 9px;background:#8eaba426;width:max-content;color:inherit}.resource-card footer{margin-top:auto;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.resource-card footer a,.resource-card footer button{font-size:13px}.resource-chapter{grid-column:1/-1;font-size:15px;padding:16px 0 0;margin:0}#resource-import{margin-top:32px;padding:20px;border:1px solid #78909a55;border-radius:12px}#resource-import summary{cursor:pointer;font-weight:600}#resource-import progress{width:100%;margin-top:14px}#resource-import li{font-size:12px;line-height:1.7}#resource-import input{max-width:100%;margin:10px 0}#resource-viewer{width:min(1120px,96vw);max-width:96vw;height:90dvh;max-height:94dvh;padding:0;border-radius:12px;border:1px solid #78909a88;background:#354d5a;color:#f8f1e4;overflow:hidden}#resource-viewer::backdrop{background:#080d13bd}#resource-viewer>header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid #78909a55}#resource-viewer h2{font-size:18px;margin:0}#resource-viewer header p{font-size:12px;margin:5px 0 0;opacity:.8}.resource-viewer-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}#resource-close{width:36px;height:36px;padding:0;font-size:24px}#resource-download{color:#f8f1e4;font-size:13px}#resource-content{height:calc(100% - 83px);overflow:auto;padding:16px}#resource-content iframe{border:0;display:block;width:min(100%,820px);height:100%;min-height:500px;margin:auto;background:#fff}.resource-table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.6}.resource-table td{border:1px solid #81949d44;padding:9px 12px;vertical-align:top;min-width:90px;white-space:pre-wrap;overflow-wrap:anywhere}.resource-table tr:first-child td{font-weight:700}.resource-table tr:nth-child(even){background:#ffffff06}.resource-empty{grid-column:1/-1;padding:30px 0;opacity:.75}button,a,input,select{touch-action:manipulation}@media(max-width:760px){#resources-root{padding:22px 16px}.resource-controls label{min-width:0;flex:1 1 230px}#resource-list{grid-template-columns:1fr}#resource-viewer>header{padding:12px;align-items:flex-start}#resource-viewer h2{font-size:15px}.resource-viewer-actions{gap:8px}#resource-content{padding:8px}#resource-download{max-width:78px}.resource-table td{padding:7px;font-size:12px}}@media(prefers-reduced-motion:no-preference){#resource-viewer[open]{animation:resource-in 160ms ease-out}@keyframes resource-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}

/* The reader fills the remaining height even when mobile titles wrap. */
#resource-viewer[open]{display:flex;flex-direction:column}#resource-viewer>header{flex:0 0 auto}#resource-content{height:auto;min-height:0;flex:1 1 auto}

.resource-check-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;flex-wrap:wrap;font-size:13px;color:#bfccd0}
.resource-check-cell{width:46px!important;min-width:46px!important;text-align:center!important}
.resource-check-cell input{width:17px;height:17px;accent-color:#f9efd9;cursor:pointer}
.resource-table th{border:1px solid #81949d44;padding:9px 12px;text-align:left;background:#344e5d;font-weight:700}
.resource-row-checked td:not(.resource-check-cell){opacity:.58;text-decoration:line-through}
