:root{--ink: #0b0b0f;--accent: #4c2dd4;--accent-dark: #3a1fb0;--accent-soft: #eeeafc;--bg: #f6f5fb;--line: #e3e0f0;--muted: #6b6882;--danger: #b42318;--radius: 12px}*{box-sizing:border-box}body{font-family:system-ui,-apple-system,Segoe UI,sans-serif;margin:0;background:var(--bg);color:var(--ink)}.shell,.viewer{max-width:920px;margin:0 auto;padding:20px 16px 40px}h1,h2{margin:0;letter-spacing:-.01em}h2{font-size:1.1rem;display:flex;align-items:center;gap:8px}h2:before{content:"";width:4px;height:1em;border-radius:2px;background:var(--accent)}header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;padding:10px 16px;background:#fff;border:1px solid var(--line);border-bottom:3px solid var(--accent);border-radius:var(--radius)}header .brand{height:44px;width:auto}header .who{display:flex;align-items:center;gap:12px}.badge{background:var(--accent-soft);color:var(--accent);font-weight:600;font-size:.85rem;padding:4px 10px;border-radius:999px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 1px 2px #0b0b0f0a,0 8px 24px -12px #4c2dd426}.login{max-width:380px;margin:64px auto;padding:32px 28px;border-top:4px solid var(--accent)}.login .logo{width:200px;max-width:70%;height:auto;align-self:center}.login .tagline{margin:0;text-align:center;color:var(--muted);font-size:.9rem}.login .google-btn{align-self:center;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border:1px solid var(--line);border-radius:50%;background:#fff;transition:box-shadow .15s,border-color .15s}.login .google-btn:hover{border-color:#c4c7c5;box-shadow:0 1px 3px #3c40434d}.center{text-align:center;margin-top:80px;color:var(--muted)}.error{color:var(--danger);background:#fef3f2;border:1px solid #fecdca;border-radius:8px;padding:8px 12px;margin:0;font-size:.9rem}.notice{background:var(--accent-soft);border:1px solid var(--line);color:var(--accent-dark);border-radius:8px;padding:10px 14px;margin:0 0 16px}.empty{text-align:center;color:var(--muted);border:2px dashed var(--line);border-radius:var(--radius);padding:28px 12px;margin:0}label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:600;color:var(--muted)}input,select{width:100%;font:inherit;color:var(--ink);background:#fbfaff;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;transition:border-color .15s,box-shadow .15s,background .15s}input::placeholder{color:#a9a5c0}input:hover,select:hover{border-color:#cfc9ea}input:focus,select:focus{outline:none;background:#fff;border-color:var(--accent);box-shadow:0 0 0 3px #4c2dd42e}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234c2dd4' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}input[type=number]{width:100%}input[type=file]{padding:8px;border-style:dashed;cursor:pointer}input[type=file]::file-selector-button{font:inherit;font-weight:600;margin-right:12px;padding:6px 12px;border:0;border-radius:8px;background:var(--accent-soft);color:var(--accent);cursor:pointer}input[type=file]::file-selector-button:hover{background:#ded8fa}button{font:inherit;font-weight:600;cursor:pointer;padding:10px 16px;border-radius:10px;border:1.5px solid var(--accent);background:var(--accent);color:#fff;transition:background .15s,box-shadow .15s}button:hover:not(:disabled){background:var(--accent-dark);border-color:var(--accent-dark)}button:focus-visible{outline:none;box-shadow:0 0 0 3px #4c2dd44d}button:disabled{background:#e9e7f3;border-color:#e9e7f3;color:#9b97b3;cursor:not-allowed}button.ghost{background:#fff;color:var(--ink);border-color:var(--line)}button.ghost:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent)}.list{list-style:none;padding:0;margin:0}.list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.list li:last-child{border-bottom:0}.list small{color:var(--muted)}.views{color:var(--accent);background:var(--accent-soft);font-weight:600;font-size:.85rem;padding:4px 10px;border-radius:999px;white-space:nowrap}table{width:100%;border-collapse:collapse}th{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}td input[type=number]{width:90px;padding:6px 10px}body.viewing,.viewer{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.pages{display:flex;flex-direction:column;gap:12px;align-items:center}.page{max-width:100%;height:auto;background:#fff;pointer-events:none;-webkit-user-drag:none;box-shadow:0 4px 20px #0b0b0f26}body.viewing ::selection{background:transparent}.viewer.covered .pages{visibility:hidden}.cover-note{text-align:center}@media print{body *{display:none!important}body:after{content:"Impressão desabilitada."}}.suggest{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}.suggest button{width:100%;text-align:left}.table-wrap{overflow-x:auto}td .actions{display:flex;flex-wrap:wrap;gap:6px}td .actions button{padding:6px 10px;font-size:.85rem;min-width:96px}button.danger{color:#b3261e}.viewer.preview{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;max-width:none;overflow-y:auto;background:var(--bg, #f6f5fb)}.viewer.preview .page{pointer-events:auto}.loading{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#ffffffd9;cursor:progress}.spinner{width:40px;height:40px;border:4px solid var(--accent-soft);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login .tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:1;padding:12px;text-align:center;background:#fff;color:var(--accent);border:1.5px solid var(--line);border-radius:var(--radius);cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}.tile:hover{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 3px #4c2dd41f}.tile strong{color:var(--ink);font-size:1.05rem}.tile span{color:var(--muted);font-size:.78rem;font-weight:400}
