:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--petrol);background:var(--ivory);font-synthesis:none;--petrol:#173b42;--gold:#efc66b;--ivory:#f8f6f0;--muted:#52656a;--green-bg:#eaf3ef;--green-ink:#267764;--red-bg:#f9eeeb;--red-ink:#a84138;--gold-bg:#fbf3df;--gold-ink:#795b17;--blue-bg:#e8f1f3;--blue-ink:#245a68;--teal-bg:#e5f3f1;--teal-ink:#246a66;--purple-bg:#f1edf7;--purple-ink:#695389}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button:focus-visible,input:focus-visible{outline:3px solid #a67b24;outline-offset:3px}h1{font-size:clamp(1.65rem,3vw,2.25rem);margin:.3rem 0 .6rem}p{line-height:1.55;color:var(--muted)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--gold);color:var(--petrol);font-size:26px;font-weight:800;border-radius:12px;flex-shrink:0}.brand strong,.brand small{display:block}.brand strong{font-size:1rem}.brand small{font-size:.74rem;opacity:.85;margin-top:3px}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:20px}.login-card{background:#fff;width:min(100%,440px);border:1px solid #e1ddd1;border-radius:20px;padding:32px;box-shadow:0 10px 32px #173b4210}.login-card .brand{margin-bottom:28px}.login-card form{display:grid;gap:10px;margin-top:24px}.login-card label{font-size:.88rem;font-weight:650}.login-card input{width:100%;padding:12px;border:1px solid #a9b6b5;border-radius:8px;margin-bottom:8px}.primary{background:var(--petrol);color:#fff;border:0;border-radius:8px;padding:13px;font-weight:700}.error{color:#a82f32}header{background:var(--petrol);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px}.header-actions{display:flex;gap:12px;align-items:center}.user{font-size:.82rem}.outline,.mobile-menu{background:none;border:1px solid #ffffff66;border-radius:8px;color:#fff;padding:8px 12px}.mobile-menu{display:none}.layout{display:grid;grid-template-columns:240px 1fr;min-height:calc(100dvh - 76px)}.sidebar{background:#fff;border-right:1px solid #e4e1d9;padding:22px 12px;display:flex;flex-direction:column;justify-content:space-between;gap:24px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;padding:12px 10px;border-radius:8px;color:var(--petrol);font-size:.88rem}.sidebar nav button svg{width:20px;height:20px;flex-shrink:0}.sidebar nav button.active{background:#e4efec;font-weight:700}.sidebar small{color:var(--muted);padding:10px}.workspace{padding:clamp(18px,4vw,42px);width:100%;max-width:1200px;margin:0 auto}.intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{font-size:.72rem;letter-spacing:.09em;font-weight:750;color:#267e79}.intro p{margin:0}.region{white-space:nowrap;font-size:.78rem;font-weight:650;background:#eee9db;padding:9px 12px;border-radius:99px}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tile{border:1px solid #173b4212;border-radius:14px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:20px;text-align:left;min-height:174px;color:var(--petrol);transition:box-shadow .15s}.tile:hover{box-shadow:0 4px 12px #173b421a}.tile strong{font-size:1.05rem}.tile small{display:block;font-size:.85rem;color:#42565b}.tile-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:#ffffffa0}.green{background:var(--green-bg);color:var(--green-ink)}.red{background:var(--red-bg);color:var(--red-ink)}.gold{background:var(--gold-bg);color:var(--gold-ink)}.blue{background:var(--blue-bg);color:var(--blue-ink)}.teal{background:var(--teal-bg);color:var(--teal-ink)}.purple{background:var(--purple-bg);color:var(--purple-ink)}.tile-link{display:flex;align-items:center;gap:4px;margin-top:auto;font-size:.78rem;font-weight:700}.tile-link svg{width:15px;height:15px}.saved{margin-top:16px;width:100%;min-height:0;flex-direction:row;align-items:center;gap:16px}.saved>span:nth-child(2){flex:1}.back{border:0;background:transparent;color:var(--teal-ink);font-weight:700;padding:0;margin-bottom:18px}.placeholder{background:#fff;border:1px solid #e1ddd1;border-radius:14px;padding:26px;margin-top:24px}.placeholder h2{font-size:1.2rem}.placeholder p{margin-bottom:0}@media(max-width:800px){header{padding:12px 15px}.user{display:none}.mobile-menu{display:grid;place-items:center;padding:6px}.layout{display:block}.sidebar{display:none}.sidebar.open{display:flex;border-bottom:1px solid #e4e1d9}.intro{align-items:flex-start;flex-direction:column}.brand small{display:none}}@media(max-width:450px){.tiles{grid-template-columns:1fr;gap:12px}.tile{min-height:140px;padding:16px}.saved{min-height:0}.brand strong{font-size:.86rem}.brand-mark{width:34px;height:34px;font-size:21px}.header-actions{gap:6px}.outline{font-size:.76rem;padding:7px}.login-card{padding:22px}}.research{margin-top:24px}.research-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.research-tools label{display:grid;gap:6px;flex:1;min-width:150px;font-size:.85rem;font-weight:650}.research-tools input,.research-tools select{font:inherit;background:#fff;border:1px solid #a9b6b5;border-radius:8px;padding:11px;color:var(--petrol);width:100%}.research-note{background:var(--gold-bg);border-radius:8px;padding:12px;font-size:.88rem;color:var(--gold-ink)}.research-results{display:grid;gap:12px}.research-result{background:#fff;border:1px solid #e1ddd1;border-radius:12px;padding:18px;overflow-wrap:anywhere}.research-result h3{margin:8px 0;font-size:1.08rem}.result-meta{font-size:.78rem;color:var(--muted)}.result-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.research a,.workspace a{color:var(--teal-ink);font-weight:650}.secondary{border:1px solid var(--teal-ink);background:#fff;color:var(--teal-ink);border-radius:8px;padding:9px 12px;font-weight:650}.source-list{margin-top:20px;padding:14px;background:#fff;border-radius:10px}.source-list summary{cursor:pointer;font-weight:650}@media(max-width:450px){.research-tools{display:grid}.research-tools label{min-width:0}}.studio{display:grid;gap:18px;margin-top:24px}.studio-form,.output-card{display:grid;gap:15px;background:#fff;border:1px solid #e1ddd1;border-radius:12px;padding:20px;min-width:0}.studio-form h2,.studio-form p{margin:0}.studio-form label,.output-card label{display:grid;gap:7px;font-size:.88rem;font-weight:650;min-width:0}.studio-form input,.studio-form select,.studio-form textarea,.output-card textarea{font:inherit;color:var(--petrol);width:100%;min-width:0;background:#fff;border:1px solid #a9b6b5;border-radius:8px;padding:11px}.studio textarea{resize:vertical;line-height:1.6;font-weight:400}.studio textarea:focus-visible,.studio select:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.studio-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.studio-form>.primary{justify-self:start}.studio-output{display:grid;gap:14px}.studio h2{font-size:1.2rem}.studio input[type=file]{max-width:100%}@media(max-width:450px){.studio-form,.output-card{padding:14px}.studio-fields{grid-template-columns:1fr}.studio-form>.primary{width:100%}}.saved-text{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;background:var(--ivory);padding:14px;border-radius:8px}.research-result details{margin:12px 0}.research-result summary{cursor:pointer;font-weight:650}.studio-form .owner-toggle{display:flex;align-items:center;gap:10px}.owner-toggle input[type=checkbox]{width:auto;flex-shrink:0}
