.ornol-mobile-link{display:block;padding:12px 10px;font:600 13px/1.4 system-ui;text-decoration:none;color:inherit;border-radius:9px}
.ornol-mobile-link:hover{background:#8d6cb322}
.ornol-network-message{position:fixed;z-index:10000;bottom:calc(10px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:650px;margin:auto;padding:14px 18px;border-radius:12px;background:#fff2d5;color:#603e00;box-shadow:0 5px 25px #0002;font:14px/1.5 system-ui}
.ornol-network-message[hidden]{display:none}
.mobile-setup{margin:0;min-height:100vh;background:#f4f1f8;color:#262339;font:16px/1.6 system-ui;padding:24px}
.mobile-setup main{max-width:850px;margin:auto;background:#fff;border:1px solid #e6e0ee;padding:clamp(20px,5vw,42px);border-radius:24px;box-shadow:0 20px 60px #37264a0c}
.mobile-setup header{display:flex;align-items:center;gap:18px}
.mobile-setup header img{width:76px;height:76px;border-radius:18px}
.mobile-setup h1{margin:0;font-size:26px;line-height:1.2}.mobile-setup h2{font-size:20px;margin-top:30px}
.mobile-setup .muted{color:#71677f;font-size:14px;margin:6px 0}.mobile-setup a{color:#234d86;overflow-wrap:anywhere}
.mobile-setup .mobile-state{padding:15px 18px;background:#f4f1f8;border-radius:12px;margin:24px 0}
.mobile-setup .mobile-state.enabled{background:#eaf6ee;color:#20583a}
.mobile-setup button{font:600 15px system-ui;background:#082455;border:0;color:white;border-radius:10px;padding:13px 20px;cursor:pointer;min-height:44px}
.mobile-setup .mobile-url{display:block;background:#f4f1f8;padding:14px 18px;border:1px solid #ded7e8;border-radius:10px;margin:10px 0;user-select:all}
.mobile-setup li{margin:12px 0}.mobile-setup .mobile-error{background:#fff0ed;color:#a22c20;padding:15px;border-radius:10px}
@media screen and (max-width:760px){
 html{-webkit-text-size-adjust:100%}body{min-width:0}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}
 .app-shell{min-height:100dvh;min-width:0}
 .sidebar{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}
 .sidebar-bottom{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .form-grid,.screen-dialog .mission-form>.form-grid{grid-template-columns:minmax(0,1fr)!important}
 .form-grid>*{min-width:0;grid-column:auto!important}
 .modal[open],.screen-dialog[open]{max-height:100dvh}
 .screen-dialog>.modal-head{padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top))}
 .screen-dialog>.dialog-body{padding:16px;padding-bottom:max(20px,env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
 .modal-actions{flex-wrap:wrap;gap:10px}
 .modal-actions button{min-height:44px;flex:1 1 auto}
 .screen-dialog .mission-form textarea{max-height:none}
 .login-wrap{width:100%}.login-story .story-features{display:none}
 body:has(.login-wrap){padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .login-card{padding:28px 20px}.login-story{padding:25px 20px}.story-kicker{margin-top:24px}
 .login-card h2{font-size:26px}.password-row input{padding-right:90px!important}
 .mobile-setup{padding:14px}.mobile-setup header{align-items:flex-start}.mobile-setup h1{font-size:23px}
}
@media print{.ornol-mobile-link,.ornol-network-message{display:none!important}}
