:root{color-scheme:light;--ink:#11263e;--ink-soft:#41546a;--paper:#f6f3ed;--white:#fffefa;--line:#c9d0d2;--accent:#efbd4d;--accent-ink:#453000;--navy:#11263e;--focus:#b87509;--shadow:0 18px 44px rgba(17,38,62,.13)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.skip-link{position:absolute;top:-100px;left:16px;z-index:30;padding:12px;background:var(--white)}.skip-link:focus{top:8px}.site-header{background:var(--navy);color:#fff;position:relative;z-index:2}.header-inner{max-width:1380px;margin:auto;min-height:86px;padding:0 clamp(20px,4vw,55px);display:flex;align-items:center;gap:clamp(24px,5vw,72px)}.brand{display:flex;align-items:center;gap:12px;text-align:left;background:none;color:inherit;border:0;padding:4px 0;white-space:nowrap;font-weight:720;line-height:1.1;font-size:1.05rem}.brand small{display:block;font-weight:450;font-size:.71rem;color:#bfcbd4;margin-top:4px}.brand-mark{display:grid;place-items:center;width:41px;height:41px;background:var(--accent);color:var(--navy);font:750 1.05rem Georgia,serif;letter-spacing:-.08em;flex:none}.top-nav{align-self:stretch;display:flex;align-items:center;gap:5px}.nav-item{height:100%;padding:0 14px;border:0;border-bottom:3px solid transparent;background:none;color:#cdd7df;font-size:.88rem;font-weight:650;white-space:nowrap}.nav-item.active{border-color:var(--accent);color:#fff}.nav-item:hover{color:#fff}.nav-count{background:var(--accent);color:var(--accent-ink);padding:1px 6px;border-radius:4px;margin-left:4px}.header-caption{margin-left:auto;color:#bfcbd4;font-family:Georgia,serif;font-style:italic;white-space:nowrap}.intro-wrap{max-width:1380px;margin:auto;padding:clamp(54px,7vw,100px) clamp(20px,4vw,55px) clamp(55px,7vw,90px);display:flex;align-items:end;justify-content:space-between;gap:35px}.section-index{font-size:.7rem;letter-spacing:.115em;font-weight:750;margin:0 0 16px;color:#526779}.intro-copy h1,.saved-header h1,.editor-head h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.035em;line-height:1.08;margin:0}.intro-copy h1{font-size:clamp(2.8rem,5.4vw,5.7rem);max-width:840px}.intro-copy h1 em{font-weight:400;color:#7d5b12}.intro-description{max-width:530px;margin:26px 0 0;color:var(--ink-soft);font-size:1.07rem}.intro-note{display:flex;align-items:center;gap:16px;flex:none;padding-bottom:10px;color:var(--ink-soft);font-size:.88rem;line-height:1.35}.note-number{font:400 4.7rem/.9 Georgia,serif;color:var(--ink);letter-spacing:-.075em}.catalog-shell{background:var(--white);border-top:1px solid var(--line);padding:clamp(32px,4vw,58px) clamp(20px,4vw,55px) 100px}.catalog-shell>*{max-width:1270px;margin-left:auto;margin-right:auto}.catalog-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px}.catalog-heading h2{font:400 clamp(1.6rem,2.7vw,2.3rem)/1.15 Georgia,serif;margin:0}.search-wrap{position:relative;display:block;width:min(370px,100%);flex:none}.search-wrap svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:20px;fill:none;stroke:currentColor;stroke-width:1.7;color:#45566a}.search-wrap input{height:49px;border:1.5px solid #8b99a3;border-radius:6px;background:#fff;width:100%;padding:0 15px 0 44px;color:var(--ink)}.search-wrap input::placeholder{color:#627486}.categories{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:30px 0 18px}.category-button{background:transparent;border:1px solid #8291a1;border-radius:5px;color:var(--ink);padding:10px 14px;min-height:44px;white-space:nowrap;font-size:.83rem;font-weight:650}.category-button.active{background:var(--ink);border-color:var(--ink);color:#fff}.category-button:not(.active):hover{background:#e8ebeb}.result-count{font-size:.8rem;color:#43576b;margin:0 auto 16px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}.module-card{position:relative;background:var(--white);border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0;display:flex;flex-direction:column;min-height:221px;padding:24px;text-align:left;color:var(--ink);transition:background .17s}.module-card:hover,.module-card:focus-visible{background:#f6f3e9}.module-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.module-number{font:400 1.1rem Georgia,serif;color:#755615}.module-category{color:#41556a;font-size:.72rem;font-weight:650}.module-card h3{font:400 1.65rem/1.14 Georgia,serif;margin:26px 0 9px}.module-card p{color:var(--ink-soft);font-size:.84rem;line-height:1.52;margin:0;max-width:330px}.module-card-bottom{margin-top:auto;padding-top:18px;font-size:.78rem;font-weight:700;color:#664c14}.empty-state{max-width:720px;text-align:center;padding:80px 24px}.empty-state h3{font:400 1.8rem Georgia,serif;margin:0 0 8px}.empty-state p{color:var(--ink-soft)}.text-action{border:0;border-bottom:1px solid currentColor;background:none;color:var(--ink);font-weight:700;padding:10px}.editor-view,.saved-view{max-width:1380px;margin:auto;padding:25px clamp(20px,4vw,55px) 90px}.editor-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:40px}.back-button{border:0;background:none;color:var(--ink);font-weight:650;padding:12px 0;min-height:44px}.editor-position{color:var(--ink-soft);font-size:.78rem}.editor-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:39px}.editor-head h1{font-size:clamp(2.6rem,5vw,4.7rem)}.editor-head p:last-child{color:var(--ink-soft);max-width:660px;margin:16px 0 0}.favorite-button{border:1.5px solid var(--ink);border-radius:5px;background:none;color:var(--ink);padding:12px 18px;min-height:46px;white-space:nowrap;font-weight:650}.favorite-button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:#a37416}.editor-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.85fr);gap:24px;align-items:start}.editor-main{background:var(--white);border:1px solid var(--line);padding:clamp(22px,3vw,40px)}.form-intro{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:25px}.form-intro h2,.aside-block h2{font:400 1.7rem Georgia,serif;margin:0 0 7px}.form-intro p{margin:0;color:var(--ink-soft);font-size:.86rem}.field{margin:0 0 22px}.field label{display:block;font-weight:700;font-size:.87rem;margin:0 0 7px}.field textarea,.field input,.field select{background:#fff;color:var(--ink);border:1.5px solid #8d9aa6;border-radius:5px;width:100%;min-height:48px;padding:10px 12px}.field textarea{resize:vertical;min-height:116px}.field input::placeholder,.field textarea::placeholder{color:#64788b}.field .field-hint{font-size:.75rem;color:#4a6175;margin:5px 0 0}.form-actions,.result-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:28px}.primary-button,.secondary-button{border-radius:5px;padding:12px 19px;min-height:47px;font-weight:720}.primary-button{background:var(--ink);color:#fff;border:1.5px solid var(--ink)}.primary-button:hover{background:#28445e}.secondary-button{background:transparent;color:var(--ink);border:1.5px solid #738498}.secondary-button:hover{background:#e8ebed}.form-error{color:#972e24;font-weight:700}.editor-aside{display:grid;gap:16px}.aside-block{background:#eaece9;border:1px solid #cbd2d1;padding:26px}.aside-block .section-index{margin-bottom:13px}.aside-block p{font-size:.84rem;color:#344b60;line-height:1.6;margin:0 0 12px}.aside-block p:last-child{margin-bottom:0}.aside-block strong{color:var(--ink)}.preview-block{background:#e9dfc8;border-color:#c0a56d}.preview-block .section-index{color:#604b20}.preview-block p{color:#3b3328}.preview-block h2{font:400 1.4rem Georgia,serif;margin:0 0 8px}.result-panel{margin-top:30px;background:#fffefa;border:1px solid var(--line);padding:clamp(22px,3vw,40px);box-shadow:var(--shadow)}.result-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.result-head h2{font:400 2.15rem Georgia,serif;margin:0 0 8px}.result-head p:last-child{font-size:.86rem;color:var(--ink-soft);margin:0}.prompt-length{white-space:nowrap;font-size:.75rem;color:var(--ink-soft)}#prompt-output{display:block;width:100%;min-height:360px;max-height:650px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere;background:#11263e;color:#f7f4eb;border:1px solid #11263e;border-radius:5px;padding:23px;font: .82rem/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.status-message{min-height:24px;font-size:.84rem;color:#255e43;font-weight:700}.saved-header{padding:48px 0 60px;border-bottom:1px solid var(--line)}.saved-header h1{font-size:clamp(2.9rem,5vw,4.7rem)}.saved-header>p:last-child{max-width:530px;color:var(--ink-soft)}.saved-section{padding:37px 0 12px;border-bottom:1px solid var(--line)}.saved-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:20px}.saved-section-title h2{font:400 1.9rem Georgia,serif;margin:0 0 23px}.saved-section-title span{font-size:.78rem;color:var(--ink-soft)}.saved-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.saved-item{background:var(--white);border:1px solid var(--line);padding:20px;min-width:0}.saved-item h3{font:400 1.25rem Georgia,serif;margin:0 0 8px}.saved-item p{font-size:.8rem;color:var(--ink-soft);margin:0 0 12px;overflow-wrap:anywhere}.saved-item-actions{display:flex;flex-wrap:wrap;gap:8px}.saved-item-actions button{min-height:44px;border:1px solid #7c8c9b;border-radius:4px;background:transparent;padding:8px 12px;color:var(--ink);font-weight:650;font-size:.78rem}.saved-item-actions button:hover{background:#e8ecee}.empty-inline{grid-column:1/-1;padding:25px 0;color:var(--ink-soft);font-size:.88rem}.footer{background:var(--navy);color:#e5ebee;min-height:95px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px clamp(20px,4vw,55px);font-size:.76rem}.footer span span{color:var(--accent);margin:0 6px}@media(max-width:1050px){.header-caption{display:none}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{grid-template-columns:minmax(0,1.35fr) minmax(250px,.9fr)}}@media(max-width:720px){.header-inner{min-height:70px;gap:16px;justify-content:space-between;flex-wrap:wrap;padding:12px 18px 0}.brand{font-size:.92rem}.brand-mark{width:38px;height:38px}.top-nav{order:3;width:100%;height:45px}.nav-item{height:45px;padding:0 15px 0 0;margin-right:12px}.intro-wrap{display:block;padding:46px 20px 53px}.intro-copy h1{font-size:clamp(2.8rem,11.5vw,4.2rem)}.intro-description{font-size:.97rem;margin-top:20px}.intro-note{margin-top:36px;padding-top:15px;border-top:1px solid var(--line)}.note-number{font-size:3.9rem}.catalog-shell{padding:33px 20px 60px}.catalog-toolbar{display:block}.catalog-heading h2{font-size:1.9rem}.search-wrap{width:100%;margin-top:24px}.categories{padding-top:23px}.module-grid{grid-template-columns:1fr}.module-card{min-height:187px;padding:21px}.module-card h3{font-size:1.5rem;margin-top:20px}.editor-view,.saved-view{padding:20px 20px 60px}.editor-top{margin-bottom:25px}.editor-head{display:block;margin-bottom:24px}.editor-head h1{font-size:clamp(2.6rem,10vw,3.7rem)}.favorite-button{margin-top:22px}.editor-layout{display:flex;flex-direction:column}.editor-main,.editor-aside{width:100%}.editor-aside{order:-1}.aside-block{padding:22px}.editor-main{padding:22px}.result-head{display:block}.prompt-length{display:block;margin-top:12px}#prompt-output{min-height:320px}.saved-header{padding:35px 0}.saved-list{grid-template-columns:1fr}.footer{display:block;line-height:1.9}}@media(max-width:380px){.module-card{min-height:205px}.editor-position{display:none}.result-actions button,.form-actions button{width:100%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
