:root{color-scheme:light;--red:#a51d37;--red-dark:#78172c;--ink:#34292e;--muted:#72666c;--line:#e5dce0;--paper:#fff;--ground:#f6f3f2;--soft:#fbf4f5;--green:#326e64;--focus:#225e86;--shadow:0 10px 35px #35101e0a;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--ink)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--red-dark);text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.7rem,3vw,2.25rem);line-height:1.16;letter-spacing:-.035em;margin-bottom:.65rem}h2{font-size:1.45rem;line-height:1.3;letter-spacing:-.025em;margin-bottom:.65rem}h3{font-size:1.08rem;margin-bottom:.65rem}p{margin-bottom:1rem}.skip-link{position:fixed;top:-100px;left:1rem;padding:1rem;background:white;z-index:50}.skip-link:focus{top:.5rem}.topbar{min-height:92px;background:#fff;border-top:5px solid var(--red);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.05rem max(1.5rem,calc((100vw - 1400px)/2))}.brand{display:flex;align-items:center;gap:.85rem;color:var(--ink);text-decoration:none}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--red);color:white;border-radius:12px;font-family:Georgia,serif;font-size:1.7rem}.brand strong{display:block;font-size:1.1rem;letter-spacing:.025em}.brand small{font-size:.85rem;color:var(--muted)}.top-actions{display:flex;gap:.65rem;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border:1px solid transparent;border-radius:9px;min-height:44px;padding:.6rem 1rem;font-weight:650;font-size:.9rem;text-decoration:none;line-height:1.3}.button.primary{background:var(--red);border-color:var(--red);color:white}.button.primary:hover:enabled{background:var(--red-dark)}.button.secondary{background:#fff;color:var(--red-dark);border-color:#d8c6cd}.button.secondary:hover:enabled{background:var(--soft)}.button.quiet{background:transparent;color:var(--muted)}.button.quiet:hover:enabled{background:#eee8eb;color:var(--ink)}.button.danger{border-color:#c8a2ac;background:#fff;color:#8c1c34}.text-button{background:none;border:0;padding:.3rem 0;color:var(--red-dark);font-size:.85rem;text-decoration:underline;text-underline-offset:3px}.text-button+.text-button{margin-left:1rem}main{max-width:1448px;margin:auto;padding:2.25rem 1.5rem 1rem;min-height:calc(100vh - 155px)}.eyebrow{color:var(--red);font-size:.75rem;letter-spacing:.11em;font-weight:750;line-height:1.5;margin-bottom:.6rem}.welcome-card{max-width:610px;margin:3rem auto;background:white;padding:2.5rem;border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow)}.welcome-card>p{color:var(--muted)}.welcome-card form{margin-top:1.5rem}.workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:2rem;margin-bottom:1.5rem}.workspace-heading p{color:var(--muted);margin:0}.account-box{flex-shrink:0;text-align:right;font-size:.9rem;max-width:390px;padding-top:.4rem}.account-box>span{display:block}.account-box>span:first-child{font-weight:650}.version-pill{display:inline-block!important;border-radius:30px;padding:.2rem .65rem;background:#efe5e8;color:#79525e;font-size:.78rem;margin:.5rem 0}.editor-tabs{display:flex;gap:.2rem;border-bottom:1px solid var(--line);margin-bottom:1.4rem;overflow:auto}.editor-tabs button{border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);padding:.9rem 1.25rem;font-size:.95rem;font-weight:650;white-space:nowrap}.editor-tabs button[aria-selected=true]{color:var(--red);border-bottom-color:var(--red)}.editor-tabs button:hover{background:#eee7ea}.editor-layout{display:grid;grid-template-columns:minmax(255px,340px) minmax(0,1fr);gap:1.4rem;align-items:start}.catalog,.edit-card,.full-card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.catalog{overflow:hidden}.catalog-controls{padding:1.2rem;border-bottom:1px solid var(--line)}.catalog-controls .field{margin-bottom:.8rem}.catalog-controls .field:last-child{margin-bottom:0}.catalog-count{font-size:.8rem;color:var(--muted);margin:.75rem 0 0}.field-list{max-height:600px;overflow-y:auto;padding:.4rem}.field-item{display:block;width:100%;position:relative;border:0;background:#fff;color:var(--ink);padding:.85rem .9rem;text-align:left;border-radius:8px;margin:.15rem 0}.field-item:hover{background:#f9f5f6}.field-item[aria-pressed=true]{background:#f7e9ed;box-shadow:inset 3px 0 var(--red)}.field-item .item-group{display:block;color:var(--muted);font-size:.75rem;margin-bottom:.22rem}.field-item strong{font-size:.88rem;line-height:1.4;display:block;font-weight:620;overflow-wrap:anywhere}.field-item .item-preview{display:block;color:var(--muted);font-size:.8rem;margin-top:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.field-item .modified{display:inline-block;color:var(--red);font-size:.71rem;font-weight:700;margin-top:.25rem}.edit-card{padding:1.6rem 1.8rem;min-height:475px}.edit-card .section-label{color:var(--muted);font-size:.82rem;margin-bottom:.5rem}.edit-card h2{font-size:1.4rem;margin-bottom:.7rem}.description{color:var(--muted);font-size:.9rem}.field{display:block;margin-bottom:1.2rem}.field>label,.field>span:first-child{display:block;font-size:.88rem;font-weight:650;margin-bottom:.4rem}.field input:not([type=checkbox]),.field select,.field textarea,.search-input{display:block;width:100%;padding:.7rem .8rem;border:1px solid #cfc4c9;border-radius:8px;background:#fff;color:var(--ink);font-size:1rem;line-height:1.4}.field textarea{resize:vertical;min-height:110px}.field textarea.long{min-height:265px;line-height:1.65}.field input[readonly]{background:#f6f2f3;color:var(--muted)}.field small,.helper{display:block;font-size:.8rem;color:var(--muted);margin-top:.4rem}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1.2rem}.field-grid .span-2{grid-column:1/-1}.inline-check{display:flex;align-items:flex-start;gap:.6rem;font-size:.9rem;margin:.6rem 0}.inline-check input{width:18px;height:18px;margin-top:3px;flex-shrink:0;accent-color:var(--red)}.form-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.25rem;align-items:center}.notice{border-left:3px solid var(--red);background:var(--soft);padding:.85rem 1rem;color:#65444f;font-size:.88rem;border-radius:0 8px 8px 0;margin:1.1rem 0}.notice.info{border-color:var(--green);background:#edf5f2;color:#345c53}.notice p:last-child{margin-bottom:0}.review-warning{border-left:3px solid #a16b1c;background:#fff7e9;color:#705025;padding:1rem 1.2rem;border-radius:8px;font-size:.88rem;margin-bottom:1.3rem}.review-warning strong{display:block;margin-bottom:.3rem}.message{border:1px solid #c6dcd3;background:#edf7f1;color:#285841;padding:.9rem 1.15rem;border-radius:10px;margin-bottom:1.2rem;white-space:pre-line}.message.error{border-color:#e3b6c1;background:#fff0f3;color:#8d2340}.message.info{border-color:#d7c7ce;background:#f6eff2;color:#654753}.source-select{border:1px solid var(--line);border-radius:8px;padding:.65rem;max-height:190px;overflow:auto;background:#fcfbfb}.source-select .inline-check{font-size:.82rem;line-height:1.4;padding:.2rem .2rem;margin:.2rem 0}.source-select .inline-check strong{font-size:.75rem;color:var(--red-dark)}.source-search{margin-bottom:.55rem!important}.source-links{border-top:1px solid var(--line);padding-top:1.1rem;margin-top:1.1rem}.link-row{display:grid;grid-template-columns:1fr 1.6fr auto;gap:.6rem;align-items:start;margin:.7rem 0}.link-row .field{margin:0}.link-row .button{align-self:end;min-height:45px}.source-files{border-top:1px solid var(--line);padding-top:1.1rem}.readonly-preview{background:#faf7f8;border:1px solid var(--line);padding:1rem;border-radius:9px;white-space:pre-wrap;font-size:.92rem;line-height:1.65;max-height:300px;overflow:auto}.char-count{text-align:right;font-variant-numeric:tabular-nums}.savebar{position:sticky;bottom:0;margin-top:1.5rem;background:#fffefbf5;backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:13px 13px 0 0;box-shadow:0 -5px 28px #5120350b;display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;gap:1rem;z-index:10}.save-state{min-width:180px}.save-state strong{display:block;font-size:.9rem}.save-state span{display:block;font-size:.78rem;color:var(--muted);margin-top:.15rem}.save-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.savebar.is-dirty{border-top:3px solid var(--red)}.page-footer{max-width:1400px;margin:1.25rem auto 0;padding:1rem 1.5rem 1.5rem;font-size:.77rem;color:var(--muted);display:flex;justify-content:space-between;gap:1rem}.full-card{padding:1.7rem}.card-heading{display:flex;justify-content:space-between;align-items:start;gap:1rem;margin-bottom:1.2rem}.card-heading p{font-size:.9rem;color:var(--muted);margin-bottom:0}.history-list{display:grid;gap:.7rem}.history-item{display:grid;grid-template-columns:auto 1fr auto;gap:1.1rem;align-items:center;padding:1.15rem;border:1px solid var(--line);border-radius:10px}.history-number{width:48px;height:48px;background:#f5e7eb;color:var(--red);font-weight:700;border-radius:12px;display:grid;place-items:center}.history-item strong{display:block;font-size:.95rem}.history-item small{display:block;color:var(--muted);font-size:.81rem;margin-top:.3rem}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;padding:.85rem;border-bottom:1px solid var(--line);vertical-align:middle}th{color:var(--muted);font-size:.8rem;font-weight:650;background:#faf7f8}td small{display:block;color:var(--muted);font-size:.8rem}.tag{display:inline-block;font-size:.76rem;font-weight:650;padding:.25rem .55rem;background:#f1e6e9;color:#7b354b;border-radius:5px}.tag.green{background:#eaf3ed;color:#316146}.tag.gray{background:#eee;color:#646065}.empty-state{padding:2rem;text-align:center;color:var(--muted)}.empty-state strong{display:block;color:var(--ink);margin-bottom:.5rem}dialog{width:min(760px,calc(100vw - 2rem));max-height:90vh;max-height:90dvh;border:1px solid var(--line);border-radius:16px;padding:0;color:var(--ink);box-shadow:0 25px 90px #21101f33}dialog::backdrop{background:#291a2577;backdrop-filter:blur(3px)}.modal-inner{padding:1.8rem}.modal-inner>header{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:1.1rem}.modal-inner>header h2{margin-bottom:0}.close-button{border:0;background:#f2e9ec;color:var(--red-dark);border-radius:50%;width:36px;height:36px;font-size:1.5rem;line-height:1;flex-shrink:0}.modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.65rem;margin-top:1.5rem}.change-list{max-height:230px;overflow:auto;padding-left:1.2rem;font-size:.9rem}.change-list li{padding:.3rem 0}.count-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.count-card{background:#f6eef1;border:1px solid var(--line);border-radius:8px;padding:.5rem .75rem;font-size:.85rem}.count-card b{color:var(--red)}.diff-list{max-height:350px;overflow:auto}.diff-list details{border:1px solid var(--line);border-radius:7px;margin:.5rem 0}.diff-list summary{padding:.7rem;cursor:pointer;font-size:.87rem;font-weight:650}.diff-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:.84rem;margin:.4rem .7rem .8rem;padding:.6rem;background:#faf7f8;border-radius:5px}.diff-list .diff-before{border-left:3px solid #a56575}.diff-list .diff-after{border-left:3px solid var(--green)}.help-step{display:grid;grid-template-columns:32px 1fr;gap:.85rem;margin:1.15rem 0}.help-step>span{width:29px;height:29px;border-radius:8px;background:#f4e7eb;color:var(--red);display:grid;place-items:center;font-weight:750}.help-step p{font-size:.9rem;margin:.25rem 0}.loading-bar{height:5px;border-radius:3px;background:linear-gradient(90deg,#f8ebee,var(--red),#f8ebee);background-size:200% 100%;animation:loading 1.5s infinite;margin-top:1.5rem}.password-wrap{position:relative}.password-wrap input{padding-right:5.7rem!important}.password-wrap button{position:absolute;right:.3rem;top:.3rem;bottom:.3rem;border:0;background:transparent;color:var(--red-dark);font-size:.82rem;font-weight:650;padding:0 .6rem}.full-width{width:100%}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}code{background:#f2e9ec;padding:.15rem .3rem;border-radius:4px;font-size:.88em;overflow-wrap:anywhere}@keyframes loading{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}@media(min-width:1200px){.catalog{position:sticky;top:1rem}.field-list{max-height:calc(100vh - 400px);min-height:260px}}@media(max-width:900px){.workspace-heading{gap:1rem}.savebar{align-items:stretch;flex-direction:column}.save-actions{justify-content:flex-start}.save-state span{display:inline-block}.editor-layout{grid-template-columns:270px 1fr}.edit-card{padding:1.3rem}.field-grid{grid-template-columns:1fr}.field-grid .span-2{grid-column:auto}.link-row{grid-template-columns:1fr auto}.link-row>.field:first-child{grid-column:1/-1}}@media(max-width:680px){.topbar{padding:.9rem 1rem;min-height:80px}.brand small{display:none}.brand-mark{width:36px;height:36px;font-size:1.45rem}.brand strong{font-size:.96rem}.top-actions .button{font-size:.78rem;padding:.5rem .65rem;min-height:40px}.top-actions{gap:.1rem}.top-actions .quiet{padding:.4rem}main{padding:1.5rem 1rem .5rem}.workspace-heading{display:block}.account-box{text-align:left;margin-top:1rem}.account-box>span:first-child{display:inline}.version-pill{margin-left:.5rem}.workspace-heading h1{font-size:1.9rem}.editor-tabs button{padding:.8rem .85rem;font-size:.88rem}.editor-layout{display:block}.catalog{margin-bottom:1rem}.catalog-controls{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.catalog-controls .field{margin:0}.catalog-controls .field:first-child,.catalog-controls .catalog-count,.catalog-controls>.button{grid-column:1/-1}.field-list{max-height:215px}.edit-card{min-height:0;padding:1.2rem}.welcome-card{margin:1.5rem auto;padding:1.5rem}.savebar{margin-left:-.5rem;margin-right:-.5rem;padding:.85rem;border-radius:10px 10px 0 0}.save-actions{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.save-actions .primary{grid-column:1/-1}.save-actions .button{font-size:.8rem}.page-footer{display:block;padding:.8rem 1rem 1.2rem}.page-footer span{display:block;margin-top:.35rem}.history-item{grid-template-columns:auto 1fr;padding:.9rem;gap:.75rem}.history-item .button{grid-column:2}.full-card{padding:1.15rem}.card-heading{display:block}.card-heading .button{margin-top:.85rem}.modal-inner{padding:1.2rem}.modal-actions .button{flex:1}.field textarea.long{min-height:210px}}@media print{.topbar,.editor-tabs,.catalog,.savebar,.page-footer,.top-actions,button{display:none!important}main{padding:0}.editor-layout{display:block}.edit-card,.full-card{box-shadow:none;border:0}body{background:#fff}}
