.math-custom-page{max-width:56rem;margin:0 auto;padding:2rem 1rem 4rem}.math-custom-heading{margin:1rem 0 1.5rem}.math-custom-heading h1{font-size:1.75rem;font-weight:700;margin:.25rem 0 .75rem}.math-custom-heading p{margin:.25rem 0}.math-custom-title{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1.25rem;font-weight:700}.math-custom-title input{font-weight:400;border:1px solid var(--border);border-radius:.5rem;padding:.5rem .75rem}.math-custom-proposal-page{max-width:80rem;padding-top:1.5rem}.math-custom-proposal-page .math-custom-heading{margin:0 0 1.25rem}.math-custom-proposal-page .math-custom-heading h1{margin:0 0 .25rem;line-height:1.35}.math-custom-proposal-page .math-custom-heading p{font-size:.875rem;line-height:1.65}.math-custom-editor{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:3rem;align-items:start}.math-custom-editing,.math-custom-preview-panel{min-width:0}.math-custom-help{font-size:.875rem;line-height:1.65;margin:.35rem 0 .75rem}.math-custom-rows{list-style:none;padding:0;margin:0 0 1.5rem;display:flex;flex-direction:column;gap:.75rem}.math-custom-row{border:1px solid var(--border);border-radius:.875rem;padding:.75rem}.math-custom-card-header{display:grid;grid-template-columns:2.25rem minmax(0,1fr) 2.75rem;align-items:start;gap:.5rem;margin-bottom:.25rem}.math-custom-card-icon{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:50%;background:#e1eee8;color:#263f38}.math-custom-row-name{font-size:1rem;font-weight:700;line-height:1.5;margin:0;overflow-wrap:anywhere}.math-custom-card-meta{display:flex;align-items:center;justify-content:space-between;gap:.375rem;min-height:2.75rem}.math-custom-card-subtitle{flex:1;min-width:0;font-size:.8125rem;line-height:1.5;margin:0;color:var(--muted-foreground);overflow-wrap:anywhere}.math-custom-description{font-size:.875rem;line-height:1.6;margin:0;overflow-wrap:anywhere}.math-custom-content-details{margin:.25rem 0 .75rem;font-size:.875rem}.math-custom-content-details ul{margin:.375rem 0 0;padding-left:1.25rem;line-height:1.7}.math-custom-example{display:flex;gap:.625rem;align-items:center;padding:.625rem .75rem;border-radius:.5rem;background:#edf6f1;color:#263f38;line-height:1.6;overflow-wrap:anywhere}.math-custom-example-label{flex-shrink:0;font-size:.75rem;color:#536b60}.math-custom-example-text{display:block;min-width:0}.math-custom-example--calculation .math-custom-example-text{font-size:1.125rem}.math-custom-example--word{display:block}.math-custom-example--word .math-custom-example-label{display:block;margin-bottom:.1875rem;font-size:.6875rem;line-height:1.4}.math-custom-example--word .math-custom-example-text{font-size:.875rem;line-height:1.65}.math-custom-content-body[data-expanded=false] .math-custom-example--word .math-custom-example-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.math-custom-example math{font-size:1.25em;margin:0 .2em}.math-custom-row-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.5rem}.math-custom-row-count{display:inline-flex;align-items:center;gap:.125rem;border:1px solid var(--border);border-radius:.75rem;padding:.125rem;font-size:.875rem}.math-custom-row-count>span{padding-inline:.25rem}.math-custom-row-count output{min-width:1.25rem;text-align:center;font-variant-numeric:tabular-nums}.math-custom-actions button,.math-custom-pagination button,.math-custom-row button,.math-custom-undo button{border:1px solid var(--border);border-radius:.5rem;padding:.5rem .75rem;min-height:2.75rem;background:var(--background);font-size:.875rem}.math-custom-row-count button{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;padding:0}.math-custom-row .math-custom-reroll{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border-color:#a9c9ba;border-radius:.5rem;font-weight:600}.math-custom-row .math-custom-card-more{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;padding:0;border:0;border-radius:50%;background:#edf2ef}.math-custom-row .math-custom-card-more[data-state=open]{background:#dfe9e3}.math-custom-card-menu{border-radius:.75rem;padding:.375rem;max-width:calc(100vw - 2rem)}.math-custom-card-menu-item{min-height:2.75rem;padding:.5rem .75rem;gap:.625rem;border-radius:.5rem;cursor:pointer}.math-custom-actions button:disabled,.math-custom-pagination button:disabled,.math-custom-row button:disabled,.math-custom-undo button:disabled{opacity:.4;cursor:not-allowed}.math-custom-pagination button:focus-visible,.math-custom-row button:focus-visible,.math-custom-undo button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.math-custom-row .math-custom-detail-toggle{flex-shrink:0;margin-left:auto;min-height:2.75rem;padding:0;border:0;background:transparent;font-size:.8125rem;white-space:nowrap;text-decoration:underline;text-underline-offset:.2em}.math-custom-undo{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem;margin:.5rem 0 .75rem;background:#edf6f1;color:#263f38;border-radius:.5rem;font-size:.875rem}.math-custom-preview-panel{position:sticky;top:6rem;border-left:1px solid var(--border);padding-left:2rem}.math-custom-pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin:-.5rem 0 1rem}.math-custom-pagination output{font-variant-numeric:tabular-nums}.math-custom-save-note{font-size:.8rem;line-height:1.7;text-align:center;width:100%}.math-custom-save-note a{text-decoration:underline;text-underline-offset:.2em}.math-custom-report{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin-top:1.5rem;font-size:.875rem}@media (max-width:1023px){.math-custom-editor{grid-template-columns:minmax(0,1fr);gap:1.5rem}.math-custom-preview-panel{position:static;border-left:none;border-top:1px solid var(--border);padding:1.5rem 0 0}}@media (min-width:1024px){.math-custom-preview-panel .math-custom-preview{max-width:min(100%,calc((100dvh - 23rem) * .707));margin-inline:auto}}@media (max-width:479px){.math-custom-row{padding:.75rem}.math-custom-card-header,.math-custom-row-controls{gap:.5rem}.math-custom-row .math-custom-reroll{flex:1 0 auto;padding-inline:.5rem}.math-custom-row .math-custom-reroll,.math-custom-row-count{font-size:.8125rem}.math-custom-row-count output{min-width:1.25rem}.math-custom-row-count>span{padding-inline:.25rem}}.math-custom-row-notice{flex-basis:100%;font-size:.875rem;color:var(--destructive);margin:0}.math-custom-preview{display:grid;gap:1rem;margin-bottom:1.5rem}.math-custom-preview[aria-busy=true]{opacity:.5}.math-custom-sheet{position:relative;overflow:hidden;border:1px solid var(--border);background:#fff}.math-custom-sheet iframe{border:0;display:block}.math-custom-sheet-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;font-size:.875rem}.math-custom-actions{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.math-custom-actions .math-custom-create{width:100%;font-weight:700;padding:.75rem 1.5rem;background:var(--primary);color:var(--primary-foreground)}.math-custom-created{margin-top:1.5rem}.math-custom-created ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:.5rem}.math-custom-created li{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center}.math-custom-created a{text-decoration:underline}.math-custom-badge{display:inline-block;font-size:.75rem;border:1px solid var(--border);border-radius:999px;padding:.125rem .625rem}.math-custom-thumb{max-width:24rem;margin:0 auto 1.5rem;border:1px solid var(--border);border-radius:.5rem;overflow:hidden;background:#fff}.math-custom-thumb img{display:block;width:100%;height:auto}.weakness-entry{margin-top:1.5rem;padding:1rem;border:1px solid var(--border);border-radius:.5rem;background:#fff;font-size:.875rem}.weakness-entry>p{margin:0 0 .25rem}.weakness-review-button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:3rem;margin-top:.75rem;padding:.75rem 1rem;border:2px solid var(--primary);border-radius:.75rem;background:var(--background);color:var(--primary);font-weight:700}.weakness-review-button[aria-disabled=true]{opacity:.6;cursor:progress}.weakness-review-error{margin:.5rem 0 0;font-size:.875rem;color:var(--destructive)}.weakness-guide{margin:.75rem 0 0;font-size:.875rem}.weakness-guide a{text-decoration:underline}