:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background-color:#f8fafc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:inherit}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#eef3ff,#f6fbff);color:#1f2937}.app-header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #e0e7ff;background:#fffc;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:sticky;top:0}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:14px;background:#1d4ed8;color:#fff;display:grid;place-items:center;font-weight:700;font-size:1.2rem;box-shadow:0 10px 30px #1d4ed82e}.brand-text{display:flex;flex-direction:column;gap:2px;font-size:.95rem}.brand-text small{color:#6b7280;font-weight:500}.tag{background:#e0f2fe;color:#0369a1;padding:6px 12px;border-radius:999px;font-size:.85rem;border:1px solid #bae6fd}.app-main{flex:1;max-width:960px;width:100%;padding:24px;margin:0 auto;display:flex;flex-direction:column}.panel{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;box-shadow:0 10px 40px #0f172a0f}.panel h1{margin:0 0 12px;font-size:1.6rem;color:#111827}.panel p{margin:0 0 10px;color:#4b5563;line-height:1.6}.panel code{background:#f3f4f6;padding:3px 6px;border-radius:6px;font-size:.95em}.next-step{margin-top:16px;font-weight:600;color:#1f2937}.error-inline{color:#b91c1c;font-weight:600}.hint{margin-top:12px;color:#6b7280;font-size:.95rem}.ghost{border:1px solid #d1d5db;background:#fff;color:#111827;padding:10px 14px;border-radius:12px;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}.ghost:hover{transform:translateY(-1px);box-shadow:0 10px 30px #0f172a0f}.login-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;box-shadow:0 10px 40px #0f172a0f;display:flex;flex-direction:column;gap:12px}.login-card h1{margin:0;font-size:1.5rem}.subtitle{margin:0;color:#6b7280}.field{display:flex;flex-direction:column;gap:6px}.field span{font-weight:600;color:#374151}.field input{padding:12px 14px;border:1px solid #d1d5db;border-radius:12px;font-size:1rem}.field input:focus{outline:2px solid #2563eb;border-color:#2563eb}.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecdd3;border-radius:12px;padding:10px 12px;font-size:.95rem}button[type=submit]{margin-top:6px;border:none;background:#1d4ed8;color:#fff;padding:12px 16px;border-radius:12px;font-size:1rem;font-weight:700;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease;box-shadow:0 10px 30px #1d4ed82e}button[type=submit]:hover:not(:disabled){transform:translateY(-1px)}button[type=submit]:disabled{opacity:.6;cursor:not-allowed}.viewer-shell{display:flex;flex-direction:column;min-height:100vh;background:#f5f5f5}.viewer-header{display:flex;gap:8px;padding:8px;background-color:silver;border-top:1px solid black;border-bottom:1px solid black;align-items:center;flex-wrap:wrap}.viewer-header h1{font-size:1.2rem;margin:0;flex:1;text-align:center}.viewer-header button,.viewer-header select{padding:8px;border:1px solid black;border-radius:8px;background:#fff}.viewer-header .logout-btn{width:20%;min-width:90px}.viewer-header .status-block{flex:1;text-align:center;display:flex;flex-direction:column;gap:4px}.viewer-header .status-row{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}.viewer-header .status-pill{padding:4px 8px;border-radius:999px;border:1px solid black;font-size:.85rem}.viewer-header .status-pill.offline{background:#ffe2e2;color:#a20000;border-color:#a20000}.viewer-header .status-pill.online{background:#e5ffe8;color:#0f6b2e;border-color:#0f6b2e}.viewer-header .meta{font-size:.85rem;color:#333}.viewer-header button:disabled{opacity:.5;cursor:not-allowed}.viewer-shell main{display:flex;flex-direction:column;flex:1;min-height:0}.viewer-shell .activity{display:flex;flex-direction:column}.viewer-shell .activity:not(.active)>section{display:none}.viewer-shell .activity.active{min-height:0;flex:1;overflow:hidden;border-bottom:1px solid black}.viewer-shell .activity.active>section{display:flex;flex-direction:column;overflow:hidden;flex:1}.viewer-shell h2,.viewer-shell h3,.viewer-shell h4{cursor:pointer;padding:8px;margin:0;border-bottom:1px solid black}.viewer-shell h1{font-size:1.2rem}.viewer-shell h2{font-size:1.1rem;background-color:#d3d3d3}.viewer-shell h3{font-size:1rem;background-color:#dcdcdc;padding-left:16px}.viewer-shell h4{font-size:.9rem;background-color:#f5f5f5;padding-left:24px}.viewer-shell ul{list-style:none;margin:0;padding:0}.viewer-shell li{cursor:pointer;padding:8px 32px;border-bottom:1px solid #e5e5e5}.viewer-shell button,.viewer-shell select{padding:8px;border:1px solid black;border-radius:8px}.viewer-shell section{display:flex;flex-direction:column}.viewer-shell .scrollable{flex:1;overflow-y:auto}.viewer-shell section.post>div{border-bottom:1px solid black}.viewer-shell form{display:flex;flex-direction:column;gap:8px;padding:8px;border-bottom:1px solid black}.viewer-shell form>div{display:flex;gap:8px}.viewer-shell form>div>*{flex:1}.viewer-shell .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:8px}.viewer-shell .grid>div{border:1px solid black;background:#f9f9f9;width:100%;aspect-ratio:1 / 1;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center}.viewer-shell .grid>div>img{width:100%;height:100%;object-fit:cover;border-radius:8px}.viewer-shell .modal-backdrop{position:fixed;inset:0;background-color:#ffffff36;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:999}.viewer-shell .modal-card{width:90%;aspect-ratio:1 / 1;background-color:silver;border:1px solid black;display:flex;justify-content:center;align-items:center}.viewer-shell .modal-card img{max-width:90%;max-height:90%}.viewer-shell .viewer-footer{padding:8px;border-top:1px solid #d1d5db;background:#fafafa;font-size:.9rem}
