:root{color:#173404;font-synthesis:none;text-rendering:optimizelegibility;--green-950:#173404;--green-800:#2d5810;--green-700:#3b6d11;--green-600:#639922;--green-300:#c0dd97;--green-100:#eaf3de;--surface:#fff;--surface-soft:#f5f9ee;--border:#d9e7c5;--muted:#687464;--danger:#9f2f2f;--shadow:0 12px 34px #17340414;background:#f7faf3;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#f7faf3;min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}.center-screen{text-align:center;place-content:center;gap:8px;min-height:100vh;display:grid}.brand-mark{background:var(--green-950);color:#fff;letter-spacing:.05em;border-radius:20px;place-items:center;width:72px;height:72px;margin:auto;font-weight:800;display:grid}.brand-mark.small{border-radius:12px;width:42px;height:42px;margin:0;font-size:12px}.login-layout{grid-template-columns:1.1fr .9fr;min-height:100vh;display:grid}.login-hero{color:#fff;background:linear-gradient(145deg,#173404,#315f12);flex-direction:column;justify-content:center;padding:clamp(44px,7vw,100px);display:flex}.seal-placeholder{border:2px solid #ffffff73;border-radius:50%;place-items:center;width:82px;height:82px;margin-bottom:36px;font-weight:800;display:grid}.login-hero h1{max-width:680px;margin:12px 0 24px;font-family:Georgia,serif;font-size:clamp(42px,6vw,76px);font-weight:500;line-height:.98}.hero-copy{color:#fffc;max-width:600px;font-size:18px;line-height:1.7}.security-note{color:#ffffffbf;align-items:center;gap:10px;margin-top:40px;font-size:14px;display:flex}.login-panel{background:var(--green-100);place-items:center;padding:32px;display:grid}.login-card{border:1px solid var(--border);width:min(440px,100%);box-shadow:var(--shadow);background:#fffffff0;border-radius:20px;padding:38px}.login-card h2{margin:4px 0 8px;font-family:Georgia,serif;font-size:38px}.eyebrow{color:var(--green-600);letter-spacing:.14em;margin:0;font-size:12px;font-weight:800}.muted{color:var(--muted);line-height:1.6}.form-stack,.form-grid{gap:16px;display:grid}label{color:#34462c;gap:8px;font-size:13px;font-weight:750;display:grid}input,select,textarea{color:#173404;background:#fff;border:1px solid #cdddc0;border-radius:10px;outline:none;width:100%;padding:12px 13px}input:focus,select:focus,textarea:focus{border-color:var(--green-600);box-shadow:0 0 0 3px #6399221f}textarea{resize:vertical}.primary-btn,.secondary-btn,.ghost-btn,.back-btn{border:1px solid #0000;border-radius:10px;padding:11px 16px;font-weight:750}.primary-btn{background:var(--green-600);color:#fff}.primary-btn:hover{background:#527f1b}.secondary-btn{color:var(--green-950);background:#fff;border-color:#bed2aa}.secondary-btn:hover{background:var(--surface-soft)}.ghost-btn,.back-btn{color:var(--green-800);background:0 0}.compact{padding:9px 13px}.demo-box{gap:12px;margin-top:22px;display:grid}.demo-box p{margin:0}.error-box{color:var(--danger);background:#fff2f2;border:1px solid #e6b1b1;border-radius:9px;padding:11px 12px}.app-shell{min-height:100vh}.topbar{z-index:20;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);background:#fffffff0;justify-content:space-between;align-items:center;height:74px;padding:0 28px;display:flex;position:sticky;top:0}.brand-button{color:var(--green-950);text-align:left;background:0 0;border:0;align-items:center;gap:12px;padding:0;display:flex}.brand-button span:last-child{display:grid}.brand-button small{color:var(--muted);margin-top:2px}.topbar-actions{align-items:center;gap:16px;display:flex}.user-chip{align-items:center;gap:9px;font-size:13px;display:flex}.user-chip>span:last-child{display:grid}.user-chip small{text-transform:capitalize;color:var(--muted)}.body-grid{grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 74px);display:grid}.sidebar{border-right:1px solid var(--border);background:#f2f7eb;flex-direction:column;justify-content:space-between;padding:24px 14px;display:flex}.sidebar nav{gap:7px;display:grid}.sidebar nav button{color:#4b5d43;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;width:100%;padding:11px 12px;font-weight:700;display:flex}.sidebar nav button.active,.sidebar nav button:hover{color:var(--green-950);background:#dfeecb}.sidebar-footer{color:var(--muted);padding:12px;line-height:1.45}.sidebar-footer p{color:var(--green-800);margin:0 0 6px;font-weight:800}.content{min-width:0;padding:36px clamp(22px,4vw,64px) 80px}.mobile-nav{display:none}.icon{place-items:center;display:inline-grid}.page-heading{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px;display:flex}.page-heading h1,.viewer-header h1{margin:6px 0 4px;font-family:Georgia,serif;font-size:clamp(34px,4vw,50px);font-weight:500}.filter-card{border:1px solid var(--border);background:#fff;border-radius:14px;grid-template-columns:minmax(0,1fr) 220px;gap:12px;padding:12px;display:grid;box-shadow:0 7px 22px #1734040a}.search-field{background:#fff;border:1px solid #cdddc0;border-radius:10px;align-items:center;gap:8px;padding:0 12px;display:flex}.search-field input{box-shadow:none;border:0;padding-left:2px}.section-row{color:var(--muted);justify-content:space-between;align-items:center;margin:32px 0 13px;display:flex}.section-row h2{color:var(--green-950);margin:0;font-size:18px}.memo-list{gap:11px;display:grid}.memo-card{border:1px solid var(--border);background:#fff;border-radius:13px;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px;display:grid}.memo-card:hover{border-color:#b6d58b;box-shadow:0 9px 24px #1734040d}.memo-icon{background:var(--surface-soft);width:50px;height:60px;color:var(--green-700);border:1px solid #c9dbb8;border-radius:8px;place-items:center;font-size:11px;font-weight:850;display:grid}.memo-meta,.memo-tags{color:var(--muted);flex-wrap:wrap;align-items:center;gap:9px;font-size:12px;display:flex}.memo-number{color:var(--green-700);font-weight:850}.new-badge{color:#315f12;background:#e2f3ca;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:900}.memo-main h3{margin:6px 0;font-size:18px}.memo-main p{color:#667060;margin:0 0 10px;line-height:1.5}.memo-tags span{border:1px solid #d7e3cc;border-radius:999px;padding:4px 8px}.empty-card{text-align:center;color:var(--muted);background:#fff;border:1px dashed #bfd1af;border-radius:13px;padding:30px}.back-btn{margin-bottom:16px;padding-left:0}.viewer-header{justify-content:space-between;gap:20px;display:flex}.action-bar{z-index:10;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#f7faf3ed;flex-wrap:wrap;gap:9px;margin-bottom:12px;padding:13px 0;display:flex;position:sticky;top:88px}.info-box{color:#315f12;background:#f0f8e5;border:1px solid #bfd9a1;border-radius:10px;margin:12px 0;padding:11px 13px}.document-preview{background:#e7ece2;border:1px solid #d0dbca;border-radius:14px;padding:clamp(18px,4vw,50px);overflow:auto}.paper{color:#242424;background:#fff;width:min(794px,100%);min-height:1040px;margin:auto;padding:clamp(36px,7vw,85px);box-shadow:0 14px 40px #00000024}.paper-city{text-align:center;margin:3px;font-size:12px}.paper h2,.paper h3{text-align:center;letter-spacing:.03em;font-family:Georgia,serif}.paper h2{font-size:18px}.paper h3{margin-top:48px}.paper hr{border:0;border-top:2px solid #2c2c2c;margin-top:20px}.paper dl{gap:12px;margin:45px 0;display:grid}.paper dl div{grid-template-columns:110px 1fr;gap:16px;display:grid}.paper dt{font-weight:700}.paper dd{margin:0}.paper>p:not(.paper-city){line-height:1.8}.preview-note{color:#777;background:#f5f5f5;margin-top:90px;padding:15px;font-size:13px}.attachment-card{border:1px solid var(--border);background:#fff;border-radius:12px;margin-top:16px;padding:18px}.attachment-card button{text-align:left;border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;width:100%;margin-top:6px;padding:10px;display:block}.upload-grid{gap:16px;display:grid}.upload-card{border:1px solid var(--border);background:#fff;border-radius:14px;padding:clamp(18px,3vw,28px)}.upload-card h2{margin-top:0;font-family:Georgia,serif;font-weight:500}.source-buttons{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.source-buttons button{background:var(--surface-soft);min-height:126px;color:var(--green-950);border:1px dashed #a9c48d;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:5px;display:flex}.source-buttons button:hover{background:#ebf5df;border-style:solid}.source-buttons button span{font-size:27px}.source-buttons button small{color:var(--muted)}.hidden-input{display:none}.drop-hint{color:var(--muted);text-align:center;background:#f7f8f5;border-radius:10px;margin-top:14px;padding:18px}.file-list{gap:8px;margin-top:14px;display:grid}.file-row{border:1px solid #dbe5d2;border-radius:10px;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;display:grid}.page-no{background:#e8f1dc;border-radius:8px;place-items:center;width:32px;height:32px;font-weight:850;display:grid}.file-row>div:nth-child(2){min-width:0;display:grid}.file-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-row small{color:var(--muted);margin-top:2px}.file-actions{gap:5px;display:flex}.file-actions button{border:1px solid var(--border);background:#fff;border-radius:7px;width:32px;height:32px}.form-grid{grid-template-columns:1fr 1fr}.span-2{grid-column:span 2}.publish-bar{z-index:15;border:1px solid var(--border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;border-radius:13px;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;padding:14px 16px;display:flex;position:sticky;bottom:0;box-shadow:0 -8px 30px #17340414}.publish-bar>div:first-child{display:grid}.publish-bar small{color:var(--muted);margin-top:2px}.publish-bar>div:last-child{gap:8px;display:flex}.sticky-message{margin-bottom:0}@media (width<=900px){.login-layout{grid-template-columns:1fr}.login-hero{min-height:43vh;padding:40px 28px}.login-hero h1{font-size:clamp(40px,11vw,62px)}.login-panel{padding:24px 16px 42px}.body-grid{grid-template-columns:1fr}.sidebar{display:none}.mobile-nav{z-index:18;border-bottom:1px solid var(--border);background:#fff;grid-auto-columns:1fr;grid-auto-flow:column;display:grid;position:sticky;top:74px}.mobile-nav button{color:var(--muted);background:#fff;border:0;padding:12px;font-weight:750}.mobile-nav button.active{color:var(--green-800);border-bottom:2px solid var(--green-600)}.content{padding:28px 18px 80px}}@media (width<=680px){.topbar{height:66px;padding:0 14px}.brand-button strong{font-size:13px}.brand-button small{font-size:10px}.user-chip{display:none}.mobile-nav{top:66px}.page-heading h1,.viewer-header h1{font-size:35px}.filter-card{grid-template-columns:1fr}.memo-card{grid-template-columns:44px minmax(0,1fr);align-items:start;padding:14px}.memo-icon{width:42px;height:50px}.memo-card>button{grid-column:2;justify-self:start}.source-buttons{grid-template-columns:1fr}.source-buttons button{text-align:left;flex-flow:wrap;justify-content:flex-start;min-height:88px;padding:14px}.source-buttons button span{font-size:24px}.source-buttons button small{width:100%;margin-left:35px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.publish-bar{flex-direction:column;align-items:stretch}.publish-bar>div:last-child{grid-template-columns:1fr 1fr;display:grid}.paper{min-height:850px;padding:35px 24px}.paper dl div{grid-template-columns:80px 1fr}.action-bar{top:118px}}.loading-logo{object-fit:contain;width:110px;height:110px;margin-bottom:20px}.login-branding{align-items:center;gap:24px;margin-bottom:28px;display:flex}.login-logo{object-fit:contain;flex-shrink:0;width:125px;height:125px}.header-logo{object-fit:contain;flex-shrink:0;width:46px;height:46px}.brand-button{align-items:center;gap:12px;display:flex}.brand-text{flex-direction:column;align-items:flex-start;display:flex}.brand-text strong{line-height:1.2}.brand-text small{opacity:.7;margin-top:3px;line-height:1.2}@media (width<=700px){.login-branding{flex-direction:column;align-items:flex-start;gap:18px}.login-logo{width:95px;height:95px}.loading-logo{width:90px;height:90px}.header-logo{width:40px;height:40px}.brand-text strong{font-size:14px}.brand-text small{font-size:11px}}
